Tagging module util-vserver - util-vserver-0.30.215-6
[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.215.
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.215'
732 PACKAGE_STRING='util-vserver 0.30.215'
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 FILE
907 GZIP
908 BZIP2
909 CPIO
910 RESTORE
911 RSYNC
912 STRACE
913 FSCK
914 DOXYGEN
915 XSLTP
916 XSLTPROC
917 HAVE_XSLTP_TRUE
918 HAVE_XSLTP_FALSE
919 HAVE_XSLTPROC_TRUE
920 HAVE_XSLTPROC_FALSE
921 LIB_DEBUG_CPPFLAGS
922 ENSC_USE_EXPENSIVE_TESTS
923 initrddir
924 RELEASE_CPPFLAGS
925 CPP
926 DIET
927 DIETFLAGS
928 USE_DIETLIBC_TRUE
929 USE_DIETLIBC_FALSE
930 USE_DIETLIBC_COMPAT_TRUE
931 USE_DIETLIBC_COMPAT_FALSE
932 ENSC_USE_DIETLIBC_TRUE
933 ENSC_USE_DIETLIBC_FALSE
934 ENSC_USE_GLIBC_TRUE
935 ENSC_USE_GLIBC_FALSE
936 ECHO
937 AR
938 RANLIB
939 CXXCPP
940 F77
941 FFLAGS
942 ac_ct_F77
943 LIBTOOL
944 vserverdir
945 SVN2CL
946 HAVE_SVN2CL_TRUE
947 HAVE_SVN2CL_FALSE
948 ENSC_ENABLE_INTERNAL_HEADERS_TRUE
949 ENSC_ENABLE_INTERNAL_HEADERS_FALSE
950 ENSC_HAVE_BEECRYPT_TRUE
951 ENSC_HAVE_BEECRYPT_FALSE
952 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE
953 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE
954 NSS_CFLAGS
955 NSS_LIBS
956 ENSC_HAVE_CRYPTO_TRUE
957 ENSC_HAVE_CRYPTO_FALSE
958 ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE
959 ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE
960 ENSC_CRYPTO_CFLAGS
961 ENSC_CRYPTO_LIB
962 HAVE_GENTOO_INIT_TRUE
963 HAVE_GENTOO_INIT_FALSE
964 HAVE_SYSV_INIT_TRUE
965 HAVE_SYSV_INIT_FALSE
966 LIBOBJS
967 LTLIBOBJS'
968 ac_subst_files=''
969       ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CXX
973 CXXFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CCC
978 CC
979 CFLAGS
980 PKG_CONFIG
981 CPP
982 DIET
983 DIETFLAGS
984 CXXCPP
985 F77
986 FFLAGS
987 NSS_CFLAGS
988 NSS_LIBS'
989
990
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 # The variables have the same names as the options, with
995 # dashes changed to underlines.
996 cache_file=/dev/null
997 exec_prefix=NONE
998 no_create=
999 no_recursion=
1000 prefix=NONE
1001 program_prefix=NONE
1002 program_suffix=NONE
1003 program_transform_name=s,x,x,
1004 silent=
1005 site=
1006 srcdir=
1007 verbose=
1008 x_includes=NONE
1009 x_libraries=NONE
1010
1011 # Installation directory options.
1012 # These are left unexpanded so users can "make install exec_prefix=/foo"
1013 # and all the variables that are supposed to be based on exec_prefix
1014 # by default will actually change.
1015 # Use braces instead of parens because sh, perl, etc. also accept them.
1016 # (The list follows the same order as the GNU Coding Standards.)
1017 bindir='${exec_prefix}/bin'
1018 sbindir='${exec_prefix}/sbin'
1019 libexecdir='${exec_prefix}/libexec'
1020 datarootdir='${prefix}/share'
1021 datadir='${datarootdir}'
1022 sysconfdir='${prefix}/etc'
1023 sharedstatedir='${prefix}/com'
1024 localstatedir='${prefix}/var'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1028 infodir='${datarootdir}/info'
1029 htmldir='${docdir}'
1030 dvidir='${docdir}'
1031 pdfdir='${docdir}'
1032 psdir='${docdir}'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1036
1037 ac_prev=
1038 ac_dashdash=
1039 for ac_option
1040 do
1041   # If the previous option needs an argument, assign it.
1042   if test -n "$ac_prev"; then
1043     eval $ac_prev=\$ac_option
1044     ac_prev=
1045     continue
1046   fi
1047
1048   case $ac_option in
1049   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050   *)    ac_optarg=yes ;;
1051   esac
1052
1053   # Accept the important Cygnus configure options, so we can diagnose typos.
1054
1055   case $ac_dashdash$ac_option in
1056   --)
1057     ac_dashdash=yes ;;
1058
1059   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1060     ac_prev=bindir ;;
1061   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1062     bindir=$ac_optarg ;;
1063
1064   -build | --build | --buil | --bui | --bu)
1065     ac_prev=build_alias ;;
1066   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1067     build_alias=$ac_optarg ;;
1068
1069   -cache-file | --cache-file | --cache-fil | --cache-fi \
1070   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1071     ac_prev=cache_file ;;
1072   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1073   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1074     cache_file=$ac_optarg ;;
1075
1076   --config-cache | -C)
1077     cache_file=config.cache ;;
1078
1079   -datadir | --datadir | --datadi | --datad)
1080     ac_prev=datadir ;;
1081   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1082     datadir=$ac_optarg ;;
1083
1084   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1085   | --dataroo | --dataro | --datar)
1086     ac_prev=datarootdir ;;
1087   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1088   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1089     datarootdir=$ac_optarg ;;
1090
1091   -disable-* | --disable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=no ;;
1099
1100   -docdir | --docdir | --docdi | --doc | --do)
1101     ac_prev=docdir ;;
1102   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103     docdir=$ac_optarg ;;
1104
1105   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106     ac_prev=dvidir ;;
1107   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108     dvidir=$ac_optarg ;;
1109
1110   -enable-* | --enable-*)
1111     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1117     eval enable_$ac_feature=\$ac_optarg ;;
1118
1119   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121   | --exec | --exe | --ex)
1122     ac_prev=exec_prefix ;;
1123   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125   | --exec=* | --exe=* | --ex=*)
1126     exec_prefix=$ac_optarg ;;
1127
1128   -gas | --gas | --ga | --g)
1129     # Obsolete; use --with-gas.
1130     with_gas=yes ;;
1131
1132   -help | --help | --hel | --he | -h)
1133     ac_init_help=long ;;
1134   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135     ac_init_help=recursive ;;
1136   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137     ac_init_help=short ;;
1138
1139   -host | --host | --hos | --ho)
1140     ac_prev=host_alias ;;
1141   -host=* | --host=* | --hos=* | --ho=*)
1142     host_alias=$ac_optarg ;;
1143
1144   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145     ac_prev=htmldir ;;
1146   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147   | --ht=*)
1148     htmldir=$ac_optarg ;;
1149
1150   -includedir | --includedir | --includedi | --included | --include \
1151   | --includ | --inclu | --incl | --inc)
1152     ac_prev=includedir ;;
1153   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154   | --includ=* | --inclu=* | --incl=* | --inc=*)
1155     includedir=$ac_optarg ;;
1156
1157   -infodir | --infodir | --infodi | --infod | --info | --inf)
1158     ac_prev=infodir ;;
1159   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160     infodir=$ac_optarg ;;
1161
1162   -libdir | --libdir | --libdi | --libd)
1163     ac_prev=libdir ;;
1164   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165     libdir=$ac_optarg ;;
1166
1167   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168   | --libexe | --libex | --libe)
1169     ac_prev=libexecdir ;;
1170   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171   | --libexe=* | --libex=* | --libe=*)
1172     libexecdir=$ac_optarg ;;
1173
1174   -localedir | --localedir | --localedi | --localed | --locale)
1175     ac_prev=localedir ;;
1176   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177     localedir=$ac_optarg ;;
1178
1179   -localstatedir | --localstatedir | --localstatedi | --localstated \
1180   | --localstate | --localstat | --localsta | --localst | --locals)
1181     ac_prev=localstatedir ;;
1182   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184     localstatedir=$ac_optarg ;;
1185
1186   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187     ac_prev=mandir ;;
1188   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189     mandir=$ac_optarg ;;
1190
1191   -nfp | --nfp | --nf)
1192     # Obsolete; use --without-fp.
1193     with_fp=no ;;
1194
1195   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196   | --no-cr | --no-c | -n)
1197     no_create=yes ;;
1198
1199   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201     no_recursion=yes ;;
1202
1203   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205   | --oldin | --oldi | --old | --ol | --o)
1206     ac_prev=oldincludedir ;;
1207   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210     oldincludedir=$ac_optarg ;;
1211
1212   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213     ac_prev=prefix ;;
1214   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215     prefix=$ac_optarg ;;
1216
1217   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218   | --program-pre | --program-pr | --program-p)
1219     ac_prev=program_prefix ;;
1220   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222     program_prefix=$ac_optarg ;;
1223
1224   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225   | --program-suf | --program-su | --program-s)
1226     ac_prev=program_suffix ;;
1227   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229     program_suffix=$ac_optarg ;;
1230
1231   -program-transform-name | --program-transform-name \
1232   | --program-transform-nam | --program-transform-na \
1233   | --program-transform-n | --program-transform- \
1234   | --program-transform | --program-transfor \
1235   | --program-transfo | --program-transf \
1236   | --program-trans | --program-tran \
1237   | --progr-tra | --program-tr | --program-t)
1238     ac_prev=program_transform_name ;;
1239   -program-transform-name=* | --program-transform-name=* \
1240   | --program-transform-nam=* | --program-transform-na=* \
1241   | --program-transform-n=* | --program-transform-=* \
1242   | --program-transform=* | --program-transfor=* \
1243   | --program-transfo=* | --program-transf=* \
1244   | --program-trans=* | --program-tran=* \
1245   | --progr-tra=* | --program-tr=* | --program-t=*)
1246     program_transform_name=$ac_optarg ;;
1247
1248   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249     ac_prev=pdfdir ;;
1250   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251     pdfdir=$ac_optarg ;;
1252
1253   -psdir | --psdir | --psdi | --psd | --ps)
1254     ac_prev=psdir ;;
1255   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256     psdir=$ac_optarg ;;
1257
1258   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259   | -silent | --silent | --silen | --sile | --sil)
1260     silent=yes ;;
1261
1262   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263     ac_prev=sbindir ;;
1264   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265   | --sbi=* | --sb=*)
1266     sbindir=$ac_optarg ;;
1267
1268   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270   | --sharedst | --shareds | --shared | --share | --shar \
1271   | --sha | --sh)
1272     ac_prev=sharedstatedir ;;
1273   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276   | --sha=* | --sh=*)
1277     sharedstatedir=$ac_optarg ;;
1278
1279   -site | --site | --sit)
1280     ac_prev=site ;;
1281   -site=* | --site=* | --sit=*)
1282     site=$ac_optarg ;;
1283
1284   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285     ac_prev=srcdir ;;
1286   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287     srcdir=$ac_optarg ;;
1288
1289   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290   | --syscon | --sysco | --sysc | --sys | --sy)
1291     ac_prev=sysconfdir ;;
1292   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294     sysconfdir=$ac_optarg ;;
1295
1296   -target | --target | --targe | --targ | --tar | --ta | --t)
1297     ac_prev=target_alias ;;
1298   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299     target_alias=$ac_optarg ;;
1300
1301   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302     verbose=yes ;;
1303
1304   -version | --version | --versio | --versi | --vers | -V)
1305     ac_init_version=: ;;
1306
1307   -with-* | --with-*)
1308     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309     # Reject names that are not valid shell variable names.
1310     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       { echo "$as_me: error: invalid package name: $ac_package" >&2
1312    { (exit 1); exit 1; }; }
1313     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1314     eval with_$ac_package=\$ac_optarg ;;
1315
1316   -without-* | --without-*)
1317     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320       { echo "$as_me: error: invalid package name: $ac_package" >&2
1321    { (exit 1); exit 1; }; }
1322     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1323     eval with_$ac_package=no ;;
1324
1325   --x)
1326     # Obsolete; use --with-x.
1327     with_x=yes ;;
1328
1329   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330   | --x-incl | --x-inc | --x-in | --x-i)
1331     ac_prev=x_includes ;;
1332   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334     x_includes=$ac_optarg ;;
1335
1336   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338     ac_prev=x_libraries ;;
1339   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341     x_libraries=$ac_optarg ;;
1342
1343   -*) { echo "$as_me: error: unrecognized option: $ac_option
1344 Try \`$0 --help' for more information." >&2
1345    { (exit 1); exit 1; }; }
1346     ;;
1347
1348   *=*)
1349     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350     # Reject names that are not valid shell variable names.
1351     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1352       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1353    { (exit 1); exit 1; }; }
1354     eval $ac_envvar=\$ac_optarg
1355     export $ac_envvar ;;
1356
1357   *)
1358     # FIXME: should be removed in autoconf 3.0.
1359     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1363     ;;
1364
1365   esac
1366 done
1367
1368 if test -n "$ac_prev"; then
1369   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370   { echo "$as_me: error: missing argument to $ac_option" >&2
1371    { (exit 1); exit 1; }; }
1372 fi
1373
1374 # Be sure to have absolute directory names.
1375 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376                 datadir sysconfdir sharedstatedir localstatedir includedir \
1377                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378                 libdir localedir mandir
1379 do
1380   eval ac_val=\$$ac_var
1381   case $ac_val in
1382     [\\/$]* | ?:[\\/]* )  continue;;
1383     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384   esac
1385   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1386    { (exit 1); exit 1; }; }
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398   if test "x$build_alias" = x; then
1399     cross_compiling=maybe
1400     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401     If a cross compiler is detected then cross compile mode will be used." >&2
1402   elif test "x$build_alias" != "x$host_alias"; then
1403     cross_compiling=yes
1404   fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416   { echo "$as_me: error: Working directory cannot be determined" >&2
1417    { (exit 1); exit 1; }; }
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419   { echo "$as_me: error: pwd does not report name of working directory" >&2
1420    { (exit 1); exit 1; }; }
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425   ac_srcdir_defaulted=yes
1426   # Try the directory containing this script, then the parent directory.
1427   ac_confdir=`$as_dirname -- "$0" ||
1428 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429          X"$0" : 'X\(//\)[^/]' \| \
1430          X"$0" : 'X\(//\)$' \| \
1431          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1432 echo X"$0" |
1433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)[^/].*/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\/\)$/{
1442             s//\1/
1443             q
1444           }
1445           /^X\(\/\).*/{
1446             s//\1/
1447             q
1448           }
1449           s/.*/./; q'`
1450   srcdir=$ac_confdir
1451   if test ! -r "$srcdir/$ac_unique_file"; then
1452     srcdir=..
1453   fi
1454 else
1455   ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1465    { (exit 1); exit 1; }; }
1466         pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469   srcdir=.
1470 fi
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479   eval ac_env_${ac_var}_value=\$${ac_var}
1480   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1483
1484 #
1485 # Report the --help message.
1486 #
1487 if test "$ac_init_help" = "long"; then
1488   # Omit some internal or obsolete options to make the list less imposing.
1489   # This message is too long to be a string in the A/UX 3.1 sh.
1490   cat <<_ACEOF
1491 \`configure' configures util-vserver 0.30.215 to adapt to many kinds of systems.
1492
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE.  See below for descriptions of some of the useful variables.
1497
1498 Defaults for the options are specified in brackets.
1499
1500 Configuration:
1501   -h, --help              display this help and exit
1502       --help=short        display options specific to this package
1503       --help=recursive    display the short help of all the included packages
1504   -V, --version           display version information and exit
1505   -q, --quiet, --silent   do not print \`checking...' messages
1506       --cache-file=FILE   cache test results in FILE [disabled]
1507   -C, --config-cache      alias for \`--cache-file=config.cache'
1508   -n, --no-create         do not create output files
1509       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1510
1511 Installation directories:
1512   --prefix=PREFIX         install architecture-independent files in PREFIX
1513                           [$ac_default_prefix]
1514   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1515                           [PREFIX]
1516
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1521
1522 For better control, use the options below.
1523
1524 Fine tuning of the installation directories:
1525   --bindir=DIR           user executables [EPREFIX/bin]
1526   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1527   --libexecdir=DIR       program executables [EPREFIX/libexec]
1528   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1529   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1530   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1531   --libdir=DIR           object code libraries [EPREFIX/lib]
1532   --includedir=DIR       C header files [PREFIX/include]
1533   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1534   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1535   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1536   --infodir=DIR          info documentation [DATAROOTDIR/info]
1537   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1538   --mandir=DIR           man documentation [DATAROOTDIR/man]
1539   --docdir=DIR           documentation root [DATAROOTDIR/doc/util-vserver]
1540   --htmldir=DIR          html documentation [DOCDIR]
1541   --dvidir=DIR           dvi documentation [DOCDIR]
1542   --pdfdir=DIR           pdf documentation [DOCDIR]
1543   --psdir=DIR            ps documentation [DOCDIR]
1544 _ACEOF
1545
1546   cat <<\_ACEOF
1547
1548 Program names:
1549   --program-prefix=PREFIX            prepend PREFIX to installed program names
1550   --program-suffix=SUFFIX            append SUFFIX to installed program names
1551   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1552
1553 System types:
1554   --build=BUILD     configure for building on BUILD [guessed]
1555   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1557 fi
1558
1559 if test -n "$ac_init_help"; then
1560   case $ac_init_help in
1561      short | recursive ) echo "Configuration of util-vserver 0.30.215:";;
1562    esac
1563   cat <<\_ACEOF
1564
1565 Optional Features:
1566   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568   --enable-maintainer-mode  enable make rules and dependencies not useful
1569                           (and sometimes confusing) to the casual installer
1570   --disable-dependency-tracking  speeds up one-time build
1571   --enable-dependency-tracking   do not reject slow dependency extractors
1572   --disable-extra-optimizations
1573                           disable certain extra optimizations (default: no)
1574   --enable-lib-debug      enable additional debug code in library (default:
1575                           no)
1576   --enable-expensive-tests
1577                           disable tests which might be expensive on some
1578                           systems (default: no)
1579   --enable-release        enable release mode (default: no)
1580   --disable-alternative-syscalls
1581                           do not use the alternative _syscallX macros provided
1582                           by Herbert Poetzl (default: use them)
1583   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1584                           --enable-dietlibc) (default: autodetect dietlibc)
1585   --enable-shared[=PKGS]  build shared libraries [default=yes]
1586   --enable-static[=PKGS]  build static libraries [default=yes]
1587   --enable-fast-install[=PKGS]
1588                           optimize for fast installation [default=yes]
1589   --disable-libtool-lock  avoid locking (might break parallel builds)
1590   --disable-internal-headers
1591                           use vserver specific headers from the kernel instead
1592                           of the shipped versions (default: no)
1593   --enable-apis=APIS      enable support for the given apis; possible values
1594                           are:
1595                           legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2
1596                           ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)
1597
1598 Optional Packages:
1599   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1600   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1601   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1602                           $sysconfdir/init.d)
1603   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1604                           values are 'fast', 'traditional' and 'auto'
1605                           (default: auto)
1606   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1607   --with-pic              try to use only PIC/non-PIC objects [default=use
1608                           both]
1609   --with-tags[=TAGS]      include additional configurations [automatic]
1610   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1611   --with-crypto-api=API   select crypto api to be used; possible values are
1612                           `none', `nss', `beecrypt', `auto' (default:auto)
1613   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1614                           and 'sysv' (default: guess)
1615
1616 Some influential environment variables:
1617   CXX         C++ compiler command
1618   CXXFLAGS    C++ compiler flags
1619   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1620               nonstandard directory <lib dir>
1621   LIBS        libraries to pass to the linker, e.g. -l<library>
1622   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623               you have headers in a nonstandard directory <include dir>
1624   CC          C compiler command
1625   CFLAGS      C compiler flags
1626   PKG_CONFIG  path to pkg-config utility
1627   CPP         C preprocessor
1628   DIET        The 'diet' wrapper (default: diet)
1629   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1630   CXXCPP      C++ preprocessor
1631   F77         Fortran 77 compiler command
1632   FFLAGS      Fortran 77 compiler flags
1633   NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1634   NSS_LIBS    linker flags for NSS, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <vserver@list.linux-vserver.org>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645   # If there are subdirs, report their specific --help.
1646   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647     test -d "$ac_dir" || continue
1648     ac_builddir=.
1649
1650 case "$ac_dir" in
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 *)
1653   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1654   # A ".." for each directory in $ac_dir_suffix.
1655   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1656   case $ac_top_builddir_sub in
1657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659   esac ;;
1660 esac
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1665
1666 case $srcdir in
1667   .)  # We are building in place.
1668     ac_srcdir=.
1669     ac_top_srcdir=$ac_top_builddir_sub
1670     ac_abs_top_srcdir=$ac_pwd ;;
1671   [\\/]* | ?:[\\/]* )  # Absolute name.
1672     ac_srcdir=$srcdir$ac_dir_suffix;
1673     ac_top_srcdir=$srcdir
1674     ac_abs_top_srcdir=$srcdir ;;
1675   *) # Relative name.
1676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677     ac_top_srcdir=$ac_top_build_prefix$srcdir
1678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 esac
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681
1682     cd "$ac_dir" || { ac_status=$?; continue; }
1683     # Check for guested configure.
1684     if test -f "$ac_srcdir/configure.gnu"; then
1685       echo &&
1686       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687     elif test -f "$ac_srcdir/configure"; then
1688       echo &&
1689       $SHELL "$ac_srcdir/configure" --help=recursive
1690     else
1691       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692     fi || ac_status=$?
1693     cd "$ac_pwd" || { ac_status=$?; break; }
1694   done
1695 fi
1696
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1699   cat <<\_ACEOF
1700 util-vserver configure 0.30.215
1701 generated by GNU Autoconf 2.61
1702
1703 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1704 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1705 This configure script is free software; the Free Software Foundation
1706 gives unlimited permission to copy, distribute and modify it.
1707 _ACEOF
1708   exit
1709 fi
1710 cat >config.log <<_ACEOF
1711 This file contains any messages produced by compilers while
1712 running configure, to aid debugging if configure makes a mistake.
1713
1714 It was created by util-vserver $as_me 0.30.215, which was
1715 generated by GNU Autoconf 2.61.  Invocation command line was
1716
1717   $ $0 $@
1718
1719 _ACEOF
1720 exec 5>>config.log
1721 {
1722 cat <<_ASUNAME
1723 ## --------- ##
1724 ## Platform. ##
1725 ## --------- ##
1726
1727 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1728 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1729 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1730 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1731 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1732
1733 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1734 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1735
1736 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1737 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1738 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1739 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1740 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1741 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1742 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1743
1744 _ASUNAME
1745
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749   IFS=$as_save_IFS
1750   test -z "$as_dir" && as_dir=.
1751   echo "PATH: $as_dir"
1752 done
1753 IFS=$as_save_IFS
1754
1755 } >&5
1756
1757 cat >&5 <<_ACEOF
1758
1759
1760 ## ----------- ##
1761 ## Core tests. ##
1762 ## ----------- ##
1763
1764 _ACEOF
1765
1766
1767 # Keep a trace of the command line.
1768 # Strip out --no-create and --no-recursion so they do not pile up.
1769 # Strip out --silent because we don't want to record it for future runs.
1770 # Also quote any args containing shell meta-characters.
1771 # Make two passes to allow for proper duplicate-argument suppression.
1772 ac_configure_args=
1773 ac_configure_args0=
1774 ac_configure_args1=
1775 ac_must_keep_next=false
1776 for ac_pass in 1 2
1777 do
1778   for ac_arg
1779   do
1780     case $ac_arg in
1781     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1782     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1783     | -silent | --silent | --silen | --sile | --sil)
1784       continue ;;
1785     *\'*)
1786       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1787     esac
1788     case $ac_pass in
1789     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1790     2)
1791       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1792       if test $ac_must_keep_next = true; then
1793         ac_must_keep_next=false # Got value, back to normal.
1794       else
1795         case $ac_arg in
1796           *=* | --config-cache | -C | -disable-* | --disable-* \
1797           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1798           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1799           | -with-* | --with-* | -without-* | --without-* | --x)
1800             case "$ac_configure_args0 " in
1801               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1802             esac
1803             ;;
1804           -* ) ac_must_keep_next=true ;;
1805         esac
1806       fi
1807       ac_configure_args="$ac_configure_args '$ac_arg'"
1808       ;;
1809     esac
1810   done
1811 done
1812 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1813 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1814
1815 # When interrupted or exit'd, cleanup temporary files, and complete
1816 # config.log.  We remove comments because anyway the quotes in there
1817 # would cause problems or look ugly.
1818 # WARNING: Use '\'' to represent an apostrophe within the trap.
1819 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1820 trap 'exit_status=$?
1821   # Save into config.log some information that might help in debugging.
1822   {
1823     echo
1824
1825     cat <<\_ASBOX
1826 ## ---------------- ##
1827 ## Cache variables. ##
1828 ## ---------------- ##
1829 _ASBOX
1830     echo
1831     # The following way of writing the cache mishandles newlines in values,
1832 (
1833   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1834     eval ac_val=\$$ac_var
1835     case $ac_val in #(
1836     *${as_nl}*)
1837       case $ac_var in #(
1838       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1839 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1840       esac
1841       case $ac_var in #(
1842       _ | IFS | as_nl) ;; #(
1843       *) $as_unset $ac_var ;;
1844       esac ;;
1845     esac
1846   done
1847   (set) 2>&1 |
1848     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1849     *${as_nl}ac_space=\ *)
1850       sed -n \
1851         "s/'\''/'\''\\\\'\'''\''/g;
1852           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1853       ;; #(
1854     *)
1855       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856       ;;
1857     esac |
1858     sort
1859 )
1860     echo
1861
1862     cat <<\_ASBOX
1863 ## ----------------- ##
1864 ## Output variables. ##
1865 ## ----------------- ##
1866 _ASBOX
1867     echo
1868     for ac_var in $ac_subst_vars
1869     do
1870       eval ac_val=\$$ac_var
1871       case $ac_val in
1872       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1873       esac
1874       echo "$ac_var='\''$ac_val'\''"
1875     done | sort
1876     echo
1877
1878     if test -n "$ac_subst_files"; then
1879       cat <<\_ASBOX
1880 ## ------------------- ##
1881 ## File substitutions. ##
1882 ## ------------------- ##
1883 _ASBOX
1884       echo
1885       for ac_var in $ac_subst_files
1886       do
1887         eval ac_val=\$$ac_var
1888         case $ac_val in
1889         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890         esac
1891         echo "$ac_var='\''$ac_val'\''"
1892       done | sort
1893       echo
1894     fi
1895
1896     if test -s confdefs.h; then
1897       cat <<\_ASBOX
1898 ## ----------- ##
1899 ## confdefs.h. ##
1900 ## ----------- ##
1901 _ASBOX
1902       echo
1903       cat confdefs.h
1904       echo
1905     fi
1906     test "$ac_signal" != 0 &&
1907       echo "$as_me: caught signal $ac_signal"
1908     echo "$as_me: exit $exit_status"
1909   } >&5
1910   rm -f core *.core core.conftest.* &&
1911     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1912     exit $exit_status
1913 ' 0
1914 for ac_signal in 1 2 13 15; do
1915   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1916 done
1917 ac_signal=0
1918
1919 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1920 rm -f -r conftest* confdefs.h
1921
1922 # Predefined preprocessor variables.
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_NAME "$PACKAGE_NAME"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_STRING "$PACKAGE_STRING"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1946 _ACEOF
1947
1948
1949 # Let the site file select an alternate cache file if it wants to.
1950 # Prefer explicitly selected file to automatically selected ones.
1951 if test -n "$CONFIG_SITE"; then
1952   set x "$CONFIG_SITE"
1953 elif test "x$prefix" != xNONE; then
1954   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1955 else
1956   set x "$ac_default_prefix/share/config.site" \
1957         "$ac_default_prefix/etc/config.site"
1958 fi
1959 shift
1960 for ac_site_file
1961 do
1962   if test -r "$ac_site_file"; then
1963     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1964 echo "$as_me: loading site script $ac_site_file" >&6;}
1965     sed 's/^/| /' "$ac_site_file" >&5
1966     . "$ac_site_file"
1967   fi
1968 done
1969
1970 if test -r "$cache_file"; then
1971   # Some versions of bash will fail to source /dev/null (special
1972   # files actually), so we avoid doing that.
1973   if test -f "$cache_file"; then
1974     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1975 echo "$as_me: loading cache $cache_file" >&6;}
1976     case $cache_file in
1977       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1978       *)                      . "./$cache_file";;
1979     esac
1980   fi
1981 else
1982   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1983 echo "$as_me: creating cache $cache_file" >&6;}
1984   >$cache_file
1985 fi
1986
1987 # Check that the precious variables saved in the cache have kept the same
1988 # value.
1989 ac_cache_corrupted=false
1990 for ac_var in $ac_precious_vars; do
1991   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1992   eval ac_new_set=\$ac_env_${ac_var}_set
1993   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1994   eval ac_new_val=\$ac_env_${ac_var}_value
1995   case $ac_old_set,$ac_new_set in
1996     set,)
1997       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1998 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1999       ac_cache_corrupted=: ;;
2000     ,set)
2001       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2002 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2003       ac_cache_corrupted=: ;;
2004     ,);;
2005     *)
2006       if test "x$ac_old_val" != "x$ac_new_val"; then
2007         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2008 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2009         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2010 echo "$as_me:   former value:  $ac_old_val" >&2;}
2011         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2012 echo "$as_me:   current value: $ac_new_val" >&2;}
2013         ac_cache_corrupted=:
2014       fi;;
2015   esac
2016   # Pass precious variables to config.status.
2017   if test "$ac_new_set" = set; then
2018     case $ac_new_val in
2019     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2020     *) ac_arg=$ac_var=$ac_new_val ;;
2021     esac
2022     case " $ac_configure_args " in
2023       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2024       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025     esac
2026   fi
2027 done
2028 if $ac_cache_corrupted; then
2029   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2030 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2031   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2032 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065
2066
2067
2068 ac_config_headers="$ac_config_headers config.h"
2069
2070
2071 am__api_version='1.10'
2072
2073 ac_aux_dir=
2074 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2075   if test -f "$ac_dir/install-sh"; then
2076     ac_aux_dir=$ac_dir
2077     ac_install_sh="$ac_aux_dir/install-sh -c"
2078     break
2079   elif test -f "$ac_dir/install.sh"; then
2080     ac_aux_dir=$ac_dir
2081     ac_install_sh="$ac_aux_dir/install.sh -c"
2082     break
2083   elif test -f "$ac_dir/shtool"; then
2084     ac_aux_dir=$ac_dir
2085     ac_install_sh="$ac_aux_dir/shtool install -c"
2086     break
2087   fi
2088 done
2089 if test -z "$ac_aux_dir"; then
2090   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2091 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094
2095 # These three variables are undocumented and unsupported,
2096 # and are intended to be withdrawn in a future Autoconf release.
2097 # They can cause serious problems if a builder's source tree is in a directory
2098 # whose full name contains unusual characters.
2099 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2100 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2101 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2102
2103
2104 # Find a good install program.  We prefer a C program (faster),
2105 # so one script is as good as another.  But avoid the broken or
2106 # incompatible versions:
2107 # SysV /etc/install, /usr/sbin/install
2108 # SunOS /usr/etc/install
2109 # IRIX /sbin/install
2110 # AIX /bin/install
2111 # AmigaOS /C/install, which installs bootblocks on floppy discs
2112 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2113 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2114 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2115 # OS/2's system install, which has a completely different semantic
2116 # ./install, which can be erroneously created by make from ./install.sh.
2117 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2118 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2119 if test -z "$INSTALL"; then
2120 if test "${ac_cv_path_install+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126   IFS=$as_save_IFS
2127   test -z "$as_dir" && as_dir=.
2128   # Account for people who put trailing slashes in PATH elements.
2129 case $as_dir/ in
2130   ./ | .// | /cC/* | \
2131   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2132   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2133   /usr/ucb/* ) ;;
2134   *)
2135     # OSF1 and SCO ODT 3.0 have their own names for install.
2136     # Don't use installbsd from OSF since it installs stuff as root
2137     # by default.
2138     for ac_prog in ginstall scoinst install; do
2139       for ac_exec_ext in '' $ac_executable_extensions; do
2140         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2141           if test $ac_prog = install &&
2142             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143             # AIX install.  It has an incompatible calling convention.
2144             :
2145           elif test $ac_prog = install &&
2146             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2147             # program-specific install script used by HP pwplus--don't use.
2148             :
2149           else
2150             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2151             break 3
2152           fi
2153         fi
2154       done
2155     done
2156     ;;
2157 esac
2158 done
2159 IFS=$as_save_IFS
2160
2161
2162 fi
2163   if test "${ac_cv_path_install+set}" = set; then
2164     INSTALL=$ac_cv_path_install
2165   else
2166     # As a last resort, use the slow shell script.  Don't cache a
2167     # value for INSTALL within a source directory, because that will
2168     # break other packages using the cache if that directory is
2169     # removed, or if the value is a relative name.
2170     INSTALL=$ac_install_sh
2171   fi
2172 fi
2173 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2174 echo "${ECHO_T}$INSTALL" >&6; }
2175
2176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2177 # It thinks the first close brace ends the variable substitution.
2178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2179
2180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2181
2182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2183
2184 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2185 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2186 # Just in case
2187 sleep 1
2188 echo timestamp > conftest.file
2189 # Do `set' in a subshell so we don't clobber the current shell's
2190 # arguments.  Must try -L first in case configure is actually a
2191 # symlink; some systems play weird games with the mod time of symlinks
2192 # (eg FreeBSD returns the mod time of the symlink's containing
2193 # directory).
2194 if (
2195    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2196    if test "$*" = "X"; then
2197       # -L didn't work.
2198       set X `ls -t $srcdir/configure conftest.file`
2199    fi
2200    rm -f conftest.file
2201    if test "$*" != "X $srcdir/configure conftest.file" \
2202       && test "$*" != "X conftest.file $srcdir/configure"; then
2203
2204       # If neither matched, then we have a broken ls.  This can happen
2205       # if, for instance, CONFIG_SHELL is bash and it inherits a
2206       # broken ls alias from the environment.  This has actually
2207       # happened.  Such a system could not be considered "sane".
2208       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2209 alias in your environment" >&5
2210 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2211 alias in your environment" >&2;}
2212    { (exit 1); exit 1; }; }
2213    fi
2214
2215    test "$2" = conftest.file
2216    )
2217 then
2218    # Ok.
2219    :
2220 else
2221    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2222 Check your system clock" >&5
2223 echo "$as_me: error: newly created file is older than distributed files!
2224 Check your system clock" >&2;}
2225    { (exit 1); exit 1; }; }
2226 fi
2227 { echo "$as_me:$LINENO: result: yes" >&5
2228 echo "${ECHO_T}yes" >&6; }
2229 test "$program_prefix" != NONE &&
2230   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2231 # Use a double $ so make ignores it.
2232 test "$program_suffix" != NONE &&
2233   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2234 # Double any \ or $.  echo might interpret backslashes.
2235 # By default was `s,x,x', remove it if useless.
2236 cat <<\_ACEOF >conftest.sed
2237 s/[\\$]/&&/g;s/;s,x,x,$//
2238 _ACEOF
2239 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2240 rm -f conftest.sed
2241
2242 # expand $ac_aux_dir to an absolute path
2243 am_aux_dir=`cd $ac_aux_dir && pwd`
2244
2245 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2246 # Use eval to expand $SHELL
2247 if eval "$MISSING --run true"; then
2248   am_missing_run="$MISSING --run "
2249 else
2250   am_missing_run=
2251   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2252 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2253 fi
2254
2255 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2256 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2257 if test -z "$MKDIR_P"; then
2258   if test "${ac_cv_path_mkdir+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_prog in mkdir gmkdir; do
2267          for ac_exec_ext in '' $ac_executable_extensions; do
2268            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2269            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2270              'mkdir (GNU coreutils) '* | \
2271              'mkdir (coreutils) '* | \
2272              'mkdir (fileutils) '4.1*)
2273                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2274                break 3;;
2275            esac
2276          done
2277        done
2278 done
2279 IFS=$as_save_IFS
2280
2281 fi
2282
2283   if test "${ac_cv_path_mkdir+set}" = set; then
2284     MKDIR_P="$ac_cv_path_mkdir -p"
2285   else
2286     # As a last resort, use the slow shell script.  Don't cache a
2287     # value for MKDIR_P within a source directory, because that will
2288     # break other packages using the cache if that directory is
2289     # removed, or if the value is a relative name.
2290     test -d ./--version && rmdir ./--version
2291     MKDIR_P="$ac_install_sh -d"
2292   fi
2293 fi
2294 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2295 echo "${ECHO_T}$MKDIR_P" >&6; }
2296
2297 mkdir_p="$MKDIR_P"
2298 case $mkdir_p in
2299   [\\/$]* | ?:[\\/]*) ;;
2300   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2301 esac
2302
2303 for ac_prog in gawk mawk nawk awk
2304 do
2305   # Extract the first word of "$ac_prog", so it can be a program name with args.
2306 set dummy $ac_prog; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_AWK+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$AWK"; then
2313   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322     ac_cv_prog_AWK="$ac_prog"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 AWK=$ac_cv_prog_AWK
2333 if test -n "$AWK"; then
2334   { echo "$as_me:$LINENO: result: $AWK" >&5
2335 echo "${ECHO_T}$AWK" >&6; }
2336 else
2337   { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2339 fi
2340
2341
2342   test -n "$AWK" && break
2343 done
2344
2345 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2346 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2347 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2348 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.make <<\_ACEOF
2352 SHELL = /bin/sh
2353 all:
2354         @echo '@@@%%%=$(MAKE)=@@@%%%'
2355 _ACEOF
2356 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2358   *@@@%%%=?*=@@@%%%*)
2359     eval ac_cv_prog_make_${ac_make}_set=yes;;
2360   *)
2361     eval ac_cv_prog_make_${ac_make}_set=no;;
2362 esac
2363 rm -f conftest.make
2364 fi
2365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2366   { echo "$as_me:$LINENO: result: yes" >&5
2367 echo "${ECHO_T}yes" >&6; }
2368   SET_MAKE=
2369 else
2370   { echo "$as_me:$LINENO: result: no" >&5
2371 echo "${ECHO_T}no" >&6; }
2372   SET_MAKE="MAKE=${MAKE-make}"
2373 fi
2374
2375 rm -rf .tst 2>/dev/null
2376 mkdir .tst 2>/dev/null
2377 if test -d .tst; then
2378   am__leading_dot=.
2379 else
2380   am__leading_dot=_
2381 fi
2382 rmdir .tst 2>/dev/null
2383
2384 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2385   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2386   # is not polluted with repeated "-I."
2387   am__isrc=' -I$(srcdir)'
2388   # test to see if srcdir already configured
2389   if test -f $srcdir/config.status; then
2390     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2391 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2392    { (exit 1); exit 1; }; }
2393   fi
2394 fi
2395
2396 # test whether we have cygpath
2397 if test -z "$CYGPATH_W"; then
2398   if (cygpath --version) >/dev/null 2>/dev/null; then
2399     CYGPATH_W='cygpath -w'
2400   else
2401     CYGPATH_W=echo
2402   fi
2403 fi
2404
2405
2406 # Define the identity of the package.
2407  PACKAGE='util-vserver'
2408  VERSION='0.30.215'
2409
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE "$PACKAGE"
2413 _ACEOF
2414
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define VERSION "$VERSION"
2418 _ACEOF
2419
2420 # Some tools Automake needs.
2421
2422 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2423
2424
2425 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2426
2427
2428 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2429
2430
2431 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2432
2433
2434 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2435
2436 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2437
2438 # Installed binaries are usually stripped using `strip' when the user
2439 # run `make install-strip'.  However `strip' might not be the right
2440 # tool to use in cross-compilation environments, therefore Automake
2441 # will honor the `STRIP' environment variable to overrule this program.
2442 if test "$cross_compiling" != no; then
2443   if test -n "$ac_tool_prefix"; then
2444   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}strip; ac_word=$2
2446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_STRIP+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   if test -n "$STRIP"; then
2452   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2453 else
2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 for as_dir in $PATH
2456 do
2457   IFS=$as_save_IFS
2458   test -z "$as_dir" && as_dir=.
2459   for ac_exec_ext in '' $ac_executable_extensions; do
2460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2461     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463     break 2
2464   fi
2465 done
2466 done
2467 IFS=$as_save_IFS
2468
2469 fi
2470 fi
2471 STRIP=$ac_cv_prog_STRIP
2472 if test -n "$STRIP"; then
2473   { echo "$as_me:$LINENO: result: $STRIP" >&5
2474 echo "${ECHO_T}$STRIP" >&6; }
2475 else
2476   { echo "$as_me:$LINENO: result: no" >&5
2477 echo "${ECHO_T}no" >&6; }
2478 fi
2479
2480
2481 fi
2482 if test -z "$ac_cv_prog_STRIP"; then
2483   ac_ct_STRIP=$STRIP
2484   # Extract the first word of "strip", so it can be a program name with args.
2485 set dummy strip; ac_word=$2
2486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_STRIP"; then
2492   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501     ac_cv_prog_ac_ct_STRIP="strip"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507 IFS=$as_save_IFS
2508
2509 fi
2510 fi
2511 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2512 if test -n "$ac_ct_STRIP"; then
2513   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2514 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2515 else
2516   { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2518 fi
2519
2520   if test "x$ac_ct_STRIP" = x; then
2521     STRIP=":"
2522   else
2523     case $cross_compiling:$ac_tool_warned in
2524 yes:)
2525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet.  If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&5
2528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2529 whose name does not start with the host triplet.  If you think this
2530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2531 ac_tool_warned=yes ;;
2532 esac
2533     STRIP=$ac_ct_STRIP
2534   fi
2535 else
2536   STRIP="$ac_cv_prog_STRIP"
2537 fi
2538
2539 fi
2540 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2541
2542 # We need awk for the "check" target.  The system "awk" is bad on
2543 # some platforms.
2544 # Always define AMTAR for backward compatibility.
2545
2546 AMTAR=${AMTAR-"${am_missing_run}tar"}
2547
2548 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2549
2550
2551
2552
2553
2554 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2555 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2556     # Check whether --enable-maintainer-mode was given.
2557 if test "${enable_maintainer_mode+set}" = set; then
2558   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2559 else
2560   USE_MAINTAINER_MODE=no
2561 fi
2562
2563   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2564 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2565    if test $USE_MAINTAINER_MODE = yes; then
2566   MAINTAINER_MODE_TRUE=
2567   MAINTAINER_MODE_FALSE='#'
2568 else
2569   MAINTAINER_MODE_TRUE='#'
2570   MAINTAINER_MODE_FALSE=
2571 fi
2572
2573   MAINT=$MAINTAINER_MODE_TRUE
2574
2575
2576
2577 # Make sure we can run config.sub.
2578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2579   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2580 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2581    { (exit 1); exit 1; }; }
2582
2583 { echo "$as_me:$LINENO: checking build system type" >&5
2584 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2585 if test "${ac_cv_build+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   ac_build_alias=$build_alias
2589 test "x$ac_build_alias" = x &&
2590   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2591 test "x$ac_build_alias" = x &&
2592   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2593 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2594    { (exit 1); exit 1; }; }
2595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2598    { (exit 1); exit 1; }; }
2599
2600 fi
2601 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2602 echo "${ECHO_T}$ac_cv_build" >&6; }
2603 case $ac_cv_build in
2604 *-*-*) ;;
2605 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2606 echo "$as_me: error: invalid value of canonical build" >&2;}
2607    { (exit 1); exit 1; }; };;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 { echo "$as_me:$LINENO: checking host system type" >&5
2624 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2625 if test "${ac_cv_host+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   if test "x$host_alias" = x; then
2629   ac_cv_host=$ac_cv_build
2630 else
2631   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2633 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2634    { (exit 1); exit 1; }; }
2635 fi
2636
2637 fi
2638 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2639 echo "${ECHO_T}$ac_cv_host" >&6; }
2640 case $ac_cv_host in
2641 *-*-*) ;;
2642 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2643 echo "$as_me: error: invalid value of canonical host" >&2;}
2644    { (exit 1); exit 1; }; };;
2645 esac
2646 host=$ac_cv_host
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_host
2649 shift
2650 host_cpu=$1
2651 host_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 host_os=$*
2656 IFS=$ac_save_IFS
2657 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2658
2659
2660
2661 GPG_KEY="0xFFD316AC53ACA43A!"
2662
2663
2664 # Checks for programs.
2665 ac_ext=cpp
2666 ac_cpp='$CXXCPP $CPPFLAGS'
2667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2670 if test -z "$CXX"; then
2671   if test -n "$CCC"; then
2672     CXX=$CCC
2673   else
2674     if test -n "$ac_tool_prefix"; then
2675   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2676   do
2677     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_CXX+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if test -n "$CXX"; then
2685   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for ac_exec_ext in '' $ac_executable_extensions; do
2693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 CXX=$ac_cv_prog_CXX
2705 if test -n "$CXX"; then
2706   { echo "$as_me:$LINENO: result: $CXX" >&5
2707 echo "${ECHO_T}$CXX" >&6; }
2708 else
2709   { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2711 fi
2712
2713
2714     test -n "$CXX" && break
2715   done
2716 fi
2717 if test -z "$CXX"; then
2718   ac_ct_CXX=$CXX
2719   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2720 do
2721   # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   if test -n "$ac_ct_CXX"; then
2729   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734   IFS=$as_save_IFS
2735   test -z "$as_dir" && as_dir=.
2736   for ac_exec_ext in '' $ac_executable_extensions; do
2737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738     ac_cv_prog_ac_ct_CXX="$ac_prog"
2739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740     break 2
2741   fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2749 if test -n "$ac_ct_CXX"; then
2750   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2751 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2752 else
2753   { echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6; }
2755 fi
2756
2757
2758   test -n "$ac_ct_CXX" && break
2759 done
2760
2761   if test "x$ac_ct_CXX" = x; then
2762     CXX="g++"
2763   else
2764     case $cross_compiling:$ac_tool_warned in
2765 yes:)
2766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2767 whose name does not start with the host triplet.  If you think this
2768 configuration is useful to you, please write to autoconf@gnu.org." >&5
2769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2770 whose name does not start with the host triplet.  If you think this
2771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2772 ac_tool_warned=yes ;;
2773 esac
2774     CXX=$ac_ct_CXX
2775   fi
2776 fi
2777
2778   fi
2779 fi
2780 # Provide some information about the compiler.
2781 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2782 ac_compiler=`set X $ac_compile; echo $2`
2783 { (ac_try="$ac_compiler --version >&5"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compiler --version >&5") 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }
2793 { (ac_try="$ac_compiler -v >&5"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_compiler -v >&5") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }
2803 { (ac_try="$ac_compiler -V >&5"
2804 case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_compiler -V >&5") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }
2813
2814 cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 ac_clean_files_save=$ac_clean_files
2830 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2831 # Try to create an executable without -o first, disregard a.out.
2832 # It will help us diagnose broken compilers, and finding out an intuition
2833 # of exeext.
2834 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2835 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2837 #
2838 # List of possible output files, starting from the most likely.
2839 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2840 # only as a last resort.  b.out is created by i960 compilers.
2841 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2842 #
2843 # The IRIX 6 linker writes into existing files which may not be
2844 # executable, retaining their permissions.  Remove them first so a
2845 # subsequent execution test works.
2846 ac_rmfiles=
2847 for ac_file in $ac_files
2848 do
2849   case $ac_file in
2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2852   esac
2853 done
2854 rm -f $ac_rmfiles
2855
2856 if { (ac_try="$ac_link_default"
2857 case "(($ac_try" in
2858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859   *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862   (eval "$ac_link_default") 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; then
2866   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2870 # Autoconf.
2871 for ac_file in $ac_files ''
2872 do
2873   test -f "$ac_file" || continue
2874   case $ac_file in
2875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2876         ;;
2877     [ab].out )
2878         # We found the default executable, but exeext='' is most
2879         # certainly right.
2880         break;;
2881     *.* )
2882         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2883         then :; else
2884            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885         fi
2886         # We set ac_cv_exeext here because the later test for it is not
2887         # safe: cross compilers may not add the suffix if given an `-o'
2888         # argument, so we may need to know it at that point already.
2889         # Even if this section looks crufty: it has the advantage of
2890         # actually working.
2891         break;;
2892     * )
2893         break;;
2894   esac
2895 done
2896 test "$ac_cv_exeext" = no && ac_cv_exeext=
2897
2898 else
2899   ac_file=''
2900 fi
2901
2902 { echo "$as_me:$LINENO: result: $ac_file" >&5
2903 echo "${ECHO_T}$ac_file" >&6; }
2904 if test -z "$ac_file"; then
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: C++ compiler cannot create executables
2911 See \`config.log' for more details." >&2;}
2912    { (exit 77); exit 77; }; }
2913 fi
2914
2915 ac_exeext=$ac_cv_exeext
2916
2917 # Check that the compiler produces executables we can run.  If not, either
2918 # the compiler is broken, or we cross compile.
2919 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2920 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2921 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2922 # If not cross compiling, check that we can run a simple program.
2923 if test "$cross_compiling" != yes; then
2924   if { ac_try='./$ac_file'
2925   { (case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_try") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934     cross_compiling=no
2935   else
2936     if test "$cross_compiling" = maybe; then
2937         cross_compiling=yes
2938     else
2939         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: cannot run C++ compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }
2946     fi
2947   fi
2948 fi
2949 { echo "$as_me:$LINENO: result: yes" >&5
2950 echo "${ECHO_T}yes" >&6; }
2951
2952 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2953 ac_clean_files=$ac_clean_files_save
2954 # Check that the compiler produces executables we can run.  If not, either
2955 # the compiler is broken, or we cross compile.
2956 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2957 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2958 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2959 echo "${ECHO_T}$cross_compiling" >&6; }
2960
2961 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2962 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2963 if { (ac_try="$ac_link"
2964 case "(($ac_try" in
2965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966   *) ac_try_echo=$ac_try;;
2967 esac
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969   (eval "$ac_link") 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; then
2973   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2974 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2975 # work properly (i.e., refer to `conftest.exe'), while it won't with
2976 # `rm'.
2977 for ac_file in conftest.exe conftest conftest.*; do
2978   test -f "$ac_file" || continue
2979   case $ac_file in
2980     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2981     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982           break;;
2983     * ) break;;
2984   esac
2985 done
2986 else
2987   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2990 See \`config.log' for more details." >&2;}
2991    { (exit 1); exit 1; }; }
2992 fi
2993
2994 rm -f conftest$ac_cv_exeext
2995 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2996 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2997
2998 rm -f conftest.$ac_ext
2999 EXEEXT=$ac_cv_exeext
3000 ac_exeext=$EXEEXT
3001 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3003 if test "${ac_cv_objext+set}" = set; then
3004   echo $ECHO_N "(cached) $ECHO_C" >&6
3005 else
3006   cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012
3013 int
3014 main ()
3015 {
3016
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.o conftest.obj
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }; then
3032   for ac_file in conftest.o conftest.obj conftest.*; do
3033   test -f "$ac_file" || continue;
3034   case $ac_file in
3035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3037        break;;
3038   esac
3039 done
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3045 See \`config.log' for more details." >&5
3046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3047 See \`config.log' for more details." >&2;}
3048    { (exit 1); exit 1; }; }
3049 fi
3050
3051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052 fi
3053 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3054 echo "${ECHO_T}$ac_cv_objext" >&6; }
3055 OBJEXT=$ac_cv_objext
3056 ac_objext=$OBJEXT
3057 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3058 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3059 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072 #ifndef __GNUC__
3073        choke me
3074 #endif
3075
3076   ;
3077   return 0;
3078 }
3079 _ACEOF
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_compile") 2>conftest.er1
3088   ac_status=$?
3089   grep -v '^ *+' conftest.er1 >conftest.err
3090   rm -f conftest.er1
3091   cat conftest.err >&5
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); } && {
3094          test -z "$ac_cxx_werror_flag" ||
3095          test ! -s conftest.err
3096        } && test -s conftest.$ac_objext; then
3097   ac_compiler_gnu=yes
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102         ac_compiler_gnu=no
3103 fi
3104
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3107
3108 fi
3109 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3110 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3111 GXX=`test $ac_compiler_gnu = yes && echo yes`
3112 ac_test_CXXFLAGS=${CXXFLAGS+set}
3113 ac_save_CXXFLAGS=$CXXFLAGS
3114 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3115 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cxx_g+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3120    ac_cxx_werror_flag=yes
3121    ac_cv_prog_cxx_g=no
3122    CXXFLAGS="-g"
3123    cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3140 case "(($ac_try" in
3141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142   *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145   (eval "$ac_compile") 2>conftest.er1
3146   ac_status=$?
3147   grep -v '^ *+' conftest.er1 >conftest.err
3148   rm -f conftest.er1
3149   cat conftest.err >&5
3150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); } && {
3152          test -z "$ac_cxx_werror_flag" ||
3153          test ! -s conftest.err
3154        } && test -s conftest.$ac_objext; then
3155   ac_cv_prog_cxx_g=yes
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         CXXFLAGS=""
3161       cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_cxx_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   :
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199          CXXFLAGS="-g"
3200          cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h.  */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h.  */
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_cxx_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_cv_prog_cxx_g=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 fi
3242
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 fi
3245
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248 fi
3249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3251 if test "$ac_test_CXXFLAGS" = set; then
3252   CXXFLAGS=$ac_save_CXXFLAGS
3253 elif test $ac_cv_prog_cxx_g = yes; then
3254   if test "$GXX" = yes; then
3255     CXXFLAGS="-g -O2"
3256   else
3257     CXXFLAGS="-g"
3258   fi
3259 else
3260   if test "$GXX" = yes; then
3261     CXXFLAGS="-O2"
3262   else
3263     CXXFLAGS=
3264   fi
3265 fi
3266 ac_ext=c
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 DEPDIR="${am__leading_dot}deps"
3272
3273 ac_config_commands="$ac_config_commands depfiles"
3274
3275
3276 am_make=${MAKE-make}
3277 cat > confinc << 'END'
3278 am__doit:
3279         @echo done
3280 .PHONY: am__doit
3281 END
3282 # If we don't find an include directive, just comment out the code.
3283 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3284 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3285 am__include="#"
3286 am__quote=
3287 _am_result=none
3288 # First try GNU make style include.
3289 echo "include confinc" > confmf
3290 # We grep out `Entering directory' and `Leaving directory'
3291 # messages which can occur if `w' ends up in MAKEFLAGS.
3292 # In particular we don't look at `^make:' because GNU make might
3293 # be invoked under some other name (usually "gmake"), in which
3294 # case it prints its new name instead of `make'.
3295 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3296    am__include=include
3297    am__quote=
3298    _am_result=GNU
3299 fi
3300 # Now try BSD make style include.
3301 if test "$am__include" = "#"; then
3302    echo '.include "confinc"' > confmf
3303    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3304       am__include=.include
3305       am__quote="\""
3306       _am_result=BSD
3307    fi
3308 fi
3309
3310
3311 { echo "$as_me:$LINENO: result: $_am_result" >&5
3312 echo "${ECHO_T}$_am_result" >&6; }
3313 rm -f confinc confmf
3314
3315 # Check whether --enable-dependency-tracking was given.
3316 if test "${enable_dependency_tracking+set}" = set; then
3317   enableval=$enable_dependency_tracking;
3318 fi
3319
3320 if test "x$enable_dependency_tracking" != xno; then
3321   am_depcomp="$ac_aux_dir/depcomp"
3322   AMDEPBACKSLASH='\'
3323 fi
3324  if test "x$enable_dependency_tracking" != xno; then
3325   AMDEP_TRUE=
3326   AMDEP_FALSE='#'
3327 else
3328   AMDEP_TRUE='#'
3329   AMDEP_FALSE=
3330 fi
3331
3332
3333
3334 depcc="$CXX"  am_compiler_list=
3335
3336 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3337 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3338 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3342   # We make a subdir and do the tests there.  Otherwise we can end up
3343   # making bogus files that we don't know about and never remove.  For
3344   # instance it was reported that on HP-UX the gcc test will end up
3345   # making a dummy file named `D' -- because `-MD' means `put the output
3346   # in D'.
3347   mkdir conftest.dir
3348   # Copy depcomp to subdir because otherwise we won't find it if we're
3349   # using a relative directory.
3350   cp "$am_depcomp" conftest.dir
3351   cd conftest.dir
3352   # We will build objects and dependencies in a subdirectory because
3353   # it helps to detect inapplicable dependency modes.  For instance
3354   # both Tru64's cc and ICC support -MD to output dependencies as a
3355   # side effect of compilation, but ICC will put the dependencies in
3356   # the current directory while Tru64 will put them in the object
3357   # directory.
3358   mkdir sub
3359
3360   am_cv_CXX_dependencies_compiler_type=none
3361   if test "$am_compiler_list" = ""; then
3362      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3363   fi
3364   for depmode in $am_compiler_list; do
3365     # Setup a source with many dependencies, because some compilers
3366     # like to wrap large dependency lists on column 80 (with \), and
3367     # we should not choose a depcomp mode which is confused by this.
3368     #
3369     # We need to recreate these files for each test, as the compiler may
3370     # overwrite some of them when testing with obscure command lines.
3371     # This happens at least with the AIX C compiler.
3372     : > sub/conftest.c
3373     for i in 1 2 3 4 5 6; do
3374       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3375       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3376       # Solaris 8's {/usr,}/bin/sh.
3377       touch sub/conftst$i.h
3378     done
3379     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3380
3381     case $depmode in
3382     nosideeffect)
3383       # after this tag, mechanisms are not by side-effect, so they'll
3384       # only be used when explicitly requested
3385       if test "x$enable_dependency_tracking" = xyes; then
3386         continue
3387       else
3388         break
3389       fi
3390       ;;
3391     none) break ;;
3392     esac
3393     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3394     # mode.  It turns out that the SunPro C++ compiler does not properly
3395     # handle `-M -o', and we need to detect this.
3396     if depmode=$depmode \
3397        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3398        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3399        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3400          >/dev/null 2>conftest.err &&
3401        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3402        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3403        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3404        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3405       # icc doesn't choke on unknown options, it will just issue warnings
3406       # or remarks (even with -Werror).  So we grep stderr for any message
3407       # that says an option was ignored or not supported.
3408       # When given -MP, icc 7.0 and 7.1 complain thusly:
3409       #   icc: Command line warning: ignoring option '-M'; no argument required
3410       # The diagnosis changed in icc 8.0:
3411       #   icc: Command line remark: option '-MP' not supported
3412       if (grep 'ignoring option' conftest.err ||
3413           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3414         am_cv_CXX_dependencies_compiler_type=$depmode
3415         break
3416       fi
3417     fi
3418   done
3419
3420   cd ..
3421   rm -rf conftest.dir
3422 else
3423   am_cv_CXX_dependencies_compiler_type=none
3424 fi
3425
3426 fi
3427 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3428 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3429 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3430
3431  if
3432   test "x$enable_dependency_tracking" != xno \
3433   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3434   am__fastdepCXX_TRUE=
3435   am__fastdepCXX_FALSE='#'
3436 else
3437   am__fastdepCXX_TRUE='#'
3438   am__fastdepCXX_FALSE=
3439 fi
3440
3441
3442 ac_ext=c
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 if test -n "$ac_tool_prefix"; then
3448   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { echo "$as_me:$LINENO: result: $CC" >&5
3478 echo "${ECHO_T}$CC" >&6; }
3479 else
3480   { echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6; }
3482 fi
3483
3484
3485 fi
3486 if test -z "$ac_cv_prog_CC"; then
3487   ac_ct_CC=$CC
3488   # Extract the first word of "gcc", so it can be a program name with args.
3489 set dummy gcc; ac_word=$2
3490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3493   echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495   if test -n "$ac_ct_CC"; then
3496   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501   IFS=$as_save_IFS
3502   test -z "$as_dir" && as_dir=.
3503   for ac_exec_ext in '' $ac_executable_extensions; do
3504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505     ac_cv_prog_ac_ct_CC="gcc"
3506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507     break 2
3508   fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516 if test -n "$ac_ct_CC"; then
3517   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3518 echo "${ECHO_T}$ac_ct_CC" >&6; }
3519 else
3520   { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3522 fi
3523
3524   if test "x$ac_ct_CC" = x; then
3525     CC=""
3526   else
3527     case $cross_compiling:$ac_tool_warned in
3528 yes:)
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet.  If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet.  If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537     CC=$ac_ct_CC
3538   fi
3539 else
3540   CC="$ac_cv_prog_CC"
3541 fi
3542
3543 if test -z "$CC"; then
3544           if test -n "$ac_tool_prefix"; then
3545     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}cc; ac_word=$2
3547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   if test -n "$CC"; then
3553   ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562     ac_cv_prog_CC="${ac_tool_prefix}cc"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574   { echo "$as_me:$LINENO: result: $CC" >&5
3575 echo "${ECHO_T}$CC" >&6; }
3576 else
3577   { echo "$as_me:$LINENO: result: no" >&5
3578 echo "${ECHO_T}no" >&6; }
3579 fi
3580
3581
3582   fi
3583 fi
3584 if test -z "$CC"; then
3585   # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then
3590   echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592   if test -n "$CC"; then
3593   ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595   ac_prog_rejected=no
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604        ac_prog_rejected=yes
3605        continue
3606      fi
3607     ac_cv_prog_CC="cc"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 if test $ac_prog_rejected = yes; then
3616   # We found a bogon in the path, so make sure we never use it.
3617   set dummy $ac_cv_prog_CC
3618   shift
3619   if test $# != 0; then
3620     # We chose a different compiler from the bogus one.
3621     # However, it has the same basename, so the bogon will be chosen
3622     # first if we set CC to just the basename; use the full file name.
3623     shift
3624     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3625   fi
3626 fi
3627 fi
3628 fi
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631   { echo "$as_me:$LINENO: result: $CC" >&5
3632 echo "${ECHO_T}$CC" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3636 fi
3637
3638
3639 fi
3640 if test -z "$CC"; then
3641   if test -n "$ac_tool_prefix"; then
3642   for ac_prog in cl.exe
3643   do
3644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   if test -n "$CC"; then
3652   ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666 done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { echo "$as_me:$LINENO: result: $CC" >&5
3674 echo "${ECHO_T}$CC" >&6; }
3675 else
3676   { echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6; }
3678 fi
3679
3680
3681     test -n "$CC" && break
3682   done
3683 fi
3684 if test -z "$CC"; then
3685   ac_ct_CC=$CC
3686   for ac_prog in cl.exe
3687 do
3688   # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   if test -n "$ac_ct_CC"; then
3696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703   for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_ac_ct_CC="$ac_prog"
3706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710 done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3718 echo "${ECHO_T}$ac_ct_CC" >&6; }
3719 else
3720   { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3722 fi
3723
3724
3725   test -n "$ac_ct_CC" && break
3726 done
3727
3728   if test "x$ac_ct_CC" = x; then
3729     CC=""
3730   else
3731     case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3734 whose name does not start with the host triplet.  If you think this
3735 configuration is useful to you, please write to autoconf@gnu.org." >&5
3736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3737 whose name does not start with the host triplet.  If you think this
3738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741     CC=$ac_ct_CC
3742   fi
3743 fi
3744
3745 fi
3746
3747
3748 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." >&5
3750 echo "$as_me: error: no acceptable C compiler found in \$PATH
3751 See \`config.log' for more details." >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 # Provide some information about the compiler.
3755 echo "$as_me:$LINENO: checking for C compiler version" >&5
3756 ac_compiler=`set X $ac_compile; echo $2`
3757 { (ac_try="$ac_compiler --version >&5"
3758 case "(($ac_try" in
3759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760   *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763   (eval "$ac_compiler --version >&5") 2>&5
3764   ac_status=$?
3765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766   (exit $ac_status); }
3767 { (ac_try="$ac_compiler -v >&5"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773   (eval "$ac_compiler -v >&5") 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }
3777 { (ac_try="$ac_compiler -V >&5"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3783   (eval "$ac_compiler -V >&5") 2>&5
3784   ac_status=$?
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); }
3787
3788 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h.  */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803 #ifndef __GNUC__
3804        choke me
3805 #endif
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 rm -f conftest.$ac_objext
3812 if { (ac_try="$ac_compile"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818   (eval "$ac_compile") 2>conftest.er1
3819   ac_status=$?
3820   grep -v '^ *+' conftest.er1 >conftest.err
3821   rm -f conftest.er1
3822   cat conftest.err >&5
3823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824   (exit $ac_status); } && {
3825          test -z "$ac_c_werror_flag" ||
3826          test ! -s conftest.err
3827        } && test -s conftest.$ac_objext; then
3828   ac_compiler_gnu=yes
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833         ac_compiler_gnu=no
3834 fi
3835
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838
3839 fi
3840 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3842 GCC=`test $ac_compiler_gnu = yes && echo yes`
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3847 if test "${ac_cv_prog_cc_g+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   ac_save_c_werror_flag=$ac_c_werror_flag
3851    ac_c_werror_flag=yes
3852    ac_cv_prog_cc_g=no
3853    CFLAGS="-g"
3854    cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860
3861 int
3862 main ()
3863 {
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest.$ac_objext
3870 if { (ac_try="$ac_compile"
3871 case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876   (eval "$ac_compile") 2>conftest.er1
3877   ac_status=$?
3878   grep -v '^ *+' conftest.er1 >conftest.err
3879   rm -f conftest.er1
3880   cat conftest.err >&5
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); } && {
3883          test -z "$ac_c_werror_flag" ||
3884          test ! -s conftest.err
3885        } && test -s conftest.$ac_objext; then
3886   ac_cv_prog_cc_g=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891         CFLAGS=""
3892       cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898
3899 int
3900 main ()
3901 {
3902
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914   (eval "$ac_compile") 2>conftest.er1
3915   ac_status=$?
3916   grep -v '^ *+' conftest.er1 >conftest.err
3917   rm -f conftest.er1
3918   cat conftest.err >&5
3919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920   (exit $ac_status); } && {
3921          test -z "$ac_c_werror_flag" ||
3922          test ! -s conftest.err
3923        } && test -s conftest.$ac_objext; then
3924   :
3925 else
3926   echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929         ac_c_werror_flag=$ac_save_c_werror_flag
3930          CFLAGS="-g"
3931          cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3948 case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3953   (eval "$ac_compile") 2>conftest.er1
3954   ac_status=$?
3955   grep -v '^ *+' conftest.er1 >conftest.err
3956   rm -f conftest.er1
3957   cat conftest.err >&5
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); } && {
3960          test -z "$ac_c_werror_flag" ||
3961          test ! -s conftest.err
3962        } && test -s conftest.$ac_objext; then
3963   ac_cv_prog_cc_g=yes
3964 else
3965   echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968
3969 fi
3970
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 fi
3973
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976
3977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978    ac_c_werror_flag=$ac_save_c_werror_flag
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3982 if test "$ac_test_CFLAGS" = set; then
3983   CFLAGS=$ac_save_CFLAGS
3984 elif test $ac_cv_prog_cc_g = yes; then
3985   if test "$GCC" = yes; then
3986     CFLAGS="-g -O2"
3987   else
3988     CFLAGS="-g"
3989   fi
3990 else
3991   if test "$GCC" = yes; then
3992     CFLAGS="-O2"
3993   else
3994     CFLAGS=
3995   fi
3996 fi
3997 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3998 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3999 if test "${ac_cv_prog_cc_c89+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   ac_cv_prog_cc_c89=no
4003 ac_save_CC=$CC
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <stdarg.h>
4011 #include <stdio.h>
4012 #include <sys/types.h>
4013 #include <sys/stat.h>
4014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4015 struct buf { int x; };
4016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4017 static char *e (p, i)
4018      char **p;
4019      int i;
4020 {
4021   return p[i];
4022 }
4023 static char *f (char * (*g) (char **, int), char **p, ...)
4024 {
4025   char *s;
4026   va_list v;
4027   va_start (v,p);
4028   s = g (p, va_arg (v,int));
4029   va_end (v);
4030   return s;
4031 }
4032
4033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4034    function prototypes and stuff, but not '\xHH' hex character constants.
4035    These don't provoke an error unfortunately, instead are silently treated
4036    as 'x'.  The following induces an error, until -std is added to get
4037    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4038    array size at least.  It's necessary to write '\x00'==0 to get something
4039    that's true only with -std.  */
4040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4041
4042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4043    inside strings and character constants.  */
4044 #define FOO(x) 'x'
4045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4046
4047 int test (int i, double x);
4048 struct s1 {int (*f) (int a);};
4049 struct s2 {int (*f) (double a);};
4050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4051 int argc;
4052 char **argv;
4053 int
4054 main ()
4055 {
4056 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4062         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4063 do
4064   CC="$ac_save_CC $ac_arg"
4065   rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069   *) ac_try_echo=$ac_try;;
4070 esac
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072   (eval "$ac_compile") 2>conftest.er1
4073   ac_status=$?
4074   grep -v '^ *+' conftest.er1 >conftest.err
4075   rm -f conftest.er1
4076   cat conftest.err >&5
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); } && {
4079          test -z "$ac_c_werror_flag" ||
4080          test ! -s conftest.err
4081        } && test -s conftest.$ac_objext; then
4082   ac_cv_prog_cc_c89=$ac_arg
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087
4088 fi
4089
4090 rm -f core conftest.err conftest.$ac_objext
4091   test "x$ac_cv_prog_cc_c89" != "xno" && break
4092 done
4093 rm -f conftest.$ac_ext
4094 CC=$ac_save_CC
4095
4096 fi
4097 # AC_CACHE_VAL
4098 case "x$ac_cv_prog_cc_c89" in
4099   x)
4100     { echo "$as_me:$LINENO: result: none needed" >&5
4101 echo "${ECHO_T}none needed" >&6; } ;;
4102   xno)
4103     { echo "$as_me:$LINENO: result: unsupported" >&5
4104 echo "${ECHO_T}unsupported" >&6; } ;;
4105   *)
4106     CC="$CC $ac_cv_prog_cc_c89"
4107     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4108 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4109 esac
4110
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118 depcc="$CC"   am_compiler_list=
4119
4120 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4121 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4122 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4123   echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4126   # We make a subdir and do the tests there.  Otherwise we can end up
4127   # making bogus files that we don't know about and never remove.  For
4128   # instance it was reported that on HP-UX the gcc test will end up
4129   # making a dummy file named `D' -- because `-MD' means `put the output
4130   # in D'.
4131   mkdir conftest.dir
4132   # Copy depcomp to subdir because otherwise we won't find it if we're
4133   # using a relative directory.
4134   cp "$am_depcomp" conftest.dir
4135   cd conftest.dir
4136   # We will build objects and dependencies in a subdirectory because
4137   # it helps to detect inapplicable dependency modes.  For instance
4138   # both Tru64's cc and ICC support -MD to output dependencies as a
4139   # side effect of compilation, but ICC will put the dependencies in
4140   # the current directory while Tru64 will put them in the object
4141   # directory.
4142   mkdir sub
4143
4144   am_cv_CC_dependencies_compiler_type=none
4145   if test "$am_compiler_list" = ""; then
4146      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4147   fi
4148   for depmode in $am_compiler_list; do
4149     # Setup a source with many dependencies, because some compilers
4150     # like to wrap large dependency lists on column 80 (with \), and
4151     # we should not choose a depcomp mode which is confused by this.
4152     #
4153     # We need to recreate these files for each test, as the compiler may
4154     # overwrite some of them when testing with obscure command lines.
4155     # This happens at least with the AIX C compiler.
4156     : > sub/conftest.c
4157     for i in 1 2 3 4 5 6; do
4158       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4159       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4160       # Solaris 8's {/usr,}/bin/sh.
4161       touch sub/conftst$i.h
4162     done
4163     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4164
4165     case $depmode in
4166     nosideeffect)
4167       # after this tag, mechanisms are not by side-effect, so they'll
4168       # only be used when explicitly requested
4169       if test "x$enable_dependency_tracking" = xyes; then
4170         continue
4171       else
4172         break
4173       fi
4174       ;;
4175     none) break ;;
4176     esac
4177     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4178     # mode.  It turns out that the SunPro C++ compiler does not properly
4179     # handle `-M -o', and we need to detect this.
4180     if depmode=$depmode \
4181        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4182        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4184          >/dev/null 2>conftest.err &&
4185        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4188        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189       # icc doesn't choke on unknown options, it will just issue warnings
4190       # or remarks (even with -Werror).  So we grep stderr for any message
4191       # that says an option was ignored or not supported.
4192       # When given -MP, icc 7.0 and 7.1 complain thusly:
4193       #   icc: Command line warning: ignoring option '-M'; no argument required
4194       # The diagnosis changed in icc 8.0:
4195       #   icc: Command line remark: option '-MP' not supported
4196       if (grep 'ignoring option' conftest.err ||
4197           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198         am_cv_CC_dependencies_compiler_type=$depmode
4199         break
4200       fi
4201     fi
4202   done
4203
4204   cd ..
4205   rm -rf conftest.dir
4206 else
4207   am_cv_CC_dependencies_compiler_type=none
4208 fi
4209
4210 fi
4211 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
4215  if
4216   test "x$enable_dependency_tracking" != xno \
4217   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218   am__fastdepCC_TRUE=
4219   am__fastdepCC_FALSE='#'
4220 else
4221   am__fastdepCC_TRUE='#'
4222   am__fastdepCC_FALSE=
4223 fi
4224
4225
4226 # Find a good install program.  We prefer a C program (faster),
4227 # so one script is as good as another.  But avoid the broken or
4228 # incompatible versions:
4229 # SysV /etc/install, /usr/sbin/install
4230 # SunOS /usr/etc/install
4231 # IRIX /sbin/install
4232 # AIX /bin/install
4233 # AmigaOS /C/install, which installs bootblocks on floppy discs
4234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4237 # OS/2's system install, which has a completely different semantic
4238 # ./install, which can be erroneously created by make from ./install.sh.
4239 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4240 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4241 if test -z "$INSTALL"; then
4242 if test "${ac_cv_path_install+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   # Account for people who put trailing slashes in PATH elements.
4251 case $as_dir/ in
4252   ./ | .// | /cC/* | \
4253   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4254   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4255   /usr/ucb/* ) ;;
4256   *)
4257     # OSF1 and SCO ODT 3.0 have their own names for install.
4258     # Don't use installbsd from OSF since it installs stuff as root
4259     # by default.
4260     for ac_prog in ginstall scoinst install; do
4261       for ac_exec_ext in '' $ac_executable_extensions; do
4262         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4263           if test $ac_prog = install &&
4264             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4265             # AIX install.  It has an incompatible calling convention.
4266             :
4267           elif test $ac_prog = install &&
4268             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4269             # program-specific install script used by HP pwplus--don't use.
4270             :
4271           else
4272             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4273             break 3
4274           fi
4275         fi
4276       done
4277     done
4278     ;;
4279 esac
4280 done
4281 IFS=$as_save_IFS
4282
4283
4284 fi
4285   if test "${ac_cv_path_install+set}" = set; then
4286     INSTALL=$ac_cv_path_install
4287   else
4288     # As a last resort, use the slow shell script.  Don't cache a
4289     # value for INSTALL within a source directory, because that will
4290     # break other packages using the cache if that directory is
4291     # removed, or if the value is a relative name.
4292     INSTALL=$ac_install_sh
4293   fi
4294 fi
4295 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4296 echo "${ECHO_T}$INSTALL" >&6; }
4297
4298 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4299 # It thinks the first close brace ends the variable substitution.
4300 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4301
4302 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4303
4304 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4305
4306 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4307 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4308 LN_S=$as_ln_s
4309 if test "$LN_S" = "ln -s"; then
4310   { echo "$as_me:$LINENO: result: yes" >&5
4311 echo "${ECHO_T}yes" >&6; }
4312 else
4313   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4314 echo "${ECHO_T}no, using $LN_S" >&6; }
4315 fi
4316
4317 if test "x$CC" != xcc; then
4318   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4319 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4320 else
4321   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4322 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4323 fi
4324 set dummy $CC; ac_cc=`echo $2 |
4325                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4326 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 # Make sure it works both with $CC and with simple cc.
4345 # We do the test twice because some compilers refuse to overwrite an
4346 # existing .o file with -o, though they will create one.
4347 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4348 rm -f conftest2.*
4349 if { (case "(($ac_try" in
4350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351   *) ac_try_echo=$ac_try;;
4352 esac
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354   (eval "$ac_try") 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } &&
4358    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360   *) ac_try_echo=$ac_try;;
4361 esac
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363   (eval "$ac_try") 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); };
4367 then
4368   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4369   if test "x$CC" != xcc; then
4370     # Test first that cc exists at all.
4371     if { ac_try='cc -c conftest.$ac_ext >&5'
4372   { (case "(($ac_try" in
4373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374   *) ac_try_echo=$ac_try;;
4375 esac
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377   (eval "$ac_try") 2>&5
4378   ac_status=$?
4379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380   (exit $ac_status); }; }; then
4381       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4382       rm -f conftest2.*
4383       if { (case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_try") 2>&5
4389   ac_status=$?
4390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391   (exit $ac_status); } &&
4392          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397   (eval "$ac_try") 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); };
4401       then
4402         # cc works too.
4403         :
4404       else
4405         # cc exists but doesn't like -o.
4406         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407       fi
4408     fi
4409   fi
4410 else
4411   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4412 fi
4413 rm -f core conftest*
4414
4415 fi
4416 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4417   { echo "$as_me:$LINENO: result: yes" >&5
4418 echo "${ECHO_T}yes" >&6; }
4419 else
4420   { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4422
4423 cat >>confdefs.h <<\_ACEOF
4424 #define NO_MINUS_C_MINUS_O 1
4425 _ACEOF
4426
4427 fi
4428
4429 # FIXME: we rely on the cache variable name because
4430 # there is no other way.
4431 set dummy $CC
4432 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4434    # Losing compiler, so override with the script.
4435    # FIXME: It is wrong to rewrite CC.
4436    # But if we don't then we get into trouble of one sort or another.
4437    # A longer-term fix would be to have automake use am__CC in this case,
4438    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4439    CC="$am_aux_dir/compile $CC"
4440 fi
4441
4442
4443
4444
4445 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4446         if test -n "$ac_tool_prefix"; then
4447   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   case $PKG_CONFIG in
4455   [\\/]* | ?:[\\/]*)
4456   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4457   ;;
4458   *)
4459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474   ;;
4475 esac
4476 fi
4477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4478 if test -n "$PKG_CONFIG"; then
4479   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4480 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4481 else
4482   { echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6; }
4484 fi
4485
4486
4487 fi
4488 if test -z "$ac_cv_path_PKG_CONFIG"; then
4489   ac_pt_PKG_CONFIG=$PKG_CONFIG
4490   # Extract the first word of "pkg-config", so it can be a program name with args.
4491 set dummy pkg-config; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   case $ac_pt_PKG_CONFIG in
4498   [\\/]* | ?:[\\/]*)
4499   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4500   ;;
4501   *)
4502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517   ;;
4518 esac
4519 fi
4520 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4521 if test -n "$ac_pt_PKG_CONFIG"; then
4522   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4523 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4524 else
4525   { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4527 fi
4528
4529   if test "x$ac_pt_PKG_CONFIG" = x; then
4530     PKG_CONFIG=""
4531   else
4532     case $cross_compiling:$ac_tool_warned in
4533 yes:)
4534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4535 whose name does not start with the host triplet.  If you think this
4536 configuration is useful to you, please write to autoconf@gnu.org." >&5
4537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4538 whose name does not start with the host triplet.  If you think this
4539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4540 ac_tool_warned=yes ;;
4541 esac
4542     PKG_CONFIG=$ac_pt_PKG_CONFIG
4543   fi
4544 else
4545   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4546 fi
4547
4548 fi
4549 if test -n "$PKG_CONFIG"; then
4550         _pkg_min_version=0.9.0
4551         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4552 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4553         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4554                 { echo "$as_me:$LINENO: result: yes" >&5
4555 echo "${ECHO_T}yes" >&6; }
4556         else
4557                 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559                 PKG_CONFIG=""
4560         fi
4561
4562 fi
4563
4564
4565
4566
4567         { echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4568 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6; }
4569 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572
4573                 ac_ext=cpp
4574 ac_cpp='$CXXCPP $CPPFLAGS'
4575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578
4579                 cat >conftest.$ac_ext <<_ACEOF
4580
4581                     #include <ostream>
4582
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (ac_try="$ac_compile"
4586 case "(($ac_try" in
4587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588   *) ac_try_echo=$ac_try;;
4589 esac
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591   (eval "$ac_compile") 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } && {
4598          test -z "$ac_cxx_werror_flag" ||
4599          test ! -s conftest.err
4600        } && test -s conftest.$ac_objext; then
4601   ensc_cv_cxx_cxxcompiler=yes
4602 else
4603   echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606         ensc_cv_cxx_cxxcompiler=no
4607 fi
4608
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610                 ac_ext=c
4611 ac_cpp='$CPP $CPPFLAGS'
4612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615
4616
4617 fi
4618 { echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4619 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6; }
4620
4621          if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4622   ENSC_HAVE_CXX_COMPILER_TRUE=
4623   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4624 else
4625   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4626   ENSC_HAVE_CXX_COMPILER_FALSE=
4627 fi
4628
4629
4630         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4631                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4632 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4633         fi
4634
4635
4636
4637
4638
4639         { echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4640 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6; }
4641 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644
4645                 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651                 cat >conftest.$ac_ext <<_ACEOF
4652
4653 int main(int argc, char *argv) {
4654   struct { int x; }   a = { .x = argc };
4655   if (0) return 0;
4656   int b;
4657 }
4658
4659 _ACEOF
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4662 case "(($ac_try" in
4663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664   *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667   (eval "$ac_compile") 2>conftest.er1
4668   ac_status=$?
4669   grep -v '^ *+' conftest.er1 >conftest.err
4670   rm -f conftest.er1
4671   cat conftest.err >&5
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); } && {
4674          test -z "$ac_c_werror_flag" ||
4675          test ! -s conftest.err
4676        } && test -s conftest.$ac_objext; then
4677   ensc_cv_c99_c99compiler=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682         ensc_cv_c99_c99compiler=no
4683 fi
4684
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686                 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692
4693 fi
4694 { echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4695 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6; }
4696
4697          if test x"$ensc_cv_c99_c99compiler" = xyes; then
4698   ENSC_HAVE_C99_COMPILER_TRUE=
4699   ENSC_HAVE_C99_COMPILER_FALSE='#'
4700 else
4701   ENSC_HAVE_C99_COMPILER_TRUE='#'
4702   ENSC_HAVE_C99_COMPILER_FALSE=
4703 fi
4704
4705
4706         if test x"$ensc_cv_c99_c99compiler" = xno; then
4707                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4708 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4709         fi
4710
4711
4712
4713         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4714
4715
4716         ENSC_PATHPROG_SED=
4717
4718
4719
4720
4721
4722
4723
4724         if test -z ""; then
4725                 rq=true
4726         else
4727                 rq=false
4728         fi
4729
4730         if $rq; then
4731                 ensc_dflt=
4732         else
4733                 ensc_dflt=""
4734         fi
4735
4736         for ac_prog in awk
4737 do
4738   # Extract the first word of "$ac_prog", so it can be a program name with args.
4739 set dummy $ac_prog; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_AWK+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $AWK in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $ensc_searchpath
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   ;;
4766 esac
4767 fi
4768 AWK=$ac_cv_path_AWK
4769 if test -n "$AWK"; then
4770   { echo "$as_me:$LINENO: result: $AWK" >&5
4771 echo "${ECHO_T}$AWK" >&6; }
4772 else
4773   { echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6; }
4775 fi
4776
4777
4778   test -n "$AWK" && break
4779 done
4780 test -n "$AWK" || AWK="$ensc_dflt"
4781
4782
4783         if test -z "${AWK}" && $rq; then
4784                 if test -z ""; then
4785                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4786 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4787    { (exit 1); exit 1; }; }
4788                 else
4789                         { { echo "$as_me:$LINENO: error:
4790 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4791 " >&5
4792 echo "$as_me: error:
4793 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4794 " >&2;}
4795    { (exit 1); exit 1; }; }
4796                 fi
4797         fi
4798
4799         if test -e "${AWK}"; then
4800                 AWK=`readlink -f "${AWK}"`
4801         fi
4802
4803         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4804
4805         test "${AWK}"
4806
4807
4808
4809
4810         if test -z ""; then
4811                 rq=true
4812         else
4813                 rq=false
4814         fi
4815
4816         if $rq; then
4817                 ensc_dflt=
4818         else
4819                 ensc_dflt=""
4820         fi
4821
4822         for ac_prog in cat
4823 do
4824   # Extract the first word of "$ac_prog", so it can be a program name with args.
4825 set dummy $ac_prog; ac_word=$2
4826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4828 if test "${ac_cv_path_CAT+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   case $CAT in
4832   [\\/]* | ?:[\\/]*)
4833   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4834   ;;
4835   *)
4836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $ensc_searchpath
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841   for ac_exec_ext in '' $ac_executable_extensions; do
4842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845     break 2
4846   fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851   ;;
4852 esac
4853 fi
4854 CAT=$ac_cv_path_CAT
4855 if test -n "$CAT"; then
4856   { echo "$as_me:$LINENO: result: $CAT" >&5
4857 echo "${ECHO_T}$CAT" >&6; }
4858 else
4859   { echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6; }
4861 fi
4862
4863
4864   test -n "$CAT" && break
4865 done
4866 test -n "$CAT" || CAT="$ensc_dflt"
4867
4868
4869         if test -z "${CAT}" && $rq; then
4870                 if test -z ""; then
4871                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4872 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4873    { (exit 1); exit 1; }; }
4874                 else
4875                         { { echo "$as_me:$LINENO: error:
4876 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4877 " >&5
4878 echo "$as_me: error:
4879 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4880 " >&2;}
4881    { (exit 1); exit 1; }; }
4882                 fi
4883         fi
4884
4885         if test -e "${CAT}"; then
4886                 CAT=`readlink -f "${CAT}"`
4887         fi
4888
4889         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4890
4891         test "${CAT}"
4892
4893
4894
4895
4896         if test -z ""; then
4897                 rq=true
4898         else
4899                 rq=false
4900         fi
4901
4902         if $rq; then
4903                 ensc_dflt=
4904         else
4905                 ensc_dflt=""
4906         fi
4907
4908         for ac_prog in chown
4909 do
4910   # Extract the first word of "$ac_prog", so it can be a program name with args.
4911 set dummy $ac_prog; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_path_CHOWN+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   case $CHOWN in
4918   [\\/]* | ?:[\\/]*)
4919   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4920   ;;
4921   *)
4922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $ensc_searchpath
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937   ;;
4938 esac
4939 fi
4940 CHOWN=$ac_cv_path_CHOWN
4941 if test -n "$CHOWN"; then
4942   { echo "$as_me:$LINENO: result: $CHOWN" >&5
4943 echo "${ECHO_T}$CHOWN" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950   test -n "$CHOWN" && break
4951 done
4952 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4953
4954
4955         if test -z "${CHOWN}" && $rq; then
4956                 if test -z ""; then
4957                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4958 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4959    { (exit 1); exit 1; }; }
4960                 else
4961                         { { echo "$as_me:$LINENO: error:
4962 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4963 " >&5
4964 echo "$as_me: error:
4965 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4966 " >&2;}
4967    { (exit 1); exit 1; }; }
4968                 fi
4969         fi
4970
4971         if test -e "${CHOWN}"; then
4972                 CHOWN=`readlink -f "${CHOWN}"`
4973         fi
4974
4975         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4976
4977         test "${CHOWN}"
4978
4979
4980
4981
4982         if test -z ""; then
4983                 rq=true
4984         else
4985                 rq=false
4986         fi
4987
4988         if $rq; then
4989                 ensc_dflt=
4990         else
4991                 ensc_dflt=""
4992         fi
4993
4994         for ac_prog in cmp
4995 do
4996   # Extract the first word of "$ac_prog", so it can be a program name with args.
4997 set dummy $ac_prog; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_path_CMP+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   case $CMP in
5004   [\\/]* | ?:[\\/]*)
5005   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5006   ;;
5007   *)
5008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $ensc_searchpath
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   for ac_exec_ext in '' $ac_executable_extensions; do
5014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023   ;;
5024 esac
5025 fi
5026 CMP=$ac_cv_path_CMP
5027 if test -n "$CMP"; then
5028   { echo "$as_me:$LINENO: result: $CMP" >&5
5029 echo "${ECHO_T}$CMP" >&6; }
5030 else
5031   { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5033 fi
5034
5035
5036   test -n "$CMP" && break
5037 done
5038 test -n "$CMP" || CMP="$ensc_dflt"
5039
5040
5041         if test -z "${CMP}" && $rq; then
5042                 if test -z ""; then
5043                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
5044 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5045    { (exit 1); exit 1; }; }
5046                 else
5047                         { { echo "$as_me:$LINENO: error:
5048 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5049 " >&5
5050 echo "$as_me: error:
5051 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5052 " >&2;}
5053    { (exit 1); exit 1; }; }
5054                 fi
5055         fi
5056
5057         if test -e "${CMP}"; then
5058                 CMP=`readlink -f "${CMP}"`
5059         fi
5060
5061         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
5062
5063         test "${CMP}"
5064
5065
5066
5067
5068         if test -z ""; then
5069                 rq=true
5070         else
5071                 rq=false
5072         fi
5073
5074         if $rq; then
5075                 ensc_dflt=
5076         else
5077                 ensc_dflt=""
5078         fi
5079
5080         for ac_prog in cp
5081 do
5082   # Extract the first word of "$ac_prog", so it can be a program name with args.
5083 set dummy $ac_prog; ac_word=$2
5084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5086 if test "${ac_cv_path_CP+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   case $CP in
5090   [\\/]* | ?:[\\/]*)
5091   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5092   ;;
5093   *)
5094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $ensc_searchpath
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099   for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106 done
5107 IFS=$as_save_IFS
5108
5109   ;;
5110 esac
5111 fi
5112 CP=$ac_cv_path_CP
5113 if test -n "$CP"; then
5114   { echo "$as_me:$LINENO: result: $CP" >&5
5115 echo "${ECHO_T}$CP" >&6; }
5116 else
5117   { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5119 fi
5120
5121
5122   test -n "$CP" && break
5123 done
5124 test -n "$CP" || CP="$ensc_dflt"
5125
5126
5127         if test -z "${CP}" && $rq; then
5128                 if test -z ""; then
5129                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
5130 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5131    { (exit 1); exit 1; }; }
5132                 else
5133                         { { echo "$as_me:$LINENO: error:
5134 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5135 " >&5
5136 echo "$as_me: error:
5137 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5138 " >&2;}
5139    { (exit 1); exit 1; }; }
5140                 fi
5141         fi
5142
5143         if test -e "${CP}"; then
5144                 CP=`readlink -f "${CP}"`
5145         fi
5146
5147         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
5148
5149         test "${CP}"
5150
5151
5152
5153
5154         if test -z ""; then
5155                 rq=true
5156         else
5157                 rq=false
5158         fi
5159
5160         if $rq; then
5161                 ensc_dflt=
5162         else
5163                 ensc_dflt=""
5164         fi
5165
5166         for ac_prog in dirname
5167 do
5168   # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_path_DIRNAME+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   case $DIRNAME in
5176   [\\/]* | ?:[\\/]*)
5177   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5178   ;;
5179   *)
5180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $ensc_searchpath
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195   ;;
5196 esac
5197 fi
5198 DIRNAME=$ac_cv_path_DIRNAME
5199 if test -n "$DIRNAME"; then
5200   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5201 echo "${ECHO_T}$DIRNAME" >&6; }
5202 else
5203   { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5205 fi
5206
5207
5208   test -n "$DIRNAME" && break
5209 done
5210 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
5211
5212
5213         if test -z "${DIRNAME}" && $rq; then
5214                 if test -z ""; then
5215                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
5216 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5217    { (exit 1); exit 1; }; }
5218                 else
5219                         { { echo "$as_me:$LINENO: error:
5220 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5221 " >&5
5222 echo "$as_me: error:
5223 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5224 " >&2;}
5225    { (exit 1); exit 1; }; }
5226                 fi
5227         fi
5228
5229         if test -e "${DIRNAME}"; then
5230                 DIRNAME=`readlink -f "${DIRNAME}"`
5231         fi
5232
5233         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
5234
5235         test "${DIRNAME}"
5236
5237
5238
5239
5240         if test -z ""; then
5241                 rq=true
5242         else
5243                 rq=false
5244         fi
5245
5246         if $rq; then
5247                 ensc_dflt=
5248         else
5249                 ensc_dflt=""
5250         fi
5251
5252         for ac_prog in egrep
5253 do
5254   # Extract the first word of "$ac_prog", so it can be a program name with args.
5255 set dummy $ac_prog; ac_word=$2
5256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5258 if test "${ac_cv_path_EGREP+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   case $EGREP in
5262   [\\/]* | ?:[\\/]*)
5263   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
5264   ;;
5265   *)
5266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $ensc_searchpath
5268 do
5269   IFS=$as_save_IFS
5270   test -z "$as_dir" && as_dir=.
5271   for ac_exec_ext in '' $ac_executable_extensions; do
5272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
5274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5275     break 2
5276   fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281   ;;
5282 esac
5283 fi
5284 EGREP=$ac_cv_path_EGREP
5285 if test -n "$EGREP"; then
5286   { echo "$as_me:$LINENO: result: $EGREP" >&5
5287 echo "${ECHO_T}$EGREP" >&6; }
5288 else
5289   { echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6; }
5291 fi
5292
5293
5294   test -n "$EGREP" && break
5295 done
5296 test -n "$EGREP" || EGREP="$ensc_dflt"
5297
5298
5299         if test -z "${EGREP}" && $rq; then
5300                 if test -z ""; then
5301                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
5302 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5303    { (exit 1); exit 1; }; }
5304                 else
5305                         { { echo "$as_me:$LINENO: error:
5306 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5307 " >&5
5308 echo "$as_me: error:
5309 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5310 " >&2;}
5311    { (exit 1); exit 1; }; }
5312                 fi
5313         fi
5314
5315         if test -e "${EGREP}"; then
5316                 EGREP=`readlink -f "${EGREP}"`
5317         fi
5318
5319         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
5320
5321         test "${EGREP}"
5322
5323
5324
5325
5326         if test -z ""; then
5327                 rq=true
5328         else
5329                 rq=false
5330         fi
5331
5332         if $rq; then
5333                 ensc_dflt=
5334         else
5335                 ensc_dflt=""
5336         fi
5337
5338         for ac_prog in env
5339 do
5340   # Extract the first word of "$ac_prog", so it can be a program name with args.
5341 set dummy $ac_prog; ac_word=$2
5342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5344 if test "${ac_cv_path_ENV+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   case $ENV in
5348   [\\/]* | ?:[\\/]*)
5349   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
5350   ;;
5351   *)
5352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $ensc_searchpath
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357   for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
5360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367   ;;
5368 esac
5369 fi
5370 ENV=$ac_cv_path_ENV
5371 if test -n "$ENV"; then
5372   { echo "$as_me:$LINENO: result: $ENV" >&5
5373 echo "${ECHO_T}$ENV" >&6; }
5374 else
5375   { echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6; }
5377 fi
5378
5379
5380   test -n "$ENV" && break
5381 done
5382 test -n "$ENV" || ENV="$ensc_dflt"
5383
5384
5385         if test -z "${ENV}" && $rq; then
5386                 if test -z ""; then
5387                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
5388 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5389    { (exit 1); exit 1; }; }
5390                 else
5391                         { { echo "$as_me:$LINENO: error:
5392 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5393 " >&5
5394 echo "$as_me: error:
5395 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5396 " >&2;}
5397    { (exit 1); exit 1; }; }
5398                 fi
5399         fi
5400
5401         if test -e "${ENV}"; then
5402                 ENV=`readlink -f "${ENV}"`
5403         fi
5404
5405         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
5406
5407         test "${ENV}"
5408
5409
5410
5411
5412         if test -z ""; then
5413                 rq=true
5414         else
5415                 rq=false
5416         fi
5417
5418         if $rq; then
5419                 ensc_dflt=
5420         else
5421                 ensc_dflt=""
5422         fi
5423
5424         for ac_prog in grep
5425 do
5426   # Extract the first word of "$ac_prog", so it can be a program name with args.
5427 set dummy $ac_prog; ac_word=$2
5428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5430 if test "${ac_cv_path_GREP+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   case $GREP in
5434   [\\/]* | ?:[\\/]*)
5435   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5436   ;;
5437   *)
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $ensc_searchpath
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443   for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450 done
5451 IFS=$as_save_IFS
5452
5453   ;;
5454 esac
5455 fi
5456 GREP=$ac_cv_path_GREP
5457 if test -n "$GREP"; then
5458   { echo "$as_me:$LINENO: result: $GREP" >&5
5459 echo "${ECHO_T}$GREP" >&6; }
5460 else
5461   { echo "$as_me:$LINENO: result: no" >&5
5462 echo "${ECHO_T}no" >&6; }
5463 fi
5464
5465
5466   test -n "$GREP" && break
5467 done
5468 test -n "$GREP" || GREP="$ensc_dflt"
5469
5470
5471         if test -z "${GREP}" && $rq; then
5472                 if test -z ""; then
5473                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
5474 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5475    { (exit 1); exit 1; }; }
5476                 else
5477                         { { echo "$as_me:$LINENO: error:
5478 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5479 " >&5
5480 echo "$as_me: error:
5481 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5482 " >&2;}
5483    { (exit 1); exit 1; }; }
5484                 fi
5485         fi
5486
5487         if test -e "${GREP}"; then
5488                 GREP=`readlink -f "${GREP}"`
5489         fi
5490
5491         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
5492
5493         test "${GREP}"
5494
5495
5496
5497
5498         if test -z ""; then
5499                 rq=true
5500         else
5501                 rq=false
5502         fi
5503
5504         if $rq; then
5505                 ensc_dflt=
5506         else
5507                 ensc_dflt=""
5508         fi
5509
5510         for ac_prog in ln
5511 do
5512   # Extract the first word of "$ac_prog", so it can be a program name with args.
5513 set dummy $ac_prog; ac_word=$2
5514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5516 if test "${ac_cv_path_LN+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   case $LN in
5520   [\\/]* | ?:[\\/]*)
5521   ac_cv_path_LN="$LN" # Let the user override the test with a path.
5522   ;;
5523   *)
5524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $ensc_searchpath
5526 do
5527   IFS=$as_save_IFS
5528   test -z "$as_dir" && as_dir=.
5529   for ac_exec_ext in '' $ac_executable_extensions; do
5530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533     break 2
5534   fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539   ;;
5540 esac
5541 fi
5542 LN=$ac_cv_path_LN
5543 if test -n "$LN"; then
5544   { echo "$as_me:$LINENO: result: $LN" >&5
5545 echo "${ECHO_T}$LN" >&6; }
5546 else
5547   { echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6; }
5549 fi
5550
5551
5552   test -n "$LN" && break
5553 done
5554 test -n "$LN" || LN="$ensc_dflt"
5555
5556
5557         if test -z "${LN}" && $rq; then
5558                 if test -z ""; then
5559                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
5560 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5561    { (exit 1); exit 1; }; }
5562                 else
5563                         { { echo "$as_me:$LINENO: error:
5564 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5565 " >&5
5566 echo "$as_me: error:
5567 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5568 " >&2;}
5569    { (exit 1); exit 1; }; }
5570                 fi
5571         fi
5572
5573         if test -e "${LN}"; then
5574                 LN=`readlink -f "${LN}"`
5575         fi
5576
5577         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
5578
5579         test "${LN}"
5580
5581
5582
5583
5584         if test -z ""; then
5585                 rq=true
5586         else
5587                 rq=false
5588         fi
5589
5590         if $rq; then
5591                 ensc_dflt=
5592         else
5593                 ensc_dflt=""
5594         fi
5595
5596         for ac_prog in mkdir
5597 do
5598   # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5602 if test "${ac_cv_path_MKDIR+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   case $MKDIR in
5606   [\\/]* | ?:[\\/]*)
5607   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5608   ;;
5609   *)
5610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $ensc_searchpath
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615   for ac_exec_ext in '' $ac_executable_extensions; do
5616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620   fi
5621 done
5622 done
5623 IFS=$as_save_IFS
5624
5625   ;;
5626 esac
5627 fi
5628 MKDIR=$ac_cv_path_MKDIR
5629 if test -n "$MKDIR"; then
5630   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5631 echo "${ECHO_T}$MKDIR" >&6; }
5632 else
5633   { echo "$as_me:$LINENO: result: no" >&5
5634 echo "${ECHO_T}no" >&6; }
5635 fi
5636
5637
5638   test -n "$MKDIR" && break
5639 done
5640 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5641
5642
5643         if test -z "${MKDIR}" && $rq; then
5644                 if test -z ""; then
5645                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5646 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5647    { (exit 1); exit 1; }; }
5648                 else
5649                         { { echo "$as_me:$LINENO: error:
5650 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5651 " >&5
5652 echo "$as_me: error:
5653 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5654 " >&2;}
5655    { (exit 1); exit 1; }; }
5656                 fi
5657         fi
5658
5659         if test -e "${MKDIR}"; then
5660                 MKDIR=`readlink -f "${MKDIR}"`
5661         fi
5662
5663         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5664
5665         test "${MKDIR}"
5666
5667
5668
5669
5670         if test -z ""; then
5671                 rq=true
5672         else
5673                 rq=false
5674         fi
5675
5676         if $rq; then
5677                 ensc_dflt=
5678         else
5679                 ensc_dflt=""
5680         fi
5681
5682         for ac_prog in mkfifo
5683 do
5684   # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5688 if test "${ac_cv_path_MKFIFO+set}" = set; then
5689   echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691   case $MKFIFO in
5692   [\\/]* | ?:[\\/]*)
5693   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5694   ;;
5695   *)
5696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $ensc_searchpath
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701   for ac_exec_ext in '' $ac_executable_extensions; do
5702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708 done
5709 IFS=$as_save_IFS
5710
5711   ;;
5712 esac
5713 fi
5714 MKFIFO=$ac_cv_path_MKFIFO
5715 if test -n "$MKFIFO"; then
5716   { echo "$as_me:$LINENO: result: $MKFIFO" >&5
5717 echo "${ECHO_T}$MKFIFO" >&6; }
5718 else
5719   { echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6; }
5721 fi
5722
5723
5724   test -n "$MKFIFO" && break
5725 done
5726 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5727
5728
5729         if test -z "${MKFIFO}" && $rq; then
5730                 if test -z ""; then
5731                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5732 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5733    { (exit 1); exit 1; }; }
5734                 else
5735                         { { echo "$as_me:$LINENO: error:
5736 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5737 " >&5
5738 echo "$as_me: error:
5739 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5740 " >&2;}
5741    { (exit 1); exit 1; }; }
5742                 fi
5743         fi
5744
5745         if test -e "${MKFIFO}"; then
5746                 MKFIFO=`readlink -f "${MKFIFO}"`
5747         fi
5748
5749         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5750
5751         test "${MKFIFO}"
5752
5753
5754
5755
5756         if test -z ""; then
5757                 rq=true
5758         else
5759                 rq=false
5760         fi
5761
5762         if $rq; then
5763                 ensc_dflt=
5764         else
5765                 ensc_dflt=""
5766         fi
5767
5768         for ac_prog in mktemp
5769 do
5770   # Extract the first word of "$ac_prog", so it can be a program name with args.
5771 set dummy $ac_prog; ac_word=$2
5772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774 if test "${ac_cv_path_MKTEMP+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   case $MKTEMP in
5778   [\\/]* | ?:[\\/]*)
5779   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5780   ;;
5781   *)
5782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $ensc_searchpath
5784 do
5785   IFS=$as_save_IFS
5786   test -z "$as_dir" && as_dir=.
5787   for ac_exec_ext in '' $ac_executable_extensions; do
5788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791     break 2
5792   fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5796
5797   ;;
5798 esac
5799 fi
5800 MKTEMP=$ac_cv_path_MKTEMP
5801 if test -n "$MKTEMP"; then
5802   { echo "$as_me:$LINENO: result: $MKTEMP" >&5
5803 echo "${ECHO_T}$MKTEMP" >&6; }
5804 else
5805   { echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6; }
5807 fi
5808
5809
5810   test -n "$MKTEMP" && break
5811 done
5812 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5813
5814
5815         if test -z "${MKTEMP}" && $rq; then
5816                 if test -z ""; then
5817                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5818 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5819    { (exit 1); exit 1; }; }
5820                 else
5821                         { { echo "$as_me:$LINENO: error:
5822 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5823 " >&5
5824 echo "$as_me: error:
5825 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5826 " >&2;}
5827    { (exit 1); exit 1; }; }
5828                 fi
5829         fi
5830
5831         if test -e "${MKTEMP}"; then
5832                 MKTEMP=`readlink -f "${MKTEMP}"`
5833         fi
5834
5835         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5836
5837         test "${MKTEMP}"
5838
5839
5840
5841
5842         if test -z ""; then
5843                 rq=true
5844         else
5845                 rq=false
5846         fi
5847
5848         if $rq; then
5849                 ensc_dflt=
5850         else
5851                 ensc_dflt=""
5852         fi
5853
5854         for ac_prog in mount
5855 do
5856   # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5860 if test "${ac_cv_path_MOUNT+set}" = set; then
5861   echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863   case $MOUNT in
5864   [\\/]* | ?:[\\/]*)
5865   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5866   ;;
5867   *)
5868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $ensc_searchpath
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883   ;;
5884 esac
5885 fi
5886 MOUNT=$ac_cv_path_MOUNT
5887 if test -n "$MOUNT"; then
5888   { echo "$as_me:$LINENO: result: $MOUNT" >&5
5889 echo "${ECHO_T}$MOUNT" >&6; }
5890 else
5891   { echo "$as_me:$LINENO: result: no" >&5
5892 echo "${ECHO_T}no" >&6; }
5893 fi
5894
5895
5896   test -n "$MOUNT" && break
5897 done
5898 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5899
5900
5901         if test -z "${MOUNT}" && $rq; then
5902                 if test -z ""; then
5903                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5904 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5905    { (exit 1); exit 1; }; }
5906                 else
5907                         { { echo "$as_me:$LINENO: error:
5908 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5909 " >&5
5910 echo "$as_me: error:
5911 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5912 " >&2;}
5913    { (exit 1); exit 1; }; }
5914                 fi
5915         fi
5916
5917         if test -e "${MOUNT}"; then
5918                 MOUNT=`readlink -f "${MOUNT}"`
5919         fi
5920
5921         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5922
5923         test "${MOUNT}"
5924
5925
5926
5927
5928         if test -z ""; then
5929                 rq=true
5930         else
5931                 rq=false
5932         fi
5933
5934         if $rq; then
5935                 ensc_dflt=
5936         else
5937                 ensc_dflt=""
5938         fi
5939
5940         for ac_prog in mv
5941 do
5942   # Extract the first word of "$ac_prog", so it can be a program name with args.
5943 set dummy $ac_prog; ac_word=$2
5944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5946 if test "${ac_cv_path_MV+set}" = set; then
5947   echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949   case $MV in
5950   [\\/]* | ?:[\\/]*)
5951   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5952   ;;
5953   *)
5954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $ensc_searchpath
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967 IFS=$as_save_IFS
5968
5969   ;;
5970 esac
5971 fi
5972 MV=$ac_cv_path_MV
5973 if test -n "$MV"; then
5974   { echo "$as_me:$LINENO: result: $MV" >&5
5975 echo "${ECHO_T}$MV" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982   test -n "$MV" && break
5983 done
5984 test -n "$MV" || MV="$ensc_dflt"
5985
5986
5987         if test -z "${MV}" && $rq; then
5988                 if test -z ""; then
5989                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5990 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5991    { (exit 1); exit 1; }; }
5992                 else
5993                         { { echo "$as_me:$LINENO: error:
5994 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5995 " >&5
5996 echo "$as_me: error:
5997 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5998 " >&2;}
5999    { (exit 1); exit 1; }; }
6000                 fi
6001         fi
6002
6003         if test -e "${MV}"; then
6004                 MV=`readlink -f "${MV}"`
6005         fi
6006
6007         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
6008
6009         test "${MV}"
6010
6011
6012
6013
6014         if test -z ""; then
6015                 rq=true
6016         else
6017                 rq=false
6018         fi
6019
6020         if $rq; then
6021                 ensc_dflt=
6022         else
6023                 ensc_dflt=""
6024         fi
6025
6026         for ac_prog in nice
6027 do
6028   # Extract the first word of "$ac_prog", so it can be a program name with args.
6029 set dummy $ac_prog; ac_word=$2
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032 if test "${ac_cv_path_NICE+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035   case $NICE in
6036   [\\/]* | ?:[\\/]*)
6037   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
6038   ;;
6039   *)
6040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 for as_dir in $ensc_searchpath
6042 do
6043   IFS=$as_save_IFS
6044   test -z "$as_dir" && as_dir=.
6045   for ac_exec_ext in '' $ac_executable_extensions; do
6046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6047     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
6048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049     break 2
6050   fi
6051 done
6052 done
6053 IFS=$as_save_IFS
6054
6055   ;;
6056 esac
6057 fi
6058 NICE=$ac_cv_path_NICE
6059 if test -n "$NICE"; then
6060   { echo "$as_me:$LINENO: result: $NICE" >&5
6061 echo "${ECHO_T}$NICE" >&6; }
6062 else
6063   { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6065 fi
6066
6067
6068   test -n "$NICE" && break
6069 done
6070 test -n "$NICE" || NICE="$ensc_dflt"
6071
6072
6073         if test -z "${NICE}" && $rq; then
6074                 if test -z ""; then
6075                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
6076 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6077    { (exit 1); exit 1; }; }
6078                 else
6079                         { { echo "$as_me:$LINENO: error:
6080 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6081 " >&5
6082 echo "$as_me: error:
6083 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6084 " >&2;}
6085    { (exit 1); exit 1; }; }
6086                 fi
6087         fi
6088
6089         if test -e "${NICE}"; then
6090                 NICE=`readlink -f "${NICE}"`
6091         fi
6092
6093         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
6094
6095         test "${NICE}"
6096
6097
6098
6099
6100         if test -z ""; then
6101                 rq=true
6102         else
6103                 rq=false
6104         fi
6105
6106         if $rq; then
6107                 ensc_dflt=
6108         else
6109                 ensc_dflt=""
6110         fi
6111
6112         for ac_prog in ps
6113 do
6114   # Extract the first word of "$ac_prog", so it can be a program name with args.
6115 set dummy $ac_prog; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_path_PS+set}" = set; then
6119   echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121   case $PS in
6122   [\\/]* | ?:[\\/]*)
6123   ac_cv_path_PS="$PS" # Let the user override the test with a path.
6124   ;;
6125   *)
6126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $ensc_searchpath
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141   ;;
6142 esac
6143 fi
6144 PS=$ac_cv_path_PS
6145 if test -n "$PS"; then
6146   { echo "$as_me:$LINENO: result: $PS" >&5
6147 echo "${ECHO_T}$PS" >&6; }
6148 else
6149   { echo "$as_me:$LINENO: result: no" >&5
6150 echo "${ECHO_T}no" >&6; }
6151 fi
6152
6153
6154   test -n "$PS" && break
6155 done
6156 test -n "$PS" || PS="$ensc_dflt"
6157
6158
6159         if test -z "${PS}" && $rq; then
6160                 if test -z ""; then
6161                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
6162 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6163    { (exit 1); exit 1; }; }
6164                 else
6165                         { { echo "$as_me:$LINENO: error:
6166 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6167 " >&5
6168 echo "$as_me: error:
6169 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6170 " >&2;}
6171    { (exit 1); exit 1; }; }
6172                 fi
6173         fi
6174
6175         if test -e "${PS}"; then
6176                 PS=`readlink -f "${PS}"`
6177         fi
6178
6179         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
6180
6181         test "${PS}"
6182
6183
6184
6185
6186         if test -z ""; then
6187                 rq=true
6188         else
6189                 rq=false
6190         fi
6191
6192         if $rq; then
6193                 ensc_dflt=
6194         else
6195                 ensc_dflt=""
6196         fi
6197
6198         for ac_prog in rm
6199 do
6200   # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_path_RM+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   case $RM in
6208   [\\/]* | ?:[\\/]*)
6209   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6210   ;;
6211   *)
6212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $ensc_searchpath
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217   for ac_exec_ext in '' $ac_executable_extensions; do
6218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227   ;;
6228 esac
6229 fi
6230 RM=$ac_cv_path_RM
6231 if test -n "$RM"; then
6232   { echo "$as_me:$LINENO: result: $RM" >&5
6233 echo "${ECHO_T}$RM" >&6; }
6234 else
6235   { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6237 fi
6238
6239
6240   test -n "$RM" && break
6241 done
6242 test -n "$RM" || RM="$ensc_dflt"
6243
6244
6245         if test -z "${RM}" && $rq; then
6246                 if test -z ""; then
6247                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
6248 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6249    { (exit 1); exit 1; }; }
6250                 else
6251                         { { echo "$as_me:$LINENO: error:
6252 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6253 " >&5
6254 echo "$as_me: error:
6255 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6256 " >&2;}
6257    { (exit 1); exit 1; }; }
6258                 fi
6259         fi
6260
6261         if test -e "${RM}"; then
6262                 RM=`readlink -f "${RM}"`
6263         fi
6264
6265         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
6266
6267         test "${RM}"
6268
6269
6270
6271
6272         if test -z ""; then
6273                 rq=true
6274         else
6275                 rq=false
6276         fi
6277
6278         if $rq; then
6279                 ensc_dflt=
6280         else
6281                 ensc_dflt=""
6282         fi
6283
6284         for ac_prog in rmdir
6285 do
6286   # Extract the first word of "$ac_prog", so it can be a program name with args.
6287 set dummy $ac_prog; ac_word=$2
6288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6290 if test "${ac_cv_path_RMDIR+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   case $RMDIR in
6294   [\\/]* | ?:[\\/]*)
6295   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
6296   ;;
6297   *)
6298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $ensc_searchpath
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313   ;;
6314 esac
6315 fi
6316 RMDIR=$ac_cv_path_RMDIR
6317 if test -n "$RMDIR"; then
6318   { echo "$as_me:$LINENO: result: $RMDIR" >&5
6319 echo "${ECHO_T}$RMDIR" >&6; }
6320 else
6321   { echo "$as_me:$LINENO: result: no" >&5
6322 echo "${ECHO_T}no" >&6; }
6323 fi
6324
6325
6326   test -n "$RMDIR" && break
6327 done
6328 test -n "$RMDIR" || RMDIR="$ensc_dflt"
6329
6330
6331         if test -z "${RMDIR}" && $rq; then
6332                 if test -z ""; then
6333                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
6334 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6335    { (exit 1); exit 1; }; }
6336                 else
6337                         { { echo "$as_me:$LINENO: error:
6338 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6339 " >&5
6340 echo "$as_me: error:
6341 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6342 " >&2;}
6343    { (exit 1); exit 1; }; }
6344                 fi
6345         fi
6346
6347         if test -e "${RMDIR}"; then
6348                 RMDIR=`readlink -f "${RMDIR}"`
6349         fi
6350
6351         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
6352
6353         test "${RMDIR}"
6354
6355
6356
6357
6358         if test -z ""; then
6359                 rq=true
6360         else
6361                 rq=false
6362         fi
6363
6364         if $rq; then
6365                 ensc_dflt=
6366         else
6367                 ensc_dflt=""
6368         fi
6369
6370         for ac_prog in sed
6371 do
6372   # Extract the first word of "$ac_prog", so it can be a program name with args.
6373 set dummy $ac_prog; ac_word=$2
6374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376 if test "${ac_cv_path_SED+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   case $SED in
6380   [\\/]* | ?:[\\/]*)
6381   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6382   ;;
6383   *)
6384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $ensc_searchpath
6386 do
6387   IFS=$as_save_IFS
6388   test -z "$as_dir" && as_dir=.
6389   for ac_exec_ext in '' $ac_executable_extensions; do
6390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393     break 2
6394   fi
6395 done
6396 done
6397 IFS=$as_save_IFS
6398
6399   ;;
6400 esac
6401 fi
6402 SED=$ac_cv_path_SED
6403 if test -n "$SED"; then
6404   { echo "$as_me:$LINENO: result: $SED" >&5
6405 echo "${ECHO_T}$SED" >&6; }
6406 else
6407   { echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6; }
6409 fi
6410
6411
6412   test -n "$SED" && break
6413 done
6414 test -n "$SED" || SED="$ensc_dflt"
6415
6416
6417         if test -z "${SED}" && $rq; then
6418                 if test -z ""; then
6419                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
6420 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6421    { (exit 1); exit 1; }; }
6422                 else
6423                         { { echo "$as_me:$LINENO: error:
6424 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6425 " >&5
6426 echo "$as_me: error:
6427 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6428 " >&2;}
6429    { (exit 1); exit 1; }; }
6430                 fi
6431         fi
6432
6433         if test -e "${SED}"; then
6434                 SED=`readlink -f "${SED}"`
6435         fi
6436
6437         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
6438
6439         test "${SED}"
6440
6441
6442
6443
6444         if test -z ""; then
6445                 rq=true
6446         else
6447                 rq=false
6448         fi
6449
6450         if $rq; then
6451                 ensc_dflt=
6452         else
6453                 ensc_dflt=""
6454         fi
6455
6456         for ac_prog in sh
6457 do
6458   # Extract the first word of "$ac_prog", so it can be a program name with args.
6459 set dummy $ac_prog; ac_word=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_SH+set}" = set; then
6463   echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465   case $SH in
6466   [\\/]* | ?:[\\/]*)
6467   ac_cv_path_SH="$SH" # Let the user override the test with a path.
6468   ;;
6469   *)
6470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $ensc_searchpath
6472 do
6473   IFS=$as_save_IFS
6474   test -z "$as_dir" && as_dir=.
6475   for ac_exec_ext in '' $ac_executable_extensions; do
6476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479     break 2
6480   fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485   ;;
6486 esac
6487 fi
6488 SH=$ac_cv_path_SH
6489 if test -n "$SH"; then
6490   { echo "$as_me:$LINENO: result: $SH" >&5
6491 echo "${ECHO_T}$SH" >&6; }
6492 else
6493   { echo "$as_me:$LINENO: result: no" >&5
6494 echo "${ECHO_T}no" >&6; }
6495 fi
6496
6497
6498   test -n "$SH" && break
6499 done
6500 test -n "$SH" || SH="$ensc_dflt"
6501
6502
6503         if test -z "${SH}" && $rq; then
6504                 if test -z ""; then
6505                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
6506 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6507    { (exit 1); exit 1; }; }
6508                 else
6509                         { { echo "$as_me:$LINENO: error:
6510 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6511 " >&5
6512 echo "$as_me: error:
6513 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6514 " >&2;}
6515    { (exit 1); exit 1; }; }
6516                 fi
6517         fi
6518
6519         if test -e "${SH}"; then
6520                 SH=`readlink -f "${SH}"`
6521         fi
6522
6523         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
6524
6525         test "${SH}"
6526
6527
6528
6529
6530         if test -z ""; then
6531                 rq=true
6532         else
6533                 rq=false
6534         fi
6535
6536         if $rq; then
6537                 ensc_dflt=
6538         else
6539                 ensc_dflt=""
6540         fi
6541
6542         for ac_prog in tac
6543 do
6544   # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_TAC+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   case $TAC in
6552   [\\/]* | ?:[\\/]*)
6553   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
6554   ;;
6555   *)
6556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $ensc_searchpath
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561   for ac_exec_ext in '' $ac_executable_extensions; do
6562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
6564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571   ;;
6572 esac
6573 fi
6574 TAC=$ac_cv_path_TAC
6575 if test -n "$TAC"; then
6576   { echo "$as_me:$LINENO: result: $TAC" >&5
6577 echo "${ECHO_T}$TAC" >&6; }
6578 else
6579   { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6581 fi
6582
6583
6584   test -n "$TAC" && break
6585 done
6586 test -n "$TAC" || TAC="$ensc_dflt"
6587
6588
6589         if test -z "${TAC}" && $rq; then
6590                 if test -z ""; then
6591                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
6592 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6593    { (exit 1); exit 1; }; }
6594                 else
6595                         { { echo "$as_me:$LINENO: error:
6596 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6597 " >&5
6598 echo "$as_me: error:
6599 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6600 " >&2;}
6601    { (exit 1); exit 1; }; }
6602                 fi
6603         fi
6604
6605         if test -e "${TAC}"; then
6606                 TAC=`readlink -f "${TAC}"`
6607         fi
6608
6609         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
6610
6611         test "${TAC}"
6612
6613
6614
6615
6616         if test -z ""; then
6617                 rq=true
6618         else
6619                 rq=false
6620         fi
6621
6622         if $rq; then
6623                 ensc_dflt=
6624         else
6625                 ensc_dflt=""
6626         fi
6627
6628         for ac_prog in tar
6629 do
6630   # Extract the first word of "$ac_prog", so it can be a program name with args.
6631 set dummy $ac_prog; ac_word=$2
6632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6634 if test "${ac_cv_path_TAR+set}" = set; then
6635   echo $ECHO_N "(cached) $ECHO_C" >&6
6636 else
6637   case $TAR in
6638   [\\/]* | ?:[\\/]*)
6639   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6640   ;;
6641   *)
6642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $ensc_searchpath
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647   for ac_exec_ext in '' $ac_executable_extensions; do
6648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6649     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657   ;;
6658 esac
6659 fi
6660 TAR=$ac_cv_path_TAR
6661 if test -n "$TAR"; then
6662   { echo "$as_me:$LINENO: result: $TAR" >&5
6663 echo "${ECHO_T}$TAR" >&6; }
6664 else
6665   { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6667 fi
6668
6669
6670   test -n "$TAR" && break
6671 done
6672 test -n "$TAR" || TAR="$ensc_dflt"
6673
6674
6675         if test -z "${TAR}" && $rq; then
6676                 if test -z ""; then
6677                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6678 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6679    { (exit 1); exit 1; }; }
6680                 else
6681                         { { echo "$as_me:$LINENO: error:
6682 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6683 " >&5
6684 echo "$as_me: error:
6685 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6686 " >&2;}
6687    { (exit 1); exit 1; }; }
6688                 fi
6689         fi
6690
6691         if test -e "${TAR}"; then
6692                 TAR=`readlink -f "${TAR}"`
6693         fi
6694
6695         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6696
6697         test "${TAR}"
6698
6699
6700
6701
6702         if test -z ""; then
6703                 rq=true
6704         else
6705                 rq=false
6706         fi
6707
6708         if $rq; then
6709                 ensc_dflt=
6710         else
6711                 ensc_dflt=""
6712         fi
6713
6714         for ac_prog in touch
6715 do
6716   # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_TOUCH+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   case $TOUCH in
6724   [\\/]* | ?:[\\/]*)
6725   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6726   ;;
6727   *)
6728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $ensc_searchpath
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743   ;;
6744 esac
6745 fi
6746 TOUCH=$ac_cv_path_TOUCH
6747 if test -n "$TOUCH"; then
6748   { echo "$as_me:$LINENO: result: $TOUCH" >&5
6749 echo "${ECHO_T}$TOUCH" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755
6756   test -n "$TOUCH" && break
6757 done
6758 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6759
6760
6761         if test -z "${TOUCH}" && $rq; then
6762                 if test -z ""; then
6763                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6764 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6765    { (exit 1); exit 1; }; }
6766                 else
6767                         { { echo "$as_me:$LINENO: error:
6768 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6769 " >&5
6770 echo "$as_me: error:
6771 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6772 " >&2;}
6773    { (exit 1); exit 1; }; }
6774                 fi
6775         fi
6776
6777         if test -e "${TOUCH}"; then
6778                 TOUCH=`readlink -f "${TOUCH}"`
6779         fi
6780
6781         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6782
6783         test "${TOUCH}"
6784
6785
6786
6787
6788         if test -z ""; then
6789                 rq=true
6790         else
6791                 rq=false
6792         fi
6793
6794         if $rq; then
6795                 ensc_dflt=
6796         else
6797                 ensc_dflt=""
6798         fi
6799
6800         for ac_prog in tty
6801 do
6802   # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_TTY+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   case $TTY in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $ensc_searchpath
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829   ;;
6830 esac
6831 fi
6832 TTY=$ac_cv_path_TTY
6833 if test -n "$TTY"; then
6834   { echo "$as_me:$LINENO: result: $TTY" >&5
6835 echo "${ECHO_T}$TTY" >&6; }
6836 else
6837   { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6839 fi
6840
6841
6842   test -n "$TTY" && break
6843 done
6844 test -n "$TTY" || TTY="$ensc_dflt"
6845
6846
6847         if test -z "${TTY}" && $rq; then
6848                 if test -z ""; then
6849                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6850 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6851    { (exit 1); exit 1; }; }
6852                 else
6853                         { { echo "$as_me:$LINENO: error:
6854 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6855 " >&5
6856 echo "$as_me: error:
6857 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6858 " >&2;}
6859    { (exit 1); exit 1; }; }
6860                 fi
6861         fi
6862
6863         if test -e "${TTY}"; then
6864                 TTY=`readlink -f "${TTY}"`
6865         fi
6866
6867         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6868
6869         test "${TTY}"
6870
6871
6872
6873
6874         if test -z ""; then
6875                 rq=true
6876         else
6877                 rq=false
6878         fi
6879
6880         if $rq; then
6881                 ensc_dflt=
6882         else
6883                 ensc_dflt=""
6884         fi
6885
6886         for ac_prog in umount
6887 do
6888   # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 set dummy $ac_prog; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_UMOUNT+set}" = set; then
6893   echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895   case $UMOUNT in
6896   [\\/]* | ?:[\\/]*)
6897   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6898   ;;
6899   *)
6900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $ensc_searchpath
6902 do
6903   IFS=$as_save_IFS
6904   test -z "$as_dir" && as_dir=.
6905   for ac_exec_ext in '' $ac_executable_extensions; do
6906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909     break 2
6910   fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915   ;;
6916 esac
6917 fi
6918 UMOUNT=$ac_cv_path_UMOUNT
6919 if test -n "$UMOUNT"; then
6920   { echo "$as_me:$LINENO: result: $UMOUNT" >&5
6921 echo "${ECHO_T}$UMOUNT" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927
6928   test -n "$UMOUNT" && break
6929 done
6930 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6931
6932
6933         if test -z "${UMOUNT}" && $rq; then
6934                 if test -z ""; then
6935                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6936 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6937    { (exit 1); exit 1; }; }
6938                 else
6939                         { { echo "$as_me:$LINENO: error:
6940 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6941 " >&5
6942 echo "$as_me: error:
6943 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6944 " >&2;}
6945    { (exit 1); exit 1; }; }
6946                 fi
6947         fi
6948
6949         if test -e "${UMOUNT}"; then
6950                 UMOUNT=`readlink -f "${UMOUNT}"`
6951         fi
6952
6953         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6954
6955         test "${UMOUNT}"
6956
6957
6958
6959
6960         if test -z ""; then
6961                 rq=true
6962         else
6963                 rq=false
6964         fi
6965
6966         if $rq; then
6967                 ensc_dflt=
6968         else
6969                 ensc_dflt=""
6970         fi
6971
6972         for ac_prog in wc
6973 do
6974   # Extract the first word of "$ac_prog", so it can be a program name with args.
6975 set dummy $ac_prog; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_WC+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   case $WC in
6982   [\\/]* | ?:[\\/]*)
6983   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6984   ;;
6985   *)
6986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $ensc_searchpath
6988 do
6989   IFS=$as_save_IFS
6990   test -z "$as_dir" && as_dir=.
6991   for ac_exec_ext in '' $ac_executable_extensions; do
6992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995     break 2
6996   fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001   ;;
7002 esac
7003 fi
7004 WC=$ac_cv_path_WC
7005 if test -n "$WC"; then
7006   { echo "$as_me:$LINENO: result: $WC" >&5
7007 echo "${ECHO_T}$WC" >&6; }
7008 else
7009   { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7011 fi
7012
7013
7014   test -n "$WC" && break
7015 done
7016 test -n "$WC" || WC="$ensc_dflt"
7017
7018
7019         if test -z "${WC}" && $rq; then
7020                 if test -z ""; then
7021                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
7022 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7023    { (exit 1); exit 1; }; }
7024                 else
7025                         { { echo "$as_me:$LINENO: error:
7026 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7027 " >&5
7028 echo "$as_me: error:
7029 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7030 " >&2;}
7031    { (exit 1); exit 1; }; }
7032                 fi
7033         fi
7034
7035         if test -e "${WC}"; then
7036                 WC=`readlink -f "${WC}"`
7037         fi
7038
7039         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
7040
7041         test "${WC}"
7042
7043
7044
7045
7046
7047
7048         if test -z ""; then
7049                 rq=true
7050         else
7051                 rq=false
7052         fi
7053
7054         if $rq; then
7055                 ensc_dflt=
7056         else
7057                 ensc_dflt=""
7058         fi
7059
7060         for ac_prog in ip
7061 do
7062   # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_path_IP+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   case $IP in
7070   [\\/]* | ?:[\\/]*)
7071   ac_cv_path_IP="$IP" # Let the user override the test with a path.
7072   ;;
7073   *)
7074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $ensc_searchpath
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079   for ac_exec_ext in '' $ac_executable_extensions; do
7080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
7082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086 done
7087 IFS=$as_save_IFS
7088
7089   ;;
7090 esac
7091 fi
7092 IP=$ac_cv_path_IP
7093 if test -n "$IP"; then
7094   { echo "$as_me:$LINENO: result: $IP" >&5
7095 echo "${ECHO_T}$IP" >&6; }
7096 else
7097   { echo "$as_me:$LINENO: result: no" >&5
7098 echo "${ECHO_T}no" >&6; }
7099 fi
7100
7101
7102   test -n "$IP" && break
7103 done
7104 test -n "$IP" || IP="$ensc_dflt"
7105
7106
7107         if test -z "${IP}" && $rq; then
7108                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
7109                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
7110 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7111    { (exit 1); exit 1; }; }
7112                 else
7113                         { { echo "$as_me:$LINENO: error:
7114 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7115 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
7116 echo "$as_me: error:
7117 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7118 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
7119    { (exit 1); exit 1; }; }
7120                 fi
7121         fi
7122
7123         if test -e "${IP}"; then
7124                 IP=`readlink -f "${IP}"`
7125         fi
7126
7127         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
7128
7129         test "${IP}"
7130
7131
7132
7133
7134         if test -z ""; then
7135                 rq=true
7136         else
7137                 rq=false
7138         fi
7139
7140         if $rq; then
7141                 ensc_dflt=
7142         else
7143                 ensc_dflt=""
7144         fi
7145
7146         for ac_prog in iptables
7147 do
7148   # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_path_IPTABLES+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   case $IPTABLES in
7156   [\\/]* | ?:[\\/]*)
7157   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
7158   ;;
7159   *)
7160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $ensc_searchpath
7162 do
7163   IFS=$as_save_IFS
7164   test -z "$as_dir" && as_dir=.
7165   for ac_exec_ext in '' $ac_executable_extensions; do
7166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
7168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169     break 2
7170   fi
7171 done
7172 done
7173 IFS=$as_save_IFS
7174
7175   ;;
7176 esac
7177 fi
7178 IPTABLES=$ac_cv_path_IPTABLES
7179 if test -n "$IPTABLES"; then
7180   { echo "$as_me:$LINENO: result: $IPTABLES" >&5
7181 echo "${ECHO_T}$IPTABLES" >&6; }
7182 else
7183   { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7185 fi
7186
7187
7188   test -n "$IPTABLES" && break
7189 done
7190 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
7191
7192
7193         if test -z "${IPTABLES}" && $rq; then
7194                 if test -z ""; then
7195                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
7196 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7197    { (exit 1); exit 1; }; }
7198                 else
7199                         { { echo "$as_me:$LINENO: error:
7200 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7201 " >&5
7202 echo "$as_me: error:
7203 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7204 " >&2;}
7205    { (exit 1); exit 1; }; }
7206                 fi
7207         fi
7208
7209         if test -e "${IPTABLES}"; then
7210                 IPTABLES=`readlink -f "${IPTABLES}"`
7211         fi
7212
7213         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
7214
7215         test "${IPTABLES}"
7216
7217
7218
7219
7220         if test -z ""; then
7221                 rq=true
7222         else
7223                 rq=false
7224         fi
7225
7226         if $rq; then
7227                 ensc_dflt=
7228         else
7229                 ensc_dflt=""
7230         fi
7231
7232         for ac_prog in modprobe
7233 do
7234   # Extract the first word of "$ac_prog", so it can be a program name with args.
7235 set dummy $ac_prog; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_path_MODPROBE+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   case $MODPROBE in
7242   [\\/]* | ?:[\\/]*)
7243   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
7244   ;;
7245   *)
7246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $ensc_searchpath
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251   for ac_exec_ext in '' $ac_executable_extensions; do
7252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
7254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261   ;;
7262 esac
7263 fi
7264 MODPROBE=$ac_cv_path_MODPROBE
7265 if test -n "$MODPROBE"; then
7266   { echo "$as_me:$LINENO: result: $MODPROBE" >&5
7267 echo "${ECHO_T}$MODPROBE" >&6; }
7268 else
7269   { echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6; }
7271 fi
7272
7273
7274   test -n "$MODPROBE" && break
7275 done
7276 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
7277
7278
7279         if test -z "${MODPROBE}" && $rq; then
7280                 if test -z ""; then
7281                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
7282 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7283    { (exit 1); exit 1; }; }
7284                 else
7285                         { { echo "$as_me:$LINENO: error:
7286 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7287 " >&5
7288 echo "$as_me: error:
7289 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7290 " >&2;}
7291    { (exit 1); exit 1; }; }
7292                 fi
7293         fi
7294
7295         if test -e "${MODPROBE}"; then
7296                 MODPROBE=`readlink -f "${MODPROBE}"`
7297         fi
7298
7299         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
7300
7301         test "${MODPROBE}"
7302
7303
7304
7305
7306         if test -z ""; then
7307                 rq=true
7308         else
7309                 rq=false
7310         fi
7311
7312         if $rq; then
7313                 ensc_dflt=
7314         else
7315                 ensc_dflt=""
7316         fi
7317
7318         for ac_prog in nameif
7319 do
7320   # Extract the first word of "$ac_prog", so it can be a program name with args.
7321 set dummy $ac_prog; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_NAMEIF+set}" = set; then
7325   echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327   case $NAMEIF in
7328   [\\/]* | ?:[\\/]*)
7329   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
7330   ;;
7331   *)
7332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $ensc_searchpath
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337   for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
7340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347   ;;
7348 esac
7349 fi
7350 NAMEIF=$ac_cv_path_NAMEIF
7351 if test -n "$NAMEIF"; then
7352   { echo "$as_me:$LINENO: result: $NAMEIF" >&5
7353 echo "${ECHO_T}$NAMEIF" >&6; }
7354 else
7355   { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7357 fi
7358
7359
7360   test -n "$NAMEIF" && break
7361 done
7362 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
7363
7364
7365         if test -z "${NAMEIF}" && $rq; then
7366                 if test -z ""; then
7367                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
7368 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7369    { (exit 1); exit 1; }; }
7370                 else
7371                         { { echo "$as_me:$LINENO: error:
7372 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7373 " >&5
7374 echo "$as_me: error:
7375 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7376 " >&2;}
7377    { (exit 1); exit 1; }; }
7378                 fi
7379         fi
7380
7381         if test -e "${NAMEIF}"; then
7382                 NAMEIF=`readlink -f "${NAMEIF}"`
7383         fi
7384
7385         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
7386
7387         test "${NAMEIF}"
7388
7389
7390
7391
7392         if test -z ""; then
7393                 rq=true
7394         else
7395                 rq=false
7396         fi
7397
7398         if $rq; then
7399                 ensc_dflt=
7400         else
7401                 ensc_dflt=""
7402         fi
7403
7404         for ac_prog in nohup
7405 do
7406   # Extract the first word of "$ac_prog", so it can be a program name with args.
7407 set dummy $ac_prog; ac_word=$2
7408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7410 if test "${ac_cv_path_NOHUP+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $NOHUP in
7414   [\\/]* | ?:[\\/]*)
7415   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
7416   ;;
7417   *)
7418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $ensc_searchpath
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433   ;;
7434 esac
7435 fi
7436 NOHUP=$ac_cv_path_NOHUP
7437 if test -n "$NOHUP"; then
7438   { echo "$as_me:$LINENO: result: $NOHUP" >&5
7439 echo "${ECHO_T}$NOHUP" >&6; }
7440 else
7441   { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7443 fi
7444
7445
7446   test -n "$NOHUP" && break
7447 done
7448 test -n "$NOHUP" || NOHUP="$ensc_dflt"
7449
7450
7451         if test -z "${NOHUP}" && $rq; then
7452                 if test -z ""; then
7453                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
7454 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7455    { (exit 1); exit 1; }; }
7456                 else
7457                         { { echo "$as_me:$LINENO: error:
7458 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7459 " >&5
7460 echo "$as_me: error:
7461 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7462 " >&2;}
7463    { (exit 1); exit 1; }; }
7464                 fi
7465         fi
7466
7467         if test -e "${NOHUP}"; then
7468                 NOHUP=`readlink -f "${NOHUP}"`
7469         fi
7470
7471         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
7472
7473         test "${NOHUP}"
7474
7475
7476
7477
7478         if test -z ""; then
7479                 rq=true
7480         else
7481                 rq=false
7482         fi
7483
7484         if $rq; then
7485                 ensc_dflt=
7486         else
7487                 ensc_dflt=""
7488         fi
7489
7490         for ac_prog in rmmod
7491 do
7492   # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7496 if test "${ac_cv_path_RMMOD+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   case $RMMOD in
7500   [\\/]* | ?:[\\/]*)
7501   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
7502   ;;
7503   *)
7504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $ensc_searchpath
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509   for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
7512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519   ;;
7520 esac
7521 fi
7522 RMMOD=$ac_cv_path_RMMOD
7523 if test -n "$RMMOD"; then
7524   { echo "$as_me:$LINENO: result: $RMMOD" >&5
7525 echo "${ECHO_T}$RMMOD" >&6; }
7526 else
7527   { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7529 fi
7530
7531
7532   test -n "$RMMOD" && break
7533 done
7534 test -n "$RMMOD" || RMMOD="$ensc_dflt"
7535
7536
7537         if test -z "${RMMOD}" && $rq; then
7538                 if test -z ""; then
7539                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
7540 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7541    { (exit 1); exit 1; }; }
7542                 else
7543                         { { echo "$as_me:$LINENO: error:
7544 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7545 " >&5
7546 echo "$as_me: error:
7547 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7548 " >&2;}
7549    { (exit 1); exit 1; }; }
7550                 fi
7551         fi
7552
7553         if test -e "${RMMOD}"; then
7554                 RMMOD=`readlink -f "${RMMOD}"`
7555         fi
7556
7557         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
7558
7559         test "${RMMOD}"
7560
7561
7562
7563
7564         if test -z ""; then
7565                 rq=true
7566         else
7567                 rq=false
7568         fi
7569
7570         if $rq; then
7571                 ensc_dflt=
7572         else
7573                 ensc_dflt=""
7574         fi
7575
7576         for ac_prog in vconfig
7577 do
7578   # Extract the first word of "$ac_prog", so it can be a program name with args.
7579 set dummy $ac_prog; ac_word=$2
7580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7582 if test "${ac_cv_path_VCONFIG+set}" = set; then
7583   echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585   case $VCONFIG in
7586   [\\/]* | ?:[\\/]*)
7587   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
7588   ;;
7589   *)
7590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $ensc_searchpath
7592 do
7593   IFS=$as_save_IFS
7594   test -z "$as_dir" && as_dir=.
7595   for ac_exec_ext in '' $ac_executable_extensions; do
7596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
7598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7599     break 2
7600   fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605   ;;
7606 esac
7607 fi
7608 VCONFIG=$ac_cv_path_VCONFIG
7609 if test -n "$VCONFIG"; then
7610   { echo "$as_me:$LINENO: result: $VCONFIG" >&5
7611 echo "${ECHO_T}$VCONFIG" >&6; }
7612 else
7613   { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7615 fi
7616
7617
7618   test -n "$VCONFIG" && break
7619 done
7620 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
7621
7622
7623         if test -z "${VCONFIG}" && $rq; then
7624                 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
7625                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
7626 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7627    { (exit 1); exit 1; }; }
7628                 else
7629                         { { echo "$as_me:$LINENO: error:
7630 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7631 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
7632 echo "$as_me: error:
7633 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7634 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
7635    { (exit 1); exit 1; }; }
7636                 fi
7637         fi
7638
7639         if test -e "${VCONFIG}"; then
7640                 VCONFIG=`readlink -f "${VCONFIG}"`
7641         fi
7642
7643         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
7644
7645         test "${VCONFIG}"
7646
7647
7648
7649
7650         if test -z ""; then
7651                 rq=true
7652         else
7653                 rq=false
7654         fi
7655
7656         if $rq; then
7657                 ensc_dflt=
7658         else
7659                 ensc_dflt=""
7660         fi
7661
7662         for ac_prog in wget
7663 do
7664   # Extract the first word of "$ac_prog", so it can be a program name with args.
7665 set dummy $ac_prog; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_WGET+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case $WGET in
7672   [\\/]* | ?:[\\/]*)
7673   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7674   ;;
7675   *)
7676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $ensc_searchpath
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691   ;;
7692 esac
7693 fi
7694 WGET=$ac_cv_path_WGET
7695 if test -n "$WGET"; then
7696   { echo "$as_me:$LINENO: result: $WGET" >&5
7697 echo "${ECHO_T}$WGET" >&6; }
7698 else
7699   { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7701 fi
7702
7703
7704   test -n "$WGET" && break
7705 done
7706 test -n "$WGET" || WGET="$ensc_dflt"
7707
7708
7709         if test -z "${WGET}" && $rq; then
7710                 if test -z ""; then
7711                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7712 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7713    { (exit 1); exit 1; }; }
7714                 else
7715                         { { echo "$as_me:$LINENO: error:
7716 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7717 " >&5
7718 echo "$as_me: error:
7719 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7720 " >&2;}
7721    { (exit 1); exit 1; }; }
7722                 fi
7723         fi
7724
7725         if test -e "${WGET}"; then
7726                 WGET=`readlink -f "${WGET}"`
7727         fi
7728
7729         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7730
7731         test "${WGET}"
7732
7733
7734
7735
7736         if test -z "file"; then
7737                 rq=true
7738         else
7739                 rq=false
7740         fi
7741
7742         if $rq; then
7743                 ensc_dflt=
7744         else
7745                 ensc_dflt="file"
7746         fi
7747
7748         for ac_prog in file
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_FILE+set}" = set; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   case $FILE in
7758   [\\/]* | ?:[\\/]*)
7759   ac_cv_path_FILE="$FILE" # 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_FILE="$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 FILE=$ac_cv_path_FILE
7781 if test -n "$FILE"; then
7782   { echo "$as_me:$LINENO: result: $FILE" >&5
7783 echo "${ECHO_T}$FILE" >&6; }
7784 else
7785   { echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6; }
7787 fi
7788
7789
7790   test -n "$FILE" && break
7791 done
7792 test -n "$FILE" || FILE="$ensc_dflt"
7793
7794
7795         if test -z "${FILE}" && $rq; then
7796                 if test -z ""; then
7797                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7798 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7799    { (exit 1); exit 1; }; }
7800                 else
7801                         { { echo "$as_me:$LINENO: error:
7802 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7803 " >&5
7804 echo "$as_me: error:
7805 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7806 " >&2;}
7807    { (exit 1); exit 1; }; }
7808                 fi
7809         fi
7810
7811         if test -e "${FILE}"; then
7812                 FILE=`readlink -f "${FILE}"`
7813         fi
7814
7815         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7816
7817         test "${FILE}"
7818
7819
7820
7821
7822         if test -z "gzip"; then
7823                 rq=true
7824         else
7825                 rq=false
7826         fi
7827
7828         if $rq; then
7829                 ensc_dflt=
7830         else
7831                 ensc_dflt="gzip"
7832         fi
7833
7834         for ac_prog in gzip
7835 do
7836   # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_GZIP+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   case $GZIP in
7844   [\\/]* | ?:[\\/]*)
7845   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7846   ;;
7847   *)
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $ensc_searchpath
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853   for ac_exec_ext in '' $ac_executable_extensions; do
7854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863   ;;
7864 esac
7865 fi
7866 GZIP=$ac_cv_path_GZIP
7867 if test -n "$GZIP"; then
7868   { echo "$as_me:$LINENO: result: $GZIP" >&5
7869 echo "${ECHO_T}$GZIP" >&6; }
7870 else
7871   { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7873 fi
7874
7875
7876   test -n "$GZIP" && break
7877 done
7878 test -n "$GZIP" || GZIP="$ensc_dflt"
7879
7880
7881         if test -z "${GZIP}" && $rq; then
7882                 if test -z ""; then
7883                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7884 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7885    { (exit 1); exit 1; }; }
7886                 else
7887                         { { echo "$as_me:$LINENO: error:
7888 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7889 " >&5
7890 echo "$as_me: error:
7891 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7892 " >&2;}
7893    { (exit 1); exit 1; }; }
7894                 fi
7895         fi
7896
7897         if test -e "${GZIP}"; then
7898                 GZIP=`readlink -f "${GZIP}"`
7899         fi
7900
7901         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7902
7903         test "${GZIP}"
7904
7905
7906
7907
7908         if test -z "bzip2"; then
7909                 rq=true
7910         else
7911                 rq=false
7912         fi
7913
7914         if $rq; then
7915                 ensc_dflt=
7916         else
7917                 ensc_dflt="bzip2"
7918         fi
7919
7920         for ac_prog in bzip2
7921 do
7922   # Extract the first word of "$ac_prog", so it can be a program name with args.
7923 set dummy $ac_prog; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_path_BZIP2+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   case $BZIP2 in
7930   [\\/]* | ?:[\\/]*)
7931   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7932   ;;
7933   *)
7934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $ensc_searchpath
7936 do
7937   IFS=$as_save_IFS
7938   test -z "$as_dir" && as_dir=.
7939   for ac_exec_ext in '' $ac_executable_extensions; do
7940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946 done
7947 IFS=$as_save_IFS
7948
7949   ;;
7950 esac
7951 fi
7952 BZIP2=$ac_cv_path_BZIP2
7953 if test -n "$BZIP2"; then
7954   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7955 echo "${ECHO_T}$BZIP2" >&6; }
7956 else
7957   { echo "$as_me:$LINENO: result: no" >&5
7958 echo "${ECHO_T}no" >&6; }
7959 fi
7960
7961
7962   test -n "$BZIP2" && break
7963 done
7964 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7965
7966
7967         if test -z "${BZIP2}" && $rq; then
7968                 if test -z ""; then
7969                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7970 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7971    { (exit 1); exit 1; }; }
7972                 else
7973                         { { echo "$as_me:$LINENO: error:
7974 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7975 " >&5
7976 echo "$as_me: error:
7977 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7978 " >&2;}
7979    { (exit 1); exit 1; }; }
7980                 fi
7981         fi
7982
7983         if test -e "${BZIP2}"; then
7984                 BZIP2=`readlink -f "${BZIP2}"`
7985         fi
7986
7987         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7988
7989         test "${BZIP2}"
7990
7991
7992
7993
7994         if test -z "cpio"; then
7995                 rq=true
7996         else
7997                 rq=false
7998         fi
7999
8000         if $rq; then
8001                 ensc_dflt=
8002         else
8003                 ensc_dflt="cpio"
8004         fi
8005
8006         for ac_prog in cpio
8007 do
8008   # Extract the first word of "$ac_prog", so it can be a program name with args.
8009 set dummy $ac_prog; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_path_CPIO+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   case $CPIO in
8016   [\\/]* | ?:[\\/]*)
8017   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
8018   ;;
8019   *)
8020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $ensc_searchpath
8022 do
8023   IFS=$as_save_IFS
8024   test -z "$as_dir" && as_dir=.
8025   for ac_exec_ext in '' $ac_executable_extensions; do
8026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8027     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
8028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029     break 2
8030   fi
8031 done
8032 done
8033 IFS=$as_save_IFS
8034
8035   ;;
8036 esac
8037 fi
8038 CPIO=$ac_cv_path_CPIO
8039 if test -n "$CPIO"; then
8040   { echo "$as_me:$LINENO: result: $CPIO" >&5
8041 echo "${ECHO_T}$CPIO" >&6; }
8042 else
8043   { echo "$as_me:$LINENO: result: no" >&5
8044 echo "${ECHO_T}no" >&6; }
8045 fi
8046
8047
8048   test -n "$CPIO" && break
8049 done
8050 test -n "$CPIO" || CPIO="$ensc_dflt"
8051
8052
8053         if test -z "${CPIO}" && $rq; then
8054                 if test -z ""; then
8055                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
8056 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8057    { (exit 1); exit 1; }; }
8058                 else
8059                         { { echo "$as_me:$LINENO: error:
8060 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8061 " >&5
8062 echo "$as_me: error:
8063 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8064 " >&2;}
8065    { (exit 1); exit 1; }; }
8066                 fi
8067         fi
8068
8069         if test -e "${CPIO}"; then
8070                 CPIO=`readlink -f "${CPIO}"`
8071         fi
8072
8073         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
8074
8075         test "${CPIO}"
8076
8077
8078
8079
8080         if test -z "restore"; then
8081                 rq=true
8082         else
8083                 rq=false
8084         fi
8085
8086         if $rq; then
8087                 ensc_dflt=
8088         else
8089                 ensc_dflt="restore"
8090         fi
8091
8092         for ac_prog in restore
8093 do
8094   # Extract the first word of "$ac_prog", so it can be a program name with args.
8095 set dummy $ac_prog; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_RESTORE+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   case $RESTORE in
8102   [\\/]* | ?:[\\/]*)
8103   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
8104   ;;
8105   *)
8106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in $ensc_searchpath
8108 do
8109   IFS=$as_save_IFS
8110   test -z "$as_dir" && as_dir=.
8111   for ac_exec_ext in '' $ac_executable_extensions; do
8112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8113     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
8114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115     break 2
8116   fi
8117 done
8118 done
8119 IFS=$as_save_IFS
8120
8121   ;;
8122 esac
8123 fi
8124 RESTORE=$ac_cv_path_RESTORE
8125 if test -n "$RESTORE"; then
8126   { echo "$as_me:$LINENO: result: $RESTORE" >&5
8127 echo "${ECHO_T}$RESTORE" >&6; }
8128 else
8129   { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8131 fi
8132
8133
8134   test -n "$RESTORE" && break
8135 done
8136 test -n "$RESTORE" || RESTORE="$ensc_dflt"
8137
8138
8139         if test -z "${RESTORE}" && $rq; then
8140                 if test -z ""; then
8141                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
8142 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8143    { (exit 1); exit 1; }; }
8144                 else
8145                         { { echo "$as_me:$LINENO: error:
8146 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8147 " >&5
8148 echo "$as_me: error:
8149 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8150 " >&2;}
8151    { (exit 1); exit 1; }; }
8152                 fi
8153         fi
8154
8155         if test -e "${RESTORE}"; then
8156                 RESTORE=`readlink -f "${RESTORE}"`
8157         fi
8158
8159         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
8160
8161         test "${RESTORE}"
8162
8163
8164
8165
8166         if test -z "rsync"; then
8167                 rq=true
8168         else
8169                 rq=false
8170         fi
8171
8172         if $rq; then
8173                 ensc_dflt=
8174         else
8175                 ensc_dflt="rsync"
8176         fi
8177
8178         for ac_prog in rsync
8179 do
8180   # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184 if test "${ac_cv_path_RSYNC+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   case $RSYNC in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $ensc_searchpath
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197   for ac_exec_ext in '' $ac_executable_extensions; do
8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
8200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207   ;;
8208 esac
8209 fi
8210 RSYNC=$ac_cv_path_RSYNC
8211 if test -n "$RSYNC"; then
8212   { echo "$as_me:$LINENO: result: $RSYNC" >&5
8213 echo "${ECHO_T}$RSYNC" >&6; }
8214 else
8215   { echo "$as_me:$LINENO: result: no" >&5
8216 echo "${ECHO_T}no" >&6; }
8217 fi
8218
8219
8220   test -n "$RSYNC" && break
8221 done
8222 test -n "$RSYNC" || RSYNC="$ensc_dflt"
8223
8224
8225         if test -z "${RSYNC}" && $rq; then
8226                 if test -z ""; then
8227                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
8228 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8229    { (exit 1); exit 1; }; }
8230                 else
8231                         { { echo "$as_me:$LINENO: error:
8232 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8233 " >&5
8234 echo "$as_me: error:
8235 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8236 " >&2;}
8237    { (exit 1); exit 1; }; }
8238                 fi
8239         fi
8240
8241         if test -e "${RSYNC}"; then
8242                 RSYNC=`readlink -f "${RSYNC}"`
8243         fi
8244
8245         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
8246
8247         test "${RSYNC}"
8248
8249
8250
8251
8252         if test -z "strace"; then
8253                 rq=true
8254         else
8255                 rq=false
8256         fi
8257
8258         if $rq; then
8259                 ensc_dflt=
8260         else
8261                 ensc_dflt="strace"
8262         fi
8263
8264         for ac_prog in strace
8265 do
8266   # Extract the first word of "$ac_prog", so it can be a program name with args.
8267 set dummy $ac_prog; ac_word=$2
8268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8270 if test "${ac_cv_path_STRACE+set}" = set; then
8271   echo $ECHO_N "(cached) $ECHO_C" >&6
8272 else
8273   case $STRACE in
8274   [\\/]* | ?:[\\/]*)
8275   ac_cv_path_STRACE="$STRACE" # Let the user override the test with a path.
8276   ;;
8277   *)
8278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $ensc_searchpath
8280 do
8281   IFS=$as_save_IFS
8282   test -z "$as_dir" && as_dir=.
8283   for ac_exec_ext in '' $ac_executable_extensions; do
8284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285     ac_cv_path_STRACE="$as_dir/$ac_word$ac_exec_ext"
8286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8287     break 2
8288   fi
8289 done
8290 done
8291 IFS=$as_save_IFS
8292
8293   ;;
8294 esac
8295 fi
8296 STRACE=$ac_cv_path_STRACE
8297 if test -n "$STRACE"; then
8298   { echo "$as_me:$LINENO: result: $STRACE" >&5
8299 echo "${ECHO_T}$STRACE" >&6; }
8300 else
8301   { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8303 fi
8304
8305
8306   test -n "$STRACE" && break
8307 done
8308 test -n "$STRACE" || STRACE="$ensc_dflt"
8309
8310
8311         if test -z "${STRACE}" && $rq; then
8312                 if test -z ""; then
8313                         { { echo "$as_me:$LINENO: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&5
8314 echo "$as_me: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8315    { (exit 1); exit 1; }; }
8316                 else
8317                         { { echo "$as_me:$LINENO: error:
8318 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8319 " >&5
8320 echo "$as_me: error:
8321 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8322 " >&2;}
8323    { (exit 1); exit 1; }; }
8324                 fi
8325         fi
8326
8327         if test -e "${STRACE}"; then
8328                 STRACE=`readlink -f "${STRACE}"`
8329         fi
8330
8331         test "${STRACE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'STRACE'@!${STRACE}!g;"
8332
8333         test "${STRACE}"
8334
8335
8336
8337
8338         if test -z ""; then
8339                 rq=true
8340         else
8341                 rq=false
8342         fi
8343
8344         if $rq; then
8345                 ensc_dflt=
8346         else
8347                 ensc_dflt=""
8348         fi
8349
8350         for ac_prog in fsck
8351 do
8352   # Extract the first word of "$ac_prog", so it can be a program name with args.
8353 set dummy $ac_prog; ac_word=$2
8354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8356 if test "${ac_cv_path_FSCK+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   case $FSCK in
8360   [\\/]* | ?:[\\/]*)
8361   ac_cv_path_FSCK="$FSCK" # Let the user override the test with a path.
8362   ;;
8363   *)
8364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $ensc_searchpath
8366 do
8367   IFS=$as_save_IFS
8368   test -z "$as_dir" && as_dir=.
8369   for ac_exec_ext in '' $ac_executable_extensions; do
8370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371     ac_cv_path_FSCK="$as_dir/$ac_word$ac_exec_ext"
8372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373     break 2
8374   fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379   ;;
8380 esac
8381 fi
8382 FSCK=$ac_cv_path_FSCK
8383 if test -n "$FSCK"; then
8384   { echo "$as_me:$LINENO: result: $FSCK" >&5
8385 echo "${ECHO_T}$FSCK" >&6; }
8386 else
8387   { echo "$as_me:$LINENO: result: no" >&5
8388 echo "${ECHO_T}no" >&6; }
8389 fi
8390
8391
8392   test -n "$FSCK" && break
8393 done
8394 test -n "$FSCK" || FSCK="$ensc_dflt"
8395
8396
8397         if test -z "${FSCK}" && $rq; then
8398                 if test -z ""; then
8399                         { { echo "$as_me:$LINENO: error: Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'." >&5
8400 echo "$as_me: error: Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8401    { (exit 1); exit 1; }; }
8402                 else
8403                         { { echo "$as_me:$LINENO: error:
8404 Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'.
8405 " >&5
8406 echo "$as_me: error:
8407 Can not find the 'fsck' tool within '${ensc_searchpath:-$PATH}'.
8408 " >&2;}
8409    { (exit 1); exit 1; }; }
8410                 fi
8411         fi
8412
8413         if test -e "${FSCK}"; then
8414                 FSCK=`readlink -f "${FSCK}"`
8415         fi
8416
8417         test "${FSCK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FSCK'@!${FSCK}!g;"
8418
8419         test "${FSCK}"
8420
8421
8422
8423
8424
8425         if test -z ":"; then
8426                 rq=true
8427         else
8428                 rq=false
8429         fi
8430
8431         if $rq; then
8432                 ensc_dflt=
8433         else
8434                 ensc_dflt=":"
8435         fi
8436
8437         for ac_prog in doxygen
8438 do
8439   # Extract the first word of "$ac_prog", so it can be a program name with args.
8440 set dummy $ac_prog; ac_word=$2
8441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8443 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8444   echo $ECHO_N "(cached) $ECHO_C" >&6
8445 else
8446   case $DOXYGEN in
8447   [\\/]* | ?:[\\/]*)
8448   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8449   ;;
8450   *)
8451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $ensc_searchpath
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456   for ac_exec_ext in '' $ac_executable_extensions; do
8457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463 done
8464 IFS=$as_save_IFS
8465
8466   ;;
8467 esac
8468 fi
8469 DOXYGEN=$ac_cv_path_DOXYGEN
8470 if test -n "$DOXYGEN"; then
8471   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8472 echo "${ECHO_T}$DOXYGEN" >&6; }
8473 else
8474   { echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6; }
8476 fi
8477
8478
8479   test -n "$DOXYGEN" && break
8480 done
8481 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
8482
8483
8484         if test -z "${DOXYGEN}" && $rq; then
8485                 if test -z ""; then
8486                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
8487 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8488    { (exit 1); exit 1; }; }
8489                 else
8490                         { { echo "$as_me:$LINENO: error:
8491 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8492 " >&5
8493 echo "$as_me: error:
8494 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8495 " >&2;}
8496    { (exit 1); exit 1; }; }
8497                 fi
8498         fi
8499
8500         if test -e "${DOXYGEN}"; then
8501                 DOXYGEN=`readlink -f "${DOXYGEN}"`
8502         fi
8503
8504         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
8505
8506         test "${DOXYGEN}"
8507
8508
8509
8510
8511         if test -z ":"; then
8512                 rq=true
8513         else
8514                 rq=false
8515         fi
8516
8517         if $rq; then
8518                 ensc_dflt=
8519         else
8520                 ensc_dflt=":"
8521         fi
8522
8523         for ac_prog in xsltp
8524 do
8525   # Extract the first word of "$ac_prog", so it can be a program name with args.
8526 set dummy $ac_prog; ac_word=$2
8527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8529 if test "${ac_cv_path_XSLTP+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   case $XSLTP in
8533   [\\/]* | ?:[\\/]*)
8534   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
8535   ;;
8536   *)
8537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $ensc_searchpath
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542   for ac_exec_ext in '' $ac_executable_extensions; do
8543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8544     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
8545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549 done
8550 IFS=$as_save_IFS
8551
8552   ;;
8553 esac
8554 fi
8555 XSLTP=$ac_cv_path_XSLTP
8556 if test -n "$XSLTP"; then
8557   { echo "$as_me:$LINENO: result: $XSLTP" >&5
8558 echo "${ECHO_T}$XSLTP" >&6; }
8559 else
8560   { echo "$as_me:$LINENO: result: no" >&5
8561 echo "${ECHO_T}no" >&6; }
8562 fi
8563
8564
8565   test -n "$XSLTP" && break
8566 done
8567 test -n "$XSLTP" || XSLTP="$ensc_dflt"
8568
8569
8570         if test -z "${XSLTP}" && $rq; then
8571                 if test -z ""; then
8572                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
8573 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8574    { (exit 1); exit 1; }; }
8575                 else
8576                         { { echo "$as_me:$LINENO: error:
8577 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8578 " >&5
8579 echo "$as_me: error:
8580 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8581 " >&2;}
8582    { (exit 1); exit 1; }; }
8583                 fi
8584         fi
8585
8586         if test -e "${XSLTP}"; then
8587                 XSLTP=`readlink -f "${XSLTP}"`
8588         fi
8589
8590         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
8591
8592         test "${XSLTP}"
8593
8594
8595
8596
8597         if test -z ":"; then
8598                 rq=true
8599         else
8600                 rq=false
8601         fi
8602
8603         if $rq; then
8604                 ensc_dflt=
8605         else
8606                 ensc_dflt=":"
8607         fi
8608
8609         for ac_prog in xsltproc
8610 do
8611   # Extract the first word of "$ac_prog", so it can be a program name with args.
8612 set dummy $ac_prog; ac_word=$2
8613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8615 if test "${ac_cv_path_XSLTPROC+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   case $XSLTPROC in
8619   [\\/]* | ?:[\\/]*)
8620   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
8621   ;;
8622   *)
8623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $ensc_searchpath
8625 do
8626   IFS=$as_save_IFS
8627   test -z "$as_dir" && as_dir=.
8628   for ac_exec_ext in '' $ac_executable_extensions; do
8629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
8631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8632     break 2
8633   fi
8634 done
8635 done
8636 IFS=$as_save_IFS
8637
8638   ;;
8639 esac
8640 fi
8641 XSLTPROC=$ac_cv_path_XSLTPROC
8642 if test -n "$XSLTPROC"; then
8643   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
8644 echo "${ECHO_T}$XSLTPROC" >&6; }
8645 else
8646   { echo "$as_me:$LINENO: result: no" >&5
8647 echo "${ECHO_T}no" >&6; }
8648 fi
8649
8650
8651   test -n "$XSLTPROC" && break
8652 done
8653 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
8654
8655
8656         if test -z "${XSLTPROC}" && $rq; then
8657                 if test -z ""; then
8658                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
8659 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8660    { (exit 1); exit 1; }; }
8661                 else
8662                         { { echo "$as_me:$LINENO: error:
8663 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8664 " >&5
8665 echo "$as_me: error:
8666 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8667 " >&2;}
8668    { (exit 1); exit 1; }; }
8669                 fi
8670         fi
8671
8672         if test -e "${XSLTPROC}"; then
8673                 XSLTPROC=`readlink -f "${XSLTPROC}"`
8674         fi
8675
8676         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
8677
8678         test "${XSLTPROC}"
8679
8680
8681  if test "$XSLTP"    != ':'; then
8682   HAVE_XSLTP_TRUE=
8683   HAVE_XSLTP_FALSE='#'
8684 else
8685   HAVE_XSLTP_TRUE='#'
8686   HAVE_XSLTP_FALSE=
8687 fi
8688
8689  if test "$XSLTPROC" != ':'; then
8690   HAVE_XSLTPROC_TRUE=
8691   HAVE_XSLTPROC_FALSE='#'
8692 else
8693   HAVE_XSLTPROC_TRUE='#'
8694   HAVE_XSLTPROC_FALSE=
8695 fi
8696
8697
8698 if test x"$prefix" = x/; then
8699         prefix=
8700 fi
8701
8702
8703
8704         warn_flags="-Werror -W"
8705         { echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
8706 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8707         ac_ext=c
8708 ac_cpp='$CPP $CPPFLAGS'
8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712
8713         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
8714         CFLAGS="$warn_flags"
8715         cat >conftest.$ac_ext <<_ACEOF
8716 /* confdefs.h.  */
8717 _ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h.  */
8721 inline static void f(){}
8722 int
8723 main ()
8724 {
8725
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 rm -f conftest.$ac_objext
8731 if { (ac_try="$ac_compile"
8732 case "(($ac_try" in
8733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734   *) ac_try_echo=$ac_try;;
8735 esac
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737   (eval "$ac_compile") 2>conftest.er1
8738   ac_status=$?
8739   grep -v '^ *+' conftest.er1 >conftest.err
8740   rm -f conftest.er1
8741   cat conftest.err >&5
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); } && {
8744          test -z "$ac_c_werror_flag" ||
8745          test ! -s conftest.err
8746        } && test -s conftest.$ac_objext; then
8747   ensc_sys_compilerwarnflags_C=${warn_flags}
8748 else
8749   echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8751
8752         ensc_sys_compilerwarnflags_C=
8753 fi
8754
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756         ac_ext=c
8757 ac_cpp='$CPP $CPPFLAGS'
8758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8761
8762         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8763
8764         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
8765                 { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8767         else
8768                 { echo "$as_me:$LINENO: result: yes" >&5
8769 echo "${ECHO_T}yes" >&6; }
8770         fi
8771
8772
8773
8774
8775
8776 echo 'void f(){}' > conftest.c
8777   for i in -std=c99 -Wall -pedantic -W
8778   do
8779     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8780 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8781     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8782     then
8783       CFLAGS="${CFLAGS} $i"
8784       { echo "$as_me:$LINENO: result: yes" >&5
8785 echo "${ECHO_T}yes" >&6; }
8786     else
8787       { echo "$as_me:$LINENO: result: no" >&5
8788 echo "${ECHO_T}no" >&6; }
8789     fi
8790   done
8791   rm -f conftest.c conftest.o
8792
8793
8794
8795         warn_flags="-Werror -W"
8796         { echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
8797 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8798         ac_ext=cpp
8799 ac_cpp='$CXXCPP $CPPFLAGS'
8800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8803
8804         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
8805         CXXFLAGS="$warn_flags"
8806         cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812 inline static void f(){}
8813 int
8814 main ()
8815 {
8816
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext
8822 if { (ac_try="$ac_compile"
8823 case "(($ac_try" in
8824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825   *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828   (eval "$ac_compile") 2>conftest.er1
8829   ac_status=$?
8830   grep -v '^ *+' conftest.er1 >conftest.err
8831   rm -f conftest.er1
8832   cat conftest.err >&5
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); } && {
8835          test -z "$ac_cxx_werror_flag" ||
8836          test ! -s conftest.err
8837        } && test -s conftest.$ac_objext; then
8838   ensc_sys_compilerwarnflags_CXX=${warn_flags}
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843         ensc_sys_compilerwarnflags_CXX=
8844 fi
8845
8846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847         ac_ext=c
8848 ac_cpp='$CPP $CPPFLAGS'
8849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8852
8853         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8854
8855         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
8856                 { echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6; }
8858         else
8859                 { echo "$as_me:$LINENO: result: yes" >&5
8860 echo "${ECHO_T}yes" >&6; }
8861         fi
8862
8863
8864
8865
8866
8867   echo 'void f(){}' > conftest.cc
8868   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
8869   do
8870     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8871 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8872     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8873     then
8874       CXXFLAGS="${CXXFLAGS} $i"
8875       { echo "$as_me:$LINENO: result: yes" >&5
8876 echo "${ECHO_T}yes" >&6; }
8877     else
8878       { echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6; }
8880     fi
8881   done
8882   rm -f conftest.cc conftest.o
8883
8884
8885 { echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
8886 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6; }
8887 # Check whether --enable-extra-optimizations was given.
8888 if test "${enable_extra_optimizations+set}" = set; then
8889   enableval=$enable_extra_optimizations; case "$enableval" in
8890                   (yes) use_extra_optimizations=1;;
8891                   (no)  use_extra_optimizations=;;
8892                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
8893 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
8894    { (exit 1); exit 1; }; };;
8895                esac
8896 else
8897   use_extra_optimizations=1
8898 fi
8899
8900
8901 if test x"$use_extra_optimizations" = x; then
8902         { echo "$as_me:$LINENO: result: no" >&5
8903 echo "${ECHO_T}no" >&6; }
8904 else
8905         { echo "$as_me:$LINENO: result: yes" >&5
8906 echo "${ECHO_T}yes" >&6; }
8907
8908
8909
8910 echo 'void f(){}' > conftest.c
8911   for i in -funit-at-a-time
8912   do
8913     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8914 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8915     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8916     then
8917       CFLAGS="${CFLAGS} $i"
8918       { echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6; }
8920     else
8921       { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8923     fi
8924   done
8925   rm -f conftest.c conftest.o
8926
8927
8928
8929
8930   echo 'void f(){}' > conftest.cc
8931   for i in -funit-at-a-time
8932   do
8933     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8934 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8935     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8936     then
8937       CXXFLAGS="${CXXFLAGS} $i"
8938       { echo "$as_me:$LINENO: result: yes" >&5
8939 echo "${ECHO_T}yes" >&6; }
8940     else
8941       { echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6; }
8943     fi
8944   done
8945   rm -f conftest.cc conftest.o
8946
8947 fi
8948
8949 { echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8950 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6; }
8951 # Check whether --enable-lib-debug was given.
8952 if test "${enable_lib_debug+set}" = set; then
8953   enableval=$enable_lib_debug; case "$enableval" in
8954                   (yes) use_lib_debug=1;;
8955                   (no)  use_lib_debug=;;
8956                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8957 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8958    { (exit 1); exit 1; }; };;
8959                esac
8960 else
8961    use_lib_debug=
8962 fi
8963
8964
8965 if test x"$use_lib_debug" = x; then
8966         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8967
8968         { echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6; }
8970 else
8971
8972         { echo "$as_me:$LINENO: result: yes" >&5
8973 echo "${ECHO_T}yes" >&6; }
8974 fi
8975
8976 { echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8977 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6; }
8978 # Check whether --enable-expensive-tests was given.
8979 if test "${enable_expensive_tests+set}" = set; then
8980   enableval=$enable_expensive_tests; case "$enableval" in
8981                  (yes|no)  use_expensive_tests=$enableval;;
8982                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8983 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8984    { (exit 1); exit 1; }; };;
8985                esac
8986 else
8987    use_expensive_tests=no
8988 fi
8989
8990 { echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8991 echo "${ECHO_T}$use_expensive_tests" >&6; }
8992
8993 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8994
8995
8996
8997
8998         { echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8999 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6; }
9000         { echo "$as_me:$LINENO: result: " >&5
9001 echo "${ECHO_T}" >&6; }
9002
9003         ac_ext=c
9004 ac_cpp='$CPP $CPPFLAGS'
9005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009         { echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
9010 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6; }
9011 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020
9021 #include <linux/personality.h>
9022
9023
9024 int
9025 main ()
9026 {
9027 #ifndef MMAP_PAGE_ZERO
9028   (void) MMAP_PAGE_ZERO;
9029 #endif
9030
9031   ;
9032   return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9037 case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_compile") 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } && {
9049          test -z "$ac_c_werror_flag" ||
9050          test ! -s conftest.err
9051        } && test -s conftest.$ac_objext; then
9052   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057         ac_cv_have_decl_MMAP_PAGE_ZERO=no
9058 fi
9059
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
9063 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
9064 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
9065
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_DECL_MMAP_PAGE_ZERO 1
9068 _ACEOF
9069
9070
9071 else
9072   cat >>confdefs.h <<_ACEOF
9073 #define HAVE_DECL_MMAP_PAGE_ZERO 0
9074 _ACEOF
9075
9076
9077 fi
9078 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
9079 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6; }
9080 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089
9090 #include <linux/personality.h>
9091
9092
9093 int
9094 main ()
9095 {
9096 #ifndef ADDR_LIMIT_32BIT
9097   (void) ADDR_LIMIT_32BIT;
9098 #endif
9099
9100   ;
9101   return 0;
9102 }
9103 _ACEOF
9104 rm -f conftest.$ac_objext
9105 if { (ac_try="$ac_compile"
9106 case "(($ac_try" in
9107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108   *) ac_try_echo=$ac_try;;
9109 esac
9110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9111   (eval "$ac_compile") 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } && {
9118          test -z "$ac_c_werror_flag" ||
9119          test ! -s conftest.err
9120        } && test -s conftest.$ac_objext; then
9121   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126         ac_cv_have_decl_ADDR_LIMIT_32BIT=no
9127 fi
9128
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
9132 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
9133 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
9137 _ACEOF
9138
9139
9140 else
9141   cat >>confdefs.h <<_ACEOF
9142 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
9143 _ACEOF
9144
9145
9146 fi
9147 { echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
9148 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6; }
9149 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
9150   echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152   cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 #include <linux/personality.h>
9160
9161
9162 int
9163 main ()
9164 {
9165 #ifndef SHORT_INODE
9166   (void) SHORT_INODE;
9167 #endif
9168
9169   ;
9170   return 0;
9171 }
9172 _ACEOF
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9175 case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_compile") 2>conftest.er1
9181   ac_status=$?
9182   grep -v '^ *+' conftest.er1 >conftest.err
9183   rm -f conftest.er1
9184   cat conftest.err >&5
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); } && {
9187          test -z "$ac_c_werror_flag" ||
9188          test ! -s conftest.err
9189        } && test -s conftest.$ac_objext; then
9190   ac_cv_have_decl_SHORT_INODE=yes
9191 else
9192   echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9194
9195         ac_cv_have_decl_SHORT_INODE=no
9196 fi
9197
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 fi
9200 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
9201 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6; }
9202 if test $ac_cv_have_decl_SHORT_INODE = yes; then
9203
9204 cat >>confdefs.h <<_ACEOF
9205 #define HAVE_DECL_SHORT_INODE 1
9206 _ACEOF
9207
9208
9209 else
9210   cat >>confdefs.h <<_ACEOF
9211 #define HAVE_DECL_SHORT_INODE 0
9212 _ACEOF
9213
9214
9215 fi
9216 { echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
9217 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6; }
9218 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227
9228 #include <linux/personality.h>
9229
9230
9231 int
9232 main ()
9233 {
9234 #ifndef WHOLE_SECONDS
9235   (void) WHOLE_SECONDS;
9236 #endif
9237
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext
9243 if { (ac_try="$ac_compile"
9244 case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249   (eval "$ac_compile") 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } && {
9256          test -z "$ac_c_werror_flag" ||
9257          test ! -s conftest.err
9258        } && test -s conftest.$ac_objext; then
9259   ac_cv_have_decl_WHOLE_SECONDS=yes
9260 else
9261   echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9263
9264         ac_cv_have_decl_WHOLE_SECONDS=no
9265 fi
9266
9267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
9270 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
9271 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
9272
9273 cat >>confdefs.h <<_ACEOF
9274 #define HAVE_DECL_WHOLE_SECONDS 1
9275 _ACEOF
9276
9277
9278 else
9279   cat >>confdefs.h <<_ACEOF
9280 #define HAVE_DECL_WHOLE_SECONDS 0
9281 _ACEOF
9282
9283
9284 fi
9285 { echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
9286 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6; }
9287 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
9288   echo $ECHO_N "(cached) $ECHO_C" >&6
9289 else
9290   cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296
9297 #include <linux/personality.h>
9298
9299
9300 int
9301 main ()
9302 {
9303 #ifndef STICKY_TIMEOUTS
9304   (void) STICKY_TIMEOUTS;
9305 #endif
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_compile") 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } && {
9325          test -z "$ac_c_werror_flag" ||
9326          test ! -s conftest.err
9327        } && test -s conftest.$ac_objext; then
9328   ac_cv_have_decl_STICKY_TIMEOUTS=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333         ac_cv_have_decl_STICKY_TIMEOUTS=no
9334 fi
9335
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 fi
9338 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
9339 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
9340 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
9341
9342 cat >>confdefs.h <<_ACEOF
9343 #define HAVE_DECL_STICKY_TIMEOUTS 1
9344 _ACEOF
9345
9346
9347 else
9348   cat >>confdefs.h <<_ACEOF
9349 #define HAVE_DECL_STICKY_TIMEOUTS 0
9350 _ACEOF
9351
9352
9353 fi
9354 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
9355 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6; }
9356 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
9357   echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359   cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365
9366 #include <linux/personality.h>
9367
9368
9369 int
9370 main ()
9371 {
9372 #ifndef ADDR_LIMIT_3GB
9373   (void) ADDR_LIMIT_3GB;
9374 #endif
9375
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9382 case "(($ac_try" in
9383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384   *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387   (eval "$ac_compile") 2>conftest.er1
9388   ac_status=$?
9389   grep -v '^ *+' conftest.er1 >conftest.err
9390   rm -f conftest.er1
9391   cat conftest.err >&5
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); } && {
9394          test -z "$ac_c_werror_flag" ||
9395          test ! -s conftest.err
9396        } && test -s conftest.$ac_objext; then
9397   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
9398 else
9399   echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402         ac_cv_have_decl_ADDR_LIMIT_3GB=no
9403 fi
9404
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 fi
9407 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
9408 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
9409 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
9410
9411 cat >>confdefs.h <<_ACEOF
9412 #define HAVE_DECL_ADDR_LIMIT_3GB 1
9413 _ACEOF
9414
9415
9416 else
9417   cat >>confdefs.h <<_ACEOF
9418 #define HAVE_DECL_ADDR_LIMIT_3GB 0
9419 _ACEOF
9420
9421
9422 fi
9423
9424
9425
9426         { echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
9427 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6; }
9428 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h.  */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h.  */
9437
9438 #include <linux/personality.h>
9439
9440
9441 int
9442 main ()
9443 {
9444 #ifndef PER_LINUX
9445   (void) PER_LINUX;
9446 #endif
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext
9453 if { (ac_try="$ac_compile"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_compile") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest.$ac_objext; then
9469   ac_cv_have_decl_PER_LINUX=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474         ac_cv_have_decl_PER_LINUX=no
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9478 fi
9479 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
9480 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6; }
9481 if test $ac_cv_have_decl_PER_LINUX = yes; then
9482
9483 cat >>confdefs.h <<_ACEOF
9484 #define HAVE_DECL_PER_LINUX 1
9485 _ACEOF
9486
9487
9488 else
9489   cat >>confdefs.h <<_ACEOF
9490 #define HAVE_DECL_PER_LINUX 0
9491 _ACEOF
9492
9493
9494 fi
9495 { echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
9496 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6; }
9497 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506
9507 #include <linux/personality.h>
9508
9509
9510 int
9511 main ()
9512 {
9513 #ifndef PER_LINUX_32BIT
9514   (void) PER_LINUX_32BIT;
9515 #endif
9516
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext
9522 if { (ac_try="$ac_compile"
9523 case "(($ac_try" in
9524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525   *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528   (eval "$ac_compile") 2>conftest.er1
9529   ac_status=$?
9530   grep -v '^ *+' conftest.er1 >conftest.err
9531   rm -f conftest.er1
9532   cat conftest.err >&5
9533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534   (exit $ac_status); } && {
9535          test -z "$ac_c_werror_flag" ||
9536          test ! -s conftest.err
9537        } && test -s conftest.$ac_objext; then
9538   ac_cv_have_decl_PER_LINUX_32BIT=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_have_decl_PER_LINUX_32BIT=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 fi
9548 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
9549 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6; }
9550 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
9551
9552 cat >>confdefs.h <<_ACEOF
9553 #define HAVE_DECL_PER_LINUX_32BIT 1
9554 _ACEOF
9555
9556
9557 else
9558   cat >>confdefs.h <<_ACEOF
9559 #define HAVE_DECL_PER_LINUX_32BIT 0
9560 _ACEOF
9561
9562
9563 fi
9564 { echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
9565 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6; }
9566 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575
9576 #include <linux/personality.h>
9577
9578
9579 int
9580 main ()
9581 {
9582 #ifndef PER_SVR4
9583   (void) PER_SVR4;
9584 #endif
9585
9586   ;
9587   return 0;
9588 }
9589 _ACEOF
9590 rm -f conftest.$ac_objext
9591 if { (ac_try="$ac_compile"
9592 case "(($ac_try" in
9593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594   *) ac_try_echo=$ac_try;;
9595 esac
9596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597   (eval "$ac_compile") 2>conftest.er1
9598   ac_status=$?
9599   grep -v '^ *+' conftest.er1 >conftest.err
9600   rm -f conftest.er1
9601   cat conftest.err >&5
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); } && {
9604          test -z "$ac_c_werror_flag" ||
9605          test ! -s conftest.err
9606        } && test -s conftest.$ac_objext; then
9607   ac_cv_have_decl_PER_SVR4=yes
9608 else
9609   echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9611
9612         ac_cv_have_decl_PER_SVR4=no
9613 fi
9614
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
9618 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6; }
9619 if test $ac_cv_have_decl_PER_SVR4 = yes; then
9620
9621 cat >>confdefs.h <<_ACEOF
9622 #define HAVE_DECL_PER_SVR4 1
9623 _ACEOF
9624
9625
9626 else
9627   cat >>confdefs.h <<_ACEOF
9628 #define HAVE_DECL_PER_SVR4 0
9629 _ACEOF
9630
9631
9632 fi
9633 { echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
9634 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6; }
9635 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h.  */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h.  */
9644
9645 #include <linux/personality.h>
9646
9647
9648 int
9649 main ()
9650 {
9651 #ifndef PER_SVR3
9652   (void) PER_SVR3;
9653 #endif
9654
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (ac_try="$ac_compile"
9661 case "(($ac_try" in
9662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663   *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666   (eval "$ac_compile") 2>conftest.er1
9667   ac_status=$?
9668   grep -v '^ *+' conftest.er1 >conftest.err
9669   rm -f conftest.er1
9670   cat conftest.err >&5
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); } && {
9673          test -z "$ac_c_werror_flag" ||
9674          test ! -s conftest.err
9675        } && test -s conftest.$ac_objext; then
9676   ac_cv_have_decl_PER_SVR3=yes
9677 else
9678   echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9680
9681         ac_cv_have_decl_PER_SVR3=no
9682 fi
9683
9684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 fi
9686 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
9687 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6; }
9688 if test $ac_cv_have_decl_PER_SVR3 = yes; then
9689
9690 cat >>confdefs.h <<_ACEOF
9691 #define HAVE_DECL_PER_SVR3 1
9692 _ACEOF
9693
9694
9695 else
9696   cat >>confdefs.h <<_ACEOF
9697 #define HAVE_DECL_PER_SVR3 0
9698 _ACEOF
9699
9700
9701 fi
9702 { echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
9703 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6; }
9704 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 #include <linux/personality.h>
9715
9716
9717 int
9718 main ()
9719 {
9720 #ifndef PER_SCOSVR3
9721   (void) PER_SCOSVR3;
9722 #endif
9723
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (ac_try="$ac_compile"
9730 case "(($ac_try" in
9731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732   *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735   (eval "$ac_compile") 2>conftest.er1
9736   ac_status=$?
9737   grep -v '^ *+' conftest.er1 >conftest.err
9738   rm -f conftest.er1
9739   cat conftest.err >&5
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); } && {
9742          test -z "$ac_c_werror_flag" ||
9743          test ! -s conftest.err
9744        } && test -s conftest.$ac_objext; then
9745   ac_cv_have_decl_PER_SCOSVR3=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750         ac_cv_have_decl_PER_SCOSVR3=no
9751 fi
9752
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 fi
9755 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
9756 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6; }
9757 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
9758
9759 cat >>confdefs.h <<_ACEOF
9760 #define HAVE_DECL_PER_SCOSVR3 1
9761 _ACEOF
9762
9763
9764 else
9765   cat >>confdefs.h <<_ACEOF
9766 #define HAVE_DECL_PER_SCOSVR3 0
9767 _ACEOF
9768
9769
9770 fi
9771 { echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
9772 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6; }
9773 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h.  */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h.  */
9782
9783 #include <linux/personality.h>
9784
9785
9786 int
9787 main ()
9788 {
9789 #ifndef PER_OSR5
9790   (void) PER_OSR5;
9791 #endif
9792
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext
9798 if { (ac_try="$ac_compile"
9799 case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804   (eval "$ac_compile") 2>conftest.er1
9805   ac_status=$?
9806   grep -v '^ *+' conftest.er1 >conftest.err
9807   rm -f conftest.er1
9808   cat conftest.err >&5
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } && {
9811          test -z "$ac_c_werror_flag" ||
9812          test ! -s conftest.err
9813        } && test -s conftest.$ac_objext; then
9814   ac_cv_have_decl_PER_OSR5=yes
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819         ac_cv_have_decl_PER_OSR5=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
9825 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6; }
9826 if test $ac_cv_have_decl_PER_OSR5 = yes; then
9827
9828 cat >>confdefs.h <<_ACEOF
9829 #define HAVE_DECL_PER_OSR5 1
9830 _ACEOF
9831
9832
9833 else
9834   cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DECL_PER_OSR5 0
9836 _ACEOF
9837
9838
9839 fi
9840 { echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
9841 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6; }
9842 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
9843   echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845   cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h.  */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h.  */
9851
9852 #include <linux/personality.h>
9853
9854
9855 int
9856 main ()
9857 {
9858 #ifndef PER_WYSEV386
9859   (void) PER_WYSEV386;
9860 #endif
9861
9862   ;
9863   return 0;
9864 }
9865 _ACEOF
9866 rm -f conftest.$ac_objext
9867 if { (ac_try="$ac_compile"
9868 case "(($ac_try" in
9869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870   *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873   (eval "$ac_compile") 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } && {
9880          test -z "$ac_c_werror_flag" ||
9881          test ! -s conftest.err
9882        } && test -s conftest.$ac_objext; then
9883   ac_cv_have_decl_PER_WYSEV386=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888         ac_cv_have_decl_PER_WYSEV386=no
9889 fi
9890
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 fi
9893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9894 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6; }
9895 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9896
9897 cat >>confdefs.h <<_ACEOF
9898 #define HAVE_DECL_PER_WYSEV386 1
9899 _ACEOF
9900
9901
9902 else
9903   cat >>confdefs.h <<_ACEOF
9904 #define HAVE_DECL_PER_WYSEV386 0
9905 _ACEOF
9906
9907
9908 fi
9909 { echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9910 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6; }
9911 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9912   echo $ECHO_N "(cached) $ECHO_C" >&6
9913 else
9914   cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920
9921 #include <linux/personality.h>
9922
9923
9924 int
9925 main ()
9926 {
9927 #ifndef PER_ISCR4
9928   (void) PER_ISCR4;
9929 #endif
9930
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext
9936 if { (ac_try="$ac_compile"
9937 case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_compile") 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } && {
9949          test -z "$ac_c_werror_flag" ||
9950          test ! -s conftest.err
9951        } && test -s conftest.$ac_objext; then
9952   ac_cv_have_decl_PER_ISCR4=yes
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957         ac_cv_have_decl_PER_ISCR4=no
9958 fi
9959
9960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9961 fi
9962 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9963 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6; }
9964 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9965
9966 cat >>confdefs.h <<_ACEOF
9967 #define HAVE_DECL_PER_ISCR4 1
9968 _ACEOF
9969
9970
9971 else
9972   cat >>confdefs.h <<_ACEOF
9973 #define HAVE_DECL_PER_ISCR4 0
9974 _ACEOF
9975
9976
9977 fi
9978 { echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9979 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6; }
9980 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9981   echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983   cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989
9990 #include <linux/personality.h>
9991
9992
9993 int
9994 main ()
9995 {
9996 #ifndef PER_BSD
9997   (void) PER_BSD;
9998 #endif
9999
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (ac_try="$ac_compile"
10006 case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_compile") 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } && {
10018          test -z "$ac_c_werror_flag" ||
10019          test ! -s conftest.err
10020        } && test -s conftest.$ac_objext; then
10021   ac_cv_have_decl_PER_BSD=yes
10022 else
10023   echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026         ac_cv_have_decl_PER_BSD=no
10027 fi
10028
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
10032 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6; }
10033 if test $ac_cv_have_decl_PER_BSD = yes; then
10034
10035 cat >>confdefs.h <<_ACEOF
10036 #define HAVE_DECL_PER_BSD 1
10037 _ACEOF
10038
10039
10040 else
10041   cat >>confdefs.h <<_ACEOF
10042 #define HAVE_DECL_PER_BSD 0
10043 _ACEOF
10044
10045
10046 fi
10047 { echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
10048 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6; }
10049 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058
10059 #include <linux/personality.h>
10060
10061
10062 int
10063 main ()
10064 {
10065 #ifndef PER_SUNOS
10066   (void) PER_SUNOS;
10067 #endif
10068
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (ac_try="$ac_compile"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080   (eval "$ac_compile") 2>conftest.er1
10081   ac_status=$?
10082   grep -v '^ *+' conftest.er1 >conftest.err
10083   rm -f conftest.er1
10084   cat conftest.err >&5
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); } && {
10087          test -z "$ac_c_werror_flag" ||
10088          test ! -s conftest.err
10089        } && test -s conftest.$ac_objext; then
10090   ac_cv_have_decl_PER_SUNOS=yes
10091 else
10092   echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10094
10095         ac_cv_have_decl_PER_SUNOS=no
10096 fi
10097
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 fi
10100 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
10101 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6; }
10102 if test $ac_cv_have_decl_PER_SUNOS = yes; then
10103
10104 cat >>confdefs.h <<_ACEOF
10105 #define HAVE_DECL_PER_SUNOS 1
10106 _ACEOF
10107
10108
10109 else
10110   cat >>confdefs.h <<_ACEOF
10111 #define HAVE_DECL_PER_SUNOS 0
10112 _ACEOF
10113
10114
10115 fi
10116 { echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
10117 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6; }
10118 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121   cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127
10128 #include <linux/personality.h>
10129
10130
10131 int
10132 main ()
10133 {
10134 #ifndef PER_XENIX
10135   (void) PER_XENIX;
10136 #endif
10137
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (ac_try="$ac_compile"
10144 case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_compile") 2>conftest.er1
10150   ac_status=$?
10151   grep -v '^ *+' conftest.er1 >conftest.err
10152   rm -f conftest.er1
10153   cat conftest.err >&5
10154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155   (exit $ac_status); } && {
10156          test -z "$ac_c_werror_flag" ||
10157          test ! -s conftest.err
10158        } && test -s conftest.$ac_objext; then
10159   ac_cv_have_decl_PER_XENIX=yes
10160 else
10161   echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10163
10164         ac_cv_have_decl_PER_XENIX=no
10165 fi
10166
10167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168 fi
10169 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
10170 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6; }
10171 if test $ac_cv_have_decl_PER_XENIX = yes; then
10172
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_DECL_PER_XENIX 1
10175 _ACEOF
10176
10177
10178 else
10179   cat >>confdefs.h <<_ACEOF
10180 #define HAVE_DECL_PER_XENIX 0
10181 _ACEOF
10182
10183
10184 fi
10185 { echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
10186 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6; }
10187 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
10188   echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190   cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196
10197 #include <linux/personality.h>
10198
10199
10200 int
10201 main ()
10202 {
10203 #ifndef PER_LINUX32
10204   (void) PER_LINUX32;
10205 #endif
10206
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest.$ac_objext
10212 if { (ac_try="$ac_compile"
10213 case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_compile") 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } && {
10225          test -z "$ac_c_werror_flag" ||
10226          test ! -s conftest.err
10227        } && test -s conftest.$ac_objext; then
10228   ac_cv_have_decl_PER_LINUX32=yes
10229 else
10230   echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233         ac_cv_have_decl_PER_LINUX32=no
10234 fi
10235
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
10239 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6; }
10240 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
10241
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_DECL_PER_LINUX32 1
10244 _ACEOF
10245
10246
10247 else
10248   cat >>confdefs.h <<_ACEOF
10249 #define HAVE_DECL_PER_LINUX32 0
10250 _ACEOF
10251
10252
10253 fi
10254 { echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
10255 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6; }
10256 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265
10266 #include <linux/personality.h>
10267
10268
10269 int
10270 main ()
10271 {
10272 #ifndef PER_LINUX32_3GB
10273   (void) PER_LINUX32_3GB;
10274 #endif
10275
10276   ;
10277   return 0;
10278 }
10279 _ACEOF
10280 rm -f conftest.$ac_objext
10281 if { (ac_try="$ac_compile"
10282 case "(($ac_try" in
10283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284   *) ac_try_echo=$ac_try;;
10285 esac
10286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287   (eval "$ac_compile") 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } && {
10294          test -z "$ac_c_werror_flag" ||
10295          test ! -s conftest.err
10296        } && test -s conftest.$ac_objext; then
10297   ac_cv_have_decl_PER_LINUX32_3GB=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302         ac_cv_have_decl_PER_LINUX32_3GB=no
10303 fi
10304
10305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10306 fi
10307 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
10308 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6; }
10309 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
10310
10311 cat >>confdefs.h <<_ACEOF
10312 #define HAVE_DECL_PER_LINUX32_3GB 1
10313 _ACEOF
10314
10315
10316 else
10317   cat >>confdefs.h <<_ACEOF
10318 #define HAVE_DECL_PER_LINUX32_3GB 0
10319 _ACEOF
10320
10321
10322 fi
10323 { echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
10324 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6; }
10325 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328   cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334
10335 #include <linux/personality.h>
10336
10337
10338 int
10339 main ()
10340 {
10341 #ifndef PER_IRIX32
10342   (void) PER_IRIX32;
10343 #endif
10344
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (ac_try="$ac_compile"
10351 case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_compile") 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } && {
10363          test -z "$ac_c_werror_flag" ||
10364          test ! -s conftest.err
10365        } && test -s conftest.$ac_objext; then
10366   ac_cv_have_decl_PER_IRIX32=yes
10367 else
10368   echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10370
10371         ac_cv_have_decl_PER_IRIX32=no
10372 fi
10373
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
10377 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6; }
10378 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
10379
10380 cat >>confdefs.h <<_ACEOF
10381 #define HAVE_DECL_PER_IRIX32 1
10382 _ACEOF
10383
10384
10385 else
10386   cat >>confdefs.h <<_ACEOF
10387 #define HAVE_DECL_PER_IRIX32 0
10388 _ACEOF
10389
10390
10391 fi
10392 { echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
10393 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6; }
10394 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403
10404 #include <linux/personality.h>
10405
10406
10407 int
10408 main ()
10409 {
10410 #ifndef PER_IRIXN32
10411   (void) PER_IRIXN32;
10412 #endif
10413
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (ac_try="$ac_compile"
10420 case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_compile") 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } && {
10432          test -z "$ac_c_werror_flag" ||
10433          test ! -s conftest.err
10434        } && test -s conftest.$ac_objext; then
10435   ac_cv_have_decl_PER_IRIXN32=yes
10436 else
10437   echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440         ac_cv_have_decl_PER_IRIXN32=no
10441 fi
10442
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 fi
10445 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
10446 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6; }
10447 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
10448
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_DECL_PER_IRIXN32 1
10451 _ACEOF
10452
10453
10454 else
10455   cat >>confdefs.h <<_ACEOF
10456 #define HAVE_DECL_PER_IRIXN32 0
10457 _ACEOF
10458
10459
10460 fi
10461 { echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
10462 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6; }
10463 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472
10473 #include <linux/personality.h>
10474
10475
10476 int
10477 main ()
10478 {
10479 #ifndef PER_IRIX64
10480   (void) PER_IRIX64;
10481 #endif
10482
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 rm -f conftest.$ac_objext
10488 if { (ac_try="$ac_compile"
10489 case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_compile") 2>conftest.er1
10495   ac_status=$?
10496   grep -v '^ *+' conftest.er1 >conftest.err
10497   rm -f conftest.er1
10498   cat conftest.err >&5
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && {
10501          test -z "$ac_c_werror_flag" ||
10502          test ! -s conftest.err
10503        } && test -s conftest.$ac_objext; then
10504   ac_cv_have_decl_PER_IRIX64=yes
10505 else
10506   echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10508
10509         ac_cv_have_decl_PER_IRIX64=no
10510 fi
10511
10512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10513 fi
10514 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
10515 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6; }
10516 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
10517
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_DECL_PER_IRIX64 1
10520 _ACEOF
10521
10522
10523 else
10524   cat >>confdefs.h <<_ACEOF
10525 #define HAVE_DECL_PER_IRIX64 0
10526 _ACEOF
10527
10528
10529 fi
10530 { echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
10531 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6; }
10532 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
10533   echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535   cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541
10542 #include <linux/personality.h>
10543
10544
10545 int
10546 main ()
10547 {
10548 #ifndef PER_RISCOS
10549   (void) PER_RISCOS;
10550 #endif
10551
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext
10557 if { (ac_try="$ac_compile"
10558 case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_compile") 2>conftest.er1
10564   ac_status=$?
10565   grep -v '^ *+' conftest.er1 >conftest.err
10566   rm -f conftest.er1
10567   cat conftest.err >&5
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } && {
10570          test -z "$ac_c_werror_flag" ||
10571          test ! -s conftest.err
10572        } && test -s conftest.$ac_objext; then
10573   ac_cv_have_decl_PER_RISCOS=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_cv_have_decl_PER_RISCOS=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 fi
10583 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
10584 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6; }
10585 if test $ac_cv_have_decl_PER_RISCOS = yes; then
10586
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_DECL_PER_RISCOS 1
10589 _ACEOF
10590
10591
10592 else
10593   cat >>confdefs.h <<_ACEOF
10594 #define HAVE_DECL_PER_RISCOS 0
10595 _ACEOF
10596
10597
10598 fi
10599 { echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
10600 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6; }
10601 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610
10611 #include <linux/personality.h>
10612
10613
10614 int
10615 main ()
10616 {
10617 #ifndef PER_SOLARIS
10618   (void) PER_SOLARIS;
10619 #endif
10620
10621   ;
10622   return 0;
10623 }
10624 _ACEOF
10625 rm -f conftest.$ac_objext
10626 if { (ac_try="$ac_compile"
10627 case "(($ac_try" in
10628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629   *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632   (eval "$ac_compile") 2>conftest.er1
10633   ac_status=$?
10634   grep -v '^ *+' conftest.er1 >conftest.err
10635   rm -f conftest.er1
10636   cat conftest.err >&5
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } && {
10639          test -z "$ac_c_werror_flag" ||
10640          test ! -s conftest.err
10641        } && test -s conftest.$ac_objext; then
10642   ac_cv_have_decl_PER_SOLARIS=yes
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         ac_cv_have_decl_PER_SOLARIS=no
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 fi
10652 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
10653 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6; }
10654 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
10655
10656 cat >>confdefs.h <<_ACEOF
10657 #define HAVE_DECL_PER_SOLARIS 1
10658 _ACEOF
10659
10660
10661 else
10662   cat >>confdefs.h <<_ACEOF
10663 #define HAVE_DECL_PER_SOLARIS 0
10664 _ACEOF
10665
10666
10667 fi
10668 { echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
10669 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6; }
10670 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
10671   echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673   cat >conftest.$ac_ext <<_ACEOF
10674 /* confdefs.h.  */
10675 _ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h.  */
10679
10680 #include <linux/personality.h>
10681
10682
10683 int
10684 main ()
10685 {
10686 #ifndef PER_UW7
10687   (void) PER_UW7;
10688 #endif
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_compile") 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } && {
10708          test -z "$ac_c_werror_flag" ||
10709          test ! -s conftest.err
10710        } && test -s conftest.$ac_objext; then
10711   ac_cv_have_decl_PER_UW7=yes
10712 else
10713   echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716         ac_cv_have_decl_PER_UW7=no
10717 fi
10718
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 fi
10721 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
10722 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6; }
10723 if test $ac_cv_have_decl_PER_UW7 = yes; then
10724
10725 cat >>confdefs.h <<_ACEOF
10726 #define HAVE_DECL_PER_UW7 1
10727 _ACEOF
10728
10729
10730 else
10731   cat >>confdefs.h <<_ACEOF
10732 #define HAVE_DECL_PER_UW7 0
10733 _ACEOF
10734
10735
10736 fi
10737 { echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
10738 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6; }
10739 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
10740   echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742   cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h.  */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h.  */
10748
10749 #include <linux/personality.h>
10750
10751
10752 int
10753 main ()
10754 {
10755 #ifndef PER_HPUX
10756   (void) PER_HPUX;
10757 #endif
10758
10759   ;
10760   return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext
10764 if { (ac_try="$ac_compile"
10765 case "(($ac_try" in
10766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767   *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770   (eval "$ac_compile") 2>conftest.er1
10771   ac_status=$?
10772   grep -v '^ *+' conftest.er1 >conftest.err
10773   rm -f conftest.er1
10774   cat conftest.err >&5
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); } && {
10777          test -z "$ac_c_werror_flag" ||
10778          test ! -s conftest.err
10779        } && test -s conftest.$ac_objext; then
10780   ac_cv_have_decl_PER_HPUX=yes
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785         ac_cv_have_decl_PER_HPUX=no
10786 fi
10787
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
10791 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6; }
10792 if test $ac_cv_have_decl_PER_HPUX = yes; then
10793
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_DECL_PER_HPUX 1
10796 _ACEOF
10797
10798
10799 else
10800   cat >>confdefs.h <<_ACEOF
10801 #define HAVE_DECL_PER_HPUX 0
10802 _ACEOF
10803
10804
10805 fi
10806 { echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
10807 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6; }
10808 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817
10818 #include <linux/personality.h>
10819
10820
10821 int
10822 main ()
10823 {
10824 #ifndef PER_OSF4
10825   (void) PER_OSF4;
10826 #endif
10827
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 rm -f conftest.$ac_objext
10833 if { (ac_try="$ac_compile"
10834 case "(($ac_try" in
10835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836   *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839   (eval "$ac_compile") 2>conftest.er1
10840   ac_status=$?
10841   grep -v '^ *+' conftest.er1 >conftest.err
10842   rm -f conftest.er1
10843   cat conftest.err >&5
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); } && {
10846          test -z "$ac_c_werror_flag" ||
10847          test ! -s conftest.err
10848        } && test -s conftest.$ac_objext; then
10849   ac_cv_have_decl_PER_OSF4=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854         ac_cv_have_decl_PER_OSF4=no
10855 fi
10856
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10858 fi
10859 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10860 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6; }
10861 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10862
10863 cat >>confdefs.h <<_ACEOF
10864 #define HAVE_DECL_PER_OSF4 1
10865 _ACEOF
10866
10867
10868 else
10869   cat >>confdefs.h <<_ACEOF
10870 #define HAVE_DECL_PER_OSF4 0
10871 _ACEOF
10872
10873
10874 fi
10875
10876
10877         ac_ext=c
10878 ac_cpp='$CPP $CPPFLAGS'
10879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10882
10883
10884
10885
10886
10887
10888         { echo "$as_me:$LINENO: checking for initrddir" >&5
10889 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6; }
10890
10891 # Check whether --with-initrddir was given.
10892 if test "${with_initrddir+set}" = set; then
10893   withval=$with_initrddir; case "$withval" in
10894                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10895 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10896    { (exit 1); exit 1; }; };;
10897                         *)      ensc_initrddir=$withval;;
10898                      esac
10899 else
10900   ensc_initrddir='$(sysconfdir)/init.d'
10901 fi
10902
10903
10904         if test "initrddir"; then
10905                 initrddir=$ensc_initrddir
10906
10907         fi
10908
10909         { echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10910 echo "${ECHO_T}$ensc_initrddir" >&6; }
10911
10912
10913         { echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10914 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6; }
10915         # Check whether --enable-release was given.
10916 if test "${enable_release+set}" = set; then
10917   enableval=$enable_release; case "$enableval" in
10918                           yes)  ensc_release_mode=yes;;
10919                           no)   ensc_release_mode=no;;
10920                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10921 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10922    { (exit 1); exit 1; }; };;
10923                        esac
10924 else
10925    ensc_release_mode=no
10926 fi
10927
10928
10929         if test x"$ensc_release_mode" = xno; then
10930                 RELEASE_CPPFLAGS=
10931         else
10932                 RELEASE_CPPFLAGS='-DNDEBUG'
10933         fi
10934
10935
10936         { echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10937 echo "${ECHO_T}$ensc_release_mode" >&6; }
10938
10939
10940 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10941 # syscalls will never be enabled for glibc.
10942 ac_ext=c
10943 ac_cpp='$CPP $CPPFLAGS'
10944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10947 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10948 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10949 # On Suns, sometimes $CPP names a directory.
10950 if test -n "$CPP" && test -d "$CPP"; then
10951   CPP=
10952 fi
10953 if test -z "$CPP"; then
10954   if test "${ac_cv_prog_CPP+set}" = set; then
10955   echo $ECHO_N "(cached) $ECHO_C" >&6
10956 else
10957       # Double quotes because CPP needs to be expanded
10958     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10959     do
10960       ac_preproc_ok=false
10961 for ac_c_preproc_warn_flag in '' yes
10962 do
10963   # Use a header file that comes with gcc, so configuring glibc
10964   # with a fresh cross-compiler works.
10965   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966   # <limits.h> exists even on freestanding compilers.
10967   # On the NeXT, cc -E runs the code through the compiler's parser,
10968   # not just through cpp. "Syntax error" is here to catch this case.
10969   cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 #ifdef __STDC__
10976 # include <limits.h>
10977 #else
10978 # include <assert.h>
10979 #endif
10980                      Syntax error
10981 _ACEOF
10982 if { (ac_try="$ac_cpp conftest.$ac_ext"
10983 case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10989   ac_status=$?
10990   grep -v '^ *+' conftest.er1 >conftest.err
10991   rm -f conftest.er1
10992   cat conftest.err >&5
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } >/dev/null && {
10995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10996          test ! -s conftest.err
10997        }; then
10998   :
10999 else
11000   echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003   # Broken: fails on valid input.
11004 continue
11005 fi
11006
11007 rm -f conftest.err conftest.$ac_ext
11008
11009   # OK, works on sane cases.  Now check whether nonexistent headers
11010   # can be detected and how.
11011   cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h.  */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h.  */
11017 #include <ac_nonexistent.h>
11018 _ACEOF
11019 if { (ac_try="$ac_cpp conftest.$ac_ext"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } >/dev/null && {
11032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11033          test ! -s conftest.err
11034        }; then
11035   # Broken: success on invalid input.
11036 continue
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041   # Passes both tests.
11042 ac_preproc_ok=:
11043 break
11044 fi
11045
11046 rm -f conftest.err conftest.$ac_ext
11047
11048 done
11049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11050 rm -f conftest.err conftest.$ac_ext
11051 if $ac_preproc_ok; then
11052   break
11053 fi
11054
11055     done
11056     ac_cv_prog_CPP=$CPP
11057
11058 fi
11059   CPP=$ac_cv_prog_CPP
11060 else
11061   ac_cv_prog_CPP=$CPP
11062 fi
11063 { echo "$as_me:$LINENO: result: $CPP" >&5
11064 echo "${ECHO_T}$CPP" >&6; }
11065 ac_preproc_ok=false
11066 for ac_c_preproc_warn_flag in '' yes
11067 do
11068   # Use a header file that comes with gcc, so configuring glibc
11069   # with a fresh cross-compiler works.
11070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11071   # <limits.h> exists even on freestanding compilers.
11072   # On the NeXT, cc -E runs the code through the compiler's parser,
11073   # not just through cpp. "Syntax error" is here to catch this case.
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #ifdef __STDC__
11081 # include <limits.h>
11082 #else
11083 # include <assert.h>
11084 #endif
11085                      Syntax error
11086 _ACEOF
11087 if { (ac_try="$ac_cpp conftest.$ac_ext"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } >/dev/null && {
11100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        }; then
11103   :
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108   # Broken: fails on valid input.
11109 continue
11110 fi
11111
11112 rm -f conftest.err conftest.$ac_ext
11113
11114   # OK, works on sane cases.  Now check whether nonexistent headers
11115   # can be detected and how.
11116   cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h.  */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h.  */
11122 #include <ac_nonexistent.h>
11123 _ACEOF
11124 if { (ac_try="$ac_cpp conftest.$ac_ext"
11125 case "(($ac_try" in
11126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127   *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } >/dev/null && {
11137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11138          test ! -s conftest.err
11139        }; then
11140   # Broken: success on invalid input.
11141 continue
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146   # Passes both tests.
11147 ac_preproc_ok=:
11148 break
11149 fi
11150
11151 rm -f conftest.err conftest.$ac_ext
11152
11153 done
11154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11155 rm -f conftest.err conftest.$ac_ext
11156 if $ac_preproc_ok; then
11157   :
11158 else
11159   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11160 See \`config.log' for more details." >&5
11161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11162 See \`config.log' for more details." >&2;}
11163    { (exit 1); exit 1; }; }
11164 fi
11165
11166 ac_ext=c
11167 ac_cpp='$CPP $CPPFLAGS'
11168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11171
11172 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
11173 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
11174 if test "${ac_cv_path_GREP+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   # Extract the first word of "grep ggrep" to use in msg output
11178 if test -z "$GREP"; then
11179 set dummy grep ggrep; ac_prog_name=$2
11180 if test "${ac_cv_path_GREP+set}" = set; then
11181   echo $ECHO_N "(cached) $ECHO_C" >&6
11182 else
11183   ac_path_GREP_found=false
11184 # Loop through the user's path and test for each of PROGNAME-LIST
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11187 do
11188   IFS=$as_save_IFS
11189   test -z "$as_dir" && as_dir=.
11190   for ac_prog in grep ggrep; do
11191   for ac_exec_ext in '' $ac_executable_extensions; do
11192     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11193     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
11194     # Check for GNU ac_path_GREP and select it if it is found.
11195   # Check for GNU $ac_path_GREP
11196 case `"$ac_path_GREP" --version 2>&1` in
11197 *GNU*)
11198   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11199 *)
11200   ac_count=0
11201   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11202   while :
11203   do
11204     cat "conftest.in" "conftest.in" >"conftest.tmp"
11205     mv "conftest.tmp" "conftest.in"
11206     cp "conftest.in" "conftest.nl"
11207     echo 'GREP' >> "conftest.nl"
11208     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11209     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11210     ac_count=`expr $ac_count + 1`
11211     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11212       # Best one so far, save it but keep looking for a better one
11213       ac_cv_path_GREP="$ac_path_GREP"
11214       ac_path_GREP_max=$ac_count
11215     fi
11216     # 10*(2^10) chars as input seems more than enough
11217     test $ac_count -gt 10 && break
11218   done
11219   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11220 esac
11221
11222
11223     $ac_path_GREP_found && break 3
11224   done
11225 done
11226
11227 done
11228 IFS=$as_save_IFS
11229
11230
11231 fi
11232
11233 GREP="$ac_cv_path_GREP"
11234 if test -z "$GREP"; then
11235   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11236 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11237    { (exit 1); exit 1; }; }
11238 fi
11239
11240 else
11241   ac_cv_path_GREP=$GREP
11242 fi
11243
11244
11245 fi
11246 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
11247 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
11248  GREP="$ac_cv_path_GREP"
11249
11250
11251 { echo "$as_me:$LINENO: checking for egrep" >&5
11252 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11253 if test "${ac_cv_path_EGREP+set}" = set; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11257    then ac_cv_path_EGREP="$GREP -E"
11258    else
11259      # Extract the first word of "egrep" to use in msg output
11260 if test -z "$EGREP"; then
11261 set dummy egrep; ac_prog_name=$2
11262 if test "${ac_cv_path_EGREP+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   ac_path_EGREP_found=false
11266 # Loop through the user's path and test for each of PROGNAME-LIST
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11269 do
11270   IFS=$as_save_IFS
11271   test -z "$as_dir" && as_dir=.
11272   for ac_prog in egrep; do
11273   for ac_exec_ext in '' $ac_executable_extensions; do
11274     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11275     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11276     # Check for GNU ac_path_EGREP and select it if it is found.
11277   # Check for GNU $ac_path_EGREP
11278 case `"$ac_path_EGREP" --version 2>&1` in
11279 *GNU*)
11280   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11281 *)
11282   ac_count=0
11283   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11284   while :
11285   do
11286     cat "conftest.in" "conftest.in" >"conftest.tmp"
11287     mv "conftest.tmp" "conftest.in"
11288     cp "conftest.in" "conftest.nl"
11289     echo 'EGREP' >> "conftest.nl"
11290     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11291     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11292     ac_count=`expr $ac_count + 1`
11293     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11294       # Best one so far, save it but keep looking for a better one
11295       ac_cv_path_EGREP="$ac_path_EGREP"
11296       ac_path_EGREP_max=$ac_count
11297     fi
11298     # 10*(2^10) chars as input seems more than enough
11299     test $ac_count -gt 10 && break
11300   done
11301   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11302 esac
11303
11304
11305     $ac_path_EGREP_found && break 3
11306   done
11307 done
11308
11309 done
11310 IFS=$as_save_IFS
11311
11312
11313 fi
11314
11315 EGREP="$ac_cv_path_EGREP"
11316 if test -z "$EGREP"; then
11317   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11318 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11319    { (exit 1); exit 1; }; }
11320 fi
11321
11322 else
11323   ac_cv_path_EGREP=$EGREP
11324 fi
11325
11326
11327    fi
11328 fi
11329 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11330 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11331  EGREP="$ac_cv_path_EGREP"
11332
11333
11334
11335
11336
11337
11338         { echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
11339 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6; }
11340 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
11341   echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343
11344                 ac_ext=c
11345 ac_cpp='$CPP $CPPFLAGS'
11346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11349
11350                 cat >conftest.$ac_ext <<_ACEOF
11351
11352 #ifdef ENSC_SYSCALL_FALLBACK
11353 #  include ENSC_SYSCALL_FALLBACK
11354 #else
11355 #  include <asm/unistd.h>
11356 #endif
11357 #ifdef __NR_vserver
11358 ensc_syscall_tmp_nr=__NR_vserver;
11359 ensc_syscall_tmp_src=ENSC_MARK
11360 #endif
11361
11362 _ACEOF
11363                 ensc_syscall_tmp_nr=
11364                 ensc_syscall_tmp_src=
11365                 test x"$ensc_syscall_tmp_nr" != x || \
11366                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
11367                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
11368                         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=.*)$')
11369                 test "$ensc_syscall_tmp_nr" || {
11370                         ensc_syscall_tmp_nr=273
11371                         ensc_syscall_tmp_src=default
11372                 }
11373
11374                 if test x"$ensc_syscall_tmp_nr" = x; then
11375                         { { 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
11376 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;}
11377    { (exit 1); exit 1; }; }
11378                 fi
11379                 ac_ext=c
11380 ac_cpp='$CPP $CPPFLAGS'
11381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11384
11385
11386                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
11387
11388 fi
11389 { echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
11390 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6; }
11391
11392         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
11393         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
11394
11395         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
11399 _ACEOF
11400
11401         fi
11402
11403
11404         { echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
11405 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6; }
11406         # Check whether --enable-alternative-syscalls was given.
11407 if test "${enable_alternative_syscalls+set}" = set; then
11408   enableval=$enable_alternative_syscalls; case $enableval in
11409                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
11410                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
11411 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
11412    { (exit 1); exit 1; }; };;
11413                        esac
11414 else
11415   ensc_use_alternative_syscall_macros=yes
11416 fi
11417
11418
11419         case $ensc_use_alternative_syscall_macros in
11420                 (yes)
11421 cat >>confdefs.h <<\_ACEOF
11422 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
11423 _ACEOF
11424 ;;
11425         esac
11426
11427         { echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
11428 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6; }
11429
11430
11431
11432
11433         { echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
11434 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6; }
11435
11436 # Check whether --with-syscall was given.
11437 if test "${with_syscall+set}" = set; then
11438   withval=$with_syscall;
11439 else
11440   with_syscall=auto
11441 fi
11442
11443         { echo "$as_me:$LINENO: result: $with_syscall" >&5
11444 echo "${ECHO_T}$with_syscall" >&6; }
11445
11446         case x"$with_syscall" in
11447             (xauto)
11448                 { echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
11449 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6; }
11450 if test "${ensc_cv_test_syscall+set}" = set; then
11451   echo $ECHO_N "(cached) $ECHO_C" >&6
11452 else
11453
11454                                 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460                                 cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466
11467 #include "$srcdir/lib/syscall-wrap.h"
11468 #include <errno.h>
11469
11470 #define __NR_foo0       300
11471 #define __NR_foo1       301
11472 #define __NR_foo2       302
11473 #define __NR_foo3       303
11474 #define __NR_foo4       304
11475 #define __NR_foo5       305
11476 inline static _syscall0(int, foo0)
11477 inline static _syscall1(int, foo1, int, a)
11478 inline static _syscall2(int, foo2, int, a, int, b)
11479 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11480 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11481 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11482
11483 int main() {
11484   return foo0() || \
11485          foo1(1) || \
11486          foo2(1,2) || \
11487          foo3(1,2,3) || \
11488          foo4(1,2,3,4) || \
11489          foo5(1,2,3,4,5);
11490 }
11491
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_compile") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } && {
11507          test -z "$ac_c_werror_flag" ||
11508          test ! -s conftest.err
11509        } && test -s conftest.$ac_objext; then
11510   ensc_cv_test_syscall=fast
11511 else
11512   echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515         ensc_cv_test_syscall=traditional
11516 fi
11517
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519
11520                                 ac_ext=c
11521 ac_cpp='$CPP $CPPFLAGS'
11522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525
11526
11527 fi
11528 { echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
11529 echo "${ECHO_T}$ensc_cv_test_syscall" >&6; }
11530                 with_syscall=$ensc_cv_test_syscall
11531                 ;;
11532             (xfast|xtraditional)
11533                 ;;
11534             *)
11535                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
11536 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
11537    { (exit 1); exit 1; }; }
11538                 ;;
11539         esac
11540
11541         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
11542             with_syscall='alternative'
11543         fi
11544
11545         if test x"$with_syscall" = xtraditional; then
11546
11547 cat >>confdefs.h <<\_ACEOF
11548 #define ENSC_SYSCALL_TRADITIONAL 1
11549 _ACEOF
11550
11551         fi
11552
11553
11554
11555
11556
11557
11558 case $host_cpu in
11559         (i*86|athlon)   min_diet_ver=0.25;;
11560         (ia64|hppa*)    min_diet_ver=0.29;;
11561         (sparc*)        min_diet_ver=0.30;;
11562         (x86_64)        min_diet_ver=0.27;;
11563         (*)             min_diet_ver=0.28;;
11564 esac
11565
11566
11567         { echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
11568 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6; }
11569
11570
11571
11572
11573         : ${DIET:=diet}
11574         : ${DIETFLAGS=-Os}
11575
11576         # Check whether --enable-dietlibc was given.
11577 if test "${enable_dietlibc+set}" = set; then
11578   enableval=$enable_dietlibc; case "$enableval" in
11579                           (yes) use_dietlibc=forced;;
11580                           (no)  use_dietlibc=forced_no;;
11581                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
11582 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
11583    { (exit 1); exit 1; }; };;
11584                        esac
11585 else
11586   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
11587 fi
11588
11589
11590         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
11591             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
11592             _dietlibc_ver=${_dietlibc_ver##*diet version }
11593             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
11594             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
11595             _dietlibc_ver_min=${_dietlibc_ver##*.}
11596             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
11597             _dietlibc_cmp="$min_diet_ver"
11598             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
11599             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
11600
11601             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
11602
11603             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
11604             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
11605
11606             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
11607         else
11608             ENSC_VERSION_DIETLIBC=
11609             _dietlibc_ver=-1
11610         fi
11611
11612         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
11613         ensc_have_dietlibc=no
11614
11615         case x"$use_dietlibc" in
11616             xdetected)
11617                  if true; then
11618   USE_DIETLIBC_TRUE=
11619   USE_DIETLIBC_FALSE='#'
11620 else
11621   USE_DIETLIBC_TRUE='#'
11622   USE_DIETLIBC_FALSE=
11623 fi
11624
11625                 { echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
11626 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6; }
11627                 ensc_have_dietlibc=yes
11628                 ;;
11629             xforced)
11630                  if true; then
11631   USE_DIETLIBC_TRUE=
11632   USE_DIETLIBC_FALSE='#'
11633 else
11634   USE_DIETLIBC_TRUE='#'
11635   USE_DIETLIBC_FALSE=
11636 fi
11637
11638                 { echo "$as_me:$LINENO: result: yes (forced)" >&5
11639 echo "${ECHO_T}yes (forced)" >&6; }
11640                 ensc_have_dietlibc=yes
11641                 ;;
11642             xdetected_no)
11643                  if false; then
11644   USE_DIETLIBC_TRUE=
11645   USE_DIETLIBC_FALSE='#'
11646 else
11647   USE_DIETLIBC_TRUE='#'
11648   USE_DIETLIBC_FALSE=
11649 fi
11650
11651                 { echo "$as_me:$LINENO: result: no (detected)" >&5
11652 echo "${ECHO_T}no (detected)" >&6; }
11653                 ;;
11654             xdetected_old)
11655                  if false; then
11656   USE_DIETLIBC_TRUE=
11657   USE_DIETLIBC_FALSE='#'
11658 else
11659   USE_DIETLIBC_TRUE='#'
11660   USE_DIETLIBC_FALSE=
11661 fi
11662
11663                 { echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
11664 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6; }
11665                 ;;
11666             xforced_no)
11667                  if false; then
11668   USE_DIETLIBC_TRUE=
11669   USE_DIETLIBC_FALSE='#'
11670 else
11671   USE_DIETLIBC_TRUE='#'
11672   USE_DIETLIBC_FALSE=
11673 fi
11674
11675                 { echo "$as_me:$LINENO: result: no (forced)" >&5
11676 echo "${ECHO_T}no (forced)" >&6; }
11677                 ;;
11678             *)
11679                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
11680 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
11681    { (exit 1); exit 1; }; }
11682                 ;;
11683         esac
11684
11685         if test x"$ensc_have_dietlibc" != xno; then
11686
11687
11688
11689
11690         { echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
11691 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6; }
11692 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695
11696                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
11697                 _ensc_dietlibc_c99_old_CC=$CC
11698
11699                 CFLAGS="-std=c99"
11700                 CC="${DIET:-diet} $CC"
11701
11702                 ac_ext=c
11703 ac_cpp='$CPP $CPPFLAGS'
11704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708                 cat >conftest.$ac_ext <<_ACEOF
11709 /* */
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_compile") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } && {
11725          test -z "$ac_c_werror_flag" ||
11726          test ! -s conftest.err
11727        } && test -s conftest.$ac_objext; then
11728
11729                         cat >conftest.$ac_ext <<_ACEOF
11730
11731                                 #include <stdint.h>
11732                                 #include <sys/cdefs.h>
11733                                 #if defined(inline)
11734                                 #  error 'inline' badly defined
11735                                 #endif
11736                                 volatile uint64_t       a;
11737
11738 _ACEOF
11739 rm -f conftest.$ac_objext
11740 if { (ac_try="$ac_compile"
11741 case "(($ac_try" in
11742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743   *) ac_try_echo=$ac_try;;
11744 esac
11745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11746   (eval "$ac_compile") 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } && {
11753          test -z "$ac_c_werror_flag" ||
11754          test ! -s conftest.err
11755        } && test -s conftest.$ac_objext; then
11756   ensc_cv_c_dietlibc_c99=yes
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761         ensc_cv_c_dietlibc_c99=no
11762 fi
11763
11764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769         ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
11770 fi
11771
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773                 ac_ext=c
11774 ac_cpp='$CPP $CPPFLAGS'
11775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11778
11779
11780                 CC=$_ensc_dietlibc_c99_old_CC
11781                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
11782
11783 fi
11784 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
11785 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6; }
11786
11787         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
11788                 cat >>confdefs.h <<\_ACEOF
11789 #define ENSC_DIETLIBC_C99 1
11790 _ACEOF
11791
11792         fi
11793
11794
11795
11796
11797
11798         { echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
11799 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6; }
11800 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803
11804                 _ensc_dietlibc_syscall_old_CC="$CC"
11805                 CC="${DIET:-diet} $CC"
11806
11807                 ac_ext=c
11808 ac_cpp='$CPP $CPPFLAGS'
11809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812
11813                 cat >conftest.$ac_ext <<_ACEOF
11814
11815                         #include <sys/syscall.h>
11816                         long int syscall(long int __sysno, ...);
11817
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_compile") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } && {
11833          test -z "$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        } && test -s conftest.$ac_objext; then
11836   ensc_cv_c_dietlibc_syscall=no
11837 else
11838   echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841         ensc_cv_c_dietlibc_syscall=yes
11842 fi
11843
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845                 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852                 CC="$_ensc_dietlibc_syscall_old_CC"
11853
11854 fi
11855 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
11856 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6; }
11857
11858         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
11859                 cat >>confdefs.h <<\_ACEOF
11860 #define ENSC_DIETLIBC_HAS_SYSCALL 1
11861 _ACEOF
11862
11863         fi
11864
11865         fi
11866
11867
11868 if test x"$ensc_have_dietlibc" = xno; then
11869         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11870 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11871         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
11872 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
11873         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
11874 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
11875         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
11876 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
11877         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
11878 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
11879         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11880 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11881          if false; then
11882   USE_DIETLIBC_COMPAT_TRUE=
11883   USE_DIETLIBC_COMPAT_FALSE='#'
11884 else
11885   USE_DIETLIBC_COMPAT_TRUE='#'
11886   USE_DIETLIBC_COMPAT_FALSE=
11887 fi
11888
11889 else
11890         # HACK: libtool does not have cmdline options to build only
11891         # dynamic libraries; this can be done with the
11892         # '--disable-static' ./configure option only.  As our static
11893         # libraries will be build with dietlibc, we have to do set
11894         # this option which is evaluated by 'AC_PROG_LIBTOOL'
11895         # below.  Therefore, this macro must not be called earlier.
11896         enable_static=no
11897
11898
11899
11900
11901         { echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
11902 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6; }
11903 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906
11907                 ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913                 ensc_dietlibc_need_compat_old_CC=$CC
11914                 CC="${DIET:-diet} $CC"
11915                 cat >conftest.$ac_ext <<_ACEOF
11916
11917                         /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922
11923 #include "$srcdir/lib/syscall-wrap.h"
11924 #include <errno.h>
11925
11926 #define __NR_foo0               42
11927 #define __NR_foo1               42
11928 #define __NR_foo2               42
11929 #define __NR_foo3               42
11930 #define __NR_foo4               42
11931 #define __NR_foo5               42
11932 inline static _syscall0(int, foo0)
11933 inline static _syscall1(int, foo1, int, a)
11934 inline static _syscall2(int, foo2, int, a, int, b)
11935 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11936 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11937 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11938
11939 int
11940 main ()
11941 {
11942 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954   (eval "$ac_link") 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } && {
11961          test -z "$ac_c_werror_flag" ||
11962          test ! -s conftest.err
11963        } && test -s conftest$ac_exeext &&
11964        $as_test_x conftest$ac_exeext; then
11965   ensc_cv_c_dietlibc_compat=no
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970         ensc_cv_c_dietlibc_compat=yes
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11974       conftest$ac_exeext conftest.$ac_ext
11975                 CC=$ensc_dietlibc_need_compat_old_CC
11976                 ac_ext=c
11977 ac_cpp='$CPP $CPPFLAGS'
11978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11981
11982
11983 fi
11984 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11985 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6; }
11986
11987         if test x"USE_DIETLIBC_COMPAT" != x; then
11988                  if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11989   USE_DIETLIBC_COMPAT_TRUE=
11990   USE_DIETLIBC_COMPAT_FALSE='#'
11991 else
11992   USE_DIETLIBC_COMPAT_TRUE='#'
11993   USE_DIETLIBC_COMPAT_FALSE=
11994 fi
11995
11996         fi
11997
11998 fi
11999
12000  if test x"$ensc_have_dietlibc" = xyes; then
12001   ENSC_USE_DIETLIBC_TRUE=
12002   ENSC_USE_DIETLIBC_FALSE='#'
12003 else
12004   ENSC_USE_DIETLIBC_TRUE='#'
12005   ENSC_USE_DIETLIBC_FALSE=
12006 fi
12007
12008  if true; then
12009   ENSC_USE_GLIBC_TRUE=
12010   ENSC_USE_GLIBC_FALSE='#'
12011 else
12012   ENSC_USE_GLIBC_TRUE='#'
12013   ENSC_USE_GLIBC_FALSE=
12014 fi
12015
12016
12017 # HACK: see comments at 'enable_static' above
12018 # Check whether --enable-shared was given.
12019 if test "${enable_shared+set}" = set; then
12020   enableval=$enable_shared; p=${PACKAGE-default}
12021     case $enableval in
12022     yes) enable_shared=yes ;;
12023     no) enable_shared=no ;;
12024     *)
12025       enable_shared=no
12026       # Look at the argument we got.  We use all the common list separators.
12027       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12028       for pkg in $enableval; do
12029         IFS="$lt_save_ifs"
12030         if test "X$pkg" = "X$p"; then
12031           enable_shared=yes
12032         fi
12033       done
12034       IFS="$lt_save_ifs"
12035       ;;
12036     esac
12037 else
12038   enable_shared=yes
12039 fi
12040
12041
12042 # Check whether --enable-static was given.
12043 if test "${enable_static+set}" = set; then
12044   enableval=$enable_static; p=${PACKAGE-default}
12045     case $enableval in
12046     yes) enable_static=yes ;;
12047     no) enable_static=no ;;
12048     *)
12049      enable_static=no
12050       # Look at the argument we got.  We use all the common list separators.
12051       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12052       for pkg in $enableval; do
12053         IFS="$lt_save_ifs"
12054         if test "X$pkg" = "X$p"; then
12055           enable_static=yes
12056         fi
12057       done
12058       IFS="$lt_save_ifs"
12059       ;;
12060     esac
12061 else
12062   enable_static=yes
12063 fi
12064
12065
12066 # Check whether --enable-fast-install was given.
12067 if test "${enable_fast_install+set}" = set; then
12068   enableval=$enable_fast_install; p=${PACKAGE-default}
12069     case $enableval in
12070     yes) enable_fast_install=yes ;;
12071     no) enable_fast_install=no ;;
12072     *)
12073       enable_fast_install=no
12074       # Look at the argument we got.  We use all the common list separators.
12075       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12076       for pkg in $enableval; do
12077         IFS="$lt_save_ifs"
12078         if test "X$pkg" = "X$p"; then
12079           enable_fast_install=yes
12080         fi
12081       done
12082       IFS="$lt_save_ifs"
12083       ;;
12084     esac
12085 else
12086   enable_fast_install=yes
12087 fi
12088
12089
12090 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12091 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12092 if test "${lt_cv_path_SED+set}" = set; then
12093   echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095   # Loop through the user's path and test for sed and gsed.
12096 # Then use that list of sed's as ones to test for truncation.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
12101   test -z "$as_dir" && as_dir=.
12102   for lt_ac_prog in sed gsed; do
12103     for ac_exec_ext in '' $ac_executable_extensions; do
12104       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12105         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12106       fi
12107     done
12108   done
12109 done
12110 IFS=$as_save_IFS
12111 lt_ac_max=0
12112 lt_ac_count=0
12113 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12114 # along with /bin/sed that truncates output.
12115 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12116   test ! -f $lt_ac_sed && continue
12117   cat /dev/null > conftest.in
12118   lt_ac_count=0
12119   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12120   # Check for GNU sed and select it if it is found.
12121   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12122     lt_cv_path_SED=$lt_ac_sed
12123     break
12124   fi
12125   while true; do
12126     cat conftest.in conftest.in >conftest.tmp
12127     mv conftest.tmp conftest.in
12128     cp conftest.in conftest.nl
12129     echo >>conftest.nl
12130     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12131     cmp -s conftest.out conftest.nl || break
12132     # 10000 chars as input seems more than enough
12133     test $lt_ac_count -gt 10 && break
12134     lt_ac_count=`expr $lt_ac_count + 1`
12135     if test $lt_ac_count -gt $lt_ac_max; then
12136       lt_ac_max=$lt_ac_count
12137       lt_cv_path_SED=$lt_ac_sed
12138     fi
12139   done
12140 done
12141
12142 fi
12143
12144 SED=$lt_cv_path_SED
12145
12146 { echo "$as_me:$LINENO: result: $SED" >&5
12147 echo "${ECHO_T}$SED" >&6; }
12148
12149
12150 # Check whether --with-gnu-ld was given.
12151 if test "${with_gnu_ld+set}" = set; then
12152   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12153 else
12154   with_gnu_ld=no
12155 fi
12156
12157 ac_prog=ld
12158 if test "$GCC" = yes; then
12159   # Check if gcc -print-prog-name=ld gives a path.
12160   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12161 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12162   case $host in
12163   *-*-mingw*)
12164     # gcc leaves a trailing carriage return which upsets mingw
12165     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12166   *)
12167     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12168   esac
12169   case $ac_prog in
12170     # Accept absolute paths.
12171     [\\/]* | ?:[\\/]*)
12172       re_direlt='/[^/][^/]*/\.\./'
12173       # Canonicalize the pathname of ld
12174       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12175       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12176         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12177       done
12178       test -z "$LD" && LD="$ac_prog"
12179       ;;
12180   "")
12181     # If it fails, then pretend we aren't using GCC.
12182     ac_prog=ld
12183     ;;
12184   *)
12185     # If it is relative, then search for the first ld in PATH.
12186     with_gnu_ld=unknown
12187     ;;
12188   esac
12189 elif test "$with_gnu_ld" = yes; then
12190   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12191 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12192 else
12193   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12194 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12195 fi
12196 if test "${lt_cv_path_LD+set}" = set; then
12197   echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199   if test -z "$LD"; then
12200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12201   for ac_dir in $PATH; do
12202     IFS="$lt_save_ifs"
12203     test -z "$ac_dir" && ac_dir=.
12204     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12205       lt_cv_path_LD="$ac_dir/$ac_prog"
12206       # Check to see if the program is GNU ld.  I'd rather use --version,
12207       # but apparently some variants of GNU ld only accept -v.
12208       # Break only if it was the GNU/non-GNU ld that we prefer.
12209       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12210       *GNU* | *'with BFD'*)
12211         test "$with_gnu_ld" != no && break
12212         ;;
12213       *)
12214         test "$with_gnu_ld" != yes && break
12215         ;;
12216       esac
12217     fi
12218   done
12219   IFS="$lt_save_ifs"
12220 else
12221   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12222 fi
12223 fi
12224
12225 LD="$lt_cv_path_LD"
12226 if test -n "$LD"; then
12227   { echo "$as_me:$LINENO: result: $LD" >&5
12228 echo "${ECHO_T}$LD" >&6; }
12229 else
12230   { echo "$as_me:$LINENO: result: no" >&5
12231 echo "${ECHO_T}no" >&6; }
12232 fi
12233 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12234 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12235    { (exit 1); exit 1; }; }
12236 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12237 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12238 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12239   echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12242 case `$LD -v 2>&1 </dev/null` in
12243 *GNU* | *'with BFD'*)
12244   lt_cv_prog_gnu_ld=yes
12245   ;;
12246 *)
12247   lt_cv_prog_gnu_ld=no
12248   ;;
12249 esac
12250 fi
12251 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12252 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12253 with_gnu_ld=$lt_cv_prog_gnu_ld
12254
12255
12256 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12257 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12258 if test "${lt_cv_ld_reload_flag+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   lt_cv_ld_reload_flag='-r'
12262 fi
12263 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12264 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12265 reload_flag=$lt_cv_ld_reload_flag
12266 case $reload_flag in
12267 "" | " "*) ;;
12268 *) reload_flag=" $reload_flag" ;;
12269 esac
12270 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12271 case $host_os in
12272   darwin*)
12273     if test "$GCC" = yes; then
12274       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12275     else
12276       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12277     fi
12278     ;;
12279 esac
12280
12281 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12282 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12283 if test "${lt_cv_path_NM+set}" = set; then
12284   echo $ECHO_N "(cached) $ECHO_C" >&6
12285 else
12286   if test -n "$NM"; then
12287   # Let the user override the test.
12288   lt_cv_path_NM="$NM"
12289 else
12290   lt_nm_to_check="${ac_tool_prefix}nm"
12291   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12292     lt_nm_to_check="$lt_nm_to_check nm"
12293   fi
12294   for lt_tmp_nm in $lt_nm_to_check; do
12295     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12296     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12297       IFS="$lt_save_ifs"
12298       test -z "$ac_dir" && ac_dir=.
12299       tmp_nm="$ac_dir/$lt_tmp_nm"
12300       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12301         # Check to see if the nm accepts a BSD-compat flag.
12302         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12303         #   nm: unknown option "B" ignored
12304         # Tru64's nm complains that /dev/null is an invalid object file
12305         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12306         */dev/null* | *'Invalid file or object type'*)
12307           lt_cv_path_NM="$tmp_nm -B"
12308           break
12309           ;;
12310         *)
12311           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12312           */dev/null*)
12313             lt_cv_path_NM="$tmp_nm -p"
12314             break
12315             ;;
12316           *)
12317             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12318             continue # so that we can try to find one that supports BSD flags
12319             ;;
12320           esac
12321           ;;
12322         esac
12323       fi
12324     done
12325     IFS="$lt_save_ifs"
12326   done
12327   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12328 fi
12329 fi
12330 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12331 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12332 NM="$lt_cv_path_NM"
12333
12334 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12335 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12336 if test "${lt_cv_deplibs_check_method+set}" = set; then
12337   echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339   lt_cv_file_magic_cmd='$MAGIC_CMD'
12340 lt_cv_file_magic_test_file=
12341 lt_cv_deplibs_check_method='unknown'
12342 # Need to set the preceding variable on all platforms that support
12343 # interlibrary dependencies.
12344 # 'none' -- dependencies not supported.
12345 # `unknown' -- same as none, but documents that we really don't know.
12346 # 'pass_all' -- all dependencies passed with no checks.
12347 # 'test_compile' -- check by making test program.
12348 # 'file_magic [[regex]]' -- check by looking for files in library path
12349 # which responds to the $file_magic_cmd with a given extended regex.
12350 # If you have `file' or equivalent on your system and you're not sure
12351 # whether `pass_all' will *always* work, you probably want this one.
12352
12353 case $host_os in
12354 aix4* | aix5*)
12355   lt_cv_deplibs_check_method=pass_all
12356   ;;
12357
12358 beos*)
12359   lt_cv_deplibs_check_method=pass_all
12360   ;;
12361
12362 bsdi[45]*)
12363   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12364   lt_cv_file_magic_cmd='/usr/bin/file -L'
12365   lt_cv_file_magic_test_file=/shlib/libc.so
12366   ;;
12367
12368 cygwin*)
12369   # func_win32_libid is a shell function defined in ltmain.sh
12370   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12371   lt_cv_file_magic_cmd='func_win32_libid'
12372   ;;
12373
12374 mingw* | pw32*)
12375   # Base MSYS/MinGW do not provide the 'file' command needed by
12376   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12377   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12378   lt_cv_file_magic_cmd='$OBJDUMP -f'
12379   ;;
12380
12381 darwin* | rhapsody*)
12382   lt_cv_deplibs_check_method=pass_all
12383   ;;
12384
12385 freebsd* | kfreebsd*-gnu | dragonfly*)
12386   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12387     case $host_cpu in
12388     i*86 )
12389       # Not sure whether the presence of OpenBSD here was a mistake.
12390       # Let's accept both of them until this is cleared up.
12391       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12392       lt_cv_file_magic_cmd=/usr/bin/file
12393       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12394       ;;
12395     esac
12396   else
12397     lt_cv_deplibs_check_method=pass_all
12398   fi
12399   ;;
12400
12401 gnu*)
12402   lt_cv_deplibs_check_method=pass_all
12403   ;;
12404
12405 hpux10.20* | hpux11*)
12406   lt_cv_file_magic_cmd=/usr/bin/file
12407   case $host_cpu in
12408   ia64*)
12409     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12410     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12411     ;;
12412   hppa*64*)
12413     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]'
12414     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12415     ;;
12416   *)
12417     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12418     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12419     ;;
12420   esac
12421   ;;
12422
12423 interix3*)
12424   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12425   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12426   ;;
12427
12428 irix5* | irix6* | nonstopux*)
12429   case $LD in
12430   *-32|*"-32 ") libmagic=32-bit;;
12431   *-n32|*"-n32 ") libmagic=N32;;
12432   *-64|*"-64 ") libmagic=64-bit;;
12433   *) libmagic=never-match;;
12434   esac
12435   lt_cv_deplibs_check_method=pass_all
12436   ;;
12437
12438 # This must be Linux ELF.
12439 linux*)
12440   lt_cv_deplibs_check_method=pass_all
12441   ;;
12442
12443 netbsd*)
12444   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12445     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12446   else
12447     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12448   fi
12449   ;;
12450
12451 newos6*)
12452   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12453   lt_cv_file_magic_cmd=/usr/bin/file
12454   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12455   ;;
12456
12457 nto-qnx*)
12458   lt_cv_deplibs_check_method=unknown
12459   ;;
12460
12461 openbsd*)
12462   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12463     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12464   else
12465     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12466   fi
12467   ;;
12468
12469 osf3* | osf4* | osf5*)
12470   lt_cv_deplibs_check_method=pass_all
12471   ;;
12472
12473 solaris*)
12474   lt_cv_deplibs_check_method=pass_all
12475   ;;
12476
12477 sysv4 | sysv4.3*)
12478   case $host_vendor in
12479   motorola)
12480     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]'
12481     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12482     ;;
12483   ncr)
12484     lt_cv_deplibs_check_method=pass_all
12485     ;;
12486   sequent)
12487     lt_cv_file_magic_cmd='/bin/file'
12488     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12489     ;;
12490   sni)
12491     lt_cv_file_magic_cmd='/bin/file'
12492     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12493     lt_cv_file_magic_test_file=/lib/libc.so
12494     ;;
12495   siemens)
12496     lt_cv_deplibs_check_method=pass_all
12497     ;;
12498   pc)
12499     lt_cv_deplibs_check_method=pass_all
12500     ;;
12501   esac
12502   ;;
12503
12504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12505   lt_cv_deplibs_check_method=pass_all
12506   ;;
12507 esac
12508
12509 fi
12510 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12511 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12512 file_magic_cmd=$lt_cv_file_magic_cmd
12513 deplibs_check_method=$lt_cv_deplibs_check_method
12514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12515
12516
12517
12518
12519 # If no C compiler was specified, use CC.
12520 LTCC=${LTCC-"$CC"}
12521
12522 # If no C compiler flags were specified, use CFLAGS.
12523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12524
12525 # Allow CC to be a program name with arguments.
12526 compiler=$CC
12527
12528 # Check whether --enable-libtool-lock was given.
12529 if test "${enable_libtool_lock+set}" = set; then
12530   enableval=$enable_libtool_lock;
12531 fi
12532
12533 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12534
12535 # Some flags need to be propagated to the compiler or linker for good
12536 # libtool support.
12537 case $host in
12538 ia64-*-hpux*)
12539   # Find out which ABI we are using.
12540   echo 'int i;' > conftest.$ac_ext
12541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; then
12546     case `/usr/bin/file conftest.$ac_objext` in
12547     *ELF-32*)
12548       HPUX_IA64_MODE="32"
12549       ;;
12550     *ELF-64*)
12551       HPUX_IA64_MODE="64"
12552       ;;
12553     esac
12554   fi
12555   rm -rf conftest*
12556   ;;
12557 *-*-irix6*)
12558   # Find out which ABI we are using.
12559   echo '#line 12559 "configure"' > conftest.$ac_ext
12560   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12561   (eval $ac_compile) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; then
12565    if test "$lt_cv_prog_gnu_ld" = yes; then
12566     case `/usr/bin/file conftest.$ac_objext` in
12567     *32-bit*)
12568       LD="${LD-ld} -melf32bsmip"
12569       ;;
12570     *N32*)
12571       LD="${LD-ld} -melf32bmipn32"
12572       ;;
12573     *64-bit*)
12574       LD="${LD-ld} -melf64bmip"
12575       ;;
12576     esac
12577    else
12578     case `/usr/bin/file conftest.$ac_objext` in
12579     *32-bit*)
12580       LD="${LD-ld} -32"
12581       ;;
12582     *N32*)
12583       LD="${LD-ld} -n32"
12584       ;;
12585     *64-bit*)
12586       LD="${LD-ld} -64"
12587       ;;
12588     esac
12589    fi
12590   fi
12591   rm -rf conftest*
12592   ;;
12593
12594 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12595   # Find out which ABI we are using.
12596   echo 'int i;' > conftest.$ac_ext
12597   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12598   (eval $ac_compile) 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; then
12602     case `/usr/bin/file conftest.o` in
12603     *32-bit*)
12604       case $host in
12605         x86_64-*linux*)
12606           LD="${LD-ld} -m elf_i386"
12607           ;;
12608         ppc64-*linux*|powerpc64-*linux*)
12609           LD="${LD-ld} -m elf32ppclinux"
12610           ;;
12611         s390x-*linux*)
12612           LD="${LD-ld} -m elf_s390"
12613           ;;
12614         sparc64-*linux*)
12615           LD="${LD-ld} -m elf32_sparc"
12616           ;;
12617       esac
12618       ;;
12619     *64-bit*)
12620       case $host in
12621         x86_64-*linux*)
12622           LD="${LD-ld} -m elf_x86_64"
12623           ;;
12624         ppc*-*linux*|powerpc*-*linux*)
12625           LD="${LD-ld} -m elf64ppc"
12626           ;;
12627         s390*-*linux*)
12628           LD="${LD-ld} -m elf64_s390"
12629           ;;
12630         sparc*-*linux*)
12631           LD="${LD-ld} -m elf64_sparc"
12632           ;;
12633       esac
12634       ;;
12635     esac
12636   fi
12637   rm -rf conftest*
12638   ;;
12639
12640 *-*-sco3.2v5*)
12641   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12642   SAVE_CFLAGS="$CFLAGS"
12643   CFLAGS="$CFLAGS -belf"
12644   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12645 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12646 if test "${lt_cv_cc_needs_belf+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   ac_ext=c
12650 ac_cpp='$CPP $CPPFLAGS'
12651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655      cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661
12662 int
12663 main ()
12664 {
12665
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (ac_try="$ac_link"
12672 case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677   (eval "$ac_link") 2>conftest.er1
12678   ac_status=$?
12679   grep -v '^ *+' conftest.er1 >conftest.err
12680   rm -f conftest.er1
12681   cat conftest.err >&5
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } && {
12684          test -z "$ac_c_werror_flag" ||
12685          test ! -s conftest.err
12686        } && test -s conftest$ac_exeext &&
12687        $as_test_x conftest$ac_exeext; then
12688   lt_cv_cc_needs_belf=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         lt_cv_cc_needs_belf=no
12694 fi
12695
12696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697       conftest$ac_exeext conftest.$ac_ext
12698      ac_ext=c
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704 fi
12705 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12706 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12707   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12708     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12709     CFLAGS="$SAVE_CFLAGS"
12710   fi
12711   ;;
12712 sparc*-*solaris*)
12713   # Find out which ABI we are using.
12714   echo 'int i;' > conftest.$ac_ext
12715   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716   (eval $ac_compile) 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; then
12720     case `/usr/bin/file conftest.o` in
12721     *64-bit*)
12722       case $lt_cv_prog_gnu_ld in
12723       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12724       *)    LD="${LD-ld} -64" ;;
12725       esac
12726       ;;
12727     esac
12728   fi
12729   rm -rf conftest*
12730   ;;
12731
12732
12733 esac
12734
12735 need_locks="$enable_libtool_lock"
12736
12737
12738
12739 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12740 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12741 if test "${ac_cv_header_stdc+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744   cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 #include <stdlib.h>
12751 #include <stdarg.h>
12752 #include <string.h>
12753 #include <float.h>
12754
12755 int
12756 main ()
12757 {
12758
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 rm -f conftest.$ac_objext
12764 if { (ac_try="$ac_compile"
12765 case "(($ac_try" in
12766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12767   *) ac_try_echo=$ac_try;;
12768 esac
12769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12770   (eval "$ac_compile") 2>conftest.er1
12771   ac_status=$?
12772   grep -v '^ *+' conftest.er1 >conftest.err
12773   rm -f conftest.er1
12774   cat conftest.err >&5
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); } && {
12777          test -z "$ac_c_werror_flag" ||
12778          test ! -s conftest.err
12779        } && test -s conftest.$ac_objext; then
12780   ac_cv_header_stdc=yes
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785         ac_cv_header_stdc=no
12786 fi
12787
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789
12790 if test $ac_cv_header_stdc = yes; then
12791   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12792   cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 #include <string.h>
12799
12800 _ACEOF
12801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12802   $EGREP "memchr" >/dev/null 2>&1; then
12803   :
12804 else
12805   ac_cv_header_stdc=no
12806 fi
12807 rm -f conftest*
12808
12809 fi
12810
12811 if test $ac_cv_header_stdc = yes; then
12812   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12813   cat >conftest.$ac_ext <<_ACEOF
12814 /* confdefs.h.  */
12815 _ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h.  */
12819 #include <stdlib.h>
12820
12821 _ACEOF
12822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12823   $EGREP "free" >/dev/null 2>&1; then
12824   :
12825 else
12826   ac_cv_header_stdc=no
12827 fi
12828 rm -f conftest*
12829
12830 fi
12831
12832 if test $ac_cv_header_stdc = yes; then
12833   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12834   if test "$cross_compiling" = yes; then
12835   :
12836 else
12837   cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h.  */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h.  */
12843 #include <ctype.h>
12844 #include <stdlib.h>
12845 #if ((' ' & 0x0FF) == 0x020)
12846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12848 #else
12849 # define ISLOWER(c) \
12850                    (('a' <= (c) && (c) <= 'i') \
12851                      || ('j' <= (c) && (c) <= 'r') \
12852                      || ('s' <= (c) && (c) <= 'z'))
12853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12854 #endif
12855
12856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12857 int
12858 main ()
12859 {
12860   int i;
12861   for (i = 0; i < 256; i++)
12862     if (XOR (islower (i), ISLOWER (i))
12863         || toupper (i) != TOUPPER (i))
12864       return 2;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872   *) ac_try_echo=$ac_try;;
12873 esac
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875   (eval "$ac_link") 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12879   { (case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_try") 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   :
12889 else
12890   echo "$as_me: program exited with status $ac_status" >&5
12891 echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 ( exit $ac_status )
12895 ac_cv_header_stdc=no
12896 fi
12897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12898 fi
12899
12900
12901 fi
12902 fi
12903 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12904 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12905 if test $ac_cv_header_stdc = yes; then
12906
12907 cat >>confdefs.h <<\_ACEOF
12908 #define STDC_HEADERS 1
12909 _ACEOF
12910
12911 fi
12912
12913 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12924                   inttypes.h stdint.h unistd.h
12925 do
12926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12930   echo $ECHO_N "(cached) $ECHO_C" >&6
12931 else
12932   cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h.  */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h.  */
12938 $ac_includes_default
12939
12940 #include <$ac_header>
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (ac_try="$ac_compile"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949   (eval "$ac_compile") 2>conftest.er1
12950   ac_status=$?
12951   grep -v '^ *+' conftest.er1 >conftest.err
12952   rm -f conftest.er1
12953   cat conftest.err >&5
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } && {
12956          test -z "$ac_c_werror_flag" ||
12957          test ! -s conftest.err
12958        } && test -s conftest.$ac_objext; then
12959   eval "$as_ac_Header=yes"
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964         eval "$as_ac_Header=no"
12965 fi
12966
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 fi
12969 ac_res=`eval echo '${'$as_ac_Header'}'`
12970                { echo "$as_me:$LINENO: result: $ac_res" >&5
12971 echo "${ECHO_T}$ac_res" >&6; }
12972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12973   cat >>confdefs.h <<_ACEOF
12974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12975 _ACEOF
12976
12977 fi
12978
12979 done
12980
12981
12982
12983 for ac_header in dlfcn.h
12984 do
12985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12987   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12990   echo $ECHO_N "(cached) $ECHO_C" >&6
12991 fi
12992 ac_res=`eval echo '${'$as_ac_Header'}'`
12993                { echo "$as_me:$LINENO: result: $ac_res" >&5
12994 echo "${ECHO_T}$ac_res" >&6; }
12995 else
12996   # Is the header compilable?
12997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12999 cat >conftest.$ac_ext <<_ACEOF
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005 $ac_includes_default
13006 #include <$ac_header>
13007 _ACEOF
13008 rm -f conftest.$ac_objext
13009 if { (ac_try="$ac_compile"
13010 case "(($ac_try" in
13011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012   *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015   (eval "$ac_compile") 2>conftest.er1
13016   ac_status=$?
13017   grep -v '^ *+' conftest.er1 >conftest.err
13018   rm -f conftest.er1
13019   cat conftest.err >&5
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); } && {
13022          test -z "$ac_c_werror_flag" ||
13023          test ! -s conftest.err
13024        } && test -s conftest.$ac_objext; then
13025   ac_header_compiler=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030         ac_header_compiler=no
13031 fi
13032
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13035 echo "${ECHO_T}$ac_header_compiler" >&6; }
13036
13037 # Is the header present?
13038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 #include <$ac_header>
13047 _ACEOF
13048 if { (ac_try="$ac_cpp conftest.$ac_ext"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } >/dev/null && {
13061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13062          test ! -s conftest.err
13063        }; then
13064   ac_header_preproc=yes
13065 else
13066   echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069   ac_header_preproc=no
13070 fi
13071
13072 rm -f conftest.err conftest.$ac_ext
13073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13074 echo "${ECHO_T}$ac_header_preproc" >&6; }
13075
13076 # So?  What about this header?
13077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13078   yes:no: )
13079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13083     ac_header_preproc=yes
13084     ;;
13085   no:yes:* )
13086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13098     ( cat <<\_ASBOX
13099 ## --------------------------------------------- ##
13100 ## Report this to vserver@list.linux-vserver.org ##
13101 ## --------------------------------------------- ##
13102 _ASBOX
13103      ) | sed "s/^/$as_me: WARNING:     /" >&2
13104     ;;
13105 esac
13106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13109   echo $ECHO_N "(cached) $ECHO_C" >&6
13110 else
13111   eval "$as_ac_Header=\$ac_header_preproc"
13112 fi
13113 ac_res=`eval echo '${'$as_ac_Header'}'`
13114                { echo "$as_me:$LINENO: result: $ac_res" >&5
13115 echo "${ECHO_T}$ac_res" >&6; }
13116
13117 fi
13118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13119   cat >>confdefs.h <<_ACEOF
13120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13121 _ACEOF
13122
13123 fi
13124
13125 done
13126
13127
13128
13129 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13130     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13131     (test "X$CXX" != "Xg++"))) ; then
13132   ac_ext=cpp
13133 ac_cpp='$CXXCPP $CPPFLAGS'
13134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13137 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13138 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13139 if test -z "$CXXCPP"; then
13140   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13141   echo $ECHO_N "(cached) $ECHO_C" >&6
13142 else
13143       # Double quotes because CXXCPP needs to be expanded
13144     for CXXCPP in "$CXX -E" "/lib/cpp"
13145     do
13146       ac_preproc_ok=false
13147 for ac_cxx_preproc_warn_flag in '' yes
13148 do
13149   # Use a header file that comes with gcc, so configuring glibc
13150   # with a fresh cross-compiler works.
13151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13152   # <limits.h> exists even on freestanding compilers.
13153   # On the NeXT, cc -E runs the code through the compiler's parser,
13154   # not just through cpp. "Syntax error" is here to catch this case.
13155   cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 #ifdef __STDC__
13162 # include <limits.h>
13163 #else
13164 # include <assert.h>
13165 #endif
13166                      Syntax error
13167 _ACEOF
13168 if { (ac_try="$ac_cpp conftest.$ac_ext"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } >/dev/null && {
13181          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13182          test ! -s conftest.err
13183        }; then
13184   :
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189   # Broken: fails on valid input.
13190 continue
13191 fi
13192
13193 rm -f conftest.err conftest.$ac_ext
13194
13195   # OK, works on sane cases.  Now check whether nonexistent headers
13196   # can be detected and how.
13197   cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #include <ac_nonexistent.h>
13204 _ACEOF
13205 if { (ac_try="$ac_cpp conftest.$ac_ext"
13206 case "(($ac_try" in
13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208   *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13212   ac_status=$?
13213   grep -v '^ *+' conftest.er1 >conftest.err
13214   rm -f conftest.er1
13215   cat conftest.err >&5
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } >/dev/null && {
13218          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13219          test ! -s conftest.err
13220        }; then
13221   # Broken: success on invalid input.
13222 continue
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227   # Passes both tests.
13228 ac_preproc_ok=:
13229 break
13230 fi
13231
13232 rm -f conftest.err conftest.$ac_ext
13233
13234 done
13235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13236 rm -f conftest.err conftest.$ac_ext
13237 if $ac_preproc_ok; then
13238   break
13239 fi
13240
13241     done
13242     ac_cv_prog_CXXCPP=$CXXCPP
13243
13244 fi
13245   CXXCPP=$ac_cv_prog_CXXCPP
13246 else
13247   ac_cv_prog_CXXCPP=$CXXCPP
13248 fi
13249 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13250 echo "${ECHO_T}$CXXCPP" >&6; }
13251 ac_preproc_ok=false
13252 for ac_cxx_preproc_warn_flag in '' yes
13253 do
13254   # Use a header file that comes with gcc, so configuring glibc
13255   # with a fresh cross-compiler works.
13256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13257   # <limits.h> exists even on freestanding compilers.
13258   # On the NeXT, cc -E runs the code through the compiler's parser,
13259   # not just through cpp. "Syntax error" is here to catch this case.
13260   cat >conftest.$ac_ext <<_ACEOF
13261 /* confdefs.h.  */
13262 _ACEOF
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h.  */
13266 #ifdef __STDC__
13267 # include <limits.h>
13268 #else
13269 # include <assert.h>
13270 #endif
13271                      Syntax error
13272 _ACEOF
13273 if { (ac_try="$ac_cpp conftest.$ac_ext"
13274 case "(($ac_try" in
13275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276   *) ac_try_echo=$ac_try;;
13277 esac
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13280   ac_status=$?
13281   grep -v '^ *+' conftest.er1 >conftest.err
13282   rm -f conftest.er1
13283   cat conftest.err >&5
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); } >/dev/null && {
13286          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13287          test ! -s conftest.err
13288        }; then
13289   :
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294   # Broken: fails on valid input.
13295 continue
13296 fi
13297
13298 rm -f conftest.err conftest.$ac_ext
13299
13300   # OK, works on sane cases.  Now check whether nonexistent headers
13301   # can be detected and how.
13302   cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308 #include <ac_nonexistent.h>
13309 _ACEOF
13310 if { (ac_try="$ac_cpp conftest.$ac_ext"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } >/dev/null && {
13323          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13324          test ! -s conftest.err
13325        }; then
13326   # Broken: success on invalid input.
13327 continue
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332   # Passes both tests.
13333 ac_preproc_ok=:
13334 break
13335 fi
13336
13337 rm -f conftest.err conftest.$ac_ext
13338
13339 done
13340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13341 rm -f conftest.err conftest.$ac_ext
13342 if $ac_preproc_ok; then
13343   :
13344 else
13345   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13346 See \`config.log' for more details." >&5
13347 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13348 See \`config.log' for more details." >&2;}
13349    { (exit 1); exit 1; }; }
13350 fi
13351
13352 ac_ext=cpp
13353 ac_cpp='$CXXCPP $CPPFLAGS'
13354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13357
13358 fi
13359
13360 ac_ext=f
13361 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13362 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13363 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13364 if test -n "$ac_tool_prefix"; then
13365   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
13366   do
13367     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13368 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13371 if test "${ac_cv_prog_F77+set}" = set; then
13372   echo $ECHO_N "(cached) $ECHO_C" >&6
13373 else
13374   if test -n "$F77"; then
13375   ac_cv_prog_F77="$F77" # Let the user override the test.
13376 else
13377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13378 for as_dir in $PATH
13379 do
13380   IFS=$as_save_IFS
13381   test -z "$as_dir" && as_dir=.
13382   for ac_exec_ext in '' $ac_executable_extensions; do
13383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13384     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13386     break 2
13387   fi
13388 done
13389 done
13390 IFS=$as_save_IFS
13391
13392 fi
13393 fi
13394 F77=$ac_cv_prog_F77
13395 if test -n "$F77"; then
13396   { echo "$as_me:$LINENO: result: $F77" >&5
13397 echo "${ECHO_T}$F77" >&6; }
13398 else
13399   { echo "$as_me:$LINENO: result: no" >&5
13400 echo "${ECHO_T}no" >&6; }
13401 fi
13402
13403
13404     test -n "$F77" && break
13405   done
13406 fi
13407 if test -z "$F77"; then
13408   ac_ct_F77=$F77
13409   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
13410 do
13411   # Extract the first word of "$ac_prog", so it can be a program name with args.
13412 set dummy $ac_prog; ac_word=$2
13413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13415 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13416   echo $ECHO_N "(cached) $ECHO_C" >&6
13417 else
13418   if test -n "$ac_ct_F77"; then
13419   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13420 else
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424   IFS=$as_save_IFS
13425   test -z "$as_dir" && as_dir=.
13426   for ac_exec_ext in '' $ac_executable_extensions; do
13427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13428     ac_cv_prog_ac_ct_F77="$ac_prog"
13429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13430     break 2
13431   fi
13432 done
13433 done
13434 IFS=$as_save_IFS
13435
13436 fi
13437 fi
13438 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13439 if test -n "$ac_ct_F77"; then
13440   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13441 echo "${ECHO_T}$ac_ct_F77" >&6; }
13442 else
13443   { echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6; }
13445 fi
13446
13447
13448   test -n "$ac_ct_F77" && break
13449 done
13450
13451   if test "x$ac_ct_F77" = x; then
13452     F77=""
13453   else
13454     case $cross_compiling:$ac_tool_warned in
13455 yes:)
13456 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13457 whose name does not start with the host triplet.  If you think this
13458 configuration is useful to you, please write to autoconf@gnu.org." >&5
13459 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13460 whose name does not start with the host triplet.  If you think this
13461 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13462 ac_tool_warned=yes ;;
13463 esac
13464     F77=$ac_ct_F77
13465   fi
13466 fi
13467
13468
13469 # Provide some information about the compiler.
13470 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13471 ac_compiler=`set X $ac_compile; echo $2`
13472 { (ac_try="$ac_compiler --version >&5"
13473 case "(($ac_try" in
13474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475   *) ac_try_echo=$ac_try;;
13476 esac
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478   (eval "$ac_compiler --version >&5") 2>&5
13479   ac_status=$?
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); }
13482 { (ac_try="$ac_compiler -v >&5"
13483 case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_compiler -v >&5") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }
13492 { (ac_try="$ac_compiler -V >&5"
13493 case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_compiler -V >&5") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }
13502 rm -f a.out
13503
13504 # If we don't use `.F' as extension, the preprocessor is not run on the
13505 # input file.  (Note that this only needs to work for GNU compilers.)
13506 ac_save_ext=$ac_ext
13507 ac_ext=F
13508 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13509 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13510 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13511   echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513   cat >conftest.$ac_ext <<_ACEOF
13514       program main
13515 #ifndef __GNUC__
13516        choke me
13517 #endif
13518
13519       end
13520 _ACEOF
13521 rm -f conftest.$ac_objext
13522 if { (ac_try="$ac_compile"
13523 case "(($ac_try" in
13524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525   *) ac_try_echo=$ac_try;;
13526 esac
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528   (eval "$ac_compile") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } && {
13535          test -z "$ac_f77_werror_flag" ||
13536          test ! -s conftest.err
13537        } && test -s conftest.$ac_objext; then
13538   ac_compiler_gnu=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         ac_compiler_gnu=no
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13548
13549 fi
13550 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13551 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13552 ac_ext=$ac_save_ext
13553 ac_test_FFLAGS=${FFLAGS+set}
13554 ac_save_FFLAGS=$FFLAGS
13555 FFLAGS=
13556 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13557 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13558 if test "${ac_cv_prog_f77_g+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   FFLAGS=-g
13562 cat >conftest.$ac_ext <<_ACEOF
13563       program main
13564
13565       end
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571   *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574   (eval "$ac_compile") 2>conftest.er1
13575   ac_status=$?
13576   grep -v '^ *+' conftest.er1 >conftest.err
13577   rm -f conftest.er1
13578   cat conftest.err >&5
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); } && {
13581          test -z "$ac_f77_werror_flag" ||
13582          test ! -s conftest.err
13583        } && test -s conftest.$ac_objext; then
13584   ac_cv_prog_f77_g=yes
13585 else
13586   echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589         ac_cv_prog_f77_g=no
13590 fi
13591
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593
13594 fi
13595 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13596 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13597 if test "$ac_test_FFLAGS" = set; then
13598   FFLAGS=$ac_save_FFLAGS
13599 elif test $ac_cv_prog_f77_g = yes; then
13600   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13601     FFLAGS="-g -O2"
13602   else
13603     FFLAGS="-g"
13604   fi
13605 else
13606   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13607     FFLAGS="-O2"
13608   else
13609     FFLAGS=
13610   fi
13611 fi
13612
13613 G77=`test $ac_compiler_gnu = yes && echo yes`
13614 ac_ext=c
13615 ac_cpp='$CPP $CPPFLAGS'
13616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13619
13620
13621
13622 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13623
13624 # find the maximum length of command line arguments
13625 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13626 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13627 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13628   echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630     i=0
13631   teststring="ABCD"
13632
13633   case $build_os in
13634   msdosdjgpp*)
13635     # On DJGPP, this test can blow up pretty badly due to problems in libc
13636     # (any single argument exceeding 2000 bytes causes a buffer overrun
13637     # during glob expansion).  Even if it were fixed, the result of this
13638     # check would be larger than it should be.
13639     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13640     ;;
13641
13642   gnu*)
13643     # Under GNU Hurd, this test is not required because there is
13644     # no limit to the length of command line arguments.
13645     # Libtool will interpret -1 as no limit whatsoever
13646     lt_cv_sys_max_cmd_len=-1;
13647     ;;
13648
13649   cygwin* | mingw*)
13650     # On Win9x/ME, this test blows up -- it succeeds, but takes
13651     # about 5 minutes as the teststring grows exponentially.
13652     # Worse, since 9x/ME are not pre-emptively multitasking,
13653     # you end up with a "frozen" computer, even though with patience
13654     # the test eventually succeeds (with a max line length of 256k).
13655     # Instead, let's just punt: use the minimum linelength reported by
13656     # all of the supported platforms: 8192 (on NT/2K/XP).
13657     lt_cv_sys_max_cmd_len=8192;
13658     ;;
13659
13660   amigaos*)
13661     # On AmigaOS with pdksh, this test takes hours, literally.
13662     # So we just punt and use a minimum line length of 8192.
13663     lt_cv_sys_max_cmd_len=8192;
13664     ;;
13665
13666   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13667     # This has been around since 386BSD, at least.  Likely further.
13668     if test -x /sbin/sysctl; then
13669       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13670     elif test -x /usr/sbin/sysctl; then
13671       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13672     else
13673       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13674     fi
13675     # And add a safety zone
13676     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13677     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13678     ;;
13679
13680   interix*)
13681     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13682     lt_cv_sys_max_cmd_len=196608
13683     ;;
13684
13685   osf*)
13686     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13687     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13688     # nice to cause kernel panics so lets avoid the loop below.
13689     # First set a reasonable default.
13690     lt_cv_sys_max_cmd_len=16384
13691     #
13692     if test -x /sbin/sysconfig; then
13693       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13694         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13695       esac
13696     fi
13697     ;;
13698   sco3.2v5*)
13699     lt_cv_sys_max_cmd_len=102400
13700     ;;
13701   sysv5* | sco5v6* | sysv4.2uw2*)
13702     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13703     if test -n "$kargmax"; then
13704       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13705     else
13706       lt_cv_sys_max_cmd_len=32768
13707     fi
13708     ;;
13709   *)
13710     # If test is not a shell built-in, we'll probably end up computing a
13711     # maximum length that is only half of the actual maximum length, but
13712     # we can't tell.
13713     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13714     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13715                = "XX$teststring") >/dev/null 2>&1 &&
13716             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13717             lt_cv_sys_max_cmd_len=$new_result &&
13718             test $i != 17 # 1/2 MB should be enough
13719     do
13720       i=`expr $i + 1`
13721       teststring=$teststring$teststring
13722     done
13723     teststring=
13724     # Add a significant safety factor because C++ compilers can tack on massive
13725     # amounts of additional arguments before passing them to the linker.
13726     # It appears as though 1/2 is a usable value.
13727     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13728     ;;
13729   esac
13730
13731 fi
13732
13733 if test -n $lt_cv_sys_max_cmd_len ; then
13734   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13735 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13736 else
13737   { echo "$as_me:$LINENO: result: none" >&5
13738 echo "${ECHO_T}none" >&6; }
13739 fi
13740
13741
13742
13743
13744 # Check for command to grab the raw symbol name followed by C symbol from nm.
13745 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13746 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13747 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13748   echo $ECHO_N "(cached) $ECHO_C" >&6
13749 else
13750
13751 # These are sane defaults that work on at least a few old systems.
13752 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13753
13754 # Character class describing NM global symbol codes.
13755 symcode='[BCDEGRST]'
13756
13757 # Regexp to match symbols that can be accessed directly from C.
13758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13759
13760 # Transform an extracted symbol line into a proper C declaration
13761 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13762
13763 # Transform an extracted symbol line into symbol name and symbol address
13764 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'"
13765
13766 # Define system-specific variables.
13767 case $host_os in
13768 aix*)
13769   symcode='[BCDT]'
13770   ;;
13771 cygwin* | mingw* | pw32*)
13772   symcode='[ABCDGISTW]'
13773   ;;
13774 hpux*) # Its linker distinguishes data from code symbols
13775   if test "$host_cpu" = ia64; then
13776     symcode='[ABCDEGRST]'
13777   fi
13778   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13779   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'"
13780   ;;
13781 linux*)
13782   if test "$host_cpu" = ia64; then
13783     symcode='[ABCDGIRSTW]'
13784     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13785     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'"
13786   fi
13787   ;;
13788 irix* | nonstopux*)
13789   symcode='[BCDEGRST]'
13790   ;;
13791 osf*)
13792   symcode='[BCDEGQRST]'
13793   ;;
13794 solaris*)
13795   symcode='[BDRT]'
13796   ;;
13797 sco3.2v5*)
13798   symcode='[DT]'
13799   ;;
13800 sysv4.2uw2*)
13801   symcode='[DT]'
13802   ;;
13803 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13804   symcode='[ABDT]'
13805   ;;
13806 sysv4)
13807   symcode='[DFNSTU]'
13808   ;;
13809 esac
13810
13811 # Handle CRLF in mingw tool chain
13812 opt_cr=
13813 case $build_os in
13814 mingw*)
13815   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13816   ;;
13817 esac
13818
13819 # If we're using GNU nm, then use its standard symbol codes.
13820 case `$NM -V 2>&1` in
13821 *GNU* | *'with BFD'*)
13822   symcode='[ABCDGIRSTW]' ;;
13823 esac
13824
13825 # Try without a prefix undercore, then with it.
13826 for ac_symprfx in "" "_"; do
13827
13828   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13829   symxfrm="\\1 $ac_symprfx\\2 \\2"
13830
13831   # Write the raw and C identifiers.
13832   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13833
13834   # Check to see that the pipe works correctly.
13835   pipe_works=no
13836
13837   rm -f conftest*
13838   cat > conftest.$ac_ext <<EOF
13839 #ifdef __cplusplus
13840 extern "C" {
13841 #endif
13842 char nm_test_var;
13843 void nm_test_func(){}
13844 #ifdef __cplusplus
13845 }
13846 #endif
13847 int main(){nm_test_var='a';nm_test_func();return(0);}
13848 EOF
13849
13850   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13851   (eval $ac_compile) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; then
13855     # Now try to grab the symbols.
13856     nlist=conftest.nm
13857     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13858   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } && test -s "$nlist"; then
13862       # Try sorting and uniquifying the output.
13863       if sort "$nlist" | uniq > "$nlist"T; then
13864         mv -f "$nlist"T "$nlist"
13865       else
13866         rm -f "$nlist"T
13867       fi
13868
13869       # Make sure that we snagged all the symbols we need.
13870       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13871         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13872           cat <<EOF > conftest.$ac_ext
13873 #ifdef __cplusplus
13874 extern "C" {
13875 #endif
13876
13877 EOF
13878           # Now generate the symbol file.
13879           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13880
13881           cat <<EOF >> conftest.$ac_ext
13882 #if defined (__STDC__) && __STDC__
13883 # define lt_ptr_t void *
13884 #else
13885 # define lt_ptr_t char *
13886 # define const
13887 #endif
13888
13889 /* The mapping between symbol names and symbols. */
13890 const struct {
13891   const char *name;
13892   lt_ptr_t address;
13893 }
13894 lt_preloaded_symbols[] =
13895 {
13896 EOF
13897           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13898           cat <<\EOF >> conftest.$ac_ext
13899   {0, (lt_ptr_t) 0}
13900 };
13901
13902 #ifdef __cplusplus
13903 }
13904 #endif
13905 EOF
13906           # Now try linking the two files.
13907           mv conftest.$ac_objext conftstm.$ac_objext
13908           lt_save_LIBS="$LIBS"
13909           lt_save_CFLAGS="$CFLAGS"
13910           LIBS="conftstm.$ac_objext"
13911           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13912           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13913   (eval $ac_link) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13917             pipe_works=yes
13918           fi
13919           LIBS="$lt_save_LIBS"
13920           CFLAGS="$lt_save_CFLAGS"
13921         else
13922           echo "cannot find nm_test_func in $nlist" >&5
13923         fi
13924       else
13925         echo "cannot find nm_test_var in $nlist" >&5
13926       fi
13927     else
13928       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13929     fi
13930   else
13931     echo "$progname: failed program was:" >&5
13932     cat conftest.$ac_ext >&5
13933   fi
13934   rm -f conftest* conftst*
13935
13936   # Do not use the global_symbol_pipe unless it works.
13937   if test "$pipe_works" = yes; then
13938     break
13939   else
13940     lt_cv_sys_global_symbol_pipe=
13941   fi
13942 done
13943
13944 fi
13945
13946 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13947   lt_cv_sys_global_symbol_to_cdecl=
13948 fi
13949 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13950   { echo "$as_me:$LINENO: result: failed" >&5
13951 echo "${ECHO_T}failed" >&6; }
13952 else
13953   { echo "$as_me:$LINENO: result: ok" >&5
13954 echo "${ECHO_T}ok" >&6; }
13955 fi
13956
13957 { echo "$as_me:$LINENO: checking for objdir" >&5
13958 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13959 if test "${lt_cv_objdir+set}" = set; then
13960   echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962   rm -f .libs 2>/dev/null
13963 mkdir .libs 2>/dev/null
13964 if test -d .libs; then
13965   lt_cv_objdir=.libs
13966 else
13967   # MS-DOS does not allow filenames that begin with a dot.
13968   lt_cv_objdir=_libs
13969 fi
13970 rmdir .libs 2>/dev/null
13971 fi
13972 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13973 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13974 objdir=$lt_cv_objdir
13975
13976
13977
13978
13979
13980 case $host_os in
13981 aix3*)
13982   # AIX sometimes has problems with the GCC collect2 program.  For some
13983   # reason, if we set the COLLECT_NAMES environment variable, the problems
13984   # vanish in a puff of smoke.
13985   if test "X${COLLECT_NAMES+set}" != Xset; then
13986     COLLECT_NAMES=
13987     export COLLECT_NAMES
13988   fi
13989   ;;
13990 esac
13991
13992 # Sed substitution that helps us do robust quoting.  It backslashifies
13993 # metacharacters that are still active within double-quoted strings.
13994 Xsed='sed -e 1s/^X//'
13995 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13996
13997 # Same as above, but do not quote variable references.
13998 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13999
14000 # Sed substitution to delay expansion of an escaped shell variable in a
14001 # double_quote_subst'ed string.
14002 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14003
14004 # Sed substitution to avoid accidental globbing in evaled expressions
14005 no_glob_subst='s/\*/\\\*/g'
14006
14007 # Constants:
14008 rm="rm -f"
14009
14010 # Global variables:
14011 default_ofile=libtool
14012 can_build_shared=yes
14013
14014 # All known linkers require a `.a' archive for static linking (except MSVC,
14015 # which needs '.lib').
14016 libext=a
14017 ltmain="$ac_aux_dir/ltmain.sh"
14018 ofile="$default_ofile"
14019 with_gnu_ld="$lt_cv_prog_gnu_ld"
14020
14021 if test -n "$ac_tool_prefix"; then
14022   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14023 set dummy ${ac_tool_prefix}ar; ac_word=$2
14024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14026 if test "${ac_cv_prog_AR+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029   if test -n "$AR"; then
14030   ac_cv_prog_AR="$AR" # Let the user override the test.
14031 else
14032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14033 for as_dir in $PATH
14034 do
14035   IFS=$as_save_IFS
14036   test -z "$as_dir" && as_dir=.
14037   for ac_exec_ext in '' $ac_executable_extensions; do
14038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14039     ac_cv_prog_AR="${ac_tool_prefix}ar"
14040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14041     break 2
14042   fi
14043 done
14044 done
14045 IFS=$as_save_IFS
14046
14047 fi
14048 fi
14049 AR=$ac_cv_prog_AR
14050 if test -n "$AR"; then
14051   { echo "$as_me:$LINENO: result: $AR" >&5
14052 echo "${ECHO_T}$AR" >&6; }
14053 else
14054   { echo "$as_me:$LINENO: result: no" >&5
14055 echo "${ECHO_T}no" >&6; }
14056 fi
14057
14058
14059 fi
14060 if test -z "$ac_cv_prog_AR"; then
14061   ac_ct_AR=$AR
14062   # Extract the first word of "ar", so it can be a program name with args.
14063 set dummy ar; ac_word=$2
14064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14066 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14067   echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069   if test -n "$ac_ct_AR"; then
14070   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14071 else
14072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073 for as_dir in $PATH
14074 do
14075   IFS=$as_save_IFS
14076   test -z "$as_dir" && as_dir=.
14077   for ac_exec_ext in '' $ac_executable_extensions; do
14078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14079     ac_cv_prog_ac_ct_AR="ar"
14080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14081     break 2
14082   fi
14083 done
14084 done
14085 IFS=$as_save_IFS
14086
14087 fi
14088 fi
14089 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14090 if test -n "$ac_ct_AR"; then
14091   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14092 echo "${ECHO_T}$ac_ct_AR" >&6; }
14093 else
14094   { echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6; }
14096 fi
14097
14098   if test "x$ac_ct_AR" = x; then
14099     AR="false"
14100   else
14101     case $cross_compiling:$ac_tool_warned in
14102 yes:)
14103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14104 whose name does not start with the host triplet.  If you think this
14105 configuration is useful to you, please write to autoconf@gnu.org." >&5
14106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14107 whose name does not start with the host triplet.  If you think this
14108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14109 ac_tool_warned=yes ;;
14110 esac
14111     AR=$ac_ct_AR
14112   fi
14113 else
14114   AR="$ac_cv_prog_AR"
14115 fi
14116
14117 if test -n "$ac_tool_prefix"; then
14118   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14119 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14122 if test "${ac_cv_prog_RANLIB+set}" = set; then
14123   echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125   if test -n "$RANLIB"; then
14126   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14127 else
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14130 do
14131   IFS=$as_save_IFS
14132   test -z "$as_dir" && as_dir=.
14133   for ac_exec_ext in '' $ac_executable_extensions; do
14134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14135     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14137     break 2
14138   fi
14139 done
14140 done
14141 IFS=$as_save_IFS
14142
14143 fi
14144 fi
14145 RANLIB=$ac_cv_prog_RANLIB
14146 if test -n "$RANLIB"; then
14147   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14148 echo "${ECHO_T}$RANLIB" >&6; }
14149 else
14150   { echo "$as_me:$LINENO: result: no" >&5
14151 echo "${ECHO_T}no" >&6; }
14152 fi
14153
14154
14155 fi
14156 if test -z "$ac_cv_prog_RANLIB"; then
14157   ac_ct_RANLIB=$RANLIB
14158   # Extract the first word of "ranlib", so it can be a program name with args.
14159 set dummy ranlib; ac_word=$2
14160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14162 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14163   echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165   if test -n "$ac_ct_RANLIB"; then
14166   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14167 else
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH
14170 do
14171   IFS=$as_save_IFS
14172   test -z "$as_dir" && as_dir=.
14173   for ac_exec_ext in '' $ac_executable_extensions; do
14174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175     ac_cv_prog_ac_ct_RANLIB="ranlib"
14176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14177     break 2
14178   fi
14179 done
14180 done
14181 IFS=$as_save_IFS
14182
14183 fi
14184 fi
14185 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14186 if test -n "$ac_ct_RANLIB"; then
14187   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14188 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14189 else
14190   { echo "$as_me:$LINENO: result: no" >&5
14191 echo "${ECHO_T}no" >&6; }
14192 fi
14193
14194   if test "x$ac_ct_RANLIB" = x; then
14195     RANLIB=":"
14196   else
14197     case $cross_compiling:$ac_tool_warned in
14198 yes:)
14199 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14200 whose name does not start with the host triplet.  If you think this
14201 configuration is useful to you, please write to autoconf@gnu.org." >&5
14202 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14203 whose name does not start with the host triplet.  If you think this
14204 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14205 ac_tool_warned=yes ;;
14206 esac
14207     RANLIB=$ac_ct_RANLIB
14208   fi
14209 else
14210   RANLIB="$ac_cv_prog_RANLIB"
14211 fi
14212
14213 if test -n "$ac_tool_prefix"; then
14214   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14215 set dummy ${ac_tool_prefix}strip; ac_word=$2
14216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14218 if test "${ac_cv_prog_STRIP+set}" = set; then
14219   echo $ECHO_N "(cached) $ECHO_C" >&6
14220 else
14221   if test -n "$STRIP"; then
14222   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14223 else
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227   IFS=$as_save_IFS
14228   test -z "$as_dir" && as_dir=.
14229   for ac_exec_ext in '' $ac_executable_extensions; do
14230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14231     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14233     break 2
14234   fi
14235 done
14236 done
14237 IFS=$as_save_IFS
14238
14239 fi
14240 fi
14241 STRIP=$ac_cv_prog_STRIP
14242 if test -n "$STRIP"; then
14243   { echo "$as_me:$LINENO: result: $STRIP" >&5
14244 echo "${ECHO_T}$STRIP" >&6; }
14245 else
14246   { echo "$as_me:$LINENO: result: no" >&5
14247 echo "${ECHO_T}no" >&6; }
14248 fi
14249
14250
14251 fi
14252 if test -z "$ac_cv_prog_STRIP"; then
14253   ac_ct_STRIP=$STRIP
14254   # Extract the first word of "strip", so it can be a program name with args.
14255 set dummy strip; ac_word=$2
14256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14258 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   if test -n "$ac_ct_STRIP"; then
14262   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14263 else
14264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14265 for as_dir in $PATH
14266 do
14267   IFS=$as_save_IFS
14268   test -z "$as_dir" && as_dir=.
14269   for ac_exec_ext in '' $ac_executable_extensions; do
14270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14271     ac_cv_prog_ac_ct_STRIP="strip"
14272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14273     break 2
14274   fi
14275 done
14276 done
14277 IFS=$as_save_IFS
14278
14279 fi
14280 fi
14281 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14282 if test -n "$ac_ct_STRIP"; then
14283   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14284 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14285 else
14286   { echo "$as_me:$LINENO: result: no" >&5
14287 echo "${ECHO_T}no" >&6; }
14288 fi
14289
14290   if test "x$ac_ct_STRIP" = x; then
14291     STRIP=":"
14292   else
14293     case $cross_compiling:$ac_tool_warned in
14294 yes:)
14295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14296 whose name does not start with the host triplet.  If you think this
14297 configuration is useful to you, please write to autoconf@gnu.org." >&5
14298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14299 whose name does not start with the host triplet.  If you think this
14300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14301 ac_tool_warned=yes ;;
14302 esac
14303     STRIP=$ac_ct_STRIP
14304   fi
14305 else
14306   STRIP="$ac_cv_prog_STRIP"
14307 fi
14308
14309
14310 old_CC="$CC"
14311 old_CFLAGS="$CFLAGS"
14312
14313 # Set sane defaults for various variables
14314 test -z "$AR" && AR=ar
14315 test -z "$AR_FLAGS" && AR_FLAGS=cru
14316 test -z "$AS" && AS=as
14317 test -z "$CC" && CC=cc
14318 test -z "$LTCC" && LTCC=$CC
14319 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14320 test -z "$DLLTOOL" && DLLTOOL=dlltool
14321 test -z "$LD" && LD=ld
14322 test -z "$LN_S" && LN_S="ln -s"
14323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14324 test -z "$NM" && NM=nm
14325 test -z "$SED" && SED=sed
14326 test -z "$OBJDUMP" && OBJDUMP=objdump
14327 test -z "$RANLIB" && RANLIB=:
14328 test -z "$STRIP" && STRIP=:
14329 test -z "$ac_objext" && ac_objext=o
14330
14331 # Determine commands to create old-style static archives.
14332 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14333 old_postinstall_cmds='chmod 644 $oldlib'
14334 old_postuninstall_cmds=
14335
14336 if test -n "$RANLIB"; then
14337   case $host_os in
14338   openbsd*)
14339     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14340     ;;
14341   *)
14342     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14343     ;;
14344   esac
14345   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14346 fi
14347
14348 for cc_temp in $compiler""; do
14349   case $cc_temp in
14350     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14351     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14352     \-*) ;;
14353     *) break;;
14354   esac
14355 done
14356 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14357
14358
14359 # Only perform the check for file, if the check method requires it
14360 case $deplibs_check_method in
14361 file_magic*)
14362   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14363     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14364 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14365 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368   case $MAGIC_CMD in
14369 [\\/*] |  ?:[\\/]*)
14370   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14371   ;;
14372 *)
14373   lt_save_MAGIC_CMD="$MAGIC_CMD"
14374   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14375   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14376   for ac_dir in $ac_dummy; do
14377     IFS="$lt_save_ifs"
14378     test -z "$ac_dir" && ac_dir=.
14379     if test -f $ac_dir/${ac_tool_prefix}file; then
14380       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14381       if test -n "$file_magic_test_file"; then
14382         case $deplibs_check_method in
14383         "file_magic "*)
14384           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14385           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14386           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14387             $EGREP "$file_magic_regex" > /dev/null; then
14388             :
14389           else
14390             cat <<EOF 1>&2
14391
14392 *** Warning: the command libtool uses to detect shared libraries,
14393 *** $file_magic_cmd, produces output that libtool cannot recognize.
14394 *** The result is that libtool may fail to recognize shared libraries
14395 *** as such.  This will affect the creation of libtool libraries that
14396 *** depend on shared libraries, but programs linked with such libtool
14397 *** libraries will work regardless of this problem.  Nevertheless, you
14398 *** may want to report the problem to your system manager and/or to
14399 *** bug-libtool@gnu.org
14400
14401 EOF
14402           fi ;;
14403         esac
14404       fi
14405       break
14406     fi
14407   done
14408   IFS="$lt_save_ifs"
14409   MAGIC_CMD="$lt_save_MAGIC_CMD"
14410   ;;
14411 esac
14412 fi
14413
14414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14415 if test -n "$MAGIC_CMD"; then
14416   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14417 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14418 else
14419   { echo "$as_me:$LINENO: result: no" >&5
14420 echo "${ECHO_T}no" >&6; }
14421 fi
14422
14423 if test -z "$lt_cv_path_MAGIC_CMD"; then
14424   if test -n "$ac_tool_prefix"; then
14425     { echo "$as_me:$LINENO: checking for file" >&5
14426 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14427 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14428   echo $ECHO_N "(cached) $ECHO_C" >&6
14429 else
14430   case $MAGIC_CMD in
14431 [\\/*] |  ?:[\\/]*)
14432   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14433   ;;
14434 *)
14435   lt_save_MAGIC_CMD="$MAGIC_CMD"
14436   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14437   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14438   for ac_dir in $ac_dummy; do
14439     IFS="$lt_save_ifs"
14440     test -z "$ac_dir" && ac_dir=.
14441     if test -f $ac_dir/file; then
14442       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14443       if test -n "$file_magic_test_file"; then
14444         case $deplibs_check_method in
14445         "file_magic "*)
14446           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14447           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14448           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14449             $EGREP "$file_magic_regex" > /dev/null; then
14450             :
14451           else
14452             cat <<EOF 1>&2
14453
14454 *** Warning: the command libtool uses to detect shared libraries,
14455 *** $file_magic_cmd, produces output that libtool cannot recognize.
14456 *** The result is that libtool may fail to recognize shared libraries
14457 *** as such.  This will affect the creation of libtool libraries that
14458 *** depend on shared libraries, but programs linked with such libtool
14459 *** libraries will work regardless of this problem.  Nevertheless, you
14460 *** may want to report the problem to your system manager and/or to
14461 *** bug-libtool@gnu.org
14462
14463 EOF
14464           fi ;;
14465         esac
14466       fi
14467       break
14468     fi
14469   done
14470   IFS="$lt_save_ifs"
14471   MAGIC_CMD="$lt_save_MAGIC_CMD"
14472   ;;
14473 esac
14474 fi
14475
14476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14477 if test -n "$MAGIC_CMD"; then
14478   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14479 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14480 else
14481   { echo "$as_me:$LINENO: result: no" >&5
14482 echo "${ECHO_T}no" >&6; }
14483 fi
14484
14485   else
14486     MAGIC_CMD=:
14487   fi
14488 fi
14489
14490   fi
14491   ;;
14492 esac
14493
14494 enable_dlopen=no
14495 enable_win32_dll=no
14496
14497 # Check whether --enable-libtool-lock was given.
14498 if test "${enable_libtool_lock+set}" = set; then
14499   enableval=$enable_libtool_lock;
14500 fi
14501
14502 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14503
14504
14505 # Check whether --with-pic was given.
14506 if test "${with_pic+set}" = set; then
14507   withval=$with_pic; pic_mode="$withval"
14508 else
14509   pic_mode=default
14510 fi
14511
14512 test -z "$pic_mode" && pic_mode=default
14513
14514 # Use C for the default configuration in the libtool script
14515 tagname=
14516 lt_save_CC="$CC"
14517 ac_ext=c
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14522
14523
14524 # Source file extension for C test sources.
14525 ac_ext=c
14526
14527 # Object file extension for compiled C test sources.
14528 objext=o
14529 objext=$objext
14530
14531 # Code to be used in simple compile tests
14532 lt_simple_compile_test_code="int some_variable = 0;\n"
14533
14534 # Code to be used in simple link tests
14535 lt_simple_link_test_code='int main(){return(0);}\n'
14536
14537
14538 # If no C compiler was specified, use CC.
14539 LTCC=${LTCC-"$CC"}
14540
14541 # If no C compiler flags were specified, use CFLAGS.
14542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14543
14544 # Allow CC to be a program name with arguments.
14545 compiler=$CC
14546
14547
14548 # save warnings/boilerplate of simple test code
14549 ac_outfile=conftest.$ac_objext
14550 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14552 _lt_compiler_boilerplate=`cat conftest.err`
14553 $rm conftest*
14554
14555 ac_outfile=conftest.$ac_objext
14556 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14558 _lt_linker_boilerplate=`cat conftest.err`
14559 $rm conftest*
14560
14561
14562
14563 lt_prog_compiler_no_builtin_flag=
14564
14565 if test "$GCC" = yes; then
14566   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14567
14568
14569 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14570 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14571 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14572   echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574   lt_cv_prog_compiler_rtti_exceptions=no
14575   ac_outfile=conftest.$ac_objext
14576    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14577    lt_compiler_flag="-fno-rtti -fno-exceptions"
14578    # Insert the option either (1) after the last *FLAGS variable, or
14579    # (2) before a word containing "conftest.", or (3) at the end.
14580    # Note that $ac_compile itself does not contain backslashes and begins
14581    # with a dollar sign (not a hyphen), so the echo should work correctly.
14582    # The option is referenced via a variable to avoid confusing sed.
14583    lt_compile=`echo "$ac_compile" | $SED \
14584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14586    -e 's:$: $lt_compiler_flag:'`
14587    (eval echo "\"\$as_me:14587: $lt_compile\"" >&5)
14588    (eval "$lt_compile" 2>conftest.err)
14589    ac_status=$?
14590    cat conftest.err >&5
14591    echo "$as_me:14591: \$? = $ac_status" >&5
14592    if (exit $ac_status) && test -s "$ac_outfile"; then
14593      # The compiler can only warn and ignore the option if not recognized
14594      # So say no if there are warnings other than the usual output.
14595      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14596      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14597      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14598        lt_cv_prog_compiler_rtti_exceptions=yes
14599      fi
14600    fi
14601    $rm conftest*
14602
14603 fi
14604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14605 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14606
14607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14608     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14609 else
14610     :
14611 fi
14612
14613 fi
14614
14615 lt_prog_compiler_wl=
14616 lt_prog_compiler_pic=
14617 lt_prog_compiler_static=
14618
14619 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14620 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14621
14622   if test "$GCC" = yes; then
14623     lt_prog_compiler_wl='-Wl,'
14624     lt_prog_compiler_static='-static'
14625
14626     case $host_os in
14627       aix*)
14628       # All AIX code is PIC.
14629       if test "$host_cpu" = ia64; then
14630         # AIX 5 now supports IA64 processor
14631         lt_prog_compiler_static='-Bstatic'
14632       fi
14633       ;;
14634
14635     amigaos*)
14636       # FIXME: we need at least 68020 code to build shared libraries, but
14637       # adding the `-m68020' flag to GCC prevents building anything better,
14638       # like `-m68040'.
14639       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14640       ;;
14641
14642     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14643       # PIC is the default for these OSes.
14644       ;;
14645
14646     mingw* | pw32* | os2*)
14647       # This hack is so that the source file can tell whether it is being
14648       # built for inclusion in a dll (and should export symbols for example).
14649       lt_prog_compiler_pic='-DDLL_EXPORT'
14650       ;;
14651
14652     darwin* | rhapsody*)
14653       # PIC is the default on this platform
14654       # Common symbols not allowed in MH_DYLIB files
14655       lt_prog_compiler_pic='-fno-common'
14656       ;;
14657
14658     interix3*)
14659       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14660       # Instead, we relocate shared libraries at runtime.
14661       ;;
14662
14663     msdosdjgpp*)
14664       # Just because we use GCC doesn't mean we suddenly get shared libraries
14665       # on systems that don't support them.
14666       lt_prog_compiler_can_build_shared=no
14667       enable_shared=no
14668       ;;
14669
14670     sysv4*MP*)
14671       if test -d /usr/nec; then
14672         lt_prog_compiler_pic=-Kconform_pic
14673       fi
14674       ;;
14675
14676     hpux*)
14677       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14678       # not for PA HP-UX.
14679       case $host_cpu in
14680       hppa*64*|ia64*)
14681         # +Z the default
14682         ;;
14683       *)
14684         lt_prog_compiler_pic='-fPIC'
14685         ;;
14686       esac
14687       ;;
14688
14689     *)
14690       lt_prog_compiler_pic='-fPIC'
14691       ;;
14692     esac
14693   else
14694     # PORTME Check for flag to pass linker flags through the system compiler.
14695     case $host_os in
14696     aix*)
14697       lt_prog_compiler_wl='-Wl,'
14698       if test "$host_cpu" = ia64; then
14699         # AIX 5 now supports IA64 processor
14700         lt_prog_compiler_static='-Bstatic'
14701       else
14702         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14703       fi
14704       ;;
14705       darwin*)
14706         # PIC is the default on this platform
14707         # Common symbols not allowed in MH_DYLIB files
14708        case $cc_basename in
14709          xlc*)
14710          lt_prog_compiler_pic='-qnocommon'
14711          lt_prog_compiler_wl='-Wl,'
14712          ;;
14713        esac
14714        ;;
14715
14716     mingw* | pw32* | os2*)
14717       # This hack is so that the source file can tell whether it is being
14718       # built for inclusion in a dll (and should export symbols for example).
14719       lt_prog_compiler_pic='-DDLL_EXPORT'
14720       ;;
14721
14722     hpux9* | hpux10* | hpux11*)
14723       lt_prog_compiler_wl='-Wl,'
14724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14725       # not for PA HP-UX.
14726       case $host_cpu in
14727       hppa*64*|ia64*)
14728         # +Z the default
14729         ;;
14730       *)
14731         lt_prog_compiler_pic='+Z'
14732         ;;
14733       esac
14734       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14735       lt_prog_compiler_static='${wl}-a ${wl}archive'
14736       ;;
14737
14738     irix5* | irix6* | nonstopux*)
14739       lt_prog_compiler_wl='-Wl,'
14740       # PIC (with -KPIC) is the default.
14741       lt_prog_compiler_static='-non_shared'
14742       ;;
14743
14744     newsos6)
14745       lt_prog_compiler_pic='-KPIC'
14746       lt_prog_compiler_static='-Bstatic'
14747       ;;
14748
14749     linux*)
14750       case $cc_basename in
14751       icc* | ecc*)
14752         lt_prog_compiler_wl='-Wl,'
14753         lt_prog_compiler_pic='-KPIC'
14754         lt_prog_compiler_static='-static'
14755         ;;
14756       pgcc* | pgf77* | pgf90* | pgf95*)
14757         # Portland Group compilers (*not* the Pentium gcc compiler,
14758         # which looks to be a dead project)
14759         lt_prog_compiler_wl='-Wl,'
14760         lt_prog_compiler_pic='-fpic'
14761         lt_prog_compiler_static='-Bstatic'
14762         ;;
14763       ccc*)
14764         lt_prog_compiler_wl='-Wl,'
14765         # All Alpha code is PIC.
14766         lt_prog_compiler_static='-non_shared'
14767         ;;
14768       esac
14769       ;;
14770
14771     osf3* | osf4* | osf5*)
14772       lt_prog_compiler_wl='-Wl,'
14773       # All OSF/1 code is PIC.
14774       lt_prog_compiler_static='-non_shared'
14775       ;;
14776
14777     solaris*)
14778       lt_prog_compiler_pic='-KPIC'
14779       lt_prog_compiler_static='-Bstatic'
14780       case $cc_basename in
14781       f77* | f90* | f95*)
14782         lt_prog_compiler_wl='-Qoption ld ';;
14783       *)
14784         lt_prog_compiler_wl='-Wl,';;
14785       esac
14786       ;;
14787
14788     sunos4*)
14789       lt_prog_compiler_wl='-Qoption ld '
14790       lt_prog_compiler_pic='-PIC'
14791       lt_prog_compiler_static='-Bstatic'
14792       ;;
14793
14794     sysv4 | sysv4.2uw2* | sysv4.3*)
14795       lt_prog_compiler_wl='-Wl,'
14796       lt_prog_compiler_pic='-KPIC'
14797       lt_prog_compiler_static='-Bstatic'
14798       ;;
14799
14800     sysv4*MP*)
14801       if test -d /usr/nec ;then
14802         lt_prog_compiler_pic='-Kconform_pic'
14803         lt_prog_compiler_static='-Bstatic'
14804       fi
14805       ;;
14806
14807     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14808       lt_prog_compiler_wl='-Wl,'
14809       lt_prog_compiler_pic='-KPIC'
14810       lt_prog_compiler_static='-Bstatic'
14811       ;;
14812
14813     unicos*)
14814       lt_prog_compiler_wl='-Wl,'
14815       lt_prog_compiler_can_build_shared=no
14816       ;;
14817
14818     uts4*)
14819       lt_prog_compiler_pic='-pic'
14820       lt_prog_compiler_static='-Bstatic'
14821       ;;
14822
14823     *)
14824       lt_prog_compiler_can_build_shared=no
14825       ;;
14826     esac
14827   fi
14828
14829 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14830 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14831
14832 #
14833 # Check to make sure the PIC flag actually works.
14834 #
14835 if test -n "$lt_prog_compiler_pic"; then
14836
14837 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14838 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14839 if test "${lt_prog_compiler_pic_works+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   lt_prog_compiler_pic_works=no
14843   ac_outfile=conftest.$ac_objext
14844    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14845    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14846    # Insert the option either (1) after the last *FLAGS variable, or
14847    # (2) before a word containing "conftest.", or (3) at the end.
14848    # Note that $ac_compile itself does not contain backslashes and begins
14849    # with a dollar sign (not a hyphen), so the echo should work correctly.
14850    # The option is referenced via a variable to avoid confusing sed.
14851    lt_compile=`echo "$ac_compile" | $SED \
14852    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14853    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14854    -e 's:$: $lt_compiler_flag:'`
14855    (eval echo "\"\$as_me:14855: $lt_compile\"" >&5)
14856    (eval "$lt_compile" 2>conftest.err)
14857    ac_status=$?
14858    cat conftest.err >&5
14859    echo "$as_me:14859: \$? = $ac_status" >&5
14860    if (exit $ac_status) && test -s "$ac_outfile"; then
14861      # The compiler can only warn and ignore the option if not recognized
14862      # So say no if there are warnings other than the usual output.
14863      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14864      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14865      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14866        lt_prog_compiler_pic_works=yes
14867      fi
14868    fi
14869    $rm conftest*
14870
14871 fi
14872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14873 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14874
14875 if test x"$lt_prog_compiler_pic_works" = xyes; then
14876     case $lt_prog_compiler_pic in
14877      "" | " "*) ;;
14878      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14879      esac
14880 else
14881     lt_prog_compiler_pic=
14882      lt_prog_compiler_can_build_shared=no
14883 fi
14884
14885 fi
14886 case $host_os in
14887   # For platforms which do not support PIC, -DPIC is meaningless:
14888   *djgpp*)
14889     lt_prog_compiler_pic=
14890     ;;
14891   *)
14892     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14893     ;;
14894 esac
14895
14896 #
14897 # Check to make sure the static flag actually works.
14898 #
14899 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14900 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14901 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14902 if test "${lt_prog_compiler_static_works+set}" = set; then
14903   echo $ECHO_N "(cached) $ECHO_C" >&6
14904 else
14905   lt_prog_compiler_static_works=no
14906    save_LDFLAGS="$LDFLAGS"
14907    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14908    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14909    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14910      # The linker can only warn and ignore the option if not recognized
14911      # So say no if there are warnings
14912      if test -s conftest.err; then
14913        # Append any errors to the config.log.
14914        cat conftest.err 1>&5
14915        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14916        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14917        if diff conftest.exp conftest.er2 >/dev/null; then
14918          lt_prog_compiler_static_works=yes
14919        fi
14920      else
14921        lt_prog_compiler_static_works=yes
14922      fi
14923    fi
14924    $rm conftest*
14925    LDFLAGS="$save_LDFLAGS"
14926
14927 fi
14928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14929 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14930
14931 if test x"$lt_prog_compiler_static_works" = xyes; then
14932     :
14933 else
14934     lt_prog_compiler_static=
14935 fi
14936
14937
14938 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14939 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14940 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14941   echo $ECHO_N "(cached) $ECHO_C" >&6
14942 else
14943   lt_cv_prog_compiler_c_o=no
14944    $rm -r conftest 2>/dev/null
14945    mkdir conftest
14946    cd conftest
14947    mkdir out
14948    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14949
14950    lt_compiler_flag="-o out/conftest2.$ac_objext"
14951    # Insert the option either (1) after the last *FLAGS variable, or
14952    # (2) before a word containing "conftest.", or (3) at the end.
14953    # Note that $ac_compile itself does not contain backslashes and begins
14954    # with a dollar sign (not a hyphen), so the echo should work correctly.
14955    lt_compile=`echo "$ac_compile" | $SED \
14956    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14957    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14958    -e 's:$: $lt_compiler_flag:'`
14959    (eval echo "\"\$as_me:14959: $lt_compile\"" >&5)
14960    (eval "$lt_compile" 2>out/conftest.err)
14961    ac_status=$?
14962    cat out/conftest.err >&5
14963    echo "$as_me:14963: \$? = $ac_status" >&5
14964    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14965    then
14966      # The compiler can only warn and ignore the option if not recognized
14967      # So say no if there are warnings
14968      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14969      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14970      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14971        lt_cv_prog_compiler_c_o=yes
14972      fi
14973    fi
14974    chmod u+w . 2>&5
14975    $rm conftest*
14976    # SGI C++ compiler will create directory out/ii_files/ for
14977    # template instantiation
14978    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14979    $rm out/* && rmdir out
14980    cd ..
14981    rmdir conftest
14982    $rm conftest*
14983
14984 fi
14985 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14986 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14987
14988
14989 hard_links="nottested"
14990 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14991   # do not overwrite the value of need_locks provided by the user
14992   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14994   hard_links=yes
14995   $rm conftest*
14996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997   touch conftest.a
14998   ln conftest.a conftest.b 2>&5 || hard_links=no
14999   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000   { echo "$as_me:$LINENO: result: $hard_links" >&5
15001 echo "${ECHO_T}$hard_links" >&6; }
15002   if test "$hard_links" = no; then
15003     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15005     need_locks=warn
15006   fi
15007 else
15008   need_locks=no
15009 fi
15010
15011 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15012 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15013
15014   runpath_var=
15015   allow_undefined_flag=
15016   enable_shared_with_static_runtimes=no
15017   archive_cmds=
15018   archive_expsym_cmds=
15019   old_archive_From_new_cmds=
15020   old_archive_from_expsyms_cmds=
15021   export_dynamic_flag_spec=
15022   whole_archive_flag_spec=
15023   thread_safe_flag_spec=
15024   hardcode_libdir_flag_spec=
15025   hardcode_libdir_flag_spec_ld=
15026   hardcode_libdir_separator=
15027   hardcode_direct=no
15028   hardcode_minus_L=no
15029   hardcode_shlibpath_var=unsupported
15030   link_all_deplibs=unknown
15031   hardcode_automatic=no
15032   module_cmds=
15033   module_expsym_cmds=
15034   always_export_symbols=no
15035   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15036   # include_expsyms should be a list of space-separated symbols to be *always*
15037   # included in the symbol list
15038   include_expsyms=
15039   # exclude_expsyms can be an extended regexp of symbols to exclude
15040   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15041   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15042   # as well as any symbol that contains `d'.
15043   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15044   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15045   # platforms (ab)use it in PIC code, but their linkers get confused if
15046   # the symbol is explicitly referenced.  Since portable code cannot
15047   # rely on this symbol name, it's probably fine to never include it in
15048   # preloaded symbol tables.
15049   extract_expsyms_cmds=
15050   # Just being paranoid about ensuring that cc_basename is set.
15051   for cc_temp in $compiler""; do
15052   case $cc_temp in
15053     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15054     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15055     \-*) ;;
15056     *) break;;
15057   esac
15058 done
15059 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15060
15061   case $host_os in
15062   cygwin* | mingw* | pw32*)
15063     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15064     # When not using gcc, we currently assume that we are using
15065     # Microsoft Visual C++.
15066     if test "$GCC" != yes; then
15067       with_gnu_ld=no
15068     fi
15069     ;;
15070   interix*)
15071     # we just hope/assume this is gcc and not c89 (= MSVC++)
15072     with_gnu_ld=yes
15073     ;;
15074   openbsd*)
15075     with_gnu_ld=no
15076     ;;
15077   esac
15078
15079   ld_shlibs=yes
15080   if test "$with_gnu_ld" = yes; then
15081     # If archive_cmds runs LD, not CC, wlarc should be empty
15082     wlarc='${wl}'
15083
15084     # Set some defaults for GNU ld with shared library support. These
15085     # are reset later if shared libraries are not supported. Putting them
15086     # here allows them to be overridden if necessary.
15087     runpath_var=LD_RUN_PATH
15088     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15089     export_dynamic_flag_spec='${wl}--export-dynamic'
15090     # ancient GNU ld didn't support --whole-archive et. al.
15091     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15092         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15093       else
15094         whole_archive_flag_spec=
15095     fi
15096     supports_anon_versioning=no
15097     case `$LD -v 2>/dev/null` in
15098       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15099       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15100       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15101       *\ 2.11.*) ;; # other 2.11 versions
15102       *) supports_anon_versioning=yes ;;
15103     esac
15104
15105     # See if GNU ld supports shared libraries.
15106     case $host_os in
15107     aix3* | aix4* | aix5*)
15108       # On AIX/PPC, the GNU linker is very broken
15109       if test "$host_cpu" != ia64; then
15110         ld_shlibs=no
15111         cat <<EOF 1>&2
15112
15113 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15114 *** to be unable to reliably create shared libraries on AIX.
15115 *** Therefore, libtool is disabling shared libraries support.  If you
15116 *** really care for shared libraries, you may want to modify your PATH
15117 *** so that a non-GNU linker is found, and then restart.
15118
15119 EOF
15120       fi
15121       ;;
15122
15123     amigaos*)
15124       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)'
15125       hardcode_libdir_flag_spec='-L$libdir'
15126       hardcode_minus_L=yes
15127
15128       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15129       # that the semantics of dynamic libraries on AmigaOS, at least up
15130       # to version 4, is to share data among multiple programs linked
15131       # with the same dynamic library.  Since this doesn't match the
15132       # behavior of shared libraries on other platforms, we can't use
15133       # them.
15134       ld_shlibs=no
15135       ;;
15136
15137     beos*)
15138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139         allow_undefined_flag=unsupported
15140         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15141         # support --undefined.  This deserves some investigation.  FIXME
15142         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143       else
15144         ld_shlibs=no
15145       fi
15146       ;;
15147
15148     cygwin* | mingw* | pw32*)
15149       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15150       # as there is no search path for DLLs.
15151       hardcode_libdir_flag_spec='-L$libdir'
15152       allow_undefined_flag=unsupported
15153       always_export_symbols=no
15154       enable_shared_with_static_runtimes=yes
15155       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15156
15157       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15158         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15159         # If the export-symbols file already is a .def file (1st line
15160         # is EXPORTS), use it as is; otherwise, prepend...
15161         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15162           cp $export_symbols $output_objdir/$soname.def;
15163         else
15164           echo EXPORTS > $output_objdir/$soname.def;
15165           cat $export_symbols >> $output_objdir/$soname.def;
15166         fi~
15167         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15168       else
15169         ld_shlibs=no
15170       fi
15171       ;;
15172
15173     interix3*)
15174       hardcode_direct=no
15175       hardcode_shlibpath_var=no
15176       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15177       export_dynamic_flag_spec='${wl}-E'
15178       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15179       # Instead, shared libraries are loaded at an image base (0x10000000 by
15180       # default) and relocated if they conflict, which is a slow very memory
15181       # consuming and fragmenting process.  To avoid this, we pick a random,
15182       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15183       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15184       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15185       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'
15186       ;;
15187
15188     linux*)
15189       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15190         tmp_addflag=
15191         case $cc_basename,$host_cpu in
15192         pgcc*)                          # Portland Group C compiler
15193           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'
15194           tmp_addflag=' $pic_flag'
15195           ;;
15196         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15197           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'
15198           tmp_addflag=' $pic_flag -Mnomain' ;;
15199         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15200           tmp_addflag=' -i_dynamic' ;;
15201         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15202           tmp_addflag=' -i_dynamic -nofor_main' ;;
15203         ifc* | ifort*)                  # Intel Fortran compiler
15204           tmp_addflag=' -nofor_main' ;;
15205         esac
15206         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15207
15208         if test $supports_anon_versioning = yes; then
15209           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15210   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15211   $echo "local: *; };" >> $output_objdir/$libname.ver~
15212           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15213         fi
15214       else
15215         ld_shlibs=no
15216       fi
15217       ;;
15218
15219     netbsd*)
15220       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15221         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15222         wlarc=
15223       else
15224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15225         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15226       fi
15227       ;;
15228
15229     solaris*)
15230       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15231         ld_shlibs=no
15232         cat <<EOF 1>&2
15233
15234 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15235 *** create shared libraries on Solaris systems.  Therefore, libtool
15236 *** is disabling shared libraries support.  We urge you to upgrade GNU
15237 *** binutils to release 2.9.1 or newer.  Another option is to modify
15238 *** your PATH or compiler configuration so that the native linker is
15239 *** used, and then restart.
15240
15241 EOF
15242       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15244         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15245       else
15246         ld_shlibs=no
15247       fi
15248       ;;
15249
15250     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15251       case `$LD -v 2>&1` in
15252         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15253         ld_shlibs=no
15254         cat <<_LT_EOF 1>&2
15255
15256 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15257 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15258 *** is disabling shared libraries support.  We urge you to upgrade GNU
15259 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15260 *** your PATH or compiler configuration so that the native linker is
15261 *** used, and then restart.
15262
15263 _LT_EOF
15264         ;;
15265         *)
15266           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15267             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15268             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15269             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15270           else
15271             ld_shlibs=no
15272           fi
15273         ;;
15274       esac
15275       ;;
15276
15277     sunos4*)
15278       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15279       wlarc=
15280       hardcode_direct=yes
15281       hardcode_shlibpath_var=no
15282       ;;
15283
15284     *)
15285       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15286         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15288       else
15289         ld_shlibs=no
15290       fi
15291       ;;
15292     esac
15293
15294     if test "$ld_shlibs" = no; then
15295       runpath_var=
15296       hardcode_libdir_flag_spec=
15297       export_dynamic_flag_spec=
15298       whole_archive_flag_spec=
15299     fi
15300   else
15301     # PORTME fill in a description of your system's linker (not GNU ld)
15302     case $host_os in
15303     aix3*)
15304       allow_undefined_flag=unsupported
15305       always_export_symbols=yes
15306       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'
15307       # Note: this linker hardcodes the directories in LIBPATH if there
15308       # are no directories specified by -L.
15309       hardcode_minus_L=yes
15310       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15311         # Neither direct hardcoding nor static linking is supported with a
15312         # broken collect2.
15313         hardcode_direct=unsupported
15314       fi
15315       ;;
15316
15317     aix4* | aix5*)
15318       if test "$host_cpu" = ia64; then
15319         # On IA64, the linker does run time linking by default, so we don't
15320         # have to do anything special.
15321         aix_use_runtimelinking=no
15322         exp_sym_flag='-Bexport'
15323         no_entry_flag=""
15324       else
15325         # If we're using GNU nm, then we don't want the "-C" option.
15326         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15327         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15328           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'
15329         else
15330           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'
15331         fi
15332         aix_use_runtimelinking=no
15333
15334         # Test if we are trying to use run time linking or normal
15335         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15336         # need to do runtime linking.
15337         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15338           for ld_flag in $LDFLAGS; do
15339           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15340             aix_use_runtimelinking=yes
15341             break
15342           fi
15343           done
15344           ;;
15345         esac
15346
15347         exp_sym_flag='-bexport'
15348         no_entry_flag='-bnoentry'
15349       fi
15350
15351       # When large executables or shared objects are built, AIX ld can
15352       # have problems creating the table of contents.  If linking a library
15353       # or program results in "error TOC overflow" add -mminimal-toc to
15354       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15355       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15356
15357       archive_cmds=''
15358       hardcode_direct=yes
15359       hardcode_libdir_separator=':'
15360       link_all_deplibs=yes
15361
15362       if test "$GCC" = yes; then
15363         case $host_os in aix4.[012]|aix4.[012].*)
15364         # We only want to do this on AIX 4.2 and lower, the check
15365         # below for broken collect2 doesn't work under 4.3+
15366           collect2name=`${CC} -print-prog-name=collect2`
15367           if test -f "$collect2name" && \
15368            strings "$collect2name" | grep resolve_lib_name >/dev/null
15369           then
15370           # We have reworked collect2
15371           hardcode_direct=yes
15372           else
15373           # We have old collect2
15374           hardcode_direct=unsupported
15375           # It fails to find uninstalled libraries when the uninstalled
15376           # path is not listed in the libpath.  Setting hardcode_minus_L
15377           # to unsupported forces relinking
15378           hardcode_minus_L=yes
15379           hardcode_libdir_flag_spec='-L$libdir'
15380           hardcode_libdir_separator=
15381           fi
15382           ;;
15383         esac
15384         shared_flag='-shared'
15385         if test "$aix_use_runtimelinking" = yes; then
15386           shared_flag="$shared_flag "'${wl}-G'
15387         fi
15388       else
15389         # not using gcc
15390         if test "$host_cpu" = ia64; then
15391         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15392         # chokes on -Wl,-G. The following line is correct:
15393           shared_flag='-G'
15394         else
15395           if test "$aix_use_runtimelinking" = yes; then
15396             shared_flag='${wl}-G'
15397           else
15398             shared_flag='${wl}-bM:SRE'
15399           fi
15400         fi
15401       fi
15402
15403       # It seems that -bexpall does not export symbols beginning with
15404       # underscore (_), so it is better to generate a list of symbols to export.
15405       always_export_symbols=yes
15406       if test "$aix_use_runtimelinking" = yes; then
15407         # Warning - without using the other runtime loading flags (-brtl),
15408         # -berok will link without error, but may produce a broken library.
15409         allow_undefined_flag='-berok'
15410        # Determine the default libpath from the value encoded in an empty executable.
15411        cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h.  */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h.  */
15417
15418 int
15419 main ()
15420 {
15421
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_link") 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } && {
15440          test -z "$ac_c_werror_flag" ||
15441          test ! -s conftest.err
15442        } && test -s conftest$ac_exeext &&
15443        $as_test_x conftest$ac_exeext; then
15444
15445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15446 }'`
15447 # Check for a 64-bit object if we didn't find anything.
15448 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15449 }'`; fi
15450 else
15451   echo "$as_me: failed program was:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15453
15454
15455 fi
15456
15457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15458       conftest$ac_exeext conftest.$ac_ext
15459 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15460
15461        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15462         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"
15463        else
15464         if test "$host_cpu" = ia64; then
15465           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15466           allow_undefined_flag="-z nodefs"
15467           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"
15468         else
15469          # Determine the default libpath from the value encoded in an empty executable.
15470          cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476
15477 int
15478 main ()
15479 {
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_link") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } && {
15499          test -z "$ac_c_werror_flag" ||
15500          test ! -s conftest.err
15501        } && test -s conftest$ac_exeext &&
15502        $as_test_x conftest$ac_exeext; then
15503
15504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15505 }'`
15506 # Check for a 64-bit object if we didn't find anything.
15507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15508 }'`; fi
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15517       conftest$ac_exeext conftest.$ac_ext
15518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15519
15520          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15521           # Warning - without using the other run time loading flags,
15522           # -berok will link without error, but may produce a broken library.
15523           no_undefined_flag=' ${wl}-bernotok'
15524           allow_undefined_flag=' ${wl}-berok'
15525           # Exported symbols can be pulled into shared objects from archives
15526           whole_archive_flag_spec='$convenience'
15527           archive_cmds_need_lc=yes
15528           # This is similar to how AIX traditionally builds its shared libraries.
15529           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'
15530         fi
15531       fi
15532       ;;
15533
15534     amigaos*)
15535       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)'
15536       hardcode_libdir_flag_spec='-L$libdir'
15537       hardcode_minus_L=yes
15538       # see comment about different semantics on the GNU ld section
15539       ld_shlibs=no
15540       ;;
15541
15542     bsdi[45]*)
15543       export_dynamic_flag_spec=-rdynamic
15544       ;;
15545
15546     cygwin* | mingw* | pw32*)
15547       # When not using gcc, we currently assume that we are using
15548       # Microsoft Visual C++.
15549       # hardcode_libdir_flag_spec is actually meaningless, as there is
15550       # no search path for DLLs.
15551       hardcode_libdir_flag_spec=' '
15552       allow_undefined_flag=unsupported
15553       # Tell ltmain to make .lib files, not .a files.
15554       libext=lib
15555       # Tell ltmain to make .dll files, not .so files.
15556       shrext_cmds=".dll"
15557       # FIXME: Setting linknames here is a bad hack.
15558       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15559       # The linker will automatically build a .lib file if we build a DLL.
15560       old_archive_From_new_cmds='true'
15561       # FIXME: Should let the user specify the lib program.
15562       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15563       fix_srcfile_path='`cygpath -w "$srcfile"`'
15564       enable_shared_with_static_runtimes=yes
15565       ;;
15566
15567     darwin* | rhapsody*)
15568       case $host_os in
15569         rhapsody* | darwin1.[012])
15570          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15571          ;;
15572        *) # Darwin 1.3 on
15573          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15574            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15575          else
15576            case ${MACOSX_DEPLOYMENT_TARGET} in
15577              10.[012])
15578                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15579                ;;
15580              10.*)
15581                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15582                ;;
15583            esac
15584          fi
15585          ;;
15586       esac
15587       archive_cmds_need_lc=no
15588       hardcode_direct=no
15589       hardcode_automatic=yes
15590       hardcode_shlibpath_var=unsupported
15591       whole_archive_flag_spec=''
15592       link_all_deplibs=yes
15593     if test "$GCC" = yes ; then
15594         output_verbose_link_cmd='echo'
15595         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15596       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15597       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15598       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}'
15599       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}'
15600     else
15601       case $cc_basename in
15602         xlc*)
15603          output_verbose_link_cmd='echo'
15604          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15605          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15606           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15607          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15608           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}'
15609           ;;
15610        *)
15611          ld_shlibs=no
15612           ;;
15613       esac
15614     fi
15615       ;;
15616
15617     dgux*)
15618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15619       hardcode_libdir_flag_spec='-L$libdir'
15620       hardcode_shlibpath_var=no
15621       ;;
15622
15623     freebsd1*)
15624       ld_shlibs=no
15625       ;;
15626
15627     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15628     # support.  Future versions do this automatically, but an explicit c++rt0.o
15629     # does not break anything, and helps significantly (at the cost of a little
15630     # extra space).
15631     freebsd2.2*)
15632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15633       hardcode_libdir_flag_spec='-R$libdir'
15634       hardcode_direct=yes
15635       hardcode_shlibpath_var=no
15636       ;;
15637
15638     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15639     freebsd2*)
15640       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15641       hardcode_direct=yes
15642       hardcode_minus_L=yes
15643       hardcode_shlibpath_var=no
15644       ;;
15645
15646     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15647     freebsd* | kfreebsd*-gnu | dragonfly*)
15648       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15649       hardcode_libdir_flag_spec='-R$libdir'
15650       hardcode_direct=yes
15651       hardcode_shlibpath_var=no
15652       ;;
15653
15654     hpux9*)
15655       if test "$GCC" = yes; then
15656         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'
15657       else
15658         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'
15659       fi
15660       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15661       hardcode_libdir_separator=:
15662       hardcode_direct=yes
15663
15664       # hardcode_minus_L: Not really in the search PATH,
15665       # but as the default location of the library.
15666       hardcode_minus_L=yes
15667       export_dynamic_flag_spec='${wl}-E'
15668       ;;
15669
15670     hpux10*)
15671       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15672         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15673       else
15674         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15675       fi
15676       if test "$with_gnu_ld" = no; then
15677         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15678         hardcode_libdir_separator=:
15679
15680         hardcode_direct=yes
15681         export_dynamic_flag_spec='${wl}-E'
15682
15683         # hardcode_minus_L: Not really in the search PATH,
15684         # but as the default location of the library.
15685         hardcode_minus_L=yes
15686       fi
15687       ;;
15688
15689     hpux11*)
15690       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15691         case $host_cpu in
15692         hppa*64*)
15693           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694           ;;
15695         ia64*)
15696           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15697           ;;
15698         *)
15699           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15700           ;;
15701         esac
15702       else
15703         case $host_cpu in
15704         hppa*64*)
15705           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706           ;;
15707         ia64*)
15708           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15709           ;;
15710         *)
15711           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15712           ;;
15713         esac
15714       fi
15715       if test "$with_gnu_ld" = no; then
15716         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15717         hardcode_libdir_separator=:
15718
15719         case $host_cpu in
15720         hppa*64*|ia64*)
15721           hardcode_libdir_flag_spec_ld='+b $libdir'
15722           hardcode_direct=no
15723           hardcode_shlibpath_var=no
15724           ;;
15725         *)
15726           hardcode_direct=yes
15727           export_dynamic_flag_spec='${wl}-E'
15728
15729           # hardcode_minus_L: Not really in the search PATH,
15730           # but as the default location of the library.
15731           hardcode_minus_L=yes
15732           ;;
15733         esac
15734       fi
15735       ;;
15736
15737     irix5* | irix6* | nonstopux*)
15738       if test "$GCC" = yes; then
15739         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'
15740       else
15741         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'
15742         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15743       fi
15744       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745       hardcode_libdir_separator=:
15746       link_all_deplibs=yes
15747       ;;
15748
15749     netbsd*)
15750       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15751         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15752       else
15753         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15754       fi
15755       hardcode_libdir_flag_spec='-R$libdir'
15756       hardcode_direct=yes
15757       hardcode_shlibpath_var=no
15758       ;;
15759
15760     newsos6)
15761       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762       hardcode_direct=yes
15763       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764       hardcode_libdir_separator=:
15765       hardcode_shlibpath_var=no
15766       ;;
15767
15768     openbsd*)
15769       hardcode_direct=yes
15770       hardcode_shlibpath_var=no
15771       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15772         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15773         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15774         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15775         export_dynamic_flag_spec='${wl}-E'
15776       else
15777        case $host_os in
15778          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15779            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15780            hardcode_libdir_flag_spec='-R$libdir'
15781            ;;
15782          *)
15783            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15784            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15785            ;;
15786        esac
15787       fi
15788       ;;
15789
15790     os2*)
15791       hardcode_libdir_flag_spec='-L$libdir'
15792       hardcode_minus_L=yes
15793       allow_undefined_flag=unsupported
15794       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'
15795       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15796       ;;
15797
15798     osf3*)
15799       if test "$GCC" = yes; then
15800         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15801         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'
15802       else
15803         allow_undefined_flag=' -expect_unresolved \*'
15804         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'
15805       fi
15806       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15807       hardcode_libdir_separator=:
15808       ;;
15809
15810     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15811       if test "$GCC" = yes; then
15812         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15813         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'
15814         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15815       else
15816         allow_undefined_flag=' -expect_unresolved \*'
15817         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'
15818         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15819         $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'
15820
15821         # Both c and cxx compiler support -rpath directly
15822         hardcode_libdir_flag_spec='-rpath $libdir'
15823       fi
15824       hardcode_libdir_separator=:
15825       ;;
15826
15827     solaris*)
15828       no_undefined_flag=' -z text'
15829       if test "$GCC" = yes; then
15830         wlarc='${wl}'
15831         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15833           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15834       else
15835         wlarc=''
15836         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15837         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15838         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15839       fi
15840       hardcode_libdir_flag_spec='-R$libdir'
15841       hardcode_shlibpath_var=no
15842       case $host_os in
15843       solaris2.[0-5] | solaris2.[0-5].*) ;;
15844       *)
15845         # The compiler driver will combine linker options so we
15846         # cannot just pass the convience library names through
15847         # without $wl, iff we do not link with $LD.
15848         # Luckily, gcc supports the same syntax we need for Sun Studio.
15849         # Supported since Solaris 2.6 (maybe 2.5.1?)
15850         case $wlarc in
15851         '')
15852           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15853         *)
15854           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15855         esac ;;
15856       esac
15857       link_all_deplibs=yes
15858       ;;
15859
15860     sunos4*)
15861       if test "x$host_vendor" = xsequent; then
15862         # Use $CC to link under sequent, because it throws in some extra .o
15863         # files that make .init and .fini sections work.
15864         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15865       else
15866         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15867       fi
15868       hardcode_libdir_flag_spec='-L$libdir'
15869       hardcode_direct=yes
15870       hardcode_minus_L=yes
15871       hardcode_shlibpath_var=no
15872       ;;
15873
15874     sysv4)
15875       case $host_vendor in
15876         sni)
15877           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15878           hardcode_direct=yes # is this really true???
15879         ;;
15880         siemens)
15881           ## LD is ld it makes a PLAMLIB
15882           ## CC just makes a GrossModule.
15883           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15884           reload_cmds='$CC -r -o $output$reload_objs'
15885           hardcode_direct=no
15886         ;;
15887         motorola)
15888           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15889           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15890         ;;
15891       esac
15892       runpath_var='LD_RUN_PATH'
15893       hardcode_shlibpath_var=no
15894       ;;
15895
15896     sysv4.3*)
15897       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898       hardcode_shlibpath_var=no
15899       export_dynamic_flag_spec='-Bexport'
15900       ;;
15901
15902     sysv4*MP*)
15903       if test -d /usr/nec; then
15904         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15905         hardcode_shlibpath_var=no
15906         runpath_var=LD_RUN_PATH
15907         hardcode_runpath_var=yes
15908         ld_shlibs=yes
15909       fi
15910       ;;
15911
15912     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15913       no_undefined_flag='${wl}-z,text'
15914       archive_cmds_need_lc=no
15915       hardcode_shlibpath_var=no
15916       runpath_var='LD_RUN_PATH'
15917
15918       if test "$GCC" = yes; then
15919         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15920         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15921       else
15922         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15923         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15924       fi
15925       ;;
15926
15927     sysv5* | sco3.2v5* | sco5v6*)
15928       # Note: We can NOT use -z defs as we might desire, because we do not
15929       # link with -lc, and that would cause any symbols used from libc to
15930       # always be unresolved, which means just about no library would
15931       # ever link correctly.  If we're not using GNU ld we use -z text
15932       # though, which does catch some bad symbols but isn't as heavy-handed
15933       # as -z defs.
15934       no_undefined_flag='${wl}-z,text'
15935       allow_undefined_flag='${wl}-z,nodefs'
15936       archive_cmds_need_lc=no
15937       hardcode_shlibpath_var=no
15938       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15939       hardcode_libdir_separator=':'
15940       link_all_deplibs=yes
15941       export_dynamic_flag_spec='${wl}-Bexport'
15942       runpath_var='LD_RUN_PATH'
15943
15944       if test "$GCC" = yes; then
15945         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15946         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15947       else
15948         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15949         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15950       fi
15951       ;;
15952
15953     uts4*)
15954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15955       hardcode_libdir_flag_spec='-L$libdir'
15956       hardcode_shlibpath_var=no
15957       ;;
15958
15959     *)
15960       ld_shlibs=no
15961       ;;
15962     esac
15963   fi
15964
15965 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15966 echo "${ECHO_T}$ld_shlibs" >&6; }
15967 test "$ld_shlibs" = no && can_build_shared=no
15968
15969 #
15970 # Do we need to explicitly link libc?
15971 #
15972 case "x$archive_cmds_need_lc" in
15973 x|xyes)
15974   # Assume -lc should be added
15975   archive_cmds_need_lc=yes
15976
15977   if test "$enable_shared" = yes && test "$GCC" = yes; then
15978     case $archive_cmds in
15979     *'~'*)
15980       # FIXME: we may have to deal with multi-command sequences.
15981       ;;
15982     '$CC '*)
15983       # Test whether the compiler implicitly links with -lc since on some
15984       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15985       # to ld, don't add -lc before -lgcc.
15986       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15987 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15988       $rm conftest*
15989       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15990
15991       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992   (eval $ac_compile) 2>&5
15993   ac_status=$?
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } 2>conftest.err; then
15996         soname=conftest
15997         lib=conftest
15998         libobjs=conftest.$ac_objext
15999         deplibs=
16000         wl=$lt_prog_compiler_wl
16001         pic_flag=$lt_prog_compiler_pic
16002         compiler_flags=-v
16003         linker_flags=-v
16004         verstring=
16005         output_objdir=.
16006         libname=conftest
16007         lt_save_allow_undefined_flag=$allow_undefined_flag
16008         allow_undefined_flag=
16009         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16010   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }
16014         then
16015           archive_cmds_need_lc=no
16016         else
16017           archive_cmds_need_lc=yes
16018         fi
16019         allow_undefined_flag=$lt_save_allow_undefined_flag
16020       else
16021         cat conftest.err 1>&5
16022       fi
16023       $rm conftest*
16024       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16025 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16026       ;;
16027     esac
16028   fi
16029   ;;
16030 esac
16031
16032 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16033 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16034 library_names_spec=
16035 libname_spec='lib$name'
16036 soname_spec=
16037 shrext_cmds=".so"
16038 postinstall_cmds=
16039 postuninstall_cmds=
16040 finish_cmds=
16041 finish_eval=
16042 shlibpath_var=
16043 shlibpath_overrides_runpath=unknown
16044 version_type=none
16045 dynamic_linker="$host_os ld.so"
16046 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16047 if test "$GCC" = yes; then
16048   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16049   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16050     # if the path contains ";" then we assume it to be the separator
16051     # otherwise default to the standard path separator (i.e. ":") - it is
16052     # assumed that no part of a normal pathname contains ";" but that should
16053     # okay in the real world where ";" in dirpaths is itself problematic.
16054     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16055   else
16056     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16057   fi
16058 else
16059   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16060 fi
16061 need_lib_prefix=unknown
16062 hardcode_into_libs=no
16063
16064 # when you set need_version to no, make sure it does not cause -set_version
16065 # flags to be left without arguments
16066 need_version=unknown
16067
16068 case $host_os in
16069 aix3*)
16070   version_type=linux
16071   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16072   shlibpath_var=LIBPATH
16073
16074   # AIX 3 has no versioning support, so we append a major version to the name.
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   ;;
16077
16078 aix4* | aix5*)
16079   version_type=linux
16080   need_lib_prefix=no
16081   need_version=no
16082   hardcode_into_libs=yes
16083   if test "$host_cpu" = ia64; then
16084     # AIX 5 supports IA64
16085     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16086     shlibpath_var=LD_LIBRARY_PATH
16087   else
16088     # With GCC up to 2.95.x, collect2 would create an import file
16089     # for dependence libraries.  The import file would start with
16090     # the line `#! .'.  This would cause the generated library to
16091     # depend on `.', always an invalid library.  This was fixed in
16092     # development snapshots of GCC prior to 3.0.
16093     case $host_os in
16094       aix4 | aix4.[01] | aix4.[01].*)
16095       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16096            echo ' yes '
16097            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16098         :
16099       else
16100         can_build_shared=no
16101       fi
16102       ;;
16103     esac
16104     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16105     # soname into executable. Probably we can add versioning support to
16106     # collect2, so additional links can be useful in future.
16107     if test "$aix_use_runtimelinking" = yes; then
16108       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16109       # instead of lib<name>.a to let people know that these are not
16110       # typical AIX shared libraries.
16111       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112     else
16113       # We preserve .a as extension for shared libraries through AIX4.2
16114       # and later when we are not doing run time linking.
16115       library_names_spec='${libname}${release}.a $libname.a'
16116       soname_spec='${libname}${release}${shared_ext}$major'
16117     fi
16118     shlibpath_var=LIBPATH
16119   fi
16120   ;;
16121
16122 amigaos*)
16123   library_names_spec='$libname.ixlibrary $libname.a'
16124   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16125   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'
16126   ;;
16127
16128 beos*)
16129   library_names_spec='${libname}${shared_ext}'
16130   dynamic_linker="$host_os ld.so"
16131   shlibpath_var=LIBRARY_PATH
16132   ;;
16133
16134 bsdi[45]*)
16135   version_type=linux
16136   need_version=no
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138   soname_spec='${libname}${release}${shared_ext}$major'
16139   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16142   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16143   # the default ld.so.conf also contains /usr/contrib/lib and
16144   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16145   # libtool to hard-code these into programs
16146   ;;
16147
16148 cygwin* | mingw* | pw32*)
16149   version_type=windows
16150   shrext_cmds=".dll"
16151   need_version=no
16152   need_lib_prefix=no
16153
16154   case $GCC,$host_os in
16155   yes,cygwin* | yes,mingw* | yes,pw32*)
16156     library_names_spec='$libname.dll.a'
16157     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16158     postinstall_cmds='base_file=`basename \${file}`~
16159       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16160       dldir=$destdir/`dirname \$dlpath`~
16161       test -d \$dldir || mkdir -p \$dldir~
16162       $install_prog $dir/$dlname \$dldir/$dlname~
16163       chmod a+x \$dldir/$dlname'
16164     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16165       dlpath=$dir/\$dldll~
16166        $rm \$dlpath'
16167     shlibpath_overrides_runpath=yes
16168
16169     case $host_os in
16170     cygwin*)
16171       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16172       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16173       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16174       ;;
16175     mingw*)
16176       # MinGW DLLs use traditional 'lib' prefix
16177       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16178       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16179       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16180         # It is most probably a Windows format PATH printed by
16181         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16182         # path with ; separators, and with drive letters. We can handle the
16183         # drive letters (cygwin fileutils understands them), so leave them,
16184         # especially as we might pass files found there to a mingw objdump,
16185         # which wouldn't understand a cygwinified path. Ahh.
16186         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16187       else
16188         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16189       fi
16190       ;;
16191     pw32*)
16192       # pw32 DLLs use 'pw' prefix rather than 'lib'
16193       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16194       ;;
16195     esac
16196     ;;
16197
16198   *)
16199     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16200     ;;
16201   esac
16202   dynamic_linker='Win32 ld.exe'
16203   # FIXME: first we should search . and the directory the executable is in
16204   shlibpath_var=PATH
16205   ;;
16206
16207 darwin* | rhapsody*)
16208   dynamic_linker="$host_os dyld"
16209   version_type=darwin
16210   need_lib_prefix=no
16211   need_version=no
16212   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16213   soname_spec='${libname}${release}${major}$shared_ext'
16214   shlibpath_overrides_runpath=yes
16215   shlibpath_var=DYLD_LIBRARY_PATH
16216   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16217   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16218   if test "$GCC" = yes; then
16219     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16220   else
16221     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16222   fi
16223   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16224   ;;
16225
16226 dgux*)
16227   version_type=linux
16228   need_lib_prefix=no
16229   need_version=no
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16231   soname_spec='${libname}${release}${shared_ext}$major'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   ;;
16234
16235 freebsd1*)
16236   dynamic_linker=no
16237   ;;
16238
16239 kfreebsd*-gnu)
16240   version_type=linux
16241   need_lib_prefix=no
16242   need_version=no
16243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16244   soname_spec='${libname}${release}${shared_ext}$major'
16245   shlibpath_var=LD_LIBRARY_PATH
16246   shlibpath_overrides_runpath=no
16247   hardcode_into_libs=yes
16248   dynamic_linker='GNU ld.so'
16249   ;;
16250
16251 freebsd* | dragonfly*)
16252   # DragonFly does not have aout.  When/if they implement a new
16253   # versioning mechanism, adjust this.
16254   if test -x /usr/bin/objformat; then
16255     objformat=`/usr/bin/objformat`
16256   else
16257     case $host_os in
16258     freebsd[123]*) objformat=aout ;;
16259     *) objformat=elf ;;
16260     esac
16261   fi
16262   version_type=freebsd-$objformat
16263   case $version_type in
16264     freebsd-elf*)
16265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266       need_version=no
16267       need_lib_prefix=no
16268       ;;
16269     freebsd-*)
16270       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16271       need_version=yes
16272       ;;
16273   esac
16274   shlibpath_var=LD_LIBRARY_PATH
16275   case $host_os in
16276   freebsd2*)
16277     shlibpath_overrides_runpath=yes
16278     ;;
16279   freebsd3.[01]* | freebsdelf3.[01]*)
16280     shlibpath_overrides_runpath=yes
16281     hardcode_into_libs=yes
16282     ;;
16283   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16284   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16285     shlibpath_overrides_runpath=no
16286     hardcode_into_libs=yes
16287     ;;
16288   freebsd*) # from 4.6 on
16289     shlibpath_overrides_runpath=yes
16290     hardcode_into_libs=yes
16291     ;;
16292   esac
16293   ;;
16294
16295 gnu*)
16296   version_type=linux
16297   need_lib_prefix=no
16298   need_version=no
16299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16300   soname_spec='${libname}${release}${shared_ext}$major'
16301   shlibpath_var=LD_LIBRARY_PATH
16302   hardcode_into_libs=yes
16303   ;;
16304
16305 hpux9* | hpux10* | hpux11*)
16306   # Give a soname corresponding to the major version so that dld.sl refuses to
16307   # link against other versions.
16308   version_type=sunos
16309   need_lib_prefix=no
16310   need_version=no
16311   case $host_cpu in
16312   ia64*)
16313     shrext_cmds='.so'
16314     hardcode_into_libs=yes
16315     dynamic_linker="$host_os dld.so"
16316     shlibpath_var=LD_LIBRARY_PATH
16317     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16318     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319     soname_spec='${libname}${release}${shared_ext}$major'
16320     if test "X$HPUX_IA64_MODE" = X32; then
16321       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16322     else
16323       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16324     fi
16325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16326     ;;
16327    hppa*64*)
16328      shrext_cmds='.sl'
16329      hardcode_into_libs=yes
16330      dynamic_linker="$host_os dld.sl"
16331      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16332      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334      soname_spec='${libname}${release}${shared_ext}$major'
16335      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16336      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337      ;;
16338    *)
16339     shrext_cmds='.sl'
16340     dynamic_linker="$host_os dld.sl"
16341     shlibpath_var=SHLIB_PATH
16342     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16343     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16344     soname_spec='${libname}${release}${shared_ext}$major'
16345     ;;
16346   esac
16347   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16348   postinstall_cmds='chmod 555 $lib'
16349   ;;
16350
16351 interix3*)
16352   version_type=linux
16353   need_lib_prefix=no
16354   need_version=no
16355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16356   soname_spec='${libname}${release}${shared_ext}$major'
16357   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   shlibpath_overrides_runpath=no
16360   hardcode_into_libs=yes
16361   ;;
16362
16363 irix5* | irix6* | nonstopux*)
16364   case $host_os in
16365     nonstopux*) version_type=nonstopux ;;
16366     *)
16367         if test "$lt_cv_prog_gnu_ld" = yes; then
16368                 version_type=linux
16369         else
16370                 version_type=irix
16371         fi ;;
16372   esac
16373   need_lib_prefix=no
16374   need_version=no
16375   soname_spec='${libname}${release}${shared_ext}$major'
16376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16377   case $host_os in
16378   irix5* | nonstopux*)
16379     libsuff= shlibsuff=
16380     ;;
16381   *)
16382     case $LD in # libtool.m4 will add one of these switches to LD
16383     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16384       libsuff= shlibsuff= libmagic=32-bit;;
16385     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16386       libsuff=32 shlibsuff=N32 libmagic=N32;;
16387     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16388       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16389     *) libsuff= shlibsuff= libmagic=never-match;;
16390     esac
16391     ;;
16392   esac
16393   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16394   shlibpath_overrides_runpath=no
16395   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16396   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16397   hardcode_into_libs=yes
16398   ;;
16399
16400 # No shared lib support for Linux oldld, aout, or coff.
16401 linux*oldld* | linux*aout* | linux*coff*)
16402   dynamic_linker=no
16403   ;;
16404
16405 # This must be Linux ELF.
16406 linux*)
16407   version_type=linux
16408   need_lib_prefix=no
16409   need_version=no
16410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411   soname_spec='${libname}${release}${shared_ext}$major'
16412   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16413   shlibpath_var=LD_LIBRARY_PATH
16414   shlibpath_overrides_runpath=no
16415   # This implies no fast_install, which is unacceptable.
16416   # Some rework will be needed to allow for fast_install
16417   # before this can be enabled.
16418   hardcode_into_libs=yes
16419
16420   # find out which ABI we are using
16421   libsuff=
16422   case "$host_cpu" in
16423   x86_64*|s390x*|powerpc64*)
16424     echo '#line 16424 "configure"' > conftest.$ac_ext
16425     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426   (eval $ac_compile) 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; then
16430       case `/usr/bin/file conftest.$ac_objext` in
16431       *64-bit*)
16432         libsuff=64
16433         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16434         ;;
16435       esac
16436     fi
16437     rm -rf conftest*
16438     ;;
16439   esac
16440
16441   # Append ld.so.conf contents to the search path
16442   if test -f /etc/ld.so.conf; then
16443     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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16444     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16445   fi
16446
16447   # We used to test for /lib/ld.so.1 and disable shared libraries on
16448   # powerpc, because MkLinux only supported shared libraries with the
16449   # GNU dynamic linker.  Since this was broken with cross compilers,
16450   # most powerpc-linux boxes support dynamic linking these days and
16451   # people can always --disable-shared, the test was removed, and we
16452   # assume the GNU/Linux dynamic linker is in use.
16453   dynamic_linker='GNU/Linux ld.so'
16454   ;;
16455
16456 knetbsd*-gnu)
16457   version_type=linux
16458   need_lib_prefix=no
16459   need_version=no
16460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16461   soname_spec='${libname}${release}${shared_ext}$major'
16462   shlibpath_var=LD_LIBRARY_PATH
16463   shlibpath_overrides_runpath=no
16464   hardcode_into_libs=yes
16465   dynamic_linker='GNU ld.so'
16466   ;;
16467
16468 netbsd*)
16469   version_type=sunos
16470   need_lib_prefix=no
16471   need_version=no
16472   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16474     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16475     dynamic_linker='NetBSD (a.out) ld.so'
16476   else
16477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16478     soname_spec='${libname}${release}${shared_ext}$major'
16479     dynamic_linker='NetBSD ld.elf_so'
16480   fi
16481   shlibpath_var=LD_LIBRARY_PATH
16482   shlibpath_overrides_runpath=yes
16483   hardcode_into_libs=yes
16484   ;;
16485
16486 newsos6)
16487   version_type=linux
16488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16489   shlibpath_var=LD_LIBRARY_PATH
16490   shlibpath_overrides_runpath=yes
16491   ;;
16492
16493 nto-qnx*)
16494   version_type=linux
16495   need_lib_prefix=no
16496   need_version=no
16497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498   soname_spec='${libname}${release}${shared_ext}$major'
16499   shlibpath_var=LD_LIBRARY_PATH
16500   shlibpath_overrides_runpath=yes
16501   ;;
16502
16503 openbsd*)
16504   version_type=sunos
16505   sys_lib_dlsearch_path_spec="/usr/lib"
16506   need_lib_prefix=no
16507   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16508   case $host_os in
16509     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16510     *)                         need_version=no  ;;
16511   esac
16512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16514   shlibpath_var=LD_LIBRARY_PATH
16515   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16516     case $host_os in
16517       openbsd2.[89] | openbsd2.[89].*)
16518         shlibpath_overrides_runpath=no
16519         ;;
16520       *)
16521         shlibpath_overrides_runpath=yes
16522         ;;
16523       esac
16524   else
16525     shlibpath_overrides_runpath=yes
16526   fi
16527   ;;
16528
16529 os2*)
16530   libname_spec='$name'
16531   shrext_cmds=".dll"
16532   need_lib_prefix=no
16533   library_names_spec='$libname${shared_ext} $libname.a'
16534   dynamic_linker='OS/2 ld.exe'
16535   shlibpath_var=LIBPATH
16536   ;;
16537
16538 osf3* | osf4* | osf5*)
16539   version_type=osf
16540   need_lib_prefix=no
16541   need_version=no
16542   soname_spec='${libname}${release}${shared_ext}$major'
16543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16544   shlibpath_var=LD_LIBRARY_PATH
16545   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16546   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16547   ;;
16548
16549 solaris*)
16550   version_type=linux
16551   need_lib_prefix=no
16552   need_version=no
16553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554   soname_spec='${libname}${release}${shared_ext}$major'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   shlibpath_overrides_runpath=yes
16557   hardcode_into_libs=yes
16558   # ldd complains unless libraries are executable
16559   postinstall_cmds='chmod +x $lib'
16560   ;;
16561
16562 sunos4*)
16563   version_type=sunos
16564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   shlibpath_overrides_runpath=yes
16568   if test "$with_gnu_ld" = yes; then
16569     need_lib_prefix=no
16570   fi
16571   need_version=yes
16572   ;;
16573
16574 sysv4 | sysv4.3*)
16575   version_type=linux
16576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577   soname_spec='${libname}${release}${shared_ext}$major'
16578   shlibpath_var=LD_LIBRARY_PATH
16579   case $host_vendor in
16580     sni)
16581       shlibpath_overrides_runpath=no
16582       need_lib_prefix=no
16583       export_dynamic_flag_spec='${wl}-Blargedynsym'
16584       runpath_var=LD_RUN_PATH
16585       ;;
16586     siemens)
16587       need_lib_prefix=no
16588       ;;
16589     motorola)
16590       need_lib_prefix=no
16591       need_version=no
16592       shlibpath_overrides_runpath=no
16593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16594       ;;
16595   esac
16596   ;;
16597
16598 sysv4*MP*)
16599   if test -d /usr/nec ;then
16600     version_type=linux
16601     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16602     soname_spec='$libname${shared_ext}.$major'
16603     shlibpath_var=LD_LIBRARY_PATH
16604   fi
16605   ;;
16606
16607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16608   version_type=freebsd-elf
16609   need_lib_prefix=no
16610   need_version=no
16611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16612   soname_spec='${libname}${release}${shared_ext}$major'
16613   shlibpath_var=LD_LIBRARY_PATH
16614   hardcode_into_libs=yes
16615   if test "$with_gnu_ld" = yes; then
16616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16617     shlibpath_overrides_runpath=no
16618   else
16619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16620     shlibpath_overrides_runpath=yes
16621     case $host_os in
16622       sco3.2v5*)
16623         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16624         ;;
16625     esac
16626   fi
16627   sys_lib_dlsearch_path_spec='/usr/lib'
16628   ;;
16629
16630 uts4*)
16631   version_type=linux
16632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16633   soname_spec='${libname}${release}${shared_ext}$major'
16634   shlibpath_var=LD_LIBRARY_PATH
16635   ;;
16636
16637 *)
16638   dynamic_linker=no
16639   ;;
16640 esac
16641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16642 echo "${ECHO_T}$dynamic_linker" >&6; }
16643 test "$dynamic_linker" = no && can_build_shared=no
16644
16645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16646 if test "$GCC" = yes; then
16647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16648 fi
16649
16650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16652 hardcode_action=
16653 if test -n "$hardcode_libdir_flag_spec" || \
16654    test -n "$runpath_var" || \
16655    test "X$hardcode_automatic" = "Xyes" ; then
16656
16657   # We can hardcode non-existant directories.
16658   if test "$hardcode_direct" != no &&
16659      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16660      # have to relink, otherwise we might link with an installed library
16661      # when we should be linking with a yet-to-be-installed one
16662      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16663      test "$hardcode_minus_L" != no; then
16664     # Linking always hardcodes the temporary library directory.
16665     hardcode_action=relink
16666   else
16667     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16668     hardcode_action=immediate
16669   fi
16670 else
16671   # We cannot hardcode anything, or else we can only hardcode existing
16672   # directories.
16673   hardcode_action=unsupported
16674 fi
16675 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16676 echo "${ECHO_T}$hardcode_action" >&6; }
16677
16678 if test "$hardcode_action" = relink; then
16679   # Fast installation is not supported
16680   enable_fast_install=no
16681 elif test "$shlibpath_overrides_runpath" = yes ||
16682      test "$enable_shared" = no; then
16683   # Fast installation is not necessary
16684   enable_fast_install=needless
16685 fi
16686
16687 striplib=
16688 old_striplib=
16689 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16690 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16691 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16692   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16693   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16694   { echo "$as_me:$LINENO: result: yes" >&5
16695 echo "${ECHO_T}yes" >&6; }
16696 else
16697 # FIXME - insert some real tests, host_os isn't really good enough
16698   case $host_os in
16699    darwin*)
16700        if test -n "$STRIP" ; then
16701          striplib="$STRIP -x"
16702          { echo "$as_me:$LINENO: result: yes" >&5
16703 echo "${ECHO_T}yes" >&6; }
16704        else
16705   { echo "$as_me:$LINENO: result: no" >&5
16706 echo "${ECHO_T}no" >&6; }
16707 fi
16708        ;;
16709    *)
16710   { echo "$as_me:$LINENO: result: no" >&5
16711 echo "${ECHO_T}no" >&6; }
16712     ;;
16713   esac
16714 fi
16715
16716 if test "x$enable_dlopen" != xyes; then
16717   enable_dlopen=unknown
16718   enable_dlopen_self=unknown
16719   enable_dlopen_self_static=unknown
16720 else
16721   lt_cv_dlopen=no
16722   lt_cv_dlopen_libs=
16723
16724   case $host_os in
16725   beos*)
16726     lt_cv_dlopen="load_add_on"
16727     lt_cv_dlopen_libs=
16728     lt_cv_dlopen_self=yes
16729     ;;
16730
16731   mingw* | pw32*)
16732     lt_cv_dlopen="LoadLibrary"
16733     lt_cv_dlopen_libs=
16734    ;;
16735
16736   cygwin*)
16737     lt_cv_dlopen="dlopen"
16738     lt_cv_dlopen_libs=
16739    ;;
16740
16741   darwin*)
16742   # if libdl is installed we need to link against it
16743     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   ac_check_lib_save_LIBS=$LIBS
16749 LIBS="-ldl  $LIBS"
16750 cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h.  */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h.  */
16756
16757 /* Override any GCC internal prototype to avoid an error.
16758    Use char because int might match the return type of a GCC
16759    builtin and then its argument prototype would still apply.  */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char dlopen ();
16764 int
16765 main ()
16766 {
16767 return dlopen ();
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest.$ac_objext conftest$ac_exeext
16773 if { (ac_try="$ac_link"
16774 case "(($ac_try" in
16775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776   *) ac_try_echo=$ac_try;;
16777 esac
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779   (eval "$ac_link") 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } && {
16786          test -z "$ac_c_werror_flag" ||
16787          test ! -s conftest.err
16788        } && test -s conftest$ac_exeext &&
16789        $as_test_x conftest$ac_exeext; then
16790   ac_cv_lib_dl_dlopen=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795         ac_cv_lib_dl_dlopen=no
16796 fi
16797
16798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16799       conftest$ac_exeext conftest.$ac_ext
16800 LIBS=$ac_check_lib_save_LIBS
16801 fi
16802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16804 if test $ac_cv_lib_dl_dlopen = yes; then
16805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16806 else
16807
16808     lt_cv_dlopen="dyld"
16809     lt_cv_dlopen_libs=
16810     lt_cv_dlopen_self=yes
16811
16812 fi
16813
16814    ;;
16815
16816   *)
16817     { echo "$as_me:$LINENO: checking for shl_load" >&5
16818 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16819 if test "${ac_cv_func_shl_load+set}" = set; then
16820   echo $ECHO_N "(cached) $ECHO_C" >&6
16821 else
16822   cat >conftest.$ac_ext <<_ACEOF
16823 /* confdefs.h.  */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h.  */
16828 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16830 #define shl_load innocuous_shl_load
16831
16832 /* System header to define __stub macros and hopefully few prototypes,
16833     which can conflict with char shl_load (); below.
16834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16835     <limits.h> exists even on freestanding compilers.  */
16836
16837 #ifdef __STDC__
16838 # include <limits.h>
16839 #else
16840 # include <assert.h>
16841 #endif
16842
16843 #undef shl_load
16844
16845 /* Override any GCC internal prototype to avoid an error.
16846    Use char because int might match the return type of a GCC
16847    builtin and then its argument prototype would still apply.  */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char shl_load ();
16852 /* The GNU C library defines this for functions which it implements
16853     to always fail with ENOSYS.  Some functions are actually named
16854     something starting with __ and the normal name is an alias.  */
16855 #if defined __stub_shl_load || defined __stub___shl_load
16856 choke me
16857 #endif
16858
16859 int
16860 main ()
16861 {
16862 return shl_load ();
16863   ;
16864   return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext conftest$ac_exeext
16868 if { (ac_try="$ac_link"
16869 case "(($ac_try" in
16870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16871   *) ac_try_echo=$ac_try;;
16872 esac
16873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16874   (eval "$ac_link") 2>conftest.er1
16875   ac_status=$?
16876   grep -v '^ *+' conftest.er1 >conftest.err
16877   rm -f conftest.er1
16878   cat conftest.err >&5
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); } && {
16881          test -z "$ac_c_werror_flag" ||
16882          test ! -s conftest.err
16883        } && test -s conftest$ac_exeext &&
16884        $as_test_x conftest$ac_exeext; then
16885   ac_cv_func_shl_load=yes
16886 else
16887   echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16889
16890         ac_cv_func_shl_load=no
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16894       conftest$ac_exeext conftest.$ac_ext
16895 fi
16896 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16897 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16898 if test $ac_cv_func_shl_load = yes; then
16899   lt_cv_dlopen="shl_load"
16900 else
16901   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16902 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16903 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   ac_check_lib_save_LIBS=$LIBS
16907 LIBS="-ldld  $LIBS"
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 /* Override any GCC internal prototype to avoid an error.
16916    Use char because int might match the return type of a GCC
16917    builtin and then its argument prototype would still apply.  */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 char shl_load ();
16922 int
16923 main ()
16924 {
16925 return shl_load ();
16926   ;
16927   return 0;
16928 }
16929 _ACEOF
16930 rm -f conftest.$ac_objext conftest$ac_exeext
16931 if { (ac_try="$ac_link"
16932 case "(($ac_try" in
16933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934   *) ac_try_echo=$ac_try;;
16935 esac
16936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937   (eval "$ac_link") 2>conftest.er1
16938   ac_status=$?
16939   grep -v '^ *+' conftest.er1 >conftest.err
16940   rm -f conftest.er1
16941   cat conftest.err >&5
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } && {
16944          test -z "$ac_c_werror_flag" ||
16945          test ! -s conftest.err
16946        } && test -s conftest$ac_exeext &&
16947        $as_test_x conftest$ac_exeext; then
16948   ac_cv_lib_dld_shl_load=yes
16949 else
16950   echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953         ac_cv_lib_dld_shl_load=no
16954 fi
16955
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957       conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16959 fi
16960 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16961 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16962 if test $ac_cv_lib_dld_shl_load = yes; then
16963   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16964 else
16965   { echo "$as_me:$LINENO: checking for dlopen" >&5
16966 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16967 if test "${ac_cv_func_dlopen+set}" = set; then
16968   echo $ECHO_N "(cached) $ECHO_C" >&6
16969 else
16970   cat >conftest.$ac_ext <<_ACEOF
16971 /* confdefs.h.  */
16972 _ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h.  */
16976 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16978 #define dlopen innocuous_dlopen
16979
16980 /* System header to define __stub macros and hopefully few prototypes,
16981     which can conflict with char dlopen (); below.
16982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16983     <limits.h> exists even on freestanding compilers.  */
16984
16985 #ifdef __STDC__
16986 # include <limits.h>
16987 #else
16988 # include <assert.h>
16989 #endif
16990
16991 #undef dlopen
16992
16993 /* Override any GCC internal prototype to avoid an error.
16994    Use char because int might match the return type of a GCC
16995    builtin and then its argument prototype would still apply.  */
16996 #ifdef __cplusplus
16997 extern "C"
16998 #endif
16999 char dlopen ();
17000 /* The GNU C library defines this for functions which it implements
17001     to always fail with ENOSYS.  Some functions are actually named
17002     something starting with __ and the normal name is an alias.  */
17003 #if defined __stub_dlopen || defined __stub___dlopen
17004 choke me
17005 #endif
17006
17007 int
17008 main ()
17009 {
17010 return dlopen ();
17011   ;
17012   return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019   *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022   (eval "$ac_link") 2>conftest.er1
17023   ac_status=$?
17024   grep -v '^ *+' conftest.er1 >conftest.err
17025   rm -f conftest.er1
17026   cat conftest.err >&5
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } && {
17029          test -z "$ac_c_werror_flag" ||
17030          test ! -s conftest.err
17031        } && test -s conftest$ac_exeext &&
17032        $as_test_x conftest$ac_exeext; then
17033   ac_cv_func_dlopen=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         ac_cv_func_dlopen=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17042       conftest$ac_exeext conftest.$ac_ext
17043 fi
17044 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17045 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17046 if test $ac_cv_func_dlopen = yes; then
17047   lt_cv_dlopen="dlopen"
17048 else
17049   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17050 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17051 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-ldl  $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062
17063 /* Override any GCC internal prototype to avoid an error.
17064    Use char because int might match the return type of a GCC
17065    builtin and then its argument prototype would still apply.  */
17066 #ifdef __cplusplus
17067 extern "C"
17068 #endif
17069 char dlopen ();
17070 int
17071 main ()
17072 {
17073 return dlopen ();
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (ac_try="$ac_link"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085   (eval "$ac_link") 2>conftest.er1
17086   ac_status=$?
17087   grep -v '^ *+' conftest.er1 >conftest.err
17088   rm -f conftest.er1
17089   cat conftest.err >&5
17090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091   (exit $ac_status); } && {
17092          test -z "$ac_c_werror_flag" ||
17093          test ! -s conftest.err
17094        } && test -s conftest$ac_exeext &&
17095        $as_test_x conftest$ac_exeext; then
17096   ac_cv_lib_dl_dlopen=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_cv_lib_dl_dlopen=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17105       conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17112 else
17113   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17114 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17115 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17116   echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118   ac_check_lib_save_LIBS=$LIBS
17119 LIBS="-lsvld  $LIBS"
17120 cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h.  */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h.  */
17126
17127 /* Override any GCC internal prototype to avoid an error.
17128    Use char because int might match the return type of a GCC
17129    builtin and then its argument prototype would still apply.  */
17130 #ifdef __cplusplus
17131 extern "C"
17132 #endif
17133 char dlopen ();
17134 int
17135 main ()
17136 {
17137 return dlopen ();
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (ac_try="$ac_link"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_link") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && {
17156          test -z "$ac_c_werror_flag" ||
17157          test ! -s conftest.err
17158        } && test -s conftest$ac_exeext &&
17159        $as_test_x conftest$ac_exeext; then
17160   ac_cv_lib_svld_dlopen=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165         ac_cv_lib_svld_dlopen=no
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17169       conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17171 fi
17172 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17173 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17174 if test $ac_cv_lib_svld_dlopen = yes; then
17175   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17176 else
17177   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17178 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17179 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17180   echo $ECHO_N "(cached) $ECHO_C" >&6
17181 else
17182   ac_check_lib_save_LIBS=$LIBS
17183 LIBS="-ldld  $LIBS"
17184 cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190
17191 /* Override any GCC internal prototype to avoid an error.
17192    Use char because int might match the return type of a GCC
17193    builtin and then its argument prototype would still apply.  */
17194 #ifdef __cplusplus
17195 extern "C"
17196 #endif
17197 char dld_link ();
17198 int
17199 main ()
17200 {
17201 return dld_link ();
17202   ;
17203   return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext conftest$ac_exeext
17207 if { (ac_try="$ac_link"
17208 case "(($ac_try" in
17209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17210   *) ac_try_echo=$ac_try;;
17211 esac
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213   (eval "$ac_link") 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && {
17220          test -z "$ac_c_werror_flag" ||
17221          test ! -s conftest.err
17222        } && test -s conftest$ac_exeext &&
17223        $as_test_x conftest$ac_exeext; then
17224   ac_cv_lib_dld_dld_link=yes
17225 else
17226   echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17228
17229         ac_cv_lib_dld_dld_link=no
17230 fi
17231
17232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17233       conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17235 fi
17236 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17237 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17238 if test $ac_cv_lib_dld_dld_link = yes; then
17239   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17240 fi
17241
17242
17243 fi
17244
17245
17246 fi
17247
17248
17249 fi
17250
17251
17252 fi
17253
17254
17255 fi
17256
17257     ;;
17258   esac
17259
17260   if test "x$lt_cv_dlopen" != xno; then
17261     enable_dlopen=yes
17262   else
17263     enable_dlopen=no
17264   fi
17265
17266   case $lt_cv_dlopen in
17267   dlopen)
17268     save_CPPFLAGS="$CPPFLAGS"
17269     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17270
17271     save_LDFLAGS="$LDFLAGS"
17272     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17273
17274     save_LIBS="$LIBS"
17275     LIBS="$lt_cv_dlopen_libs $LIBS"
17276
17277     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17278 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17279 if test "${lt_cv_dlopen_self+set}" = set; then
17280   echo $ECHO_N "(cached) $ECHO_C" >&6
17281 else
17282           if test "$cross_compiling" = yes; then :
17283   lt_cv_dlopen_self=cross
17284 else
17285   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17286   lt_status=$lt_dlunknown
17287   cat > conftest.$ac_ext <<EOF
17288 #line 17288 "configure"
17289 #include "confdefs.h"
17290
17291 #if HAVE_DLFCN_H
17292 #include <dlfcn.h>
17293 #endif
17294
17295 #include <stdio.h>
17296
17297 #ifdef RTLD_GLOBAL
17298 #  define LT_DLGLOBAL           RTLD_GLOBAL
17299 #else
17300 #  ifdef DL_GLOBAL
17301 #    define LT_DLGLOBAL         DL_GLOBAL
17302 #  else
17303 #    define LT_DLGLOBAL         0
17304 #  endif
17305 #endif
17306
17307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17308    find out it does not work in some platform. */
17309 #ifndef LT_DLLAZY_OR_NOW
17310 #  ifdef RTLD_LAZY
17311 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17312 #  else
17313 #    ifdef DL_LAZY
17314 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17315 #    else
17316 #      ifdef RTLD_NOW
17317 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17318 #      else
17319 #        ifdef DL_NOW
17320 #          define LT_DLLAZY_OR_NOW      DL_NOW
17321 #        else
17322 #          define LT_DLLAZY_OR_NOW      0
17323 #        endif
17324 #      endif
17325 #    endif
17326 #  endif
17327 #endif
17328
17329 #ifdef __cplusplus
17330 extern "C" void exit (int);
17331 #endif
17332
17333 void fnord() { int i=42;}
17334 int main ()
17335 {
17336   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17337   int status = $lt_dlunknown;
17338
17339   if (self)
17340     {
17341       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17342       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17343       /* dlclose (self); */
17344     }
17345   else
17346     puts (dlerror ());
17347
17348     exit (status);
17349 }
17350 EOF
17351   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17352   (eval $ac_link) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17356     (./conftest; exit; ) >&5 2>/dev/null
17357     lt_status=$?
17358     case x$lt_status in
17359       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17360       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17361       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17362     esac
17363   else :
17364     # compilation failed
17365     lt_cv_dlopen_self=no
17366   fi
17367 fi
17368 rm -fr conftest*
17369
17370
17371 fi
17372 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17373 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17374
17375     if test "x$lt_cv_dlopen_self" = xyes; then
17376       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17377       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17378 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17379 if test "${lt_cv_dlopen_self_static+set}" = set; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382           if test "$cross_compiling" = yes; then :
17383   lt_cv_dlopen_self_static=cross
17384 else
17385   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17386   lt_status=$lt_dlunknown
17387   cat > conftest.$ac_ext <<EOF
17388 #line 17388 "configure"
17389 #include "confdefs.h"
17390
17391 #if HAVE_DLFCN_H
17392 #include <dlfcn.h>
17393 #endif
17394
17395 #include <stdio.h>
17396
17397 #ifdef RTLD_GLOBAL
17398 #  define LT_DLGLOBAL           RTLD_GLOBAL
17399 #else
17400 #  ifdef DL_GLOBAL
17401 #    define LT_DLGLOBAL         DL_GLOBAL
17402 #  else
17403 #    define LT_DLGLOBAL         0
17404 #  endif
17405 #endif
17406
17407 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17408    find out it does not work in some platform. */
17409 #ifndef LT_DLLAZY_OR_NOW
17410 #  ifdef RTLD_LAZY
17411 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17412 #  else
17413 #    ifdef DL_LAZY
17414 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17415 #    else
17416 #      ifdef RTLD_NOW
17417 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17418 #      else
17419 #        ifdef DL_NOW
17420 #          define LT_DLLAZY_OR_NOW      DL_NOW
17421 #        else
17422 #          define LT_DLLAZY_OR_NOW      0
17423 #        endif
17424 #      endif
17425 #    endif
17426 #  endif
17427 #endif
17428
17429 #ifdef __cplusplus
17430 extern "C" void exit (int);
17431 #endif
17432
17433 void fnord() { int i=42;}
17434 int main ()
17435 {
17436   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17437   int status = $lt_dlunknown;
17438
17439   if (self)
17440     {
17441       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17442       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17443       /* dlclose (self); */
17444     }
17445   else
17446     puts (dlerror ());
17447
17448     exit (status);
17449 }
17450 EOF
17451   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17452   (eval $ac_link) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17456     (./conftest; exit; ) >&5 2>/dev/null
17457     lt_status=$?
17458     case x$lt_status in
17459       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17460       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17461       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17462     esac
17463   else :
17464     # compilation failed
17465     lt_cv_dlopen_self_static=no
17466   fi
17467 fi
17468 rm -fr conftest*
17469
17470
17471 fi
17472 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17473 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17474     fi
17475
17476     CPPFLAGS="$save_CPPFLAGS"
17477     LDFLAGS="$save_LDFLAGS"
17478     LIBS="$save_LIBS"
17479     ;;
17480   esac
17481
17482   case $lt_cv_dlopen_self in
17483   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17484   *) enable_dlopen_self=unknown ;;
17485   esac
17486
17487   case $lt_cv_dlopen_self_static in
17488   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17489   *) enable_dlopen_self_static=unknown ;;
17490   esac
17491 fi
17492
17493
17494 # Report which library types will actually be built
17495 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17496 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17497 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17498 echo "${ECHO_T}$can_build_shared" >&6; }
17499
17500 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17501 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17502 test "$can_build_shared" = "no" && enable_shared=no
17503
17504 # On AIX, shared libraries and static libraries use the same namespace, and
17505 # are all built from PIC.
17506 case $host_os in
17507 aix3*)
17508   test "$enable_shared" = yes && enable_static=no
17509   if test -n "$RANLIB"; then
17510     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17511     postinstall_cmds='$RANLIB $lib'
17512   fi
17513   ;;
17514
17515 aix4* | aix5*)
17516   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17517     test "$enable_shared" = yes && enable_static=no
17518   fi
17519     ;;
17520 esac
17521 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17522 echo "${ECHO_T}$enable_shared" >&6; }
17523
17524 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17525 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17526 # Make sure either enable_shared or enable_static is yes.
17527 test "$enable_shared" = yes || enable_static=yes
17528 { echo "$as_me:$LINENO: result: $enable_static" >&5
17529 echo "${ECHO_T}$enable_static" >&6; }
17530
17531 # The else clause should only fire when bootstrapping the
17532 # libtool distribution, otherwise you forgot to ship ltmain.sh
17533 # with your package, and you will get complaints that there are
17534 # no rules to generate ltmain.sh.
17535 if test -f "$ltmain"; then
17536   # See if we are running on zsh, and set the options which allow our commands through
17537   # without removal of \ escapes.
17538   if test -n "${ZSH_VERSION+set}" ; then
17539     setopt NO_GLOB_SUBST
17540   fi
17541   # Now quote all the things that may contain metacharacters while being
17542   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17543   # variables and quote the copies for generation of the libtool script.
17544   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17545     SED SHELL STRIP \
17546     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17547     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17548     deplibs_check_method reload_flag reload_cmds need_locks \
17549     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17550     lt_cv_sys_global_symbol_to_c_name_address \
17551     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17552     old_postinstall_cmds old_postuninstall_cmds \
17553     compiler \
17554     CC \
17555     LD \
17556     lt_prog_compiler_wl \
17557     lt_prog_compiler_pic \
17558     lt_prog_compiler_static \
17559     lt_prog_compiler_no_builtin_flag \
17560     export_dynamic_flag_spec \
17561     thread_safe_flag_spec \
17562     whole_archive_flag_spec \
17563     enable_shared_with_static_runtimes \
17564     old_archive_cmds \
17565     old_archive_from_new_cmds \
17566     predep_objects \
17567     postdep_objects \
17568     predeps \
17569     postdeps \
17570     compiler_lib_search_path \
17571     archive_cmds \
17572     archive_expsym_cmds \
17573     postinstall_cmds \
17574     postuninstall_cmds \
17575     old_archive_from_expsyms_cmds \
17576     allow_undefined_flag \
17577     no_undefined_flag \
17578     export_symbols_cmds \
17579     hardcode_libdir_flag_spec \
17580     hardcode_libdir_flag_spec_ld \
17581     hardcode_libdir_separator \
17582     hardcode_automatic \
17583     module_cmds \
17584     module_expsym_cmds \
17585     lt_cv_prog_compiler_c_o \
17586     exclude_expsyms \
17587     include_expsyms; do
17588
17589     case $var in
17590     old_archive_cmds | \
17591     old_archive_from_new_cmds | \
17592     archive_cmds | \
17593     archive_expsym_cmds | \
17594     module_cmds | \
17595     module_expsym_cmds | \
17596     old_archive_from_expsyms_cmds | \
17597     export_symbols_cmds | \
17598     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17599     postinstall_cmds | postuninstall_cmds | \
17600     old_postinstall_cmds | old_postuninstall_cmds | \
17601     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17602       # Double-quote double-evaled strings.
17603       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17604       ;;
17605     *)
17606       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17607       ;;
17608     esac
17609   done
17610
17611   case $lt_echo in
17612   *'\$0 --fallback-echo"')
17613     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17614     ;;
17615   esac
17616
17617 cfgfile="${ofile}T"
17618   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17619   $rm -f "$cfgfile"
17620   { echo "$as_me:$LINENO: creating $ofile" >&5
17621 echo "$as_me: creating $ofile" >&6;}
17622
17623   cat <<__EOF__ >> "$cfgfile"
17624 #! $SHELL
17625
17626 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17627 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17628 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17629 #
17630 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17631 # Free Software Foundation, Inc.
17632 #
17633 # This file is part of GNU Libtool:
17634 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17635 #
17636 # This program is free software; you can redistribute it and/or modify
17637 # it under the terms of the GNU General Public License as published by
17638 # the Free Software Foundation; either version 2 of the License, or
17639 # (at your option) any later version.
17640 #
17641 # This program is distributed in the hope that it will be useful, but
17642 # WITHOUT ANY WARRANTY; without even the implied warranty of
17643 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17644 # General Public License for more details.
17645 #
17646 # You should have received a copy of the GNU General Public License
17647 # along with this program; if not, write to the Free Software
17648 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17649 #
17650 # As a special exception to the GNU General Public License, if you
17651 # distribute this file as part of a program that contains a
17652 # configuration script generated by Autoconf, you may include it under
17653 # the same distribution terms that you use for the rest of that program.
17654
17655 # A sed program that does not truncate output.
17656 SED=$lt_SED
17657
17658 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17659 Xsed="$SED -e 1s/^X//"
17660
17661 # The HP-UX ksh and POSIX shell print the target directory to stdout
17662 # if CDPATH is set.
17663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17664
17665 # The names of the tagged configurations supported by this script.
17666 available_tags=
17667
17668 # ### BEGIN LIBTOOL CONFIG
17669
17670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17671
17672 # Shell to use when invoking shell scripts.
17673 SHELL=$lt_SHELL
17674
17675 # Whether or not to build shared libraries.
17676 build_libtool_libs=$enable_shared
17677
17678 # Whether or not to build static libraries.
17679 build_old_libs=$enable_static
17680
17681 # Whether or not to add -lc for building shared libraries.
17682 build_libtool_need_lc=$archive_cmds_need_lc
17683
17684 # Whether or not to disallow shared libs when runtime libs are static
17685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17686
17687 # Whether or not to optimize for fast installation.
17688 fast_install=$enable_fast_install
17689
17690 # The host system.
17691 host_alias=$host_alias
17692 host=$host
17693 host_os=$host_os
17694
17695 # The build system.
17696 build_alias=$build_alias
17697 build=$build
17698 build_os=$build_os
17699
17700 # An echo program that does not interpret backslashes.
17701 echo=$lt_echo
17702
17703 # The archiver.
17704 AR=$lt_AR
17705 AR_FLAGS=$lt_AR_FLAGS
17706
17707 # A C compiler.
17708 LTCC=$lt_LTCC
17709
17710 # LTCC compiler flags.
17711 LTCFLAGS=$lt_LTCFLAGS
17712
17713 # A language-specific compiler.
17714 CC=$lt_compiler
17715
17716 # Is the compiler the GNU C compiler?
17717 with_gcc=$GCC
17718
17719 # An ERE matcher.
17720 EGREP=$lt_EGREP
17721
17722 # The linker used to build libraries.
17723 LD=$lt_LD
17724
17725 # Whether we need hard or soft links.
17726 LN_S=$lt_LN_S
17727
17728 # A BSD-compatible nm program.
17729 NM=$lt_NM
17730
17731 # A symbol stripping program
17732 STRIP=$lt_STRIP
17733
17734 # Used to examine libraries when file_magic_cmd begins "file"
17735 MAGIC_CMD=$MAGIC_CMD
17736
17737 # Used on cygwin: DLL creation program.
17738 DLLTOOL="$DLLTOOL"
17739
17740 # Used on cygwin: object dumper.
17741 OBJDUMP="$OBJDUMP"
17742
17743 # Used on cygwin: assembler.
17744 AS="$AS"
17745
17746 # The name of the directory that contains temporary libtool files.
17747 objdir=$objdir
17748
17749 # How to create reloadable object files.
17750 reload_flag=$lt_reload_flag
17751 reload_cmds=$lt_reload_cmds
17752
17753 # How to pass a linker flag through the compiler.
17754 wl=$lt_lt_prog_compiler_wl
17755
17756 # Object file suffix (normally "o").
17757 objext="$ac_objext"
17758
17759 # Old archive suffix (normally "a").
17760 libext="$libext"
17761
17762 # Shared library suffix (normally ".so").
17763 shrext_cmds='$shrext_cmds'
17764
17765 # Executable file suffix (normally "").
17766 exeext="$exeext"
17767
17768 # Additional compiler flags for building library objects.
17769 pic_flag=$lt_lt_prog_compiler_pic
17770 pic_mode=$pic_mode
17771
17772 # What is the maximum length of a command?
17773 max_cmd_len=$lt_cv_sys_max_cmd_len
17774
17775 # Does compiler simultaneously support -c and -o options?
17776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17777
17778 # Must we lock files when doing compilation?
17779 need_locks=$lt_need_locks
17780
17781 # Do we need the lib prefix for modules?
17782 need_lib_prefix=$need_lib_prefix
17783
17784 # Do we need a version for libraries?
17785 need_version=$need_version
17786
17787 # Whether dlopen is supported.
17788 dlopen_support=$enable_dlopen
17789
17790 # Whether dlopen of programs is supported.
17791 dlopen_self=$enable_dlopen_self
17792
17793 # Whether dlopen of statically linked programs is supported.
17794 dlopen_self_static=$enable_dlopen_self_static
17795
17796 # Compiler flag to prevent dynamic linking.
17797 link_static_flag=$lt_lt_prog_compiler_static
17798
17799 # Compiler flag to turn off builtin functions.
17800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17801
17802 # Compiler flag to allow reflexive dlopens.
17803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17804
17805 # Compiler flag to generate shared objects directly from archives.
17806 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17807
17808 # Compiler flag to generate thread-safe objects.
17809 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17810
17811 # Library versioning type.
17812 version_type=$version_type
17813
17814 # Format of library name prefix.
17815 libname_spec=$lt_libname_spec
17816
17817 # List of archive names.  First name is the real one, the rest are links.
17818 # The last name is the one that the linker finds with -lNAME.
17819 library_names_spec=$lt_library_names_spec
17820
17821 # The coded name of the library, if different from the real name.
17822 soname_spec=$lt_soname_spec
17823
17824 # Commands used to build and install an old-style archive.
17825 RANLIB=$lt_RANLIB
17826 old_archive_cmds=$lt_old_archive_cmds
17827 old_postinstall_cmds=$lt_old_postinstall_cmds
17828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17829
17830 # Create an old-style archive from a shared archive.
17831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17832
17833 # Create a temporary old-style archive to link instead of a shared archive.
17834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17835
17836 # Commands used to build and install a shared archive.
17837 archive_cmds=$lt_archive_cmds
17838 archive_expsym_cmds=$lt_archive_expsym_cmds
17839 postinstall_cmds=$lt_postinstall_cmds
17840 postuninstall_cmds=$lt_postuninstall_cmds
17841
17842 # Commands used to build a loadable module (assumed same as above if empty)
17843 module_cmds=$lt_module_cmds
17844 module_expsym_cmds=$lt_module_expsym_cmds
17845
17846 # Commands to strip libraries.
17847 old_striplib=$lt_old_striplib
17848 striplib=$lt_striplib
17849
17850 # Dependencies to place before the objects being linked to create a
17851 # shared library.
17852 predep_objects=$lt_predep_objects
17853
17854 # Dependencies to place after the objects being linked to create a
17855 # shared library.
17856 postdep_objects=$lt_postdep_objects
17857
17858 # Dependencies to place before the objects being linked to create a
17859 # shared library.
17860 predeps=$lt_predeps
17861
17862 # Dependencies to place after the objects being linked to create a
17863 # shared library.
17864 postdeps=$lt_postdeps
17865
17866 # The library search path used internally by the compiler when linking
17867 # a shared library.
17868 compiler_lib_search_path=$lt_compiler_lib_search_path
17869
17870 # Method to check whether dependent libraries are shared objects.
17871 deplibs_check_method=$lt_deplibs_check_method
17872
17873 # Command to use when deplibs_check_method == file_magic.
17874 file_magic_cmd=$lt_file_magic_cmd
17875
17876 # Flag that allows shared libraries with undefined symbols to be built.
17877 allow_undefined_flag=$lt_allow_undefined_flag
17878
17879 # Flag that forces no undefined symbols.
17880 no_undefined_flag=$lt_no_undefined_flag
17881
17882 # Commands used to finish a libtool library installation in a directory.
17883 finish_cmds=$lt_finish_cmds
17884
17885 # Same as above, but a single script fragment to be evaled but not shown.
17886 finish_eval=$lt_finish_eval
17887
17888 # Take the output of nm and produce a listing of raw symbols and C names.
17889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17890
17891 # Transform the output of nm in a proper C declaration
17892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17893
17894 # Transform the output of nm in a C name address pair
17895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17896
17897 # This is the shared library runtime path variable.
17898 runpath_var=$runpath_var
17899
17900 # This is the shared library path variable.
17901 shlibpath_var=$shlibpath_var
17902
17903 # Is shlibpath searched before the hard-coded library search path?
17904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17905
17906 # How to hardcode a shared library path into an executable.
17907 hardcode_action=$hardcode_action
17908
17909 # Whether we should hardcode library paths into libraries.
17910 hardcode_into_libs=$hardcode_into_libs
17911
17912 # Flag to hardcode \$libdir into a binary during linking.
17913 # This must work even if \$libdir does not exist.
17914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17915
17916 # If ld is used when linking, flag to hardcode \$libdir into
17917 # a binary during linking. This must work even if \$libdir does
17918 # not exist.
17919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17920
17921 # Whether we need a single -rpath flag with a separated argument.
17922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17923
17924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17925 # resulting binary.
17926 hardcode_direct=$hardcode_direct
17927
17928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17929 # resulting binary.
17930 hardcode_minus_L=$hardcode_minus_L
17931
17932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17933 # the resulting binary.
17934 hardcode_shlibpath_var=$hardcode_shlibpath_var
17935
17936 # Set to yes if building a shared library automatically hardcodes DIR into the library
17937 # and all subsequent libraries and executables linked against it.
17938 hardcode_automatic=$hardcode_automatic
17939
17940 # Variables whose values should be saved in libtool wrapper scripts and
17941 # restored at relink time.
17942 variables_saved_for_relink="$variables_saved_for_relink"
17943
17944 # Whether libtool must link a program against all its dependency libraries.
17945 link_all_deplibs=$link_all_deplibs
17946
17947 # Compile-time system search path for libraries
17948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17949
17950 # Run-time system search path for libraries
17951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17952
17953 # Fix the shell variable \$srcfile for the compiler.
17954 fix_srcfile_path="$fix_srcfile_path"
17955
17956 # Set to yes if exported symbols are required.
17957 always_export_symbols=$always_export_symbols
17958
17959 # The commands to list exported symbols.
17960 export_symbols_cmds=$lt_export_symbols_cmds
17961
17962 # The commands to extract the exported symbol list from a shared archive.
17963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17964
17965 # Symbols that should not be listed in the preloaded symbols.
17966 exclude_expsyms=$lt_exclude_expsyms
17967
17968 # Symbols that must always be exported.
17969 include_expsyms=$lt_include_expsyms
17970
17971 # ### END LIBTOOL CONFIG
17972
17973 __EOF__
17974
17975
17976   case $host_os in
17977   aix3*)
17978     cat <<\EOF >> "$cfgfile"
17979
17980 # AIX sometimes has problems with the GCC collect2 program.  For some
17981 # reason, if we set the COLLECT_NAMES environment variable, the problems
17982 # vanish in a puff of smoke.
17983 if test "X${COLLECT_NAMES+set}" != Xset; then
17984   COLLECT_NAMES=
17985   export COLLECT_NAMES
17986 fi
17987 EOF
17988     ;;
17989   esac
17990
17991   # We use sed instead of cat because bash on DJGPP gets confused if
17992   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17993   # text mode, it properly converts lines to CR/LF.  This bash problem
17994   # is reportedly fixed, but why not run on old versions too?
17995   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17996
17997   mv -f "$cfgfile" "$ofile" || \
17998     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17999   chmod +x "$ofile"
18000
18001 else
18002   # If there is no Makefile yet, we rely on a make rule to execute
18003   # `config.status --recheck' to rerun these tests and create the
18004   # libtool script then.
18005   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18006   if test -f "$ltmain_in"; then
18007     test -f Makefile && make "$ltmain"
18008   fi
18009 fi
18010
18011
18012 ac_ext=c
18013 ac_cpp='$CPP $CPPFLAGS'
18014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18017
18018 CC="$lt_save_CC"
18019
18020
18021 # Check whether --with-tags was given.
18022 if test "${with_tags+set}" = set; then
18023   withval=$with_tags; tagnames="$withval"
18024 fi
18025
18026
18027 if test -f "$ltmain" && test -n "$tagnames"; then
18028   if test ! -f "${ofile}"; then
18029     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18030 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18031   fi
18032
18033   if test -z "$LTCC"; then
18034     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18035     if test -z "$LTCC"; then
18036       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18037 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18038     else
18039       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18040 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18041     fi
18042   fi
18043   if test -z "$LTCFLAGS"; then
18044     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18045   fi
18046
18047   # Extract list of available tagged configurations in $ofile.
18048   # Note that this assumes the entire list is on one line.
18049   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18050
18051   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18052   for tagname in $tagnames; do
18053     IFS="$lt_save_ifs"
18054     # Check whether tagname contains only valid characters
18055     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18056     "") ;;
18057     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18058 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18059    { (exit 1); exit 1; }; }
18060         ;;
18061     esac
18062
18063     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18064     then
18065       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18066 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18067    { (exit 1); exit 1; }; }
18068     fi
18069
18070     # Update the list of available tags.
18071     if test -n "$tagname"; then
18072       echo appending configuration tag \"$tagname\" to $ofile
18073
18074       case $tagname in
18075       CXX)
18076         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18077             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18078             (test "X$CXX" != "Xg++"))) ; then
18079           ac_ext=cpp
18080 ac_cpp='$CXXCPP $CPPFLAGS'
18081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18084
18085
18086
18087
18088 archive_cmds_need_lc_CXX=no
18089 allow_undefined_flag_CXX=
18090 always_export_symbols_CXX=no
18091 archive_expsym_cmds_CXX=
18092 export_dynamic_flag_spec_CXX=
18093 hardcode_direct_CXX=no
18094 hardcode_libdir_flag_spec_CXX=
18095 hardcode_libdir_flag_spec_ld_CXX=
18096 hardcode_libdir_separator_CXX=
18097 hardcode_minus_L_CXX=no
18098 hardcode_shlibpath_var_CXX=unsupported
18099 hardcode_automatic_CXX=no
18100 module_cmds_CXX=
18101 module_expsym_cmds_CXX=
18102 link_all_deplibs_CXX=unknown
18103 old_archive_cmds_CXX=$old_archive_cmds
18104 no_undefined_flag_CXX=
18105 whole_archive_flag_spec_CXX=
18106 enable_shared_with_static_runtimes_CXX=no
18107
18108 # Dependencies to place before and after the object being linked:
18109 predep_objects_CXX=
18110 postdep_objects_CXX=
18111 predeps_CXX=
18112 postdeps_CXX=
18113 compiler_lib_search_path_CXX=
18114
18115 # Source file extension for C++ test sources.
18116 ac_ext=cpp
18117
18118 # Object file extension for compiled C++ test sources.
18119 objext=o
18120 objext_CXX=$objext
18121
18122 # Code to be used in simple compile tests
18123 lt_simple_compile_test_code="int some_variable = 0;\n"
18124
18125 # Code to be used in simple link tests
18126 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18127
18128 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18129
18130 # If no C compiler was specified, use CC.
18131 LTCC=${LTCC-"$CC"}
18132
18133 # If no C compiler flags were specified, use CFLAGS.
18134 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18135
18136 # Allow CC to be a program name with arguments.
18137 compiler=$CC
18138
18139
18140 # save warnings/boilerplate of simple test code
18141 ac_outfile=conftest.$ac_objext
18142 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18144 _lt_compiler_boilerplate=`cat conftest.err`
18145 $rm conftest*
18146
18147 ac_outfile=conftest.$ac_objext
18148 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18150 _lt_linker_boilerplate=`cat conftest.err`
18151 $rm conftest*
18152
18153
18154 # Allow CC to be a program name with arguments.
18155 lt_save_CC=$CC
18156 lt_save_LD=$LD
18157 lt_save_GCC=$GCC
18158 GCC=$GXX
18159 lt_save_with_gnu_ld=$with_gnu_ld
18160 lt_save_path_LD=$lt_cv_path_LD
18161 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18162   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18163 else
18164   $as_unset lt_cv_prog_gnu_ld
18165 fi
18166 if test -n "${lt_cv_path_LDCXX+set}"; then
18167   lt_cv_path_LD=$lt_cv_path_LDCXX
18168 else
18169   $as_unset lt_cv_path_LD
18170 fi
18171 test -z "${LDCXX+set}" || LD=$LDCXX
18172 CC=${CXX-"c++"}
18173 compiler=$CC
18174 compiler_CXX=$CC
18175 for cc_temp in $compiler""; do
18176   case $cc_temp in
18177     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18178     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18179     \-*) ;;
18180     *) break;;
18181   esac
18182 done
18183 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18184
18185
18186 # We don't want -fno-exception wen compiling C++ code, so set the
18187 # no_builtin_flag separately
18188 if test "$GXX" = yes; then
18189   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18190 else
18191   lt_prog_compiler_no_builtin_flag_CXX=
18192 fi
18193
18194 if test "$GXX" = yes; then
18195   # Set up default GNU C++ configuration
18196
18197
18198 # Check whether --with-gnu-ld was given.
18199 if test "${with_gnu_ld+set}" = set; then
18200   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18201 else
18202   with_gnu_ld=no
18203 fi
18204
18205 ac_prog=ld
18206 if test "$GCC" = yes; then
18207   # Check if gcc -print-prog-name=ld gives a path.
18208   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18210   case $host in
18211   *-*-mingw*)
18212     # gcc leaves a trailing carriage return which upsets mingw
18213     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18214   *)
18215     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18216   esac
18217   case $ac_prog in
18218     # Accept absolute paths.
18219     [\\/]* | ?:[\\/]*)
18220       re_direlt='/[^/][^/]*/\.\./'
18221       # Canonicalize the pathname of ld
18222       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18223       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18224         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18225       done
18226       test -z "$LD" && LD="$ac_prog"
18227       ;;
18228   "")
18229     # If it fails, then pretend we aren't using GCC.
18230     ac_prog=ld
18231     ;;
18232   *)
18233     # If it is relative, then search for the first ld in PATH.
18234     with_gnu_ld=unknown
18235     ;;
18236   esac
18237 elif test "$with_gnu_ld" = yes; then
18238   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18240 else
18241   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18243 fi
18244 if test "${lt_cv_path_LD+set}" = set; then
18245   echo $ECHO_N "(cached) $ECHO_C" >&6
18246 else
18247   if test -z "$LD"; then
18248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18249   for ac_dir in $PATH; do
18250     IFS="$lt_save_ifs"
18251     test -z "$ac_dir" && ac_dir=.
18252     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18253       lt_cv_path_LD="$ac_dir/$ac_prog"
18254       # Check to see if the program is GNU ld.  I'd rather use --version,
18255       # but apparently some variants of GNU ld only accept -v.
18256       # Break only if it was the GNU/non-GNU ld that we prefer.
18257       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18258       *GNU* | *'with BFD'*)
18259         test "$with_gnu_ld" != no && break
18260         ;;
18261       *)
18262         test "$with_gnu_ld" != yes && break
18263         ;;
18264       esac
18265     fi
18266   done
18267   IFS="$lt_save_ifs"
18268 else
18269   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18270 fi
18271 fi
18272
18273 LD="$lt_cv_path_LD"
18274 if test -n "$LD"; then
18275   { echo "$as_me:$LINENO: result: $LD" >&5
18276 echo "${ECHO_T}$LD" >&6; }
18277 else
18278   { echo "$as_me:$LINENO: result: no" >&5
18279 echo "${ECHO_T}no" >&6; }
18280 fi
18281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18283    { (exit 1); exit 1; }; }
18284 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18287   echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18290 case `$LD -v 2>&1 </dev/null` in
18291 *GNU* | *'with BFD'*)
18292   lt_cv_prog_gnu_ld=yes
18293   ;;
18294 *)
18295   lt_cv_prog_gnu_ld=no
18296   ;;
18297 esac
18298 fi
18299 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18301 with_gnu_ld=$lt_cv_prog_gnu_ld
18302
18303
18304
18305   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18306   # archiving commands below assume that GNU ld is being used.
18307   if test "$with_gnu_ld" = yes; then
18308     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18309     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'
18310
18311     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18312     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18313
18314     # If archive_cmds runs LD, not CC, wlarc should be empty
18315     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18316     #     investigate it a little bit more. (MM)
18317     wlarc='${wl}'
18318
18319     # ancient GNU ld didn't support --whole-archive et. al.
18320     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18321         grep 'no-whole-archive' > /dev/null; then
18322       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18323     else
18324       whole_archive_flag_spec_CXX=
18325     fi
18326   else
18327     with_gnu_ld=no
18328     wlarc=
18329
18330     # A generic and very simple default shared library creation
18331     # command for GNU C++ for the case where it uses the native
18332     # linker, instead of GNU ld.  If possible, this setting should
18333     # overridden to take advantage of the native linker features on
18334     # the platform it is being used on.
18335     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18336   fi
18337
18338   # Commands to make compiler produce verbose output that lists
18339   # what "hidden" libraries, object files and flags are used when
18340   # linking a shared library.
18341   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18342
18343 else
18344   GXX=no
18345   with_gnu_ld=no
18346   wlarc=
18347 fi
18348
18349 # PORTME: fill in a description of your system's C++ link characteristics
18350 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18352 ld_shlibs_CXX=yes
18353 case $host_os in
18354   aix3*)
18355     # FIXME: insert proper C++ library support
18356     ld_shlibs_CXX=no
18357     ;;
18358   aix4* | aix5*)
18359     if test "$host_cpu" = ia64; then
18360       # On IA64, the linker does run time linking by default, so we don't
18361       # have to do anything special.
18362       aix_use_runtimelinking=no
18363       exp_sym_flag='-Bexport'
18364       no_entry_flag=""
18365     else
18366       aix_use_runtimelinking=no
18367
18368       # Test if we are trying to use run time linking or normal
18369       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18370       # need to do runtime linking.
18371       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18372         for ld_flag in $LDFLAGS; do
18373           case $ld_flag in
18374           *-brtl*)
18375             aix_use_runtimelinking=yes
18376             break
18377             ;;
18378           esac
18379         done
18380         ;;
18381       esac
18382
18383       exp_sym_flag='-bexport'
18384       no_entry_flag='-bnoentry'
18385     fi
18386
18387     # When large executables or shared objects are built, AIX ld can
18388     # have problems creating the table of contents.  If linking a library
18389     # or program results in "error TOC overflow" add -mminimal-toc to
18390     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18391     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18392
18393     archive_cmds_CXX=''
18394     hardcode_direct_CXX=yes
18395     hardcode_libdir_separator_CXX=':'
18396     link_all_deplibs_CXX=yes
18397
18398     if test "$GXX" = yes; then
18399       case $host_os in aix4.[012]|aix4.[012].*)
18400       # We only want to do this on AIX 4.2 and lower, the check
18401       # below for broken collect2 doesn't work under 4.3+
18402         collect2name=`${CC} -print-prog-name=collect2`
18403         if test -f "$collect2name" && \
18404            strings "$collect2name" | grep resolve_lib_name >/dev/null
18405         then
18406           # We have reworked collect2
18407           hardcode_direct_CXX=yes
18408         else
18409           # We have old collect2
18410           hardcode_direct_CXX=unsupported
18411           # It fails to find uninstalled libraries when the uninstalled
18412           # path is not listed in the libpath.  Setting hardcode_minus_L
18413           # to unsupported forces relinking
18414           hardcode_minus_L_CXX=yes
18415           hardcode_libdir_flag_spec_CXX='-L$libdir'
18416           hardcode_libdir_separator_CXX=
18417         fi
18418         ;;
18419       esac
18420       shared_flag='-shared'
18421       if test "$aix_use_runtimelinking" = yes; then
18422         shared_flag="$shared_flag "'${wl}-G'
18423       fi
18424     else
18425       # not using gcc
18426       if test "$host_cpu" = ia64; then
18427         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18428         # chokes on -Wl,-G. The following line is correct:
18429         shared_flag='-G'
18430       else
18431         if test "$aix_use_runtimelinking" = yes; then
18432           shared_flag='${wl}-G'
18433         else
18434           shared_flag='${wl}-bM:SRE'
18435         fi
18436       fi
18437     fi
18438
18439     # It seems that -bexpall does not export symbols beginning with
18440     # underscore (_), so it is better to generate a list of symbols to export.
18441     always_export_symbols_CXX=yes
18442     if test "$aix_use_runtimelinking" = yes; then
18443       # Warning - without using the other runtime loading flags (-brtl),
18444       # -berok will link without error, but may produce a broken library.
18445       allow_undefined_flag_CXX='-berok'
18446       # Determine the default libpath from the value encoded in an empty executable.
18447       cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453
18454 int
18455 main ()
18456 {
18457
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_link") 2>conftest.er1
18470   ac_status=$?
18471   grep -v '^ *+' conftest.er1 >conftest.err
18472   rm -f conftest.er1
18473   cat conftest.err >&5
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); } && {
18476          test -z "$ac_cxx_werror_flag" ||
18477          test ! -s conftest.err
18478        } && test -s conftest$ac_exeext &&
18479        $as_test_x conftest$ac_exeext; then
18480
18481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18482 }'`
18483 # Check for a 64-bit object if we didn't find anything.
18484 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18485 }'`; fi
18486 else
18487   echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490
18491 fi
18492
18493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18494       conftest$ac_exeext conftest.$ac_ext
18495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18496
18497       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18498
18499       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"
18500      else
18501       if test "$host_cpu" = ia64; then
18502         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18503         allow_undefined_flag_CXX="-z nodefs"
18504         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"
18505       else
18506         # Determine the default libpath from the value encoded in an empty executable.
18507         cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513
18514 int
18515 main ()
18516 {
18517
18518   ;
18519   return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext conftest$ac_exeext
18523 if { (ac_try="$ac_link"
18524 case "(($ac_try" in
18525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526   *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529   (eval "$ac_link") 2>conftest.er1
18530   ac_status=$?
18531   grep -v '^ *+' conftest.er1 >conftest.err
18532   rm -f conftest.er1
18533   cat conftest.err >&5
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); } && {
18536          test -z "$ac_cxx_werror_flag" ||
18537          test ! -s conftest.err
18538        } && test -s conftest$ac_exeext &&
18539        $as_test_x conftest$ac_exeext; then
18540
18541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18542 }'`
18543 # Check for a 64-bit object if we didn't find anything.
18544 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18545 }'`; fi
18546 else
18547   echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550
18551 fi
18552
18553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18554       conftest$ac_exeext conftest.$ac_ext
18555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18556
18557         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18558         # Warning - without using the other run time loading flags,
18559         # -berok will link without error, but may produce a broken library.
18560         no_undefined_flag_CXX=' ${wl}-bernotok'
18561         allow_undefined_flag_CXX=' ${wl}-berok'
18562         # Exported symbols can be pulled into shared objects from archives
18563         whole_archive_flag_spec_CXX='$convenience'
18564         archive_cmds_need_lc_CXX=yes
18565         # This is similar to how AIX traditionally builds its shared libraries.
18566         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'
18567       fi
18568     fi
18569     ;;
18570
18571   beos*)
18572     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18573       allow_undefined_flag_CXX=unsupported
18574       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18575       # support --undefined.  This deserves some investigation.  FIXME
18576       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18577     else
18578       ld_shlibs_CXX=no
18579     fi
18580     ;;
18581
18582   chorus*)
18583     case $cc_basename in
18584       *)
18585         # FIXME: insert proper C++ library support
18586         ld_shlibs_CXX=no
18587         ;;
18588     esac
18589     ;;
18590
18591   cygwin* | mingw* | pw32*)
18592     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18593     # as there is no search path for DLLs.
18594     hardcode_libdir_flag_spec_CXX='-L$libdir'
18595     allow_undefined_flag_CXX=unsupported
18596     always_export_symbols_CXX=no
18597     enable_shared_with_static_runtimes_CXX=yes
18598
18599     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18600       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'
18601       # If the export-symbols file already is a .def file (1st line
18602       # is EXPORTS), use it as is; otherwise, prepend...
18603       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18604         cp $export_symbols $output_objdir/$soname.def;
18605       else
18606         echo EXPORTS > $output_objdir/$soname.def;
18607         cat $export_symbols >> $output_objdir/$soname.def;
18608       fi~
18609       $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'
18610     else
18611       ld_shlibs_CXX=no
18612     fi
18613   ;;
18614       darwin* | rhapsody*)
18615         case $host_os in
18616         rhapsody* | darwin1.[012])
18617          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18618          ;;
18619        *) # Darwin 1.3 on
18620          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18621            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18622          else
18623            case ${MACOSX_DEPLOYMENT_TARGET} in
18624              10.[012])
18625                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18626                ;;
18627              10.*)
18628                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18629                ;;
18630            esac
18631          fi
18632          ;;
18633         esac
18634       archive_cmds_need_lc_CXX=no
18635       hardcode_direct_CXX=no
18636       hardcode_automatic_CXX=yes
18637       hardcode_shlibpath_var_CXX=unsupported
18638       whole_archive_flag_spec_CXX=''
18639       link_all_deplibs_CXX=yes
18640
18641     if test "$GXX" = yes ; then
18642       lt_int_apple_cc_single_mod=no
18643       output_verbose_link_cmd='echo'
18644       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18645        lt_int_apple_cc_single_mod=yes
18646       fi
18647       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18648        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18649       else
18650           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'
18651         fi
18652         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18653         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18654           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18655             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}'
18656           else
18657             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}'
18658           fi
18659             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}'
18660       else
18661       case $cc_basename in
18662         xlc*)
18663          output_verbose_link_cmd='echo'
18664           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18665           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18666           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18667           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18668           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}'
18669           ;;
18670        *)
18671          ld_shlibs_CXX=no
18672           ;;
18673       esac
18674       fi
18675         ;;
18676
18677   dgux*)
18678     case $cc_basename in
18679       ec++*)
18680         # FIXME: insert proper C++ library support
18681         ld_shlibs_CXX=no
18682         ;;
18683       ghcx*)
18684         # Green Hills C++ Compiler
18685         # FIXME: insert proper C++ library support
18686         ld_shlibs_CXX=no
18687         ;;
18688       *)
18689         # FIXME: insert proper C++ library support
18690         ld_shlibs_CXX=no
18691         ;;
18692     esac
18693     ;;
18694   freebsd[12]*)
18695     # C++ shared libraries reported to be fairly broken before switch to ELF
18696     ld_shlibs_CXX=no
18697     ;;
18698   freebsd-elf*)
18699     archive_cmds_need_lc_CXX=no
18700     ;;
18701   freebsd* | kfreebsd*-gnu | dragonfly*)
18702     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18703     # conventions
18704     ld_shlibs_CXX=yes
18705     ;;
18706   gnu*)
18707     ;;
18708   hpux9*)
18709     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18710     hardcode_libdir_separator_CXX=:
18711     export_dynamic_flag_spec_CXX='${wl}-E'
18712     hardcode_direct_CXX=yes
18713     hardcode_minus_L_CXX=yes # Not in the search PATH,
18714                                 # but as the default
18715                                 # location of the library.
18716
18717     case $cc_basename in
18718     CC*)
18719       # FIXME: insert proper C++ library support
18720       ld_shlibs_CXX=no
18721       ;;
18722     aCC*)
18723       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'
18724       # Commands to make compiler produce verbose output that lists
18725       # what "hidden" libraries, object files and flags are used when
18726       # linking a shared library.
18727       #
18728       # There doesn't appear to be a way to prevent this compiler from
18729       # explicitly linking system object files so we need to strip them
18730       # from the output so that they don't get included in the library
18731       # dependencies.
18732       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'
18733       ;;
18734     *)
18735       if test "$GXX" = yes; then
18736         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'
18737       else
18738         # FIXME: insert proper C++ library support
18739         ld_shlibs_CXX=no
18740       fi
18741       ;;
18742     esac
18743     ;;
18744   hpux10*|hpux11*)
18745     if test $with_gnu_ld = no; then
18746       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18747       hardcode_libdir_separator_CXX=:
18748
18749       case $host_cpu in
18750       hppa*64*|ia64*)
18751         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18752         ;;
18753       *)
18754         export_dynamic_flag_spec_CXX='${wl}-E'
18755         ;;
18756       esac
18757     fi
18758     case $host_cpu in
18759     hppa*64*|ia64*)
18760       hardcode_direct_CXX=no
18761       hardcode_shlibpath_var_CXX=no
18762       ;;
18763     *)
18764       hardcode_direct_CXX=yes
18765       hardcode_minus_L_CXX=yes # Not in the search PATH,
18766                                               # but as the default
18767                                               # location of the library.
18768       ;;
18769     esac
18770
18771     case $cc_basename in
18772       CC*)
18773         # FIXME: insert proper C++ library support
18774         ld_shlibs_CXX=no
18775         ;;
18776       aCC*)
18777         case $host_cpu in
18778         hppa*64*)
18779           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18780           ;;
18781         ia64*)
18782           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783           ;;
18784         *)
18785           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786           ;;
18787         esac
18788         # Commands to make compiler produce verbose output that lists
18789         # what "hidden" libraries, object files and flags are used when
18790         # linking a shared library.
18791         #
18792         # There doesn't appear to be a way to prevent this compiler from
18793         # explicitly linking system object files so we need to strip them
18794         # from the output so that they don't get included in the library
18795         # dependencies.
18796         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'
18797         ;;
18798       *)
18799         if test "$GXX" = yes; then
18800           if test $with_gnu_ld = no; then
18801             case $host_cpu in
18802             hppa*64*)
18803               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18804               ;;
18805             ia64*)
18806               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807               ;;
18808             *)
18809               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'
18810               ;;
18811             esac
18812           fi
18813         else
18814           # FIXME: insert proper C++ library support
18815           ld_shlibs_CXX=no
18816         fi
18817         ;;
18818     esac
18819     ;;
18820   interix3*)
18821     hardcode_direct_CXX=no
18822     hardcode_shlibpath_var_CXX=no
18823     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18824     export_dynamic_flag_spec_CXX='${wl}-E'
18825     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18826     # Instead, shared libraries are loaded at an image base (0x10000000 by
18827     # default) and relocated if they conflict, which is a slow very memory
18828     # consuming and fragmenting process.  To avoid this, we pick a random,
18829     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18830     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18831     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'
18832     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'
18833     ;;
18834   irix5* | irix6*)
18835     case $cc_basename in
18836       CC*)
18837         # SGI C++
18838         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'
18839
18840         # Archives containing C++ object files must be created using
18841         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18842         # necessary to make sure instantiated templates are included
18843         # in the archive.
18844         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18845         ;;
18846       *)
18847         if test "$GXX" = yes; then
18848           if test "$with_gnu_ld" = no; then
18849             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'
18850           else
18851             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'
18852           fi
18853         fi
18854         link_all_deplibs_CXX=yes
18855         ;;
18856     esac
18857     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18858     hardcode_libdir_separator_CXX=:
18859     ;;
18860   linux*)
18861     case $cc_basename in
18862       KCC*)
18863         # Kuck and Associates, Inc. (KAI) C++ Compiler
18864
18865         # KCC will only create a shared library if the output file
18866         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18867         # to its proper name (with version) after linking.
18868         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'
18869         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'
18870         # Commands to make compiler produce verbose output that lists
18871         # what "hidden" libraries, object files and flags are used when
18872         # linking a shared library.
18873         #
18874         # There doesn't appear to be a way to prevent this compiler from
18875         # explicitly linking system object files so we need to strip them
18876         # from the output so that they don't get included in the library
18877         # dependencies.
18878         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'
18879
18880         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18881         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18882
18883         # Archives containing C++ object files must be created using
18884         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18885         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18886         ;;
18887       icpc*)
18888         # Intel C++
18889         with_gnu_ld=yes
18890         # version 8.0 and above of icpc choke on multiply defined symbols
18891         # if we add $predep_objects and $postdep_objects, however 7.1 and
18892         # earlier do not add the objects themselves.
18893         case `$CC -V 2>&1` in
18894         *"Version 7."*)
18895           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18896           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'
18897           ;;
18898         *)  # Version 8.0 or newer
18899           tmp_idyn=
18900           case $host_cpu in
18901             ia64*) tmp_idyn=' -i_dynamic';;
18902           esac
18903           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18904           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'
18905           ;;
18906         esac
18907         archive_cmds_need_lc_CXX=no
18908         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18909         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18910         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18911         ;;
18912       pgCC*)
18913         # Portland Group C++ compiler
18914         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18915         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'
18916
18917         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18918         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18919         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'
18920         ;;
18921       cxx*)
18922         # Compaq C++
18923         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18924         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'
18925
18926         runpath_var=LD_RUN_PATH
18927         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18928         hardcode_libdir_separator_CXX=:
18929
18930         # Commands to make compiler produce verbose output that lists
18931         # what "hidden" libraries, object files and flags are used when
18932         # linking a shared library.
18933         #
18934         # There doesn't appear to be a way to prevent this compiler from
18935         # explicitly linking system object files so we need to strip them
18936         # from the output so that they don't get included in the library
18937         # dependencies.
18938         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'
18939         ;;
18940     esac
18941     ;;
18942   lynxos*)
18943     # FIXME: insert proper C++ library support
18944     ld_shlibs_CXX=no
18945     ;;
18946   m88k*)
18947     # FIXME: insert proper C++ library support
18948     ld_shlibs_CXX=no
18949     ;;
18950   mvs*)
18951     case $cc_basename in
18952       cxx*)
18953         # FIXME: insert proper C++ library support
18954         ld_shlibs_CXX=no
18955         ;;
18956       *)
18957         # FIXME: insert proper C++ library support
18958         ld_shlibs_CXX=no
18959         ;;
18960     esac
18961     ;;
18962   netbsd*)
18963     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18964       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18965       wlarc=
18966       hardcode_libdir_flag_spec_CXX='-R$libdir'
18967       hardcode_direct_CXX=yes
18968       hardcode_shlibpath_var_CXX=no
18969     fi
18970     # Workaround some broken pre-1.5 toolchains
18971     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18972     ;;
18973   openbsd2*)
18974     # C++ shared libraries are fairly broken
18975     ld_shlibs_CXX=no
18976     ;;
18977   openbsd*)
18978     hardcode_direct_CXX=yes
18979     hardcode_shlibpath_var_CXX=no
18980     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18981     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18982     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18983       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18984       export_dynamic_flag_spec_CXX='${wl}-E'
18985       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18986     fi
18987     output_verbose_link_cmd='echo'
18988     ;;
18989   osf3*)
18990     case $cc_basename in
18991       KCC*)
18992         # Kuck and Associates, Inc. (KAI) C++ Compiler
18993
18994         # KCC will only create a shared library if the output file
18995         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18996         # to its proper name (with version) after linking.
18997         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'
18998
18999         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19000         hardcode_libdir_separator_CXX=:
19001
19002         # Archives containing C++ object files must be created using
19003         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19004         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19005
19006         ;;
19007       RCC*)
19008         # Rational C++ 2.4.1
19009         # FIXME: insert proper C++ library support
19010         ld_shlibs_CXX=no
19011         ;;
19012       cxx*)
19013         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19014         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'
19015
19016         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19017         hardcode_libdir_separator_CXX=:
19018
19019         # Commands to make compiler produce verbose output that lists
19020         # what "hidden" libraries, object files and flags are used when
19021         # linking a shared library.
19022         #
19023         # There doesn't appear to be a way to prevent this compiler from
19024         # explicitly linking system object files so we need to strip them
19025         # from the output so that they don't get included in the library
19026         # dependencies.
19027         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'
19028         ;;
19029       *)
19030         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19031           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19032           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'
19033
19034           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19035           hardcode_libdir_separator_CXX=:
19036
19037           # Commands to make compiler produce verbose output that lists
19038           # what "hidden" libraries, object files and flags are used when
19039           # linking a shared library.
19040           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19041
19042         else
19043           # FIXME: insert proper C++ library support
19044           ld_shlibs_CXX=no
19045         fi
19046         ;;
19047     esac
19048     ;;
19049   osf4* | osf5*)
19050     case $cc_basename in
19051       KCC*)
19052         # Kuck and Associates, Inc. (KAI) C++ Compiler
19053
19054         # KCC will only create a shared library if the output file
19055         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19056         # to its proper name (with version) after linking.
19057         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'
19058
19059         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19060         hardcode_libdir_separator_CXX=:
19061
19062         # Archives containing C++ object files must be created using
19063         # the KAI C++ compiler.
19064         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19065         ;;
19066       RCC*)
19067         # Rational C++ 2.4.1
19068         # FIXME: insert proper C++ library support
19069         ld_shlibs_CXX=no
19070         ;;
19071       cxx*)
19072         allow_undefined_flag_CXX=' -expect_unresolved \*'
19073         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'
19074         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19075           echo "-hidden">> $lib.exp~
19076           $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~
19077           $rm $lib.exp'
19078
19079         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19080         hardcode_libdir_separator_CXX=:
19081
19082         # Commands to make compiler produce verbose output that lists
19083         # what "hidden" libraries, object files and flags are used when
19084         # linking a shared library.
19085         #
19086         # There doesn't appear to be a way to prevent this compiler from
19087         # explicitly linking system object files so we need to strip them
19088         # from the output so that they don't get included in the library
19089         # dependencies.
19090         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'
19091         ;;
19092       *)
19093         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19094           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19095          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'
19096
19097           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19098           hardcode_libdir_separator_CXX=:
19099
19100           # Commands to make compiler produce verbose output that lists
19101           # what "hidden" libraries, object files and flags are used when
19102           # linking a shared library.
19103           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19104
19105         else
19106           # FIXME: insert proper C++ library support
19107           ld_shlibs_CXX=no
19108         fi
19109         ;;
19110     esac
19111     ;;
19112   psos*)
19113     # FIXME: insert proper C++ library support
19114     ld_shlibs_CXX=no
19115     ;;
19116   sunos4*)
19117     case $cc_basename in
19118       CC*)
19119         # Sun C++ 4.x
19120         # FIXME: insert proper C++ library support
19121         ld_shlibs_CXX=no
19122         ;;
19123       lcc*)
19124         # Lucid
19125         # FIXME: insert proper C++ library support
19126         ld_shlibs_CXX=no
19127         ;;
19128       *)
19129         # FIXME: insert proper C++ library support
19130         ld_shlibs_CXX=no
19131         ;;
19132     esac
19133     ;;
19134   solaris*)
19135     case $cc_basename in
19136       CC*)
19137         # Sun C++ 4.2, 5.x and Centerline C++
19138         archive_cmds_need_lc_CXX=yes
19139         no_undefined_flag_CXX=' -zdefs'
19140         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19141         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19142         $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'
19143
19144         hardcode_libdir_flag_spec_CXX='-R$libdir'
19145         hardcode_shlibpath_var_CXX=no
19146         case $host_os in
19147           solaris2.[0-5] | solaris2.[0-5].*) ;;
19148           *)
19149             # The C++ compiler is used as linker so we must use $wl
19150             # flag to pass the commands to the underlying system
19151             # linker. We must also pass each convience library through
19152             # to the system linker between allextract/defaultextract.
19153             # The C++ compiler will combine linker options so we
19154             # cannot just pass the convience library names through
19155             # without $wl.
19156             # Supported since Solaris 2.6 (maybe 2.5.1?)
19157             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19158             ;;
19159         esac
19160         link_all_deplibs_CXX=yes
19161
19162         output_verbose_link_cmd='echo'
19163
19164         # Archives containing C++ object files must be created using
19165         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19166         # necessary to make sure instantiated templates are included
19167         # in the archive.
19168         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19169         ;;
19170       gcx*)
19171         # Green Hills C++ Compiler
19172         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19173
19174         # The C++ compiler must be used to create the archive.
19175         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19176         ;;
19177       *)
19178         # GNU C++ compiler with Solaris linker
19179         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19180           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19181           if $CC --version | grep -v '^2\.7' > /dev/null; then
19182             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19183             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19184                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19185
19186             # Commands to make compiler produce verbose output that lists
19187             # what "hidden" libraries, object files and flags are used when
19188             # linking a shared library.
19189             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19190           else
19191             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19192             # platform.
19193             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19194             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19195                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19196
19197             # Commands to make compiler produce verbose output that lists
19198             # what "hidden" libraries, object files and flags are used when
19199             # linking a shared library.
19200             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19201           fi
19202
19203           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19204         fi
19205         ;;
19206     esac
19207     ;;
19208   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19209     no_undefined_flag_CXX='${wl}-z,text'
19210     archive_cmds_need_lc_CXX=no
19211     hardcode_shlibpath_var_CXX=no
19212     runpath_var='LD_RUN_PATH'
19213
19214     case $cc_basename in
19215       CC*)
19216         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19217         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19218         ;;
19219       *)
19220         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19221         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19222         ;;
19223     esac
19224     ;;
19225   sysv5* | sco3.2v5* | sco5v6*)
19226     # Note: We can NOT use -z defs as we might desire, because we do not
19227     # link with -lc, and that would cause any symbols used from libc to
19228     # always be unresolved, which means just about no library would
19229     # ever link correctly.  If we're not using GNU ld we use -z text
19230     # though, which does catch some bad symbols but isn't as heavy-handed
19231     # as -z defs.
19232     # For security reasons, it is highly recommended that you always
19233     # use absolute paths for naming shared libraries, and exclude the
19234     # DT_RUNPATH tag from executables and libraries.  But doing so
19235     # requires that you compile everything twice, which is a pain.
19236     # So that behaviour is only enabled if SCOABSPATH is set to a
19237     # non-empty value in the environment.  Most likely only useful for
19238     # creating official distributions of packages.
19239     # This is a hack until libtool officially supports absolute path
19240     # names for shared libraries.
19241     no_undefined_flag_CXX='${wl}-z,text'
19242     allow_undefined_flag_CXX='${wl}-z,nodefs'
19243     archive_cmds_need_lc_CXX=no
19244     hardcode_shlibpath_var_CXX=no
19245     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19246     hardcode_libdir_separator_CXX=':'
19247     link_all_deplibs_CXX=yes
19248     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19249     runpath_var='LD_RUN_PATH'
19250
19251     case $cc_basename in
19252       CC*)
19253         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19254         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19255         ;;
19256       *)
19257         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19258         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19259         ;;
19260     esac
19261     ;;
19262   tandem*)
19263     case $cc_basename in
19264       NCC*)
19265         # NonStop-UX NCC 3.20
19266         # FIXME: insert proper C++ library support
19267         ld_shlibs_CXX=no
19268         ;;
19269       *)
19270         # FIXME: insert proper C++ library support
19271         ld_shlibs_CXX=no
19272         ;;
19273     esac
19274     ;;
19275   vxworks*)
19276     # FIXME: insert proper C++ library support
19277     ld_shlibs_CXX=no
19278     ;;
19279   *)
19280     # FIXME: insert proper C++ library support
19281     ld_shlibs_CXX=no
19282     ;;
19283 esac
19284 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19285 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19286 test "$ld_shlibs_CXX" = no && can_build_shared=no
19287
19288 GCC_CXX="$GXX"
19289 LD_CXX="$LD"
19290
19291
19292 cat > conftest.$ac_ext <<EOF
19293 class Foo
19294 {
19295 public:
19296   Foo (void) { a = 0; }
19297 private:
19298   int a;
19299 };
19300 EOF
19301
19302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19303   (eval $ac_compile) 2>&5
19304   ac_status=$?
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; then
19307   # Parse the compiler output and extract the necessary
19308   # objects, libraries and library flags.
19309
19310   # Sentinel used to keep track of whether or not we are before
19311   # the conftest object file.
19312   pre_test_object_deps_done=no
19313
19314   # The `*' in the case matches for architectures that use `case' in
19315   # $output_verbose_cmd can trigger glob expansion during the loop
19316   # eval without this substitution.
19317   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19318
19319   for p in `eval $output_verbose_link_cmd`; do
19320     case $p in
19321
19322     -L* | -R* | -l*)
19323        # Some compilers place space between "-{L,R}" and the path.
19324        # Remove the space.
19325        if test $p = "-L" \
19326           || test $p = "-R"; then
19327          prev=$p
19328          continue
19329        else
19330          prev=
19331        fi
19332
19333        if test "$pre_test_object_deps_done" = no; then
19334          case $p in
19335          -L* | -R*)
19336            # Internal compiler library paths should come after those
19337            # provided the user.  The postdeps already come after the
19338            # user supplied libs so there is no need to process them.
19339            if test -z "$compiler_lib_search_path_CXX"; then
19340              compiler_lib_search_path_CXX="${prev}${p}"
19341            else
19342              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19343            fi
19344            ;;
19345          # The "-l" case would never come before the object being
19346          # linked, so don't bother handling this case.
19347          esac
19348        else
19349          if test -z "$postdeps_CXX"; then
19350            postdeps_CXX="${prev}${p}"
19351          else
19352            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19353          fi
19354        fi
19355        ;;
19356
19357     *.$objext)
19358        # This assumes that the test object file only shows up
19359        # once in the compiler output.
19360        if test "$p" = "conftest.$objext"; then
19361          pre_test_object_deps_done=yes
19362          continue
19363        fi
19364
19365        if test "$pre_test_object_deps_done" = no; then
19366          if test -z "$predep_objects_CXX"; then
19367            predep_objects_CXX="$p"
19368          else
19369            predep_objects_CXX="$predep_objects_CXX $p"
19370          fi
19371        else
19372          if test -z "$postdep_objects_CXX"; then
19373            postdep_objects_CXX="$p"
19374          else
19375            postdep_objects_CXX="$postdep_objects_CXX $p"
19376          fi
19377        fi
19378        ;;
19379
19380     *) ;; # Ignore the rest.
19381
19382     esac
19383   done
19384
19385   # Clean up.
19386   rm -f a.out a.exe
19387 else
19388   echo "libtool.m4: error: problem compiling CXX test program"
19389 fi
19390
19391 $rm -f confest.$objext
19392
19393 # PORTME: override above test on systems where it is broken
19394 case $host_os in
19395 interix3*)
19396   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19397   # hack all around it, let's just trust "g++" to DTRT.
19398   predep_objects_CXX=
19399   postdep_objects_CXX=
19400   postdeps_CXX=
19401   ;;
19402
19403 solaris*)
19404   case $cc_basename in
19405   CC*)
19406     # Adding this requires a known-good setup of shared libraries for
19407     # Sun compiler versions before 5.6, else PIC objects from an old
19408     # archive will be linked into the output, leading to subtle bugs.
19409     postdeps_CXX='-lCstd -lCrun'
19410     ;;
19411   esac
19412   ;;
19413 esac
19414
19415
19416 case " $postdeps_CXX " in
19417 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19418 esac
19419
19420 lt_prog_compiler_wl_CXX=
19421 lt_prog_compiler_pic_CXX=
19422 lt_prog_compiler_static_CXX=
19423
19424 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19425 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19426
19427   # C++ specific cases for pic, static, wl, etc.
19428   if test "$GXX" = yes; then
19429     lt_prog_compiler_wl_CXX='-Wl,'
19430     lt_prog_compiler_static_CXX='-static'
19431
19432     case $host_os in
19433     aix*)
19434       # All AIX code is PIC.
19435       if test "$host_cpu" = ia64; then
19436         # AIX 5 now supports IA64 processor
19437         lt_prog_compiler_static_CXX='-Bstatic'
19438       fi
19439       ;;
19440     amigaos*)
19441       # FIXME: we need at least 68020 code to build shared libraries, but
19442       # adding the `-m68020' flag to GCC prevents building anything better,
19443       # like `-m68040'.
19444       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19445       ;;
19446     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19447       # PIC is the default for these OSes.
19448       ;;
19449     mingw* | os2* | pw32*)
19450       # This hack is so that the source file can tell whether it is being
19451       # built for inclusion in a dll (and should export symbols for example).
19452       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19453       ;;
19454     darwin* | rhapsody*)
19455       # PIC is the default on this platform
19456       # Common symbols not allowed in MH_DYLIB files
19457       lt_prog_compiler_pic_CXX='-fno-common'
19458       ;;
19459     *djgpp*)
19460       # DJGPP does not support shared libraries at all
19461       lt_prog_compiler_pic_CXX=
19462       ;;
19463     interix3*)
19464       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19465       # Instead, we relocate shared libraries at runtime.
19466       ;;
19467     sysv4*MP*)
19468       if test -d /usr/nec; then
19469         lt_prog_compiler_pic_CXX=-Kconform_pic
19470       fi
19471       ;;
19472     hpux*)
19473       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19474       # not for PA HP-UX.
19475       case $host_cpu in
19476       hppa*64*|ia64*)
19477         ;;
19478       *)
19479         lt_prog_compiler_pic_CXX='-fPIC'
19480         ;;
19481       esac
19482       ;;
19483     *)
19484       lt_prog_compiler_pic_CXX='-fPIC'
19485       ;;
19486     esac
19487   else
19488     case $host_os in
19489       aix4* | aix5*)
19490         # All AIX code is PIC.
19491         if test "$host_cpu" = ia64; then
19492           # AIX 5 now supports IA64 processor
19493           lt_prog_compiler_static_CXX='-Bstatic'
19494         else
19495           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19496         fi
19497         ;;
19498       chorus*)
19499         case $cc_basename in
19500         cxch68*)
19501           # Green Hills C++ Compiler
19502           # _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"
19503           ;;
19504         esac
19505         ;;
19506        darwin*)
19507          # PIC is the default on this platform
19508          # Common symbols not allowed in MH_DYLIB files
19509          case $cc_basename in
19510            xlc*)
19511            lt_prog_compiler_pic_CXX='-qnocommon'
19512            lt_prog_compiler_wl_CXX='-Wl,'
19513            ;;
19514          esac
19515        ;;
19516       dgux*)
19517         case $cc_basename in
19518           ec++*)
19519             lt_prog_compiler_pic_CXX='-KPIC'
19520             ;;
19521           ghcx*)
19522             # Green Hills C++ Compiler
19523             lt_prog_compiler_pic_CXX='-pic'
19524             ;;
19525           *)
19526             ;;
19527         esac
19528         ;;
19529       freebsd* | kfreebsd*-gnu | dragonfly*)
19530         # FreeBSD uses GNU C++
19531         ;;
19532       hpux9* | hpux10* | hpux11*)
19533         case $cc_basename in
19534           CC*)
19535             lt_prog_compiler_wl_CXX='-Wl,'
19536             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19537             if test "$host_cpu" != ia64; then
19538               lt_prog_compiler_pic_CXX='+Z'
19539             fi
19540             ;;
19541           aCC*)
19542             lt_prog_compiler_wl_CXX='-Wl,'
19543             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19544             case $host_cpu in
19545             hppa*64*|ia64*)
19546               # +Z the default
19547               ;;
19548             *)
19549               lt_prog_compiler_pic_CXX='+Z'
19550               ;;
19551             esac
19552             ;;
19553           *)
19554             ;;
19555         esac
19556         ;;
19557       interix*)
19558         # This is c89, which is MS Visual C++ (no shared libs)
19559         # Anyone wants to do a port?
19560         ;;
19561       irix5* | irix6* | nonstopux*)
19562         case $cc_basename in
19563           CC*)
19564             lt_prog_compiler_wl_CXX='-Wl,'
19565             lt_prog_compiler_static_CXX='-non_shared'
19566             # CC pic flag -KPIC is the default.
19567             ;;
19568           *)
19569             ;;
19570         esac
19571         ;;
19572       linux*)
19573         case $cc_basename in
19574           KCC*)
19575             # KAI C++ Compiler
19576             lt_prog_compiler_wl_CXX='--backend -Wl,'
19577             lt_prog_compiler_pic_CXX='-fPIC'
19578             ;;
19579           icpc* | ecpc*)
19580             # Intel C++
19581             lt_prog_compiler_wl_CXX='-Wl,'
19582             lt_prog_compiler_pic_CXX='-KPIC'
19583             lt_prog_compiler_static_CXX='-static'
19584             ;;
19585           pgCC*)
19586             # Portland Group C++ compiler.
19587             lt_prog_compiler_wl_CXX='-Wl,'
19588             lt_prog_compiler_pic_CXX='-fpic'
19589             lt_prog_compiler_static_CXX='-Bstatic'
19590             ;;
19591           cxx*)
19592             # Compaq C++
19593             # Make sure the PIC flag is empty.  It appears that all Alpha
19594             # Linux and Compaq Tru64 Unix objects are PIC.
19595             lt_prog_compiler_pic_CXX=
19596             lt_prog_compiler_static_CXX='-non_shared'
19597             ;;
19598           *)
19599             ;;
19600         esac
19601         ;;
19602       lynxos*)
19603         ;;
19604       m88k*)
19605         ;;
19606       mvs*)
19607         case $cc_basename in
19608           cxx*)
19609             lt_prog_compiler_pic_CXX='-W c,exportall'
19610             ;;
19611           *)
19612             ;;
19613         esac
19614         ;;
19615       netbsd*)
19616         ;;
19617       osf3* | osf4* | osf5*)
19618         case $cc_basename in
19619           KCC*)
19620             lt_prog_compiler_wl_CXX='--backend -Wl,'
19621             ;;
19622           RCC*)
19623             # Rational C++ 2.4.1
19624             lt_prog_compiler_pic_CXX='-pic'
19625             ;;
19626           cxx*)
19627             # Digital/Compaq C++
19628             lt_prog_compiler_wl_CXX='-Wl,'
19629             # Make sure the PIC flag is empty.  It appears that all Alpha
19630             # Linux and Compaq Tru64 Unix objects are PIC.
19631             lt_prog_compiler_pic_CXX=
19632             lt_prog_compiler_static_CXX='-non_shared'
19633             ;;
19634           *)
19635             ;;
19636         esac
19637         ;;
19638       psos*)
19639         ;;
19640       solaris*)
19641         case $cc_basename in
19642           CC*)
19643             # Sun C++ 4.2, 5.x and Centerline C++
19644             lt_prog_compiler_pic_CXX='-KPIC'
19645             lt_prog_compiler_static_CXX='-Bstatic'
19646             lt_prog_compiler_wl_CXX='-Qoption ld '
19647             ;;
19648           gcx*)
19649             # Green Hills C++ Compiler
19650             lt_prog_compiler_pic_CXX='-PIC'
19651             ;;
19652           *)
19653             ;;
19654         esac
19655         ;;
19656       sunos4*)
19657         case $cc_basename in
19658           CC*)
19659             # Sun C++ 4.x
19660             lt_prog_compiler_pic_CXX='-pic'
19661             lt_prog_compiler_static_CXX='-Bstatic'
19662             ;;
19663           lcc*)
19664             # Lucid
19665             lt_prog_compiler_pic_CXX='-pic'
19666             ;;
19667           *)
19668             ;;
19669         esac
19670         ;;
19671       tandem*)
19672         case $cc_basename in
19673           NCC*)
19674             # NonStop-UX NCC 3.20
19675             lt_prog_compiler_pic_CXX='-KPIC'
19676             ;;
19677           *)
19678             ;;
19679         esac
19680         ;;
19681       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19682         case $cc_basename in
19683           CC*)
19684             lt_prog_compiler_wl_CXX='-Wl,'
19685             lt_prog_compiler_pic_CXX='-KPIC'
19686             lt_prog_compiler_static_CXX='-Bstatic'
19687             ;;
19688         esac
19689         ;;
19690       vxworks*)
19691         ;;
19692       *)
19693         lt_prog_compiler_can_build_shared_CXX=no
19694         ;;
19695     esac
19696   fi
19697
19698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19699 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19700
19701 #
19702 # Check to make sure the PIC flag actually works.
19703 #
19704 if test -n "$lt_prog_compiler_pic_CXX"; then
19705
19706 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19707 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19708 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   lt_prog_compiler_pic_works_CXX=no
19712   ac_outfile=conftest.$ac_objext
19713    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19714    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19715    # Insert the option either (1) after the last *FLAGS variable, or
19716    # (2) before a word containing "conftest.", or (3) at the end.
19717    # Note that $ac_compile itself does not contain backslashes and begins
19718    # with a dollar sign (not a hyphen), so the echo should work correctly.
19719    # The option is referenced via a variable to avoid confusing sed.
19720    lt_compile=`echo "$ac_compile" | $SED \
19721    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19722    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19723    -e 's:$: $lt_compiler_flag:'`
19724    (eval echo "\"\$as_me:19724: $lt_compile\"" >&5)
19725    (eval "$lt_compile" 2>conftest.err)
19726    ac_status=$?
19727    cat conftest.err >&5
19728    echo "$as_me:19728: \$? = $ac_status" >&5
19729    if (exit $ac_status) && test -s "$ac_outfile"; then
19730      # The compiler can only warn and ignore the option if not recognized
19731      # So say no if there are warnings other than the usual output.
19732      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19733      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19734      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19735        lt_prog_compiler_pic_works_CXX=yes
19736      fi
19737    fi
19738    $rm conftest*
19739
19740 fi
19741 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19742 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19743
19744 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19745     case $lt_prog_compiler_pic_CXX in
19746      "" | " "*) ;;
19747      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19748      esac
19749 else
19750     lt_prog_compiler_pic_CXX=
19751      lt_prog_compiler_can_build_shared_CXX=no
19752 fi
19753
19754 fi
19755 case $host_os in
19756   # For platforms which do not support PIC, -DPIC is meaningless:
19757   *djgpp*)
19758     lt_prog_compiler_pic_CXX=
19759     ;;
19760   *)
19761     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19762     ;;
19763 esac
19764
19765 #
19766 # Check to make sure the static flag actually works.
19767 #
19768 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19769 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19770 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19771 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   lt_prog_compiler_static_works_CXX=no
19775    save_LDFLAGS="$LDFLAGS"
19776    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19777    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19778    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19779      # The linker can only warn and ignore the option if not recognized
19780      # So say no if there are warnings
19781      if test -s conftest.err; then
19782        # Append any errors to the config.log.
19783        cat conftest.err 1>&5
19784        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19785        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19786        if diff conftest.exp conftest.er2 >/dev/null; then
19787          lt_prog_compiler_static_works_CXX=yes
19788        fi
19789      else
19790        lt_prog_compiler_static_works_CXX=yes
19791      fi
19792    fi
19793    $rm conftest*
19794    LDFLAGS="$save_LDFLAGS"
19795
19796 fi
19797 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19798 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19799
19800 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19801     :
19802 else
19803     lt_prog_compiler_static_CXX=
19804 fi
19805
19806
19807 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19808 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19809 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   lt_cv_prog_compiler_c_o_CXX=no
19813    $rm -r conftest 2>/dev/null
19814    mkdir conftest
19815    cd conftest
19816    mkdir out
19817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19818
19819    lt_compiler_flag="-o out/conftest2.$ac_objext"
19820    # Insert the option either (1) after the last *FLAGS variable, or
19821    # (2) before a word containing "conftest.", or (3) at the end.
19822    # Note that $ac_compile itself does not contain backslashes and begins
19823    # with a dollar sign (not a hyphen), so the echo should work correctly.
19824    lt_compile=`echo "$ac_compile" | $SED \
19825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19827    -e 's:$: $lt_compiler_flag:'`
19828    (eval echo "\"\$as_me:19828: $lt_compile\"" >&5)
19829    (eval "$lt_compile" 2>out/conftest.err)
19830    ac_status=$?
19831    cat out/conftest.err >&5
19832    echo "$as_me:19832: \$? = $ac_status" >&5
19833    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19834    then
19835      # The compiler can only warn and ignore the option if not recognized
19836      # So say no if there are warnings
19837      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19838      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19839      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19840        lt_cv_prog_compiler_c_o_CXX=yes
19841      fi
19842    fi
19843    chmod u+w . 2>&5
19844    $rm conftest*
19845    # SGI C++ compiler will create directory out/ii_files/ for
19846    # template instantiation
19847    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19848    $rm out/* && rmdir out
19849    cd ..
19850    rmdir conftest
19851    $rm conftest*
19852
19853 fi
19854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19855 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19856
19857
19858 hard_links="nottested"
19859 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19860   # do not overwrite the value of need_locks provided by the user
19861   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19862 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19863   hard_links=yes
19864   $rm conftest*
19865   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19866   touch conftest.a
19867   ln conftest.a conftest.b 2>&5 || hard_links=no
19868   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19869   { echo "$as_me:$LINENO: result: $hard_links" >&5
19870 echo "${ECHO_T}$hard_links" >&6; }
19871   if test "$hard_links" = no; then
19872     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19873 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19874     need_locks=warn
19875   fi
19876 else
19877   need_locks=no
19878 fi
19879
19880 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19881 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19882
19883   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19884   case $host_os in
19885   aix4* | aix5*)
19886     # If we're using GNU nm, then we don't want the "-C" option.
19887     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19888     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19889       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'
19890     else
19891       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'
19892     fi
19893     ;;
19894   pw32*)
19895     export_symbols_cmds_CXX="$ltdll_cmds"
19896   ;;
19897   cygwin* | mingw*)
19898     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'
19899   ;;
19900   *)
19901     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19902   ;;
19903   esac
19904
19905 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19906 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19907 test "$ld_shlibs_CXX" = no && can_build_shared=no
19908
19909 #
19910 # Do we need to explicitly link libc?
19911 #
19912 case "x$archive_cmds_need_lc_CXX" in
19913 x|xyes)
19914   # Assume -lc should be added
19915   archive_cmds_need_lc_CXX=yes
19916
19917   if test "$enable_shared" = yes && test "$GCC" = yes; then
19918     case $archive_cmds_CXX in
19919     *'~'*)
19920       # FIXME: we may have to deal with multi-command sequences.
19921       ;;
19922     '$CC '*)
19923       # Test whether the compiler implicitly links with -lc since on some
19924       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19925       # to ld, don't add -lc before -lgcc.
19926       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19928       $rm conftest*
19929       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19930
19931       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932   (eval $ac_compile) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } 2>conftest.err; then
19936         soname=conftest
19937         lib=conftest
19938         libobjs=conftest.$ac_objext
19939         deplibs=
19940         wl=$lt_prog_compiler_wl_CXX
19941         pic_flag=$lt_prog_compiler_pic_CXX
19942         compiler_flags=-v
19943         linker_flags=-v
19944         verstring=
19945         output_objdir=.
19946         libname=conftest
19947         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19948         allow_undefined_flag_CXX=
19949         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19950   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }
19954         then
19955           archive_cmds_need_lc_CXX=no
19956         else
19957           archive_cmds_need_lc_CXX=yes
19958         fi
19959         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19960       else
19961         cat conftest.err 1>&5
19962       fi
19963       $rm conftest*
19964       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19965 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19966       ;;
19967     esac
19968   fi
19969   ;;
19970 esac
19971
19972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19974 library_names_spec=
19975 libname_spec='lib$name'
19976 soname_spec=
19977 shrext_cmds=".so"
19978 postinstall_cmds=
19979 postuninstall_cmds=
19980 finish_cmds=
19981 finish_eval=
19982 shlibpath_var=
19983 shlibpath_overrides_runpath=unknown
19984 version_type=none
19985 dynamic_linker="$host_os ld.so"
19986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19987 if test "$GCC" = yes; then
19988   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19989   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19990     # if the path contains ";" then we assume it to be the separator
19991     # otherwise default to the standard path separator (i.e. ":") - it is
19992     # assumed that no part of a normal pathname contains ";" but that should
19993     # okay in the real world where ";" in dirpaths is itself problematic.
19994     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19995   else
19996     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19997   fi
19998 else
19999   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20000 fi
20001 need_lib_prefix=unknown
20002 hardcode_into_libs=no
20003
20004 # when you set need_version to no, make sure it does not cause -set_version
20005 # flags to be left without arguments
20006 need_version=unknown
20007
20008 case $host_os in
20009 aix3*)
20010   version_type=linux
20011   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20012   shlibpath_var=LIBPATH
20013
20014   # AIX 3 has no versioning support, so we append a major version to the name.
20015   soname_spec='${libname}${release}${shared_ext}$major'
20016   ;;
20017
20018 aix4* | aix5*)
20019   version_type=linux
20020   need_lib_prefix=no
20021   need_version=no
20022   hardcode_into_libs=yes
20023   if test "$host_cpu" = ia64; then
20024     # AIX 5 supports IA64
20025     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20026     shlibpath_var=LD_LIBRARY_PATH
20027   else
20028     # With GCC up to 2.95.x, collect2 would create an import file
20029     # for dependence libraries.  The import file would start with
20030     # the line `#! .'.  This would cause the generated library to
20031     # depend on `.', always an invalid library.  This was fixed in
20032     # development snapshots of GCC prior to 3.0.
20033     case $host_os in
20034       aix4 | aix4.[01] | aix4.[01].*)
20035       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20036            echo ' yes '
20037            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20038         :
20039       else
20040         can_build_shared=no
20041       fi
20042       ;;
20043     esac
20044     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20045     # soname into executable. Probably we can add versioning support to
20046     # collect2, so additional links can be useful in future.
20047     if test "$aix_use_runtimelinking" = yes; then
20048       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20049       # instead of lib<name>.a to let people know that these are not
20050       # typical AIX shared libraries.
20051       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052     else
20053       # We preserve .a as extension for shared libraries through AIX4.2
20054       # and later when we are not doing run time linking.
20055       library_names_spec='${libname}${release}.a $libname.a'
20056       soname_spec='${libname}${release}${shared_ext}$major'
20057     fi
20058     shlibpath_var=LIBPATH
20059   fi
20060   ;;
20061
20062 amigaos*)
20063   library_names_spec='$libname.ixlibrary $libname.a'
20064   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20065   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'
20066   ;;
20067
20068 beos*)
20069   library_names_spec='${libname}${shared_ext}'
20070   dynamic_linker="$host_os ld.so"
20071   shlibpath_var=LIBRARY_PATH
20072   ;;
20073
20074 bsdi[45]*)
20075   version_type=linux
20076   need_version=no
20077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078   soname_spec='${libname}${release}${shared_ext}$major'
20079   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20080   shlibpath_var=LD_LIBRARY_PATH
20081   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20082   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20083   # the default ld.so.conf also contains /usr/contrib/lib and
20084   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20085   # libtool to hard-code these into programs
20086   ;;
20087
20088 cygwin* | mingw* | pw32*)
20089   version_type=windows
20090   shrext_cmds=".dll"
20091   need_version=no
20092   need_lib_prefix=no
20093
20094   case $GCC,$host_os in
20095   yes,cygwin* | yes,mingw* | yes,pw32*)
20096     library_names_spec='$libname.dll.a'
20097     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20098     postinstall_cmds='base_file=`basename \${file}`~
20099       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20100       dldir=$destdir/`dirname \$dlpath`~
20101       test -d \$dldir || mkdir -p \$dldir~
20102       $install_prog $dir/$dlname \$dldir/$dlname~
20103       chmod a+x \$dldir/$dlname'
20104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20105       dlpath=$dir/\$dldll~
20106        $rm \$dlpath'
20107     shlibpath_overrides_runpath=yes
20108
20109     case $host_os in
20110     cygwin*)
20111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20113       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20114       ;;
20115     mingw*)
20116       # MinGW DLLs use traditional 'lib' prefix
20117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20118       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20119       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20120         # It is most probably a Windows format PATH printed by
20121         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20122         # path with ; separators, and with drive letters. We can handle the
20123         # drive letters (cygwin fileutils understands them), so leave them,
20124         # especially as we might pass files found there to a mingw objdump,
20125         # which wouldn't understand a cygwinified path. Ahh.
20126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20127       else
20128         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20129       fi
20130       ;;
20131     pw32*)
20132       # pw32 DLLs use 'pw' prefix rather than 'lib'
20133       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20134       ;;
20135     esac
20136     ;;
20137
20138   *)
20139     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20140     ;;
20141   esac
20142   dynamic_linker='Win32 ld.exe'
20143   # FIXME: first we should search . and the directory the executable is in
20144   shlibpath_var=PATH
20145   ;;
20146
20147 darwin* | rhapsody*)
20148   dynamic_linker="$host_os dyld"
20149   version_type=darwin
20150   need_lib_prefix=no
20151   need_version=no
20152   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20153   soname_spec='${libname}${release}${major}$shared_ext'
20154   shlibpath_overrides_runpath=yes
20155   shlibpath_var=DYLD_LIBRARY_PATH
20156   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20157   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20158   if test "$GCC" = yes; then
20159     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20160   else
20161     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20162   fi
20163   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20164   ;;
20165
20166 dgux*)
20167   version_type=linux
20168   need_lib_prefix=no
20169   need_version=no
20170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20171   soname_spec='${libname}${release}${shared_ext}$major'
20172   shlibpath_var=LD_LIBRARY_PATH
20173   ;;
20174
20175 freebsd1*)
20176   dynamic_linker=no
20177   ;;
20178
20179 kfreebsd*-gnu)
20180   version_type=linux
20181   need_lib_prefix=no
20182   need_version=no
20183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20184   soname_spec='${libname}${release}${shared_ext}$major'
20185   shlibpath_var=LD_LIBRARY_PATH
20186   shlibpath_overrides_runpath=no
20187   hardcode_into_libs=yes
20188   dynamic_linker='GNU ld.so'
20189   ;;
20190
20191 freebsd* | dragonfly*)
20192   # DragonFly does not have aout.  When/if they implement a new
20193   # versioning mechanism, adjust this.
20194   if test -x /usr/bin/objformat; then
20195     objformat=`/usr/bin/objformat`
20196   else
20197     case $host_os in
20198     freebsd[123]*) objformat=aout ;;
20199     *) objformat=elf ;;
20200     esac
20201   fi
20202   version_type=freebsd-$objformat
20203   case $version_type in
20204     freebsd-elf*)
20205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20206       need_version=no
20207       need_lib_prefix=no
20208       ;;
20209     freebsd-*)
20210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20211       need_version=yes
20212       ;;
20213   esac
20214   shlibpath_var=LD_LIBRARY_PATH
20215   case $host_os in
20216   freebsd2*)
20217     shlibpath_overrides_runpath=yes
20218     ;;
20219   freebsd3.[01]* | freebsdelf3.[01]*)
20220     shlibpath_overrides_runpath=yes
20221     hardcode_into_libs=yes
20222     ;;
20223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20225     shlibpath_overrides_runpath=no
20226     hardcode_into_libs=yes
20227     ;;
20228   freebsd*) # from 4.6 on
20229     shlibpath_overrides_runpath=yes
20230     hardcode_into_libs=yes
20231     ;;
20232   esac
20233   ;;
20234
20235 gnu*)
20236   version_type=linux
20237   need_lib_prefix=no
20238   need_version=no
20239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20240   soname_spec='${libname}${release}${shared_ext}$major'
20241   shlibpath_var=LD_LIBRARY_PATH
20242   hardcode_into_libs=yes
20243   ;;
20244
20245 hpux9* | hpux10* | hpux11*)
20246   # Give a soname corresponding to the major version so that dld.sl refuses to
20247   # link against other versions.
20248   version_type=sunos
20249   need_lib_prefix=no
20250   need_version=no
20251   case $host_cpu in
20252   ia64*)
20253     shrext_cmds='.so'
20254     hardcode_into_libs=yes
20255     dynamic_linker="$host_os dld.so"
20256     shlibpath_var=LD_LIBRARY_PATH
20257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259     soname_spec='${libname}${release}${shared_ext}$major'
20260     if test "X$HPUX_IA64_MODE" = X32; then
20261       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20262     else
20263       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20264     fi
20265     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20266     ;;
20267    hppa*64*)
20268      shrext_cmds='.sl'
20269      hardcode_into_libs=yes
20270      dynamic_linker="$host_os dld.sl"
20271      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20272      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20274      soname_spec='${libname}${release}${shared_ext}$major'
20275      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20276      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20277      ;;
20278    *)
20279     shrext_cmds='.sl'
20280     dynamic_linker="$host_os dld.sl"
20281     shlibpath_var=SHLIB_PATH
20282     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284     soname_spec='${libname}${release}${shared_ext}$major'
20285     ;;
20286   esac
20287   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20288   postinstall_cmds='chmod 555 $lib'
20289   ;;
20290
20291 interix3*)
20292   version_type=linux
20293   need_lib_prefix=no
20294   need_version=no
20295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20296   soname_spec='${libname}${release}${shared_ext}$major'
20297   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20298   shlibpath_var=LD_LIBRARY_PATH
20299   shlibpath_overrides_runpath=no
20300   hardcode_into_libs=yes
20301   ;;
20302
20303 irix5* | irix6* | nonstopux*)
20304   case $host_os in
20305     nonstopux*) version_type=nonstopux ;;
20306     *)
20307         if test "$lt_cv_prog_gnu_ld" = yes; then
20308                 version_type=linux
20309         else
20310                 version_type=irix
20311         fi ;;
20312   esac
20313   need_lib_prefix=no
20314   need_version=no
20315   soname_spec='${libname}${release}${shared_ext}$major'
20316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20317   case $host_os in
20318   irix5* | nonstopux*)
20319     libsuff= shlibsuff=
20320     ;;
20321   *)
20322     case $LD in # libtool.m4 will add one of these switches to LD
20323     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20324       libsuff= shlibsuff= libmagic=32-bit;;
20325     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20326       libsuff=32 shlibsuff=N32 libmagic=N32;;
20327     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20328       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20329     *) libsuff= shlibsuff= libmagic=never-match;;
20330     esac
20331     ;;
20332   esac
20333   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20334   shlibpath_overrides_runpath=no
20335   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20336   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20337   hardcode_into_libs=yes
20338   ;;
20339
20340 # No shared lib support for Linux oldld, aout, or coff.
20341 linux*oldld* | linux*aout* | linux*coff*)
20342   dynamic_linker=no
20343   ;;
20344
20345 # This must be Linux ELF.
20346 linux*)
20347   version_type=linux
20348   need_lib_prefix=no
20349   need_version=no
20350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351   soname_spec='${libname}${release}${shared_ext}$major'
20352   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20353   shlibpath_var=LD_LIBRARY_PATH
20354   shlibpath_overrides_runpath=no
20355   # This implies no fast_install, which is unacceptable.
20356   # Some rework will be needed to allow for fast_install
20357   # before this can be enabled.
20358   hardcode_into_libs=yes
20359
20360   # find out which ABI we are using
20361   libsuff=
20362   case "$host_cpu" in
20363   x86_64*|s390x*|powerpc64*)
20364     echo '#line 20364 "configure"' > conftest.$ac_ext
20365     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; then
20370       case `/usr/bin/file conftest.$ac_objext` in
20371       *64-bit*)
20372         libsuff=64
20373         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20374         ;;
20375       esac
20376     fi
20377     rm -rf conftest*
20378     ;;
20379   esac
20380
20381   # Append ld.so.conf contents to the search path
20382   if test -f /etc/ld.so.conf; then
20383     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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20384     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
20385   fi
20386
20387   # We used to test for /lib/ld.so.1 and disable shared libraries on
20388   # powerpc, because MkLinux only supported shared libraries with the
20389   # GNU dynamic linker.  Since this was broken with cross compilers,
20390   # most powerpc-linux boxes support dynamic linking these days and
20391   # people can always --disable-shared, the test was removed, and we
20392   # assume the GNU/Linux dynamic linker is in use.
20393   dynamic_linker='GNU/Linux ld.so'
20394   ;;
20395
20396 knetbsd*-gnu)
20397   version_type=linux
20398   need_lib_prefix=no
20399   need_version=no
20400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20401   soname_spec='${libname}${release}${shared_ext}$major'
20402   shlibpath_var=LD_LIBRARY_PATH
20403   shlibpath_overrides_runpath=no
20404   hardcode_into_libs=yes
20405   dynamic_linker='GNU ld.so'
20406   ;;
20407
20408 netbsd*)
20409   version_type=sunos
20410   need_lib_prefix=no
20411   need_version=no
20412   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20414     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20415     dynamic_linker='NetBSD (a.out) ld.so'
20416   else
20417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20418     soname_spec='${libname}${release}${shared_ext}$major'
20419     dynamic_linker='NetBSD ld.elf_so'
20420   fi
20421   shlibpath_var=LD_LIBRARY_PATH
20422   shlibpath_overrides_runpath=yes
20423   hardcode_into_libs=yes
20424   ;;
20425
20426 newsos6)
20427   version_type=linux
20428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429   shlibpath_var=LD_LIBRARY_PATH
20430   shlibpath_overrides_runpath=yes
20431   ;;
20432
20433 nto-qnx*)
20434   version_type=linux
20435   need_lib_prefix=no
20436   need_version=no
20437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20438   soname_spec='${libname}${release}${shared_ext}$major'
20439   shlibpath_var=LD_LIBRARY_PATH
20440   shlibpath_overrides_runpath=yes
20441   ;;
20442
20443 openbsd*)
20444   version_type=sunos
20445   sys_lib_dlsearch_path_spec="/usr/lib"
20446   need_lib_prefix=no
20447   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20448   case $host_os in
20449     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20450     *)                         need_version=no  ;;
20451   esac
20452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20454   shlibpath_var=LD_LIBRARY_PATH
20455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20456     case $host_os in
20457       openbsd2.[89] | openbsd2.[89].*)
20458         shlibpath_overrides_runpath=no
20459         ;;
20460       *)
20461         shlibpath_overrides_runpath=yes
20462         ;;
20463       esac
20464   else
20465     shlibpath_overrides_runpath=yes
20466   fi
20467   ;;
20468
20469 os2*)
20470   libname_spec='$name'
20471   shrext_cmds=".dll"
20472   need_lib_prefix=no
20473   library_names_spec='$libname${shared_ext} $libname.a'
20474   dynamic_linker='OS/2 ld.exe'
20475   shlibpath_var=LIBPATH
20476   ;;
20477
20478 osf3* | osf4* | osf5*)
20479   version_type=osf
20480   need_lib_prefix=no
20481   need_version=no
20482   soname_spec='${libname}${release}${shared_ext}$major'
20483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20484   shlibpath_var=LD_LIBRARY_PATH
20485   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20486   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20487   ;;
20488
20489 solaris*)
20490   version_type=linux
20491   need_lib_prefix=no
20492   need_version=no
20493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494   soname_spec='${libname}${release}${shared_ext}$major'
20495   shlibpath_var=LD_LIBRARY_PATH
20496   shlibpath_overrides_runpath=yes
20497   hardcode_into_libs=yes
20498   # ldd complains unless libraries are executable
20499   postinstall_cmds='chmod +x $lib'
20500   ;;
20501
20502 sunos4*)
20503   version_type=sunos
20504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20506   shlibpath_var=LD_LIBRARY_PATH
20507   shlibpath_overrides_runpath=yes
20508   if test "$with_gnu_ld" = yes; then
20509     need_lib_prefix=no
20510   fi
20511   need_version=yes
20512   ;;
20513
20514 sysv4 | sysv4.3*)
20515   version_type=linux
20516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517   soname_spec='${libname}${release}${shared_ext}$major'
20518   shlibpath_var=LD_LIBRARY_PATH
20519   case $host_vendor in
20520     sni)
20521       shlibpath_overrides_runpath=no
20522       need_lib_prefix=no
20523       export_dynamic_flag_spec='${wl}-Blargedynsym'
20524       runpath_var=LD_RUN_PATH
20525       ;;
20526     siemens)
20527       need_lib_prefix=no
20528       ;;
20529     motorola)
20530       need_lib_prefix=no
20531       need_version=no
20532       shlibpath_overrides_runpath=no
20533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20534       ;;
20535   esac
20536   ;;
20537
20538 sysv4*MP*)
20539   if test -d /usr/nec ;then
20540     version_type=linux
20541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20542     soname_spec='$libname${shared_ext}.$major'
20543     shlibpath_var=LD_LIBRARY_PATH
20544   fi
20545   ;;
20546
20547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20548   version_type=freebsd-elf
20549   need_lib_prefix=no
20550   need_version=no
20551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20552   soname_spec='${libname}${release}${shared_ext}$major'
20553   shlibpath_var=LD_LIBRARY_PATH
20554   hardcode_into_libs=yes
20555   if test "$with_gnu_ld" = yes; then
20556     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20557     shlibpath_overrides_runpath=no
20558   else
20559     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20560     shlibpath_overrides_runpath=yes
20561     case $host_os in
20562       sco3.2v5*)
20563         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20564         ;;
20565     esac
20566   fi
20567   sys_lib_dlsearch_path_spec='/usr/lib'
20568   ;;
20569
20570 uts4*)
20571   version_type=linux
20572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20573   soname_spec='${libname}${release}${shared_ext}$major'
20574   shlibpath_var=LD_LIBRARY_PATH
20575   ;;
20576
20577 *)
20578   dynamic_linker=no
20579   ;;
20580 esac
20581 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20582 echo "${ECHO_T}$dynamic_linker" >&6; }
20583 test "$dynamic_linker" = no && can_build_shared=no
20584
20585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20586 if test "$GCC" = yes; then
20587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20588 fi
20589
20590 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20592 hardcode_action_CXX=
20593 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20594    test -n "$runpath_var_CXX" || \
20595    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20596
20597   # We can hardcode non-existant directories.
20598   if test "$hardcode_direct_CXX" != no &&
20599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20600      # have to relink, otherwise we might link with an installed library
20601      # when we should be linking with a yet-to-be-installed one
20602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20603      test "$hardcode_minus_L_CXX" != no; then
20604     # Linking always hardcodes the temporary library directory.
20605     hardcode_action_CXX=relink
20606   else
20607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20608     hardcode_action_CXX=immediate
20609   fi
20610 else
20611   # We cannot hardcode anything, or else we can only hardcode existing
20612   # directories.
20613   hardcode_action_CXX=unsupported
20614 fi
20615 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20616 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20617
20618 if test "$hardcode_action_CXX" = relink; then
20619   # Fast installation is not supported
20620   enable_fast_install=no
20621 elif test "$shlibpath_overrides_runpath" = yes ||
20622      test "$enable_shared" = no; then
20623   # Fast installation is not necessary
20624   enable_fast_install=needless
20625 fi
20626
20627
20628 # The else clause should only fire when bootstrapping the
20629 # libtool distribution, otherwise you forgot to ship ltmain.sh
20630 # with your package, and you will get complaints that there are
20631 # no rules to generate ltmain.sh.
20632 if test -f "$ltmain"; then
20633   # See if we are running on zsh, and set the options which allow our commands through
20634   # without removal of \ escapes.
20635   if test -n "${ZSH_VERSION+set}" ; then
20636     setopt NO_GLOB_SUBST
20637   fi
20638   # Now quote all the things that may contain metacharacters while being
20639   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20640   # variables and quote the copies for generation of the libtool script.
20641   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20642     SED SHELL STRIP \
20643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20645     deplibs_check_method reload_flag reload_cmds need_locks \
20646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20647     lt_cv_sys_global_symbol_to_c_name_address \
20648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20649     old_postinstall_cmds old_postuninstall_cmds \
20650     compiler_CXX \
20651     CC_CXX \
20652     LD_CXX \
20653     lt_prog_compiler_wl_CXX \
20654     lt_prog_compiler_pic_CXX \
20655     lt_prog_compiler_static_CXX \
20656     lt_prog_compiler_no_builtin_flag_CXX \
20657     export_dynamic_flag_spec_CXX \
20658     thread_safe_flag_spec_CXX \
20659     whole_archive_flag_spec_CXX \
20660     enable_shared_with_static_runtimes_CXX \
20661     old_archive_cmds_CXX \
20662     old_archive_from_new_cmds_CXX \
20663     predep_objects_CXX \
20664     postdep_objects_CXX \
20665     predeps_CXX \
20666     postdeps_CXX \
20667     compiler_lib_search_path_CXX \
20668     archive_cmds_CXX \
20669     archive_expsym_cmds_CXX \
20670     postinstall_cmds_CXX \
20671     postuninstall_cmds_CXX \
20672     old_archive_from_expsyms_cmds_CXX \
20673     allow_undefined_flag_CXX \
20674     no_undefined_flag_CXX \
20675     export_symbols_cmds_CXX \
20676     hardcode_libdir_flag_spec_CXX \
20677     hardcode_libdir_flag_spec_ld_CXX \
20678     hardcode_libdir_separator_CXX \
20679     hardcode_automatic_CXX \
20680     module_cmds_CXX \
20681     module_expsym_cmds_CXX \
20682     lt_cv_prog_compiler_c_o_CXX \
20683     exclude_expsyms_CXX \
20684     include_expsyms_CXX; do
20685
20686     case $var in
20687     old_archive_cmds_CXX | \
20688     old_archive_from_new_cmds_CXX | \
20689     archive_cmds_CXX | \
20690     archive_expsym_cmds_CXX | \
20691     module_cmds_CXX | \
20692     module_expsym_cmds_CXX | \
20693     old_archive_from_expsyms_cmds_CXX | \
20694     export_symbols_cmds_CXX | \
20695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20696     postinstall_cmds | postuninstall_cmds | \
20697     old_postinstall_cmds | old_postuninstall_cmds | \
20698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20699       # Double-quote double-evaled strings.
20700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20701       ;;
20702     *)
20703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20704       ;;
20705     esac
20706   done
20707
20708   case $lt_echo in
20709   *'\$0 --fallback-echo"')
20710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20711     ;;
20712   esac
20713
20714 cfgfile="$ofile"
20715
20716   cat <<__EOF__ >> "$cfgfile"
20717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20718
20719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20720
20721 # Shell to use when invoking shell scripts.
20722 SHELL=$lt_SHELL
20723
20724 # Whether or not to build shared libraries.
20725 build_libtool_libs=$enable_shared
20726
20727 # Whether or not to build static libraries.
20728 build_old_libs=$enable_static
20729
20730 # Whether or not to add -lc for building shared libraries.
20731 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20732
20733 # Whether or not to disallow shared libs when runtime libs are static
20734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20735
20736 # Whether or not to optimize for fast installation.
20737 fast_install=$enable_fast_install
20738
20739 # The host system.
20740 host_alias=$host_alias
20741 host=$host
20742 host_os=$host_os
20743
20744 # The build system.
20745 build_alias=$build_alias
20746 build=$build
20747 build_os=$build_os
20748
20749 # An echo program that does not interpret backslashes.
20750 echo=$lt_echo
20751
20752 # The archiver.
20753 AR=$lt_AR
20754 AR_FLAGS=$lt_AR_FLAGS
20755
20756 # A C compiler.
20757 LTCC=$lt_LTCC
20758
20759 # LTCC compiler flags.
20760 LTCFLAGS=$lt_LTCFLAGS
20761
20762 # A language-specific compiler.
20763 CC=$lt_compiler_CXX
20764
20765 # Is the compiler the GNU C compiler?
20766 with_gcc=$GCC_CXX
20767
20768 # An ERE matcher.
20769 EGREP=$lt_EGREP
20770
20771 # The linker used to build libraries.
20772 LD=$lt_LD_CXX
20773
20774 # Whether we need hard or soft links.
20775 LN_S=$lt_LN_S
20776
20777 # A BSD-compatible nm program.
20778 NM=$lt_NM
20779
20780 # A symbol stripping program
20781 STRIP=$lt_STRIP
20782
20783 # Used to examine libraries when file_magic_cmd begins "file"
20784 MAGIC_CMD=$MAGIC_CMD
20785
20786 # Used on cygwin: DLL creation program.
20787 DLLTOOL="$DLLTOOL"
20788
20789 # Used on cygwin: object dumper.
20790 OBJDUMP="$OBJDUMP"
20791
20792 # Used on cygwin: assembler.
20793 AS="$AS"
20794
20795 # The name of the directory that contains temporary libtool files.
20796 objdir=$objdir
20797
20798 # How to create reloadable object files.
20799 reload_flag=$lt_reload_flag
20800 reload_cmds=$lt_reload_cmds
20801
20802 # How to pass a linker flag through the compiler.
20803 wl=$lt_lt_prog_compiler_wl_CXX
20804
20805 # Object file suffix (normally "o").
20806 objext="$ac_objext"
20807
20808 # Old archive suffix (normally "a").
20809 libext="$libext"
20810
20811 # Shared library suffix (normally ".so").
20812 shrext_cmds='$shrext_cmds'
20813
20814 # Executable file suffix (normally "").
20815 exeext="$exeext"
20816
20817 # Additional compiler flags for building library objects.
20818 pic_flag=$lt_lt_prog_compiler_pic_CXX
20819 pic_mode=$pic_mode
20820
20821 # What is the maximum length of a command?
20822 max_cmd_len=$lt_cv_sys_max_cmd_len
20823
20824 # Does compiler simultaneously support -c and -o options?
20825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20826
20827 # Must we lock files when doing compilation?
20828 need_locks=$lt_need_locks
20829
20830 # Do we need the lib prefix for modules?
20831 need_lib_prefix=$need_lib_prefix
20832
20833 # Do we need a version for libraries?
20834 need_version=$need_version
20835
20836 # Whether dlopen is supported.
20837 dlopen_support=$enable_dlopen
20838
20839 # Whether dlopen of programs is supported.
20840 dlopen_self=$enable_dlopen_self
20841
20842 # Whether dlopen of statically linked programs is supported.
20843 dlopen_self_static=$enable_dlopen_self_static
20844
20845 # Compiler flag to prevent dynamic linking.
20846 link_static_flag=$lt_lt_prog_compiler_static_CXX
20847
20848 # Compiler flag to turn off builtin functions.
20849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20850
20851 # Compiler flag to allow reflexive dlopens.
20852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20853
20854 # Compiler flag to generate shared objects directly from archives.
20855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20856
20857 # Compiler flag to generate thread-safe objects.
20858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20859
20860 # Library versioning type.
20861 version_type=$version_type
20862
20863 # Format of library name prefix.
20864 libname_spec=$lt_libname_spec
20865
20866 # List of archive names.  First name is the real one, the rest are links.
20867 # The last name is the one that the linker finds with -lNAME.
20868 library_names_spec=$lt_library_names_spec
20869
20870 # The coded name of the library, if different from the real name.
20871 soname_spec=$lt_soname_spec
20872
20873 # Commands used to build and install an old-style archive.
20874 RANLIB=$lt_RANLIB
20875 old_archive_cmds=$lt_old_archive_cmds_CXX
20876 old_postinstall_cmds=$lt_old_postinstall_cmds
20877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20878
20879 # Create an old-style archive from a shared archive.
20880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20881
20882 # Create a temporary old-style archive to link instead of a shared archive.
20883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20884
20885 # Commands used to build and install a shared archive.
20886 archive_cmds=$lt_archive_cmds_CXX
20887 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20888 postinstall_cmds=$lt_postinstall_cmds
20889 postuninstall_cmds=$lt_postuninstall_cmds
20890
20891 # Commands used to build a loadable module (assumed same as above if empty)
20892 module_cmds=$lt_module_cmds_CXX
20893 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20894
20895 # Commands to strip libraries.
20896 old_striplib=$lt_old_striplib
20897 striplib=$lt_striplib
20898
20899 # Dependencies to place before the objects being linked to create a
20900 # shared library.
20901 predep_objects=$lt_predep_objects_CXX
20902
20903 # Dependencies to place after the objects being linked to create a
20904 # shared library.
20905 postdep_objects=$lt_postdep_objects_CXX
20906
20907 # Dependencies to place before the objects being linked to create a
20908 # shared library.
20909 predeps=$lt_predeps_CXX
20910
20911 # Dependencies to place after the objects being linked to create a
20912 # shared library.
20913 postdeps=$lt_postdeps_CXX
20914
20915 # The library search path used internally by the compiler when linking
20916 # a shared library.
20917 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20918
20919 # Method to check whether dependent libraries are shared objects.
20920 deplibs_check_method=$lt_deplibs_check_method
20921
20922 # Command to use when deplibs_check_method == file_magic.
20923 file_magic_cmd=$lt_file_magic_cmd
20924
20925 # Flag that allows shared libraries with undefined symbols to be built.
20926 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20927
20928 # Flag that forces no undefined symbols.
20929 no_undefined_flag=$lt_no_undefined_flag_CXX
20930
20931 # Commands used to finish a libtool library installation in a directory.
20932 finish_cmds=$lt_finish_cmds
20933
20934 # Same as above, but a single script fragment to be evaled but not shown.
20935 finish_eval=$lt_finish_eval
20936
20937 # Take the output of nm and produce a listing of raw symbols and C names.
20938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20939
20940 # Transform the output of nm in a proper C declaration
20941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20942
20943 # Transform the output of nm in a C name address pair
20944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20945
20946 # This is the shared library runtime path variable.
20947 runpath_var=$runpath_var
20948
20949 # This is the shared library path variable.
20950 shlibpath_var=$shlibpath_var
20951
20952 # Is shlibpath searched before the hard-coded library search path?
20953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20954
20955 # How to hardcode a shared library path into an executable.
20956 hardcode_action=$hardcode_action_CXX
20957
20958 # Whether we should hardcode library paths into libraries.
20959 hardcode_into_libs=$hardcode_into_libs
20960
20961 # Flag to hardcode \$libdir into a binary during linking.
20962 # This must work even if \$libdir does not exist.
20963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20964
20965 # If ld is used when linking, flag to hardcode \$libdir into
20966 # a binary during linking. This must work even if \$libdir does
20967 # not exist.
20968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20969
20970 # Whether we need a single -rpath flag with a separated argument.
20971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20972
20973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20974 # resulting binary.
20975 hardcode_direct=$hardcode_direct_CXX
20976
20977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20978 # resulting binary.
20979 hardcode_minus_L=$hardcode_minus_L_CXX
20980
20981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20982 # the resulting binary.
20983 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20984
20985 # Set to yes if building a shared library automatically hardcodes DIR into the library
20986 # and all subsequent libraries and executables linked against it.
20987 hardcode_automatic=$hardcode_automatic_CXX
20988
20989 # Variables whose values should be saved in libtool wrapper scripts and
20990 # restored at relink time.
20991 variables_saved_for_relink="$variables_saved_for_relink"
20992
20993 # Whether libtool must link a program against all its dependency libraries.
20994 link_all_deplibs=$link_all_deplibs_CXX
20995
20996 # Compile-time system search path for libraries
20997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20998
20999 # Run-time system search path for libraries
21000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21001
21002 # Fix the shell variable \$srcfile for the compiler.
21003 fix_srcfile_path="$fix_srcfile_path_CXX"
21004
21005 # Set to yes if exported symbols are required.
21006 always_export_symbols=$always_export_symbols_CXX
21007
21008 # The commands to list exported symbols.
21009 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21010
21011 # The commands to extract the exported symbol list from a shared archive.
21012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21013
21014 # Symbols that should not be listed in the preloaded symbols.
21015 exclude_expsyms=$lt_exclude_expsyms_CXX
21016
21017 # Symbols that must always be exported.
21018 include_expsyms=$lt_include_expsyms_CXX
21019
21020 # ### END LIBTOOL TAG CONFIG: $tagname
21021
21022 __EOF__
21023
21024
21025 else
21026   # If there is no Makefile yet, we rely on a make rule to execute
21027   # `config.status --recheck' to rerun these tests and create the
21028   # libtool script then.
21029   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21030   if test -f "$ltmain_in"; then
21031     test -f Makefile && make "$ltmain"
21032   fi
21033 fi
21034
21035
21036 ac_ext=c
21037 ac_cpp='$CPP $CPPFLAGS'
21038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21041
21042 CC=$lt_save_CC
21043 LDCXX=$LD
21044 LD=$lt_save_LD
21045 GCC=$lt_save_GCC
21046 with_gnu_ldcxx=$with_gnu_ld
21047 with_gnu_ld=$lt_save_with_gnu_ld
21048 lt_cv_path_LDCXX=$lt_cv_path_LD
21049 lt_cv_path_LD=$lt_save_path_LD
21050 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21051 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21052
21053         else
21054           tagname=""
21055         fi
21056         ;;
21057
21058       F77)
21059         if test -n "$F77" && test "X$F77" != "Xno"; then
21060
21061 ac_ext=f
21062 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21063 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21065
21066
21067 archive_cmds_need_lc_F77=no
21068 allow_undefined_flag_F77=
21069 always_export_symbols_F77=no
21070 archive_expsym_cmds_F77=
21071 export_dynamic_flag_spec_F77=
21072 hardcode_direct_F77=no
21073 hardcode_libdir_flag_spec_F77=
21074 hardcode_libdir_flag_spec_ld_F77=
21075 hardcode_libdir_separator_F77=
21076 hardcode_minus_L_F77=no
21077 hardcode_automatic_F77=no
21078 module_cmds_F77=
21079 module_expsym_cmds_F77=
21080 link_all_deplibs_F77=unknown
21081 old_archive_cmds_F77=$old_archive_cmds
21082 no_undefined_flag_F77=
21083 whole_archive_flag_spec_F77=
21084 enable_shared_with_static_runtimes_F77=no
21085
21086 # Source file extension for f77 test sources.
21087 ac_ext=f
21088
21089 # Object file extension for compiled f77 test sources.
21090 objext=o
21091 objext_F77=$objext
21092
21093 # Code to be used in simple compile tests
21094 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21095
21096 # Code to be used in simple link tests
21097 lt_simple_link_test_code="      program t\n      end\n"
21098
21099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21100
21101 # If no C compiler was specified, use CC.
21102 LTCC=${LTCC-"$CC"}
21103
21104 # If no C compiler flags were specified, use CFLAGS.
21105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21106
21107 # Allow CC to be a program name with arguments.
21108 compiler=$CC
21109
21110
21111 # save warnings/boilerplate of simple test code
21112 ac_outfile=conftest.$ac_objext
21113 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21114 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21115 _lt_compiler_boilerplate=`cat conftest.err`
21116 $rm conftest*
21117
21118 ac_outfile=conftest.$ac_objext
21119 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21120 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21121 _lt_linker_boilerplate=`cat conftest.err`
21122 $rm conftest*
21123
21124
21125 # Allow CC to be a program name with arguments.
21126 lt_save_CC="$CC"
21127 CC=${F77-"f77"}
21128 compiler=$CC
21129 compiler_F77=$CC
21130 for cc_temp in $compiler""; do
21131   case $cc_temp in
21132     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21133     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21134     \-*) ;;
21135     *) break;;
21136   esac
21137 done
21138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21139
21140
21141 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21142 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21143 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21144 echo "${ECHO_T}$can_build_shared" >&6; }
21145
21146 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21147 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21148 test "$can_build_shared" = "no" && enable_shared=no
21149
21150 # On AIX, shared libraries and static libraries use the same namespace, and
21151 # are all built from PIC.
21152 case $host_os in
21153 aix3*)
21154   test "$enable_shared" = yes && enable_static=no
21155   if test -n "$RANLIB"; then
21156     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21157     postinstall_cmds='$RANLIB $lib'
21158   fi
21159   ;;
21160 aix4* | aix5*)
21161   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21162     test "$enable_shared" = yes && enable_static=no
21163   fi
21164   ;;
21165 esac
21166 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21167 echo "${ECHO_T}$enable_shared" >&6; }
21168
21169 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21170 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21171 # Make sure either enable_shared or enable_static is yes.
21172 test "$enable_shared" = yes || enable_static=yes
21173 { echo "$as_me:$LINENO: result: $enable_static" >&5
21174 echo "${ECHO_T}$enable_static" >&6; }
21175
21176 GCC_F77="$G77"
21177 LD_F77="$LD"
21178
21179 lt_prog_compiler_wl_F77=
21180 lt_prog_compiler_pic_F77=
21181 lt_prog_compiler_static_F77=
21182
21183 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21184 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21185
21186   if test "$GCC" = yes; then
21187     lt_prog_compiler_wl_F77='-Wl,'
21188     lt_prog_compiler_static_F77='-static'
21189
21190     case $host_os in
21191       aix*)
21192       # All AIX code is PIC.
21193       if test "$host_cpu" = ia64; then
21194         # AIX 5 now supports IA64 processor
21195         lt_prog_compiler_static_F77='-Bstatic'
21196       fi
21197       ;;
21198
21199     amigaos*)
21200       # FIXME: we need at least 68020 code to build shared libraries, but
21201       # adding the `-m68020' flag to GCC prevents building anything better,
21202       # like `-m68040'.
21203       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21204       ;;
21205
21206     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21207       # PIC is the default for these OSes.
21208       ;;
21209
21210     mingw* | pw32* | os2*)
21211       # This hack is so that the source file can tell whether it is being
21212       # built for inclusion in a dll (and should export symbols for example).
21213       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21214       ;;
21215
21216     darwin* | rhapsody*)
21217       # PIC is the default on this platform
21218       # Common symbols not allowed in MH_DYLIB files
21219       lt_prog_compiler_pic_F77='-fno-common'
21220       ;;
21221
21222     interix3*)
21223       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21224       # Instead, we relocate shared libraries at runtime.
21225       ;;
21226
21227     msdosdjgpp*)
21228       # Just because we use GCC doesn't mean we suddenly get shared libraries
21229       # on systems that don't support them.
21230       lt_prog_compiler_can_build_shared_F77=no
21231       enable_shared=no
21232       ;;
21233
21234     sysv4*MP*)
21235       if test -d /usr/nec; then
21236         lt_prog_compiler_pic_F77=-Kconform_pic
21237       fi
21238       ;;
21239
21240     hpux*)
21241       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21242       # not for PA HP-UX.
21243       case $host_cpu in
21244       hppa*64*|ia64*)
21245         # +Z the default
21246         ;;
21247       *)
21248         lt_prog_compiler_pic_F77='-fPIC'
21249         ;;
21250       esac
21251       ;;
21252
21253     *)
21254       lt_prog_compiler_pic_F77='-fPIC'
21255       ;;
21256     esac
21257   else
21258     # PORTME Check for flag to pass linker flags through the system compiler.
21259     case $host_os in
21260     aix*)
21261       lt_prog_compiler_wl_F77='-Wl,'
21262       if test "$host_cpu" = ia64; then
21263         # AIX 5 now supports IA64 processor
21264         lt_prog_compiler_static_F77='-Bstatic'
21265       else
21266         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21267       fi
21268       ;;
21269       darwin*)
21270         # PIC is the default on this platform
21271         # Common symbols not allowed in MH_DYLIB files
21272        case $cc_basename in
21273          xlc*)
21274          lt_prog_compiler_pic_F77='-qnocommon'
21275          lt_prog_compiler_wl_F77='-Wl,'
21276          ;;
21277        esac
21278        ;;
21279
21280     mingw* | pw32* | os2*)
21281       # This hack is so that the source file can tell whether it is being
21282       # built for inclusion in a dll (and should export symbols for example).
21283       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21284       ;;
21285
21286     hpux9* | hpux10* | hpux11*)
21287       lt_prog_compiler_wl_F77='-Wl,'
21288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21289       # not for PA HP-UX.
21290       case $host_cpu in
21291       hppa*64*|ia64*)
21292         # +Z the default
21293         ;;
21294       *)
21295         lt_prog_compiler_pic_F77='+Z'
21296         ;;
21297       esac
21298       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21299       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21300       ;;
21301
21302     irix5* | irix6* | nonstopux*)
21303       lt_prog_compiler_wl_F77='-Wl,'
21304       # PIC (with -KPIC) is the default.
21305       lt_prog_compiler_static_F77='-non_shared'
21306       ;;
21307
21308     newsos6)
21309       lt_prog_compiler_pic_F77='-KPIC'
21310       lt_prog_compiler_static_F77='-Bstatic'
21311       ;;
21312
21313     linux*)
21314       case $cc_basename in
21315       icc* | ecc*)
21316         lt_prog_compiler_wl_F77='-Wl,'
21317         lt_prog_compiler_pic_F77='-KPIC'
21318         lt_prog_compiler_static_F77='-static'
21319         ;;
21320       pgcc* | pgf77* | pgf90* | pgf95*)
21321         # Portland Group compilers (*not* the Pentium gcc compiler,
21322         # which looks to be a dead project)
21323         lt_prog_compiler_wl_F77='-Wl,'
21324         lt_prog_compiler_pic_F77='-fpic'
21325         lt_prog_compiler_static_F77='-Bstatic'
21326         ;;
21327       ccc*)
21328         lt_prog_compiler_wl_F77='-Wl,'
21329         # All Alpha code is PIC.
21330         lt_prog_compiler_static_F77='-non_shared'
21331         ;;
21332       esac
21333       ;;
21334
21335     osf3* | osf4* | osf5*)
21336       lt_prog_compiler_wl_F77='-Wl,'
21337       # All OSF/1 code is PIC.
21338       lt_prog_compiler_static_F77='-non_shared'
21339       ;;
21340
21341     solaris*)
21342       lt_prog_compiler_pic_F77='-KPIC'
21343       lt_prog_compiler_static_F77='-Bstatic'
21344       case $cc_basename in
21345       f77* | f90* | f95*)
21346         lt_prog_compiler_wl_F77='-Qoption ld ';;
21347       *)
21348         lt_prog_compiler_wl_F77='-Wl,';;
21349       esac
21350       ;;
21351
21352     sunos4*)
21353       lt_prog_compiler_wl_F77='-Qoption ld '
21354       lt_prog_compiler_pic_F77='-PIC'
21355       lt_prog_compiler_static_F77='-Bstatic'
21356       ;;
21357
21358     sysv4 | sysv4.2uw2* | sysv4.3*)
21359       lt_prog_compiler_wl_F77='-Wl,'
21360       lt_prog_compiler_pic_F77='-KPIC'
21361       lt_prog_compiler_static_F77='-Bstatic'
21362       ;;
21363
21364     sysv4*MP*)
21365       if test -d /usr/nec ;then
21366         lt_prog_compiler_pic_F77='-Kconform_pic'
21367         lt_prog_compiler_static_F77='-Bstatic'
21368       fi
21369       ;;
21370
21371     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21372       lt_prog_compiler_wl_F77='-Wl,'
21373       lt_prog_compiler_pic_F77='-KPIC'
21374       lt_prog_compiler_static_F77='-Bstatic'
21375       ;;
21376
21377     unicos*)
21378       lt_prog_compiler_wl_F77='-Wl,'
21379       lt_prog_compiler_can_build_shared_F77=no
21380       ;;
21381
21382     uts4*)
21383       lt_prog_compiler_pic_F77='-pic'
21384       lt_prog_compiler_static_F77='-Bstatic'
21385       ;;
21386
21387     *)
21388       lt_prog_compiler_can_build_shared_F77=no
21389       ;;
21390     esac
21391   fi
21392
21393 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21394 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21395
21396 #
21397 # Check to make sure the PIC flag actually works.
21398 #
21399 if test -n "$lt_prog_compiler_pic_F77"; then
21400
21401 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21402 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21403 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21404   echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406   lt_prog_compiler_pic_works_F77=no
21407   ac_outfile=conftest.$ac_objext
21408    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21409    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21410    # Insert the option either (1) after the last *FLAGS variable, or
21411    # (2) before a word containing "conftest.", or (3) at the end.
21412    # Note that $ac_compile itself does not contain backslashes and begins
21413    # with a dollar sign (not a hyphen), so the echo should work correctly.
21414    # The option is referenced via a variable to avoid confusing sed.
21415    lt_compile=`echo "$ac_compile" | $SED \
21416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21418    -e 's:$: $lt_compiler_flag:'`
21419    (eval echo "\"\$as_me:21419: $lt_compile\"" >&5)
21420    (eval "$lt_compile" 2>conftest.err)
21421    ac_status=$?
21422    cat conftest.err >&5
21423    echo "$as_me:21423: \$? = $ac_status" >&5
21424    if (exit $ac_status) && test -s "$ac_outfile"; then
21425      # The compiler can only warn and ignore the option if not recognized
21426      # So say no if there are warnings other than the usual output.
21427      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21428      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21429      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21430        lt_prog_compiler_pic_works_F77=yes
21431      fi
21432    fi
21433    $rm conftest*
21434
21435 fi
21436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21437 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21438
21439 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21440     case $lt_prog_compiler_pic_F77 in
21441      "" | " "*) ;;
21442      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21443      esac
21444 else
21445     lt_prog_compiler_pic_F77=
21446      lt_prog_compiler_can_build_shared_F77=no
21447 fi
21448
21449 fi
21450 case $host_os in
21451   # For platforms which do not support PIC, -DPIC is meaningless:
21452   *djgpp*)
21453     lt_prog_compiler_pic_F77=
21454     ;;
21455   *)
21456     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21457     ;;
21458 esac
21459
21460 #
21461 # Check to make sure the static flag actually works.
21462 #
21463 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21464 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21465 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21466 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469   lt_prog_compiler_static_works_F77=no
21470    save_LDFLAGS="$LDFLAGS"
21471    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21472    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21473    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21474      # The linker can only warn and ignore the option if not recognized
21475      # So say no if there are warnings
21476      if test -s conftest.err; then
21477        # Append any errors to the config.log.
21478        cat conftest.err 1>&5
21479        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21480        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21481        if diff conftest.exp conftest.er2 >/dev/null; then
21482          lt_prog_compiler_static_works_F77=yes
21483        fi
21484      else
21485        lt_prog_compiler_static_works_F77=yes
21486      fi
21487    fi
21488    $rm conftest*
21489    LDFLAGS="$save_LDFLAGS"
21490
21491 fi
21492 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21493 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21494
21495 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21496     :
21497 else
21498     lt_prog_compiler_static_F77=
21499 fi
21500
21501
21502 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21504 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21505   echo $ECHO_N "(cached) $ECHO_C" >&6
21506 else
21507   lt_cv_prog_compiler_c_o_F77=no
21508    $rm -r conftest 2>/dev/null
21509    mkdir conftest
21510    cd conftest
21511    mkdir out
21512    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21513
21514    lt_compiler_flag="-o out/conftest2.$ac_objext"
21515    # Insert the option either (1) after the last *FLAGS variable, or
21516    # (2) before a word containing "conftest.", or (3) at the end.
21517    # Note that $ac_compile itself does not contain backslashes and begins
21518    # with a dollar sign (not a hyphen), so the echo should work correctly.
21519    lt_compile=`echo "$ac_compile" | $SED \
21520    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21521    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21522    -e 's:$: $lt_compiler_flag:'`
21523    (eval echo "\"\$as_me:21523: $lt_compile\"" >&5)
21524    (eval "$lt_compile" 2>out/conftest.err)
21525    ac_status=$?
21526    cat out/conftest.err >&5
21527    echo "$as_me:21527: \$? = $ac_status" >&5
21528    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21529    then
21530      # The compiler can only warn and ignore the option if not recognized
21531      # So say no if there are warnings
21532      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21533      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21534      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21535        lt_cv_prog_compiler_c_o_F77=yes
21536      fi
21537    fi
21538    chmod u+w . 2>&5
21539    $rm conftest*
21540    # SGI C++ compiler will create directory out/ii_files/ for
21541    # template instantiation
21542    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21543    $rm out/* && rmdir out
21544    cd ..
21545    rmdir conftest
21546    $rm conftest*
21547
21548 fi
21549 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21550 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21551
21552
21553 hard_links="nottested"
21554 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21555   # do not overwrite the value of need_locks provided by the user
21556   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21557 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21558   hard_links=yes
21559   $rm conftest*
21560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21561   touch conftest.a
21562   ln conftest.a conftest.b 2>&5 || hard_links=no
21563   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21564   { echo "$as_me:$LINENO: result: $hard_links" >&5
21565 echo "${ECHO_T}$hard_links" >&6; }
21566   if test "$hard_links" = no; then
21567     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21568 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21569     need_locks=warn
21570   fi
21571 else
21572   need_locks=no
21573 fi
21574
21575 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21576 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21577
21578   runpath_var=
21579   allow_undefined_flag_F77=
21580   enable_shared_with_static_runtimes_F77=no
21581   archive_cmds_F77=
21582   archive_expsym_cmds_F77=
21583   old_archive_From_new_cmds_F77=
21584   old_archive_from_expsyms_cmds_F77=
21585   export_dynamic_flag_spec_F77=
21586   whole_archive_flag_spec_F77=
21587   thread_safe_flag_spec_F77=
21588   hardcode_libdir_flag_spec_F77=
21589   hardcode_libdir_flag_spec_ld_F77=
21590   hardcode_libdir_separator_F77=
21591   hardcode_direct_F77=no
21592   hardcode_minus_L_F77=no
21593   hardcode_shlibpath_var_F77=unsupported
21594   link_all_deplibs_F77=unknown
21595   hardcode_automatic_F77=no
21596   module_cmds_F77=
21597   module_expsym_cmds_F77=
21598   always_export_symbols_F77=no
21599   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21600   # include_expsyms should be a list of space-separated symbols to be *always*
21601   # included in the symbol list
21602   include_expsyms_F77=
21603   # exclude_expsyms can be an extended regexp of symbols to exclude
21604   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21605   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21606   # as well as any symbol that contains `d'.
21607   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21608   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21609   # platforms (ab)use it in PIC code, but their linkers get confused if
21610   # the symbol is explicitly referenced.  Since portable code cannot
21611   # rely on this symbol name, it's probably fine to never include it in
21612   # preloaded symbol tables.
21613   extract_expsyms_cmds=
21614   # Just being paranoid about ensuring that cc_basename is set.
21615   for cc_temp in $compiler""; do
21616   case $cc_temp in
21617     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21618     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21619     \-*) ;;
21620     *) break;;
21621   esac
21622 done
21623 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21624
21625   case $host_os in
21626   cygwin* | mingw* | pw32*)
21627     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21628     # When not using gcc, we currently assume that we are using
21629     # Microsoft Visual C++.
21630     if test "$GCC" != yes; then
21631       with_gnu_ld=no
21632     fi
21633     ;;
21634   interix*)
21635     # we just hope/assume this is gcc and not c89 (= MSVC++)
21636     with_gnu_ld=yes
21637     ;;
21638   openbsd*)
21639     with_gnu_ld=no
21640     ;;
21641   esac
21642
21643   ld_shlibs_F77=yes
21644   if test "$with_gnu_ld" = yes; then
21645     # If archive_cmds runs LD, not CC, wlarc should be empty
21646     wlarc='${wl}'
21647
21648     # Set some defaults for GNU ld with shared library support. These
21649     # are reset later if shared libraries are not supported. Putting them
21650     # here allows them to be overridden if necessary.
21651     runpath_var=LD_RUN_PATH
21652     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21653     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21654     # ancient GNU ld didn't support --whole-archive et. al.
21655     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21656         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21657       else
21658         whole_archive_flag_spec_F77=
21659     fi
21660     supports_anon_versioning=no
21661     case `$LD -v 2>/dev/null` in
21662       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21663       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21664       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21665       *\ 2.11.*) ;; # other 2.11 versions
21666       *) supports_anon_versioning=yes ;;
21667     esac
21668
21669     # See if GNU ld supports shared libraries.
21670     case $host_os in
21671     aix3* | aix4* | aix5*)
21672       # On AIX/PPC, the GNU linker is very broken
21673       if test "$host_cpu" != ia64; then
21674         ld_shlibs_F77=no
21675         cat <<EOF 1>&2
21676
21677 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21678 *** to be unable to reliably create shared libraries on AIX.
21679 *** Therefore, libtool is disabling shared libraries support.  If you
21680 *** really care for shared libraries, you may want to modify your PATH
21681 *** so that a non-GNU linker is found, and then restart.
21682
21683 EOF
21684       fi
21685       ;;
21686
21687     amigaos*)
21688       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)'
21689       hardcode_libdir_flag_spec_F77='-L$libdir'
21690       hardcode_minus_L_F77=yes
21691
21692       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21693       # that the semantics of dynamic libraries on AmigaOS, at least up
21694       # to version 4, is to share data among multiple programs linked
21695       # with the same dynamic library.  Since this doesn't match the
21696       # behavior of shared libraries on other platforms, we can't use
21697       # them.
21698       ld_shlibs_F77=no
21699       ;;
21700
21701     beos*)
21702       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21703         allow_undefined_flag_F77=unsupported
21704         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21705         # support --undefined.  This deserves some investigation.  FIXME
21706         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21707       else
21708         ld_shlibs_F77=no
21709       fi
21710       ;;
21711
21712     cygwin* | mingw* | pw32*)
21713       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21714       # as there is no search path for DLLs.
21715       hardcode_libdir_flag_spec_F77='-L$libdir'
21716       allow_undefined_flag_F77=unsupported
21717       always_export_symbols_F77=no
21718       enable_shared_with_static_runtimes_F77=yes
21719       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21720
21721       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21722         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21723         # If the export-symbols file already is a .def file (1st line
21724         # is EXPORTS), use it as is; otherwise, prepend...
21725         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21726           cp $export_symbols $output_objdir/$soname.def;
21727         else
21728           echo EXPORTS > $output_objdir/$soname.def;
21729           cat $export_symbols >> $output_objdir/$soname.def;
21730         fi~
21731         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21732       else
21733         ld_shlibs_F77=no
21734       fi
21735       ;;
21736
21737     interix3*)
21738       hardcode_direct_F77=no
21739       hardcode_shlibpath_var_F77=no
21740       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21741       export_dynamic_flag_spec_F77='${wl}-E'
21742       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21743       # Instead, shared libraries are loaded at an image base (0x10000000 by
21744       # default) and relocated if they conflict, which is a slow very memory
21745       # consuming and fragmenting process.  To avoid this, we pick a random,
21746       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21747       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21748       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'
21749       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'
21750       ;;
21751
21752     linux*)
21753       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754         tmp_addflag=
21755         case $cc_basename,$host_cpu in
21756         pgcc*)                          # Portland Group C compiler
21757           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'
21758           tmp_addflag=' $pic_flag'
21759           ;;
21760         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21761           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'
21762           tmp_addflag=' $pic_flag -Mnomain' ;;
21763         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21764           tmp_addflag=' -i_dynamic' ;;
21765         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21766           tmp_addflag=' -i_dynamic -nofor_main' ;;
21767         ifc* | ifort*)                  # Intel Fortran compiler
21768           tmp_addflag=' -nofor_main' ;;
21769         esac
21770         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771
21772         if test $supports_anon_versioning = yes; then
21773           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21774   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21775   $echo "local: *; };" >> $output_objdir/$libname.ver~
21776           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21777         fi
21778       else
21779         ld_shlibs_F77=no
21780       fi
21781       ;;
21782
21783     netbsd*)
21784       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21785         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21786         wlarc=
21787       else
21788         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21789         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21790       fi
21791       ;;
21792
21793     solaris*)
21794       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21795         ld_shlibs_F77=no
21796         cat <<EOF 1>&2
21797
21798 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21799 *** create shared libraries on Solaris systems.  Therefore, libtool
21800 *** is disabling shared libraries support.  We urge you to upgrade GNU
21801 *** binutils to release 2.9.1 or newer.  Another option is to modify
21802 *** your PATH or compiler configuration so that the native linker is
21803 *** used, and then restart.
21804
21805 EOF
21806       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21807         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21808         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21809       else
21810         ld_shlibs_F77=no
21811       fi
21812       ;;
21813
21814     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21815       case `$LD -v 2>&1` in
21816         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21817         ld_shlibs_F77=no
21818         cat <<_LT_EOF 1>&2
21819
21820 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21821 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21822 *** is disabling shared libraries support.  We urge you to upgrade GNU
21823 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21824 *** your PATH or compiler configuration so that the native linker is
21825 *** used, and then restart.
21826
21827 _LT_EOF
21828         ;;
21829         *)
21830           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21831             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21832             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21833             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21834           else
21835             ld_shlibs_F77=no
21836           fi
21837         ;;
21838       esac
21839       ;;
21840
21841     sunos4*)
21842       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21843       wlarc=
21844       hardcode_direct_F77=yes
21845       hardcode_shlibpath_var_F77=no
21846       ;;
21847
21848     *)
21849       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21850         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21851         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21852       else
21853         ld_shlibs_F77=no
21854       fi
21855       ;;
21856     esac
21857
21858     if test "$ld_shlibs_F77" = no; then
21859       runpath_var=
21860       hardcode_libdir_flag_spec_F77=
21861       export_dynamic_flag_spec_F77=
21862       whole_archive_flag_spec_F77=
21863     fi
21864   else
21865     # PORTME fill in a description of your system's linker (not GNU ld)
21866     case $host_os in
21867     aix3*)
21868       allow_undefined_flag_F77=unsupported
21869       always_export_symbols_F77=yes
21870       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'
21871       # Note: this linker hardcodes the directories in LIBPATH if there
21872       # are no directories specified by -L.
21873       hardcode_minus_L_F77=yes
21874       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21875         # Neither direct hardcoding nor static linking is supported with a
21876         # broken collect2.
21877         hardcode_direct_F77=unsupported
21878       fi
21879       ;;
21880
21881     aix4* | aix5*)
21882       if test "$host_cpu" = ia64; then
21883         # On IA64, the linker does run time linking by default, so we don't
21884         # have to do anything special.
21885         aix_use_runtimelinking=no
21886         exp_sym_flag='-Bexport'
21887         no_entry_flag=""
21888       else
21889         # If we're using GNU nm, then we don't want the "-C" option.
21890         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21891         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21892           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'
21893         else
21894           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'
21895         fi
21896         aix_use_runtimelinking=no
21897
21898         # Test if we are trying to use run time linking or normal
21899         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21900         # need to do runtime linking.
21901         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21902           for ld_flag in $LDFLAGS; do
21903           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21904             aix_use_runtimelinking=yes
21905             break
21906           fi
21907           done
21908           ;;
21909         esac
21910
21911         exp_sym_flag='-bexport'
21912         no_entry_flag='-bnoentry'
21913       fi
21914
21915       # When large executables or shared objects are built, AIX ld can
21916       # have problems creating the table of contents.  If linking a library
21917       # or program results in "error TOC overflow" add -mminimal-toc to
21918       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21919       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21920
21921       archive_cmds_F77=''
21922       hardcode_direct_F77=yes
21923       hardcode_libdir_separator_F77=':'
21924       link_all_deplibs_F77=yes
21925
21926       if test "$GCC" = yes; then
21927         case $host_os in aix4.[012]|aix4.[012].*)
21928         # We only want to do this on AIX 4.2 and lower, the check
21929         # below for broken collect2 doesn't work under 4.3+
21930           collect2name=`${CC} -print-prog-name=collect2`
21931           if test -f "$collect2name" && \
21932            strings "$collect2name" | grep resolve_lib_name >/dev/null
21933           then
21934           # We have reworked collect2
21935           hardcode_direct_F77=yes
21936           else
21937           # We have old collect2
21938           hardcode_direct_F77=unsupported
21939           # It fails to find uninstalled libraries when the uninstalled
21940           # path is not listed in the libpath.  Setting hardcode_minus_L
21941           # to unsupported forces relinking
21942           hardcode_minus_L_F77=yes
21943           hardcode_libdir_flag_spec_F77='-L$libdir'
21944           hardcode_libdir_separator_F77=
21945           fi
21946           ;;
21947         esac
21948         shared_flag='-shared'
21949         if test "$aix_use_runtimelinking" = yes; then
21950           shared_flag="$shared_flag "'${wl}-G'
21951         fi
21952       else
21953         # not using gcc
21954         if test "$host_cpu" = ia64; then
21955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21956         # chokes on -Wl,-G. The following line is correct:
21957           shared_flag='-G'
21958         else
21959           if test "$aix_use_runtimelinking" = yes; then
21960             shared_flag='${wl}-G'
21961           else
21962             shared_flag='${wl}-bM:SRE'
21963           fi
21964         fi
21965       fi
21966
21967       # It seems that -bexpall does not export symbols beginning with
21968       # underscore (_), so it is better to generate a list of symbols to export.
21969       always_export_symbols_F77=yes
21970       if test "$aix_use_runtimelinking" = yes; then
21971         # Warning - without using the other runtime loading flags (-brtl),
21972         # -berok will link without error, but may produce a broken library.
21973         allow_undefined_flag_F77='-berok'
21974        # Determine the default libpath from the value encoded in an empty executable.
21975        cat >conftest.$ac_ext <<_ACEOF
21976       program main
21977
21978       end
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_link") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } && {
21994          test -z "$ac_f77_werror_flag" ||
21995          test ! -s conftest.err
21996        } && test -s conftest$ac_exeext &&
21997        $as_test_x conftest$ac_exeext; then
21998
21999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22000 }'`
22001 # Check for a 64-bit object if we didn't find anything.
22002 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22003 }'`; fi
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008
22009 fi
22010
22011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22012       conftest$ac_exeext conftest.$ac_ext
22013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22014
22015        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22016         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"
22017        else
22018         if test "$host_cpu" = ia64; then
22019           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22020           allow_undefined_flag_F77="-z nodefs"
22021           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"
22022         else
22023          # Determine the default libpath from the value encoded in an empty executable.
22024          cat >conftest.$ac_ext <<_ACEOF
22025       program main
22026
22027       end
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (ac_try="$ac_link"
22031 case "(($ac_try" in
22032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033   *) ac_try_echo=$ac_try;;
22034 esac
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036   (eval "$ac_link") 2>conftest.er1
22037   ac_status=$?
22038   grep -v '^ *+' conftest.er1 >conftest.err
22039   rm -f conftest.er1
22040   cat conftest.err >&5
22041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042   (exit $ac_status); } && {
22043          test -z "$ac_f77_werror_flag" ||
22044          test ! -s conftest.err
22045        } && test -s conftest$ac_exeext &&
22046        $as_test_x conftest$ac_exeext; then
22047
22048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22049 }'`
22050 # Check for a 64-bit object if we didn't find anything.
22051 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22052 }'`; fi
22053 else
22054   echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22056
22057
22058 fi
22059
22060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22061       conftest$ac_exeext conftest.$ac_ext
22062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22063
22064          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22065           # Warning - without using the other run time loading flags,
22066           # -berok will link without error, but may produce a broken library.
22067           no_undefined_flag_F77=' ${wl}-bernotok'
22068           allow_undefined_flag_F77=' ${wl}-berok'
22069           # Exported symbols can be pulled into shared objects from archives
22070           whole_archive_flag_spec_F77='$convenience'
22071           archive_cmds_need_lc_F77=yes
22072           # This is similar to how AIX traditionally builds its shared libraries.
22073           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'
22074         fi
22075       fi
22076       ;;
22077
22078     amigaos*)
22079       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)'
22080       hardcode_libdir_flag_spec_F77='-L$libdir'
22081       hardcode_minus_L_F77=yes
22082       # see comment about different semantics on the GNU ld section
22083       ld_shlibs_F77=no
22084       ;;
22085
22086     bsdi[45]*)
22087       export_dynamic_flag_spec_F77=-rdynamic
22088       ;;
22089
22090     cygwin* | mingw* | pw32*)
22091       # When not using gcc, we currently assume that we are using
22092       # Microsoft Visual C++.
22093       # hardcode_libdir_flag_spec is actually meaningless, as there is
22094       # no search path for DLLs.
22095       hardcode_libdir_flag_spec_F77=' '
22096       allow_undefined_flag_F77=unsupported
22097       # Tell ltmain to make .lib files, not .a files.
22098       libext=lib
22099       # Tell ltmain to make .dll files, not .so files.
22100       shrext_cmds=".dll"
22101       # FIXME: Setting linknames here is a bad hack.
22102       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22103       # The linker will automatically build a .lib file if we build a DLL.
22104       old_archive_From_new_cmds_F77='true'
22105       # FIXME: Should let the user specify the lib program.
22106       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22107       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22108       enable_shared_with_static_runtimes_F77=yes
22109       ;;
22110
22111     darwin* | rhapsody*)
22112       case $host_os in
22113         rhapsody* | darwin1.[012])
22114          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22115          ;;
22116        *) # Darwin 1.3 on
22117          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22118            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22119          else
22120            case ${MACOSX_DEPLOYMENT_TARGET} in
22121              10.[012])
22122                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22123                ;;
22124              10.*)
22125                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22126                ;;
22127            esac
22128          fi
22129          ;;
22130       esac
22131       archive_cmds_need_lc_F77=no
22132       hardcode_direct_F77=no
22133       hardcode_automatic_F77=yes
22134       hardcode_shlibpath_var_F77=unsupported
22135       whole_archive_flag_spec_F77=''
22136       link_all_deplibs_F77=yes
22137     if test "$GCC" = yes ; then
22138         output_verbose_link_cmd='echo'
22139         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22140       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22141       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22142       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}'
22143       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}'
22144     else
22145       case $cc_basename in
22146         xlc*)
22147          output_verbose_link_cmd='echo'
22148          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22149          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22150           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22151          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22152           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}'
22153           ;;
22154        *)
22155          ld_shlibs_F77=no
22156           ;;
22157       esac
22158     fi
22159       ;;
22160
22161     dgux*)
22162       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22163       hardcode_libdir_flag_spec_F77='-L$libdir'
22164       hardcode_shlibpath_var_F77=no
22165       ;;
22166
22167     freebsd1*)
22168       ld_shlibs_F77=no
22169       ;;
22170
22171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22172     # support.  Future versions do this automatically, but an explicit c++rt0.o
22173     # does not break anything, and helps significantly (at the cost of a little
22174     # extra space).
22175     freebsd2.2*)
22176       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22177       hardcode_libdir_flag_spec_F77='-R$libdir'
22178       hardcode_direct_F77=yes
22179       hardcode_shlibpath_var_F77=no
22180       ;;
22181
22182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22183     freebsd2*)
22184       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22185       hardcode_direct_F77=yes
22186       hardcode_minus_L_F77=yes
22187       hardcode_shlibpath_var_F77=no
22188       ;;
22189
22190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22191     freebsd* | kfreebsd*-gnu | dragonfly*)
22192       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22193       hardcode_libdir_flag_spec_F77='-R$libdir'
22194       hardcode_direct_F77=yes
22195       hardcode_shlibpath_var_F77=no
22196       ;;
22197
22198     hpux9*)
22199       if test "$GCC" = yes; then
22200         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'
22201       else
22202         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'
22203       fi
22204       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22205       hardcode_libdir_separator_F77=:
22206       hardcode_direct_F77=yes
22207
22208       # hardcode_minus_L: Not really in the search PATH,
22209       # but as the default location of the library.
22210       hardcode_minus_L_F77=yes
22211       export_dynamic_flag_spec_F77='${wl}-E'
22212       ;;
22213
22214     hpux10*)
22215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22216         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22217       else
22218         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22219       fi
22220       if test "$with_gnu_ld" = no; then
22221         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22222         hardcode_libdir_separator_F77=:
22223
22224         hardcode_direct_F77=yes
22225         export_dynamic_flag_spec_F77='${wl}-E'
22226
22227         # hardcode_minus_L: Not really in the search PATH,
22228         # but as the default location of the library.
22229         hardcode_minus_L_F77=yes
22230       fi
22231       ;;
22232
22233     hpux11*)
22234       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22235         case $host_cpu in
22236         hppa*64*)
22237           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22238           ;;
22239         ia64*)
22240           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22241           ;;
22242         *)
22243           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22244           ;;
22245         esac
22246       else
22247         case $host_cpu in
22248         hppa*64*)
22249           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22250           ;;
22251         ia64*)
22252           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22253           ;;
22254         *)
22255           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22256           ;;
22257         esac
22258       fi
22259       if test "$with_gnu_ld" = no; then
22260         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22261         hardcode_libdir_separator_F77=:
22262
22263         case $host_cpu in
22264         hppa*64*|ia64*)
22265           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22266           hardcode_direct_F77=no
22267           hardcode_shlibpath_var_F77=no
22268           ;;
22269         *)
22270           hardcode_direct_F77=yes
22271           export_dynamic_flag_spec_F77='${wl}-E'
22272
22273           # hardcode_minus_L: Not really in the search PATH,
22274           # but as the default location of the library.
22275           hardcode_minus_L_F77=yes
22276           ;;
22277         esac
22278       fi
22279       ;;
22280
22281     irix5* | irix6* | nonstopux*)
22282       if test "$GCC" = yes; then
22283         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'
22284       else
22285         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'
22286         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22287       fi
22288       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22289       hardcode_libdir_separator_F77=:
22290       link_all_deplibs_F77=yes
22291       ;;
22292
22293     netbsd*)
22294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22295         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22296       else
22297         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22298       fi
22299       hardcode_libdir_flag_spec_F77='-R$libdir'
22300       hardcode_direct_F77=yes
22301       hardcode_shlibpath_var_F77=no
22302       ;;
22303
22304     newsos6)
22305       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22306       hardcode_direct_F77=yes
22307       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22308       hardcode_libdir_separator_F77=:
22309       hardcode_shlibpath_var_F77=no
22310       ;;
22311
22312     openbsd*)
22313       hardcode_direct_F77=yes
22314       hardcode_shlibpath_var_F77=no
22315       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22316         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22317         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22318         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22319         export_dynamic_flag_spec_F77='${wl}-E'
22320       else
22321        case $host_os in
22322          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22323            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22324            hardcode_libdir_flag_spec_F77='-R$libdir'
22325            ;;
22326          *)
22327            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22328            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22329            ;;
22330        esac
22331       fi
22332       ;;
22333
22334     os2*)
22335       hardcode_libdir_flag_spec_F77='-L$libdir'
22336       hardcode_minus_L_F77=yes
22337       allow_undefined_flag_F77=unsupported
22338       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'
22339       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22340       ;;
22341
22342     osf3*)
22343       if test "$GCC" = yes; then
22344         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22345         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'
22346       else
22347         allow_undefined_flag_F77=' -expect_unresolved \*'
22348         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'
22349       fi
22350       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22351       hardcode_libdir_separator_F77=:
22352       ;;
22353
22354     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22355       if test "$GCC" = yes; then
22356         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22357         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'
22358         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22359       else
22360         allow_undefined_flag_F77=' -expect_unresolved \*'
22361         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'
22362         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~
22363         $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'
22364
22365         # Both c and cxx compiler support -rpath directly
22366         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22367       fi
22368       hardcode_libdir_separator_F77=:
22369       ;;
22370
22371     solaris*)
22372       no_undefined_flag_F77=' -z text'
22373       if test "$GCC" = yes; then
22374         wlarc='${wl}'
22375         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22376         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22377           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22378       else
22379         wlarc=''
22380         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22381         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22382         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22383       fi
22384       hardcode_libdir_flag_spec_F77='-R$libdir'
22385       hardcode_shlibpath_var_F77=no
22386       case $host_os in
22387       solaris2.[0-5] | solaris2.[0-5].*) ;;
22388       *)
22389         # The compiler driver will combine linker options so we
22390         # cannot just pass the convience library names through
22391         # without $wl, iff we do not link with $LD.
22392         # Luckily, gcc supports the same syntax we need for Sun Studio.
22393         # Supported since Solaris 2.6 (maybe 2.5.1?)
22394         case $wlarc in
22395         '')
22396           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22397         *)
22398           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22399         esac ;;
22400       esac
22401       link_all_deplibs_F77=yes
22402       ;;
22403
22404     sunos4*)
22405       if test "x$host_vendor" = xsequent; then
22406         # Use $CC to link under sequent, because it throws in some extra .o
22407         # files that make .init and .fini sections work.
22408         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22409       else
22410         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22411       fi
22412       hardcode_libdir_flag_spec_F77='-L$libdir'
22413       hardcode_direct_F77=yes
22414       hardcode_minus_L_F77=yes
22415       hardcode_shlibpath_var_F77=no
22416       ;;
22417
22418     sysv4)
22419       case $host_vendor in
22420         sni)
22421           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22422           hardcode_direct_F77=yes # is this really true???
22423         ;;
22424         siemens)
22425           ## LD is ld it makes a PLAMLIB
22426           ## CC just makes a GrossModule.
22427           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22428           reload_cmds_F77='$CC -r -o $output$reload_objs'
22429           hardcode_direct_F77=no
22430         ;;
22431         motorola)
22432           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22433           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22434         ;;
22435       esac
22436       runpath_var='LD_RUN_PATH'
22437       hardcode_shlibpath_var_F77=no
22438       ;;
22439
22440     sysv4.3*)
22441       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22442       hardcode_shlibpath_var_F77=no
22443       export_dynamic_flag_spec_F77='-Bexport'
22444       ;;
22445
22446     sysv4*MP*)
22447       if test -d /usr/nec; then
22448         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22449         hardcode_shlibpath_var_F77=no
22450         runpath_var=LD_RUN_PATH
22451         hardcode_runpath_var=yes
22452         ld_shlibs_F77=yes
22453       fi
22454       ;;
22455
22456     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22457       no_undefined_flag_F77='${wl}-z,text'
22458       archive_cmds_need_lc_F77=no
22459       hardcode_shlibpath_var_F77=no
22460       runpath_var='LD_RUN_PATH'
22461
22462       if test "$GCC" = yes; then
22463         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22464         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22465       else
22466         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22467         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22468       fi
22469       ;;
22470
22471     sysv5* | sco3.2v5* | sco5v6*)
22472       # Note: We can NOT use -z defs as we might desire, because we do not
22473       # link with -lc, and that would cause any symbols used from libc to
22474       # always be unresolved, which means just about no library would
22475       # ever link correctly.  If we're not using GNU ld we use -z text
22476       # though, which does catch some bad symbols but isn't as heavy-handed
22477       # as -z defs.
22478       no_undefined_flag_F77='${wl}-z,text'
22479       allow_undefined_flag_F77='${wl}-z,nodefs'
22480       archive_cmds_need_lc_F77=no
22481       hardcode_shlibpath_var_F77=no
22482       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22483       hardcode_libdir_separator_F77=':'
22484       link_all_deplibs_F77=yes
22485       export_dynamic_flag_spec_F77='${wl}-Bexport'
22486       runpath_var='LD_RUN_PATH'
22487
22488       if test "$GCC" = yes; then
22489         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22490         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22491       else
22492         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22493         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22494       fi
22495       ;;
22496
22497     uts4*)
22498       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22499       hardcode_libdir_flag_spec_F77='-L$libdir'
22500       hardcode_shlibpath_var_F77=no
22501       ;;
22502
22503     *)
22504       ld_shlibs_F77=no
22505       ;;
22506     esac
22507   fi
22508
22509 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22510 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22511 test "$ld_shlibs_F77" = no && can_build_shared=no
22512
22513 #
22514 # Do we need to explicitly link libc?
22515 #
22516 case "x$archive_cmds_need_lc_F77" in
22517 x|xyes)
22518   # Assume -lc should be added
22519   archive_cmds_need_lc_F77=yes
22520
22521   if test "$enable_shared" = yes && test "$GCC" = yes; then
22522     case $archive_cmds_F77 in
22523     *'~'*)
22524       # FIXME: we may have to deal with multi-command sequences.
22525       ;;
22526     '$CC '*)
22527       # Test whether the compiler implicitly links with -lc since on some
22528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22529       # to ld, don't add -lc before -lgcc.
22530       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22532       $rm conftest*
22533       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22534
22535       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22536   (eval $ac_compile) 2>&5
22537   ac_status=$?
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } 2>conftest.err; then
22540         soname=conftest
22541         lib=conftest
22542         libobjs=conftest.$ac_objext
22543         deplibs=
22544         wl=$lt_prog_compiler_wl_F77
22545         pic_flag=$lt_prog_compiler_pic_F77
22546         compiler_flags=-v
22547         linker_flags=-v
22548         verstring=
22549         output_objdir=.
22550         libname=conftest
22551         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22552         allow_undefined_flag_F77=
22553         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22554   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22555   ac_status=$?
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); }
22558         then
22559           archive_cmds_need_lc_F77=no
22560         else
22561           archive_cmds_need_lc_F77=yes
22562         fi
22563         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22564       else
22565         cat conftest.err 1>&5
22566       fi
22567       $rm conftest*
22568       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22569 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22570       ;;
22571     esac
22572   fi
22573   ;;
22574 esac
22575
22576 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22578 library_names_spec=
22579 libname_spec='lib$name'
22580 soname_spec=
22581 shrext_cmds=".so"
22582 postinstall_cmds=
22583 postuninstall_cmds=
22584 finish_cmds=
22585 finish_eval=
22586 shlibpath_var=
22587 shlibpath_overrides_runpath=unknown
22588 version_type=none
22589 dynamic_linker="$host_os ld.so"
22590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22591 if test "$GCC" = yes; then
22592   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22593   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22594     # if the path contains ";" then we assume it to be the separator
22595     # otherwise default to the standard path separator (i.e. ":") - it is
22596     # assumed that no part of a normal pathname contains ";" but that should
22597     # okay in the real world where ";" in dirpaths is itself problematic.
22598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22599   else
22600     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22601   fi
22602 else
22603   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22604 fi
22605 need_lib_prefix=unknown
22606 hardcode_into_libs=no
22607
22608 # when you set need_version to no, make sure it does not cause -set_version
22609 # flags to be left without arguments
22610 need_version=unknown
22611
22612 case $host_os in
22613 aix3*)
22614   version_type=linux
22615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22616   shlibpath_var=LIBPATH
22617
22618   # AIX 3 has no versioning support, so we append a major version to the name.
22619   soname_spec='${libname}${release}${shared_ext}$major'
22620   ;;
22621
22622 aix4* | aix5*)
22623   version_type=linux
22624   need_lib_prefix=no
22625   need_version=no
22626   hardcode_into_libs=yes
22627   if test "$host_cpu" = ia64; then
22628     # AIX 5 supports IA64
22629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22630     shlibpath_var=LD_LIBRARY_PATH
22631   else
22632     # With GCC up to 2.95.x, collect2 would create an import file
22633     # for dependence libraries.  The import file would start with
22634     # the line `#! .'.  This would cause the generated library to
22635     # depend on `.', always an invalid library.  This was fixed in
22636     # development snapshots of GCC prior to 3.0.
22637     case $host_os in
22638       aix4 | aix4.[01] | aix4.[01].*)
22639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22640            echo ' yes '
22641            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22642         :
22643       else
22644         can_build_shared=no
22645       fi
22646       ;;
22647     esac
22648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22649     # soname into executable. Probably we can add versioning support to
22650     # collect2, so additional links can be useful in future.
22651     if test "$aix_use_runtimelinking" = yes; then
22652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22653       # instead of lib<name>.a to let people know that these are not
22654       # typical AIX shared libraries.
22655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22656     else
22657       # We preserve .a as extension for shared libraries through AIX4.2
22658       # and later when we are not doing run time linking.
22659       library_names_spec='${libname}${release}.a $libname.a'
22660       soname_spec='${libname}${release}${shared_ext}$major'
22661     fi
22662     shlibpath_var=LIBPATH
22663   fi
22664   ;;
22665
22666 amigaos*)
22667   library_names_spec='$libname.ixlibrary $libname.a'
22668   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22669   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'
22670   ;;
22671
22672 beos*)
22673   library_names_spec='${libname}${shared_ext}'
22674   dynamic_linker="$host_os ld.so"
22675   shlibpath_var=LIBRARY_PATH
22676   ;;
22677
22678 bsdi[45]*)
22679   version_type=linux
22680   need_version=no
22681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22682   soname_spec='${libname}${release}${shared_ext}$major'
22683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22684   shlibpath_var=LD_LIBRARY_PATH
22685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22687   # the default ld.so.conf also contains /usr/contrib/lib and
22688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22689   # libtool to hard-code these into programs
22690   ;;
22691
22692 cygwin* | mingw* | pw32*)
22693   version_type=windows
22694   shrext_cmds=".dll"
22695   need_version=no
22696   need_lib_prefix=no
22697
22698   case $GCC,$host_os in
22699   yes,cygwin* | yes,mingw* | yes,pw32*)
22700     library_names_spec='$libname.dll.a'
22701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22702     postinstall_cmds='base_file=`basename \${file}`~
22703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22704       dldir=$destdir/`dirname \$dlpath`~
22705       test -d \$dldir || mkdir -p \$dldir~
22706       $install_prog $dir/$dlname \$dldir/$dlname~
22707       chmod a+x \$dldir/$dlname'
22708     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22709       dlpath=$dir/\$dldll~
22710        $rm \$dlpath'
22711     shlibpath_overrides_runpath=yes
22712
22713     case $host_os in
22714     cygwin*)
22715       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22716       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22717       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22718       ;;
22719     mingw*)
22720       # MinGW DLLs use traditional 'lib' prefix
22721       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22722       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22723       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22724         # It is most probably a Windows format PATH printed by
22725         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22726         # path with ; separators, and with drive letters. We can handle the
22727         # drive letters (cygwin fileutils understands them), so leave them,
22728         # especially as we might pass files found there to a mingw objdump,
22729         # which wouldn't understand a cygwinified path. Ahh.
22730         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22731       else
22732         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22733       fi
22734       ;;
22735     pw32*)
22736       # pw32 DLLs use 'pw' prefix rather than 'lib'
22737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22738       ;;
22739     esac
22740     ;;
22741
22742   *)
22743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22744     ;;
22745   esac
22746   dynamic_linker='Win32 ld.exe'
22747   # FIXME: first we should search . and the directory the executable is in
22748   shlibpath_var=PATH
22749   ;;
22750
22751 darwin* | rhapsody*)
22752   dynamic_linker="$host_os dyld"
22753   version_type=darwin
22754   need_lib_prefix=no
22755   need_version=no
22756   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22757   soname_spec='${libname}${release}${major}$shared_ext'
22758   shlibpath_overrides_runpath=yes
22759   shlibpath_var=DYLD_LIBRARY_PATH
22760   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22761   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22762   if test "$GCC" = yes; then
22763     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22764   else
22765     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22766   fi
22767   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22768   ;;
22769
22770 dgux*)
22771   version_type=linux
22772   need_lib_prefix=no
22773   need_version=no
22774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22775   soname_spec='${libname}${release}${shared_ext}$major'
22776   shlibpath_var=LD_LIBRARY_PATH
22777   ;;
22778
22779 freebsd1*)
22780   dynamic_linker=no
22781   ;;
22782
22783 kfreebsd*-gnu)
22784   version_type=linux
22785   need_lib_prefix=no
22786   need_version=no
22787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22788   soname_spec='${libname}${release}${shared_ext}$major'
22789   shlibpath_var=LD_LIBRARY_PATH
22790   shlibpath_overrides_runpath=no
22791   hardcode_into_libs=yes
22792   dynamic_linker='GNU ld.so'
22793   ;;
22794
22795 freebsd* | dragonfly*)
22796   # DragonFly does not have aout.  When/if they implement a new
22797   # versioning mechanism, adjust this.
22798   if test -x /usr/bin/objformat; then
22799     objformat=`/usr/bin/objformat`
22800   else
22801     case $host_os in
22802     freebsd[123]*) objformat=aout ;;
22803     *) objformat=elf ;;
22804     esac
22805   fi
22806   version_type=freebsd-$objformat
22807   case $version_type in
22808     freebsd-elf*)
22809       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22810       need_version=no
22811       need_lib_prefix=no
22812       ;;
22813     freebsd-*)
22814       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22815       need_version=yes
22816       ;;
22817   esac
22818   shlibpath_var=LD_LIBRARY_PATH
22819   case $host_os in
22820   freebsd2*)
22821     shlibpath_overrides_runpath=yes
22822     ;;
22823   freebsd3.[01]* | freebsdelf3.[01]*)
22824     shlibpath_overrides_runpath=yes
22825     hardcode_into_libs=yes
22826     ;;
22827   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22828   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22829     shlibpath_overrides_runpath=no
22830     hardcode_into_libs=yes
22831     ;;
22832   freebsd*) # from 4.6 on
22833     shlibpath_overrides_runpath=yes
22834     hardcode_into_libs=yes
22835     ;;
22836   esac
22837   ;;
22838
22839 gnu*)
22840   version_type=linux
22841   need_lib_prefix=no
22842   need_version=no
22843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22844   soname_spec='${libname}${release}${shared_ext}$major'
22845   shlibpath_var=LD_LIBRARY_PATH
22846   hardcode_into_libs=yes
22847   ;;
22848
22849 hpux9* | hpux10* | hpux11*)
22850   # Give a soname corresponding to the major version so that dld.sl refuses to
22851   # link against other versions.
22852   version_type=sunos
22853   need_lib_prefix=no
22854   need_version=no
22855   case $host_cpu in
22856   ia64*)
22857     shrext_cmds='.so'
22858     hardcode_into_libs=yes
22859     dynamic_linker="$host_os dld.so"
22860     shlibpath_var=LD_LIBRARY_PATH
22861     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22863     soname_spec='${libname}${release}${shared_ext}$major'
22864     if test "X$HPUX_IA64_MODE" = X32; then
22865       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22866     else
22867       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22868     fi
22869     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22870     ;;
22871    hppa*64*)
22872      shrext_cmds='.sl'
22873      hardcode_into_libs=yes
22874      dynamic_linker="$host_os dld.sl"
22875      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22876      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878      soname_spec='${libname}${release}${shared_ext}$major'
22879      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22880      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22881      ;;
22882    *)
22883     shrext_cmds='.sl'
22884     dynamic_linker="$host_os dld.sl"
22885     shlibpath_var=SHLIB_PATH
22886     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888     soname_spec='${libname}${release}${shared_ext}$major'
22889     ;;
22890   esac
22891   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22892   postinstall_cmds='chmod 555 $lib'
22893   ;;
22894
22895 interix3*)
22896   version_type=linux
22897   need_lib_prefix=no
22898   need_version=no
22899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22900   soname_spec='${libname}${release}${shared_ext}$major'
22901   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22902   shlibpath_var=LD_LIBRARY_PATH
22903   shlibpath_overrides_runpath=no
22904   hardcode_into_libs=yes
22905   ;;
22906
22907 irix5* | irix6* | nonstopux*)
22908   case $host_os in
22909     nonstopux*) version_type=nonstopux ;;
22910     *)
22911         if test "$lt_cv_prog_gnu_ld" = yes; then
22912                 version_type=linux
22913         else
22914                 version_type=irix
22915         fi ;;
22916   esac
22917   need_lib_prefix=no
22918   need_version=no
22919   soname_spec='${libname}${release}${shared_ext}$major'
22920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22921   case $host_os in
22922   irix5* | nonstopux*)
22923     libsuff= shlibsuff=
22924     ;;
22925   *)
22926     case $LD in # libtool.m4 will add one of these switches to LD
22927     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22928       libsuff= shlibsuff= libmagic=32-bit;;
22929     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22930       libsuff=32 shlibsuff=N32 libmagic=N32;;
22931     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22932       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22933     *) libsuff= shlibsuff= libmagic=never-match;;
22934     esac
22935     ;;
22936   esac
22937   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22938   shlibpath_overrides_runpath=no
22939   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22940   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22941   hardcode_into_libs=yes
22942   ;;
22943
22944 # No shared lib support for Linux oldld, aout, or coff.
22945 linux*oldld* | linux*aout* | linux*coff*)
22946   dynamic_linker=no
22947   ;;
22948
22949 # This must be Linux ELF.
22950 linux*)
22951   version_type=linux
22952   need_lib_prefix=no
22953   need_version=no
22954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955   soname_spec='${libname}${release}${shared_ext}$major'
22956   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22957   shlibpath_var=LD_LIBRARY_PATH
22958   shlibpath_overrides_runpath=no
22959   # This implies no fast_install, which is unacceptable.
22960   # Some rework will be needed to allow for fast_install
22961   # before this can be enabled.
22962   hardcode_into_libs=yes
22963
22964   # find out which ABI we are using
22965   libsuff=
22966   case "$host_cpu" in
22967   x86_64*|s390x*|powerpc64*)
22968     echo '#line 22968 "configure"' > conftest.$ac_ext
22969     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22970   (eval $ac_compile) 2>&5
22971   ac_status=$?
22972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); }; then
22974       case `/usr/bin/file conftest.$ac_objext` in
22975       *64-bit*)
22976         libsuff=64
22977         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22978         ;;
22979       esac
22980     fi
22981     rm -rf conftest*
22982     ;;
22983   esac
22984
22985   # Append ld.so.conf contents to the search path
22986   if test -f /etc/ld.so.conf; then
22987     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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22988     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22989   fi
22990
22991   # We used to test for /lib/ld.so.1 and disable shared libraries on
22992   # powerpc, because MkLinux only supported shared libraries with the
22993   # GNU dynamic linker.  Since this was broken with cross compilers,
22994   # most powerpc-linux boxes support dynamic linking these days and
22995   # people can always --disable-shared, the test was removed, and we
22996   # assume the GNU/Linux dynamic linker is in use.
22997   dynamic_linker='GNU/Linux ld.so'
22998   ;;
22999
23000 knetbsd*-gnu)
23001   version_type=linux
23002   need_lib_prefix=no
23003   need_version=no
23004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23005   soname_spec='${libname}${release}${shared_ext}$major'
23006   shlibpath_var=LD_LIBRARY_PATH
23007   shlibpath_overrides_runpath=no
23008   hardcode_into_libs=yes
23009   dynamic_linker='GNU ld.so'
23010   ;;
23011
23012 netbsd*)
23013   version_type=sunos
23014   need_lib_prefix=no
23015   need_version=no
23016   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23018     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23019     dynamic_linker='NetBSD (a.out) ld.so'
23020   else
23021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23022     soname_spec='${libname}${release}${shared_ext}$major'
23023     dynamic_linker='NetBSD ld.elf_so'
23024   fi
23025   shlibpath_var=LD_LIBRARY_PATH
23026   shlibpath_overrides_runpath=yes
23027   hardcode_into_libs=yes
23028   ;;
23029
23030 newsos6)
23031   version_type=linux
23032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23033   shlibpath_var=LD_LIBRARY_PATH
23034   shlibpath_overrides_runpath=yes
23035   ;;
23036
23037 nto-qnx*)
23038   version_type=linux
23039   need_lib_prefix=no
23040   need_version=no
23041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042   soname_spec='${libname}${release}${shared_ext}$major'
23043   shlibpath_var=LD_LIBRARY_PATH
23044   shlibpath_overrides_runpath=yes
23045   ;;
23046
23047 openbsd*)
23048   version_type=sunos
23049   sys_lib_dlsearch_path_spec="/usr/lib"
23050   need_lib_prefix=no
23051   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23052   case $host_os in
23053     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23054     *)                         need_version=no  ;;
23055   esac
23056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23058   shlibpath_var=LD_LIBRARY_PATH
23059   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23060     case $host_os in
23061       openbsd2.[89] | openbsd2.[89].*)
23062         shlibpath_overrides_runpath=no
23063         ;;
23064       *)
23065         shlibpath_overrides_runpath=yes
23066         ;;
23067       esac
23068   else
23069     shlibpath_overrides_runpath=yes
23070   fi
23071   ;;
23072
23073 os2*)
23074   libname_spec='$name'
23075   shrext_cmds=".dll"
23076   need_lib_prefix=no
23077   library_names_spec='$libname${shared_ext} $libname.a'
23078   dynamic_linker='OS/2 ld.exe'
23079   shlibpath_var=LIBPATH
23080   ;;
23081
23082 osf3* | osf4* | osf5*)
23083   version_type=osf
23084   need_lib_prefix=no
23085   need_version=no
23086   soname_spec='${libname}${release}${shared_ext}$major'
23087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088   shlibpath_var=LD_LIBRARY_PATH
23089   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23090   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23091   ;;
23092
23093 solaris*)
23094   version_type=linux
23095   need_lib_prefix=no
23096   need_version=no
23097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098   soname_spec='${libname}${release}${shared_ext}$major'
23099   shlibpath_var=LD_LIBRARY_PATH
23100   shlibpath_overrides_runpath=yes
23101   hardcode_into_libs=yes
23102   # ldd complains unless libraries are executable
23103   postinstall_cmds='chmod +x $lib'
23104   ;;
23105
23106 sunos4*)
23107   version_type=sunos
23108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23109   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23110   shlibpath_var=LD_LIBRARY_PATH
23111   shlibpath_overrides_runpath=yes
23112   if test "$with_gnu_ld" = yes; then
23113     need_lib_prefix=no
23114   fi
23115   need_version=yes
23116   ;;
23117
23118 sysv4 | sysv4.3*)
23119   version_type=linux
23120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23121   soname_spec='${libname}${release}${shared_ext}$major'
23122   shlibpath_var=LD_LIBRARY_PATH
23123   case $host_vendor in
23124     sni)
23125       shlibpath_overrides_runpath=no
23126       need_lib_prefix=no
23127       export_dynamic_flag_spec='${wl}-Blargedynsym'
23128       runpath_var=LD_RUN_PATH
23129       ;;
23130     siemens)
23131       need_lib_prefix=no
23132       ;;
23133     motorola)
23134       need_lib_prefix=no
23135       need_version=no
23136       shlibpath_overrides_runpath=no
23137       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23138       ;;
23139   esac
23140   ;;
23141
23142 sysv4*MP*)
23143   if test -d /usr/nec ;then
23144     version_type=linux
23145     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23146     soname_spec='$libname${shared_ext}.$major'
23147     shlibpath_var=LD_LIBRARY_PATH
23148   fi
23149   ;;
23150
23151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23152   version_type=freebsd-elf
23153   need_lib_prefix=no
23154   need_version=no
23155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23156   soname_spec='${libname}${release}${shared_ext}$major'
23157   shlibpath_var=LD_LIBRARY_PATH
23158   hardcode_into_libs=yes
23159   if test "$with_gnu_ld" = yes; then
23160     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23161     shlibpath_overrides_runpath=no
23162   else
23163     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23164     shlibpath_overrides_runpath=yes
23165     case $host_os in
23166       sco3.2v5*)
23167         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23168         ;;
23169     esac
23170   fi
23171   sys_lib_dlsearch_path_spec='/usr/lib'
23172   ;;
23173
23174 uts4*)
23175   version_type=linux
23176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177   soname_spec='${libname}${release}${shared_ext}$major'
23178   shlibpath_var=LD_LIBRARY_PATH
23179   ;;
23180
23181 *)
23182   dynamic_linker=no
23183   ;;
23184 esac
23185 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23186 echo "${ECHO_T}$dynamic_linker" >&6; }
23187 test "$dynamic_linker" = no && can_build_shared=no
23188
23189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23190 if test "$GCC" = yes; then
23191   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23192 fi
23193
23194 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23196 hardcode_action_F77=
23197 if test -n "$hardcode_libdir_flag_spec_F77" || \
23198    test -n "$runpath_var_F77" || \
23199    test "X$hardcode_automatic_F77" = "Xyes" ; then
23200
23201   # We can hardcode non-existant directories.
23202   if test "$hardcode_direct_F77" != no &&
23203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23204      # have to relink, otherwise we might link with an installed library
23205      # when we should be linking with a yet-to-be-installed one
23206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23207      test "$hardcode_minus_L_F77" != no; then
23208     # Linking always hardcodes the temporary library directory.
23209     hardcode_action_F77=relink
23210   else
23211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23212     hardcode_action_F77=immediate
23213   fi
23214 else
23215   # We cannot hardcode anything, or else we can only hardcode existing
23216   # directories.
23217   hardcode_action_F77=unsupported
23218 fi
23219 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23220 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23221
23222 if test "$hardcode_action_F77" = relink; then
23223   # Fast installation is not supported
23224   enable_fast_install=no
23225 elif test "$shlibpath_overrides_runpath" = yes ||
23226      test "$enable_shared" = no; then
23227   # Fast installation is not necessary
23228   enable_fast_install=needless
23229 fi
23230
23231
23232 # The else clause should only fire when bootstrapping the
23233 # libtool distribution, otherwise you forgot to ship ltmain.sh
23234 # with your package, and you will get complaints that there are
23235 # no rules to generate ltmain.sh.
23236 if test -f "$ltmain"; then
23237   # See if we are running on zsh, and set the options which allow our commands through
23238   # without removal of \ escapes.
23239   if test -n "${ZSH_VERSION+set}" ; then
23240     setopt NO_GLOB_SUBST
23241   fi
23242   # Now quote all the things that may contain metacharacters while being
23243   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23244   # variables and quote the copies for generation of the libtool script.
23245   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23246     SED SHELL STRIP \
23247     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23248     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23249     deplibs_check_method reload_flag reload_cmds need_locks \
23250     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23251     lt_cv_sys_global_symbol_to_c_name_address \
23252     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23253     old_postinstall_cmds old_postuninstall_cmds \
23254     compiler_F77 \
23255     CC_F77 \
23256     LD_F77 \
23257     lt_prog_compiler_wl_F77 \
23258     lt_prog_compiler_pic_F77 \
23259     lt_prog_compiler_static_F77 \
23260     lt_prog_compiler_no_builtin_flag_F77 \
23261     export_dynamic_flag_spec_F77 \
23262     thread_safe_flag_spec_F77 \
23263     whole_archive_flag_spec_F77 \
23264     enable_shared_with_static_runtimes_F77 \
23265     old_archive_cmds_F77 \
23266     old_archive_from_new_cmds_F77 \
23267     predep_objects_F77 \
23268     postdep_objects_F77 \
23269     predeps_F77 \
23270     postdeps_F77 \
23271     compiler_lib_search_path_F77 \
23272     archive_cmds_F77 \
23273     archive_expsym_cmds_F77 \
23274     postinstall_cmds_F77 \
23275     postuninstall_cmds_F77 \
23276     old_archive_from_expsyms_cmds_F77 \
23277     allow_undefined_flag_F77 \
23278     no_undefined_flag_F77 \
23279     export_symbols_cmds_F77 \
23280     hardcode_libdir_flag_spec_F77 \
23281     hardcode_libdir_flag_spec_ld_F77 \
23282     hardcode_libdir_separator_F77 \
23283     hardcode_automatic_F77 \
23284     module_cmds_F77 \
23285     module_expsym_cmds_F77 \
23286     lt_cv_prog_compiler_c_o_F77 \
23287     exclude_expsyms_F77 \
23288     include_expsyms_F77; do
23289
23290     case $var in
23291     old_archive_cmds_F77 | \
23292     old_archive_from_new_cmds_F77 | \
23293     archive_cmds_F77 | \
23294     archive_expsym_cmds_F77 | \
23295     module_cmds_F77 | \
23296     module_expsym_cmds_F77 | \
23297     old_archive_from_expsyms_cmds_F77 | \
23298     export_symbols_cmds_F77 | \
23299     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23300     postinstall_cmds | postuninstall_cmds | \
23301     old_postinstall_cmds | old_postuninstall_cmds | \
23302     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23303       # Double-quote double-evaled strings.
23304       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23305       ;;
23306     *)
23307       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23308       ;;
23309     esac
23310   done
23311
23312   case $lt_echo in
23313   *'\$0 --fallback-echo"')
23314     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23315     ;;
23316   esac
23317
23318 cfgfile="$ofile"
23319
23320   cat <<__EOF__ >> "$cfgfile"
23321 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23322
23323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23324
23325 # Shell to use when invoking shell scripts.
23326 SHELL=$lt_SHELL
23327
23328 # Whether or not to build shared libraries.
23329 build_libtool_libs=$enable_shared
23330
23331 # Whether or not to build static libraries.
23332 build_old_libs=$enable_static
23333
23334 # Whether or not to add -lc for building shared libraries.
23335 build_libtool_need_lc=$archive_cmds_need_lc_F77
23336
23337 # Whether or not to disallow shared libs when runtime libs are static
23338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23339
23340 # Whether or not to optimize for fast installation.
23341 fast_install=$enable_fast_install
23342
23343 # The host system.
23344 host_alias=$host_alias
23345 host=$host
23346 host_os=$host_os
23347
23348 # The build system.
23349 build_alias=$build_alias
23350 build=$build
23351 build_os=$build_os
23352
23353 # An echo program that does not interpret backslashes.
23354 echo=$lt_echo
23355
23356 # The archiver.
23357 AR=$lt_AR
23358 AR_FLAGS=$lt_AR_FLAGS
23359
23360 # A C compiler.
23361 LTCC=$lt_LTCC
23362
23363 # LTCC compiler flags.
23364 LTCFLAGS=$lt_LTCFLAGS
23365
23366 # A language-specific compiler.
23367 CC=$lt_compiler_F77
23368
23369 # Is the compiler the GNU C compiler?
23370 with_gcc=$GCC_F77
23371
23372 # An ERE matcher.
23373 EGREP=$lt_EGREP
23374
23375 # The linker used to build libraries.
23376 LD=$lt_LD_F77
23377
23378 # Whether we need hard or soft links.
23379 LN_S=$lt_LN_S
23380
23381 # A BSD-compatible nm program.
23382 NM=$lt_NM
23383
23384 # A symbol stripping program
23385 STRIP=$lt_STRIP
23386
23387 # Used to examine libraries when file_magic_cmd begins "file"
23388 MAGIC_CMD=$MAGIC_CMD
23389
23390 # Used on cygwin: DLL creation program.
23391 DLLTOOL="$DLLTOOL"
23392
23393 # Used on cygwin: object dumper.
23394 OBJDUMP="$OBJDUMP"
23395
23396 # Used on cygwin: assembler.
23397 AS="$AS"
23398
23399 # The name of the directory that contains temporary libtool files.
23400 objdir=$objdir
23401
23402 # How to create reloadable object files.
23403 reload_flag=$lt_reload_flag
23404 reload_cmds=$lt_reload_cmds
23405
23406 # How to pass a linker flag through the compiler.
23407 wl=$lt_lt_prog_compiler_wl_F77
23408
23409 # Object file suffix (normally "o").
23410 objext="$ac_objext"
23411
23412 # Old archive suffix (normally "a").
23413 libext="$libext"
23414
23415 # Shared library suffix (normally ".so").
23416 shrext_cmds='$shrext_cmds'
23417
23418 # Executable file suffix (normally "").
23419 exeext="$exeext"
23420
23421 # Additional compiler flags for building library objects.
23422 pic_flag=$lt_lt_prog_compiler_pic_F77
23423 pic_mode=$pic_mode
23424
23425 # What is the maximum length of a command?
23426 max_cmd_len=$lt_cv_sys_max_cmd_len
23427
23428 # Does compiler simultaneously support -c and -o options?
23429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23430
23431 # Must we lock files when doing compilation?
23432 need_locks=$lt_need_locks
23433
23434 # Do we need the lib prefix for modules?
23435 need_lib_prefix=$need_lib_prefix
23436
23437 # Do we need a version for libraries?
23438 need_version=$need_version
23439
23440 # Whether dlopen is supported.
23441 dlopen_support=$enable_dlopen
23442
23443 # Whether dlopen of programs is supported.
23444 dlopen_self=$enable_dlopen_self
23445
23446 # Whether dlopen of statically linked programs is supported.
23447 dlopen_self_static=$enable_dlopen_self_static
23448
23449 # Compiler flag to prevent dynamic linking.
23450 link_static_flag=$lt_lt_prog_compiler_static_F77
23451
23452 # Compiler flag to turn off builtin functions.
23453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23454
23455 # Compiler flag to allow reflexive dlopens.
23456 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23457
23458 # Compiler flag to generate shared objects directly from archives.
23459 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23460
23461 # Compiler flag to generate thread-safe objects.
23462 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23463
23464 # Library versioning type.
23465 version_type=$version_type
23466
23467 # Format of library name prefix.
23468 libname_spec=$lt_libname_spec
23469
23470 # List of archive names.  First name is the real one, the rest are links.
23471 # The last name is the one that the linker finds with -lNAME.
23472 library_names_spec=$lt_library_names_spec
23473
23474 # The coded name of the library, if different from the real name.
23475 soname_spec=$lt_soname_spec
23476
23477 # Commands used to build and install an old-style archive.
23478 RANLIB=$lt_RANLIB
23479 old_archive_cmds=$lt_old_archive_cmds_F77
23480 old_postinstall_cmds=$lt_old_postinstall_cmds
23481 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23482
23483 # Create an old-style archive from a shared archive.
23484 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23485
23486 # Create a temporary old-style archive to link instead of a shared archive.
23487 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23488
23489 # Commands used to build and install a shared archive.
23490 archive_cmds=$lt_archive_cmds_F77
23491 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23492 postinstall_cmds=$lt_postinstall_cmds
23493 postuninstall_cmds=$lt_postuninstall_cmds
23494
23495 # Commands used to build a loadable module (assumed same as above if empty)
23496 module_cmds=$lt_module_cmds_F77
23497 module_expsym_cmds=$lt_module_expsym_cmds_F77
23498
23499 # Commands to strip libraries.
23500 old_striplib=$lt_old_striplib
23501 striplib=$lt_striplib
23502
23503 # Dependencies to place before the objects being linked to create a
23504 # shared library.
23505 predep_objects=$lt_predep_objects_F77
23506
23507 # Dependencies to place after the objects being linked to create a
23508 # shared library.
23509 postdep_objects=$lt_postdep_objects_F77
23510
23511 # Dependencies to place before the objects being linked to create a
23512 # shared library.
23513 predeps=$lt_predeps_F77
23514
23515 # Dependencies to place after the objects being linked to create a
23516 # shared library.
23517 postdeps=$lt_postdeps_F77
23518
23519 # The library search path used internally by the compiler when linking
23520 # a shared library.
23521 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23522
23523 # Method to check whether dependent libraries are shared objects.
23524 deplibs_check_method=$lt_deplibs_check_method
23525
23526 # Command to use when deplibs_check_method == file_magic.
23527 file_magic_cmd=$lt_file_magic_cmd
23528
23529 # Flag that allows shared libraries with undefined symbols to be built.
23530 allow_undefined_flag=$lt_allow_undefined_flag_F77
23531
23532 # Flag that forces no undefined symbols.
23533 no_undefined_flag=$lt_no_undefined_flag_F77
23534
23535 # Commands used to finish a libtool library installation in a directory.
23536 finish_cmds=$lt_finish_cmds
23537
23538 # Same as above, but a single script fragment to be evaled but not shown.
23539 finish_eval=$lt_finish_eval
23540
23541 # Take the output of nm and produce a listing of raw symbols and C names.
23542 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23543
23544 # Transform the output of nm in a proper C declaration
23545 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23546
23547 # Transform the output of nm in a C name address pair
23548 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23549
23550 # This is the shared library runtime path variable.
23551 runpath_var=$runpath_var
23552
23553 # This is the shared library path variable.
23554 shlibpath_var=$shlibpath_var
23555
23556 # Is shlibpath searched before the hard-coded library search path?
23557 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23558
23559 # How to hardcode a shared library path into an executable.
23560 hardcode_action=$hardcode_action_F77
23561
23562 # Whether we should hardcode library paths into libraries.
23563 hardcode_into_libs=$hardcode_into_libs
23564
23565 # Flag to hardcode \$libdir into a binary during linking.
23566 # This must work even if \$libdir does not exist.
23567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23568
23569 # If ld is used when linking, flag to hardcode \$libdir into
23570 # a binary during linking. This must work even if \$libdir does
23571 # not exist.
23572 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23573
23574 # Whether we need a single -rpath flag with a separated argument.
23575 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23576
23577 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23578 # resulting binary.
23579 hardcode_direct=$hardcode_direct_F77
23580
23581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23582 # resulting binary.
23583 hardcode_minus_L=$hardcode_minus_L_F77
23584
23585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23586 # the resulting binary.
23587 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23588
23589 # Set to yes if building a shared library automatically hardcodes DIR into the library
23590 # and all subsequent libraries and executables linked against it.
23591 hardcode_automatic=$hardcode_automatic_F77
23592
23593 # Variables whose values should be saved in libtool wrapper scripts and
23594 # restored at relink time.
23595 variables_saved_for_relink="$variables_saved_for_relink"
23596
23597 # Whether libtool must link a program against all its dependency libraries.
23598 link_all_deplibs=$link_all_deplibs_F77
23599
23600 # Compile-time system search path for libraries
23601 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23602
23603 # Run-time system search path for libraries
23604 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23605
23606 # Fix the shell variable \$srcfile for the compiler.
23607 fix_srcfile_path="$fix_srcfile_path_F77"
23608
23609 # Set to yes if exported symbols are required.
23610 always_export_symbols=$always_export_symbols_F77
23611
23612 # The commands to list exported symbols.
23613 export_symbols_cmds=$lt_export_symbols_cmds_F77
23614
23615 # The commands to extract the exported symbol list from a shared archive.
23616 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23617
23618 # Symbols that should not be listed in the preloaded symbols.
23619 exclude_expsyms=$lt_exclude_expsyms_F77
23620
23621 # Symbols that must always be exported.
23622 include_expsyms=$lt_include_expsyms_F77
23623
23624 # ### END LIBTOOL TAG CONFIG: $tagname
23625
23626 __EOF__
23627
23628
23629 else
23630   # If there is no Makefile yet, we rely on a make rule to execute
23631   # `config.status --recheck' to rerun these tests and create the
23632   # libtool script then.
23633   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23634   if test -f "$ltmain_in"; then
23635     test -f Makefile && make "$ltmain"
23636   fi
23637 fi
23638
23639
23640 ac_ext=c
23641 ac_cpp='$CPP $CPPFLAGS'
23642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23645
23646 CC="$lt_save_CC"
23647
23648         else
23649           tagname=""
23650         fi
23651         ;;
23652
23653       GCJ)
23654         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23655
23656
23657 # Source file extension for Java test sources.
23658 ac_ext=java
23659
23660 # Object file extension for compiled Java test sources.
23661 objext=o
23662 objext_GCJ=$objext
23663
23664 # Code to be used in simple compile tests
23665 lt_simple_compile_test_code="class foo {}\n"
23666
23667 # Code to be used in simple link tests
23668 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23669
23670 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23671
23672 # If no C compiler was specified, use CC.
23673 LTCC=${LTCC-"$CC"}
23674
23675 # If no C compiler flags were specified, use CFLAGS.
23676 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23677
23678 # Allow CC to be a program name with arguments.
23679 compiler=$CC
23680
23681
23682 # save warnings/boilerplate of simple test code
23683 ac_outfile=conftest.$ac_objext
23684 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23686 _lt_compiler_boilerplate=`cat conftest.err`
23687 $rm conftest*
23688
23689 ac_outfile=conftest.$ac_objext
23690 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23692 _lt_linker_boilerplate=`cat conftest.err`
23693 $rm conftest*
23694
23695
23696 # Allow CC to be a program name with arguments.
23697 lt_save_CC="$CC"
23698 CC=${GCJ-"gcj"}
23699 compiler=$CC
23700 compiler_GCJ=$CC
23701 for cc_temp in $compiler""; do
23702   case $cc_temp in
23703     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23704     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23705     \-*) ;;
23706     *) break;;
23707   esac
23708 done
23709 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23710
23711
23712 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23713 archive_cmds_need_lc_GCJ=no
23714
23715 old_archive_cmds_GCJ=$old_archive_cmds
23716
23717
23718 lt_prog_compiler_no_builtin_flag_GCJ=
23719
23720 if test "$GCC" = yes; then
23721   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23722
23723
23724 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23725 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23726 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23727   echo $ECHO_N "(cached) $ECHO_C" >&6
23728 else
23729   lt_cv_prog_compiler_rtti_exceptions=no
23730   ac_outfile=conftest.$ac_objext
23731    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23732    lt_compiler_flag="-fno-rtti -fno-exceptions"
23733    # Insert the option either (1) after the last *FLAGS variable, or
23734    # (2) before a word containing "conftest.", or (3) at the end.
23735    # Note that $ac_compile itself does not contain backslashes and begins
23736    # with a dollar sign (not a hyphen), so the echo should work correctly.
23737    # The option is referenced via a variable to avoid confusing sed.
23738    lt_compile=`echo "$ac_compile" | $SED \
23739    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23740    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23741    -e 's:$: $lt_compiler_flag:'`
23742    (eval echo "\"\$as_me:23742: $lt_compile\"" >&5)
23743    (eval "$lt_compile" 2>conftest.err)
23744    ac_status=$?
23745    cat conftest.err >&5
23746    echo "$as_me:23746: \$? = $ac_status" >&5
23747    if (exit $ac_status) && test -s "$ac_outfile"; then
23748      # The compiler can only warn and ignore the option if not recognized
23749      # So say no if there are warnings other than the usual output.
23750      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23751      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23752      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23753        lt_cv_prog_compiler_rtti_exceptions=yes
23754      fi
23755    fi
23756    $rm conftest*
23757
23758 fi
23759 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23760 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23761
23762 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23763     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23764 else
23765     :
23766 fi
23767
23768 fi
23769
23770 lt_prog_compiler_wl_GCJ=
23771 lt_prog_compiler_pic_GCJ=
23772 lt_prog_compiler_static_GCJ=
23773
23774 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23775 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23776
23777   if test "$GCC" = yes; then
23778     lt_prog_compiler_wl_GCJ='-Wl,'
23779     lt_prog_compiler_static_GCJ='-static'
23780
23781     case $host_os in
23782       aix*)
23783       # All AIX code is PIC.
23784       if test "$host_cpu" = ia64; then
23785         # AIX 5 now supports IA64 processor
23786         lt_prog_compiler_static_GCJ='-Bstatic'
23787       fi
23788       ;;
23789
23790     amigaos*)
23791       # FIXME: we need at least 68020 code to build shared libraries, but
23792       # adding the `-m68020' flag to GCC prevents building anything better,
23793       # like `-m68040'.
23794       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23795       ;;
23796
23797     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23798       # PIC is the default for these OSes.
23799       ;;
23800
23801     mingw* | pw32* | os2*)
23802       # This hack is so that the source file can tell whether it is being
23803       # built for inclusion in a dll (and should export symbols for example).
23804       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23805       ;;
23806
23807     darwin* | rhapsody*)
23808       # PIC is the default on this platform
23809       # Common symbols not allowed in MH_DYLIB files
23810       lt_prog_compiler_pic_GCJ='-fno-common'
23811       ;;
23812
23813     interix3*)
23814       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23815       # Instead, we relocate shared libraries at runtime.
23816       ;;
23817
23818     msdosdjgpp*)
23819       # Just because we use GCC doesn't mean we suddenly get shared libraries
23820       # on systems that don't support them.
23821       lt_prog_compiler_can_build_shared_GCJ=no
23822       enable_shared=no
23823       ;;
23824
23825     sysv4*MP*)
23826       if test -d /usr/nec; then
23827         lt_prog_compiler_pic_GCJ=-Kconform_pic
23828       fi
23829       ;;
23830
23831     hpux*)
23832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23833       # not for PA HP-UX.
23834       case $host_cpu in
23835       hppa*64*|ia64*)
23836         # +Z the default
23837         ;;
23838       *)
23839         lt_prog_compiler_pic_GCJ='-fPIC'
23840         ;;
23841       esac
23842       ;;
23843
23844     *)
23845       lt_prog_compiler_pic_GCJ='-fPIC'
23846       ;;
23847     esac
23848   else
23849     # PORTME Check for flag to pass linker flags through the system compiler.
23850     case $host_os in
23851     aix*)
23852       lt_prog_compiler_wl_GCJ='-Wl,'
23853       if test "$host_cpu" = ia64; then
23854         # AIX 5 now supports IA64 processor
23855         lt_prog_compiler_static_GCJ='-Bstatic'
23856       else
23857         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23858       fi
23859       ;;
23860       darwin*)
23861         # PIC is the default on this platform
23862         # Common symbols not allowed in MH_DYLIB files
23863        case $cc_basename in
23864          xlc*)
23865          lt_prog_compiler_pic_GCJ='-qnocommon'
23866          lt_prog_compiler_wl_GCJ='-Wl,'
23867          ;;
23868        esac
23869        ;;
23870
23871     mingw* | pw32* | os2*)
23872       # This hack is so that the source file can tell whether it is being
23873       # built for inclusion in a dll (and should export symbols for example).
23874       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23875       ;;
23876
23877     hpux9* | hpux10* | hpux11*)
23878       lt_prog_compiler_wl_GCJ='-Wl,'
23879       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23880       # not for PA HP-UX.
23881       case $host_cpu in
23882       hppa*64*|ia64*)
23883         # +Z the default
23884         ;;
23885       *)
23886         lt_prog_compiler_pic_GCJ='+Z'
23887         ;;
23888       esac
23889       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23890       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23891       ;;
23892
23893     irix5* | irix6* | nonstopux*)
23894       lt_prog_compiler_wl_GCJ='-Wl,'
23895       # PIC (with -KPIC) is the default.
23896       lt_prog_compiler_static_GCJ='-non_shared'
23897       ;;
23898
23899     newsos6)
23900       lt_prog_compiler_pic_GCJ='-KPIC'
23901       lt_prog_compiler_static_GCJ='-Bstatic'
23902       ;;
23903
23904     linux*)
23905       case $cc_basename in
23906       icc* | ecc*)
23907         lt_prog_compiler_wl_GCJ='-Wl,'
23908         lt_prog_compiler_pic_GCJ='-KPIC'
23909         lt_prog_compiler_static_GCJ='-static'
23910         ;;
23911       pgcc* | pgf77* | pgf90* | pgf95*)
23912         # Portland Group compilers (*not* the Pentium gcc compiler,
23913         # which looks to be a dead project)
23914         lt_prog_compiler_wl_GCJ='-Wl,'
23915         lt_prog_compiler_pic_GCJ='-fpic'
23916         lt_prog_compiler_static_GCJ='-Bstatic'
23917         ;;
23918       ccc*)
23919         lt_prog_compiler_wl_GCJ='-Wl,'
23920         # All Alpha code is PIC.
23921         lt_prog_compiler_static_GCJ='-non_shared'
23922         ;;
23923       esac
23924       ;;
23925
23926     osf3* | osf4* | osf5*)
23927       lt_prog_compiler_wl_GCJ='-Wl,'
23928       # All OSF/1 code is PIC.
23929       lt_prog_compiler_static_GCJ='-non_shared'
23930       ;;
23931
23932     solaris*)
23933       lt_prog_compiler_pic_GCJ='-KPIC'
23934       lt_prog_compiler_static_GCJ='-Bstatic'
23935       case $cc_basename in
23936       f77* | f90* | f95*)
23937         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23938       *)
23939         lt_prog_compiler_wl_GCJ='-Wl,';;
23940       esac
23941       ;;
23942
23943     sunos4*)
23944       lt_prog_compiler_wl_GCJ='-Qoption ld '
23945       lt_prog_compiler_pic_GCJ='-PIC'
23946       lt_prog_compiler_static_GCJ='-Bstatic'
23947       ;;
23948
23949     sysv4 | sysv4.2uw2* | sysv4.3*)
23950       lt_prog_compiler_wl_GCJ='-Wl,'
23951       lt_prog_compiler_pic_GCJ='-KPIC'
23952       lt_prog_compiler_static_GCJ='-Bstatic'
23953       ;;
23954
23955     sysv4*MP*)
23956       if test -d /usr/nec ;then
23957         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23958         lt_prog_compiler_static_GCJ='-Bstatic'
23959       fi
23960       ;;
23961
23962     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23963       lt_prog_compiler_wl_GCJ='-Wl,'
23964       lt_prog_compiler_pic_GCJ='-KPIC'
23965       lt_prog_compiler_static_GCJ='-Bstatic'
23966       ;;
23967
23968     unicos*)
23969       lt_prog_compiler_wl_GCJ='-Wl,'
23970       lt_prog_compiler_can_build_shared_GCJ=no
23971       ;;
23972
23973     uts4*)
23974       lt_prog_compiler_pic_GCJ='-pic'
23975       lt_prog_compiler_static_GCJ='-Bstatic'
23976       ;;
23977
23978     *)
23979       lt_prog_compiler_can_build_shared_GCJ=no
23980       ;;
23981     esac
23982   fi
23983
23984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23985 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23986
23987 #
23988 # Check to make sure the PIC flag actually works.
23989 #
23990 if test -n "$lt_prog_compiler_pic_GCJ"; then
23991
23992 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23993 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23994 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997   lt_prog_compiler_pic_works_GCJ=no
23998   ac_outfile=conftest.$ac_objext
23999    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24000    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24001    # Insert the option either (1) after the last *FLAGS variable, or
24002    # (2) before a word containing "conftest.", or (3) at the end.
24003    # Note that $ac_compile itself does not contain backslashes and begins
24004    # with a dollar sign (not a hyphen), so the echo should work correctly.
24005    # The option is referenced via a variable to avoid confusing sed.
24006    lt_compile=`echo "$ac_compile" | $SED \
24007    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24008    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24009    -e 's:$: $lt_compiler_flag:'`
24010    (eval echo "\"\$as_me:24010: $lt_compile\"" >&5)
24011    (eval "$lt_compile" 2>conftest.err)
24012    ac_status=$?
24013    cat conftest.err >&5
24014    echo "$as_me:24014: \$? = $ac_status" >&5
24015    if (exit $ac_status) && test -s "$ac_outfile"; then
24016      # The compiler can only warn and ignore the option if not recognized
24017      # So say no if there are warnings other than the usual output.
24018      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24019      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24020      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24021        lt_prog_compiler_pic_works_GCJ=yes
24022      fi
24023    fi
24024    $rm conftest*
24025
24026 fi
24027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24028 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24029
24030 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24031     case $lt_prog_compiler_pic_GCJ in
24032      "" | " "*) ;;
24033      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24034      esac
24035 else
24036     lt_prog_compiler_pic_GCJ=
24037      lt_prog_compiler_can_build_shared_GCJ=no
24038 fi
24039
24040 fi
24041 case $host_os in
24042   # For platforms which do not support PIC, -DPIC is meaningless:
24043   *djgpp*)
24044     lt_prog_compiler_pic_GCJ=
24045     ;;
24046   *)
24047     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24048     ;;
24049 esac
24050
24051 #
24052 # Check to make sure the static flag actually works.
24053 #
24054 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24055 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24056 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24057 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24058   echo $ECHO_N "(cached) $ECHO_C" >&6
24059 else
24060   lt_prog_compiler_static_works_GCJ=no
24061    save_LDFLAGS="$LDFLAGS"
24062    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24063    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24064    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24065      # The linker can only warn and ignore the option if not recognized
24066      # So say no if there are warnings
24067      if test -s conftest.err; then
24068        # Append any errors to the config.log.
24069        cat conftest.err 1>&5
24070        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24071        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24072        if diff conftest.exp conftest.er2 >/dev/null; then
24073          lt_prog_compiler_static_works_GCJ=yes
24074        fi
24075      else
24076        lt_prog_compiler_static_works_GCJ=yes
24077      fi
24078    fi
24079    $rm conftest*
24080    LDFLAGS="$save_LDFLAGS"
24081
24082 fi
24083 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24084 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24085
24086 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24087     :
24088 else
24089     lt_prog_compiler_static_GCJ=
24090 fi
24091
24092
24093 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24094 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24095 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098   lt_cv_prog_compiler_c_o_GCJ=no
24099    $rm -r conftest 2>/dev/null
24100    mkdir conftest
24101    cd conftest
24102    mkdir out
24103    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24104
24105    lt_compiler_flag="-o out/conftest2.$ac_objext"
24106    # Insert the option either (1) after the last *FLAGS variable, or
24107    # (2) before a word containing "conftest.", or (3) at the end.
24108    # Note that $ac_compile itself does not contain backslashes and begins
24109    # with a dollar sign (not a hyphen), so the echo should work correctly.
24110    lt_compile=`echo "$ac_compile" | $SED \
24111    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24112    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24113    -e 's:$: $lt_compiler_flag:'`
24114    (eval echo "\"\$as_me:24114: $lt_compile\"" >&5)
24115    (eval "$lt_compile" 2>out/conftest.err)
24116    ac_status=$?
24117    cat out/conftest.err >&5
24118    echo "$as_me:24118: \$? = $ac_status" >&5
24119    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24120    then
24121      # The compiler can only warn and ignore the option if not recognized
24122      # So say no if there are warnings
24123      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24124      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24125      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24126        lt_cv_prog_compiler_c_o_GCJ=yes
24127      fi
24128    fi
24129    chmod u+w . 2>&5
24130    $rm conftest*
24131    # SGI C++ compiler will create directory out/ii_files/ for
24132    # template instantiation
24133    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24134    $rm out/* && rmdir out
24135    cd ..
24136    rmdir conftest
24137    $rm conftest*
24138
24139 fi
24140 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24142
24143
24144 hard_links="nottested"
24145 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24146   # do not overwrite the value of need_locks provided by the user
24147   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24148 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24149   hard_links=yes
24150   $rm conftest*
24151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24152   touch conftest.a
24153   ln conftest.a conftest.b 2>&5 || hard_links=no
24154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24155   { echo "$as_me:$LINENO: result: $hard_links" >&5
24156 echo "${ECHO_T}$hard_links" >&6; }
24157   if test "$hard_links" = no; then
24158     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24159 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24160     need_locks=warn
24161   fi
24162 else
24163   need_locks=no
24164 fi
24165
24166 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24167 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24168
24169   runpath_var=
24170   allow_undefined_flag_GCJ=
24171   enable_shared_with_static_runtimes_GCJ=no
24172   archive_cmds_GCJ=
24173   archive_expsym_cmds_GCJ=
24174   old_archive_From_new_cmds_GCJ=
24175   old_archive_from_expsyms_cmds_GCJ=
24176   export_dynamic_flag_spec_GCJ=
24177   whole_archive_flag_spec_GCJ=
24178   thread_safe_flag_spec_GCJ=
24179   hardcode_libdir_flag_spec_GCJ=
24180   hardcode_libdir_flag_spec_ld_GCJ=
24181   hardcode_libdir_separator_GCJ=
24182   hardcode_direct_GCJ=no
24183   hardcode_minus_L_GCJ=no
24184   hardcode_shlibpath_var_GCJ=unsupported
24185   link_all_deplibs_GCJ=unknown
24186   hardcode_automatic_GCJ=no
24187   module_cmds_GCJ=
24188   module_expsym_cmds_GCJ=
24189   always_export_symbols_GCJ=no
24190   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24191   # include_expsyms should be a list of space-separated symbols to be *always*
24192   # included in the symbol list
24193   include_expsyms_GCJ=
24194   # exclude_expsyms can be an extended regexp of symbols to exclude
24195   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24196   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24197   # as well as any symbol that contains `d'.
24198   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24199   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24200   # platforms (ab)use it in PIC code, but their linkers get confused if
24201   # the symbol is explicitly referenced.  Since portable code cannot
24202   # rely on this symbol name, it's probably fine to never include it in
24203   # preloaded symbol tables.
24204   extract_expsyms_cmds=
24205   # Just being paranoid about ensuring that cc_basename is set.
24206   for cc_temp in $compiler""; do
24207   case $cc_temp in
24208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24210     \-*) ;;
24211     *) break;;
24212   esac
24213 done
24214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24215
24216   case $host_os in
24217   cygwin* | mingw* | pw32*)
24218     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24219     # When not using gcc, we currently assume that we are using
24220     # Microsoft Visual C++.
24221     if test "$GCC" != yes; then
24222       with_gnu_ld=no
24223     fi
24224     ;;
24225   interix*)
24226     # we just hope/assume this is gcc and not c89 (= MSVC++)
24227     with_gnu_ld=yes
24228     ;;
24229   openbsd*)
24230     with_gnu_ld=no
24231     ;;
24232   esac
24233
24234   ld_shlibs_GCJ=yes
24235   if test "$with_gnu_ld" = yes; then
24236     # If archive_cmds runs LD, not CC, wlarc should be empty
24237     wlarc='${wl}'
24238
24239     # Set some defaults for GNU ld with shared library support. These
24240     # are reset later if shared libraries are not supported. Putting them
24241     # here allows them to be overridden if necessary.
24242     runpath_var=LD_RUN_PATH
24243     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24244     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24245     # ancient GNU ld didn't support --whole-archive et. al.
24246     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24247         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24248       else
24249         whole_archive_flag_spec_GCJ=
24250     fi
24251     supports_anon_versioning=no
24252     case `$LD -v 2>/dev/null` in
24253       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24254       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24255       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24256       *\ 2.11.*) ;; # other 2.11 versions
24257       *) supports_anon_versioning=yes ;;
24258     esac
24259
24260     # See if GNU ld supports shared libraries.
24261     case $host_os in
24262     aix3* | aix4* | aix5*)
24263       # On AIX/PPC, the GNU linker is very broken
24264       if test "$host_cpu" != ia64; then
24265         ld_shlibs_GCJ=no
24266         cat <<EOF 1>&2
24267
24268 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24269 *** to be unable to reliably create shared libraries on AIX.
24270 *** Therefore, libtool is disabling shared libraries support.  If you
24271 *** really care for shared libraries, you may want to modify your PATH
24272 *** so that a non-GNU linker is found, and then restart.
24273
24274 EOF
24275       fi
24276       ;;
24277
24278     amigaos*)
24279       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)'
24280       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24281       hardcode_minus_L_GCJ=yes
24282
24283       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24284       # that the semantics of dynamic libraries on AmigaOS, at least up
24285       # to version 4, is to share data among multiple programs linked
24286       # with the same dynamic library.  Since this doesn't match the
24287       # behavior of shared libraries on other platforms, we can't use
24288       # them.
24289       ld_shlibs_GCJ=no
24290       ;;
24291
24292     beos*)
24293       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24294         allow_undefined_flag_GCJ=unsupported
24295         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24296         # support --undefined.  This deserves some investigation.  FIXME
24297         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24298       else
24299         ld_shlibs_GCJ=no
24300       fi
24301       ;;
24302
24303     cygwin* | mingw* | pw32*)
24304       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24305       # as there is no search path for DLLs.
24306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24307       allow_undefined_flag_GCJ=unsupported
24308       always_export_symbols_GCJ=no
24309       enable_shared_with_static_runtimes_GCJ=yes
24310       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24311
24312       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24313         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24314         # If the export-symbols file already is a .def file (1st line
24315         # is EXPORTS), use it as is; otherwise, prepend...
24316         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24317           cp $export_symbols $output_objdir/$soname.def;
24318         else
24319           echo EXPORTS > $output_objdir/$soname.def;
24320           cat $export_symbols >> $output_objdir/$soname.def;
24321         fi~
24322         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24323       else
24324         ld_shlibs_GCJ=no
24325       fi
24326       ;;
24327
24328     interix3*)
24329       hardcode_direct_GCJ=no
24330       hardcode_shlibpath_var_GCJ=no
24331       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24332       export_dynamic_flag_spec_GCJ='${wl}-E'
24333       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24334       # Instead, shared libraries are loaded at an image base (0x10000000 by
24335       # default) and relocated if they conflict, which is a slow very memory
24336       # consuming and fragmenting process.  To avoid this, we pick a random,
24337       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24338       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24339       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'
24340       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'
24341       ;;
24342
24343     linux*)
24344       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24345         tmp_addflag=
24346         case $cc_basename,$host_cpu in
24347         pgcc*)                          # Portland Group C compiler
24348           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'
24349           tmp_addflag=' $pic_flag'
24350           ;;
24351         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24352           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'
24353           tmp_addflag=' $pic_flag -Mnomain' ;;
24354         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24355           tmp_addflag=' -i_dynamic' ;;
24356         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24357           tmp_addflag=' -i_dynamic -nofor_main' ;;
24358         ifc* | ifort*)                  # Intel Fortran compiler
24359           tmp_addflag=' -nofor_main' ;;
24360         esac
24361         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24362
24363         if test $supports_anon_versioning = yes; then
24364           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24365   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24366   $echo "local: *; };" >> $output_objdir/$libname.ver~
24367           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24368         fi
24369       else
24370         ld_shlibs_GCJ=no
24371       fi
24372       ;;
24373
24374     netbsd*)
24375       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24376         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24377         wlarc=
24378       else
24379         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24380         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24381       fi
24382       ;;
24383
24384     solaris*)
24385       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24386         ld_shlibs_GCJ=no
24387         cat <<EOF 1>&2
24388
24389 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24390 *** create shared libraries on Solaris systems.  Therefore, libtool
24391 *** is disabling shared libraries support.  We urge you to upgrade GNU
24392 *** binutils to release 2.9.1 or newer.  Another option is to modify
24393 *** your PATH or compiler configuration so that the native linker is
24394 *** used, and then restart.
24395
24396 EOF
24397       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24398         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24399         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24400       else
24401         ld_shlibs_GCJ=no
24402       fi
24403       ;;
24404
24405     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24406       case `$LD -v 2>&1` in
24407         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24408         ld_shlibs_GCJ=no
24409         cat <<_LT_EOF 1>&2
24410
24411 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24412 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24413 *** is disabling shared libraries support.  We urge you to upgrade GNU
24414 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24415 *** your PATH or compiler configuration so that the native linker is
24416 *** used, and then restart.
24417
24418 _LT_EOF
24419         ;;
24420         *)
24421           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24422             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24423             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24424             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24425           else
24426             ld_shlibs_GCJ=no
24427           fi
24428         ;;
24429       esac
24430       ;;
24431
24432     sunos4*)
24433       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24434       wlarc=
24435       hardcode_direct_GCJ=yes
24436       hardcode_shlibpath_var_GCJ=no
24437       ;;
24438
24439     *)
24440       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24441         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24442         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24443       else
24444         ld_shlibs_GCJ=no
24445       fi
24446       ;;
24447     esac
24448
24449     if test "$ld_shlibs_GCJ" = no; then
24450       runpath_var=
24451       hardcode_libdir_flag_spec_GCJ=
24452       export_dynamic_flag_spec_GCJ=
24453       whole_archive_flag_spec_GCJ=
24454     fi
24455   else
24456     # PORTME fill in a description of your system's linker (not GNU ld)
24457     case $host_os in
24458     aix3*)
24459       allow_undefined_flag_GCJ=unsupported
24460       always_export_symbols_GCJ=yes
24461       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'
24462       # Note: this linker hardcodes the directories in LIBPATH if there
24463       # are no directories specified by -L.
24464       hardcode_minus_L_GCJ=yes
24465       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24466         # Neither direct hardcoding nor static linking is supported with a
24467         # broken collect2.
24468         hardcode_direct_GCJ=unsupported
24469       fi
24470       ;;
24471
24472     aix4* | aix5*)
24473       if test "$host_cpu" = ia64; then
24474         # On IA64, the linker does run time linking by default, so we don't
24475         # have to do anything special.
24476         aix_use_runtimelinking=no
24477         exp_sym_flag='-Bexport'
24478         no_entry_flag=""
24479       else
24480         # If we're using GNU nm, then we don't want the "-C" option.
24481         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24482         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24483           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'
24484         else
24485           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'
24486         fi
24487         aix_use_runtimelinking=no
24488
24489         # Test if we are trying to use run time linking or normal
24490         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24491         # need to do runtime linking.
24492         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24493           for ld_flag in $LDFLAGS; do
24494           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24495             aix_use_runtimelinking=yes
24496             break
24497           fi
24498           done
24499           ;;
24500         esac
24501
24502         exp_sym_flag='-bexport'
24503         no_entry_flag='-bnoentry'
24504       fi
24505
24506       # When large executables or shared objects are built, AIX ld can
24507       # have problems creating the table of contents.  If linking a library
24508       # or program results in "error TOC overflow" add -mminimal-toc to
24509       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24510       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24511
24512       archive_cmds_GCJ=''
24513       hardcode_direct_GCJ=yes
24514       hardcode_libdir_separator_GCJ=':'
24515       link_all_deplibs_GCJ=yes
24516
24517       if test "$GCC" = yes; then
24518         case $host_os in aix4.[012]|aix4.[012].*)
24519         # We only want to do this on AIX 4.2 and lower, the check
24520         # below for broken collect2 doesn't work under 4.3+
24521           collect2name=`${CC} -print-prog-name=collect2`
24522           if test -f "$collect2name" && \
24523            strings "$collect2name" | grep resolve_lib_name >/dev/null
24524           then
24525           # We have reworked collect2
24526           hardcode_direct_GCJ=yes
24527           else
24528           # We have old collect2
24529           hardcode_direct_GCJ=unsupported
24530           # It fails to find uninstalled libraries when the uninstalled
24531           # path is not listed in the libpath.  Setting hardcode_minus_L
24532           # to unsupported forces relinking
24533           hardcode_minus_L_GCJ=yes
24534           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24535           hardcode_libdir_separator_GCJ=
24536           fi
24537           ;;
24538         esac
24539         shared_flag='-shared'
24540         if test "$aix_use_runtimelinking" = yes; then
24541           shared_flag="$shared_flag "'${wl}-G'
24542         fi
24543       else
24544         # not using gcc
24545         if test "$host_cpu" = ia64; then
24546         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24547         # chokes on -Wl,-G. The following line is correct:
24548           shared_flag='-G'
24549         else
24550           if test "$aix_use_runtimelinking" = yes; then
24551             shared_flag='${wl}-G'
24552           else
24553             shared_flag='${wl}-bM:SRE'
24554           fi
24555         fi
24556       fi
24557
24558       # It seems that -bexpall does not export symbols beginning with
24559       # underscore (_), so it is better to generate a list of symbols to export.
24560       always_export_symbols_GCJ=yes
24561       if test "$aix_use_runtimelinking" = yes; then
24562         # Warning - without using the other runtime loading flags (-brtl),
24563         # -berok will link without error, but may produce a broken library.
24564         allow_undefined_flag_GCJ='-berok'
24565        # Determine the default libpath from the value encoded in an empty executable.
24566        cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572
24573 int
24574 main ()
24575 {
24576
24577   ;
24578   return 0;
24579 }
24580 _ACEOF
24581 rm -f conftest.$ac_objext conftest$ac_exeext
24582 if { (ac_try="$ac_link"
24583 case "(($ac_try" in
24584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585   *) ac_try_echo=$ac_try;;
24586 esac
24587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24588   (eval "$ac_link") 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } && {
24595          test -z "$ac_c_werror_flag" ||
24596          test ! -s conftest.err
24597        } && test -s conftest$ac_exeext &&
24598        $as_test_x conftest$ac_exeext; then
24599
24600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24601 }'`
24602 # Check for a 64-bit object if we didn't find anything.
24603 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24604 }'`; fi
24605 else
24606   echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24608
24609
24610 fi
24611
24612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24613       conftest$ac_exeext conftest.$ac_ext
24614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24615
24616        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24617         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"
24618        else
24619         if test "$host_cpu" = ia64; then
24620           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24621           allow_undefined_flag_GCJ="-z nodefs"
24622           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"
24623         else
24624          # Determine the default libpath from the value encoded in an empty executable.
24625          cat >conftest.$ac_ext <<_ACEOF
24626 /* confdefs.h.  */
24627 _ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h.  */
24631
24632 int
24633 main ()
24634 {
24635
24636   ;
24637   return 0;
24638 }
24639 _ACEOF
24640 rm -f conftest.$ac_objext conftest$ac_exeext
24641 if { (ac_try="$ac_link"
24642 case "(($ac_try" in
24643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644   *) ac_try_echo=$ac_try;;
24645 esac
24646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24647   (eval "$ac_link") 2>conftest.er1
24648   ac_status=$?
24649   grep -v '^ *+' conftest.er1 >conftest.err
24650   rm -f conftest.er1
24651   cat conftest.err >&5
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } && {
24654          test -z "$ac_c_werror_flag" ||
24655          test ! -s conftest.err
24656        } && test -s conftest$ac_exeext &&
24657        $as_test_x conftest$ac_exeext; then
24658
24659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24660 }'`
24661 # Check for a 64-bit object if we didn't find anything.
24662 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24663 }'`; fi
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24672       conftest$ac_exeext conftest.$ac_ext
24673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24674
24675          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24676           # Warning - without using the other run time loading flags,
24677           # -berok will link without error, but may produce a broken library.
24678           no_undefined_flag_GCJ=' ${wl}-bernotok'
24679           allow_undefined_flag_GCJ=' ${wl}-berok'
24680           # Exported symbols can be pulled into shared objects from archives
24681           whole_archive_flag_spec_GCJ='$convenience'
24682           archive_cmds_need_lc_GCJ=yes
24683           # This is similar to how AIX traditionally builds its shared libraries.
24684           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'
24685         fi
24686       fi
24687       ;;
24688
24689     amigaos*)
24690       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)'
24691       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24692       hardcode_minus_L_GCJ=yes
24693       # see comment about different semantics on the GNU ld section
24694       ld_shlibs_GCJ=no
24695       ;;
24696
24697     bsdi[45]*)
24698       export_dynamic_flag_spec_GCJ=-rdynamic
24699       ;;
24700
24701     cygwin* | mingw* | pw32*)
24702       # When not using gcc, we currently assume that we are using
24703       # Microsoft Visual C++.
24704       # hardcode_libdir_flag_spec is actually meaningless, as there is
24705       # no search path for DLLs.
24706       hardcode_libdir_flag_spec_GCJ=' '
24707       allow_undefined_flag_GCJ=unsupported
24708       # Tell ltmain to make .lib files, not .a files.
24709       libext=lib
24710       # Tell ltmain to make .dll files, not .so files.
24711       shrext_cmds=".dll"
24712       # FIXME: Setting linknames here is a bad hack.
24713       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24714       # The linker will automatically build a .lib file if we build a DLL.
24715       old_archive_From_new_cmds_GCJ='true'
24716       # FIXME: Should let the user specify the lib program.
24717       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24718       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24719       enable_shared_with_static_runtimes_GCJ=yes
24720       ;;
24721
24722     darwin* | rhapsody*)
24723       case $host_os in
24724         rhapsody* | darwin1.[012])
24725          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24726          ;;
24727        *) # Darwin 1.3 on
24728          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24729            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24730          else
24731            case ${MACOSX_DEPLOYMENT_TARGET} in
24732              10.[012])
24733                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24734                ;;
24735              10.*)
24736                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24737                ;;
24738            esac
24739          fi
24740          ;;
24741       esac
24742       archive_cmds_need_lc_GCJ=no
24743       hardcode_direct_GCJ=no
24744       hardcode_automatic_GCJ=yes
24745       hardcode_shlibpath_var_GCJ=unsupported
24746       whole_archive_flag_spec_GCJ=''
24747       link_all_deplibs_GCJ=yes
24748     if test "$GCC" = yes ; then
24749         output_verbose_link_cmd='echo'
24750         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24751       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24752       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24753       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}'
24754       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}'
24755     else
24756       case $cc_basename in
24757         xlc*)
24758          output_verbose_link_cmd='echo'
24759          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24760          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24761           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24762          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24763           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}'
24764           ;;
24765        *)
24766          ld_shlibs_GCJ=no
24767           ;;
24768       esac
24769     fi
24770       ;;
24771
24772     dgux*)
24773       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24774       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24775       hardcode_shlibpath_var_GCJ=no
24776       ;;
24777
24778     freebsd1*)
24779       ld_shlibs_GCJ=no
24780       ;;
24781
24782     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24783     # support.  Future versions do this automatically, but an explicit c++rt0.o
24784     # does not break anything, and helps significantly (at the cost of a little
24785     # extra space).
24786     freebsd2.2*)
24787       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24788       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24789       hardcode_direct_GCJ=yes
24790       hardcode_shlibpath_var_GCJ=no
24791       ;;
24792
24793     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24794     freebsd2*)
24795       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24796       hardcode_direct_GCJ=yes
24797       hardcode_minus_L_GCJ=yes
24798       hardcode_shlibpath_var_GCJ=no
24799       ;;
24800
24801     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24802     freebsd* | kfreebsd*-gnu | dragonfly*)
24803       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24804       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24805       hardcode_direct_GCJ=yes
24806       hardcode_shlibpath_var_GCJ=no
24807       ;;
24808
24809     hpux9*)
24810       if test "$GCC" = yes; then
24811         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'
24812       else
24813         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'
24814       fi
24815       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24816       hardcode_libdir_separator_GCJ=:
24817       hardcode_direct_GCJ=yes
24818
24819       # hardcode_minus_L: Not really in the search PATH,
24820       # but as the default location of the library.
24821       hardcode_minus_L_GCJ=yes
24822       export_dynamic_flag_spec_GCJ='${wl}-E'
24823       ;;
24824
24825     hpux10*)
24826       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24827         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24828       else
24829         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24830       fi
24831       if test "$with_gnu_ld" = no; then
24832         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24833         hardcode_libdir_separator_GCJ=:
24834
24835         hardcode_direct_GCJ=yes
24836         export_dynamic_flag_spec_GCJ='${wl}-E'
24837
24838         # hardcode_minus_L: Not really in the search PATH,
24839         # but as the default location of the library.
24840         hardcode_minus_L_GCJ=yes
24841       fi
24842       ;;
24843
24844     hpux11*)
24845       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24846         case $host_cpu in
24847         hppa*64*)
24848           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24849           ;;
24850         ia64*)
24851           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24852           ;;
24853         *)
24854           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24855           ;;
24856         esac
24857       else
24858         case $host_cpu in
24859         hppa*64*)
24860           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24861           ;;
24862         ia64*)
24863           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24864           ;;
24865         *)
24866           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24867           ;;
24868         esac
24869       fi
24870       if test "$with_gnu_ld" = no; then
24871         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24872         hardcode_libdir_separator_GCJ=:
24873
24874         case $host_cpu in
24875         hppa*64*|ia64*)
24876           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24877           hardcode_direct_GCJ=no
24878           hardcode_shlibpath_var_GCJ=no
24879           ;;
24880         *)
24881           hardcode_direct_GCJ=yes
24882           export_dynamic_flag_spec_GCJ='${wl}-E'
24883
24884           # hardcode_minus_L: Not really in the search PATH,
24885           # but as the default location of the library.
24886           hardcode_minus_L_GCJ=yes
24887           ;;
24888         esac
24889       fi
24890       ;;
24891
24892     irix5* | irix6* | nonstopux*)
24893       if test "$GCC" = yes; then
24894         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'
24895       else
24896         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'
24897         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24898       fi
24899       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24900       hardcode_libdir_separator_GCJ=:
24901       link_all_deplibs_GCJ=yes
24902       ;;
24903
24904     netbsd*)
24905       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24906         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24907       else
24908         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24909       fi
24910       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24911       hardcode_direct_GCJ=yes
24912       hardcode_shlibpath_var_GCJ=no
24913       ;;
24914
24915     newsos6)
24916       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24917       hardcode_direct_GCJ=yes
24918       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24919       hardcode_libdir_separator_GCJ=:
24920       hardcode_shlibpath_var_GCJ=no
24921       ;;
24922
24923     openbsd*)
24924       hardcode_direct_GCJ=yes
24925       hardcode_shlibpath_var_GCJ=no
24926       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24927         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24928         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24929         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24930         export_dynamic_flag_spec_GCJ='${wl}-E'
24931       else
24932        case $host_os in
24933          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24934            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24935            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24936            ;;
24937          *)
24938            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24939            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24940            ;;
24941        esac
24942       fi
24943       ;;
24944
24945     os2*)
24946       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24947       hardcode_minus_L_GCJ=yes
24948       allow_undefined_flag_GCJ=unsupported
24949       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'
24950       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24951       ;;
24952
24953     osf3*)
24954       if test "$GCC" = yes; then
24955         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24956         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'
24957       else
24958         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24959         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'
24960       fi
24961       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24962       hardcode_libdir_separator_GCJ=:
24963       ;;
24964
24965     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24966       if test "$GCC" = yes; then
24967         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24968         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'
24969         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24970       else
24971         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24972         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'
24973         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~
24974         $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'
24975
24976         # Both c and cxx compiler support -rpath directly
24977         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24978       fi
24979       hardcode_libdir_separator_GCJ=:
24980       ;;
24981
24982     solaris*)
24983       no_undefined_flag_GCJ=' -z text'
24984       if test "$GCC" = yes; then
24985         wlarc='${wl}'
24986         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24987         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24988           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24989       else
24990         wlarc=''
24991         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24992         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24993         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24994       fi
24995       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24996       hardcode_shlibpath_var_GCJ=no
24997       case $host_os in
24998       solaris2.[0-5] | solaris2.[0-5].*) ;;
24999       *)
25000         # The compiler driver will combine linker options so we
25001         # cannot just pass the convience library names through
25002         # without $wl, iff we do not link with $LD.
25003         # Luckily, gcc supports the same syntax we need for Sun Studio.
25004         # Supported since Solaris 2.6 (maybe 2.5.1?)
25005         case $wlarc in
25006         '')
25007           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25008         *)
25009           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25010         esac ;;
25011       esac
25012       link_all_deplibs_GCJ=yes
25013       ;;
25014
25015     sunos4*)
25016       if test "x$host_vendor" = xsequent; then
25017         # Use $CC to link under sequent, because it throws in some extra .o
25018         # files that make .init and .fini sections work.
25019         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25020       else
25021         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25022       fi
25023       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25024       hardcode_direct_GCJ=yes
25025       hardcode_minus_L_GCJ=yes
25026       hardcode_shlibpath_var_GCJ=no
25027       ;;
25028
25029     sysv4)
25030       case $host_vendor in
25031         sni)
25032           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25033           hardcode_direct_GCJ=yes # is this really true???
25034         ;;
25035         siemens)
25036           ## LD is ld it makes a PLAMLIB
25037           ## CC just makes a GrossModule.
25038           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25039           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25040           hardcode_direct_GCJ=no
25041         ;;
25042         motorola)
25043           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25044           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25045         ;;
25046       esac
25047       runpath_var='LD_RUN_PATH'
25048       hardcode_shlibpath_var_GCJ=no
25049       ;;
25050
25051     sysv4.3*)
25052       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25053       hardcode_shlibpath_var_GCJ=no
25054       export_dynamic_flag_spec_GCJ='-Bexport'
25055       ;;
25056
25057     sysv4*MP*)
25058       if test -d /usr/nec; then
25059         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25060         hardcode_shlibpath_var_GCJ=no
25061         runpath_var=LD_RUN_PATH
25062         hardcode_runpath_var=yes
25063         ld_shlibs_GCJ=yes
25064       fi
25065       ;;
25066
25067     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25068       no_undefined_flag_GCJ='${wl}-z,text'
25069       archive_cmds_need_lc_GCJ=no
25070       hardcode_shlibpath_var_GCJ=no
25071       runpath_var='LD_RUN_PATH'
25072
25073       if test "$GCC" = yes; then
25074         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25075         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25076       else
25077         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25078         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079       fi
25080       ;;
25081
25082     sysv5* | sco3.2v5* | sco5v6*)
25083       # Note: We can NOT use -z defs as we might desire, because we do not
25084       # link with -lc, and that would cause any symbols used from libc to
25085       # always be unresolved, which means just about no library would
25086       # ever link correctly.  If we're not using GNU ld we use -z text
25087       # though, which does catch some bad symbols but isn't as heavy-handed
25088       # as -z defs.
25089       no_undefined_flag_GCJ='${wl}-z,text'
25090       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25091       archive_cmds_need_lc_GCJ=no
25092       hardcode_shlibpath_var_GCJ=no
25093       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25094       hardcode_libdir_separator_GCJ=':'
25095       link_all_deplibs_GCJ=yes
25096       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25097       runpath_var='LD_RUN_PATH'
25098
25099       if test "$GCC" = yes; then
25100         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25101         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25102       else
25103         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25104         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105       fi
25106       ;;
25107
25108     uts4*)
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     *)
25115       ld_shlibs_GCJ=no
25116       ;;
25117     esac
25118   fi
25119
25120 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25121 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25122 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25123
25124 #
25125 # Do we need to explicitly link libc?
25126 #
25127 case "x$archive_cmds_need_lc_GCJ" in
25128 x|xyes)
25129   # Assume -lc should be added
25130   archive_cmds_need_lc_GCJ=yes
25131
25132   if test "$enable_shared" = yes && test "$GCC" = yes; then
25133     case $archive_cmds_GCJ in
25134     *'~'*)
25135       # FIXME: we may have to deal with multi-command sequences.
25136       ;;
25137     '$CC '*)
25138       # Test whether the compiler implicitly links with -lc since on some
25139       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25140       # to ld, don't add -lc before -lgcc.
25141       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25142 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25143       $rm conftest*
25144       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25145
25146       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25147   (eval $ac_compile) 2>&5
25148   ac_status=$?
25149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } 2>conftest.err; then
25151         soname=conftest
25152         lib=conftest
25153         libobjs=conftest.$ac_objext
25154         deplibs=
25155         wl=$lt_prog_compiler_wl_GCJ
25156         pic_flag=$lt_prog_compiler_pic_GCJ
25157         compiler_flags=-v
25158         linker_flags=-v
25159         verstring=
25160         output_objdir=.
25161         libname=conftest
25162         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25163         allow_undefined_flag_GCJ=
25164         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25165   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }
25169         then
25170           archive_cmds_need_lc_GCJ=no
25171         else
25172           archive_cmds_need_lc_GCJ=yes
25173         fi
25174         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25175       else
25176         cat conftest.err 1>&5
25177       fi
25178       $rm conftest*
25179       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25180 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25181       ;;
25182     esac
25183   fi
25184   ;;
25185 esac
25186
25187 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25188 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25189 library_names_spec=
25190 libname_spec='lib$name'
25191 soname_spec=
25192 shrext_cmds=".so"
25193 postinstall_cmds=
25194 postuninstall_cmds=
25195 finish_cmds=
25196 finish_eval=
25197 shlibpath_var=
25198 shlibpath_overrides_runpath=unknown
25199 version_type=none
25200 dynamic_linker="$host_os ld.so"
25201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25202 if test "$GCC" = yes; then
25203   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25204   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25205     # if the path contains ";" then we assume it to be the separator
25206     # otherwise default to the standard path separator (i.e. ":") - it is
25207     # assumed that no part of a normal pathname contains ";" but that should
25208     # okay in the real world where ";" in dirpaths is itself problematic.
25209     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25210   else
25211     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25212   fi
25213 else
25214   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25215 fi
25216 need_lib_prefix=unknown
25217 hardcode_into_libs=no
25218
25219 # when you set need_version to no, make sure it does not cause -set_version
25220 # flags to be left without arguments
25221 need_version=unknown
25222
25223 case $host_os in
25224 aix3*)
25225   version_type=linux
25226   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25227   shlibpath_var=LIBPATH
25228
25229   # AIX 3 has no versioning support, so we append a major version to the name.
25230   soname_spec='${libname}${release}${shared_ext}$major'
25231   ;;
25232
25233 aix4* | aix5*)
25234   version_type=linux
25235   need_lib_prefix=no
25236   need_version=no
25237   hardcode_into_libs=yes
25238   if test "$host_cpu" = ia64; then
25239     # AIX 5 supports IA64
25240     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25241     shlibpath_var=LD_LIBRARY_PATH
25242   else
25243     # With GCC up to 2.95.x, collect2 would create an import file
25244     # for dependence libraries.  The import file would start with
25245     # the line `#! .'.  This would cause the generated library to
25246     # depend on `.', always an invalid library.  This was fixed in
25247     # development snapshots of GCC prior to 3.0.
25248     case $host_os in
25249       aix4 | aix4.[01] | aix4.[01].*)
25250       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25251            echo ' yes '
25252            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25253         :
25254       else
25255         can_build_shared=no
25256       fi
25257       ;;
25258     esac
25259     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25260     # soname into executable. Probably we can add versioning support to
25261     # collect2, so additional links can be useful in future.
25262     if test "$aix_use_runtimelinking" = yes; then
25263       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25264       # instead of lib<name>.a to let people know that these are not
25265       # typical AIX shared libraries.
25266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25267     else
25268       # We preserve .a as extension for shared libraries through AIX4.2
25269       # and later when we are not doing run time linking.
25270       library_names_spec='${libname}${release}.a $libname.a'
25271       soname_spec='${libname}${release}${shared_ext}$major'
25272     fi
25273     shlibpath_var=LIBPATH
25274   fi
25275   ;;
25276
25277 amigaos*)
25278   library_names_spec='$libname.ixlibrary $libname.a'
25279   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25280   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'
25281   ;;
25282
25283 beos*)
25284   library_names_spec='${libname}${shared_ext}'
25285   dynamic_linker="$host_os ld.so"
25286   shlibpath_var=LIBRARY_PATH
25287   ;;
25288
25289 bsdi[45]*)
25290   version_type=linux
25291   need_version=no
25292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25293   soname_spec='${libname}${release}${shared_ext}$major'
25294   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25295   shlibpath_var=LD_LIBRARY_PATH
25296   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25297   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25298   # the default ld.so.conf also contains /usr/contrib/lib and
25299   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25300   # libtool to hard-code these into programs
25301   ;;
25302
25303 cygwin* | mingw* | pw32*)
25304   version_type=windows
25305   shrext_cmds=".dll"
25306   need_version=no
25307   need_lib_prefix=no
25308
25309   case $GCC,$host_os in
25310   yes,cygwin* | yes,mingw* | yes,pw32*)
25311     library_names_spec='$libname.dll.a'
25312     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25313     postinstall_cmds='base_file=`basename \${file}`~
25314       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25315       dldir=$destdir/`dirname \$dlpath`~
25316       test -d \$dldir || mkdir -p \$dldir~
25317       $install_prog $dir/$dlname \$dldir/$dlname~
25318       chmod a+x \$dldir/$dlname'
25319     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25320       dlpath=$dir/\$dldll~
25321        $rm \$dlpath'
25322     shlibpath_overrides_runpath=yes
25323
25324     case $host_os in
25325     cygwin*)
25326       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25327       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25328       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25329       ;;
25330     mingw*)
25331       # MinGW DLLs use traditional 'lib' prefix
25332       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25333       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25334       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25335         # It is most probably a Windows format PATH printed by
25336         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25337         # path with ; separators, and with drive letters. We can handle the
25338         # drive letters (cygwin fileutils understands them), so leave them,
25339         # especially as we might pass files found there to a mingw objdump,
25340         # which wouldn't understand a cygwinified path. Ahh.
25341         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25342       else
25343         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25344       fi
25345       ;;
25346     pw32*)
25347       # pw32 DLLs use 'pw' prefix rather than 'lib'
25348       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25349       ;;
25350     esac
25351     ;;
25352
25353   *)
25354     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25355     ;;
25356   esac
25357   dynamic_linker='Win32 ld.exe'
25358   # FIXME: first we should search . and the directory the executable is in
25359   shlibpath_var=PATH
25360   ;;
25361
25362 darwin* | rhapsody*)
25363   dynamic_linker="$host_os dyld"
25364   version_type=darwin
25365   need_lib_prefix=no
25366   need_version=no
25367   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25368   soname_spec='${libname}${release}${major}$shared_ext'
25369   shlibpath_overrides_runpath=yes
25370   shlibpath_var=DYLD_LIBRARY_PATH
25371   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25372   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25373   if test "$GCC" = yes; then
25374     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25375   else
25376     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25377   fi
25378   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25379   ;;
25380
25381 dgux*)
25382   version_type=linux
25383   need_lib_prefix=no
25384   need_version=no
25385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25386   soname_spec='${libname}${release}${shared_ext}$major'
25387   shlibpath_var=LD_LIBRARY_PATH
25388   ;;
25389
25390 freebsd1*)
25391   dynamic_linker=no
25392   ;;
25393
25394 kfreebsd*-gnu)
25395   version_type=linux
25396   need_lib_prefix=no
25397   need_version=no
25398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25399   soname_spec='${libname}${release}${shared_ext}$major'
25400   shlibpath_var=LD_LIBRARY_PATH
25401   shlibpath_overrides_runpath=no
25402   hardcode_into_libs=yes
25403   dynamic_linker='GNU ld.so'
25404   ;;
25405
25406 freebsd* | dragonfly*)
25407   # DragonFly does not have aout.  When/if they implement a new
25408   # versioning mechanism, adjust this.
25409   if test -x /usr/bin/objformat; then
25410     objformat=`/usr/bin/objformat`
25411   else
25412     case $host_os in
25413     freebsd[123]*) objformat=aout ;;
25414     *) objformat=elf ;;
25415     esac
25416   fi
25417   version_type=freebsd-$objformat
25418   case $version_type in
25419     freebsd-elf*)
25420       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25421       need_version=no
25422       need_lib_prefix=no
25423       ;;
25424     freebsd-*)
25425       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25426       need_version=yes
25427       ;;
25428   esac
25429   shlibpath_var=LD_LIBRARY_PATH
25430   case $host_os in
25431   freebsd2*)
25432     shlibpath_overrides_runpath=yes
25433     ;;
25434   freebsd3.[01]* | freebsdelf3.[01]*)
25435     shlibpath_overrides_runpath=yes
25436     hardcode_into_libs=yes
25437     ;;
25438   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25439   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25440     shlibpath_overrides_runpath=no
25441     hardcode_into_libs=yes
25442     ;;
25443   freebsd*) # from 4.6 on
25444     shlibpath_overrides_runpath=yes
25445     hardcode_into_libs=yes
25446     ;;
25447   esac
25448   ;;
25449
25450 gnu*)
25451   version_type=linux
25452   need_lib_prefix=no
25453   need_version=no
25454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25455   soname_spec='${libname}${release}${shared_ext}$major'
25456   shlibpath_var=LD_LIBRARY_PATH
25457   hardcode_into_libs=yes
25458   ;;
25459
25460 hpux9* | hpux10* | hpux11*)
25461   # Give a soname corresponding to the major version so that dld.sl refuses to
25462   # link against other versions.
25463   version_type=sunos
25464   need_lib_prefix=no
25465   need_version=no
25466   case $host_cpu in
25467   ia64*)
25468     shrext_cmds='.so'
25469     hardcode_into_libs=yes
25470     dynamic_linker="$host_os dld.so"
25471     shlibpath_var=LD_LIBRARY_PATH
25472     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25474     soname_spec='${libname}${release}${shared_ext}$major'
25475     if test "X$HPUX_IA64_MODE" = X32; then
25476       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25477     else
25478       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25479     fi
25480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25481     ;;
25482    hppa*64*)
25483      shrext_cmds='.sl'
25484      hardcode_into_libs=yes
25485      dynamic_linker="$host_os dld.sl"
25486      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25487      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25488      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25489      soname_spec='${libname}${release}${shared_ext}$major'
25490      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25491      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25492      ;;
25493    *)
25494     shrext_cmds='.sl'
25495     dynamic_linker="$host_os dld.sl"
25496     shlibpath_var=SHLIB_PATH
25497     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25499     soname_spec='${libname}${release}${shared_ext}$major'
25500     ;;
25501   esac
25502   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25503   postinstall_cmds='chmod 555 $lib'
25504   ;;
25505
25506 interix3*)
25507   version_type=linux
25508   need_lib_prefix=no
25509   need_version=no
25510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25511   soname_spec='${libname}${release}${shared_ext}$major'
25512   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25513   shlibpath_var=LD_LIBRARY_PATH
25514   shlibpath_overrides_runpath=no
25515   hardcode_into_libs=yes
25516   ;;
25517
25518 irix5* | irix6* | nonstopux*)
25519   case $host_os in
25520     nonstopux*) version_type=nonstopux ;;
25521     *)
25522         if test "$lt_cv_prog_gnu_ld" = yes; then
25523                 version_type=linux
25524         else
25525                 version_type=irix
25526         fi ;;
25527   esac
25528   need_lib_prefix=no
25529   need_version=no
25530   soname_spec='${libname}${release}${shared_ext}$major'
25531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25532   case $host_os in
25533   irix5* | nonstopux*)
25534     libsuff= shlibsuff=
25535     ;;
25536   *)
25537     case $LD in # libtool.m4 will add one of these switches to LD
25538     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25539       libsuff= shlibsuff= libmagic=32-bit;;
25540     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25541       libsuff=32 shlibsuff=N32 libmagic=N32;;
25542     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25543       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25544     *) libsuff= shlibsuff= libmagic=never-match;;
25545     esac
25546     ;;
25547   esac
25548   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25549   shlibpath_overrides_runpath=no
25550   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25551   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25552   hardcode_into_libs=yes
25553   ;;
25554
25555 # No shared lib support for Linux oldld, aout, or coff.
25556 linux*oldld* | linux*aout* | linux*coff*)
25557   dynamic_linker=no
25558   ;;
25559
25560 # This must be Linux ELF.
25561 linux*)
25562   version_type=linux
25563   need_lib_prefix=no
25564   need_version=no
25565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25566   soname_spec='${libname}${release}${shared_ext}$major'
25567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25568   shlibpath_var=LD_LIBRARY_PATH
25569   shlibpath_overrides_runpath=no
25570   # This implies no fast_install, which is unacceptable.
25571   # Some rework will be needed to allow for fast_install
25572   # before this can be enabled.
25573   hardcode_into_libs=yes
25574
25575   # find out which ABI we are using
25576   libsuff=
25577   case "$host_cpu" in
25578   x86_64*|s390x*|powerpc64*)
25579     echo '#line 25579 "configure"' > conftest.$ac_ext
25580     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581   (eval $ac_compile) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; then
25585       case `/usr/bin/file conftest.$ac_objext` in
25586       *64-bit*)
25587         libsuff=64
25588         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
25589         ;;
25590       esac
25591     fi
25592     rm -rf conftest*
25593     ;;
25594   esac
25595
25596   # Append ld.so.conf contents to the search path
25597   if test -f /etc/ld.so.conf; then
25598     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/^       *//;s/#.*//;/^[^\/]/d;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25599     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
25600   fi
25601
25602   # We used to test for /lib/ld.so.1 and disable shared libraries on
25603   # powerpc, because MkLinux only supported shared libraries with the
25604   # GNU dynamic linker.  Since this was broken with cross compilers,
25605   # most powerpc-linux boxes support dynamic linking these days and
25606   # people can always --disable-shared, the test was removed, and we
25607   # assume the GNU/Linux dynamic linker is in use.
25608   dynamic_linker='GNU/Linux ld.so'
25609   ;;
25610
25611 knetbsd*-gnu)
25612   version_type=linux
25613   need_lib_prefix=no
25614   need_version=no
25615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25616   soname_spec='${libname}${release}${shared_ext}$major'
25617   shlibpath_var=LD_LIBRARY_PATH
25618   shlibpath_overrides_runpath=no
25619   hardcode_into_libs=yes
25620   dynamic_linker='GNU ld.so'
25621   ;;
25622
25623 netbsd*)
25624   version_type=sunos
25625   need_lib_prefix=no
25626   need_version=no
25627   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25629     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25630     dynamic_linker='NetBSD (a.out) ld.so'
25631   else
25632     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25633     soname_spec='${libname}${release}${shared_ext}$major'
25634     dynamic_linker='NetBSD ld.elf_so'
25635   fi
25636   shlibpath_var=LD_LIBRARY_PATH
25637   shlibpath_overrides_runpath=yes
25638   hardcode_into_libs=yes
25639   ;;
25640
25641 newsos6)
25642   version_type=linux
25643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25644   shlibpath_var=LD_LIBRARY_PATH
25645   shlibpath_overrides_runpath=yes
25646   ;;
25647
25648 nto-qnx*)
25649   version_type=linux
25650   need_lib_prefix=no
25651   need_version=no
25652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653   soname_spec='${libname}${release}${shared_ext}$major'
25654   shlibpath_var=LD_LIBRARY_PATH
25655   shlibpath_overrides_runpath=yes
25656   ;;
25657
25658 openbsd*)
25659   version_type=sunos
25660   sys_lib_dlsearch_path_spec="/usr/lib"
25661   need_lib_prefix=no
25662   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25663   case $host_os in
25664     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25665     *)                         need_version=no  ;;
25666   esac
25667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25669   shlibpath_var=LD_LIBRARY_PATH
25670   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25671     case $host_os in
25672       openbsd2.[89] | openbsd2.[89].*)
25673         shlibpath_overrides_runpath=no
25674         ;;
25675       *)
25676         shlibpath_overrides_runpath=yes
25677         ;;
25678       esac
25679   else
25680     shlibpath_overrides_runpath=yes
25681   fi
25682   ;;
25683
25684 os2*)
25685   libname_spec='$name'
25686   shrext_cmds=".dll"
25687   need_lib_prefix=no
25688   library_names_spec='$libname${shared_ext} $libname.a'
25689   dynamic_linker='OS/2 ld.exe'
25690   shlibpath_var=LIBPATH
25691   ;;
25692
25693 osf3* | osf4* | osf5*)
25694   version_type=osf
25695   need_lib_prefix=no
25696   need_version=no
25697   soname_spec='${libname}${release}${shared_ext}$major'
25698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25699   shlibpath_var=LD_LIBRARY_PATH
25700   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25701   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25702   ;;
25703
25704 solaris*)
25705   version_type=linux
25706   need_lib_prefix=no
25707   need_version=no
25708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25709   soname_spec='${libname}${release}${shared_ext}$major'
25710   shlibpath_var=LD_LIBRARY_PATH
25711   shlibpath_overrides_runpath=yes
25712   hardcode_into_libs=yes
25713   # ldd complains unless libraries are executable
25714   postinstall_cmds='chmod +x $lib'
25715   ;;
25716
25717 sunos4*)
25718   version_type=sunos
25719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25720   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25721   shlibpath_var=LD_LIBRARY_PATH
25722   shlibpath_overrides_runpath=yes
25723   if test "$with_gnu_ld" = yes; then
25724     need_lib_prefix=no
25725   fi
25726   need_version=yes
25727   ;;
25728
25729 sysv4 | sysv4.3*)
25730   version_type=linux
25731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732   soname_spec='${libname}${release}${shared_ext}$major'
25733   shlibpath_var=LD_LIBRARY_PATH
25734   case $host_vendor in
25735     sni)
25736       shlibpath_overrides_runpath=no
25737       need_lib_prefix=no
25738       export_dynamic_flag_spec='${wl}-Blargedynsym'
25739       runpath_var=LD_RUN_PATH
25740       ;;
25741     siemens)
25742       need_lib_prefix=no
25743       ;;
25744     motorola)
25745       need_lib_prefix=no
25746       need_version=no
25747       shlibpath_overrides_runpath=no
25748       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25749       ;;
25750   esac
25751   ;;
25752
25753 sysv4*MP*)
25754   if test -d /usr/nec ;then
25755     version_type=linux
25756     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25757     soname_spec='$libname${shared_ext}.$major'
25758     shlibpath_var=LD_LIBRARY_PATH
25759   fi
25760   ;;
25761
25762 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25763   version_type=freebsd-elf
25764   need_lib_prefix=no
25765   need_version=no
25766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25767   soname_spec='${libname}${release}${shared_ext}$major'
25768   shlibpath_var=LD_LIBRARY_PATH
25769   hardcode_into_libs=yes
25770   if test "$with_gnu_ld" = yes; then
25771     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25772     shlibpath_overrides_runpath=no
25773   else
25774     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25775     shlibpath_overrides_runpath=yes
25776     case $host_os in
25777       sco3.2v5*)
25778         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25779         ;;
25780     esac
25781   fi
25782   sys_lib_dlsearch_path_spec='/usr/lib'
25783   ;;
25784
25785 uts4*)
25786   version_type=linux
25787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25788   soname_spec='${libname}${release}${shared_ext}$major'
25789   shlibpath_var=LD_LIBRARY_PATH
25790   ;;
25791
25792 *)
25793   dynamic_linker=no
25794   ;;
25795 esac
25796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25797 echo "${ECHO_T}$dynamic_linker" >&6; }
25798 test "$dynamic_linker" = no && can_build_shared=no
25799
25800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25801 if test "$GCC" = yes; then
25802   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25803 fi
25804
25805 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25807 hardcode_action_GCJ=
25808 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25809    test -n "$runpath_var_GCJ" || \
25810    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25811
25812   # We can hardcode non-existant directories.
25813   if test "$hardcode_direct_GCJ" != no &&
25814      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25815      # have to relink, otherwise we might link with an installed library
25816      # when we should be linking with a yet-to-be-installed one
25817      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25818      test "$hardcode_minus_L_GCJ" != no; then
25819     # Linking always hardcodes the temporary library directory.
25820     hardcode_action_GCJ=relink
25821   else
25822     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25823     hardcode_action_GCJ=immediate
25824   fi
25825 else
25826   # We cannot hardcode anything, or else we can only hardcode existing
25827   # directories.
25828   hardcode_action_GCJ=unsupported
25829 fi
25830 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25831 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25832
25833 if test "$hardcode_action_GCJ" = relink; then
25834   # Fast installation is not supported
25835   enable_fast_install=no
25836 elif test "$shlibpath_overrides_runpath" = yes ||
25837      test "$enable_shared" = no; then
25838   # Fast installation is not necessary
25839   enable_fast_install=needless
25840 fi
25841
25842
25843 # The else clause should only fire when bootstrapping the
25844 # libtool distribution, otherwise you forgot to ship ltmain.sh
25845 # with your package, and you will get complaints that there are
25846 # no rules to generate ltmain.sh.
25847 if test -f "$ltmain"; then
25848   # See if we are running on zsh, and set the options which allow our commands through
25849   # without removal of \ escapes.
25850   if test -n "${ZSH_VERSION+set}" ; then
25851     setopt NO_GLOB_SUBST
25852   fi
25853   # Now quote all the things that may contain metacharacters while being
25854   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25855   # variables and quote the copies for generation of the libtool script.
25856   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25857     SED SHELL STRIP \
25858     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25859     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25860     deplibs_check_method reload_flag reload_cmds need_locks \
25861     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25862     lt_cv_sys_global_symbol_to_c_name_address \
25863     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25864     old_postinstall_cmds old_postuninstall_cmds \
25865     compiler_GCJ \
25866     CC_GCJ \
25867     LD_GCJ \
25868     lt_prog_compiler_wl_GCJ \
25869     lt_prog_compiler_pic_GCJ \
25870     lt_prog_compiler_static_GCJ \
25871     lt_prog_compiler_no_builtin_flag_GCJ \
25872     export_dynamic_flag_spec_GCJ \
25873     thread_safe_flag_spec_GCJ \
25874     whole_archive_flag_spec_GCJ \
25875     enable_shared_with_static_runtimes_GCJ \
25876     old_archive_cmds_GCJ \
25877     old_archive_from_new_cmds_GCJ \
25878     predep_objects_GCJ \
25879     postdep_objects_GCJ \
25880     predeps_GCJ \
25881     postdeps_GCJ \
25882     compiler_lib_search_path_GCJ \
25883     archive_cmds_GCJ \
25884     archive_expsym_cmds_GCJ \
25885     postinstall_cmds_GCJ \
25886     postuninstall_cmds_GCJ \
25887     old_archive_from_expsyms_cmds_GCJ \
25888     allow_undefined_flag_GCJ \
25889     no_undefined_flag_GCJ \
25890     export_symbols_cmds_GCJ \
25891     hardcode_libdir_flag_spec_GCJ \
25892     hardcode_libdir_flag_spec_ld_GCJ \
25893     hardcode_libdir_separator_GCJ \
25894     hardcode_automatic_GCJ \
25895     module_cmds_GCJ \
25896     module_expsym_cmds_GCJ \
25897     lt_cv_prog_compiler_c_o_GCJ \
25898     exclude_expsyms_GCJ \
25899     include_expsyms_GCJ; do
25900
25901     case $var in
25902     old_archive_cmds_GCJ | \
25903     old_archive_from_new_cmds_GCJ | \
25904     archive_cmds_GCJ | \
25905     archive_expsym_cmds_GCJ | \
25906     module_cmds_GCJ | \
25907     module_expsym_cmds_GCJ | \
25908     old_archive_from_expsyms_cmds_GCJ | \
25909     export_symbols_cmds_GCJ | \
25910     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25911     postinstall_cmds | postuninstall_cmds | \
25912     old_postinstall_cmds | old_postuninstall_cmds | \
25913     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25914       # Double-quote double-evaled strings.
25915       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25916       ;;
25917     *)
25918       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25919       ;;
25920     esac
25921   done
25922
25923   case $lt_echo in
25924   *'\$0 --fallback-echo"')
25925     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25926     ;;
25927   esac
25928
25929 cfgfile="$ofile"
25930
25931   cat <<__EOF__ >> "$cfgfile"
25932 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25933
25934 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25935
25936 # Shell to use when invoking shell scripts.
25937 SHELL=$lt_SHELL
25938
25939 # Whether or not to build shared libraries.
25940 build_libtool_libs=$enable_shared
25941
25942 # Whether or not to build static libraries.
25943 build_old_libs=$enable_static
25944
25945 # Whether or not to add -lc for building shared libraries.
25946 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25947
25948 # Whether or not to disallow shared libs when runtime libs are static
25949 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25950
25951 # Whether or not to optimize for fast installation.
25952 fast_install=$enable_fast_install
25953
25954 # The host system.
25955 host_alias=$host_alias
25956 host=$host
25957 host_os=$host_os
25958
25959 # The build system.
25960 build_alias=$build_alias
25961 build=$build
25962 build_os=$build_os
25963
25964 # An echo program that does not interpret backslashes.
25965 echo=$lt_echo
25966
25967 # The archiver.
25968 AR=$lt_AR
25969 AR_FLAGS=$lt_AR_FLAGS
25970
25971 # A C compiler.
25972 LTCC=$lt_LTCC
25973
25974 # LTCC compiler flags.
25975 LTCFLAGS=$lt_LTCFLAGS
25976
25977 # A language-specific compiler.
25978 CC=$lt_compiler_GCJ
25979
25980 # Is the compiler the GNU C compiler?
25981 with_gcc=$GCC_GCJ
25982
25983 # An ERE matcher.
25984 EGREP=$lt_EGREP
25985
25986 # The linker used to build libraries.
25987 LD=$lt_LD_GCJ
25988
25989 # Whether we need hard or soft links.
25990 LN_S=$lt_LN_S
25991
25992 # A BSD-compatible nm program.
25993 NM=$lt_NM
25994
25995 # A symbol stripping program
25996 STRIP=$lt_STRIP
25997
25998 # Used to examine libraries when file_magic_cmd begins "file"
25999 MAGIC_CMD=$MAGIC_CMD
26000
26001 # Used on cygwin: DLL creation program.
26002 DLLTOOL="$DLLTOOL"
26003
26004 # Used on cygwin: object dumper.
26005 OBJDUMP="$OBJDUMP"
26006
26007 # Used on cygwin: assembler.
26008 AS="$AS"
26009
26010 # The name of the directory that contains temporary libtool files.
26011 objdir=$objdir
26012
26013 # How to create reloadable object files.
26014 reload_flag=$lt_reload_flag
26015 reload_cmds=$lt_reload_cmds
26016
26017 # How to pass a linker flag through the compiler.
26018 wl=$lt_lt_prog_compiler_wl_GCJ
26019
26020 # Object file suffix (normally "o").
26021 objext="$ac_objext"
26022
26023 # Old archive suffix (normally "a").
26024 libext="$libext"
26025
26026 # Shared library suffix (normally ".so").
26027 shrext_cmds='$shrext_cmds'
26028
26029 # Executable file suffix (normally "").
26030 exeext="$exeext"
26031
26032 # Additional compiler flags for building library objects.
26033 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26034 pic_mode=$pic_mode
26035
26036 # What is the maximum length of a command?
26037 max_cmd_len=$lt_cv_sys_max_cmd_len
26038
26039 # Does compiler simultaneously support -c and -o options?
26040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26041
26042 # Must we lock files when doing compilation?
26043 need_locks=$lt_need_locks
26044
26045 # Do we need the lib prefix for modules?
26046 need_lib_prefix=$need_lib_prefix
26047
26048 # Do we need a version for libraries?
26049 need_version=$need_version
26050
26051 # Whether dlopen is supported.
26052 dlopen_support=$enable_dlopen
26053
26054 # Whether dlopen of programs is supported.
26055 dlopen_self=$enable_dlopen_self
26056
26057 # Whether dlopen of statically linked programs is supported.
26058 dlopen_self_static=$enable_dlopen_self_static
26059
26060 # Compiler flag to prevent dynamic linking.
26061 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26062
26063 # Compiler flag to turn off builtin functions.
26064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26065
26066 # Compiler flag to allow reflexive dlopens.
26067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26068
26069 # Compiler flag to generate shared objects directly from archives.
26070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26071
26072 # Compiler flag to generate thread-safe objects.
26073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26074
26075 # Library versioning type.
26076 version_type=$version_type
26077
26078 # Format of library name prefix.
26079 libname_spec=$lt_libname_spec
26080
26081 # List of archive names.  First name is the real one, the rest are links.
26082 # The last name is the one that the linker finds with -lNAME.
26083 library_names_spec=$lt_library_names_spec
26084
26085 # The coded name of the library, if different from the real name.
26086 soname_spec=$lt_soname_spec
26087
26088 # Commands used to build and install an old-style archive.
26089 RANLIB=$lt_RANLIB
26090 old_archive_cmds=$lt_old_archive_cmds_GCJ
26091 old_postinstall_cmds=$lt_old_postinstall_cmds
26092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26093
26094 # Create an old-style archive from a shared archive.
26095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26096
26097 # Create a temporary old-style archive to link instead of a shared archive.
26098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26099
26100 # Commands used to build and install a shared archive.
26101 archive_cmds=$lt_archive_cmds_GCJ
26102 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26103 postinstall_cmds=$lt_postinstall_cmds
26104 postuninstall_cmds=$lt_postuninstall_cmds
26105
26106 # Commands used to build a loadable module (assumed same as above if empty)
26107 module_cmds=$lt_module_cmds_GCJ
26108 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26109
26110 # Commands to strip libraries.
26111 old_striplib=$lt_old_striplib
26112 striplib=$lt_striplib
26113
26114 # Dependencies to place before the objects being linked to create a
26115 # shared library.
26116 predep_objects=$lt_predep_objects_GCJ
26117
26118 # Dependencies to place after the objects being linked to create a
26119 # shared library.
26120 postdep_objects=$lt_postdep_objects_GCJ
26121
26122 # Dependencies to place before the objects being linked to create a
26123 # shared library.
26124 predeps=$lt_predeps_GCJ
26125
26126 # Dependencies to place after the objects being linked to create a
26127 # shared library.
26128 postdeps=$lt_postdeps_GCJ
26129
26130 # The library search path used internally by the compiler when linking
26131 # a shared library.
26132 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26133
26134 # Method to check whether dependent libraries are shared objects.
26135 deplibs_check_method=$lt_deplibs_check_method
26136
26137 # Command to use when deplibs_check_method == file_magic.
26138 file_magic_cmd=$lt_file_magic_cmd
26139
26140 # Flag that allows shared libraries with undefined symbols to be built.
26141 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26142
26143 # Flag that forces no undefined symbols.
26144 no_undefined_flag=$lt_no_undefined_flag_GCJ
26145
26146 # Commands used to finish a libtool library installation in a directory.
26147 finish_cmds=$lt_finish_cmds
26148
26149 # Same as above, but a single script fragment to be evaled but not shown.
26150 finish_eval=$lt_finish_eval
26151
26152 # Take the output of nm and produce a listing of raw symbols and C names.
26153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26154
26155 # Transform the output of nm in a proper C declaration
26156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26157
26158 # Transform the output of nm in a C name address pair
26159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26160
26161 # This is the shared library runtime path variable.
26162 runpath_var=$runpath_var
26163
26164 # This is the shared library path variable.
26165 shlibpath_var=$shlibpath_var
26166
26167 # Is shlibpath searched before the hard-coded library search path?
26168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26169
26170 # How to hardcode a shared library path into an executable.
26171 hardcode_action=$hardcode_action_GCJ
26172
26173 # Whether we should hardcode library paths into libraries.
26174 hardcode_into_libs=$hardcode_into_libs
26175
26176 # Flag to hardcode \$libdir into a binary during linking.
26177 # This must work even if \$libdir does not exist.
26178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26179
26180 # If ld is used when linking, flag to hardcode \$libdir into
26181 # a binary during linking. This must work even if \$libdir does
26182 # not exist.
26183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26184
26185 # Whether we need a single -rpath flag with a separated argument.
26186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26187
26188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26189 # resulting binary.
26190 hardcode_direct=$hardcode_direct_GCJ
26191
26192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26193 # resulting binary.
26194 hardcode_minus_L=$hardcode_minus_L_GCJ
26195
26196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26197 # the resulting binary.
26198 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26199
26200 # Set to yes if building a shared library automatically hardcodes DIR into the library
26201 # and all subsequent libraries and executables linked against it.
26202 hardcode_automatic=$hardcode_automatic_GCJ
26203
26204 # Variables whose values should be saved in libtool wrapper scripts and
26205 # restored at relink time.
26206 variables_saved_for_relink="$variables_saved_for_relink"
26207
26208 # Whether libtool must link a program against all its dependency libraries.
26209 link_all_deplibs=$link_all_deplibs_GCJ
26210
26211 # Compile-time system search path for libraries
26212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26213
26214 # Run-time system search path for libraries
26215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26216
26217 # Fix the shell variable \$srcfile for the compiler.
26218 fix_srcfile_path="$fix_srcfile_path_GCJ"
26219
26220 # Set to yes if exported symbols are required.
26221 always_export_symbols=$always_export_symbols_GCJ
26222
26223 # The commands to list exported symbols.
26224 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26225
26226 # The commands to extract the exported symbol list from a shared archive.
26227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26228
26229 # Symbols that should not be listed in the preloaded symbols.
26230 exclude_expsyms=$lt_exclude_expsyms_GCJ
26231
26232 # Symbols that must always be exported.
26233 include_expsyms=$lt_include_expsyms_GCJ
26234
26235 # ### END LIBTOOL TAG CONFIG: $tagname
26236
26237 __EOF__
26238
26239
26240 else
26241   # If there is no Makefile yet, we rely on a make rule to execute
26242   # `config.status --recheck' to rerun these tests and create the
26243   # libtool script then.
26244   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26245   if test -f "$ltmain_in"; then
26246     test -f Makefile && make "$ltmain"
26247   fi
26248 fi
26249
26250
26251 ac_ext=c
26252 ac_cpp='$CPP $CPPFLAGS'
26253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26256
26257 CC="$lt_save_CC"
26258
26259         else
26260           tagname=""
26261         fi
26262         ;;
26263
26264       RC)
26265
26266
26267 # Source file extension for RC test sources.
26268 ac_ext=rc
26269
26270 # Object file extension for compiled RC test sources.
26271 objext=o
26272 objext_RC=$objext
26273
26274 # Code to be used in simple compile tests
26275 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26276
26277 # Code to be used in simple link tests
26278 lt_simple_link_test_code="$lt_simple_compile_test_code"
26279
26280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26281
26282 # If no C compiler was specified, use CC.
26283 LTCC=${LTCC-"$CC"}
26284
26285 # If no C compiler flags were specified, use CFLAGS.
26286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26287
26288 # Allow CC to be a program name with arguments.
26289 compiler=$CC
26290
26291
26292 # save warnings/boilerplate of simple test code
26293 ac_outfile=conftest.$ac_objext
26294 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26296 _lt_compiler_boilerplate=`cat conftest.err`
26297 $rm conftest*
26298
26299 ac_outfile=conftest.$ac_objext
26300 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26302 _lt_linker_boilerplate=`cat conftest.err`
26303 $rm conftest*
26304
26305
26306 # Allow CC to be a program name with arguments.
26307 lt_save_CC="$CC"
26308 CC=${RC-"windres"}
26309 compiler=$CC
26310 compiler_RC=$CC
26311 for cc_temp in $compiler""; do
26312   case $cc_temp in
26313     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26314     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26315     \-*) ;;
26316     *) break;;
26317   esac
26318 done
26319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26320
26321 lt_cv_prog_compiler_c_o_RC=yes
26322
26323 # The else clause should only fire when bootstrapping the
26324 # libtool distribution, otherwise you forgot to ship ltmain.sh
26325 # with your package, and you will get complaints that there are
26326 # no rules to generate ltmain.sh.
26327 if test -f "$ltmain"; then
26328   # See if we are running on zsh, and set the options which allow our commands through
26329   # without removal of \ escapes.
26330   if test -n "${ZSH_VERSION+set}" ; then
26331     setopt NO_GLOB_SUBST
26332   fi
26333   # Now quote all the things that may contain metacharacters while being
26334   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26335   # variables and quote the copies for generation of the libtool script.
26336   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26337     SED SHELL STRIP \
26338     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26339     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26340     deplibs_check_method reload_flag reload_cmds need_locks \
26341     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26342     lt_cv_sys_global_symbol_to_c_name_address \
26343     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26344     old_postinstall_cmds old_postuninstall_cmds \
26345     compiler_RC \
26346     CC_RC \
26347     LD_RC \
26348     lt_prog_compiler_wl_RC \
26349     lt_prog_compiler_pic_RC \
26350     lt_prog_compiler_static_RC \
26351     lt_prog_compiler_no_builtin_flag_RC \
26352     export_dynamic_flag_spec_RC \
26353     thread_safe_flag_spec_RC \
26354     whole_archive_flag_spec_RC \
26355     enable_shared_with_static_runtimes_RC \
26356     old_archive_cmds_RC \
26357     old_archive_from_new_cmds_RC \
26358     predep_objects_RC \
26359     postdep_objects_RC \
26360     predeps_RC \
26361     postdeps_RC \
26362     compiler_lib_search_path_RC \
26363     archive_cmds_RC \
26364     archive_expsym_cmds_RC \
26365     postinstall_cmds_RC \
26366     postuninstall_cmds_RC \
26367     old_archive_from_expsyms_cmds_RC \
26368     allow_undefined_flag_RC \
26369     no_undefined_flag_RC \
26370     export_symbols_cmds_RC \
26371     hardcode_libdir_flag_spec_RC \
26372     hardcode_libdir_flag_spec_ld_RC \
26373     hardcode_libdir_separator_RC \
26374     hardcode_automatic_RC \
26375     module_cmds_RC \
26376     module_expsym_cmds_RC \
26377     lt_cv_prog_compiler_c_o_RC \
26378     exclude_expsyms_RC \
26379     include_expsyms_RC; do
26380
26381     case $var in
26382     old_archive_cmds_RC | \
26383     old_archive_from_new_cmds_RC | \
26384     archive_cmds_RC | \
26385     archive_expsym_cmds_RC | \
26386     module_cmds_RC | \
26387     module_expsym_cmds_RC | \
26388     old_archive_from_expsyms_cmds_RC | \
26389     export_symbols_cmds_RC | \
26390     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26391     postinstall_cmds | postuninstall_cmds | \
26392     old_postinstall_cmds | old_postuninstall_cmds | \
26393     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26394       # Double-quote double-evaled strings.
26395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26396       ;;
26397     *)
26398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26399       ;;
26400     esac
26401   done
26402
26403   case $lt_echo in
26404   *'\$0 --fallback-echo"')
26405     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26406     ;;
26407   esac
26408
26409 cfgfile="$ofile"
26410
26411   cat <<__EOF__ >> "$cfgfile"
26412 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26413
26414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26415
26416 # Shell to use when invoking shell scripts.
26417 SHELL=$lt_SHELL
26418
26419 # Whether or not to build shared libraries.
26420 build_libtool_libs=$enable_shared
26421
26422 # Whether or not to build static libraries.
26423 build_old_libs=$enable_static
26424
26425 # Whether or not to add -lc for building shared libraries.
26426 build_libtool_need_lc=$archive_cmds_need_lc_RC
26427
26428 # Whether or not to disallow shared libs when runtime libs are static
26429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26430
26431 # Whether or not to optimize for fast installation.
26432 fast_install=$enable_fast_install
26433
26434 # The host system.
26435 host_alias=$host_alias
26436 host=$host
26437 host_os=$host_os
26438
26439 # The build system.
26440 build_alias=$build_alias
26441 build=$build
26442 build_os=$build_os
26443
26444 # An echo program that does not interpret backslashes.
26445 echo=$lt_echo
26446
26447 # The archiver.
26448 AR=$lt_AR
26449 AR_FLAGS=$lt_AR_FLAGS
26450
26451 # A C compiler.
26452 LTCC=$lt_LTCC
26453
26454 # LTCC compiler flags.
26455 LTCFLAGS=$lt_LTCFLAGS
26456
26457 # A language-specific compiler.
26458 CC=$lt_compiler_RC
26459
26460 # Is the compiler the GNU C compiler?
26461 with_gcc=$GCC_RC
26462
26463 # An ERE matcher.
26464 EGREP=$lt_EGREP
26465
26466 # The linker used to build libraries.
26467 LD=$lt_LD_RC
26468
26469 # Whether we need hard or soft links.
26470 LN_S=$lt_LN_S
26471
26472 # A BSD-compatible nm program.
26473 NM=$lt_NM
26474
26475 # A symbol stripping program
26476 STRIP=$lt_STRIP
26477
26478 # Used to examine libraries when file_magic_cmd begins "file"
26479 MAGIC_CMD=$MAGIC_CMD
26480
26481 # Used on cygwin: DLL creation program.
26482 DLLTOOL="$DLLTOOL"
26483
26484 # Used on cygwin: object dumper.
26485 OBJDUMP="$OBJDUMP"
26486
26487 # Used on cygwin: assembler.
26488 AS="$AS"
26489
26490 # The name of the directory that contains temporary libtool files.
26491 objdir=$objdir
26492
26493 # How to create reloadable object files.
26494 reload_flag=$lt_reload_flag
26495 reload_cmds=$lt_reload_cmds
26496
26497 # How to pass a linker flag through the compiler.
26498 wl=$lt_lt_prog_compiler_wl_RC
26499
26500 # Object file suffix (normally "o").
26501 objext="$ac_objext"
26502
26503 # Old archive suffix (normally "a").
26504 libext="$libext"
26505
26506 # Shared library suffix (normally ".so").
26507 shrext_cmds='$shrext_cmds'
26508
26509 # Executable file suffix (normally "").
26510 exeext="$exeext"
26511
26512 # Additional compiler flags for building library objects.
26513 pic_flag=$lt_lt_prog_compiler_pic_RC
26514 pic_mode=$pic_mode
26515
26516 # What is the maximum length of a command?
26517 max_cmd_len=$lt_cv_sys_max_cmd_len
26518
26519 # Does compiler simultaneously support -c and -o options?
26520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26521
26522 # Must we lock files when doing compilation?
26523 need_locks=$lt_need_locks
26524
26525 # Do we need the lib prefix for modules?
26526 need_lib_prefix=$need_lib_prefix
26527
26528 # Do we need a version for libraries?
26529 need_version=$need_version
26530
26531 # Whether dlopen is supported.
26532 dlopen_support=$enable_dlopen
26533
26534 # Whether dlopen of programs is supported.
26535 dlopen_self=$enable_dlopen_self
26536
26537 # Whether dlopen of statically linked programs is supported.
26538 dlopen_self_static=$enable_dlopen_self_static
26539
26540 # Compiler flag to prevent dynamic linking.
26541 link_static_flag=$lt_lt_prog_compiler_static_RC
26542
26543 # Compiler flag to turn off builtin functions.
26544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26545
26546 # Compiler flag to allow reflexive dlopens.
26547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26548
26549 # Compiler flag to generate shared objects directly from archives.
26550 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26551
26552 # Compiler flag to generate thread-safe objects.
26553 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26554
26555 # Library versioning type.
26556 version_type=$version_type
26557
26558 # Format of library name prefix.
26559 libname_spec=$lt_libname_spec
26560
26561 # List of archive names.  First name is the real one, the rest are links.
26562 # The last name is the one that the linker finds with -lNAME.
26563 library_names_spec=$lt_library_names_spec
26564
26565 # The coded name of the library, if different from the real name.
26566 soname_spec=$lt_soname_spec
26567
26568 # Commands used to build and install an old-style archive.
26569 RANLIB=$lt_RANLIB
26570 old_archive_cmds=$lt_old_archive_cmds_RC
26571 old_postinstall_cmds=$lt_old_postinstall_cmds
26572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26573
26574 # Create an old-style archive from a shared archive.
26575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26576
26577 # Create a temporary old-style archive to link instead of a shared archive.
26578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26579
26580 # Commands used to build and install a shared archive.
26581 archive_cmds=$lt_archive_cmds_RC
26582 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26583 postinstall_cmds=$lt_postinstall_cmds
26584 postuninstall_cmds=$lt_postuninstall_cmds
26585
26586 # Commands used to build a loadable module (assumed same as above if empty)
26587 module_cmds=$lt_module_cmds_RC
26588 module_expsym_cmds=$lt_module_expsym_cmds_RC
26589
26590 # Commands to strip libraries.
26591 old_striplib=$lt_old_striplib
26592 striplib=$lt_striplib
26593
26594 # Dependencies to place before the objects being linked to create a
26595 # shared library.
26596 predep_objects=$lt_predep_objects_RC
26597
26598 # Dependencies to place after the objects being linked to create a
26599 # shared library.
26600 postdep_objects=$lt_postdep_objects_RC
26601
26602 # Dependencies to place before the objects being linked to create a
26603 # shared library.
26604 predeps=$lt_predeps_RC
26605
26606 # Dependencies to place after the objects being linked to create a
26607 # shared library.
26608 postdeps=$lt_postdeps_RC
26609
26610 # The library search path used internally by the compiler when linking
26611 # a shared library.
26612 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26613
26614 # Method to check whether dependent libraries are shared objects.
26615 deplibs_check_method=$lt_deplibs_check_method
26616
26617 # Command to use when deplibs_check_method == file_magic.
26618 file_magic_cmd=$lt_file_magic_cmd
26619
26620 # Flag that allows shared libraries with undefined symbols to be built.
26621 allow_undefined_flag=$lt_allow_undefined_flag_RC
26622
26623 # Flag that forces no undefined symbols.
26624 no_undefined_flag=$lt_no_undefined_flag_RC
26625
26626 # Commands used to finish a libtool library installation in a directory.
26627 finish_cmds=$lt_finish_cmds
26628
26629 # Same as above, but a single script fragment to be evaled but not shown.
26630 finish_eval=$lt_finish_eval
26631
26632 # Take the output of nm and produce a listing of raw symbols and C names.
26633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26634
26635 # Transform the output of nm in a proper C declaration
26636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26637
26638 # Transform the output of nm in a C name address pair
26639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26640
26641 # This is the shared library runtime path variable.
26642 runpath_var=$runpath_var
26643
26644 # This is the shared library path variable.
26645 shlibpath_var=$shlibpath_var
26646
26647 # Is shlibpath searched before the hard-coded library search path?
26648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26649
26650 # How to hardcode a shared library path into an executable.
26651 hardcode_action=$hardcode_action_RC
26652
26653 # Whether we should hardcode library paths into libraries.
26654 hardcode_into_libs=$hardcode_into_libs
26655
26656 # Flag to hardcode \$libdir into a binary during linking.
26657 # This must work even if \$libdir does not exist.
26658 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26659
26660 # If ld is used when linking, flag to hardcode \$libdir into
26661 # a binary during linking. This must work even if \$libdir does
26662 # not exist.
26663 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26664
26665 # Whether we need a single -rpath flag with a separated argument.
26666 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26667
26668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26669 # resulting binary.
26670 hardcode_direct=$hardcode_direct_RC
26671
26672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26673 # resulting binary.
26674 hardcode_minus_L=$hardcode_minus_L_RC
26675
26676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26677 # the resulting binary.
26678 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26679
26680 # Set to yes if building a shared library automatically hardcodes DIR into the library
26681 # and all subsequent libraries and executables linked against it.
26682 hardcode_automatic=$hardcode_automatic_RC
26683
26684 # Variables whose values should be saved in libtool wrapper scripts and
26685 # restored at relink time.
26686 variables_saved_for_relink="$variables_saved_for_relink"
26687
26688 # Whether libtool must link a program against all its dependency libraries.
26689 link_all_deplibs=$link_all_deplibs_RC
26690
26691 # Compile-time system search path for libraries
26692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26693
26694 # Run-time system search path for libraries
26695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26696
26697 # Fix the shell variable \$srcfile for the compiler.
26698 fix_srcfile_path="$fix_srcfile_path_RC"
26699
26700 # Set to yes if exported symbols are required.
26701 always_export_symbols=$always_export_symbols_RC
26702
26703 # The commands to list exported symbols.
26704 export_symbols_cmds=$lt_export_symbols_cmds_RC
26705
26706 # The commands to extract the exported symbol list from a shared archive.
26707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26708
26709 # Symbols that should not be listed in the preloaded symbols.
26710 exclude_expsyms=$lt_exclude_expsyms_RC
26711
26712 # Symbols that must always be exported.
26713 include_expsyms=$lt_include_expsyms_RC
26714
26715 # ### END LIBTOOL TAG CONFIG: $tagname
26716
26717 __EOF__
26718
26719
26720 else
26721   # If there is no Makefile yet, we rely on a make rule to execute
26722   # `config.status --recheck' to rerun these tests and create the
26723   # libtool script then.
26724   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26725   if test -f "$ltmain_in"; then
26726     test -f Makefile && make "$ltmain"
26727   fi
26728 fi
26729
26730
26731 ac_ext=c
26732 ac_cpp='$CPP $CPPFLAGS'
26733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26736
26737 CC="$lt_save_CC"
26738
26739         ;;
26740
26741       *)
26742         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26743 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26744    { (exit 1); exit 1; }; }
26745         ;;
26746       esac
26747
26748       # Append the new tag name to the list of available tags.
26749       if test -n "$tagname" ; then
26750       available_tags="$available_tags $tagname"
26751     fi
26752     fi
26753   done
26754   IFS="$lt_save_ifs"
26755
26756   # Now substitute the updated list of available tags.
26757   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26758     mv "${ofile}T" "$ofile"
26759     chmod +x "$ofile"
26760   else
26761     rm -f "${ofile}T"
26762     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26763 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26764    { (exit 1); exit 1; }; }
26765   fi
26766 fi
26767
26768
26769
26770 # This can be used to rebuild libtool when needed
26771 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26772
26773 # Always use our own libtool.
26774 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26775
26776 # Prevent multiple expansion
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800         { echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26801 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6; }
26802
26803 # Check whether --with-vrootdir was given.
26804 if test "${with_vrootdir+set}" = set; then
26805   withval=$with_vrootdir; case "$withval" in
26806                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26807 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26808    { (exit 1); exit 1; }; };;
26809                         *)      ensc_uv_path_vrootdir=$withval;;
26810                      esac
26811 else
26812   ensc_uv_path_vrootdir=/vservers
26813 fi
26814
26815         { echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26816 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6; }
26817
26818         if test x"vserverdir" != x; then
26819                 vserverdir=$ensc_uv_path_vrootdir
26820
26821         fi
26822
26823
26824         for ac_prog in svn2cl
26825 do
26826   # Extract the first word of "$ac_prog", so it can be a program name with args.
26827 set dummy $ac_prog; ac_word=$2
26828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26830 if test "${ac_cv_prog_SVN2CL+set}" = set; then
26831   echo $ECHO_N "(cached) $ECHO_C" >&6
26832 else
26833   if test -n "$SVN2CL"; then
26834   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
26835 else
26836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26837 for as_dir in $PATH
26838 do
26839   IFS=$as_save_IFS
26840   test -z "$as_dir" && as_dir=.
26841   for ac_exec_ext in '' $ac_executable_extensions; do
26842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26843     ac_cv_prog_SVN2CL="$ac_prog"
26844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26845     break 2
26846   fi
26847 done
26848 done
26849 IFS=$as_save_IFS
26850
26851 fi
26852 fi
26853 SVN2CL=$ac_cv_prog_SVN2CL
26854 if test -n "$SVN2CL"; then
26855   { echo "$as_me:$LINENO: result: $SVN2CL" >&5
26856 echo "${ECHO_T}$SVN2CL" >&6; }
26857 else
26858   { echo "$as_me:$LINENO: result: no" >&5
26859 echo "${ECHO_T}no" >&6; }
26860 fi
26861
26862
26863   test -n "$SVN2CL" && break
26864 done
26865
26866          if test x"$SVN2CL" != x; then
26867   HAVE_SVN2CL_TRUE=
26868   HAVE_SVN2CL_FALSE='#'
26869 else
26870   HAVE_SVN2CL_TRUE='#'
26871   HAVE_SVN2CL_FALSE=
26872 fi
26873
26874
26875
26876
26877 { echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26878 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6; }
26879 # Check whether --enable-internal-headers was given.
26880 if test "${enable_internal_headers+set}" = set; then
26881   enableval=$enable_internal_headers; case "$enableval" in
26882                   (yes|no) ;;
26883                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26884 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26885    { (exit 1); exit 1; }; };;
26886                esac
26887 else
26888   enable_internal_headers=yes
26889 fi
26890
26891
26892  if test x"$enable_internal_headers" = xyes; then
26893   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26894   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26895 else
26896   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26897   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26898 fi
26899
26900 { echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26901 echo "${ECHO_T}$enable_internal_headers" >&6; }
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930 { echo "$as_me:$LINENO: checking for supported APIs" >&5
26931 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6; }
26932 # Check whether --enable-apis was given.
26933 if test "${enable_apis+set}" = set; then
26934   enableval=$enable_apis;
26935 else
26936   enable_apis=v13,net,v21,v22,v23,netv2
26937 fi
26938
26939
26940 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
26941 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
26942 enable_api_oldproc=
26943 enable_api_olduts=
26944 old_IFS=$IFS
26945 IFS=,;
26946
26947 for i in $enable_apis; do
26948         case "$i" in
26949                 (compat)        cat >>confdefs.h <<\_ACEOF
26950 #define VC_ENABLE_API_COMPAT 1
26951 _ACEOF
26952
26953                                 enable_api_oldproc=${enable_api_oldproc:-1}
26954                                 enable_api_olduts=${enable_api_olduts:-1}
26955                                 ;;
26956                 (legacy)        cat >>confdefs.h <<\_ACEOF
26957 #define VC_ENABLE_API_LEGACY 1
26958 _ACEOF
26959
26960                                 enable_api_oldproc=${enable_api_oldproc:-1}
26961                                 enable_api_olduts=${enable_api_olduts:-1}
26962                                 ;;
26963                 (v11)           cat >>confdefs.h <<\_ACEOF
26964 #define VC_ENABLE_API_V11 1
26965 _ACEOF
26966
26967                                 enable_api_oldproc=${enable_api_oldproc:-1}
26968                                 enable_api_olduts=${enable_api_olduts:-1}
26969                                 ;;
26970                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26971 #define VC_ENABLE_API_FSCOMPAT 1
26972 _ACEOF
26973 ;;
26974                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26975 #define VC_ENABLE_API_V13OBS 1
26976 _ACEOF
26977
26978                                 cat >>confdefs.h <<\_ACEOF
26979 #define VC_ENABLE_API_V13 1
26980 _ACEOF
26981 ;;
26982                 (v13)           cat >>confdefs.h <<\_ACEOF
26983 #define VC_ENABLE_API_V13 1
26984 _ACEOF
26985 ;;
26986                 (net)           cat >>confdefs.h <<\_ACEOF
26987 #define VC_ENABLE_API_NET 1
26988 _ACEOF
26989 ;;
26990                 (v21)           cat >>confdefs.h <<\_ACEOF
26991 #define VC_ENABLE_API_V21 1
26992 _ACEOF
26993 ;;
26994                 (v22)           cat >>confdefs.h <<\_ACEOF
26995 #define VC_ENABLE_API_V22 1
26996 _ACEOF
26997 ;;
26998                 (v23)           cat >>confdefs.h <<\_ACEOF
26999 #define VC_ENABLE_API_V23 1
27000 _ACEOF
27001 ;;
27002                 (netv2)         cat >>confdefs.h <<\_ACEOF
27003 #define VC_ENABLE_API_NETV2 1
27004 _ACEOF
27005 ;;
27006                 (oldproc)       enable_api_oldproc=2;;
27007                 (olduts)        enable_api_olduts=2;;
27008                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
27009 echo "$as_me: error: '$i' is not a supported API" >&2;}
27010    { (exit 1); exit 1; }; };;
27011         esac
27012 done
27013 IFS=$old_IFS
27014 if test x"$enable_api_oldproc" != x; then
27015         cat >>confdefs.h <<\_ACEOF
27016 #define VC_ENABLE_API_OLDPROC 1
27017 _ACEOF
27018
27019         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
27020 fi
27021 if test x"$enable_api_olduts" != x; then
27022         cat >>confdefs.h <<\_ACEOF
27023 #define VC_ENABLE_API_OLDUTS 1
27024 _ACEOF
27025
27026         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
27027 fi
27028 { echo "$as_me:$LINENO: result: $enable_apis" >&5
27029 echo "${ECHO_T}$enable_apis" >&6; }
27030
27031
27032
27033
27034     ac_ext=cpp
27035 ac_cpp='$CXXCPP $CPPFLAGS'
27036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27039
27040     { echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
27041 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6; }
27042 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 else
27045
27046         cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052 #include <ext2fs/ext2_fs.h>
27053                                           int main() { return 0; }
27054 _ACEOF
27055 rm -f conftest.$ac_objext
27056 if { (ac_try="$ac_compile"
27057 case "(($ac_try" in
27058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059   *) ac_try_echo=$ac_try;;
27060 esac
27061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062   (eval "$ac_compile") 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } && {
27069          test -z "$ac_cxx_werror_flag" ||
27070          test ! -s conftest.err
27071        } && test -s conftest.$ac_objext; then
27072   ensc_cv_test_ext2fs_header=e2fsprogs
27073 else
27074   echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077
27078         cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084 #include <linux/ext2_fs.h>
27085                                           int main() { return 0; }
27086 _ACEOF
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094   (eval "$ac_compile") 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } && {
27101          test -z "$ac_cxx_werror_flag" ||
27102          test ! -s conftest.err
27103        } && test -s conftest.$ac_objext; then
27104   ensc_cv_test_ext2fs_header=kernel
27105 else
27106   echo "$as_me: failed program was:" >&5
27107 sed 's/^/| /' conftest.$ac_ext >&5
27108
27109
27110         ensc_cv_test_ext2fs_header=none
27111 fi
27112
27113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27114 fi
27115
27116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27117 fi
27118 { echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
27119 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6; }
27120
27121     case x"$ensc_cv_test_ext2fs_header" in
27122         (xe2fsprogs)
27123                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27124   { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27125 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27126 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27127   echo $ECHO_N "(cached) $ECHO_C" >&6
27128 fi
27129 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27130 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27131 else
27132   # Is the header compilable?
27133 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
27134 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6; }
27135 cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141 $ac_includes_default
27142 #include <ext2fs/ext2_fs.h>
27143 _ACEOF
27144 rm -f conftest.$ac_objext
27145 if { (ac_try="$ac_compile"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_compile") 2>conftest.er1
27152   ac_status=$?
27153   grep -v '^ *+' conftest.er1 >conftest.err
27154   rm -f conftest.er1
27155   cat conftest.err >&5
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } && {
27158          test -z "$ac_cxx_werror_flag" ||
27159          test ! -s conftest.err
27160        } && test -s conftest.$ac_objext; then
27161   ac_header_compiler=yes
27162 else
27163   echo "$as_me: failed program was:" >&5
27164 sed 's/^/| /' conftest.$ac_ext >&5
27165
27166         ac_header_compiler=no
27167 fi
27168
27169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27171 echo "${ECHO_T}$ac_header_compiler" >&6; }
27172
27173 # Is the header present?
27174 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
27175 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6; }
27176 cat >conftest.$ac_ext <<_ACEOF
27177 /* confdefs.h.  */
27178 _ACEOF
27179 cat confdefs.h >>conftest.$ac_ext
27180 cat >>conftest.$ac_ext <<_ACEOF
27181 /* end confdefs.h.  */
27182 #include <ext2fs/ext2_fs.h>
27183 _ACEOF
27184 if { (ac_try="$ac_cpp conftest.$ac_ext"
27185 case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } >/dev/null && {
27197          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27198          test ! -s conftest.err
27199        }; then
27200   ac_header_preproc=yes
27201 else
27202   echo "$as_me: failed program was:" >&5
27203 sed 's/^/| /' conftest.$ac_ext >&5
27204
27205   ac_header_preproc=no
27206 fi
27207
27208 rm -f conftest.err conftest.$ac_ext
27209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27210 echo "${ECHO_T}$ac_header_preproc" >&6; }
27211
27212 # So?  What about this header?
27213 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27214   yes:no: )
27215     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27216 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27217     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
27218 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
27219     ac_header_preproc=yes
27220     ;;
27221   no:yes:* )
27222     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
27223 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
27224     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
27225 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27226     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
27227 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
27228     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27229 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27230     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
27231 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27232     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
27233 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27234     ( cat <<\_ASBOX
27235 ## --------------------------------------------- ##
27236 ## Report this to vserver@list.linux-vserver.org ##
27237 ## --------------------------------------------- ##
27238 _ASBOX
27239      ) | sed "s/^/$as_me: WARNING:     /" >&2
27240     ;;
27241 esac
27242 { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27243 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27244 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27245   echo $ECHO_N "(cached) $ECHO_C" >&6
27246 else
27247   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
27248 fi
27249 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27250 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27251
27252 fi
27253 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
27254
27255 cat >>confdefs.h <<\_ACEOF
27256 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
27257 _ACEOF
27258
27259 else
27260   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27261 See \`config.log' for more details." >&5
27262 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27263 See \`config.log' for more details." >&2;}
27264    { (exit 1); exit 1; }; }
27265 fi
27266
27267
27268                 ;;
27269         (xkernel)
27270                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27271   { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27272 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27273 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27274   echo $ECHO_N "(cached) $ECHO_C" >&6
27275 fi
27276 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27277 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27278 else
27279   # Is the header compilable?
27280 { echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
27281 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6; }
27282 cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288 $ac_includes_default
27289 #include <linux/ext2_fs.h>
27290 _ACEOF
27291 rm -f conftest.$ac_objext
27292 if { (ac_try="$ac_compile"
27293 case "(($ac_try" in
27294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295   *) ac_try_echo=$ac_try;;
27296 esac
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298   (eval "$ac_compile") 2>conftest.er1
27299   ac_status=$?
27300   grep -v '^ *+' conftest.er1 >conftest.err
27301   rm -f conftest.er1
27302   cat conftest.err >&5
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); } && {
27305          test -z "$ac_cxx_werror_flag" ||
27306          test ! -s conftest.err
27307        } && test -s conftest.$ac_objext; then
27308   ac_header_compiler=yes
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313         ac_header_compiler=no
27314 fi
27315
27316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27318 echo "${ECHO_T}$ac_header_compiler" >&6; }
27319
27320 # Is the header present?
27321 { echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
27322 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6; }
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329 #include <linux/ext2_fs.h>
27330 _ACEOF
27331 if { (ac_try="$ac_cpp conftest.$ac_ext"
27332 case "(($ac_try" in
27333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334   *) ac_try_echo=$ac_try;;
27335 esac
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27338   ac_status=$?
27339   grep -v '^ *+' conftest.er1 >conftest.err
27340   rm -f conftest.er1
27341   cat conftest.err >&5
27342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343   (exit $ac_status); } >/dev/null && {
27344          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27345          test ! -s conftest.err
27346        }; then
27347   ac_header_preproc=yes
27348 else
27349   echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27351
27352   ac_header_preproc=no
27353 fi
27354
27355 rm -f conftest.err conftest.$ac_ext
27356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27357 echo "${ECHO_T}$ac_header_preproc" >&6; }
27358
27359 # So?  What about this header?
27360 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27361   yes:no: )
27362     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27363 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27364     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
27365 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
27366     ac_header_preproc=yes
27367     ;;
27368   no:yes:* )
27369     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
27370 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
27371     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
27372 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27373     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
27374 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
27375     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27376 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27377     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
27378 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27379     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
27380 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27381     ( cat <<\_ASBOX
27382 ## --------------------------------------------- ##
27383 ## Report this to vserver@list.linux-vserver.org ##
27384 ## --------------------------------------------- ##
27385 _ASBOX
27386      ) | sed "s/^/$as_me: WARNING:     /" >&2
27387     ;;
27388 esac
27389 { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27390 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27391 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
27395 fi
27396 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27397 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27398
27399 fi
27400 if test $ac_cv_header_linux_ext2_fs_h = yes; then
27401
27402 cat >>confdefs.h <<\_ACEOF
27403 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
27404 _ACEOF
27405
27406 else
27407   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
27408 See \`config.log' for more details." >&5
27409 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
27410 See \`config.log' for more details." >&2;}
27411    { (exit 1); exit 1; }; }
27412 fi
27413
27414
27415                 ;;
27416         (*)
27417                 { { echo "$as_me:$LINENO: error:
27418 ext2fs headers were not found, or they are not usable. This can have
27419 the following reasons:
27420
27421 * you have neither the e2fsprogs nor the kernel headers installed
27422
27423 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27424   and you do not have e2fsprogs headers installed; please try to install
27425   - e2fsprogs-devel (for Red Hat), or
27426   - lib*ext2fs2-devel (for Mandriva), or
27427   - e2fslibs-dev (for Debian)
27428   in this case.
27429
27430 * kernel headers are broken and your e2fsprogs headers are too old;
27431   until version 1.27 (inclusive), they are using reserved C++ keywords
27432
27433 * kernel headers are broken and your e2fsprogs headers are too new;
27434   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27435   C++, for details and a solution see
27436   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27437
27438
27439 In the latter two cases you have the following options:
27440 * fix the headers manually, or
27441 * install a stable version of e2fsprogs (e.g. 1.34), or
27442 * use good kernel headers (from linux 2.4.x)
27443
27444 See \`config.log' for more details." >&5
27445 echo "$as_me: error:
27446 ext2fs headers were not found, or they are not usable. This can have
27447 the following reasons:
27448
27449 * you have neither the e2fsprogs nor the kernel headers installed
27450
27451 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27452   and you do not have e2fsprogs headers installed; please try to install
27453   - e2fsprogs-devel (for Red Hat), or
27454   - lib*ext2fs2-devel (for Mandriva), or
27455   - e2fslibs-dev (for Debian)
27456   in this case.
27457
27458 * kernel headers are broken and your e2fsprogs headers are too old;
27459   until version 1.27 (inclusive), they are using reserved C++ keywords
27460
27461 * kernel headers are broken and your e2fsprogs headers are too new;
27462   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27463   C++, for details and a solution see
27464   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27465
27466
27467 In the latter two cases you have the following options:
27468 * fix the headers manually, or
27469 * install a stable version of e2fsprogs (e.g. 1.34), or
27470 * use good kernel headers (from linux 2.4.x)
27471
27472 See \`config.log' for more details." >&2;}
27473    { (exit 1); exit 1; }; }
27474                 ;;
27475     esac
27476     ac_ext=c
27477 ac_cpp='$CPP $CPPFLAGS'
27478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27481
27482
27483
27484 for ac_func in vserver
27485 do
27486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27490   echo $ECHO_N "(cached) $ECHO_C" >&6
27491 else
27492   cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27500 #define $ac_func innocuous_$ac_func
27501
27502 /* System header to define __stub macros and hopefully few prototypes,
27503     which can conflict with char $ac_func (); below.
27504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27505     <limits.h> exists even on freestanding compilers.  */
27506
27507 #ifdef __STDC__
27508 # include <limits.h>
27509 #else
27510 # include <assert.h>
27511 #endif
27512
27513 #undef $ac_func
27514
27515 /* Override any GCC internal prototype to avoid an error.
27516    Use char because int might match the return type of a GCC
27517    builtin and then its argument prototype would still apply.  */
27518 #ifdef __cplusplus
27519 extern "C"
27520 #endif
27521 char $ac_func ();
27522 /* The GNU C library defines this for functions which it implements
27523     to always fail with ENOSYS.  Some functions are actually named
27524     something starting with __ and the normal name is an alias.  */
27525 #if defined __stub_$ac_func || defined __stub___$ac_func
27526 choke me
27527 #endif
27528
27529 int
27530 main ()
27531 {
27532 return $ac_func ();
27533   ;
27534   return 0;
27535 }
27536 _ACEOF
27537 rm -f conftest.$ac_objext conftest$ac_exeext
27538 if { (ac_try="$ac_link"
27539 case "(($ac_try" in
27540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27541   *) ac_try_echo=$ac_try;;
27542 esac
27543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27544   (eval "$ac_link") 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } && {
27551          test -z "$ac_c_werror_flag" ||
27552          test ! -s conftest.err
27553        } && test -s conftest$ac_exeext &&
27554        $as_test_x conftest$ac_exeext; then
27555   eval "$as_ac_var=yes"
27556 else
27557   echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27559
27560         eval "$as_ac_var=no"
27561 fi
27562
27563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27564       conftest$ac_exeext conftest.$ac_ext
27565 fi
27566 ac_res=`eval echo '${'$as_ac_var'}'`
27567                { echo "$as_me:$LINENO: result: $ac_res" >&5
27568 echo "${ECHO_T}$ac_res" >&6; }
27569 if test `eval echo '${'$as_ac_var'}'` = yes; then
27570   cat >>confdefs.h <<_ACEOF
27571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27572 _ACEOF
27573
27574 fi
27575 done
27576
27577 { echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27578 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6; }
27579 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27580   echo $ECHO_N "(cached) $ECHO_C" >&6
27581 else
27582   cat >conftest.$ac_ext <<_ACEOF
27583 /* confdefs.h.  */
27584 _ACEOF
27585 cat confdefs.h >>conftest.$ac_ext
27586 cat >>conftest.$ac_ext <<_ACEOF
27587 /* end confdefs.h.  */
27588 #include <linux/fs.h>
27589
27590 int
27591 main ()
27592 {
27593 #ifndef MS_MOVE
27594   (void) MS_MOVE;
27595 #endif
27596
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 rm -f conftest.$ac_objext
27602 if { (ac_try="$ac_compile"
27603 case "(($ac_try" in
27604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605   *) ac_try_echo=$ac_try;;
27606 esac
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608   (eval "$ac_compile") 2>conftest.er1
27609   ac_status=$?
27610   grep -v '^ *+' conftest.er1 >conftest.err
27611   rm -f conftest.er1
27612   cat conftest.err >&5
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); } && {
27615          test -z "$ac_c_werror_flag" ||
27616          test ! -s conftest.err
27617        } && test -s conftest.$ac_objext; then
27618   ac_cv_have_decl_MS_MOVE=yes
27619 else
27620   echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27622
27623         ac_cv_have_decl_MS_MOVE=no
27624 fi
27625
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627 fi
27628 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27629 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6; }
27630 if test $ac_cv_have_decl_MS_MOVE = yes; then
27631
27632 cat >>confdefs.h <<_ACEOF
27633 #define HAVE_DECL_MS_MOVE 1
27634 _ACEOF
27635
27636
27637 else
27638   cat >>confdefs.h <<_ACEOF
27639 #define HAVE_DECL_MS_MOVE 0
27640 _ACEOF
27641
27642
27643 fi
27644
27645
27646 { echo "$as_me:$LINENO: checking for xid_t" >&5
27647 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6; }
27648 if test "${ac_cv_type_xid_t+set}" = set; then
27649   echo $ECHO_N "(cached) $ECHO_C" >&6
27650 else
27651   cat >conftest.$ac_ext <<_ACEOF
27652 /* confdefs.h.  */
27653 _ACEOF
27654 cat confdefs.h >>conftest.$ac_ext
27655 cat >>conftest.$ac_ext <<_ACEOF
27656 /* end confdefs.h.  */
27657 #include <sys/types.h>
27658
27659 typedef xid_t ac__type_new_;
27660 int
27661 main ()
27662 {
27663 if ((ac__type_new_ *) 0)
27664   return 0;
27665 if (sizeof (ac__type_new_))
27666   return 0;
27667   ;
27668   return 0;
27669 }
27670 _ACEOF
27671 rm -f conftest.$ac_objext
27672 if { (ac_try="$ac_compile"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_compile") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } && {
27685          test -z "$ac_c_werror_flag" ||
27686          test ! -s conftest.err
27687        } && test -s conftest.$ac_objext; then
27688   ac_cv_type_xid_t=yes
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693         ac_cv_type_xid_t=no
27694 fi
27695
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697 fi
27698 { echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27699 echo "${ECHO_T}$ac_cv_type_xid_t" >&6; }
27700 if test $ac_cv_type_xid_t = yes; then
27701
27702 cat >>confdefs.h <<_ACEOF
27703 #define HAVE_XID_T 1
27704 _ACEOF
27705
27706
27707 fi
27708
27709 { echo "$as_me:$LINENO: checking for nid_t" >&5
27710 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6; }
27711 if test "${ac_cv_type_nid_t+set}" = set; then
27712   echo $ECHO_N "(cached) $ECHO_C" >&6
27713 else
27714   cat >conftest.$ac_ext <<_ACEOF
27715 /* confdefs.h.  */
27716 _ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h.  */
27720 #include <sys/types.h>
27721
27722 typedef nid_t ac__type_new_;
27723 int
27724 main ()
27725 {
27726 if ((ac__type_new_ *) 0)
27727   return 0;
27728 if (sizeof (ac__type_new_))
27729   return 0;
27730   ;
27731   return 0;
27732 }
27733 _ACEOF
27734 rm -f conftest.$ac_objext
27735 if { (ac_try="$ac_compile"
27736 case "(($ac_try" in
27737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738   *) ac_try_echo=$ac_try;;
27739 esac
27740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27741   (eval "$ac_compile") 2>conftest.er1
27742   ac_status=$?
27743   grep -v '^ *+' conftest.er1 >conftest.err
27744   rm -f conftest.er1
27745   cat conftest.err >&5
27746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); } && {
27748          test -z "$ac_c_werror_flag" ||
27749          test ! -s conftest.err
27750        } && test -s conftest.$ac_objext; then
27751   ac_cv_type_nid_t=yes
27752 else
27753   echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27755
27756         ac_cv_type_nid_t=no
27757 fi
27758
27759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27760 fi
27761 { echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27762 echo "${ECHO_T}$ac_cv_type_nid_t" >&6; }
27763 if test $ac_cv_type_nid_t = yes; then
27764
27765 cat >>confdefs.h <<_ACEOF
27766 #define HAVE_NID_T 1
27767 _ACEOF
27768
27769
27770 fi
27771
27772 { echo "$as_me:$LINENO: checking for tag_t" >&5
27773 echo $ECHO_N "checking for tag_t... $ECHO_C" >&6; }
27774 if test "${ac_cv_type_tag_t+set}" = set; then
27775   echo $ECHO_N "(cached) $ECHO_C" >&6
27776 else
27777   cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h.  */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h.  */
27783 #include <sys/types.h>
27784
27785 typedef tag_t ac__type_new_;
27786 int
27787 main ()
27788 {
27789 if ((ac__type_new_ *) 0)
27790   return 0;
27791 if (sizeof (ac__type_new_))
27792   return 0;
27793   ;
27794   return 0;
27795 }
27796 _ACEOF
27797 rm -f conftest.$ac_objext
27798 if { (ac_try="$ac_compile"
27799 case "(($ac_try" in
27800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27801   *) ac_try_echo=$ac_try;;
27802 esac
27803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27804   (eval "$ac_compile") 2>conftest.er1
27805   ac_status=$?
27806   grep -v '^ *+' conftest.er1 >conftest.err
27807   rm -f conftest.er1
27808   cat conftest.err >&5
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } && {
27811          test -z "$ac_c_werror_flag" ||
27812          test ! -s conftest.err
27813        } && test -s conftest.$ac_objext; then
27814   ac_cv_type_tag_t=yes
27815 else
27816   echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819         ac_cv_type_tag_t=no
27820 fi
27821
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 fi
27824 { echo "$as_me:$LINENO: result: $ac_cv_type_tag_t" >&5
27825 echo "${ECHO_T}$ac_cv_type_tag_t" >&6; }
27826 if test $ac_cv_type_tag_t = yes; then
27827
27828 cat >>confdefs.h <<_ACEOF
27829 #define HAVE_TAG_T 1
27830 _ACEOF
27831
27832
27833 fi
27834
27835
27836
27837 for ac_header in sys/capability.h
27838 do
27839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27841   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 fi
27846 ac_res=`eval echo '${'$as_ac_Header'}'`
27847                { echo "$as_me:$LINENO: result: $ac_res" >&5
27848 echo "${ECHO_T}$ac_res" >&6; }
27849 else
27850   # Is the header compilable?
27851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 $ac_includes_default
27860 #include <$ac_header>
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_compile") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } && {
27876          test -z "$ac_c_werror_flag" ||
27877          test ! -s conftest.err
27878        } && test -s conftest.$ac_objext; then
27879   ac_header_compiler=yes
27880 else
27881   echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884         ac_header_compiler=no
27885 fi
27886
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27889 echo "${ECHO_T}$ac_header_compiler" >&6; }
27890
27891 # Is the header present?
27892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27894 cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900 #include <$ac_header>
27901 _ACEOF
27902 if { (ac_try="$ac_cpp conftest.$ac_ext"
27903 case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27909   ac_status=$?
27910   grep -v '^ *+' conftest.er1 >conftest.err
27911   rm -f conftest.er1
27912   cat conftest.err >&5
27913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27914   (exit $ac_status); } >/dev/null && {
27915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27916          test ! -s conftest.err
27917        }; then
27918   ac_header_preproc=yes
27919 else
27920   echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923   ac_header_preproc=no
27924 fi
27925
27926 rm -f conftest.err conftest.$ac_ext
27927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27928 echo "${ECHO_T}$ac_header_preproc" >&6; }
27929
27930 # So?  What about this header?
27931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27932   yes:no: )
27933     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27937     ac_header_preproc=yes
27938     ;;
27939   no:yes:* )
27940     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27942     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27943 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27944     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27946     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27947 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27950     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27952     ( cat <<\_ASBOX
27953 ## --------------------------------------------- ##
27954 ## Report this to vserver@list.linux-vserver.org ##
27955 ## --------------------------------------------- ##
27956 _ASBOX
27957      ) | sed "s/^/$as_me: WARNING:     /" >&2
27958     ;;
27959 esac
27960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27963   echo $ECHO_N "(cached) $ECHO_C" >&6
27964 else
27965   eval "$as_ac_Header=\$ac_header_preproc"
27966 fi
27967 ac_res=`eval echo '${'$as_ac_Header'}'`
27968                { echo "$as_me:$LINENO: result: $ac_res" >&5
27969 echo "${ECHO_T}$ac_res" >&6; }
27970
27971 fi
27972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27973   cat >>confdefs.h <<_ACEOF
27974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27975 _ACEOF
27976
27977 fi
27978
27979 done
27980
27981
27982 if test x"$ensc_have_dietlibc" = xno; then
27983         { echo "$as_me:$LINENO: checking for openpty" >&5
27984 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
27985 if test "${ac_cv_func_openpty+set}" = set; then
27986   echo $ECHO_N "(cached) $ECHO_C" >&6
27987 else
27988   cat >conftest.$ac_ext <<_ACEOF
27989 /* confdefs.h.  */
27990 _ACEOF
27991 cat confdefs.h >>conftest.$ac_ext
27992 cat >>conftest.$ac_ext <<_ACEOF
27993 /* end confdefs.h.  */
27994 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27996 #define openpty innocuous_openpty
27997
27998 /* System header to define __stub macros and hopefully few prototypes,
27999     which can conflict with char openpty (); below.
28000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28001     <limits.h> exists even on freestanding compilers.  */
28002
28003 #ifdef __STDC__
28004 # include <limits.h>
28005 #else
28006 # include <assert.h>
28007 #endif
28008
28009 #undef openpty
28010
28011 /* Override any GCC internal prototype to avoid an error.
28012    Use char because int might match the return type of a GCC
28013    builtin and then its argument prototype would still apply.  */
28014 #ifdef __cplusplus
28015 extern "C"
28016 #endif
28017 char openpty ();
28018 /* The GNU C library defines this for functions which it implements
28019     to always fail with ENOSYS.  Some functions are actually named
28020     something starting with __ and the normal name is an alias.  */
28021 #if defined __stub_openpty || defined __stub___openpty
28022 choke me
28023 #endif
28024
28025 int
28026 main ()
28027 {
28028 return openpty ();
28029   ;
28030   return 0;
28031 }
28032 _ACEOF
28033 rm -f conftest.$ac_objext conftest$ac_exeext
28034 if { (ac_try="$ac_link"
28035 case "(($ac_try" in
28036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037   *) ac_try_echo=$ac_try;;
28038 esac
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040   (eval "$ac_link") 2>conftest.er1
28041   ac_status=$?
28042   grep -v '^ *+' conftest.er1 >conftest.err
28043   rm -f conftest.er1
28044   cat conftest.err >&5
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); } && {
28047          test -z "$ac_c_werror_flag" ||
28048          test ! -s conftest.err
28049        } && test -s conftest$ac_exeext &&
28050        $as_test_x conftest$ac_exeext; then
28051   ac_cv_func_openpty=yes
28052 else
28053   echo "$as_me: failed program was:" >&5
28054 sed 's/^/| /' conftest.$ac_ext >&5
28055
28056         ac_cv_func_openpty=no
28057 fi
28058
28059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28060       conftest$ac_exeext conftest.$ac_ext
28061 fi
28062 { echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
28063 echo "${ECHO_T}$ac_cv_func_openpty" >&6; }
28064 if test $ac_cv_func_openpty = yes; then
28065   :
28066 else
28067
28068 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
28069 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
28070 if test "${ac_cv_lib_util_openpty+set}" = set; then
28071   echo $ECHO_N "(cached) $ECHO_C" >&6
28072 else
28073   ac_check_lib_save_LIBS=$LIBS
28074 LIBS="-lutil  $LIBS"
28075 cat >conftest.$ac_ext <<_ACEOF
28076 /* confdefs.h.  */
28077 _ACEOF
28078 cat confdefs.h >>conftest.$ac_ext
28079 cat >>conftest.$ac_ext <<_ACEOF
28080 /* end confdefs.h.  */
28081
28082 /* Override any GCC internal prototype to avoid an error.
28083    Use char because int might match the return type of a GCC
28084    builtin and then its argument prototype would still apply.  */
28085 #ifdef __cplusplus
28086 extern "C"
28087 #endif
28088 char openpty ();
28089 int
28090 main ()
28091 {
28092 return openpty ();
28093   ;
28094   return 0;
28095 }
28096 _ACEOF
28097 rm -f conftest.$ac_objext conftest$ac_exeext
28098 if { (ac_try="$ac_link"
28099 case "(($ac_try" in
28100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101   *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104   (eval "$ac_link") 2>conftest.er1
28105   ac_status=$?
28106   grep -v '^ *+' conftest.er1 >conftest.err
28107   rm -f conftest.er1
28108   cat conftest.err >&5
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); } && {
28111          test -z "$ac_c_werror_flag" ||
28112          test ! -s conftest.err
28113        } && test -s conftest$ac_exeext &&
28114        $as_test_x conftest$ac_exeext; then
28115   ac_cv_lib_util_openpty=yes
28116 else
28117   echo "$as_me: failed program was:" >&5
28118 sed 's/^/| /' conftest.$ac_ext >&5
28119
28120         ac_cv_lib_util_openpty=no
28121 fi
28122
28123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28124       conftest$ac_exeext conftest.$ac_ext
28125 LIBS=$ac_check_lib_save_LIBS
28126 fi
28127 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
28128 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
28129 if test $ac_cv_lib_util_openpty = yes; then
28130   cat >>confdefs.h <<_ACEOF
28131 #define HAVE_LIBUTIL 1
28132 _ACEOF
28133
28134   LIBS="-lutil $LIBS"
28135
28136 else
28137   { { echo "$as_me:$LINENO: error:
28138 ****
28139 **** openpty could not be found
28140 ****" >&5
28141 echo "$as_me: error:
28142 ****
28143 **** openpty could not be found
28144 ****" >&2;}
28145    { (exit 1); exit 1; }; }
28146 fi
28147
28148 fi
28149
28150 fi
28151
28152
28153 { echo "$as_me:$LINENO: checking for used crypto API" >&5
28154 echo $ECHO_N "checking for used crypto API... $ECHO_C" >&6; }
28155
28156 # Check whether --with-crypto-api was given.
28157 if test "${with_crypto_api+set}" = set; then
28158   withval=$with_crypto_api; case $withval in
28159                 (none|nss|beecrypt|auto)        ensc_crypto_api=$withval;;
28160                 (*)     { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
28161 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
28162    { (exit 1); exit 1; }; };;
28163              esac
28164 else
28165   ensc_crypto_api=auto
28166 fi
28167
28168 { echo "$as_me:$LINENO: result: $ensc_crypto_api" >&5
28169 echo "${ECHO_T}$ensc_crypto_api" >&6; }
28170
28171
28172
28173 case $ensc_crypto_api in
28174 (auto|beecrypt)
28175 if test x"$ensc_cv_c99_c99compiler" = xyes; then
28176         ensc_have_beecrypt=yes
28177
28178         if test x"$ensc_have_beecrypt" = xyes; then
28179                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28180   { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28181 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28182 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28183   echo $ECHO_N "(cached) $ECHO_C" >&6
28184 fi
28185 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28186 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28187 else
28188   # Is the header compilable?
28189 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
28190 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6; }
28191 cat >conftest.$ac_ext <<_ACEOF
28192 /* confdefs.h.  */
28193 _ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h.  */
28197 $ac_includes_default
28198 #include <beecrypt/beecrypt.h>
28199 _ACEOF
28200 rm -f conftest.$ac_objext
28201 if { (ac_try="$ac_compile"
28202 case "(($ac_try" in
28203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204   *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207   (eval "$ac_compile") 2>conftest.er1
28208   ac_status=$?
28209   grep -v '^ *+' conftest.er1 >conftest.err
28210   rm -f conftest.er1
28211   cat conftest.err >&5
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); } && {
28214          test -z "$ac_c_werror_flag" ||
28215          test ! -s conftest.err
28216        } && test -s conftest.$ac_objext; then
28217   ac_header_compiler=yes
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222         ac_header_compiler=no
28223 fi
28224
28225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28227 echo "${ECHO_T}$ac_header_compiler" >&6; }
28228
28229 # Is the header present?
28230 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
28231 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6; }
28232 cat >conftest.$ac_ext <<_ACEOF
28233 /* confdefs.h.  */
28234 _ACEOF
28235 cat confdefs.h >>conftest.$ac_ext
28236 cat >>conftest.$ac_ext <<_ACEOF
28237 /* end confdefs.h.  */
28238 #include <beecrypt/beecrypt.h>
28239 _ACEOF
28240 if { (ac_try="$ac_cpp conftest.$ac_ext"
28241 case "(($ac_try" in
28242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243   *) ac_try_echo=$ac_try;;
28244 esac
28245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28247   ac_status=$?
28248   grep -v '^ *+' conftest.er1 >conftest.err
28249   rm -f conftest.er1
28250   cat conftest.err >&5
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); } >/dev/null && {
28253          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28254          test ! -s conftest.err
28255        }; then
28256   ac_header_preproc=yes
28257 else
28258   echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261   ac_header_preproc=no
28262 fi
28263
28264 rm -f conftest.err conftest.$ac_ext
28265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28266 echo "${ECHO_T}$ac_header_preproc" >&6; }
28267
28268 # So?  What about this header?
28269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28270   yes:no: )
28271     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28272 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28273     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
28274 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
28275     ac_header_preproc=yes
28276     ;;
28277   no:yes:* )
28278     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
28279 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
28280     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
28281 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
28282     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
28283 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
28284     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
28285 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28286     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
28287 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
28288     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
28289 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
28290     ( cat <<\_ASBOX
28291 ## --------------------------------------------- ##
28292 ## Report this to vserver@list.linux-vserver.org ##
28293 ## --------------------------------------------- ##
28294 _ASBOX
28295      ) | sed "s/^/$as_me: WARNING:     /" >&2
28296     ;;
28297 esac
28298 { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28299 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28300 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28301   echo $ECHO_N "(cached) $ECHO_C" >&6
28302 else
28303   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
28304 fi
28305 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28306 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28307
28308 fi
28309 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
28310    :
28311 else
28312    ensc_have_beecrypt=no
28313 fi
28314
28315
28316         fi
28317
28318         if test x"$ensc_have_beecrypt" = xyes; then
28319                 { echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
28320 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6; }
28321 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324   ac_check_lib_save_LIBS=$LIBS
28325 LIBS="-lbeecrypt  $LIBS"
28326 cat >conftest.$ac_ext <<_ACEOF
28327 /* confdefs.h.  */
28328 _ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h.  */
28332
28333 /* Override any GCC internal prototype to avoid an error.
28334    Use char because int might match the return type of a GCC
28335    builtin and then its argument prototype would still apply.  */
28336 #ifdef __cplusplus
28337 extern "C"
28338 #endif
28339 char hashFunctionContextInit ();
28340 int
28341 main ()
28342 {
28343 return hashFunctionContextInit ();
28344   ;
28345   return 0;
28346 }
28347 _ACEOF
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (ac_try="$ac_link"
28350 case "(($ac_try" in
28351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28352   *) ac_try_echo=$ac_try;;
28353 esac
28354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28355   (eval "$ac_link") 2>conftest.er1
28356   ac_status=$?
28357   grep -v '^ *+' conftest.er1 >conftest.err
28358   rm -f conftest.er1
28359   cat conftest.err >&5
28360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361   (exit $ac_status); } && {
28362          test -z "$ac_c_werror_flag" ||
28363          test ! -s conftest.err
28364        } && test -s conftest$ac_exeext &&
28365        $as_test_x conftest$ac_exeext; then
28366   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
28367 else
28368   echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28370
28371         ac_cv_lib_beecrypt_hashFunctionContextInit=no
28372 fi
28373
28374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28375       conftest$ac_exeext conftest.$ac_ext
28376 LIBS=$ac_check_lib_save_LIBS
28377 fi
28378 { echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
28379 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6; }
28380 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
28381    :
28382 else
28383    ensc_have_beecrypt=no
28384 fi
28385
28386         fi
28387 else
28388         ensc_have_beecrypt=no
28389 fi;;
28390 esac
28391
28392 case $ensc_crypto_api in
28393 (auto)          if test x"$ensc_have_beecrypt"  = xyes; then
28394                         { echo "$as_me:$LINENO: using beecrypt as crypto api" >&5
28395 echo "$as_me: using beecrypt as crypto api" >&6;}
28396                         ensc_crypto_api=beecrypt
28397                 fi;;
28398 (beecrypt)      if test x"$ensc_have_beecrypt" != xyes; then
28399                         { { echo "$as_me:$LINENO: error: beecrypt crypto api not found" >&5
28400 echo "$as_me: error: beecrypt crypto api not found" >&2;}
28401    { (exit 1); exit 1; }; }
28402                 fi;;
28403 esac
28404
28405  if test x"$ensc_have_beecrypt" = xyes; then
28406   ENSC_HAVE_BEECRYPT_TRUE=
28407   ENSC_HAVE_BEECRYPT_FALSE='#'
28408 else
28409   ENSC_HAVE_BEECRYPT_TRUE='#'
28410   ENSC_HAVE_BEECRYPT_FALSE=
28411 fi
28412
28413  if false; then
28414   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
28415   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
28416 else
28417   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
28418   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
28419 fi
28420
28421
28422
28423
28424 case $ensc_crypto_api in
28425 (nss)
28426 pkg_failed=no
28427 { echo "$as_me:$LINENO: checking for NSS" >&5
28428 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28429
28430 if test -n "$PKG_CONFIG"; then
28431     if test -n "$NSS_CFLAGS"; then
28432         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28433     else
28434         if test -n "$PKG_CONFIG" && \
28435     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28436   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28437   ac_status=$?
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); }; then
28440   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
28441 else
28442   pkg_failed=yes
28443 fi
28444     fi
28445 else
28446         pkg_failed=untried
28447 fi
28448 if test -n "$PKG_CONFIG"; then
28449     if test -n "$NSS_LIBS"; then
28450         pkg_cv_NSS_LIBS="$NSS_LIBS"
28451     else
28452         if test -n "$PKG_CONFIG" && \
28453     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28454   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28455   ac_status=$?
28456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457   (exit $ac_status); }; then
28458   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
28459 else
28460   pkg_failed=yes
28461 fi
28462     fi
28463 else
28464         pkg_failed=untried
28465 fi
28466
28467
28468
28469 if test $pkg_failed = yes; then
28470
28471 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28472         _pkg_short_errors_supported=yes
28473 else
28474         _pkg_short_errors_supported=no
28475 fi
28476         if test $_pkg_short_errors_supported = yes; then
28477                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
28478         else
28479                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
28480         fi
28481         # Put the nasty error message in config.log where it belongs
28482         echo "$NSS_PKG_ERRORS" >&5
28483
28484         { { echo "$as_me:$LINENO: error: Package requirements (nss) were not met:
28485
28486 $NSS_PKG_ERRORS
28487
28488 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28489 installed software in a non-standard prefix.
28490
28491 Alternatively, you may set the environment variables NSS_CFLAGS
28492 and NSS_LIBS to avoid the need to call pkg-config.
28493 See the pkg-config man page for more details.
28494 " >&5
28495 echo "$as_me: error: Package requirements (nss) were not met:
28496
28497 $NSS_PKG_ERRORS
28498
28499 Consider adjusting the PKG_CONFIG_PATH environment variable if you
28500 installed software in a non-standard prefix.
28501
28502 Alternatively, you may set the environment variables NSS_CFLAGS
28503 and NSS_LIBS to avoid the need to call pkg-config.
28504 See the pkg-config man page for more details.
28505 " >&2;}
28506    { (exit 1); exit 1; }; }
28507 elif test $pkg_failed = untried; then
28508         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
28509 is in your PATH or set the PKG_CONFIG environment variable to the full
28510 path to pkg-config.
28511
28512 Alternatively, you may set the environment variables NSS_CFLAGS
28513 and NSS_LIBS to avoid the need to call pkg-config.
28514 See the pkg-config man page for more details.
28515
28516 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28517 See \`config.log' for more details." >&5
28518 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
28519 is in your PATH or set the PKG_CONFIG environment variable to the full
28520 path to pkg-config.
28521
28522 Alternatively, you may set the environment variables NSS_CFLAGS
28523 and NSS_LIBS to avoid the need to call pkg-config.
28524 See the pkg-config man page for more details.
28525
28526 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
28527 See \`config.log' for more details." >&2;}
28528    { (exit 1); exit 1; }; }
28529 else
28530         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28531         NSS_LIBS=$pkg_cv_NSS_LIBS
28532         { echo "$as_me:$LINENO: result: yes" >&5
28533 echo "${ECHO_T}yes" >&6; }
28534         :
28535 fi;;
28536 (auto)
28537 pkg_failed=no
28538 { echo "$as_me:$LINENO: checking for NSS" >&5
28539 echo $ECHO_N "checking for NSS... $ECHO_C" >&6; }
28540
28541 if test -n "$PKG_CONFIG"; then
28542     if test -n "$NSS_CFLAGS"; then
28543         pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
28544     else
28545         if test -n "$PKG_CONFIG" && \
28546     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28547   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; then
28551   pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
28552 else
28553   pkg_failed=yes
28554 fi
28555     fi
28556 else
28557         pkg_failed=untried
28558 fi
28559 if test -n "$PKG_CONFIG"; then
28560     if test -n "$NSS_LIBS"; then
28561         pkg_cv_NSS_LIBS="$NSS_LIBS"
28562     else
28563         if test -n "$PKG_CONFIG" && \
28564     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"nss\"") >&5
28565   ($PKG_CONFIG --exists --print-errors "nss") 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); }; then
28569   pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
28570 else
28571   pkg_failed=yes
28572 fi
28573     fi
28574 else
28575         pkg_failed=untried
28576 fi
28577
28578
28579
28580 if test $pkg_failed = yes; then
28581
28582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28583         _pkg_short_errors_supported=yes
28584 else
28585         _pkg_short_errors_supported=no
28586 fi
28587         if test $_pkg_short_errors_supported = yes; then
28588                 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
28589         else
28590                 NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
28591         fi
28592         # Put the nasty error message in config.log where it belongs
28593         echo "$NSS_PKG_ERRORS" >&5
28594
28595         { echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6; }
28597                 { echo "$as_me:$LINENO: result: no" >&5
28598 echo "${ECHO_T}no" >&6; }
28599 elif test $pkg_failed = untried; then
28600         { echo "$as_me:$LINENO: result: no" >&5
28601 echo "${ECHO_T}no" >&6; }
28602 else
28603         NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
28604         NSS_LIBS=$pkg_cv_NSS_LIBS
28605         { echo "$as_me:$LINENO: result: yes" >&5
28606 echo "${ECHO_T}yes" >&6; }
28607
28608                 { echo "$as_me:$LINENO: using NSS as crypto api" >&5
28609 echo "$as_me: using NSS as crypto api" >&6;}
28610                 ensc_crypto_api=nss
28611 fi;;
28612 esac
28613
28614
28615 case $ensc_crypto_api in
28616 (beecrypt)
28617         ENSC_HAVE_CRYPTO=true
28618         ENSC_CRYPTO_API=ENSC_CRYPTO_API_BEECRYPT
28619         ENSC_CRYPTO_CFLAGS=
28620         ENSC_CRYPTO_LIB=-lbeecrypt
28621         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28622         ;;
28623
28624 (nss)
28625         ENSC_HAVE_CRYPTO=true
28626         ENSC_CRYPTO_API=ENSC_CRYPTO_API_NSS
28627         ENSC_CRYPTO_CFLAGS=$NSS_CFLAGS
28628         ENSC_CRYPTO_LIB=$NSS_LIBS
28629         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28630         ;;
28631
28632 (none)
28633         ENSC_HAVE_CRYPTO=false
28634         ENSC_CRYPTO_API=ENSC_CRYPTO_API_NONE
28635         ENSC_CRYPTO_CFLAGS=
28636         ENSC_CRYPTO_LIB=
28637         ENSC_CAN_CRYPTO_WITH_DIETLIBC=false
28638
28639         { echo "$as_me:$LINENO: WARNING: No crypto api found/select. This will disable the build of \`vhashify'" >&5
28640 echo "$as_me: WARNING: No crypto api found/select. This will disable the build of \`vhashify'" >&2;}
28641         ;;
28642
28643 (*)     { { echo "$as_me:$LINENO: error: internal error" >&5
28644 echo "$as_me: error: internal error" >&2;}
28645    { (exit 1); exit 1; }; }
28646 esac
28647
28648  if $ENSC_HAVE_CRYPTO; then
28649   ENSC_HAVE_CRYPTO_TRUE=
28650   ENSC_HAVE_CRYPTO_FALSE='#'
28651 else
28652   ENSC_HAVE_CRYPTO_TRUE='#'
28653   ENSC_HAVE_CRYPTO_FALSE=
28654 fi
28655
28656  if $ENSC_CAN_CRYPTO_WITH_DIETLIBC; then
28657   ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE=
28658   ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE='#'
28659 else
28660   ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE='#'
28661   ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE=
28662 fi
28663
28664 ENSC_CRYPTO_CFLAGS=$ENSC_CRYPTO_CFLAGS
28665
28666 ENSC_CRYPTO_LIB=$ENSC_CRYPTO_LIB
28667
28668
28669 cat >>confdefs.h <<_ACEOF
28670 #define ENSC_CRYPTO_API $ENSC_CRYPTO_API
28671 _ACEOF
28672
28673
28674
28675
28676 { echo "$as_me:$LINENO: checking for host initscripts" >&5
28677 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6; }
28678
28679 # Check whether --with-initscripts was given.
28680 if test "${with_initscripts+set}" = set; then
28681   withval=$with_initscripts;
28682         case "$withval" in
28683         gentoo) ensc_with_init=gentoo;;
28684         sysv)   ensc_with_init=sysv;;
28685         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
28686 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
28687    { (exit 1); exit 1; }; };;
28688         esac
28689
28690 else
28691
28692         if test -e /etc/gentoo-release; then
28693                 ensc_with_init=gentoo
28694         else
28695                 ensc_with_init=sysv
28696         fi
28697
28698 fi
28699
28700 { echo "$as_me:$LINENO: result: $ensc_with_init" >&5
28701 echo "${ECHO_T}$ensc_with_init" >&6; }
28702  if test x"$ensc_with_init" = xgentoo; then
28703   HAVE_GENTOO_INIT_TRUE=
28704   HAVE_GENTOO_INIT_FALSE='#'
28705 else
28706   HAVE_GENTOO_INIT_TRUE='#'
28707   HAVE_GENTOO_INIT_FALSE=
28708 fi
28709
28710  if test x"$ensc_with_init" = xsysv; then
28711   HAVE_SYSV_INIT_TRUE=
28712   HAVE_SYSV_INIT_FALSE='#'
28713 else
28714   HAVE_SYSV_INIT_TRUE='#'
28715   HAVE_SYSV_INIT_FALSE=
28716 fi
28717
28718
28719
28720
28721 cat >>confdefs.h <<\_ACEOF
28722 #define UTMP_GID 22
28723 _ACEOF
28724
28725
28726 if false; then
28727
28728 cat >>confdefs.h <<\_ACEOF
28729 #define HAVE_GROWING_STACK 1
28730 _ACEOF
28731
28732 fi
28733
28734
28735 cat >>confdefs.h <<\_ACEOF
28736 #define _FILE_OFFSET_BITS 64
28737 _ACEOF
28738
28739
28740 ensc_cxx_affected=" (affected: vbuild, vcheck)"
28741 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
28742 ensc_diet_msg=" (you have been warned)"
28743 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
28744 ensc_diet_compat_msg=" (using -lcompat)"
28745 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
28746 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
28747 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
28748 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
28749 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
28750
28751
28752
28753
28754
28755 ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
28756
28757 cat >confcache <<\_ACEOF
28758 # This file is a shell script that caches the results of configure
28759 # tests run on this system so they can be shared between configure
28760 # scripts and configure runs, see configure's option --config-cache.
28761 # It is not useful on other systems.  If it contains results you don't
28762 # want to keep, you may remove or edit it.
28763 #
28764 # config.status only pays attention to the cache file if you give it
28765 # the --recheck option to rerun configure.
28766 #
28767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28769 # following values.
28770
28771 _ACEOF
28772
28773 # The following way of writing the cache mishandles newlines in values,
28774 # but we know of no workaround that is simple, portable, and efficient.
28775 # So, we kill variables containing newlines.
28776 # Ultrix sh set writes to stderr and can't be redirected directly,
28777 # and sets the high bit in the cache file unless we assign to the vars.
28778 (
28779   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28780     eval ac_val=\$$ac_var
28781     case $ac_val in #(
28782     *${as_nl}*)
28783       case $ac_var in #(
28784       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28786       esac
28787       case $ac_var in #(
28788       _ | IFS | as_nl) ;; #(
28789       *) $as_unset $ac_var ;;
28790       esac ;;
28791     esac
28792   done
28793
28794   (set) 2>&1 |
28795     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28796     *${as_nl}ac_space=\ *)
28797       # `set' does not quote correctly, so add quotes (double-quote
28798       # substitution turns \\\\ into \\, and sed turns \\ into \).
28799       sed -n \
28800         "s/'/'\\\\''/g;
28801           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28802       ;; #(
28803     *)
28804       # `set' quotes correctly as required by POSIX, so do not add quotes.
28805       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28806       ;;
28807     esac |
28808     sort
28809 ) |
28810   sed '
28811      /^ac_cv_env_/b end
28812      t clear
28813      :clear
28814      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28815      t end
28816      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28817      :end' >>confcache
28818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28819   if test -w "$cache_file"; then
28820     test "x$cache_file" != "x/dev/null" &&
28821       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28822 echo "$as_me: updating cache $cache_file" >&6;}
28823     cat confcache >$cache_file
28824   else
28825     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28826 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28827   fi
28828 fi
28829 rm -f confcache
28830
28831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28832 # Let make expand exec_prefix.
28833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28834
28835 DEFS=-DHAVE_CONFIG_H
28836
28837 ac_libobjs=
28838 ac_ltlibobjs=
28839 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28840   # 1. Remove the extension, and $U if already installed.
28841   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28842   ac_i=`echo "$ac_i" | sed "$ac_script"`
28843   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28844   #    will be set to the directory where LIBOBJS objects are built.
28845   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28846   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28847 done
28848 LIBOBJS=$ac_libobjs
28849
28850 LTLIBOBJS=$ac_ltlibobjs
28851
28852
28853 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28854   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28855 Usually this means the macro was only invoked conditionally." >&5
28856 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28857 Usually this means the macro was only invoked conditionally." >&2;}
28858    { (exit 1); exit 1; }; }
28859 fi
28860 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28861   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28862 Usually this means the macro was only invoked conditionally." >&5
28863 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28864 Usually this means the macro was only invoked conditionally." >&2;}
28865    { (exit 1); exit 1; }; }
28866 fi
28867 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28868   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28869 Usually this means the macro was only invoked conditionally." >&5
28870 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28871 Usually this means the macro was only invoked conditionally." >&2;}
28872    { (exit 1); exit 1; }; }
28873 fi
28874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28875   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28876 Usually this means the macro was only invoked conditionally." >&5
28877 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28878 Usually this means the macro was only invoked conditionally." >&2;}
28879    { (exit 1); exit 1; }; }
28880 fi
28881 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
28882   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28883 Usually this means the macro was only invoked conditionally." >&5
28884 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28885 Usually this means the macro was only invoked conditionally." >&2;}
28886    { (exit 1); exit 1; }; }
28887 fi
28888 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
28889   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28890 Usually this means the macro was only invoked conditionally." >&5
28891 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28892 Usually this means the macro was only invoked conditionally." >&2;}
28893    { (exit 1); exit 1; }; }
28894 fi
28895 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
28896   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
28897 Usually this means the macro was only invoked conditionally." >&5
28898 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
28899 Usually this means the macro was only invoked conditionally." >&2;}
28900    { (exit 1); exit 1; }; }
28901 fi
28902 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
28903   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
28904 Usually this means the macro was only invoked conditionally." >&5
28905 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
28906 Usually this means the macro was only invoked conditionally." >&2;}
28907    { (exit 1); exit 1; }; }
28908 fi
28909 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28910   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28911 Usually this means the macro was only invoked conditionally." >&5
28912 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28913 Usually this means the macro was only invoked conditionally." >&2;}
28914    { (exit 1); exit 1; }; }
28915 fi
28916 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28917   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28918 Usually this means the macro was only invoked conditionally." >&5
28919 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28920 Usually this means the macro was only invoked conditionally." >&2;}
28921    { (exit 1); exit 1; }; }
28922 fi
28923 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28924   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28925 Usually this means the macro was only invoked conditionally." >&5
28926 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28927 Usually this means the macro was only invoked conditionally." >&2;}
28928    { (exit 1); exit 1; }; }
28929 fi
28930 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28931   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28932 Usually this means the macro was only invoked conditionally." >&5
28933 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28934 Usually this means the macro was only invoked conditionally." >&2;}
28935    { (exit 1); exit 1; }; }
28936 fi
28937 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28938   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28939 Usually this means the macro was only invoked conditionally." >&5
28940 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28941 Usually this means the macro was only invoked conditionally." >&2;}
28942    { (exit 1); exit 1; }; }
28943 fi
28944 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28945   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28946 Usually this means the macro was only invoked conditionally." >&5
28947 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28948 Usually this means the macro was only invoked conditionally." >&2;}
28949    { (exit 1); exit 1; }; }
28950 fi
28951 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28952   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28953 Usually this means the macro was only invoked conditionally." >&5
28954 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28955 Usually this means the macro was only invoked conditionally." >&2;}
28956    { (exit 1); exit 1; }; }
28957 fi
28958 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
28959   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28960 Usually this means the macro was only invoked conditionally." >&5
28961 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28962 Usually this means the macro was only invoked conditionally." >&2;}
28963    { (exit 1); exit 1; }; }
28964 fi
28965 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
28966   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28967 Usually this means the macro was only invoked conditionally." >&5
28968 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28969 Usually this means the macro was only invoked conditionally." >&2;}
28970    { (exit 1); exit 1; }; }
28971 fi
28972 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
28973   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
28974 Usually this means the macro was only invoked conditionally." >&5
28975 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
28976 Usually this means the macro was only invoked conditionally." >&2;}
28977    { (exit 1); exit 1; }; }
28978 fi
28979 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
28980   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28981 Usually this means the macro was only invoked conditionally." >&5
28982 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28983 Usually this means the macro was only invoked conditionally." >&2;}
28984    { (exit 1); exit 1; }; }
28985 fi
28986 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
28987   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28988 Usually this means the macro was only invoked conditionally." >&5
28989 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28990 Usually this means the macro was only invoked conditionally." >&2;}
28991    { (exit 1); exit 1; }; }
28992 fi
28993 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
28994   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28995 Usually this means the macro was only invoked conditionally." >&5
28996 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28997 Usually this means the macro was only invoked conditionally." >&2;}
28998    { (exit 1); exit 1; }; }
28999 fi
29000 if test -z "${ENSC_HAVE_CRYPTO_TRUE}" && test -z "${ENSC_HAVE_CRYPTO_FALSE}"; then
29001   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CRYPTO\" was never defined.
29002 Usually this means the macro was only invoked conditionally." >&5
29003 echo "$as_me: error: conditional \"ENSC_HAVE_CRYPTO\" was never defined.
29004 Usually this means the macro was only invoked conditionally." >&2;}
29005    { (exit 1); exit 1; }; }
29006 fi
29007 if test -z "${ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE}"; then
29008   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_CRYPTO_WITH_DIETLIBC\" was never defined.
29009 Usually this means the macro was only invoked conditionally." >&5
29010 echo "$as_me: error: conditional \"ENSC_CAN_CRYPTO_WITH_DIETLIBC\" was never defined.
29011 Usually this means the macro was only invoked conditionally." >&2;}
29012    { (exit 1); exit 1; }; }
29013 fi
29014 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
29015   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29016 Usually this means the macro was only invoked conditionally." >&5
29017 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29018 Usually this means the macro was only invoked conditionally." >&2;}
29019    { (exit 1); exit 1; }; }
29020 fi
29021 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
29022   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29023 Usually this means the macro was only invoked conditionally." >&5
29024 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29025 Usually this means the macro was only invoked conditionally." >&2;}
29026    { (exit 1); exit 1; }; }
29027 fi
29028
29029                         FEATURES_TXT="\
29030 Features:
29031                        CC: $CC, $($CC   --version | sed -e '1p;d')
29032                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
29033                  CPPFLAGS: '$CPPFLAGS'
29034                    CFLAGS: '$CFLAGS'
29035                  CXXFLAGS: '$CXXFLAGS'
29036                build/host: $build/$host
29037              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
29038        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
29039        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
29040            Available APIs: $enable_apis
29041             ext2fs Source: $ensc_cv_test_ext2fs_header
29042     syscall(2) invocation: $with_syscall
29043       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
29044                crypto api: $ensc_crypto_api
29045
29046 Paths:
29047                    prefix: $prefix
29048         sysconf-Directory: $sysconfdir
29049             cfg-Directory: $sysconfdir/vservers
29050          initrd-Directory: $initrddir
29051        pkgstate-Directory: $localstatedir/run/vservers
29052           vserver-Rootdir: $vserverdir
29053 "
29054                         echo "$FEATURES_TXT" >FEATURES.txt
29055
29056
29057 : ${CONFIG_STATUS=./config.status}
29058 ac_clean_files_save=$ac_clean_files
29059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29062 cat >$CONFIG_STATUS <<_ACEOF
29063 #! $SHELL
29064 # Generated by $as_me.
29065 # Run this file to recreate the current configuration.
29066 # Compiler output produced by configure, useful for debugging
29067 # configure, is in config.log if it exists.
29068
29069 debug=false
29070 ac_cs_recheck=false
29071 ac_cs_silent=false
29072 SHELL=\${CONFIG_SHELL-$SHELL}
29073 _ACEOF
29074
29075 cat >>$CONFIG_STATUS <<\_ACEOF
29076 ## --------------------- ##
29077 ## M4sh Initialization.  ##
29078 ## --------------------- ##
29079
29080 # Be more Bourne compatible
29081 DUALCASE=1; export DUALCASE # for MKS sh
29082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29083   emulate sh
29084   NULLCMD=:
29085   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29086   # is contrary to our usage.  Disable this feature.
29087   alias -g '${1+"$@"}'='"$@"'
29088   setopt NO_GLOB_SUBST
29089 else
29090   case `(set -o) 2>/dev/null` in
29091   *posix*) set -o posix ;;
29092 esac
29093
29094 fi
29095
29096
29097
29098
29099 # PATH needs CR
29100 # Avoid depending upon Character Ranges.
29101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29104 as_cr_digits='0123456789'
29105 as_cr_alnum=$as_cr_Letters$as_cr_digits
29106
29107 # The user is always right.
29108 if test "${PATH_SEPARATOR+set}" != set; then
29109   echo "#! /bin/sh" >conf$$.sh
29110   echo  "exit 0"   >>conf$$.sh
29111   chmod +x conf$$.sh
29112   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29113     PATH_SEPARATOR=';'
29114   else
29115     PATH_SEPARATOR=:
29116   fi
29117   rm -f conf$$.sh
29118 fi
29119
29120 # Support unset when possible.
29121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29122   as_unset=unset
29123 else
29124   as_unset=false
29125 fi
29126
29127
29128 # IFS
29129 # We need space, tab and new line, in precisely that order.  Quoting is
29130 # there to prevent editors from complaining about space-tab.
29131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29132 # splitting by setting IFS to empty value.)
29133 as_nl='
29134 '
29135 IFS=" ""        $as_nl"
29136
29137 # Find who we are.  Look in the path if we contain no directory separator.
29138 case $0 in
29139   *[\\/]* ) as_myself=$0 ;;
29140   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29141 for as_dir in $PATH
29142 do
29143   IFS=$as_save_IFS
29144   test -z "$as_dir" && as_dir=.
29145   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29146 done
29147 IFS=$as_save_IFS
29148
29149      ;;
29150 esac
29151 # We did not find ourselves, most probably we were run as `sh COMMAND'
29152 # in which case we are not to be found in the path.
29153 if test "x$as_myself" = x; then
29154   as_myself=$0
29155 fi
29156 if test ! -f "$as_myself"; then
29157   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29158   { (exit 1); exit 1; }
29159 fi
29160
29161 # Work around bugs in pre-3.0 UWIN ksh.
29162 for as_var in ENV MAIL MAILPATH
29163 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29164 done
29165 PS1='$ '
29166 PS2='> '
29167 PS4='+ '
29168
29169 # NLS nuisances.
29170 for as_var in \
29171   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29172   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29173   LC_TELEPHONE LC_TIME
29174 do
29175   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29176     eval $as_var=C; export $as_var
29177   else
29178     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29179   fi
29180 done
29181
29182 # Required to use basename.
29183 if expr a : '\(a\)' >/dev/null 2>&1 &&
29184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29185   as_expr=expr
29186 else
29187   as_expr=false
29188 fi
29189
29190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29191   as_basename=basename
29192 else
29193   as_basename=false
29194 fi
29195
29196
29197 # Name of the executable.
29198 as_me=`$as_basename -- "$0" ||
29199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29200          X"$0" : 'X\(//\)$' \| \
29201          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29202 echo X/"$0" |
29203     sed '/^.*\/\([^/][^/]*\)\/*$/{
29204             s//\1/
29205             q
29206           }
29207           /^X\/\(\/\/\)$/{
29208             s//\1/
29209             q
29210           }
29211           /^X\/\(\/\).*/{
29212             s//\1/
29213             q
29214           }
29215           s/.*/./; q'`
29216
29217 # CDPATH.
29218 $as_unset CDPATH
29219
29220
29221
29222   as_lineno_1=$LINENO
29223   as_lineno_2=$LINENO
29224   test "x$as_lineno_1" != "x$as_lineno_2" &&
29225   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29226
29227   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29228   # uniformly replaced by the line number.  The first 'sed' inserts a
29229   # line-number line after each line using $LINENO; the second 'sed'
29230   # does the real work.  The second script uses 'N' to pair each
29231   # line-number line with the line containing $LINENO, and appends
29232   # trailing '-' during substitution so that $LINENO is not a special
29233   # case at line end.
29234   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29235   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29236   # E. McMahon (1931-1989) for sed's syntax.  :-)
29237   sed -n '
29238     p
29239     /[$]LINENO/=
29240   ' <$as_myself |
29241     sed '
29242       s/[$]LINENO.*/&-/
29243       t lineno
29244       b
29245       :lineno
29246       N
29247       :loop
29248       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29249       t loop
29250       s/-\n.*//
29251     ' >$as_me.lineno &&
29252   chmod +x "$as_me.lineno" ||
29253     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29254    { (exit 1); exit 1; }; }
29255
29256   # Don't try to exec as it changes $[0], causing all sort of problems
29257   # (the dirname of $[0] is not the place where we might find the
29258   # original and so on.  Autoconf is especially sensitive to this).
29259   . "./$as_me.lineno"
29260   # Exit status is that of the last command.
29261   exit
29262 }
29263
29264
29265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29266   as_dirname=dirname
29267 else
29268   as_dirname=false
29269 fi
29270
29271 ECHO_C= ECHO_N= ECHO_T=
29272 case `echo -n x` in
29273 -n*)
29274   case `echo 'x\c'` in
29275   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29276   *)   ECHO_C='\c';;
29277   esac;;
29278 *)
29279   ECHO_N='-n';;
29280 esac
29281
29282 if expr a : '\(a\)' >/dev/null 2>&1 &&
29283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29284   as_expr=expr
29285 else
29286   as_expr=false
29287 fi
29288
29289 rm -f conf$$ conf$$.exe conf$$.file
29290 if test -d conf$$.dir; then
29291   rm -f conf$$.dir/conf$$.file
29292 else
29293   rm -f conf$$.dir
29294   mkdir conf$$.dir
29295 fi
29296 echo >conf$$.file
29297 if ln -s conf$$.file conf$$ 2>/dev/null; then
29298   as_ln_s='ln -s'
29299   # ... but there are two gotchas:
29300   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29301   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29302   # In both cases, we have to default to `cp -p'.
29303   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29304     as_ln_s='cp -p'
29305 elif ln conf$$.file conf$$ 2>/dev/null; then
29306   as_ln_s=ln
29307 else
29308   as_ln_s='cp -p'
29309 fi
29310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29311 rmdir conf$$.dir 2>/dev/null
29312
29313 if mkdir -p . 2>/dev/null; then
29314   as_mkdir_p=:
29315 else
29316   test -d ./-p && rmdir ./-p
29317   as_mkdir_p=false
29318 fi
29319
29320 if test -x / >/dev/null 2>&1; then
29321   as_test_x='test -x'
29322 else
29323   if ls -dL / >/dev/null 2>&1; then
29324     as_ls_L_option=L
29325   else
29326     as_ls_L_option=
29327   fi
29328   as_test_x='
29329     eval sh -c '\''
29330       if test -d "$1"; then
29331         test -d "$1/.";
29332       else
29333         case $1 in
29334         -*)set "./$1";;
29335         esac;
29336         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29337         ???[sx]*):;;*)false;;esac;fi
29338     '\'' sh
29339   '
29340 fi
29341 as_executable_p=$as_test_x
29342
29343 # Sed expression to map a string onto a valid CPP name.
29344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29345
29346 # Sed expression to map a string onto a valid variable name.
29347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29348
29349
29350 exec 6>&1
29351
29352 # Save the log message, to keep $[0] and so on meaningful, and to
29353 # report actual input values of CONFIG_FILES etc. instead of their
29354 # values after options handling.
29355 ac_log="
29356 This file was extended by util-vserver $as_me 0.30.215, which was
29357 generated by GNU Autoconf 2.61.  Invocation command line was
29358
29359   CONFIG_FILES    = $CONFIG_FILES
29360   CONFIG_HEADERS  = $CONFIG_HEADERS
29361   CONFIG_LINKS    = $CONFIG_LINKS
29362   CONFIG_COMMANDS = $CONFIG_COMMANDS
29363   $ $0 $@
29364
29365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29366 "
29367
29368 _ACEOF
29369
29370 cat >>$CONFIG_STATUS <<_ACEOF
29371 # Files that config.status was made for.
29372 config_files="$ac_config_files"
29373 config_headers="$ac_config_headers"
29374 config_commands="$ac_config_commands"
29375
29376 _ACEOF
29377
29378 cat >>$CONFIG_STATUS <<\_ACEOF
29379 ac_cs_usage="\
29380 \`$as_me' instantiates files from templates according to the
29381 current configuration.
29382
29383 Usage: $0 [OPTIONS] [FILE]...
29384
29385   -h, --help       print this help, then exit
29386   -V, --version    print version number and configuration settings, then exit
29387   -q, --quiet      do not print progress messages
29388   -d, --debug      don't remove temporary files
29389       --recheck    update $as_me by reconfiguring in the same conditions
29390   --file=FILE[:TEMPLATE]
29391                    instantiate the configuration file FILE
29392   --header=FILE[:TEMPLATE]
29393                    instantiate the configuration header FILE
29394
29395 Configuration files:
29396 $config_files
29397
29398 Configuration headers:
29399 $config_headers
29400
29401 Configuration commands:
29402 $config_commands
29403
29404 Report bugs to <bug-autoconf@gnu.org>."
29405
29406 _ACEOF
29407 cat >>$CONFIG_STATUS <<_ACEOF
29408 ac_cs_version="\\
29409 util-vserver config.status 0.30.215
29410 configured by $0, generated by GNU Autoconf 2.61,
29411   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29412
29413 Copyright (C) 2006 Free Software Foundation, Inc.
29414 This config.status script is free software; the Free Software Foundation
29415 gives unlimited permission to copy, distribute and modify it."
29416
29417 ac_pwd='$ac_pwd'
29418 srcdir='$srcdir'
29419 INSTALL='$INSTALL'
29420 MKDIR_P='$MKDIR_P'
29421 _ACEOF
29422
29423 cat >>$CONFIG_STATUS <<\_ACEOF
29424 # If no file are specified by the user, then we need to provide default
29425 # value.  By we need to know if files were specified by the user.
29426 ac_need_defaults=:
29427 while test $# != 0
29428 do
29429   case $1 in
29430   --*=*)
29431     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29432     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29433     ac_shift=:
29434     ;;
29435   *)
29436     ac_option=$1
29437     ac_optarg=$2
29438     ac_shift=shift
29439     ;;
29440   esac
29441
29442   case $ac_option in
29443   # Handling of the options.
29444   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29445     ac_cs_recheck=: ;;
29446   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29447     echo "$ac_cs_version"; exit ;;
29448   --debug | --debu | --deb | --de | --d | -d )
29449     debug=: ;;
29450   --file | --fil | --fi | --f )
29451     $ac_shift
29452     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29453     ac_need_defaults=false;;
29454   --header | --heade | --head | --hea )
29455     $ac_shift
29456     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29457     ac_need_defaults=false;;
29458   --he | --h)
29459     # Conflict between --help and --header
29460     { echo "$as_me: error: ambiguous option: $1
29461 Try \`$0 --help' for more information." >&2
29462    { (exit 1); exit 1; }; };;
29463   --help | --hel | -h )
29464     echo "$ac_cs_usage"; exit ;;
29465   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29466   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29467     ac_cs_silent=: ;;
29468
29469   # This is an error.
29470   -*) { echo "$as_me: error: unrecognized option: $1
29471 Try \`$0 --help' for more information." >&2
29472    { (exit 1); exit 1; }; } ;;
29473
29474   *) ac_config_targets="$ac_config_targets $1"
29475      ac_need_defaults=false ;;
29476
29477   esac
29478   shift
29479 done
29480
29481 ac_configure_extra_args=
29482
29483 if $ac_cs_silent; then
29484   exec 6>/dev/null
29485   ac_configure_extra_args="$ac_configure_extra_args --silent"
29486 fi
29487
29488 _ACEOF
29489 cat >>$CONFIG_STATUS <<_ACEOF
29490 if \$ac_cs_recheck; then
29491   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29492   CONFIG_SHELL=$SHELL
29493   export CONFIG_SHELL
29494   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29495 fi
29496
29497 _ACEOF
29498 cat >>$CONFIG_STATUS <<\_ACEOF
29499 exec 5>>config.log
29500 {
29501   echo
29502   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29503 ## Running $as_me. ##
29504 _ASBOX
29505   echo "$ac_log"
29506 } >&5
29507
29508 _ACEOF
29509 cat >>$CONFIG_STATUS <<_ACEOF
29510 #
29511 # INIT-COMMANDS
29512 #
29513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29514
29515 _ACEOF
29516
29517 cat >>$CONFIG_STATUS <<\_ACEOF
29518
29519 # Handling of arguments.
29520 for ac_config_target in $ac_config_targets
29521 do
29522   case $ac_config_target in
29523     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29524     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29525     "util-vserver.spec") CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
29526     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29527     "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
29528     "lib/apidoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
29529
29530   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29531 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29532    { (exit 1); exit 1; }; };;
29533   esac
29534 done
29535
29536
29537 # If the user did not use the arguments to specify the items to instantiate,
29538 # then the envvar interface is used.  Set only those that are not.
29539 # We use the long form for the default assignment because of an extremely
29540 # bizarre bug on SunOS 4.1.3.
29541 if $ac_need_defaults; then
29542   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29543   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29544   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29545 fi
29546
29547 # Have a temporary directory for convenience.  Make it in the build tree
29548 # simply because there is no reason against having it here, and in addition,
29549 # creating and moving files from /tmp can sometimes cause problems.
29550 # Hook for its removal unless debugging.
29551 # Note that there is a small window in which the directory will not be cleaned:
29552 # after its creation but before its name has been assigned to `$tmp'.
29553 $debug ||
29554 {
29555   tmp=
29556   trap 'exit_status=$?
29557   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29558 ' 0
29559   trap '{ (exit 1); exit 1; }' 1 2 13 15
29560 }
29561 # Create a (secure) tmp directory for tmp files.
29562
29563 {
29564   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29565   test -n "$tmp" && test -d "$tmp"
29566 }  ||
29567 {
29568   tmp=./conf$$-$RANDOM
29569   (umask 077 && mkdir "$tmp")
29570 } ||
29571 {
29572    echo "$me: cannot create a temporary directory in ." >&2
29573    { (exit 1); exit 1; }
29574 }
29575
29576 #
29577 # Set up the sed scripts for CONFIG_FILES section.
29578 #
29579
29580 # No need to generate the scripts if there are no CONFIG_FILES.
29581 # This happens for instance when ./config.status config.h
29582 if test -n "$CONFIG_FILES"; then
29583
29584 _ACEOF
29585
29586
29587
29588 ac_delim='%!_!# '
29589 for ac_last_try in false false false false false :; do
29590   cat >conf$$subs.sed <<_ACEOF
29591 SHELL!$SHELL$ac_delim
29592 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29593 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29594 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29595 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29596 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29597 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29598 exec_prefix!$exec_prefix$ac_delim
29599 prefix!$prefix$ac_delim
29600 program_transform_name!$program_transform_name$ac_delim
29601 bindir!$bindir$ac_delim
29602 sbindir!$sbindir$ac_delim
29603 libexecdir!$libexecdir$ac_delim
29604 datarootdir!$datarootdir$ac_delim
29605 datadir!$datadir$ac_delim
29606 sysconfdir!$sysconfdir$ac_delim
29607 sharedstatedir!$sharedstatedir$ac_delim
29608 localstatedir!$localstatedir$ac_delim
29609 includedir!$includedir$ac_delim
29610 oldincludedir!$oldincludedir$ac_delim
29611 docdir!$docdir$ac_delim
29612 infodir!$infodir$ac_delim
29613 htmldir!$htmldir$ac_delim
29614 dvidir!$dvidir$ac_delim
29615 pdfdir!$pdfdir$ac_delim
29616 psdir!$psdir$ac_delim
29617 libdir!$libdir$ac_delim
29618 localedir!$localedir$ac_delim
29619 mandir!$mandir$ac_delim
29620 DEFS!$DEFS$ac_delim
29621 ECHO_C!$ECHO_C$ac_delim
29622 ECHO_N!$ECHO_N$ac_delim
29623 ECHO_T!$ECHO_T$ac_delim
29624 LIBS!$LIBS$ac_delim
29625 build_alias!$build_alias$ac_delim
29626 host_alias!$host_alias$ac_delim
29627 target_alias!$target_alias$ac_delim
29628 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29629 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29630 INSTALL_DATA!$INSTALL_DATA$ac_delim
29631 am__isrc!$am__isrc$ac_delim
29632 CYGPATH_W!$CYGPATH_W$ac_delim
29633 PACKAGE!$PACKAGE$ac_delim
29634 VERSION!$VERSION$ac_delim
29635 ACLOCAL!$ACLOCAL$ac_delim
29636 AUTOCONF!$AUTOCONF$ac_delim
29637 AUTOMAKE!$AUTOMAKE$ac_delim
29638 AUTOHEADER!$AUTOHEADER$ac_delim
29639 MAKEINFO!$MAKEINFO$ac_delim
29640 install_sh!$install_sh$ac_delim
29641 STRIP!$STRIP$ac_delim
29642 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29643 mkdir_p!$mkdir_p$ac_delim
29644 AWK!$AWK$ac_delim
29645 SET_MAKE!$SET_MAKE$ac_delim
29646 am__leading_dot!$am__leading_dot$ac_delim
29647 AMTAR!$AMTAR$ac_delim
29648 am__tar!$am__tar$ac_delim
29649 am__untar!$am__untar$ac_delim
29650 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29651 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29652 MAINT!$MAINT$ac_delim
29653 build!$build$ac_delim
29654 build_cpu!$build_cpu$ac_delim
29655 build_vendor!$build_vendor$ac_delim
29656 build_os!$build_os$ac_delim
29657 host!$host$ac_delim
29658 host_cpu!$host_cpu$ac_delim
29659 host_vendor!$host_vendor$ac_delim
29660 host_os!$host_os$ac_delim
29661 GPG_KEY!$GPG_KEY$ac_delim
29662 CXX!$CXX$ac_delim
29663 CXXFLAGS!$CXXFLAGS$ac_delim
29664 LDFLAGS!$LDFLAGS$ac_delim
29665 CPPFLAGS!$CPPFLAGS$ac_delim
29666 ac_ct_CXX!$ac_ct_CXX$ac_delim
29667 EXEEXT!$EXEEXT$ac_delim
29668 OBJEXT!$OBJEXT$ac_delim
29669 DEPDIR!$DEPDIR$ac_delim
29670 am__include!$am__include$ac_delim
29671 am__quote!$am__quote$ac_delim
29672 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29673 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29674 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29675 CXXDEPMODE!$CXXDEPMODE$ac_delim
29676 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29677 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29678 CC!$CC$ac_delim
29679 CFLAGS!$CFLAGS$ac_delim
29680 ac_ct_CC!$ac_ct_CC$ac_delim
29681 CCDEPMODE!$CCDEPMODE$ac_delim
29682 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29683 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29684 LN_S!$LN_S$ac_delim
29685 PKG_CONFIG!$PKG_CONFIG$ac_delim
29686 ENSC_HAVE_CXX_COMPILER_TRUE!$ENSC_HAVE_CXX_COMPILER_TRUE$ac_delim
29687 ENSC_HAVE_CXX_COMPILER_FALSE!$ENSC_HAVE_CXX_COMPILER_FALSE$ac_delim
29688 _ACEOF
29689
29690   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29691     break
29692   elif $ac_last_try; then
29693     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29694 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29695    { (exit 1); exit 1; }; }
29696   else
29697     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29698   fi
29699 done
29700
29701 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29702 if test -n "$ac_eof"; then
29703   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29704   ac_eof=`expr $ac_eof + 1`
29705 fi
29706
29707 cat >>$CONFIG_STATUS <<_ACEOF
29708 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29710 _ACEOF
29711 sed '
29712 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29713 s/^/s,@/; s/!/@,|#_!!_#|/
29714 :n
29715 t n
29716 s/'"$ac_delim"'$/,g/; t
29717 s/$/\\/; p
29718 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29719 ' >>$CONFIG_STATUS <conf$$subs.sed
29720 rm -f conf$$subs.sed
29721 cat >>$CONFIG_STATUS <<_ACEOF
29722 CEOF$ac_eof
29723 _ACEOF
29724
29725
29726 ac_delim='%!_!# '
29727 for ac_last_try in false false false false false :; do
29728   cat >conf$$subs.sed <<_ACEOF
29729 ENSC_HAVE_C99_COMPILER_TRUE!$ENSC_HAVE_C99_COMPILER_TRUE$ac_delim
29730 ENSC_HAVE_C99_COMPILER_FALSE!$ENSC_HAVE_C99_COMPILER_FALSE$ac_delim
29731 ENSC_PATHPROG_SED!$ENSC_PATHPROG_SED$ac_delim
29732 CAT!$CAT$ac_delim
29733 CHOWN!$CHOWN$ac_delim
29734 CMP!$CMP$ac_delim
29735 CP!$CP$ac_delim
29736 DIRNAME!$DIRNAME$ac_delim
29737 EGREP!$EGREP$ac_delim
29738 ENV!$ENV$ac_delim
29739 GREP!$GREP$ac_delim
29740 LN!$LN$ac_delim
29741 MKDIR!$MKDIR$ac_delim
29742 MKFIFO!$MKFIFO$ac_delim
29743 MKTEMP!$MKTEMP$ac_delim
29744 MOUNT!$MOUNT$ac_delim
29745 MV!$MV$ac_delim
29746 NICE!$NICE$ac_delim
29747 PS!$PS$ac_delim
29748 RM!$RM$ac_delim
29749 RMDIR!$RMDIR$ac_delim
29750 SED!$SED$ac_delim
29751 SH!$SH$ac_delim
29752 TAC!$TAC$ac_delim
29753 TAR!$TAR$ac_delim
29754 TOUCH!$TOUCH$ac_delim
29755 TTY!$TTY$ac_delim
29756 UMOUNT!$UMOUNT$ac_delim
29757 WC!$WC$ac_delim
29758 IP!$IP$ac_delim
29759 IPTABLES!$IPTABLES$ac_delim
29760 MODPROBE!$MODPROBE$ac_delim
29761 NAMEIF!$NAMEIF$ac_delim
29762 NOHUP!$NOHUP$ac_delim
29763 RMMOD!$RMMOD$ac_delim
29764 VCONFIG!$VCONFIG$ac_delim
29765 WGET!$WGET$ac_delim
29766 FILE!$FILE$ac_delim
29767 GZIP!$GZIP$ac_delim
29768 BZIP2!$BZIP2$ac_delim
29769 CPIO!$CPIO$ac_delim
29770 RESTORE!$RESTORE$ac_delim
29771 RSYNC!$RSYNC$ac_delim
29772 STRACE!$STRACE$ac_delim
29773 FSCK!$FSCK$ac_delim
29774 DOXYGEN!$DOXYGEN$ac_delim
29775 XSLTP!$XSLTP$ac_delim
29776 XSLTPROC!$XSLTPROC$ac_delim
29777 HAVE_XSLTP_TRUE!$HAVE_XSLTP_TRUE$ac_delim
29778 HAVE_XSLTP_FALSE!$HAVE_XSLTP_FALSE$ac_delim
29779 HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
29780 HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
29781 LIB_DEBUG_CPPFLAGS!$LIB_DEBUG_CPPFLAGS$ac_delim
29782 ENSC_USE_EXPENSIVE_TESTS!$ENSC_USE_EXPENSIVE_TESTS$ac_delim
29783 initrddir!$initrddir$ac_delim
29784 RELEASE_CPPFLAGS!$RELEASE_CPPFLAGS$ac_delim
29785 CPP!$CPP$ac_delim
29786 DIET!$DIET$ac_delim
29787 DIETFLAGS!$DIETFLAGS$ac_delim
29788 USE_DIETLIBC_TRUE!$USE_DIETLIBC_TRUE$ac_delim
29789 USE_DIETLIBC_FALSE!$USE_DIETLIBC_FALSE$ac_delim
29790 USE_DIETLIBC_COMPAT_TRUE!$USE_DIETLIBC_COMPAT_TRUE$ac_delim
29791 USE_DIETLIBC_COMPAT_FALSE!$USE_DIETLIBC_COMPAT_FALSE$ac_delim
29792 ENSC_USE_DIETLIBC_TRUE!$ENSC_USE_DIETLIBC_TRUE$ac_delim
29793 ENSC_USE_DIETLIBC_FALSE!$ENSC_USE_DIETLIBC_FALSE$ac_delim
29794 ENSC_USE_GLIBC_TRUE!$ENSC_USE_GLIBC_TRUE$ac_delim
29795 ENSC_USE_GLIBC_FALSE!$ENSC_USE_GLIBC_FALSE$ac_delim
29796 ECHO!$ECHO$ac_delim
29797 AR!$AR$ac_delim
29798 RANLIB!$RANLIB$ac_delim
29799 CXXCPP!$CXXCPP$ac_delim
29800 F77!$F77$ac_delim
29801 FFLAGS!$FFLAGS$ac_delim
29802 ac_ct_F77!$ac_ct_F77$ac_delim
29803 LIBTOOL!$LIBTOOL$ac_delim
29804 vserverdir!$vserverdir$ac_delim
29805 SVN2CL!$SVN2CL$ac_delim
29806 HAVE_SVN2CL_TRUE!$HAVE_SVN2CL_TRUE$ac_delim
29807 HAVE_SVN2CL_FALSE!$HAVE_SVN2CL_FALSE$ac_delim
29808 ENSC_ENABLE_INTERNAL_HEADERS_TRUE!$ENSC_ENABLE_INTERNAL_HEADERS_TRUE$ac_delim
29809 ENSC_ENABLE_INTERNAL_HEADERS_FALSE!$ENSC_ENABLE_INTERNAL_HEADERS_FALSE$ac_delim
29810 ENSC_HAVE_BEECRYPT_TRUE!$ENSC_HAVE_BEECRYPT_TRUE$ac_delim
29811 ENSC_HAVE_BEECRYPT_FALSE!$ENSC_HAVE_BEECRYPT_FALSE$ac_delim
29812 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE$ac_delim
29813 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE$ac_delim
29814 NSS_CFLAGS!$NSS_CFLAGS$ac_delim
29815 NSS_LIBS!$NSS_LIBS$ac_delim
29816 ENSC_HAVE_CRYPTO_TRUE!$ENSC_HAVE_CRYPTO_TRUE$ac_delim
29817 ENSC_HAVE_CRYPTO_FALSE!$ENSC_HAVE_CRYPTO_FALSE$ac_delim
29818 ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE!$ENSC_CAN_CRYPTO_WITH_DIETLIBC_TRUE$ac_delim
29819 ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE!$ENSC_CAN_CRYPTO_WITH_DIETLIBC_FALSE$ac_delim
29820 ENSC_CRYPTO_CFLAGS!$ENSC_CRYPTO_CFLAGS$ac_delim
29821 ENSC_CRYPTO_LIB!$ENSC_CRYPTO_LIB$ac_delim
29822 HAVE_GENTOO_INIT_TRUE!$HAVE_GENTOO_INIT_TRUE$ac_delim
29823 HAVE_GENTOO_INIT_FALSE!$HAVE_GENTOO_INIT_FALSE$ac_delim
29824 HAVE_SYSV_INIT_TRUE!$HAVE_SYSV_INIT_TRUE$ac_delim
29825 HAVE_SYSV_INIT_FALSE!$HAVE_SYSV_INIT_FALSE$ac_delim
29826 _ACEOF
29827
29828   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29829     break
29830   elif $ac_last_try; then
29831     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29832 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29833    { (exit 1); exit 1; }; }
29834   else
29835     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29836   fi
29837 done
29838
29839 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29840 if test -n "$ac_eof"; then
29841   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29842   ac_eof=`expr $ac_eof + 1`
29843 fi
29844
29845 cat >>$CONFIG_STATUS <<_ACEOF
29846 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29847 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29848 _ACEOF
29849 sed '
29850 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29851 s/^/s,@/; s/!/@,|#_!!_#|/
29852 :n
29853 t n
29854 s/'"$ac_delim"'$/,g/; t
29855 s/$/\\/; p
29856 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29857 ' >>$CONFIG_STATUS <conf$$subs.sed
29858 rm -f conf$$subs.sed
29859 cat >>$CONFIG_STATUS <<_ACEOF
29860 CEOF$ac_eof
29861 _ACEOF
29862
29863
29864 ac_delim='%!_!# '
29865 for ac_last_try in false false false false false :; do
29866   cat >conf$$subs.sed <<_ACEOF
29867 LIBOBJS!$LIBOBJS$ac_delim
29868 LTLIBOBJS!$LTLIBOBJS$ac_delim
29869 _ACEOF
29870
29871   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
29872     break
29873   elif $ac_last_try; then
29874     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29875 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29876    { (exit 1); exit 1; }; }
29877   else
29878     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29879   fi
29880 done
29881
29882 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29883 if test -n "$ac_eof"; then
29884   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29885   ac_eof=`expr $ac_eof + 1`
29886 fi
29887
29888 cat >>$CONFIG_STATUS <<_ACEOF
29889 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29891 _ACEOF
29892 sed '
29893 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29894 s/^/s,@/; s/!/@,|#_!!_#|/
29895 :n
29896 t n
29897 s/'"$ac_delim"'$/,g/; t
29898 s/$/\\/; p
29899 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29900 ' >>$CONFIG_STATUS <conf$$subs.sed
29901 rm -f conf$$subs.sed
29902 cat >>$CONFIG_STATUS <<_ACEOF
29903 :end
29904 s/|#_!!_#|//g
29905 CEOF$ac_eof
29906 _ACEOF
29907
29908
29909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29911 # trailing colons and then remove the whole line if VPATH becomes empty
29912 # (actually we leave an empty line to preserve line numbers).
29913 if test "x$srcdir" = x.; then
29914   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29915 s/:*\$(srcdir):*/:/
29916 s/:*\${srcdir}:*/:/
29917 s/:*@srcdir@:*/:/
29918 s/^\([^=]*=[     ]*\):*/\1/
29919 s/:*$//
29920 s/^[^=]*=[       ]*$//
29921 }'
29922 fi
29923
29924 cat >>$CONFIG_STATUS <<\_ACEOF
29925 fi # test -n "$CONFIG_FILES"
29926
29927
29928 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29929 do
29930   case $ac_tag in
29931   :[FHLC]) ac_mode=$ac_tag; continue;;
29932   esac
29933   case $ac_mode$ac_tag in
29934   :[FHL]*:*);;
29935   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29936 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29937    { (exit 1); exit 1; }; };;
29938   :[FH]-) ac_tag=-:-;;
29939   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29940   esac
29941   ac_save_IFS=$IFS
29942   IFS=:
29943   set x $ac_tag
29944   IFS=$ac_save_IFS
29945   shift
29946   ac_file=$1
29947   shift
29948
29949   case $ac_mode in
29950   :L) ac_source=$1;;
29951   :[FH])
29952     ac_file_inputs=
29953     for ac_f
29954     do
29955       case $ac_f in
29956       -) ac_f="$tmp/stdin";;
29957       *) # Look for the file first in the build tree, then in the source tree
29958          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29959          # because $ac_f cannot contain `:'.
29960          test -f "$ac_f" ||
29961            case $ac_f in
29962            [\\/$]*) false;;
29963            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29964            esac ||
29965            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29966 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29967    { (exit 1); exit 1; }; };;
29968       esac
29969       ac_file_inputs="$ac_file_inputs $ac_f"
29970     done
29971
29972     # Let's still pretend it is `configure' which instantiates (i.e., don't
29973     # use $as_me), people would be surprised to read:
29974     #    /* config.h.  Generated by config.status.  */
29975     configure_input="Generated from "`IFS=:
29976           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29977     if test x"$ac_file" != x-; then
29978       configure_input="$ac_file.  $configure_input"
29979       { echo "$as_me:$LINENO: creating $ac_file" >&5
29980 echo "$as_me: creating $ac_file" >&6;}
29981     fi
29982
29983     case $ac_tag in
29984     *:-:* | *:-) cat >"$tmp/stdin";;
29985     esac
29986     ;;
29987   esac
29988
29989   ac_dir=`$as_dirname -- "$ac_file" ||
29990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29991          X"$ac_file" : 'X\(//\)[^/]' \| \
29992          X"$ac_file" : 'X\(//\)$' \| \
29993          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29994 echo X"$ac_file" |
29995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29996             s//\1/
29997             q
29998           }
29999           /^X\(\/\/\)[^/].*/{
30000             s//\1/
30001             q
30002           }
30003           /^X\(\/\/\)$/{
30004             s//\1/
30005             q
30006           }
30007           /^X\(\/\).*/{
30008             s//\1/
30009             q
30010           }
30011           s/.*/./; q'`
30012   { as_dir="$ac_dir"
30013   case $as_dir in #(
30014   -*) as_dir=./$as_dir;;
30015   esac
30016   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30017     as_dirs=
30018     while :; do
30019       case $as_dir in #(
30020       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30021       *) as_qdir=$as_dir;;
30022       esac
30023       as_dirs="'$as_qdir' $as_dirs"
30024       as_dir=`$as_dirname -- "$as_dir" ||
30025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30026          X"$as_dir" : 'X\(//\)[^/]' \| \
30027          X"$as_dir" : 'X\(//\)$' \| \
30028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30029 echo X"$as_dir" |
30030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30031             s//\1/
30032             q
30033           }
30034           /^X\(\/\/\)[^/].*/{
30035             s//\1/
30036             q
30037           }
30038           /^X\(\/\/\)$/{
30039             s//\1/
30040             q
30041           }
30042           /^X\(\/\).*/{
30043             s//\1/
30044             q
30045           }
30046           s/.*/./; q'`
30047       test -d "$as_dir" && break
30048     done
30049     test -z "$as_dirs" || eval "mkdir $as_dirs"
30050   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30052    { (exit 1); exit 1; }; }; }
30053   ac_builddir=.
30054
30055 case "$ac_dir" in
30056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30057 *)
30058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30059   # A ".." for each directory in $ac_dir_suffix.
30060   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30061   case $ac_top_builddir_sub in
30062   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30063   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30064   esac ;;
30065 esac
30066 ac_abs_top_builddir=$ac_pwd
30067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30068 # for backward compatibility:
30069 ac_top_builddir=$ac_top_build_prefix
30070
30071 case $srcdir in
30072   .)  # We are building in place.
30073     ac_srcdir=.
30074     ac_top_srcdir=$ac_top_builddir_sub
30075     ac_abs_top_srcdir=$ac_pwd ;;
30076   [\\/]* | ?:[\\/]* )  # Absolute name.
30077     ac_srcdir=$srcdir$ac_dir_suffix;
30078     ac_top_srcdir=$srcdir
30079     ac_abs_top_srcdir=$srcdir ;;
30080   *) # Relative name.
30081     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30082     ac_top_srcdir=$ac_top_build_prefix$srcdir
30083     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30084 esac
30085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30086
30087
30088   case $ac_mode in
30089   :F)
30090   #
30091   # CONFIG_FILE
30092   #
30093
30094   case $INSTALL in
30095   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30096   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30097   esac
30098   ac_MKDIR_P=$MKDIR_P
30099   case $MKDIR_P in
30100   [\\/$]* | ?:[\\/]* ) ;;
30101   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30102   esac
30103 _ACEOF
30104
30105 cat >>$CONFIG_STATUS <<\_ACEOF
30106 # If the template does not know about datarootdir, expand it.
30107 # FIXME: This hack should be removed a few years after 2.60.
30108 ac_datarootdir_hack=; ac_datarootdir_seen=
30109
30110 case `sed -n '/datarootdir/ {
30111   p
30112   q
30113 }
30114 /@datadir@/p
30115 /@docdir@/p
30116 /@infodir@/p
30117 /@localedir@/p
30118 /@mandir@/p
30119 ' $ac_file_inputs` in
30120 *datarootdir*) ac_datarootdir_seen=yes;;
30121 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30122   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30123 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30124 _ACEOF
30125 cat >>$CONFIG_STATUS <<_ACEOF
30126   ac_datarootdir_hack='
30127   s&@datadir@&$datadir&g
30128   s&@docdir@&$docdir&g
30129   s&@infodir@&$infodir&g
30130   s&@localedir@&$localedir&g
30131   s&@mandir@&$mandir&g
30132     s&\\\${datarootdir}&$datarootdir&g' ;;
30133 esac
30134 _ACEOF
30135
30136 # Neutralize VPATH when `$srcdir' = `.'.
30137 # Shell code in configure.ac might set extrasub.
30138 # FIXME: do we really want to maintain this feature?
30139 cat >>$CONFIG_STATUS <<_ACEOF
30140   sed "$ac_vpsub
30141 $extrasub
30142 _ACEOF
30143 cat >>$CONFIG_STATUS <<\_ACEOF
30144 :t
30145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30146 s&@configure_input@&$configure_input&;t t
30147 s&@top_builddir@&$ac_top_builddir_sub&;t t
30148 s&@srcdir@&$ac_srcdir&;t t
30149 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30150 s&@top_srcdir@&$ac_top_srcdir&;t t
30151 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30152 s&@builddir@&$ac_builddir&;t t
30153 s&@abs_builddir@&$ac_abs_builddir&;t t
30154 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30155 s&@INSTALL@&$ac_INSTALL&;t t
30156 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30157 $ac_datarootdir_hack
30158 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30159
30160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30161   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30162   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30163   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30164 which seems to be undefined.  Please make sure it is defined." >&5
30165 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30166 which seems to be undefined.  Please make sure it is defined." >&2;}
30167
30168   rm -f "$tmp/stdin"
30169   case $ac_file in
30170   -) cat "$tmp/out"; rm -f "$tmp/out";;
30171   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30172   esac
30173  ;;
30174   :H)
30175   #
30176   # CONFIG_HEADER
30177   #
30178 _ACEOF
30179
30180 # Transform confdefs.h into a sed script `conftest.defines', that
30181 # substitutes the proper values into config.h.in to produce config.h.
30182 rm -f conftest.defines conftest.tail
30183 # First, append a space to every undef/define line, to ease matching.
30184 echo 's/$/ /' >conftest.defines
30185 # Then, protect against being on the right side of a sed subst, or in
30186 # an unquoted here document, in config.status.  If some macros were
30187 # called several times there might be several #defines for the same
30188 # symbol, which is useless.  But do not sort them, since the last
30189 # AC_DEFINE must be honored.
30190 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30191 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30192 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30193 # PARAMS is the parameter list in the macro definition--in most cases, it's
30194 # just an empty string.
30195 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30196 ac_dB='\\)[      (].*,\\1define\\2'
30197 ac_dC=' '
30198 ac_dD=' ,'
30199
30200 uniq confdefs.h |
30201   sed -n '
30202         t rset
30203         :rset
30204         s/^[     ]*#[    ]*define[       ][      ]*//
30205         t ok
30206         d
30207         :ok
30208         s/[\\&,]/\\&/g
30209         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30210         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30211   ' >>conftest.defines
30212
30213 # Remove the space that was appended to ease matching.
30214 # Then replace #undef with comments.  This is necessary, for
30215 # example, in the case of _POSIX_SOURCE, which is predefined and required
30216 # on some systems where configure will not decide to define it.
30217 # (The regexp can be short, since the line contains either #define or #undef.)
30218 echo 's/ $//
30219 s,^[     #]*u.*,/* & */,' >>conftest.defines
30220
30221 # Break up conftest.defines:
30222 ac_max_sed_lines=50
30223
30224 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30225 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30226 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30227 # et cetera.
30228 ac_in='$ac_file_inputs'
30229 ac_out='"$tmp/out1"'
30230 ac_nxt='"$tmp/out2"'
30231
30232 while :
30233 do
30234   # Write a here document:
30235     cat >>$CONFIG_STATUS <<_ACEOF
30236     # First, check the format of the line:
30237     cat >"\$tmp/defines.sed" <<\\CEOF
30238 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30239 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30240 b
30241 :def
30242 _ACEOF
30243   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30244   echo 'CEOF
30245     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30246   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30247   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30248   grep . conftest.tail >/dev/null || break
30249   rm -f conftest.defines
30250   mv conftest.tail conftest.defines
30251 done
30252 rm -f conftest.defines conftest.tail
30253
30254 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30255 cat >>$CONFIG_STATUS <<\_ACEOF
30256   if test x"$ac_file" != x-; then
30257     echo "/* $configure_input  */" >"$tmp/config.h"
30258     cat "$ac_result" >>"$tmp/config.h"
30259     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30260       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30261 echo "$as_me: $ac_file is unchanged" >&6;}
30262     else
30263       rm -f $ac_file
30264       mv "$tmp/config.h" $ac_file
30265     fi
30266   else
30267     echo "/* $configure_input  */"
30268     cat "$ac_result"
30269   fi
30270   rm -f "$tmp/out12"
30271 # Compute $ac_file's index in $config_headers.
30272 _am_stamp_count=1
30273 for _am_header in $config_headers :; do
30274   case $_am_header in
30275     $ac_file | $ac_file:* )
30276       break ;;
30277     * )
30278       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30279   esac
30280 done
30281 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30282 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30283          X$ac_file : 'X\(//\)[^/]' \| \
30284          X$ac_file : 'X\(//\)$' \| \
30285          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30286 echo X$ac_file |
30287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30288             s//\1/
30289             q
30290           }
30291           /^X\(\/\/\)[^/].*/{
30292             s//\1/
30293             q
30294           }
30295           /^X\(\/\/\)$/{
30296             s//\1/
30297             q
30298           }
30299           /^X\(\/\).*/{
30300             s//\1/
30301             q
30302           }
30303           s/.*/./; q'`/stamp-h$_am_stamp_count
30304  ;;
30305
30306   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30307 echo "$as_me: executing $ac_file commands" >&6;}
30308  ;;
30309   esac
30310
30311
30312   case $ac_file$ac_mode in
30313     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30314   # Strip MF so we end up with the name of the file.
30315   mf=`echo "$mf" | sed -e 's/:.*$//'`
30316   # Check whether this is an Automake generated Makefile or not.
30317   # We used to match only the files named `Makefile.in', but
30318   # some people rename them; so instead we look at the file content.
30319   # Grep'ing the first line is not enough: some people post-process
30320   # each Makefile.in and add a new line on top of each file to say so.
30321   # Grep'ing the whole file is not good either: AIX grep has a line
30322   # limit of 2048, but all sed's we know have understand at least 4000.
30323   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30324     dirpart=`$as_dirname -- "$mf" ||
30325 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30326          X"$mf" : 'X\(//\)[^/]' \| \
30327          X"$mf" : 'X\(//\)$' \| \
30328          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30329 echo X"$mf" |
30330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30331             s//\1/
30332             q
30333           }
30334           /^X\(\/\/\)[^/].*/{
30335             s//\1/
30336             q
30337           }
30338           /^X\(\/\/\)$/{
30339             s//\1/
30340             q
30341           }
30342           /^X\(\/\).*/{
30343             s//\1/
30344             q
30345           }
30346           s/.*/./; q'`
30347   else
30348     continue
30349   fi
30350   # Extract the definition of DEPDIR, am__include, and am__quote
30351   # from the Makefile without running `make'.
30352   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30353   test -z "$DEPDIR" && continue
30354   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30355   test -z "am__include" && continue
30356   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30357   # When using ansi2knr, U may be empty or an underscore; expand it
30358   U=`sed -n 's/^U = //p' < "$mf"`
30359   # Find all dependency output files, they are included files with
30360   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30361   # simplest approach to changing $(DEPDIR) to its actual value in the
30362   # expansion.
30363   for file in `sed -n "
30364     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30365        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30366     # Make sure the directory exists.
30367     test -f "$dirpart/$file" && continue
30368     fdir=`$as_dirname -- "$file" ||
30369 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30370          X"$file" : 'X\(//\)[^/]' \| \
30371          X"$file" : 'X\(//\)$' \| \
30372          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30373 echo X"$file" |
30374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30375             s//\1/
30376             q
30377           }
30378           /^X\(\/\/\)[^/].*/{
30379             s//\1/
30380             q
30381           }
30382           /^X\(\/\/\)$/{
30383             s//\1/
30384             q
30385           }
30386           /^X\(\/\).*/{
30387             s//\1/
30388             q
30389           }
30390           s/.*/./; q'`
30391     { as_dir=$dirpart/$fdir
30392   case $as_dir in #(
30393   -*) as_dir=./$as_dir;;
30394   esac
30395   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30396     as_dirs=
30397     while :; do
30398       case $as_dir in #(
30399       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30400       *) as_qdir=$as_dir;;
30401       esac
30402       as_dirs="'$as_qdir' $as_dirs"
30403       as_dir=`$as_dirname -- "$as_dir" ||
30404 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30405          X"$as_dir" : 'X\(//\)[^/]' \| \
30406          X"$as_dir" : 'X\(//\)$' \| \
30407          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30408 echo X"$as_dir" |
30409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30410             s//\1/
30411             q
30412           }
30413           /^X\(\/\/\)[^/].*/{
30414             s//\1/
30415             q
30416           }
30417           /^X\(\/\/\)$/{
30418             s//\1/
30419             q
30420           }
30421           /^X\(\/\).*/{
30422             s//\1/
30423             q
30424           }
30425           s/.*/./; q'`
30426       test -d "$as_dir" && break
30427     done
30428     test -z "$as_dirs" || eval "mkdir $as_dirs"
30429   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30430 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30431    { (exit 1); exit 1; }; }; }
30432     # echo "creating $dirpart/$file"
30433     echo '# dummy' > "$dirpart/$file"
30434   done
30435 done
30436  ;;
30437
30438   esac
30439 done # for ac_tag
30440
30441
30442 { (exit 0); exit 0; }
30443 _ACEOF
30444 chmod +x $CONFIG_STATUS
30445 ac_clean_files=$ac_clean_files_save
30446
30447
30448 # configure is writing to config.log, and then calls config.status.
30449 # config.status does its own redirection, appending to config.log.
30450 # Unfortunately, on DOS this fails, as config.log is still kept open
30451 # by configure, so config.status won't be able to write to it; its
30452 # output is simply discarded.  So we exec the FD to /dev/null,
30453 # effectively closing config.log, so it can be properly (re)opened and
30454 # appended to by config.status.  When coming back to configure, we
30455 # need to make the FD available again.
30456 if test "$no_create" != yes; then
30457   ac_cs_success=:
30458   ac_config_status_args=
30459   test "$silent" = yes &&
30460     ac_config_status_args="$ac_config_status_args --quiet"
30461   exec 5>/dev/null
30462   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30463   exec 5>>config.log
30464   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30465   # would make configure fail if this is the last instruction.
30466   $ac_cs_success || { (exit 1); exit 1; }
30467 fi
30468
30469
30470 { echo "$as_me:$LINENO:
30471
30472 $PACKAGE_STRING
30473
30474 $FEATURES_TXT" >&5
30475 echo "$as_me:
30476
30477 $PACKAGE_STRING
30478
30479 $FEATURES_TXT" >&6;}