Move out of way
[util-vserver.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for util-vserver 0.30.216-pre2833.
4 #
5 # Report bugs to <vserver@list.linux-vserver.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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   # Zsh 3.x and 4.x performs 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 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='util-vserver'
730 PACKAGE_TARNAME='util-vserver'
731 PACKAGE_VERSION='0.30.216-pre2833'
732 PACKAGE_STRING='util-vserver 0.30.216-pre2833'
733 PACKAGE_BUGREPORT='vserver@list.linux-vserver.org'
734
735 ac_unique_file="src/capchroot.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 GPG_KEY
843 CXX
844 CXXFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CXX
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CXXDEPMODE
857 am__fastdepCXX_TRUE
858 am__fastdepCXX_FALSE
859 CC
860 CFLAGS
861 ac_ct_CC
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 LN_S
866 PKG_CONFIG
867 ENSC_HAVE_CXX_COMPILER_TRUE
868 ENSC_HAVE_CXX_COMPILER_FALSE
869 ENSC_HAVE_C99_COMPILER_TRUE
870 ENSC_HAVE_C99_COMPILER_FALSE
871 ENSC_PATHPROG_SED
872 CAT
873 CHOWN
874 CMP
875 CP
876 DIRNAME
877 EGREP
878 ENV
879 GREP
880 LN
881 MKDIR
882 MKFIFO
883 MKTEMP
884 MOUNT
885 MV
886 NICE
887 PS
888 RM
889 RMDIR
890 SED
891 SH
892 TAC
893 TAR
894 TOUCH
895 TTY
896 UMOUNT
897 WC
898 IP
899 IPTABLES
900 MODPROBE
901 NAMEIF
902 NOHUP
903 RMMOD
904 VCONFIG
905 WGET
906 IONICE
907 FILE
908 GZIP
909 BZIP2
910 CPIO
911 RESTORE
912 RSYNC
913 STRACE
914 FSCK
915 DOXYGEN
916 XSLTP
917 XSLTPROC
918 HAVE_XSLTP_TRUE
919 HAVE_XSLTP_FALSE
920 HAVE_XSLTPROC_TRUE
921 HAVE_XSLTPROC_FALSE
922 LIB_DEBUG_CPPFLAGS
923 ENSC_USE_EXPENSIVE_TESTS
924 initrddir
925 RELEASE_CPPFLAGS
926 CPP
927 DIET
928 DIETFLAGS
929 USE_DIETLIBC_TRUE
930 USE_DIETLIBC_FALSE
931 USE_DIETLIBC_COMPAT_TRUE
932 USE_DIETLIBC_COMPAT_FALSE
933 ENSC_USE_DIETLIBC_TRUE
934 ENSC_USE_DIETLIBC_FALSE
935 ENSC_USE_GLIBC_TRUE
936 ENSC_USE_GLIBC_FALSE
937 ECHO
938 AR
939 RANLIB
940 CXXCPP
941 F77
942 FFLAGS
943 ac_ct_F77
944 LIBTOOL
945 vserverdir
946 SVN2CL
947 HAVE_SVN2CL_TRUE
948 HAVE_SVN2CL_FALSE
949 ENSC_ENABLE_INTERNAL_HEADERS_TRUE
950 ENSC_ENABLE_INTERNAL_HEADERS_FALSE
951 ENSC_HAVE_BEECRYPT_TRUE
952 ENSC_HAVE_BEECRYPT_FALSE
953 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE
954 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE
955 NSS_CFLAGS
956 NSS_LIBS
957 ENSC_HAVE_CRYPTO_TRUE
958 ENSC_HAVE_CRYPTO_FALSE
959 ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE
960 ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE
961 ENSC_CRYPTO_CFLAGS
962 ENSC_CRYPTO_LIB
963 HAVE_GENTOO_INIT_TRUE
964 HAVE_GENTOO_INIT_FALSE
965 HAVE_SYSV_INIT_TRUE
966 HAVE_SYSV_INIT_FALSE
967 PYTHON
968 PYTHON_VERSION
969 PYTHON_PREFIX
970 PYTHON_EXEC_PREFIX
971 PYTHON_PLATFORM
972 pythondir
973 pkgpythondir
974 pyexecdir
975 pkgpyexecdir
976 PYTHON_CFLAGS
977 PYTHON_LDFLAGS
978 CTAGS
979 HAVE_PYTHON_TRUE
980 HAVE_PYTHON_FALSE
981 HAVE_VERSIONING_TRUE
982 HAVE_VERSIONING_FALSE
983 LIBOBJS
984 LTLIBOBJS'
985 ac_subst_files=''
986       ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CXX
990 CXXFLAGS
991 LDFLAGS
992 LIBS
993 CPPFLAGS
994 CCC
995 CC
996 CFLAGS
997 PKG_CONFIG
998 CPP
999 DIET
1000 DIETFLAGS
1001 CXXCPP
1002 F77
1003 FFLAGS
1004 NSS_CFLAGS
1005 NSS_LIBS'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1014 exec_prefix=NONE
1015 no_create=
1016 no_recursion=
1017 prefix=NONE
1018 program_prefix=NONE
1019 program_suffix=NONE
1020 program_transform_name=s,x,x,
1021 silent=
1022 site=
1023 srcdir=
1024 verbose=
1025 x_includes=NONE
1026 x_libraries=NONE
1027
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1045 infodir='${datarootdir}/info'
1046 htmldir='${docdir}'
1047 dvidir='${docdir}'
1048 pdfdir='${docdir}'
1049 psdir='${docdir}'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1053
1054 ac_prev=
1055 ac_dashdash=
1056 for ac_option
1057 do
1058   # If the previous option needs an argument, assign it.
1059   if test -n "$ac_prev"; then
1060     eval $ac_prev=\$ac_option
1061     ac_prev=
1062     continue
1063   fi
1064
1065   case $ac_option in
1066   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067   *)    ac_optarg=yes ;;
1068   esac
1069
1070   # Accept the important Cygnus configure options, so we can diagnose typos.
1071
1072   case $ac_dashdash$ac_option in
1073   --)
1074     ac_dashdash=yes ;;
1075
1076   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077     ac_prev=bindir ;;
1078   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079     bindir=$ac_optarg ;;
1080
1081   -build | --build | --buil | --bui | --bu)
1082     ac_prev=build_alias ;;
1083   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084     build_alias=$ac_optarg ;;
1085
1086   -cache-file | --cache-file | --cache-fil | --cache-fi \
1087   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088     ac_prev=cache_file ;;
1089   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091     cache_file=$ac_optarg ;;
1092
1093   --config-cache | -C)
1094     cache_file=config.cache ;;
1095
1096   -datadir | --datadir | --datadi | --datad)
1097     ac_prev=datadir ;;
1098   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099     datadir=$ac_optarg ;;
1100
1101   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102   | --dataroo | --dataro | --datar)
1103     ac_prev=datarootdir ;;
1104   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106     datarootdir=$ac_optarg ;;
1107
1108   -disable-* | --disable-*)
1109     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1115     eval enable_$ac_feature=no ;;
1116
1117   -docdir | --docdir | --docdi | --doc | --do)
1118     ac_prev=docdir ;;
1119   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120     docdir=$ac_optarg ;;
1121
1122   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1123     ac_prev=dvidir ;;
1124   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125     dvidir=$ac_optarg ;;
1126
1127   -enable-* | --enable-*)
1128     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1131       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1134     eval enable_$ac_feature=\$ac_optarg ;;
1135
1136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138   | --exec | --exe | --ex)
1139     ac_prev=exec_prefix ;;
1140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142   | --exec=* | --exe=* | --ex=*)
1143     exec_prefix=$ac_optarg ;;
1144
1145   -gas | --gas | --ga | --g)
1146     # Obsolete; use --with-gas.
1147     with_gas=yes ;;
1148
1149   -help | --help | --hel | --he | -h)
1150     ac_init_help=long ;;
1151   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152     ac_init_help=recursive ;;
1153   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154     ac_init_help=short ;;
1155
1156   -host | --host | --hos | --ho)
1157     ac_prev=host_alias ;;
1158   -host=* | --host=* | --hos=* | --ho=*)
1159     host_alias=$ac_optarg ;;
1160
1161   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162     ac_prev=htmldir ;;
1163   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164   | --ht=*)
1165     htmldir=$ac_optarg ;;
1166
1167   -includedir | --includedir | --includedi | --included | --include \
1168   | --includ | --inclu | --incl | --inc)
1169     ac_prev=includedir ;;
1170   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171   | --includ=* | --inclu=* | --incl=* | --inc=*)
1172     includedir=$ac_optarg ;;
1173
1174   -infodir | --infodir | --infodi | --infod | --info | --inf)
1175     ac_prev=infodir ;;
1176   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177     infodir=$ac_optarg ;;
1178
1179   -libdir | --libdir | --libdi | --libd)
1180     ac_prev=libdir ;;
1181   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182     libdir=$ac_optarg ;;
1183
1184   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185   | --libexe | --libex | --libe)
1186     ac_prev=libexecdir ;;
1187   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188   | --libexe=* | --libex=* | --libe=*)
1189     libexecdir=$ac_optarg ;;
1190
1191   -localedir | --localedir | --localedi | --localed | --locale)
1192     ac_prev=localedir ;;
1193   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194     localedir=$ac_optarg ;;
1195
1196   -localstatedir | --localstatedir | --localstatedi | --localstated \
1197   | --localstate | --localstat | --localsta | --localst | --locals)
1198     ac_prev=localstatedir ;;
1199   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201     localstatedir=$ac_optarg ;;
1202
1203   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204     ac_prev=mandir ;;
1205   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206     mandir=$ac_optarg ;;
1207
1208   -nfp | --nfp | --nf)
1209     # Obsolete; use --without-fp.
1210     with_fp=no ;;
1211
1212   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213   | --no-cr | --no-c | -n)
1214     no_create=yes ;;
1215
1216   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218     no_recursion=yes ;;
1219
1220   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222   | --oldin | --oldi | --old | --ol | --o)
1223     ac_prev=oldincludedir ;;
1224   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227     oldincludedir=$ac_optarg ;;
1228
1229   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230     ac_prev=prefix ;;
1231   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232     prefix=$ac_optarg ;;
1233
1234   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235   | --program-pre | --program-pr | --program-p)
1236     ac_prev=program_prefix ;;
1237   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239     program_prefix=$ac_optarg ;;
1240
1241   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242   | --program-suf | --program-su | --program-s)
1243     ac_prev=program_suffix ;;
1244   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246     program_suffix=$ac_optarg ;;
1247
1248   -program-transform-name | --program-transform-name \
1249   | --program-transform-nam | --program-transform-na \
1250   | --program-transform-n | --program-transform- \
1251   | --program-transform | --program-transfor \
1252   | --program-transfo | --program-transf \
1253   | --program-trans | --program-tran \
1254   | --progr-tra | --program-tr | --program-t)
1255     ac_prev=program_transform_name ;;
1256   -program-transform-name=* | --program-transform-name=* \
1257   | --program-transform-nam=* | --program-transform-na=* \
1258   | --program-transform-n=* | --program-transform-=* \
1259   | --program-transform=* | --program-transfor=* \
1260   | --program-transfo=* | --program-transf=* \
1261   | --program-trans=* | --program-tran=* \
1262   | --progr-tra=* | --program-tr=* | --program-t=*)
1263     program_transform_name=$ac_optarg ;;
1264
1265   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266     ac_prev=pdfdir ;;
1267   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268     pdfdir=$ac_optarg ;;
1269
1270   -psdir | --psdir | --psdi | --psd | --ps)
1271     ac_prev=psdir ;;
1272   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273     psdir=$ac_optarg ;;
1274
1275   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276   | -silent | --silent | --silen | --sile | --sil)
1277     silent=yes ;;
1278
1279   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280     ac_prev=sbindir ;;
1281   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282   | --sbi=* | --sb=*)
1283     sbindir=$ac_optarg ;;
1284
1285   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287   | --sharedst | --shareds | --shared | --share | --shar \
1288   | --sha | --sh)
1289     ac_prev=sharedstatedir ;;
1290   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293   | --sha=* | --sh=*)
1294     sharedstatedir=$ac_optarg ;;
1295
1296   -site | --site | --sit)
1297     ac_prev=site ;;
1298   -site=* | --site=* | --sit=*)
1299     site=$ac_optarg ;;
1300
1301   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302     ac_prev=srcdir ;;
1303   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304     srcdir=$ac_optarg ;;
1305
1306   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307   | --syscon | --sysco | --sysc | --sys | --sy)
1308     ac_prev=sysconfdir ;;
1309   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311     sysconfdir=$ac_optarg ;;
1312
1313   -target | --target | --targe | --targ | --tar | --ta | --t)
1314     ac_prev=target_alias ;;
1315   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316     target_alias=$ac_optarg ;;
1317
1318   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319     verbose=yes ;;
1320
1321   -version | --version | --versio | --versi | --vers | -V)
1322     ac_init_version=: ;;
1323
1324   -with-* | --with-*)
1325     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326     # Reject names that are not valid shell variable names.
1327     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328       { echo "$as_me: error: invalid package name: $ac_package" >&2
1329    { (exit 1); exit 1; }; }
1330     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1331     eval with_$ac_package=\$ac_optarg ;;
1332
1333   -without-* | --without-*)
1334     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       { echo "$as_me: error: invalid package name: $ac_package" >&2
1338    { (exit 1); exit 1; }; }
1339     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1340     eval with_$ac_package=no ;;
1341
1342   --x)
1343     # Obsolete; use --with-x.
1344     with_x=yes ;;
1345
1346   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1347   | --x-incl | --x-inc | --x-in | --x-i)
1348     ac_prev=x_includes ;;
1349   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1350   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1351     x_includes=$ac_optarg ;;
1352
1353   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1354   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1355     ac_prev=x_libraries ;;
1356   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1357   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1358     x_libraries=$ac_optarg ;;
1359
1360   -*) { echo "$as_me: error: unrecognized option: $ac_option
1361 Try \`$0 --help' for more information." >&2
1362    { (exit 1); exit 1; }; }
1363     ;;
1364
1365   *=*)
1366     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1369       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1370    { (exit 1); exit 1; }; }
1371     eval $ac_envvar=\$ac_optarg
1372     export $ac_envvar ;;
1373
1374   *)
1375     # FIXME: should be removed in autoconf 3.0.
1376     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1377     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1379     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1380     ;;
1381
1382   esac
1383 done
1384
1385 if test -n "$ac_prev"; then
1386   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1387   { echo "$as_me: error: missing argument to $ac_option" >&2
1388    { (exit 1); exit 1; }; }
1389 fi
1390
1391 # Be sure to have absolute directory names.
1392 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393                 datadir sysconfdir sharedstatedir localstatedir includedir \
1394                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395                 libdir localedir mandir
1396 do
1397   eval ac_val=\$$ac_var
1398   case $ac_val in
1399     [\\/$]* | ?:[\\/]* )  continue;;
1400     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401   esac
1402   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403    { (exit 1); exit 1; }; }
1404 done
1405
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1409 build=$build_alias
1410 host=$host_alias
1411 target=$target_alias
1412
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415   if test "x$build_alias" = x; then
1416     cross_compiling=maybe
1417     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418     If a cross compiler is detected then cross compile mode will be used." >&2
1419   elif test "x$build_alias" != "x$host_alias"; then
1420     cross_compiling=yes
1421   fi
1422 fi
1423
1424 ac_tool_prefix=
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426
1427 test "$silent" = yes && exec 6>/dev/null
1428
1429
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433   { echo "$as_me: error: Working directory cannot be determined" >&2
1434    { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436   { echo "$as_me: error: pwd does not report name of working directory" >&2
1437    { (exit 1); exit 1; }; }
1438
1439
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442   ac_srcdir_defaulted=yes
1443   # Try the directory containing this script, then the parent directory.
1444   ac_confdir=`$as_dirname -- "$0" ||
1445 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446          X"$0" : 'X\(//\)[^/]' \| \
1447          X"$0" : 'X\(//\)$' \| \
1448          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1449 echo X"$0" |
1450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451             s//\1/
1452             q
1453           }
1454           /^X\(\/\/\)[^/].*/{
1455             s//\1/
1456             q
1457           }
1458           /^X\(\/\/\)$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\).*/{
1463             s//\1/
1464             q
1465           }
1466           s/.*/./; q'`
1467   srcdir=$ac_confdir
1468   if test ! -r "$srcdir/$ac_unique_file"; then
1469     srcdir=..
1470   fi
1471 else
1472   ac_srcdir_defaulted=no
1473 fi
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477    { (exit 1); exit 1; }; }
1478 fi
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 ac_abs_confdir=`(
1481         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1482    { (exit 1); exit 1; }; }
1483         pwd)`
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486   srcdir=.
1487 fi
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1491 case $srcdir in
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1493 esac
1494 for ac_var in $ac_precious_vars; do
1495   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496   eval ac_env_${ac_var}_value=\$${ac_var}
1497   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1499 done
1500
1501 #
1502 # Report the --help message.
1503 #
1504 if test "$ac_init_help" = "long"; then
1505   # Omit some internal or obsolete options to make the list less imposing.
1506   # This message is too long to be a string in the A/UX 3.1 sh.
1507   cat <<_ACEOF
1508 \`configure' configures util-vserver 0.30.216-pre2833 to adapt to many kinds of systems.
1509
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1511
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE.  See below for descriptions of some of the useful variables.
1514
1515 Defaults for the options are specified in brackets.
1516
1517 Configuration:
1518   -h, --help              display this help and exit
1519       --help=short        display options specific to this package
1520       --help=recursive    display the short help of all the included packages
1521   -V, --version           display version information and exit
1522   -q, --quiet, --silent   do not print \`checking...' messages
1523       --cache-file=FILE   cache test results in FILE [disabled]
1524   -C, --config-cache      alias for \`--cache-file=config.cache'
1525   -n, --no-create         do not create output files
1526       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1527
1528 Installation directories:
1529   --prefix=PREFIX         install architecture-independent files in PREFIX
1530                           [$ac_default_prefix]
1531   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1532                           [PREFIX]
1533
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1538
1539 For better control, use the options below.
1540
1541 Fine tuning of the installation directories:
1542   --bindir=DIR           user executables [EPREFIX/bin]
1543   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1544   --libexecdir=DIR       program executables [EPREFIX/libexec]
1545   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1546   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1547   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1548   --libdir=DIR           object code libraries [EPREFIX/lib]
1549   --includedir=DIR       C header files [PREFIX/include]
1550   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1551   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1552   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1553   --infodir=DIR          info documentation [DATAROOTDIR/info]
1554   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1555   --mandir=DIR           man documentation [DATAROOTDIR/man]
1556   --docdir=DIR           documentation root [DATAROOTDIR/doc/util-vserver]
1557   --htmldir=DIR          html documentation [DOCDIR]
1558   --dvidir=DIR           dvi documentation [DOCDIR]
1559   --pdfdir=DIR           pdf documentation [DOCDIR]
1560   --psdir=DIR            ps documentation [DOCDIR]
1561 _ACEOF
1562
1563   cat <<\_ACEOF
1564
1565 Program names:
1566   --program-prefix=PREFIX            prepend PREFIX to installed program names
1567   --program-suffix=SUFFIX            append SUFFIX to installed program names
1568   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1569
1570 System types:
1571   --build=BUILD     configure for building on BUILD [guessed]
1572   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1573 _ACEOF
1574 fi
1575
1576 if test -n "$ac_init_help"; then
1577   case $ac_init_help in
1578      short | recursive ) echo "Configuration of util-vserver 0.30.216-pre2833:";;
1579    esac
1580   cat <<\_ACEOF
1581
1582 Optional Features:
1583   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1584   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1585   --enable-maintainer-mode  enable make rules and dependencies not useful
1586                           (and sometimes confusing) to the casual installer
1587   --disable-dependency-tracking  speeds up one-time build
1588   --enable-dependency-tracking   do not reject slow dependency extractors
1589   --disable-extra-optimizations
1590                           disable certain extra optimizations (default: no)
1591   --enable-lib-debug      enable additional debug code in library (default:
1592                           no)
1593   --enable-expensive-tests
1594                           disable tests which might be expensive on some
1595                           systems (default: no)
1596   --enable-release        enable release mode (default: no)
1597   --disable-alternative-syscalls
1598                           do not use the alternative _syscallX macros provided
1599                           by Herbert Poetzl (default: use them)
1600   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1601                           --enable-dietlibc) (default: autodetect dietlibc)
1602   --enable-shared[=PKGS]  build shared libraries [default=yes]
1603   --enable-static[=PKGS]  build static libraries [default=yes]
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607   --disable-internal-headers
1608                           use vserver specific headers from the kernel instead
1609                           of the shipped versions (default: no)
1610   --enable-apis=APIS      enable support for the given apis; possible values
1611                           are:
1612                           legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2
1613                           ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)
1614   --disable-versioning    Disable library versioning
1615
1616 Optional Packages:
1617   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1618   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1619   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1620                           $sysconfdir/init.d)
1621   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1622                           values are 'fast', 'traditional' and 'auto'
1623                           (default: auto)
1624   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1625   --with-pic              try to use only PIC/non-PIC objects [default=use
1626                           both]
1627   --with-tags[=TAGS]      include additional configurations [automatic]
1628   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1629   --with-crypto-api=API   select crypto api to be used; possible values are
1630                           `none', `nss', `beecrypt', `auto' (default:auto)
1631   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1632                           and 'sysv' (default: guess)
1633
1634 Some influential environment variables:
1635   CXX         C++ compiler command
1636   CXXFLAGS    C++ compiler flags
1637   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1638               nonstandard directory <lib dir>
1639   LIBS        libraries to pass to the linker, e.g. -l<library>
1640   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641               you have headers in a nonstandard directory <include dir>
1642   CC          C compiler command
1643   CFLAGS      C compiler flags
1644   PKG_CONFIG  path to pkg-config utility
1645   CPP         C preprocessor
1646   DIET        The 'diet' wrapper (default: diet)
1647   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1648   CXXCPP      C++ preprocessor
1649   F77         Fortran 77 compiler command
1650   FFLAGS      Fortran 77 compiler flags
1651   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1652   NSS_LIBS    linker flags for NSS, overriding pkg-config
1653
1654 Use these variables to override the choices made by `configure' or to help
1655 it to find libraries and programs with nonstandard names/locations.
1656
1657 Report bugs to <vserver@list.linux-vserver.org>.
1658 _ACEOF
1659 ac_status=$?
1660 fi
1661
1662 if test "$ac_init_help" = "recursive"; then
1663   # If there are subdirs, report their specific --help.
1664   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665     test -d "$ac_dir" || continue
1666     ac_builddir=.
1667
1668 case "$ac_dir" in
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *)
1671   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1672   # A ".." for each directory in $ac_dir_suffix.
1673   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1674   case $ac_top_builddir_sub in
1675   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677   esac ;;
1678 esac
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1683
1684 case $srcdir in
1685   .)  # We are building in place.
1686     ac_srcdir=.
1687     ac_top_srcdir=$ac_top_builddir_sub
1688     ac_abs_top_srcdir=$ac_pwd ;;
1689   [\\/]* | ?:[\\/]* )  # Absolute name.
1690     ac_srcdir=$srcdir$ac_dir_suffix;
1691     ac_top_srcdir=$srcdir
1692     ac_abs_top_srcdir=$srcdir ;;
1693   *) # Relative name.
1694     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695     ac_top_srcdir=$ac_top_build_prefix$srcdir
1696     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1697 esac
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1699
1700     cd "$ac_dir" || { ac_status=$?; continue; }
1701     # Check for guested configure.
1702     if test -f "$ac_srcdir/configure.gnu"; then
1703       echo &&
1704       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705     elif test -f "$ac_srcdir/configure"; then
1706       echo &&
1707       $SHELL "$ac_srcdir/configure" --help=recursive
1708     else
1709       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1710     fi || ac_status=$?
1711     cd "$ac_pwd" || { ac_status=$?; break; }
1712   done
1713 fi
1714
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1717   cat <<\_ACEOF
1718 util-vserver configure 0.30.216-pre2833
1719 generated by GNU Autoconf 2.61
1720
1721 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1722 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1725 _ACEOF
1726   exit
1727 fi
1728 cat >config.log <<_ACEOF
1729 This file contains any messages produced by compilers while
1730 running configure, to aid debugging if configure makes a mistake.
1731
1732 It was created by util-vserver $as_me 0.30.216-pre2833, which was
1733 generated by GNU Autoconf 2.61.  Invocation command line was
1734
1735   $ $0 $@
1736
1737 _ACEOF
1738 exec 5>>config.log
1739 {
1740 cat <<_ASUNAME
1741 ## --------- ##
1742 ## Platform. ##
1743 ## --------- ##
1744
1745 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1746 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1747 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1748 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1749 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1750
1751 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1752 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1753
1754 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1755 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1756 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1757 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1758 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1759 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1760 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1761
1762 _ASUNAME
1763
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   echo "PATH: $as_dir"
1770 done
1771 IFS=$as_save_IFS
1772
1773 } >&5
1774
1775 cat >&5 <<_ACEOF
1776
1777
1778 ## ----------- ##
1779 ## Core tests. ##
1780 ## ----------- ##
1781
1782 _ACEOF
1783
1784
1785 # Keep a trace of the command line.
1786 # Strip out --no-create and --no-recursion so they do not pile up.
1787 # Strip out --silent because we don't want to record it for future runs.
1788 # Also quote any args containing shell meta-characters.
1789 # Make two passes to allow for proper duplicate-argument suppression.
1790 ac_configure_args=
1791 ac_configure_args0=
1792 ac_configure_args1=
1793 ac_must_keep_next=false
1794 for ac_pass in 1 2
1795 do
1796   for ac_arg
1797   do
1798     case $ac_arg in
1799     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1800     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1801     | -silent | --silent | --silen | --sile | --sil)
1802       continue ;;
1803     *\'*)
1804       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805     esac
1806     case $ac_pass in
1807     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1808     2)
1809       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1810       if test $ac_must_keep_next = true; then
1811         ac_must_keep_next=false # Got value, back to normal.
1812       else
1813         case $ac_arg in
1814           *=* | --config-cache | -C | -disable-* | --disable-* \
1815           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1816           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1817           | -with-* | --with-* | -without-* | --without-* | --x)
1818             case "$ac_configure_args0 " in
1819               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1820             esac
1821             ;;
1822           -* ) ac_must_keep_next=true ;;
1823         esac
1824       fi
1825       ac_configure_args="$ac_configure_args '$ac_arg'"
1826       ;;
1827     esac
1828   done
1829 done
1830 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1831 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1832
1833 # When interrupted or exit'd, cleanup temporary files, and complete
1834 # config.log.  We remove comments because anyway the quotes in there
1835 # would cause problems or look ugly.
1836 # WARNING: Use '\'' to represent an apostrophe within the trap.
1837 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1838 trap 'exit_status=$?
1839   # Save into config.log some information that might help in debugging.
1840   {
1841     echo
1842
1843     cat <<\_ASBOX
1844 ## ---------------- ##
1845 ## Cache variables. ##
1846 ## ---------------- ##
1847 _ASBOX
1848     echo
1849     # The following way of writing the cache mishandles newlines in values,
1850 (
1851   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852     eval ac_val=\$$ac_var
1853     case $ac_val in #(
1854     *${as_nl}*)
1855       case $ac_var in #(
1856       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1857 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1858       esac
1859       case $ac_var in #(
1860       _ | IFS | as_nl) ;; #(
1861       *) $as_unset $ac_var ;;
1862       esac ;;
1863     esac
1864   done
1865   (set) 2>&1 |
1866     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1867     *${as_nl}ac_space=\ *)
1868       sed -n \
1869         "s/'\''/'\''\\\\'\'''\''/g;
1870           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1871       ;; #(
1872     *)
1873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1874       ;;
1875     esac |
1876     sort
1877 )
1878     echo
1879
1880     cat <<\_ASBOX
1881 ## ----------------- ##
1882 ## Output variables. ##
1883 ## ----------------- ##
1884 _ASBOX
1885     echo
1886     for ac_var in $ac_subst_vars
1887     do
1888       eval ac_val=\$$ac_var
1889       case $ac_val in
1890       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1891       esac
1892       echo "$ac_var='\''$ac_val'\''"
1893     done | sort
1894     echo
1895
1896     if test -n "$ac_subst_files"; then
1897       cat <<\_ASBOX
1898 ## ------------------- ##
1899 ## File substitutions. ##
1900 ## ------------------- ##
1901 _ASBOX
1902       echo
1903       for ac_var in $ac_subst_files
1904       do
1905         eval ac_val=\$$ac_var
1906         case $ac_val in
1907         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1908         esac
1909         echo "$ac_var='\''$ac_val'\''"
1910       done | sort
1911       echo
1912     fi
1913
1914     if test -s confdefs.h; then
1915       cat <<\_ASBOX
1916 ## ----------- ##
1917 ## confdefs.h. ##
1918 ## ----------- ##
1919 _ASBOX
1920       echo
1921       cat confdefs.h
1922       echo
1923     fi
1924     test "$ac_signal" != 0 &&
1925       echo "$as_me: caught signal $ac_signal"
1926     echo "$as_me: exit $exit_status"
1927   } >&5
1928   rm -f core *.core core.conftest.* &&
1929     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1930     exit $exit_status
1931 ' 0
1932 for ac_signal in 1 2 13 15; do
1933   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1934 done
1935 ac_signal=0
1936
1937 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1938 rm -f -r conftest* confdefs.h
1939
1940 # Predefined preprocessor variables.
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_NAME "$PACKAGE_NAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_STRING "$PACKAGE_STRING"
1959 _ACEOF
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1964 _ACEOF
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970   set x "$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1973 else
1974   set x "$ac_default_prefix/share/config.site" \
1975         "$ac_default_prefix/etc/config.site"
1976 fi
1977 shift
1978 for ac_site_file
1979 do
1980   if test -r "$ac_site_file"; then
1981     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1982 echo "$as_me: loading site script $ac_site_file" >&6;}
1983     sed 's/^/| /' "$ac_site_file" >&5
1984     . "$ac_site_file"
1985   fi
1986 done
1987
1988 if test -r "$cache_file"; then
1989   # Some versions of bash will fail to source /dev/null (special
1990   # files actually), so we avoid doing that.
1991   if test -f "$cache_file"; then
1992     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1993 echo "$as_me: loading cache $cache_file" >&6;}
1994     case $cache_file in
1995       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1996       *)                      . "./$cache_file";;
1997     esac
1998   fi
1999 else
2000   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2001 echo "$as_me: creating cache $cache_file" >&6;}
2002   >$cache_file
2003 fi
2004
2005 # Check that the precious variables saved in the cache have kept the same
2006 # value.
2007 ac_cache_corrupted=false
2008 for ac_var in $ac_precious_vars; do
2009   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2010   eval ac_new_set=\$ac_env_${ac_var}_set
2011   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2012   eval ac_new_val=\$ac_env_${ac_var}_value
2013   case $ac_old_set,$ac_new_set in
2014     set,)
2015       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2016 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2017       ac_cache_corrupted=: ;;
2018     ,set)
2019       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2020 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2021       ac_cache_corrupted=: ;;
2022     ,);;
2023     *)
2024       if test "x$ac_old_val" != "x$ac_new_val"; then
2025         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2026 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2027         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2028 echo "$as_me:   former value:  $ac_old_val" >&2;}
2029         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2030 echo "$as_me:   current value: $ac_new_val" >&2;}
2031         ac_cache_corrupted=:
2032       fi;;
2033   esac
2034   # Pass precious variables to config.status.
2035   if test "$ac_new_set" = set; then
2036     case $ac_new_val in
2037     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2038     *) ac_arg=$ac_var=$ac_new_val ;;
2039     esac
2040     case " $ac_configure_args " in
2041       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2042       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2043     esac
2044   fi
2045 done
2046 if $ac_cache_corrupted; then
2047   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2048 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2049   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2050 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2051    { (exit 1); exit 1; }; }
2052 fi
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078 ac_ext=c
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083
2084
2085
2086 ac_config_headers="$ac_config_headers config.h"
2087
2088
2089 am__api_version='1.10'
2090
2091 ac_aux_dir=
2092 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093   if test -f "$ac_dir/install-sh"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/install-sh -c"
2096     break
2097   elif test -f "$ac_dir/install.sh"; then
2098     ac_aux_dir=$ac_dir
2099     ac_install_sh="$ac_aux_dir/install.sh -c"
2100     break
2101   elif test -f "$ac_dir/shtool"; then
2102     ac_aux_dir=$ac_dir
2103     ac_install_sh="$ac_aux_dir/shtool install -c"
2104     break
2105   fi
2106 done
2107 if test -z "$ac_aux_dir"; then
2108   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2118 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2119 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2120
2121
2122 # Find a good install program.  We prefer a C program (faster),
2123 # so one script is as good as another.  But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146   # Account for people who put trailing slashes in PATH elements.
2147 case $as_dir/ in
2148   ./ | .// | /cC/* | \
2149   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151   /usr/ucb/* ) ;;
2152   *)
2153     # OSF1 and SCO ODT 3.0 have their own names for install.
2154     # Don't use installbsd from OSF since it installs stuff as root
2155     # by default.
2156     for ac_prog in ginstall scoinst install; do
2157       for ac_exec_ext in '' $ac_executable_extensions; do
2158         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159           if test $ac_prog = install &&
2160             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161             # AIX install.  It has an incompatible calling convention.
2162             :
2163           elif test $ac_prog = install &&
2164             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165             # program-specific install script used by HP pwplus--don't use.
2166             :
2167           else
2168             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2169             break 3
2170           fi
2171         fi
2172       done
2173     done
2174     ;;
2175 esac
2176 done
2177 IFS=$as_save_IFS
2178
2179
2180 fi
2181   if test "${ac_cv_path_install+set}" = set; then
2182     INSTALL=$ac_cv_path_install
2183   else
2184     # As a last resort, use the slow shell script.  Don't cache a
2185     # value for INSTALL within a source directory, because that will
2186     # break other packages using the cache if that directory is
2187     # removed, or if the value is a relative name.
2188     INSTALL=$ac_install_sh
2189   fi
2190 fi
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2193
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2197
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2199
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2201
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 # Just in case
2205 sleep 1
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments.  Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2211 # directory).
2212 if (
2213    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214    if test "$*" = "X"; then
2215       # -L didn't work.
2216       set X `ls -t $srcdir/configure conftest.file`
2217    fi
2218    rm -f conftest.file
2219    if test "$*" != "X $srcdir/configure conftest.file" \
2220       && test "$*" != "X conftest.file $srcdir/configure"; then
2221
2222       # If neither matched, then we have a broken ls.  This can happen
2223       # if, for instance, CONFIG_SHELL is bash and it inherits a
2224       # broken ls alias from the environment.  This has actually
2225       # happened.  Such a system could not be considered "sane".
2226       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2229 alias in your environment" >&2;}
2230    { (exit 1); exit 1; }; }
2231    fi
2232
2233    test "$2" = conftest.file
2234    )
2235 then
2236    # Ok.
2237    :
2238 else
2239    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243    { (exit 1); exit 1; }; }
2244 fi
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $.  echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2256 _ACEOF
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 rm -f conftest.sed
2259
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2262
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266   am_missing_run="$MISSING --run "
2267 else
2268   am_missing_run=
2269   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 fi
2272
2273 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2275 if test -z "$MKDIR_P"; then
2276   if test "${ac_cv_path_mkdir+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_prog in mkdir gmkdir; do
2285          for ac_exec_ext in '' $ac_executable_extensions; do
2286            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288              'mkdir (GNU coreutils) '* | \
2289              'mkdir (coreutils) '* | \
2290              'mkdir (fileutils) '4.1*)
2291                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2292                break 3;;
2293            esac
2294          done
2295        done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300
2301   if test "${ac_cv_path_mkdir+set}" = set; then
2302     MKDIR_P="$ac_cv_path_mkdir -p"
2303   else
2304     # As a last resort, use the slow shell script.  Don't cache a
2305     # value for MKDIR_P within a source directory, because that will
2306     # break other packages using the cache if that directory is
2307     # removed, or if the value is a relative name.
2308     test -d ./--version && rmdir ./--version
2309     MKDIR_P="$ac_install_sh -d"
2310   fi
2311 fi
2312 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 echo "${ECHO_T}$MKDIR_P" >&6; }
2314
2315 mkdir_p="$MKDIR_P"
2316 case $mkdir_p in
2317   [\\/$]* | ?:[\\/]*) ;;
2318   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 esac
2320
2321 for ac_prog in gawk mawk nawk awk
2322 do
2323   # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$AWK"; then
2331   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_AWK="$ac_prog"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 AWK=$ac_cv_prog_AWK
2351 if test -n "$AWK"; then
2352   { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360   test -n "$AWK" && break
2361 done
2362
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   cat >conftest.make <<\_ACEOF
2370 SHELL = /bin/sh
2371 all:
2372         @echo '@@@%%%=$(MAKE)=@@@%%%'
2373 _ACEOF
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2376   *@@@%%%=?*=@@@%%%*)
2377     eval ac_cv_prog_make_${ac_make}_set=yes;;
2378   *)
2379     eval ac_cv_prog_make_${ac_make}_set=no;;
2380 esac
2381 rm -f conftest.make
2382 fi
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384   { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2386   SET_MAKE=
2387 else
2388   { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390   SET_MAKE="MAKE=${MAKE-make}"
2391 fi
2392
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2396   am__leading_dot=.
2397 else
2398   am__leading_dot=_
2399 fi
2400 rmdir .tst 2>/dev/null
2401
2402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2403   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2404   # is not polluted with repeated "-I."
2405   am__isrc=' -I$(srcdir)'
2406   # test to see if srcdir already configured
2407   if test -f $srcdir/config.status; then
2408     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410    { (exit 1); exit 1; }; }
2411   fi
2412 fi
2413
2414 # test whether we have cygpath
2415 if test -z "$CYGPATH_W"; then
2416   if (cygpath --version) >/dev/null 2>/dev/null; then
2417     CYGPATH_W='cygpath -w'
2418   else
2419     CYGPATH_W=echo
2420   fi
2421 fi
2422
2423
2424 # Define the identity of the package.
2425  PACKAGE='util-vserver'
2426  VERSION='0.30.216-pre2833'
2427
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE "$PACKAGE"
2431 _ACEOF
2432
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define VERSION "$VERSION"
2436 _ACEOF
2437
2438 # Some tools Automake needs.
2439
2440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2441
2442
2443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2444
2445
2446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2447
2448
2449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2450
2451
2452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2453
2454 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2455
2456 # Installed binaries are usually stripped using `strip' when the user
2457 # run `make install-strip'.  However `strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the `STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461   if test -n "$ac_tool_prefix"; then
2462   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467   echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469   if test -n "$STRIP"; then
2470   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475   IFS=$as_save_IFS
2476   test -z "$as_dir" && as_dir=.
2477   for ac_exec_ext in '' $ac_executable_extensions; do
2478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481     break 2
2482   fi
2483 done
2484 done
2485 IFS=$as_save_IFS
2486
2487 fi
2488 fi
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491   { echo "$as_me:$LINENO: result: $STRIP" >&5
2492 echo "${ECHO_T}$STRIP" >&6; }
2493 else
2494   { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2496 fi
2497
2498
2499 fi
2500 if test -z "$ac_cv_prog_STRIP"; then
2501   ac_ct_STRIP=$STRIP
2502   # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$ac_ct_STRIP"; then
2510   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_ac_ct_STRIP="strip"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2532 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538   if test "x$ac_ct_STRIP" = x; then
2539     STRIP=":"
2540   else
2541     case $cross_compiling:$ac_tool_warned in
2542 yes:)
2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet.  If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet.  If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549 ac_tool_warned=yes ;;
2550 esac
2551     STRIP=$ac_ct_STRIP
2552   fi
2553 else
2554   STRIP="$ac_cv_prog_STRIP"
2555 fi
2556
2557 fi
2558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559
2560 # We need awk for the "check" target.  The system "awk" is bad on
2561 # some platforms.
2562 # Always define AMTAR for backward compatibility.
2563
2564 AMTAR=${AMTAR-"${am_missing_run}tar"}
2565
2566 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
2568
2569
2570
2571
2572 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2573 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2574     # Check whether --enable-maintainer-mode was given.
2575 if test "${enable_maintainer_mode+set}" = set; then
2576   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2577 else
2578   USE_MAINTAINER_MODE=no
2579 fi
2580
2581   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2582 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2583    if test $USE_MAINTAINER_MODE = yes; then
2584   MAINTAINER_MODE_TRUE=
2585   MAINTAINER_MODE_FALSE='#'
2586 else
2587   MAINTAINER_MODE_TRUE='#'
2588   MAINTAINER_MODE_FALSE=
2589 fi
2590
2591   MAINT=$MAINTAINER_MODE_TRUE
2592
2593
2594
2595 # Make sure we can run config.sub.
2596 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2597   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2598 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2599    { (exit 1); exit 1; }; }
2600
2601 { echo "$as_me:$LINENO: checking build system type" >&5
2602 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2603 if test "${ac_cv_build+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   ac_build_alias=$build_alias
2607 test "x$ac_build_alias" = x &&
2608   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609 test "x$ac_build_alias" = x &&
2610   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2611 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612    { (exit 1); exit 1; }; }
2613 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2614   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2616    { (exit 1); exit 1; }; }
2617
2618 fi
2619 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2620 echo "${ECHO_T}$ac_cv_build" >&6; }
2621 case $ac_cv_build in
2622 *-*-*) ;;
2623 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2624 echo "$as_me: error: invalid value of canonical build" >&2;}
2625    { (exit 1); exit 1; }; };;
2626 esac
2627 build=$ac_cv_build
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_build
2630 shift
2631 build_cpu=$1
2632 build_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 build_os=$*
2637 IFS=$ac_save_IFS
2638 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 { echo "$as_me:$LINENO: checking host system type" >&5
2642 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2643 if test "${ac_cv_host+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   if test "x$host_alias" = x; then
2647   ac_cv_host=$ac_cv_build
2648 else
2649   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2651 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 fi
2656 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2657 echo "${ECHO_T}$ac_cv_host" >&6; }
2658 case $ac_cv_host in
2659 *-*-*) ;;
2660 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2661 echo "$as_me: error: invalid value of canonical host" >&2;}
2662    { (exit 1); exit 1; }; };;
2663 esac
2664 host=$ac_cv_host
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_host
2667 shift
2668 host_cpu=$1
2669 host_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 host_os=$*
2674 IFS=$ac_save_IFS
2675 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678
2679 GPG_KEY="0xFFD316AC53ACA43A!"
2680
2681
2682 # Checks for programs.
2683 ac_ext=cpp
2684 ac_cpp='$CXXCPP $CPPFLAGS'
2685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2688 if test -z "$CXX"; then
2689   if test -n "$CCC"; then
2690     CXX=$CCC
2691   else
2692     if test -n "$ac_tool_prefix"; then
2693   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2694   do
2695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_CXX+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   if test -n "$CXX"; then
2703   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 CXX=$ac_cv_prog_CXX
2723 if test -n "$CXX"; then
2724   { echo "$as_me:$LINENO: result: $CXX" >&5
2725 echo "${ECHO_T}$CXX" >&6; }
2726 else
2727   { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2729 fi
2730
2731
2732     test -n "$CXX" && break
2733   done
2734 fi
2735 if test -z "$CXX"; then
2736   ac_ct_CXX=$CXX
2737   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2738 do
2739   # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy $ac_prog; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   if test -n "$ac_ct_CXX"; then
2747   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_ac_ct_CXX="$ac_prog"
2757     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 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2767 if test -n "$ac_ct_CXX"; then
2768   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2769 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2770 else
2771   { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2773 fi
2774
2775
2776   test -n "$ac_ct_CXX" && break
2777 done
2778
2779   if test "x$ac_ct_CXX" = x; then
2780     CXX="g++"
2781   else
2782     case $cross_compiling:$ac_tool_warned in
2783 yes:)
2784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2785 whose name does not start with the host triplet.  If you think this
2786 configuration is useful to you, please write to autoconf@gnu.org." >&5
2787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet.  If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2790 ac_tool_warned=yes ;;
2791 esac
2792     CXX=$ac_ct_CXX
2793   fi
2794 fi
2795
2796   fi
2797 fi
2798 # Provide some information about the compiler.
2799 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2800 ac_compiler=`set X $ac_compile; echo $2`
2801 { (ac_try="$ac_compiler --version >&5"
2802 case "(($ac_try" in
2803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804   *) ac_try_echo=$ac_try;;
2805 esac
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807   (eval "$ac_compiler --version >&5") 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }
2811 { (ac_try="$ac_compiler -v >&5"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compiler -v >&5") 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }
2821 { (ac_try="$ac_compiler -V >&5"
2822 case "(($ac_try" in
2823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824   *) ac_try_echo=$ac_try;;
2825 esac
2826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827   (eval "$ac_compiler -V >&5") 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); }
2831
2832 cat >conftest.$ac_ext <<_ACEOF
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838
2839 int
2840 main ()
2841 {
2842
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 ac_clean_files_save=$ac_clean_files
2848 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2849 # Try to create an executable without -o first, disregard a.out.
2850 # It will help us diagnose broken compilers, and finding out an intuition
2851 # of exeext.
2852 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2853 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2854 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2855 #
2856 # List of possible output files, starting from the most likely.
2857 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2858 # only as a last resort.  b.out is created by i960 compilers.
2859 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2860 #
2861 # The IRIX 6 linker writes into existing files which may not be
2862 # executable, retaining their permissions.  Remove them first so a
2863 # subsequent execution test works.
2864 ac_rmfiles=
2865 for ac_file in $ac_files
2866 do
2867   case $ac_file in
2868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2869     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2870   esac
2871 done
2872 rm -f $ac_rmfiles
2873
2874 if { (ac_try="$ac_link_default"
2875 case "(($ac_try" in
2876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877   *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880   (eval "$ac_link_default") 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; then
2884   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2886 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2887 # so that the user can short-circuit this test for compilers unknown to
2888 # Autoconf.
2889 for ac_file in $ac_files ''
2890 do
2891   test -f "$ac_file" || continue
2892   case $ac_file in
2893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2894         ;;
2895     [ab].out )
2896         # We found the default executable, but exeext='' is most
2897         # certainly right.
2898         break;;
2899     *.* )
2900         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2901         then :; else
2902            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2903         fi
2904         # We set ac_cv_exeext here because the later test for it is not
2905         # safe: cross compilers may not add the suffix if given an `-o'
2906         # argument, so we may need to know it at that point already.
2907         # Even if this section looks crufty: it has the advantage of
2908         # actually working.
2909         break;;
2910     * )
2911         break;;
2912   esac
2913 done
2914 test "$ac_cv_exeext" = no && ac_cv_exeext=
2915
2916 else
2917   ac_file=''
2918 fi
2919
2920 { echo "$as_me:$LINENO: result: $ac_file" >&5
2921 echo "${ECHO_T}$ac_file" >&6; }
2922 if test -z "$ac_file"; then
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: C++ compiler cannot create executables
2929 See \`config.log' for more details." >&2;}
2930    { (exit 77); exit 77; }; }
2931 fi
2932
2933 ac_exeext=$ac_cv_exeext
2934
2935 # Check that the compiler produces executables we can run.  If not, either
2936 # the compiler is broken, or we cross compile.
2937 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2938 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2939 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2940 # If not cross compiling, check that we can run a simple program.
2941 if test "$cross_compiling" != yes; then
2942   if { ac_try='./$ac_file'
2943   { (case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_try") 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952     cross_compiling=no
2953   else
2954     if test "$cross_compiling" = maybe; then
2955         cross_compiling=yes
2956     else
2957         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2958 If you meant to cross compile, use \`--host'.
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot run C++ compiled programs.
2961 If you meant to cross compile, use \`--host'.
2962 See \`config.log' for more details." >&2;}
2963    { (exit 1); exit 1; }; }
2964     fi
2965   fi
2966 fi
2967 { echo "$as_me:$LINENO: result: yes" >&5
2968 echo "${ECHO_T}yes" >&6; }
2969
2970 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2971 ac_clean_files=$ac_clean_files_save
2972 # Check that the compiler produces executables we can run.  If not, either
2973 # the compiler is broken, or we cross compile.
2974 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2976 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977 echo "${ECHO_T}$cross_compiling" >&6; }
2978
2979 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2981 if { (ac_try="$ac_link"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_link") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; then
2991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2993 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 # `rm'.
2995 for ac_file in conftest.exe conftest conftest.*; do
2996   test -f "$ac_file" || continue
2997   case $ac_file in
2998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3000           break;;
3001     * ) break;;
3002   esac
3003 done
3004 else
3005   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012 rm -f conftest$ac_cv_exeext
3013 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3014 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3015
3016 rm -f conftest.$ac_ext
3017 EXEEXT=$ac_cv_exeext
3018 ac_exeext=$EXEEXT
3019 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3020 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3021 if test "${ac_cv_objext+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030
3031 int
3032 main ()
3033 {
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.o conftest.obj
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; then
3050   for ac_file in conftest.o conftest.obj 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 ) ;;
3054     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3055        break;;
3056   esac
3057 done
3058 else
3059   echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3063 See \`config.log' for more details." >&5
3064 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3065 See \`config.log' for more details." >&2;}
3066    { (exit 1); exit 1; }; }
3067 fi
3068
3069 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3070 fi
3071 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3072 echo "${ECHO_T}$ac_cv_objext" >&6; }
3073 OBJEXT=$ac_cv_objext
3074 ac_objext=$OBJEXT
3075 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3076 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3077 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090 #ifndef __GNUC__
3091        choke me
3092 #endif
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 rm -f conftest.$ac_objext
3099 if { (ac_try="$ac_compile"
3100 case "(($ac_try" in
3101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102   *) ac_try_echo=$ac_try;;
3103 esac
3104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105   (eval "$ac_compile") 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } && {
3112          test -z "$ac_cxx_werror_flag" ||
3113          test ! -s conftest.err
3114        } && test -s conftest.$ac_objext; then
3115   ac_compiler_gnu=yes
3116 else
3117   echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120         ac_compiler_gnu=no
3121 fi
3122
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3125
3126 fi
3127 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3128 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3129 GXX=`test $ac_compiler_gnu = yes && echo yes`
3130 ac_test_CXXFLAGS=${CXXFLAGS+set}
3131 ac_save_CXXFLAGS=$CXXFLAGS
3132 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3133 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_cxx_g+set}" = set; then
3135   echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3138    ac_cxx_werror_flag=yes
3139    ac_cv_prog_cxx_g=no
3140    CXXFLAGS="-g"
3141    cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h.  */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h.  */
3147
3148 int
3149 main ()
3150 {
3151
3152   ;
3153   return 0;
3154 }
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3158 case "(($ac_try" in
3159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160   *) ac_try_echo=$ac_try;;
3161 esac
3162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3163   (eval "$ac_compile") 2>conftest.er1
3164   ac_status=$?
3165   grep -v '^ *+' conftest.er1 >conftest.err
3166   rm -f conftest.er1
3167   cat conftest.err >&5
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); } && {
3170          test -z "$ac_cxx_werror_flag" ||
3171          test ! -s conftest.err
3172        } && test -s conftest.$ac_objext; then
3173   ac_cv_prog_cxx_g=yes
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178         CXXFLAGS=""
3179       cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h.  */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h.  */
3185
3186 int
3187 main ()
3188 {
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201   (eval "$ac_compile") 2>conftest.er1
3202   ac_status=$?
3203   grep -v '^ *+' conftest.er1 >conftest.err
3204   rm -f conftest.er1
3205   cat conftest.err >&5
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); } && {
3208          test -z "$ac_cxx_werror_flag" ||
3209          test ! -s conftest.err
3210        } && test -s conftest.$ac_objext; then
3211   :
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3217          CXXFLAGS="-g"
3218          cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224
3225 int
3226 main ()
3227 {
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_compile") 2>conftest.er1
3241   ac_status=$?
3242   grep -v '^ *+' conftest.er1 >conftest.err
3243   rm -f conftest.er1
3244   cat conftest.err >&5
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); } && {
3247          test -z "$ac_cxx_werror_flag" ||
3248          test ! -s conftest.err
3249        } && test -s conftest.$ac_objext; then
3250   ac_cv_prog_cxx_g=yes
3251 else
3252   echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255
3256 fi
3257
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3269 if test "$ac_test_CXXFLAGS" = set; then
3270   CXXFLAGS=$ac_save_CXXFLAGS
3271 elif test $ac_cv_prog_cxx_g = yes; then
3272   if test "$GXX" = yes; then
3273     CXXFLAGS="-g -O2"
3274   else
3275     CXXFLAGS="-g"
3276   fi
3277 else
3278   if test "$GXX" = yes; then
3279     CXXFLAGS="-O2"
3280   else
3281     CXXFLAGS=
3282   fi
3283 fi
3284 ac_ext=c
3285 ac_cpp='$CPP $CPPFLAGS'
3286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 DEPDIR="${am__leading_dot}deps"
3290
3291 ac_config_commands="$ac_config_commands depfiles"
3292
3293
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297         @echo done
3298 .PHONY: am__doit
3299 END
3300 # If we don't find an include directive, just comment out the code.
3301 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314    am__include=include
3315    am__quote=
3316    _am_result=GNU
3317 fi
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320    echo '.include "confinc"' > confmf
3321    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322       am__include=.include
3323       am__quote="\""
3324       _am_result=BSD
3325    fi
3326 fi
3327
3328
3329 { echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6; }
3331 rm -f confinc confmf
3332
3333 # Check whether --enable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335   enableval=$enable_dependency_tracking;
3336 fi
3337
3338 if test "x$enable_dependency_tracking" != xno; then
3339   am_depcomp="$ac_aux_dir/depcomp"
3340   AMDEPBACKSLASH='\'
3341 fi
3342  if test "x$enable_dependency_tracking" != xno; then
3343   AMDEP_TRUE=
3344   AMDEP_FALSE='#'
3345 else
3346   AMDEP_TRUE='#'
3347   AMDEP_FALSE=
3348 fi
3349
3350
3351
3352 depcc="$CXX"  am_compiler_list=
3353
3354 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3355 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3356 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3360   # We make a subdir and do the tests there.  Otherwise we can end up
3361   # making bogus files that we don't know about and never remove.  For
3362   # instance it was reported that on HP-UX the gcc test will end up
3363   # making a dummy file named `D' -- because `-MD' means `put the output
3364   # in D'.
3365   mkdir conftest.dir
3366   # Copy depcomp to subdir because otherwise we won't find it if we're
3367   # using a relative directory.
3368   cp "$am_depcomp" conftest.dir
3369   cd conftest.dir
3370   # We will build objects and dependencies in a subdirectory because
3371   # it helps to detect inapplicable dependency modes.  For instance
3372   # both Tru64's cc and ICC support -MD to output dependencies as a
3373   # side effect of compilation, but ICC will put the dependencies in
3374   # the current directory while Tru64 will put them in the object
3375   # directory.
3376   mkdir sub
3377
3378   am_cv_CXX_dependencies_compiler_type=none
3379   if test "$am_compiler_list" = ""; then
3380      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3381   fi
3382   for depmode in $am_compiler_list; do
3383     # Setup a source with many dependencies, because some compilers
3384     # like to wrap large dependency lists on column 80 (with \), and
3385     # we should not choose a depcomp mode which is confused by this.
3386     #
3387     # We need to recreate these files for each test, as the compiler may
3388     # overwrite some of them when testing with obscure command lines.
3389     # This happens at least with the AIX C compiler.
3390     : > sub/conftest.c
3391     for i in 1 2 3 4 5 6; do
3392       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3393       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3394       # Solaris 8's {/usr,}/bin/sh.
3395       touch sub/conftst$i.h
3396     done
3397     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3398
3399     case $depmode in
3400     nosideeffect)
3401       # after this tag, mechanisms are not by side-effect, so they'll
3402       # only be used when explicitly requested
3403       if test "x$enable_dependency_tracking" = xyes; then
3404         continue
3405       else
3406         break
3407       fi
3408       ;;
3409     none) break ;;
3410     esac
3411     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3412     # mode.  It turns out that the SunPro C++ compiler does not properly
3413     # handle `-M -o', and we need to detect this.
3414     if depmode=$depmode \
3415        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3416        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3417        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3418          >/dev/null 2>conftest.err &&
3419        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3420        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3421        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3422        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3423       # icc doesn't choke on unknown options, it will just issue warnings
3424       # or remarks (even with -Werror).  So we grep stderr for any message
3425       # that says an option was ignored or not supported.
3426       # When given -MP, icc 7.0 and 7.1 complain thusly:
3427       #   icc: Command line warning: ignoring option '-M'; no argument required
3428       # The diagnosis changed in icc 8.0:
3429       #   icc: Command line remark: option '-MP' not supported
3430       if (grep 'ignoring option' conftest.err ||
3431           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3432         am_cv_CXX_dependencies_compiler_type=$depmode
3433         break
3434       fi
3435     fi
3436   done
3437
3438   cd ..
3439   rm -rf conftest.dir
3440 else
3441   am_cv_CXX_dependencies_compiler_type=none
3442 fi
3443
3444 fi
3445 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3446 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3447 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3448
3449  if
3450   test "x$enable_dependency_tracking" != xno \
3451   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3452   am__fastdepCXX_TRUE=
3453   am__fastdepCXX_FALSE='#'
3454 else
3455   am__fastdepCXX_TRUE='#'
3456   am__fastdepCXX_FALSE=
3457 fi
3458
3459
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 if test -n "$ac_tool_prefix"; then
3466   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   if test -n "$CC"; then
3474   ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495   { echo "$as_me:$LINENO: result: $CC" >&5
3496 echo "${ECHO_T}$CC" >&6; }
3497 else
3498   { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3500 fi
3501
3502
3503 fi
3504 if test -z "$ac_cv_prog_CC"; then
3505   ac_ct_CC=$CC
3506   # Extract the first word of "gcc", so it can be a program name with args.
3507 set dummy gcc; ac_word=$2
3508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   if test -n "$ac_ct_CC"; then
3514   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523     ac_cv_prog_ac_ct_CC="gcc"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3536 echo "${ECHO_T}$ac_ct_CC" >&6; }
3537 else
3538   { echo "$as_me:$LINENO: result: no" >&5
3539 echo "${ECHO_T}no" >&6; }
3540 fi
3541
3542   if test "x$ac_ct_CC" = x; then
3543     CC=""
3544   else
3545     case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3548 whose name does not start with the host triplet.  If you think this
3549 configuration is useful to you, please write to autoconf@gnu.org." >&5
3550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3551 whose name does not start with the host triplet.  If you think this
3552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555     CC=$ac_ct_CC
3556   fi
3557 else
3558   CC="$ac_cv_prog_CC"
3559 fi
3560
3561 if test -z "$CC"; then
3562           if test -n "$ac_tool_prefix"; then
3563     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}cc; ac_word=$2
3565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3567 if test "${ac_cv_prog_CC+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   if test -n "$CC"; then
3571   ac_cv_prog_CC="$CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578   for ac_exec_ext in '' $ac_executable_extensions; do
3579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580     ac_cv_prog_CC="${ac_tool_prefix}cc"
3581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592   { echo "$as_me:$LINENO: result: $CC" >&5
3593 echo "${ECHO_T}$CC" >&6; }
3594 else
3595   { echo "$as_me:$LINENO: result: no" >&5
3596 echo "${ECHO_T}no" >&6; }
3597 fi
3598
3599
3600   fi
3601 fi
3602 if test -z "$CC"; then
3603   # Extract the first word of "cc", so it can be a program name with args.
3604 set dummy cc; ac_word=$2
3605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3607 if test "${ac_cv_prog_CC+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test -n "$CC"; then
3611   ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613   ac_prog_rejected=no
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619   for ac_exec_ext in '' $ac_executable_extensions; do
3620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3622        ac_prog_rejected=yes
3623        continue
3624      fi
3625     ac_cv_prog_CC="cc"
3626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627     break 2
3628   fi
3629 done
3630 done
3631 IFS=$as_save_IFS
3632
3633 if test $ac_prog_rejected = yes; then
3634   # We found a bogon in the path, so make sure we never use it.
3635   set dummy $ac_cv_prog_CC
3636   shift
3637   if test $# != 0; then
3638     # We chose a different compiler from the bogus one.
3639     # However, it has the same basename, so the bogon will be chosen
3640     # first if we set CC to just the basename; use the full file name.
3641     shift
3642     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643   fi
3644 fi
3645 fi
3646 fi
3647 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then
3649   { echo "$as_me:$LINENO: result: $CC" >&5
3650 echo "${ECHO_T}$CC" >&6; }
3651 else
3652   { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 fi
3655
3656
3657 fi
3658 if test -z "$CC"; then
3659   if test -n "$ac_tool_prefix"; then
3660   for ac_prog in cl.exe
3661   do
3662     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3666 if test "${ac_cv_prog_CC+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -n "$CC"; then
3670   ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684 done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691   { echo "$as_me:$LINENO: result: $CC" >&5
3692 echo "${ECHO_T}$CC" >&6; }
3693 else
3694   { echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6; }
3696 fi
3697
3698
3699     test -n "$CC" && break
3700   done
3701 fi
3702 if test -z "$CC"; then
3703   ac_ct_CC=$CC
3704   for ac_prog in cl.exe
3705 do
3706   # Extract the first word of "$ac_prog", so it can be a program name with args.
3707 set dummy $ac_prog; ac_word=$2
3708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   if test -n "$ac_ct_CC"; then
3714   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723     ac_cv_prog_ac_ct_CC="$ac_prog"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3736 echo "${ECHO_T}$ac_ct_CC" >&6; }
3737 else
3738   { echo "$as_me:$LINENO: result: no" >&5
3739 echo "${ECHO_T}no" >&6; }
3740 fi
3741
3742
3743   test -n "$ac_ct_CC" && break
3744 done
3745
3746   if test "x$ac_ct_CC" = x; then
3747     CC=""
3748   else
3749     case $cross_compiling:$ac_tool_warned in
3750 yes:)
3751 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3752 whose name does not start with the host triplet.  If you think this
3753 configuration is useful to you, please write to autoconf@gnu.org." >&5
3754 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3755 whose name does not start with the host triplet.  If you think this
3756 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759     CC=$ac_ct_CC
3760   fi
3761 fi
3762
3763 fi
3764
3765
3766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: no acceptable C compiler found in \$PATH
3769 See \`config.log' for more details." >&2;}
3770    { (exit 1); exit 1; }; }
3771
3772 # Provide some information about the compiler.
3773 echo "$as_me:$LINENO: checking for C compiler version" >&5
3774 ac_compiler=`set X $ac_compile; echo $2`
3775 { (ac_try="$ac_compiler --version >&5"
3776 case "(($ac_try" in
3777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778   *) ac_try_echo=$ac_try;;
3779 esac
3780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3781   (eval "$ac_compiler --version >&5") 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); }
3785 { (ac_try="$ac_compiler -v >&5"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791   (eval "$ac_compiler -v >&5") 2>&5
3792   ac_status=$?
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); }
3795 { (ac_try="$ac_compiler -V >&5"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801   (eval "$ac_compiler -V >&5") 2>&5
3802   ac_status=$?
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); }
3805
3806 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3807 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817
3818 int
3819 main ()
3820 {
3821 #ifndef __GNUC__
3822        choke me
3823 #endif
3824
3825   ;
3826   return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext
3830 if { (ac_try="$ac_compile"
3831 case "(($ac_try" in
3832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833   *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836   (eval "$ac_compile") 2>conftest.er1
3837   ac_status=$?
3838   grep -v '^ *+' conftest.er1 >conftest.err
3839   rm -f conftest.er1
3840   cat conftest.err >&5
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); } && {
3843          test -z "$ac_c_werror_flag" ||
3844          test ! -s conftest.err
3845        } && test -s conftest.$ac_objext; then
3846   ac_compiler_gnu=yes
3847 else
3848   echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3850
3851         ac_compiler_gnu=no
3852 fi
3853
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3856
3857 fi
3858 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3859 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3860 GCC=`test $ac_compiler_gnu = yes && echo yes`
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3864 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3865 if test "${ac_cv_prog_cc_g+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   ac_save_c_werror_flag=$ac_c_werror_flag
3869    ac_c_werror_flag=yes
3870    ac_cv_prog_cc_g=no
3871    CFLAGS="-g"
3872    cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3894   (eval "$ac_compile") 2>conftest.er1
3895   ac_status=$?
3896   grep -v '^ *+' conftest.er1 >conftest.err
3897   rm -f conftest.er1
3898   cat conftest.err >&5
3899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900   (exit $ac_status); } && {
3901          test -z "$ac_c_werror_flag" ||
3902          test ! -s conftest.err
3903        } && test -s conftest.$ac_objext; then
3904   ac_cv_prog_cc_g=yes
3905 else
3906   echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3908
3909         CFLAGS=""
3910       cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (ac_try="$ac_compile"
3927 case "(($ac_try" in
3928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929   *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932   (eval "$ac_compile") 2>conftest.er1
3933   ac_status=$?
3934   grep -v '^ *+' conftest.er1 >conftest.err
3935   rm -f conftest.er1
3936   cat conftest.err >&5
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); } && {
3939          test -z "$ac_c_werror_flag" ||
3940          test ! -s conftest.err
3941        } && test -s conftest.$ac_objext; then
3942   :
3943 else
3944   echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947         ac_c_werror_flag=$ac_save_c_werror_flag
3948          CFLAGS="-g"
3949          cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_compile") 2>conftest.er1
3972   ac_status=$?
3973   grep -v '^ *+' conftest.er1 >conftest.err
3974   rm -f conftest.er1
3975   cat conftest.err >&5
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } && {
3978          test -z "$ac_c_werror_flag" ||
3979          test ! -s conftest.err
3980        } && test -s conftest.$ac_objext; then
3981   ac_cv_prog_cc_g=yes
3982 else
3983   echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3985
3986
3987 fi
3988
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996    ac_c_werror_flag=$ac_save_c_werror_flag
3997 fi
3998 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3999 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4000 if test "$ac_test_CFLAGS" = set; then
4001   CFLAGS=$ac_save_CFLAGS
4002 elif test $ac_cv_prog_cc_g = yes; then
4003   if test "$GCC" = yes; then
4004     CFLAGS="-g -O2"
4005   else
4006     CFLAGS="-g"
4007   fi
4008 else
4009   if test "$GCC" = yes; then
4010     CFLAGS="-O2"
4011   else
4012     CFLAGS=
4013   fi
4014 fi
4015 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4016 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4017 if test "${ac_cv_prog_cc_c89+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   ac_cv_prog_cc_c89=no
4021 ac_save_CC=$CC
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #include <stdarg.h>
4029 #include <stdio.h>
4030 #include <sys/types.h>
4031 #include <sys/stat.h>
4032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4033 struct buf { int x; };
4034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4035 static char *e (p, i)
4036      char **p;
4037      int i;
4038 {
4039   return p[i];
4040 }
4041 static char *f (char * (*g) (char **, int), char **p, ...)
4042 {
4043   char *s;
4044   va_list v;
4045   va_start (v,p);
4046   s = g (p, va_arg (v,int));
4047   va_end (v);
4048   return s;
4049 }
4050
4051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4052    function prototypes and stuff, but not '\xHH' hex character constants.
4053    These don't provoke an error unfortunately, instead are silently treated
4054    as 'x'.  The following induces an error, until -std is added to get
4055    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4056    array size at least.  It's necessary to write '\x00'==0 to get something
4057    that's true only with -std.  */
4058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4059
4060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4061    inside strings and character constants.  */
4062 #define FOO(x) 'x'
4063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4064
4065 int test (int i, double x);
4066 struct s1 {int (*f) (int a);};
4067 struct s2 {int (*f) (double a);};
4068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4069 int argc;
4070 char **argv;
4071 int
4072 main ()
4073 {
4074 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4075   ;
4076   return 0;
4077 }
4078 _ACEOF
4079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4080         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4081 do
4082   CC="$ac_save_CC $ac_arg"
4083   rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_c_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   ac_cv_prog_cc_c89=$ac_arg
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext
4109   test "x$ac_cv_prog_cc_c89" != "xno" && break
4110 done
4111 rm -f conftest.$ac_ext
4112 CC=$ac_save_CC
4113
4114 fi
4115 # AC_CACHE_VAL
4116 case "x$ac_cv_prog_cc_c89" in
4117   x)
4118     { echo "$as_me:$LINENO: result: none needed" >&5
4119 echo "${ECHO_T}none needed" >&6; } ;;
4120   xno)
4121     { echo "$as_me:$LINENO: result: unsupported" >&5
4122 echo "${ECHO_T}unsupported" >&6; } ;;
4123   *)
4124     CC="$CC $ac_cv_prog_cc_c89"
4125     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4126 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4127 esac
4128
4129
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136 depcc="$CC"   am_compiler_list=
4137
4138 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4139 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4140 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4141   echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4144   # We make a subdir and do the tests there.  Otherwise we can end up
4145   # making bogus files that we don't know about and never remove.  For
4146   # instance it was reported that on HP-UX the gcc test will end up
4147   # making a dummy file named `D' -- because `-MD' means `put the output
4148   # in D'.
4149   mkdir conftest.dir
4150   # Copy depcomp to subdir because otherwise we won't find it if we're
4151   # using a relative directory.
4152   cp "$am_depcomp" conftest.dir
4153   cd conftest.dir
4154   # We will build objects and dependencies in a subdirectory because
4155   # it helps to detect inapplicable dependency modes.  For instance
4156   # both Tru64's cc and ICC support -MD to output dependencies as a
4157   # side effect of compilation, but ICC will put the dependencies in
4158   # the current directory while Tru64 will put them in the object
4159   # directory.
4160   mkdir sub
4161
4162   am_cv_CC_dependencies_compiler_type=none
4163   if test "$am_compiler_list" = ""; then
4164      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4165   fi
4166   for depmode in $am_compiler_list; do
4167     # Setup a source with many dependencies, because some compilers
4168     # like to wrap large dependency lists on column 80 (with \), and
4169     # we should not choose a depcomp mode which is confused by this.
4170     #
4171     # We need to recreate these files for each test, as the compiler may
4172     # overwrite some of them when testing with obscure command lines.
4173     # This happens at least with the AIX C compiler.
4174     : > sub/conftest.c
4175     for i in 1 2 3 4 5 6; do
4176       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4177       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4178       # Solaris 8's {/usr,}/bin/sh.
4179       touch sub/conftst$i.h
4180     done
4181     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4182
4183     case $depmode in
4184     nosideeffect)
4185       # after this tag, mechanisms are not by side-effect, so they'll
4186       # only be used when explicitly requested
4187       if test "x$enable_dependency_tracking" = xyes; then
4188         continue
4189       else
4190         break
4191       fi
4192       ;;
4193     none) break ;;
4194     esac
4195     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4196     # mode.  It turns out that the SunPro C++ compiler does not properly
4197     # handle `-M -o', and we need to detect this.
4198     if depmode=$depmode \
4199        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4200        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4201        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4202          >/dev/null 2>conftest.err &&
4203        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4204        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4205        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4206        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4207       # icc doesn't choke on unknown options, it will just issue warnings
4208       # or remarks (even with -Werror).  So we grep stderr for any message
4209       # that says an option was ignored or not supported.
4210       # When given -MP, icc 7.0 and 7.1 complain thusly:
4211       #   icc: Command line warning: ignoring option '-M'; no argument required
4212       # The diagnosis changed in icc 8.0:
4213       #   icc: Command line remark: option '-MP' not supported
4214       if (grep 'ignoring option' conftest.err ||
4215           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4216         am_cv_CC_dependencies_compiler_type=$depmode
4217         break
4218       fi
4219     fi
4220   done
4221
4222   cd ..
4223   rm -rf conftest.dir
4224 else
4225   am_cv_CC_dependencies_compiler_type=none
4226 fi
4227
4228 fi
4229 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4230 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4231 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4232
4233  if
4234   test "x$enable_dependency_tracking" != xno \
4235   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4236   am__fastdepCC_TRUE=
4237   am__fastdepCC_FALSE='#'
4238 else
4239   am__fastdepCC_TRUE='#'
4240   am__fastdepCC_FALSE=
4241 fi
4242
4243
4244 # Find a good install program.  We prefer a C program (faster),
4245 # so one script is as good as another.  But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4250 # AIX /bin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   # Account for people who put trailing slashes in PATH elements.
4269 case $as_dir/ in
4270   ./ | .// | /cC/* | \
4271   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4273   /usr/ucb/* ) ;;
4274   *)
4275     # OSF1 and SCO ODT 3.0 have their own names for install.
4276     # Don't use installbsd from OSF since it installs stuff as root
4277     # by default.
4278     for ac_prog in ginstall scoinst install; do
4279       for ac_exec_ext in '' $ac_executable_extensions; do
4280         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281           if test $ac_prog = install &&
4282             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283             # AIX install.  It has an incompatible calling convention.
4284             :
4285           elif test $ac_prog = install &&
4286             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287             # program-specific install script used by HP pwplus--don't use.
4288             :
4289           else
4290             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4291             break 3
4292           fi
4293         fi
4294       done
4295     done
4296     ;;
4297 esac
4298 done
4299 IFS=$as_save_IFS
4300
4301
4302 fi
4303   if test "${ac_cv_path_install+set}" = set; then
4304     INSTALL=$ac_cv_path_install
4305   else
4306     # As a last resort, use the slow shell script.  Don't cache a
4307     # value for INSTALL within a source directory, because that will
4308     # break other packages using the cache if that directory is
4309     # removed, or if the value is a relative name.
4310     INSTALL=$ac_install_sh
4311   fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4315
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4319
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4321
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4323
4324 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4326 LN_S=$as_ln_s
4327 if test "$LN_S" = "ln -s"; then
4328   { echo "$as_me:$LINENO: result: yes" >&5
4329 echo "${ECHO_T}yes" >&6; }
4330 else
4331   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4332 echo "${ECHO_T}no, using $LN_S" >&6; }
4333 fi
4334
4335 if test "x$CC" != xcc; then
4336   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4337 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4338 else
4339   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4340 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4341 fi
4342 set dummy $CC; ac_cc=`echo $2 |
4343                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4344 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353
4354 int
4355 main ()
4356 {
4357
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 # Make sure it works both with $CC and with simple cc.
4363 # We do the test twice because some compilers refuse to overwrite an
4364 # existing .o file with -o, though they will create one.
4365 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4366 rm -f conftest2.*
4367 if { (case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_try") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } &&
4376    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); };
4385 then
4386   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4387   if test "x$CC" != xcc; then
4388     # Test first that cc exists at all.
4389     if { ac_try='cc -c conftest.$ac_ext >&5'
4390   { (case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_try") 2>&5
4396   ac_status=$?
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); }; }; then
4399       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4400       rm -f conftest2.*
4401       if { (case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_try") 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); } &&
4410          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); };
4419       then
4420         # cc works too.
4421         :
4422       else
4423         # cc exists but doesn't like -o.
4424         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4425       fi
4426     fi
4427   fi
4428 else
4429   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4430 fi
4431 rm -f core conftest*
4432
4433 fi
4434 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4435   { echo "$as_me:$LINENO: result: yes" >&5
4436 echo "${ECHO_T}yes" >&6; }
4437 else
4438   { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4440
4441 cat >>confdefs.h <<\_ACEOF
4442 #define NO_MINUS_C_MINUS_O 1
4443 _ACEOF
4444
4445 fi
4446
4447 # FIXME: we rely on the cache variable name because
4448 # there is no other way.
4449 set dummy $CC
4450 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4451 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4452    # Losing compiler, so override with the script.
4453    # FIXME: It is wrong to rewrite CC.
4454    # But if we don't then we get into trouble of one sort or another.
4455    # A longer-term fix would be to have automake use am__CC in this case,
4456    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4457    CC="$am_aux_dir/compile $CC"
4458 fi
4459
4460
4461
4462
4463 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4464         if test -n "$ac_tool_prefix"; then
4465   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   case $PKG_CONFIG in
4473   [\\/]* | ?:[\\/]*)
4474   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4475   ;;
4476   *)
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490 IFS=$as_save_IFS
4491
4492   ;;
4493 esac
4494 fi
4495 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4496 if test -n "$PKG_CONFIG"; then
4497   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4498 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4499 else
4500   { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4502 fi
4503
4504
4505 fi
4506 if test -z "$ac_cv_path_PKG_CONFIG"; then
4507   ac_pt_PKG_CONFIG=$PKG_CONFIG
4508   # Extract the first word of "pkg-config", so it can be a program name with args.
4509 set dummy pkg-config; ac_word=$2
4510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4512 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ac_pt_PKG_CONFIG in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535   ;;
4536 esac
4537 fi
4538 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4539 if test -n "$ac_pt_PKG_CONFIG"; then
4540   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4541 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547   if test "x$ac_pt_PKG_CONFIG" = x; then
4548     PKG_CONFIG=""
4549   else
4550     case $cross_compiling:$ac_tool_warned in
4551 yes:)
4552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4553 whose name does not start with the host triplet.  If you think this
4554 configuration is useful to you, please write to autoconf@gnu.org." >&5
4555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4556 whose name does not start with the host triplet.  If you think this
4557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4558 ac_tool_warned=yes ;;
4559 esac
4560     PKG_CONFIG=$ac_pt_PKG_CONFIG
4561   fi
4562 else
4563   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4564 fi
4565
4566 fi
4567 if test -n "$PKG_CONFIG"; then
4568         _pkg_min_version=0.9.0
4569         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4570 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4571         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4572                 { echo "$as_me:$LINENO: result: yes" >&5
4573 echo "${ECHO_T}yes" >&6; }
4574         else
4575                 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4577                 PKG_CONFIG=""
4578         fi
4579
4580 fi
4581
4582
4583
4584
4585         { echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4586 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6; }
4587 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590
4591                 ac_ext=cpp
4592 ac_cpp='$CXXCPP $CPPFLAGS'
4593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4596
4597                 cat >conftest.$ac_ext <<_ACEOF
4598
4599                     #include <ostream>
4600
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (ac_try="$ac_compile"
4604 case "(($ac_try" in
4605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606   *) ac_try_echo=$ac_try;;
4607 esac
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609   (eval "$ac_compile") 2>conftest.er1
4610   ac_status=$?
4611   grep -v '^ *+' conftest.er1 >conftest.err
4612   rm -f conftest.er1
4613   cat conftest.err >&5
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); } && {
4616          test -z "$ac_cxx_werror_flag" ||
4617          test ! -s conftest.err
4618        } && test -s conftest.$ac_objext; then
4619   ensc_cv_cxx_cxxcompiler=yes
4620 else
4621   echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624         ensc_cv_cxx_cxxcompiler=no
4625 fi
4626
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628                 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634
4635 fi
4636 { echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4637 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6; }
4638
4639          if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4640   ENSC_HAVE_CXX_COMPILER_TRUE=
4641   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4642 else
4643   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4644   ENSC_HAVE_CXX_COMPILER_FALSE=
4645 fi
4646
4647
4648         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4649                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4650 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4651         fi
4652
4653
4654
4655
4656
4657         { echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4658 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6; }
4659 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662
4663                 ac_ext=c
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668
4669                 cat >conftest.$ac_ext <<_ACEOF
4670
4671 int main(int argc, char *argv) {
4672   struct { int x; }   a = { .x = argc };
4673   if (0) return 0;
4674   int b;
4675 }
4676
4677 _ACEOF
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4680 case "(($ac_try" in
4681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682   *) ac_try_echo=$ac_try;;
4683 esac
4684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4685   (eval "$ac_compile") 2>conftest.er1
4686   ac_status=$?
4687   grep -v '^ *+' conftest.er1 >conftest.err
4688   rm -f conftest.er1
4689   cat conftest.err >&5
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); } && {
4692          test -z "$ac_c_werror_flag" ||
4693          test ! -s conftest.err
4694        } && test -s conftest.$ac_objext; then
4695   ensc_cv_c99_c99compiler=yes
4696 else
4697   echo "$as_me: failed program was:" >&5
4698 sed 's/^/| /' conftest.$ac_ext >&5
4699
4700         ensc_cv_c99_c99compiler=no
4701 fi
4702
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704                 ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710
4711 fi
4712 { echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4713 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6; }
4714
4715          if test x"$ensc_cv_c99_c99compiler" = xyes; then
4716   ENSC_HAVE_C99_COMPILER_TRUE=
4717   ENSC_HAVE_C99_COMPILER_FALSE='#'
4718 else
4719   ENSC_HAVE_C99_COMPILER_TRUE='#'
4720   ENSC_HAVE_C99_COMPILER_FALSE=
4721 fi
4722
4723
4724         if test x"$ensc_cv_c99_c99compiler" = xno; then
4725                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4726 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4727         fi
4728
4729
4730
4731         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4732
4733
4734         ENSC_PATHPROG_SED=
4735
4736
4737
4738
4739
4740
4741
4742         if test -z ""; then
4743                 rq=true
4744         else
4745                 rq=false
4746         fi
4747
4748         if $rq; then
4749                 ensc_dflt=
4750         else
4751                 ensc_dflt=""
4752         fi
4753
4754         for ac_prog in awk
4755 do
4756   # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy $ac_prog; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_AWK+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $AWK in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $ensc_searchpath
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   ;;
4784 esac
4785 fi
4786 AWK=$ac_cv_path_AWK
4787 if test -n "$AWK"; then
4788   { echo "$as_me:$LINENO: result: $AWK" >&5
4789 echo "${ECHO_T}$AWK" >&6; }
4790 else
4791   { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4793 fi
4794
4795
4796   test -n "$AWK" && break
4797 done
4798 test -n "$AWK" || AWK="$ensc_dflt"
4799
4800
4801         if test -z "${AWK}" && $rq; then
4802                 if test -z ""; then
4803                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4804 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4805    { (exit 1); exit 1; }; }
4806                 else
4807                         { { echo "$as_me:$LINENO: error:
4808 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4809 " >&5
4810 echo "$as_me: error:
4811 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4812 " >&2;}
4813    { (exit 1); exit 1; }; }
4814                 fi
4815         fi
4816
4817         if test "x" = x; then
4818                 if test -h "${AWK}"; then
4819                         AWK=`readlink -f "${AWK}"`
4820                 fi
4821         fi
4822
4823         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4824
4825         test "${AWK}"
4826
4827
4828
4829
4830         if test -z ""; then
4831                 rq=true
4832         else
4833                 rq=false
4834         fi
4835
4836         if $rq; then
4837                 ensc_dflt=
4838         else
4839                 ensc_dflt=""
4840         fi
4841
4842         for ac_prog in cat
4843 do
4844   # Extract the first word of "$ac_prog", so it can be a program name with args.
4845 set dummy $ac_prog; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_path_CAT+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   case $CAT in
4852   [\\/]* | ?:[\\/]*)
4853   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4854   ;;
4855   *)
4856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $ensc_searchpath
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861   for ac_exec_ext in '' $ac_executable_extensions; do
4862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868 done
4869 IFS=$as_save_IFS
4870
4871   ;;
4872 esac
4873 fi
4874 CAT=$ac_cv_path_CAT
4875 if test -n "$CAT"; then
4876   { echo "$as_me:$LINENO: result: $CAT" >&5
4877 echo "${ECHO_T}$CAT" >&6; }
4878 else
4879   { echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6; }
4881 fi
4882
4883
4884   test -n "$CAT" && break
4885 done
4886 test -n "$CAT" || CAT="$ensc_dflt"
4887
4888
4889         if test -z "${CAT}" && $rq; then
4890                 if test -z ""; then
4891                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4892 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4893    { (exit 1); exit 1; }; }
4894                 else
4895                         { { echo "$as_me:$LINENO: error:
4896 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4897 " >&5
4898 echo "$as_me: error:
4899 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4900 " >&2;}
4901    { (exit 1); exit 1; }; }
4902                 fi
4903         fi
4904
4905         if test "x" = x; then
4906                 if test -h "${CAT}"; then
4907                         CAT=`readlink -f "${CAT}"`
4908                 fi
4909         fi
4910
4911         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4912
4913         test "${CAT}"
4914
4915
4916
4917
4918         if test -z ""; then
4919                 rq=true
4920         else
4921                 rq=false
4922         fi
4923
4924         if $rq; then
4925                 ensc_dflt=
4926         else
4927                 ensc_dflt=""
4928         fi
4929
4930         for ac_prog in chown
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_CHOWN+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   case $CHOWN in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $ensc_searchpath
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959   ;;
4960 esac
4961 fi
4962 CHOWN=$ac_cv_path_CHOWN
4963 if test -n "$CHOWN"; then
4964   { echo "$as_me:$LINENO: result: $CHOWN" >&5
4965 echo "${ECHO_T}$CHOWN" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972   test -n "$CHOWN" && break
4973 done
4974 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4975
4976
4977         if test -z "${CHOWN}" && $rq; then
4978                 if test -z ""; then
4979                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4980 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4981    { (exit 1); exit 1; }; }
4982                 else
4983                         { { echo "$as_me:$LINENO: error:
4984 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4985 " >&5
4986 echo "$as_me: error:
4987 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4988 " >&2;}
4989    { (exit 1); exit 1; }; }
4990                 fi
4991         fi
4992
4993         if test "x" = x; then
4994                 if test -h "${CHOWN}"; then
4995                         CHOWN=`readlink -f "${CHOWN}"`
4996                 fi
4997         fi
4998
4999         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
5000
5001         test "${CHOWN}"
5002
5003
5004
5005
5006         if test -z ""; then
5007                 rq=true
5008         else
5009                 rq=false
5010         fi
5011
5012         if $rq; then
5013                 ensc_dflt=
5014         else
5015                 ensc_dflt=""
5016         fi
5017
5018         for ac_prog in cmp
5019 do
5020   # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5024 if test "${ac_cv_path_CMP+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   case $CMP in
5028   [\\/]* | ?:[\\/]*)
5029   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5030   ;;
5031   *)
5032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $ensc_searchpath
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047   ;;
5048 esac
5049 fi
5050 CMP=$ac_cv_path_CMP
5051 if test -n "$CMP"; then
5052   { echo "$as_me:$LINENO: result: $CMP" >&5
5053 echo "${ECHO_T}$CMP" >&6; }
5054 else
5055   { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5057 fi
5058
5059
5060   test -n "$CMP" && break
5061 done
5062 test -n "$CMP" || CMP="$ensc_dflt"
5063
5064
5065         if test -z "${CMP}" && $rq; then
5066                 if test -z ""; then
5067                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
5068 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5069    { (exit 1); exit 1; }; }
5070                 else
5071                         { { echo "$as_me:$LINENO: error:
5072 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5073 " >&5
5074 echo "$as_me: error:
5075 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5076 " >&2;}
5077    { (exit 1); exit 1; }; }
5078                 fi
5079         fi
5080
5081         if test "x" = x; then
5082                 if test -h "${CMP}"; then
5083                         CMP=`readlink -f "${CMP}"`
5084                 fi
5085         fi
5086
5087         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
5088
5089         test "${CMP}"
5090
5091
5092
5093
5094         if test -z ""; then
5095                 rq=true
5096         else
5097                 rq=false
5098         fi
5099
5100         if $rq; then
5101                 ensc_dflt=
5102         else
5103                 ensc_dflt=""
5104         fi
5105
5106         for ac_prog in cp
5107 do
5108   # Extract the first word of "$ac_prog", so it can be a program name with args.
5109 set dummy $ac_prog; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_CP+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   case $CP in
5116   [\\/]* | ?:[\\/]*)
5117   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5118   ;;
5119   *)
5120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $ensc_searchpath
5122 do
5123   IFS=$as_save_IFS
5124   test -z "$as_dir" && as_dir=.
5125   for ac_exec_ext in '' $ac_executable_extensions; do
5126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132 done
5133 IFS=$as_save_IFS
5134
5135   ;;
5136 esac
5137 fi
5138 CP=$ac_cv_path_CP
5139 if test -n "$CP"; then
5140   { echo "$as_me:$LINENO: result: $CP" >&5
5141 echo "${ECHO_T}$CP" >&6; }
5142 else
5143   { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5145 fi
5146
5147
5148   test -n "$CP" && break
5149 done
5150 test -n "$CP" || CP="$ensc_dflt"
5151
5152
5153         if test -z "${CP}" && $rq; then
5154                 if test -z ""; then
5155                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
5156 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5157    { (exit 1); exit 1; }; }
5158                 else
5159                         { { echo "$as_me:$LINENO: error:
5160 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5161 " >&5
5162 echo "$as_me: error:
5163 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5164 " >&2;}
5165    { (exit 1); exit 1; }; }
5166                 fi
5167         fi
5168
5169         if test "x" = x; then
5170                 if test -h "${CP}"; then
5171                         CP=`readlink -f "${CP}"`
5172                 fi
5173         fi
5174
5175         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
5176
5177         test "${CP}"
5178
5179
5180
5181
5182         if test -z ""; then
5183                 rq=true
5184         else
5185                 rq=false
5186         fi
5187
5188         if $rq; then
5189                 ensc_dflt=
5190         else
5191                 ensc_dflt=""
5192         fi
5193
5194         for ac_prog in dirname
5195 do
5196   # Extract the first word of "$ac_prog", so it can be a program name with args.
5197 set dummy $ac_prog; ac_word=$2
5198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5200 if test "${ac_cv_path_DIRNAME+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   case $DIRNAME in
5204   [\\/]* | ?:[\\/]*)
5205   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5206   ;;
5207   *)
5208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $ensc_searchpath
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223   ;;
5224 esac
5225 fi
5226 DIRNAME=$ac_cv_path_DIRNAME
5227 if test -n "$DIRNAME"; then
5228   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5229 echo "${ECHO_T}$DIRNAME" >&6; }
5230 else
5231   { echo "$as_me:$LINENO: result: no" >&5
5232 echo "${ECHO_T}no" >&6; }
5233 fi
5234
5235
5236   test -n "$DIRNAME" && break
5237 done
5238 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
5239
5240
5241         if test -z "${DIRNAME}" && $rq; then
5242                 if test -z ""; then
5243                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
5244 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5245    { (exit 1); exit 1; }; }
5246                 else
5247                         { { echo "$as_me:$LINENO: error:
5248 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5249 " >&5
5250 echo "$as_me: error:
5251 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5252 " >&2;}
5253    { (exit 1); exit 1; }; }
5254                 fi
5255         fi
5256
5257         if test "x" = x; then
5258                 if test -h "${DIRNAME}"; then
5259                         DIRNAME=`readlink -f "${DIRNAME}"`
5260                 fi
5261         fi
5262
5263         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
5264
5265         test "${DIRNAME}"
5266
5267
5268
5269
5270         if test -z ""; then
5271                 rq=true
5272         else
5273                 rq=false
5274         fi
5275
5276         if $rq; then
5277                 ensc_dflt=
5278         else
5279                 ensc_dflt=""
5280         fi
5281
5282         for ac_prog in egrep
5283 do
5284   # Extract the first word of "$ac_prog", so it can be a program name with args.
5285 set dummy $ac_prog; ac_word=$2
5286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5288 if test "${ac_cv_path_EGREP+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   case $EGREP in
5292   [\\/]* | ?:[\\/]*)
5293   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
5294   ;;
5295   *)
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $ensc_searchpath
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301   for ac_exec_ext in '' $ac_executable_extensions; do
5302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
5304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305     break 2
5306   fi
5307 done
5308 done
5309 IFS=$as_save_IFS
5310
5311   ;;
5312 esac
5313 fi
5314 EGREP=$ac_cv_path_EGREP
5315 if test -n "$EGREP"; then
5316   { echo "$as_me:$LINENO: result: $EGREP" >&5
5317 echo "${ECHO_T}$EGREP" >&6; }
5318 else
5319   { echo "$as_me:$LINENO: result: no" >&5
5320 echo "${ECHO_T}no" >&6; }
5321 fi
5322
5323
5324   test -n "$EGREP" && break
5325 done
5326 test -n "$EGREP" || EGREP="$ensc_dflt"
5327
5328
5329         if test -z "${EGREP}" && $rq; then
5330                 if test -z ""; then
5331                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
5332 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5333    { (exit 1); exit 1; }; }
5334                 else
5335                         { { echo "$as_me:$LINENO: error:
5336 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5337 " >&5
5338 echo "$as_me: error:
5339 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5340 " >&2;}
5341    { (exit 1); exit 1; }; }
5342                 fi
5343         fi
5344
5345         if test "xno-deref" = x; then
5346                 if test -h "${EGREP}"; then
5347                         EGREP=`readlink -f "${EGREP}"`
5348                 fi
5349         fi
5350
5351         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
5352
5353         test "${EGREP}"
5354
5355
5356
5357
5358         if test -z ""; then
5359                 rq=true
5360         else
5361                 rq=false
5362         fi
5363
5364         if $rq; then
5365                 ensc_dflt=
5366         else
5367                 ensc_dflt=""
5368         fi
5369
5370         for ac_prog in env
5371 do
5372   # Extract the first word of "$ac_prog", so it can be a program name with args.
5373 set dummy $ac_prog; ac_word=$2
5374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_ENV+set}" = set; then
5377   echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379   case $ENV in
5380   [\\/]* | ?:[\\/]*)
5381   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
5382   ;;
5383   *)
5384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $ensc_searchpath
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
5392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399   ;;
5400 esac
5401 fi
5402 ENV=$ac_cv_path_ENV
5403 if test -n "$ENV"; then
5404   { echo "$as_me:$LINENO: result: $ENV" >&5
5405 echo "${ECHO_T}$ENV" >&6; }
5406 else
5407   { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5409 fi
5410
5411
5412   test -n "$ENV" && break
5413 done
5414 test -n "$ENV" || ENV="$ensc_dflt"
5415
5416
5417         if test -z "${ENV}" && $rq; then
5418                 if test -z ""; then
5419                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
5420 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5421    { (exit 1); exit 1; }; }
5422                 else
5423                         { { echo "$as_me:$LINENO: error:
5424 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5425 " >&5
5426 echo "$as_me: error:
5427 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5428 " >&2;}
5429    { (exit 1); exit 1; }; }
5430                 fi
5431         fi
5432
5433         if test "x" = x; then
5434                 if test -h "${ENV}"; then
5435                         ENV=`readlink -f "${ENV}"`
5436                 fi
5437         fi
5438
5439         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
5440
5441         test "${ENV}"
5442
5443
5444
5445
5446         if test -z ""; then
5447                 rq=true
5448         else
5449                 rq=false
5450         fi
5451
5452         if $rq; then
5453                 ensc_dflt=
5454         else
5455                 ensc_dflt=""
5456         fi
5457
5458         for ac_prog in grep
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464 if test "${ac_cv_path_GREP+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   case $GREP in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $ensc_searchpath
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477   for ac_exec_ext in '' $ac_executable_extensions; do
5478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487   ;;
5488 esac
5489 fi
5490 GREP=$ac_cv_path_GREP
5491 if test -n "$GREP"; then
5492   { echo "$as_me:$LINENO: result: $GREP" >&5
5493 echo "${ECHO_T}$GREP" >&6; }
5494 else
5495   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 fi
5498
5499
5500   test -n "$GREP" && break
5501 done
5502 test -n "$GREP" || GREP="$ensc_dflt"
5503
5504
5505         if test -z "${GREP}" && $rq; then
5506                 if test -z ""; then
5507                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
5508 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5509    { (exit 1); exit 1; }; }
5510                 else
5511                         { { echo "$as_me:$LINENO: error:
5512 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5513 " >&5
5514 echo "$as_me: error:
5515 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5516 " >&2;}
5517    { (exit 1); exit 1; }; }
5518                 fi
5519         fi
5520
5521         if test "x" = x; then
5522                 if test -h "${GREP}"; then
5523                         GREP=`readlink -f "${GREP}"`
5524                 fi
5525         fi
5526
5527         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
5528
5529         test "${GREP}"
5530
5531
5532
5533
5534         if test -z ""; then
5535                 rq=true
5536         else
5537                 rq=false
5538         fi
5539
5540         if $rq; then
5541                 ensc_dflt=
5542         else
5543                 ensc_dflt=""
5544         fi
5545
5546         for ac_prog in ln
5547 do
5548   # Extract the first word of "$ac_prog", so it can be a program name with args.
5549 set dummy $ac_prog; ac_word=$2
5550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5552 if test "${ac_cv_path_LN+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   case $LN in
5556   [\\/]* | ?:[\\/]*)
5557   ac_cv_path_LN="$LN" # Let the user override the test with a path.
5558   ;;
5559   *)
5560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $ensc_searchpath
5562 do
5563   IFS=$as_save_IFS
5564   test -z "$as_dir" && as_dir=.
5565   for ac_exec_ext in '' $ac_executable_extensions; do
5566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569     break 2
5570   fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575   ;;
5576 esac
5577 fi
5578 LN=$ac_cv_path_LN
5579 if test -n "$LN"; then
5580   { echo "$as_me:$LINENO: result: $LN" >&5
5581 echo "${ECHO_T}$LN" >&6; }
5582 else
5583   { echo "$as_me:$LINENO: result: no" >&5
5584 echo "${ECHO_T}no" >&6; }
5585 fi
5586
5587
5588   test -n "$LN" && break
5589 done
5590 test -n "$LN" || LN="$ensc_dflt"
5591
5592
5593         if test -z "${LN}" && $rq; then
5594                 if test -z ""; then
5595                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
5596 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5597    { (exit 1); exit 1; }; }
5598                 else
5599                         { { echo "$as_me:$LINENO: error:
5600 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5601 " >&5
5602 echo "$as_me: error:
5603 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5604 " >&2;}
5605    { (exit 1); exit 1; }; }
5606                 fi
5607         fi
5608
5609         if test "x" = x; then
5610                 if test -h "${LN}"; then
5611                         LN=`readlink -f "${LN}"`
5612                 fi
5613         fi
5614
5615         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
5616
5617         test "${LN}"
5618
5619
5620
5621
5622         if test -z ""; then
5623                 rq=true
5624         else
5625                 rq=false
5626         fi
5627
5628         if $rq; then
5629                 ensc_dflt=
5630         else
5631                 ensc_dflt=""
5632         fi
5633
5634         for ac_prog in mkdir
5635 do
5636   # Extract the first word of "$ac_prog", so it can be a program name with args.
5637 set dummy $ac_prog; ac_word=$2
5638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5640 if test "${ac_cv_path_MKDIR+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   case $MKDIR in
5644   [\\/]* | ?:[\\/]*)
5645   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5646   ;;
5647   *)
5648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $ensc_searchpath
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653   for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660 done
5661 IFS=$as_save_IFS
5662
5663   ;;
5664 esac
5665 fi
5666 MKDIR=$ac_cv_path_MKDIR
5667 if test -n "$MKDIR"; then
5668   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5669 echo "${ECHO_T}$MKDIR" >&6; }
5670 else
5671   { echo "$as_me:$LINENO: result: no" >&5
5672 echo "${ECHO_T}no" >&6; }
5673 fi
5674
5675
5676   test -n "$MKDIR" && break
5677 done
5678 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5679
5680
5681         if test -z "${MKDIR}" && $rq; then
5682                 if test -z ""; then
5683                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5684 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5685    { (exit 1); exit 1; }; }
5686                 else
5687                         { { echo "$as_me:$LINENO: error:
5688 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5689 " >&5
5690 echo "$as_me: error:
5691 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5692 " >&2;}
5693    { (exit 1); exit 1; }; }
5694                 fi
5695         fi
5696
5697         if test "x" = x; then
5698                 if test -h "${MKDIR}"; then
5699                         MKDIR=`readlink -f "${MKDIR}"`
5700                 fi
5701         fi
5702
5703         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5704
5705         test "${MKDIR}"
5706
5707
5708
5709
5710         if test -z ""; then
5711                 rq=true
5712         else
5713                 rq=false
5714         fi
5715
5716         if $rq; then
5717                 ensc_dflt=
5718         else
5719                 ensc_dflt=""
5720         fi
5721
5722         for ac_prog in mkfifo
5723 do
5724   # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5728 if test "${ac_cv_path_MKFIFO+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   case $MKFIFO in
5732   [\\/]* | ?:[\\/]*)
5733   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5734   ;;
5735   *)
5736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $ensc_searchpath
5738 do
5739   IFS=$as_save_IFS
5740   test -z "$as_dir" && as_dir=.
5741   for ac_exec_ext in '' $ac_executable_extensions; do
5742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5745     break 2
5746   fi
5747 done
5748 done
5749 IFS=$as_save_IFS
5750
5751   ;;
5752 esac
5753 fi
5754 MKFIFO=$ac_cv_path_MKFIFO
5755 if test -n "$MKFIFO"; then
5756   { echo "$as_me:$LINENO: result: $MKFIFO" >&5
5757 echo "${ECHO_T}$MKFIFO" >&6; }
5758 else
5759   { echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6; }
5761 fi
5762
5763
5764   test -n "$MKFIFO" && break
5765 done
5766 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5767
5768
5769         if test -z "${MKFIFO}" && $rq; then
5770                 if test -z ""; then
5771                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5772 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5773    { (exit 1); exit 1; }; }
5774                 else
5775                         { { echo "$as_me:$LINENO: error:
5776 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5777 " >&5
5778 echo "$as_me: error:
5779 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5780 " >&2;}
5781    { (exit 1); exit 1; }; }
5782                 fi
5783         fi
5784
5785         if test "x" = x; then
5786                 if test -h "${MKFIFO}"; then
5787                         MKFIFO=`readlink -f "${MKFIFO}"`
5788                 fi
5789         fi
5790
5791         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5792
5793         test "${MKFIFO}"
5794
5795
5796
5797
5798         if test -z ""; then
5799                 rq=true
5800         else
5801                 rq=false
5802         fi
5803
5804         if $rq; then
5805                 ensc_dflt=
5806         else
5807                 ensc_dflt=""
5808         fi
5809
5810         for ac_prog in mktemp
5811 do
5812   # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_path_MKTEMP+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   case $MKTEMP in
5820   [\\/]* | ?:[\\/]*)
5821   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5822   ;;
5823   *)
5824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $ensc_searchpath
5826 do
5827   IFS=$as_save_IFS
5828   test -z "$as_dir" && as_dir=.
5829   for ac_exec_ext in '' $ac_executable_extensions; do
5830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836 done
5837 IFS=$as_save_IFS
5838
5839   ;;
5840 esac
5841 fi
5842 MKTEMP=$ac_cv_path_MKTEMP
5843 if test -n "$MKTEMP"; then
5844   { echo "$as_me:$LINENO: result: $MKTEMP" >&5
5845 echo "${ECHO_T}$MKTEMP" >&6; }
5846 else
5847   { echo "$as_me:$LINENO: result: no" >&5
5848 echo "${ECHO_T}no" >&6; }
5849 fi
5850
5851
5852   test -n "$MKTEMP" && break
5853 done
5854 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5855
5856
5857         if test -z "${MKTEMP}" && $rq; then
5858                 if test -z ""; then
5859                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5860 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5861    { (exit 1); exit 1; }; }
5862                 else
5863                         { { echo "$as_me:$LINENO: error:
5864 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5865 " >&5
5866 echo "$as_me: error:
5867 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5868 " >&2;}
5869    { (exit 1); exit 1; }; }
5870                 fi
5871         fi
5872
5873         if test "x" = x; then
5874                 if test -h "${MKTEMP}"; then
5875                         MKTEMP=`readlink -f "${MKTEMP}"`
5876                 fi
5877         fi
5878
5879         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5880
5881         test "${MKTEMP}"
5882
5883
5884
5885
5886         if test -z ""; then
5887                 rq=true
5888         else
5889                 rq=false
5890         fi
5891
5892         if $rq; then
5893                 ensc_dflt=
5894         else
5895                 ensc_dflt=""
5896         fi
5897
5898         for ac_prog in mount
5899 do
5900   # Extract the first word of "$ac_prog", so it can be a program name with args.
5901 set dummy $ac_prog; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_MOUNT+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   case $MOUNT in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $ensc_searchpath
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927   ;;
5928 esac
5929 fi
5930 MOUNT=$ac_cv_path_MOUNT
5931 if test -n "$MOUNT"; then
5932   { echo "$as_me:$LINENO: result: $MOUNT" >&5
5933 echo "${ECHO_T}$MOUNT" >&6; }
5934 else
5935   { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939
5940   test -n "$MOUNT" && break
5941 done
5942 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5943
5944
5945         if test -z "${MOUNT}" && $rq; then
5946                 if test -z ""; then
5947                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5948 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5949    { (exit 1); exit 1; }; }
5950                 else
5951                         { { echo "$as_me:$LINENO: error:
5952 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5953 " >&5
5954 echo "$as_me: error:
5955 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5956 " >&2;}
5957    { (exit 1); exit 1; }; }
5958                 fi
5959         fi
5960
5961         if test "x" = x; then
5962                 if test -h "${MOUNT}"; then
5963                         MOUNT=`readlink -f "${MOUNT}"`
5964                 fi
5965         fi
5966
5967         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5968
5969         test "${MOUNT}"
5970
5971
5972
5973
5974         if test -z ""; then
5975                 rq=true
5976         else
5977                 rq=false
5978         fi
5979
5980         if $rq; then
5981                 ensc_dflt=
5982         else
5983                 ensc_dflt=""
5984         fi
5985
5986         for ac_prog in mv
5987 do
5988   # Extract the first word of "$ac_prog", so it can be a program name with args.
5989 set dummy $ac_prog; ac_word=$2
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5992 if test "${ac_cv_path_MV+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   case $MV in
5996   [\\/]* | ?:[\\/]*)
5997   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5998   ;;
5999   *)
6000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $ensc_searchpath
6002 do
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   for ac_exec_ext in '' $ac_executable_extensions; do
6006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6007     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012 done
6013 IFS=$as_save_IFS
6014
6015   ;;
6016 esac
6017 fi
6018 MV=$ac_cv_path_MV
6019 if test -n "$MV"; then
6020   { echo "$as_me:$LINENO: result: $MV" >&5
6021 echo "${ECHO_T}$MV" >&6; }
6022 else
6023   { echo "$as_me:$LINENO: result: no" >&5
6024 echo "${ECHO_T}no" >&6; }
6025 fi
6026
6027
6028   test -n "$MV" && break
6029 done
6030 test -n "$MV" || MV="$ensc_dflt"
6031
6032
6033         if test -z "${MV}" && $rq; then
6034                 if test -z ""; then
6035                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
6036 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6037    { (exit 1); exit 1; }; }
6038                 else
6039                         { { echo "$as_me:$LINENO: error:
6040 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
6041 " >&5
6042 echo "$as_me: error:
6043 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
6044 " >&2;}
6045    { (exit 1); exit 1; }; }
6046                 fi
6047         fi
6048
6049         if test "x" = x; then
6050                 if test -h "${MV}"; then
6051                         MV=`readlink -f "${MV}"`
6052                 fi
6053         fi
6054
6055         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
6056
6057         test "${MV}"
6058
6059
6060
6061
6062         if test -z ""; then
6063                 rq=true
6064         else
6065                 rq=false
6066         fi
6067
6068         if $rq; then
6069                 ensc_dflt=
6070         else
6071                 ensc_dflt=""
6072         fi
6073
6074         for ac_prog in nice
6075 do
6076   # Extract the first word of "$ac_prog", so it can be a program name with args.
6077 set dummy $ac_prog; ac_word=$2
6078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6080 if test "${ac_cv_path_NICE+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   case $NICE in
6084   [\\/]* | ?:[\\/]*)
6085   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
6086   ;;
6087   *)
6088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $ensc_searchpath
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093   for ac_exec_ext in '' $ac_executable_extensions; do
6094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
6096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103   ;;
6104 esac
6105 fi
6106 NICE=$ac_cv_path_NICE
6107 if test -n "$NICE"; then
6108   { echo "$as_me:$LINENO: result: $NICE" >&5
6109 echo "${ECHO_T}$NICE" >&6; }
6110 else
6111   { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6113 fi
6114
6115
6116   test -n "$NICE" && break
6117 done
6118 test -n "$NICE" || NICE="$ensc_dflt"
6119
6120
6121         if test -z "${NICE}" && $rq; then
6122                 if test -z ""; then
6123                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
6124 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6125    { (exit 1); exit 1; }; }
6126                 else
6127                         { { echo "$as_me:$LINENO: error:
6128 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6129 " >&5
6130 echo "$as_me: error:
6131 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6132 " >&2;}
6133    { (exit 1); exit 1; }; }
6134                 fi
6135         fi
6136
6137         if test "x" = x; then
6138                 if test -h "${NICE}"; then
6139                         NICE=`readlink -f "${NICE}"`
6140                 fi
6141         fi
6142
6143         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
6144
6145         test "${NICE}"
6146
6147
6148
6149
6150         if test -z ""; then
6151                 rq=true
6152         else
6153                 rq=false
6154         fi
6155
6156         if $rq; then
6157                 ensc_dflt=
6158         else
6159                 ensc_dflt=""
6160         fi
6161
6162         for ac_prog in ps
6163 do
6164   # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_path_PS+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   case $PS in
6172   [\\/]* | ?:[\\/]*)
6173   ac_cv_path_PS="$PS" # Let the user override the test with a path.
6174   ;;
6175   *)
6176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $ensc_searchpath
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191   ;;
6192 esac
6193 fi
6194 PS=$ac_cv_path_PS
6195 if test -n "$PS"; then
6196   { echo "$as_me:$LINENO: result: $PS" >&5
6197 echo "${ECHO_T}$PS" >&6; }
6198 else
6199   { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6201 fi
6202
6203
6204   test -n "$PS" && break
6205 done
6206 test -n "$PS" || PS="$ensc_dflt"
6207
6208
6209         if test -z "${PS}" && $rq; then
6210                 if test -z ""; then
6211                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
6212 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6213    { (exit 1); exit 1; }; }
6214                 else
6215                         { { echo "$as_me:$LINENO: error:
6216 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6217 " >&5
6218 echo "$as_me: error:
6219 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6220 " >&2;}
6221    { (exit 1); exit 1; }; }
6222                 fi
6223         fi
6224
6225         if test "x" = x; then
6226                 if test -h "${PS}"; then
6227                         PS=`readlink -f "${PS}"`
6228                 fi
6229         fi
6230
6231         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
6232
6233         test "${PS}"
6234
6235
6236
6237
6238         if test -z ""; then
6239                 rq=true
6240         else
6241                 rq=false
6242         fi
6243
6244         if $rq; then
6245                 ensc_dflt=
6246         else
6247                 ensc_dflt=""
6248         fi
6249
6250         for ac_prog in rm
6251 do
6252   # Extract the first word of "$ac_prog", so it can be a program name with args.
6253 set dummy $ac_prog; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_path_RM+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259   case $RM in
6260   [\\/]* | ?:[\\/]*)
6261   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6262   ;;
6263   *)
6264   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $ensc_searchpath
6266 do
6267   IFS=$as_save_IFS
6268   test -z "$as_dir" && as_dir=.
6269   for ac_exec_ext in '' $ac_executable_extensions; do
6270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274   fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279   ;;
6280 esac
6281 fi
6282 RM=$ac_cv_path_RM
6283 if test -n "$RM"; then
6284   { echo "$as_me:$LINENO: result: $RM" >&5
6285 echo "${ECHO_T}$RM" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292   test -n "$RM" && break
6293 done
6294 test -n "$RM" || RM="$ensc_dflt"
6295
6296
6297         if test -z "${RM}" && $rq; then
6298                 if test -z ""; then
6299                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
6300 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6301    { (exit 1); exit 1; }; }
6302                 else
6303                         { { echo "$as_me:$LINENO: error:
6304 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6305 " >&5
6306 echo "$as_me: error:
6307 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6308 " >&2;}
6309    { (exit 1); exit 1; }; }
6310                 fi
6311         fi
6312
6313         if test "x" = x; then
6314                 if test -h "${RM}"; then
6315                         RM=`readlink -f "${RM}"`
6316                 fi
6317         fi
6318
6319         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
6320
6321         test "${RM}"
6322
6323
6324
6325
6326         if test -z ""; then
6327                 rq=true
6328         else
6329                 rq=false
6330         fi
6331
6332         if $rq; then
6333                 ensc_dflt=
6334         else
6335                 ensc_dflt=""
6336         fi
6337
6338         for ac_prog in rmdir
6339 do
6340   # Extract the first word of "$ac_prog", so it can be a program name with args.
6341 set dummy $ac_prog; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_RMDIR+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   case $RMDIR in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $ensc_searchpath
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367   ;;
6368 esac
6369 fi
6370 RMDIR=$ac_cv_path_RMDIR
6371 if test -n "$RMDIR"; then
6372   { echo "$as_me:$LINENO: result: $RMDIR" >&5
6373 echo "${ECHO_T}$RMDIR" >&6; }
6374 else
6375   { echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6; }
6377 fi
6378
6379
6380   test -n "$RMDIR" && break
6381 done
6382 test -n "$RMDIR" || RMDIR="$ensc_dflt"
6383
6384
6385         if test -z "${RMDIR}" && $rq; then
6386                 if test -z ""; then
6387                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
6388 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6389    { (exit 1); exit 1; }; }
6390                 else
6391                         { { echo "$as_me:$LINENO: error:
6392 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6393 " >&5
6394 echo "$as_me: error:
6395 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6396 " >&2;}
6397    { (exit 1); exit 1; }; }
6398                 fi
6399         fi
6400
6401         if test "x" = x; then
6402                 if test -h "${RMDIR}"; then
6403                         RMDIR=`readlink -f "${RMDIR}"`
6404                 fi
6405         fi
6406
6407         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
6408
6409         test "${RMDIR}"
6410
6411
6412
6413
6414         if test -z ""; then
6415                 rq=true
6416         else
6417                 rq=false
6418         fi
6419
6420         if $rq; then
6421                 ensc_dflt=
6422         else
6423                 ensc_dflt=""
6424         fi
6425
6426         for ac_prog in sed
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6432 if test "${ac_cv_path_SED+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   case $SED in
6436   [\\/]* | ?:[\\/]*)
6437   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6438   ;;
6439   *)
6440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $ensc_searchpath
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455   ;;
6456 esac
6457 fi
6458 SED=$ac_cv_path_SED
6459 if test -n "$SED"; then
6460   { echo "$as_me:$LINENO: result: $SED" >&5
6461 echo "${ECHO_T}$SED" >&6; }
6462 else
6463   { echo "$as_me:$LINENO: result: no" >&5
6464 echo "${ECHO_T}no" >&6; }
6465 fi
6466
6467
6468   test -n "$SED" && break
6469 done
6470 test -n "$SED" || SED="$ensc_dflt"
6471
6472
6473         if test -z "${SED}" && $rq; then
6474                 if test -z ""; then
6475                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
6476 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6477    { (exit 1); exit 1; }; }
6478                 else
6479                         { { echo "$as_me:$LINENO: error:
6480 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6481 " >&5
6482 echo "$as_me: error:
6483 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6484 " >&2;}
6485    { (exit 1); exit 1; }; }
6486                 fi
6487         fi
6488
6489         if test "x" = x; then
6490                 if test -h "${SED}"; then
6491                         SED=`readlink -f "${SED}"`
6492                 fi
6493         fi
6494
6495         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
6496
6497         test "${SED}"
6498
6499
6500
6501
6502         if test -z ""; then
6503                 rq=true
6504         else
6505                 rq=false
6506         fi
6507
6508         if $rq; then
6509                 ensc_dflt=
6510         else
6511                 ensc_dflt=""
6512         fi
6513
6514         for ac_prog in sh
6515 do
6516   # Extract the first word of "$ac_prog", so it can be a program name with args.
6517 set dummy $ac_prog; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_path_SH+set}" = set; then
6521   echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523   case $SH in
6524   [\\/]* | ?:[\\/]*)
6525   ac_cv_path_SH="$SH" # Let the user override the test with a path.
6526   ;;
6527   *)
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $ensc_searchpath
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543   ;;
6544 esac
6545 fi
6546 SH=$ac_cv_path_SH
6547 if test -n "$SH"; then
6548   { echo "$as_me:$LINENO: result: $SH" >&5
6549 echo "${ECHO_T}$SH" >&6; }
6550 else
6551   { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6553 fi
6554
6555
6556   test -n "$SH" && break
6557 done
6558 test -n "$SH" || SH="$ensc_dflt"
6559
6560
6561         if test -z "${SH}" && $rq; then
6562                 if test -z ""; then
6563                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
6564 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6565    { (exit 1); exit 1; }; }
6566                 else
6567                         { { echo "$as_me:$LINENO: error:
6568 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6569 " >&5
6570 echo "$as_me: error:
6571 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6572 " >&2;}
6573    { (exit 1); exit 1; }; }
6574                 fi
6575         fi
6576
6577         if test "x" = x; then
6578                 if test -h "${SH}"; then
6579                         SH=`readlink -f "${SH}"`
6580                 fi
6581         fi
6582
6583         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
6584
6585         test "${SH}"
6586
6587
6588
6589
6590         if test -z ""; then
6591                 rq=true
6592         else
6593                 rq=false
6594         fi
6595
6596         if $rq; then
6597                 ensc_dflt=
6598         else
6599                 ensc_dflt=""
6600         fi
6601
6602         for ac_prog in tac
6603 do
6604   # Extract the first word of "$ac_prog", so it can be a program name with args.
6605 set dummy $ac_prog; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_TAC+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $TAC in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $ensc_searchpath
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   ;;
6632 esac
6633 fi
6634 TAC=$ac_cv_path_TAC
6635 if test -n "$TAC"; then
6636   { echo "$as_me:$LINENO: result: $TAC" >&5
6637 echo "${ECHO_T}$TAC" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644   test -n "$TAC" && break
6645 done
6646 test -n "$TAC" || TAC="$ensc_dflt"
6647
6648
6649         if test -z "${TAC}" && $rq; then
6650                 if test -z ""; then
6651                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
6652 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6653    { (exit 1); exit 1; }; }
6654                 else
6655                         { { echo "$as_me:$LINENO: error:
6656 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6657 " >&5
6658 echo "$as_me: error:
6659 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6660 " >&2;}
6661    { (exit 1); exit 1; }; }
6662                 fi
6663         fi
6664
6665         if test "x" = x; then
6666                 if test -h "${TAC}"; then
6667                         TAC=`readlink -f "${TAC}"`
6668                 fi
6669         fi
6670
6671         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
6672
6673         test "${TAC}"
6674
6675
6676
6677
6678         if test -z ""; then
6679                 rq=true
6680         else
6681                 rq=false
6682         fi
6683
6684         if $rq; then
6685                 ensc_dflt=
6686         else
6687                 ensc_dflt=""
6688         fi
6689
6690         for ac_prog in tar
6691 do
6692   # Extract the first word of "$ac_prog", so it can be a program name with args.
6693 set dummy $ac_prog; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_path_TAR+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   case $TAR in
6700   [\\/]* | ?:[\\/]*)
6701   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6702   ;;
6703   *)
6704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $ensc_searchpath
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719   ;;
6720 esac
6721 fi
6722 TAR=$ac_cv_path_TAR
6723 if test -n "$TAR"; then
6724   { echo "$as_me:$LINENO: result: $TAR" >&5
6725 echo "${ECHO_T}$TAR" >&6; }
6726 else
6727   { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6729 fi
6730
6731
6732   test -n "$TAR" && break
6733 done
6734 test -n "$TAR" || TAR="$ensc_dflt"
6735
6736
6737         if test -z "${TAR}" && $rq; then
6738                 if test -z ""; then
6739                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6740 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6741    { (exit 1); exit 1; }; }
6742                 else
6743                         { { echo "$as_me:$LINENO: error:
6744 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6745 " >&5
6746 echo "$as_me: error:
6747 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6748 " >&2;}
6749    { (exit 1); exit 1; }; }
6750                 fi
6751         fi
6752
6753         if test "x" = x; then
6754                 if test -h "${TAR}"; then
6755                         TAR=`readlink -f "${TAR}"`
6756                 fi
6757         fi
6758
6759         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6760
6761         test "${TAR}"
6762
6763
6764
6765
6766         if test -z ""; then
6767                 rq=true
6768         else
6769                 rq=false
6770         fi
6771
6772         if $rq; then
6773                 ensc_dflt=
6774         else
6775                 ensc_dflt=""
6776         fi
6777
6778         for ac_prog in touch
6779 do
6780   # Extract the first word of "$ac_prog", so it can be a program name with args.
6781 set dummy $ac_prog; ac_word=$2
6782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6784 if test "${ac_cv_path_TOUCH+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   case $TOUCH in
6788   [\\/]* | ?:[\\/]*)
6789   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6790   ;;
6791   *)
6792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 for as_dir in $ensc_searchpath
6794 do
6795   IFS=$as_save_IFS
6796   test -z "$as_dir" && as_dir=.
6797   for ac_exec_ext in '' $ac_executable_extensions; do
6798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6799     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801     break 2
6802   fi
6803 done
6804 done
6805 IFS=$as_save_IFS
6806
6807   ;;
6808 esac
6809 fi
6810 TOUCH=$ac_cv_path_TOUCH
6811 if test -n "$TOUCH"; then
6812   { echo "$as_me:$LINENO: result: $TOUCH" >&5
6813 echo "${ECHO_T}$TOUCH" >&6; }
6814 else
6815   { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6817 fi
6818
6819
6820   test -n "$TOUCH" && break
6821 done
6822 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6823
6824
6825         if test -z "${TOUCH}" && $rq; then
6826                 if test -z ""; then
6827                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6828 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6829    { (exit 1); exit 1; }; }
6830                 else
6831                         { { echo "$as_me:$LINENO: error:
6832 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6833 " >&5
6834 echo "$as_me: error:
6835 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6836 " >&2;}
6837    { (exit 1); exit 1; }; }
6838                 fi
6839         fi
6840
6841         if test "x" = x; then
6842                 if test -h "${TOUCH}"; then
6843                         TOUCH=`readlink -f "${TOUCH}"`
6844                 fi
6845         fi
6846
6847         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6848
6849         test "${TOUCH}"
6850
6851
6852
6853
6854         if test -z ""; then
6855                 rq=true
6856         else
6857                 rq=false
6858         fi
6859
6860         if $rq; then
6861                 ensc_dflt=
6862         else
6863                 ensc_dflt=""
6864         fi
6865
6866         for ac_prog in tty
6867 do
6868   # Extract the first word of "$ac_prog", so it can be a program name with args.
6869 set dummy $ac_prog; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_path_TTY+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   case $TTY in
6876   [\\/]* | ?:[\\/]*)
6877   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6878   ;;
6879   *)
6880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $ensc_searchpath
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885   for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895   ;;
6896 esac
6897 fi
6898 TTY=$ac_cv_path_TTY
6899 if test -n "$TTY"; then
6900   { echo "$as_me:$LINENO: result: $TTY" >&5
6901 echo "${ECHO_T}$TTY" >&6; }
6902 else
6903   { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907
6908   test -n "$TTY" && break
6909 done
6910 test -n "$TTY" || TTY="$ensc_dflt"
6911
6912
6913         if test -z "${TTY}" && $rq; then
6914                 if test -z ""; then
6915                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6916 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6917    { (exit 1); exit 1; }; }
6918                 else
6919                         { { echo "$as_me:$LINENO: error:
6920 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6921 " >&5
6922 echo "$as_me: error:
6923 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6924 " >&2;}
6925    { (exit 1); exit 1; }; }
6926                 fi
6927         fi
6928
6929         if test "x" = x; then
6930                 if test -h "${TTY}"; then
6931                         TTY=`readlink -f "${TTY}"`
6932                 fi
6933         fi
6934
6935         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6936
6937         test "${TTY}"
6938
6939
6940
6941
6942         if test -z ""; then
6943                 rq=true
6944         else
6945                 rq=false
6946         fi
6947
6948         if $rq; then
6949                 ensc_dflt=
6950         else
6951                 ensc_dflt=""
6952         fi
6953
6954         for ac_prog in umount
6955 do
6956   # Extract the first word of "$ac_prog", so it can be a program name with args.
6957 set dummy $ac_prog; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_path_UMOUNT+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   case $UMOUNT in
6964   [\\/]* | ?:[\\/]*)
6965   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6966   ;;
6967   *)
6968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $ensc_searchpath
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973   for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980 done
6981 IFS=$as_save_IFS
6982
6983   ;;
6984 esac
6985 fi
6986 UMOUNT=$ac_cv_path_UMOUNT
6987 if test -n "$UMOUNT"; then
6988   { echo "$as_me:$LINENO: result: $UMOUNT" >&5
6989 echo "${ECHO_T}$UMOUNT" >&6; }
6990 else
6991   { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6993 fi
6994
6995
6996   test -n "$UMOUNT" && break
6997 done
6998 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6999
7000
7001         if test -z "${UMOUNT}" && $rq; then
7002                 if test -z ""; then
7003                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
7004 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7005    { (exit 1); exit 1; }; }
7006                 else
7007                         { { echo "$as_me:$LINENO: error:
7008 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
7009 " >&5
7010 echo "$as_me: error:
7011 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
7012 " >&2;}
7013    { (exit 1); exit 1; }; }
7014                 fi
7015         fi
7016
7017         if test "x" = x; then
7018                 if test -h "${UMOUNT}"; then
7019                         UMOUNT=`readlink -f "${UMOUNT}"`
7020                 fi
7021         fi
7022
7023         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
7024
7025         test "${UMOUNT}"
7026
7027
7028
7029
7030         if test -z ""; then
7031                 rq=true
7032         else
7033                 rq=false
7034         fi
7035
7036         if $rq; then
7037                 ensc_dflt=
7038         else
7039                 ensc_dflt=""
7040         fi
7041
7042         for ac_prog in wc
7043 do
7044   # Extract the first word of "$ac_prog", so it can be a program name with args.
7045 set dummy $ac_prog; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_path_WC+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   case $WC in
7052   [\\/]* | ?:[\\/]*)
7053   ac_cv_path_WC="$WC" # Let the user override the test with a path.
7054   ;;
7055   *)
7056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $ensc_searchpath
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061   for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
7064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071   ;;
7072 esac
7073 fi
7074 WC=$ac_cv_path_WC
7075 if test -n "$WC"; then
7076   { echo "$as_me:$LINENO: result: $WC" >&5
7077 echo "${ECHO_T}$WC" >&6; }
7078 else
7079   { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7081 fi
7082
7083
7084   test -n "$WC" && break
7085 done
7086 test -n "$WC" || WC="$ensc_dflt"
7087
7088
7089         if test -z "${WC}" && $rq; then
7090                 if test -z ""; then
7091                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
7092 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7093    { (exit 1); exit 1; }; }
7094                 else
7095                         { { echo "$as_me:$LINENO: error:
7096 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7097 " >&5
7098 echo "$as_me: error:
7099 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7100 " >&2;}
7101    { (exit 1); exit 1; }; }
7102                 fi
7103         fi
7104
7105         if test "x" = x; then
7106                 if test -h "${WC}"; then
7107                         WC=`readlink -f "${WC}"`
7108                 fi
7109         fi
7110
7111         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
7112
7113         test "${WC}"
7114
7115
7116
7117
7118
7119
7120         if test -z ""; then
7121                 rq=true
7122         else
7123                 rq=false
7124         fi
7125
7126         if $rq; then
7127                 ensc_dflt=
7128         else
7129                 ensc_dflt=""
7130         fi
7131
7132         for ac_prog in ip
7133 do
7134   # Extract the first word of "$ac_prog", so it can be a program name with args.
7135 set dummy $ac_prog; ac_word=$2
7136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7138 if test "${ac_cv_path_IP+set}" = set; then
7139   echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141   case $IP in
7142   [\\/]* | ?:[\\/]*)
7143   ac_cv_path_IP="$IP" # Let the user override the test with a path.
7144   ;;
7145   *)
7146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $ensc_searchpath
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
7154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161   ;;
7162 esac
7163 fi
7164 IP=$ac_cv_path_IP
7165 if test -n "$IP"; then
7166   { echo "$as_me:$LINENO: result: $IP" >&5
7167 echo "${ECHO_T}$IP" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7171 fi
7172
7173
7174   test -n "$IP" && break
7175 done
7176 test -n "$IP" || IP="$ensc_dflt"
7177
7178
7179         if test -z "${IP}" && $rq; then
7180                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
7181                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
7182 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7183    { (exit 1); exit 1; }; }
7184                 else
7185                         { { echo "$as_me:$LINENO: error:
7186 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7187 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
7188 echo "$as_me: error:
7189 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7190 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
7191    { (exit 1); exit 1; }; }
7192                 fi
7193         fi
7194
7195         if test "x" = x; then
7196                 if test -h "${IP}"; then
7197                         IP=`readlink -f "${IP}"`
7198                 fi
7199         fi
7200
7201         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
7202
7203         test "${IP}"
7204
7205
7206
7207
7208         if test -z ""; then
7209                 rq=true
7210         else
7211                 rq=false
7212         fi
7213
7214         if $rq; then
7215                 ensc_dflt=
7216         else
7217                 ensc_dflt=""
7218         fi
7219
7220         for ac_prog in iptables
7221 do
7222   # Extract the first word of "$ac_prog", so it can be a program name with args.
7223 set dummy $ac_prog; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_IPTABLES+set}" = set; then
7227   echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229   case $IPTABLES in
7230   [\\/]* | ?:[\\/]*)
7231   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
7232   ;;
7233   *)
7234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $ensc_searchpath
7236 do
7237   IFS=$as_save_IFS
7238   test -z "$as_dir" && as_dir=.
7239   for ac_exec_ext in '' $ac_executable_extensions; do
7240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
7242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243     break 2
7244   fi
7245 done
7246 done
7247 IFS=$as_save_IFS
7248
7249   ;;
7250 esac
7251 fi
7252 IPTABLES=$ac_cv_path_IPTABLES
7253 if test -n "$IPTABLES"; then
7254   { echo "$as_me:$LINENO: result: $IPTABLES" >&5
7255 echo "${ECHO_T}$IPTABLES" >&6; }
7256 else
7257   { echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6; }
7259 fi
7260
7261
7262   test -n "$IPTABLES" && break
7263 done
7264 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
7265
7266
7267         if test -z "${IPTABLES}" && $rq; then
7268                 if test -z ""; then
7269                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
7270 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7271    { (exit 1); exit 1; }; }
7272                 else
7273                         { { echo "$as_me:$LINENO: error:
7274 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7275 " >&5
7276 echo "$as_me: error:
7277 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7278 " >&2;}
7279    { (exit 1); exit 1; }; }
7280                 fi
7281         fi
7282
7283         if test "x" = x; then
7284                 if test -h "${IPTABLES}"; then
7285                         IPTABLES=`readlink -f "${IPTABLES}"`
7286                 fi
7287         fi
7288
7289         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
7290
7291         test "${IPTABLES}"
7292
7293
7294
7295
7296         if test -z ""; then
7297                 rq=true
7298         else
7299                 rq=false
7300         fi
7301
7302         if $rq; then
7303                 ensc_dflt=
7304         else
7305                 ensc_dflt=""
7306         fi
7307
7308         for ac_prog in modprobe
7309 do
7310   # Extract the first word of "$ac_prog", so it can be a program name with args.
7311 set dummy $ac_prog; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_path_MODPROBE+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   case $MODPROBE in
7318   [\\/]* | ?:[\\/]*)
7319   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
7320   ;;
7321   *)
7322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $ensc_searchpath
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327   for ac_exec_ext in '' $ac_executable_extensions; do
7328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
7330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337   ;;
7338 esac
7339 fi
7340 MODPROBE=$ac_cv_path_MODPROBE
7341 if test -n "$MODPROBE"; then
7342   { echo "$as_me:$LINENO: result: $MODPROBE" >&5
7343 echo "${ECHO_T}$MODPROBE" >&6; }
7344 else
7345   { echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6; }
7347 fi
7348
7349
7350   test -n "$MODPROBE" && break
7351 done
7352 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
7353
7354
7355         if test -z "${MODPROBE}" && $rq; then
7356                 if test -z ""; then
7357                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
7358 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7359    { (exit 1); exit 1; }; }
7360                 else
7361                         { { echo "$as_me:$LINENO: error:
7362 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7363 " >&5
7364 echo "$as_me: error:
7365 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7366 " >&2;}
7367    { (exit 1); exit 1; }; }
7368                 fi
7369         fi
7370
7371         if test "x" = x; then
7372                 if test -h "${MODPROBE}"; then
7373                         MODPROBE=`readlink -f "${MODPROBE}"`
7374                 fi
7375         fi
7376
7377         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
7378
7379         test "${MODPROBE}"
7380
7381
7382
7383
7384         if test -z ""; then
7385                 rq=true
7386         else
7387                 rq=false
7388         fi
7389
7390         if $rq; then
7391                 ensc_dflt=
7392         else
7393                 ensc_dflt=""
7394         fi
7395
7396         for ac_prog in nameif
7397 do
7398   # Extract the first word of "$ac_prog", so it can be a program name with args.
7399 set dummy $ac_prog; ac_word=$2
7400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402 if test "${ac_cv_path_NAMEIF+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   case $NAMEIF in
7406   [\\/]* | ?:[\\/]*)
7407   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
7408   ;;
7409   *)
7410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $ensc_searchpath
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415   for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
7418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425   ;;
7426 esac
7427 fi
7428 NAMEIF=$ac_cv_path_NAMEIF
7429 if test -n "$NAMEIF"; then
7430   { echo "$as_me:$LINENO: result: $NAMEIF" >&5
7431 echo "${ECHO_T}$NAMEIF" >&6; }
7432 else
7433   { echo "$as_me:$LINENO: result: no" >&5
7434 echo "${ECHO_T}no" >&6; }
7435 fi
7436
7437
7438   test -n "$NAMEIF" && break
7439 done
7440 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
7441
7442
7443         if test -z "${NAMEIF}" && $rq; then
7444                 if test -z ""; then
7445                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
7446 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7447    { (exit 1); exit 1; }; }
7448                 else
7449                         { { echo "$as_me:$LINENO: error:
7450 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7451 " >&5
7452 echo "$as_me: error:
7453 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7454 " >&2;}
7455    { (exit 1); exit 1; }; }
7456                 fi
7457         fi
7458
7459         if test "x" = x; then
7460                 if test -h "${NAMEIF}"; then
7461                         NAMEIF=`readlink -f "${NAMEIF}"`
7462                 fi
7463         fi
7464
7465         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
7466
7467         test "${NAMEIF}"
7468
7469
7470
7471
7472         if test -z ""; then
7473                 rq=true
7474         else
7475                 rq=false
7476         fi
7477
7478         if $rq; then
7479                 ensc_dflt=
7480         else
7481                 ensc_dflt=""
7482         fi
7483
7484         for ac_prog in nohup
7485 do
7486   # Extract the first word of "$ac_prog", so it can be a program name with args.
7487 set dummy $ac_prog; ac_word=$2
7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490 if test "${ac_cv_path_NOHUP+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   case $NOHUP in
7494   [\\/]* | ?:[\\/]*)
7495   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
7496   ;;
7497   *)
7498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $ensc_searchpath
7500 do
7501   IFS=$as_save_IFS
7502   test -z "$as_dir" && as_dir=.
7503   for ac_exec_ext in '' $ac_executable_extensions; do
7504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
7506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507     break 2
7508   fi
7509 done
7510 done
7511 IFS=$as_save_IFS
7512
7513   ;;
7514 esac
7515 fi
7516 NOHUP=$ac_cv_path_NOHUP
7517 if test -n "$NOHUP"; then
7518   { echo "$as_me:$LINENO: result: $NOHUP" >&5
7519 echo "${ECHO_T}$NOHUP" >&6; }
7520 else
7521   { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7523 fi
7524
7525
7526   test -n "$NOHUP" && break
7527 done
7528 test -n "$NOHUP" || NOHUP="$ensc_dflt"
7529
7530
7531         if test -z "${NOHUP}" && $rq; then
7532                 if test -z ""; then
7533                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
7534 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7535    { (exit 1); exit 1; }; }
7536                 else
7537                         { { echo "$as_me:$LINENO: error:
7538 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7539 " >&5
7540 echo "$as_me: error:
7541 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7542 " >&2;}
7543    { (exit 1); exit 1; }; }
7544                 fi
7545         fi
7546
7547         if test "x" = x; then
7548                 if test -h "${NOHUP}"; then
7549                         NOHUP=`readlink -f "${NOHUP}"`
7550                 fi
7551         fi
7552
7553         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
7554
7555         test "${NOHUP}"
7556
7557
7558
7559
7560         if test -z ""; then
7561                 rq=true
7562         else
7563                 rq=false
7564         fi
7565
7566         if $rq; then
7567                 ensc_dflt=
7568         else
7569                 ensc_dflt=""
7570         fi
7571
7572         for ac_prog in rmmod
7573 do
7574   # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7578 if test "${ac_cv_path_RMMOD+set}" = set; then
7579   echo $ECHO_N "(cached) $ECHO_C" >&6
7580 else
7581   case $RMMOD in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $ensc_searchpath
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
7594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601   ;;
7602 esac
7603 fi
7604 RMMOD=$ac_cv_path_RMMOD
7605 if test -n "$RMMOD"; then
7606   { echo "$as_me:$LINENO: result: $RMMOD" >&5
7607 echo "${ECHO_T}$RMMOD" >&6; }
7608 else
7609   { echo "$as_me:$LINENO: result: no" >&5
7610 echo "${ECHO_T}no" >&6; }
7611 fi
7612
7613
7614   test -n "$RMMOD" && break
7615 done
7616 test -n "$RMMOD" || RMMOD="$ensc_dflt"
7617
7618
7619         if test -z "${RMMOD}" && $rq; then
7620                 if test -z ""; then
7621                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
7622 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7623    { (exit 1); exit 1; }; }
7624                 else
7625                         { { echo "$as_me:$LINENO: error:
7626 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7627 " >&5
7628 echo "$as_me: error:
7629 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7630 " >&2;}
7631    { (exit 1); exit 1; }; }
7632                 fi
7633         fi
7634
7635         if test "x" = x; then
7636                 if test -h "${RMMOD}"; then
7637                         RMMOD=`readlink -f "${RMMOD}"`
7638                 fi
7639         fi
7640
7641         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
7642
7643         test "${RMMOD}"
7644
7645
7646
7647
7648         if test -z ""; then
7649                 rq=true
7650         else
7651                 rq=false
7652         fi
7653
7654         if $rq; then
7655                 ensc_dflt=
7656         else
7657                 ensc_dflt=""
7658         fi
7659
7660         for ac_prog in vconfig
7661 do
7662   # Extract the first word of "$ac_prog", so it can be a program name with args.
7663 set dummy $ac_prog; ac_word=$2
7664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7666 if test "${ac_cv_path_VCONFIG+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   case $VCONFIG in
7670   [\\/]* | ?:[\\/]*)
7671   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
7672   ;;
7673   *)
7674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $ensc_searchpath
7676 do
7677   IFS=$as_save_IFS
7678   test -z "$as_dir" && as_dir=.
7679   for ac_exec_ext in '' $ac_executable_extensions; do
7680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
7682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683     break 2
7684   fi
7685 done
7686 done
7687 IFS=$as_save_IFS
7688
7689   ;;
7690 esac
7691 fi
7692 VCONFIG=$ac_cv_path_VCONFIG
7693 if test -n "$VCONFIG"; then
7694   { echo "$as_me:$LINENO: result: $VCONFIG" >&5
7695 echo "${ECHO_T}$VCONFIG" >&6; }
7696 else
7697   { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7699 fi
7700
7701
7702   test -n "$VCONFIG" && break
7703 done
7704 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
7705
7706
7707         if test -z "${VCONFIG}" && $rq; then
7708                 if test -z "See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution"; then
7709                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
7710 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7711    { (exit 1); exit 1; }; }
7712                 else
7713                         { { echo "$as_me:$LINENO: error:
7714 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7715 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
7716 echo "$as_me: error:
7717 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7718 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
7719    { (exit 1); exit 1; }; }
7720                 fi
7721         fi
7722
7723         if test "x" = x; then
7724                 if test -h "${VCONFIG}"; then
7725                         VCONFIG=`readlink -f "${VCONFIG}"`
7726                 fi
7727         fi
7728
7729         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
7730
7731         test "${VCONFIG}"
7732
7733
7734
7735
7736         if test -z ""; then
7737                 rq=true
7738         else
7739                 rq=false
7740         fi
7741
7742         if $rq; then
7743                 ensc_dflt=
7744         else
7745                 ensc_dflt=""
7746         fi
7747
7748         for ac_prog in wget
7749 do
7750   # Extract the first word of "$ac_prog", so it can be a program name with args.
7751 set dummy $ac_prog; ac_word=$2
7752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7754 if test "${ac_cv_path_WGET+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   case $WGET in
7758   [\\/]* | ?:[\\/]*)
7759   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7760   ;;
7761   *)
7762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $ensc_searchpath
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771     break 2
7772   fi
7773 done
7774 done
7775 IFS=$as_save_IFS
7776
7777   ;;
7778 esac
7779 fi
7780 WGET=$ac_cv_path_WGET
7781 if test -n "$WGET"; then
7782   { echo "$as_me:$LINENO: result: $WGET" >&5
7783 echo "${ECHO_T}$WGET" >&6; }
7784 else
7785   { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787 fi
7788
7789
7790   test -n "$WGET" && break
7791 done
7792 test -n "$WGET" || WGET="$ensc_dflt"
7793
7794
7795         if test -z "${WGET}" && $rq; then
7796                 if test -z ""; then
7797                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7798 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7799    { (exit 1); exit 1; }; }
7800                 else
7801                         { { echo "$as_me:$LINENO: error:
7802 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7803 " >&5
7804 echo "$as_me: error:
7805 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7806 " >&2;}
7807    { (exit 1); exit 1; }; }
7808                 fi
7809         fi
7810
7811         if test "x" = x; then
7812                 if test -h "${WGET}"; then
7813                         WGET=`readlink -f "${WGET}"`
7814                 fi
7815         fi
7816
7817         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7818
7819         test "${WGET}"
7820
7821
7822
7823
7824         if test -z ""; then
7825                 rq=true
7826         else
7827                 rq=false
7828         fi
7829
7830         if $rq; then
7831                 ensc_dflt=
7832         else
7833                 ensc_dflt=""
7834         fi
7835
7836         for ac_prog in ionice
7837 do
7838   # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_IONICE+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   case $IONICE in
7846   [\\/]* | ?:[\\/]*)
7847   ac_cv_path_IONICE="$IONICE" # Let the user override the test with a path.
7848   ;;
7849   *)
7850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $ensc_searchpath
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_path_IONICE="$as_dir/$ac_word$ac_exec_ext"
7858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865   ;;
7866 esac
7867 fi
7868 IONICE=$ac_cv_path_IONICE
7869 if test -n "$IONICE"; then
7870   { echo "$as_me:$LINENO: result: $IONICE" >&5
7871 echo "${ECHO_T}$IONICE" >&6; }
7872 else
7873   { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7875 fi
7876
7877
7878   test -n "$IONICE" && break
7879 done
7880 test -n "$IONICE" || IONICE="$ensc_dflt"
7881
7882
7883         if test -z "${IONICE}" && $rq; then
7884                 if test -z "This is usually shipped in the 'util-linux(-ng)' or 'schedutils' package"; then
7885                         { { echo "$as_me:$LINENO: error: Can not find the 'ionice' tool within '${ensc_searchpath:-$PATH}'." >&5
7886 echo "$as_me: error: Can not find the 'ionice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7887    { (exit 1); exit 1; }; }
7888                 else
7889                         { { echo "$as_me:$LINENO: error:
7890 Can not find the 'ionice' tool within '${ensc_searchpath:-$PATH}'.
7891 This is usually shipped in the 'util-linux(-ng)' or 'schedutils' package" >&5
7892 echo "$as_me: error:
7893 Can not find the 'ionice' tool within '${ensc_searchpath:-$PATH}'.
7894 This is usually shipped in the 'util-linux(-ng)' or 'schedutils' package" >&2;}
7895    { (exit 1); exit 1; }; }
7896                 fi
7897         fi
7898
7899         if test "x" = x; then
7900                 if test -h "${IONICE}"; then
7901                         IONICE=`readlink -f "${IONICE}"`
7902                 fi
7903         fi
7904
7905         test "${IONICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IONICE'@!${IONICE}!g;"
7906
7907         test "${IONICE}"
7908
7909
7910
7911
7912         if test -z "file"; then
7913                 rq=true
7914         else
7915                 rq=false
7916         fi
7917
7918         if $rq; then
7919                 ensc_dflt=
7920         else
7921                 ensc_dflt="file"
7922         fi
7923
7924         for ac_prog in file
7925 do
7926   # Extract the first word of "$ac_prog", so it can be a program name with args.
7927 set dummy $ac_prog; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_path_FILE+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   case $FILE in
7934   [\\/]* | ?:[\\/]*)
7935   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7936   ;;
7937   *)
7938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $ensc_searchpath
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943   for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953   ;;
7954 esac
7955 fi
7956 FILE=$ac_cv_path_FILE
7957 if test -n "$FILE"; then
7958   { echo "$as_me:$LINENO: result: $FILE" >&5
7959 echo "${ECHO_T}$FILE" >&6; }
7960 else
7961   { echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6; }
7963 fi
7964
7965
7966   test -n "$FILE" && break
7967 done
7968 test -n "$FILE" || FILE="$ensc_dflt"
7969
7970
7971         if test -z "${FILE}" && $rq; then
7972                 if test -z ""; then
7973                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7974 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7975    { (exit 1); exit 1; }; }
7976                 else
7977                         { { echo "$as_me:$LINENO: error:
7978 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7979 " >&5
7980 echo "$as_me: error:
7981 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7982 " >&2;}
7983    { (exit 1); exit 1; }; }
7984                 fi
7985         fi
7986
7987         if test "x" = x; then
7988                 if test -h "${FILE}"; then
7989                         FILE=`readlink -f "${FILE}"`
7990                 fi
7991         fi
7992
7993         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7994
7995         test "${FILE}"
7996
7997
7998
7999
8000         if test -z "gzip"; then
8001                 rq=true
8002         else
8003                 rq=false
8004         fi
8005
8006         if $rq; then
8007                 ensc_dflt=
8008         else
8009                 ensc_dflt="gzip"
8010         fi
8011
8012         for ac_prog in gzip
8013 do
8014   # Extract the first word of "$ac_prog", so it can be a program name with args.
8015 set dummy $ac_prog; ac_word=$2
8016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_GZIP+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   case $GZIP in
8022   [\\/]* | ?:[\\/]*)
8023   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8024   ;;
8025   *)
8026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $ensc_searchpath
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031   for ac_exec_ext in '' $ac_executable_extensions; do
8032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041   ;;
8042 esac
8043 fi
8044 GZIP=$ac_cv_path_GZIP
8045 if test -n "$GZIP"; then
8046   { echo "$as_me:$LINENO: result: $GZIP" >&5
8047 echo "${ECHO_T}$GZIP" >&6; }
8048 else
8049   { echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6; }
8051 fi
8052
8053
8054   test -n "$GZIP" && break
8055 done
8056 test -n "$GZIP" || GZIP="$ensc_dflt"
8057
8058
8059         if test -z "${GZIP}" && $rq; then
8060                 if test -z ""; then
8061                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
8062 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8063    { (exit 1); exit 1; }; }
8064                 else
8065                         { { echo "$as_me:$LINENO: error:
8066 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
8067 " >&5
8068 echo "$as_me: error:
8069 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
8070 " >&2;}
8071    { (exit 1); exit 1; }; }
8072                 fi
8073         fi
8074
8075         if test "x" = x; then
8076                 if test -h "${GZIP}"; then
8077                         GZIP=`readlink -f "${GZIP}"`
8078                 fi
8079         fi
8080
8081         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
8082
8083         test "${GZIP}"
8084
8085
8086
8087
8088         if test -z "bzip2"; then
8089                 rq=true
8090         else
8091                 rq=false
8092         fi
8093
8094         if $rq; then
8095                 ensc_dflt=
8096         else
8097                 ensc_dflt="bzip2"
8098         fi
8099
8100         for ac_prog in bzip2
8101 do
8102   # Extract the first word of "$ac_prog", so it can be a program name with args.
8103 set dummy $ac_prog; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_path_BZIP2+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   case $BZIP2 in
8110   [\\/]* | ?:[\\/]*)
8111   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8112   ;;
8113   *)
8114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $ensc_searchpath
8116 do
8117   IFS=$as_save_IFS
8118   test -z "$as_dir" && as_dir=.
8119   for ac_exec_ext in '' $ac_executable_extensions; do
8120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123     break 2
8124   fi
8125 done
8126 done
8127 IFS=$as_save_IFS
8128
8129   ;;
8130 esac
8131 fi
8132 BZIP2=$ac_cv_path_BZIP2
8133 if test -n "$BZIP2"; then
8134   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8135 echo "${ECHO_T}$BZIP2" >&6; }
8136 else
8137   { echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6; }
8139 fi
8140
8141
8142   test -n "$BZIP2" && break
8143 done
8144 test -n "$BZIP2" || BZIP2="$ensc_dflt"
8145
8146
8147         if test -z "${BZIP2}" && $rq; then
8148                 if test -z ""; then
8149                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
8150 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8151    { (exit 1); exit 1; }; }
8152                 else
8153                         { { echo "$as_me:$LINENO: error:
8154 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
8155 " >&5
8156 echo "$as_me: error:
8157 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
8158 " >&2;}
8159    { (exit 1); exit 1; }; }
8160                 fi
8161         fi
8162
8163         if test "x" = x; then
8164                 if test -h "${BZIP2}"; then
8165                         BZIP2=`readlink -f "${BZIP2}"`
8166                 fi
8167         fi
8168
8169         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
8170
8171         test "${BZIP2}"
8172
8173
8174
8175
8176         if test -z "cpio"; then
8177                 rq=true
8178         else
8179                 rq=false
8180         fi
8181
8182         if $rq; then
8183                 ensc_dflt=
8184         else
8185                 ensc_dflt="cpio"
8186         fi
8187
8188         for ac_prog in cpio
8189 do
8190   # Extract the first word of "$ac_prog", so it can be a program name with args.
8191 set dummy $ac_prog; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_path_CPIO+set}" = set; then
8195   echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197   case $CPIO in
8198   [\\/]* | ?:[\\/]*)
8199   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
8200   ;;
8201   *)
8202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $ensc_searchpath
8204 do
8205   IFS=$as_save_IFS
8206   test -z "$as_dir" && as_dir=.
8207   for ac_exec_ext in '' $ac_executable_extensions; do
8208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
8210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211     break 2
8212   fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217   ;;
8218 esac
8219 fi
8220 CPIO=$ac_cv_path_CPIO
8221 if test -n "$CPIO"; then
8222   { echo "$as_me:$LINENO: result: $CPIO" >&5
8223 echo "${ECHO_T}$CPIO" >&6; }
8224 else
8225   { echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6; }
8227 fi
8228
8229
8230   test -n "$CPIO" && break
8231 done
8232 test -n "$CPIO" || CPIO="$ensc_dflt"
8233
8234
8235         if test -z "${CPIO}" && $rq; then
8236                 if test -z ""; then
8237                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
8238 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8239    { (exit 1); exit 1; }; }
8240                 else
8241                         { { echo "$as_me:$LINENO: error:
8242 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8243 " >&5
8244 echo "$as_me: error:
8245 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8246 " >&2;}
8247    { (exit 1); exit 1; }; }
8248                 fi
8249         fi
8250
8251         if test "x" = x; then
8252                 if test -h "${CPIO}"; then
8253                         CPIO=`readlink -f "${CPIO}"`
8254                 fi
8255         fi
8256
8257         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
8258
8259         test "${CPIO}"
8260
8261
8262
8263
8264         if test -z "restore"; then
8265                 rq=true
8266         else
8267                 rq=false
8268         fi
8269
8270         if $rq; then
8271                 ensc_dflt=
8272         else
8273                 ensc_dflt="restore"
8274         fi
8275
8276         for ac_prog in restore
8277 do
8278   # Extract the first word of "$ac_prog", so it can be a program name with args.
8279 set dummy $ac_prog; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_RESTORE+set}" = set; then
8283   echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285   case $RESTORE in
8286   [\\/]* | ?:[\\/]*)
8287   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
8288   ;;
8289   *)
8290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $ensc_searchpath
8292 do
8293   IFS=$as_save_IFS
8294   test -z "$as_dir" && as_dir=.
8295   for ac_exec_ext in '' $ac_executable_extensions; do
8296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
8298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299     break 2
8300   fi
8301 done
8302 done
8303 IFS=$as_save_IFS
8304
8305   ;;
8306 esac
8307 fi
8308 RESTORE=$ac_cv_path_RESTORE
8309 if test -n "$RESTORE"; then
8310   { echo "$as_me:$LINENO: result: $RESTORE" >&5
8311 echo "${ECHO_T}$RESTORE" >&6; }
8312 else
8313   { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8315 fi
8316
8317
8318   test -n "$RESTORE" && break
8319 done
8320 test -n "$RESTORE" || RESTORE="$ensc_dflt"
8321
8322
8323         if test -z "${RESTORE}" && $rq; then
8324                 if test -z ""; then
8325                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
8326 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8327    { (exit 1); exit 1; }; }
8328                 else
8329                         { { echo "$as_me:$LINENO: error:
8330 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8331 " >&5
8332 echo "$as_me: error:
8333 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8334 " >&2;}
8335    { (exit 1); exit 1; }; }
8336                 fi
8337         fi
8338
8339         if test "x" = x; then
8340                 if test -h "${RESTORE}"; then
8341                         RESTORE=`readlink -f "${RESTORE}"`
8342                 fi
8343         fi
8344
8345         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
8346
8347         test "${RESTORE}"
8348
8349
8350
8351
8352         if test -z "rsync"; then
8353                 rq=true
8354         else
8355                 rq=false
8356         fi
8357
8358         if $rq; then
8359                 ensc_dflt=
8360         else
8361                 ensc_dflt="rsync"
8362         fi
8363
8364         for ac_prog in rsync
8365 do
8366   # Extract the first word of "$ac_prog", so it can be a program name with args.
8367 set dummy $ac_prog; ac_word=$2
8368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8370 if test "${ac_cv_path_RSYNC+set}" = set; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   case $RSYNC in
8374   [\\/]* | ?:[\\/]*)
8375   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
8376   ;;
8377   *)
8378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $ensc_searchpath
8380 do
8381   IFS=$as_save_IFS
8382   test -z "$as_dir" && as_dir=.
8383   for ac_exec_ext in '' $ac_executable_extensions; do
8384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8385     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
8386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387     break 2
8388   fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393   ;;
8394 esac
8395 fi
8396 RSYNC=$ac_cv_path_RSYNC
8397 if test -n "$RSYNC"; then
8398   { echo "$as_me:$LINENO: result: $RSYNC" >&5
8399 echo "${ECHO_T}$RSYNC" >&6; }
8400 else
8401   { echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6; }
8403 fi
8404
8405
8406   test -n "$RSYNC" && break
8407 done
8408 test -n "$RSYNC" || RSYNC="$ensc_dflt"
8409
8410
8411         if test -z "${RSYNC}" && $rq; then
8412                 if test -z ""; then
8413                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
8414 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8415    { (exit 1); exit 1; }; }
8416                 else
8417                         { { echo "$as_me:$LINENO: error:
8418 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8419 " >&5
8420 echo "$as_me: error:
8421 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8422 " >&2;}
8423    { (exit 1); exit 1; }; }
8424                 fi
8425         fi
8426
8427         if test "x" = x; then
8428                 if test -h "${RSYNC}"; then
8429                         RSYNC=`readlink -f "${RSYNC}"`
8430                 fi
8431         fi
8432
8433         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
8434
8435         test "${RSYNC}"
8436
8437
8438
8439
8440         if test -z "strace"; then
8441                 rq=true
8442         else
8443                 rq=false
8444         fi
8445
8446         if $rq; then
8447                 ensc_dflt=
8448         else
8449                 ensc_dflt="strace"
8450         fi
8451
8452         for ac_prog in strace
8453 do
8454   # Extract the first word of "$ac_prog", so it can be a program name with args.
8455 set dummy $ac_prog; ac_word=$2
8456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458 if test "${ac_cv_path_STRACE+set}" = set; then
8459   echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461   case $STRACE in
8462   [\\/]* | ?:[\\/]*)
8463   ac_cv_path_STRACE="$STRACE" # Let the user override the test with a path.
8464   ;;
8465   *)
8466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $ensc_searchpath
8468 do
8469   IFS=$as_save_IFS
8470   test -z "$as_dir" && as_dir=.
8471   for ac_exec_ext in '' $ac_executable_extensions; do
8472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8473     ac_cv_path_STRACE="$as_dir/$ac_word$ac_exec_ext"
8474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475     break 2
8476   fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481   ;;
8482 esac
8483 fi
8484 STRACE=$ac_cv_path_STRACE
8485 if test -n "$STRACE"; then
8486   { echo "$as_me:$LINENO: result: $STRACE" >&5
8487 echo "${ECHO_T}$STRACE" >&6; }
8488 else
8489   { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8491 fi
8492
8493
8494   test -n "$STRACE" && break
8495 done
8496 test -n "$STRACE" || STRACE="$ensc_dflt"
8497
8498
8499         if test -z "${STRACE}" && $rq; then
8500                 if test -z ""; then
8501                         { { echo "$as_me:$LINENO: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&5
8502 echo "$as_me: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8503    { (exit 1); exit 1; }; }
8504                 else
8505                         { { echo "$as_me:$LINENO: error:
8506 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8507 " >&5
8508 echo "$as_me: error:
8509 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8510 " >&2;}
8511    { (exit 1); exit 1; }; }
8512                 fi
8513         fi
8514
8515         if test "x" = x; then
8516                 if test -h "${STRACE}"; then
8517                         STRACE=`readlink -f "${STRACE}"`
8518                 fi
8519         fi
8520
8521         test "${STRACE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'STRACE'@!${STRACE}!g;"
8522
8523         test "${STRACE}"
8524
8525
8526
8527
8528         if test -z ""; then
8529                 rq=true
8530         else
8531                 rq=false
8532         fi
8533
8534         if $rq; then
8535                 ensc_dflt=
8536         else
8537                 ensc_dflt=""
8538         fi
8539
8540         for ac_prog in fsck
8541 do
8542   # Extract the first word of "$ac_prog", so it can be a program name with args.
8543 set dummy $ac_prog; ac_word=$2
8544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8546 if test "${ac_cv_path_FSCK+set}" = set; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549   case $FSCK in
8550   [\\/]* | ?:[\\/]*)
8551   ac_cv_path_FSCK="$FSCK" # Let the user override the test with a path.
8552   ;;
8553   *)
8554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $ensc_searchpath
8556 do
8557   IFS=$as_save_IFS
8558   test -z "$as_dir" && as_dir=.
8559   for ac_exec_ext in '' $ac_executable_extensions; do
8560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8561     ac_cv_path_FSCK="$as_dir/$ac_word$ac_exec_ext"
8562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8563     break 2
8564   fi
8565 done
8566 done
8567 IFS=$as_save_IFS
8568
8569   ;;
8570 esac
8571 fi
8572 FSCK=$ac_cv_path_FSCK
8573 if test -n "$FSCK"; then
8574   { echo "$as_me:$LINENO: result: $FSCK" >&5
8575 echo "${ECHO_T}$FSCK" >&6; }
8576 else
8577   { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8579 fi
8580
8581
8582   test -n "$FSCK" && break
8583 done
8584 test -n "$FSCK" || FSCK="$ensc_dflt"
8585
8586
8587         if test -z "${FSCK}" && $rq; then
8588                 if test -z ""; then
8589                         { { echo "$as_me:$LINENO: error: Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'." >&5
8590 echo "$as_me: error: Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8591    { (exit 1); exit 1; }; }
8592                 else
8593                         { { echo "$as_me:$LINENO: error:
8594 Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'.
8595 " >&5
8596 echo "$as_me: error:
8597 Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'.
8598 " >&2;}
8599    { (exit 1); exit 1; }; }
8600                 fi
8601         fi
8602
8603         if test "x" = x; then
8604                 if test -h "${FSCK}"; then
8605                         FSCK=`readlink -f "${FSCK}"`
8606                 fi
8607         fi
8608
8609         test "${FSCK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FSCK'@!${FSCK}!g;"
8610
8611         test "${FSCK}"
8612
8613
8614
8615
8616
8617         if test -z ":"; then
8618                 rq=true
8619         else
8620                 rq=false
8621         fi
8622
8623         if $rq; then
8624                 ensc_dflt=
8625         else
8626                 ensc_dflt=":"
8627         fi
8628
8629         for ac_prog in doxygen
8630 do
8631   # Extract the first word of "$ac_prog", so it can be a program name with args.
8632 set dummy $ac_prog; ac_word=$2
8633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8635 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   case $DOXYGEN in
8639   [\\/]* | ?:[\\/]*)
8640   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8641   ;;
8642   *)
8643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $ensc_searchpath
8645 do
8646   IFS=$as_save_IFS
8647   test -z "$as_dir" && as_dir=.
8648   for ac_exec_ext in '' $ac_executable_extensions; do
8649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8652     break 2
8653   fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658   ;;
8659 esac
8660 fi
8661 DOXYGEN=$ac_cv_path_DOXYGEN
8662 if test -n "$DOXYGEN"; then
8663   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8664 echo "${ECHO_T}$DOXYGEN" >&6; }
8665 else
8666   { echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6; }
8668 fi
8669
8670
8671   test -n "$DOXYGEN" && break
8672 done
8673 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
8674
8675
8676         if test -z "${DOXYGEN}" && $rq; then
8677                 if test -z ""; then
8678                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
8679 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8680    { (exit 1); exit 1; }; }
8681                 else
8682                         { { echo "$as_me:$LINENO: error:
8683 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8684 " >&5
8685 echo "$as_me: error:
8686 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8687 " >&2;}
8688    { (exit 1); exit 1; }; }
8689                 fi
8690         fi
8691
8692         if test "x" = x; then
8693                 if test -h "${DOXYGEN}"; then
8694                         DOXYGEN=`readlink -f "${DOXYGEN}"`
8695                 fi
8696         fi
8697
8698         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
8699
8700         test "${DOXYGEN}"
8701
8702
8703
8704
8705         if test -z ":"; then
8706                 rq=true
8707         else
8708                 rq=false
8709         fi
8710
8711         if $rq; then
8712                 ensc_dflt=
8713         else
8714                 ensc_dflt=":"
8715         fi
8716
8717         for ac_prog in xsltp
8718 do
8719   # Extract the first word of "$ac_prog", so it can be a program name with args.
8720 set dummy $ac_prog; ac_word=$2
8721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8723 if test "${ac_cv_path_XSLTP+set}" = set; then
8724   echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726   case $XSLTP in
8727   [\\/]* | ?:[\\/]*)
8728   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
8729   ;;
8730   *)
8731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $ensc_searchpath
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736   for ac_exec_ext in '' $ac_executable_extensions; do
8737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
8739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743 done
8744 IFS=$as_save_IFS
8745
8746   ;;
8747 esac
8748 fi
8749 XSLTP=$ac_cv_path_XSLTP
8750 if test -n "$XSLTP"; then
8751   { echo "$as_me:$LINENO: result: $XSLTP" >&5
8752 echo "${ECHO_T}$XSLTP" >&6; }
8753 else
8754   { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 fi
8757
8758
8759   test -n "$XSLTP" && break
8760 done
8761 test -n "$XSLTP" || XSLTP="$ensc_dflt"
8762
8763
8764         if test -z "${XSLTP}" && $rq; then
8765                 if test -z ""; then
8766                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
8767 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8768    { (exit 1); exit 1; }; }
8769                 else
8770                         { { echo "$as_me:$LINENO: error:
8771 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8772 " >&5
8773 echo "$as_me: error:
8774 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8775 " >&2;}
8776    { (exit 1); exit 1; }; }
8777                 fi
8778         fi
8779
8780         if test "x" = x; then
8781                 if test -h "${XSLTP}"; then
8782                         XSLTP=`readlink -f "${XSLTP}"`
8783                 fi
8784         fi
8785
8786         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
8787
8788         test "${XSLTP}"
8789
8790
8791
8792
8793         if test -z ":"; then
8794                 rq=true
8795         else
8796                 rq=false
8797         fi
8798
8799         if $rq; then
8800                 ensc_dflt=
8801         else
8802                 ensc_dflt=":"
8803         fi
8804
8805         for ac_prog in xsltproc
8806 do
8807   # Extract the first word of "$ac_prog", so it can be a program name with args.
8808 set dummy $ac_prog; ac_word=$2
8809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8811 if test "${ac_cv_path_XSLTPROC+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   case $XSLTPROC in
8815   [\\/]* | ?:[\\/]*)
8816   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
8817   ;;
8818   *)
8819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $ensc_searchpath
8821 do
8822   IFS=$as_save_IFS
8823   test -z "$as_dir" && as_dir=.
8824   for ac_exec_ext in '' $ac_executable_extensions; do
8825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8826     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
8827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8828     break 2
8829   fi
8830 done
8831 done
8832 IFS=$as_save_IFS
8833
8834   ;;
8835 esac
8836 fi
8837 XSLTPROC=$ac_cv_path_XSLTPROC
8838 if test -n "$XSLTPROC"; then
8839   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
8840 echo "${ECHO_T}$XSLTPROC" >&6; }
8841 else
8842   { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8844 fi
8845
8846
8847   test -n "$XSLTPROC" && break
8848 done
8849 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
8850
8851
8852         if test -z "${XSLTPROC}" && $rq; then
8853                 if test -z ""; then
8854                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
8855 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8856    { (exit 1); exit 1; }; }
8857                 else
8858                         { { echo "$as_me:$LINENO: error:
8859 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8860 " >&5
8861 echo "$as_me: error:
8862 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8863 " >&2;}
8864    { (exit 1); exit 1; }; }
8865                 fi
8866         fi
8867
8868         if test "x" = x; then
8869                 if test -h "${XSLTPROC}"; then
8870                         XSLTPROC=`readlink -f "${XSLTPROC}"`
8871                 fi
8872         fi
8873
8874         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
8875
8876         test "${XSLTPROC}"
8877
8878
8879  if test "$XSLTP"    != ':'; then
8880   HAVE_XSLTP_TRUE=
8881   HAVE_XSLTP_FALSE='#'
8882 else
8883   HAVE_XSLTP_TRUE='#'
8884   HAVE_XSLTP_FALSE=
8885 fi
8886
8887  if test "$XSLTPROC" != ':'; then
8888   HAVE_XSLTPROC_TRUE=
8889   HAVE_XSLTPROC_FALSE='#'
8890 else
8891   HAVE_XSLTPROC_TRUE='#'
8892   HAVE_XSLTPROC_FALSE=
8893 fi
8894
8895
8896 if test x"$prefix" = x/; then
8897         prefix=
8898 fi
8899
8900
8901
8902         warn_flags="-Werror -W"
8903         { echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
8904 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8905         ac_ext=c
8906 ac_cpp='$CPP $CPPFLAGS'
8907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8910
8911         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
8912         CFLAGS="$warn_flags"
8913         cat >conftest.$ac_ext <<_ACEOF
8914 /* confdefs.h.  */
8915 _ACEOF
8916 cat confdefs.h >>conftest.$ac_ext
8917 cat >>conftest.$ac_ext <<_ACEOF
8918 /* end confdefs.h.  */
8919 inline static void f(){}
8920 int
8921 main ()
8922 {
8923
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext
8929 if { (ac_try="$ac_compile"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_compile") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } && {
8942          test -z "$ac_c_werror_flag" ||
8943          test ! -s conftest.err
8944        } && test -s conftest.$ac_objext; then
8945   ensc_sys_compilerwarnflags_C=${warn_flags}
8946 else
8947   echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8949
8950         ensc_sys_compilerwarnflags_C=
8951 fi
8952
8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954         ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8961
8962         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
8963                 { echo "$as_me:$LINENO: result: no" >&5
8964 echo "${ECHO_T}no" >&6; }
8965         else
8966                 { echo "$as_me:$LINENO: result: yes" >&5
8967 echo "${ECHO_T}yes" >&6; }
8968         fi
8969
8970
8971
8972
8973
8974 echo 'void f(){}' > conftest.c
8975   for i in -std=c99 -Wall -pedantic -W
8976   do
8977     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8978 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8979     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8980     then
8981       CFLAGS="${CFLAGS} $i"
8982       { echo "$as_me:$LINENO: result: yes" >&5
8983 echo "${ECHO_T}yes" >&6; }
8984     else
8985       { echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6; }
8987     fi
8988   done
8989   rm -f conftest.c conftest.o
8990
8991
8992
8993         warn_flags="-Werror -W"
8994         { echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
8995 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8996         ac_ext=cpp
8997 ac_cpp='$CXXCPP $CPPFLAGS'
8998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9001
9002         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
9003         CXXFLAGS="$warn_flags"
9004         cat >conftest.$ac_ext <<_ACEOF
9005 /* confdefs.h.  */
9006 _ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h.  */
9010 inline static void f(){}
9011 int
9012 main ()
9013 {
9014
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext
9020 if { (ac_try="$ac_compile"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_compile") 2>conftest.er1
9027   ac_status=$?
9028   grep -v '^ *+' conftest.er1 >conftest.err
9029   rm -f conftest.er1
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } && {
9033          test -z "$ac_cxx_werror_flag" ||
9034          test ! -s conftest.err
9035        } && test -s conftest.$ac_objext; then
9036   ensc_sys_compilerwarnflags_CXX=${warn_flags}
9037 else
9038   echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9040
9041         ensc_sys_compilerwarnflags_CXX=
9042 fi
9043
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045         ac_ext=c
9046 ac_cpp='$CPP $CPPFLAGS'
9047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9050
9051         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
9052
9053         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
9054                 { echo "$as_me:$LINENO: result: no" >&5
9055 echo "${ECHO_T}no" >&6; }
9056         else
9057                 { echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6; }
9059         fi
9060
9061
9062
9063
9064
9065   echo 'void f(){}' > conftest.cc
9066   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
9067   do
9068     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
9069 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
9070     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
9071     then
9072       CXXFLAGS="${CXXFLAGS} $i"
9073       { echo "$as_me:$LINENO: result: yes" >&5
9074 echo "${ECHO_T}yes" >&6; }
9075     else
9076       { echo "$as_me:$LINENO: result: no" >&5
9077 echo "${ECHO_T}no" >&6; }
9078     fi
9079   done
9080   rm -f conftest.cc conftest.o
9081
9082
9083 { echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
9084 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6; }
9085 # Check whether --enable-extra-optimizations was given.
9086 if test "${enable_extra_optimizations+set}" = set; then
9087   enableval=$enable_extra_optimizations; case "$enableval" in
9088                   (yes) use_extra_optimizations=1;;
9089                   (no)  use_extra_optimizations=;;
9090                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
9091 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
9092    { (exit 1); exit 1; }; };;
9093                esac
9094 else
9095   use_extra_optimizations=1
9096 fi
9097
9098
9099 if test x"$use_extra_optimizations" = x; then
9100         { echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6; }
9102 else
9103         { echo "$as_me:$LINENO: result: yes" >&5
9104 echo "${ECHO_T}yes" >&6; }
9105
9106
9107
9108 echo 'void f(){}' > conftest.c
9109   for i in -funit-at-a-time
9110   do
9111     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
9112 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
9113     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
9114     then
9115       CFLAGS="${CFLAGS} $i"
9116       { echo "$as_me:$LINENO: result: yes" >&5
9117 echo "${ECHO_T}yes" >&6; }
9118     else
9119       { echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6; }
9121     fi
9122   done
9123   rm -f conftest.c conftest.o
9124
9125
9126
9127
9128   echo 'void f(){}' > conftest.cc
9129   for i in -funit-at-a-time
9130   do
9131     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
9132 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
9133     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
9134     then
9135       CXXFLAGS="${CXXFLAGS} $i"
9136       { echo "$as_me:$LINENO: result: yes" >&5
9137 echo "${ECHO_T}yes" >&6; }
9138     else
9139       { echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6; }
9141     fi
9142   done
9143   rm -f conftest.cc conftest.o
9144
9145 fi
9146
9147 { echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
9148 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6; }
9149 # Check whether --enable-lib-debug was given.
9150 if test "${enable_lib_debug+set}" = set; then
9151   enableval=$enable_lib_debug; case "$enableval" in
9152                   (yes) use_lib_debug=1;;
9153                   (no)  use_lib_debug=;;
9154                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
9155 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
9156    { (exit 1); exit 1; }; };;
9157                esac
9158 else
9159    use_lib_debug=
9160 fi
9161
9162
9163 if test x"$use_lib_debug" = x; then
9164         LIB_DEBUG_CPPFLAGS=-DNDEBUG
9165
9166         { echo "$as_me:$LINENO: result: no" >&5
9167 echo "${ECHO_T}no" >&6; }
9168 else
9169
9170         { echo "$as_me:$LINENO: result: yes" >&5
9171 echo "${ECHO_T}yes" >&6; }
9172 fi
9173
9174 { echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
9175 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6; }
9176 # Check whether --enable-expensive-tests was given.
9177 if test "${enable_expensive_tests+set}" = set; then
9178   enableval=$enable_expensive_tests; case "$enableval" in
9179                  (yes|no)  use_expensive_tests=$enableval;;
9180                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
9181 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
9182    { (exit 1); exit 1; }; };;
9183                esac
9184 else
9185    use_expensive_tests=no
9186 fi
9187
9188 { echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
9189 echo "${ECHO_T}$use_expensive_tests" >&6; }
9190
9191 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
9192
9193
9194
9195
9196         { echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
9197 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6; }
9198         { echo "$as_me:$LINENO: result: " >&5
9199 echo "${ECHO_T}" >&6; }
9200
9201         ac_ext=c
9202 ac_cpp='$CPP $CPPFLAGS'
9203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9206
9207         { echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
9208 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6; }
9209 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 #include <linux/personality.h>
9220
9221
9222 int
9223 main ()
9224 {
9225 #ifndef MMAP_PAGE_ZERO
9226   (void) MMAP_PAGE_ZERO;
9227 #endif
9228
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_compile") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } && {
9247          test -z "$ac_c_werror_flag" ||
9248          test ! -s conftest.err
9249        } && test -s conftest.$ac_objext; then
9250   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
9251 else
9252   echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255         ac_cv_have_decl_MMAP_PAGE_ZERO=no
9256 fi
9257
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259 fi
9260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
9261 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
9262 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
9263
9264 cat >>confdefs.h <<_ACEOF
9265 #define HAVE_DECL_MMAP_PAGE_ZERO 1
9266 _ACEOF
9267
9268
9269 else
9270   cat >>confdefs.h <<_ACEOF
9271 #define HAVE_DECL_MMAP_PAGE_ZERO 0
9272 _ACEOF
9273
9274
9275 fi
9276 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
9277 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6; }
9278 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
9279   echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281   cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h.  */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h.  */
9287
9288 #include <linux/personality.h>
9289
9290
9291 int
9292 main ()
9293 {
9294 #ifndef ADDR_LIMIT_32BIT
9295   (void) ADDR_LIMIT_32BIT;
9296 #endif
9297
9298   ;
9299   return 0;
9300 }
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (ac_try="$ac_compile"
9304 case "(($ac_try" in
9305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306   *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309   (eval "$ac_compile") 2>conftest.er1
9310   ac_status=$?
9311   grep -v '^ *+' conftest.er1 >conftest.err
9312   rm -f conftest.er1
9313   cat conftest.err >&5
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } && {
9316          test -z "$ac_c_werror_flag" ||
9317          test ! -s conftest.err
9318        } && test -s conftest.$ac_objext; then
9319   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9323
9324         ac_cv_have_decl_ADDR_LIMIT_32BIT=no
9325 fi
9326
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 fi
9329 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
9330 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
9331 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
9332
9333 cat >>confdefs.h <<_ACEOF
9334 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
9335 _ACEOF
9336
9337
9338 else
9339   cat >>confdefs.h <<_ACEOF
9340 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
9341 _ACEOF
9342
9343
9344 fi
9345 { echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
9346 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6; }
9347 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356
9357 #include <linux/personality.h>
9358
9359
9360 int
9361 main ()
9362 {
9363 #ifndef SHORT_INODE
9364   (void) SHORT_INODE;
9365 #endif
9366
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9373 case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_compile") 2>conftest.er1
9379   ac_status=$?
9380   grep -v '^ *+' conftest.er1 >conftest.err
9381   rm -f conftest.er1
9382   cat conftest.err >&5
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); } && {
9385          test -z "$ac_c_werror_flag" ||
9386          test ! -s conftest.err
9387        } && test -s conftest.$ac_objext; then
9388   ac_cv_have_decl_SHORT_INODE=yes
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393         ac_cv_have_decl_SHORT_INODE=no
9394 fi
9395
9396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 fi
9398 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
9399 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6; }
9400 if test $ac_cv_have_decl_SHORT_INODE = yes; then
9401
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_DECL_SHORT_INODE 1
9404 _ACEOF
9405
9406
9407 else
9408   cat >>confdefs.h <<_ACEOF
9409 #define HAVE_DECL_SHORT_INODE 0
9410 _ACEOF
9411
9412
9413 fi
9414 { echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
9415 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6; }
9416 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425
9426 #include <linux/personality.h>
9427
9428
9429 int
9430 main ()
9431 {
9432 #ifndef WHOLE_SECONDS
9433   (void) WHOLE_SECONDS;
9434 #endif
9435
9436   ;
9437   return 0;
9438 }
9439 _ACEOF
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9442 case "(($ac_try" in
9443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444   *) ac_try_echo=$ac_try;;
9445 esac
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447   (eval "$ac_compile") 2>conftest.er1
9448   ac_status=$?
9449   grep -v '^ *+' conftest.er1 >conftest.err
9450   rm -f conftest.er1
9451   cat conftest.err >&5
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); } && {
9454          test -z "$ac_c_werror_flag" ||
9455          test ! -s conftest.err
9456        } && test -s conftest.$ac_objext; then
9457   ac_cv_have_decl_WHOLE_SECONDS=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462         ac_cv_have_decl_WHOLE_SECONDS=no
9463 fi
9464
9465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
9468 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
9469 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_DECL_WHOLE_SECONDS 1
9473 _ACEOF
9474
9475
9476 else
9477   cat >>confdefs.h <<_ACEOF
9478 #define HAVE_DECL_WHOLE_SECONDS 0
9479 _ACEOF
9480
9481
9482 fi
9483 { echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
9484 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6; }
9485 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494
9495 #include <linux/personality.h>
9496
9497
9498 int
9499 main ()
9500 {
9501 #ifndef STICKY_TIMEOUTS
9502   (void) STICKY_TIMEOUTS;
9503 #endif
9504
9505   ;
9506   return 0;
9507 }
9508 _ACEOF
9509 rm -f conftest.$ac_objext
9510 if { (ac_try="$ac_compile"
9511 case "(($ac_try" in
9512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513   *) ac_try_echo=$ac_try;;
9514 esac
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516   (eval "$ac_compile") 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && {
9523          test -z "$ac_c_werror_flag" ||
9524          test ! -s conftest.err
9525        } && test -s conftest.$ac_objext; then
9526   ac_cv_have_decl_STICKY_TIMEOUTS=yes
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531         ac_cv_have_decl_STICKY_TIMEOUTS=no
9532 fi
9533
9534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9535 fi
9536 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
9537 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
9538 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
9539
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_DECL_STICKY_TIMEOUTS 1
9542 _ACEOF
9543
9544
9545 else
9546   cat >>confdefs.h <<_ACEOF
9547 #define HAVE_DECL_STICKY_TIMEOUTS 0
9548 _ACEOF
9549
9550
9551 fi
9552 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
9553 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6; }
9554 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563
9564 #include <linux/personality.h>
9565
9566
9567 int
9568 main ()
9569 {
9570 #ifndef ADDR_LIMIT_3GB
9571   (void) ADDR_LIMIT_3GB;
9572 #endif
9573
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9580 case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_compile") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_c_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest.$ac_objext; then
9595   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600         ac_cv_have_decl_ADDR_LIMIT_3GB=no
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 fi
9605 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
9606 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
9607 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
9608
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_DECL_ADDR_LIMIT_3GB 1
9611 _ACEOF
9612
9613
9614 else
9615   cat >>confdefs.h <<_ACEOF
9616 #define HAVE_DECL_ADDR_LIMIT_3GB 0
9617 _ACEOF
9618
9619
9620 fi
9621
9622
9623
9624         { echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
9625 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6; }
9626 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
9627   echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629   cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h.  */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h.  */
9635
9636 #include <linux/personality.h>
9637
9638
9639 int
9640 main ()
9641 {
9642 #ifndef PER_LINUX
9643   (void) PER_LINUX;
9644 #endif
9645
9646   ;
9647   return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (ac_try="$ac_compile"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_compile") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } && {
9664          test -z "$ac_c_werror_flag" ||
9665          test ! -s conftest.err
9666        } && test -s conftest.$ac_objext; then
9667   ac_cv_have_decl_PER_LINUX=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672         ac_cv_have_decl_PER_LINUX=no
9673 fi
9674
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
9678 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6; }
9679 if test $ac_cv_have_decl_PER_LINUX = yes; then
9680
9681 cat >>confdefs.h <<_ACEOF
9682 #define HAVE_DECL_PER_LINUX 1
9683 _ACEOF
9684
9685
9686 else
9687   cat >>confdefs.h <<_ACEOF
9688 #define HAVE_DECL_PER_LINUX 0
9689 _ACEOF
9690
9691
9692 fi
9693 { echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
9694 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6; }
9695 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h.  */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h.  */
9704
9705 #include <linux/personality.h>
9706
9707
9708 int
9709 main ()
9710 {
9711 #ifndef PER_LINUX_32BIT
9712   (void) PER_LINUX_32BIT;
9713 #endif
9714
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext
9720 if { (ac_try="$ac_compile"
9721 case "(($ac_try" in
9722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723   *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726   (eval "$ac_compile") 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } && {
9733          test -z "$ac_c_werror_flag" ||
9734          test ! -s conftest.err
9735        } && test -s conftest.$ac_objext; then
9736   ac_cv_have_decl_PER_LINUX_32BIT=yes
9737 else
9738   echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9740
9741         ac_cv_have_decl_PER_LINUX_32BIT=no
9742 fi
9743
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 fi
9746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
9747 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6; }
9748 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define HAVE_DECL_PER_LINUX_32BIT 1
9752 _ACEOF
9753
9754
9755 else
9756   cat >>confdefs.h <<_ACEOF
9757 #define HAVE_DECL_PER_LINUX_32BIT 0
9758 _ACEOF
9759
9760
9761 fi
9762 { echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
9763 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6; }
9764 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
9765   echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 #include <linux/personality.h>
9775
9776
9777 int
9778 main ()
9779 {
9780 #ifndef PER_SVR4
9781   (void) PER_SVR4;
9782 #endif
9783
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext
9789 if { (ac_try="$ac_compile"
9790 case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_compile") 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } && {
9802          test -z "$ac_c_werror_flag" ||
9803          test ! -s conftest.err
9804        } && test -s conftest.$ac_objext; then
9805   ac_cv_have_decl_PER_SVR4=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         ac_cv_have_decl_PER_SVR4=no
9811 fi
9812
9813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 fi
9815 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
9816 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6; }
9817 if test $ac_cv_have_decl_PER_SVR4 = yes; then
9818
9819 cat >>confdefs.h <<_ACEOF
9820 #define HAVE_DECL_PER_SVR4 1
9821 _ACEOF
9822
9823
9824 else
9825   cat >>confdefs.h <<_ACEOF
9826 #define HAVE_DECL_PER_SVR4 0
9827 _ACEOF
9828
9829
9830 fi
9831 { echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
9832 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6; }
9833 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 #include <linux/personality.h>
9844
9845
9846 int
9847 main ()
9848 {
9849 #ifndef PER_SVR3
9850   (void) PER_SVR3;
9851 #endif
9852
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (ac_try="$ac_compile"
9859 case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_compile") 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } && {
9871          test -z "$ac_c_werror_flag" ||
9872          test ! -s conftest.err
9873        } && test -s conftest.$ac_objext; then
9874   ac_cv_have_decl_PER_SVR3=yes
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879         ac_cv_have_decl_PER_SVR3=no
9880 fi
9881
9882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 fi
9884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
9885 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6; }
9886 if test $ac_cv_have_decl_PER_SVR3 = yes; then
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define HAVE_DECL_PER_SVR3 1
9890 _ACEOF
9891
9892
9893 else
9894   cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_PER_SVR3 0
9896 _ACEOF
9897
9898
9899 fi
9900 { echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
9901 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6; }
9902 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
9903   echo $ECHO_N "(cached) $ECHO_C" >&6
9904 else
9905   cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911
9912 #include <linux/personality.h>
9913
9914
9915 int
9916 main ()
9917 {
9918 #ifndef PER_SCOSVR3
9919   (void) PER_SCOSVR3;
9920 #endif
9921
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext
9927 if { (ac_try="$ac_compile"
9928 case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933   (eval "$ac_compile") 2>conftest.er1
9934   ac_status=$?
9935   grep -v '^ *+' conftest.er1 >conftest.err
9936   rm -f conftest.er1
9937   cat conftest.err >&5
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); } && {
9940          test -z "$ac_c_werror_flag" ||
9941          test ! -s conftest.err
9942        } && test -s conftest.$ac_objext; then
9943   ac_cv_have_decl_PER_SCOSVR3=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948         ac_cv_have_decl_PER_SCOSVR3=no
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 fi
9953 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
9954 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6; }
9955 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_DECL_PER_SCOSVR3 1
9959 _ACEOF
9960
9961
9962 else
9963   cat >>confdefs.h <<_ACEOF
9964 #define HAVE_DECL_PER_SCOSVR3 0
9965 _ACEOF
9966
9967
9968 fi
9969 { echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
9970 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6; }
9971 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980
9981 #include <linux/personality.h>
9982
9983
9984 int
9985 main ()
9986 {
9987 #ifndef PER_OSR5
9988   (void) PER_OSR5;
9989 #endif
9990
9991   ;
9992   return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (ac_try="$ac_compile"
9997 case "(($ac_try" in
9998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999   *) ac_try_echo=$ac_try;;
10000 esac
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002   (eval "$ac_compile") 2>conftest.er1
10003   ac_status=$?
10004   grep -v '^ *+' conftest.er1 >conftest.err
10005   rm -f conftest.er1
10006   cat conftest.err >&5
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); } && {
10009          test -z "$ac_c_werror_flag" ||
10010          test ! -s conftest.err
10011        } && test -s conftest.$ac_objext; then
10012   ac_cv_have_decl_PER_OSR5=yes
10013 else
10014   echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017         ac_cv_have_decl_PER_OSR5=no
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021 fi
10022 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
10023 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6; }
10024 if test $ac_cv_have_decl_PER_OSR5 = yes; then
10025
10026 cat >>confdefs.h <<_ACEOF
10027 #define HAVE_DECL_PER_OSR5 1
10028 _ACEOF
10029
10030
10031 else
10032   cat >>confdefs.h <<_ACEOF
10033 #define HAVE_DECL_PER_OSR5 0
10034 _ACEOF
10035
10036
10037 fi
10038 { echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
10039 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6; }
10040 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043   cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 #include <linux/personality.h>
10051
10052
10053 int
10054 main ()
10055 {
10056 #ifndef PER_WYSEV386
10057   (void) PER_WYSEV386;
10058 #endif
10059
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_compile") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } && {
10078          test -z "$ac_c_werror_flag" ||
10079          test ! -s conftest.err
10080        } && test -s conftest.$ac_objext; then
10081   ac_cv_have_decl_PER_WYSEV386=yes
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         ac_cv_have_decl_PER_WYSEV386=no
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 fi
10091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
10092 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6; }
10093 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
10094
10095 cat >>confdefs.h <<_ACEOF
10096 #define HAVE_DECL_PER_WYSEV386 1
10097 _ACEOF
10098
10099
10100 else
10101   cat >>confdefs.h <<_ACEOF
10102 #define HAVE_DECL_PER_WYSEV386 0
10103 _ACEOF
10104
10105
10106 fi
10107 { echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
10108 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6; }
10109 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
10110   echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112   cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118
10119 #include <linux/personality.h>
10120
10121
10122 int
10123 main ()
10124 {
10125 #ifndef PER_ISCR4
10126   (void) PER_ISCR4;
10127 #endif
10128
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext
10134 if { (ac_try="$ac_compile"
10135 case "(($ac_try" in
10136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137   *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140   (eval "$ac_compile") 2>conftest.er1
10141   ac_status=$?
10142   grep -v '^ *+' conftest.er1 >conftest.err
10143   rm -f conftest.er1
10144   cat conftest.err >&5
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); } && {
10147          test -z "$ac_c_werror_flag" ||
10148          test ! -s conftest.err
10149        } && test -s conftest.$ac_objext; then
10150   ac_cv_have_decl_PER_ISCR4=yes
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155         ac_cv_have_decl_PER_ISCR4=no
10156 fi
10157
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
10161 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6; }
10162 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define HAVE_DECL_PER_ISCR4 1
10166 _ACEOF
10167
10168
10169 else
10170   cat >>confdefs.h <<_ACEOF
10171 #define HAVE_DECL_PER_ISCR4 0
10172 _ACEOF
10173
10174
10175 fi
10176 { echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
10177 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6; }
10178 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 #include <linux/personality.h>
10189
10190
10191 int
10192 main ()
10193 {
10194 #ifndef PER_BSD
10195   (void) PER_BSD;
10196 #endif
10197
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_compile") 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } && {
10216          test -z "$ac_c_werror_flag" ||
10217          test ! -s conftest.err
10218        } && test -s conftest.$ac_objext; then
10219   ac_cv_have_decl_PER_BSD=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224         ac_cv_have_decl_PER_BSD=no
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 fi
10229 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
10230 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6; }
10231 if test $ac_cv_have_decl_PER_BSD = yes; then
10232
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_DECL_PER_BSD 1
10235 _ACEOF
10236
10237
10238 else
10239   cat >>confdefs.h <<_ACEOF
10240 #define HAVE_DECL_PER_BSD 0
10241 _ACEOF
10242
10243
10244 fi
10245 { echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
10246 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6; }
10247 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
10248   echo $ECHO_N "(cached) $ECHO_C" >&6
10249 else
10250   cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h.  */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h.  */
10256
10257 #include <linux/personality.h>
10258
10259
10260 int
10261 main ()
10262 {
10263 #ifndef PER_SUNOS
10264   (void) PER_SUNOS;
10265 #endif
10266
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_compile") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } && {
10285          test -z "$ac_c_werror_flag" ||
10286          test ! -s conftest.err
10287        } && test -s conftest.$ac_objext; then
10288   ac_cv_have_decl_PER_SUNOS=yes
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293         ac_cv_have_decl_PER_SUNOS=no
10294 fi
10295
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
10299 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6; }
10300 if test $ac_cv_have_decl_PER_SUNOS = yes; then
10301
10302 cat >>confdefs.h <<_ACEOF
10303 #define HAVE_DECL_PER_SUNOS 1
10304 _ACEOF
10305
10306
10307 else
10308   cat >>confdefs.h <<_ACEOF
10309 #define HAVE_DECL_PER_SUNOS 0
10310 _ACEOF
10311
10312
10313 fi
10314 { echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
10315 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6; }
10316 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325
10326 #include <linux/personality.h>
10327
10328
10329 int
10330 main ()
10331 {
10332 #ifndef PER_XENIX
10333   (void) PER_XENIX;
10334 #endif
10335
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (ac_try="$ac_compile"
10342 case "(($ac_try" in
10343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344   *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347   (eval "$ac_compile") 2>conftest.er1
10348   ac_status=$?
10349   grep -v '^ *+' conftest.er1 >conftest.err
10350   rm -f conftest.er1
10351   cat conftest.err >&5
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } && {
10354          test -z "$ac_c_werror_flag" ||
10355          test ! -s conftest.err
10356        } && test -s conftest.$ac_objext; then
10357   ac_cv_have_decl_PER_XENIX=yes
10358 else
10359   echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10361
10362         ac_cv_have_decl_PER_XENIX=no
10363 fi
10364
10365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366 fi
10367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
10368 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6; }
10369 if test $ac_cv_have_decl_PER_XENIX = yes; then
10370
10371 cat >>confdefs.h <<_ACEOF
10372 #define HAVE_DECL_PER_XENIX 1
10373 _ACEOF
10374
10375
10376 else
10377   cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_PER_XENIX 0
10379 _ACEOF
10380
10381
10382 fi
10383 { echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
10384 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6; }
10385 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 /* confdefs.h.  */
10390 _ACEOF
10391 cat confdefs.h >>conftest.$ac_ext
10392 cat >>conftest.$ac_ext <<_ACEOF
10393 /* end confdefs.h.  */
10394
10395 #include <linux/personality.h>
10396
10397
10398 int
10399 main ()
10400 {
10401 #ifndef PER_LINUX32
10402   (void) PER_LINUX32;
10403 #endif
10404
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (ac_try="$ac_compile"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_compile") 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } && {
10423          test -z "$ac_c_werror_flag" ||
10424          test ! -s conftest.err
10425        } && test -s conftest.$ac_objext; then
10426   ac_cv_have_decl_PER_LINUX32=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431         ac_cv_have_decl_PER_LINUX32=no
10432 fi
10433
10434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 fi
10436 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
10437 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6; }
10438 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
10439
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_DECL_PER_LINUX32 1
10442 _ACEOF
10443
10444
10445 else
10446   cat >>confdefs.h <<_ACEOF
10447 #define HAVE_DECL_PER_LINUX32 0
10448 _ACEOF
10449
10450
10451 fi
10452 { echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
10453 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6; }
10454 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463
10464 #include <linux/personality.h>
10465
10466
10467 int
10468 main ()
10469 {
10470 #ifndef PER_LINUX32_3GB
10471   (void) PER_LINUX32_3GB;
10472 #endif
10473
10474   ;
10475   return 0;
10476 }
10477 _ACEOF
10478 rm -f conftest.$ac_objext
10479 if { (ac_try="$ac_compile"
10480 case "(($ac_try" in
10481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482   *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485   (eval "$ac_compile") 2>conftest.er1
10486   ac_status=$?
10487   grep -v '^ *+' conftest.er1 >conftest.err
10488   rm -f conftest.er1
10489   cat conftest.err >&5
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } && {
10492          test -z "$ac_c_werror_flag" ||
10493          test ! -s conftest.err
10494        } && test -s conftest.$ac_objext; then
10495   ac_cv_have_decl_PER_LINUX32_3GB=yes
10496 else
10497   echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500         ac_cv_have_decl_PER_LINUX32_3GB=no
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
10506 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6; }
10507 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
10508
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_DECL_PER_LINUX32_3GB 1
10511 _ACEOF
10512
10513
10514 else
10515   cat >>confdefs.h <<_ACEOF
10516 #define HAVE_DECL_PER_LINUX32_3GB 0
10517 _ACEOF
10518
10519
10520 fi
10521 { echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
10522 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6; }
10523 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
10524   echo $ECHO_N "(cached) $ECHO_C" >&6
10525 else
10526   cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h.  */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h.  */
10532
10533 #include <linux/personality.h>
10534
10535
10536 int
10537 main ()
10538 {
10539 #ifndef PER_IRIX32
10540   (void) PER_IRIX32;
10541 #endif
10542
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext
10548 if { (ac_try="$ac_compile"
10549 case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_compile") 2>conftest.er1
10555   ac_status=$?
10556   grep -v '^ *+' conftest.er1 >conftest.err
10557   rm -f conftest.er1
10558   cat conftest.err >&5
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); } && {
10561          test -z "$ac_c_werror_flag" ||
10562          test ! -s conftest.err
10563        } && test -s conftest.$ac_objext; then
10564   ac_cv_have_decl_PER_IRIX32=yes
10565 else
10566   echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10568
10569         ac_cv_have_decl_PER_IRIX32=no
10570 fi
10571
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 fi
10574 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
10575 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6; }
10576 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
10577
10578 cat >>confdefs.h <<_ACEOF
10579 #define HAVE_DECL_PER_IRIX32 1
10580 _ACEOF
10581
10582
10583 else
10584   cat >>confdefs.h <<_ACEOF
10585 #define HAVE_DECL_PER_IRIX32 0
10586 _ACEOF
10587
10588
10589 fi
10590 { echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
10591 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6; }
10592 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601
10602 #include <linux/personality.h>
10603
10604
10605 int
10606 main ()
10607 {
10608 #ifndef PER_IRIXN32
10609   (void) PER_IRIXN32;
10610 #endif
10611
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_compile") 2>conftest.er1
10624   ac_status=$?
10625   grep -v '^ *+' conftest.er1 >conftest.err
10626   rm -f conftest.er1
10627   cat conftest.err >&5
10628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629   (exit $ac_status); } && {
10630          test -z "$ac_c_werror_flag" ||
10631          test ! -s conftest.err
10632        } && test -s conftest.$ac_objext; then
10633   ac_cv_have_decl_PER_IRIXN32=yes
10634 else
10635   echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638         ac_cv_have_decl_PER_IRIXN32=no
10639 fi
10640
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
10644 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6; }
10645 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
10646
10647 cat >>confdefs.h <<_ACEOF
10648 #define HAVE_DECL_PER_IRIXN32 1
10649 _ACEOF
10650
10651
10652 else
10653   cat >>confdefs.h <<_ACEOF
10654 #define HAVE_DECL_PER_IRIXN32 0
10655 _ACEOF
10656
10657
10658 fi
10659 { echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
10660 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6; }
10661 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
10662   echo $ECHO_N "(cached) $ECHO_C" >&6
10663 else
10664   cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 #include <linux/personality.h>
10672
10673
10674 int
10675 main ()
10676 {
10677 #ifndef PER_IRIX64
10678   (void) PER_IRIX64;
10679 #endif
10680
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext
10686 if { (ac_try="$ac_compile"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_compile") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } && {
10699          test -z "$ac_c_werror_flag" ||
10700          test ! -s conftest.err
10701        } && test -s conftest.$ac_objext; then
10702   ac_cv_have_decl_PER_IRIX64=yes
10703 else
10704   echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10706
10707         ac_cv_have_decl_PER_IRIX64=no
10708 fi
10709
10710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711 fi
10712 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
10713 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6; }
10714 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
10715
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_DECL_PER_IRIX64 1
10718 _ACEOF
10719
10720
10721 else
10722   cat >>confdefs.h <<_ACEOF
10723 #define HAVE_DECL_PER_IRIX64 0
10724 _ACEOF
10725
10726
10727 fi
10728 { echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
10729 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6; }
10730 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h.  */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h.  */
10739
10740 #include <linux/personality.h>
10741
10742
10743 int
10744 main ()
10745 {
10746 #ifndef PER_RISCOS
10747   (void) PER_RISCOS;
10748 #endif
10749
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext
10755 if { (ac_try="$ac_compile"
10756 case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_compile") 2>conftest.er1
10762   ac_status=$?
10763   grep -v '^ *+' conftest.er1 >conftest.err
10764   rm -f conftest.er1
10765   cat conftest.err >&5
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); } && {
10768          test -z "$ac_c_werror_flag" ||
10769          test ! -s conftest.err
10770        } && test -s conftest.$ac_objext; then
10771   ac_cv_have_decl_PER_RISCOS=yes
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776         ac_cv_have_decl_PER_RISCOS=no
10777 fi
10778
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 fi
10781 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
10782 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6; }
10783 if test $ac_cv_have_decl_PER_RISCOS = yes; then
10784
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_DECL_PER_RISCOS 1
10787 _ACEOF
10788
10789
10790 else
10791   cat >>confdefs.h <<_ACEOF
10792 #define HAVE_DECL_PER_RISCOS 0
10793 _ACEOF
10794
10795
10796 fi
10797 { echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
10798 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6; }
10799 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808
10809 #include <linux/personality.h>
10810
10811
10812 int
10813 main ()
10814 {
10815 #ifndef PER_SOLARIS
10816   (void) PER_SOLARIS;
10817 #endif
10818
10819   ;
10820   return 0;
10821 }
10822 _ACEOF
10823 rm -f conftest.$ac_objext
10824 if { (ac_try="$ac_compile"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10830   (eval "$ac_compile") 2>conftest.er1
10831   ac_status=$?
10832   grep -v '^ *+' conftest.er1 >conftest.err
10833   rm -f conftest.er1
10834   cat conftest.err >&5
10835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836   (exit $ac_status); } && {
10837          test -z "$ac_c_werror_flag" ||
10838          test ! -s conftest.err
10839        } && test -s conftest.$ac_objext; then
10840   ac_cv_have_decl_PER_SOLARIS=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10844
10845         ac_cv_have_decl_PER_SOLARIS=no
10846 fi
10847
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 fi
10850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
10851 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6; }
10852 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
10853
10854 cat >>confdefs.h <<_ACEOF
10855 #define HAVE_DECL_PER_SOLARIS 1
10856 _ACEOF
10857
10858
10859 else
10860   cat >>confdefs.h <<_ACEOF
10861 #define HAVE_DECL_PER_SOLARIS 0
10862 _ACEOF
10863
10864
10865 fi
10866 { echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
10867 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6; }
10868 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
10869   echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871   cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877
10878 #include <linux/personality.h>
10879
10880
10881 int
10882 main ()
10883 {
10884 #ifndef PER_UW7
10885   (void) PER_UW7;
10886 #endif
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_compile") 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } && {
10906          test -z "$ac_c_werror_flag" ||
10907          test ! -s conftest.err
10908        } && test -s conftest.$ac_objext; then
10909   ac_cv_have_decl_PER_UW7=yes
10910 else
10911   echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10913
10914         ac_cv_have_decl_PER_UW7=no
10915 fi
10916
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 fi
10919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
10920 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6; }
10921 if test $ac_cv_have_decl_PER_UW7 = yes; then
10922
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_DECL_PER_UW7 1
10925 _ACEOF
10926
10927
10928 else
10929   cat >>confdefs.h <<_ACEOF
10930 #define HAVE_DECL_PER_UW7 0
10931 _ACEOF
10932
10933
10934 fi
10935 { echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
10936 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6; }
10937 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
10938   echo $ECHO_N "(cached) $ECHO_C" >&6
10939 else
10940   cat >conftest.$ac_ext <<_ACEOF
10941 /* confdefs.h.  */
10942 _ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h.  */
10946
10947 #include <linux/personality.h>
10948
10949
10950 int
10951 main ()
10952 {
10953 #ifndef PER_HPUX
10954   (void) PER_HPUX;
10955 #endif
10956
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext
10962 if { (ac_try="$ac_compile"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_compile") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } && {
10975          test -z "$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        } && test -s conftest.$ac_objext; then
10978   ac_cv_have_decl_PER_HPUX=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983         ac_cv_have_decl_PER_HPUX=no
10984 fi
10985
10986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10987 fi
10988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
10989 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6; }
10990 if test $ac_cv_have_decl_PER_HPUX = yes; then
10991
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_DECL_PER_HPUX 1
10994 _ACEOF
10995
10996
10997 else
10998   cat >>confdefs.h <<_ACEOF
10999 #define HAVE_DECL_PER_HPUX 0
11000 _ACEOF
11001
11002
11003 fi
11004 { echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
11005 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6; }
11006 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
11007   echo $ECHO_N "(cached) $ECHO_C" >&6
11008 else
11009   cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015
11016 #include <linux/personality.h>
11017
11018
11019 int
11020 main ()
11021 {
11022 #ifndef PER_OSF4
11023   (void) PER_OSF4;
11024 #endif
11025
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 rm -f conftest.$ac_objext
11031 if { (ac_try="$ac_compile"
11032 case "(($ac_try" in
11033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034   *) ac_try_echo=$ac_try;;
11035 esac
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037   (eval "$ac_compile") 2>conftest.er1
11038   ac_status=$?
11039   grep -v '^ *+' conftest.er1 >conftest.err
11040   rm -f conftest.er1
11041   cat conftest.err >&5
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); } && {
11044          test -z "$ac_c_werror_flag" ||
11045          test ! -s conftest.err
11046        } && test -s conftest.$ac_objext; then
11047   ac_cv_have_decl_PER_OSF4=yes
11048 else
11049   echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11051
11052         ac_cv_have_decl_PER_OSF4=no
11053 fi
11054
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 fi
11057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
11058 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6; }
11059 if test $ac_cv_have_decl_PER_OSF4 = yes; then
11060
11061 cat >>confdefs.h <<_ACEOF
11062 #define HAVE_DECL_PER_OSF4 1
11063 _ACEOF
11064
11065
11066 else
11067   cat >>confdefs.h <<_ACEOF
11068 #define HAVE_DECL_PER_OSF4 0
11069 _ACEOF
11070
11071
11072 fi
11073
11074
11075         ac_ext=c
11076 ac_cpp='$CPP $CPPFLAGS'
11077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11080
11081
11082
11083
11084
11085
11086         { echo "$as_me:$LINENO: checking for initrddir" >&5
11087 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6; }
11088
11089 # Check whether --with-initrddir was given.
11090 if test "${with_initrddir+set}" = set; then
11091   withval=$with_initrddir; case "$withval" in
11092                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
11093 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
11094    { (exit 1); exit 1; }; };;
11095                         *)      ensc_initrddir=$withval;;
11096                      esac
11097 else
11098   ensc_initrddir='$(sysconfdir)/init.d'
11099 fi
11100
11101
11102         if test "initrddir"; then
11103                 initrddir=$ensc_initrddir
11104
11105         fi
11106
11107         { echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
11108 echo "${ECHO_T}$ensc_initrddir" >&6; }
11109
11110
11111         { echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
11112 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6; }
11113         # Check whether --enable-release was given.
11114 if test "${enable_release+set}" = set; then
11115   enableval=$enable_release; case "$enableval" in
11116                           yes)  ensc_release_mode=yes;;
11117                           no)   ensc_release_mode=no;;
11118                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
11119 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
11120    { (exit 1); exit 1; }; };;
11121                        esac
11122 else
11123    ensc_release_mode=no
11124 fi
11125
11126
11127         if test x"$ensc_release_mode" = xno; then
11128                 RELEASE_CPPFLAGS=
11129         else
11130                 RELEASE_CPPFLAGS='-DNDEBUG'
11131         fi
11132
11133
11134         { echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
11135 echo "${ECHO_T}$ensc_release_mode" >&6; }
11136
11137
11138 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
11139 # syscalls will never be enabled for glibc.
11140 ac_ext=c
11141 ac_cpp='$CPP $CPPFLAGS'
11142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11146 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
11147 # On Suns, sometimes $CPP names a directory.
11148 if test -n "$CPP" && test -d "$CPP"; then
11149   CPP=
11150 fi
11151 if test -z "$CPP"; then
11152   if test "${ac_cv_prog_CPP+set}" = set; then
11153   echo $ECHO_N "(cached) $ECHO_C" >&6
11154 else
11155       # Double quotes because CPP needs to be expanded
11156     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11157     do
11158       ac_preproc_ok=false
11159 for ac_c_preproc_warn_flag in '' yes
11160 do
11161   # Use a header file that comes with gcc, so configuring glibc
11162   # with a fresh cross-compiler works.
11163   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11164   # <limits.h> exists even on freestanding compilers.
11165   # On the NeXT, cc -E runs the code through the compiler's parser,
11166   # not just through cpp. "Syntax error" is here to catch this case.
11167   cat >conftest.$ac_ext <<_ACEOF
11168 /* confdefs.h.  */
11169 _ACEOF
11170 cat confdefs.h >>conftest.$ac_ext
11171 cat >>conftest.$ac_ext <<_ACEOF
11172 /* end confdefs.h.  */
11173 #ifdef __STDC__
11174 # include <limits.h>
11175 #else
11176 # include <assert.h>
11177 #endif
11178                      Syntax error
11179 _ACEOF
11180 if { (ac_try="$ac_cpp conftest.$ac_ext"
11181 case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11187   ac_status=$?
11188   grep -v '^ *+' conftest.er1 >conftest.err
11189   rm -f conftest.er1
11190   cat conftest.err >&5
11191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192   (exit $ac_status); } >/dev/null && {
11193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11194          test ! -s conftest.err
11195        }; then
11196   :
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201   # Broken: fails on valid input.
11202 continue
11203 fi
11204
11205 rm -f conftest.err conftest.$ac_ext
11206
11207   # OK, works on sane cases.  Now check whether nonexistent headers
11208   # can be detected and how.
11209   cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <ac_nonexistent.h>
11216 _ACEOF
11217 if { (ac_try="$ac_cpp conftest.$ac_ext"
11218 case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } >/dev/null && {
11230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11231          test ! -s conftest.err
11232        }; then
11233   # Broken: success on invalid input.
11234 continue
11235 else
11236   echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239   # Passes both tests.
11240 ac_preproc_ok=:
11241 break
11242 fi
11243
11244 rm -f conftest.err conftest.$ac_ext
11245
11246 done
11247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11248 rm -f conftest.err conftest.$ac_ext
11249 if $ac_preproc_ok; then
11250   break
11251 fi
11252
11253     done
11254     ac_cv_prog_CPP=$CPP
11255
11256 fi
11257   CPP=$ac_cv_prog_CPP
11258 else
11259   ac_cv_prog_CPP=$CPP
11260 fi
11261 { echo "$as_me:$LINENO: result: $CPP" >&5
11262 echo "${ECHO_T}$CPP" >&6; }
11263 ac_preproc_ok=false
11264 for ac_c_preproc_warn_flag in '' yes
11265 do
11266   # Use a header file that comes with gcc, so configuring glibc
11267   # with a fresh cross-compiler works.
11268   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269   # <limits.h> exists even on freestanding compilers.
11270   # On the NeXT, cc -E runs the code through the compiler's parser,
11271   # not just through cpp. "Syntax error" is here to catch this case.
11272   cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 #ifdef __STDC__
11279 # include <limits.h>
11280 #else
11281 # include <assert.h>
11282 #endif
11283                      Syntax error
11284 _ACEOF
11285 if { (ac_try="$ac_cpp conftest.$ac_ext"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } >/dev/null && {
11298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11299          test ! -s conftest.err
11300        }; then
11301   :
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306   # Broken: fails on valid input.
11307 continue
11308 fi
11309
11310 rm -f conftest.err conftest.$ac_ext
11311
11312   # OK, works on sane cases.  Now check whether nonexistent headers
11313   # can be detected and how.
11314   cat >conftest.$ac_ext <<_ACEOF
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 #include <ac_nonexistent.h>
11321 _ACEOF
11322 if { (ac_try="$ac_cpp conftest.$ac_ext"
11323 case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } >/dev/null && {
11335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11336          test ! -s conftest.err
11337        }; then
11338   # Broken: success on invalid input.
11339 continue
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344   # Passes both tests.
11345 ac_preproc_ok=:
11346 break
11347 fi
11348
11349 rm -f conftest.err conftest.$ac_ext
11350
11351 done
11352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11353 rm -f conftest.err conftest.$ac_ext
11354 if $ac_preproc_ok; then
11355   :
11356 else
11357   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11358 See \`config.log' for more details." >&5
11359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11360 See \`config.log' for more details." >&2;}
11361    { (exit 1); exit 1; }; }
11362 fi
11363
11364 ac_ext=c
11365 ac_cpp='$CPP $CPPFLAGS'
11366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11369
11370 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
11371 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
11372 if test "${ac_cv_path_GREP+set}" = set; then
11373   echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375   # Extract the first word of "grep ggrep" to use in msg output
11376 if test -z "$GREP"; then
11377 set dummy grep ggrep; ac_prog_name=$2
11378 if test "${ac_cv_path_GREP+set}" = set; then
11379   echo $ECHO_N "(cached) $ECHO_C" >&6
11380 else
11381   ac_path_GREP_found=false
11382 # Loop through the user's path and test for each of PROGNAME-LIST
11383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11385 do
11386   IFS=$as_save_IFS
11387   test -z "$as_dir" && as_dir=.
11388   for ac_prog in grep ggrep; do
11389   for ac_exec_ext in '' $ac_executable_extensions; do
11390     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11391     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
11392     # Check for GNU ac_path_GREP and select it if it is found.
11393   # Check for GNU $ac_path_GREP
11394 case `"$ac_path_GREP" --version 2>&1` in
11395 *GNU*)
11396   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11397 *)
11398   ac_count=0
11399   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11400   while :
11401   do
11402     cat "conftest.in" "conftest.in" >"conftest.tmp"
11403     mv "conftest.tmp" "conftest.in"
11404     cp "conftest.in" "conftest.nl"
11405     echo 'GREP' >> "conftest.nl"
11406     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11407     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11408     ac_count=`expr $ac_count + 1`
11409     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11410       # Best one so far, save it but keep looking for a better one
11411       ac_cv_path_GREP="$ac_path_GREP"
11412       ac_path_GREP_max=$ac_count
11413     fi
11414     # 10*(2^10) chars as input seems more than enough
11415     test $ac_count -gt 10 && break
11416   done
11417   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11418 esac
11419
11420
11421     $ac_path_GREP_found && break 3
11422   done
11423 done
11424
11425 done
11426 IFS=$as_save_IFS
11427
11428
11429 fi
11430
11431 GREP="$ac_cv_path_GREP"
11432 if test -z "$GREP"; then
11433   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11434 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11435    { (exit 1); exit 1; }; }
11436 fi
11437
11438 else
11439   ac_cv_path_GREP=$GREP
11440 fi
11441
11442
11443 fi
11444 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
11445 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
11446  GREP="$ac_cv_path_GREP"
11447
11448
11449 { echo "$as_me:$LINENO: checking for egrep" >&5
11450 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11451 if test "${ac_cv_path_EGREP+set}" = set; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11455    then ac_cv_path_EGREP="$GREP -E"
11456    else
11457      # Extract the first word of "egrep" to use in msg output
11458 if test -z "$EGREP"; then
11459 set dummy egrep; ac_prog_name=$2
11460 if test "${ac_cv_path_EGREP+set}" = set; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   ac_path_EGREP_found=false
11464 # Loop through the user's path and test for each of PROGNAME-LIST
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11467 do
11468   IFS=$as_save_IFS
11469   test -z "$as_dir" && as_dir=.
11470   for ac_prog in egrep; do
11471   for ac_exec_ext in '' $ac_executable_extensions; do
11472     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11473     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11474     # Check for GNU ac_path_EGREP and select it if it is found.
11475   # Check for GNU $ac_path_EGREP
11476 case `"$ac_path_EGREP" --version 2>&1` in
11477 *GNU*)
11478   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11479 *)
11480   ac_count=0
11481   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11482   while :
11483   do
11484     cat "conftest.in" "conftest.in" >"conftest.tmp"
11485     mv "conftest.tmp" "conftest.in"
11486     cp "conftest.in" "conftest.nl"
11487     echo 'EGREP' >> "conftest.nl"
11488     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11489     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11490     ac_count=`expr $ac_count + 1`
11491     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11492       # Best one so far, save it but keep looking for a better one
11493       ac_cv_path_EGREP="$ac_path_EGREP"
11494       ac_path_EGREP_max=$ac_count
11495     fi
11496     # 10*(2^10) chars as input seems more than enough
11497     test $ac_count -gt 10 && break
11498   done
11499   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11500 esac
11501
11502
11503     $ac_path_EGREP_found && break 3
11504   done
11505 done
11506
11507 done
11508 IFS=$as_save_IFS
11509
11510
11511 fi
11512
11513 EGREP="$ac_cv_path_EGREP"
11514 if test -z "$EGREP"; then
11515   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11516 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11517    { (exit 1); exit 1; }; }
11518 fi
11519
11520 else
11521   ac_cv_path_EGREP=$EGREP
11522 fi
11523
11524
11525    fi
11526 fi
11527 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11528 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11529  EGREP="$ac_cv_path_EGREP"
11530
11531
11532
11533
11534
11535
11536         { echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
11537 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6; }
11538 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
11539   echo $ECHO_N "(cached) $ECHO_C" >&6
11540 else
11541
11542                 ac_ext=c
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11547
11548                 cat >conftest.$ac_ext <<_ACEOF
11549
11550 #ifdef ENSC_SYSCALL_FALLBACK
11551 #  include ENSC_SYSCALL_FALLBACK
11552 #else
11553 #  include <asm/unistd.h>
11554 #endif
11555 #ifdef __NR_vserver
11556 ensc_syscall_tmp_nr=__NR_vserver;
11557 ensc_syscall_tmp_src=ENSC_MARK
11558 #endif
11559
11560 _ACEOF
11561                 ensc_syscall_tmp_nr=
11562                 ensc_syscall_tmp_src=
11563                 test x"$ensc_syscall_tmp_nr" != x || \
11564                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
11565                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
11566                         eval $($CPP $CPPFLAGS -D ENSC_MARK='fallback' -D ENSC_SYSCALL_FALLBACK='"lib/syscall-fallback.h"' conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
11567                 test "$ensc_syscall_tmp_nr" || {
11568                         ensc_syscall_tmp_nr=273
11569                         ensc_syscall_tmp_src=default
11570                 }
11571
11572                 if test x"$ensc_syscall_tmp_nr" = x; then
11573                         { { echo "$as_me:$LINENO: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&5
11574 echo "$as_me: error: Can not determine value of __NR_vserver; please verify your glibc/kernelheaders, and/or set CPPFLAGS='-D__NR_vserver=<value>' environment when calling configure." >&2;}
11575    { (exit 1); exit 1; }; }
11576                 fi
11577                 ac_ext=c
11578 ac_cpp='$CPP $CPPFLAGS'
11579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11582
11583
11584                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
11585
11586 fi
11587 { echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
11588 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6; }
11589
11590         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
11591         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
11592
11593         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
11597 _ACEOF
11598
11599         fi
11600
11601
11602         { echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
11603 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6; }
11604         # Check whether --enable-alternative-syscalls was given.
11605 if test "${enable_alternative_syscalls+set}" = set; then
11606   enableval=$enable_alternative_syscalls; case $enableval in
11607                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
11608                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
11609 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
11610    { (exit 1); exit 1; }; };;
11611                        esac
11612 else
11613   ensc_use_alternative_syscall_macros=yes
11614 fi
11615
11616
11617         case $ensc_use_alternative_syscall_macros in
11618                 (yes)
11619 cat >>confdefs.h <<\_ACEOF
11620 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
11621 _ACEOF
11622 ;;
11623         esac
11624
11625         { echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
11626 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6; }
11627
11628
11629
11630
11631         { echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
11632 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6; }
11633
11634 # Check whether --with-syscall was given.
11635 if test "${with_syscall+set}" = set; then
11636   withval=$with_syscall;
11637 else
11638   with_syscall=auto
11639 fi
11640
11641         { echo "$as_me:$LINENO: result: $with_syscall" >&5
11642 echo "${ECHO_T}$with_syscall" >&6; }
11643
11644         case x"$with_syscall" in
11645             (xauto)
11646                 { echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
11647 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6; }
11648 if test "${ensc_cv_test_syscall+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651
11652                                 ac_ext=c
11653 ac_cpp='$CPP $CPPFLAGS'
11654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11657
11658                                 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h.  */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h.  */
11664
11665 #include "$srcdir/lib/syscall-wrap.h"
11666 #include <errno.h>
11667
11668 #define __NR_foo0       300
11669 #define __NR_foo1       301
11670 #define __NR_foo2       302
11671 #define __NR_foo3       303
11672 #define __NR_foo4       304
11673 #define __NR_foo5       305
11674 inline static _syscall0(int, foo0)
11675 inline static _syscall1(int, foo1, int, a)
11676 inline static _syscall2(int, foo2, int, a, int, b)
11677 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11678 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11679 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11680
11681 int main() {
11682   return foo0() || \
11683          foo1(1) || \
11684          foo2(1,2) || \
11685          foo3(1,2,3) || \
11686          foo4(1,2,3,4) || \
11687          foo5(1,2,3,4,5);
11688 }
11689
11690 _ACEOF
11691 rm -f conftest.$ac_objext
11692 if { (ac_try="$ac_compile"
11693 case "(($ac_try" in
11694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695   *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698   (eval "$ac_compile") 2>conftest.er1
11699   ac_status=$?
11700   grep -v '^ *+' conftest.er1 >conftest.err
11701   rm -f conftest.er1
11702   cat conftest.err >&5
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } && {
11705          test -z "$ac_c_werror_flag" ||
11706          test ! -s conftest.err
11707        } && test -s conftest.$ac_objext; then
11708   ensc_cv_test_syscall=fast
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713         ensc_cv_test_syscall=traditional
11714 fi
11715
11716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717
11718                                 ac_ext=c
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11723
11724
11725 fi
11726 { echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
11727 echo "${ECHO_T}$ensc_cv_test_syscall" >&6; }
11728                 with_syscall=$ensc_cv_test_syscall
11729                 ;;
11730             (xfast|xtraditional)
11731                 ;;
11732             *)
11733                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
11734 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
11735    { (exit 1); exit 1; }; }
11736                 ;;
11737         esac
11738
11739         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
11740             with_syscall='alternative'
11741         fi
11742
11743         if test x"$with_syscall" = xtraditional; then
11744
11745 cat >>confdefs.h <<\_ACEOF
11746 #define ENSC_SYSCALL_TRADITIONAL 1
11747 _ACEOF
11748
11749         fi
11750
11751
11752
11753
11754
11755
11756 case $host_cpu in
11757         (i*86|athlon)   min_diet_ver=0.25;;
11758         (ia64|hppa*)    min_diet_ver=0.29;;
11759         (sparc*)        min_diet_ver=0.30;;
11760         (x86_64)        min_diet_ver=0.27;;
11761         (*)             min_diet_ver=0.28;;
11762 esac
11763
11764
11765         { echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
11766 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6; }
11767
11768
11769
11770
11771         : ${DIET:=diet}
11772         : ${DIETFLAGS=-Os}
11773
11774         # Check whether --enable-dietlibc was given.
11775 if test "${enable_dietlibc+set}" = set; then
11776   enableval=$enable_dietlibc; case "$enableval" in
11777                           (yes) use_dietlibc=forced;;
11778                           (no)  use_dietlibc=forced_no;;
11779                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
11780 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
11781    { (exit 1); exit 1; }; };;
11782                        esac
11783 else
11784   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
11785 fi
11786
11787
11788         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
11789             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
11790             _dietlibc_ver=${_dietlibc_ver##*diet version }
11791             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
11792             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
11793             _dietlibc_ver_min=${_dietlibc_ver#*.}
11794             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
11795             _dietlibc_cmp="$min_diet_ver"
11796             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
11797             _dietlibc_cmp_min=${_dietlibc_cmp#*.}
11798
11799             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
11800
11801             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
11802             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
11803
11804             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
11805         else
11806             ENSC_VERSION_DIETLIBC=
11807             _dietlibc_ver=-1
11808         fi
11809
11810         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
11811         ensc_have_dietlibc=no
11812
11813         case x"$use_dietlibc" in
11814             xdetected)
11815                  if true; then
11816   USE_DIETLIBC_TRUE=
11817   USE_DIETLIBC_FALSE='#'
11818 else
11819   USE_DIETLIBC_TRUE='#'
11820   USE_DIETLIBC_FALSE=
11821 fi
11822
11823                 { echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
11824 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6; }
11825                 ensc_have_dietlibc=yes
11826                 ;;
11827             xforced)
11828                  if true; then
11829   USE_DIETLIBC_TRUE=
11830   USE_DIETLIBC_FALSE='#'
11831 else
11832   USE_DIETLIBC_TRUE='#'
11833   USE_DIETLIBC_FALSE=
11834 fi
11835
11836                 { echo "$as_me:$LINENO: result: yes (forced)" >&5
11837 echo "${ECHO_T}yes (forced)" >&6; }
11838                 ensc_have_dietlibc=yes
11839                 ;;
11840             xdetected_no)
11841                  if false; then
11842   USE_DIETLIBC_TRUE=
11843   USE_DIETLIBC_FALSE='#'
11844 else
11845   USE_DIETLIBC_TRUE='#'
11846   USE_DIETLIBC_FALSE=
11847 fi
11848
11849                 { echo "$as_me:$LINENO: result: no (detected)" >&5
11850 echo "${ECHO_T}no (detected)" >&6; }
11851                 ;;
11852             xdetected_old)
11853                  if false; then
11854   USE_DIETLIBC_TRUE=
11855   USE_DIETLIBC_FALSE='#'
11856 else
11857   USE_DIETLIBC_TRUE='#'
11858   USE_DIETLIBC_FALSE=
11859 fi
11860
11861                 { echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
11862 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6; }
11863                 ;;
11864             xforced_no)
11865                  if false; then
11866   USE_DIETLIBC_TRUE=
11867   USE_DIETLIBC_FALSE='#'
11868 else
11869   USE_DIETLIBC_TRUE='#'
11870   USE_DIETLIBC_FALSE=
11871 fi
11872
11873                 { echo "$as_me:$LINENO: result: no (forced)" >&5
11874 echo "${ECHO_T}no (forced)" >&6; }
11875                 ;;
11876             *)
11877                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
11878 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
11879    { (exit 1); exit 1; }; }
11880                 ;;
11881         esac
11882
11883         if test x"$ensc_have_dietlibc" != xno; then
11884
11885
11886
11887
11888         { echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
11889 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6; }
11890 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
11891   echo $ECHO_N "(cached) $ECHO_C" >&6
11892 else
11893
11894                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
11895                 _ensc_dietlibc_c99_old_CC=$CC
11896
11897                 CFLAGS="-std=c99"
11898                 CC="${DIET:-diet} $CC"
11899
11900                 ac_ext=c
11901 ac_cpp='$CPP $CPPFLAGS'
11902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11905
11906                 cat >conftest.$ac_ext <<_ACEOF
11907 /* */
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_compile") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } && {
11923          test -z "$ac_c_werror_flag" ||
11924          test ! -s conftest.err
11925        } && test -s conftest.$ac_objext; then
11926
11927                         cat >conftest.$ac_ext <<_ACEOF
11928
11929                                 #include <stdint.h>
11930                                 #include <sys/cdefs.h>
11931                                 #if defined(inline)
11932                                 #  error 'inline' badly defined
11933                                 #endif
11934                                 volatile uint64_t       a;
11935
11936 _ACEOF
11937 rm -f conftest.$ac_objext
11938 if { (ac_try="$ac_compile"
11939 case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_compile") 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } && {
11951          test -z "$ac_c_werror_flag" ||
11952          test ! -s conftest.err
11953        } && test -s conftest.$ac_objext; then
11954   ensc_cv_c_dietlibc_c99=yes
11955 else
11956   echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11958
11959         ensc_cv_c_dietlibc_c99=no
11960 fi
11961
11962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967         ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
11968 fi
11969
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971                 ac_ext=c
11972 ac_cpp='$CPP $CPPFLAGS'
11973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11976
11977
11978                 CC=$_ensc_dietlibc_c99_old_CC
11979                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
11980
11981 fi
11982 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
11983 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6; }
11984
11985         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
11986                 cat >>confdefs.h <<\_ACEOF
11987 #define ENSC_DIETLIBC_C99 1
11988 _ACEOF
11989
11990         fi
11991
11992
11993
11994
11995
11996         { echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
11997 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6; }
11998 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001
12002                 _ensc_dietlibc_syscall_old_CC="$CC"
12003                 CC="${DIET:-diet} $CC"
12004
12005                 ac_ext=c
12006 ac_cpp='$CPP $CPPFLAGS'
12007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011                 cat >conftest.$ac_ext <<_ACEOF
12012
12013                         #include <sys/syscall.h>
12014                         long int syscall(long int __sysno, ...);
12015
12016 _ACEOF
12017 rm -f conftest.$ac_objext
12018 if { (ac_try="$ac_compile"
12019 case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024   (eval "$ac_compile") 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } && {
12031          test -z "$ac_c_werror_flag" ||
12032          test ! -s conftest.err
12033        } && test -s conftest.$ac_objext; then
12034   ensc_cv_c_dietlibc_syscall=no
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039         ensc_cv_c_dietlibc_syscall=yes
12040 fi
12041
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043                 ac_ext=c
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049
12050                 CC="$_ensc_dietlibc_syscall_old_CC"
12051
12052 fi
12053 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
12054 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6; }
12055
12056         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
12057                 cat >>confdefs.h <<\_ACEOF
12058 #define ENSC_DIETLIBC_HAS_SYSCALL 1
12059 _ACEOF
12060
12061         fi
12062
12063         fi
12064
12065
12066 if test x"$ensc_have_dietlibc" = xno; then
12067         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
12068 echo "$as_me: WARNING: ***                                                         ***" >&2;}
12069         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
12070 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
12071         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
12072 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
12073         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
12074 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
12075         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
12076 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
12077         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
12078 echo "$as_me: WARNING: ***                                                         ***" >&2;}
12079          if false; then
12080   USE_DIETLIBC_COMPAT_TRUE=
12081   USE_DIETLIBC_COMPAT_FALSE='#'
12082 else
12083   USE_DIETLIBC_COMPAT_TRUE='#'
12084   USE_DIETLIBC_COMPAT_FALSE=
12085 fi
12086
12087 else
12088         # HACK: libtool does not have cmdline options to build only
12089         # dynamic libraries; this can be done with the
12090         # '--disable-static' ./configure option only.  As our static
12091         # libraries will be build with dietlibc, we have to do set
12092         # this option which is evaluated by 'AC_PROG_LIBTOOL'
12093         # below.  Therefore, this macro must not be called earlier.
12094         enable_static=no
12095
12096
12097
12098
12099         { echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
12100 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6; }
12101 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104
12105                 ac_ext=c
12106 ac_cpp='$CPP $CPPFLAGS'
12107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12110
12111                 ensc_dietlibc_need_compat_old_CC=$CC
12112                 CC="${DIET:-diet} $CC"
12113                 cat >conftest.$ac_ext <<_ACEOF
12114
12115                         /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120
12121 #include "$srcdir/lib/syscall-wrap.h"
12122 #include <errno.h>
12123
12124 #define __NR_foo0               42
12125 #define __NR_foo1               42
12126 #define __NR_foo2               42
12127 #define __NR_foo3               42
12128 #define __NR_foo4               42
12129 #define __NR_foo5               42
12130 inline static _syscall0(int, foo0)
12131 inline static _syscall1(int, foo1, int, a)
12132 inline static _syscall2(int, foo2, int, a, int, b)
12133 inline static _syscall3(int, foo3, int, a, int, b, int, c)
12134 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
12135 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
12136
12137 int
12138 main ()
12139 {
12140 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
12141   ;
12142   return 0;
12143 }
12144 _ACEOF
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_link") 2>conftest.er1
12153   ac_status=$?
12154   grep -v '^ *+' conftest.er1 >conftest.err
12155   rm -f conftest.er1
12156   cat conftest.err >&5
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } && {
12159          test -z "$ac_c_werror_flag" ||
12160          test ! -s conftest.err
12161        } && test -s conftest$ac_exeext &&
12162        $as_test_x conftest$ac_exeext; then
12163   ensc_cv_c_dietlibc_compat=no
12164 else
12165   echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168         ensc_cv_c_dietlibc_compat=yes
12169 fi
12170
12171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12172       conftest$ac_exeext conftest.$ac_ext
12173                 CC=$ensc_dietlibc_need_compat_old_CC
12174                 ac_ext=c
12175 ac_cpp='$CPP $CPPFLAGS'
12176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12179
12180
12181 fi
12182 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
12183 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6; }
12184
12185         if test x"USE_DIETLIBC_COMPAT" != x; then
12186                  if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
12187   USE_DIETLIBC_COMPAT_TRUE=
12188   USE_DIETLIBC_COMPAT_FALSE='#'
12189 else
12190   USE_DIETLIBC_COMPAT_TRUE='#'
12191   USE_DIETLIBC_COMPAT_FALSE=
12192 fi
12193
12194         fi
12195
12196 fi
12197
12198  if test x"$ensc_have_dietlibc" = xyes; then
12199   ENSC_USE_DIETLIBC_TRUE=
12200   ENSC_USE_DIETLIBC_FALSE='#'
12201 else
12202   ENSC_USE_DIETLIBC_TRUE='#'
12203   ENSC_USE_DIETLIBC_FALSE=
12204 fi
12205
12206  if true; then
12207   ENSC_USE_GLIBC_TRUE=
12208   ENSC_USE_GLIBC_FALSE='#'
12209 else
12210   ENSC_USE_GLIBC_TRUE='#'
12211   ENSC_USE_GLIBC_FALSE=
12212 fi
12213
12214
12215 # HACK: see comments at 'enable_static' above
12216 # Check whether --enable-shared was given.
12217 if test "${enable_shared+set}" = set; then
12218   enableval=$enable_shared; p=${PACKAGE-default}
12219     case $enableval in
12220     yes) enable_shared=yes ;;
12221     no) enable_shared=no ;;
12222     *)
12223       enable_shared=no
12224       # Look at the argument we got.  We use all the common list separators.
12225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12226       for pkg in $enableval; do
12227         IFS="$lt_save_ifs"
12228         if test "X$pkg" = "X$p"; then
12229           enable_shared=yes
12230         fi
12231       done
12232       IFS="$lt_save_ifs"
12233       ;;
12234     esac
12235 else
12236   enable_shared=yes
12237 fi
12238
12239
12240 # Check whether --enable-static was given.
12241 if test "${enable_static+set}" = set; then
12242   enableval=$enable_static; p=${PACKAGE-default}
12243     case $enableval in
12244     yes) enable_static=yes ;;
12245     no) enable_static=no ;;
12246     *)
12247      enable_static=no
12248       # Look at the argument we got.  We use all the common list separators.
12249       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12250       for pkg in $enableval; do
12251         IFS="$lt_save_ifs"
12252         if test "X$pkg" = "X$p"; then
12253           enable_static=yes
12254         fi
12255       done
12256       IFS="$lt_save_ifs"
12257       ;;
12258     esac
12259 else
12260   enable_static=yes
12261 fi
12262
12263
12264 # Check whether --enable-fast-install was given.
12265 if test "${enable_fast_install+set}" = set; then
12266   enableval=$enable_fast_install; p=${PACKAGE-default}
12267     case $enableval in
12268     yes) enable_fast_install=yes ;;
12269     no) enable_fast_install=no ;;
12270     *)
12271       enable_fast_install=no
12272       # Look at the argument we got.  We use all the common list separators.
12273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12274       for pkg in $enableval; do
12275         IFS="$lt_save_ifs"
12276         if test "X$pkg" = "X$p"; then
12277           enable_fast_install=yes
12278         fi
12279       done
12280       IFS="$lt_save_ifs"
12281       ;;
12282     esac
12283 else
12284   enable_fast_install=yes
12285 fi
12286
12287
12288 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12289 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12290 if test "${lt_cv_path_SED+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   # Loop through the user's path and test for sed and gsed.
12294 # Then use that list of sed's as ones to test for truncation.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298   IFS=$as_save_IFS
12299   test -z "$as_dir" && as_dir=.
12300   for lt_ac_prog in sed gsed; do
12301     for ac_exec_ext in '' $ac_executable_extensions; do
12302       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
12303         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12304       fi
12305     done
12306   done
12307 done
12308 IFS=$as_save_IFS
12309 lt_ac_max=0
12310 lt_ac_count=0
12311 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12312 # along with /bin/sed that truncates output.
12313 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12314   test ! -f $lt_ac_sed && continue
12315   cat /dev/null > conftest.in
12316   lt_ac_count=0
12317   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12318   # Check for GNU sed and select it if it is found.
12319   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12320     lt_cv_path_SED=$lt_ac_sed
12321     break
12322   fi
12323   while true; do
12324     cat conftest.in conftest.in >conftest.tmp
12325     mv conftest.tmp conftest.in
12326     cp conftest.in conftest.nl
12327     echo >>conftest.nl
12328     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12329     cmp -s conftest.out conftest.nl || break
12330     # 10000 chars as input seems more than enough
12331     test $lt_ac_count -gt 10 && break
12332     lt_ac_count=`expr $lt_ac_count + 1`
12333     if test $lt_ac_count -gt $lt_ac_max; then
12334       lt_ac_max=$lt_ac_count
12335       lt_cv_path_SED=$lt_ac_sed
12336     fi
12337   done
12338 done
12339
12340 fi
12341
12342 SED=$lt_cv_path_SED
12343
12344 { echo "$as_me:$LINENO: result: $SED" >&5
12345 echo "${ECHO_T}$SED" >&6; }
12346
12347
12348 # Check whether --with-gnu-ld was given.
12349 if test "${with_gnu_ld+set}" = set; then
12350   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12351 else
12352   with_gnu_ld=no
12353 fi
12354
12355 ac_prog=ld
12356 if test "$GCC" = yes; then
12357   # Check if gcc -print-prog-name=ld gives a path.
12358   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12359 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12360   case $host in
12361   *-*-mingw*)
12362     # gcc leaves a trailing carriage return which upsets mingw
12363     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12364   *)
12365     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12366   esac
12367   case $ac_prog in
12368     # Accept absolute paths.
12369     [\\/]* | ?:[\\/]*)
12370       re_direlt='/[^/][^/]*/\.\./'
12371       # Canonicalize the pathname of ld
12372       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12373       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12374         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12375       done
12376       test -z "$LD" && LD="$ac_prog"
12377       ;;
12378   "")
12379     # If it fails, then pretend we aren't using GCC.
12380     ac_prog=ld
12381     ;;
12382   *)
12383     # If it is relative, then search for the first ld in PATH.
12384     with_gnu_ld=unknown
12385     ;;
12386   esac
12387 elif test "$with_gnu_ld" = yes; then
12388   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12389 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12390 else
12391   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12392 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12393 fi
12394 if test "${lt_cv_path_LD+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   if test -z "$LD"; then
12398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12399   for ac_dir in $PATH; do
12400     IFS="$lt_save_ifs"
12401     test -z "$ac_dir" && ac_dir=.
12402     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12403       lt_cv_path_LD="$ac_dir/$ac_prog"
12404       # Check to see if the program is GNU ld.  I'd rather use --version,
12405       # but apparently some variants of GNU ld only accept -v.
12406       # Break only if it was the GNU/non-GNU ld that we prefer.
12407       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12408       *GNU* | *'with BFD'*)
12409         test "$with_gnu_ld" != no && break
12410         ;;
12411       *)
12412         test "$with_gnu_ld" != yes && break
12413         ;;
12414       esac
12415     fi
12416   done
12417   IFS="$lt_save_ifs"
12418 else
12419   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12420 fi
12421 fi
12422
12423 LD="$lt_cv_path_LD"
12424 if test -n "$LD"; then
12425   { echo "$as_me:$LINENO: result: $LD" >&5
12426 echo "${ECHO_T}$LD" >&6; }
12427 else
12428   { echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6; }
12430 fi
12431 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12432 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12433    { (exit 1); exit 1; }; }
12434 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12435 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12436 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12437   echo $ECHO_N "(cached) $ECHO_C" >&6
12438 else
12439   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12440 case `$LD -v 2>&1 </dev/null` in
12441 *GNU* | *'with BFD'*)
12442   lt_cv_prog_gnu_ld=yes
12443   ;;
12444 *)
12445   lt_cv_prog_gnu_ld=no
12446   ;;
12447 esac
12448 fi
12449 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12450 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12451 with_gnu_ld=$lt_cv_prog_gnu_ld
12452
12453
12454 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12455 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12456 if test "${lt_cv_ld_reload_flag+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   lt_cv_ld_reload_flag='-r'
12460 fi
12461 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12462 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12463 reload_flag=$lt_cv_ld_reload_flag
12464 case $reload_flag in
12465 "" | " "*) ;;
12466 *) reload_flag=" $reload_flag" ;;
12467 esac
12468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12469 case $host_os in
12470   darwin*)
12471     if test "$GCC" = yes; then
12472       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12473     else
12474       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12475     fi
12476     ;;
12477 esac
12478
12479 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12480 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12481 if test "${lt_cv_path_NM+set}" = set; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484   if test -n "$NM"; then
12485   # Let the user override the test.
12486   lt_cv_path_NM="$NM"
12487 else
12488   lt_nm_to_check="${ac_tool_prefix}nm"
12489   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12490     lt_nm_to_check="$lt_nm_to_check nm"
12491   fi
12492   for lt_tmp_nm in $lt_nm_to_check; do
12493     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12494     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12495       IFS="$lt_save_ifs"
12496       test -z "$ac_dir" && ac_dir=.
12497       tmp_nm="$ac_dir/$lt_tmp_nm"
12498       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12499         # Check to see if the nm accepts a BSD-compat flag.
12500         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12501         #   nm: unknown option "B" ignored
12502         # Tru64's nm complains that /dev/null is an invalid object file
12503         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12504         */dev/null* | *'Invalid file or object type'*)
12505           lt_cv_path_NM="$tmp_nm -B"
12506           break
12507           ;;
12508         *)
12509           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12510           */dev/null*)
12511             lt_cv_path_NM="$tmp_nm -p"
12512             break
12513             ;;
12514           *)
12515             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12516             continue # so that we can try to find one that supports BSD flags
12517             ;;
12518           esac
12519           ;;
12520         esac
12521       fi
12522     done
12523     IFS="$lt_save_ifs"
12524   done
12525   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12526 fi
12527 fi
12528 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12529 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12530 NM="$lt_cv_path_NM"
12531
12532 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12533 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12534 if test "${lt_cv_deplibs_check_method+set}" = set; then
12535   echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537   lt_cv_file_magic_cmd='$MAGIC_CMD'
12538 lt_cv_file_magic_test_file=
12539 lt_cv_deplibs_check_method='unknown'
12540 # Need to set the preceding variable on all platforms that support
12541 # interlibrary dependencies.
12542 # 'none' -- dependencies not supported.
12543 # `unknown' -- same as none, but documents that we really don't know.
12544 # 'pass_all' -- all dependencies passed with no checks.
12545 # 'test_compile' -- check by making test program.
12546 # 'file_magic [[regex]]' -- check by looking for files in library path
12547 # which responds to the $file_magic_cmd with a given extended regex.
12548 # If you have `file' or equivalent on your system and you're not sure
12549 # whether `pass_all' will *always* work, you probably want this one.
12550
12551 case $host_os in
12552 aix4* | aix5*)
12553   lt_cv_deplibs_check_method=pass_all
12554   ;;
12555
12556 beos*)
12557   lt_cv_deplibs_check_method=pass_all
12558   ;;
12559
12560 bsdi[45]*)
12561   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12562   lt_cv_file_magic_cmd='/usr/bin/file -L'
12563   lt_cv_file_magic_test_file=/shlib/libc.so
12564   ;;
12565
12566 cygwin*)
12567   # func_win32_libid is a shell function defined in ltmain.sh
12568   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12569   lt_cv_file_magic_cmd='func_win32_libid'
12570   ;;
12571
12572 mingw* | pw32*)
12573   # Base MSYS/MinGW do not provide the 'file' command needed by
12574   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12575   # unless we find 'file', for example because we are cross-compiling.
12576   if ( file / ) >/dev/null 2>&1; then
12577     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12578     lt_cv_file_magic_cmd='func_win32_libid'
12579   else
12580     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12581     lt_cv_file_magic_cmd='$OBJDUMP -f'
12582   fi
12583   ;;
12584
12585 darwin* | rhapsody*)
12586   lt_cv_deplibs_check_method=pass_all
12587   ;;
12588
12589 freebsd* | dragonfly*)
12590   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12591     case $host_cpu in
12592     i*86 )
12593       # Not sure whether the presence of OpenBSD here was a mistake.
12594       # Let's accept both of them until this is cleared up.
12595       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12596       lt_cv_file_magic_cmd=/usr/bin/file
12597       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12598       ;;
12599     esac
12600   else
12601     lt_cv_deplibs_check_method=pass_all
12602   fi
12603   ;;
12604
12605 gnu*)
12606   lt_cv_deplibs_check_method=pass_all
12607   ;;
12608
12609 hpux10.20* | hpux11*)
12610   lt_cv_file_magic_cmd=/usr/bin/file
12611   case $host_cpu in
12612   ia64*)
12613     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12614     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12615     ;;
12616   hppa*64*)
12617     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]'
12618     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12619     ;;
12620   *)
12621     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12622     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12623     ;;
12624   esac
12625   ;;
12626
12627 interix[3-9]*)
12628   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12629   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12630   ;;
12631
12632 irix5* | irix6* | nonstopux*)
12633   case $LD in
12634   *-32|*"-32 ") libmagic=32-bit;;
12635   *-n32|*"-n32 ") libmagic=N32;;
12636   *-64|*"-64 ") libmagic=64-bit;;
12637   *) libmagic=never-match;;
12638   esac
12639   lt_cv_deplibs_check_method=pass_all
12640   ;;
12641
12642 # This must be Linux ELF.
12643 linux* | k*bsd*-gnu)
12644   lt_cv_deplibs_check_method=pass_all
12645   ;;
12646
12647 netbsd*)
12648   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12649     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12650   else
12651     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12652   fi
12653   ;;
12654
12655 newos6*)
12656   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12657   lt_cv_file_magic_cmd=/usr/bin/file
12658   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12659   ;;
12660
12661 nto-qnx*)
12662   lt_cv_deplibs_check_method=unknown
12663   ;;
12664
12665 openbsd*)
12666   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12668   else
12669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12670   fi
12671   ;;
12672
12673 osf3* | osf4* | osf5*)
12674   lt_cv_deplibs_check_method=pass_all
12675   ;;
12676
12677 rdos*)
12678   lt_cv_deplibs_check_method=pass_all
12679   ;;
12680
12681 solaris*)
12682   lt_cv_deplibs_check_method=pass_all
12683   ;;
12684
12685 sysv4 | sysv4.3*)
12686   case $host_vendor in
12687   motorola)
12688     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]'
12689     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12690     ;;
12691   ncr)
12692     lt_cv_deplibs_check_method=pass_all
12693     ;;
12694   sequent)
12695     lt_cv_file_magic_cmd='/bin/file'
12696     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12697     ;;
12698   sni)
12699     lt_cv_file_magic_cmd='/bin/file'
12700     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12701     lt_cv_file_magic_test_file=/lib/libc.so
12702     ;;
12703   siemens)
12704     lt_cv_deplibs_check_method=pass_all
12705     ;;
12706   pc)
12707     lt_cv_deplibs_check_method=pass_all
12708     ;;
12709   esac
12710   ;;
12711
12712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12713   lt_cv_deplibs_check_method=pass_all
12714   ;;
12715 esac
12716
12717 fi
12718 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12719 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12720 file_magic_cmd=$lt_cv_file_magic_cmd
12721 deplibs_check_method=$lt_cv_deplibs_check_method
12722 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12723
12724
12725
12726
12727 # If no C compiler was specified, use CC.
12728 LTCC=${LTCC-"$CC"}
12729
12730 # If no C compiler flags were specified, use CFLAGS.
12731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12732
12733 # Allow CC to be a program name with arguments.
12734 compiler=$CC
12735
12736 # Check whether --enable-libtool-lock was given.
12737 if test "${enable_libtool_lock+set}" = set; then
12738   enableval=$enable_libtool_lock;
12739 fi
12740
12741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12742
12743 # Some flags need to be propagated to the compiler or linker for good
12744 # libtool support.
12745 case $host in
12746 ia64-*-hpux*)
12747   # Find out which ABI we are using.
12748   echo 'int i;' > conftest.$ac_ext
12749   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750   (eval $ac_compile) 2>&5
12751   ac_status=$?
12752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); }; then
12754     case `/usr/bin/file conftest.$ac_objext` in
12755     *ELF-32*)
12756       HPUX_IA64_MODE="32"
12757       ;;
12758     *ELF-64*)
12759       HPUX_IA64_MODE="64"
12760       ;;
12761     esac
12762   fi
12763   rm -rf conftest*
12764   ;;
12765 *-*-irix6*)
12766   # Find out which ABI we are using.
12767   echo '#line 12767 "configure"' > conftest.$ac_ext
12768   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>&5
12770   ac_status=$?
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); }; then
12773    if test "$lt_cv_prog_gnu_ld" = yes; then
12774     case `/usr/bin/file conftest.$ac_objext` in
12775     *32-bit*)
12776       LD="${LD-ld} -melf32bsmip"
12777       ;;
12778     *N32*)
12779       LD="${LD-ld} -melf32bmipn32"
12780       ;;
12781     *64-bit*)
12782       LD="${LD-ld} -melf64bmip"
12783       ;;
12784     esac
12785    else
12786     case `/usr/bin/file conftest.$ac_objext` in
12787     *32-bit*)
12788       LD="${LD-ld} -32"
12789       ;;
12790     *N32*)
12791       LD="${LD-ld} -n32"
12792       ;;
12793     *64-bit*)
12794       LD="${LD-ld} -64"
12795       ;;
12796     esac
12797    fi
12798   fi
12799   rm -rf conftest*
12800   ;;
12801
12802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12803 s390*-*linux*|sparc*-*linux*)
12804   # Find out which ABI we are using.
12805   echo 'int i;' > conftest.$ac_ext
12806   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807   (eval $ac_compile) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; then
12811     case `/usr/bin/file conftest.o` in
12812     *32-bit*)
12813       case $host in
12814         x86_64-*kfreebsd*-gnu)
12815           LD="${LD-ld} -m elf_i386_fbsd"
12816           ;;
12817         x86_64-*linux*)
12818           LD="${LD-ld} -m elf_i386"
12819           ;;
12820         ppc64-*linux*|powerpc64-*linux*)
12821           LD="${LD-ld} -m elf32ppclinux"
12822           ;;
12823         s390x-*linux*)
12824           LD="${LD-ld} -m elf_s390"
12825           ;;
12826         sparc64-*linux*)
12827           LD="${LD-ld} -m elf32_sparc"
12828           ;;
12829       esac
12830       ;;
12831     *64-bit*)
12832       libsuff=64
12833       case $host in
12834         x86_64-*kfreebsd*-gnu)
12835           LD="${LD-ld} -m elf_x86_64_fbsd"
12836           ;;
12837         x86_64-*linux*)
12838           LD="${LD-ld} -m elf_x86_64"
12839           ;;
12840         ppc*-*linux*|powerpc*-*linux*)
12841           LD="${LD-ld} -m elf64ppc"
12842           ;;
12843         s390*-*linux*)
12844           LD="${LD-ld} -m elf64_s390"
12845           ;;
12846         sparc*-*linux*)
12847           LD="${LD-ld} -m elf64_sparc"
12848           ;;
12849       esac
12850       ;;
12851     esac
12852   fi
12853   rm -rf conftest*
12854   ;;
12855
12856 *-*-sco3.2v5*)
12857   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858   SAVE_CFLAGS="$CFLAGS"
12859   CFLAGS="$CFLAGS -belf"
12860   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12861 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 else
12865   ac_ext=c
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870
12871      cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877
12878 int
12879 main ()
12880 {
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_link") 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } && {
12900          test -z "$ac_c_werror_flag" ||
12901          test ! -s conftest.err
12902        } && test -s conftest$ac_exeext &&
12903        $as_test_x conftest$ac_exeext; then
12904   lt_cv_cc_needs_belf=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909         lt_cv_cc_needs_belf=no
12910 fi
12911
12912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12913       conftest$ac_exeext conftest.$ac_ext
12914      ac_ext=c
12915 ac_cpp='$CPP $CPPFLAGS'
12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12919
12920 fi
12921 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12922 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12923   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12924     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12925     CFLAGS="$SAVE_CFLAGS"
12926   fi
12927   ;;
12928 sparc*-*solaris*)
12929   # Find out which ABI we are using.
12930   echo 'int i;' > conftest.$ac_ext
12931   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932   (eval $ac_compile) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }; then
12936     case `/usr/bin/file conftest.o` in
12937     *64-bit*)
12938       case $lt_cv_prog_gnu_ld in
12939       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12940       *)    LD="${LD-ld} -64" ;;
12941       esac
12942       ;;
12943     esac
12944   fi
12945   rm -rf conftest*
12946   ;;
12947
12948
12949 esac
12950
12951 need_locks="$enable_libtool_lock"
12952
12953
12954
12955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12957 if test "${ac_cv_header_stdc+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   cat >conftest.$ac_ext <<_ACEOF
12961 /* confdefs.h.  */
12962 _ACEOF
12963 cat confdefs.h >>conftest.$ac_ext
12964 cat >>conftest.$ac_ext <<_ACEOF
12965 /* end confdefs.h.  */
12966 #include <stdlib.h>
12967 #include <stdarg.h>
12968 #include <string.h>
12969 #include <float.h>
12970
12971 int
12972 main ()
12973 {
12974
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 rm -f conftest.$ac_objext
12980 if { (ac_try="$ac_compile"
12981 case "(($ac_try" in
12982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983   *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986   (eval "$ac_compile") 2>conftest.er1
12987   ac_status=$?
12988   grep -v '^ *+' conftest.er1 >conftest.err
12989   rm -f conftest.er1
12990   cat conftest.err >&5
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); } && {
12993          test -z "$ac_c_werror_flag" ||
12994          test ! -s conftest.err
12995        } && test -s conftest.$ac_objext; then
12996   ac_cv_header_stdc=yes
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001         ac_cv_header_stdc=no
13002 fi
13003
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005
13006 if test $ac_cv_header_stdc = yes; then
13007   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13008   cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h.  */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h.  */
13014 #include <string.h>
13015
13016 _ACEOF
13017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018   $EGREP "memchr" >/dev/null 2>&1; then
13019   :
13020 else
13021   ac_cv_header_stdc=no
13022 fi
13023 rm -f conftest*
13024
13025 fi
13026
13027 if test $ac_cv_header_stdc = yes; then
13028   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13029   cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h.  */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h.  */
13035 #include <stdlib.h>
13036
13037 _ACEOF
13038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13039   $EGREP "free" >/dev/null 2>&1; then
13040   :
13041 else
13042   ac_cv_header_stdc=no
13043 fi
13044 rm -f conftest*
13045
13046 fi
13047
13048 if test $ac_cv_header_stdc = yes; then
13049   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13050   if test "$cross_compiling" = yes; then
13051   :
13052 else
13053   cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h.  */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h.  */
13059 #include <ctype.h>
13060 #include <stdlib.h>
13061 #if ((' ' & 0x0FF) == 0x020)
13062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13064 #else
13065 # define ISLOWER(c) \
13066                    (('a' <= (c) && (c) <= 'i') \
13067                      || ('j' <= (c) && (c) <= 'r') \
13068                      || ('s' <= (c) && (c) <= 'z'))
13069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13070 #endif
13071
13072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13073 int
13074 main ()
13075 {
13076   int i;
13077   for (i = 0; i < 256; i++)
13078     if (XOR (islower (i), ISLOWER (i))
13079         || toupper (i) != TOUPPER (i))
13080       return 2;
13081   return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest$ac_exeext
13085 if { (ac_try="$ac_link"
13086 case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_link") 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13095   { (case "(($ac_try" in
13096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13097   *) ac_try_echo=$ac_try;;
13098 esac
13099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13100   (eval "$ac_try") 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); }; }; then
13104   :
13105 else
13106   echo "$as_me: program exited with status $ac_status" >&5
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 ( exit $ac_status )
13111 ac_cv_header_stdc=no
13112 fi
13113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13114 fi
13115
13116
13117 fi
13118 fi
13119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13121 if test $ac_cv_header_stdc = yes; then
13122
13123 cat >>confdefs.h <<\_ACEOF
13124 #define STDC_HEADERS 1
13125 _ACEOF
13126
13127 fi
13128
13129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13140                   inttypes.h stdint.h unistd.h
13141 do
13142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148   cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154 $ac_includes_default
13155
13156 #include <$ac_header>
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165   (eval "$ac_compile") 2>conftest.er1
13166   ac_status=$?
13167   grep -v '^ *+' conftest.er1 >conftest.err
13168   rm -f conftest.er1
13169   cat conftest.err >&5
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); } && {
13172          test -z "$ac_c_werror_flag" ||
13173          test ! -s conftest.err
13174        } && test -s conftest.$ac_objext; then
13175   eval "$as_ac_Header=yes"
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180         eval "$as_ac_Header=no"
13181 fi
13182
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 ac_res=`eval echo '${'$as_ac_Header'}'`
13186                { echo "$as_me:$LINENO: result: $ac_res" >&5
13187 echo "${ECHO_T}$ac_res" >&6; }
13188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13189   cat >>confdefs.h <<_ACEOF
13190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13191 _ACEOF
13192
13193 fi
13194
13195 done
13196
13197
13198
13199 for ac_header in dlfcn.h
13200 do
13201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13206   echo $ECHO_N "(cached) $ECHO_C" >&6
13207 fi
13208 ac_res=`eval echo '${'$as_ac_Header'}'`
13209                { echo "$as_me:$LINENO: result: $ac_res" >&5
13210 echo "${ECHO_T}$ac_res" >&6; }
13211 else
13212   # Is the header compilable?
13213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 $ac_includes_default
13222 #include <$ac_header>
13223 _ACEOF
13224 rm -f conftest.$ac_objext
13225 if { (ac_try="$ac_compile"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_compile") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } && {
13238          test -z "$ac_c_werror_flag" ||
13239          test ! -s conftest.err
13240        } && test -s conftest.$ac_objext; then
13241   ac_header_compiler=yes
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246         ac_header_compiler=no
13247 fi
13248
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13251 echo "${ECHO_T}$ac_header_compiler" >&6; }
13252
13253 # Is the header present?
13254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13256 cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262 #include <$ac_header>
13263 _ACEOF
13264 if { (ac_try="$ac_cpp conftest.$ac_ext"
13265 case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13271   ac_status=$?
13272   grep -v '^ *+' conftest.er1 >conftest.err
13273   rm -f conftest.er1
13274   cat conftest.err >&5
13275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276   (exit $ac_status); } >/dev/null && {
13277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13278          test ! -s conftest.err
13279        }; then
13280   ac_header_preproc=yes
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285   ac_header_preproc=no
13286 fi
13287
13288 rm -f conftest.err conftest.$ac_ext
13289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13290 echo "${ECHO_T}$ac_header_preproc" >&6; }
13291
13292 # So?  What about this header?
13293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13294   yes:no: )
13295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13299     ac_header_preproc=yes
13300     ;;
13301   no:yes:* )
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13314     ( cat <<\_ASBOX
13315 ## --------------------------------------------- ##
13316 ## Report this to vserver@list.linux-vserver.org ##
13317 ## --------------------------------------------- ##
13318 _ASBOX
13319      ) | sed "s/^/$as_me: WARNING:     /" >&2
13320     ;;
13321 esac
13322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   eval "$as_ac_Header=\$ac_header_preproc"
13328 fi
13329 ac_res=`eval echo '${'$as_ac_Header'}'`
13330                { echo "$as_me:$LINENO: result: $ac_res" >&5
13331 echo "${ECHO_T}$ac_res" >&6; }
13332
13333 fi
13334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13335   cat >>confdefs.h <<_ACEOF
13336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13337 _ACEOF
13338
13339 fi
13340
13341 done
13342
13343
13344
13345 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13346     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13347     (test "X$CXX" != "Xg++"))) ; then
13348   ac_ext=cpp
13349 ac_cpp='$CXXCPP $CPPFLAGS'
13350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13353 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13354 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13355 if test -z "$CXXCPP"; then
13356   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359       # Double quotes because CXXCPP needs to be expanded
13360     for CXXCPP in "$CXX -E" "/lib/cpp"
13361     do
13362       ac_preproc_ok=false
13363 for ac_cxx_preproc_warn_flag in '' yes
13364 do
13365   # Use a header file that comes with gcc, so configuring glibc
13366   # with a fresh cross-compiler works.
13367   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368   # <limits.h> exists even on freestanding compilers.
13369   # On the NeXT, cc -E runs the code through the compiler's parser,
13370   # not just through cpp. "Syntax error" is here to catch this case.
13371   cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 #ifdef __STDC__
13378 # include <limits.h>
13379 #else
13380 # include <assert.h>
13381 #endif
13382                      Syntax error
13383 _ACEOF
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13391   ac_status=$?
13392   grep -v '^ *+' conftest.er1 >conftest.err
13393   rm -f conftest.er1
13394   cat conftest.err >&5
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } >/dev/null && {
13397          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13398          test ! -s conftest.err
13399        }; then
13400   :
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405   # Broken: fails on valid input.
13406 continue
13407 fi
13408
13409 rm -f conftest.err conftest.$ac_ext
13410
13411   # OK, works on sane cases.  Now check whether nonexistent headers
13412   # can be detected and how.
13413   cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h.  */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h.  */
13419 #include <ac_nonexistent.h>
13420 _ACEOF
13421 if { (ac_try="$ac_cpp conftest.$ac_ext"
13422 case "(($ac_try" in
13423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424   *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428   ac_status=$?
13429   grep -v '^ *+' conftest.er1 >conftest.err
13430   rm -f conftest.er1
13431   cat conftest.err >&5
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } >/dev/null && {
13434          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13435          test ! -s conftest.err
13436        }; then
13437   # Broken: success on invalid input.
13438 continue
13439 else
13440   echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443   # Passes both tests.
13444 ac_preproc_ok=:
13445 break
13446 fi
13447
13448 rm -f conftest.err conftest.$ac_ext
13449
13450 done
13451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13452 rm -f conftest.err conftest.$ac_ext
13453 if $ac_preproc_ok; then
13454   break
13455 fi
13456
13457     done
13458     ac_cv_prog_CXXCPP=$CXXCPP
13459
13460 fi
13461   CXXCPP=$ac_cv_prog_CXXCPP
13462 else
13463   ac_cv_prog_CXXCPP=$CXXCPP
13464 fi
13465 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13466 echo "${ECHO_T}$CXXCPP" >&6; }
13467 ac_preproc_ok=false
13468 for ac_cxx_preproc_warn_flag in '' yes
13469 do
13470   # Use a header file that comes with gcc, so configuring glibc
13471   # with a fresh cross-compiler works.
13472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13473   # <limits.h> exists even on freestanding compilers.
13474   # On the NeXT, cc -E runs the code through the compiler's parser,
13475   # not just through cpp. "Syntax error" is here to catch this case.
13476   cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h.  */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h.  */
13482 #ifdef __STDC__
13483 # include <limits.h>
13484 #else
13485 # include <assert.h>
13486 #endif
13487                      Syntax error
13488 _ACEOF
13489 if { (ac_try="$ac_cpp conftest.$ac_ext"
13490 case "(($ac_try" in
13491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492   *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13496   ac_status=$?
13497   grep -v '^ *+' conftest.er1 >conftest.err
13498   rm -f conftest.er1
13499   cat conftest.err >&5
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); } >/dev/null && {
13502          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13503          test ! -s conftest.err
13504        }; then
13505   :
13506 else
13507   echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13509
13510   # Broken: fails on valid input.
13511 continue
13512 fi
13513
13514 rm -f conftest.err conftest.$ac_ext
13515
13516   # OK, works on sane cases.  Now check whether nonexistent headers
13517   # can be detected and how.
13518   cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 #include <ac_nonexistent.h>
13525 _ACEOF
13526 if { (ac_try="$ac_cpp conftest.$ac_ext"
13527 case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13533   ac_status=$?
13534   grep -v '^ *+' conftest.er1 >conftest.err
13535   rm -f conftest.er1
13536   cat conftest.err >&5
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } >/dev/null && {
13539          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13540          test ! -s conftest.err
13541        }; then
13542   # Broken: success on invalid input.
13543 continue
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548   # Passes both tests.
13549 ac_preproc_ok=:
13550 break
13551 fi
13552
13553 rm -f conftest.err conftest.$ac_ext
13554
13555 done
13556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13557 rm -f conftest.err conftest.$ac_ext
13558 if $ac_preproc_ok; then
13559   :
13560 else
13561   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13562 See \`config.log' for more details." >&5
13563 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13564 See \`config.log' for more details." >&2;}
13565    { (exit 1); exit 1; }; }
13566 fi
13567
13568 ac_ext=cpp
13569 ac_cpp='$CXXCPP $CPPFLAGS'
13570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573
13574 fi
13575
13576 ac_ext=f
13577 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13578 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13580 if test -n "$ac_tool_prefix"; then
13581   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
13582   do
13583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13584 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13587 if test "${ac_cv_prog_F77+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   if test -n "$F77"; then
13591   ac_cv_prog_F77="$F77" # Let the user override the test.
13592 else
13593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596   IFS=$as_save_IFS
13597   test -z "$as_dir" && as_dir=.
13598   for ac_exec_ext in '' $ac_executable_extensions; do
13599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13600     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602     break 2
13603   fi
13604 done
13605 done
13606 IFS=$as_save_IFS
13607
13608 fi
13609 fi
13610 F77=$ac_cv_prog_F77
13611 if test -n "$F77"; then
13612   { echo "$as_me:$LINENO: result: $F77" >&5
13613 echo "${ECHO_T}$F77" >&6; }
13614 else
13615   { echo "$as_me:$LINENO: result: no" >&5
13616 echo "${ECHO_T}no" >&6; }
13617 fi
13618
13619
13620     test -n "$F77" && break
13621   done
13622 fi
13623 if test -z "$F77"; then
13624   ac_ct_F77=$F77
13625   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
13626 do
13627   # Extract the first word of "$ac_prog", so it can be a program name with args.
13628 set dummy $ac_prog; ac_word=$2
13629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13631 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   if test -n "$ac_ct_F77"; then
13635   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13636 else
13637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638 for as_dir in $PATH
13639 do
13640   IFS=$as_save_IFS
13641   test -z "$as_dir" && as_dir=.
13642   for ac_exec_ext in '' $ac_executable_extensions; do
13643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13644     ac_cv_prog_ac_ct_F77="$ac_prog"
13645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646     break 2
13647   fi
13648 done
13649 done
13650 IFS=$as_save_IFS
13651
13652 fi
13653 fi
13654 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13655 if test -n "$ac_ct_F77"; then
13656   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13657 echo "${ECHO_T}$ac_ct_F77" >&6; }
13658 else
13659   { echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6; }
13661 fi
13662
13663
13664   test -n "$ac_ct_F77" && break
13665 done
13666
13667   if test "x$ac_ct_F77" = x; then
13668     F77=""
13669   else
13670     case $cross_compiling:$ac_tool_warned in
13671 yes:)
13672 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13673 whose name does not start with the host triplet.  If you think this
13674 configuration is useful to you, please write to autoconf@gnu.org." >&5
13675 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13676 whose name does not start with the host triplet.  If you think this
13677 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13678 ac_tool_warned=yes ;;
13679 esac
13680     F77=$ac_ct_F77
13681   fi
13682 fi
13683
13684
13685 # Provide some information about the compiler.
13686 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13687 ac_compiler=`set X $ac_compile; echo $2`
13688 { (ac_try="$ac_compiler --version >&5"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_compiler --version >&5") 2>&5
13695   ac_status=$?
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); }
13698 { (ac_try="$ac_compiler -v >&5"
13699 case "(($ac_try" in
13700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701   *) ac_try_echo=$ac_try;;
13702 esac
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704   (eval "$ac_compiler -v >&5") 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }
13708 { (ac_try="$ac_compiler -V >&5"
13709 case "(($ac_try" in
13710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711   *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714   (eval "$ac_compiler -V >&5") 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }
13718 rm -f a.out
13719
13720 # If we don't use `.F' as extension, the preprocessor is not run on the
13721 # input file.  (Note that this only needs to work for GNU compilers.)
13722 ac_save_ext=$ac_ext
13723 ac_ext=F
13724 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13725 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13726 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13727   echo $ECHO_N "(cached) $ECHO_C" >&6
13728 else
13729   cat >conftest.$ac_ext <<_ACEOF
13730       program main
13731 #ifndef __GNUC__
13732        choke me
13733 #endif
13734
13735       end
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (ac_try="$ac_compile"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_compile") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } && {
13751          test -z "$ac_f77_werror_flag" ||
13752          test ! -s conftest.err
13753        } && test -s conftest.$ac_objext; then
13754   ac_compiler_gnu=yes
13755 else
13756   echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13758
13759         ac_compiler_gnu=no
13760 fi
13761
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13764
13765 fi
13766 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13767 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13768 ac_ext=$ac_save_ext
13769 ac_test_FFLAGS=${FFLAGS+set}
13770 ac_save_FFLAGS=$FFLAGS
13771 FFLAGS=
13772 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13773 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13774 if test "${ac_cv_prog_f77_g+set}" = set; then
13775   echo $ECHO_N "(cached) $ECHO_C" >&6
13776 else
13777   FFLAGS=-g
13778 cat >conftest.$ac_ext <<_ACEOF
13779       program main
13780
13781       end
13782 _ACEOF
13783 rm -f conftest.$ac_objext
13784 if { (ac_try="$ac_compile"
13785 case "(($ac_try" in
13786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13787   *) ac_try_echo=$ac_try;;
13788 esac
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790   (eval "$ac_compile") 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } && {
13797          test -z "$ac_f77_werror_flag" ||
13798          test ! -s conftest.err
13799        } && test -s conftest.$ac_objext; then
13800   ac_cv_prog_f77_g=yes
13801 else
13802   echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805         ac_cv_prog_f77_g=no
13806 fi
13807
13808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13809
13810 fi
13811 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13812 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13813 if test "$ac_test_FFLAGS" = set; then
13814   FFLAGS=$ac_save_FFLAGS
13815 elif test $ac_cv_prog_f77_g = yes; then
13816   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13817     FFLAGS="-g -O2"
13818   else
13819     FFLAGS="-g"
13820   fi
13821 else
13822   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13823     FFLAGS="-O2"
13824   else
13825     FFLAGS=
13826   fi
13827 fi
13828
13829 G77=`test $ac_compiler_gnu = yes && echo yes`
13830 ac_ext=c
13831 ac_cpp='$CPP $CPPFLAGS'
13832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13835
13836
13837
13838 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13839
13840 # find the maximum length of command line arguments
13841 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13842 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13844   echo $ECHO_N "(cached) $ECHO_C" >&6
13845 else
13846     i=0
13847   teststring="ABCD"
13848
13849   case $build_os in
13850   msdosdjgpp*)
13851     # On DJGPP, this test can blow up pretty badly due to problems in libc
13852     # (any single argument exceeding 2000 bytes causes a buffer overrun
13853     # during glob expansion).  Even if it were fixed, the result of this
13854     # check would be larger than it should be.
13855     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13856     ;;
13857
13858   gnu*)
13859     # Under GNU Hurd, this test is not required because there is
13860     # no limit to the length of command line arguments.
13861     # Libtool will interpret -1 as no limit whatsoever
13862     lt_cv_sys_max_cmd_len=-1;
13863     ;;
13864
13865   cygwin* | mingw*)
13866     # On Win9x/ME, this test blows up -- it succeeds, but takes
13867     # about 5 minutes as the teststring grows exponentially.
13868     # Worse, since 9x/ME are not pre-emptively multitasking,
13869     # you end up with a "frozen" computer, even though with patience
13870     # the test eventually succeeds (with a max line length of 256k).
13871     # Instead, let's just punt: use the minimum linelength reported by
13872     # all of the supported platforms: 8192 (on NT/2K/XP).
13873     lt_cv_sys_max_cmd_len=8192;
13874     ;;
13875
13876   amigaos*)
13877     # On AmigaOS with pdksh, this test takes hours, literally.
13878     # So we just punt and use a minimum line length of 8192.
13879     lt_cv_sys_max_cmd_len=8192;
13880     ;;
13881
13882   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13883     # This has been around since 386BSD, at least.  Likely further.
13884     if test -x /sbin/sysctl; then
13885       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13886     elif test -x /usr/sbin/sysctl; then
13887       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13888     else
13889       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13890     fi
13891     # And add a safety zone
13892     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13893     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13894     ;;
13895
13896   interix*)
13897     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13898     lt_cv_sys_max_cmd_len=196608
13899     ;;
13900
13901   osf*)
13902     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13903     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13904     # nice to cause kernel panics so lets avoid the loop below.
13905     # First set a reasonable default.
13906     lt_cv_sys_max_cmd_len=16384
13907     #
13908     if test -x /sbin/sysconfig; then
13909       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13910         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13911       esac
13912     fi
13913     ;;
13914   sco3.2v5*)
13915     lt_cv_sys_max_cmd_len=102400
13916     ;;
13917   sysv5* | sco5v6* | sysv4.2uw2*)
13918     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13919     if test -n "$kargmax"; then
13920       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13921     else
13922       lt_cv_sys_max_cmd_len=32768
13923     fi
13924     ;;
13925   *)
13926     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13927     if test -n "$lt_cv_sys_max_cmd_len"; then
13928       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13929       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13930     else
13931       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13932       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13933                = "XX$teststring") >/dev/null 2>&1 &&
13934               new_result=`expr "X$teststring" : ".*" 2>&1` &&
13935               lt_cv_sys_max_cmd_len=$new_result &&
13936               test $i != 17 # 1/2 MB should be enough
13937       do
13938         i=`expr $i + 1`
13939         teststring=$teststring$teststring
13940       done
13941       teststring=
13942       # Add a significant safety factor because C++ compilers can tack on massive
13943       # amounts of additional arguments before passing them to the linker.
13944       # It appears as though 1/2 is a usable value.
13945       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13946     fi
13947     ;;
13948   esac
13949
13950 fi
13951
13952 if test -n $lt_cv_sys_max_cmd_len ; then
13953   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13954 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13955 else
13956   { echo "$as_me:$LINENO: result: none" >&5
13957 echo "${ECHO_T}none" >&6; }
13958 fi
13959
13960
13961
13962
13963
13964 # Check for command to grab the raw symbol name followed by C symbol from nm.
13965 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13966 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13968   echo $ECHO_N "(cached) $ECHO_C" >&6
13969 else
13970
13971 # These are sane defaults that work on at least a few old systems.
13972 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13973
13974 # Character class describing NM global symbol codes.
13975 symcode='[BCDEGRST]'
13976
13977 # Regexp to match symbols that can be accessed directly from C.
13978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13979
13980 # Transform an extracted symbol line into a proper C declaration
13981 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13982
13983 # Transform an extracted symbol line into symbol name and symbol address
13984 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
13985
13986 # Define system-specific variables.
13987 case $host_os in
13988 aix*)
13989   symcode='[BCDT]'
13990   ;;
13991 cygwin* | mingw* | pw32*)
13992   symcode='[ABCDGISTW]'
13993   ;;
13994 hpux*) # Its linker distinguishes data from code symbols
13995   if test "$host_cpu" = ia64; then
13996     symcode='[ABCDEGRST]'
13997   fi
13998   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13999   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
14000   ;;
14001 linux* | k*bsd*-gnu)
14002   if test "$host_cpu" = ia64; then
14003     symcode='[ABCDGIRSTW]'
14004     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14005     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
14006   fi
14007   ;;
14008 irix* | nonstopux*)
14009   symcode='[BCDEGRST]'
14010   ;;
14011 osf*)
14012   symcode='[BCDEGQRST]'
14013   ;;
14014 solaris*)
14015   symcode='[BDRT]'
14016   ;;
14017 sco3.2v5*)
14018   symcode='[DT]'
14019   ;;
14020 sysv4.2uw2*)
14021   symcode='[DT]'
14022   ;;
14023 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14024   symcode='[ABDT]'
14025   ;;
14026 sysv4)
14027   symcode='[DFNSTU]'
14028   ;;
14029 esac
14030
14031 # Handle CRLF in mingw tool chain
14032 opt_cr=
14033 case $build_os in
14034 mingw*)
14035   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14036   ;;
14037 esac
14038
14039 # If we're using GNU nm, then use its standard symbol codes.
14040 case `$NM -V 2>&1` in
14041 *GNU* | *'with BFD'*)
14042   symcode='[ABCDGIRSTW]' ;;
14043 esac
14044
14045 # Try without a prefix undercore, then with it.
14046 for ac_symprfx in "" "_"; do
14047
14048   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14049   symxfrm="\\1 $ac_symprfx\\2 \\2"
14050
14051   # Write the raw and C identifiers.
14052   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14053
14054   # Check to see that the pipe works correctly.
14055   pipe_works=no
14056
14057   rm -f conftest*
14058   cat > conftest.$ac_ext <<EOF
14059 #ifdef __cplusplus
14060 extern "C" {
14061 #endif
14062 char nm_test_var;
14063 void nm_test_func(){}
14064 #ifdef __cplusplus
14065 }
14066 #endif
14067 int main(){nm_test_var='a';nm_test_func();return(0);}
14068 EOF
14069
14070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071   (eval $ac_compile) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; then
14075     # Now try to grab the symbols.
14076     nlist=conftest.nm
14077     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14078   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); } && test -s "$nlist"; then
14082       # Try sorting and uniquifying the output.
14083       if sort "$nlist" | uniq > "$nlist"T; then
14084         mv -f "$nlist"T "$nlist"
14085       else
14086         rm -f "$nlist"T
14087       fi
14088
14089       # Make sure that we snagged all the symbols we need.
14090       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14091         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14092           cat <<EOF > conftest.$ac_ext
14093 #ifdef __cplusplus
14094 extern "C" {
14095 #endif
14096
14097 EOF
14098           # Now generate the symbol file.
14099           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14100
14101           cat <<EOF >> conftest.$ac_ext
14102 #if defined (__STDC__) && __STDC__
14103 # define lt_ptr_t void *
14104 #else
14105 # define lt_ptr_t char *
14106 # define const
14107 #endif
14108
14109 /* The mapping between symbol names and symbols. */
14110 const struct {
14111   const char *name;
14112   lt_ptr_t address;
14113 }
14114 lt_preloaded_symbols[] =
14115 {
14116 EOF
14117           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14118           cat <<\EOF >> conftest.$ac_ext
14119   {0, (lt_ptr_t) 0}
14120 };
14121
14122 #ifdef __cplusplus
14123 }
14124 #endif
14125 EOF
14126           # Now try linking the two files.
14127           mv conftest.$ac_objext conftstm.$ac_objext
14128           lt_save_LIBS="$LIBS"
14129           lt_save_CFLAGS="$CFLAGS"
14130           LIBS="conftstm.$ac_objext"
14131           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14132           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14133   (eval $ac_link) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14137             pipe_works=yes
14138           fi
14139           LIBS="$lt_save_LIBS"
14140           CFLAGS="$lt_save_CFLAGS"
14141         else
14142           echo "cannot find nm_test_func in $nlist" >&5
14143         fi
14144       else
14145         echo "cannot find nm_test_var in $nlist" >&5
14146       fi
14147     else
14148       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14149     fi
14150   else
14151     echo "$progname: failed program was:" >&5
14152     cat conftest.$ac_ext >&5
14153   fi
14154   rm -f conftest* conftst*
14155
14156   # Do not use the global_symbol_pipe unless it works.
14157   if test "$pipe_works" = yes; then
14158     break
14159   else
14160     lt_cv_sys_global_symbol_pipe=
14161   fi
14162 done
14163
14164 fi
14165
14166 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14167   lt_cv_sys_global_symbol_to_cdecl=
14168 fi
14169 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14170   { echo "$as_me:$LINENO: result: failed" >&5
14171 echo "${ECHO_T}failed" >&6; }
14172 else
14173   { echo "$as_me:$LINENO: result: ok" >&5
14174 echo "${ECHO_T}ok" >&6; }
14175 fi
14176
14177 { echo "$as_me:$LINENO: checking for objdir" >&5
14178 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14179 if test "${lt_cv_objdir+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   rm -f .libs 2>/dev/null
14183 mkdir .libs 2>/dev/null
14184 if test -d .libs; then
14185   lt_cv_objdir=.libs
14186 else
14187   # MS-DOS does not allow filenames that begin with a dot.
14188   lt_cv_objdir=_libs
14189 fi
14190 rmdir .libs 2>/dev/null
14191 fi
14192 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14193 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14194 objdir=$lt_cv_objdir
14195
14196
14197
14198
14199
14200 case $host_os in
14201 aix3*)
14202   # AIX sometimes has problems with the GCC collect2 program.  For some
14203   # reason, if we set the COLLECT_NAMES environment variable, the problems
14204   # vanish in a puff of smoke.
14205   if test "X${COLLECT_NAMES+set}" != Xset; then
14206     COLLECT_NAMES=
14207     export COLLECT_NAMES
14208   fi
14209   ;;
14210 esac
14211
14212 # Sed substitution that helps us do robust quoting.  It backslashifies
14213 # metacharacters that are still active within double-quoted strings.
14214 Xsed='sed -e 1s/^X//'
14215 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14216
14217 # Same as above, but do not quote variable references.
14218 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14219
14220 # Sed substitution to delay expansion of an escaped shell variable in a
14221 # double_quote_subst'ed string.
14222 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14223
14224 # Sed substitution to avoid accidental globbing in evaled expressions
14225 no_glob_subst='s/\*/\\\*/g'
14226
14227 # Constants:
14228 rm="rm -f"
14229
14230 # Global variables:
14231 default_ofile=libtool
14232 can_build_shared=yes
14233
14234 # All known linkers require a `.a' archive for static linking (except MSVC,
14235 # which needs '.lib').
14236 libext=a
14237 ltmain="$ac_aux_dir/ltmain.sh"
14238 ofile="$default_ofile"
14239 with_gnu_ld="$lt_cv_prog_gnu_ld"
14240
14241 if test -n "$ac_tool_prefix"; then
14242   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14243 set dummy ${ac_tool_prefix}ar; ac_word=$2
14244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14246 if test "${ac_cv_prog_AR+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
14249   if test -n "$AR"; then
14250   ac_cv_prog_AR="$AR" # Let the user override the test.
14251 else
14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253 for as_dir in $PATH
14254 do
14255   IFS=$as_save_IFS
14256   test -z "$as_dir" && as_dir=.
14257   for ac_exec_ext in '' $ac_executable_extensions; do
14258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14259     ac_cv_prog_AR="${ac_tool_prefix}ar"
14260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14261     break 2
14262   fi
14263 done
14264 done
14265 IFS=$as_save_IFS
14266
14267 fi
14268 fi
14269 AR=$ac_cv_prog_AR
14270 if test -n "$AR"; then
14271   { echo "$as_me:$LINENO: result: $AR" >&5
14272 echo "${ECHO_T}$AR" >&6; }
14273 else
14274   { echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6; }
14276 fi
14277
14278
14279 fi
14280 if test -z "$ac_cv_prog_AR"; then
14281   ac_ct_AR=$AR
14282   # Extract the first word of "ar", so it can be a program name with args.
14283 set dummy ar; ac_word=$2
14284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14286 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14287   echo $ECHO_N "(cached) $ECHO_C" >&6
14288 else
14289   if test -n "$ac_ct_AR"; then
14290   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14291 else
14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14294 do
14295   IFS=$as_save_IFS
14296   test -z "$as_dir" && as_dir=.
14297   for ac_exec_ext in '' $ac_executable_extensions; do
14298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14299     ac_cv_prog_ac_ct_AR="ar"
14300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14301     break 2
14302   fi
14303 done
14304 done
14305 IFS=$as_save_IFS
14306
14307 fi
14308 fi
14309 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14310 if test -n "$ac_ct_AR"; then
14311   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14312 echo "${ECHO_T}$ac_ct_AR" >&6; }
14313 else
14314   { echo "$as_me:$LINENO: result: no" >&5
14315 echo "${ECHO_T}no" >&6; }
14316 fi
14317
14318   if test "x$ac_ct_AR" = x; then
14319     AR="false"
14320   else
14321     case $cross_compiling:$ac_tool_warned in
14322 yes:)
14323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14324 whose name does not start with the host triplet.  If you think this
14325 configuration is useful to you, please write to autoconf@gnu.org." >&5
14326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14327 whose name does not start with the host triplet.  If you think this
14328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14329 ac_tool_warned=yes ;;
14330 esac
14331     AR=$ac_ct_AR
14332   fi
14333 else
14334   AR="$ac_cv_prog_AR"
14335 fi
14336
14337 if test -n "$ac_tool_prefix"; then
14338   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14342 if test "${ac_cv_prog_RANLIB+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   if test -n "$RANLIB"; then
14346   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14347 else
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14350 do
14351   IFS=$as_save_IFS
14352   test -z "$as_dir" && as_dir=.
14353   for ac_exec_ext in '' $ac_executable_extensions; do
14354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14357     break 2
14358   fi
14359 done
14360 done
14361 IFS=$as_save_IFS
14362
14363 fi
14364 fi
14365 RANLIB=$ac_cv_prog_RANLIB
14366 if test -n "$RANLIB"; then
14367   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14368 echo "${ECHO_T}$RANLIB" >&6; }
14369 else
14370   { echo "$as_me:$LINENO: result: no" >&5
14371 echo "${ECHO_T}no" >&6; }
14372 fi
14373
14374
14375 fi
14376 if test -z "$ac_cv_prog_RANLIB"; then
14377   ac_ct_RANLIB=$RANLIB
14378   # Extract the first word of "ranlib", so it can be a program name with args.
14379 set dummy ranlib; ac_word=$2
14380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14382 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   if test -n "$ac_ct_RANLIB"; then
14386   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14387 else
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14390 do
14391   IFS=$as_save_IFS
14392   test -z "$as_dir" && as_dir=.
14393   for ac_exec_ext in '' $ac_executable_extensions; do
14394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395     ac_cv_prog_ac_ct_RANLIB="ranlib"
14396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14397     break 2
14398   fi
14399 done
14400 done
14401 IFS=$as_save_IFS
14402
14403 fi
14404 fi
14405 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14406 if test -n "$ac_ct_RANLIB"; then
14407   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14408 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14409 else
14410   { echo "$as_me:$LINENO: result: no" >&5
14411 echo "${ECHO_T}no" >&6; }
14412 fi
14413
14414   if test "x$ac_ct_RANLIB" = x; then
14415     RANLIB=":"
14416   else
14417     case $cross_compiling:$ac_tool_warned in
14418 yes:)
14419 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14420 whose name does not start with the host triplet.  If you think this
14421 configuration is useful to you, please write to autoconf@gnu.org." >&5
14422 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14423 whose name does not start with the host triplet.  If you think this
14424 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14425 ac_tool_warned=yes ;;
14426 esac
14427     RANLIB=$ac_ct_RANLIB
14428   fi
14429 else
14430   RANLIB="$ac_cv_prog_RANLIB"
14431 fi
14432
14433 if test -n "$ac_tool_prefix"; then
14434   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14435 set dummy ${ac_tool_prefix}strip; ac_word=$2
14436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14438 if test "${ac_cv_prog_STRIP+set}" = set; then
14439   echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441   if test -n "$STRIP"; then
14442   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14443 else
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14446 do
14447   IFS=$as_save_IFS
14448   test -z "$as_dir" && as_dir=.
14449   for ac_exec_ext in '' $ac_executable_extensions; do
14450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453     break 2
14454   fi
14455 done
14456 done
14457 IFS=$as_save_IFS
14458
14459 fi
14460 fi
14461 STRIP=$ac_cv_prog_STRIP
14462 if test -n "$STRIP"; then
14463   { echo "$as_me:$LINENO: result: $STRIP" >&5
14464 echo "${ECHO_T}$STRIP" >&6; }
14465 else
14466   { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14468 fi
14469
14470
14471 fi
14472 if test -z "$ac_cv_prog_STRIP"; then
14473   ac_ct_STRIP=$STRIP
14474   # Extract the first word of "strip", so it can be a program name with args.
14475 set dummy strip; ac_word=$2
14476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14478 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14479   echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481   if test -n "$ac_ct_STRIP"; then
14482   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14483 else
14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14485 for as_dir in $PATH
14486 do
14487   IFS=$as_save_IFS
14488   test -z "$as_dir" && as_dir=.
14489   for ac_exec_ext in '' $ac_executable_extensions; do
14490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14491     ac_cv_prog_ac_ct_STRIP="strip"
14492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14493     break 2
14494   fi
14495 done
14496 done
14497 IFS=$as_save_IFS
14498
14499 fi
14500 fi
14501 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14502 if test -n "$ac_ct_STRIP"; then
14503   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14504 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14505 else
14506   { echo "$as_me:$LINENO: result: no" >&5
14507 echo "${ECHO_T}no" >&6; }
14508 fi
14509
14510   if test "x$ac_ct_STRIP" = x; then
14511     STRIP=":"
14512   else
14513     case $cross_compiling:$ac_tool_warned in
14514 yes:)
14515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14516 whose name does not start with the host triplet.  If you think this
14517 configuration is useful to you, please write to autoconf@gnu.org." >&5
14518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14519 whose name does not start with the host triplet.  If you think this
14520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14521 ac_tool_warned=yes ;;
14522 esac
14523     STRIP=$ac_ct_STRIP
14524   fi
14525 else
14526   STRIP="$ac_cv_prog_STRIP"
14527 fi
14528
14529
14530 old_CC="$CC"
14531 old_CFLAGS="$CFLAGS"
14532
14533 # Set sane defaults for various variables
14534 test -z "$AR" && AR=ar
14535 test -z "$AR_FLAGS" && AR_FLAGS=cru
14536 test -z "$AS" && AS=as
14537 test -z "$CC" && CC=cc
14538 test -z "$LTCC" && LTCC=$CC
14539 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14540 test -z "$DLLTOOL" && DLLTOOL=dlltool
14541 test -z "$LD" && LD=ld
14542 test -z "$LN_S" && LN_S="ln -s"
14543 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14544 test -z "$NM" && NM=nm
14545 test -z "$SED" && SED=sed
14546 test -z "$OBJDUMP" && OBJDUMP=objdump
14547 test -z "$RANLIB" && RANLIB=:
14548 test -z "$STRIP" && STRIP=:
14549 test -z "$ac_objext" && ac_objext=o
14550
14551 # Determine commands to create old-style static archives.
14552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14553 old_postinstall_cmds='chmod 644 $oldlib'
14554 old_postuninstall_cmds=
14555
14556 if test -n "$RANLIB"; then
14557   case $host_os in
14558   openbsd*)
14559     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14560     ;;
14561   *)
14562     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14563     ;;
14564   esac
14565   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14566 fi
14567
14568 for cc_temp in $compiler""; do
14569   case $cc_temp in
14570     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14571     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14572     \-*) ;;
14573     *) break;;
14574   esac
14575 done
14576 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14577
14578
14579 # Only perform the check for file, if the check method requires it
14580 case $deplibs_check_method in
14581 file_magic*)
14582   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14583     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14584 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14585 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   case $MAGIC_CMD in
14589 [\\/*] |  ?:[\\/]*)
14590   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14591   ;;
14592 *)
14593   lt_save_MAGIC_CMD="$MAGIC_CMD"
14594   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14595   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14596   for ac_dir in $ac_dummy; do
14597     IFS="$lt_save_ifs"
14598     test -z "$ac_dir" && ac_dir=.
14599     if test -f $ac_dir/${ac_tool_prefix}file; then
14600       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14601       if test -n "$file_magic_test_file"; then
14602         case $deplibs_check_method in
14603         "file_magic "*)
14604           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14605           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14606           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14607             $EGREP "$file_magic_regex" > /dev/null; then
14608             :
14609           else
14610             cat <<EOF 1>&2
14611
14612 *** Warning: the command libtool uses to detect shared libraries,
14613 *** $file_magic_cmd, produces output that libtool cannot recognize.
14614 *** The result is that libtool may fail to recognize shared libraries
14615 *** as such.  This will affect the creation of libtool libraries that
14616 *** depend on shared libraries, but programs linked with such libtool
14617 *** libraries will work regardless of this problem.  Nevertheless, you
14618 *** may want to report the problem to your system manager and/or to
14619 *** bug-libtool@gnu.org
14620
14621 EOF
14622           fi ;;
14623         esac
14624       fi
14625       break
14626     fi
14627   done
14628   IFS="$lt_save_ifs"
14629   MAGIC_CMD="$lt_save_MAGIC_CMD"
14630   ;;
14631 esac
14632 fi
14633
14634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14635 if test -n "$MAGIC_CMD"; then
14636   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14637 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14638 else
14639   { echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6; }
14641 fi
14642
14643 if test -z "$lt_cv_path_MAGIC_CMD"; then
14644   if test -n "$ac_tool_prefix"; then
14645     { echo "$as_me:$LINENO: checking for file" >&5
14646 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14648   echo $ECHO_N "(cached) $ECHO_C" >&6
14649 else
14650   case $MAGIC_CMD in
14651 [\\/*] |  ?:[\\/]*)
14652   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14653   ;;
14654 *)
14655   lt_save_MAGIC_CMD="$MAGIC_CMD"
14656   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14657   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14658   for ac_dir in $ac_dummy; do
14659     IFS="$lt_save_ifs"
14660     test -z "$ac_dir" && ac_dir=.
14661     if test -f $ac_dir/file; then
14662       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14663       if test -n "$file_magic_test_file"; then
14664         case $deplibs_check_method in
14665         "file_magic "*)
14666           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14667           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14668           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14669             $EGREP "$file_magic_regex" > /dev/null; then
14670             :
14671           else
14672             cat <<EOF 1>&2
14673
14674 *** Warning: the command libtool uses to detect shared libraries,
14675 *** $file_magic_cmd, produces output that libtool cannot recognize.
14676 *** The result is that libtool may fail to recognize shared libraries
14677 *** as such.  This will affect the creation of libtool libraries that
14678 *** depend on shared libraries, but programs linked with such libtool
14679 *** libraries will work regardless of this problem.  Nevertheless, you
14680 *** may want to report the problem to your system manager and/or to
14681 *** bug-libtool@gnu.org
14682
14683 EOF
14684           fi ;;
14685         esac
14686       fi
14687       break
14688     fi
14689   done
14690   IFS="$lt_save_ifs"
14691   MAGIC_CMD="$lt_save_MAGIC_CMD"
14692   ;;
14693 esac
14694 fi
14695
14696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14697 if test -n "$MAGIC_CMD"; then
14698   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14699 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14700 else
14701   { echo "$as_me:$LINENO: result: no" >&5
14702 echo "${ECHO_T}no" >&6; }
14703 fi
14704
14705   else
14706     MAGIC_CMD=:
14707   fi
14708 fi
14709
14710   fi
14711   ;;
14712 esac
14713
14714 enable_dlopen=no
14715 enable_win32_dll=no
14716
14717 # Check whether --enable-libtool-lock was given.
14718 if test "${enable_libtool_lock+set}" = set; then
14719   enableval=$enable_libtool_lock;
14720 fi
14721
14722 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14723
14724
14725 # Check whether --with-pic was given.
14726 if test "${with_pic+set}" = set; then
14727   withval=$with_pic; pic_mode="$withval"
14728 else
14729   pic_mode=default
14730 fi
14731
14732 test -z "$pic_mode" && pic_mode=default
14733
14734 # Use C for the default configuration in the libtool script
14735 tagname=
14736 lt_save_CC="$CC"
14737 ac_ext=c
14738 ac_cpp='$CPP $CPPFLAGS'
14739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14742
14743
14744 # Source file extension for C test sources.
14745 ac_ext=c
14746
14747 # Object file extension for compiled C test sources.
14748 objext=o
14749 objext=$objext
14750
14751 # Code to be used in simple compile tests
14752 lt_simple_compile_test_code="int some_variable = 0;"
14753
14754 # Code to be used in simple link tests
14755 lt_simple_link_test_code='int main(){return(0);}'
14756
14757
14758 # If no C compiler was specified, use CC.
14759 LTCC=${LTCC-"$CC"}
14760
14761 # If no C compiler flags were specified, use CFLAGS.
14762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14763
14764 # Allow CC to be a program name with arguments.
14765 compiler=$CC
14766
14767
14768 # save warnings/boilerplate of simple test code
14769 ac_outfile=conftest.$ac_objext
14770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14772 _lt_compiler_boilerplate=`cat conftest.err`
14773 $rm conftest*
14774
14775 ac_outfile=conftest.$ac_objext
14776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14778 _lt_linker_boilerplate=`cat conftest.err`
14779 $rm conftest*
14780
14781
14782
14783 lt_prog_compiler_no_builtin_flag=
14784
14785 if test "$GCC" = yes; then
14786   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14787
14788
14789 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14790 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14791 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   lt_cv_prog_compiler_rtti_exceptions=no
14795   ac_outfile=conftest.$ac_objext
14796    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14797    lt_compiler_flag="-fno-rtti -fno-exceptions"
14798    # Insert the option either (1) after the last *FLAGS variable, or
14799    # (2) before a word containing "conftest.", or (3) at the end.
14800    # Note that $ac_compile itself does not contain backslashes and begins
14801    # with a dollar sign (not a hyphen), so the echo should work correctly.
14802    # The option is referenced via a variable to avoid confusing sed.
14803    lt_compile=`echo "$ac_compile" | $SED \
14804    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806    -e 's:$: $lt_compiler_flag:'`
14807    (eval echo "\"\$as_me:14807: $lt_compile\"" >&5)
14808    (eval "$lt_compile" 2>conftest.err)
14809    ac_status=$?
14810    cat conftest.err >&5
14811    echo "$as_me:14811: \$? = $ac_status" >&5
14812    if (exit $ac_status) && test -s "$ac_outfile"; then
14813      # The compiler can only warn and ignore the option if not recognized
14814      # So say no if there are warnings other than the usual output.
14815      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14816      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14817      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14818        lt_cv_prog_compiler_rtti_exceptions=yes
14819      fi
14820    fi
14821    $rm conftest*
14822
14823 fi
14824 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14825 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14826
14827 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14828     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14829 else
14830     :
14831 fi
14832
14833 fi
14834
14835 lt_prog_compiler_wl=
14836 lt_prog_compiler_pic=
14837 lt_prog_compiler_static=
14838
14839 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14840 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14841
14842   if test "$GCC" = yes; then
14843     lt_prog_compiler_wl='-Wl,'
14844     lt_prog_compiler_static='-static'
14845
14846     case $host_os in
14847       aix*)
14848       # All AIX code is PIC.
14849       if test "$host_cpu" = ia64; then
14850         # AIX 5 now supports IA64 processor
14851         lt_prog_compiler_static='-Bstatic'
14852       fi
14853       ;;
14854
14855     amigaos*)
14856       # FIXME: we need at least 68020 code to build shared libraries, but
14857       # adding the `-m68020' flag to GCC prevents building anything better,
14858       # like `-m68040'.
14859       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14860       ;;
14861
14862     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14863       # PIC is the default for these OSes.
14864       ;;
14865
14866     mingw* | cygwin* | pw32* | os2*)
14867       # This hack is so that the source file can tell whether it is being
14868       # built for inclusion in a dll (and should export symbols for example).
14869       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14870       # (--disable-auto-import) libraries
14871       lt_prog_compiler_pic='-DDLL_EXPORT'
14872       ;;
14873
14874     darwin* | rhapsody*)
14875       # PIC is the default on this platform
14876       # Common symbols not allowed in MH_DYLIB files
14877       lt_prog_compiler_pic='-fno-common'
14878       ;;
14879
14880     interix[3-9]*)
14881       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14882       # Instead, we relocate shared libraries at runtime.
14883       ;;
14884
14885     msdosdjgpp*)
14886       # Just because we use GCC doesn't mean we suddenly get shared libraries
14887       # on systems that don't support them.
14888       lt_prog_compiler_can_build_shared=no
14889       enable_shared=no
14890       ;;
14891
14892     sysv4*MP*)
14893       if test -d /usr/nec; then
14894         lt_prog_compiler_pic=-Kconform_pic
14895       fi
14896       ;;
14897
14898     hpux*)
14899       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14900       # not for PA HP-UX.
14901       case $host_cpu in
14902       hppa*64*|ia64*)
14903         # +Z the default
14904         ;;
14905       *)
14906         lt_prog_compiler_pic='-fPIC'
14907         ;;
14908       esac
14909       ;;
14910
14911     *)
14912       lt_prog_compiler_pic='-fPIC'
14913       ;;
14914     esac
14915   else
14916     # PORTME Check for flag to pass linker flags through the system compiler.
14917     case $host_os in
14918     aix*)
14919       lt_prog_compiler_wl='-Wl,'
14920       if test "$host_cpu" = ia64; then
14921         # AIX 5 now supports IA64 processor
14922         lt_prog_compiler_static='-Bstatic'
14923       else
14924         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14925       fi
14926       ;;
14927       darwin*)
14928         # PIC is the default on this platform
14929         # Common symbols not allowed in MH_DYLIB files
14930        case $cc_basename in
14931          xlc*)
14932          lt_prog_compiler_pic='-qnocommon'
14933          lt_prog_compiler_wl='-Wl,'
14934          ;;
14935        esac
14936        ;;
14937
14938     mingw* | cygwin* | pw32* | os2*)
14939       # This hack is so that the source file can tell whether it is being
14940       # built for inclusion in a dll (and should export symbols for example).
14941       lt_prog_compiler_pic='-DDLL_EXPORT'
14942       ;;
14943
14944     hpux9* | hpux10* | hpux11*)
14945       lt_prog_compiler_wl='-Wl,'
14946       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14947       # not for PA HP-UX.
14948       case $host_cpu in
14949       hppa*64*|ia64*)
14950         # +Z the default
14951         ;;
14952       *)
14953         lt_prog_compiler_pic='+Z'
14954         ;;
14955       esac
14956       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14957       lt_prog_compiler_static='${wl}-a ${wl}archive'
14958       ;;
14959
14960     irix5* | irix6* | nonstopux*)
14961       lt_prog_compiler_wl='-Wl,'
14962       # PIC (with -KPIC) is the default.
14963       lt_prog_compiler_static='-non_shared'
14964       ;;
14965
14966     newsos6)
14967       lt_prog_compiler_pic='-KPIC'
14968       lt_prog_compiler_static='-Bstatic'
14969       ;;
14970
14971     linux* | k*bsd*-gnu)
14972       case $cc_basename in
14973       icc* | ecc*)
14974         lt_prog_compiler_wl='-Wl,'
14975         lt_prog_compiler_pic='-KPIC'
14976         lt_prog_compiler_static='-static'
14977         ;;
14978       pgcc* | pgf77* | pgf90* | pgf95*)
14979         # Portland Group compilers (*not* the Pentium gcc compiler,
14980         # which looks to be a dead project)
14981         lt_prog_compiler_wl='-Wl,'
14982         lt_prog_compiler_pic='-fpic'
14983         lt_prog_compiler_static='-Bstatic'
14984         ;;
14985       ccc*)
14986         lt_prog_compiler_wl='-Wl,'
14987         # All Alpha code is PIC.
14988         lt_prog_compiler_static='-non_shared'
14989         ;;
14990       *)
14991         case `$CC -V 2>&1 | sed 5q` in
14992         *Sun\ C*)
14993           # Sun C 5.9
14994           lt_prog_compiler_pic='-KPIC'
14995           lt_prog_compiler_static='-Bstatic'
14996           lt_prog_compiler_wl='-Wl,'
14997           ;;
14998         *Sun\ F*)
14999           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15000           lt_prog_compiler_pic='-KPIC'
15001           lt_prog_compiler_static='-Bstatic'
15002           lt_prog_compiler_wl=''
15003           ;;
15004         esac
15005         ;;
15006       esac
15007       ;;
15008
15009     osf3* | osf4* | osf5*)
15010       lt_prog_compiler_wl='-Wl,'
15011       # All OSF/1 code is PIC.
15012       lt_prog_compiler_static='-non_shared'
15013       ;;
15014
15015     rdos*)
15016       lt_prog_compiler_static='-non_shared'
15017       ;;
15018
15019     solaris*)
15020       lt_prog_compiler_pic='-KPIC'
15021       lt_prog_compiler_static='-Bstatic'
15022       case $cc_basename in
15023       f77* | f90* | f95*)
15024         lt_prog_compiler_wl='-Qoption ld ';;
15025       *)
15026         lt_prog_compiler_wl='-Wl,';;
15027       esac
15028       ;;
15029
15030     sunos4*)
15031       lt_prog_compiler_wl='-Qoption ld '
15032       lt_prog_compiler_pic='-PIC'
15033       lt_prog_compiler_static='-Bstatic'
15034       ;;
15035
15036     sysv4 | sysv4.2uw2* | sysv4.3*)
15037       lt_prog_compiler_wl='-Wl,'
15038       lt_prog_compiler_pic='-KPIC'
15039       lt_prog_compiler_static='-Bstatic'
15040       ;;
15041
15042     sysv4*MP*)
15043       if test -d /usr/nec ;then
15044         lt_prog_compiler_pic='-Kconform_pic'
15045         lt_prog_compiler_static='-Bstatic'
15046       fi
15047       ;;
15048
15049     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15050       lt_prog_compiler_wl='-Wl,'
15051       lt_prog_compiler_pic='-KPIC'
15052       lt_prog_compiler_static='-Bstatic'
15053       ;;
15054
15055     unicos*)
15056       lt_prog_compiler_wl='-Wl,'
15057       lt_prog_compiler_can_build_shared=no
15058       ;;
15059
15060     uts4*)
15061       lt_prog_compiler_pic='-pic'
15062       lt_prog_compiler_static='-Bstatic'
15063       ;;
15064
15065     *)
15066       lt_prog_compiler_can_build_shared=no
15067       ;;
15068     esac
15069   fi
15070
15071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15072 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15073
15074 #
15075 # Check to make sure the PIC flag actually works.
15076 #
15077 if test -n "$lt_prog_compiler_pic"; then
15078
15079 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15080 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15081 if test "${lt_prog_compiler_pic_works+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   lt_prog_compiler_pic_works=no
15085   ac_outfile=conftest.$ac_objext
15086    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15087    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15088    # Insert the option either (1) after the last *FLAGS variable, or
15089    # (2) before a word containing "conftest.", or (3) at the end.
15090    # Note that $ac_compile itself does not contain backslashes and begins
15091    # with a dollar sign (not a hyphen), so the echo should work correctly.
15092    # The option is referenced via a variable to avoid confusing sed.
15093    lt_compile=`echo "$ac_compile" | $SED \
15094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15096    -e 's:$: $lt_compiler_flag:'`
15097    (eval echo "\"\$as_me:15097: $lt_compile\"" >&5)
15098    (eval "$lt_compile" 2>conftest.err)
15099    ac_status=$?
15100    cat conftest.err >&5
15101    echo "$as_me:15101: \$? = $ac_status" >&5
15102    if (exit $ac_status) && test -s "$ac_outfile"; then
15103      # The compiler can only warn and ignore the option if not recognized
15104      # So say no if there are warnings other than the usual output.
15105      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15106      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15107      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15108        lt_prog_compiler_pic_works=yes
15109      fi
15110    fi
15111    $rm conftest*
15112
15113 fi
15114 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15115 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15116
15117 if test x"$lt_prog_compiler_pic_works" = xyes; then
15118     case $lt_prog_compiler_pic in
15119      "" | " "*) ;;
15120      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15121      esac
15122 else
15123     lt_prog_compiler_pic=
15124      lt_prog_compiler_can_build_shared=no
15125 fi
15126
15127 fi
15128 case $host_os in
15129   # For platforms which do not support PIC, -DPIC is meaningless:
15130   *djgpp*)
15131     lt_prog_compiler_pic=
15132     ;;
15133   *)
15134     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15135     ;;
15136 esac
15137
15138 #
15139 # Check to make sure the static flag actually works.
15140 #
15141 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15142 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15143 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15144 if test "${lt_prog_compiler_static_works+set}" = set; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   lt_prog_compiler_static_works=no
15148    save_LDFLAGS="$LDFLAGS"
15149    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15150    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15151    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15152      # The linker can only warn and ignore the option if not recognized
15153      # So say no if there are warnings
15154      if test -s conftest.err; then
15155        # Append any errors to the config.log.
15156        cat conftest.err 1>&5
15157        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15158        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15159        if diff conftest.exp conftest.er2 >/dev/null; then
15160          lt_prog_compiler_static_works=yes
15161        fi
15162      else
15163        lt_prog_compiler_static_works=yes
15164      fi
15165    fi
15166    $rm conftest*
15167    LDFLAGS="$save_LDFLAGS"
15168
15169 fi
15170 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15171 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15172
15173 if test x"$lt_prog_compiler_static_works" = xyes; then
15174     :
15175 else
15176     lt_prog_compiler_static=
15177 fi
15178
15179
15180 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15182 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   lt_cv_prog_compiler_c_o=no
15186    $rm -r conftest 2>/dev/null
15187    mkdir conftest
15188    cd conftest
15189    mkdir out
15190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15191
15192    lt_compiler_flag="-o out/conftest2.$ac_objext"
15193    # Insert the option either (1) after the last *FLAGS variable, or
15194    # (2) before a word containing "conftest.", or (3) at the end.
15195    # Note that $ac_compile itself does not contain backslashes and begins
15196    # with a dollar sign (not a hyphen), so the echo should work correctly.
15197    lt_compile=`echo "$ac_compile" | $SED \
15198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200    -e 's:$: $lt_compiler_flag:'`
15201    (eval echo "\"\$as_me:15201: $lt_compile\"" >&5)
15202    (eval "$lt_compile" 2>out/conftest.err)
15203    ac_status=$?
15204    cat out/conftest.err >&5
15205    echo "$as_me:15205: \$? = $ac_status" >&5
15206    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15207    then
15208      # The compiler can only warn and ignore the option if not recognized
15209      # So say no if there are warnings
15210      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15211      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15212      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15213        lt_cv_prog_compiler_c_o=yes
15214      fi
15215    fi
15216    chmod u+w . 2>&5
15217    $rm conftest*
15218    # SGI C++ compiler will create directory out/ii_files/ for
15219    # template instantiation
15220    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15221    $rm out/* && rmdir out
15222    cd ..
15223    rmdir conftest
15224    $rm conftest*
15225
15226 fi
15227 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15229
15230
15231 hard_links="nottested"
15232 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15233   # do not overwrite the value of need_locks provided by the user
15234   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15235 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15236   hard_links=yes
15237   $rm conftest*
15238   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15239   touch conftest.a
15240   ln conftest.a conftest.b 2>&5 || hard_links=no
15241   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15242   { echo "$as_me:$LINENO: result: $hard_links" >&5
15243 echo "${ECHO_T}$hard_links" >&6; }
15244   if test "$hard_links" = no; then
15245     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15246 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15247     need_locks=warn
15248   fi
15249 else
15250   need_locks=no
15251 fi
15252
15253 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15254 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15255
15256   runpath_var=
15257   allow_undefined_flag=
15258   enable_shared_with_static_runtimes=no
15259   archive_cmds=
15260   archive_expsym_cmds=
15261   old_archive_From_new_cmds=
15262   old_archive_from_expsyms_cmds=
15263   export_dynamic_flag_spec=
15264   whole_archive_flag_spec=
15265   thread_safe_flag_spec=
15266   hardcode_libdir_flag_spec=
15267   hardcode_libdir_flag_spec_ld=
15268   hardcode_libdir_separator=
15269   hardcode_direct=no
15270   hardcode_minus_L=no
15271   hardcode_shlibpath_var=unsupported
15272   link_all_deplibs=unknown
15273   hardcode_automatic=no
15274   module_cmds=
15275   module_expsym_cmds=
15276   always_export_symbols=no
15277   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15278   # include_expsyms should be a list of space-separated symbols to be *always*
15279   # included in the symbol list
15280   include_expsyms=
15281   # exclude_expsyms can be an extended regexp of symbols to exclude
15282   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15283   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15284   # as well as any symbol that contains `d'.
15285   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15286   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15287   # platforms (ab)use it in PIC code, but their linkers get confused if
15288   # the symbol is explicitly referenced.  Since portable code cannot
15289   # rely on this symbol name, it's probably fine to never include it in
15290   # preloaded symbol tables.
15291   extract_expsyms_cmds=
15292   # Just being paranoid about ensuring that cc_basename is set.
15293   for cc_temp in $compiler""; do
15294   case $cc_temp in
15295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15297     \-*) ;;
15298     *) break;;
15299   esac
15300 done
15301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15302
15303   case $host_os in
15304   cygwin* | mingw* | pw32*)
15305     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15306     # When not using gcc, we currently assume that we are using
15307     # Microsoft Visual C++.
15308     if test "$GCC" != yes; then
15309       with_gnu_ld=no
15310     fi
15311     ;;
15312   interix*)
15313     # we just hope/assume this is gcc and not c89 (= MSVC++)
15314     with_gnu_ld=yes
15315     ;;
15316   openbsd*)
15317     with_gnu_ld=no
15318     ;;
15319   esac
15320
15321   ld_shlibs=yes
15322   if test "$with_gnu_ld" = yes; then
15323     # If archive_cmds runs LD, not CC, wlarc should be empty
15324     wlarc='${wl}'
15325
15326     # Set some defaults for GNU ld with shared library support. These
15327     # are reset later if shared libraries are not supported. Putting them
15328     # here allows them to be overridden if necessary.
15329     runpath_var=LD_RUN_PATH
15330     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15331     export_dynamic_flag_spec='${wl}--export-dynamic'
15332     # ancient GNU ld didn't support --whole-archive et. al.
15333     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15334         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15335       else
15336         whole_archive_flag_spec=
15337     fi
15338     supports_anon_versioning=no
15339     case `$LD -v 2>/dev/null` in
15340       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15341       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15342       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15343       *\ 2.11.*) ;; # other 2.11 versions
15344       *) supports_anon_versioning=yes ;;
15345     esac
15346
15347     # See if GNU ld supports shared libraries.
15348     case $host_os in
15349     aix3* | aix4* | aix5*)
15350       # On AIX/PPC, the GNU linker is very broken
15351       if test "$host_cpu" != ia64; then
15352         ld_shlibs=no
15353         cat <<EOF 1>&2
15354
15355 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15356 *** to be unable to reliably create shared libraries on AIX.
15357 *** Therefore, libtool is disabling shared libraries support.  If you
15358 *** really care for shared libraries, you may want to modify your PATH
15359 *** so that a non-GNU linker is found, and then restart.
15360
15361 EOF
15362       fi
15363       ;;
15364
15365     amigaos*)
15366       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)'
15367       hardcode_libdir_flag_spec='-L$libdir'
15368       hardcode_minus_L=yes
15369
15370       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15371       # that the semantics of dynamic libraries on AmigaOS, at least up
15372       # to version 4, is to share data among multiple programs linked
15373       # with the same dynamic library.  Since this doesn't match the
15374       # behavior of shared libraries on other platforms, we can't use
15375       # them.
15376       ld_shlibs=no
15377       ;;
15378
15379     beos*)
15380       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15381         allow_undefined_flag=unsupported
15382         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15383         # support --undefined.  This deserves some investigation.  FIXME
15384         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15385       else
15386         ld_shlibs=no
15387       fi
15388       ;;
15389
15390     cygwin* | mingw* | pw32*)
15391       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15392       # as there is no search path for DLLs.
15393       hardcode_libdir_flag_spec='-L$libdir'
15394       allow_undefined_flag=unsupported
15395       always_export_symbols=no
15396       enable_shared_with_static_runtimes=yes
15397       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15398
15399       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15400         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15401         # If the export-symbols file already is a .def file (1st line
15402         # is EXPORTS), use it as is; otherwise, prepend...
15403         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15404           cp $export_symbols $output_objdir/$soname.def;
15405         else
15406           echo EXPORTS > $output_objdir/$soname.def;
15407           cat $export_symbols >> $output_objdir/$soname.def;
15408         fi~
15409         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15410       else
15411         ld_shlibs=no
15412       fi
15413       ;;
15414
15415     interix[3-9]*)
15416       hardcode_direct=no
15417       hardcode_shlibpath_var=no
15418       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15419       export_dynamic_flag_spec='${wl}-E'
15420       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15421       # Instead, shared libraries are loaded at an image base (0x10000000 by
15422       # default) and relocated if they conflict, which is a slow very memory
15423       # consuming and fragmenting process.  To avoid this, we pick a random,
15424       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15425       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15426       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15427       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'
15428       ;;
15429
15430     gnu* | linux* | k*bsd*-gnu)
15431       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15432         tmp_addflag=
15433         case $cc_basename,$host_cpu in
15434         pgcc*)                          # Portland Group C compiler
15435           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'
15436           tmp_addflag=' $pic_flag'
15437           ;;
15438         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15439           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'
15440           tmp_addflag=' $pic_flag -Mnomain' ;;
15441         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15442           tmp_addflag=' -i_dynamic' ;;
15443         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15444           tmp_addflag=' -i_dynamic -nofor_main' ;;
15445         ifc* | ifort*)                  # Intel Fortran compiler
15446           tmp_addflag=' -nofor_main' ;;
15447         esac
15448         case `$CC -V 2>&1 | sed 5q` in
15449         *Sun\ C*)                       # Sun C 5.9
15450           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'
15451           tmp_sharedflag='-G' ;;
15452         *Sun\ F*)                       # Sun Fortran 8.3
15453           tmp_sharedflag='-G' ;;
15454         *)
15455           tmp_sharedflag='-shared' ;;
15456         esac
15457         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458
15459         if test $supports_anon_versioning = yes; then
15460           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15461   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15462   $echo "local: *; };" >> $output_objdir/$libname.ver~
15463           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15464         fi
15465       else
15466         ld_shlibs=no
15467       fi
15468       ;;
15469
15470     netbsd*)
15471       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15472         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15473         wlarc=
15474       else
15475         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15477       fi
15478       ;;
15479
15480     solaris*)
15481       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15482         ld_shlibs=no
15483         cat <<EOF 1>&2
15484
15485 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15486 *** create shared libraries on Solaris systems.  Therefore, libtool
15487 *** is disabling shared libraries support.  We urge you to upgrade GNU
15488 *** binutils to release 2.9.1 or newer.  Another option is to modify
15489 *** your PATH or compiler configuration so that the native linker is
15490 *** used, and then restart.
15491
15492 EOF
15493       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15494         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15495         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15496       else
15497         ld_shlibs=no
15498       fi
15499       ;;
15500
15501     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15502       case `$LD -v 2>&1` in
15503         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15504         ld_shlibs=no
15505         cat <<_LT_EOF 1>&2
15506
15507 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15508 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15509 *** is disabling shared libraries support.  We urge you to upgrade GNU
15510 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15511 *** your PATH or compiler configuration so that the native linker is
15512 *** used, and then restart.
15513
15514 _LT_EOF
15515         ;;
15516         *)
15517           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15518             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15519             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15520             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15521           else
15522             ld_shlibs=no
15523           fi
15524         ;;
15525       esac
15526       ;;
15527
15528     sunos4*)
15529       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15530       wlarc=
15531       hardcode_direct=yes
15532       hardcode_shlibpath_var=no
15533       ;;
15534
15535     *)
15536       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15537         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15539       else
15540         ld_shlibs=no
15541       fi
15542       ;;
15543     esac
15544
15545     if test "$ld_shlibs" = no; then
15546       runpath_var=
15547       hardcode_libdir_flag_spec=
15548       export_dynamic_flag_spec=
15549       whole_archive_flag_spec=
15550     fi
15551   else
15552     # PORTME fill in a description of your system's linker (not GNU ld)
15553     case $host_os in
15554     aix3*)
15555       allow_undefined_flag=unsupported
15556       always_export_symbols=yes
15557       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'
15558       # Note: this linker hardcodes the directories in LIBPATH if there
15559       # are no directories specified by -L.
15560       hardcode_minus_L=yes
15561       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15562         # Neither direct hardcoding nor static linking is supported with a
15563         # broken collect2.
15564         hardcode_direct=unsupported
15565       fi
15566       ;;
15567
15568     aix4* | aix5*)
15569       if test "$host_cpu" = ia64; then
15570         # On IA64, the linker does run time linking by default, so we don't
15571         # have to do anything special.
15572         aix_use_runtimelinking=no
15573         exp_sym_flag='-Bexport'
15574         no_entry_flag=""
15575       else
15576         # If we're using GNU nm, then we don't want the "-C" option.
15577         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15578         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15579           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'
15580         else
15581           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'
15582         fi
15583         aix_use_runtimelinking=no
15584
15585         # Test if we are trying to use run time linking or normal
15586         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15587         # need to do runtime linking.
15588         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15589           for ld_flag in $LDFLAGS; do
15590           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15591             aix_use_runtimelinking=yes
15592             break
15593           fi
15594           done
15595           ;;
15596         esac
15597
15598         exp_sym_flag='-bexport'
15599         no_entry_flag='-bnoentry'
15600       fi
15601
15602       # When large executables or shared objects are built, AIX ld can
15603       # have problems creating the table of contents.  If linking a library
15604       # or program results in "error TOC overflow" add -mminimal-toc to
15605       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15606       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15607
15608       archive_cmds=''
15609       hardcode_direct=yes
15610       hardcode_libdir_separator=':'
15611       link_all_deplibs=yes
15612
15613       if test "$GCC" = yes; then
15614         case $host_os in aix4.[012]|aix4.[012].*)
15615         # We only want to do this on AIX 4.2 and lower, the check
15616         # below for broken collect2 doesn't work under 4.3+
15617           collect2name=`${CC} -print-prog-name=collect2`
15618           if test -f "$collect2name" && \
15619            strings "$collect2name" | grep resolve_lib_name >/dev/null
15620           then
15621           # We have reworked collect2
15622           :
15623           else
15624           # We have old collect2
15625           hardcode_direct=unsupported
15626           # It fails to find uninstalled libraries when the uninstalled
15627           # path is not listed in the libpath.  Setting hardcode_minus_L
15628           # to unsupported forces relinking
15629           hardcode_minus_L=yes
15630           hardcode_libdir_flag_spec='-L$libdir'
15631           hardcode_libdir_separator=
15632           fi
15633           ;;
15634         esac
15635         shared_flag='-shared'
15636         if test "$aix_use_runtimelinking" = yes; then
15637           shared_flag="$shared_flag "'${wl}-G'
15638         fi
15639       else
15640         # not using gcc
15641         if test "$host_cpu" = ia64; then
15642         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15643         # chokes on -Wl,-G. The following line is correct:
15644           shared_flag='-G'
15645         else
15646           if test "$aix_use_runtimelinking" = yes; then
15647             shared_flag='${wl}-G'
15648           else
15649             shared_flag='${wl}-bM:SRE'
15650           fi
15651         fi
15652       fi
15653
15654       # It seems that -bexpall does not export symbols beginning with
15655       # underscore (_), so it is better to generate a list of symbols to export.
15656       always_export_symbols=yes
15657       if test "$aix_use_runtimelinking" = yes; then
15658         # Warning - without using the other runtime loading flags (-brtl),
15659         # -berok will link without error, but may produce a broken library.
15660         allow_undefined_flag='-berok'
15661        # Determine the default libpath from the value encoded in an empty executable.
15662        cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h.  */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h.  */
15668
15669 int
15670 main ()
15671 {
15672
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (ac_try="$ac_link"
15679 case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_link") 2>conftest.er1
15685   ac_status=$?
15686   grep -v '^ *+' conftest.er1 >conftest.err
15687   rm -f conftest.er1
15688   cat conftest.err >&5
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); } && {
15691          test -z "$ac_c_werror_flag" ||
15692          test ! -s conftest.err
15693        } && test -s conftest$ac_exeext &&
15694        $as_test_x conftest$ac_exeext; then
15695
15696 lt_aix_libpath_sed='
15697     /Import File Strings/,/^$/ {
15698         /^0/ {
15699             s/^0  *\(.*\)$/\1/
15700             p
15701         }
15702     }'
15703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15704 # Check for a 64-bit object if we didn't find anything.
15705 if test -z "$aix_libpath"; then
15706   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15707 fi
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712
15713 fi
15714
15715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15716       conftest$ac_exeext conftest.$ac_ext
15717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15718
15719        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15720         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15721        else
15722         if test "$host_cpu" = ia64; then
15723           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15724           allow_undefined_flag="-z nodefs"
15725           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"
15726         else
15727          # Determine the default libpath from the value encoded in an empty executable.
15728          cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734
15735 int
15736 main ()
15737 {
15738
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_link") 2>conftest.er1
15751   ac_status=$?
15752   grep -v '^ *+' conftest.er1 >conftest.err
15753   rm -f conftest.er1
15754   cat conftest.err >&5
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } && {
15757          test -z "$ac_c_werror_flag" ||
15758          test ! -s conftest.err
15759        } && test -s conftest$ac_exeext &&
15760        $as_test_x conftest$ac_exeext; then
15761
15762 lt_aix_libpath_sed='
15763     /Import File Strings/,/^$/ {
15764         /^0/ {
15765             s/^0  *\(.*\)$/\1/
15766             p
15767         }
15768     }'
15769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15770 # Check for a 64-bit object if we didn't find anything.
15771 if test -z "$aix_libpath"; then
15772   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15773 fi
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782       conftest$ac_exeext conftest.$ac_ext
15783 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15784
15785          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15786           # Warning - without using the other run time loading flags,
15787           # -berok will link without error, but may produce a broken library.
15788           no_undefined_flag=' ${wl}-bernotok'
15789           allow_undefined_flag=' ${wl}-berok'
15790           # Exported symbols can be pulled into shared objects from archives
15791           whole_archive_flag_spec='$convenience'
15792           archive_cmds_need_lc=yes
15793           # This is similar to how AIX traditionally builds its shared libraries.
15794           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'
15795         fi
15796       fi
15797       ;;
15798
15799     amigaos*)
15800       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)'
15801       hardcode_libdir_flag_spec='-L$libdir'
15802       hardcode_minus_L=yes
15803       # see comment about different semantics on the GNU ld section
15804       ld_shlibs=no
15805       ;;
15806
15807     bsdi[45]*)
15808       export_dynamic_flag_spec=-rdynamic
15809       ;;
15810
15811     cygwin* | mingw* | pw32*)
15812       # When not using gcc, we currently assume that we are using
15813       # Microsoft Visual C++.
15814       # hardcode_libdir_flag_spec is actually meaningless, as there is
15815       # no search path for DLLs.
15816       hardcode_libdir_flag_spec=' '
15817       allow_undefined_flag=unsupported
15818       # Tell ltmain to make .lib files, not .a files.
15819       libext=lib
15820       # Tell ltmain to make .dll files, not .so files.
15821       shrext_cmds=".dll"
15822       # FIXME: Setting linknames here is a bad hack.
15823       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15824       # The linker will automatically build a .lib file if we build a DLL.
15825       old_archive_From_new_cmds='true'
15826       # FIXME: Should let the user specify the lib program.
15827       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15828       fix_srcfile_path='`cygpath -w "$srcfile"`'
15829       enable_shared_with_static_runtimes=yes
15830       ;;
15831
15832     darwin* | rhapsody*)
15833       case $host_os in
15834         rhapsody* | darwin1.[012])
15835          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15836          ;;
15837        *) # Darwin 1.3 on
15838          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15839            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15840          else
15841            case ${MACOSX_DEPLOYMENT_TARGET} in
15842              10.[012])
15843                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15844                ;;
15845              10.*)
15846                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15847                ;;
15848            esac
15849          fi
15850          ;;
15851       esac
15852       archive_cmds_need_lc=no
15853       hardcode_direct=no
15854       hardcode_automatic=yes
15855       hardcode_shlibpath_var=unsupported
15856       whole_archive_flag_spec=''
15857       link_all_deplibs=yes
15858     if test "$GCC" = yes ; then
15859         output_verbose_link_cmd='echo'
15860         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15861       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15862       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15863       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15864       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15865     else
15866       case $cc_basename in
15867         xlc*)
15868          output_verbose_link_cmd='echo'
15869          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15870          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15871           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15872          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15873           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15874           ;;
15875        *)
15876          ld_shlibs=no
15877           ;;
15878       esac
15879     fi
15880       ;;
15881
15882     dgux*)
15883       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884       hardcode_libdir_flag_spec='-L$libdir'
15885       hardcode_shlibpath_var=no
15886       ;;
15887
15888     freebsd1*)
15889       ld_shlibs=no
15890       ;;
15891
15892     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15893     # support.  Future versions do this automatically, but an explicit c++rt0.o
15894     # does not break anything, and helps significantly (at the cost of a little
15895     # extra space).
15896     freebsd2.2*)
15897       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15898       hardcode_libdir_flag_spec='-R$libdir'
15899       hardcode_direct=yes
15900       hardcode_shlibpath_var=no
15901       ;;
15902
15903     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15904     freebsd2*)
15905       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15906       hardcode_direct=yes
15907       hardcode_minus_L=yes
15908       hardcode_shlibpath_var=no
15909       ;;
15910
15911     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15912     freebsd* | dragonfly*)
15913       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15914       hardcode_libdir_flag_spec='-R$libdir'
15915       hardcode_direct=yes
15916       hardcode_shlibpath_var=no
15917       ;;
15918
15919     hpux9*)
15920       if test "$GCC" = yes; then
15921         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'
15922       else
15923         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'
15924       fi
15925       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15926       hardcode_libdir_separator=:
15927       hardcode_direct=yes
15928
15929       # hardcode_minus_L: Not really in the search PATH,
15930       # but as the default location of the library.
15931       hardcode_minus_L=yes
15932       export_dynamic_flag_spec='${wl}-E'
15933       ;;
15934
15935     hpux10*)
15936       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15937         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15938       else
15939         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15940       fi
15941       if test "$with_gnu_ld" = no; then
15942         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15943         hardcode_libdir_separator=:
15944
15945         hardcode_direct=yes
15946         export_dynamic_flag_spec='${wl}-E'
15947
15948         # hardcode_minus_L: Not really in the search PATH,
15949         # but as the default location of the library.
15950         hardcode_minus_L=yes
15951       fi
15952       ;;
15953
15954     hpux11*)
15955       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15956         case $host_cpu in
15957         hppa*64*)
15958           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15959           ;;
15960         ia64*)
15961           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15962           ;;
15963         *)
15964           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15965           ;;
15966         esac
15967       else
15968         case $host_cpu in
15969         hppa*64*)
15970           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15971           ;;
15972         ia64*)
15973           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15974           ;;
15975         *)
15976           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15977           ;;
15978         esac
15979       fi
15980       if test "$with_gnu_ld" = no; then
15981         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982         hardcode_libdir_separator=:
15983
15984         case $host_cpu in
15985         hppa*64*|ia64*)
15986           hardcode_libdir_flag_spec_ld='+b $libdir'
15987           hardcode_direct=no
15988           hardcode_shlibpath_var=no
15989           ;;
15990         *)
15991           hardcode_direct=yes
15992           export_dynamic_flag_spec='${wl}-E'
15993
15994           # hardcode_minus_L: Not really in the search PATH,
15995           # but as the default location of the library.
15996           hardcode_minus_L=yes
15997           ;;
15998         esac
15999       fi
16000       ;;
16001
16002     irix5* | irix6* | nonstopux*)
16003       if test "$GCC" = yes; then
16004         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16005       else
16006         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16007         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16008       fi
16009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16010       hardcode_libdir_separator=:
16011       link_all_deplibs=yes
16012       ;;
16013
16014     netbsd*)
16015       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16016         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16017       else
16018         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16019       fi
16020       hardcode_libdir_flag_spec='-R$libdir'
16021       hardcode_direct=yes
16022       hardcode_shlibpath_var=no
16023       ;;
16024
16025     newsos6)
16026       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16027       hardcode_direct=yes
16028       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16029       hardcode_libdir_separator=:
16030       hardcode_shlibpath_var=no
16031       ;;
16032
16033     openbsd*)
16034       if test -f /usr/libexec/ld.so; then
16035         hardcode_direct=yes
16036         hardcode_shlibpath_var=no
16037         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16038           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16039           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16040           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16041           export_dynamic_flag_spec='${wl}-E'
16042         else
16043           case $host_os in
16044            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16045              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16046              hardcode_libdir_flag_spec='-R$libdir'
16047              ;;
16048            *)
16049              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16050              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16051              ;;
16052           esac
16053         fi
16054       else
16055         ld_shlibs=no
16056       fi
16057       ;;
16058
16059     os2*)
16060       hardcode_libdir_flag_spec='-L$libdir'
16061       hardcode_minus_L=yes
16062       allow_undefined_flag=unsupported
16063       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'
16064       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16065       ;;
16066
16067     osf3*)
16068       if test "$GCC" = yes; then
16069         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16070         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16071       else
16072         allow_undefined_flag=' -expect_unresolved \*'
16073         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16074       fi
16075       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16076       hardcode_libdir_separator=:
16077       ;;
16078
16079     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16080       if test "$GCC" = yes; then
16081         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16082         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16083         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16084       else
16085         allow_undefined_flag=' -expect_unresolved \*'
16086         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16087         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16088         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16089
16090         # Both c and cxx compiler support -rpath directly
16091         hardcode_libdir_flag_spec='-rpath $libdir'
16092       fi
16093       hardcode_libdir_separator=:
16094       ;;
16095
16096     solaris*)
16097       no_undefined_flag=' -z text'
16098       if test "$GCC" = yes; then
16099         wlarc='${wl}'
16100         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16101         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16102           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16103       else
16104         wlarc=''
16105         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16107         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16108       fi
16109       hardcode_libdir_flag_spec='-R$libdir'
16110       hardcode_shlibpath_var=no
16111       case $host_os in
16112       solaris2.[0-5] | solaris2.[0-5].*) ;;
16113       *)
16114         # The compiler driver will combine and reorder linker options,
16115         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16116         # but is careful enough not to reorder.
16117         # Supported since Solaris 2.6 (maybe 2.5.1?)
16118         if test "$GCC" = yes; then
16119           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16120         else
16121           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16122         fi
16123         ;;
16124       esac
16125       link_all_deplibs=yes
16126       ;;
16127
16128     sunos4*)
16129       if test "x$host_vendor" = xsequent; then
16130         # Use $CC to link under sequent, because it throws in some extra .o
16131         # files that make .init and .fini sections work.
16132         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16133       else
16134         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16135       fi
16136       hardcode_libdir_flag_spec='-L$libdir'
16137       hardcode_direct=yes
16138       hardcode_minus_L=yes
16139       hardcode_shlibpath_var=no
16140       ;;
16141
16142     sysv4)
16143       case $host_vendor in
16144         sni)
16145           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146           hardcode_direct=yes # is this really true???
16147         ;;
16148         siemens)
16149           ## LD is ld it makes a PLAMLIB
16150           ## CC just makes a GrossModule.
16151           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16152           reload_cmds='$CC -r -o $output$reload_objs'
16153           hardcode_direct=no
16154         ;;
16155         motorola)
16156           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16157           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16158         ;;
16159       esac
16160       runpath_var='LD_RUN_PATH'
16161       hardcode_shlibpath_var=no
16162       ;;
16163
16164     sysv4.3*)
16165       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16166       hardcode_shlibpath_var=no
16167       export_dynamic_flag_spec='-Bexport'
16168       ;;
16169
16170     sysv4*MP*)
16171       if test -d /usr/nec; then
16172         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16173         hardcode_shlibpath_var=no
16174         runpath_var=LD_RUN_PATH
16175         hardcode_runpath_var=yes
16176         ld_shlibs=yes
16177       fi
16178       ;;
16179
16180     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16181       no_undefined_flag='${wl}-z,text'
16182       archive_cmds_need_lc=no
16183       hardcode_shlibpath_var=no
16184       runpath_var='LD_RUN_PATH'
16185
16186       if test "$GCC" = yes; then
16187         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16188         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16189       else
16190         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16191         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16192       fi
16193       ;;
16194
16195     sysv5* | sco3.2v5* | sco5v6*)
16196       # Note: We can NOT use -z defs as we might desire, because we do not
16197       # link with -lc, and that would cause any symbols used from libc to
16198       # always be unresolved, which means just about no library would
16199       # ever link correctly.  If we're not using GNU ld we use -z text
16200       # though, which does catch some bad symbols but isn't as heavy-handed
16201       # as -z defs.
16202       no_undefined_flag='${wl}-z,text'
16203       allow_undefined_flag='${wl}-z,nodefs'
16204       archive_cmds_need_lc=no
16205       hardcode_shlibpath_var=no
16206       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16207       hardcode_libdir_separator=':'
16208       link_all_deplibs=yes
16209       export_dynamic_flag_spec='${wl}-Bexport'
16210       runpath_var='LD_RUN_PATH'
16211
16212       if test "$GCC" = yes; then
16213         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16214         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16215       else
16216         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16217         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16218       fi
16219       ;;
16220
16221     uts4*)
16222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16223       hardcode_libdir_flag_spec='-L$libdir'
16224       hardcode_shlibpath_var=no
16225       ;;
16226
16227     *)
16228       ld_shlibs=no
16229       ;;
16230     esac
16231   fi
16232
16233 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16234 echo "${ECHO_T}$ld_shlibs" >&6; }
16235 test "$ld_shlibs" = no && can_build_shared=no
16236
16237 #
16238 # Do we need to explicitly link libc?
16239 #
16240 case "x$archive_cmds_need_lc" in
16241 x|xyes)
16242   # Assume -lc should be added
16243   archive_cmds_need_lc=yes
16244
16245   if test "$enable_shared" = yes && test "$GCC" = yes; then
16246     case $archive_cmds in
16247     *'~'*)
16248       # FIXME: we may have to deal with multi-command sequences.
16249       ;;
16250     '$CC '*)
16251       # Test whether the compiler implicitly links with -lc since on some
16252       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16253       # to ld, don't add -lc before -lgcc.
16254       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16255 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16256       $rm conftest*
16257       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16258
16259       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260   (eval $ac_compile) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } 2>conftest.err; then
16264         soname=conftest
16265         lib=conftest
16266         libobjs=conftest.$ac_objext
16267         deplibs=
16268         wl=$lt_prog_compiler_wl
16269         pic_flag=$lt_prog_compiler_pic
16270         compiler_flags=-v
16271         linker_flags=-v
16272         verstring=
16273         output_objdir=.
16274         libname=conftest
16275         lt_save_allow_undefined_flag=$allow_undefined_flag
16276         allow_undefined_flag=
16277         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16278   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }
16282         then
16283           archive_cmds_need_lc=no
16284         else
16285           archive_cmds_need_lc=yes
16286         fi
16287         allow_undefined_flag=$lt_save_allow_undefined_flag
16288       else
16289         cat conftest.err 1>&5
16290       fi
16291       $rm conftest*
16292       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16293 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16294       ;;
16295     esac
16296   fi
16297   ;;
16298 esac
16299
16300 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16301 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16302 library_names_spec=
16303 libname_spec='lib$name'
16304 soname_spec=
16305 shrext_cmds=".so"
16306 postinstall_cmds=
16307 postuninstall_cmds=
16308 finish_cmds=
16309 finish_eval=
16310 shlibpath_var=
16311 shlibpath_overrides_runpath=unknown
16312 version_type=none
16313 dynamic_linker="$host_os ld.so"
16314 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16315
16316 if test "$GCC" = yes; then
16317   case $host_os in
16318     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16319     *) lt_awk_arg="/^libraries:/" ;;
16320   esac
16321   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16322   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
16323     # if the path contains ";" then we assume it to be the separator
16324     # otherwise default to the standard path separator (i.e. ":") - it is
16325     # assumed that no part of a normal pathname contains ";" but that should
16326     # okay in the real world where ";" in dirpaths is itself problematic.
16327     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16328   else
16329     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16330   fi
16331   # Ok, now we have the path, separated by spaces, we can step through it
16332   # and add multilib dir if necessary.
16333   lt_tmp_lt_search_path_spec=
16334   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16335   for lt_sys_path in $lt_search_path_spec; do
16336     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16337       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16338     else
16339       test -d "$lt_sys_path" && \
16340         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16341     fi
16342   done
16343   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
16344 BEGIN {RS=" "; FS="/|\n";} {
16345   lt_foo="";
16346   lt_count=0;
16347   for (lt_i = NF; lt_i > 0; lt_i--) {
16348     if ($lt_i != "" && $lt_i != ".") {
16349       if ($lt_i == "..") {
16350         lt_count++;
16351       } else {
16352         if (lt_count == 0) {
16353           lt_foo="/" $lt_i lt_foo;
16354         } else {
16355           lt_count--;
16356         }
16357       }
16358     }
16359   }
16360   if (lt_foo != "") { lt_freq[lt_foo]++; }
16361   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16362 }'`
16363   sys_lib_search_path_spec=`echo $lt_search_path_spec`
16364 else
16365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16366 fi
16367 need_lib_prefix=unknown
16368 hardcode_into_libs=no
16369
16370 # when you set need_version to no, make sure it does not cause -set_version
16371 # flags to be left without arguments
16372 need_version=unknown
16373
16374 case $host_os in
16375 aix3*)
16376   version_type=linux
16377   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16378   shlibpath_var=LIBPATH
16379
16380   # AIX 3 has no versioning support, so we append a major version to the name.
16381   soname_spec='${libname}${release}${shared_ext}$major'
16382   ;;
16383
16384 aix4* | aix5*)
16385   version_type=linux
16386   need_lib_prefix=no
16387   need_version=no
16388   hardcode_into_libs=yes
16389   if test "$host_cpu" = ia64; then
16390     # AIX 5 supports IA64
16391     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16392     shlibpath_var=LD_LIBRARY_PATH
16393   else
16394     # With GCC up to 2.95.x, collect2 would create an import file
16395     # for dependence libraries.  The import file would start with
16396     # the line `#! .'.  This would cause the generated library to
16397     # depend on `.', always an invalid library.  This was fixed in
16398     # development snapshots of GCC prior to 3.0.
16399     case $host_os in
16400       aix4 | aix4.[01] | aix4.[01].*)
16401       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16402            echo ' yes '
16403            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16404         :
16405       else
16406         can_build_shared=no
16407       fi
16408       ;;
16409     esac
16410     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16411     # soname into executable. Probably we can add versioning support to
16412     # collect2, so additional links can be useful in future.
16413     if test "$aix_use_runtimelinking" = yes; then
16414       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16415       # instead of lib<name>.a to let people know that these are not
16416       # typical AIX shared libraries.
16417       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418     else
16419       # We preserve .a as extension for shared libraries through AIX4.2
16420       # and later when we are not doing run time linking.
16421       library_names_spec='${libname}${release}.a $libname.a'
16422       soname_spec='${libname}${release}${shared_ext}$major'
16423     fi
16424     shlibpath_var=LIBPATH
16425   fi
16426   ;;
16427
16428 amigaos*)
16429   library_names_spec='$libname.ixlibrary $libname.a'
16430   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16431   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'
16432   ;;
16433
16434 beos*)
16435   library_names_spec='${libname}${shared_ext}'
16436   dynamic_linker="$host_os ld.so"
16437   shlibpath_var=LIBRARY_PATH
16438   ;;
16439
16440 bsdi[45]*)
16441   version_type=linux
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16448   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16449   # the default ld.so.conf also contains /usr/contrib/lib and
16450   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16451   # libtool to hard-code these into programs
16452   ;;
16453
16454 cygwin* | mingw* | pw32*)
16455   version_type=windows
16456   shrext_cmds=".dll"
16457   need_version=no
16458   need_lib_prefix=no
16459
16460   case $GCC,$host_os in
16461   yes,cygwin* | yes,mingw* | yes,pw32*)
16462     library_names_spec='$libname.dll.a'
16463     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16464     postinstall_cmds='base_file=`basename \${file}`~
16465       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16466       dldir=$destdir/`dirname \$dlpath`~
16467       test -d \$dldir || mkdir -p \$dldir~
16468       $install_prog $dir/$dlname \$dldir/$dlname~
16469       chmod a+x \$dldir/$dlname'
16470     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16471       dlpath=$dir/\$dldll~
16472        $rm \$dlpath'
16473     shlibpath_overrides_runpath=yes
16474
16475     case $host_os in
16476     cygwin*)
16477       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16478       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16479       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16480       ;;
16481     mingw*)
16482       # MinGW DLLs use traditional 'lib' prefix
16483       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16484       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16485       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16486         # It is most probably a Windows format PATH printed by
16487         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16488         # path with ; separators, and with drive letters. We can handle the
16489         # drive letters (cygwin fileutils understands them), so leave them,
16490         # especially as we might pass files found there to a mingw objdump,
16491         # which wouldn't understand a cygwinified path. Ahh.
16492         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16493       else
16494         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16495       fi
16496       ;;
16497     pw32*)
16498       # pw32 DLLs use 'pw' prefix rather than 'lib'
16499       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16500       ;;
16501     esac
16502     ;;
16503
16504   *)
16505     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16506     ;;
16507   esac
16508   dynamic_linker='Win32 ld.exe'
16509   # FIXME: first we should search . and the directory the executable is in
16510   shlibpath_var=PATH
16511   ;;
16512
16513 darwin* | rhapsody*)
16514   dynamic_linker="$host_os dyld"
16515   version_type=darwin
16516   need_lib_prefix=no
16517   need_version=no
16518   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16519   soname_spec='${libname}${release}${major}$shared_ext'
16520   shlibpath_overrides_runpath=yes
16521   shlibpath_var=DYLD_LIBRARY_PATH
16522   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16523
16524   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16525   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16526   ;;
16527
16528 dgux*)
16529   version_type=linux
16530   need_lib_prefix=no
16531   need_version=no
16532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16533   soname_spec='${libname}${release}${shared_ext}$major'
16534   shlibpath_var=LD_LIBRARY_PATH
16535   ;;
16536
16537 freebsd1*)
16538   dynamic_linker=no
16539   ;;
16540
16541 freebsd* | dragonfly*)
16542   # DragonFly does not have aout.  When/if they implement a new
16543   # versioning mechanism, adjust this.
16544   if test -x /usr/bin/objformat; then
16545     objformat=`/usr/bin/objformat`
16546   else
16547     case $host_os in
16548     freebsd[123]*) objformat=aout ;;
16549     *) objformat=elf ;;
16550     esac
16551   fi
16552   version_type=freebsd-$objformat
16553   case $version_type in
16554     freebsd-elf*)
16555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556       need_version=no
16557       need_lib_prefix=no
16558       ;;
16559     freebsd-*)
16560       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16561       need_version=yes
16562       ;;
16563   esac
16564   shlibpath_var=LD_LIBRARY_PATH
16565   case $host_os in
16566   freebsd2*)
16567     shlibpath_overrides_runpath=yes
16568     ;;
16569   freebsd3.[01]* | freebsdelf3.[01]*)
16570     shlibpath_overrides_runpath=yes
16571     hardcode_into_libs=yes
16572     ;;
16573   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16574   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16575     shlibpath_overrides_runpath=no
16576     hardcode_into_libs=yes
16577     ;;
16578   *) # from 4.6 on, and DragonFly
16579     shlibpath_overrides_runpath=yes
16580     hardcode_into_libs=yes
16581     ;;
16582   esac
16583   ;;
16584
16585 gnu*)
16586   version_type=linux
16587   need_lib_prefix=no
16588   need_version=no
16589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16590   soname_spec='${libname}${release}${shared_ext}$major'
16591   shlibpath_var=LD_LIBRARY_PATH
16592   hardcode_into_libs=yes
16593   ;;
16594
16595 hpux9* | hpux10* | hpux11*)
16596   # Give a soname corresponding to the major version so that dld.sl refuses to
16597   # link against other versions.
16598   version_type=sunos
16599   need_lib_prefix=no
16600   need_version=no
16601   case $host_cpu in
16602   ia64*)
16603     shrext_cmds='.so'
16604     hardcode_into_libs=yes
16605     dynamic_linker="$host_os dld.so"
16606     shlibpath_var=LD_LIBRARY_PATH
16607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16609     soname_spec='${libname}${release}${shared_ext}$major'
16610     if test "X$HPUX_IA64_MODE" = X32; then
16611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16612     else
16613       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16614     fi
16615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16616     ;;
16617    hppa*64*)
16618      shrext_cmds='.sl'
16619      hardcode_into_libs=yes
16620      dynamic_linker="$host_os dld.sl"
16621      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16622      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624      soname_spec='${libname}${release}${shared_ext}$major'
16625      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16626      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16627      ;;
16628    *)
16629     shrext_cmds='.sl'
16630     dynamic_linker="$host_os dld.sl"
16631     shlibpath_var=SHLIB_PATH
16632     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634     soname_spec='${libname}${release}${shared_ext}$major'
16635     ;;
16636   esac
16637   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16638   postinstall_cmds='chmod 555 $lib'
16639   ;;
16640
16641 interix[3-9]*)
16642   version_type=linux
16643   need_lib_prefix=no
16644   need_version=no
16645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16646   soname_spec='${libname}${release}${shared_ext}$major'
16647   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16648   shlibpath_var=LD_LIBRARY_PATH
16649   shlibpath_overrides_runpath=no
16650   hardcode_into_libs=yes
16651   ;;
16652
16653 irix5* | irix6* | nonstopux*)
16654   case $host_os in
16655     nonstopux*) version_type=nonstopux ;;
16656     *)
16657         if test "$lt_cv_prog_gnu_ld" = yes; then
16658                 version_type=linux
16659         else
16660                 version_type=irix
16661         fi ;;
16662   esac
16663   need_lib_prefix=no
16664   need_version=no
16665   soname_spec='${libname}${release}${shared_ext}$major'
16666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16667   case $host_os in
16668   irix5* | nonstopux*)
16669     libsuff= shlibsuff=
16670     ;;
16671   *)
16672     case $LD in # libtool.m4 will add one of these switches to LD
16673     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16674       libsuff= shlibsuff= libmagic=32-bit;;
16675     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16676       libsuff=32 shlibsuff=N32 libmagic=N32;;
16677     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16678       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16679     *) libsuff= shlibsuff= libmagic=never-match;;
16680     esac
16681     ;;
16682   esac
16683   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16684   shlibpath_overrides_runpath=no
16685   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16686   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16687   hardcode_into_libs=yes
16688   ;;
16689
16690 # No shared lib support for Linux oldld, aout, or coff.
16691 linux*oldld* | linux*aout* | linux*coff*)
16692   dynamic_linker=no
16693   ;;
16694
16695 # This must be Linux ELF.
16696 linux* | k*bsd*-gnu)
16697   version_type=linux
16698   need_lib_prefix=no
16699   need_version=no
16700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701   soname_spec='${libname}${release}${shared_ext}$major'
16702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   shlibpath_overrides_runpath=no
16705   # This implies no fast_install, which is unacceptable.
16706   # Some rework will be needed to allow for fast_install
16707   # before this can be enabled.
16708   hardcode_into_libs=yes
16709   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16710   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16711
16712   # Append ld.so.conf contents to the search path
16713   if test -f /etc/ld.so.conf; then
16714     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' ' '`
16715     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16716   fi
16717
16718   # We used to test for /lib/ld.so.1 and disable shared libraries on
16719   # powerpc, because MkLinux only supported shared libraries with the
16720   # GNU dynamic linker.  Since this was broken with cross compilers,
16721   # most powerpc-linux boxes support dynamic linking these days and
16722   # people can always --disable-shared, the test was removed, and we
16723   # assume the GNU/Linux dynamic linker is in use.
16724   dynamic_linker='GNU/Linux ld.so'
16725   ;;
16726
16727 netbsd*)
16728   version_type=sunos
16729   need_lib_prefix=no
16730   need_version=no
16731   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16733     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16734     dynamic_linker='NetBSD (a.out) ld.so'
16735   else
16736     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16737     soname_spec='${libname}${release}${shared_ext}$major'
16738     dynamic_linker='NetBSD ld.elf_so'
16739   fi
16740   shlibpath_var=LD_LIBRARY_PATH
16741   shlibpath_overrides_runpath=yes
16742   hardcode_into_libs=yes
16743   ;;
16744
16745 newsos6)
16746   version_type=linux
16747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748   shlibpath_var=LD_LIBRARY_PATH
16749   shlibpath_overrides_runpath=yes
16750   ;;
16751
16752 nto-qnx*)
16753   version_type=linux
16754   need_lib_prefix=no
16755   need_version=no
16756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757   soname_spec='${libname}${release}${shared_ext}$major'
16758   shlibpath_var=LD_LIBRARY_PATH
16759   shlibpath_overrides_runpath=yes
16760   ;;
16761
16762 openbsd*)
16763   version_type=sunos
16764   sys_lib_dlsearch_path_spec="/usr/lib"
16765   need_lib_prefix=no
16766   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16767   case $host_os in
16768     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16769     *)                         need_version=no  ;;
16770   esac
16771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16772   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16773   shlibpath_var=LD_LIBRARY_PATH
16774   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16775     case $host_os in
16776       openbsd2.[89] | openbsd2.[89].*)
16777         shlibpath_overrides_runpath=no
16778         ;;
16779       *)
16780         shlibpath_overrides_runpath=yes
16781         ;;
16782       esac
16783   else
16784     shlibpath_overrides_runpath=yes
16785   fi
16786   ;;
16787
16788 os2*)
16789   libname_spec='$name'
16790   shrext_cmds=".dll"
16791   need_lib_prefix=no
16792   library_names_spec='$libname${shared_ext} $libname.a'
16793   dynamic_linker='OS/2 ld.exe'
16794   shlibpath_var=LIBPATH
16795   ;;
16796
16797 osf3* | osf4* | osf5*)
16798   version_type=osf
16799   need_lib_prefix=no
16800   need_version=no
16801   soname_spec='${libname}${release}${shared_ext}$major'
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803   shlibpath_var=LD_LIBRARY_PATH
16804   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16805   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16806   ;;
16807
16808 rdos*)
16809   dynamic_linker=no
16810   ;;
16811
16812 solaris*)
16813   version_type=linux
16814   need_lib_prefix=no
16815   need_version=no
16816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817   soname_spec='${libname}${release}${shared_ext}$major'
16818   shlibpath_var=LD_LIBRARY_PATH
16819   shlibpath_overrides_runpath=yes
16820   hardcode_into_libs=yes
16821   # ldd complains unless libraries are executable
16822   postinstall_cmds='chmod +x $lib'
16823   ;;
16824
16825 sunos4*)
16826   version_type=sunos
16827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16828   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16829   shlibpath_var=LD_LIBRARY_PATH
16830   shlibpath_overrides_runpath=yes
16831   if test "$with_gnu_ld" = yes; then
16832     need_lib_prefix=no
16833   fi
16834   need_version=yes
16835   ;;
16836
16837 sysv4 | sysv4.3*)
16838   version_type=linux
16839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   case $host_vendor in
16843     sni)
16844       shlibpath_overrides_runpath=no
16845       need_lib_prefix=no
16846       export_dynamic_flag_spec='${wl}-Blargedynsym'
16847       runpath_var=LD_RUN_PATH
16848       ;;
16849     siemens)
16850       need_lib_prefix=no
16851       ;;
16852     motorola)
16853       need_lib_prefix=no
16854       need_version=no
16855       shlibpath_overrides_runpath=no
16856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16857       ;;
16858   esac
16859   ;;
16860
16861 sysv4*MP*)
16862   if test -d /usr/nec ;then
16863     version_type=linux
16864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16865     soname_spec='$libname${shared_ext}.$major'
16866     shlibpath_var=LD_LIBRARY_PATH
16867   fi
16868   ;;
16869
16870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16871   version_type=freebsd-elf
16872   need_lib_prefix=no
16873   need_version=no
16874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   shlibpath_var=LD_LIBRARY_PATH
16877   hardcode_into_libs=yes
16878   if test "$with_gnu_ld" = yes; then
16879     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16880     shlibpath_overrides_runpath=no
16881   else
16882     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16883     shlibpath_overrides_runpath=yes
16884     case $host_os in
16885       sco3.2v5*)
16886         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16887         ;;
16888     esac
16889   fi
16890   sys_lib_dlsearch_path_spec='/usr/lib'
16891   ;;
16892
16893 uts4*)
16894   version_type=linux
16895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896   soname_spec='${libname}${release}${shared_ext}$major'
16897   shlibpath_var=LD_LIBRARY_PATH
16898   ;;
16899
16900 *)
16901   dynamic_linker=no
16902   ;;
16903 esac
16904 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16905 echo "${ECHO_T}$dynamic_linker" >&6; }
16906 test "$dynamic_linker" = no && can_build_shared=no
16907
16908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16909 if test "$GCC" = yes; then
16910   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16911 fi
16912
16913 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16914 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16915 hardcode_action=
16916 if test -n "$hardcode_libdir_flag_spec" || \
16917    test -n "$runpath_var" || \
16918    test "X$hardcode_automatic" = "Xyes" ; then
16919
16920   # We can hardcode non-existant directories.
16921   if test "$hardcode_direct" != no &&
16922      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16923      # have to relink, otherwise we might link with an installed library
16924      # when we should be linking with a yet-to-be-installed one
16925      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16926      test "$hardcode_minus_L" != no; then
16927     # Linking always hardcodes the temporary library directory.
16928     hardcode_action=relink
16929   else
16930     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16931     hardcode_action=immediate
16932   fi
16933 else
16934   # We cannot hardcode anything, or else we can only hardcode existing
16935   # directories.
16936   hardcode_action=unsupported
16937 fi
16938 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16939 echo "${ECHO_T}$hardcode_action" >&6; }
16940
16941 if test "$hardcode_action" = relink; then
16942   # Fast installation is not supported
16943   enable_fast_install=no
16944 elif test "$shlibpath_overrides_runpath" = yes ||
16945      test "$enable_shared" = no; then
16946   # Fast installation is not necessary
16947   enable_fast_install=needless
16948 fi
16949
16950 striplib=
16951 old_striplib=
16952 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16953 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16954 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16955   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16956   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16957   { echo "$as_me:$LINENO: result: yes" >&5
16958 echo "${ECHO_T}yes" >&6; }
16959 else
16960 # FIXME - insert some real tests, host_os isn't really good enough
16961   case $host_os in
16962    darwin*)
16963        if test -n "$STRIP" ; then
16964          striplib="$STRIP -x"
16965          old_striplib="$STRIP -S"
16966          { echo "$as_me:$LINENO: result: yes" >&5
16967 echo "${ECHO_T}yes" >&6; }
16968        else
16969   { echo "$as_me:$LINENO: result: no" >&5
16970 echo "${ECHO_T}no" >&6; }
16971 fi
16972        ;;
16973    *)
16974   { echo "$as_me:$LINENO: result: no" >&5
16975 echo "${ECHO_T}no" >&6; }
16976     ;;
16977   esac
16978 fi
16979
16980 if test "x$enable_dlopen" != xyes; then
16981   enable_dlopen=unknown
16982   enable_dlopen_self=unknown
16983   enable_dlopen_self_static=unknown
16984 else
16985   lt_cv_dlopen=no
16986   lt_cv_dlopen_libs=
16987
16988   case $host_os in
16989   beos*)
16990     lt_cv_dlopen="load_add_on"
16991     lt_cv_dlopen_libs=
16992     lt_cv_dlopen_self=yes
16993     ;;
16994
16995   mingw* | pw32*)
16996     lt_cv_dlopen="LoadLibrary"
16997     lt_cv_dlopen_libs=
16998    ;;
16999
17000   cygwin*)
17001     lt_cv_dlopen="dlopen"
17002     lt_cv_dlopen_libs=
17003    ;;
17004
17005   darwin*)
17006   # if libdl is installed we need to link against it
17007     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   ac_check_lib_save_LIBS=$LIBS
17013 LIBS="-ldl  $LIBS"
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020
17021 /* Override any GCC internal prototype to avoid an error.
17022    Use char because int might match the return type of a GCC
17023    builtin and then its argument prototype would still apply.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 #endif
17027 char dlopen ();
17028 int
17029 main ()
17030 {
17031 return dlopen ();
17032   ;
17033   return 0;
17034 }
17035 _ACEOF
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_link") 2>conftest.er1
17044   ac_status=$?
17045   grep -v '^ *+' conftest.er1 >conftest.err
17046   rm -f conftest.er1
17047   cat conftest.err >&5
17048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049   (exit $ac_status); } && {
17050          test -z "$ac_c_werror_flag" ||
17051          test ! -s conftest.err
17052        } && test -s conftest$ac_exeext &&
17053        $as_test_x conftest$ac_exeext; then
17054   ac_cv_lib_dl_dlopen=yes
17055 else
17056   echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17058
17059         ac_cv_lib_dl_dlopen=no
17060 fi
17061
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063       conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17065 fi
17066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17067 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17068 if test $ac_cv_lib_dl_dlopen = yes; then
17069   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17070 else
17071
17072     lt_cv_dlopen="dyld"
17073     lt_cv_dlopen_libs=
17074     lt_cv_dlopen_self=yes
17075
17076 fi
17077
17078    ;;
17079
17080   *)
17081     { echo "$as_me:$LINENO: checking for shl_load" >&5
17082 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17083 if test "${ac_cv_func_shl_load+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086   cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17094 #define shl_load innocuous_shl_load
17095
17096 /* System header to define __stub macros and hopefully few prototypes,
17097     which can conflict with char shl_load (); below.
17098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17099     <limits.h> exists even on freestanding compilers.  */
17100
17101 #ifdef __STDC__
17102 # include <limits.h>
17103 #else
17104 # include <assert.h>
17105 #endif
17106
17107 #undef shl_load
17108
17109 /* Override any GCC internal prototype to avoid an error.
17110    Use char because int might match the return type of a GCC
17111    builtin and then its argument prototype would still apply.  */
17112 #ifdef __cplusplus
17113 extern "C"
17114 #endif
17115 char shl_load ();
17116 /* The GNU C library defines this for functions which it implements
17117     to always fail with ENOSYS.  Some functions are actually named
17118     something starting with __ and the normal name is an alias.  */
17119 #if defined __stub_shl_load || defined __stub___shl_load
17120 choke me
17121 #endif
17122
17123 int
17124 main ()
17125 {
17126 return shl_load ();
17127   ;
17128   return 0;
17129 }
17130 _ACEOF
17131 rm -f conftest.$ac_objext conftest$ac_exeext
17132 if { (ac_try="$ac_link"
17133 case "(($ac_try" in
17134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135   *) ac_try_echo=$ac_try;;
17136 esac
17137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138   (eval "$ac_link") 2>conftest.er1
17139   ac_status=$?
17140   grep -v '^ *+' conftest.er1 >conftest.err
17141   rm -f conftest.er1
17142   cat conftest.err >&5
17143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144   (exit $ac_status); } && {
17145          test -z "$ac_c_werror_flag" ||
17146          test ! -s conftest.err
17147        } && test -s conftest$ac_exeext &&
17148        $as_test_x conftest$ac_exeext; then
17149   ac_cv_func_shl_load=yes
17150 else
17151   echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17153
17154         ac_cv_func_shl_load=no
17155 fi
17156
17157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17158       conftest$ac_exeext conftest.$ac_ext
17159 fi
17160 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17161 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17162 if test $ac_cv_func_shl_load = yes; then
17163   lt_cv_dlopen="shl_load"
17164 else
17165   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17166 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17167 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   ac_check_lib_save_LIBS=$LIBS
17171 LIBS="-ldld  $LIBS"
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h.  */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h.  */
17178
17179 /* Override any GCC internal prototype to avoid an error.
17180    Use char because int might match the return type of a GCC
17181    builtin and then its argument prototype would still apply.  */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 char shl_load ();
17186 int
17187 main ()
17188 {
17189 return shl_load ();
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (ac_try="$ac_link"
17196 case "(($ac_try" in
17197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198   *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201   (eval "$ac_link") 2>conftest.er1
17202   ac_status=$?
17203   grep -v '^ *+' conftest.er1 >conftest.err
17204   rm -f conftest.er1
17205   cat conftest.err >&5
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } && {
17208          test -z "$ac_c_werror_flag" ||
17209          test ! -s conftest.err
17210        } && test -s conftest$ac_exeext &&
17211        $as_test_x conftest$ac_exeext; then
17212   ac_cv_lib_dld_shl_load=yes
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217         ac_cv_lib_dld_shl_load=no
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221       conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17223 fi
17224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17225 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17226 if test $ac_cv_lib_dld_shl_load = yes; then
17227   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17228 else
17229   { echo "$as_me:$LINENO: checking for dlopen" >&5
17230 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17231 if test "${ac_cv_func_dlopen+set}" = set; then
17232   echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234   cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17242 #define dlopen innocuous_dlopen
17243
17244 /* System header to define __stub macros and hopefully few prototypes,
17245     which can conflict with char dlopen (); below.
17246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17247     <limits.h> exists even on freestanding compilers.  */
17248
17249 #ifdef __STDC__
17250 # include <limits.h>
17251 #else
17252 # include <assert.h>
17253 #endif
17254
17255 #undef dlopen
17256
17257 /* Override any GCC internal prototype to avoid an error.
17258    Use char because int might match the return type of a GCC
17259    builtin and then its argument prototype would still apply.  */
17260 #ifdef __cplusplus
17261 extern "C"
17262 #endif
17263 char dlopen ();
17264 /* The GNU C library defines this for functions which it implements
17265     to always fail with ENOSYS.  Some functions are actually named
17266     something starting with __ and the normal name is an alias.  */
17267 #if defined __stub_dlopen || defined __stub___dlopen
17268 choke me
17269 #endif
17270
17271 int
17272 main ()
17273 {
17274 return dlopen ();
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 rm -f conftest.$ac_objext conftest$ac_exeext
17280 if { (ac_try="$ac_link"
17281 case "(($ac_try" in
17282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17283   *) ac_try_echo=$ac_try;;
17284 esac
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286   (eval "$ac_link") 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } && {
17293          test -z "$ac_c_werror_flag" ||
17294          test ! -s conftest.err
17295        } && test -s conftest$ac_exeext &&
17296        $as_test_x conftest$ac_exeext; then
17297   ac_cv_func_dlopen=yes
17298 else
17299   echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.$ac_ext >&5
17301
17302         ac_cv_func_dlopen=no
17303 fi
17304
17305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17306       conftest$ac_exeext conftest.$ac_ext
17307 fi
17308 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17309 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17310 if test $ac_cv_func_dlopen = yes; then
17311   lt_cv_dlopen="dlopen"
17312 else
17313   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17316   echo $ECHO_N "(cached) $ECHO_C" >&6
17317 else
17318   ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-ldl  $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326
17327 /* Override any GCC internal prototype to avoid an error.
17328    Use char because int might match the return type of a GCC
17329    builtin and then its argument prototype would still apply.  */
17330 #ifdef __cplusplus
17331 extern "C"
17332 #endif
17333 char dlopen ();
17334 int
17335 main ()
17336 {
17337 return dlopen ();
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346   *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349   (eval "$ac_link") 2>conftest.er1
17350   ac_status=$?
17351   grep -v '^ *+' conftest.er1 >conftest.err
17352   rm -f conftest.er1
17353   cat conftest.err >&5
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } && {
17356          test -z "$ac_c_werror_flag" ||
17357          test ! -s conftest.err
17358        } && test -s conftest$ac_exeext &&
17359        $as_test_x conftest$ac_exeext; then
17360   ac_cv_lib_dl_dlopen=yes
17361 else
17362   echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365         ac_cv_lib_dl_dlopen=no
17366 fi
17367
17368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17369       conftest$ac_exeext conftest.$ac_ext
17370 LIBS=$ac_check_lib_save_LIBS
17371 fi
17372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17374 if test $ac_cv_lib_dl_dlopen = yes; then
17375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17376 else
17377   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17378 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17379 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   ac_check_lib_save_LIBS=$LIBS
17383 LIBS="-lsvld  $LIBS"
17384 cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390
17391 /* Override any GCC internal prototype to avoid an error.
17392    Use char because int might match the return type of a GCC
17393    builtin and then its argument prototype would still apply.  */
17394 #ifdef __cplusplus
17395 extern "C"
17396 #endif
17397 char dlopen ();
17398 int
17399 main ()
17400 {
17401 return dlopen ();
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_link") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest$ac_exeext &&
17423        $as_test_x conftest$ac_exeext; then
17424   ac_cv_lib_svld_dlopen=yes
17425 else
17426   echo "$as_me: failed program was:" >&5
17427 sed 's/^/| /' conftest.$ac_ext >&5
17428
17429         ac_cv_lib_svld_dlopen=no
17430 fi
17431
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433       conftest$ac_exeext conftest.$ac_ext
17434 LIBS=$ac_check_lib_save_LIBS
17435 fi
17436 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17437 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17438 if test $ac_cv_lib_svld_dlopen = yes; then
17439   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17440 else
17441   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17442 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17443 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   ac_check_lib_save_LIBS=$LIBS
17447 LIBS="-ldld  $LIBS"
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h.  */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h.  */
17454
17455 /* Override any GCC internal prototype to avoid an error.
17456    Use char because int might match the return type of a GCC
17457    builtin and then its argument prototype would still apply.  */
17458 #ifdef __cplusplus
17459 extern "C"
17460 #endif
17461 char dld_link ();
17462 int
17463 main ()
17464 {
17465 return dld_link ();
17466   ;
17467   return 0;
17468 }
17469 _ACEOF
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474   *) ac_try_echo=$ac_try;;
17475 esac
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477   (eval "$ac_link") 2>conftest.er1
17478   ac_status=$?
17479   grep -v '^ *+' conftest.er1 >conftest.err
17480   rm -f conftest.er1
17481   cat conftest.err >&5
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); } && {
17484          test -z "$ac_c_werror_flag" ||
17485          test ! -s conftest.err
17486        } && test -s conftest$ac_exeext &&
17487        $as_test_x conftest$ac_exeext; then
17488   ac_cv_lib_dld_dld_link=yes
17489 else
17490   echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493         ac_cv_lib_dld_dld_link=no
17494 fi
17495
17496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17497       conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17499 fi
17500 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17501 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17502 if test $ac_cv_lib_dld_dld_link = yes; then
17503   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17504 fi
17505
17506
17507 fi
17508
17509
17510 fi
17511
17512
17513 fi
17514
17515
17516 fi
17517
17518
17519 fi
17520
17521     ;;
17522   esac
17523
17524   if test "x$lt_cv_dlopen" != xno; then
17525     enable_dlopen=yes
17526   else
17527     enable_dlopen=no
17528   fi
17529
17530   case $lt_cv_dlopen in
17531   dlopen)
17532     save_CPPFLAGS="$CPPFLAGS"
17533     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17534
17535     save_LDFLAGS="$LDFLAGS"
17536     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17537
17538     save_LIBS="$LIBS"
17539     LIBS="$lt_cv_dlopen_libs $LIBS"
17540
17541     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17542 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17543 if test "${lt_cv_dlopen_self+set}" = set; then
17544   echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546           if test "$cross_compiling" = yes; then :
17547   lt_cv_dlopen_self=cross
17548 else
17549   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17550   lt_status=$lt_dlunknown
17551   cat > conftest.$ac_ext <<EOF
17552 #line 17552 "configure"
17553 #include "confdefs.h"
17554
17555 #if HAVE_DLFCN_H
17556 #include <dlfcn.h>
17557 #endif
17558
17559 #include <stdio.h>
17560
17561 #ifdef RTLD_GLOBAL
17562 #  define LT_DLGLOBAL           RTLD_GLOBAL
17563 #else
17564 #  ifdef DL_GLOBAL
17565 #    define LT_DLGLOBAL         DL_GLOBAL
17566 #  else
17567 #    define LT_DLGLOBAL         0
17568 #  endif
17569 #endif
17570
17571 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17572    find out it does not work in some platform. */
17573 #ifndef LT_DLLAZY_OR_NOW
17574 #  ifdef RTLD_LAZY
17575 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17576 #  else
17577 #    ifdef DL_LAZY
17578 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17579 #    else
17580 #      ifdef RTLD_NOW
17581 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17582 #      else
17583 #        ifdef DL_NOW
17584 #          define LT_DLLAZY_OR_NOW      DL_NOW
17585 #        else
17586 #          define LT_DLLAZY_OR_NOW      0
17587 #        endif
17588 #      endif
17589 #    endif
17590 #  endif
17591 #endif
17592
17593 #ifdef __cplusplus
17594 extern "C" void exit (int);
17595 #endif
17596
17597 void fnord() { int i=42;}
17598 int main ()
17599 {
17600   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17601   int status = $lt_dlunknown;
17602
17603   if (self)
17604     {
17605       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17606       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17607       /* dlclose (self); */
17608     }
17609   else
17610     puts (dlerror ());
17611
17612     exit (status);
17613 }
17614 EOF
17615   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17616   (eval $ac_link) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17620     (./conftest; exit; ) >&5 2>/dev/null
17621     lt_status=$?
17622     case x$lt_status in
17623       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17624       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17625       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17626     esac
17627   else :
17628     # compilation failed
17629     lt_cv_dlopen_self=no
17630   fi
17631 fi
17632 rm -fr conftest*
17633
17634
17635 fi
17636 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17637 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17638
17639     if test "x$lt_cv_dlopen_self" = xyes; then
17640       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17641       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17642 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17643 if test "${lt_cv_dlopen_self_static+set}" = set; then
17644   echo $ECHO_N "(cached) $ECHO_C" >&6
17645 else
17646           if test "$cross_compiling" = yes; then :
17647   lt_cv_dlopen_self_static=cross
17648 else
17649   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17650   lt_status=$lt_dlunknown
17651   cat > conftest.$ac_ext <<EOF
17652 #line 17652 "configure"
17653 #include "confdefs.h"
17654
17655 #if HAVE_DLFCN_H
17656 #include <dlfcn.h>
17657 #endif
17658
17659 #include <stdio.h>
17660
17661 #ifdef RTLD_GLOBAL
17662 #  define LT_DLGLOBAL           RTLD_GLOBAL
17663 #else
17664 #  ifdef DL_GLOBAL
17665 #    define LT_DLGLOBAL         DL_GLOBAL
17666 #  else
17667 #    define LT_DLGLOBAL         0
17668 #  endif
17669 #endif
17670
17671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17672    find out it does not work in some platform. */
17673 #ifndef LT_DLLAZY_OR_NOW
17674 #  ifdef RTLD_LAZY
17675 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17676 #  else
17677 #    ifdef DL_LAZY
17678 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17679 #    else
17680 #      ifdef RTLD_NOW
17681 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17682 #      else
17683 #        ifdef DL_NOW
17684 #          define LT_DLLAZY_OR_NOW      DL_NOW
17685 #        else
17686 #          define LT_DLLAZY_OR_NOW      0
17687 #        endif
17688 #      endif
17689 #    endif
17690 #  endif
17691 #endif
17692
17693 #ifdef __cplusplus
17694 extern "C" void exit (int);
17695 #endif
17696
17697 void fnord() { int i=42;}
17698 int main ()
17699 {
17700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17701   int status = $lt_dlunknown;
17702
17703   if (self)
17704     {
17705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17707       /* dlclose (self); */
17708     }
17709   else
17710     puts (dlerror ());
17711
17712     exit (status);
17713 }
17714 EOF
17715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716   (eval $ac_link) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17720     (./conftest; exit; ) >&5 2>/dev/null
17721     lt_status=$?
17722     case x$lt_status in
17723       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17724       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17725       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17726     esac
17727   else :
17728     # compilation failed
17729     lt_cv_dlopen_self_static=no
17730   fi
17731 fi
17732 rm -fr conftest*
17733
17734
17735 fi
17736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17737 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17738     fi
17739
17740     CPPFLAGS="$save_CPPFLAGS"
17741     LDFLAGS="$save_LDFLAGS"
17742     LIBS="$save_LIBS"
17743     ;;
17744   esac
17745
17746   case $lt_cv_dlopen_self in
17747   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17748   *) enable_dlopen_self=unknown ;;
17749   esac
17750
17751   case $lt_cv_dlopen_self_static in
17752   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17753   *) enable_dlopen_self_static=unknown ;;
17754   esac
17755 fi
17756
17757
17758 # Report which library types will actually be built
17759 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17760 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17761 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17762 echo "${ECHO_T}$can_build_shared" >&6; }
17763
17764 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17765 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17766 test "$can_build_shared" = "no" && enable_shared=no
17767
17768 # On AIX, shared libraries and static libraries use the same namespace, and
17769 # are all built from PIC.
17770 case $host_os in
17771 aix3*)
17772   test "$enable_shared" = yes && enable_static=no
17773   if test -n "$RANLIB"; then
17774     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17775     postinstall_cmds='$RANLIB $lib'
17776   fi
17777   ;;
17778
17779 aix4* | aix5*)
17780   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17781     test "$enable_shared" = yes && enable_static=no
17782   fi
17783     ;;
17784 esac
17785 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17786 echo "${ECHO_T}$enable_shared" >&6; }
17787
17788 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17789 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17790 # Make sure either enable_shared or enable_static is yes.
17791 test "$enable_shared" = yes || enable_static=yes
17792 { echo "$as_me:$LINENO: result: $enable_static" >&5
17793 echo "${ECHO_T}$enable_static" >&6; }
17794
17795 # The else clause should only fire when bootstrapping the
17796 # libtool distribution, otherwise you forgot to ship ltmain.sh
17797 # with your package, and you will get complaints that there are
17798 # no rules to generate ltmain.sh.
17799 if test -f "$ltmain"; then
17800   # See if we are running on zsh, and set the options which allow our commands through
17801   # without removal of \ escapes.
17802   if test -n "${ZSH_VERSION+set}" ; then
17803     setopt NO_GLOB_SUBST
17804   fi
17805   # Now quote all the things that may contain metacharacters while being
17806   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17807   # variables and quote the copies for generation of the libtool script.
17808   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17809     SED SHELL STRIP \
17810     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17811     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17812     deplibs_check_method reload_flag reload_cmds need_locks \
17813     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17814     lt_cv_sys_global_symbol_to_c_name_address \
17815     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17816     old_postinstall_cmds old_postuninstall_cmds \
17817     compiler \
17818     CC \
17819     LD \
17820     lt_prog_compiler_wl \
17821     lt_prog_compiler_pic \
17822     lt_prog_compiler_static \
17823     lt_prog_compiler_no_builtin_flag \
17824     export_dynamic_flag_spec \
17825     thread_safe_flag_spec \
17826     whole_archive_flag_spec \
17827     enable_shared_with_static_runtimes \
17828     old_archive_cmds \
17829     old_archive_from_new_cmds \
17830     predep_objects \
17831     postdep_objects \
17832     predeps \
17833     postdeps \
17834     compiler_lib_search_path \
17835     archive_cmds \
17836     archive_expsym_cmds \
17837     postinstall_cmds \
17838     postuninstall_cmds \
17839     old_archive_from_expsyms_cmds \
17840     allow_undefined_flag \
17841     no_undefined_flag \
17842     export_symbols_cmds \
17843     hardcode_libdir_flag_spec \
17844     hardcode_libdir_flag_spec_ld \
17845     hardcode_libdir_separator \
17846     hardcode_automatic \
17847     module_cmds \
17848     module_expsym_cmds \
17849     lt_cv_prog_compiler_c_o \
17850     fix_srcfile_path \
17851     exclude_expsyms \
17852     include_expsyms; do
17853
17854     case $var in
17855     old_archive_cmds | \
17856     old_archive_from_new_cmds | \
17857     archive_cmds | \
17858     archive_expsym_cmds | \
17859     module_cmds | \
17860     module_expsym_cmds | \
17861     old_archive_from_expsyms_cmds | \
17862     export_symbols_cmds | \
17863     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17864     postinstall_cmds | postuninstall_cmds | \
17865     old_postinstall_cmds | old_postuninstall_cmds | \
17866     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17867       # Double-quote double-evaled strings.
17868       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17869       ;;
17870     *)
17871       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17872       ;;
17873     esac
17874   done
17875
17876   case $lt_echo in
17877   *'\$0 --fallback-echo"')
17878     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17879     ;;
17880   esac
17881
17882 cfgfile="${ofile}T"
17883   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17884   $rm -f "$cfgfile"
17885   { echo "$as_me:$LINENO: creating $ofile" >&5
17886 echo "$as_me: creating $ofile" >&6;}
17887
17888   cat <<__EOF__ >> "$cfgfile"
17889 #! $SHELL
17890
17891 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17892 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17894 #
17895 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
17896 # Free Software Foundation, Inc.
17897 #
17898 # This file is part of GNU Libtool:
17899 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17900 #
17901 # This program is free software; you can redistribute it and/or modify
17902 # it under the terms of the GNU General Public License as published by
17903 # the Free Software Foundation; either version 2 of the License, or
17904 # (at your option) any later version.
17905 #
17906 # This program is distributed in the hope that it will be useful, but
17907 # WITHOUT ANY WARRANTY; without even the implied warranty of
17908 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17909 # General Public License for more details.
17910 #
17911 # You should have received a copy of the GNU General Public License
17912 # along with this program; if not, write to the Free Software
17913 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17914 #
17915 # As a special exception to the GNU General Public License, if you
17916 # distribute this file as part of a program that contains a
17917 # configuration script generated by Autoconf, you may include it under
17918 # the same distribution terms that you use for the rest of that program.
17919
17920 # A sed program that does not truncate output.
17921 SED=$lt_SED
17922
17923 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17924 Xsed="$SED -e 1s/^X//"
17925
17926 # The HP-UX ksh and POSIX shell print the target directory to stdout
17927 # if CDPATH is set.
17928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17929
17930 # The names of the tagged configurations supported by this script.
17931 available_tags=
17932
17933 # ### BEGIN LIBTOOL CONFIG
17934
17935 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17936
17937 # Shell to use when invoking shell scripts.
17938 SHELL=$lt_SHELL
17939
17940 # Whether or not to build shared libraries.
17941 build_libtool_libs=$enable_shared
17942
17943 # Whether or not to build static libraries.
17944 build_old_libs=$enable_static
17945
17946 # Whether or not to add -lc for building shared libraries.
17947 build_libtool_need_lc=$archive_cmds_need_lc
17948
17949 # Whether or not to disallow shared libs when runtime libs are static
17950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17951
17952 # Whether or not to optimize for fast installation.
17953 fast_install=$enable_fast_install
17954
17955 # The host system.
17956 host_alias=$host_alias
17957 host=$host
17958 host_os=$host_os
17959
17960 # The build system.
17961 build_alias=$build_alias
17962 build=$build
17963 build_os=$build_os
17964
17965 # An echo program that does not interpret backslashes.
17966 echo=$lt_echo
17967
17968 # The archiver.
17969 AR=$lt_AR
17970 AR_FLAGS=$lt_AR_FLAGS
17971
17972 # A C compiler.
17973 LTCC=$lt_LTCC
17974
17975 # LTCC compiler flags.
17976 LTCFLAGS=$lt_LTCFLAGS
17977
17978 # A language-specific compiler.
17979 CC=$lt_compiler
17980
17981 # Is the compiler the GNU C compiler?
17982 with_gcc=$GCC
17983
17984 # An ERE matcher.
17985 EGREP=$lt_EGREP
17986
17987 # The linker used to build libraries.
17988 LD=$lt_LD
17989
17990 # Whether we need hard or soft links.
17991 LN_S=$lt_LN_S
17992
17993 # A BSD-compatible nm program.
17994 NM=$lt_NM
17995
17996 # A symbol stripping program
17997 STRIP=$lt_STRIP
17998
17999 # Used to examine libraries when file_magic_cmd begins "file"
18000 MAGIC_CMD=$MAGIC_CMD
18001
18002 # Used on cygwin: DLL creation program.
18003 DLLTOOL="$DLLTOOL"
18004
18005 # Used on cygwin: object dumper.
18006 OBJDUMP="$OBJDUMP"
18007
18008 # Used on cygwin: assembler.
18009 AS="$AS"
18010
18011 # The name of the directory that contains temporary libtool files.
18012 objdir=$objdir
18013
18014 # How to create reloadable object files.
18015 reload_flag=$lt_reload_flag
18016 reload_cmds=$lt_reload_cmds
18017
18018 # How to pass a linker flag through the compiler.
18019 wl=$lt_lt_prog_compiler_wl
18020
18021 # Object file suffix (normally "o").
18022 objext="$ac_objext"
18023
18024 # Old archive suffix (normally "a").
18025 libext="$libext"
18026
18027 # Shared library suffix (normally ".so").
18028 shrext_cmds='$shrext_cmds'
18029
18030 # Executable file suffix (normally "").
18031 exeext="$exeext"
18032
18033 # Additional compiler flags for building library objects.
18034 pic_flag=$lt_lt_prog_compiler_pic
18035 pic_mode=$pic_mode
18036
18037 # What is the maximum length of a command?
18038 max_cmd_len=$lt_cv_sys_max_cmd_len
18039
18040 # Does compiler simultaneously support -c and -o options?
18041 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18042
18043 # Must we lock files when doing compilation?
18044 need_locks=$lt_need_locks
18045
18046 # Do we need the lib prefix for modules?
18047 need_lib_prefix=$need_lib_prefix
18048
18049 # Do we need a version for libraries?
18050 need_version=$need_version
18051
18052 # Whether dlopen is supported.
18053 dlopen_support=$enable_dlopen
18054
18055 # Whether dlopen of programs is supported.
18056 dlopen_self=$enable_dlopen_self
18057
18058 # Whether dlopen of statically linked programs is supported.
18059 dlopen_self_static=$enable_dlopen_self_static
18060
18061 # Compiler flag to prevent dynamic linking.
18062 link_static_flag=$lt_lt_prog_compiler_static
18063
18064 # Compiler flag to turn off builtin functions.
18065 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18066
18067 # Compiler flag to allow reflexive dlopens.
18068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18069
18070 # Compiler flag to generate shared objects directly from archives.
18071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18072
18073 # Compiler flag to generate thread-safe objects.
18074 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18075
18076 # Library versioning type.
18077 version_type=$version_type
18078
18079 # Format of library name prefix.
18080 libname_spec=$lt_libname_spec
18081
18082 # List of archive names.  First name is the real one, the rest are links.
18083 # The last name is the one that the linker finds with -lNAME.
18084 library_names_spec=$lt_library_names_spec
18085
18086 # The coded name of the library, if different from the real name.
18087 soname_spec=$lt_soname_spec
18088
18089 # Commands used to build and install an old-style archive.
18090 RANLIB=$lt_RANLIB
18091 old_archive_cmds=$lt_old_archive_cmds
18092 old_postinstall_cmds=$lt_old_postinstall_cmds
18093 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18094
18095 # Create an old-style archive from a shared archive.
18096 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18097
18098 # Create a temporary old-style archive to link instead of a shared archive.
18099 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18100
18101 # Commands used to build and install a shared archive.
18102 archive_cmds=$lt_archive_cmds
18103 archive_expsym_cmds=$lt_archive_expsym_cmds
18104 postinstall_cmds=$lt_postinstall_cmds
18105 postuninstall_cmds=$lt_postuninstall_cmds
18106
18107 # Commands used to build a loadable module (assumed same as above if empty)
18108 module_cmds=$lt_module_cmds
18109 module_expsym_cmds=$lt_module_expsym_cmds
18110
18111 # Commands to strip libraries.
18112 old_striplib=$lt_old_striplib
18113 striplib=$lt_striplib
18114
18115 # Dependencies to place before the objects being linked to create a
18116 # shared library.
18117 predep_objects=$lt_predep_objects
18118
18119 # Dependencies to place after the objects being linked to create a
18120 # shared library.
18121 postdep_objects=$lt_postdep_objects
18122
18123 # Dependencies to place before the objects being linked to create a
18124 # shared library.
18125 predeps=$lt_predeps
18126
18127 # Dependencies to place after the objects being linked to create a
18128 # shared library.
18129 postdeps=$lt_postdeps
18130
18131 # The library search path used internally by the compiler when linking
18132 # a shared library.
18133 compiler_lib_search_path=$lt_compiler_lib_search_path
18134
18135 # Method to check whether dependent libraries are shared objects.
18136 deplibs_check_method=$lt_deplibs_check_method
18137
18138 # Command to use when deplibs_check_method == file_magic.
18139 file_magic_cmd=$lt_file_magic_cmd
18140
18141 # Flag that allows shared libraries with undefined symbols to be built.
18142 allow_undefined_flag=$lt_allow_undefined_flag
18143
18144 # Flag that forces no undefined symbols.
18145 no_undefined_flag=$lt_no_undefined_flag
18146
18147 # Commands used to finish a libtool library installation in a directory.
18148 finish_cmds=$lt_finish_cmds
18149
18150 # Same as above, but a single script fragment to be evaled but not shown.
18151 finish_eval=$lt_finish_eval
18152
18153 # Take the output of nm and produce a listing of raw symbols and C names.
18154 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18155
18156 # Transform the output of nm in a proper C declaration
18157 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18158
18159 # Transform the output of nm in a C name address pair
18160 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18161
18162 # This is the shared library runtime path variable.
18163 runpath_var=$runpath_var
18164
18165 # This is the shared library path variable.
18166 shlibpath_var=$shlibpath_var
18167
18168 # Is shlibpath searched before the hard-coded library search path?
18169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18170
18171 # How to hardcode a shared library path into an executable.
18172 hardcode_action=$hardcode_action
18173
18174 # Whether we should hardcode library paths into libraries.
18175 hardcode_into_libs=$hardcode_into_libs
18176
18177 # Flag to hardcode \$libdir into a binary during linking.
18178 # This must work even if \$libdir does not exist.
18179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18180
18181 # If ld is used when linking, flag to hardcode \$libdir into
18182 # a binary during linking. This must work even if \$libdir does
18183 # not exist.
18184 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18185
18186 # Whether we need a single -rpath flag with a separated argument.
18187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18188
18189 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18190 # resulting binary.
18191 hardcode_direct=$hardcode_direct
18192
18193 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18194 # resulting binary.
18195 hardcode_minus_L=$hardcode_minus_L
18196
18197 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18198 # the resulting binary.
18199 hardcode_shlibpath_var=$hardcode_shlibpath_var
18200
18201 # Set to yes if building a shared library automatically hardcodes DIR into the library
18202 # and all subsequent libraries and executables linked against it.
18203 hardcode_automatic=$hardcode_automatic
18204
18205 # Variables whose values should be saved in libtool wrapper scripts and
18206 # restored at relink time.
18207 variables_saved_for_relink="$variables_saved_for_relink"
18208
18209 # Whether libtool must link a program against all its dependency libraries.
18210 link_all_deplibs=$link_all_deplibs
18211
18212 # Compile-time system search path for libraries
18213 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18214
18215 # Run-time system search path for libraries
18216 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18217
18218 # Fix the shell variable \$srcfile for the compiler.
18219 fix_srcfile_path=$lt_fix_srcfile_path
18220
18221 # Set to yes if exported symbols are required.
18222 always_export_symbols=$always_export_symbols
18223
18224 # The commands to list exported symbols.
18225 export_symbols_cmds=$lt_export_symbols_cmds
18226
18227 # The commands to extract the exported symbol list from a shared archive.
18228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18229
18230 # Symbols that should not be listed in the preloaded symbols.
18231 exclude_expsyms=$lt_exclude_expsyms
18232
18233 # Symbols that must always be exported.
18234 include_expsyms=$lt_include_expsyms
18235
18236 # ### END LIBTOOL CONFIG
18237
18238 __EOF__
18239
18240
18241   case $host_os in
18242   aix3*)
18243     cat <<\EOF >> "$cfgfile"
18244
18245 # AIX sometimes has problems with the GCC collect2 program.  For some
18246 # reason, if we set the COLLECT_NAMES environment variable, the problems
18247 # vanish in a puff of smoke.
18248 if test "X${COLLECT_NAMES+set}" != Xset; then
18249   COLLECT_NAMES=
18250   export COLLECT_NAMES
18251 fi
18252 EOF
18253     ;;
18254   esac
18255
18256   # We use sed instead of cat because bash on DJGPP gets confused if
18257   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18258   # text mode, it properly converts lines to CR/LF.  This bash problem
18259   # is reportedly fixed, but why not run on old versions too?
18260   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18261
18262   mv -f "$cfgfile" "$ofile" || \
18263     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18264   chmod +x "$ofile"
18265
18266 else
18267   # If there is no Makefile yet, we rely on a make rule to execute
18268   # `config.status --recheck' to rerun these tests and create the
18269   # libtool script then.
18270   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18271   if test -f "$ltmain_in"; then
18272     test -f Makefile && make "$ltmain"
18273   fi
18274 fi
18275
18276
18277 ac_ext=c
18278 ac_cpp='$CPP $CPPFLAGS'
18279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18282
18283 CC="$lt_save_CC"
18284
18285
18286 # Check whether --with-tags was given.
18287 if test "${with_tags+set}" = set; then
18288   withval=$with_tags; tagnames="$withval"
18289 fi
18290
18291
18292 if test -f "$ltmain" && test -n "$tagnames"; then
18293   if test ! -f "${ofile}"; then
18294     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18295 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18296   fi
18297
18298   if test -z "$LTCC"; then
18299     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18300     if test -z "$LTCC"; then
18301       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18302 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18303     else
18304       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18305 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18306     fi
18307   fi
18308   if test -z "$LTCFLAGS"; then
18309     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18310   fi
18311
18312   # Extract list of available tagged configurations in $ofile.
18313   # Note that this assumes the entire list is on one line.
18314   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18315
18316   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18317   for tagname in $tagnames; do
18318     IFS="$lt_save_ifs"
18319     # Check whether tagname contains only valid characters
18320     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18321     "") ;;
18322     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18323 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18324    { (exit 1); exit 1; }; }
18325         ;;
18326     esac
18327
18328     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18329     then
18330       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18331 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18332    { (exit 1); exit 1; }; }
18333     fi
18334
18335     # Update the list of available tags.
18336     if test -n "$tagname"; then
18337       echo appending configuration tag \"$tagname\" to $ofile
18338
18339       case $tagname in
18340       CXX)
18341         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18342             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18343             (test "X$CXX" != "Xg++"))) ; then
18344           ac_ext=cpp
18345 ac_cpp='$CXXCPP $CPPFLAGS'
18346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18349
18350
18351
18352
18353 archive_cmds_need_lc_CXX=no
18354 allow_undefined_flag_CXX=
18355 always_export_symbols_CXX=no
18356 archive_expsym_cmds_CXX=
18357 export_dynamic_flag_spec_CXX=
18358 hardcode_direct_CXX=no
18359 hardcode_libdir_flag_spec_CXX=
18360 hardcode_libdir_flag_spec_ld_CXX=
18361 hardcode_libdir_separator_CXX=
18362 hardcode_minus_L_CXX=no
18363 hardcode_shlibpath_var_CXX=unsupported
18364 hardcode_automatic_CXX=no
18365 module_cmds_CXX=
18366 module_expsym_cmds_CXX=
18367 link_all_deplibs_CXX=unknown
18368 old_archive_cmds_CXX=$old_archive_cmds
18369 no_undefined_flag_CXX=
18370 whole_archive_flag_spec_CXX=
18371 enable_shared_with_static_runtimes_CXX=no
18372
18373 # Dependencies to place before and after the object being linked:
18374 predep_objects_CXX=
18375 postdep_objects_CXX=
18376 predeps_CXX=
18377 postdeps_CXX=
18378 compiler_lib_search_path_CXX=
18379
18380 # Source file extension for C++ test sources.
18381 ac_ext=cpp
18382
18383 # Object file extension for compiled C++ test sources.
18384 objext=o
18385 objext_CXX=$objext
18386
18387 # Code to be used in simple compile tests
18388 lt_simple_compile_test_code="int some_variable = 0;"
18389
18390 # Code to be used in simple link tests
18391 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18392
18393 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18394
18395 # If no C compiler was specified, use CC.
18396 LTCC=${LTCC-"$CC"}
18397
18398 # If no C compiler flags were specified, use CFLAGS.
18399 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18400
18401 # Allow CC to be a program name with arguments.
18402 compiler=$CC
18403
18404
18405 # save warnings/boilerplate of simple test code
18406 ac_outfile=conftest.$ac_objext
18407 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18408 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18409 _lt_compiler_boilerplate=`cat conftest.err`
18410 $rm conftest*
18411
18412 ac_outfile=conftest.$ac_objext
18413 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18414 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415 _lt_linker_boilerplate=`cat conftest.err`
18416 $rm conftest*
18417
18418
18419 # Allow CC to be a program name with arguments.
18420 lt_save_CC=$CC
18421 lt_save_LD=$LD
18422 lt_save_GCC=$GCC
18423 GCC=$GXX
18424 lt_save_with_gnu_ld=$with_gnu_ld
18425 lt_save_path_LD=$lt_cv_path_LD
18426 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18427   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18428 else
18429   $as_unset lt_cv_prog_gnu_ld
18430 fi
18431 if test -n "${lt_cv_path_LDCXX+set}"; then
18432   lt_cv_path_LD=$lt_cv_path_LDCXX
18433 else
18434   $as_unset lt_cv_path_LD
18435 fi
18436 test -z "${LDCXX+set}" || LD=$LDCXX
18437 CC=${CXX-"c++"}
18438 compiler=$CC
18439 compiler_CXX=$CC
18440 for cc_temp in $compiler""; do
18441   case $cc_temp in
18442     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18443     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18444     \-*) ;;
18445     *) break;;
18446   esac
18447 done
18448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18449
18450
18451 # We don't want -fno-exception wen compiling C++ code, so set the
18452 # no_builtin_flag separately
18453 if test "$GXX" = yes; then
18454   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18455 else
18456   lt_prog_compiler_no_builtin_flag_CXX=
18457 fi
18458
18459 if test "$GXX" = yes; then
18460   # Set up default GNU C++ configuration
18461
18462
18463 # Check whether --with-gnu-ld was given.
18464 if test "${with_gnu_ld+set}" = set; then
18465   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18466 else
18467   with_gnu_ld=no
18468 fi
18469
18470 ac_prog=ld
18471 if test "$GCC" = yes; then
18472   # Check if gcc -print-prog-name=ld gives a path.
18473   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18475   case $host in
18476   *-*-mingw*)
18477     # gcc leaves a trailing carriage return which upsets mingw
18478     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18479   *)
18480     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18481   esac
18482   case $ac_prog in
18483     # Accept absolute paths.
18484     [\\/]* | ?:[\\/]*)
18485       re_direlt='/[^/][^/]*/\.\./'
18486       # Canonicalize the pathname of ld
18487       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18488       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18489         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18490       done
18491       test -z "$LD" && LD="$ac_prog"
18492       ;;
18493   "")
18494     # If it fails, then pretend we aren't using GCC.
18495     ac_prog=ld
18496     ;;
18497   *)
18498     # If it is relative, then search for the first ld in PATH.
18499     with_gnu_ld=unknown
18500     ;;
18501   esac
18502 elif test "$with_gnu_ld" = yes; then
18503   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18505 else
18506   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18508 fi
18509 if test "${lt_cv_path_LD+set}" = set; then
18510   echo $ECHO_N "(cached) $ECHO_C" >&6
18511 else
18512   if test -z "$LD"; then
18513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18514   for ac_dir in $PATH; do
18515     IFS="$lt_save_ifs"
18516     test -z "$ac_dir" && ac_dir=.
18517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18518       lt_cv_path_LD="$ac_dir/$ac_prog"
18519       # Check to see if the program is GNU ld.  I'd rather use --version,
18520       # but apparently some variants of GNU ld only accept -v.
18521       # Break only if it was the GNU/non-GNU ld that we prefer.
18522       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18523       *GNU* | *'with BFD'*)
18524         test "$with_gnu_ld" != no && break
18525         ;;
18526       *)
18527         test "$with_gnu_ld" != yes && break
18528         ;;
18529       esac
18530     fi
18531   done
18532   IFS="$lt_save_ifs"
18533 else
18534   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18535 fi
18536 fi
18537
18538 LD="$lt_cv_path_LD"
18539 if test -n "$LD"; then
18540   { echo "$as_me:$LINENO: result: $LD" >&5
18541 echo "${ECHO_T}$LD" >&6; }
18542 else
18543   { echo "$as_me:$LINENO: result: no" >&5
18544 echo "${ECHO_T}no" >&6; }
18545 fi
18546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18548    { (exit 1); exit 1; }; }
18549 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18555 case `$LD -v 2>&1 </dev/null` in
18556 *GNU* | *'with BFD'*)
18557   lt_cv_prog_gnu_ld=yes
18558   ;;
18559 *)
18560   lt_cv_prog_gnu_ld=no
18561   ;;
18562 esac
18563 fi
18564 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18566 with_gnu_ld=$lt_cv_prog_gnu_ld
18567
18568
18569
18570   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18571   # archiving commands below assume that GNU ld is being used.
18572   if test "$with_gnu_ld" = yes; then
18573     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18574     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18575
18576     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18577     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18578
18579     # If archive_cmds runs LD, not CC, wlarc should be empty
18580     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18581     #     investigate it a little bit more. (MM)
18582     wlarc='${wl}'
18583
18584     # ancient GNU ld didn't support --whole-archive et. al.
18585     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18586         grep 'no-whole-archive' > /dev/null; then
18587       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18588     else
18589       whole_archive_flag_spec_CXX=
18590     fi
18591   else
18592     with_gnu_ld=no
18593     wlarc=
18594
18595     # A generic and very simple default shared library creation
18596     # command for GNU C++ for the case where it uses the native
18597     # linker, instead of GNU ld.  If possible, this setting should
18598     # overridden to take advantage of the native linker features on
18599     # the platform it is being used on.
18600     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18601   fi
18602
18603   # Commands to make compiler produce verbose output that lists
18604   # what "hidden" libraries, object files and flags are used when
18605   # linking a shared library.
18606   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18607
18608 else
18609   GXX=no
18610   with_gnu_ld=no
18611   wlarc=
18612 fi
18613
18614 # PORTME: fill in a description of your system's C++ link characteristics
18615 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18616 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18617 ld_shlibs_CXX=yes
18618 case $host_os in
18619   aix3*)
18620     # FIXME: insert proper C++ library support
18621     ld_shlibs_CXX=no
18622     ;;
18623   aix4* | aix5*)
18624     if test "$host_cpu" = ia64; then
18625       # On IA64, the linker does run time linking by default, so we don't
18626       # have to do anything special.
18627       aix_use_runtimelinking=no
18628       exp_sym_flag='-Bexport'
18629       no_entry_flag=""
18630     else
18631       aix_use_runtimelinking=no
18632
18633       # Test if we are trying to use run time linking or normal
18634       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18635       # need to do runtime linking.
18636       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18637         for ld_flag in $LDFLAGS; do
18638           case $ld_flag in
18639           *-brtl*)
18640             aix_use_runtimelinking=yes
18641             break
18642             ;;
18643           esac
18644         done
18645         ;;
18646       esac
18647
18648       exp_sym_flag='-bexport'
18649       no_entry_flag='-bnoentry'
18650     fi
18651
18652     # When large executables or shared objects are built, AIX ld can
18653     # have problems creating the table of contents.  If linking a library
18654     # or program results in "error TOC overflow" add -mminimal-toc to
18655     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18656     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18657
18658     archive_cmds_CXX=''
18659     hardcode_direct_CXX=yes
18660     hardcode_libdir_separator_CXX=':'
18661     link_all_deplibs_CXX=yes
18662
18663     if test "$GXX" = yes; then
18664       case $host_os in aix4.[012]|aix4.[012].*)
18665       # We only want to do this on AIX 4.2 and lower, the check
18666       # below for broken collect2 doesn't work under 4.3+
18667         collect2name=`${CC} -print-prog-name=collect2`
18668         if test -f "$collect2name" && \
18669            strings "$collect2name" | grep resolve_lib_name >/dev/null
18670         then
18671           # We have reworked collect2
18672           :
18673         else
18674           # We have old collect2
18675           hardcode_direct_CXX=unsupported
18676           # It fails to find uninstalled libraries when the uninstalled
18677           # path is not listed in the libpath.  Setting hardcode_minus_L
18678           # to unsupported forces relinking
18679           hardcode_minus_L_CXX=yes
18680           hardcode_libdir_flag_spec_CXX='-L$libdir'
18681           hardcode_libdir_separator_CXX=
18682         fi
18683         ;;
18684       esac
18685       shared_flag='-shared'
18686       if test "$aix_use_runtimelinking" = yes; then
18687         shared_flag="$shared_flag "'${wl}-G'
18688       fi
18689     else
18690       # not using gcc
18691       if test "$host_cpu" = ia64; then
18692         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18693         # chokes on -Wl,-G. The following line is correct:
18694         shared_flag='-G'
18695       else
18696         if test "$aix_use_runtimelinking" = yes; then
18697           shared_flag='${wl}-G'
18698         else
18699           shared_flag='${wl}-bM:SRE'
18700         fi
18701       fi
18702     fi
18703
18704     # It seems that -bexpall does not export symbols beginning with
18705     # underscore (_), so it is better to generate a list of symbols to export.
18706     always_export_symbols_CXX=yes
18707     if test "$aix_use_runtimelinking" = yes; then
18708       # Warning - without using the other runtime loading flags (-brtl),
18709       # -berok will link without error, but may produce a broken library.
18710       allow_undefined_flag_CXX='-berok'
18711       # Determine the default libpath from the value encoded in an empty executable.
18712       cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h.  */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h.  */
18718
18719 int
18720 main ()
18721 {
18722
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 rm -f conftest.$ac_objext conftest$ac_exeext
18728 if { (ac_try="$ac_link"
18729 case "(($ac_try" in
18730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731   *) ac_try_echo=$ac_try;;
18732 esac
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734   (eval "$ac_link") 2>conftest.er1
18735   ac_status=$?
18736   grep -v '^ *+' conftest.er1 >conftest.err
18737   rm -f conftest.er1
18738   cat conftest.err >&5
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); } && {
18741          test -z "$ac_cxx_werror_flag" ||
18742          test ! -s conftest.err
18743        } && test -s conftest$ac_exeext &&
18744        $as_test_x conftest$ac_exeext; then
18745
18746 lt_aix_libpath_sed='
18747     /Import File Strings/,/^$/ {
18748         /^0/ {
18749             s/^0  *\(.*\)$/\1/
18750             p
18751         }
18752     }'
18753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18754 # Check for a 64-bit object if we didn't find anything.
18755 if test -z "$aix_libpath"; then
18756   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18757 fi
18758 else
18759   echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18761
18762
18763 fi
18764
18765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766       conftest$ac_exeext conftest.$ac_ext
18767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18768
18769       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18770
18771       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18772      else
18773       if test "$host_cpu" = ia64; then
18774         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18775         allow_undefined_flag_CXX="-z nodefs"
18776         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18777       else
18778         # Determine the default libpath from the value encoded in an empty executable.
18779         cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h.  */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h.  */
18785
18786 int
18787 main ()
18788 {
18789
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798   *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801   (eval "$ac_link") 2>conftest.er1
18802   ac_status=$?
18803   grep -v '^ *+' conftest.er1 >conftest.err
18804   rm -f conftest.er1
18805   cat conftest.err >&5
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); } && {
18808          test -z "$ac_cxx_werror_flag" ||
18809          test ! -s conftest.err
18810        } && test -s conftest$ac_exeext &&
18811        $as_test_x conftest$ac_exeext; then
18812
18813 lt_aix_libpath_sed='
18814     /Import File Strings/,/^$/ {
18815         /^0/ {
18816             s/^0  *\(.*\)$/\1/
18817             p
18818         }
18819     }'
18820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18821 # Check for a 64-bit object if we didn't find anything.
18822 if test -z "$aix_libpath"; then
18823   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18824 fi
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829
18830 fi
18831
18832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18833       conftest$ac_exeext conftest.$ac_ext
18834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18835
18836         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18837         # Warning - without using the other run time loading flags,
18838         # -berok will link without error, but may produce a broken library.
18839         no_undefined_flag_CXX=' ${wl}-bernotok'
18840         allow_undefined_flag_CXX=' ${wl}-berok'
18841         # Exported symbols can be pulled into shared objects from archives
18842         whole_archive_flag_spec_CXX='$convenience'
18843         archive_cmds_need_lc_CXX=yes
18844         # This is similar to how AIX traditionally builds its shared libraries.
18845         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18846       fi
18847     fi
18848     ;;
18849
18850   beos*)
18851     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18852       allow_undefined_flag_CXX=unsupported
18853       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18854       # support --undefined.  This deserves some investigation.  FIXME
18855       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856     else
18857       ld_shlibs_CXX=no
18858     fi
18859     ;;
18860
18861   chorus*)
18862     case $cc_basename in
18863       *)
18864         # FIXME: insert proper C++ library support
18865         ld_shlibs_CXX=no
18866         ;;
18867     esac
18868     ;;
18869
18870   cygwin* | mingw* | pw32*)
18871     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18872     # as there is no search path for DLLs.
18873     hardcode_libdir_flag_spec_CXX='-L$libdir'
18874     allow_undefined_flag_CXX=unsupported
18875     always_export_symbols_CXX=no
18876     enable_shared_with_static_runtimes_CXX=yes
18877
18878     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18879       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18880       # If the export-symbols file already is a .def file (1st line
18881       # is EXPORTS), use it as is; otherwise, prepend...
18882       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18883         cp $export_symbols $output_objdir/$soname.def;
18884       else
18885         echo EXPORTS > $output_objdir/$soname.def;
18886         cat $export_symbols >> $output_objdir/$soname.def;
18887       fi~
18888       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18889     else
18890       ld_shlibs_CXX=no
18891     fi
18892   ;;
18893       darwin* | rhapsody*)
18894         case $host_os in
18895         rhapsody* | darwin1.[012])
18896          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18897          ;;
18898        *) # Darwin 1.3 on
18899          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18900            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18901          else
18902            case ${MACOSX_DEPLOYMENT_TARGET} in
18903              10.[012])
18904                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18905                ;;
18906              10.*)
18907                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18908                ;;
18909            esac
18910          fi
18911          ;;
18912         esac
18913       archive_cmds_need_lc_CXX=no
18914       hardcode_direct_CXX=no
18915       hardcode_automatic_CXX=yes
18916       hardcode_shlibpath_var_CXX=unsupported
18917       whole_archive_flag_spec_CXX=''
18918       link_all_deplibs_CXX=yes
18919
18920     if test "$GXX" = yes ; then
18921       lt_int_apple_cc_single_mod=no
18922       output_verbose_link_cmd='echo'
18923       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18924        lt_int_apple_cc_single_mod=yes
18925       fi
18926       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18927        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18928       else
18929           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18930         fi
18931         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18932         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18933           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18934             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18935           else
18936             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18937           fi
18938             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18939       else
18940       case $cc_basename in
18941         xlc*)
18942          output_verbose_link_cmd='echo'
18943           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18944           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18945           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18946           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18947           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18948           ;;
18949        *)
18950          ld_shlibs_CXX=no
18951           ;;
18952       esac
18953       fi
18954         ;;
18955
18956   dgux*)
18957     case $cc_basename in
18958       ec++*)
18959         # FIXME: insert proper C++ library support
18960         ld_shlibs_CXX=no
18961         ;;
18962       ghcx*)
18963         # Green Hills C++ Compiler
18964         # FIXME: insert proper C++ library support
18965         ld_shlibs_CXX=no
18966         ;;
18967       *)
18968         # FIXME: insert proper C++ library support
18969         ld_shlibs_CXX=no
18970         ;;
18971     esac
18972     ;;
18973   freebsd[12]*)
18974     # C++ shared libraries reported to be fairly broken before switch to ELF
18975     ld_shlibs_CXX=no
18976     ;;
18977   freebsd-elf*)
18978     archive_cmds_need_lc_CXX=no
18979     ;;
18980   freebsd* | dragonfly*)
18981     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18982     # conventions
18983     ld_shlibs_CXX=yes
18984     ;;
18985   gnu*)
18986     ;;
18987   hpux9*)
18988     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18989     hardcode_libdir_separator_CXX=:
18990     export_dynamic_flag_spec_CXX='${wl}-E'
18991     hardcode_direct_CXX=yes
18992     hardcode_minus_L_CXX=yes # Not in the search PATH,
18993                                 # but as the default
18994                                 # location of the library.
18995
18996     case $cc_basename in
18997     CC*)
18998       # FIXME: insert proper C++ library support
18999       ld_shlibs_CXX=no
19000       ;;
19001     aCC*)
19002       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19003       # Commands to make compiler produce verbose output that lists
19004       # what "hidden" libraries, object files and flags are used when
19005       # linking a shared library.
19006       #
19007       # There doesn't appear to be a way to prevent this compiler from
19008       # explicitly linking system object files so we need to strip them
19009       # from the output so that they don't get included in the library
19010       # dependencies.
19011       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19012       ;;
19013     *)
19014       if test "$GXX" = yes; then
19015         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19016       else
19017         # FIXME: insert proper C++ library support
19018         ld_shlibs_CXX=no
19019       fi
19020       ;;
19021     esac
19022     ;;
19023   hpux10*|hpux11*)
19024     if test $with_gnu_ld = no; then
19025       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19026       hardcode_libdir_separator_CXX=:
19027
19028       case $host_cpu in
19029       hppa*64*|ia64*) ;;
19030       *)
19031         export_dynamic_flag_spec_CXX='${wl}-E'
19032         ;;
19033       esac
19034     fi
19035     case $host_cpu in
19036     hppa*64*|ia64*)
19037       hardcode_direct_CXX=no
19038       hardcode_shlibpath_var_CXX=no
19039       ;;
19040     *)
19041       hardcode_direct_CXX=yes
19042       hardcode_minus_L_CXX=yes # Not in the search PATH,
19043                                               # but as the default
19044                                               # location of the library.
19045       ;;
19046     esac
19047
19048     case $cc_basename in
19049       CC*)
19050         # FIXME: insert proper C++ library support
19051         ld_shlibs_CXX=no
19052         ;;
19053       aCC*)
19054         case $host_cpu in
19055         hppa*64*)
19056           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19057           ;;
19058         ia64*)
19059           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19060           ;;
19061         *)
19062           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19063           ;;
19064         esac
19065         # Commands to make compiler produce verbose output that lists
19066         # what "hidden" libraries, object files and flags are used when
19067         # linking a shared library.
19068         #
19069         # There doesn't appear to be a way to prevent this compiler from
19070         # explicitly linking system object files so we need to strip them
19071         # from the output so that they don't get included in the library
19072         # dependencies.
19073         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19074         ;;
19075       *)
19076         if test "$GXX" = yes; then
19077           if test $with_gnu_ld = no; then
19078             case $host_cpu in
19079             hppa*64*)
19080               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19081               ;;
19082             ia64*)
19083               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19084               ;;
19085             *)
19086               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19087               ;;
19088             esac
19089           fi
19090         else
19091           # FIXME: insert proper C++ library support
19092           ld_shlibs_CXX=no
19093         fi
19094         ;;
19095     esac
19096     ;;
19097   interix[3-9]*)
19098     hardcode_direct_CXX=no
19099     hardcode_shlibpath_var_CXX=no
19100     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19101     export_dynamic_flag_spec_CXX='${wl}-E'
19102     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19103     # Instead, shared libraries are loaded at an image base (0x10000000 by
19104     # default) and relocated if they conflict, which is a slow very memory
19105     # consuming and fragmenting process.  To avoid this, we pick a random,
19106     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19107     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19108     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19109     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19110     ;;
19111   irix5* | irix6*)
19112     case $cc_basename in
19113       CC*)
19114         # SGI C++
19115         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19116
19117         # Archives containing C++ object files must be created using
19118         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19119         # necessary to make sure instantiated templates are included
19120         # in the archive.
19121         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19122         ;;
19123       *)
19124         if test "$GXX" = yes; then
19125           if test "$with_gnu_ld" = no; then
19126             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19127           else
19128             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19129           fi
19130         fi
19131         link_all_deplibs_CXX=yes
19132         ;;
19133     esac
19134     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19135     hardcode_libdir_separator_CXX=:
19136     ;;
19137   linux* | k*bsd*-gnu)
19138     case $cc_basename in
19139       KCC*)
19140         # Kuck and Associates, Inc. (KAI) C++ Compiler
19141
19142         # KCC will only create a shared library if the output file
19143         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19144         # to its proper name (with version) after linking.
19145         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19146         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19147         # Commands to make compiler produce verbose output that lists
19148         # what "hidden" libraries, object files and flags are used when
19149         # linking a shared library.
19150         #
19151         # There doesn't appear to be a way to prevent this compiler from
19152         # explicitly linking system object files so we need to strip them
19153         # from the output so that they don't get included in the library
19154         # dependencies.
19155         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19156
19157         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19158         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19159
19160         # Archives containing C++ object files must be created using
19161         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19162         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19163         ;;
19164       icpc*)
19165         # Intel C++
19166         with_gnu_ld=yes
19167         # version 8.0 and above of icpc choke on multiply defined symbols
19168         # if we add $predep_objects and $postdep_objects, however 7.1 and
19169         # earlier do not add the objects themselves.
19170         case `$CC -V 2>&1` in
19171         *"Version 7."*)
19172           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19173           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19174           ;;
19175         *)  # Version 8.0 or newer
19176           tmp_idyn=
19177           case $host_cpu in
19178             ia64*) tmp_idyn=' -i_dynamic';;
19179           esac
19180           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19182           ;;
19183         esac
19184         archive_cmds_need_lc_CXX=no
19185         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19186         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19187         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19188         ;;
19189       pgCC*)
19190         # Portland Group C++ compiler
19191         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19192         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19193
19194         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19195         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19196         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19197         ;;
19198       cxx*)
19199         # Compaq C++
19200         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19201         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19202
19203         runpath_var=LD_RUN_PATH
19204         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19205         hardcode_libdir_separator_CXX=:
19206
19207         # Commands to make compiler produce verbose output that lists
19208         # what "hidden" libraries, object files and flags are used when
19209         # linking a shared library.
19210         #
19211         # There doesn't appear to be a way to prevent this compiler from
19212         # explicitly linking system object files so we need to strip them
19213         # from the output so that they don't get included in the library
19214         # dependencies.
19215         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19216         ;;
19217       *)
19218         case `$CC -V 2>&1 | sed 5q` in
19219         *Sun\ C*)
19220           # Sun C++ 5.9
19221           no_undefined_flag_CXX=' -zdefs'
19222           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19223           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19224           hardcode_libdir_flag_spec_CXX='-R$libdir'
19225           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19226
19227           # Not sure whether something based on
19228           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19229           # would be better.
19230           output_verbose_link_cmd='echo'
19231
19232           # Archives containing C++ object files must be created using
19233           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19234           # necessary to make sure instantiated templates are included
19235           # in the archive.
19236           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19237           ;;
19238         esac
19239         ;;
19240     esac
19241     ;;
19242   lynxos*)
19243     # FIXME: insert proper C++ library support
19244     ld_shlibs_CXX=no
19245     ;;
19246   m88k*)
19247     # FIXME: insert proper C++ library support
19248     ld_shlibs_CXX=no
19249     ;;
19250   mvs*)
19251     case $cc_basename in
19252       cxx*)
19253         # FIXME: insert proper C++ library support
19254         ld_shlibs_CXX=no
19255         ;;
19256       *)
19257         # FIXME: insert proper C++ library support
19258         ld_shlibs_CXX=no
19259         ;;
19260     esac
19261     ;;
19262   netbsd*)
19263     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19264       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19265       wlarc=
19266       hardcode_libdir_flag_spec_CXX='-R$libdir'
19267       hardcode_direct_CXX=yes
19268       hardcode_shlibpath_var_CXX=no
19269     fi
19270     # Workaround some broken pre-1.5 toolchains
19271     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19272     ;;
19273   openbsd2*)
19274     # C++ shared libraries are fairly broken
19275     ld_shlibs_CXX=no
19276     ;;
19277   openbsd*)
19278     if test -f /usr/libexec/ld.so; then
19279       hardcode_direct_CXX=yes
19280       hardcode_shlibpath_var_CXX=no
19281       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19282       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19283       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19284         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19285         export_dynamic_flag_spec_CXX='${wl}-E'
19286         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19287       fi
19288       output_verbose_link_cmd='echo'
19289     else
19290       ld_shlibs_CXX=no
19291     fi
19292     ;;
19293   osf3*)
19294     case $cc_basename in
19295       KCC*)
19296         # Kuck and Associates, Inc. (KAI) C++ Compiler
19297
19298         # KCC will only create a shared library if the output file
19299         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19300         # to its proper name (with version) after linking.
19301         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19302
19303         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19304         hardcode_libdir_separator_CXX=:
19305
19306         # Archives containing C++ object files must be created using
19307         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19308         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19309
19310         ;;
19311       RCC*)
19312         # Rational C++ 2.4.1
19313         # FIXME: insert proper C++ library support
19314         ld_shlibs_CXX=no
19315         ;;
19316       cxx*)
19317         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19318         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19319
19320         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19321         hardcode_libdir_separator_CXX=:
19322
19323         # Commands to make compiler produce verbose output that lists
19324         # what "hidden" libraries, object files and flags are used when
19325         # linking a shared library.
19326         #
19327         # There doesn't appear to be a way to prevent this compiler from
19328         # explicitly linking system object files so we need to strip them
19329         # from the output so that they don't get included in the library
19330         # dependencies.
19331         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19332         ;;
19333       *)
19334         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19335           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19336           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19337
19338           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19339           hardcode_libdir_separator_CXX=:
19340
19341           # Commands to make compiler produce verbose output that lists
19342           # what "hidden" libraries, object files and flags are used when
19343           # linking a shared library.
19344           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19345
19346         else
19347           # FIXME: insert proper C++ library support
19348           ld_shlibs_CXX=no
19349         fi
19350         ;;
19351     esac
19352     ;;
19353   osf4* | osf5*)
19354     case $cc_basename in
19355       KCC*)
19356         # Kuck and Associates, Inc. (KAI) C++ Compiler
19357
19358         # KCC will only create a shared library if the output file
19359         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19360         # to its proper name (with version) after linking.
19361         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19362
19363         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19364         hardcode_libdir_separator_CXX=:
19365
19366         # Archives containing C++ object files must be created using
19367         # the KAI C++ compiler.
19368         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19369         ;;
19370       RCC*)
19371         # Rational C++ 2.4.1
19372         # FIXME: insert proper C++ library support
19373         ld_shlibs_CXX=no
19374         ;;
19375       cxx*)
19376         allow_undefined_flag_CXX=' -expect_unresolved \*'
19377         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19378         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19379           echo "-hidden">> $lib.exp~
19380           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19381           $rm $lib.exp'
19382
19383         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19384         hardcode_libdir_separator_CXX=:
19385
19386         # Commands to make compiler produce verbose output that lists
19387         # what "hidden" libraries, object files and flags are used when
19388         # linking a shared library.
19389         #
19390         # There doesn't appear to be a way to prevent this compiler from
19391         # explicitly linking system object files so we need to strip them
19392         # from the output so that they don't get included in the library
19393         # dependencies.
19394         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19395         ;;
19396       *)
19397         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19398           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19399          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19400
19401           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19402           hardcode_libdir_separator_CXX=:
19403
19404           # Commands to make compiler produce verbose output that lists
19405           # what "hidden" libraries, object files and flags are used when
19406           # linking a shared library.
19407           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19408
19409         else
19410           # FIXME: insert proper C++ library support
19411           ld_shlibs_CXX=no
19412         fi
19413         ;;
19414     esac
19415     ;;
19416   psos*)
19417     # FIXME: insert proper C++ library support
19418     ld_shlibs_CXX=no
19419     ;;
19420   sunos4*)
19421     case $cc_basename in
19422       CC*)
19423         # Sun C++ 4.x
19424         # FIXME: insert proper C++ library support
19425         ld_shlibs_CXX=no
19426         ;;
19427       lcc*)
19428         # Lucid
19429         # FIXME: insert proper C++ library support
19430         ld_shlibs_CXX=no
19431         ;;
19432       *)
19433         # FIXME: insert proper C++ library support
19434         ld_shlibs_CXX=no
19435         ;;
19436     esac
19437     ;;
19438   solaris*)
19439     case $cc_basename in
19440       CC*)
19441         # Sun C++ 4.2, 5.x and Centerline C++
19442         archive_cmds_need_lc_CXX=yes
19443         no_undefined_flag_CXX=' -zdefs'
19444         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19445         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19446         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19447
19448         hardcode_libdir_flag_spec_CXX='-R$libdir'
19449         hardcode_shlibpath_var_CXX=no
19450         case $host_os in
19451           solaris2.[0-5] | solaris2.[0-5].*) ;;
19452           *)
19453             # The compiler driver will combine and reorder linker options,
19454             # but understands `-z linker_flag'.
19455             # Supported since Solaris 2.6 (maybe 2.5.1?)
19456             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19457             ;;
19458         esac
19459         link_all_deplibs_CXX=yes
19460
19461         output_verbose_link_cmd='echo'
19462
19463         # Archives containing C++ object files must be created using
19464         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19465         # necessary to make sure instantiated templates are included
19466         # in the archive.
19467         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19468         ;;
19469       gcx*)
19470         # Green Hills C++ Compiler
19471         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19472
19473         # The C++ compiler must be used to create the archive.
19474         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19475         ;;
19476       *)
19477         # GNU C++ compiler with Solaris linker
19478         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19479           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19480           if $CC --version | grep -v '^2\.7' > /dev/null; then
19481             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19482             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19483                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19484
19485             # Commands to make compiler produce verbose output that lists
19486             # what "hidden" libraries, object files and flags are used when
19487             # linking a shared library.
19488             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19489           else
19490             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19491             # platform.
19492             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19493             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19494                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19495
19496             # Commands to make compiler produce verbose output that lists
19497             # what "hidden" libraries, object files and flags are used when
19498             # linking a shared library.
19499             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19500           fi
19501
19502           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19503           case $host_os in
19504           solaris2.[0-5] | solaris2.[0-5].*) ;;
19505           *)
19506             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19507             ;;
19508           esac
19509         fi
19510         ;;
19511     esac
19512     ;;
19513   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19514     no_undefined_flag_CXX='${wl}-z,text'
19515     archive_cmds_need_lc_CXX=no
19516     hardcode_shlibpath_var_CXX=no
19517     runpath_var='LD_RUN_PATH'
19518
19519     case $cc_basename in
19520       CC*)
19521         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19522         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19523         ;;
19524       *)
19525         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19526         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527         ;;
19528     esac
19529     ;;
19530   sysv5* | sco3.2v5* | sco5v6*)
19531     # Note: We can NOT use -z defs as we might desire, because we do not
19532     # link with -lc, and that would cause any symbols used from libc to
19533     # always be unresolved, which means just about no library would
19534     # ever link correctly.  If we're not using GNU ld we use -z text
19535     # though, which does catch some bad symbols but isn't as heavy-handed
19536     # as -z defs.
19537     # For security reasons, it is highly recommended that you always
19538     # use absolute paths for naming shared libraries, and exclude the
19539     # DT_RUNPATH tag from executables and libraries.  But doing so
19540     # requires that you compile everything twice, which is a pain.
19541     # So that behaviour is only enabled if SCOABSPATH is set to a
19542     # non-empty value in the environment.  Most likely only useful for
19543     # creating official distributions of packages.
19544     # This is a hack until libtool officially supports absolute path
19545     # names for shared libraries.
19546     no_undefined_flag_CXX='${wl}-z,text'
19547     allow_undefined_flag_CXX='${wl}-z,nodefs'
19548     archive_cmds_need_lc_CXX=no
19549     hardcode_shlibpath_var_CXX=no
19550     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19551     hardcode_libdir_separator_CXX=':'
19552     link_all_deplibs_CXX=yes
19553     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19554     runpath_var='LD_RUN_PATH'
19555
19556     case $cc_basename in
19557       CC*)
19558         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19559         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19560         ;;
19561       *)
19562         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19563         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19564         ;;
19565     esac
19566     ;;
19567   tandem*)
19568     case $cc_basename in
19569       NCC*)
19570         # NonStop-UX NCC 3.20
19571         # FIXME: insert proper C++ library support
19572         ld_shlibs_CXX=no
19573         ;;
19574       *)
19575         # FIXME: insert proper C++ library support
19576         ld_shlibs_CXX=no
19577         ;;
19578     esac
19579     ;;
19580   vxworks*)
19581     # FIXME: insert proper C++ library support
19582     ld_shlibs_CXX=no
19583     ;;
19584   *)
19585     # FIXME: insert proper C++ library support
19586     ld_shlibs_CXX=no
19587     ;;
19588 esac
19589 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19590 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19591 test "$ld_shlibs_CXX" = no && can_build_shared=no
19592
19593 GCC_CXX="$GXX"
19594 LD_CXX="$LD"
19595
19596
19597 cat > conftest.$ac_ext <<EOF
19598 class Foo
19599 {
19600 public:
19601   Foo (void) { a = 0; }
19602 private:
19603   int a;
19604 };
19605 EOF
19606
19607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608   (eval $ac_compile) 2>&5
19609   ac_status=$?
19610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611   (exit $ac_status); }; then
19612   # Parse the compiler output and extract the necessary
19613   # objects, libraries and library flags.
19614
19615   # Sentinel used to keep track of whether or not we are before
19616   # the conftest object file.
19617   pre_test_object_deps_done=no
19618
19619   # The `*' in the case matches for architectures that use `case' in
19620   # $output_verbose_cmd can trigger glob expansion during the loop
19621   # eval without this substitution.
19622   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19623
19624   for p in `eval $output_verbose_link_cmd`; do
19625     case $p in
19626
19627     -L* | -R* | -l*)
19628        # Some compilers place space between "-{L,R}" and the path.
19629        # Remove the space.
19630        if test $p = "-L" \
19631           || test $p = "-R"; then
19632          prev=$p
19633          continue
19634        else
19635          prev=
19636        fi
19637
19638        if test "$pre_test_object_deps_done" = no; then
19639          case $p in
19640          -L* | -R*)
19641            # Internal compiler library paths should come after those
19642            # provided the user.  The postdeps already come after the
19643            # user supplied libs so there is no need to process them.
19644            if test -z "$compiler_lib_search_path_CXX"; then
19645              compiler_lib_search_path_CXX="${prev}${p}"
19646            else
19647              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19648            fi
19649            ;;
19650          # The "-l" case would never come before the object being
19651          # linked, so don't bother handling this case.
19652          esac
19653        else
19654          if test -z "$postdeps_CXX"; then
19655            postdeps_CXX="${prev}${p}"
19656          else
19657            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19658          fi
19659        fi
19660        ;;
19661
19662     *.$objext)
19663        # This assumes that the test object file only shows up
19664        # once in the compiler output.
19665        if test "$p" = "conftest.$objext"; then
19666          pre_test_object_deps_done=yes
19667          continue
19668        fi
19669
19670        if test "$pre_test_object_deps_done" = no; then
19671          if test -z "$predep_objects_CXX"; then
19672            predep_objects_CXX="$p"
19673          else
19674            predep_objects_CXX="$predep_objects_CXX $p"
19675          fi
19676        else
19677          if test -z "$postdep_objects_CXX"; then
19678            postdep_objects_CXX="$p"
19679          else
19680            postdep_objects_CXX="$postdep_objects_CXX $p"
19681          fi
19682        fi
19683        ;;
19684
19685     *) ;; # Ignore the rest.
19686
19687     esac
19688   done
19689
19690   # Clean up.
19691   rm -f a.out a.exe
19692 else
19693   echo "libtool.m4: error: problem compiling CXX test program"
19694 fi
19695
19696 $rm -f confest.$objext
19697
19698 # PORTME: override above test on systems where it is broken
19699 case $host_os in
19700 interix[3-9]*)
19701   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19702   # hack all around it, let's just trust "g++" to DTRT.
19703   predep_objects_CXX=
19704   postdep_objects_CXX=
19705   postdeps_CXX=
19706   ;;
19707
19708 linux*)
19709   case `$CC -V 2>&1 | sed 5q` in
19710   *Sun\ C*)
19711     # Sun C++ 5.9
19712     #
19713     # The more standards-conforming stlport4 library is
19714     # incompatible with the Cstd library. Avoid specifying
19715     # it if it's in CXXFLAGS. Ignore libCrun as
19716     # -library=stlport4 depends on it.
19717     case " $CXX $CXXFLAGS " in
19718     *" -library=stlport4 "*)
19719       solaris_use_stlport4=yes
19720       ;;
19721     esac
19722     if test "$solaris_use_stlport4" != yes; then
19723       postdeps_CXX='-library=Cstd -library=Crun'
19724     fi
19725     ;;
19726   esac
19727   ;;
19728
19729 solaris*)
19730   case $cc_basename in
19731   CC*)
19732     # The more standards-conforming stlport4 library is
19733     # incompatible with the Cstd library. Avoid specifying
19734     # it if it's in CXXFLAGS. Ignore libCrun as
19735     # -library=stlport4 depends on it.
19736     case " $CXX $CXXFLAGS " in
19737     *" -library=stlport4 "*)
19738       solaris_use_stlport4=yes
19739       ;;
19740     esac
19741
19742     # Adding this requires a known-good setup of shared libraries for
19743     # Sun compiler versions before 5.6, else PIC objects from an old
19744     # archive will be linked into the output, leading to subtle bugs.
19745     if test "$solaris_use_stlport4" != yes; then
19746       postdeps_CXX='-library=Cstd -library=Crun'
19747     fi
19748     ;;
19749   esac
19750   ;;
19751 esac
19752
19753
19754 case " $postdeps_CXX " in
19755 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19756 esac
19757
19758 lt_prog_compiler_wl_CXX=
19759 lt_prog_compiler_pic_CXX=
19760 lt_prog_compiler_static_CXX=
19761
19762 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19763 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19764
19765   # C++ specific cases for pic, static, wl, etc.
19766   if test "$GXX" = yes; then
19767     lt_prog_compiler_wl_CXX='-Wl,'
19768     lt_prog_compiler_static_CXX='-static'
19769
19770     case $host_os in
19771     aix*)
19772       # All AIX code is PIC.
19773       if test "$host_cpu" = ia64; then
19774         # AIX 5 now supports IA64 processor
19775         lt_prog_compiler_static_CXX='-Bstatic'
19776       fi
19777       ;;
19778     amigaos*)
19779       # FIXME: we need at least 68020 code to build shared libraries, but
19780       # adding the `-m68020' flag to GCC prevents building anything better,
19781       # like `-m68040'.
19782       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19783       ;;
19784     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19785       # PIC is the default for these OSes.
19786       ;;
19787     mingw* | cygwin* | os2* | pw32*)
19788       # This hack is so that the source file can tell whether it is being
19789       # built for inclusion in a dll (and should export symbols for example).
19790       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19791       # (--disable-auto-import) libraries
19792       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19793       ;;
19794     darwin* | rhapsody*)
19795       # PIC is the default on this platform
19796       # Common symbols not allowed in MH_DYLIB files
19797       lt_prog_compiler_pic_CXX='-fno-common'
19798       ;;
19799     *djgpp*)
19800       # DJGPP does not support shared libraries at all
19801       lt_prog_compiler_pic_CXX=
19802       ;;
19803     interix[3-9]*)
19804       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19805       # Instead, we relocate shared libraries at runtime.
19806       ;;
19807     sysv4*MP*)
19808       if test -d /usr/nec; then
19809         lt_prog_compiler_pic_CXX=-Kconform_pic
19810       fi
19811       ;;
19812     hpux*)
19813       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19814       # not for PA HP-UX.
19815       case $host_cpu in
19816       hppa*64*|ia64*)
19817         ;;
19818       *)
19819         lt_prog_compiler_pic_CXX='-fPIC'
19820         ;;
19821       esac
19822       ;;
19823     *)
19824       lt_prog_compiler_pic_CXX='-fPIC'
19825       ;;
19826     esac
19827   else
19828     case $host_os in
19829       aix4* | aix5*)
19830         # All AIX code is PIC.
19831         if test "$host_cpu" = ia64; then
19832           # AIX 5 now supports IA64 processor
19833           lt_prog_compiler_static_CXX='-Bstatic'
19834         else
19835           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19836         fi
19837         ;;
19838       chorus*)
19839         case $cc_basename in
19840         cxch68*)
19841           # Green Hills C++ Compiler
19842           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19843           ;;
19844         esac
19845         ;;
19846        darwin*)
19847          # PIC is the default on this platform
19848          # Common symbols not allowed in MH_DYLIB files
19849          case $cc_basename in
19850            xlc*)
19851            lt_prog_compiler_pic_CXX='-qnocommon'
19852            lt_prog_compiler_wl_CXX='-Wl,'
19853            ;;
19854          esac
19855        ;;
19856       dgux*)
19857         case $cc_basename in
19858           ec++*)
19859             lt_prog_compiler_pic_CXX='-KPIC'
19860             ;;
19861           ghcx*)
19862             # Green Hills C++ Compiler
19863             lt_prog_compiler_pic_CXX='-pic'
19864             ;;
19865           *)
19866             ;;
19867         esac
19868         ;;
19869       freebsd* | dragonfly*)
19870         # FreeBSD uses GNU C++
19871         ;;
19872       hpux9* | hpux10* | hpux11*)
19873         case $cc_basename in
19874           CC*)
19875             lt_prog_compiler_wl_CXX='-Wl,'
19876             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19877             if test "$host_cpu" != ia64; then
19878               lt_prog_compiler_pic_CXX='+Z'
19879             fi
19880             ;;
19881           aCC*)
19882             lt_prog_compiler_wl_CXX='-Wl,'
19883             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19884             case $host_cpu in
19885             hppa*64*|ia64*)
19886               # +Z the default
19887               ;;
19888             *)
19889               lt_prog_compiler_pic_CXX='+Z'
19890               ;;
19891             esac
19892             ;;
19893           *)
19894             ;;
19895         esac
19896         ;;
19897       interix*)
19898         # This is c89, which is MS Visual C++ (no shared libs)
19899         # Anyone wants to do a port?
19900         ;;
19901       irix5* | irix6* | nonstopux*)
19902         case $cc_basename in
19903           CC*)
19904             lt_prog_compiler_wl_CXX='-Wl,'
19905             lt_prog_compiler_static_CXX='-non_shared'
19906             # CC pic flag -KPIC is the default.
19907             ;;
19908           *)
19909             ;;
19910         esac
19911         ;;
19912       linux* | k*bsd*-gnu)
19913         case $cc_basename in
19914           KCC*)
19915             # KAI C++ Compiler
19916             lt_prog_compiler_wl_CXX='--backend -Wl,'
19917             lt_prog_compiler_pic_CXX='-fPIC'
19918             ;;
19919           icpc* | ecpc*)
19920             # Intel C++
19921             lt_prog_compiler_wl_CXX='-Wl,'
19922             lt_prog_compiler_pic_CXX='-KPIC'
19923             lt_prog_compiler_static_CXX='-static'
19924             ;;
19925           pgCC*)
19926             # Portland Group C++ compiler.
19927             lt_prog_compiler_wl_CXX='-Wl,'
19928             lt_prog_compiler_pic_CXX='-fpic'
19929             lt_prog_compiler_static_CXX='-Bstatic'
19930             ;;
19931           cxx*)
19932             # Compaq C++
19933             # Make sure the PIC flag is empty.  It appears that all Alpha
19934             # Linux and Compaq Tru64 Unix objects are PIC.
19935             lt_prog_compiler_pic_CXX=
19936             lt_prog_compiler_static_CXX='-non_shared'
19937             ;;
19938           *)
19939             case `$CC -V 2>&1 | sed 5q` in
19940             *Sun\ C*)
19941               # Sun C++ 5.9
19942               lt_prog_compiler_pic_CXX='-KPIC'
19943               lt_prog_compiler_static_CXX='-Bstatic'
19944               lt_prog_compiler_wl_CXX='-Qoption ld '
19945               ;;
19946             esac
19947             ;;
19948         esac
19949         ;;
19950       lynxos*)
19951         ;;
19952       m88k*)
19953         ;;
19954       mvs*)
19955         case $cc_basename in
19956           cxx*)
19957             lt_prog_compiler_pic_CXX='-W c,exportall'
19958             ;;
19959           *)
19960             ;;
19961         esac
19962         ;;
19963       netbsd*)
19964         ;;
19965       osf3* | osf4* | osf5*)
19966         case $cc_basename in
19967           KCC*)
19968             lt_prog_compiler_wl_CXX='--backend -Wl,'
19969             ;;
19970           RCC*)
19971             # Rational C++ 2.4.1
19972             lt_prog_compiler_pic_CXX='-pic'
19973             ;;
19974           cxx*)
19975             # Digital/Compaq C++
19976             lt_prog_compiler_wl_CXX='-Wl,'
19977             # Make sure the PIC flag is empty.  It appears that all Alpha
19978             # Linux and Compaq Tru64 Unix objects are PIC.
19979             lt_prog_compiler_pic_CXX=
19980             lt_prog_compiler_static_CXX='-non_shared'
19981             ;;
19982           *)
19983             ;;
19984         esac
19985         ;;
19986       psos*)
19987         ;;
19988       solaris*)
19989         case $cc_basename in
19990           CC*)
19991             # Sun C++ 4.2, 5.x and Centerline C++
19992             lt_prog_compiler_pic_CXX='-KPIC'
19993             lt_prog_compiler_static_CXX='-Bstatic'
19994             lt_prog_compiler_wl_CXX='-Qoption ld '
19995             ;;
19996           gcx*)
19997             # Green Hills C++ Compiler
19998             lt_prog_compiler_pic_CXX='-PIC'
19999             ;;
20000           *)
20001             ;;
20002         esac
20003         ;;
20004       sunos4*)
20005         case $cc_basename in
20006           CC*)
20007             # Sun C++ 4.x
20008             lt_prog_compiler_pic_CXX='-pic'
20009             lt_prog_compiler_static_CXX='-Bstatic'
20010             ;;
20011           lcc*)
20012             # Lucid
20013             lt_prog_compiler_pic_CXX='-pic'
20014             ;;
20015           *)
20016             ;;
20017         esac
20018         ;;
20019       tandem*)
20020         case $cc_basename in
20021           NCC*)
20022             # NonStop-UX NCC 3.20
20023             lt_prog_compiler_pic_CXX='-KPIC'
20024             ;;
20025           *)
20026             ;;
20027         esac
20028         ;;
20029       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20030         case $cc_basename in
20031           CC*)
20032             lt_prog_compiler_wl_CXX='-Wl,'
20033             lt_prog_compiler_pic_CXX='-KPIC'
20034             lt_prog_compiler_static_CXX='-Bstatic'
20035             ;;
20036         esac
20037         ;;
20038       vxworks*)
20039         ;;
20040       *)
20041         lt_prog_compiler_can_build_shared_CXX=no
20042         ;;
20043     esac
20044   fi
20045
20046 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20047 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20048
20049 #
20050 # Check to make sure the PIC flag actually works.
20051 #
20052 if test -n "$lt_prog_compiler_pic_CXX"; then
20053
20054 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20055 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20056 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   lt_prog_compiler_pic_works_CXX=no
20060   ac_outfile=conftest.$ac_objext
20061    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20062    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20063    # Insert the option either (1) after the last *FLAGS variable, or
20064    # (2) before a word containing "conftest.", or (3) at the end.
20065    # Note that $ac_compile itself does not contain backslashes and begins
20066    # with a dollar sign (not a hyphen), so the echo should work correctly.
20067    # The option is referenced via a variable to avoid confusing sed.
20068    lt_compile=`echo "$ac_compile" | $SED \
20069    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20070    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20071    -e 's:$: $lt_compiler_flag:'`
20072    (eval echo "\"\$as_me:20072: $lt_compile\"" >&5)
20073    (eval "$lt_compile" 2>conftest.err)
20074    ac_status=$?
20075    cat conftest.err >&5
20076    echo "$as_me:20076: \$? = $ac_status" >&5
20077    if (exit $ac_status) && test -s "$ac_outfile"; then
20078      # The compiler can only warn and ignore the option if not recognized
20079      # So say no if there are warnings other than the usual output.
20080      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20081      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20082      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20083        lt_prog_compiler_pic_works_CXX=yes
20084      fi
20085    fi
20086    $rm conftest*
20087
20088 fi
20089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20090 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20091
20092 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20093     case $lt_prog_compiler_pic_CXX in
20094      "" | " "*) ;;
20095      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20096      esac
20097 else
20098     lt_prog_compiler_pic_CXX=
20099      lt_prog_compiler_can_build_shared_CXX=no
20100 fi
20101
20102 fi
20103 case $host_os in
20104   # For platforms which do not support PIC, -DPIC is meaningless:
20105   *djgpp*)
20106     lt_prog_compiler_pic_CXX=
20107     ;;
20108   *)
20109     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20110     ;;
20111 esac
20112
20113 #
20114 # Check to make sure the static flag actually works.
20115 #
20116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20117 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20119 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20120   echo $ECHO_N "(cached) $ECHO_C" >&6
20121 else
20122   lt_prog_compiler_static_works_CXX=no
20123    save_LDFLAGS="$LDFLAGS"
20124    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20125    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20127      # The linker can only warn and ignore the option if not recognized
20128      # So say no if there are warnings
20129      if test -s conftest.err; then
20130        # Append any errors to the config.log.
20131        cat conftest.err 1>&5
20132        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20134        if diff conftest.exp conftest.er2 >/dev/null; then
20135          lt_prog_compiler_static_works_CXX=yes
20136        fi
20137      else
20138        lt_prog_compiler_static_works_CXX=yes
20139      fi
20140    fi
20141    $rm conftest*
20142    LDFLAGS="$save_LDFLAGS"
20143
20144 fi
20145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20146 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20147
20148 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20149     :
20150 else
20151     lt_prog_compiler_static_CXX=
20152 fi
20153
20154
20155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20157 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20158   echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160   lt_cv_prog_compiler_c_o_CXX=no
20161    $rm -r conftest 2>/dev/null
20162    mkdir conftest
20163    cd conftest
20164    mkdir out
20165    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20166
20167    lt_compiler_flag="-o out/conftest2.$ac_objext"
20168    # Insert the option either (1) after the last *FLAGS variable, or
20169    # (2) before a word containing "conftest.", or (3) at the end.
20170    # Note that $ac_compile itself does not contain backslashes and begins
20171    # with a dollar sign (not a hyphen), so the echo should work correctly.
20172    lt_compile=`echo "$ac_compile" | $SED \
20173    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20174    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20175    -e 's:$: $lt_compiler_flag:'`
20176    (eval echo "\"\$as_me:20176: $lt_compile\"" >&5)
20177    (eval "$lt_compile" 2>out/conftest.err)
20178    ac_status=$?
20179    cat out/conftest.err >&5
20180    echo "$as_me:20180: \$? = $ac_status" >&5
20181    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20182    then
20183      # The compiler can only warn and ignore the option if not recognized
20184      # So say no if there are warnings
20185      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20186      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20187      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20188        lt_cv_prog_compiler_c_o_CXX=yes
20189      fi
20190    fi
20191    chmod u+w . 2>&5
20192    $rm conftest*
20193    # SGI C++ compiler will create directory out/ii_files/ for
20194    # template instantiation
20195    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20196    $rm out/* && rmdir out
20197    cd ..
20198    rmdir conftest
20199    $rm conftest*
20200
20201 fi
20202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20204
20205
20206 hard_links="nottested"
20207 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20208   # do not overwrite the value of need_locks provided by the user
20209   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20211   hard_links=yes
20212   $rm conftest*
20213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20214   touch conftest.a
20215   ln conftest.a conftest.b 2>&5 || hard_links=no
20216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20217   { echo "$as_me:$LINENO: result: $hard_links" >&5
20218 echo "${ECHO_T}$hard_links" >&6; }
20219   if test "$hard_links" = no; then
20220     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20222     need_locks=warn
20223   fi
20224 else
20225   need_locks=no
20226 fi
20227
20228 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20230
20231   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20232   case $host_os in
20233   aix4* | aix5*)
20234     # If we're using GNU nm, then we don't want the "-C" option.
20235     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20236     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20237       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20238     else
20239       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20240     fi
20241     ;;
20242   pw32*)
20243     export_symbols_cmds_CXX="$ltdll_cmds"
20244   ;;
20245   cygwin* | mingw*)
20246     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20247   ;;
20248   *)
20249     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20250   ;;
20251   esac
20252
20253 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20254 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20255 test "$ld_shlibs_CXX" = no && can_build_shared=no
20256
20257 #
20258 # Do we need to explicitly link libc?
20259 #
20260 case "x$archive_cmds_need_lc_CXX" in
20261 x|xyes)
20262   # Assume -lc should be added
20263   archive_cmds_need_lc_CXX=yes
20264
20265   if test "$enable_shared" = yes && test "$GCC" = yes; then
20266     case $archive_cmds_CXX in
20267     *'~'*)
20268       # FIXME: we may have to deal with multi-command sequences.
20269       ;;
20270     '$CC '*)
20271       # Test whether the compiler implicitly links with -lc since on some
20272       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20273       # to ld, don't add -lc before -lgcc.
20274       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20275 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20276       $rm conftest*
20277       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20278
20279       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20280   (eval $ac_compile) 2>&5
20281   ac_status=$?
20282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283   (exit $ac_status); } 2>conftest.err; then
20284         soname=conftest
20285         lib=conftest
20286         libobjs=conftest.$ac_objext
20287         deplibs=
20288         wl=$lt_prog_compiler_wl_CXX
20289         pic_flag=$lt_prog_compiler_pic_CXX
20290         compiler_flags=-v
20291         linker_flags=-v
20292         verstring=
20293         output_objdir=.
20294         libname=conftest
20295         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20296         allow_undefined_flag_CXX=
20297         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20298   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }
20302         then
20303           archive_cmds_need_lc_CXX=no
20304         else
20305           archive_cmds_need_lc_CXX=yes
20306         fi
20307         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20308       else
20309         cat conftest.err 1>&5
20310       fi
20311       $rm conftest*
20312       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20313 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20314       ;;
20315     esac
20316   fi
20317   ;;
20318 esac
20319
20320 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20321 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20322 library_names_spec=
20323 libname_spec='lib$name'
20324 soname_spec=
20325 shrext_cmds=".so"
20326 postinstall_cmds=
20327 postuninstall_cmds=
20328 finish_cmds=
20329 finish_eval=
20330 shlibpath_var=
20331 shlibpath_overrides_runpath=unknown
20332 version_type=none
20333 dynamic_linker="$host_os ld.so"
20334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20335
20336 need_lib_prefix=unknown
20337 hardcode_into_libs=no
20338
20339 # when you set need_version to no, make sure it does not cause -set_version
20340 # flags to be left without arguments
20341 need_version=unknown
20342
20343 case $host_os in
20344 aix3*)
20345   version_type=linux
20346   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20347   shlibpath_var=LIBPATH
20348
20349   # AIX 3 has no versioning support, so we append a major version to the name.
20350   soname_spec='${libname}${release}${shared_ext}$major'
20351   ;;
20352
20353 aix4* | aix5*)
20354   version_type=linux
20355   need_lib_prefix=no
20356   need_version=no
20357   hardcode_into_libs=yes
20358   if test "$host_cpu" = ia64; then
20359     # AIX 5 supports IA64
20360     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20361     shlibpath_var=LD_LIBRARY_PATH
20362   else
20363     # With GCC up to 2.95.x, collect2 would create an import file
20364     # for dependence libraries.  The import file would start with
20365     # the line `#! .'.  This would cause the generated library to
20366     # depend on `.', always an invalid library.  This was fixed in
20367     # development snapshots of GCC prior to 3.0.
20368     case $host_os in
20369       aix4 | aix4.[01] | aix4.[01].*)
20370       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20371            echo ' yes '
20372            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20373         :
20374       else
20375         can_build_shared=no
20376       fi
20377       ;;
20378     esac
20379     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20380     # soname into executable. Probably we can add versioning support to
20381     # collect2, so additional links can be useful in future.
20382     if test "$aix_use_runtimelinking" = yes; then
20383       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20384       # instead of lib<name>.a to let people know that these are not
20385       # typical AIX shared libraries.
20386       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20387     else
20388       # We preserve .a as extension for shared libraries through AIX4.2
20389       # and later when we are not doing run time linking.
20390       library_names_spec='${libname}${release}.a $libname.a'
20391       soname_spec='${libname}${release}${shared_ext}$major'
20392     fi
20393     shlibpath_var=LIBPATH
20394   fi
20395   ;;
20396
20397 amigaos*)
20398   library_names_spec='$libname.ixlibrary $libname.a'
20399   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20400   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'
20401   ;;
20402
20403 beos*)
20404   library_names_spec='${libname}${shared_ext}'
20405   dynamic_linker="$host_os ld.so"
20406   shlibpath_var=LIBRARY_PATH
20407   ;;
20408
20409 bsdi[45]*)
20410   version_type=linux
20411   need_version=no
20412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413   soname_spec='${libname}${release}${shared_ext}$major'
20414   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20415   shlibpath_var=LD_LIBRARY_PATH
20416   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20417   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20418   # the default ld.so.conf also contains /usr/contrib/lib and
20419   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20420   # libtool to hard-code these into programs
20421   ;;
20422
20423 cygwin* | mingw* | pw32*)
20424   version_type=windows
20425   shrext_cmds=".dll"
20426   need_version=no
20427   need_lib_prefix=no
20428
20429   case $GCC,$host_os in
20430   yes,cygwin* | yes,mingw* | yes,pw32*)
20431     library_names_spec='$libname.dll.a'
20432     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20433     postinstall_cmds='base_file=`basename \${file}`~
20434       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20435       dldir=$destdir/`dirname \$dlpath`~
20436       test -d \$dldir || mkdir -p \$dldir~
20437       $install_prog $dir/$dlname \$dldir/$dlname~
20438       chmod a+x \$dldir/$dlname'
20439     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20440       dlpath=$dir/\$dldll~
20441        $rm \$dlpath'
20442     shlibpath_overrides_runpath=yes
20443
20444     case $host_os in
20445     cygwin*)
20446       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20447       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20448       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20449       ;;
20450     mingw*)
20451       # MinGW DLLs use traditional 'lib' prefix
20452       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20453       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20454       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20455         # It is most probably a Windows format PATH printed by
20456         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20457         # path with ; separators, and with drive letters. We can handle the
20458         # drive letters (cygwin fileutils understands them), so leave them,
20459         # especially as we might pass files found there to a mingw objdump,
20460         # which wouldn't understand a cygwinified path. Ahh.
20461         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20462       else
20463         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20464       fi
20465       ;;
20466     pw32*)
20467       # pw32 DLLs use 'pw' prefix rather than 'lib'
20468       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20469       ;;
20470     esac
20471     ;;
20472
20473   *)
20474     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20475     ;;
20476   esac
20477   dynamic_linker='Win32 ld.exe'
20478   # FIXME: first we should search . and the directory the executable is in
20479   shlibpath_var=PATH
20480   ;;
20481
20482 darwin* | rhapsody*)
20483   dynamic_linker="$host_os dyld"
20484   version_type=darwin
20485   need_lib_prefix=no
20486   need_version=no
20487   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20488   soname_spec='${libname}${release}${major}$shared_ext'
20489   shlibpath_overrides_runpath=yes
20490   shlibpath_var=DYLD_LIBRARY_PATH
20491   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20492
20493   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20494   ;;
20495
20496 dgux*)
20497   version_type=linux
20498   need_lib_prefix=no
20499   need_version=no
20500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20501   soname_spec='${libname}${release}${shared_ext}$major'
20502   shlibpath_var=LD_LIBRARY_PATH
20503   ;;
20504
20505 freebsd1*)
20506   dynamic_linker=no
20507   ;;
20508
20509 freebsd* | dragonfly*)
20510   # DragonFly does not have aout.  When/if they implement a new
20511   # versioning mechanism, adjust this.
20512   if test -x /usr/bin/objformat; then
20513     objformat=`/usr/bin/objformat`
20514   else
20515     case $host_os in
20516     freebsd[123]*) objformat=aout ;;
20517     *) objformat=elf ;;
20518     esac
20519   fi
20520   version_type=freebsd-$objformat
20521   case $version_type in
20522     freebsd-elf*)
20523       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20524       need_version=no
20525       need_lib_prefix=no
20526       ;;
20527     freebsd-*)
20528       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20529       need_version=yes
20530       ;;
20531   esac
20532   shlibpath_var=LD_LIBRARY_PATH
20533   case $host_os in
20534   freebsd2*)
20535     shlibpath_overrides_runpath=yes
20536     ;;
20537   freebsd3.[01]* | freebsdelf3.[01]*)
20538     shlibpath_overrides_runpath=yes
20539     hardcode_into_libs=yes
20540     ;;
20541   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20542   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20543     shlibpath_overrides_runpath=no
20544     hardcode_into_libs=yes
20545     ;;
20546   *) # from 4.6 on, and DragonFly
20547     shlibpath_overrides_runpath=yes
20548     hardcode_into_libs=yes
20549     ;;
20550   esac
20551   ;;
20552
20553 gnu*)
20554   version_type=linux
20555   need_lib_prefix=no
20556   need_version=no
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20558   soname_spec='${libname}${release}${shared_ext}$major'
20559   shlibpath_var=LD_LIBRARY_PATH
20560   hardcode_into_libs=yes
20561   ;;
20562
20563 hpux9* | hpux10* | hpux11*)
20564   # Give a soname corresponding to the major version so that dld.sl refuses to
20565   # link against other versions.
20566   version_type=sunos
20567   need_lib_prefix=no
20568   need_version=no
20569   case $host_cpu in
20570   ia64*)
20571     shrext_cmds='.so'
20572     hardcode_into_libs=yes
20573     dynamic_linker="$host_os dld.so"
20574     shlibpath_var=LD_LIBRARY_PATH
20575     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20577     soname_spec='${libname}${release}${shared_ext}$major'
20578     if test "X$HPUX_IA64_MODE" = X32; then
20579       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20580     else
20581       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20582     fi
20583     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20584     ;;
20585    hppa*64*)
20586      shrext_cmds='.sl'
20587      hardcode_into_libs=yes
20588      dynamic_linker="$host_os dld.sl"
20589      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20590      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20591      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20592      soname_spec='${libname}${release}${shared_ext}$major'
20593      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20594      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20595      ;;
20596    *)
20597     shrext_cmds='.sl'
20598     dynamic_linker="$host_os dld.sl"
20599     shlibpath_var=SHLIB_PATH
20600     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602     soname_spec='${libname}${release}${shared_ext}$major'
20603     ;;
20604   esac
20605   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20606   postinstall_cmds='chmod 555 $lib'
20607   ;;
20608
20609 interix[3-9]*)
20610   version_type=linux
20611   need_lib_prefix=no
20612   need_version=no
20613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20614   soname_spec='${libname}${release}${shared_ext}$major'
20615   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20616   shlibpath_var=LD_LIBRARY_PATH
20617   shlibpath_overrides_runpath=no
20618   hardcode_into_libs=yes
20619   ;;
20620
20621 irix5* | irix6* | nonstopux*)
20622   case $host_os in
20623     nonstopux*) version_type=nonstopux ;;
20624     *)
20625         if test "$lt_cv_prog_gnu_ld" = yes; then
20626                 version_type=linux
20627         else
20628                 version_type=irix
20629         fi ;;
20630   esac
20631   need_lib_prefix=no
20632   need_version=no
20633   soname_spec='${libname}${release}${shared_ext}$major'
20634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20635   case $host_os in
20636   irix5* | nonstopux*)
20637     libsuff= shlibsuff=
20638     ;;
20639   *)
20640     case $LD in # libtool.m4 will add one of these switches to LD
20641     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20642       libsuff= shlibsuff= libmagic=32-bit;;
20643     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20644       libsuff=32 shlibsuff=N32 libmagic=N32;;
20645     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20646       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20647     *) libsuff= shlibsuff= libmagic=never-match;;
20648     esac
20649     ;;
20650   esac
20651   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20652   shlibpath_overrides_runpath=no
20653   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20654   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20655   hardcode_into_libs=yes
20656   ;;
20657
20658 # No shared lib support for Linux oldld, aout, or coff.
20659 linux*oldld* | linux*aout* | linux*coff*)
20660   dynamic_linker=no
20661   ;;
20662
20663 # This must be Linux ELF.
20664 linux* | k*bsd*-gnu)
20665   version_type=linux
20666   need_lib_prefix=no
20667   need_version=no
20668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20669   soname_spec='${libname}${release}${shared_ext}$major'
20670   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20671   shlibpath_var=LD_LIBRARY_PATH
20672   shlibpath_overrides_runpath=no
20673   # This implies no fast_install, which is unacceptable.
20674   # Some rework will be needed to allow for fast_install
20675   # before this can be enabled.
20676   hardcode_into_libs=yes
20677   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20678   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20679
20680   # Append ld.so.conf contents to the search path
20681   if test -f /etc/ld.so.conf; then
20682     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' ' '`
20683     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
20684   fi
20685
20686   # We used to test for /lib/ld.so.1 and disable shared libraries on
20687   # powerpc, because MkLinux only supported shared libraries with the
20688   # GNU dynamic linker.  Since this was broken with cross compilers,
20689   # most powerpc-linux boxes support dynamic linking these days and
20690   # people can always --disable-shared, the test was removed, and we
20691   # assume the GNU/Linux dynamic linker is in use.
20692   dynamic_linker='GNU/Linux ld.so'
20693   ;;
20694
20695 netbsd*)
20696   version_type=sunos
20697   need_lib_prefix=no
20698   need_version=no
20699   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20701     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20702     dynamic_linker='NetBSD (a.out) ld.so'
20703   else
20704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20705     soname_spec='${libname}${release}${shared_ext}$major'
20706     dynamic_linker='NetBSD ld.elf_so'
20707   fi
20708   shlibpath_var=LD_LIBRARY_PATH
20709   shlibpath_overrides_runpath=yes
20710   hardcode_into_libs=yes
20711   ;;
20712
20713 newsos6)
20714   version_type=linux
20715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20716   shlibpath_var=LD_LIBRARY_PATH
20717   shlibpath_overrides_runpath=yes
20718   ;;
20719
20720 nto-qnx*)
20721   version_type=linux
20722   need_lib_prefix=no
20723   need_version=no
20724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725   soname_spec='${libname}${release}${shared_ext}$major'
20726   shlibpath_var=LD_LIBRARY_PATH
20727   shlibpath_overrides_runpath=yes
20728   ;;
20729
20730 openbsd*)
20731   version_type=sunos
20732   sys_lib_dlsearch_path_spec="/usr/lib"
20733   need_lib_prefix=no
20734   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20735   case $host_os in
20736     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20737     *)                         need_version=no  ;;
20738   esac
20739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20741   shlibpath_var=LD_LIBRARY_PATH
20742   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20743     case $host_os in
20744       openbsd2.[89] | openbsd2.[89].*)
20745         shlibpath_overrides_runpath=no
20746         ;;
20747       *)
20748         shlibpath_overrides_runpath=yes
20749         ;;
20750       esac
20751   else
20752     shlibpath_overrides_runpath=yes
20753   fi
20754   ;;
20755
20756 os2*)
20757   libname_spec='$name'
20758   shrext_cmds=".dll"
20759   need_lib_prefix=no
20760   library_names_spec='$libname${shared_ext} $libname.a'
20761   dynamic_linker='OS/2 ld.exe'
20762   shlibpath_var=LIBPATH
20763   ;;
20764
20765 osf3* | osf4* | osf5*)
20766   version_type=osf
20767   need_lib_prefix=no
20768   need_version=no
20769   soname_spec='${libname}${release}${shared_ext}$major'
20770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20771   shlibpath_var=LD_LIBRARY_PATH
20772   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20773   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20774   ;;
20775
20776 rdos*)
20777   dynamic_linker=no
20778   ;;
20779
20780 solaris*)
20781   version_type=linux
20782   need_lib_prefix=no
20783   need_version=no
20784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20785   soname_spec='${libname}${release}${shared_ext}$major'
20786   shlibpath_var=LD_LIBRARY_PATH
20787   shlibpath_overrides_runpath=yes
20788   hardcode_into_libs=yes
20789   # ldd complains unless libraries are executable
20790   postinstall_cmds='chmod +x $lib'
20791   ;;
20792
20793 sunos4*)
20794   version_type=sunos
20795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20797   shlibpath_var=LD_LIBRARY_PATH
20798   shlibpath_overrides_runpath=yes
20799   if test "$with_gnu_ld" = yes; then
20800     need_lib_prefix=no
20801   fi
20802   need_version=yes
20803   ;;
20804
20805 sysv4 | sysv4.3*)
20806   version_type=linux
20807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20808   soname_spec='${libname}${release}${shared_ext}$major'
20809   shlibpath_var=LD_LIBRARY_PATH
20810   case $host_vendor in
20811     sni)
20812       shlibpath_overrides_runpath=no
20813       need_lib_prefix=no
20814       export_dynamic_flag_spec='${wl}-Blargedynsym'
20815       runpath_var=LD_RUN_PATH
20816       ;;
20817     siemens)
20818       need_lib_prefix=no
20819       ;;
20820     motorola)
20821       need_lib_prefix=no
20822       need_version=no
20823       shlibpath_overrides_runpath=no
20824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20825       ;;
20826   esac
20827   ;;
20828
20829 sysv4*MP*)
20830   if test -d /usr/nec ;then
20831     version_type=linux
20832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20833     soname_spec='$libname${shared_ext}.$major'
20834     shlibpath_var=LD_LIBRARY_PATH
20835   fi
20836   ;;
20837
20838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20839   version_type=freebsd-elf
20840   need_lib_prefix=no
20841   need_version=no
20842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20843   soname_spec='${libname}${release}${shared_ext}$major'
20844   shlibpath_var=LD_LIBRARY_PATH
20845   hardcode_into_libs=yes
20846   if test "$with_gnu_ld" = yes; then
20847     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20848     shlibpath_overrides_runpath=no
20849   else
20850     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20851     shlibpath_overrides_runpath=yes
20852     case $host_os in
20853       sco3.2v5*)
20854         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20855         ;;
20856     esac
20857   fi
20858   sys_lib_dlsearch_path_spec='/usr/lib'
20859   ;;
20860
20861 uts4*)
20862   version_type=linux
20863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20864   soname_spec='${libname}${release}${shared_ext}$major'
20865   shlibpath_var=LD_LIBRARY_PATH
20866   ;;
20867
20868 *)
20869   dynamic_linker=no
20870   ;;
20871 esac
20872 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20873 echo "${ECHO_T}$dynamic_linker" >&6; }
20874 test "$dynamic_linker" = no && can_build_shared=no
20875
20876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20877 if test "$GCC" = yes; then
20878   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20879 fi
20880
20881 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20882 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20883 hardcode_action_CXX=
20884 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20885    test -n "$runpath_var_CXX" || \
20886    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20887
20888   # We can hardcode non-existant directories.
20889   if test "$hardcode_direct_CXX" != no &&
20890      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20891      # have to relink, otherwise we might link with an installed library
20892      # when we should be linking with a yet-to-be-installed one
20893      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20894      test "$hardcode_minus_L_CXX" != no; then
20895     # Linking always hardcodes the temporary library directory.
20896     hardcode_action_CXX=relink
20897   else
20898     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20899     hardcode_action_CXX=immediate
20900   fi
20901 else
20902   # We cannot hardcode anything, or else we can only hardcode existing
20903   # directories.
20904   hardcode_action_CXX=unsupported
20905 fi
20906 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20907 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20908
20909 if test "$hardcode_action_CXX" = relink; then
20910   # Fast installation is not supported
20911   enable_fast_install=no
20912 elif test "$shlibpath_overrides_runpath" = yes ||
20913      test "$enable_shared" = no; then
20914   # Fast installation is not necessary
20915   enable_fast_install=needless
20916 fi
20917
20918
20919 # The else clause should only fire when bootstrapping the
20920 # libtool distribution, otherwise you forgot to ship ltmain.sh
20921 # with your package, and you will get complaints that there are
20922 # no rules to generate ltmain.sh.
20923 if test -f "$ltmain"; then
20924   # See if we are running on zsh, and set the options which allow our commands through
20925   # without removal of \ escapes.
20926   if test -n "${ZSH_VERSION+set}" ; then
20927     setopt NO_GLOB_SUBST
20928   fi
20929   # Now quote all the things that may contain metacharacters while being
20930   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20931   # variables and quote the copies for generation of the libtool script.
20932   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20933     SED SHELL STRIP \
20934     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20935     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20936     deplibs_check_method reload_flag reload_cmds need_locks \
20937     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20938     lt_cv_sys_global_symbol_to_c_name_address \
20939     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20940     old_postinstall_cmds old_postuninstall_cmds \
20941     compiler_CXX \
20942     CC_CXX \
20943     LD_CXX \
20944     lt_prog_compiler_wl_CXX \
20945     lt_prog_compiler_pic_CXX \
20946     lt_prog_compiler_static_CXX \
20947     lt_prog_compiler_no_builtin_flag_CXX \
20948     export_dynamic_flag_spec_CXX \
20949     thread_safe_flag_spec_CXX \
20950     whole_archive_flag_spec_CXX \
20951     enable_shared_with_static_runtimes_CXX \
20952     old_archive_cmds_CXX \
20953     old_archive_from_new_cmds_CXX \
20954     predep_objects_CXX \
20955     postdep_objects_CXX \
20956     predeps_CXX \
20957     postdeps_CXX \
20958     compiler_lib_search_path_CXX \
20959     archive_cmds_CXX \
20960     archive_expsym_cmds_CXX \
20961     postinstall_cmds_CXX \
20962     postuninstall_cmds_CXX \
20963     old_archive_from_expsyms_cmds_CXX \
20964     allow_undefined_flag_CXX \
20965     no_undefined_flag_CXX \
20966     export_symbols_cmds_CXX \
20967     hardcode_libdir_flag_spec_CXX \
20968     hardcode_libdir_flag_spec_ld_CXX \
20969     hardcode_libdir_separator_CXX \
20970     hardcode_automatic_CXX \
20971     module_cmds_CXX \
20972     module_expsym_cmds_CXX \
20973     lt_cv_prog_compiler_c_o_CXX \
20974     fix_srcfile_path_CXX \
20975     exclude_expsyms_CXX \
20976     include_expsyms_CXX; do
20977
20978     case $var in
20979     old_archive_cmds_CXX | \
20980     old_archive_from_new_cmds_CXX | \
20981     archive_cmds_CXX | \
20982     archive_expsym_cmds_CXX | \
20983     module_cmds_CXX | \
20984     module_expsym_cmds_CXX | \
20985     old_archive_from_expsyms_cmds_CXX | \
20986     export_symbols_cmds_CXX | \
20987     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20988     postinstall_cmds | postuninstall_cmds | \
20989     old_postinstall_cmds | old_postuninstall_cmds | \
20990     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20991       # Double-quote double-evaled strings.
20992       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20993       ;;
20994     *)
20995       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20996       ;;
20997     esac
20998   done
20999
21000   case $lt_echo in
21001   *'\$0 --fallback-echo"')
21002     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21003     ;;
21004   esac
21005
21006 cfgfile="$ofile"
21007
21008   cat <<__EOF__ >> "$cfgfile"
21009 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21010
21011 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21012
21013 # Shell to use when invoking shell scripts.
21014 SHELL=$lt_SHELL
21015
21016 # Whether or not to build shared libraries.
21017 build_libtool_libs=$enable_shared
21018
21019 # Whether or not to build static libraries.
21020 build_old_libs=$enable_static
21021
21022 # Whether or not to add -lc for building shared libraries.
21023 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21024
21025 # Whether or not to disallow shared libs when runtime libs are static
21026 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21027
21028 # Whether or not to optimize for fast installation.
21029 fast_install=$enable_fast_install
21030
21031 # The host system.
21032 host_alias=$host_alias
21033 host=$host
21034 host_os=$host_os
21035
21036 # The build system.
21037 build_alias=$build_alias
21038 build=$build
21039 build_os=$build_os
21040
21041 # An echo program that does not interpret backslashes.
21042 echo=$lt_echo
21043
21044 # The archiver.
21045 AR=$lt_AR
21046 AR_FLAGS=$lt_AR_FLAGS
21047
21048 # A C compiler.
21049 LTCC=$lt_LTCC
21050
21051 # LTCC compiler flags.
21052 LTCFLAGS=$lt_LTCFLAGS
21053
21054 # A language-specific compiler.
21055 CC=$lt_compiler_CXX
21056
21057 # Is the compiler the GNU C compiler?
21058 with_gcc=$GCC_CXX
21059
21060 # An ERE matcher.
21061 EGREP=$lt_EGREP
21062
21063 # The linker used to build libraries.
21064 LD=$lt_LD_CXX
21065
21066 # Whether we need hard or soft links.
21067 LN_S=$lt_LN_S
21068
21069 # A BSD-compatible nm program.
21070 NM=$lt_NM
21071
21072 # A symbol stripping program
21073 STRIP=$lt_STRIP
21074
21075 # Used to examine libraries when file_magic_cmd begins "file"
21076 MAGIC_CMD=$MAGIC_CMD
21077
21078 # Used on cygwin: DLL creation program.
21079 DLLTOOL="$DLLTOOL"
21080
21081 # Used on cygwin: object dumper.
21082 OBJDUMP="$OBJDUMP"
21083
21084 # Used on cygwin: assembler.
21085 AS="$AS"
21086
21087 # The name of the directory that contains temporary libtool files.
21088 objdir=$objdir
21089
21090 # How to create reloadable object files.
21091 reload_flag=$lt_reload_flag
21092 reload_cmds=$lt_reload_cmds
21093
21094 # How to pass a linker flag through the compiler.
21095 wl=$lt_lt_prog_compiler_wl_CXX
21096
21097 # Object file suffix (normally "o").
21098 objext="$ac_objext"
21099
21100 # Old archive suffix (normally "a").
21101 libext="$libext"
21102
21103 # Shared library suffix (normally ".so").
21104 shrext_cmds='$shrext_cmds'
21105
21106 # Executable file suffix (normally "").
21107 exeext="$exeext"
21108
21109 # Additional compiler flags for building library objects.
21110 pic_flag=$lt_lt_prog_compiler_pic_CXX
21111 pic_mode=$pic_mode
21112
21113 # What is the maximum length of a command?
21114 max_cmd_len=$lt_cv_sys_max_cmd_len
21115
21116 # Does compiler simultaneously support -c and -o options?
21117 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21118
21119 # Must we lock files when doing compilation?
21120 need_locks=$lt_need_locks
21121
21122 # Do we need the lib prefix for modules?
21123 need_lib_prefix=$need_lib_prefix
21124
21125 # Do we need a version for libraries?
21126 need_version=$need_version
21127
21128 # Whether dlopen is supported.
21129 dlopen_support=$enable_dlopen
21130
21131 # Whether dlopen of programs is supported.
21132 dlopen_self=$enable_dlopen_self
21133
21134 # Whether dlopen of statically linked programs is supported.
21135 dlopen_self_static=$enable_dlopen_self_static
21136
21137 # Compiler flag to prevent dynamic linking.
21138 link_static_flag=$lt_lt_prog_compiler_static_CXX
21139
21140 # Compiler flag to turn off builtin functions.
21141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21142
21143 # Compiler flag to allow reflexive dlopens.
21144 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21145
21146 # Compiler flag to generate shared objects directly from archives.
21147 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21148
21149 # Compiler flag to generate thread-safe objects.
21150 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21151
21152 # Library versioning type.
21153 version_type=$version_type
21154
21155 # Format of library name prefix.
21156 libname_spec=$lt_libname_spec
21157
21158 # List of archive names.  First name is the real one, the rest are links.
21159 # The last name is the one that the linker finds with -lNAME.
21160 library_names_spec=$lt_library_names_spec
21161
21162 # The coded name of the library, if different from the real name.
21163 soname_spec=$lt_soname_spec
21164
21165 # Commands used to build and install an old-style archive.
21166 RANLIB=$lt_RANLIB
21167 old_archive_cmds=$lt_old_archive_cmds_CXX
21168 old_postinstall_cmds=$lt_old_postinstall_cmds
21169 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21170
21171 # Create an old-style archive from a shared archive.
21172 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21173
21174 # Create a temporary old-style archive to link instead of a shared archive.
21175 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21176
21177 # Commands used to build and install a shared archive.
21178 archive_cmds=$lt_archive_cmds_CXX
21179 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21180 postinstall_cmds=$lt_postinstall_cmds
21181 postuninstall_cmds=$lt_postuninstall_cmds
21182
21183 # Commands used to build a loadable module (assumed same as above if empty)
21184 module_cmds=$lt_module_cmds_CXX
21185 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21186
21187 # Commands to strip libraries.
21188 old_striplib=$lt_old_striplib
21189 striplib=$lt_striplib
21190
21191 # Dependencies to place before the objects being linked to create a
21192 # shared library.
21193 predep_objects=$lt_predep_objects_CXX
21194
21195 # Dependencies to place after the objects being linked to create a
21196 # shared library.
21197 postdep_objects=$lt_postdep_objects_CXX
21198
21199 # Dependencies to place before the objects being linked to create a
21200 # shared library.
21201 predeps=$lt_predeps_CXX
21202
21203 # Dependencies to place after the objects being linked to create a
21204 # shared library.
21205 postdeps=$lt_postdeps_CXX
21206
21207 # The library search path used internally by the compiler when linking
21208 # a shared library.
21209 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21210
21211 # Method to check whether dependent libraries are shared objects.
21212 deplibs_check_method=$lt_deplibs_check_method
21213
21214 # Command to use when deplibs_check_method == file_magic.
21215 file_magic_cmd=$lt_file_magic_cmd
21216
21217 # Flag that allows shared libraries with undefined symbols to be built.
21218 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21219
21220 # Flag that forces no undefined symbols.
21221 no_undefined_flag=$lt_no_undefined_flag_CXX
21222
21223 # Commands used to finish a libtool library installation in a directory.
21224 finish_cmds=$lt_finish_cmds
21225
21226 # Same as above, but a single script fragment to be evaled but not shown.
21227 finish_eval=$lt_finish_eval
21228
21229 # Take the output of nm and produce a listing of raw symbols and C names.
21230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21231
21232 # Transform the output of nm in a proper C declaration
21233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21234
21235 # Transform the output of nm in a C name address pair
21236 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21237
21238 # This is the shared library runtime path variable.
21239 runpath_var=$runpath_var
21240
21241 # This is the shared library path variable.
21242 shlibpath_var=$shlibpath_var
21243
21244 # Is shlibpath searched before the hard-coded library search path?
21245 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21246
21247 # How to hardcode a shared library path into an executable.
21248 hardcode_action=$hardcode_action_CXX
21249
21250 # Whether we should hardcode library paths into libraries.
21251 hardcode_into_libs=$hardcode_into_libs
21252
21253 # Flag to hardcode \$libdir into a binary during linking.
21254 # This must work even if \$libdir does not exist.
21255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21256
21257 # If ld is used when linking, flag to hardcode \$libdir into
21258 # a binary during linking. This must work even if \$libdir does
21259 # not exist.
21260 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21261
21262 # Whether we need a single -rpath flag with a separated argument.
21263 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21264
21265 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21266 # resulting binary.
21267 hardcode_direct=$hardcode_direct_CXX
21268
21269 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21270 # resulting binary.
21271 hardcode_minus_L=$hardcode_minus_L_CXX
21272
21273 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21274 # the resulting binary.
21275 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21276
21277 # Set to yes if building a shared library automatically hardcodes DIR into the library
21278 # and all subsequent libraries and executables linked against it.
21279 hardcode_automatic=$hardcode_automatic_CXX
21280
21281 # Variables whose values should be saved in libtool wrapper scripts and
21282 # restored at relink time.
21283 variables_saved_for_relink="$variables_saved_for_relink"
21284
21285 # Whether libtool must link a program against all its dependency libraries.
21286 link_all_deplibs=$link_all_deplibs_CXX
21287
21288 # Compile-time system search path for libraries
21289 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21290
21291 # Run-time system search path for libraries
21292 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21293
21294 # Fix the shell variable \$srcfile for the compiler.
21295 fix_srcfile_path=$lt_fix_srcfile_path
21296
21297 # Set to yes if exported symbols are required.
21298 always_export_symbols=$always_export_symbols_CXX
21299
21300 # The commands to list exported symbols.
21301 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21302
21303 # The commands to extract the exported symbol list from a shared archive.
21304 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21305
21306 # Symbols that should not be listed in the preloaded symbols.
21307 exclude_expsyms=$lt_exclude_expsyms_CXX
21308
21309 # Symbols that must always be exported.
21310 include_expsyms=$lt_include_expsyms_CXX
21311
21312 # ### END LIBTOOL TAG CONFIG: $tagname
21313
21314 __EOF__
21315
21316
21317 else
21318   # If there is no Makefile yet, we rely on a make rule to execute
21319   # `config.status --recheck' to rerun these tests and create the
21320   # libtool script then.
21321   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21322   if test -f "$ltmain_in"; then
21323     test -f Makefile && make "$ltmain"
21324   fi
21325 fi
21326
21327
21328 ac_ext=c
21329 ac_cpp='$CPP $CPPFLAGS'
21330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333
21334 CC=$lt_save_CC
21335 LDCXX=$LD
21336 LD=$lt_save_LD
21337 GCC=$lt_save_GCC
21338 with_gnu_ldcxx=$with_gnu_ld
21339 with_gnu_ld=$lt_save_with_gnu_ld
21340 lt_cv_path_LDCXX=$lt_cv_path_LD
21341 lt_cv_path_LD=$lt_save_path_LD
21342 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21343 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21344
21345         else
21346           tagname=""
21347         fi
21348         ;;
21349
21350       F77)
21351         if test -n "$F77" && test "X$F77" != "Xno"; then
21352
21353 ac_ext=f
21354 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21355 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21356 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21357
21358
21359 archive_cmds_need_lc_F77=no
21360 allow_undefined_flag_F77=
21361 always_export_symbols_F77=no
21362 archive_expsym_cmds_F77=
21363 export_dynamic_flag_spec_F77=
21364 hardcode_direct_F77=no
21365 hardcode_libdir_flag_spec_F77=
21366 hardcode_libdir_flag_spec_ld_F77=
21367 hardcode_libdir_separator_F77=
21368 hardcode_minus_L_F77=no
21369 hardcode_automatic_F77=no
21370 module_cmds_F77=
21371 module_expsym_cmds_F77=
21372 link_all_deplibs_F77=unknown
21373 old_archive_cmds_F77=$old_archive_cmds
21374 no_undefined_flag_F77=
21375 whole_archive_flag_spec_F77=
21376 enable_shared_with_static_runtimes_F77=no
21377
21378 # Source file extension for f77 test sources.
21379 ac_ext=f
21380
21381 # Object file extension for compiled f77 test sources.
21382 objext=o
21383 objext_F77=$objext
21384
21385 # Code to be used in simple compile tests
21386 lt_simple_compile_test_code="\
21387       subroutine t
21388       return
21389       end
21390 "
21391
21392 # Code to be used in simple link tests
21393 lt_simple_link_test_code="\
21394       program t
21395       end
21396 "
21397
21398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21399
21400 # If no C compiler was specified, use CC.
21401 LTCC=${LTCC-"$CC"}
21402
21403 # If no C compiler flags were specified, use CFLAGS.
21404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21405
21406 # Allow CC to be a program name with arguments.
21407 compiler=$CC
21408
21409
21410 # save warnings/boilerplate of simple test code
21411 ac_outfile=conftest.$ac_objext
21412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21414 _lt_compiler_boilerplate=`cat conftest.err`
21415 $rm conftest*
21416
21417 ac_outfile=conftest.$ac_objext
21418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21420 _lt_linker_boilerplate=`cat conftest.err`
21421 $rm conftest*
21422
21423
21424 # Allow CC to be a program name with arguments.
21425 lt_save_CC="$CC"
21426 CC=${F77-"f77"}
21427 compiler=$CC
21428 compiler_F77=$CC
21429 for cc_temp in $compiler""; do
21430   case $cc_temp in
21431     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21432     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21433     \-*) ;;
21434     *) break;;
21435   esac
21436 done
21437 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21438
21439
21440 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21441 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21442 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21443 echo "${ECHO_T}$can_build_shared" >&6; }
21444
21445 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21446 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21447 test "$can_build_shared" = "no" && enable_shared=no
21448
21449 # On AIX, shared libraries and static libraries use the same namespace, and
21450 # are all built from PIC.
21451 case $host_os in
21452 aix3*)
21453   test "$enable_shared" = yes && enable_static=no
21454   if test -n "$RANLIB"; then
21455     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21456     postinstall_cmds='$RANLIB $lib'
21457   fi
21458   ;;
21459 aix4* | aix5*)
21460   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21461     test "$enable_shared" = yes && enable_static=no
21462   fi
21463   ;;
21464 esac
21465 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21466 echo "${ECHO_T}$enable_shared" >&6; }
21467
21468 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21470 # Make sure either enable_shared or enable_static is yes.
21471 test "$enable_shared" = yes || enable_static=yes
21472 { echo "$as_me:$LINENO: result: $enable_static" >&5
21473 echo "${ECHO_T}$enable_static" >&6; }
21474
21475 GCC_F77="$G77"
21476 LD_F77="$LD"
21477
21478 lt_prog_compiler_wl_F77=
21479 lt_prog_compiler_pic_F77=
21480 lt_prog_compiler_static_F77=
21481
21482 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21484
21485   if test "$GCC" = yes; then
21486     lt_prog_compiler_wl_F77='-Wl,'
21487     lt_prog_compiler_static_F77='-static'
21488
21489     case $host_os in
21490       aix*)
21491       # All AIX code is PIC.
21492       if test "$host_cpu" = ia64; then
21493         # AIX 5 now supports IA64 processor
21494         lt_prog_compiler_static_F77='-Bstatic'
21495       fi
21496       ;;
21497
21498     amigaos*)
21499       # FIXME: we need at least 68020 code to build shared libraries, but
21500       # adding the `-m68020' flag to GCC prevents building anything better,
21501       # like `-m68040'.
21502       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21503       ;;
21504
21505     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21506       # PIC is the default for these OSes.
21507       ;;
21508
21509     mingw* | cygwin* | pw32* | os2*)
21510       # This hack is so that the source file can tell whether it is being
21511       # built for inclusion in a dll (and should export symbols for example).
21512       # Although the cygwin gcc ignores -fPIC, still need this for old-style
21513       # (--disable-auto-import) libraries
21514       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21515       ;;
21516
21517     darwin* | rhapsody*)
21518       # PIC is the default on this platform
21519       # Common symbols not allowed in MH_DYLIB files
21520       lt_prog_compiler_pic_F77='-fno-common'
21521       ;;
21522
21523     interix[3-9]*)
21524       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21525       # Instead, we relocate shared libraries at runtime.
21526       ;;
21527
21528     msdosdjgpp*)
21529       # Just because we use GCC doesn't mean we suddenly get shared libraries
21530       # on systems that don't support them.
21531       lt_prog_compiler_can_build_shared_F77=no
21532       enable_shared=no
21533       ;;
21534
21535     sysv4*MP*)
21536       if test -d /usr/nec; then
21537         lt_prog_compiler_pic_F77=-Kconform_pic
21538       fi
21539       ;;
21540
21541     hpux*)
21542       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21543       # not for PA HP-UX.
21544       case $host_cpu in
21545       hppa*64*|ia64*)
21546         # +Z the default
21547         ;;
21548       *)
21549         lt_prog_compiler_pic_F77='-fPIC'
21550         ;;
21551       esac
21552       ;;
21553
21554     *)
21555       lt_prog_compiler_pic_F77='-fPIC'
21556       ;;
21557     esac
21558   else
21559     # PORTME Check for flag to pass linker flags through the system compiler.
21560     case $host_os in
21561     aix*)
21562       lt_prog_compiler_wl_F77='-Wl,'
21563       if test "$host_cpu" = ia64; then
21564         # AIX 5 now supports IA64 processor
21565         lt_prog_compiler_static_F77='-Bstatic'
21566       else
21567         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21568       fi
21569       ;;
21570       darwin*)
21571         # PIC is the default on this platform
21572         # Common symbols not allowed in MH_DYLIB files
21573        case $cc_basename in
21574          xlc*)
21575          lt_prog_compiler_pic_F77='-qnocommon'
21576          lt_prog_compiler_wl_F77='-Wl,'
21577          ;;
21578        esac
21579        ;;
21580
21581     mingw* | cygwin* | pw32* | os2*)
21582       # This hack is so that the source file can tell whether it is being
21583       # built for inclusion in a dll (and should export symbols for example).
21584       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21585       ;;
21586
21587     hpux9* | hpux10* | hpux11*)
21588       lt_prog_compiler_wl_F77='-Wl,'
21589       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21590       # not for PA HP-UX.
21591       case $host_cpu in
21592       hppa*64*|ia64*)
21593         # +Z the default
21594         ;;
21595       *)
21596         lt_prog_compiler_pic_F77='+Z'
21597         ;;
21598       esac
21599       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21600       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21601       ;;
21602
21603     irix5* | irix6* | nonstopux*)
21604       lt_prog_compiler_wl_F77='-Wl,'
21605       # PIC (with -KPIC) is the default.
21606       lt_prog_compiler_static_F77='-non_shared'
21607       ;;
21608
21609     newsos6)
21610       lt_prog_compiler_pic_F77='-KPIC'
21611       lt_prog_compiler_static_F77='-Bstatic'
21612       ;;
21613
21614     linux* | k*bsd*-gnu)
21615       case $cc_basename in
21616       icc* | ecc*)
21617         lt_prog_compiler_wl_F77='-Wl,'
21618         lt_prog_compiler_pic_F77='-KPIC'
21619         lt_prog_compiler_static_F77='-static'
21620         ;;
21621       pgcc* | pgf77* | pgf90* | pgf95*)
21622         # Portland Group compilers (*not* the Pentium gcc compiler,
21623         # which looks to be a dead project)
21624         lt_prog_compiler_wl_F77='-Wl,'
21625         lt_prog_compiler_pic_F77='-fpic'
21626         lt_prog_compiler_static_F77='-Bstatic'
21627         ;;
21628       ccc*)
21629         lt_prog_compiler_wl_F77='-Wl,'
21630         # All Alpha code is PIC.
21631         lt_prog_compiler_static_F77='-non_shared'
21632         ;;
21633       *)
21634         case `$CC -V 2>&1 | sed 5q` in
21635         *Sun\ C*)
21636           # Sun C 5.9
21637           lt_prog_compiler_pic_F77='-KPIC'
21638           lt_prog_compiler_static_F77='-Bstatic'
21639           lt_prog_compiler_wl_F77='-Wl,'
21640           ;;
21641         *Sun\ F*)
21642           # Sun Fortran 8.3 passes all unrecognized flags to the linker
21643           lt_prog_compiler_pic_F77='-KPIC'
21644           lt_prog_compiler_static_F77='-Bstatic'
21645           lt_prog_compiler_wl_F77=''
21646           ;;
21647         esac
21648         ;;
21649       esac
21650       ;;
21651
21652     osf3* | osf4* | osf5*)
21653       lt_prog_compiler_wl_F77='-Wl,'
21654       # All OSF/1 code is PIC.
21655       lt_prog_compiler_static_F77='-non_shared'
21656       ;;
21657
21658     rdos*)
21659       lt_prog_compiler_static_F77='-non_shared'
21660       ;;
21661
21662     solaris*)
21663       lt_prog_compiler_pic_F77='-KPIC'
21664       lt_prog_compiler_static_F77='-Bstatic'
21665       case $cc_basename in
21666       f77* | f90* | f95*)
21667         lt_prog_compiler_wl_F77='-Qoption ld ';;
21668       *)
21669         lt_prog_compiler_wl_F77='-Wl,';;
21670       esac
21671       ;;
21672
21673     sunos4*)
21674       lt_prog_compiler_wl_F77='-Qoption ld '
21675       lt_prog_compiler_pic_F77='-PIC'
21676       lt_prog_compiler_static_F77='-Bstatic'
21677       ;;
21678
21679     sysv4 | sysv4.2uw2* | sysv4.3*)
21680       lt_prog_compiler_wl_F77='-Wl,'
21681       lt_prog_compiler_pic_F77='-KPIC'
21682       lt_prog_compiler_static_F77='-Bstatic'
21683       ;;
21684
21685     sysv4*MP*)
21686       if test -d /usr/nec ;then
21687         lt_prog_compiler_pic_F77='-Kconform_pic'
21688         lt_prog_compiler_static_F77='-Bstatic'
21689       fi
21690       ;;
21691
21692     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21693       lt_prog_compiler_wl_F77='-Wl,'
21694       lt_prog_compiler_pic_F77='-KPIC'
21695       lt_prog_compiler_static_F77='-Bstatic'
21696       ;;
21697
21698     unicos*)
21699       lt_prog_compiler_wl_F77='-Wl,'
21700       lt_prog_compiler_can_build_shared_F77=no
21701       ;;
21702
21703     uts4*)
21704       lt_prog_compiler_pic_F77='-pic'
21705       lt_prog_compiler_static_F77='-Bstatic'
21706       ;;
21707
21708     *)
21709       lt_prog_compiler_can_build_shared_F77=no
21710       ;;
21711     esac
21712   fi
21713
21714 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21715 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21716
21717 #
21718 # Check to make sure the PIC flag actually works.
21719 #
21720 if test -n "$lt_prog_compiler_pic_F77"; then
21721
21722 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21723 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21724 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727   lt_prog_compiler_pic_works_F77=no
21728   ac_outfile=conftest.$ac_objext
21729    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21730    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21731    # Insert the option either (1) after the last *FLAGS variable, or
21732    # (2) before a word containing "conftest.", or (3) at the end.
21733    # Note that $ac_compile itself does not contain backslashes and begins
21734    # with a dollar sign (not a hyphen), so the echo should work correctly.
21735    # The option is referenced via a variable to avoid confusing sed.
21736    lt_compile=`echo "$ac_compile" | $SED \
21737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21739    -e 's:$: $lt_compiler_flag:'`
21740    (eval echo "\"\$as_me:21740: $lt_compile\"" >&5)
21741    (eval "$lt_compile" 2>conftest.err)
21742    ac_status=$?
21743    cat conftest.err >&5
21744    echo "$as_me:21744: \$? = $ac_status" >&5
21745    if (exit $ac_status) && test -s "$ac_outfile"; then
21746      # The compiler can only warn and ignore the option if not recognized
21747      # So say no if there are warnings other than the usual output.
21748      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21749      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21750      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21751        lt_prog_compiler_pic_works_F77=yes
21752      fi
21753    fi
21754    $rm conftest*
21755
21756 fi
21757 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21758 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21759
21760 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21761     case $lt_prog_compiler_pic_F77 in
21762      "" | " "*) ;;
21763      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21764      esac
21765 else
21766     lt_prog_compiler_pic_F77=
21767      lt_prog_compiler_can_build_shared_F77=no
21768 fi
21769
21770 fi
21771 case $host_os in
21772   # For platforms which do not support PIC, -DPIC is meaningless:
21773   *djgpp*)
21774     lt_prog_compiler_pic_F77=
21775     ;;
21776   *)
21777     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21778     ;;
21779 esac
21780
21781 #
21782 # Check to make sure the static flag actually works.
21783 #
21784 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21785 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21786 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21787 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21788   echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790   lt_prog_compiler_static_works_F77=no
21791    save_LDFLAGS="$LDFLAGS"
21792    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21793    echo "$lt_simple_link_test_code" > conftest.$ac_ext
21794    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21795      # The linker can only warn and ignore the option if not recognized
21796      # So say no if there are warnings
21797      if test -s conftest.err; then
21798        # Append any errors to the config.log.
21799        cat conftest.err 1>&5
21800        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21801        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21802        if diff conftest.exp conftest.er2 >/dev/null; then
21803          lt_prog_compiler_static_works_F77=yes
21804        fi
21805      else
21806        lt_prog_compiler_static_works_F77=yes
21807      fi
21808    fi
21809    $rm conftest*
21810    LDFLAGS="$save_LDFLAGS"
21811
21812 fi
21813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21814 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21815
21816 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21817     :
21818 else
21819     lt_prog_compiler_static_F77=
21820 fi
21821
21822
21823 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21824 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21825 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21826   echo $ECHO_N "(cached) $ECHO_C" >&6
21827 else
21828   lt_cv_prog_compiler_c_o_F77=no
21829    $rm -r conftest 2>/dev/null
21830    mkdir conftest
21831    cd conftest
21832    mkdir out
21833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21834
21835    lt_compiler_flag="-o out/conftest2.$ac_objext"
21836    # Insert the option either (1) after the last *FLAGS variable, or
21837    # (2) before a word containing "conftest.", or (3) at the end.
21838    # Note that $ac_compile itself does not contain backslashes and begins
21839    # with a dollar sign (not a hyphen), so the echo should work correctly.
21840    lt_compile=`echo "$ac_compile" | $SED \
21841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21843    -e 's:$: $lt_compiler_flag:'`
21844    (eval echo "\"\$as_me:21844: $lt_compile\"" >&5)
21845    (eval "$lt_compile" 2>out/conftest.err)
21846    ac_status=$?
21847    cat out/conftest.err >&5
21848    echo "$as_me:21848: \$? = $ac_status" >&5
21849    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21850    then
21851      # The compiler can only warn and ignore the option if not recognized
21852      # So say no if there are warnings
21853      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21854      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21855      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21856        lt_cv_prog_compiler_c_o_F77=yes
21857      fi
21858    fi
21859    chmod u+w . 2>&5
21860    $rm conftest*
21861    # SGI C++ compiler will create directory out/ii_files/ for
21862    # template instantiation
21863    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21864    $rm out/* && rmdir out
21865    cd ..
21866    rmdir conftest
21867    $rm conftest*
21868
21869 fi
21870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21871 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21872
21873
21874 hard_links="nottested"
21875 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21876   # do not overwrite the value of need_locks provided by the user
21877   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21878 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21879   hard_links=yes
21880   $rm conftest*
21881   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21882   touch conftest.a
21883   ln conftest.a conftest.b 2>&5 || hard_links=no
21884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21885   { echo "$as_me:$LINENO: result: $hard_links" >&5
21886 echo "${ECHO_T}$hard_links" >&6; }
21887   if test "$hard_links" = no; then
21888     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21889 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21890     need_locks=warn
21891   fi
21892 else
21893   need_locks=no
21894 fi
21895
21896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21898
21899   runpath_var=
21900   allow_undefined_flag_F77=
21901   enable_shared_with_static_runtimes_F77=no
21902   archive_cmds_F77=
21903   archive_expsym_cmds_F77=
21904   old_archive_From_new_cmds_F77=
21905   old_archive_from_expsyms_cmds_F77=
21906   export_dynamic_flag_spec_F77=
21907   whole_archive_flag_spec_F77=
21908   thread_safe_flag_spec_F77=
21909   hardcode_libdir_flag_spec_F77=
21910   hardcode_libdir_flag_spec_ld_F77=
21911   hardcode_libdir_separator_F77=
21912   hardcode_direct_F77=no
21913   hardcode_minus_L_F77=no
21914   hardcode_shlibpath_var_F77=unsupported
21915   link_all_deplibs_F77=unknown
21916   hardcode_automatic_F77=no
21917   module_cmds_F77=
21918   module_expsym_cmds_F77=
21919   always_export_symbols_F77=no
21920   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21921   # include_expsyms should be a list of space-separated symbols to be *always*
21922   # included in the symbol list
21923   include_expsyms_F77=
21924   # exclude_expsyms can be an extended regexp of symbols to exclude
21925   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21926   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21927   # as well as any symbol that contains `d'.
21928   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21929   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21930   # platforms (ab)use it in PIC code, but their linkers get confused if
21931   # the symbol is explicitly referenced.  Since portable code cannot
21932   # rely on this symbol name, it's probably fine to never include it in
21933   # preloaded symbol tables.
21934   extract_expsyms_cmds=
21935   # Just being paranoid about ensuring that cc_basename is set.
21936   for cc_temp in $compiler""; do
21937   case $cc_temp in
21938     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21939     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21940     \-*) ;;
21941     *) break;;
21942   esac
21943 done
21944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21945
21946   case $host_os in
21947   cygwin* | mingw* | pw32*)
21948     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21949     # When not using gcc, we currently assume that we are using
21950     # Microsoft Visual C++.
21951     if test "$GCC" != yes; then
21952       with_gnu_ld=no
21953     fi
21954     ;;
21955   interix*)
21956     # we just hope/assume this is gcc and not c89 (= MSVC++)
21957     with_gnu_ld=yes
21958     ;;
21959   openbsd*)
21960     with_gnu_ld=no
21961     ;;
21962   esac
21963
21964   ld_shlibs_F77=yes
21965   if test "$with_gnu_ld" = yes; then
21966     # If archive_cmds runs LD, not CC, wlarc should be empty
21967     wlarc='${wl}'
21968
21969     # Set some defaults for GNU ld with shared library support. These
21970     # are reset later if shared libraries are not supported. Putting them
21971     # here allows them to be overridden if necessary.
21972     runpath_var=LD_RUN_PATH
21973     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21974     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21975     # ancient GNU ld didn't support --whole-archive et. al.
21976     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21977         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21978       else
21979         whole_archive_flag_spec_F77=
21980     fi
21981     supports_anon_versioning=no
21982     case `$LD -v 2>/dev/null` in
21983       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21984       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21985       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21986       *\ 2.11.*) ;; # other 2.11 versions
21987       *) supports_anon_versioning=yes ;;
21988     esac
21989
21990     # See if GNU ld supports shared libraries.
21991     case $host_os in
21992     aix3* | aix4* | aix5*)
21993       # On AIX/PPC, the GNU linker is very broken
21994       if test "$host_cpu" != ia64; then
21995         ld_shlibs_F77=no
21996         cat <<EOF 1>&2
21997
21998 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21999 *** to be unable to reliably create shared libraries on AIX.
22000 *** Therefore, libtool is disabling shared libraries support.  If you
22001 *** really care for shared libraries, you may want to modify your PATH
22002 *** so that a non-GNU linker is found, and then restart.
22003
22004 EOF
22005       fi
22006       ;;
22007
22008     amigaos*)
22009       archive_cmds_F77='$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)'
22010       hardcode_libdir_flag_spec_F77='-L$libdir'
22011       hardcode_minus_L_F77=yes
22012
22013       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22014       # that the semantics of dynamic libraries on AmigaOS, at least up
22015       # to version 4, is to share data among multiple programs linked
22016       # with the same dynamic library.  Since this doesn't match the
22017       # behavior of shared libraries on other platforms, we can't use
22018       # them.
22019       ld_shlibs_F77=no
22020       ;;
22021
22022     beos*)
22023       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22024         allow_undefined_flag_F77=unsupported
22025         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22026         # support --undefined.  This deserves some investigation.  FIXME
22027         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22028       else
22029         ld_shlibs_F77=no
22030       fi
22031       ;;
22032
22033     cygwin* | mingw* | pw32*)
22034       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22035       # as there is no search path for DLLs.
22036       hardcode_libdir_flag_spec_F77='-L$libdir'
22037       allow_undefined_flag_F77=unsupported
22038       always_export_symbols_F77=no
22039       enable_shared_with_static_runtimes_F77=yes
22040       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22041
22042       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22043         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22044         # If the export-symbols file already is a .def file (1st line
22045         # is EXPORTS), use it as is; otherwise, prepend...
22046         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22047           cp $export_symbols $output_objdir/$soname.def;
22048         else
22049           echo EXPORTS > $output_objdir/$soname.def;
22050           cat $export_symbols >> $output_objdir/$soname.def;
22051         fi~
22052         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22053       else
22054         ld_shlibs_F77=no
22055       fi
22056       ;;
22057
22058     interix[3-9]*)
22059       hardcode_direct_F77=no
22060       hardcode_shlibpath_var_F77=no
22061       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22062       export_dynamic_flag_spec_F77='${wl}-E'
22063       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22064       # Instead, shared libraries are loaded at an image base (0x10000000 by
22065       # default) and relocated if they conflict, which is a slow very memory
22066       # consuming and fragmenting process.  To avoid this, we pick a random,
22067       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22068       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
22069       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22070       archive_expsym_cmds_F77='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'
22071       ;;
22072
22073     gnu* | linux* | k*bsd*-gnu)
22074       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22075         tmp_addflag=
22076         case $cc_basename,$host_cpu in
22077         pgcc*)                          # Portland Group C compiler
22078           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22079           tmp_addflag=' $pic_flag'
22080           ;;
22081         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22082           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22083           tmp_addflag=' $pic_flag -Mnomain' ;;
22084         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22085           tmp_addflag=' -i_dynamic' ;;
22086         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22087           tmp_addflag=' -i_dynamic -nofor_main' ;;
22088         ifc* | ifort*)                  # Intel Fortran compiler
22089           tmp_addflag=' -nofor_main' ;;
22090         esac
22091         case `$CC -V 2>&1 | sed 5q` in
22092         *Sun\ C*)                       # Sun C 5.9
22093           whole_archive_flag_spec_F77='${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'
22094           tmp_sharedflag='-G' ;;
22095         *Sun\ F*)                       # Sun Fortran 8.3
22096           tmp_sharedflag='-G' ;;
22097         *)
22098           tmp_sharedflag='-shared' ;;
22099         esac
22100         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22101
22102         if test $supports_anon_versioning = yes; then
22103           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22104   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22105   $echo "local: *; };" >> $output_objdir/$libname.ver~
22106           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22107         fi
22108       else
22109         ld_shlibs_F77=no
22110       fi
22111       ;;
22112
22113     netbsd*)
22114       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22115         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22116         wlarc=
22117       else
22118         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22119         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22120       fi
22121       ;;
22122
22123     solaris*)
22124       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22125         ld_shlibs_F77=no
22126         cat <<EOF 1>&2
22127
22128 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22129 *** create shared libraries on Solaris systems.  Therefore, libtool
22130 *** is disabling shared libraries support.  We urge you to upgrade GNU
22131 *** binutils to release 2.9.1 or newer.  Another option is to modify
22132 *** your PATH or compiler configuration so that the native linker is
22133 *** used, and then restart.
22134
22135 EOF
22136       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22137         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22138         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22139       else
22140         ld_shlibs_F77=no
22141       fi
22142       ;;
22143
22144     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22145       case `$LD -v 2>&1` in
22146         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22147         ld_shlibs_F77=no
22148         cat <<_LT_EOF 1>&2
22149
22150 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22151 *** reliably create shared libraries on SCO systems.  Therefore, libtool
22152 *** is disabling shared libraries support.  We urge you to upgrade GNU
22153 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
22154 *** your PATH or compiler configuration so that the native linker is
22155 *** used, and then restart.
22156
22157 _LT_EOF
22158         ;;
22159         *)
22160           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22161             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22162             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22163             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22164           else
22165             ld_shlibs_F77=no
22166           fi
22167         ;;
22168       esac
22169       ;;
22170
22171     sunos4*)
22172       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22173       wlarc=
22174       hardcode_direct_F77=yes
22175       hardcode_shlibpath_var_F77=no
22176       ;;
22177
22178     *)
22179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22180         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22181         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22182       else
22183         ld_shlibs_F77=no
22184       fi
22185       ;;
22186     esac
22187
22188     if test "$ld_shlibs_F77" = no; then
22189       runpath_var=
22190       hardcode_libdir_flag_spec_F77=
22191       export_dynamic_flag_spec_F77=
22192       whole_archive_flag_spec_F77=
22193     fi
22194   else
22195     # PORTME fill in a description of your system's linker (not GNU ld)
22196     case $host_os in
22197     aix3*)
22198       allow_undefined_flag_F77=unsupported
22199       always_export_symbols_F77=yes
22200       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22201       # Note: this linker hardcodes the directories in LIBPATH if there
22202       # are no directories specified by -L.
22203       hardcode_minus_L_F77=yes
22204       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22205         # Neither direct hardcoding nor static linking is supported with a
22206         # broken collect2.
22207         hardcode_direct_F77=unsupported
22208       fi
22209       ;;
22210
22211     aix4* | aix5*)
22212       if test "$host_cpu" = ia64; then
22213         # On IA64, the linker does run time linking by default, so we don't
22214         # have to do anything special.
22215         aix_use_runtimelinking=no
22216         exp_sym_flag='-Bexport'
22217         no_entry_flag=""
22218       else
22219         # If we're using GNU nm, then we don't want the "-C" option.
22220         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22221         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22222           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22223         else
22224           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22225         fi
22226         aix_use_runtimelinking=no
22227
22228         # Test if we are trying to use run time linking or normal
22229         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22230         # need to do runtime linking.
22231         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22232           for ld_flag in $LDFLAGS; do
22233           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22234             aix_use_runtimelinking=yes
22235             break
22236           fi
22237           done
22238           ;;
22239         esac
22240
22241         exp_sym_flag='-bexport'
22242         no_entry_flag='-bnoentry'
22243       fi
22244
22245       # When large executables or shared objects are built, AIX ld can
22246       # have problems creating the table of contents.  If linking a library
22247       # or program results in "error TOC overflow" add -mminimal-toc to
22248       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22249       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22250
22251       archive_cmds_F77=''
22252       hardcode_direct_F77=yes
22253       hardcode_libdir_separator_F77=':'
22254       link_all_deplibs_F77=yes
22255
22256       if test "$GCC" = yes; then
22257         case $host_os in aix4.[012]|aix4.[012].*)
22258         # We only want to do this on AIX 4.2 and lower, the check
22259         # below for broken collect2 doesn't work under 4.3+
22260           collect2name=`${CC} -print-prog-name=collect2`
22261           if test -f "$collect2name" && \
22262            strings "$collect2name" | grep resolve_lib_name >/dev/null
22263           then
22264           # We have reworked collect2
22265           :
22266           else
22267           # We have old collect2
22268           hardcode_direct_F77=unsupported
22269           # It fails to find uninstalled libraries when the uninstalled
22270           # path is not listed in the libpath.  Setting hardcode_minus_L
22271           # to unsupported forces relinking
22272           hardcode_minus_L_F77=yes
22273           hardcode_libdir_flag_spec_F77='-L$libdir'
22274           hardcode_libdir_separator_F77=
22275           fi
22276           ;;
22277         esac
22278         shared_flag='-shared'
22279         if test "$aix_use_runtimelinking" = yes; then
22280           shared_flag="$shared_flag "'${wl}-G'
22281         fi
22282       else
22283         # not using gcc
22284         if test "$host_cpu" = ia64; then
22285         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22286         # chokes on -Wl,-G. The following line is correct:
22287           shared_flag='-G'
22288         else
22289           if test "$aix_use_runtimelinking" = yes; then
22290             shared_flag='${wl}-G'
22291           else
22292             shared_flag='${wl}-bM:SRE'
22293           fi
22294         fi
22295       fi
22296
22297       # It seems that -bexpall does not export symbols beginning with
22298       # underscore (_), so it is better to generate a list of symbols to export.
22299       always_export_symbols_F77=yes
22300       if test "$aix_use_runtimelinking" = yes; then
22301         # Warning - without using the other runtime loading flags (-brtl),
22302         # -berok will link without error, but may produce a broken library.
22303         allow_undefined_flag_F77='-berok'
22304        # Determine the default libpath from the value encoded in an empty executable.
22305        cat >conftest.$ac_ext <<_ACEOF
22306       program main
22307
22308       end
22309 _ACEOF
22310 rm -f conftest.$ac_objext conftest$ac_exeext
22311 if { (ac_try="$ac_link"
22312 case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317   (eval "$ac_link") 2>conftest.er1
22318   ac_status=$?
22319   grep -v '^ *+' conftest.er1 >conftest.err
22320   rm -f conftest.er1
22321   cat conftest.err >&5
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } && {
22324          test -z "$ac_f77_werror_flag" ||
22325          test ! -s conftest.err
22326        } && test -s conftest$ac_exeext &&
22327        $as_test_x conftest$ac_exeext; then
22328
22329 lt_aix_libpath_sed='
22330     /Import File Strings/,/^$/ {
22331         /^0/ {
22332             s/^0  *\(.*\)$/\1/
22333             p
22334         }
22335     }'
22336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22337 # Check for a 64-bit object if we didn't find anything.
22338 if test -z "$aix_libpath"; then
22339   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22340 fi
22341 else
22342   echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345
22346 fi
22347
22348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22349       conftest$ac_exeext conftest.$ac_ext
22350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22351
22352        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22353         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22354        else
22355         if test "$host_cpu" = ia64; then
22356           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22357           allow_undefined_flag_F77="-z nodefs"
22358           archive_expsym_cmds_F77="\$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"
22359         else
22360          # Determine the default libpath from the value encoded in an empty executable.
22361          cat >conftest.$ac_ext <<_ACEOF
22362       program main
22363
22364       end
22365 _ACEOF
22366 rm -f conftest.$ac_objext conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370   *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373   (eval "$ac_link") 2>conftest.er1
22374   ac_status=$?
22375   grep -v '^ *+' conftest.er1 >conftest.err
22376   rm -f conftest.er1
22377   cat conftest.err >&5
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } && {
22380          test -z "$ac_f77_werror_flag" ||
22381          test ! -s conftest.err
22382        } && test -s conftest$ac_exeext &&
22383        $as_test_x conftest$ac_exeext; then
22384
22385 lt_aix_libpath_sed='
22386     /Import File Strings/,/^$/ {
22387         /^0/ {
22388             s/^0  *\(.*\)$/\1/
22389             p
22390         }
22391     }'
22392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22393 # Check for a 64-bit object if we didn't find anything.
22394 if test -z "$aix_libpath"; then
22395   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22396 fi
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401
22402 fi
22403
22404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22405       conftest$ac_exeext conftest.$ac_ext
22406 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22407
22408          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22409           # Warning - without using the other run time loading flags,
22410           # -berok will link without error, but may produce a broken library.
22411           no_undefined_flag_F77=' ${wl}-bernotok'
22412           allow_undefined_flag_F77=' ${wl}-berok'
22413           # Exported symbols can be pulled into shared objects from archives
22414           whole_archive_flag_spec_F77='$convenience'
22415           archive_cmds_need_lc_F77=yes
22416           # This is similar to how AIX traditionally builds its shared libraries.
22417           archive_expsym_cmds_F77="\$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'
22418         fi
22419       fi
22420       ;;
22421
22422     amigaos*)
22423       archive_cmds_F77='$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)'
22424       hardcode_libdir_flag_spec_F77='-L$libdir'
22425       hardcode_minus_L_F77=yes
22426       # see comment about different semantics on the GNU ld section
22427       ld_shlibs_F77=no
22428       ;;
22429
22430     bsdi[45]*)
22431       export_dynamic_flag_spec_F77=-rdynamic
22432       ;;
22433
22434     cygwin* | mingw* | pw32*)
22435       # When not using gcc, we currently assume that we are using
22436       # Microsoft Visual C++.
22437       # hardcode_libdir_flag_spec is actually meaningless, as there is
22438       # no search path for DLLs.
22439       hardcode_libdir_flag_spec_F77=' '
22440       allow_undefined_flag_F77=unsupported
22441       # Tell ltmain to make .lib files, not .a files.
22442       libext=lib
22443       # Tell ltmain to make .dll files, not .so files.
22444       shrext_cmds=".dll"
22445       # FIXME: Setting linknames here is a bad hack.
22446       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22447       # The linker will automatically build a .lib file if we build a DLL.
22448       old_archive_From_new_cmds_F77='true'
22449       # FIXME: Should let the user specify the lib program.
22450       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22451       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22452       enable_shared_with_static_runtimes_F77=yes
22453       ;;
22454
22455     darwin* | rhapsody*)
22456       case $host_os in
22457         rhapsody* | darwin1.[012])
22458          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22459          ;;
22460        *) # Darwin 1.3 on
22461          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22462            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22463          else
22464            case ${MACOSX_DEPLOYMENT_TARGET} in
22465              10.[012])
22466                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22467                ;;
22468              10.*)
22469                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22470                ;;
22471            esac
22472          fi
22473          ;;
22474       esac
22475       archive_cmds_need_lc_F77=no
22476       hardcode_direct_F77=no
22477       hardcode_automatic_F77=yes
22478       hardcode_shlibpath_var_F77=unsupported
22479       whole_archive_flag_spec_F77=''
22480       link_all_deplibs_F77=yes
22481     if test "$GCC" = yes ; then
22482         output_verbose_link_cmd='echo'
22483         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22484       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22485       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22486       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22487       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22488     else
22489       case $cc_basename in
22490         xlc*)
22491          output_verbose_link_cmd='echo'
22492          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22493          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22494           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22495          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22496           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22497           ;;
22498        *)
22499          ld_shlibs_F77=no
22500           ;;
22501       esac
22502     fi
22503       ;;
22504
22505     dgux*)
22506       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507       hardcode_libdir_flag_spec_F77='-L$libdir'
22508       hardcode_shlibpath_var_F77=no
22509       ;;
22510
22511     freebsd1*)
22512       ld_shlibs_F77=no
22513       ;;
22514
22515     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22516     # support.  Future versions do this automatically, but an explicit c++rt0.o
22517     # does not break anything, and helps significantly (at the cost of a little
22518     # extra space).
22519     freebsd2.2*)
22520       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22521       hardcode_libdir_flag_spec_F77='-R$libdir'
22522       hardcode_direct_F77=yes
22523       hardcode_shlibpath_var_F77=no
22524       ;;
22525
22526     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22527     freebsd2*)
22528       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22529       hardcode_direct_F77=yes
22530       hardcode_minus_L_F77=yes
22531       hardcode_shlibpath_var_F77=no
22532       ;;
22533
22534     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22535     freebsd* | dragonfly*)
22536       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22537       hardcode_libdir_flag_spec_F77='-R$libdir'
22538       hardcode_direct_F77=yes
22539       hardcode_shlibpath_var_F77=no
22540       ;;
22541
22542     hpux9*)
22543       if test "$GCC" = yes; then
22544         archive_cmds_F77='$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'
22545       else
22546         archive_cmds_F77='$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'
22547       fi
22548       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22549       hardcode_libdir_separator_F77=:
22550       hardcode_direct_F77=yes
22551
22552       # hardcode_minus_L: Not really in the search PATH,
22553       # but as the default location of the library.
22554       hardcode_minus_L_F77=yes
22555       export_dynamic_flag_spec_F77='${wl}-E'
22556       ;;
22557
22558     hpux10*)
22559       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22560         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22561       else
22562         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22563       fi
22564       if test "$with_gnu_ld" = no; then
22565         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22566         hardcode_libdir_separator_F77=:
22567
22568         hardcode_direct_F77=yes
22569         export_dynamic_flag_spec_F77='${wl}-E'
22570
22571         # hardcode_minus_L: Not really in the search PATH,
22572         # but as the default location of the library.
22573         hardcode_minus_L_F77=yes
22574       fi
22575       ;;
22576
22577     hpux11*)
22578       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22579         case $host_cpu in
22580         hppa*64*)
22581           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22582           ;;
22583         ia64*)
22584           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22585           ;;
22586         *)
22587           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22588           ;;
22589         esac
22590       else
22591         case $host_cpu in
22592         hppa*64*)
22593           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22594           ;;
22595         ia64*)
22596           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22597           ;;
22598         *)
22599           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22600           ;;
22601         esac
22602       fi
22603       if test "$with_gnu_ld" = no; then
22604         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22605         hardcode_libdir_separator_F77=:
22606
22607         case $host_cpu in
22608         hppa*64*|ia64*)
22609           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22610           hardcode_direct_F77=no
22611           hardcode_shlibpath_var_F77=no
22612           ;;
22613         *)
22614           hardcode_direct_F77=yes
22615           export_dynamic_flag_spec_F77='${wl}-E'
22616
22617           # hardcode_minus_L: Not really in the search PATH,
22618           # but as the default location of the library.
22619           hardcode_minus_L_F77=yes
22620           ;;
22621         esac
22622       fi
22623       ;;
22624
22625     irix5* | irix6* | nonstopux*)
22626       if test "$GCC" = yes; then
22627         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22628       else
22629         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22630         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22631       fi
22632       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22633       hardcode_libdir_separator_F77=:
22634       link_all_deplibs_F77=yes
22635       ;;
22636
22637     netbsd*)
22638       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22639         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22640       else
22641         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22642       fi
22643       hardcode_libdir_flag_spec_F77='-R$libdir'
22644       hardcode_direct_F77=yes
22645       hardcode_shlibpath_var_F77=no
22646       ;;
22647
22648     newsos6)
22649       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22650       hardcode_direct_F77=yes
22651       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22652       hardcode_libdir_separator_F77=:
22653       hardcode_shlibpath_var_F77=no
22654       ;;
22655
22656     openbsd*)
22657       if test -f /usr/libexec/ld.so; then
22658         hardcode_direct_F77=yes
22659         hardcode_shlibpath_var_F77=no
22660         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22661           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22662           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22663           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22664           export_dynamic_flag_spec_F77='${wl}-E'
22665         else
22666           case $host_os in
22667            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22668              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22669              hardcode_libdir_flag_spec_F77='-R$libdir'
22670              ;;
22671            *)
22672              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22673              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22674              ;;
22675           esac
22676         fi
22677       else
22678         ld_shlibs_F77=no
22679       fi
22680       ;;
22681
22682     os2*)
22683       hardcode_libdir_flag_spec_F77='-L$libdir'
22684       hardcode_minus_L_F77=yes
22685       allow_undefined_flag_F77=unsupported
22686       archive_cmds_F77='$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'
22687       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22688       ;;
22689
22690     osf3*)
22691       if test "$GCC" = yes; then
22692         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22693         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22694       else
22695         allow_undefined_flag_F77=' -expect_unresolved \*'
22696         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22697       fi
22698       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22699       hardcode_libdir_separator_F77=:
22700       ;;
22701
22702     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22703       if test "$GCC" = yes; then
22704         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22705         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22706         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22707       else
22708         allow_undefined_flag_F77=' -expect_unresolved \*'
22709         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22710         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22711         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22712
22713         # Both c and cxx compiler support -rpath directly
22714         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22715       fi
22716       hardcode_libdir_separator_F77=:
22717       ;;
22718
22719     solaris*)
22720       no_undefined_flag_F77=' -z text'
22721       if test "$GCC" = yes; then
22722         wlarc='${wl}'
22723         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22724         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22725           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22726       else
22727         wlarc=''
22728         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22729         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22730         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22731       fi
22732       hardcode_libdir_flag_spec_F77='-R$libdir'
22733       hardcode_shlibpath_var_F77=no
22734       case $host_os in
22735       solaris2.[0-5] | solaris2.[0-5].*) ;;
22736       *)
22737         # The compiler driver will combine and reorder linker options,
22738         # but understands `-z linker_flag'.  GCC discards it without `$wl',
22739         # but is careful enough not to reorder.
22740         # Supported since Solaris 2.6 (maybe 2.5.1?)
22741         if test "$GCC" = yes; then
22742           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22743         else
22744           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22745         fi
22746         ;;
22747       esac
22748       link_all_deplibs_F77=yes
22749       ;;
22750
22751     sunos4*)
22752       if test "x$host_vendor" = xsequent; then
22753         # Use $CC to link under sequent, because it throws in some extra .o
22754         # files that make .init and .fini sections work.
22755         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22756       else
22757         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22758       fi
22759       hardcode_libdir_flag_spec_F77='-L$libdir'
22760       hardcode_direct_F77=yes
22761       hardcode_minus_L_F77=yes
22762       hardcode_shlibpath_var_F77=no
22763       ;;
22764
22765     sysv4)
22766       case $host_vendor in
22767         sni)
22768           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22769           hardcode_direct_F77=yes # is this really true???
22770         ;;
22771         siemens)
22772           ## LD is ld it makes a PLAMLIB
22773           ## CC just makes a GrossModule.
22774           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22775           reload_cmds_F77='$CC -r -o $output$reload_objs'
22776           hardcode_direct_F77=no
22777         ;;
22778         motorola)
22779           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22780           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22781         ;;
22782       esac
22783       runpath_var='LD_RUN_PATH'
22784       hardcode_shlibpath_var_F77=no
22785       ;;
22786
22787     sysv4.3*)
22788       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22789       hardcode_shlibpath_var_F77=no
22790       export_dynamic_flag_spec_F77='-Bexport'
22791       ;;
22792
22793     sysv4*MP*)
22794       if test -d /usr/nec; then
22795         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22796         hardcode_shlibpath_var_F77=no
22797         runpath_var=LD_RUN_PATH
22798         hardcode_runpath_var=yes
22799         ld_shlibs_F77=yes
22800       fi
22801       ;;
22802
22803     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22804       no_undefined_flag_F77='${wl}-z,text'
22805       archive_cmds_need_lc_F77=no
22806       hardcode_shlibpath_var_F77=no
22807       runpath_var='LD_RUN_PATH'
22808
22809       if test "$GCC" = yes; then
22810         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22811         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22812       else
22813         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22814         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22815       fi
22816       ;;
22817
22818     sysv5* | sco3.2v5* | sco5v6*)
22819       # Note: We can NOT use -z defs as we might desire, because we do not
22820       # link with -lc, and that would cause any symbols used from libc to
22821       # always be unresolved, which means just about no library would
22822       # ever link correctly.  If we're not using GNU ld we use -z text
22823       # though, which does catch some bad symbols but isn't as heavy-handed
22824       # as -z defs.
22825       no_undefined_flag_F77='${wl}-z,text'
22826       allow_undefined_flag_F77='${wl}-z,nodefs'
22827       archive_cmds_need_lc_F77=no
22828       hardcode_shlibpath_var_F77=no
22829       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22830       hardcode_libdir_separator_F77=':'
22831       link_all_deplibs_F77=yes
22832       export_dynamic_flag_spec_F77='${wl}-Bexport'
22833       runpath_var='LD_RUN_PATH'
22834
22835       if test "$GCC" = yes; then
22836         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22837         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22838       else
22839         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22840         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22841       fi
22842       ;;
22843
22844     uts4*)
22845       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22846       hardcode_libdir_flag_spec_F77='-L$libdir'
22847       hardcode_shlibpath_var_F77=no
22848       ;;
22849
22850     *)
22851       ld_shlibs_F77=no
22852       ;;
22853     esac
22854   fi
22855
22856 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22857 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22858 test "$ld_shlibs_F77" = no && can_build_shared=no
22859
22860 #
22861 # Do we need to explicitly link libc?
22862 #
22863 case "x$archive_cmds_need_lc_F77" in
22864 x|xyes)
22865   # Assume -lc should be added
22866   archive_cmds_need_lc_F77=yes
22867
22868   if test "$enable_shared" = yes && test "$GCC" = yes; then
22869     case $archive_cmds_F77 in
22870     *'~'*)
22871       # FIXME: we may have to deal with multi-command sequences.
22872       ;;
22873     '$CC '*)
22874       # Test whether the compiler implicitly links with -lc since on some
22875       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22876       # to ld, don't add -lc before -lgcc.
22877       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22878 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22879       $rm conftest*
22880       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22881
22882       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22883   (eval $ac_compile) 2>&5
22884   ac_status=$?
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } 2>conftest.err; then
22887         soname=conftest
22888         lib=conftest
22889         libobjs=conftest.$ac_objext
22890         deplibs=
22891         wl=$lt_prog_compiler_wl_F77
22892         pic_flag=$lt_prog_compiler_pic_F77
22893         compiler_flags=-v
22894         linker_flags=-v
22895         verstring=
22896         output_objdir=.
22897         libname=conftest
22898         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22899         allow_undefined_flag_F77=
22900         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22901   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); }
22905         then
22906           archive_cmds_need_lc_F77=no
22907         else
22908           archive_cmds_need_lc_F77=yes
22909         fi
22910         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22911       else
22912         cat conftest.err 1>&5
22913       fi
22914       $rm conftest*
22915       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22916 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22917       ;;
22918     esac
22919   fi
22920   ;;
22921 esac
22922
22923 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22925 library_names_spec=
22926 libname_spec='lib$name'
22927 soname_spec=
22928 shrext_cmds=".so"
22929 postinstall_cmds=
22930 postuninstall_cmds=
22931 finish_cmds=
22932 finish_eval=
22933 shlibpath_var=
22934 shlibpath_overrides_runpath=unknown
22935 version_type=none
22936 dynamic_linker="$host_os ld.so"
22937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22938
22939 need_lib_prefix=unknown
22940 hardcode_into_libs=no
22941
22942 # when you set need_version to no, make sure it does not cause -set_version
22943 # flags to be left without arguments
22944 need_version=unknown
22945
22946 case $host_os in
22947 aix3*)
22948   version_type=linux
22949   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22950   shlibpath_var=LIBPATH
22951
22952   # AIX 3 has no versioning support, so we append a major version to the name.
22953   soname_spec='${libname}${release}${shared_ext}$major'
22954   ;;
22955
22956 aix4* | aix5*)
22957   version_type=linux
22958   need_lib_prefix=no
22959   need_version=no
22960   hardcode_into_libs=yes
22961   if test "$host_cpu" = ia64; then
22962     # AIX 5 supports IA64
22963     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22964     shlibpath_var=LD_LIBRARY_PATH
22965   else
22966     # With GCC up to 2.95.x, collect2 would create an import file
22967     # for dependence libraries.  The import file would start with
22968     # the line `#! .'.  This would cause the generated library to
22969     # depend on `.', always an invalid library.  This was fixed in
22970     # development snapshots of GCC prior to 3.0.
22971     case $host_os in
22972       aix4 | aix4.[01] | aix4.[01].*)
22973       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22974            echo ' yes '
22975            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22976         :
22977       else
22978         can_build_shared=no
22979       fi
22980       ;;
22981     esac
22982     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22983     # soname into executable. Probably we can add versioning support to
22984     # collect2, so additional links can be useful in future.
22985     if test "$aix_use_runtimelinking" = yes; then
22986       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22987       # instead of lib<name>.a to let people know that these are not
22988       # typical AIX shared libraries.
22989       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22990     else
22991       # We preserve .a as extension for shared libraries through AIX4.2
22992       # and later when we are not doing run time linking.
22993       library_names_spec='${libname}${release}.a $libname.a'
22994       soname_spec='${libname}${release}${shared_ext}$major'
22995     fi
22996     shlibpath_var=LIBPATH
22997   fi
22998   ;;
22999
23000 amigaos*)
23001   library_names_spec='$libname.ixlibrary $libname.a'
23002   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23003   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'
23004   ;;
23005
23006 beos*)
23007   library_names_spec='${libname}${shared_ext}'
23008   dynamic_linker="$host_os ld.so"
23009   shlibpath_var=LIBRARY_PATH
23010   ;;
23011
23012 bsdi[45]*)
23013   version_type=linux
23014   need_version=no
23015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016   soname_spec='${libname}${release}${shared_ext}$major'
23017   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23018   shlibpath_var=LD_LIBRARY_PATH
23019   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23020   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23021   # the default ld.so.conf also contains /usr/contrib/lib and
23022   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23023   # libtool to hard-code these into programs
23024   ;;
23025
23026 cygwin* | mingw* | pw32*)
23027   version_type=windows
23028   shrext_cmds=".dll"
23029   need_version=no
23030   need_lib_prefix=no
23031
23032   case $GCC,$host_os in
23033   yes,cygwin* | yes,mingw* | yes,pw32*)
23034     library_names_spec='$libname.dll.a'
23035     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23036     postinstall_cmds='base_file=`basename \${file}`~
23037       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23038       dldir=$destdir/`dirname \$dlpath`~
23039       test -d \$dldir || mkdir -p \$dldir~
23040       $install_prog $dir/$dlname \$dldir/$dlname~
23041       chmod a+x \$dldir/$dlname'
23042     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23043       dlpath=$dir/\$dldll~
23044        $rm \$dlpath'
23045     shlibpath_overrides_runpath=yes
23046
23047     case $host_os in
23048     cygwin*)
23049       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23050       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23051       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23052       ;;
23053     mingw*)
23054       # MinGW DLLs use traditional 'lib' prefix
23055       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23056       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23057       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23058         # It is most probably a Windows format PATH printed by
23059         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23060         # path with ; separators, and with drive letters. We can handle the
23061         # drive letters (cygwin fileutils understands them), so leave them,
23062         # especially as we might pass files found there to a mingw objdump,
23063         # which wouldn't understand a cygwinified path. Ahh.
23064         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23065       else
23066         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23067       fi
23068       ;;
23069     pw32*)
23070       # pw32 DLLs use 'pw' prefix rather than 'lib'
23071       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23072       ;;
23073     esac
23074     ;;
23075
23076   *)
23077     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23078     ;;
23079   esac
23080   dynamic_linker='Win32 ld.exe'
23081   # FIXME: first we should search . and the directory the executable is in
23082   shlibpath_var=PATH
23083   ;;
23084
23085 darwin* | rhapsody*)
23086   dynamic_linker="$host_os dyld"
23087   version_type=darwin
23088   need_lib_prefix=no
23089   need_version=no
23090   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23091   soname_spec='${libname}${release}${major}$shared_ext'
23092   shlibpath_overrides_runpath=yes
23093   shlibpath_var=DYLD_LIBRARY_PATH
23094   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23095
23096   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23097   ;;
23098
23099 dgux*)
23100   version_type=linux
23101   need_lib_prefix=no
23102   need_version=no
23103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23104   soname_spec='${libname}${release}${shared_ext}$major'
23105   shlibpath_var=LD_LIBRARY_PATH
23106   ;;
23107
23108 freebsd1*)
23109   dynamic_linker=no
23110   ;;
23111
23112 freebsd* | dragonfly*)
23113   # DragonFly does not have aout.  When/if they implement a new
23114   # versioning mechanism, adjust this.
23115   if test -x /usr/bin/objformat; then
23116     objformat=`/usr/bin/objformat`
23117   else
23118     case $host_os in
23119     freebsd[123]*) objformat=aout ;;
23120     *) objformat=elf ;;
23121     esac
23122   fi
23123   version_type=freebsd-$objformat
23124   case $version_type in
23125     freebsd-elf*)
23126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23127       need_version=no
23128       need_lib_prefix=no
23129       ;;
23130     freebsd-*)
23131       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23132       need_version=yes
23133       ;;
23134   esac
23135   shlibpath_var=LD_LIBRARY_PATH
23136   case $host_os in
23137   freebsd2*)
23138     shlibpath_overrides_runpath=yes
23139     ;;
23140   freebsd3.[01]* | freebsdelf3.[01]*)
23141     shlibpath_overrides_runpath=yes
23142     hardcode_into_libs=yes
23143     ;;
23144   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23145   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23146     shlibpath_overrides_runpath=no
23147     hardcode_into_libs=yes
23148     ;;
23149   *) # from 4.6 on, and DragonFly
23150     shlibpath_overrides_runpath=yes
23151     hardcode_into_libs=yes
23152     ;;
23153   esac
23154   ;;
23155
23156 gnu*)
23157   version_type=linux
23158   need_lib_prefix=no
23159   need_version=no
23160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23161   soname_spec='${libname}${release}${shared_ext}$major'
23162   shlibpath_var=LD_LIBRARY_PATH
23163   hardcode_into_libs=yes
23164   ;;
23165
23166 hpux9* | hpux10* | hpux11*)
23167   # Give a soname corresponding to the major version so that dld.sl refuses to
23168   # link against other versions.
23169   version_type=sunos
23170   need_lib_prefix=no
23171   need_version=no
23172   case $host_cpu in
23173   ia64*)
23174     shrext_cmds='.so'
23175     hardcode_into_libs=yes
23176     dynamic_linker="$host_os dld.so"
23177     shlibpath_var=LD_LIBRARY_PATH
23178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23180     soname_spec='${libname}${release}${shared_ext}$major'
23181     if test "X$HPUX_IA64_MODE" = X32; then
23182       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23183     else
23184       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23185     fi
23186     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23187     ;;
23188    hppa*64*)
23189      shrext_cmds='.sl'
23190      hardcode_into_libs=yes
23191      dynamic_linker="$host_os dld.sl"
23192      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23193      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23194      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23195      soname_spec='${libname}${release}${shared_ext}$major'
23196      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23197      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23198      ;;
23199    *)
23200     shrext_cmds='.sl'
23201     dynamic_linker="$host_os dld.sl"
23202     shlibpath_var=SHLIB_PATH
23203     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23205     soname_spec='${libname}${release}${shared_ext}$major'
23206     ;;
23207   esac
23208   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23209   postinstall_cmds='chmod 555 $lib'
23210   ;;
23211
23212 interix[3-9]*)
23213   version_type=linux
23214   need_lib_prefix=no
23215   need_version=no
23216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23217   soname_spec='${libname}${release}${shared_ext}$major'
23218   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23219   shlibpath_var=LD_LIBRARY_PATH
23220   shlibpath_overrides_runpath=no
23221   hardcode_into_libs=yes
23222   ;;
23223
23224 irix5* | irix6* | nonstopux*)
23225   case $host_os in
23226     nonstopux*) version_type=nonstopux ;;
23227     *)
23228         if test "$lt_cv_prog_gnu_ld" = yes; then
23229                 version_type=linux
23230         else
23231                 version_type=irix
23232         fi ;;
23233   esac
23234   need_lib_prefix=no
23235   need_version=no
23236   soname_spec='${libname}${release}${shared_ext}$major'
23237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23238   case $host_os in
23239   irix5* | nonstopux*)
23240     libsuff= shlibsuff=
23241     ;;
23242   *)
23243     case $LD in # libtool.m4 will add one of these switches to LD
23244     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23245       libsuff= shlibsuff= libmagic=32-bit;;
23246     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23247       libsuff=32 shlibsuff=N32 libmagic=N32;;
23248     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23249       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23250     *) libsuff= shlibsuff= libmagic=never-match;;
23251     esac
23252     ;;
23253   esac
23254   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23255   shlibpath_overrides_runpath=no
23256   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23257   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23258   hardcode_into_libs=yes
23259   ;;
23260
23261 # No shared lib support for Linux oldld, aout, or coff.
23262 linux*oldld* | linux*aout* | linux*coff*)
23263   dynamic_linker=no
23264   ;;
23265
23266 # This must be Linux ELF.
23267 linux* | k*bsd*-gnu)
23268   version_type=linux
23269   need_lib_prefix=no
23270   need_version=no
23271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23272   soname_spec='${libname}${release}${shared_ext}$major'
23273   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23274   shlibpath_var=LD_LIBRARY_PATH
23275   shlibpath_overrides_runpath=no
23276   # This implies no fast_install, which is unacceptable.
23277   # Some rework will be needed to allow for fast_install
23278   # before this can be enabled.
23279   hardcode_into_libs=yes
23280   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23281   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23282
23283   # Append ld.so.conf contents to the search path
23284   if test -f /etc/ld.so.conf; then
23285     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' ' '`
23286     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
23287   fi
23288
23289   # We used to test for /lib/ld.so.1 and disable shared libraries on
23290   # powerpc, because MkLinux only supported shared libraries with the
23291   # GNU dynamic linker.  Since this was broken with cross compilers,
23292   # most powerpc-linux boxes support dynamic linking these days and
23293   # people can always --disable-shared, the test was removed, and we
23294   # assume the GNU/Linux dynamic linker is in use.
23295   dynamic_linker='GNU/Linux ld.so'
23296   ;;
23297
23298 netbsd*)
23299   version_type=sunos
23300   need_lib_prefix=no
23301   need_version=no
23302   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23303     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23304     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23305     dynamic_linker='NetBSD (a.out) ld.so'
23306   else
23307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23308     soname_spec='${libname}${release}${shared_ext}$major'
23309     dynamic_linker='NetBSD ld.elf_so'
23310   fi
23311   shlibpath_var=LD_LIBRARY_PATH
23312   shlibpath_overrides_runpath=yes
23313   hardcode_into_libs=yes
23314   ;;
23315
23316 newsos6)
23317   version_type=linux
23318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23319   shlibpath_var=LD_LIBRARY_PATH
23320   shlibpath_overrides_runpath=yes
23321   ;;
23322
23323 nto-qnx*)
23324   version_type=linux
23325   need_lib_prefix=no
23326   need_version=no
23327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23328   soname_spec='${libname}${release}${shared_ext}$major'
23329   shlibpath_var=LD_LIBRARY_PATH
23330   shlibpath_overrides_runpath=yes
23331   ;;
23332
23333 openbsd*)
23334   version_type=sunos
23335   sys_lib_dlsearch_path_spec="/usr/lib"
23336   need_lib_prefix=no
23337   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23338   case $host_os in
23339     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23340     *)                         need_version=no  ;;
23341   esac
23342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23344   shlibpath_var=LD_LIBRARY_PATH
23345   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23346     case $host_os in
23347       openbsd2.[89] | openbsd2.[89].*)
23348         shlibpath_overrides_runpath=no
23349         ;;
23350       *)
23351         shlibpath_overrides_runpath=yes
23352         ;;
23353       esac
23354   else
23355     shlibpath_overrides_runpath=yes
23356   fi
23357   ;;
23358
23359 os2*)
23360   libname_spec='$name'
23361   shrext_cmds=".dll"
23362   need_lib_prefix=no
23363   library_names_spec='$libname${shared_ext} $libname.a'
23364   dynamic_linker='OS/2 ld.exe'
23365   shlibpath_var=LIBPATH
23366   ;;
23367
23368 osf3* | osf4* | osf5*)
23369   version_type=osf
23370   need_lib_prefix=no
23371   need_version=no
23372   soname_spec='${libname}${release}${shared_ext}$major'
23373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23374   shlibpath_var=LD_LIBRARY_PATH
23375   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23376   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23377   ;;
23378
23379 rdos*)
23380   dynamic_linker=no
23381   ;;
23382
23383 solaris*)
23384   version_type=linux
23385   need_lib_prefix=no
23386   need_version=no
23387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23388   soname_spec='${libname}${release}${shared_ext}$major'
23389   shlibpath_var=LD_LIBRARY_PATH
23390   shlibpath_overrides_runpath=yes
23391   hardcode_into_libs=yes
23392   # ldd complains unless libraries are executable
23393   postinstall_cmds='chmod +x $lib'
23394   ;;
23395
23396 sunos4*)
23397   version_type=sunos
23398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23399   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23400   shlibpath_var=LD_LIBRARY_PATH
23401   shlibpath_overrides_runpath=yes
23402   if test "$with_gnu_ld" = yes; then
23403     need_lib_prefix=no
23404   fi
23405   need_version=yes
23406   ;;
23407
23408 sysv4 | sysv4.3*)
23409   version_type=linux
23410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23411   soname_spec='${libname}${release}${shared_ext}$major'
23412   shlibpath_var=LD_LIBRARY_PATH
23413   case $host_vendor in
23414     sni)
23415       shlibpath_overrides_runpath=no
23416       need_lib_prefix=no
23417       export_dynamic_flag_spec='${wl}-Blargedynsym'
23418       runpath_var=LD_RUN_PATH
23419       ;;
23420     siemens)
23421       need_lib_prefix=no
23422       ;;
23423     motorola)
23424       need_lib_prefix=no
23425       need_version=no
23426       shlibpath_overrides_runpath=no
23427       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23428       ;;
23429   esac
23430   ;;
23431
23432 sysv4*MP*)
23433   if test -d /usr/nec ;then
23434     version_type=linux
23435     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23436     soname_spec='$libname${shared_ext}.$major'
23437     shlibpath_var=LD_LIBRARY_PATH
23438   fi
23439   ;;
23440
23441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23442   version_type=freebsd-elf
23443   need_lib_prefix=no
23444   need_version=no
23445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23446   soname_spec='${libname}${release}${shared_ext}$major'
23447   shlibpath_var=LD_LIBRARY_PATH
23448   hardcode_into_libs=yes
23449   if test "$with_gnu_ld" = yes; then
23450     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23451     shlibpath_overrides_runpath=no
23452   else
23453     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23454     shlibpath_overrides_runpath=yes
23455     case $host_os in
23456       sco3.2v5*)
23457         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23458         ;;
23459     esac
23460   fi
23461   sys_lib_dlsearch_path_spec='/usr/lib'
23462   ;;
23463
23464 uts4*)
23465   version_type=linux
23466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23467   soname_spec='${libname}${release}${shared_ext}$major'
23468   shlibpath_var=LD_LIBRARY_PATH
23469   ;;
23470
23471 *)
23472   dynamic_linker=no
23473   ;;
23474 esac
23475 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23476 echo "${ECHO_T}$dynamic_linker" >&6; }
23477 test "$dynamic_linker" = no && can_build_shared=no
23478
23479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23480 if test "$GCC" = yes; then
23481   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23482 fi
23483
23484 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23485 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23486 hardcode_action_F77=
23487 if test -n "$hardcode_libdir_flag_spec_F77" || \
23488    test -n "$runpath_var_F77" || \
23489    test "X$hardcode_automatic_F77" = "Xyes" ; then
23490
23491   # We can hardcode non-existant directories.
23492   if test "$hardcode_direct_F77" != no &&
23493      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23494      # have to relink, otherwise we might link with an installed library
23495      # when we should be linking with a yet-to-be-installed one
23496      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23497      test "$hardcode_minus_L_F77" != no; then
23498     # Linking always hardcodes the temporary library directory.
23499     hardcode_action_F77=relink
23500   else
23501     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23502     hardcode_action_F77=immediate
23503   fi
23504 else
23505   # We cannot hardcode anything, or else we can only hardcode existing
23506   # directories.
23507   hardcode_action_F77=unsupported
23508 fi
23509 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23510 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23511
23512 if test "$hardcode_action_F77" = relink; then
23513   # Fast installation is not supported
23514   enable_fast_install=no
23515 elif test "$shlibpath_overrides_runpath" = yes ||
23516      test "$enable_shared" = no; then
23517   # Fast installation is not necessary
23518   enable_fast_install=needless
23519 fi
23520
23521
23522 # The else clause should only fire when bootstrapping the
23523 # libtool distribution, otherwise you forgot to ship ltmain.sh
23524 # with your package, and you will get complaints that there are
23525 # no rules to generate ltmain.sh.
23526 if test -f "$ltmain"; then
23527   # See if we are running on zsh, and set the options which allow our commands through
23528   # without removal of \ escapes.
23529   if test -n "${ZSH_VERSION+set}" ; then
23530     setopt NO_GLOB_SUBST
23531   fi
23532   # Now quote all the things that may contain metacharacters while being
23533   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23534   # variables and quote the copies for generation of the libtool script.
23535   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23536     SED SHELL STRIP \
23537     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23538     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23539     deplibs_check_method reload_flag reload_cmds need_locks \
23540     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23541     lt_cv_sys_global_symbol_to_c_name_address \
23542     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23543     old_postinstall_cmds old_postuninstall_cmds \
23544     compiler_F77 \
23545     CC_F77 \
23546     LD_F77 \
23547     lt_prog_compiler_wl_F77 \
23548     lt_prog_compiler_pic_F77 \
23549     lt_prog_compiler_static_F77 \
23550     lt_prog_compiler_no_builtin_flag_F77 \
23551     export_dynamic_flag_spec_F77 \
23552     thread_safe_flag_spec_F77 \
23553     whole_archive_flag_spec_F77 \
23554     enable_shared_with_static_runtimes_F77 \
23555     old_archive_cmds_F77 \
23556     old_archive_from_new_cmds_F77 \
23557     predep_objects_F77 \
23558     postdep_objects_F77 \
23559     predeps_F77 \
23560     postdeps_F77 \
23561     compiler_lib_search_path_F77 \
23562     archive_cmds_F77 \
23563     archive_expsym_cmds_F77 \
23564     postinstall_cmds_F77 \
23565     postuninstall_cmds_F77 \
23566     old_archive_from_expsyms_cmds_F77 \
23567     allow_undefined_flag_F77 \
23568     no_undefined_flag_F77 \
23569     export_symbols_cmds_F77 \
23570     hardcode_libdir_flag_spec_F77 \
23571     hardcode_libdir_flag_spec_ld_F77 \
23572     hardcode_libdir_separator_F77 \
23573     hardcode_automatic_F77 \
23574     module_cmds_F77 \
23575     module_expsym_cmds_F77 \
23576     lt_cv_prog_compiler_c_o_F77 \
23577     fix_srcfile_path_F77 \
23578     exclude_expsyms_F77 \
23579     include_expsyms_F77; do
23580
23581     case $var in
23582     old_archive_cmds_F77 | \
23583     old_archive_from_new_cmds_F77 | \
23584     archive_cmds_F77 | \
23585     archive_expsym_cmds_F77 | \
23586     module_cmds_F77 | \
23587     module_expsym_cmds_F77 | \
23588     old_archive_from_expsyms_cmds_F77 | \
23589     export_symbols_cmds_F77 | \
23590     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23591     postinstall_cmds | postuninstall_cmds | \
23592     old_postinstall_cmds | old_postuninstall_cmds | \
23593     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23594       # Double-quote double-evaled strings.
23595       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23596       ;;
23597     *)
23598       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23599       ;;
23600     esac
23601   done
23602
23603   case $lt_echo in
23604   *'\$0 --fallback-echo"')
23605     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23606     ;;
23607   esac
23608
23609 cfgfile="$ofile"
23610
23611   cat <<__EOF__ >> "$cfgfile"
23612 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23613
23614 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23615
23616 # Shell to use when invoking shell scripts.
23617 SHELL=$lt_SHELL
23618
23619 # Whether or not to build shared libraries.
23620 build_libtool_libs=$enable_shared
23621
23622 # Whether or not to build static libraries.
23623 build_old_libs=$enable_static
23624
23625 # Whether or not to add -lc for building shared libraries.
23626 build_libtool_need_lc=$archive_cmds_need_lc_F77
23627
23628 # Whether or not to disallow shared libs when runtime libs are static
23629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23630
23631 # Whether or not to optimize for fast installation.
23632 fast_install=$enable_fast_install
23633
23634 # The host system.
23635 host_alias=$host_alias
23636 host=$host
23637 host_os=$host_os
23638
23639 # The build system.
23640 build_alias=$build_alias
23641 build=$build
23642 build_os=$build_os
23643
23644 # An echo program that does not interpret backslashes.
23645 echo=$lt_echo
23646
23647 # The archiver.
23648 AR=$lt_AR
23649 AR_FLAGS=$lt_AR_FLAGS
23650
23651 # A C compiler.
23652 LTCC=$lt_LTCC
23653
23654 # LTCC compiler flags.
23655 LTCFLAGS=$lt_LTCFLAGS
23656
23657 # A language-specific compiler.
23658 CC=$lt_compiler_F77
23659
23660 # Is the compiler the GNU C compiler?
23661 with_gcc=$GCC_F77
23662
23663 # An ERE matcher.
23664 EGREP=$lt_EGREP
23665
23666 # The linker used to build libraries.
23667 LD=$lt_LD_F77
23668
23669 # Whether we need hard or soft links.
23670 LN_S=$lt_LN_S
23671
23672 # A BSD-compatible nm program.
23673 NM=$lt_NM
23674
23675 # A symbol stripping program
23676 STRIP=$lt_STRIP
23677
23678 # Used to examine libraries when file_magic_cmd begins "file"
23679 MAGIC_CMD=$MAGIC_CMD
23680
23681 # Used on cygwin: DLL creation program.
23682 DLLTOOL="$DLLTOOL"
23683
23684 # Used on cygwin: object dumper.
23685 OBJDUMP="$OBJDUMP"
23686
23687 # Used on cygwin: assembler.
23688 AS="$AS"
23689
23690 # The name of the directory that contains temporary libtool files.
23691 objdir=$objdir
23692
23693 # How to create reloadable object files.
23694 reload_flag=$lt_reload_flag
23695 reload_cmds=$lt_reload_cmds
23696
23697 # How to pass a linker flag through the compiler.
23698 wl=$lt_lt_prog_compiler_wl_F77
23699
23700 # Object file suffix (normally "o").
23701 objext="$ac_objext"
23702
23703 # Old archive suffix (normally "a").
23704 libext="$libext"
23705
23706 # Shared library suffix (normally ".so").
23707 shrext_cmds='$shrext_cmds'
23708
23709 # Executable file suffix (normally "").
23710 exeext="$exeext"
23711
23712 # Additional compiler flags for building library objects.
23713 pic_flag=$lt_lt_prog_compiler_pic_F77
23714 pic_mode=$pic_mode
23715
23716 # What is the maximum length of a command?
23717 max_cmd_len=$lt_cv_sys_max_cmd_len
23718
23719 # Does compiler simultaneously support -c and -o options?
23720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23721
23722 # Must we lock files when doing compilation?
23723 need_locks=$lt_need_locks
23724
23725 # Do we need the lib prefix for modules?
23726 need_lib_prefix=$need_lib_prefix
23727
23728 # Do we need a version for libraries?
23729 need_version=$need_version
23730
23731 # Whether dlopen is supported.
23732 dlopen_support=$enable_dlopen
23733
23734 # Whether dlopen of programs is supported.
23735 dlopen_self=$enable_dlopen_self
23736
23737 # Whether dlopen of statically linked programs is supported.
23738 dlopen_self_static=$enable_dlopen_self_static
23739
23740 # Compiler flag to prevent dynamic linking.
23741 link_static_flag=$lt_lt_prog_compiler_static_F77
23742
23743 # Compiler flag to turn off builtin functions.
23744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23745
23746 # Compiler flag to allow reflexive dlopens.
23747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23748
23749 # Compiler flag to generate shared objects directly from archives.
23750 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23751
23752 # Compiler flag to generate thread-safe objects.
23753 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23754
23755 # Library versioning type.
23756 version_type=$version_type
23757
23758 # Format of library name prefix.
23759 libname_spec=$lt_libname_spec
23760
23761 # List of archive names.  First name is the real one, the rest are links.
23762 # The last name is the one that the linker finds with -lNAME.
23763 library_names_spec=$lt_library_names_spec
23764
23765 # The coded name of the library, if different from the real name.
23766 soname_spec=$lt_soname_spec
23767
23768 # Commands used to build and install an old-style archive.
23769 RANLIB=$lt_RANLIB
23770 old_archive_cmds=$lt_old_archive_cmds_F77
23771 old_postinstall_cmds=$lt_old_postinstall_cmds
23772 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23773
23774 # Create an old-style archive from a shared archive.
23775 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23776
23777 # Create a temporary old-style archive to link instead of a shared archive.
23778 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23779
23780 # Commands used to build and install a shared archive.
23781 archive_cmds=$lt_archive_cmds_F77
23782 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23783 postinstall_cmds=$lt_postinstall_cmds
23784 postuninstall_cmds=$lt_postuninstall_cmds
23785
23786 # Commands used to build a loadable module (assumed same as above if empty)
23787 module_cmds=$lt_module_cmds_F77
23788 module_expsym_cmds=$lt_module_expsym_cmds_F77
23789
23790 # Commands to strip libraries.
23791 old_striplib=$lt_old_striplib
23792 striplib=$lt_striplib
23793
23794 # Dependencies to place before the objects being linked to create a
23795 # shared library.
23796 predep_objects=$lt_predep_objects_F77
23797
23798 # Dependencies to place after the objects being linked to create a
23799 # shared library.
23800 postdep_objects=$lt_postdep_objects_F77
23801
23802 # Dependencies to place before the objects being linked to create a
23803 # shared library.
23804 predeps=$lt_predeps_F77
23805
23806 # Dependencies to place after the objects being linked to create a
23807 # shared library.
23808 postdeps=$lt_postdeps_F77
23809
23810 # The library search path used internally by the compiler when linking
23811 # a shared library.
23812 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23813
23814 # Method to check whether dependent libraries are shared objects.
23815 deplibs_check_method=$lt_deplibs_check_method
23816
23817 # Command to use when deplibs_check_method == file_magic.
23818 file_magic_cmd=$lt_file_magic_cmd
23819
23820 # Flag that allows shared libraries with undefined symbols to be built.
23821 allow_undefined_flag=$lt_allow_undefined_flag_F77
23822
23823 # Flag that forces no undefined symbols.
23824 no_undefined_flag=$lt_no_undefined_flag_F77
23825
23826 # Commands used to finish a libtool library installation in a directory.
23827 finish_cmds=$lt_finish_cmds
23828
23829 # Same as above, but a single script fragment to be evaled but not shown.
23830 finish_eval=$lt_finish_eval
23831
23832 # Take the output of nm and produce a listing of raw symbols and C names.
23833 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23834
23835 # Transform the output of nm in a proper C declaration
23836 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23837
23838 # Transform the output of nm in a C name address pair
23839 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23840
23841 # This is the shared library runtime path variable.
23842 runpath_var=$runpath_var
23843
23844 # This is the shared library path variable.
23845 shlibpath_var=$shlibpath_var
23846
23847 # Is shlibpath searched before the hard-coded library search path?
23848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23849
23850 # How to hardcode a shared library path into an executable.
23851 hardcode_action=$hardcode_action_F77
23852
23853 # Whether we should hardcode library paths into libraries.
23854 hardcode_into_libs=$hardcode_into_libs
23855
23856 # Flag to hardcode \$libdir into a binary during linking.
23857 # This must work even if \$libdir does not exist.
23858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23859
23860 # If ld is used when linking, flag to hardcode \$libdir into
23861 # a binary during linking. This must work even if \$libdir does
23862 # not exist.
23863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23864
23865 # Whether we need a single -rpath flag with a separated argument.
23866 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23867
23868 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23869 # resulting binary.
23870 hardcode_direct=$hardcode_direct_F77
23871
23872 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23873 # resulting binary.
23874 hardcode_minus_L=$hardcode_minus_L_F77
23875
23876 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23877 # the resulting binary.
23878 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23879
23880 # Set to yes if building a shared library automatically hardcodes DIR into the library
23881 # and all subsequent libraries and executables linked against it.
23882 hardcode_automatic=$hardcode_automatic_F77
23883
23884 # Variables whose values should be saved in libtool wrapper scripts and
23885 # restored at relink time.
23886 variables_saved_for_relink="$variables_saved_for_relink"
23887
23888 # Whether libtool must link a program against all its dependency libraries.
23889 link_all_deplibs=$link_all_deplibs_F77
23890
23891 # Compile-time system search path for libraries
23892 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23893
23894 # Run-time system search path for libraries
23895 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23896
23897 # Fix the shell variable \$srcfile for the compiler.
23898 fix_srcfile_path=$lt_fix_srcfile_path
23899
23900 # Set to yes if exported symbols are required.
23901 always_export_symbols=$always_export_symbols_F77
23902
23903 # The commands to list exported symbols.
23904 export_symbols_cmds=$lt_export_symbols_cmds_F77
23905
23906 # The commands to extract the exported symbol list from a shared archive.
23907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23908
23909 # Symbols that should not be listed in the preloaded symbols.
23910 exclude_expsyms=$lt_exclude_expsyms_F77
23911
23912 # Symbols that must always be exported.
23913 include_expsyms=$lt_include_expsyms_F77
23914
23915 # ### END LIBTOOL TAG CONFIG: $tagname
23916
23917 __EOF__
23918
23919
23920 else
23921   # If there is no Makefile yet, we rely on a make rule to execute
23922   # `config.status --recheck' to rerun these tests and create the
23923   # libtool script then.
23924   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23925   if test -f "$ltmain_in"; then
23926     test -f Makefile && make "$ltmain"
23927   fi
23928 fi
23929
23930
23931 ac_ext=c
23932 ac_cpp='$CPP $CPPFLAGS'
23933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23936
23937 CC="$lt_save_CC"
23938
23939         else
23940           tagname=""
23941         fi
23942         ;;
23943
23944       GCJ)
23945         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23946
23947
23948 # Source file extension for Java test sources.
23949 ac_ext=java
23950
23951 # Object file extension for compiled Java test sources.
23952 objext=o
23953 objext_GCJ=$objext
23954
23955 # Code to be used in simple compile tests
23956 lt_simple_compile_test_code="class foo {}"
23957
23958 # Code to be used in simple link tests
23959 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23960
23961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23962
23963 # If no C compiler was specified, use CC.
23964 LTCC=${LTCC-"$CC"}
23965
23966 # If no C compiler flags were specified, use CFLAGS.
23967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23968
23969 # Allow CC to be a program name with arguments.
23970 compiler=$CC
23971
23972
23973 # save warnings/boilerplate of simple test code
23974 ac_outfile=conftest.$ac_objext
23975 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23977 _lt_compiler_boilerplate=`cat conftest.err`
23978 $rm conftest*
23979
23980 ac_outfile=conftest.$ac_objext
23981 echo "$lt_simple_link_test_code" >conftest.$ac_ext
23982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23983 _lt_linker_boilerplate=`cat conftest.err`
23984 $rm conftest*
23985
23986
23987 # Allow CC to be a program name with arguments.
23988 lt_save_CC="$CC"
23989 CC=${GCJ-"gcj"}
23990 compiler=$CC
23991 compiler_GCJ=$CC
23992 for cc_temp in $compiler""; do
23993   case $cc_temp in
23994     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23995     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23996     \-*) ;;
23997     *) break;;
23998   esac
23999 done
24000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24001
24002
24003 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24004 archive_cmds_need_lc_GCJ=no
24005
24006 old_archive_cmds_GCJ=$old_archive_cmds
24007
24008
24009 lt_prog_compiler_no_builtin_flag_GCJ=
24010
24011 if test "$GCC" = yes; then
24012   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24013
24014
24015 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24016 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24017 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24018   echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020   lt_cv_prog_compiler_rtti_exceptions=no
24021   ac_outfile=conftest.$ac_objext
24022    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24023    lt_compiler_flag="-fno-rtti -fno-exceptions"
24024    # Insert the option either (1) after the last *FLAGS variable, or
24025    # (2) before a word containing "conftest.", or (3) at the end.
24026    # Note that $ac_compile itself does not contain backslashes and begins
24027    # with a dollar sign (not a hyphen), so the echo should work correctly.
24028    # The option is referenced via a variable to avoid confusing sed.
24029    lt_compile=`echo "$ac_compile" | $SED \
24030    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24031    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24032    -e 's:$: $lt_compiler_flag:'`
24033    (eval echo "\"\$as_me:24033: $lt_compile\"" >&5)
24034    (eval "$lt_compile" 2>conftest.err)
24035    ac_status=$?
24036    cat conftest.err >&5
24037    echo "$as_me:24037: \$? = $ac_status" >&5
24038    if (exit $ac_status) && test -s "$ac_outfile"; then
24039      # The compiler can only warn and ignore the option if not recognized
24040      # So say no if there are warnings other than the usual output.
24041      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24042      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24043      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24044        lt_cv_prog_compiler_rtti_exceptions=yes
24045      fi
24046    fi
24047    $rm conftest*
24048
24049 fi
24050 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24051 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24052
24053 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24054     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24055 else
24056     :
24057 fi
24058
24059 fi
24060
24061 lt_prog_compiler_wl_GCJ=
24062 lt_prog_compiler_pic_GCJ=
24063 lt_prog_compiler_static_GCJ=
24064
24065 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24066 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24067
24068   if test "$GCC" = yes; then
24069     lt_prog_compiler_wl_GCJ='-Wl,'
24070     lt_prog_compiler_static_GCJ='-static'
24071
24072     case $host_os in
24073       aix*)
24074       # All AIX code is PIC.
24075       if test "$host_cpu" = ia64; then
24076         # AIX 5 now supports IA64 processor
24077         lt_prog_compiler_static_GCJ='-Bstatic'
24078       fi
24079       ;;
24080
24081     amigaos*)
24082       # FIXME: we need at least 68020 code to build shared libraries, but
24083       # adding the `-m68020' flag to GCC prevents building anything better,
24084       # like `-m68040'.
24085       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24086       ;;
24087
24088     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24089       # PIC is the default for these OSes.
24090       ;;
24091
24092     mingw* | cygwin* | pw32* | os2*)
24093       # This hack is so that the source file can tell whether it is being
24094       # built for inclusion in a dll (and should export symbols for example).
24095       # Although the cygwin gcc ignores -fPIC, still need this for old-style
24096       # (--disable-auto-import) libraries
24097       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24098       ;;
24099
24100     darwin* | rhapsody*)
24101       # PIC is the default on this platform
24102       # Common symbols not allowed in MH_DYLIB files
24103       lt_prog_compiler_pic_GCJ='-fno-common'
24104       ;;
24105
24106     interix[3-9]*)
24107       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24108       # Instead, we relocate shared libraries at runtime.
24109       ;;
24110
24111     msdosdjgpp*)
24112       # Just because we use GCC doesn't mean we suddenly get shared libraries
24113       # on systems that don't support them.
24114       lt_prog_compiler_can_build_shared_GCJ=no
24115       enable_shared=no
24116       ;;
24117
24118     sysv4*MP*)
24119       if test -d /usr/nec; then
24120         lt_prog_compiler_pic_GCJ=-Kconform_pic
24121       fi
24122       ;;
24123
24124     hpux*)
24125       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24126       # not for PA HP-UX.
24127       case $host_cpu in
24128       hppa*64*|ia64*)
24129         # +Z the default
24130         ;;
24131       *)
24132         lt_prog_compiler_pic_GCJ='-fPIC'
24133         ;;
24134       esac
24135       ;;
24136
24137     *)
24138       lt_prog_compiler_pic_GCJ='-fPIC'
24139       ;;
24140     esac
24141   else
24142     # PORTME Check for flag to pass linker flags through the system compiler.
24143     case $host_os in
24144     aix*)
24145       lt_prog_compiler_wl_GCJ='-Wl,'
24146       if test "$host_cpu" = ia64; then
24147         # AIX 5 now supports IA64 processor
24148         lt_prog_compiler_static_GCJ='-Bstatic'
24149       else
24150         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24151       fi
24152       ;;
24153       darwin*)
24154         # PIC is the default on this platform
24155         # Common symbols not allowed in MH_DYLIB files
24156        case $cc_basename in
24157          xlc*)
24158          lt_prog_compiler_pic_GCJ='-qnocommon'
24159          lt_prog_compiler_wl_GCJ='-Wl,'
24160          ;;
24161        esac
24162        ;;
24163
24164     mingw* | cygwin* | pw32* | os2*)
24165       # This hack is so that the source file can tell whether it is being
24166       # built for inclusion in a dll (and should export symbols for example).
24167       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24168       ;;
24169
24170     hpux9* | hpux10* | hpux11*)
24171       lt_prog_compiler_wl_GCJ='-Wl,'
24172       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24173       # not for PA HP-UX.
24174       case $host_cpu in
24175       hppa*64*|ia64*)
24176         # +Z the default
24177         ;;
24178       *)
24179         lt_prog_compiler_pic_GCJ='+Z'
24180         ;;
24181       esac
24182       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24183       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24184       ;;
24185
24186     irix5* | irix6* | nonstopux*)
24187       lt_prog_compiler_wl_GCJ='-Wl,'
24188       # PIC (with -KPIC) is the default.
24189       lt_prog_compiler_static_GCJ='-non_shared'
24190       ;;
24191
24192     newsos6)
24193       lt_prog_compiler_pic_GCJ='-KPIC'
24194       lt_prog_compiler_static_GCJ='-Bstatic'
24195       ;;
24196
24197     linux* | k*bsd*-gnu)
24198       case $cc_basename in
24199       icc* | ecc*)
24200         lt_prog_compiler_wl_GCJ='-Wl,'
24201         lt_prog_compiler_pic_GCJ='-KPIC'
24202         lt_prog_compiler_static_GCJ='-static'
24203         ;;
24204       pgcc* | pgf77* | pgf90* | pgf95*)
24205         # Portland Group compilers (*not* the Pentium gcc compiler,
24206         # which looks to be a dead project)
24207         lt_prog_compiler_wl_GCJ='-Wl,'
24208         lt_prog_compiler_pic_GCJ='-fpic'
24209         lt_prog_compiler_static_GCJ='-Bstatic'
24210         ;;
24211       ccc*)
24212         lt_prog_compiler_wl_GCJ='-Wl,'
24213         # All Alpha code is PIC.
24214         lt_prog_compiler_static_GCJ='-non_shared'
24215         ;;
24216       *)
24217         case `$CC -V 2>&1 | sed 5q` in
24218         *Sun\ C*)
24219           # Sun C 5.9
24220           lt_prog_compiler_pic_GCJ='-KPIC'
24221           lt_prog_compiler_static_GCJ='-Bstatic'
24222           lt_prog_compiler_wl_GCJ='-Wl,'
24223           ;;
24224         *Sun\ F*)
24225           # Sun Fortran 8.3 passes all unrecognized flags to the linker
24226           lt_prog_compiler_pic_GCJ='-KPIC'
24227           lt_prog_compiler_static_GCJ='-Bstatic'
24228           lt_prog_compiler_wl_GCJ=''
24229           ;;
24230         esac
24231         ;;
24232       esac
24233       ;;
24234
24235     osf3* | osf4* | osf5*)
24236       lt_prog_compiler_wl_GCJ='-Wl,'
24237       # All OSF/1 code is PIC.
24238       lt_prog_compiler_static_GCJ='-non_shared'
24239       ;;
24240
24241     rdos*)
24242       lt_prog_compiler_static_GCJ='-non_shared'
24243       ;;
24244
24245     solaris*)
24246       lt_prog_compiler_pic_GCJ='-KPIC'
24247       lt_prog_compiler_static_GCJ='-Bstatic'
24248       case $cc_basename in
24249       f77* | f90* | f95*)
24250         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24251       *)
24252         lt_prog_compiler_wl_GCJ='-Wl,';;
24253       esac
24254       ;;
24255
24256     sunos4*)
24257       lt_prog_compiler_wl_GCJ='-Qoption ld '
24258       lt_prog_compiler_pic_GCJ='-PIC'
24259       lt_prog_compiler_static_GCJ='-Bstatic'
24260       ;;
24261
24262     sysv4 | sysv4.2uw2* | sysv4.3*)
24263       lt_prog_compiler_wl_GCJ='-Wl,'
24264       lt_prog_compiler_pic_GCJ='-KPIC'
24265       lt_prog_compiler_static_GCJ='-Bstatic'
24266       ;;
24267
24268     sysv4*MP*)
24269       if test -d /usr/nec ;then
24270         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24271         lt_prog_compiler_static_GCJ='-Bstatic'
24272       fi
24273       ;;
24274
24275     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24276       lt_prog_compiler_wl_GCJ='-Wl,'
24277       lt_prog_compiler_pic_GCJ='-KPIC'
24278       lt_prog_compiler_static_GCJ='-Bstatic'
24279       ;;
24280
24281     unicos*)
24282       lt_prog_compiler_wl_GCJ='-Wl,'
24283       lt_prog_compiler_can_build_shared_GCJ=no
24284       ;;
24285
24286     uts4*)
24287       lt_prog_compiler_pic_GCJ='-pic'
24288       lt_prog_compiler_static_GCJ='-Bstatic'
24289       ;;
24290
24291     *)
24292       lt_prog_compiler_can_build_shared_GCJ=no
24293       ;;
24294     esac
24295   fi
24296
24297 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24298 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24299
24300 #
24301 # Check to make sure the PIC flag actually works.
24302 #
24303 if test -n "$lt_prog_compiler_pic_GCJ"; then
24304
24305 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24306 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24307 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24308   echo $ECHO_N "(cached) $ECHO_C" >&6
24309 else
24310   lt_prog_compiler_pic_works_GCJ=no
24311   ac_outfile=conftest.$ac_objext
24312    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24313    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24314    # Insert the option either (1) after the last *FLAGS variable, or
24315    # (2) before a word containing "conftest.", or (3) at the end.
24316    # Note that $ac_compile itself does not contain backslashes and begins
24317    # with a dollar sign (not a hyphen), so the echo should work correctly.
24318    # The option is referenced via a variable to avoid confusing sed.
24319    lt_compile=`echo "$ac_compile" | $SED \
24320    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24321    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24322    -e 's:$: $lt_compiler_flag:'`
24323    (eval echo "\"\$as_me:24323: $lt_compile\"" >&5)
24324    (eval "$lt_compile" 2>conftest.err)
24325    ac_status=$?
24326    cat conftest.err >&5
24327    echo "$as_me:24327: \$? = $ac_status" >&5
24328    if (exit $ac_status) && test -s "$ac_outfile"; then
24329      # The compiler can only warn and ignore the option if not recognized
24330      # So say no if there are warnings other than the usual output.
24331      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24332      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24333      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24334        lt_prog_compiler_pic_works_GCJ=yes
24335      fi
24336    fi
24337    $rm conftest*
24338
24339 fi
24340 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24341 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24342
24343 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24344     case $lt_prog_compiler_pic_GCJ in
24345      "" | " "*) ;;
24346      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24347      esac
24348 else
24349     lt_prog_compiler_pic_GCJ=
24350      lt_prog_compiler_can_build_shared_GCJ=no
24351 fi
24352
24353 fi
24354 case $host_os in
24355   # For platforms which do not support PIC, -DPIC is meaningless:
24356   *djgpp*)
24357     lt_prog_compiler_pic_GCJ=
24358     ;;
24359   *)
24360     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24361     ;;
24362 esac
24363
24364 #
24365 # Check to make sure the static flag actually works.
24366 #
24367 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24368 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24369 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24370 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24371   echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373   lt_prog_compiler_static_works_GCJ=no
24374    save_LDFLAGS="$LDFLAGS"
24375    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24376    echo "$lt_simple_link_test_code" > conftest.$ac_ext
24377    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24378      # The linker can only warn and ignore the option if not recognized
24379      # So say no if there are warnings
24380      if test -s conftest.err; then
24381        # Append any errors to the config.log.
24382        cat conftest.err 1>&5
24383        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24384        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24385        if diff conftest.exp conftest.er2 >/dev/null; then
24386          lt_prog_compiler_static_works_GCJ=yes
24387        fi
24388      else
24389        lt_prog_compiler_static_works_GCJ=yes
24390      fi
24391    fi
24392    $rm conftest*
24393    LDFLAGS="$save_LDFLAGS"
24394
24395 fi
24396 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24397 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24398
24399 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24400     :
24401 else
24402     lt_prog_compiler_static_GCJ=
24403 fi
24404
24405
24406 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24407 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24408 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24409   echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411   lt_cv_prog_compiler_c_o_GCJ=no
24412    $rm -r conftest 2>/dev/null
24413    mkdir conftest
24414    cd conftest
24415    mkdir out
24416    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24417
24418    lt_compiler_flag="-o out/conftest2.$ac_objext"
24419    # Insert the option either (1) after the last *FLAGS variable, or
24420    # (2) before a word containing "conftest.", or (3) at the end.
24421    # Note that $ac_compile itself does not contain backslashes and begins
24422    # with a dollar sign (not a hyphen), so the echo should work correctly.
24423    lt_compile=`echo "$ac_compile" | $SED \
24424    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24425    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24426    -e 's:$: $lt_compiler_flag:'`
24427    (eval echo "\"\$as_me:24427: $lt_compile\"" >&5)
24428    (eval "$lt_compile" 2>out/conftest.err)
24429    ac_status=$?
24430    cat out/conftest.err >&5
24431    echo "$as_me:24431: \$? = $ac_status" >&5
24432    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24433    then
24434      # The compiler can only warn and ignore the option if not recognized
24435      # So say no if there are warnings
24436      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24437      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24438      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24439        lt_cv_prog_compiler_c_o_GCJ=yes
24440      fi
24441    fi
24442    chmod u+w . 2>&5
24443    $rm conftest*
24444    # SGI C++ compiler will create directory out/ii_files/ for
24445    # template instantiation
24446    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24447    $rm out/* && rmdir out
24448    cd ..
24449    rmdir conftest
24450    $rm conftest*
24451
24452 fi
24453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24454 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24455
24456
24457 hard_links="nottested"
24458 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24459   # do not overwrite the value of need_locks provided by the user
24460   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24461 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24462   hard_links=yes
24463   $rm conftest*
24464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24465   touch conftest.a
24466   ln conftest.a conftest.b 2>&5 || hard_links=no
24467   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24468   { echo "$as_me:$LINENO: result: $hard_links" >&5
24469 echo "${ECHO_T}$hard_links" >&6; }
24470   if test "$hard_links" = no; then
24471     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24472 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24473     need_locks=warn
24474   fi
24475 else
24476   need_locks=no
24477 fi
24478
24479 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24480 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24481
24482   runpath_var=
24483   allow_undefined_flag_GCJ=
24484   enable_shared_with_static_runtimes_GCJ=no
24485   archive_cmds_GCJ=
24486   archive_expsym_cmds_GCJ=
24487   old_archive_From_new_cmds_GCJ=
24488   old_archive_from_expsyms_cmds_GCJ=
24489   export_dynamic_flag_spec_GCJ=
24490   whole_archive_flag_spec_GCJ=
24491   thread_safe_flag_spec_GCJ=
24492   hardcode_libdir_flag_spec_GCJ=
24493   hardcode_libdir_flag_spec_ld_GCJ=
24494   hardcode_libdir_separator_GCJ=
24495   hardcode_direct_GCJ=no
24496   hardcode_minus_L_GCJ=no
24497   hardcode_shlibpath_var_GCJ=unsupported
24498   link_all_deplibs_GCJ=unknown
24499   hardcode_automatic_GCJ=no
24500   module_cmds_GCJ=
24501   module_expsym_cmds_GCJ=
24502   always_export_symbols_GCJ=no
24503   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24504   # include_expsyms should be a list of space-separated symbols to be *always*
24505   # included in the symbol list
24506   include_expsyms_GCJ=
24507   # exclude_expsyms can be an extended regexp of symbols to exclude
24508   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24509   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24510   # as well as any symbol that contains `d'.
24511   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24512   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24513   # platforms (ab)use it in PIC code, but their linkers get confused if
24514   # the symbol is explicitly referenced.  Since portable code cannot
24515   # rely on this symbol name, it's probably fine to never include it in
24516   # preloaded symbol tables.
24517   extract_expsyms_cmds=
24518   # Just being paranoid about ensuring that cc_basename is set.
24519   for cc_temp in $compiler""; do
24520   case $cc_temp in
24521     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24522     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24523     \-*) ;;
24524     *) break;;
24525   esac
24526 done
24527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24528
24529   case $host_os in
24530   cygwin* | mingw* | pw32*)
24531     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24532     # When not using gcc, we currently assume that we are using
24533     # Microsoft Visual C++.
24534     if test "$GCC" != yes; then
24535       with_gnu_ld=no
24536     fi
24537     ;;
24538   interix*)
24539     # we just hope/assume this is gcc and not c89 (= MSVC++)
24540     with_gnu_ld=yes
24541     ;;
24542   openbsd*)
24543     with_gnu_ld=no
24544     ;;
24545   esac
24546
24547   ld_shlibs_GCJ=yes
24548   if test "$with_gnu_ld" = yes; then
24549     # If archive_cmds runs LD, not CC, wlarc should be empty
24550     wlarc='${wl}'
24551
24552     # Set some defaults for GNU ld with shared library support. These
24553     # are reset later if shared libraries are not supported. Putting them
24554     # here allows them to be overridden if necessary.
24555     runpath_var=LD_RUN_PATH
24556     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24557     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24558     # ancient GNU ld didn't support --whole-archive et. al.
24559     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24560         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24561       else
24562         whole_archive_flag_spec_GCJ=
24563     fi
24564     supports_anon_versioning=no
24565     case `$LD -v 2>/dev/null` in
24566       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24567       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24568       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24569       *\ 2.11.*) ;; # other 2.11 versions
24570       *) supports_anon_versioning=yes ;;
24571     esac
24572
24573     # See if GNU ld supports shared libraries.
24574     case $host_os in
24575     aix3* | aix4* | aix5*)
24576       # On AIX/PPC, the GNU linker is very broken
24577       if test "$host_cpu" != ia64; then
24578         ld_shlibs_GCJ=no
24579         cat <<EOF 1>&2
24580
24581 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24582 *** to be unable to reliably create shared libraries on AIX.
24583 *** Therefore, libtool is disabling shared libraries support.  If you
24584 *** really care for shared libraries, you may want to modify your PATH
24585 *** so that a non-GNU linker is found, and then restart.
24586
24587 EOF
24588       fi
24589       ;;
24590
24591     amigaos*)
24592       archive_cmds_GCJ='$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)'
24593       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24594       hardcode_minus_L_GCJ=yes
24595
24596       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24597       # that the semantics of dynamic libraries on AmigaOS, at least up
24598       # to version 4, is to share data among multiple programs linked
24599       # with the same dynamic library.  Since this doesn't match the
24600       # behavior of shared libraries on other platforms, we can't use
24601       # them.
24602       ld_shlibs_GCJ=no
24603       ;;
24604
24605     beos*)
24606       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607         allow_undefined_flag_GCJ=unsupported
24608         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24609         # support --undefined.  This deserves some investigation.  FIXME
24610         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24611       else
24612         ld_shlibs_GCJ=no
24613       fi
24614       ;;
24615
24616     cygwin* | mingw* | pw32*)
24617       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24618       # as there is no search path for DLLs.
24619       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24620       allow_undefined_flag_GCJ=unsupported
24621       always_export_symbols_GCJ=no
24622       enable_shared_with_static_runtimes_GCJ=yes
24623       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24624
24625       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24626         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24627         # If the export-symbols file already is a .def file (1st line
24628         # is EXPORTS), use it as is; otherwise, prepend...
24629         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24630           cp $export_symbols $output_objdir/$soname.def;
24631         else
24632           echo EXPORTS > $output_objdir/$soname.def;
24633           cat $export_symbols >> $output_objdir/$soname.def;
24634         fi~
24635         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24636       else
24637         ld_shlibs_GCJ=no
24638       fi
24639       ;;
24640
24641     interix[3-9]*)
24642       hardcode_direct_GCJ=no
24643       hardcode_shlibpath_var_GCJ=no
24644       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24645       export_dynamic_flag_spec_GCJ='${wl}-E'
24646       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24647       # Instead, shared libraries are loaded at an image base (0x10000000 by
24648       # default) and relocated if they conflict, which is a slow very memory
24649       # consuming and fragmenting process.  To avoid this, we pick a random,
24650       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24651       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24652       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24653       archive_expsym_cmds_GCJ='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'
24654       ;;
24655
24656     gnu* | linux* | k*bsd*-gnu)
24657       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24658         tmp_addflag=
24659         case $cc_basename,$host_cpu in
24660         pgcc*)                          # Portland Group C compiler
24661           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24662           tmp_addflag=' $pic_flag'
24663           ;;
24664         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24665           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24666           tmp_addflag=' $pic_flag -Mnomain' ;;
24667         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24668           tmp_addflag=' -i_dynamic' ;;
24669         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24670           tmp_addflag=' -i_dynamic -nofor_main' ;;
24671         ifc* | ifort*)                  # Intel Fortran compiler
24672           tmp_addflag=' -nofor_main' ;;
24673         esac
24674         case `$CC -V 2>&1 | sed 5q` in
24675         *Sun\ C*)                       # Sun C 5.9
24676           whole_archive_flag_spec_GCJ='${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'
24677           tmp_sharedflag='-G' ;;
24678         *Sun\ F*)                       # Sun Fortran 8.3
24679           tmp_sharedflag='-G' ;;
24680         *)
24681           tmp_sharedflag='-shared' ;;
24682         esac
24683         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24684
24685         if test $supports_anon_versioning = yes; then
24686           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24687   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24688   $echo "local: *; };" >> $output_objdir/$libname.ver~
24689           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24690         fi
24691       else
24692         ld_shlibs_GCJ=no
24693       fi
24694       ;;
24695
24696     netbsd*)
24697       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24698         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24699         wlarc=
24700       else
24701         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24703       fi
24704       ;;
24705
24706     solaris*)
24707       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24708         ld_shlibs_GCJ=no
24709         cat <<EOF 1>&2
24710
24711 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24712 *** create shared libraries on Solaris systems.  Therefore, libtool
24713 *** is disabling shared libraries support.  We urge you to upgrade GNU
24714 *** binutils to release 2.9.1 or newer.  Another option is to modify
24715 *** your PATH or compiler configuration so that the native linker is
24716 *** used, and then restart.
24717
24718 EOF
24719       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24720         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24721         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24722       else
24723         ld_shlibs_GCJ=no
24724       fi
24725       ;;
24726
24727     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24728       case `$LD -v 2>&1` in
24729         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24730         ld_shlibs_GCJ=no
24731         cat <<_LT_EOF 1>&2
24732
24733 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24734 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24735 *** is disabling shared libraries support.  We urge you to upgrade GNU
24736 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24737 *** your PATH or compiler configuration so that the native linker is
24738 *** used, and then restart.
24739
24740 _LT_EOF
24741         ;;
24742         *)
24743           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24744             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24745             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24746             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24747           else
24748             ld_shlibs_GCJ=no
24749           fi
24750         ;;
24751       esac
24752       ;;
24753
24754     sunos4*)
24755       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24756       wlarc=
24757       hardcode_direct_GCJ=yes
24758       hardcode_shlibpath_var_GCJ=no
24759       ;;
24760
24761     *)
24762       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24763         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24764         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24765       else
24766         ld_shlibs_GCJ=no
24767       fi
24768       ;;
24769     esac
24770
24771     if test "$ld_shlibs_GCJ" = no; then
24772       runpath_var=
24773       hardcode_libdir_flag_spec_GCJ=
24774       export_dynamic_flag_spec_GCJ=
24775       whole_archive_flag_spec_GCJ=
24776     fi
24777   else
24778     # PORTME fill in a description of your system's linker (not GNU ld)
24779     case $host_os in
24780     aix3*)
24781       allow_undefined_flag_GCJ=unsupported
24782       always_export_symbols_GCJ=yes
24783       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24784       # Note: this linker hardcodes the directories in LIBPATH if there
24785       # are no directories specified by -L.
24786       hardcode_minus_L_GCJ=yes
24787       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24788         # Neither direct hardcoding nor static linking is supported with a
24789         # broken collect2.
24790         hardcode_direct_GCJ=unsupported
24791       fi
24792       ;;
24793
24794     aix4* | aix5*)
24795       if test "$host_cpu" = ia64; then
24796         # On IA64, the linker does run time linking by default, so we don't
24797         # have to do anything special.
24798         aix_use_runtimelinking=no
24799         exp_sym_flag='-Bexport'
24800         no_entry_flag=""
24801       else
24802         # If we're using GNU nm, then we don't want the "-C" option.
24803         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24804         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24805           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24806         else
24807           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24808         fi
24809         aix_use_runtimelinking=no
24810
24811         # Test if we are trying to use run time linking or normal
24812         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24813         # need to do runtime linking.
24814         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24815           for ld_flag in $LDFLAGS; do
24816           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24817             aix_use_runtimelinking=yes
24818             break
24819           fi
24820           done
24821           ;;
24822         esac
24823
24824         exp_sym_flag='-bexport'
24825         no_entry_flag='-bnoentry'
24826       fi
24827
24828       # When large executables or shared objects are built, AIX ld can
24829       # have problems creating the table of contents.  If linking a library
24830       # or program results in "error TOC overflow" add -mminimal-toc to
24831       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24832       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24833
24834       archive_cmds_GCJ=''
24835       hardcode_direct_GCJ=yes
24836       hardcode_libdir_separator_GCJ=':'
24837       link_all_deplibs_GCJ=yes
24838
24839       if test "$GCC" = yes; then
24840         case $host_os in aix4.[012]|aix4.[012].*)
24841         # We only want to do this on AIX 4.2 and lower, the check
24842         # below for broken collect2 doesn't work under 4.3+
24843           collect2name=`${CC} -print-prog-name=collect2`
24844           if test -f "$collect2name" && \
24845            strings "$collect2name" | grep resolve_lib_name >/dev/null
24846           then
24847           # We have reworked collect2
24848           :
24849           else
24850           # We have old collect2
24851           hardcode_direct_GCJ=unsupported
24852           # It fails to find uninstalled libraries when the uninstalled
24853           # path is not listed in the libpath.  Setting hardcode_minus_L
24854           # to unsupported forces relinking
24855           hardcode_minus_L_GCJ=yes
24856           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24857           hardcode_libdir_separator_GCJ=
24858           fi
24859           ;;
24860         esac
24861         shared_flag='-shared'
24862         if test "$aix_use_runtimelinking" = yes; then
24863           shared_flag="$shared_flag "'${wl}-G'
24864         fi
24865       else
24866         # not using gcc
24867         if test "$host_cpu" = ia64; then
24868         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24869         # chokes on -Wl,-G. The following line is correct:
24870           shared_flag='-G'
24871         else
24872           if test "$aix_use_runtimelinking" = yes; then
24873             shared_flag='${wl}-G'
24874           else
24875             shared_flag='${wl}-bM:SRE'
24876           fi
24877         fi
24878       fi
24879
24880       # It seems that -bexpall does not export symbols beginning with
24881       # underscore (_), so it is better to generate a list of symbols to export.
24882       always_export_symbols_GCJ=yes
24883       if test "$aix_use_runtimelinking" = yes; then
24884         # Warning - without using the other runtime loading flags (-brtl),
24885         # -berok will link without error, but may produce a broken library.
24886         allow_undefined_flag_GCJ='-berok'
24887        # Determine the default libpath from the value encoded in an empty executable.
24888        cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894
24895 int
24896 main ()
24897 {
24898
24899   ;
24900   return 0;
24901 }
24902 _ACEOF
24903 rm -f conftest.$ac_objext conftest$ac_exeext
24904 if { (ac_try="$ac_link"
24905 case "(($ac_try" in
24906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907   *) ac_try_echo=$ac_try;;
24908 esac
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910   (eval "$ac_link") 2>conftest.er1
24911   ac_status=$?
24912   grep -v '^ *+' conftest.er1 >conftest.err
24913   rm -f conftest.er1
24914   cat conftest.err >&5
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && {
24917          test -z "$ac_c_werror_flag" ||
24918          test ! -s conftest.err
24919        } && test -s conftest$ac_exeext &&
24920        $as_test_x conftest$ac_exeext; then
24921
24922 lt_aix_libpath_sed='
24923     /Import File Strings/,/^$/ {
24924         /^0/ {
24925             s/^0  *\(.*\)$/\1/
24926             p
24927         }
24928     }'
24929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24930 # Check for a 64-bit object if we didn't find anything.
24931 if test -z "$aix_libpath"; then
24932   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24933 fi
24934 else
24935   echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24937
24938
24939 fi
24940
24941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24942       conftest$ac_exeext conftest.$ac_ext
24943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24944
24945        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24946         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24947        else
24948         if test "$host_cpu" = ia64; then
24949           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24950           allow_undefined_flag_GCJ="-z nodefs"
24951           archive_expsym_cmds_GCJ="\$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"
24952         else
24953          # Determine the default libpath from the value encoded in an empty executable.
24954          cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960
24961 int
24962 main ()
24963 {
24964
24965   ;
24966   return 0;
24967 }
24968 _ACEOF
24969 rm -f conftest.$ac_objext conftest$ac_exeext
24970 if { (ac_try="$ac_link"
24971 case "(($ac_try" in
24972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973   *) ac_try_echo=$ac_try;;
24974 esac
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976   (eval "$ac_link") 2>conftest.er1
24977   ac_status=$?
24978   grep -v '^ *+' conftest.er1 >conftest.err
24979   rm -f conftest.er1
24980   cat conftest.err >&5
24981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982   (exit $ac_status); } && {
24983          test -z "$ac_c_werror_flag" ||
24984          test ! -s conftest.err
24985        } && test -s conftest$ac_exeext &&
24986        $as_test_x conftest$ac_exeext; then
24987
24988 lt_aix_libpath_sed='
24989     /Import File Strings/,/^$/ {
24990         /^0/ {
24991             s/^0  *\(.*\)$/\1/
24992             p
24993         }
24994     }'
24995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24996 # Check for a 64-bit object if we didn't find anything.
24997 if test -z "$aix_libpath"; then
24998   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24999 fi
25000 else
25001   echo "$as_me: failed program was:" >&5
25002 sed 's/^/| /' conftest.$ac_ext >&5
25003
25004
25005 fi
25006
25007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25008       conftest$ac_exeext conftest.$ac_ext
25009 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25010
25011          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25012           # Warning - without using the other run time loading flags,
25013           # -berok will link without error, but may produce a broken library.
25014           no_undefined_flag_GCJ=' ${wl}-bernotok'
25015           allow_undefined_flag_GCJ=' ${wl}-berok'
25016           # Exported symbols can be pulled into shared objects from archives
25017           whole_archive_flag_spec_GCJ='$convenience'
25018           archive_cmds_need_lc_GCJ=yes
25019           # This is similar to how AIX traditionally builds its shared libraries.
25020           archive_expsym_cmds_GCJ="\$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'
25021         fi
25022       fi
25023       ;;
25024
25025     amigaos*)
25026       archive_cmds_GCJ='$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)'
25027       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25028       hardcode_minus_L_GCJ=yes
25029       # see comment about different semantics on the GNU ld section
25030       ld_shlibs_GCJ=no
25031       ;;
25032
25033     bsdi[45]*)
25034       export_dynamic_flag_spec_GCJ=-rdynamic
25035       ;;
25036
25037     cygwin* | mingw* | pw32*)
25038       # When not using gcc, we currently assume that we are using
25039       # Microsoft Visual C++.
25040       # hardcode_libdir_flag_spec is actually meaningless, as there is
25041       # no search path for DLLs.
25042       hardcode_libdir_flag_spec_GCJ=' '
25043       allow_undefined_flag_GCJ=unsupported
25044       # Tell ltmain to make .lib files, not .a files.
25045       libext=lib
25046       # Tell ltmain to make .dll files, not .so files.
25047       shrext_cmds=".dll"
25048       # FIXME: Setting linknames here is a bad hack.
25049       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25050       # The linker will automatically build a .lib file if we build a DLL.
25051       old_archive_From_new_cmds_GCJ='true'
25052       # FIXME: Should let the user specify the lib program.
25053       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
25054       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25055       enable_shared_with_static_runtimes_GCJ=yes
25056       ;;
25057
25058     darwin* | rhapsody*)
25059       case $host_os in
25060         rhapsody* | darwin1.[012])
25061          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25062          ;;
25063        *) # Darwin 1.3 on
25064          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25065            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25066          else
25067            case ${MACOSX_DEPLOYMENT_TARGET} in
25068              10.[012])
25069                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25070                ;;
25071              10.*)
25072                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25073                ;;
25074            esac
25075          fi
25076          ;;
25077       esac
25078       archive_cmds_need_lc_GCJ=no
25079       hardcode_direct_GCJ=no
25080       hardcode_automatic_GCJ=yes
25081       hardcode_shlibpath_var_GCJ=unsupported
25082       whole_archive_flag_spec_GCJ=''
25083       link_all_deplibs_GCJ=yes
25084     if test "$GCC" = yes ; then
25085         output_verbose_link_cmd='echo'
25086         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25087       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25088       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25089       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25090       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25091     else
25092       case $cc_basename in
25093         xlc*)
25094          output_verbose_link_cmd='echo'
25095          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
25096          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25097           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25098          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25099           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25100           ;;
25101        *)
25102          ld_shlibs_GCJ=no
25103           ;;
25104       esac
25105     fi
25106       ;;
25107
25108     dgux*)
25109       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25110       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25111       hardcode_shlibpath_var_GCJ=no
25112       ;;
25113
25114     freebsd1*)
25115       ld_shlibs_GCJ=no
25116       ;;
25117
25118     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25119     # support.  Future versions do this automatically, but an explicit c++rt0.o
25120     # does not break anything, and helps significantly (at the cost of a little
25121     # extra space).
25122     freebsd2.2*)
25123       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25124       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25125       hardcode_direct_GCJ=yes
25126       hardcode_shlibpath_var_GCJ=no
25127       ;;
25128
25129     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25130     freebsd2*)
25131       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25132       hardcode_direct_GCJ=yes
25133       hardcode_minus_L_GCJ=yes
25134       hardcode_shlibpath_var_GCJ=no
25135       ;;
25136
25137     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25138     freebsd* | dragonfly*)
25139       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25140       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25141       hardcode_direct_GCJ=yes
25142       hardcode_shlibpath_var_GCJ=no
25143       ;;
25144
25145     hpux9*)
25146       if test "$GCC" = yes; then
25147         archive_cmds_GCJ='$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'
25148       else
25149         archive_cmds_GCJ='$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'
25150       fi
25151       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25152       hardcode_libdir_separator_GCJ=:
25153       hardcode_direct_GCJ=yes
25154
25155       # hardcode_minus_L: Not really in the search PATH,
25156       # but as the default location of the library.
25157       hardcode_minus_L_GCJ=yes
25158       export_dynamic_flag_spec_GCJ='${wl}-E'
25159       ;;
25160
25161     hpux10*)
25162       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25163         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25164       else
25165         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25166       fi
25167       if test "$with_gnu_ld" = no; then
25168         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25169         hardcode_libdir_separator_GCJ=:
25170
25171         hardcode_direct_GCJ=yes
25172         export_dynamic_flag_spec_GCJ='${wl}-E'
25173
25174         # hardcode_minus_L: Not really in the search PATH,
25175         # but as the default location of the library.
25176         hardcode_minus_L_GCJ=yes
25177       fi
25178       ;;
25179
25180     hpux11*)
25181       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25182         case $host_cpu in
25183         hppa*64*)
25184           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25185           ;;
25186         ia64*)
25187           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25188           ;;
25189         *)
25190           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25191           ;;
25192         esac
25193       else
25194         case $host_cpu in
25195         hppa*64*)
25196           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197           ;;
25198         ia64*)
25199           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25200           ;;
25201         *)
25202           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25203           ;;
25204         esac
25205       fi
25206       if test "$with_gnu_ld" = no; then
25207         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25208         hardcode_libdir_separator_GCJ=:
25209
25210         case $host_cpu in
25211         hppa*64*|ia64*)
25212           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25213           hardcode_direct_GCJ=no
25214           hardcode_shlibpath_var_GCJ=no
25215           ;;
25216         *)
25217           hardcode_direct_GCJ=yes
25218           export_dynamic_flag_spec_GCJ='${wl}-E'
25219
25220           # hardcode_minus_L: Not really in the search PATH,
25221           # but as the default location of the library.
25222           hardcode_minus_L_GCJ=yes
25223           ;;
25224         esac
25225       fi
25226       ;;
25227
25228     irix5* | irix6* | nonstopux*)
25229       if test "$GCC" = yes; then
25230         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25231       else
25232         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25233         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25234       fi
25235       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25236       hardcode_libdir_separator_GCJ=:
25237       link_all_deplibs_GCJ=yes
25238       ;;
25239
25240     netbsd*)
25241       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25242         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25243       else
25244         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25245       fi
25246       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25247       hardcode_direct_GCJ=yes
25248       hardcode_shlibpath_var_GCJ=no
25249       ;;
25250
25251     newsos6)
25252       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25253       hardcode_direct_GCJ=yes
25254       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25255       hardcode_libdir_separator_GCJ=:
25256       hardcode_shlibpath_var_GCJ=no
25257       ;;
25258
25259     openbsd*)
25260       if test -f /usr/libexec/ld.so; then
25261         hardcode_direct_GCJ=yes
25262         hardcode_shlibpath_var_GCJ=no
25263         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25264           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25265           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25266           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25267           export_dynamic_flag_spec_GCJ='${wl}-E'
25268         else
25269           case $host_os in
25270            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25271              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25272              hardcode_libdir_flag_spec_GCJ='-R$libdir'
25273              ;;
25274            *)
25275              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25276              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25277              ;;
25278           esac
25279         fi
25280       else
25281         ld_shlibs_GCJ=no
25282       fi
25283       ;;
25284
25285     os2*)
25286       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25287       hardcode_minus_L_GCJ=yes
25288       allow_undefined_flag_GCJ=unsupported
25289       archive_cmds_GCJ='$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'
25290       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25291       ;;
25292
25293     osf3*)
25294       if test "$GCC" = yes; then
25295         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25296         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25297       else
25298         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25299         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25300       fi
25301       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25302       hardcode_libdir_separator_GCJ=:
25303       ;;
25304
25305     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25306       if test "$GCC" = yes; then
25307         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25308         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25309         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25310       else
25311         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25312         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25313         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25314         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25315
25316         # Both c and cxx compiler support -rpath directly
25317         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25318       fi
25319       hardcode_libdir_separator_GCJ=:
25320       ;;
25321
25322     solaris*)
25323       no_undefined_flag_GCJ=' -z text'
25324       if test "$GCC" = yes; then
25325         wlarc='${wl}'
25326         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25327         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25328           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25329       else
25330         wlarc=''
25331         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25332         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25333         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25334       fi
25335       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25336       hardcode_shlibpath_var_GCJ=no
25337       case $host_os in
25338       solaris2.[0-5] | solaris2.[0-5].*) ;;
25339       *)
25340         # The compiler driver will combine and reorder linker options,
25341         # but understands `-z linker_flag'.  GCC discards it without `$wl',
25342         # but is careful enough not to reorder.
25343         # Supported since Solaris 2.6 (maybe 2.5.1?)
25344         if test "$GCC" = yes; then
25345           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25346         else
25347           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25348         fi
25349         ;;
25350       esac
25351       link_all_deplibs_GCJ=yes
25352       ;;
25353
25354     sunos4*)
25355       if test "x$host_vendor" = xsequent; then
25356         # Use $CC to link under sequent, because it throws in some extra .o
25357         # files that make .init and .fini sections work.
25358         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25359       else
25360         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25361       fi
25362       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25363       hardcode_direct_GCJ=yes
25364       hardcode_minus_L_GCJ=yes
25365       hardcode_shlibpath_var_GCJ=no
25366       ;;
25367
25368     sysv4)
25369       case $host_vendor in
25370         sni)
25371           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25372           hardcode_direct_GCJ=yes # is this really true???
25373         ;;
25374         siemens)
25375           ## LD is ld it makes a PLAMLIB
25376           ## CC just makes a GrossModule.
25377           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25378           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25379           hardcode_direct_GCJ=no
25380         ;;
25381         motorola)
25382           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25383           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25384         ;;
25385       esac
25386       runpath_var='LD_RUN_PATH'
25387       hardcode_shlibpath_var_GCJ=no
25388       ;;
25389
25390     sysv4.3*)
25391       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25392       hardcode_shlibpath_var_GCJ=no
25393       export_dynamic_flag_spec_GCJ='-Bexport'
25394       ;;
25395
25396     sysv4*MP*)
25397       if test -d /usr/nec; then
25398         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25399         hardcode_shlibpath_var_GCJ=no
25400         runpath_var=LD_RUN_PATH
25401         hardcode_runpath_var=yes
25402         ld_shlibs_GCJ=yes
25403       fi
25404       ;;
25405
25406     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25407       no_undefined_flag_GCJ='${wl}-z,text'
25408       archive_cmds_need_lc_GCJ=no
25409       hardcode_shlibpath_var_GCJ=no
25410       runpath_var='LD_RUN_PATH'
25411
25412       if test "$GCC" = yes; then
25413         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25414         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25415       else
25416         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25417         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25418       fi
25419       ;;
25420
25421     sysv5* | sco3.2v5* | sco5v6*)
25422       # Note: We can NOT use -z defs as we might desire, because we do not
25423       # link with -lc, and that would cause any symbols used from libc to
25424       # always be unresolved, which means just about no library would
25425       # ever link correctly.  If we're not using GNU ld we use -z text
25426       # though, which does catch some bad symbols but isn't as heavy-handed
25427       # as -z defs.
25428       no_undefined_flag_GCJ='${wl}-z,text'
25429       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25430       archive_cmds_need_lc_GCJ=no
25431       hardcode_shlibpath_var_GCJ=no
25432       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25433       hardcode_libdir_separator_GCJ=':'
25434       link_all_deplibs_GCJ=yes
25435       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25436       runpath_var='LD_RUN_PATH'
25437
25438       if test "$GCC" = yes; then
25439         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25440         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441       else
25442         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25443         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25444       fi
25445       ;;
25446
25447     uts4*)
25448       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25449       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25450       hardcode_shlibpath_var_GCJ=no
25451       ;;
25452
25453     *)
25454       ld_shlibs_GCJ=no
25455       ;;
25456     esac
25457   fi
25458
25459 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25460 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25461 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25462
25463 #
25464 # Do we need to explicitly link libc?
25465 #
25466 case "x$archive_cmds_need_lc_GCJ" in
25467 x|xyes)
25468   # Assume -lc should be added
25469   archive_cmds_need_lc_GCJ=yes
25470
25471   if test "$enable_shared" = yes && test "$GCC" = yes; then
25472     case $archive_cmds_GCJ in
25473     *'~'*)
25474       # FIXME: we may have to deal with multi-command sequences.
25475       ;;
25476     '$CC '*)
25477       # Test whether the compiler implicitly links with -lc since on some
25478       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25479       # to ld, don't add -lc before -lgcc.
25480       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25481 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25482       $rm conftest*
25483       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25484
25485       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25486   (eval $ac_compile) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } 2>conftest.err; then
25490         soname=conftest
25491         lib=conftest
25492         libobjs=conftest.$ac_objext
25493         deplibs=
25494         wl=$lt_prog_compiler_wl_GCJ
25495         pic_flag=$lt_prog_compiler_pic_GCJ
25496         compiler_flags=-v
25497         linker_flags=-v
25498         verstring=
25499         output_objdir=.
25500         libname=conftest
25501         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25502         allow_undefined_flag_GCJ=
25503         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25504   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25505   ac_status=$?
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); }
25508         then
25509           archive_cmds_need_lc_GCJ=no
25510         else
25511           archive_cmds_need_lc_GCJ=yes
25512         fi
25513         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25514       else
25515         cat conftest.err 1>&5
25516       fi
25517       $rm conftest*
25518       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25519 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25520       ;;
25521     esac
25522   fi
25523   ;;
25524 esac
25525
25526 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25527 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25528 library_names_spec=
25529 libname_spec='lib$name'
25530 soname_spec=
25531 shrext_cmds=".so"
25532 postinstall_cmds=
25533 postuninstall_cmds=
25534 finish_cmds=
25535 finish_eval=
25536 shlibpath_var=
25537 shlibpath_overrides_runpath=unknown
25538 version_type=none
25539 dynamic_linker="$host_os ld.so"
25540 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25541
25542 need_lib_prefix=unknown
25543 hardcode_into_libs=no
25544
25545 # when you set need_version to no, make sure it does not cause -set_version
25546 # flags to be left without arguments
25547 need_version=unknown
25548
25549 case $host_os in
25550 aix3*)
25551   version_type=linux
25552   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25553   shlibpath_var=LIBPATH
25554
25555   # AIX 3 has no versioning support, so we append a major version to the name.
25556   soname_spec='${libname}${release}${shared_ext}$major'
25557   ;;
25558
25559 aix4* | aix5*)
25560   version_type=linux
25561   need_lib_prefix=no
25562   need_version=no
25563   hardcode_into_libs=yes
25564   if test "$host_cpu" = ia64; then
25565     # AIX 5 supports IA64
25566     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25567     shlibpath_var=LD_LIBRARY_PATH
25568   else
25569     # With GCC up to 2.95.x, collect2 would create an import file
25570     # for dependence libraries.  The import file would start with
25571     # the line `#! .'.  This would cause the generated library to
25572     # depend on `.', always an invalid library.  This was fixed in
25573     # development snapshots of GCC prior to 3.0.
25574     case $host_os in
25575       aix4 | aix4.[01] | aix4.[01].*)
25576       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25577            echo ' yes '
25578            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25579         :
25580       else
25581         can_build_shared=no
25582       fi
25583       ;;
25584     esac
25585     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25586     # soname into executable. Probably we can add versioning support to
25587     # collect2, so additional links can be useful in future.
25588     if test "$aix_use_runtimelinking" = yes; then
25589       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25590       # instead of lib<name>.a to let people know that these are not
25591       # typical AIX shared libraries.
25592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25593     else
25594       # We preserve .a as extension for shared libraries through AIX4.2
25595       # and later when we are not doing run time linking.
25596       library_names_spec='${libname}${release}.a $libname.a'
25597       soname_spec='${libname}${release}${shared_ext}$major'
25598     fi
25599     shlibpath_var=LIBPATH
25600   fi
25601   ;;
25602
25603 amigaos*)
25604   library_names_spec='$libname.ixlibrary $libname.a'
25605   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25606   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'
25607   ;;
25608
25609 beos*)
25610   library_names_spec='${libname}${shared_ext}'
25611   dynamic_linker="$host_os ld.so"
25612   shlibpath_var=LIBRARY_PATH
25613   ;;
25614
25615 bsdi[45]*)
25616   version_type=linux
25617   need_version=no
25618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25619   soname_spec='${libname}${release}${shared_ext}$major'
25620   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25621   shlibpath_var=LD_LIBRARY_PATH
25622   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25623   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25624   # the default ld.so.conf also contains /usr/contrib/lib and
25625   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25626   # libtool to hard-code these into programs
25627   ;;
25628
25629 cygwin* | mingw* | pw32*)
25630   version_type=windows
25631   shrext_cmds=".dll"
25632   need_version=no
25633   need_lib_prefix=no
25634
25635   case $GCC,$host_os in
25636   yes,cygwin* | yes,mingw* | yes,pw32*)
25637     library_names_spec='$libname.dll.a'
25638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25639     postinstall_cmds='base_file=`basename \${file}`~
25640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25641       dldir=$destdir/`dirname \$dlpath`~
25642       test -d \$dldir || mkdir -p \$dldir~
25643       $install_prog $dir/$dlname \$dldir/$dlname~
25644       chmod a+x \$dldir/$dlname'
25645     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25646       dlpath=$dir/\$dldll~
25647        $rm \$dlpath'
25648     shlibpath_overrides_runpath=yes
25649
25650     case $host_os in
25651     cygwin*)
25652       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25653       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25654       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25655       ;;
25656     mingw*)
25657       # MinGW DLLs use traditional 'lib' prefix
25658       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25659       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25660       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25661         # It is most probably a Windows format PATH printed by
25662         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25663         # path with ; separators, and with drive letters. We can handle the
25664         # drive letters (cygwin fileutils understands them), so leave them,
25665         # especially as we might pass files found there to a mingw objdump,
25666         # which wouldn't understand a cygwinified path. Ahh.
25667         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25668       else
25669         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25670       fi
25671       ;;
25672     pw32*)
25673       # pw32 DLLs use 'pw' prefix rather than 'lib'
25674       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25675       ;;
25676     esac
25677     ;;
25678
25679   *)
25680     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25681     ;;
25682   esac
25683   dynamic_linker='Win32 ld.exe'
25684   # FIXME: first we should search . and the directory the executable is in
25685   shlibpath_var=PATH
25686   ;;
25687
25688 darwin* | rhapsody*)
25689   dynamic_linker="$host_os dyld"
25690   version_type=darwin
25691   need_lib_prefix=no
25692   need_version=no
25693   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25694   soname_spec='${libname}${release}${major}$shared_ext'
25695   shlibpath_overrides_runpath=yes
25696   shlibpath_var=DYLD_LIBRARY_PATH
25697   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25698
25699   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25700   ;;
25701
25702 dgux*)
25703   version_type=linux
25704   need_lib_prefix=no
25705   need_version=no
25706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25707   soname_spec='${libname}${release}${shared_ext}$major'
25708   shlibpath_var=LD_LIBRARY_PATH
25709   ;;
25710
25711 freebsd1*)
25712   dynamic_linker=no
25713   ;;
25714
25715 freebsd* | dragonfly*)
25716   # DragonFly does not have aout.  When/if they implement a new
25717   # versioning mechanism, adjust this.
25718   if test -x /usr/bin/objformat; then
25719     objformat=`/usr/bin/objformat`
25720   else
25721     case $host_os in
25722     freebsd[123]*) objformat=aout ;;
25723     *) objformat=elf ;;
25724     esac
25725   fi
25726   version_type=freebsd-$objformat
25727   case $version_type in
25728     freebsd-elf*)
25729       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25730       need_version=no
25731       need_lib_prefix=no
25732       ;;
25733     freebsd-*)
25734       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25735       need_version=yes
25736       ;;
25737   esac
25738   shlibpath_var=LD_LIBRARY_PATH
25739   case $host_os in
25740   freebsd2*)
25741     shlibpath_overrides_runpath=yes
25742     ;;
25743   freebsd3.[01]* | freebsdelf3.[01]*)
25744     shlibpath_overrides_runpath=yes
25745     hardcode_into_libs=yes
25746     ;;
25747   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25748   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25749     shlibpath_overrides_runpath=no
25750     hardcode_into_libs=yes
25751     ;;
25752   *) # from 4.6 on, and DragonFly
25753     shlibpath_overrides_runpath=yes
25754     hardcode_into_libs=yes
25755     ;;
25756   esac
25757   ;;
25758
25759 gnu*)
25760   version_type=linux
25761   need_lib_prefix=no
25762   need_version=no
25763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25764   soname_spec='${libname}${release}${shared_ext}$major'
25765   shlibpath_var=LD_LIBRARY_PATH
25766   hardcode_into_libs=yes
25767   ;;
25768
25769 hpux9* | hpux10* | hpux11*)
25770   # Give a soname corresponding to the major version so that dld.sl refuses to
25771   # link against other versions.
25772   version_type=sunos
25773   need_lib_prefix=no
25774   need_version=no
25775   case $host_cpu in
25776   ia64*)
25777     shrext_cmds='.so'
25778     hardcode_into_libs=yes
25779     dynamic_linker="$host_os dld.so"
25780     shlibpath_var=LD_LIBRARY_PATH
25781     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25782     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25783     soname_spec='${libname}${release}${shared_ext}$major'
25784     if test "X$HPUX_IA64_MODE" = X32; then
25785       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25786     else
25787       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25788     fi
25789     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25790     ;;
25791    hppa*64*)
25792      shrext_cmds='.sl'
25793      hardcode_into_libs=yes
25794      dynamic_linker="$host_os dld.sl"
25795      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25796      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25798      soname_spec='${libname}${release}${shared_ext}$major'
25799      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25800      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25801      ;;
25802    *)
25803     shrext_cmds='.sl'
25804     dynamic_linker="$host_os dld.sl"
25805     shlibpath_var=SHLIB_PATH
25806     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25808     soname_spec='${libname}${release}${shared_ext}$major'
25809     ;;
25810   esac
25811   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25812   postinstall_cmds='chmod 555 $lib'
25813   ;;
25814
25815 interix[3-9]*)
25816   version_type=linux
25817   need_lib_prefix=no
25818   need_version=no
25819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25820   soname_spec='${libname}${release}${shared_ext}$major'
25821   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25822   shlibpath_var=LD_LIBRARY_PATH
25823   shlibpath_overrides_runpath=no
25824   hardcode_into_libs=yes
25825   ;;
25826
25827 irix5* | irix6* | nonstopux*)
25828   case $host_os in
25829     nonstopux*) version_type=nonstopux ;;
25830     *)
25831         if test "$lt_cv_prog_gnu_ld" = yes; then
25832                 version_type=linux
25833         else
25834                 version_type=irix
25835         fi ;;
25836   esac
25837   need_lib_prefix=no
25838   need_version=no
25839   soname_spec='${libname}${release}${shared_ext}$major'
25840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25841   case $host_os in
25842   irix5* | nonstopux*)
25843     libsuff= shlibsuff=
25844     ;;
25845   *)
25846     case $LD in # libtool.m4 will add one of these switches to LD
25847     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25848       libsuff= shlibsuff= libmagic=32-bit;;
25849     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25850       libsuff=32 shlibsuff=N32 libmagic=N32;;
25851     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25852       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25853     *) libsuff= shlibsuff= libmagic=never-match;;
25854     esac
25855     ;;
25856   esac
25857   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25858   shlibpath_overrides_runpath=no
25859   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25860   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25861   hardcode_into_libs=yes
25862   ;;
25863
25864 # No shared lib support for Linux oldld, aout, or coff.
25865 linux*oldld* | linux*aout* | linux*coff*)
25866   dynamic_linker=no
25867   ;;
25868
25869 # This must be Linux ELF.
25870 linux* | k*bsd*-gnu)
25871   version_type=linux
25872   need_lib_prefix=no
25873   need_version=no
25874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25875   soname_spec='${libname}${release}${shared_ext}$major'
25876   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25877   shlibpath_var=LD_LIBRARY_PATH
25878   shlibpath_overrides_runpath=no
25879   # This implies no fast_install, which is unacceptable.
25880   # Some rework will be needed to allow for fast_install
25881   # before this can be enabled.
25882   hardcode_into_libs=yes
25883   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25884   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25885
25886   # Append ld.so.conf contents to the search path
25887   if test -f /etc/ld.so.conf; then
25888     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' ' '`
25889     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
25890   fi
25891
25892   # We used to test for /lib/ld.so.1 and disable shared libraries on
25893   # powerpc, because MkLinux only supported shared libraries with the
25894   # GNU dynamic linker.  Since this was broken with cross compilers,
25895   # most powerpc-linux boxes support dynamic linking these days and
25896   # people can always --disable-shared, the test was removed, and we
25897   # assume the GNU/Linux dynamic linker is in use.
25898   dynamic_linker='GNU/Linux ld.so'
25899   ;;
25900
25901 netbsd*)
25902   version_type=sunos
25903   need_lib_prefix=no
25904   need_version=no
25905   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25907     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25908     dynamic_linker='NetBSD (a.out) ld.so'
25909   else
25910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25911     soname_spec='${libname}${release}${shared_ext}$major'
25912     dynamic_linker='NetBSD ld.elf_so'
25913   fi
25914   shlibpath_var=LD_LIBRARY_PATH
25915   shlibpath_overrides_runpath=yes
25916   hardcode_into_libs=yes
25917   ;;
25918
25919 newsos6)
25920   version_type=linux
25921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25922   shlibpath_var=LD_LIBRARY_PATH
25923   shlibpath_overrides_runpath=yes
25924   ;;
25925
25926 nto-qnx*)
25927   version_type=linux
25928   need_lib_prefix=no
25929   need_version=no
25930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25931   soname_spec='${libname}${release}${shared_ext}$major'
25932   shlibpath_var=LD_LIBRARY_PATH
25933   shlibpath_overrides_runpath=yes
25934   ;;
25935
25936 openbsd*)
25937   version_type=sunos
25938   sys_lib_dlsearch_path_spec="/usr/lib"
25939   need_lib_prefix=no
25940   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25941   case $host_os in
25942     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25943     *)                         need_version=no  ;;
25944   esac
25945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25946   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25947   shlibpath_var=LD_LIBRARY_PATH
25948   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25949     case $host_os in
25950       openbsd2.[89] | openbsd2.[89].*)
25951         shlibpath_overrides_runpath=no
25952         ;;
25953       *)
25954         shlibpath_overrides_runpath=yes
25955         ;;
25956       esac
25957   else
25958     shlibpath_overrides_runpath=yes
25959   fi
25960   ;;
25961
25962 os2*)
25963   libname_spec='$name'
25964   shrext_cmds=".dll"
25965   need_lib_prefix=no
25966   library_names_spec='$libname${shared_ext} $libname.a'
25967   dynamic_linker='OS/2 ld.exe'
25968   shlibpath_var=LIBPATH
25969   ;;
25970
25971 osf3* | osf4* | osf5*)
25972   version_type=osf
25973   need_lib_prefix=no
25974   need_version=no
25975   soname_spec='${libname}${release}${shared_ext}$major'
25976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25977   shlibpath_var=LD_LIBRARY_PATH
25978   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25979   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25980   ;;
25981
25982 rdos*)
25983   dynamic_linker=no
25984   ;;
25985
25986 solaris*)
25987   version_type=linux
25988   need_lib_prefix=no
25989   need_version=no
25990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25991   soname_spec='${libname}${release}${shared_ext}$major'
25992   shlibpath_var=LD_LIBRARY_PATH
25993   shlibpath_overrides_runpath=yes
25994   hardcode_into_libs=yes
25995   # ldd complains unless libraries are executable
25996   postinstall_cmds='chmod +x $lib'
25997   ;;
25998
25999 sunos4*)
26000   version_type=sunos
26001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26002   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26003   shlibpath_var=LD_LIBRARY_PATH
26004   shlibpath_overrides_runpath=yes
26005   if test "$with_gnu_ld" = yes; then
26006     need_lib_prefix=no
26007   fi
26008   need_version=yes
26009   ;;
26010
26011 sysv4 | sysv4.3*)
26012   version_type=linux
26013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26014   soname_spec='${libname}${release}${shared_ext}$major'
26015   shlibpath_var=LD_LIBRARY_PATH
26016   case $host_vendor in
26017     sni)
26018       shlibpath_overrides_runpath=no
26019       need_lib_prefix=no
26020       export_dynamic_flag_spec='${wl}-Blargedynsym'
26021       runpath_var=LD_RUN_PATH
26022       ;;
26023     siemens)
26024       need_lib_prefix=no
26025       ;;
26026     motorola)
26027       need_lib_prefix=no
26028       need_version=no
26029       shlibpath_overrides_runpath=no
26030       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26031       ;;
26032   esac
26033   ;;
26034
26035 sysv4*MP*)
26036   if test -d /usr/nec ;then
26037     version_type=linux
26038     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26039     soname_spec='$libname${shared_ext}.$major'
26040     shlibpath_var=LD_LIBRARY_PATH
26041   fi
26042   ;;
26043
26044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26045   version_type=freebsd-elf
26046   need_lib_prefix=no
26047   need_version=no
26048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26049   soname_spec='${libname}${release}${shared_ext}$major'
26050   shlibpath_var=LD_LIBRARY_PATH
26051   hardcode_into_libs=yes
26052   if test "$with_gnu_ld" = yes; then
26053     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26054     shlibpath_overrides_runpath=no
26055   else
26056     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26057     shlibpath_overrides_runpath=yes
26058     case $host_os in
26059       sco3.2v5*)
26060         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26061         ;;
26062     esac
26063   fi
26064   sys_lib_dlsearch_path_spec='/usr/lib'
26065   ;;
26066
26067 uts4*)
26068   version_type=linux
26069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26070   soname_spec='${libname}${release}${shared_ext}$major'
26071   shlibpath_var=LD_LIBRARY_PATH
26072   ;;
26073
26074 *)
26075   dynamic_linker=no
26076   ;;
26077 esac
26078 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26079 echo "${ECHO_T}$dynamic_linker" >&6; }
26080 test "$dynamic_linker" = no && can_build_shared=no
26081
26082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26083 if test "$GCC" = yes; then
26084   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26085 fi
26086
26087 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26088 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26089 hardcode_action_GCJ=
26090 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26091    test -n "$runpath_var_GCJ" || \
26092    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26093
26094   # We can hardcode non-existant directories.
26095   if test "$hardcode_direct_GCJ" != no &&
26096      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26097      # have to relink, otherwise we might link with an installed library
26098      # when we should be linking with a yet-to-be-installed one
26099      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26100      test "$hardcode_minus_L_GCJ" != no; then
26101     # Linking always hardcodes the temporary library directory.
26102     hardcode_action_GCJ=relink
26103   else
26104     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26105     hardcode_action_GCJ=immediate
26106   fi
26107 else
26108   # We cannot hardcode anything, or else we can only hardcode existing
26109   # directories.
26110   hardcode_action_GCJ=unsupported
26111 fi
26112 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26113 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26114
26115 if test "$hardcode_action_GCJ" = relink; then
26116   # Fast installation is not supported
26117   enable_fast_install=no
26118 elif test "$shlibpath_overrides_runpath" = yes ||
26119      test "$enable_shared" = no; then
26120   # Fast installation is not necessary
26121   enable_fast_install=needless
26122 fi
26123
26124
26125 # The else clause should only fire when bootstrapping the
26126 # libtool distribution, otherwise you forgot to ship ltmain.sh
26127 # with your package, and you will get complaints that there are
26128 # no rules to generate ltmain.sh.
26129 if test -f "$ltmain"; then
26130   # See if we are running on zsh, and set the options which allow our commands through
26131   # without removal of \ escapes.
26132   if test -n "${ZSH_VERSION+set}" ; then
26133     setopt NO_GLOB_SUBST
26134   fi
26135   # Now quote all the things that may contain metacharacters while being
26136   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26137   # variables and quote the copies for generation of the libtool script.
26138   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26139     SED SHELL STRIP \
26140     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26141     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26142     deplibs_check_method reload_flag reload_cmds need_locks \
26143     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26144     lt_cv_sys_global_symbol_to_c_name_address \
26145     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26146     old_postinstall_cmds old_postuninstall_cmds \
26147     compiler_GCJ \
26148     CC_GCJ \
26149     LD_GCJ \
26150     lt_prog_compiler_wl_GCJ \
26151     lt_prog_compiler_pic_GCJ \
26152     lt_prog_compiler_static_GCJ \
26153     lt_prog_compiler_no_builtin_flag_GCJ \
26154     export_dynamic_flag_spec_GCJ \
26155     thread_safe_flag_spec_GCJ \
26156     whole_archive_flag_spec_GCJ \
26157     enable_shared_with_static_runtimes_GCJ \
26158     old_archive_cmds_GCJ \
26159     old_archive_from_new_cmds_GCJ \
26160     predep_objects_GCJ \
26161     postdep_objects_GCJ \
26162     predeps_GCJ \
26163     postdeps_GCJ \
26164     compiler_lib_search_path_GCJ \
26165     archive_cmds_GCJ \
26166     archive_expsym_cmds_GCJ \
26167     postinstall_cmds_GCJ \
26168     postuninstall_cmds_GCJ \
26169     old_archive_from_expsyms_cmds_GCJ \
26170     allow_undefined_flag_GCJ \
26171     no_undefined_flag_GCJ \
26172     export_symbols_cmds_GCJ \
26173     hardcode_libdir_flag_spec_GCJ \
26174     hardcode_libdir_flag_spec_ld_GCJ \
26175     hardcode_libdir_separator_GCJ \
26176     hardcode_automatic_GCJ \
26177     module_cmds_GCJ \
26178     module_expsym_cmds_GCJ \
26179     lt_cv_prog_compiler_c_o_GCJ \
26180     fix_srcfile_path_GCJ \
26181     exclude_expsyms_GCJ \
26182     include_expsyms_GCJ; do
26183
26184     case $var in
26185     old_archive_cmds_GCJ | \
26186     old_archive_from_new_cmds_GCJ | \
26187     archive_cmds_GCJ | \
26188     archive_expsym_cmds_GCJ | \
26189     module_cmds_GCJ | \
26190     module_expsym_cmds_GCJ | \
26191     old_archive_from_expsyms_cmds_GCJ | \
26192     export_symbols_cmds_GCJ | \
26193     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26194     postinstall_cmds | postuninstall_cmds | \
26195     old_postinstall_cmds | old_postuninstall_cmds | \
26196     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26197       # Double-quote double-evaled strings.
26198       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26199       ;;
26200     *)
26201       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26202       ;;
26203     esac
26204   done
26205
26206   case $lt_echo in
26207   *'\$0 --fallback-echo"')
26208     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26209     ;;
26210   esac
26211
26212 cfgfile="$ofile"
26213
26214   cat <<__EOF__ >> "$cfgfile"
26215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26216
26217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26218
26219 # Shell to use when invoking shell scripts.
26220 SHELL=$lt_SHELL
26221
26222 # Whether or not to build shared libraries.
26223 build_libtool_libs=$enable_shared
26224
26225 # Whether or not to build static libraries.
26226 build_old_libs=$enable_static
26227
26228 # Whether or not to add -lc for building shared libraries.
26229 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26230
26231 # Whether or not to disallow shared libs when runtime libs are static
26232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26233
26234 # Whether or not to optimize for fast installation.
26235 fast_install=$enable_fast_install
26236
26237 # The host system.
26238 host_alias=$host_alias
26239 host=$host
26240 host_os=$host_os
26241
26242 # The build system.
26243 build_alias=$build_alias
26244 build=$build
26245 build_os=$build_os
26246
26247 # An echo program that does not interpret backslashes.
26248 echo=$lt_echo
26249
26250 # The archiver.
26251 AR=$lt_AR
26252 AR_FLAGS=$lt_AR_FLAGS
26253
26254 # A C compiler.
26255 LTCC=$lt_LTCC
26256
26257 # LTCC compiler flags.
26258 LTCFLAGS=$lt_LTCFLAGS
26259
26260 # A language-specific compiler.
26261 CC=$lt_compiler_GCJ
26262
26263 # Is the compiler the GNU C compiler?
26264 with_gcc=$GCC_GCJ
26265
26266 # An ERE matcher.
26267 EGREP=$lt_EGREP
26268
26269 # The linker used to build libraries.
26270 LD=$lt_LD_GCJ
26271
26272 # Whether we need hard or soft links.
26273 LN_S=$lt_LN_S
26274
26275 # A BSD-compatible nm program.
26276 NM=$lt_NM
26277
26278 # A symbol stripping program
26279 STRIP=$lt_STRIP
26280
26281 # Used to examine libraries when file_magic_cmd begins "file"
26282 MAGIC_CMD=$MAGIC_CMD
26283
26284 # Used on cygwin: DLL creation program.
26285 DLLTOOL="$DLLTOOL"
26286
26287 # Used on cygwin: object dumper.
26288 OBJDUMP="$OBJDUMP"
26289
26290 # Used on cygwin: assembler.
26291 AS="$AS"
26292
26293 # The name of the directory that contains temporary libtool files.
26294 objdir=$objdir
26295
26296 # How to create reloadable object files.
26297 reload_flag=$lt_reload_flag
26298 reload_cmds=$lt_reload_cmds
26299
26300 # How to pass a linker flag through the compiler.
26301 wl=$lt_lt_prog_compiler_wl_GCJ
26302
26303 # Object file suffix (normally "o").
26304 objext="$ac_objext"
26305
26306 # Old archive suffix (normally "a").
26307 libext="$libext"
26308
26309 # Shared library suffix (normally ".so").
26310 shrext_cmds='$shrext_cmds'
26311
26312 # Executable file suffix (normally "").
26313 exeext="$exeext"
26314
26315 # Additional compiler flags for building library objects.
26316 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26317 pic_mode=$pic_mode
26318
26319 # What is the maximum length of a command?
26320 max_cmd_len=$lt_cv_sys_max_cmd_len
26321
26322 # Does compiler simultaneously support -c and -o options?
26323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26324
26325 # Must we lock files when doing compilation?
26326 need_locks=$lt_need_locks
26327
26328 # Do we need the lib prefix for modules?
26329 need_lib_prefix=$need_lib_prefix
26330
26331 # Do we need a version for libraries?
26332 need_version=$need_version
26333
26334 # Whether dlopen is supported.
26335 dlopen_support=$enable_dlopen
26336
26337 # Whether dlopen of programs is supported.
26338 dlopen_self=$enable_dlopen_self
26339
26340 # Whether dlopen of statically linked programs is supported.
26341 dlopen_self_static=$enable_dlopen_self_static
26342
26343 # Compiler flag to prevent dynamic linking.
26344 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26345
26346 # Compiler flag to turn off builtin functions.
26347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26348
26349 # Compiler flag to allow reflexive dlopens.
26350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26351
26352 # Compiler flag to generate shared objects directly from archives.
26353 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26354
26355 # Compiler flag to generate thread-safe objects.
26356 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26357
26358 # Library versioning type.
26359 version_type=$version_type
26360
26361 # Format of library name prefix.
26362 libname_spec=$lt_libname_spec
26363
26364 # List of archive names.  First name is the real one, the rest are links.
26365 # The last name is the one that the linker finds with -lNAME.
26366 library_names_spec=$lt_library_names_spec
26367
26368 # The coded name of the library, if different from the real name.
26369 soname_spec=$lt_soname_spec
26370
26371 # Commands used to build and install an old-style archive.
26372 RANLIB=$lt_RANLIB
26373 old_archive_cmds=$lt_old_archive_cmds_GCJ
26374 old_postinstall_cmds=$lt_old_postinstall_cmds
26375 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26376
26377 # Create an old-style archive from a shared archive.
26378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26379
26380 # Create a temporary old-style archive to link instead of a shared archive.
26381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26382
26383 # Commands used to build and install a shared archive.
26384 archive_cmds=$lt_archive_cmds_GCJ
26385 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26386 postinstall_cmds=$lt_postinstall_cmds
26387 postuninstall_cmds=$lt_postuninstall_cmds
26388
26389 # Commands used to build a loadable module (assumed same as above if empty)
26390 module_cmds=$lt_module_cmds_GCJ
26391 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26392
26393 # Commands to strip libraries.
26394 old_striplib=$lt_old_striplib
26395 striplib=$lt_striplib
26396
26397 # Dependencies to place before the objects being linked to create a
26398 # shared library.
26399 predep_objects=$lt_predep_objects_GCJ
26400
26401 # Dependencies to place after the objects being linked to create a
26402 # shared library.
26403 postdep_objects=$lt_postdep_objects_GCJ
26404
26405 # Dependencies to place before the objects being linked to create a
26406 # shared library.
26407 predeps=$lt_predeps_GCJ
26408
26409 # Dependencies to place after the objects being linked to create a
26410 # shared library.
26411 postdeps=$lt_postdeps_GCJ
26412
26413 # The library search path used internally by the compiler when linking
26414 # a shared library.
26415 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26416
26417 # Method to check whether dependent libraries are shared objects.
26418 deplibs_check_method=$lt_deplibs_check_method
26419
26420 # Command to use when deplibs_check_method == file_magic.
26421 file_magic_cmd=$lt_file_magic_cmd
26422
26423 # Flag that allows shared libraries with undefined symbols to be built.
26424 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26425
26426 # Flag that forces no undefined symbols.
26427 no_undefined_flag=$lt_no_undefined_flag_GCJ
26428
26429 # Commands used to finish a libtool library installation in a directory.
26430 finish_cmds=$lt_finish_cmds
26431
26432 # Same as above, but a single script fragment to be evaled but not shown.
26433 finish_eval=$lt_finish_eval
26434
26435 # Take the output of nm and produce a listing of raw symbols and C names.
26436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26437
26438 # Transform the output of nm in a proper C declaration
26439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26440
26441 # Transform the output of nm in a C name address pair
26442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26443
26444 # This is the shared library runtime path variable.
26445 runpath_var=$runpath_var
26446
26447 # This is the shared library path variable.
26448 shlibpath_var=$shlibpath_var
26449
26450 # Is shlibpath searched before the hard-coded library search path?
26451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26452
26453 # How to hardcode a shared library path into an executable.
26454 hardcode_action=$hardcode_action_GCJ
26455
26456 # Whether we should hardcode library paths into libraries.
26457 hardcode_into_libs=$hardcode_into_libs
26458
26459 # Flag to hardcode \$libdir into a binary during linking.
26460 # This must work even if \$libdir does not exist.
26461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26462
26463 # If ld is used when linking, flag to hardcode \$libdir into
26464 # a binary during linking. This must work even if \$libdir does
26465 # not exist.
26466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26467
26468 # Whether we need a single -rpath flag with a separated argument.
26469 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26470
26471 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26472 # resulting binary.
26473 hardcode_direct=$hardcode_direct_GCJ
26474
26475 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26476 # resulting binary.
26477 hardcode_minus_L=$hardcode_minus_L_GCJ
26478
26479 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26480 # the resulting binary.
26481 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26482
26483 # Set to yes if building a shared library automatically hardcodes DIR into the library
26484 # and all subsequent libraries and executables linked against it.
26485 hardcode_automatic=$hardcode_automatic_GCJ
26486
26487 # Variables whose values should be saved in libtool wrapper scripts and
26488 # restored at relink time.
26489 variables_saved_for_relink="$variables_saved_for_relink"
26490
26491 # Whether libtool must link a program against all its dependency libraries.
26492 link_all_deplibs=$link_all_deplibs_GCJ
26493
26494 # Compile-time system search path for libraries
26495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26496
26497 # Run-time system search path for libraries
26498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26499
26500 # Fix the shell variable \$srcfile for the compiler.
26501 fix_srcfile_path=$lt_fix_srcfile_path
26502
26503 # Set to yes if exported symbols are required.
26504 always_export_symbols=$always_export_symbols_GCJ
26505
26506 # The commands to list exported symbols.
26507 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26508
26509 # The commands to extract the exported symbol list from a shared archive.
26510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26511
26512 # Symbols that should not be listed in the preloaded symbols.
26513 exclude_expsyms=$lt_exclude_expsyms_GCJ
26514
26515 # Symbols that must always be exported.
26516 include_expsyms=$lt_include_expsyms_GCJ
26517
26518 # ### END LIBTOOL TAG CONFIG: $tagname
26519
26520 __EOF__
26521
26522
26523 else
26524   # If there is no Makefile yet, we rely on a make rule to execute
26525   # `config.status --recheck' to rerun these tests and create the
26526   # libtool script then.
26527   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26528   if test -f "$ltmain_in"; then
26529     test -f Makefile && make "$ltmain"
26530   fi
26531 fi
26532
26533
26534 ac_ext=c
26535 ac_cpp='$CPP $CPPFLAGS'
26536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26539
26540 CC="$lt_save_CC"
26541
26542         else
26543           tagname=""
26544         fi
26545         ;;
26546
26547       RC)
26548
26549
26550 # Source file extension for RC test sources.
26551 ac_ext=rc
26552
26553 # Object file extension for compiled RC test sources.
26554 objext=o
26555 objext_RC=$objext
26556
26557 # Code to be used in simple compile tests
26558 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26559
26560 # Code to be used in simple link tests
26561 lt_simple_link_test_code="$lt_simple_compile_test_code"
26562
26563 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26564
26565 # If no C compiler was specified, use CC.
26566 LTCC=${LTCC-"$CC"}
26567
26568 # If no C compiler flags were specified, use CFLAGS.
26569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26570
26571 # Allow CC to be a program name with arguments.
26572 compiler=$CC
26573
26574
26575 # save warnings/boilerplate of simple test code
26576 ac_outfile=conftest.$ac_objext
26577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26579 _lt_compiler_boilerplate=`cat conftest.err`
26580 $rm conftest*
26581
26582 ac_outfile=conftest.$ac_objext
26583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
26584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26585 _lt_linker_boilerplate=`cat conftest.err`
26586 $rm conftest*
26587
26588
26589 # Allow CC to be a program name with arguments.
26590 lt_save_CC="$CC"
26591 CC=${RC-"windres"}
26592 compiler=$CC
26593 compiler_RC=$CC
26594 for cc_temp in $compiler""; do
26595   case $cc_temp in
26596     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26597     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26598     \-*) ;;
26599     *) break;;
26600   esac
26601 done
26602 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26603
26604 lt_cv_prog_compiler_c_o_RC=yes
26605
26606 # The else clause should only fire when bootstrapping the
26607 # libtool distribution, otherwise you forgot to ship ltmain.sh
26608 # with your package, and you will get complaints that there are
26609 # no rules to generate ltmain.sh.
26610 if test -f "$ltmain"; then
26611   # See if we are running on zsh, and set the options which allow our commands through
26612   # without removal of \ escapes.
26613   if test -n "${ZSH_VERSION+set}" ; then
26614     setopt NO_GLOB_SUBST
26615   fi
26616   # Now quote all the things that may contain metacharacters while being
26617   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26618   # variables and quote the copies for generation of the libtool script.
26619   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26620     SED SHELL STRIP \
26621     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26622     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26623     deplibs_check_method reload_flag reload_cmds need_locks \
26624     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26625     lt_cv_sys_global_symbol_to_c_name_address \
26626     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26627     old_postinstall_cmds old_postuninstall_cmds \
26628     compiler_RC \
26629     CC_RC \
26630     LD_RC \
26631     lt_prog_compiler_wl_RC \
26632     lt_prog_compiler_pic_RC \
26633     lt_prog_compiler_static_RC \
26634     lt_prog_compiler_no_builtin_flag_RC \
26635     export_dynamic_flag_spec_RC \
26636     thread_safe_flag_spec_RC \
26637     whole_archive_flag_spec_RC \
26638     enable_shared_with_static_runtimes_RC \
26639     old_archive_cmds_RC \
26640     old_archive_from_new_cmds_RC \
26641     predep_objects_RC \
26642     postdep_objects_RC \
26643     predeps_RC \
26644     postdeps_RC \
26645     compiler_lib_search_path_RC \
26646     archive_cmds_RC \
26647     archive_expsym_cmds_RC \
26648     postinstall_cmds_RC \
26649     postuninstall_cmds_RC \
26650     old_archive_from_expsyms_cmds_RC \
26651     allow_undefined_flag_RC \
26652     no_undefined_flag_RC \
26653     export_symbols_cmds_RC \
26654     hardcode_libdir_flag_spec_RC \
26655     hardcode_libdir_flag_spec_ld_RC \
26656     hardcode_libdir_separator_RC \
26657     hardcode_automatic_RC \
26658     module_cmds_RC \
26659     module_expsym_cmds_RC \
26660     lt_cv_prog_compiler_c_o_RC \
26661     fix_srcfile_path_RC \
26662     exclude_expsyms_RC \
26663     include_expsyms_RC; do
26664
26665     case $var in
26666     old_archive_cmds_RC | \
26667     old_archive_from_new_cmds_RC | \
26668     archive_cmds_RC | \
26669     archive_expsym_cmds_RC | \
26670     module_cmds_RC | \
26671     module_expsym_cmds_RC | \
26672     old_archive_from_expsyms_cmds_RC | \
26673     export_symbols_cmds_RC | \
26674     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26675     postinstall_cmds | postuninstall_cmds | \
26676     old_postinstall_cmds | old_postuninstall_cmds | \
26677     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26678       # Double-quote double-evaled strings.
26679       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26680       ;;
26681     *)
26682       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26683       ;;
26684     esac
26685   done
26686
26687   case $lt_echo in
26688   *'\$0 --fallback-echo"')
26689     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26690     ;;
26691   esac
26692
26693 cfgfile="$ofile"
26694
26695   cat <<__EOF__ >> "$cfgfile"
26696 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26697
26698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26699
26700 # Shell to use when invoking shell scripts.
26701 SHELL=$lt_SHELL
26702
26703 # Whether or not to build shared libraries.
26704 build_libtool_libs=$enable_shared
26705
26706 # Whether or not to build static libraries.
26707 build_old_libs=$enable_static
26708
26709 # Whether or not to add -lc for building shared libraries.
26710 build_libtool_need_lc=$archive_cmds_need_lc_RC
26711
26712 # Whether or not to disallow shared libs when runtime libs are static
26713 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26714
26715 # Whether or not to optimize for fast installation.
26716 fast_install=$enable_fast_install
26717
26718 # The host system.
26719 host_alias=$host_alias
26720 host=$host
26721 host_os=$host_os
26722
26723 # The build system.
26724 build_alias=$build_alias
26725 build=$build
26726 build_os=$build_os
26727
26728 # An echo program that does not interpret backslashes.
26729 echo=$lt_echo
26730
26731 # The archiver.
26732 AR=$lt_AR
26733 AR_FLAGS=$lt_AR_FLAGS
26734
26735 # A C compiler.
26736 LTCC=$lt_LTCC
26737
26738 # LTCC compiler flags.
26739 LTCFLAGS=$lt_LTCFLAGS
26740
26741 # A language-specific compiler.
26742 CC=$lt_compiler_RC
26743
26744 # Is the compiler the GNU C compiler?
26745 with_gcc=$GCC_RC
26746
26747 # An ERE matcher.
26748 EGREP=$lt_EGREP
26749
26750 # The linker used to build libraries.
26751 LD=$lt_LD_RC
26752
26753 # Whether we need hard or soft links.
26754 LN_S=$lt_LN_S
26755
26756 # A BSD-compatible nm program.
26757 NM=$lt_NM
26758
26759 # A symbol stripping program
26760 STRIP=$lt_STRIP
26761
26762 # Used to examine libraries when file_magic_cmd begins "file"
26763 MAGIC_CMD=$MAGIC_CMD
26764
26765 # Used on cygwin: DLL creation program.
26766 DLLTOOL="$DLLTOOL"
26767
26768 # Used on cygwin: object dumper.
26769 OBJDUMP="$OBJDUMP"
26770
26771 # Used on cygwin: assembler.
26772 AS="$AS"
26773
26774 # The name of the directory that contains temporary libtool files.
26775 objdir=$objdir
26776
26777 # How to create reloadable object files.
26778 reload_flag=$lt_reload_flag
26779 reload_cmds=$lt_reload_cmds
26780
26781 # How to pass a linker flag through the compiler.
26782 wl=$lt_lt_prog_compiler_wl_RC
26783
26784 # Object file suffix (normally "o").
26785 objext="$ac_objext"
26786
26787 # Old archive suffix (normally "a").
26788 libext="$libext"
26789
26790 # Shared library suffix (normally ".so").
26791 shrext_cmds='$shrext_cmds'
26792
26793 # Executable file suffix (normally "").
26794 exeext="$exeext"
26795
26796 # Additional compiler flags for building library objects.
26797 pic_flag=$lt_lt_prog_compiler_pic_RC
26798 pic_mode=$pic_mode
26799
26800 # What is the maximum length of a command?
26801 max_cmd_len=$lt_cv_sys_max_cmd_len
26802
26803 # Does compiler simultaneously support -c and -o options?
26804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26805
26806 # Must we lock files when doing compilation?
26807 need_locks=$lt_need_locks
26808
26809 # Do we need the lib prefix for modules?
26810 need_lib_prefix=$need_lib_prefix
26811
26812 # Do we need a version for libraries?
26813 need_version=$need_version
26814
26815 # Whether dlopen is supported.
26816 dlopen_support=$enable_dlopen
26817
26818 # Whether dlopen of programs is supported.
26819 dlopen_self=$enable_dlopen_self
26820
26821 # Whether dlopen of statically linked programs is supported.
26822 dlopen_self_static=$enable_dlopen_self_static
26823
26824 # Compiler flag to prevent dynamic linking.
26825 link_static_flag=$lt_lt_prog_compiler_static_RC
26826
26827 # Compiler flag to turn off builtin functions.
26828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26829
26830 # Compiler flag to allow reflexive dlopens.
26831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26832
26833 # Compiler flag to generate shared objects directly from archives.
26834 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26835
26836 # Compiler flag to generate thread-safe objects.
26837 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26838
26839 # Library versioning type.
26840 version_type=$version_type
26841
26842 # Format of library name prefix.
26843 libname_spec=$lt_libname_spec
26844
26845 # List of archive names.  First name is the real one, the rest are links.
26846 # The last name is the one that the linker finds with -lNAME.
26847 library_names_spec=$lt_library_names_spec
26848
26849 # The coded name of the library, if different from the real name.
26850 soname_spec=$lt_soname_spec
26851
26852 # Commands used to build and install an old-style archive.
26853 RANLIB=$lt_RANLIB
26854 old_archive_cmds=$lt_old_archive_cmds_RC
26855 old_postinstall_cmds=$lt_old_postinstall_cmds
26856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26857
26858 # Create an old-style archive from a shared archive.
26859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26860
26861 # Create a temporary old-style archive to link instead of a shared archive.
26862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26863
26864 # Commands used to build and install a shared archive.
26865 archive_cmds=$lt_archive_cmds_RC
26866 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26867 postinstall_cmds=$lt_postinstall_cmds
26868 postuninstall_cmds=$lt_postuninstall_cmds
26869
26870 # Commands used to build a loadable module (assumed same as above if empty)
26871 module_cmds=$lt_module_cmds_RC
26872 module_expsym_cmds=$lt_module_expsym_cmds_RC
26873
26874 # Commands to strip libraries.
26875 old_striplib=$lt_old_striplib
26876 striplib=$lt_striplib
26877
26878 # Dependencies to place before the objects being linked to create a
26879 # shared library.
26880 predep_objects=$lt_predep_objects_RC
26881
26882 # Dependencies to place after the objects being linked to create a
26883 # shared library.
26884 postdep_objects=$lt_postdep_objects_RC
26885
26886 # Dependencies to place before the objects being linked to create a
26887 # shared library.
26888 predeps=$lt_predeps_RC
26889
26890 # Dependencies to place after the objects being linked to create a
26891 # shared library.
26892 postdeps=$lt_postdeps_RC
26893
26894 # The library search path used internally by the compiler when linking
26895 # a shared library.
26896 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26897
26898 # Method to check whether dependent libraries are shared objects.
26899 deplibs_check_method=$lt_deplibs_check_method
26900
26901 # Command to use when deplibs_check_method == file_magic.
26902 file_magic_cmd=$lt_file_magic_cmd
26903
26904 # Flag that allows shared libraries with undefined symbols to be built.
26905 allow_undefined_flag=$lt_allow_undefined_flag_RC
26906
26907 # Flag that forces no undefined symbols.
26908 no_undefined_flag=$lt_no_undefined_flag_RC
26909
26910 # Commands used to finish a libtool library installation in a directory.
26911 finish_cmds=$lt_finish_cmds
26912
26913 # Same as above, but a single script fragment to be evaled but not shown.
26914 finish_eval=$lt_finish_eval
26915
26916 # Take the output of nm and produce a listing of raw symbols and C names.
26917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26918
26919 # Transform the output of nm in a proper C declaration
26920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26921
26922 # Transform the output of nm in a C name address pair
26923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26924
26925 # This is the shared library runtime path variable.
26926 runpath_var=$runpath_var
26927
26928 # This is the shared library path variable.
26929 shlibpath_var=$shlibpath_var
26930
26931 # Is shlibpath searched before the hard-coded library search path?
26932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26933
26934 # How to hardcode a shared library path into an executable.
26935 hardcode_action=$hardcode_action_RC
26936
26937 # Whether we should hardcode library paths into libraries.
26938 hardcode_into_libs=$hardcode_into_libs
26939
26940 # Flag to hardcode \$libdir into a binary during linking.
26941 # This must work even if \$libdir does not exist.
26942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26943
26944 # If ld is used when linking, flag to hardcode \$libdir into
26945 # a binary during linking. This must work even if \$libdir does
26946 # not exist.
26947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26948
26949 # Whether we need a single -rpath flag with a separated argument.
26950 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26951
26952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26953 # resulting binary.
26954 hardcode_direct=$hardcode_direct_RC
26955
26956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26957 # resulting binary.
26958 hardcode_minus_L=$hardcode_minus_L_RC
26959
26960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26961 # the resulting binary.
26962 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26963
26964 # Set to yes if building a shared library automatically hardcodes DIR into the library
26965 # and all subsequent libraries and executables linked against it.
26966 hardcode_automatic=$hardcode_automatic_RC
26967
26968 # Variables whose values should be saved in libtool wrapper scripts and
26969 # restored at relink time.
26970 variables_saved_for_relink="$variables_saved_for_relink"
26971
26972 # Whether libtool must link a program against all its dependency libraries.
26973 link_all_deplibs=$link_all_deplibs_RC
26974
26975 # Compile-time system search path for libraries
26976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26977
26978 # Run-time system search path for libraries
26979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26980
26981 # Fix the shell variable \$srcfile for the compiler.
26982 fix_srcfile_path=$lt_fix_srcfile_path
26983
26984 # Set to yes if exported symbols are required.
26985 always_export_symbols=$always_export_symbols_RC
26986
26987 # The commands to list exported symbols.
26988 export_symbols_cmds=$lt_export_symbols_cmds_RC
26989
26990 # The commands to extract the exported symbol list from a shared archive.
26991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26992
26993 # Symbols that should not be listed in the preloaded symbols.
26994 exclude_expsyms=$lt_exclude_expsyms_RC
26995
26996 # Symbols that must always be exported.
26997 include_expsyms=$lt_include_expsyms_RC
26998
26999 # ### END LIBTOOL TAG CONFIG: $tagname
27000
27001 __EOF__
27002
27003
27004 else
27005   # If there is no Makefile yet, we rely on a make rule to execute
27006   # `config.status --recheck' to rerun these tests and create the
27007   # libtool script then.
27008   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27009   if test -f "$ltmain_in"; then
27010     test -f Makefile && make "$ltmain"
27011   fi
27012 fi
27013
27014
27015 ac_ext=c
27016 ac_cpp='$CPP $CPPFLAGS'
27017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27020
27021 CC="$lt_save_CC"
27022
27023         ;;
27024
27025       *)
27026         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27027 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27028    { (exit 1); exit 1; }; }
27029         ;;
27030       esac
27031
27032       # Append the new tag name to the list of available tags.
27033       if test -n "$tagname" ; then
27034       available_tags="$available_tags $tagname"
27035     fi
27036     fi
27037   done
27038   IFS="$lt_save_ifs"
27039
27040   # Now substitute the updated list of available tags.
27041   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27042     mv "${ofile}T" "$ofile"
27043     chmod +x "$ofile"
27044   else
27045     rm -f "${ofile}T"
27046     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27047 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27048    { (exit 1); exit 1; }; }
27049   fi
27050 fi
27051
27052
27053
27054 # This can be used to rebuild libtool when needed
27055 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27056
27057 # Always use our own libtool.
27058 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
27059
27060 # Prevent multiple expansion
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084         { echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
27085 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6; }
27086
27087 # Check whether --with-vrootdir was given.
27088 if test "${with_vrootdir+set}" = set; then
27089   withval=$with_vrootdir; case "$withval" in
27090                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
27091 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
27092    { (exit 1); exit 1; }; };;
27093                         *)      ensc_uv_path_vrootdir=$withval;;
27094                      esac
27095 else
27096   ensc_uv_path_vrootdir=/vservers
27097 fi
27098
27099         { echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
27100 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6; }
27101
27102         if test x"vserverdir" != x; then
27103                 vserverdir=$ensc_uv_path_vrootdir
27104
27105         fi
27106
27107
27108         for ac_prog in svn2cl
27109 do
27110   # Extract the first word of "$ac_prog", so it can be a program name with args.
27111 set dummy $ac_prog; ac_word=$2
27112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27114 if test "${ac_cv_prog_SVN2CL+set}" = set; then
27115   echo $ECHO_N "(cached) $ECHO_C" >&6
27116 else
27117   if test -n "$SVN2CL"; then
27118   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
27119 else
27120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27121 for as_dir in $PATH
27122 do
27123   IFS=$as_save_IFS
27124   test -z "$as_dir" && as_dir=.
27125   for ac_exec_ext in '' $ac_executable_extensions; do
27126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27127     ac_cv_prog_SVN2CL="$ac_prog"
27128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27129     break 2
27130   fi
27131 done
27132 done
27133 IFS=$as_save_IFS
27134
27135 fi
27136 fi
27137 SVN2CL=$ac_cv_prog_SVN2CL
27138 if test -n "$SVN2CL"; then
27139   { echo "$as_me:$LINENO: result: $SVN2CL" >&5
27140 echo "${ECHO_T}$SVN2CL" >&6; }
27141 else
27142   { echo "$as_me:$LINENO: result: no" >&5
27143 echo "${ECHO_T}no" >&6; }
27144 fi
27145
27146
27147   test -n "$SVN2CL" && break
27148 done
27149
27150          if test x"$SVN2CL" != x; then
27151   HAVE_SVN2CL_TRUE=
27152   HAVE_SVN2CL_FALSE='#'
27153 else
27154   HAVE_SVN2CL_TRUE='#'
27155   HAVE_SVN2CL_FALSE=
27156 fi
27157
27158
27159
27160
27161 { echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
27162 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6; }
27163 # Check whether --enable-internal-headers was given.
27164 if test "${enable_internal_headers+set}" = set; then
27165   enableval=$enable_internal_headers; case "$enableval" in
27166                   (yes|no) ;;
27167                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
27168 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
27169    { (exit 1); exit 1; }; };;
27170                esac
27171 else
27172   enable_internal_headers=yes
27173 fi
27174
27175
27176  if test x"$enable_internal_headers" = xyes; then
27177   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
27178   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
27179 else
27180   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
27181   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
27182 fi
27183
27184 { echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
27185 echo "${ECHO_T}$enable_internal_headers" >&6; }
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214 { echo "$as_me:$LINENO: checking for supported APIs" >&5
27215 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6; }
27216 # Check whether --enable-apis was given.
27217 if test "${enable_apis+set}" = set; then
27218   enableval=$enable_apis;
27219 else
27220   enable_apis=v13,net,v21,v22,v23,netv2
27221 fi
27222
27223
27224 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
27225 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
27226 enable_api_oldproc=
27227 enable_api_olduts=
27228 old_IFS=$IFS
27229 IFS=,;
27230
27231 for i in $enable_apis; do
27232         case "$i" in
27233                 (compat)        cat >>confdefs.h <<\_ACEOF
27234 #define VC_ENABLE_API_COMPAT 1
27235 _ACEOF
27236
27237                                 enable_api_oldproc=${enable_api_oldproc:-1}
27238                                 enable_api_olduts=${enable_api_olduts:-1}
27239                                 ;;
27240                 (legacy)        cat >>confdefs.h <<\_ACEOF
27241 #define VC_ENABLE_API_LEGACY 1
27242 _ACEOF
27243
27244                                 enable_api_oldproc=${enable_api_oldproc:-1}
27245                                 enable_api_olduts=${enable_api_olduts:-1}
27246                                 ;;
27247                 (v11)           cat >>confdefs.h <<\_ACEOF
27248 #define VC_ENABLE_API_V11 1
27249 _ACEOF
27250
27251                                 enable_api_oldproc=${enable_api_oldproc:-1}
27252                                 enable_api_olduts=${enable_api_olduts:-1}
27253                                 ;;
27254                 (fscompat)      cat >>confdefs.h <<\_ACEOF
27255 #define VC_ENABLE_API_FSCOMPAT 1
27256 _ACEOF
27257 ;;
27258                 (v13obs)        cat >>confdefs.h <<\_ACEOF
27259 #define VC_ENABLE_API_V13OBS 1
27260 _ACEOF
27261
27262                                 cat >>confdefs.h <<\_ACEOF
27263 #define VC_ENABLE_API_V13 1
27264 _ACEOF
27265 ;;
27266                 (v13)           cat >>confdefs.h <<\_ACEOF
27267 #define VC_ENABLE_API_V13 1
27268 _ACEOF
27269 ;;
27270                 (net)           cat >>confdefs.h <<\_ACEOF
27271 #define VC_ENABLE_API_NET 1
27272 _ACEOF
27273 ;;
27274                 (v21)           cat >>confdefs.h <<\_ACEOF
27275 #define VC_ENABLE_API_V21 1
27276 _ACEOF
27277 ;;
27278                 (v22)           cat >>confdefs.h <<\_ACEOF
27279 #define VC_ENABLE_API_V22 1
27280 _ACEOF
27281 ;;
27282                 (v23)           cat >>confdefs.h <<\_ACEOF
27283 #define VC_ENABLE_API_V23 1
27284 _ACEOF
27285 ;;
27286                 (netv2)         cat >>confdefs.h <<\_ACEOF
27287 #define VC_ENABLE_API_NETV2 1
27288 _ACEOF
27289 ;;
27290                 (oldproc)       enable_api_oldproc=2;;
27291                 (olduts)        enable_api_olduts=2;;
27292                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
27293 echo "$as_me: error: '$i' is not a supported API" >&2;}
27294    { (exit 1); exit 1; }; };;
27295         esac
27296 done
27297 IFS=$old_IFS
27298 if test x"$enable_api_oldproc" != x; then
27299         cat >>confdefs.h <<\_ACEOF
27300 #define VC_ENABLE_API_OLDPROC 1
27301 _ACEOF
27302
27303         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
27304 fi
27305 if test x"$enable_api_olduts" != x; then
27306         cat >>confdefs.h <<\_ACEOF
27307 #define VC_ENABLE_API_OLDUTS 1
27308 _ACEOF
27309
27310         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
27311 fi
27312 { echo "$as_me:$LINENO: result: $enable_apis" >&5
27313 echo "${ECHO_T}$enable_apis" >&6; }
27314
27315
27316
27317
27318     ac_ext=cpp
27319 ac_cpp='$CXXCPP $CPPFLAGS'
27320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27323
27324     { echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
27325 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6; }
27326 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
27327   echo $ECHO_N "(cached) $ECHO_C" >&6
27328 else
27329
27330         cat >conftest.$ac_ext <<_ACEOF
27331 /* confdefs.h.  */
27332 _ACEOF
27333 cat confdefs.h >>conftest.$ac_ext
27334 cat >>conftest.$ac_ext <<_ACEOF
27335 /* end confdefs.h.  */
27336 #include <ext2fs/ext2_fs.h>
27337                                           int main() { return 0; }
27338 _ACEOF
27339 rm -f conftest.$ac_objext
27340 if { (ac_try="$ac_compile"
27341 case "(($ac_try" in
27342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27343   *) ac_try_echo=$ac_try;;
27344 esac
27345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346   (eval "$ac_compile") 2>conftest.er1
27347   ac_status=$?
27348   grep -v '^ *+' conftest.er1 >conftest.err
27349   rm -f conftest.er1
27350   cat conftest.err >&5
27351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352   (exit $ac_status); } && {
27353          test -z "$ac_cxx_werror_flag" ||
27354          test ! -s conftest.err
27355        } && test -s conftest.$ac_objext; then
27356   ensc_cv_test_ext2fs_header=e2fsprogs
27357 else
27358   echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27360
27361
27362         cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368 #include <linux/ext2_fs.h>
27369                                           int main() { return 0; }
27370 _ACEOF
27371 rm -f conftest.$ac_objext
27372 if { (ac_try="$ac_compile"
27373 case "(($ac_try" in
27374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375   *) ac_try_echo=$ac_try;;
27376 esac
27377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378   (eval "$ac_compile") 2>conftest.er1
27379   ac_status=$?
27380   grep -v '^ *+' conftest.er1 >conftest.err
27381   rm -f conftest.er1
27382   cat conftest.err >&5
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); } && {
27385          test -z "$ac_cxx_werror_flag" ||
27386          test ! -s conftest.err
27387        } && test -s conftest.$ac_objext; then
27388   ensc_cv_test_ext2fs_header=kernel
27389 else
27390   echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393
27394         ensc_cv_test_ext2fs_header=none
27395 fi
27396
27397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398 fi
27399
27400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27401 fi
27402 { echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
27403 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6; }
27404
27405     case x"$ensc_cv_test_ext2fs_header" in
27406         (xe2fsprogs)
27407                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27408   { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27409 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27410 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27411   echo $ECHO_N "(cached) $ECHO_C" >&6
27412 fi
27413 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27414 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27415 else
27416   # Is the header compilable?
27417 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
27418 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6; }
27419 cat >conftest.$ac_ext <<_ACEOF
27420 /* confdefs.h.  */
27421 _ACEOF
27422 cat confdefs.h >>conftest.$ac_ext
27423 cat >>conftest.$ac_ext <<_ACEOF
27424 /* end confdefs.h.  */
27425 $ac_includes_default
27426 #include <ext2fs/ext2_fs.h>
27427 _ACEOF
27428 rm -f conftest.$ac_objext
27429 if { (ac_try="$ac_compile"
27430 case "(($ac_try" in
27431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432   *) ac_try_echo=$ac_try;;
27433 esac
27434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27435   (eval "$ac_compile") 2>conftest.er1
27436   ac_status=$?
27437   grep -v '^ *+' conftest.er1 >conftest.err
27438   rm -f conftest.er1
27439   cat conftest.err >&5
27440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441   (exit $ac_status); } && {
27442          test -z "$ac_cxx_werror_flag" ||
27443          test ! -s conftest.err
27444        } && test -s conftest.$ac_objext; then
27445   ac_header_compiler=yes
27446 else
27447   echo "$as_me: failed program was:" >&5
27448 sed 's/^/| /' conftest.$ac_ext >&5
27449
27450         ac_header_compiler=no
27451 fi
27452
27453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27455 echo "${ECHO_T}$ac_header_compiler" >&6; }
27456
27457 # Is the header present?
27458 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
27459 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6; }
27460 cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466 #include <ext2fs/ext2_fs.h>
27467 _ACEOF
27468 if { (ac_try="$ac_cpp conftest.$ac_ext"
27469 case "(($ac_try" in
27470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471   *) ac_try_echo=$ac_try;;
27472 esac
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27475   ac_status=$?
27476   grep -v '^ *+' conftest.er1 >conftest.err
27477   rm -f conftest.er1
27478   cat conftest.err >&5
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); } >/dev/null && {
27481          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27482          test ! -s conftest.err
27483        }; then
27484   ac_header_preproc=yes
27485 else
27486   echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27488
27489   ac_header_preproc=no
27490 fi
27491
27492 rm -f conftest.err conftest.$ac_ext
27493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27494 echo "${ECHO_T}$ac_header_preproc" >&6; }
27495
27496 # So?  What about this header?
27497 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27498   yes:no: )
27499     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27500 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27501     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
27502 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
27503     ac_header_preproc=yes
27504     ;;
27505   no:yes:* )
27506     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
27507 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
27508     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
27509 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27510     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
27511 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
27512     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27513 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27514     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
27515 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27516     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
27517 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27518     ( cat <<\_ASBOX
27519 ## --------------------------------------------- ##
27520 ## Report this to vserver@list.linux-vserver.org ##
27521 ## --------------------------------------------- ##
27522 _ASBOX
27523      ) | sed "s/^/$as_me: WARNING:     /" >&2
27524     ;;
27525 esac
27526 { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27527 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27528 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27529   echo $ECHO_N "(cached) $ECHO_C" >&6
27530 else
27531   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
27532 fi
27533 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27534 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27535
27536 fi
27537 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
27538
27539 cat >>confdefs.h <<\_ACEOF
27540 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
27541 _ACEOF
27542
27543 else
27544   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27545 See \`config.log' for more details." >&5
27546 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27547 See \`config.log' for more details." >&2;}
27548    { (exit 1); exit 1; }; }
27549 fi
27550
27551
27552                 ;;
27553         (xkernel)
27554                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27555   { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27556 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27557 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27558   echo $ECHO_N "(cached) $ECHO_C" >&6
27559 fi
27560 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27561 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27562 else
27563   # Is the header compilable?
27564 { echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
27565 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6; }
27566 cat >conftest.$ac_ext <<_ACEOF
27567 /* confdefs.h.  */
27568 _ACEOF
27569 cat confdefs.h >>conftest.$ac_ext
27570 cat >>conftest.$ac_ext <<_ACEOF
27571 /* end confdefs.h.  */
27572 $ac_includes_default
27573 #include <linux/ext2_fs.h>
27574 _ACEOF
27575 rm -f conftest.$ac_objext
27576 if { (ac_try="$ac_compile"
27577 case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_compile") 2>conftest.er1
27583   ac_status=$?
27584   grep -v '^ *+' conftest.er1 >conftest.err
27585   rm -f conftest.er1
27586   cat conftest.err >&5
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); } && {
27589          test -z "$ac_cxx_werror_flag" ||
27590          test ! -s conftest.err
27591        } && test -s conftest.$ac_objext; then
27592   ac_header_compiler=yes
27593 else
27594   echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597         ac_header_compiler=no
27598 fi
27599
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27602 echo "${ECHO_T}$ac_header_compiler" >&6; }
27603
27604 # Is the header present?
27605 { echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
27606 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6; }
27607 cat >conftest.$ac_ext <<_ACEOF
27608 /* confdefs.h.  */
27609 _ACEOF
27610 cat confdefs.h >>conftest.$ac_ext
27611 cat >>conftest.$ac_ext <<_ACEOF
27612 /* end confdefs.h.  */
27613 #include <linux/ext2_fs.h>
27614 _ACEOF
27615 if { (ac_try="$ac_cpp conftest.$ac_ext"
27616 case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } >/dev/null && {
27628          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27629          test ! -s conftest.err
27630        }; then
27631   ac_header_preproc=yes
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636   ac_header_preproc=no
27637 fi
27638
27639 rm -f conftest.err conftest.$ac_ext
27640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27641 echo "${ECHO_T}$ac_header_preproc" >&6; }
27642
27643 # So?  What about this header?
27644 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27645   yes:no: )
27646     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27647 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27648     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
27649 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
27650     ac_header_preproc=yes
27651     ;;
27652   no:yes:* )
27653     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
27654 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
27655     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
27656 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27657     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
27658 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
27659     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27660 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27661     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
27662 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27663     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
27664 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27665     ( cat <<\_ASBOX
27666 ## --------------------------------------------- ##
27667 ## Report this to vserver@list.linux-vserver.org ##
27668 ## --------------------------------------------- ##
27669 _ASBOX
27670      ) | sed "s/^/$as_me: WARNING:     /" >&2
27671     ;;
27672 esac
27673 { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27674 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27675 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27676   echo $ECHO_N "(cached) $ECHO_C" >&6
27677 else
27678   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
27679 fi
27680 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27681 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27682
27683 fi
27684 if test $ac_cv_header_linux_ext2_fs_h = yes; then
27685
27686 cat >>confdefs.h <<\_ACEOF
27687 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
27688 _ACEOF
27689
27690 else
27691   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
27692 See \`config.log' for more details." >&5
27693 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
27694 See \`config.log' for more details." >&2;}
27695    { (exit 1); exit 1; }; }
27696 fi
27697
27698
27699                 ;;
27700         (*)
27701                 { { echo "$as_me:$LINENO: error:
27702 ext2fs headers were not found, or they are not usable. This can have
27703 the following reasons:
27704
27705 * you have neither the e2fsprogs nor the kernel headers installed
27706
27707 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27708   and you do not have e2fsprogs headers installed; please try to install
27709   - e2fsprogs-devel (for Red Hat), or
27710   - lib*ext2fs2-devel (for Mandriva), or
27711   - e2fslibs-dev (for Debian)
27712   in this case.
27713
27714 * kernel headers are broken and your e2fsprogs headers are too old;
27715   until version 1.27 (inclusive), they are using reserved C++ keywords
27716
27717 * kernel headers are broken and your e2fsprogs headers are too new;
27718   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27719   C++, for details and a solution see
27720   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27721
27722
27723 In the latter two cases you have the following options:
27724 * fix the headers manually, or
27725 * install a stable version of e2fsprogs (e.g. 1.34), or
27726 * use good kernel headers (from linux 2.4.x)
27727
27728 See \`config.log' for more details." >&5
27729 echo "$as_me: error:
27730 ext2fs headers were not found, or they are not usable. This can have
27731 the following reasons:
27732
27733 * you have neither the e2fsprogs nor the kernel headers installed
27734
27735 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27736   and you do not have e2fsprogs headers installed; please try to install
27737   - e2fsprogs-devel (for Red Hat), or
27738   - lib*ext2fs2-devel (for Mandriva), or
27739   - e2fslibs-dev (for Debian)
27740   in this case.
27741
27742 * kernel headers are broken and your e2fsprogs headers are too old;
27743   until version 1.27 (inclusive), they are using reserved C++ keywords
27744
27745 * kernel headers are broken and your e2fsprogs headers are too new;
27746   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27747   C++, for details and a solution see
27748   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27749
27750
27751 In the latter two cases you have the following options:
27752 * fix the headers manually, or
27753 * install a stable version of e2fsprogs (e.g. 1.34), or
27754 * use good kernel headers (from linux 2.4.x)
27755
27756 See \`config.log' for more details." >&2;}
27757    { (exit 1); exit 1; }; }
27758                 ;;
27759     esac
27760     ac_ext=c
27761 ac_cpp='$CPP $CPPFLAGS'
27762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27765
27766
27767
27768 for ac_func in vserver
27769 do
27770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27774   echo $ECHO_N "(cached) $ECHO_C" >&6
27775 else
27776   cat >conftest.$ac_ext <<_ACEOF
27777 /* confdefs.h.  */
27778 _ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h.  */
27782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27784 #define $ac_func innocuous_$ac_func
27785
27786 /* System header to define __stub macros and hopefully few prototypes,
27787     which can conflict with char $ac_func (); below.
27788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27789     <limits.h> exists even on freestanding compilers.  */
27790
27791 #ifdef __STDC__
27792 # include <limits.h>
27793 #else
27794 # include <assert.h>
27795 #endif
27796
27797 #undef $ac_func
27798
27799 /* Override any GCC internal prototype to avoid an error.
27800    Use char because int might match the return type of a GCC
27801    builtin and then its argument prototype would still apply.  */
27802 #ifdef __cplusplus
27803 extern "C"
27804 #endif
27805 char $ac_func ();
27806 /* The GNU C library defines this for functions which it implements
27807     to always fail with ENOSYS.  Some functions are actually named
27808     something starting with __ and the normal name is an alias.  */
27809 #if defined __stub_$ac_func || defined __stub___$ac_func
27810 choke me
27811 #endif
27812
27813 int
27814 main ()
27815 {
27816 return $ac_func ();
27817   ;
27818   return 0;
27819 }
27820 _ACEOF
27821 rm -f conftest.$ac_objext conftest$ac_exeext
27822 if { (ac_try="$ac_link"
27823 case "(($ac_try" in
27824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825   *) ac_try_echo=$ac_try;;
27826 esac
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828   (eval "$ac_link") 2>conftest.er1
27829   ac_status=$?
27830   grep -v '^ *+' conftest.er1 >conftest.err
27831   rm -f conftest.er1
27832   cat conftest.err >&5
27833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834   (exit $ac_status); } && {
27835          test -z "$ac_c_werror_flag" ||
27836          test ! -s conftest.err
27837        } && test -s conftest$ac_exeext &&
27838        $as_test_x conftest$ac_exeext; then
27839   eval "$as_ac_var=yes"
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844         eval "$as_ac_var=no"
27845 fi
27846
27847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27848       conftest$ac_exeext conftest.$ac_ext
27849 fi
27850 ac_res=`eval echo '${'$as_ac_var'}'`
27851                { echo "$as_me:$LINENO: result: $ac_res" >&5
27852 echo "${ECHO_T}$ac_res" >&6; }
27853 if test `eval echo '${'$as_ac_var'}'` = yes; then
27854   cat >>confdefs.h <<_ACEOF
27855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27856 _ACEOF
27857
27858 fi
27859 done
27860
27861 { echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27862 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6; }
27863 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27864   echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866   cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h.  */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h.  */
27872 #include <linux/fs.h>
27873
27874 int
27875 main ()
27876 {
27877 #ifndef MS_MOVE
27878   (void) MS_MOVE;
27879 #endif
27880
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 rm -f conftest.$ac_objext
27886 if { (ac_try="$ac_compile"
27887 case "(($ac_try" in
27888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889   *) ac_try_echo=$ac_try;;
27890 esac
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892   (eval "$ac_compile") 2>conftest.er1
27893   ac_status=$?
27894   grep -v '^ *+' conftest.er1 >conftest.err
27895   rm -f conftest.er1
27896   cat conftest.err >&5
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); } && {
27899          test -z "$ac_c_werror_flag" ||
27900          test ! -s conftest.err
27901        } && test -s conftest.$ac_objext; then
27902   ac_cv_have_decl_MS_MOVE=yes
27903 else
27904   echo "$as_me: failed program was:" >&5
27905 sed 's/^/| /' conftest.$ac_ext >&5
27906
27907         ac_cv_have_decl_MS_MOVE=no
27908 fi
27909
27910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27911 fi
27912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27913 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6; }
27914 if test $ac_cv_have_decl_MS_MOVE = yes; then
27915
27916 cat >>confdefs.h <<_ACEOF
27917 #define HAVE_DECL_MS_MOVE 1
27918 _ACEOF
27919
27920
27921 else
27922   cat >>confdefs.h <<_ACEOF
27923 #define HAVE_DECL_MS_MOVE 0
27924 _ACEOF
27925
27926
27927 fi
27928
27929
27930 { echo "$as_me:$LINENO: checking for xid_t" >&5
27931 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6; }
27932 if test "${ac_cv_type_xid_t+set}" = set; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935   cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 #include <sys/types.h>
27942
27943 typedef xid_t ac__type_new_;
27944 int
27945 main ()
27946 {
27947 if ((ac__type_new_ *) 0)
27948   return 0;
27949 if (sizeof (ac__type_new_))
27950   return 0;
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959   *) ac_try_echo=$ac_try;;
27960 esac
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962   (eval "$ac_compile") 2>conftest.er1
27963   ac_status=$?
27964   grep -v '^ *+' conftest.er1 >conftest.err
27965   rm -f conftest.er1
27966   cat conftest.err >&5
27967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968   (exit $ac_status); } && {
27969          test -z "$ac_c_werror_flag" ||
27970          test ! -s conftest.err
27971        } && test -s conftest.$ac_objext; then
27972   ac_cv_type_xid_t=yes
27973 else
27974   echo "$as_me: failed program was:" >&5
27975 sed 's/^/| /' conftest.$ac_ext >&5
27976
27977         ac_cv_type_xid_t=no
27978 fi
27979
27980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27981 fi
27982 { echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27983 echo "${ECHO_T}$ac_cv_type_xid_t" >&6; }
27984 if test $ac_cv_type_xid_t = yes; then
27985
27986 cat >>confdefs.h <<_ACEOF
27987 #define HAVE_XID_T 1
27988 _ACEOF
27989
27990
27991 fi
27992
27993 { echo "$as_me:$LINENO: checking for nid_t" >&5
27994 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6; }
27995 if test "${ac_cv_type_nid_t+set}" = set; then
27996   echo $ECHO_N "(cached) $ECHO_C" >&6
27997 else
27998   cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004 #include <sys/types.h>
28005
28006 typedef nid_t ac__type_new_;
28007 int
28008 main ()
28009 {
28010 if ((ac__type_new_ *) 0)
28011   return 0;
28012 if (sizeof (ac__type_new_))
28013   return 0;
28014   ;
28015   return 0;
28016 }
28017 _ACEOF
28018 rm -f conftest.$ac_objext
28019 if { (ac_try="$ac_compile"
28020 case "(($ac_try" in
28021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28022   *) ac_try_echo=$ac_try;;
28023 esac
28024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28025   (eval "$ac_compile") 2>conftest.er1
28026   ac_status=$?
28027   grep -v '^ *+' conftest.er1 >conftest.err
28028   rm -f conftest.er1
28029   cat conftest.err >&5
28030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031   (exit $ac_status); } && {
28032          test -z "$ac_c_werror_flag" ||
28033          test ! -s conftest.err
28034        } && test -s conftest.$ac_objext; then
28035   ac_cv_type_nid_t=yes
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28039
28040         ac_cv_type_nid_t=no
28041 fi
28042
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044 fi
28045 { echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
28046 echo "${ECHO_T}$ac_cv_type_nid_t" >&6; }
28047 if test $ac_cv_type_nid_t = yes; then
28048
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_NID_T 1
28051 _ACEOF
28052
28053
28054 fi
28055
28056 { echo "$as_me:$LINENO: checking for tag_t" >&5
28057 echo $ECHO_N "checking for tag_t... $ECHO_C" >&6; }
28058 if test "${ac_cv_type_tag_t+set}" = set; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061   cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h.  */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h.  */
28067 #include <sys/types.h>
28068
28069 typedef tag_t ac__type_new_;
28070 int
28071 main ()
28072 {
28073 if ((ac__type_new_ *) 0)
28074   return 0;
28075 if (sizeof (ac__type_new_))
28076   return 0;
28077   ;
28078   return 0;
28079 }
28080 _ACEOF
28081 rm -f conftest.$ac_objext
28082 if { (ac_try="$ac_compile"
28083 case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_compile") 2>conftest.er1
28089   ac_status=$?
28090   grep -v '^ *+' conftest.er1 >conftest.err
28091   rm -f conftest.er1
28092   cat conftest.err >&5
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); } && {
28095          test -z "$ac_c_werror_flag" ||
28096          test ! -s conftest.err
28097        } && test -s conftest.$ac_objext; then
28098   ac_cv_type_tag_t=yes
28099 else
28100   echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28102
28103         ac_cv_type_tag_t=no
28104 fi
28105
28106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107 fi
28108 { echo "$as_me:$LINENO: result: $ac_cv_type_tag_t" >&5
28109 echo "${ECHO_T}$ac_cv_type_tag_t" >&6; }
28110 if test $ac_cv_type_tag_t = yes; then
28111
28112 cat >>confdefs.h <<_ACEOF
28113 #define HAVE_TAG_T 1
28114 _ACEOF
28115
28116
28117 fi
28118
28119
28120
28121 for ac_header in sys/capability.h
28122 do
28123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28128   echo $ECHO_N "(cached) $ECHO_C" >&6
28129 fi
28130 ac_res=`eval echo '${'$as_ac_Header'}'`
28131                { echo "$as_me:$LINENO: result: $ac_res" >&5
28132 echo "${ECHO_T}$ac_res" >&6; }
28133 else
28134   # Is the header compilable?
28135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28137 cat >conftest.$ac_ext <<_ACEOF
28138 /* confdefs.h.  */
28139 _ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h.  */
28143 $ac_includes_default
28144 #include <$ac_header>
28145 _ACEOF
28146 rm -f conftest.$ac_objext
28147 if { (ac_try="$ac_compile"
28148 case "(($ac_try" in
28149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28150   *) ac_try_echo=$ac_try;;
28151 esac
28152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28153   (eval "$ac_compile") 2>conftest.er1
28154   ac_status=$?
28155   grep -v '^ *+' conftest.er1 >conftest.err
28156   rm -f conftest.er1
28157   cat conftest.err >&5
28158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159   (exit $ac_status); } && {
28160          test -z "$ac_c_werror_flag" ||
28161          test ! -s conftest.err
28162        } && test -s conftest.$ac_objext; then
28163   ac_header_compiler=yes
28164 else
28165   echo "$as_me: failed program was:" >&5
28166 sed 's/^/| /' conftest.$ac_ext >&5
28167
28168         ac_header_compiler=no
28169 fi
28170
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28173 echo "${ECHO_T}$ac_header_compiler" >&6; }
28174
28175 # Is the header present?
28176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28178 cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184 #include <$ac_header>
28185 _ACEOF
28186 if { (ac_try="$ac_cpp conftest.$ac_ext"
28187 case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28193   ac_status=$?
28194   grep -v '^ *+' conftest.er1 >conftest.err
28195   rm -f conftest.er1
28196   cat conftest.err >&5
28197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198   (exit $ac_status); } >/dev/null && {
28199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28200          test ! -s conftest.err
28201        }; then
28202   ac_header_preproc=yes
28203 else
28204   echo "$as_me: failed program was:" >&5
28205 sed 's/^/| /' conftest.$ac_ext >&5
28206
28207   ac_header_preproc=no
28208 fi
28209
28210 rm -f conftest.err conftest.$ac_ext
28211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28212 echo "${ECHO_T}$ac_header_preproc" >&6; }
28213
28214 # So?  What about this header?
28215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28216   yes:no: )
28217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28221     ac_header_preproc=yes
28222     ;;
28223   no:yes:* )
28224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28236     ( cat <<\_ASBOX
28237 ## --------------------------------------------- ##
28238 ## Report this to vserver@list.linux-vserver.org ##
28239 ## --------------------------------------------- ##
28240 _ASBOX
28241      ) | sed "s/^/$as_me: WARNING:     /" >&2
28242     ;;
28243 esac
28244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28247   echo $ECHO_N "(cached) $ECHO_C" >&6
28248 else
28249   eval "$as_ac_Header=\$ac_header_preproc"
28250 fi
28251 ac_res=`eval echo '${'$as_ac_Header'}'`
28252                { echo "$as_me:$LINENO: result: $ac_res" >&5
28253 echo "${ECHO_T}$ac_res" >&6; }
28254
28255 fi
28256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28257   cat >>confdefs.h <<_ACEOF
28258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28259 _ACEOF
28260
28261 fi
28262
28263 done
28264
28265
28266 if test x"$ensc_have_dietlibc" = xno; then
28267         { echo "$as_me:$LINENO: checking for openpty" >&5
28268 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
28269 if test "${ac_cv_func_openpty+set}" = set; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
28279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28280 #define openpty innocuous_openpty
28281
28282 /* System header to define __stub macros and hopefully few prototypes,
28283     which can conflict with char openpty (); below.
28284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28285     <limits.h> exists even on freestanding compilers.  */
28286
28287 #ifdef __STDC__
28288 # include <limits.h>
28289 #else
28290 # include <assert.h>
28291 #endif
28292
28293 #undef openpty
28294
28295 /* Override any GCC internal prototype to avoid an error.
28296    Use char because int might match the return type of a GCC
28297    builtin and then its argument prototype would still apply.  */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char openpty ();
28302 /* The GNU C library defines this for functions which it implements
28303     to always fail with ENOSYS.  Some functions are actually named
28304     something starting with __ and the normal name is an alias.  */
28305 #if defined __stub_openpty || defined __stub___openpty
28306 choke me
28307 #endif
28308
28309 int
28310 main ()
28311 {
28312 return openpty ();
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_link") 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } && {
28331          test -z "$ac_c_werror_flag" ||
28332          test ! -s conftest.err
28333        } && test -s conftest$ac_exeext &&
28334        $as_test_x conftest$ac_exeext; then
28335   ac_cv_func_openpty=yes
28336 else
28337   echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28339
28340         ac_cv_func_openpty=no
28341 fi
28342
28343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28344       conftest$ac_exeext conftest.$ac_ext
28345 fi
28346 { echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
28347 echo "${ECHO_T}$ac_cv_func_openpty" >&6; }
28348 if test $ac_cv_func_openpty = yes; then
28349   :
28350 else
28351
28352 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
28353 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
28354 if test "${ac_cv_lib_util_openpty+set}" = set; then
28355   echo $ECHO_N "(cached) $ECHO_C" >&6
28356 else
28357   ac_check_lib_save_LIBS=$LIBS
28358 LIBS="-lutil  $LIBS"
28359 cat >conftest.$ac_ext <<_ACEOF
28360 /* confdefs.h.  */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h.  */
28365
28366 /* Override any GCC internal prototype to avoid an error.
28367    Use char because int might match the return type of a GCC
28368    builtin and then its argument prototype would still apply.  */
28369 #ifdef __cplusplus
28370 extern "C"
28371 #endif
28372 char openpty ();
28373 int
28374 main ()
28375 {
28376 return openpty ();
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_link") 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } && {
28395          test -z "$ac_c_werror_flag" ||
28396          test ! -s conftest.err
28397        } && test -s conftest$ac_exeext &&
28398        $as_test_x conftest$ac_exeext; then
28399   ac_cv_lib_util_openpty=yes
28400 else
28401   echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28403
28404         ac_cv_lib_util_openpty=no
28405 fi
28406
28407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28408       conftest$ac_exeext conftest.$ac_ext
28409 LIBS=$ac_check_lib_save_LIBS
28410 fi
28411 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
28412 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
28413 if test $ac_cv_lib_util_openpty = yes; then
28414   cat >>confdefs.h <<_ACEOF
28415 #define HAVE_LIBUTIL 1
28416 _ACEOF
28417
28418   LIBS="-lutil $LIBS"
28419
28420 else
28421   { { echo "$as_me:$LINENO: error:
28422 ****
28423 **** openpty could not be found
28424 ****" >&5
28425 echo "$as_me: error:
28426 ****
28427 **** openpty could not be found
28428 ****" >&2;}
28429    { (exit 1); exit 1; }; }
28430 fi
28431
28432 fi
28433
28434 fi
28435
28436
28437
28438 # Check whether --with-crypto-api was given.
28439 if test "${with_crypto_api+set}" = set; then
28440   withval=$with_crypto_api; case $withval in
28441                 (none|nss|beecrypt|auto)        ensc_crypto_api=$withval;;
28442                 (yes)                           ensc_crypto_api=auto;;
28443                 (no)                            ensc_crypto_api=none;;
28444                 (*)     { { echo "$as_me:$LINENO: error: invalid crypto-api value, only none,nss,beecrypt,auto are supported" >&5
28445 echo "$as_me: error: invalid crypto-api value, only none,nss,beecrypt,auto are supported" >&2;}
28446    { (exit 1); exit 1; }; };;
28447              esac
28448 else
28449   ensc_crypto_api=auto
28450 fi
28451
28452
28453
28454
28455 case $ensc_crypto_api in
28456 (auto|beecrypt)
28457 if test x"$ensc_cv_c99_c99compiler" = xyes; then
28458         ensc_have_beecrypt=yes
28459
28460         if test x"$ensc_have_beecrypt" = xyes; then
28461                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28462   { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28463 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28464 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 fi
28467 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28468 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28469 else
28470   # Is the header compilable?
28471 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
28472 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6; }
28473 cat >conftest.$ac_ext <<_ACEOF
28474 /* confdefs.h.  */
28475 _ACEOF
28476 cat confdefs.h >>conftest.$ac_ext
28477 cat >>conftest.$ac_ext <<_ACEOF
28478 /* end confdefs.h.  */
28479 $ac_includes_default
28480 #include <beecrypt/beecrypt.h>
28481 _ACEOF
28482 rm -f conftest.$ac_objext
28483 if { (ac_try="$ac_compile"
28484 case "(($ac_try" in
28485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486   *) ac_try_echo=$ac_try;;
28487 esac
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489   (eval "$ac_compile") 2>conftest.er1
28490   ac_status=$?
28491   grep -v '^ *+' conftest.er1 >conftest.err
28492   rm -f conftest.er1
28493   cat conftest.err >&5
28494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495   (exit $ac_status); } && {
28496          test -z "$ac_c_werror_flag" ||
28497          test ! -s conftest.err
28498        } && test -s conftest.$ac_objext; then
28499   ac_header_compiler=yes
28500 else
28501   echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28503
28504         ac_header_compiler=no
28505 fi
28506
28507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28509 echo "${ECHO_T}$ac_header_compiler" >&6; }
28510
28511 # Is the header present?
28512 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
28513 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6; }
28514 cat >conftest.$ac_ext <<_ACEOF
28515 /* confdefs.h.  */
28516 _ACEOF
28517 cat confdefs.h >>conftest.$ac_ext
28518 cat >>conftest.$ac_ext <<_ACEOF
28519 /* end confdefs.h.  */
28520 #include <beecrypt/beecrypt.h>
28521 _ACEOF
28522 if { (ac_try="$ac_cpp conftest.$ac_ext"
28523 case "(($ac_try" in
28524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28525   *) ac_try_echo=$ac_try;;
28526 esac
28527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28529   ac_status=$?
28530   grep -v '^ *+' conftest.er1 >conftest.err
28531   rm -f conftest.er1
28532   cat conftest.err >&5
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); } >/dev/null && {
28535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28536          test ! -s conftest.err
28537        }; then
28538   ac_header_preproc=yes
28539 else
28540   echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28542
28543   ac_header_preproc=no
28544 fi
28545
28546 rm -f conftest.err conftest.$ac_ext
28547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28548 echo "${ECHO_T}$ac_header_preproc" >&6; }
28549
28550 # So?  What about this header?
28551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28552   yes:no: )
28553     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28554 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28555     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
28556 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
28557     ac_header_preproc=yes
28558     ;;
28559   no:yes:* )
28560     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
28561 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
28562     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
28563 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
28564     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
28565 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
28566     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
28567 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28568     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
28569 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
28570     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
28571 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
28572     ( cat <<\_ASBOX
28573 ## --------------------------------------------- ##
28574 ## Report this to vserver@list.linux-vserver.org ##
28575 ## --------------------------------------------- ##
28576 _ASBOX
28577      ) | sed "s/^/$as_me: WARNING:     /" >&2
28578     ;;
28579 esac
28580 { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28581 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28582 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28583   echo $ECHO_N "(cached) $ECHO_C" >&6
28584 else
28585   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
28586 fi
28587 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28588 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28589
28590 fi
28591 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
28592    :
28593 else
28594    ensc_have_beecrypt=no
28595 fi
28596
28597
28598         fi
28599
28600         if test x"$ensc_have_beecrypt" = xyes; then
28601                 { echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
28602 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6; }
28603 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
28604   echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606   ac_check_lib_save_LIBS=$LIBS
28607 LIBS="-lbeecrypt  $LIBS"
28608 cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614
28615 /* Override any GCC internal prototype to avoid an error.
28616    Use char because int might match the return type of a GCC
28617    builtin and then its argument prototype would still apply.  */
28618 #ifdef __cplusplus
28619 extern "C"
28620 #endif
28621 char hashFunctionContextInit ();
28622 int
28623 main ()
28624 {
28625 return hashFunctionContextInit ();
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 rm -f conftest.$ac_objext conftest$ac_exeext
28631 if { (ac_try="$ac_link"
28632 case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637   (eval "$ac_link") 2>conftest.er1
28638   ac_status=$?
28639   grep -v '^ *+' conftest.er1 >conftest.err
28640   rm -f conftest.er1
28641   cat conftest.err >&5
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); } && {
28644          test -z "$ac_c_werror_flag" ||
28645          test ! -s conftest.err
28646        } && test -s conftest$ac_exeext &&
28647        $as_test_x conftest$ac_exeext; then
28648   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
28649 else
28650   echo "$as_me: failed program was:" >&5
28651 sed 's/^/| /' conftest.$ac_ext >&5
28652
28653         ac_cv_lib_beecrypt_hashFunctionContextInit=no
28654 fi
28655
28656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28657       conftest$ac_exeext conftest.$ac_ext
28658 LIBS=$ac_check_lib_save_LIBS
28659 fi
28660 { echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
28661 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6; }
28662 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
28663    :
28664 else
28665    ensc_have_beecrypt=no
28666 fi
28667
28668         fi
28669 else
28670         ensc_have_beecrypt=no
28671 fi;;
28672 esac
28673
28674 case $ensc_crypto_api in
28675 (auto)          if test x"$ensc_have_beecrypt"  = xyes; then
28676                         { echo "$as_me:$LINENO: using beecrypt as crypto api" >&5
28677 echo "$as_me: using beecrypt as crypto api" >&6;}
28678                         ensc_crypto_api=beecrypt
28679                 fi;;
28680 (beecrypt)      if test x"$ensc_have_beecrypt" != xyes; then
28681                         { { echo "$as_me:$LINENO: error: beecrypt crypto api not found" >&5
28682 echo "$as_me: error: beecrypt crypto api not found" >&2;}
28683    { (exit 1); exit 1; }; }
28684                 fi;;
28685 esac
28686
28687  if test x"$ensc_have_beecrypt" = xyes; then
28688   ENSC_HAVE_BEECRYPT_TRUE=
28689   ENSC_HAVE_BEECRYPT_FALSE='#'
28690 else
28691   ENSC_HAVE_BEECRYPT_TRUE='#'
28692   ENSC_HAVE_BEECRYPT_FALSE=
28693 fi
28694
28695  if false; then
28696   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
28697   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
28698 else
28699   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
28700   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
28701 fi
28702
28703
28704
28705
28706 case $ensc_crypto_api in
28707 (nss)
28708 pkg_failed=no
28709 { echo "$as_me:$LINENO: checking for NSS" >&5
28710 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28711
28712 if test -n "$NSS_CFLAGS"; then
28713     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28714  elif test -n "$PKG_CONFIG"; then
28715     if test -n "$PKG_CONFIG" && \
28716     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28717   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28718   ac_status=$?
28719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720   (exit $ac_status); }; then
28721   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
28722 else
28723   pkg_failed=yes
28724 fi
28725  else
28726     pkg_failed=untried
28727 fi
28728 if test -n "$NSS_LIBS"; then
28729     pkg_cv_NSS_LIBS="$NSS_LIBS"
28730  elif test -n "$PKG_CONFIG"; then
28731     if test -n "$PKG_CONFIG" && \
28732     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28733   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28734   ac_status=$?
28735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736   (exit $ac_status); }; then
28737   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
28738 else
28739   pkg_failed=yes
28740 fi
28741  else
28742     pkg_failed=untried
28743 fi
28744
28745
28746
28747 if test $pkg_failed = yes; then
28748
28749 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28750         _pkg_short_errors_supported=yes
28751 else
28752         _pkg_short_errors_supported=no
28753 fi
28754         if test $_pkg_short_errors_supported = yes; then
28755                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss" 2>&1`
28756         else
28757                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss" 2>&1`
28758         fi
28759         # Put the nasty error message in config.log where it belongs
28760         echo "$NSS_PKG_ERRORS" >&5
28761
28762         { { echo "$as_me:$LINENO: error: Package requirements (nss) were not met:
28763
28764 $NSS_PKG_ERRORS
28765
28766 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28767 installed software in a non-standard prefix.
28768
28769 Alternatively, you may set the environment variables NSS_CFLAGS
28770 and NSS_LIBS to avoid the need to call pkg-config.
28771 See the pkg-config man page for more details.
28772 " >&5
28773 echo "$as_me: error: Package requirements (nss) were not met:
28774
28775 $NSS_PKG_ERRORS
28776
28777 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28778 installed software in a non-standard prefix.
28779
28780 Alternatively, you may set the environment variables NSS_CFLAGS
28781 and NSS_LIBS to avoid the need to call pkg-config.
28782 See the pkg-config man page for more details.
28783 " >&2;}
28784    { (exit 1); exit 1; }; }
28785 elif test $pkg_failed = untried; then
28786         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
28787 is in your PATH or set the PKG_CONFIG environment variable to the full
28788 path to pkg-config.
28789
28790 Alternatively, you may set the environment variables NSS_CFLAGS
28791 and NSS_LIBS to avoid the need to call pkg-config.
28792 See the pkg-config man page for more details.
28793
28794 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28795 See \`config.log' for more details." >&5
28796 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
28797 is in your PATH or set the PKG_CONFIG environment variable to the full
28798 path to pkg-config.
28799
28800 Alternatively, you may set the environment variables NSS_CFLAGS
28801 and NSS_LIBS to avoid the need to call pkg-config.
28802 See the pkg-config man page for more details.
28803
28804 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28805 See \`config.log' for more details." >&2;}
28806    { (exit 1); exit 1; }; }
28807 else
28808         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28809         NSS_LIBS=$pkg_cv_NSS_LIBS
28810         { echo "$as_me:$LINENO: result: yes" >&5
28811 echo "${ECHO_T}yes" >&6; }
28812         :
28813 fi;;
28814 (auto)
28815 pkg_failed=no
28816 { echo "$as_me:$LINENO: checking for NSS" >&5
28817 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28818
28819 if test -n "$NSS_CFLAGS"; then
28820     pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28821  elif test -n "$PKG_CONFIG"; then
28822     if test -n "$PKG_CONFIG" && \
28823     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28824   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28825   ac_status=$?
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); }; then
28828   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
28829 else
28830   pkg_failed=yes
28831 fi
28832  else
28833     pkg_failed=untried
28834 fi
28835 if test -n "$NSS_LIBS"; then
28836     pkg_cv_NSS_LIBS="$NSS_LIBS"
28837  elif test -n "$PKG_CONFIG"; then
28838     if test -n "$PKG_CONFIG" && \
28839     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28840   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; then
28844   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
28845 else
28846   pkg_failed=yes
28847 fi
28848  else
28849     pkg_failed=untried
28850 fi
28851
28852
28853
28854 if test $pkg_failed = yes; then
28855
28856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28857         _pkg_short_errors_supported=yes
28858 else
28859         _pkg_short_errors_supported=no
28860 fi
28861         if test $_pkg_short_errors_supported = yes; then
28862                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "nss" 2>&1`
28863         else
28864                 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors "nss" 2>&1`
28865         fi
28866         # Put the nasty error message in config.log where it belongs
28867         echo "$NSS_PKG_ERRORS" >&5
28868
28869         { { echo "$as_me:$LINENO: error: Package requirements (nss) were not met:
28870
28871 $NSS_PKG_ERRORS
28872
28873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28874 installed software in a non-standard prefix.
28875
28876 Alternatively, you may set the environment variables NSS_CFLAGS
28877 and NSS_LIBS to avoid the need to call pkg-config.
28878 See the pkg-config man page for more details.
28879 " >&5
28880 echo "$as_me: error: Package requirements (nss) were not met:
28881
28882 $NSS_PKG_ERRORS
28883
28884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28885 installed software in a non-standard prefix.
28886
28887 Alternatively, you may set the environment variables NSS_CFLAGS
28888 and NSS_LIBS to avoid the need to call pkg-config.
28889 See the pkg-config man page for more details.
28890 " >&2;}
28891    { (exit 1); exit 1; }; }
28892 elif test $pkg_failed = untried; then
28893         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
28894 is in your PATH or set the PKG_CONFIG environment variable to the full
28895 path to pkg-config.
28896
28897 Alternatively, you may set the environment variables NSS_CFLAGS
28898 and NSS_LIBS to avoid the need to call pkg-config.
28899 See the pkg-config man page for more details.
28900
28901 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28902 See \`config.log' for more details." >&5
28903 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
28904 is in your PATH or set the PKG_CONFIG environment variable to the full
28905 path to pkg-config.
28906
28907 Alternatively, you may set the environment variables NSS_CFLAGS
28908 and NSS_LIBS to avoid the need to call pkg-config.
28909 See the pkg-config man page for more details.
28910
28911 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28912 See \`config.log' for more details." >&2;}
28913    { (exit 1); exit 1; }; }
28914 else
28915         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28916         NSS_LIBS=$pkg_cv_NSS_LIBS
28917         { echo "$as_me:$LINENO: result: yes" >&5
28918 echo "${ECHO_T}yes" >&6; }
28919
28920                 { echo "$as_me:$LINENO: using NSS as crypto api" >&5
28921 echo "$as_me: using NSS as crypto api" >&6;}
28922                 ensc_crypto_api=nss
28923 fi;;
28924 esac
28925
28926
28927 case $ensc_crypto_api in
28928 (beecrypt)
28929         ENSC_HAVE_CRYPTO=true
28930         ENSC_CRYPTO_API=ENSC_CRYPTO_API_BEECRYPT
28931         ENSC_CRYPTO_CFLAGS=
28932         ENSC_CRYPTO_LIB=-lbeecrypt
28933         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28934         ;;
28935
28936 (nss)
28937         ENSC_HAVE_CRYPTO=true
28938         ENSC_CRYPTO_API=ENSC_CRYPTO_API_NSS
28939         ENSC_CRYPTO_CFLAGS=$NSS_CFLAGS
28940         ENSC_CRYPTO_LIB=$NSS_LIBS
28941         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28942         ;;
28943
28944 (none|auto)
28945         ENSC_HAVE_CRYPTO=false
28946         ENSC_CRYPTO_API=ENSC_CRYPTO_API_NONE
28947         ENSC_CRYPTO_CFLAGS=
28948         ENSC_CRYPTO_LIB=
28949         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28950
28951         { echo "$as_me:$LINENO: WARNING: No crypto api found/select. This will disable the build of 'vhashify'" >&5
28952 echo "$as_me: WARNING: No crypto api found/select. This will disable the build of 'vhashify'" >&2;}
28953         ;;
28954
28955 (*)     { { echo "$as_me:$LINENO: error: internal error" >&5
28956 echo "$as_me: error: internal error" >&2;}
28957    { (exit 1); exit 1; }; }
28958 esac
28959
28960  if $ENSC_HAVE_CRYPTO; then
28961   ENSC_HAVE_CRYPTO_TRUE=
28962   ENSC_HAVE_CRYPTO_FALSE='#'
28963 else
28964   ENSC_HAVE_CRYPTO_TRUE='#'
28965   ENSC_HAVE_CRYPTO_FALSE=
28966 fi
28967
28968  if $ENSC_CAN_CRYPTO_WITH_DIETLIBC; then
28969   ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE=
28970   ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE='#'
28971 else
28972   ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE='#'
28973   ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE=
28974 fi
28975
28976 ENSC_CRYPTO_CFLAGS=$ENSC_CRYPTO_CFLAGS
28977
28978 ENSC_CRYPTO_LIB=$ENSC_CRYPTO_LIB
28979
28980
28981 cat >>confdefs.h <<_ACEOF
28982 #define ENSC_CRYPTO_API $ENSC_CRYPTO_API
28983 _ACEOF
28984
28985
28986
28987
28988 { echo "$as_me:$LINENO: checking for host initscripts" >&5
28989 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6; }
28990
28991 # Check whether --with-initscripts was given.
28992 if test "${with_initscripts+set}" = set; then
28993   withval=$with_initscripts;
28994         case "$withval" in
28995         gentoo) ensc_with_init=gentoo;;
28996         sysv)   ensc_with_init=sysv;;
28997         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
28998 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
28999    { (exit 1); exit 1; }; };;
29000         esac
29001
29002 else
29003
29004         if test -e /etc/gentoo-release; then
29005                 ensc_with_init=gentoo
29006         else
29007                 ensc_with_init=sysv
29008         fi
29009
29010 fi
29011
29012 { echo "$as_me:$LINENO: result: $ensc_with_init" >&5
29013 echo "${ECHO_T}$ensc_with_init" >&6; }
29014  if test x"$ensc_with_init" = xgentoo; then
29015   HAVE_GENTOO_INIT_TRUE=
29016   HAVE_GENTOO_INIT_FALSE='#'
29017 else
29018   HAVE_GENTOO_INIT_TRUE='#'
29019   HAVE_GENTOO_INIT_FALSE=
29020 fi
29021
29022  if test x"$ensc_with_init" = xsysv; then
29023   HAVE_SYSV_INIT_TRUE=
29024   HAVE_SYSV_INIT_FALSE='#'
29025 else
29026   HAVE_SYSV_INIT_TRUE='#'
29027   HAVE_SYSV_INIT_FALSE=
29028 fi
29029
29030
29031
29032
29033 ensc_have_python=yes
29034
29035
29036
29037
29038         # Find any Python interpreter.
29039     if test -z "$PYTHON"; then
29040       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
29041 do
29042   # Extract the first word of "$ac_prog", so it can be a program name with args.
29043 set dummy $ac_prog; ac_word=$2
29044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29046 if test "${ac_cv_path_PYTHON+set}" = set; then
29047   echo $ECHO_N "(cached) $ECHO_C" >&6
29048 else
29049   case $PYTHON in
29050   [\\/]* | ?:[\\/]*)
29051   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
29052   ;;
29053   *)
29054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29055 for as_dir in $PATH
29056 do
29057   IFS=$as_save_IFS
29058   test -z "$as_dir" && as_dir=.
29059   for ac_exec_ext in '' $ac_executable_extensions; do
29060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29061     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
29062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29063     break 2
29064   fi
29065 done
29066 done
29067 IFS=$as_save_IFS
29068
29069   ;;
29070 esac
29071 fi
29072 PYTHON=$ac_cv_path_PYTHON
29073 if test -n "$PYTHON"; then
29074   { echo "$as_me:$LINENO: result: $PYTHON" >&5
29075 echo "${ECHO_T}$PYTHON" >&6; }
29076 else
29077   { echo "$as_me:$LINENO: result: no" >&5
29078 echo "${ECHO_T}no" >&6; }
29079 fi
29080
29081
29082   test -n "$PYTHON" && break
29083 done
29084 test -n "$PYTHON" || PYTHON=":"
29085
29086     fi
29087     am_display_PYTHON=python
29088
29089
29090   if test "$PYTHON" = :; then
29091       :
29092   else
29093
29094
29095   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
29096 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
29097 if test "${am_cv_python_version+set}" = set; then
29098   echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
29101 fi
29102 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
29103 echo "${ECHO_T}$am_cv_python_version" >&6; }
29104   PYTHON_VERSION=$am_cv_python_version
29105
29106
29107
29108   PYTHON_PREFIX='${prefix}'
29109
29110   PYTHON_EXEC_PREFIX='${exec_prefix}'
29111
29112
29113
29114   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
29115 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
29116 if test "${am_cv_python_platform+set}" = set; then
29117   echo $ECHO_N "(cached) $ECHO_C" >&6
29118 else
29119   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
29120 fi
29121 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
29122 echo "${ECHO_T}$am_cv_python_platform" >&6; }
29123   PYTHON_PLATFORM=$am_cv_python_platform
29124
29125
29126
29127
29128                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
29129 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
29130 if test "${am_cv_python_pythondir+set}" = set; then
29131   echo $ECHO_N "(cached) $ECHO_C" >&6
29132 else
29133   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
29134      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
29135 fi
29136 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
29137 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
29138   pythondir=$am_cv_python_pythondir
29139
29140
29141
29142   pkgpythondir=\${pythondir}/$PACKAGE
29143
29144
29145             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
29146 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
29147 if test "${am_cv_python_pyexecdir+set}" = set; then
29148   echo $ECHO_N "(cached) $ECHO_C" >&6
29149 else
29150   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
29151      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
29152 fi
29153 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
29154 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
29155   pyexecdir=$am_cv_python_pyexecdir
29156
29157
29158
29159   pkgpyexecdir=\${pyexecdir}/$PACKAGE
29160
29161
29162
29163   fi
29164
29165
29166 if test "x$PYTHON" = x:; then
29167         ensc_have_python=no
29168 fi
29169 if test x$ensc_have_python = xyes; then
29170         PYTHON_CFLAGS=-I`$PYTHON -c 'from distutils.sysconfig import get_python_inc; print get_python_inc(1)'`
29171         PYTHON_LDFLAGS=-L`$PYTHON -c 'from distutils.sysconfig import get_python_lib; print get_python_lib(1)'`
29172
29173
29174 else
29175         ensc_have_python=no
29176 fi
29177 # Extract the first word of "ctags", so it can be a program name with args.
29178 set dummy ctags; ac_word=$2
29179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29181 if test "${ac_cv_path_CTAGS+set}" = set; then
29182   echo $ECHO_N "(cached) $ECHO_C" >&6
29183 else
29184   case $CTAGS in
29185   [\\/]* | ?:[\\/]*)
29186   ac_cv_path_CTAGS="$CTAGS" # Let the user override the test with a path.
29187   ;;
29188   *)
29189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29190 for as_dir in $PATH
29191 do
29192   IFS=$as_save_IFS
29193   test -z "$as_dir" && as_dir=.
29194   for ac_exec_ext in '' $ac_executable_extensions; do
29195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29196     ac_cv_path_CTAGS="$as_dir/$ac_word$ac_exec_ext"
29197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29198     break 2
29199   fi
29200 done
29201 done
29202 IFS=$as_save_IFS
29203
29204   test -z "$ac_cv_path_CTAGS" && ac_cv_path_CTAGS="no"
29205   ;;
29206 esac
29207 fi
29208 CTAGS=$ac_cv_path_CTAGS
29209 if test -n "$CTAGS"; then
29210   { echo "$as_me:$LINENO: result: $CTAGS" >&5
29211 echo "${ECHO_T}$CTAGS" >&6; }
29212 else
29213   { echo "$as_me:$LINENO: result: no" >&5
29214 echo "${ECHO_T}no" >&6; }
29215 fi
29216
29217
29218 if test "x$CTAGS" = xno; then
29219         ensc_have_python=no
29220 fi
29221  if test x$ensc_have_python = xyes; then
29222   HAVE_PYTHON_TRUE=
29223   HAVE_PYTHON_FALSE='#'
29224 else
29225   HAVE_PYTHON_TRUE='#'
29226   HAVE_PYTHON_FALSE=
29227 fi
29228
29229
29230
29231
29232
29233 ensc_have_versioning=yes
29234 # Check whether --enable-versioning was given.
29235 if test "${enable_versioning+set}" = set; then
29236   enableval=$enable_versioning; ensc_have_versioning="$enableval"
29237 fi
29238
29239  if test "x$ensc_have_versioning" = xyes; then
29240   HAVE_VERSIONING_TRUE=
29241   HAVE_VERSIONING_FALSE='#'
29242 else
29243   HAVE_VERSIONING_TRUE='#'
29244   HAVE_VERSIONING_FALSE=
29245 fi
29246
29247 if test "x$ensc_have_versioning" = xyes; then
29248
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_VERSIONING 1
29251 _ACEOF
29252
29253 fi
29254
29255
29256
29257
29258 cat >>confdefs.h <<\_ACEOF
29259 #define UTMP_GID 22
29260 _ACEOF
29261
29262
29263 if false; then
29264
29265 cat >>confdefs.h <<\_ACEOF
29266 #define HAVE_GROWING_STACK 1
29267 _ACEOF
29268
29269 fi
29270
29271
29272 cat >>confdefs.h <<\_ACEOF
29273 #define _FILE_OFFSET_BITS 64
29274 _ACEOF
29275
29276
29277 ensc_cxx_affected=" (affected: vbuild, vcheck)"
29278 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
29279 ensc_diet_msg=" (you have been warned)"
29280 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
29281 ensc_diet_compat_msg=" (using -lcompat)"
29282 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
29283 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
29284 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
29285 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
29286 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
29287
29288
29289
29290
29291
29292 ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
29293
29294 cat >confcache <<\_ACEOF
29295 # This file is a shell script that caches the results of configure
29296 # tests run on this system so they can be shared between configure
29297 # scripts and configure runs, see configure's option --config-cache.
29298 # It is not useful on other systems.  If it contains results you don't
29299 # want to keep, you may remove or edit it.
29300 #
29301 # config.status only pays attention to the cache file if you give it
29302 # the --recheck option to rerun configure.
29303 #
29304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29306 # following values.
29307
29308 _ACEOF
29309
29310 # The following way of writing the cache mishandles newlines in values,
29311 # but we know of no workaround that is simple, portable, and efficient.
29312 # So, we kill variables containing newlines.
29313 # Ultrix sh set writes to stderr and can't be redirected directly,
29314 # and sets the high bit in the cache file unless we assign to the vars.
29315 (
29316   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29317     eval ac_val=\$$ac_var
29318     case $ac_val in #(
29319     *${as_nl}*)
29320       case $ac_var in #(
29321       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29322 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29323       esac
29324       case $ac_var in #(
29325       _ | IFS | as_nl) ;; #(
29326       *) $as_unset $ac_var ;;
29327       esac ;;
29328     esac
29329   done
29330
29331   (set) 2>&1 |
29332     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29333     *${as_nl}ac_space=\ *)
29334       # `set' does not quote correctly, so add quotes (double-quote
29335       # substitution turns \\\\ into \\, and sed turns \\ into \).
29336       sed -n \
29337         "s/'/'\\\\''/g;
29338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29339       ;; #(
29340     *)
29341       # `set' quotes correctly as required by POSIX, so do not add quotes.
29342       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29343       ;;
29344     esac |
29345     sort
29346 ) |
29347   sed '
29348      /^ac_cv_env_/b end
29349      t clear
29350      :clear
29351      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29352      t end
29353      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29354      :end' >>confcache
29355 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29356   if test -w "$cache_file"; then
29357     test "x$cache_file" != "x/dev/null" &&
29358       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29359 echo "$as_me: updating cache $cache_file" >&6;}
29360     cat confcache >$cache_file
29361   else
29362     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29363 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29364   fi
29365 fi
29366 rm -f confcache
29367
29368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29369 # Let make expand exec_prefix.
29370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29371
29372 DEFS=-DHAVE_CONFIG_H
29373
29374 ac_libobjs=
29375 ac_ltlibobjs=
29376 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29377   # 1. Remove the extension, and $U if already installed.
29378   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29379   ac_i=`echo "$ac_i" | sed "$ac_script"`
29380   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29381   #    will be set to the directory where LIBOBJS objects are built.
29382   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29383   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29384 done
29385 LIBOBJS=$ac_libobjs
29386
29387 LTLIBOBJS=$ac_ltlibobjs
29388
29389
29390 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29391   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29392 Usually this means the macro was only invoked conditionally." >&5
29393 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29394 Usually this means the macro was only invoked conditionally." >&2;}
29395    { (exit 1); exit 1; }; }
29396 fi
29397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29398   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29399 Usually this means the macro was only invoked conditionally." >&5
29400 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29401 Usually this means the macro was only invoked conditionally." >&2;}
29402    { (exit 1); exit 1; }; }
29403 fi
29404 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29405   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29406 Usually this means the macro was only invoked conditionally." >&5
29407 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29408 Usually this means the macro was only invoked conditionally." >&2;}
29409    { (exit 1); exit 1; }; }
29410 fi
29411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29412   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29413 Usually this means the macro was only invoked conditionally." >&5
29414 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29415 Usually this means the macro was only invoked conditionally." >&2;}
29416    { (exit 1); exit 1; }; }
29417 fi
29418 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
29419   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
29420 Usually this means the macro was only invoked conditionally." >&5
29421 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
29422 Usually this means the macro was only invoked conditionally." >&2;}
29423    { (exit 1); exit 1; }; }
29424 fi
29425 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
29426   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
29427 Usually this means the macro was only invoked conditionally." >&5
29428 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
29429 Usually this means the macro was only invoked conditionally." >&2;}
29430    { (exit 1); exit 1; }; }
29431 fi
29432 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
29433   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
29434 Usually this means the macro was only invoked conditionally." >&5
29435 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
29436 Usually this means the macro was only invoked conditionally." >&2;}
29437    { (exit 1); exit 1; }; }
29438 fi
29439 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
29440   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
29441 Usually this means the macro was only invoked conditionally." >&5
29442 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
29443 Usually this means the macro was only invoked conditionally." >&2;}
29444    { (exit 1); exit 1; }; }
29445 fi
29446 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29447   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29448 Usually this means the macro was only invoked conditionally." >&5
29449 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29450 Usually this means the macro was only invoked conditionally." >&2;}
29451    { (exit 1); exit 1; }; }
29452 fi
29453 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29454   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29455 Usually this means the macro was only invoked conditionally." >&5
29456 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29457 Usually this means the macro was only invoked conditionally." >&2;}
29458    { (exit 1); exit 1; }; }
29459 fi
29460 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29461   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29462 Usually this means the macro was only invoked conditionally." >&5
29463 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29464 Usually this means the macro was only invoked conditionally." >&2;}
29465    { (exit 1); exit 1; }; }
29466 fi
29467 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29468   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29469 Usually this means the macro was only invoked conditionally." >&5
29470 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29471 Usually this means the macro was only invoked conditionally." >&2;}
29472    { (exit 1); exit 1; }; }
29473 fi
29474 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29475   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29476 Usually this means the macro was only invoked conditionally." >&5
29477 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29478 Usually this means the macro was only invoked conditionally." >&2;}
29479    { (exit 1); exit 1; }; }
29480 fi
29481 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
29482   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29483 Usually this means the macro was only invoked conditionally." >&5
29484 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29485 Usually this means the macro was only invoked conditionally." >&2;}
29486    { (exit 1); exit 1; }; }
29487 fi
29488 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
29489   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29490 Usually this means the macro was only invoked conditionally." >&5
29491 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29492 Usually this means the macro was only invoked conditionally." >&2;}
29493    { (exit 1); exit 1; }; }
29494 fi
29495 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
29496   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
29497 Usually this means the macro was only invoked conditionally." >&5
29498 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
29499 Usually this means the macro was only invoked conditionally." >&2;}
29500    { (exit 1); exit 1; }; }
29501 fi
29502 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
29503   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
29504 Usually this means the macro was only invoked conditionally." >&5
29505 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
29506 Usually this means the macro was only invoked conditionally." >&2;}
29507    { (exit 1); exit 1; }; }
29508 fi
29509 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
29510   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
29511 Usually this means the macro was only invoked conditionally." >&5
29512 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
29513 Usually this means the macro was only invoked conditionally." >&2;}
29514    { (exit 1); exit 1; }; }
29515 fi
29516 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
29517   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
29518 Usually this means the macro was only invoked conditionally." >&5
29519 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
29520 Usually this means the macro was only invoked conditionally." >&2;}
29521    { (exit 1); exit 1; }; }
29522 fi
29523 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
29524   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
29525 Usually this means the macro was only invoked conditionally." >&5
29526 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
29527 Usually this means the macro was only invoked conditionally." >&2;}
29528    { (exit 1); exit 1; }; }
29529 fi
29530 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
29531   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
29532 Usually this means the macro was only invoked conditionally." >&5
29533 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
29534 Usually this means the macro was only invoked conditionally." >&2;}
29535    { (exit 1); exit 1; }; }
29536 fi
29537 if test -z "${ENSC_HAVE_CRYPTO_TRUE}" && test -z "${ENSC_HAVE_CRYPTO_FALSE}"; then
29538   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CRYPTO\" was never defined.
29539 Usually this means the macro was only invoked conditionally." >&5
29540 echo "$as_me: error: conditional \"ENSC_HAVE_CRYPTO\" was never defined.
29541 Usually this means the macro was only invoked conditionally." >&2;}
29542    { (exit 1); exit 1; }; }
29543 fi
29544 if test -z "${ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE}"; then
29545   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_CRYPTO_WITH_DIETLIBC\" was never defined.
29546 Usually this means the macro was only invoked conditionally." >&5
29547 echo "$as_me: error: conditional \"ENSC_CAN_CRYPTO_WITH_DIETLIBC\" was never defined.
29548 Usually this means the macro was only invoked conditionally." >&2;}
29549    { (exit 1); exit 1; }; }
29550 fi
29551 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
29552   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29553 Usually this means the macro was only invoked conditionally." >&5
29554 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29555 Usually this means the macro was only invoked conditionally." >&2;}
29556    { (exit 1); exit 1; }; }
29557 fi
29558 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
29559   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29560 Usually this means the macro was only invoked conditionally." >&5
29561 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29562 Usually this means the macro was only invoked conditionally." >&2;}
29563    { (exit 1); exit 1; }; }
29564 fi
29565 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
29566   { { echo "$as_me:$LINENO: error: conditional \"HAVE_PYTHON\" was never defined.
29567 Usually this means the macro was only invoked conditionally." >&5
29568 echo "$as_me: error: conditional \"HAVE_PYTHON\" was never defined.
29569 Usually this means the macro was only invoked conditionally." >&2;}
29570    { (exit 1); exit 1; }; }
29571 fi
29572 if test -z "${HAVE_VERSIONING_TRUE}" && test -z "${HAVE_VERSIONING_FALSE}"; then
29573   { { echo "$as_me:$LINENO: error: conditional \"HAVE_VERSIONING\" was never defined.
29574 Usually this means the macro was only invoked conditionally." >&5
29575 echo "$as_me: error: conditional \"HAVE_VERSIONING\" was never defined.
29576 Usually this means the macro was only invoked conditionally." >&2;}
29577    { (exit 1); exit 1; }; }
29578 fi
29579
29580                         FEATURES_TXT="\
29581 Features:
29582                        CC: $CC, $($CC   --version | sed -e '1p;d')
29583                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
29584                  CPPFLAGS: '$CPPFLAGS'
29585                    CFLAGS: '$CFLAGS'
29586                  CXXFLAGS: '$CXXFLAGS'
29587                build/host: $build/$host
29588              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
29589        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
29590        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
29591            Available APIs: $enable_apis
29592             ext2fs Source: $ensc_cv_test_ext2fs_header
29593     syscall(2) invocation: $with_syscall
29594       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
29595                crypto api: $ensc_crypto_api
29596           python bindings: $ensc_have_python
29597    use library versioning: $ensc_have_versioning
29598
29599 Paths:
29600                    prefix: $prefix
29601         sysconf-Directory: $sysconfdir
29602             cfg-Directory: $sysconfdir/vservers
29603          initrd-Directory: $initrddir
29604        pkgstate-Directory: $localstatedir/run/vservers
29605           vserver-Rootdir: $vserverdir
29606 "
29607                         echo "$FEATURES_TXT" >FEATURES.txt
29608
29609
29610 : ${CONFIG_STATUS=./config.status}
29611 ac_clean_files_save=$ac_clean_files
29612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29615 cat >$CONFIG_STATUS <<_ACEOF
29616 #! $SHELL
29617 # Generated by $as_me.
29618 # Run this file to recreate the current configuration.
29619 # Compiler output produced by configure, useful for debugging
29620 # configure, is in config.log if it exists.
29621
29622 debug=false
29623 ac_cs_recheck=false
29624 ac_cs_silent=false
29625 SHELL=\${CONFIG_SHELL-$SHELL}
29626 _ACEOF
29627
29628 cat >>$CONFIG_STATUS <<\_ACEOF
29629 ## --------------------- ##
29630 ## M4sh Initialization.  ##
29631 ## --------------------- ##
29632
29633 # Be more Bourne compatible
29634 DUALCASE=1; export DUALCASE # for MKS sh
29635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29636   emulate sh
29637   NULLCMD=:
29638   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29639   # is contrary to our usage.  Disable this feature.
29640   alias -g '${1+"$@"}'='"$@"'
29641   setopt NO_GLOB_SUBST
29642 else
29643   case `(set -o) 2>/dev/null` in
29644   *posix*) set -o posix ;;
29645 esac
29646
29647 fi
29648
29649
29650
29651
29652 # PATH needs CR
29653 # Avoid depending upon Character Ranges.
29654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29657 as_cr_digits='0123456789'
29658 as_cr_alnum=$as_cr_Letters$as_cr_digits
29659
29660 # The user is always right.
29661 if test "${PATH_SEPARATOR+set}" != set; then
29662   echo "#! /bin/sh" >conf$$.sh
29663   echo  "exit 0"   >>conf$$.sh
29664   chmod +x conf$$.sh
29665   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29666     PATH_SEPARATOR=';'
29667   else
29668     PATH_SEPARATOR=:
29669   fi
29670   rm -f conf$$.sh
29671 fi
29672
29673 # Support unset when possible.
29674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29675   as_unset=unset
29676 else
29677   as_unset=false
29678 fi
29679
29680
29681 # IFS
29682 # We need space, tab and new line, in precisely that order.  Quoting is
29683 # there to prevent editors from complaining about space-tab.
29684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29685 # splitting by setting IFS to empty value.)
29686 as_nl='
29687 '
29688 IFS=" ""        $as_nl"
29689
29690 # Find who we are.  Look in the path if we contain no directory separator.
29691 case $0 in
29692   *[\\/]* ) as_myself=$0 ;;
29693   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29694 for as_dir in $PATH
29695 do
29696   IFS=$as_save_IFS
29697   test -z "$as_dir" && as_dir=.
29698   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29699 done
29700 IFS=$as_save_IFS
29701
29702      ;;
29703 esac
29704 # We did not find ourselves, most probably we were run as `sh COMMAND'
29705 # in which case we are not to be found in the path.
29706 if test "x$as_myself" = x; then
29707   as_myself=$0
29708 fi
29709 if test ! -f "$as_myself"; then
29710   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29711   { (exit 1); exit 1; }
29712 fi
29713
29714 # Work around bugs in pre-3.0 UWIN ksh.
29715 for as_var in ENV MAIL MAILPATH
29716 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29717 done
29718 PS1='$ '
29719 PS2='> '
29720 PS4='+ '
29721
29722 # NLS nuisances.
29723 for as_var in \
29724   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29725   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29726   LC_TELEPHONE LC_TIME
29727 do
29728   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29729     eval $as_var=C; export $as_var
29730   else
29731     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29732   fi
29733 done
29734
29735 # Required to use basename.
29736 if expr a : '\(a\)' >/dev/null 2>&1 &&
29737    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29738   as_expr=expr
29739 else
29740   as_expr=false
29741 fi
29742
29743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29744   as_basename=basename
29745 else
29746   as_basename=false
29747 fi
29748
29749
29750 # Name of the executable.
29751 as_me=`$as_basename -- "$0" ||
29752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29753          X"$0" : 'X\(//\)$' \| \
29754          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29755 echo X/"$0" |
29756     sed '/^.*\/\([^/][^/]*\)\/*$/{
29757             s//\1/
29758             q
29759           }
29760           /^X\/\(\/\/\)$/{
29761             s//\1/
29762             q
29763           }
29764           /^X\/\(\/\).*/{
29765             s//\1/
29766             q
29767           }
29768           s/.*/./; q'`
29769
29770 # CDPATH.
29771 $as_unset CDPATH
29772
29773
29774
29775   as_lineno_1=$LINENO
29776   as_lineno_2=$LINENO
29777   test "x$as_lineno_1" != "x$as_lineno_2" &&
29778   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29779
29780   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29781   # uniformly replaced by the line number.  The first 'sed' inserts a
29782   # line-number line after each line using $LINENO; the second 'sed'
29783   # does the real work.  The second script uses 'N' to pair each
29784   # line-number line with the line containing $LINENO, and appends
29785   # trailing '-' during substitution so that $LINENO is not a special
29786   # case at line end.
29787   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29788   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29789   # E. McMahon (1931-1989) for sed's syntax.  :-)
29790   sed -n '
29791     p
29792     /[$]LINENO/=
29793   ' <$as_myself |
29794     sed '
29795       s/[$]LINENO.*/&-/
29796       t lineno
29797       b
29798       :lineno
29799       N
29800       :loop
29801       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29802       t loop
29803       s/-\n.*//
29804     ' >$as_me.lineno &&
29805   chmod +x "$as_me.lineno" ||
29806     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29807    { (exit 1); exit 1; }; }
29808
29809   # Don't try to exec as it changes $[0], causing all sort of problems
29810   # (the dirname of $[0] is not the place where we might find the
29811   # original and so on.  Autoconf is especially sensitive to this).
29812   . "./$as_me.lineno"
29813   # Exit status is that of the last command.
29814   exit
29815 }
29816
29817
29818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29819   as_dirname=dirname
29820 else
29821   as_dirname=false
29822 fi
29823
29824 ECHO_C= ECHO_N= ECHO_T=
29825 case `echo -n x` in
29826 -n*)
29827   case `echo 'x\c'` in
29828   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29829   *)   ECHO_C='\c';;
29830   esac;;
29831 *)
29832   ECHO_N='-n';;
29833 esac
29834
29835 if expr a : '\(a\)' >/dev/null 2>&1 &&
29836    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29837   as_expr=expr
29838 else
29839   as_expr=false
29840 fi
29841
29842 rm -f conf$$ conf$$.exe conf$$.file
29843 if test -d conf$$.dir; then
29844   rm -f conf$$.dir/conf$$.file
29845 else
29846   rm -f conf$$.dir
29847   mkdir conf$$.dir
29848 fi
29849 echo >conf$$.file
29850 if ln -s conf$$.file conf$$ 2>/dev/null; then
29851   as_ln_s='ln -s'
29852   # ... but there are two gotchas:
29853   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29854   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29855   # In both cases, we have to default to `cp -p'.
29856   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29857     as_ln_s='cp -p'
29858 elif ln conf$$.file conf$$ 2>/dev/null; then
29859   as_ln_s=ln
29860 else
29861   as_ln_s='cp -p'
29862 fi
29863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29864 rmdir conf$$.dir 2>/dev/null
29865
29866 if mkdir -p . 2>/dev/null; then
29867   as_mkdir_p=:
29868 else
29869   test -d ./-p && rmdir ./-p
29870   as_mkdir_p=false
29871 fi
29872
29873 if test -x / >/dev/null 2>&1; then
29874   as_test_x='test -x'
29875 else
29876   if ls -dL / >/dev/null 2>&1; then
29877     as_ls_L_option=L
29878   else
29879     as_ls_L_option=
29880   fi
29881   as_test_x='
29882     eval sh -c '\''
29883       if test -d "$1"; then
29884         test -d "$1/.";
29885       else
29886         case $1 in
29887         -*)set "./$1";;
29888         esac;
29889         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29890         ???[sx]*):;;*)false;;esac;fi
29891     '\'' sh
29892   '
29893 fi
29894 as_executable_p=$as_test_x
29895
29896 # Sed expression to map a string onto a valid CPP name.
29897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29898
29899 # Sed expression to map a string onto a valid variable name.
29900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29901
29902
29903 exec 6>&1
29904
29905 # Save the log message, to keep $[0] and so on meaningful, and to
29906 # report actual input values of CONFIG_FILES etc. instead of their
29907 # values after options handling.
29908 ac_log="
29909 This file was extended by util-vserver $as_me 0.30.216-pre2833, which was
29910 generated by GNU Autoconf 2.61.  Invocation command line was
29911
29912   CONFIG_FILES    = $CONFIG_FILES
29913   CONFIG_HEADERS  = $CONFIG_HEADERS
29914   CONFIG_LINKS    = $CONFIG_LINKS
29915   CONFIG_COMMANDS = $CONFIG_COMMANDS
29916   $ $0 $@
29917
29918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29919 "
29920
29921 _ACEOF
29922
29923 cat >>$CONFIG_STATUS <<_ACEOF
29924 # Files that config.status was made for.
29925 config_files="$ac_config_files"
29926 config_headers="$ac_config_headers"
29927 config_commands="$ac_config_commands"
29928
29929 _ACEOF
29930
29931 cat >>$CONFIG_STATUS <<\_ACEOF
29932 ac_cs_usage="\
29933 \`$as_me' instantiates files from templates according to the
29934 current configuration.
29935
29936 Usage: $0 [OPTIONS] [FILE]...
29937
29938   -h, --help       print this help, then exit
29939   -V, --version    print version number and configuration settings, then exit
29940   -q, --quiet      do not print progress messages
29941   -d, --debug      don't remove temporary files
29942       --recheck    update $as_me by reconfiguring in the same conditions
29943   --file=FILE[:TEMPLATE]
29944                    instantiate the configuration file FILE
29945   --header=FILE[:TEMPLATE]
29946                    instantiate the configuration header FILE
29947
29948 Configuration files:
29949 $config_files
29950
29951 Configuration headers:
29952 $config_headers
29953
29954 Configuration commands:
29955 $config_commands
29956
29957 Report bugs to <bug-autoconf@gnu.org>."
29958
29959 _ACEOF
29960 cat >>$CONFIG_STATUS <<_ACEOF
29961 ac_cs_version="\\
29962 util-vserver config.status 0.30.216-pre2833
29963 configured by $0, generated by GNU Autoconf 2.61,
29964   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29965
29966 Copyright (C) 2006 Free Software Foundation, Inc.
29967 This config.status script is free software; the Free Software Foundation
29968 gives unlimited permission to copy, distribute and modify it."
29969
29970 ac_pwd='$ac_pwd'
29971 srcdir='$srcdir'
29972 INSTALL='$INSTALL'
29973 MKDIR_P='$MKDIR_P'
29974 _ACEOF
29975
29976 cat >>$CONFIG_STATUS <<\_ACEOF
29977 # If no file are specified by the user, then we need to provide default
29978 # value.  By we need to know if files were specified by the user.
29979 ac_need_defaults=:
29980 while test $# != 0
29981 do
29982   case $1 in
29983   --*=*)
29984     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29985     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29986     ac_shift=:
29987     ;;
29988   *)
29989     ac_option=$1
29990     ac_optarg=$2
29991     ac_shift=shift
29992     ;;
29993   esac
29994
29995   case $ac_option in
29996   # Handling of the options.
29997   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29998     ac_cs_recheck=: ;;
29999   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30000     echo "$ac_cs_version"; exit ;;
30001   --debug | --debu | --deb | --de | --d | -d )
30002     debug=: ;;
30003   --file | --fil | --fi | --f )
30004     $ac_shift
30005     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30006     ac_need_defaults=false;;
30007   --header | --heade | --head | --hea )
30008     $ac_shift
30009     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30010     ac_need_defaults=false;;
30011   --he | --h)
30012     # Conflict between --help and --header
30013     { echo "$as_me: error: ambiguous option: $1
30014 Try \`$0 --help' for more information." >&2
30015    { (exit 1); exit 1; }; };;
30016   --help | --hel | -h )
30017     echo "$ac_cs_usage"; exit ;;
30018   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30019   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30020     ac_cs_silent=: ;;
30021
30022   # This is an error.
30023   -*) { echo "$as_me: error: unrecognized option: $1
30024 Try \`$0 --help' for more information." >&2
30025    { (exit 1); exit 1; }; } ;;
30026
30027   *) ac_config_targets="$ac_config_targets $1"
30028      ac_need_defaults=false ;;
30029
30030   esac
30031   shift
30032 done
30033
30034 ac_configure_extra_args=
30035
30036 if $ac_cs_silent; then
30037   exec 6>/dev/null
30038   ac_configure_extra_args="$ac_configure_extra_args --silent"
30039 fi
30040
30041 _ACEOF
30042 cat >>$CONFIG_STATUS <<_ACEOF
30043 if \$ac_cs_recheck; then
30044   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30045   CONFIG_SHELL=$SHELL
30046   export CONFIG_SHELL
30047   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30048 fi
30049
30050 _ACEOF
30051 cat >>$CONFIG_STATUS <<\_ACEOF
30052 exec 5>>config.log
30053 {
30054   echo
30055   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30056 ## Running $as_me. ##
30057 _ASBOX
30058   echo "$ac_log"
30059 } >&5
30060
30061 _ACEOF
30062 cat >>$CONFIG_STATUS <<_ACEOF
30063 #
30064 # INIT-COMMANDS
30065 #
30066 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30067
30068 _ACEOF
30069
30070 cat >>$CONFIG_STATUS <<\_ACEOF
30071
30072 # Handling of arguments.
30073 for ac_config_target in $ac_config_targets
30074 do
30075   case $ac_config_target in
30076     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30077     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30078     "util-vserver.spec") CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
30079     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30080     "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
30081     "lib/apidoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
30082
30083   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30084 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30085    { (exit 1); exit 1; }; };;
30086   esac
30087 done
30088
30089
30090 # If the user did not use the arguments to specify the items to instantiate,
30091 # then the envvar interface is used.  Set only those that are not.
30092 # We use the long form for the default assignment because of an extremely
30093 # bizarre bug on SunOS 4.1.3.
30094 if $ac_need_defaults; then
30095   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30096   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30097   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30098 fi
30099
30100 # Have a temporary directory for convenience.  Make it in the build tree
30101 # simply because there is no reason against having it here, and in addition,
30102 # creating and moving files from /tmp can sometimes cause problems.
30103 # Hook for its removal unless debugging.
30104 # Note that there is a small window in which the directory will not be cleaned:
30105 # after its creation but before its name has been assigned to `$tmp'.
30106 $debug ||
30107 {
30108   tmp=
30109   trap 'exit_status=$?
30110   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30111 ' 0
30112   trap '{ (exit 1); exit 1; }' 1 2 13 15
30113 }
30114 # Create a (secure) tmp directory for tmp files.
30115
30116 {
30117   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30118   test -n "$tmp" && test -d "$tmp"
30119 }  ||
30120 {
30121   tmp=./conf$$-$RANDOM
30122   (umask 077 && mkdir "$tmp")
30123 } ||
30124 {
30125    echo "$me: cannot create a temporary directory in ." >&2
30126    { (exit 1); exit 1; }
30127 }
30128
30129 #
30130 # Set up the sed scripts for CONFIG_FILES section.
30131 #
30132
30133 # No need to generate the scripts if there are no CONFIG_FILES.
30134 # This happens for instance when ./config.status config.h
30135 if test -n "$CONFIG_FILES"; then
30136
30137 _ACEOF
30138
30139
30140
30141 ac_delim='%!_!# '
30142 for ac_last_try in false false false false false :; do
30143   cat >conf$$subs.sed <<_ACEOF
30144 SHELL!$SHELL$ac_delim
30145 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30146 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30147 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30148 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30149 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30150 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30151 exec_prefix!$exec_prefix$ac_delim
30152 prefix!$prefix$ac_delim
30153 program_transform_name!$program_transform_name$ac_delim
30154 bindir!$bindir$ac_delim
30155 sbindir!$sbindir$ac_delim
30156 libexecdir!$libexecdir$ac_delim
30157 datarootdir!$datarootdir$ac_delim
30158 datadir!$datadir$ac_delim
30159 sysconfdir!$sysconfdir$ac_delim
30160 sharedstatedir!$sharedstatedir$ac_delim
30161 localstatedir!$localstatedir$ac_delim
30162 includedir!$includedir$ac_delim
30163 oldincludedir!$oldincludedir$ac_delim
30164 docdir!$docdir$ac_delim
30165 infodir!$infodir$ac_delim
30166 htmldir!$htmldir$ac_delim
30167 dvidir!$dvidir$ac_delim
30168 pdfdir!$pdfdir$ac_delim
30169 psdir!$psdir$ac_delim
30170 libdir!$libdir$ac_delim
30171 localedir!$localedir$ac_delim
30172 mandir!$mandir$ac_delim
30173 DEFS!$DEFS$ac_delim
30174 ECHO_C!$ECHO_C$ac_delim
30175 ECHO_N!$ECHO_N$ac_delim
30176 ECHO_T!$ECHO_T$ac_delim
30177 LIBS!$LIBS$ac_delim
30178 build_alias!$build_alias$ac_delim
30179 host_alias!$host_alias$ac_delim
30180 target_alias!$target_alias$ac_delim
30181 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30182 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30183 INSTALL_DATA!$INSTALL_DATA$ac_delim
30184 am__isrc!$am__isrc$ac_delim
30185 CYGPATH_W!$CYGPATH_W$ac_delim
30186 PACKAGE!$PACKAGE$ac_delim
30187 VERSION!$VERSION$ac_delim
30188 ACLOCAL!$ACLOCAL$ac_delim
30189 AUTOCONF!$AUTOCONF$ac_delim
30190 AUTOMAKE!$AUTOMAKE$ac_delim
30191 AUTOHEADER!$AUTOHEADER$ac_delim
30192 MAKEINFO!$MAKEINFO$ac_delim
30193 install_sh!$install_sh$ac_delim
30194 STRIP!$STRIP$ac_delim
30195 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
30196 mkdir_p!$mkdir_p$ac_delim
30197 AWK!$AWK$ac_delim
30198 SET_MAKE!$SET_MAKE$ac_delim
30199 am__leading_dot!$am__leading_dot$ac_delim
30200 AMTAR!$AMTAR$ac_delim
30201 am__tar!$am__tar$ac_delim
30202 am__untar!$am__untar$ac_delim
30203 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
30204 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
30205 MAINT!$MAINT$ac_delim
30206 build!$build$ac_delim
30207 build_cpu!$build_cpu$ac_delim
30208 build_vendor!$build_vendor$ac_delim
30209 build_os!$build_os$ac_delim
30210 host!$host$ac_delim
30211 host_cpu!$host_cpu$ac_delim
30212 host_vendor!$host_vendor$ac_delim
30213 host_os!$host_os$ac_delim
30214 GPG_KEY!$GPG_KEY$ac_delim
30215 CXX!$CXX$ac_delim
30216 CXXFLAGS!$CXXFLAGS$ac_delim
30217 LDFLAGS!$LDFLAGS$ac_delim
30218 CPPFLAGS!$CPPFLAGS$ac_delim
30219 ac_ct_CXX!$ac_ct_CXX$ac_delim
30220 EXEEXT!$EXEEXT$ac_delim
30221 OBJEXT!$OBJEXT$ac_delim
30222 DEPDIR!$DEPDIR$ac_delim
30223 am__include!$am__include$ac_delim
30224 am__quote!$am__quote$ac_delim
30225 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30226 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30227 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30228 CXXDEPMODE!$CXXDEPMODE$ac_delim
30229 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30230 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30231 CC!$CC$ac_delim
30232 CFLAGS!$CFLAGS$ac_delim
30233 ac_ct_CC!$ac_ct_CC$ac_delim
30234 CCDEPMODE!$CCDEPMODE$ac_delim
30235 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30236 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30237 LN_S!$LN_S$ac_delim
30238 PKG_CONFIG!$PKG_CONFIG$ac_delim
30239 ENSC_HAVE_CXX_COMPILER_TRUE!$ENSC_HAVE_CXX_COMPILER_TRUE$ac_delim
30240 ENSC_HAVE_CXX_COMPILER_FALSE!$ENSC_HAVE_CXX_COMPILER_FALSE$ac_delim
30241 _ACEOF
30242
30243   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30244     break
30245   elif $ac_last_try; then
30246     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30247 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30248    { (exit 1); exit 1; }; }
30249   else
30250     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30251   fi
30252 done
30253
30254 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30255 if test -n "$ac_eof"; then
30256   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30257   ac_eof=`expr $ac_eof + 1`
30258 fi
30259
30260 cat >>$CONFIG_STATUS <<_ACEOF
30261 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30262 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30263 _ACEOF
30264 sed '
30265 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30266 s/^/s,@/; s/!/@,|#_!!_#|/
30267 :n
30268 t n
30269 s/'"$ac_delim"'$/,g/; t
30270 s/$/\\/; p
30271 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30272 ' >>$CONFIG_STATUS <conf$$subs.sed
30273 rm -f conf$$subs.sed
30274 cat >>$CONFIG_STATUS <<_ACEOF
30275 CEOF$ac_eof
30276 _ACEOF
30277
30278
30279 ac_delim='%!_!# '
30280 for ac_last_try in false false false false false :; do
30281   cat >conf$$subs.sed <<_ACEOF
30282 ENSC_HAVE_C99_COMPILER_TRUE!$ENSC_HAVE_C99_COMPILER_TRUE$ac_delim
30283 ENSC_HAVE_C99_COMPILER_FALSE!$ENSC_HAVE_C99_COMPILER_FALSE$ac_delim
30284 ENSC_PATHPROG_SED!$ENSC_PATHPROG_SED$ac_delim
30285 CAT!$CAT$ac_delim
30286 CHOWN!$CHOWN$ac_delim
30287 CMP!$CMP$ac_delim
30288 CP!$CP$ac_delim
30289 DIRNAME!$DIRNAME$ac_delim
30290 EGREP!$EGREP$ac_delim
30291 ENV!$ENV$ac_delim
30292 GREP!$GREP$ac_delim
30293 LN!$LN$ac_delim
30294 MKDIR!$MKDIR$ac_delim
30295 MKFIFO!$MKFIFO$ac_delim
30296 MKTEMP!$MKTEMP$ac_delim
30297 MOUNT!$MOUNT$ac_delim
30298 MV!$MV$ac_delim
30299 NICE!$NICE$ac_delim
30300 PS!$PS$ac_delim
30301 RM!$RM$ac_delim
30302 RMDIR!$RMDIR$ac_delim
30303 SED!$SED$ac_delim
30304 SH!$SH$ac_delim
30305 TAC!$TAC$ac_delim
30306 TAR!$TAR$ac_delim
30307 TOUCH!$TOUCH$ac_delim
30308 TTY!$TTY$ac_delim
30309 UMOUNT!$UMOUNT$ac_delim
30310 WC!$WC$ac_delim
30311 IP!$IP$ac_delim
30312 IPTABLES!$IPTABLES$ac_delim
30313 MODPROBE!$MODPROBE$ac_delim
30314 NAMEIF!$NAMEIF$ac_delim
30315 NOHUP!$NOHUP$ac_delim
30316 RMMOD!$RMMOD$ac_delim
30317 VCONFIG!$VCONFIG$ac_delim
30318 WGET!$WGET$ac_delim
30319 IONICE!$IONICE$ac_delim
30320 FILE!$FILE$ac_delim
30321 GZIP!$GZIP$ac_delim
30322 BZIP2!$BZIP2$ac_delim
30323 CPIO!$CPIO$ac_delim
30324 RESTORE!$RESTORE$ac_delim
30325 RSYNC!$RSYNC$ac_delim
30326 STRACE!$STRACE$ac_delim
30327 FSCK!$FSCK$ac_delim
30328 DOXYGEN!$DOXYGEN$ac_delim
30329 XSLTP!$XSLTP$ac_delim
30330 XSLTPROC!$XSLTPROC$ac_delim
30331 HAVE_XSLTP_TRUE!$HAVE_XSLTP_TRUE$ac_delim
30332 HAVE_XSLTP_FALSE!$HAVE_XSLTP_FALSE$ac_delim
30333 HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
30334 HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
30335 LIB_DEBUG_CPPFLAGS!$LIB_DEBUG_CPPFLAGS$ac_delim
30336 ENSC_USE_EXPENSIVE_TESTS!$ENSC_USE_EXPENSIVE_TESTS$ac_delim
30337 initrddir!$initrddir$ac_delim
30338 RELEASE_CPPFLAGS!$RELEASE_CPPFLAGS$ac_delim
30339 CPP!$CPP$ac_delim
30340 DIET!$DIET$ac_delim
30341 DIETFLAGS!$DIETFLAGS$ac_delim
30342 USE_DIETLIBC_TRUE!$USE_DIETLIBC_TRUE$ac_delim
30343 USE_DIETLIBC_FALSE!$USE_DIETLIBC_FALSE$ac_delim
30344 USE_DIETLIBC_COMPAT_TRUE!$USE_DIETLIBC_COMPAT_TRUE$ac_delim
30345 USE_DIETLIBC_COMPAT_FALSE!$USE_DIETLIBC_COMPAT_FALSE$ac_delim
30346 ENSC_USE_DIETLIBC_TRUE!$ENSC_USE_DIETLIBC_TRUE$ac_delim
30347 ENSC_USE_DIETLIBC_FALSE!$ENSC_USE_DIETLIBC_FALSE$ac_delim
30348 ENSC_USE_GLIBC_TRUE!$ENSC_USE_GLIBC_TRUE$ac_delim
30349 ENSC_USE_GLIBC_FALSE!$ENSC_USE_GLIBC_FALSE$ac_delim
30350 ECHO!$ECHO$ac_delim
30351 AR!$AR$ac_delim
30352 RANLIB!$RANLIB$ac_delim
30353 CXXCPP!$CXXCPP$ac_delim
30354 F77!$F77$ac_delim
30355 FFLAGS!$FFLAGS$ac_delim
30356 ac_ct_F77!$ac_ct_F77$ac_delim
30357 LIBTOOL!$LIBTOOL$ac_delim
30358 vserverdir!$vserverdir$ac_delim
30359 SVN2CL!$SVN2CL$ac_delim
30360 HAVE_SVN2CL_TRUE!$HAVE_SVN2CL_TRUE$ac_delim
30361 HAVE_SVN2CL_FALSE!$HAVE_SVN2CL_FALSE$ac_delim
30362 ENSC_ENABLE_INTERNAL_HEADERS_TRUE!$ENSC_ENABLE_INTERNAL_HEADERS_TRUE$ac_delim
30363 ENSC_ENABLE_INTERNAL_HEADERS_FALSE!$ENSC_ENABLE_INTERNAL_HEADERS_FALSE$ac_delim
30364 ENSC_HAVE_BEECRYPT_TRUE!$ENSC_HAVE_BEECRYPT_TRUE$ac_delim
30365 ENSC_HAVE_BEECRYPT_FALSE!$ENSC_HAVE_BEECRYPT_FALSE$ac_delim
30366 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE$ac_delim
30367 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE$ac_delim
30368 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
30369 NSS_LIBS!$NSS_LIBS$ac_delim
30370 ENSC_HAVE_CRYPTO_TRUE!$ENSC_HAVE_CRYPTO_TRUE$ac_delim
30371 ENSC_HAVE_CRYPTO_FALSE!$ENSC_HAVE_CRYPTO_FALSE$ac_delim
30372 ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE!$ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE$ac_delim
30373 ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE!$ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE$ac_delim
30374 ENSC_CRYPTO_CFLAGS!$ENSC_CRYPTO_CFLAGS$ac_delim
30375 ENSC_CRYPTO_LIB!$ENSC_CRYPTO_LIB$ac_delim
30376 HAVE_GENTOO_INIT_TRUE!$HAVE_GENTOO_INIT_TRUE$ac_delim
30377 HAVE_GENTOO_INIT_FALSE!$HAVE_GENTOO_INIT_FALSE$ac_delim
30378 HAVE_SYSV_INIT_TRUE!$HAVE_SYSV_INIT_TRUE$ac_delim
30379 _ACEOF
30380
30381   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30382     break
30383   elif $ac_last_try; then
30384     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30385 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30386    { (exit 1); exit 1; }; }
30387   else
30388     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30389   fi
30390 done
30391
30392 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30393 if test -n "$ac_eof"; then
30394   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30395   ac_eof=`expr $ac_eof + 1`
30396 fi
30397
30398 cat >>$CONFIG_STATUS <<_ACEOF
30399 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30400 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30401 _ACEOF
30402 sed '
30403 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30404 s/^/s,@/; s/!/@,|#_!!_#|/
30405 :n
30406 t n
30407 s/'"$ac_delim"'$/,g/; t
30408 s/$/\\/; p
30409 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30410 ' >>$CONFIG_STATUS <conf$$subs.sed
30411 rm -f conf$$subs.sed
30412 cat >>$CONFIG_STATUS <<_ACEOF
30413 CEOF$ac_eof
30414 _ACEOF
30415
30416
30417 ac_delim='%!_!# '
30418 for ac_last_try in false false false false false :; do
30419   cat >conf$$subs.sed <<_ACEOF
30420 HAVE_SYSV_INIT_FALSE!$HAVE_SYSV_INIT_FALSE$ac_delim
30421 PYTHON!$PYTHON$ac_delim
30422 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
30423 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
30424 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
30425 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
30426 pythondir!$pythondir$ac_delim
30427 pkgpythondir!$pkgpythondir$ac_delim
30428 pyexecdir!$pyexecdir$ac_delim
30429 pkgpyexecdir!$pkgpyexecdir$ac_delim
30430 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
30431 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
30432 CTAGS!$CTAGS$ac_delim
30433 HAVE_PYTHON_TRUE!$HAVE_PYTHON_TRUE$ac_delim
30434 HAVE_PYTHON_FALSE!$HAVE_PYTHON_FALSE$ac_delim
30435 HAVE_VERSIONING_TRUE!$HAVE_VERSIONING_TRUE$ac_delim
30436 HAVE_VERSIONING_FALSE!$HAVE_VERSIONING_FALSE$ac_delim
30437 LIBOBJS!$LIBOBJS$ac_delim
30438 LTLIBOBJS!$LTLIBOBJS$ac_delim
30439 _ACEOF
30440
30441   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
30442     break
30443   elif $ac_last_try; then
30444     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30445 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30446    { (exit 1); exit 1; }; }
30447   else
30448     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30449   fi
30450 done
30451
30452 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30453 if test -n "$ac_eof"; then
30454   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30455   ac_eof=`expr $ac_eof + 1`
30456 fi
30457
30458 cat >>$CONFIG_STATUS <<_ACEOF
30459 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30460 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30461 _ACEOF
30462 sed '
30463 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30464 s/^/s,@/; s/!/@,|#_!!_#|/
30465 :n
30466 t n
30467 s/'"$ac_delim"'$/,g/; t
30468 s/$/\\/; p
30469 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30470 ' >>$CONFIG_STATUS <conf$$subs.sed
30471 rm -f conf$$subs.sed
30472 cat >>$CONFIG_STATUS <<_ACEOF
30473 :end
30474 s/|#_!!_#|//g
30475 CEOF$ac_eof
30476 _ACEOF
30477
30478
30479 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30480 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30481 # trailing colons and then remove the whole line if VPATH becomes empty
30482 # (actually we leave an empty line to preserve line numbers).
30483 if test "x$srcdir" = x.; then
30484   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30485 s/:*\$(srcdir):*/:/
30486 s/:*\${srcdir}:*/:/
30487 s/:*@srcdir@:*/:/
30488 s/^\([^=]*=[     ]*\):*/\1/
30489 s/:*$//
30490 s/^[^=]*=[       ]*$//
30491 }'
30492 fi
30493
30494 cat >>$CONFIG_STATUS <<\_ACEOF
30495 fi # test -n "$CONFIG_FILES"
30496
30497
30498 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30499 do
30500   case $ac_tag in
30501   :[FHLC]) ac_mode=$ac_tag; continue;;
30502   esac
30503   case $ac_mode$ac_tag in
30504   :[FHL]*:*);;
30505   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30506 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30507    { (exit 1); exit 1; }; };;
30508   :[FH]-) ac_tag=-:-;;
30509   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30510   esac
30511   ac_save_IFS=$IFS
30512   IFS=:
30513   set x $ac_tag
30514   IFS=$ac_save_IFS
30515   shift
30516   ac_file=$1
30517   shift
30518
30519   case $ac_mode in
30520   :L) ac_source=$1;;
30521   :[FH])
30522     ac_file_inputs=
30523     for ac_f
30524     do
30525       case $ac_f in
30526       -) ac_f="$tmp/stdin";;
30527       *) # Look for the file first in the build tree, then in the source tree
30528          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30529          # because $ac_f cannot contain `:'.
30530          test -f "$ac_f" ||
30531            case $ac_f in
30532            [\\/$]*) false;;
30533            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30534            esac ||
30535            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30536 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30537    { (exit 1); exit 1; }; };;
30538       esac
30539       ac_file_inputs="$ac_file_inputs $ac_f"
30540     done
30541
30542     # Let's still pretend it is `configure' which instantiates (i.e., don't
30543     # use $as_me), people would be surprised to read:
30544     #    /* config.h.  Generated by config.status.  */
30545     configure_input="Generated from "`IFS=:
30546           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30547     if test x"$ac_file" != x-; then
30548       configure_input="$ac_file.  $configure_input"
30549       { echo "$as_me:$LINENO: creating $ac_file" >&5
30550 echo "$as_me: creating $ac_file" >&6;}
30551     fi
30552
30553     case $ac_tag in
30554     *:-:* | *:-) cat >"$tmp/stdin";;
30555     esac
30556     ;;
30557   esac
30558
30559   ac_dir=`$as_dirname -- "$ac_file" ||
30560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30561          X"$ac_file" : 'X\(//\)[^/]' \| \
30562          X"$ac_file" : 'X\(//\)$' \| \
30563          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30564 echo X"$ac_file" |
30565     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30566             s//\1/
30567             q
30568           }
30569           /^X\(\/\/\)[^/].*/{
30570             s//\1/
30571             q
30572           }
30573           /^X\(\/\/\)$/{
30574             s//\1/
30575             q
30576           }
30577           /^X\(\/\).*/{
30578             s//\1/
30579             q
30580           }
30581           s/.*/./; q'`
30582   { as_dir="$ac_dir"
30583   case $as_dir in #(
30584   -*) as_dir=./$as_dir;;
30585   esac
30586   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30587     as_dirs=
30588     while :; do
30589       case $as_dir in #(
30590       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30591       *) as_qdir=$as_dir;;
30592       esac
30593       as_dirs="'$as_qdir' $as_dirs"
30594       as_dir=`$as_dirname -- "$as_dir" ||
30595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30596          X"$as_dir" : 'X\(//\)[^/]' \| \
30597          X"$as_dir" : 'X\(//\)$' \| \
30598          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30599 echo X"$as_dir" |
30600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30601             s//\1/
30602             q
30603           }
30604           /^X\(\/\/\)[^/].*/{
30605             s//\1/
30606             q
30607           }
30608           /^X\(\/\/\)$/{
30609             s//\1/
30610             q
30611           }
30612           /^X\(\/\).*/{
30613             s//\1/
30614             q
30615           }
30616           s/.*/./; q'`
30617       test -d "$as_dir" && break
30618     done
30619     test -z "$as_dirs" || eval "mkdir $as_dirs"
30620   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30621 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30622    { (exit 1); exit 1; }; }; }
30623   ac_builddir=.
30624
30625 case "$ac_dir" in
30626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30627 *)
30628   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30629   # A ".." for each directory in $ac_dir_suffix.
30630   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30631   case $ac_top_builddir_sub in
30632   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30633   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30634   esac ;;
30635 esac
30636 ac_abs_top_builddir=$ac_pwd
30637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30638 # for backward compatibility:
30639 ac_top_builddir=$ac_top_build_prefix
30640
30641 case $srcdir in
30642   .)  # We are building in place.
30643     ac_srcdir=.
30644     ac_top_srcdir=$ac_top_builddir_sub
30645     ac_abs_top_srcdir=$ac_pwd ;;
30646   [\\/]* | ?:[\\/]* )  # Absolute name.
30647     ac_srcdir=$srcdir$ac_dir_suffix;
30648     ac_top_srcdir=$srcdir
30649     ac_abs_top_srcdir=$srcdir ;;
30650   *) # Relative name.
30651     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30652     ac_top_srcdir=$ac_top_build_prefix$srcdir
30653     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30654 esac
30655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30656
30657
30658   case $ac_mode in
30659   :F)
30660   #
30661   # CONFIG_FILE
30662   #
30663
30664   case $INSTALL in
30665   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30666   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30667   esac
30668   ac_MKDIR_P=$MKDIR_P
30669   case $MKDIR_P in
30670   [\\/$]* | ?:[\\/]* ) ;;
30671   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30672   esac
30673 _ACEOF
30674
30675 cat >>$CONFIG_STATUS <<\_ACEOF
30676 # If the template does not know about datarootdir, expand it.
30677 # FIXME: This hack should be removed a few years after 2.60.
30678 ac_datarootdir_hack=; ac_datarootdir_seen=
30679
30680 case `sed -n '/datarootdir/ {
30681   p
30682   q
30683 }
30684 /@datadir@/p
30685 /@docdir@/p
30686 /@infodir@/p
30687 /@localedir@/p
30688 /@mandir@/p
30689 ' $ac_file_inputs` in
30690 *datarootdir*) ac_datarootdir_seen=yes;;
30691 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30692   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30693 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30694 _ACEOF
30695 cat >>$CONFIG_STATUS <<_ACEOF
30696   ac_datarootdir_hack='
30697   s&@datadir@&$datadir&g
30698   s&@docdir@&$docdir&g
30699   s&@infodir@&$infodir&g
30700   s&@localedir@&$localedir&g
30701   s&@mandir@&$mandir&g
30702     s&\\\${datarootdir}&$datarootdir&g' ;;
30703 esac
30704 _ACEOF
30705
30706 # Neutralize VPATH when `$srcdir' = `.'.
30707 # Shell code in configure.ac might set extrasub.
30708 # FIXME: do we really want to maintain this feature?
30709 cat >>$CONFIG_STATUS <<_ACEOF
30710   sed "$ac_vpsub
30711 $extrasub
30712 _ACEOF
30713 cat >>$CONFIG_STATUS <<\_ACEOF
30714 :t
30715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30716 s&@configure_input@&$configure_input&;t t
30717 s&@top_builddir@&$ac_top_builddir_sub&;t t
30718 s&@srcdir@&$ac_srcdir&;t t
30719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30720 s&@top_srcdir@&$ac_top_srcdir&;t t
30721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30722 s&@builddir@&$ac_builddir&;t t
30723 s&@abs_builddir@&$ac_abs_builddir&;t t
30724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30725 s&@INSTALL@&$ac_INSTALL&;t t
30726 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30727 $ac_datarootdir_hack
30728 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30729
30730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30731   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30732   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30733   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30734 which seems to be undefined.  Please make sure it is defined." >&5
30735 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30736 which seems to be undefined.  Please make sure it is defined." >&2;}
30737
30738   rm -f "$tmp/stdin"
30739   case $ac_file in
30740   -) cat "$tmp/out"; rm -f "$tmp/out";;
30741   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30742   esac
30743  ;;
30744   :H)
30745   #
30746   # CONFIG_HEADER
30747   #
30748 _ACEOF
30749
30750 # Transform confdefs.h into a sed script `conftest.defines', that
30751 # substitutes the proper values into config.h.in to produce config.h.
30752 rm -f conftest.defines conftest.tail
30753 # First, append a space to every undef/define line, to ease matching.
30754 echo 's/$/ /' >conftest.defines
30755 # Then, protect against being on the right side of a sed subst, or in
30756 # an unquoted here document, in config.status.  If some macros were
30757 # called several times there might be several #defines for the same
30758 # symbol, which is useless.  But do not sort them, since the last
30759 # AC_DEFINE must be honored.
30760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30761 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30762 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30763 # PARAMS is the parameter list in the macro definition--in most cases, it's
30764 # just an empty string.
30765 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30766 ac_dB='\\)[      (].*,\\1define\\2'
30767 ac_dC=' '
30768 ac_dD=' ,'
30769
30770 uniq confdefs.h |
30771   sed -n '
30772         t rset
30773         :rset
30774         s/^[     ]*#[    ]*define[       ][      ]*//
30775         t ok
30776         d
30777         :ok
30778         s/[\\&,]/\\&/g
30779         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30780         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30781   ' >>conftest.defines
30782
30783 # Remove the space that was appended to ease matching.
30784 # Then replace #undef with comments.  This is necessary, for
30785 # example, in the case of _POSIX_SOURCE, which is predefined and required
30786 # on some systems where configure will not decide to define it.
30787 # (The regexp can be short, since the line contains either #define or #undef.)
30788 echo 's/ $//
30789 s,^[     #]*u.*,/* & */,' >>conftest.defines
30790
30791 # Break up conftest.defines:
30792 ac_max_sed_lines=50
30793
30794 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30795 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30796 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30797 # et cetera.
30798 ac_in='$ac_file_inputs'
30799 ac_out='"$tmp/out1"'
30800 ac_nxt='"$tmp/out2"'
30801
30802 while :
30803 do
30804   # Write a here document:
30805     cat >>$CONFIG_STATUS <<_ACEOF
30806     # First, check the format of the line:
30807     cat >"\$tmp/defines.sed" <<\\CEOF
30808 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30809 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30810 b
30811 :def
30812 _ACEOF
30813   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30814   echo 'CEOF
30815     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30816   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30817   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30818   grep . conftest.tail >/dev/null || break
30819   rm -f conftest.defines
30820   mv conftest.tail conftest.defines
30821 done
30822 rm -f conftest.defines conftest.tail
30823
30824 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30825 cat >>$CONFIG_STATUS <<\_ACEOF
30826   if test x"$ac_file" != x-; then
30827     echo "/* $configure_input  */" >"$tmp/config.h"
30828     cat "$ac_result" >>"$tmp/config.h"
30829     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30830       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30831 echo "$as_me: $ac_file is unchanged" >&6;}
30832     else
30833       rm -f $ac_file
30834       mv "$tmp/config.h" $ac_file
30835     fi
30836   else
30837     echo "/* $configure_input  */"
30838     cat "$ac_result"
30839   fi
30840   rm -f "$tmp/out12"
30841 # Compute $ac_file's index in $config_headers.
30842 _am_arg=$ac_file
30843 _am_stamp_count=1
30844 for _am_header in $config_headers :; do
30845   case $_am_header in
30846     $_am_arg | $_am_arg:* )
30847       break ;;
30848     * )
30849       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30850   esac
30851 done
30852 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30853 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30854          X"$_am_arg" : 'X\(//\)[^/]' \| \
30855          X"$_am_arg" : 'X\(//\)$' \| \
30856          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30857 echo X"$_am_arg" |
30858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30859             s//\1/
30860             q
30861           }
30862           /^X\(\/\/\)[^/].*/{
30863             s//\1/
30864             q
30865           }
30866           /^X\(\/\/\)$/{
30867             s//\1/
30868             q
30869           }
30870           /^X\(\/\).*/{
30871             s//\1/
30872             q
30873           }
30874           s/.*/./; q'`/stamp-h$_am_stamp_count
30875  ;;
30876
30877   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30878 echo "$as_me: executing $ac_file commands" >&6;}
30879  ;;
30880   esac
30881
30882
30883   case $ac_file$ac_mode in
30884     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30885   # Strip MF so we end up with the name of the file.
30886   mf=`echo "$mf" | sed -e 's/:.*$//'`
30887   # Check whether this is an Automake generated Makefile or not.
30888   # We used to match only the files named `Makefile.in', but
30889   # some people rename them; so instead we look at the file content.
30890   # Grep'ing the first line is not enough: some people post-process
30891   # each Makefile.in and add a new line on top of each file to say so.
30892   # Grep'ing the whole file is not good either: AIX grep has a line
30893   # limit of 2048, but all sed's we know have understand at least 4000.
30894   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30895     dirpart=`$as_dirname -- "$mf" ||
30896 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30897          X"$mf" : 'X\(//\)[^/]' \| \
30898          X"$mf" : 'X\(//\)$' \| \
30899          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30900 echo X"$mf" |
30901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30902             s//\1/
30903             q
30904           }
30905           /^X\(\/\/\)[^/].*/{
30906             s//\1/
30907             q
30908           }
30909           /^X\(\/\/\)$/{
30910             s//\1/
30911             q
30912           }
30913           /^X\(\/\).*/{
30914             s//\1/
30915             q
30916           }
30917           s/.*/./; q'`
30918   else
30919     continue
30920   fi
30921   # Extract the definition of DEPDIR, am__include, and am__quote
30922   # from the Makefile without running `make'.
30923   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30924   test -z "$DEPDIR" && continue
30925   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30926   test -z "am__include" && continue
30927   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30928   # When using ansi2knr, U may be empty or an underscore; expand it
30929   U=`sed -n 's/^U = //p' < "$mf"`
30930   # Find all dependency output files, they are included files with
30931   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30932   # simplest approach to changing $(DEPDIR) to its actual value in the
30933   # expansion.
30934   for file in `sed -n "
30935     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30936        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30937     # Make sure the directory exists.
30938     test -f "$dirpart/$file" && continue
30939     fdir=`$as_dirname -- "$file" ||
30940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30941          X"$file" : 'X\(//\)[^/]' \| \
30942          X"$file" : 'X\(//\)$' \| \
30943          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30944 echo X"$file" |
30945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30946             s//\1/
30947             q
30948           }
30949           /^X\(\/\/\)[^/].*/{
30950             s//\1/
30951             q
30952           }
30953           /^X\(\/\/\)$/{
30954             s//\1/
30955             q
30956           }
30957           /^X\(\/\).*/{
30958             s//\1/
30959             q
30960           }
30961           s/.*/./; q'`
30962     { as_dir=$dirpart/$fdir
30963   case $as_dir in #(
30964   -*) as_dir=./$as_dir;;
30965   esac
30966   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30967     as_dirs=
30968     while :; do
30969       case $as_dir in #(
30970       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30971       *) as_qdir=$as_dir;;
30972       esac
30973       as_dirs="'$as_qdir' $as_dirs"
30974       as_dir=`$as_dirname -- "$as_dir" ||
30975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30976          X"$as_dir" : 'X\(//\)[^/]' \| \
30977          X"$as_dir" : 'X\(//\)$' \| \
30978          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30979 echo X"$as_dir" |
30980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30981             s//\1/
30982             q
30983           }
30984           /^X\(\/\/\)[^/].*/{
30985             s//\1/
30986             q
30987           }
30988           /^X\(\/\/\)$/{
30989             s//\1/
30990             q
30991           }
30992           /^X\(\/\).*/{
30993             s//\1/
30994             q
30995           }
30996           s/.*/./; q'`
30997       test -d "$as_dir" && break
30998     done
30999     test -z "$as_dirs" || eval "mkdir $as_dirs"
31000   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31001 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31002    { (exit 1); exit 1; }; }; }
31003     # echo "creating $dirpart/$file"
31004     echo '# dummy' > "$dirpart/$file"
31005   done
31006 done
31007  ;;
31008
31009   esac
31010 done # for ac_tag
31011
31012
31013 { (exit 0); exit 0; }
31014 _ACEOF
31015 chmod +x $CONFIG_STATUS
31016 ac_clean_files=$ac_clean_files_save
31017
31018
31019 # configure is writing to config.log, and then calls config.status.
31020 # config.status does its own redirection, appending to config.log.
31021 # Unfortunately, on DOS this fails, as config.log is still kept open
31022 # by configure, so config.status won't be able to write to it; its
31023 # output is simply discarded.  So we exec the FD to /dev/null,
31024 # effectively closing config.log, so it can be properly (re)opened and
31025 # appended to by config.status.  When coming back to configure, we
31026 # need to make the FD available again.
31027 if test "$no_create" != yes; then
31028   ac_cs_success=:
31029   ac_config_status_args=
31030   test "$silent" = yes &&
31031     ac_config_status_args="$ac_config_status_args --quiet"
31032   exec 5>/dev/null
31033   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31034   exec 5>>config.log
31035   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31036   # would make configure fail if this is the last instruction.
31037   $ac_cs_success || { (exit 1); exit 1; }
31038 fi
31039
31040
31041 { echo "$as_me:$LINENO:
31042
31043 $PACKAGE_STRING
31044
31045 $FEATURES_TXT" >&5
31046 echo "$as_me:
31047
31048 $PACKAGE_STRING
31049
31050 $FEATURES_TXT" >&6;}