util-vserver 0.30.214
[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.214.
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.214'
732 PACKAGE_STRING='util-vserver 0.30.214'
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 ENSC_HAVE_CXX_COMPILER_TRUE
867 ENSC_HAVE_CXX_COMPILER_FALSE
868 ENSC_HAVE_C99_COMPILER_TRUE
869 ENSC_HAVE_C99_COMPILER_FALSE
870 ENSC_PATHPROG_SED
871 CAT
872 CHOWN
873 CMP
874 CP
875 DIRNAME
876 EGREP
877 ENV
878 GREP
879 LN
880 MKDIR
881 MKFIFO
882 MKTEMP
883 MOUNT
884 MV
885 NICE
886 PS
887 RM
888 RMDIR
889 SED
890 SH
891 TAC
892 TAR
893 TOUCH
894 TTY
895 UMOUNT
896 WC
897 IP
898 IPTABLES
899 MODPROBE
900 NAMEIF
901 NOHUP
902 RMMOD
903 VCONFIG
904 WGET
905 FILE
906 GZIP
907 BZIP2
908 CPIO
909 RESTORE
910 RSYNC
911 STRACE
912 DOXYGEN
913 XSLTP
914 XSLTPROC
915 HAVE_XSLTP_TRUE
916 HAVE_XSLTP_FALSE
917 HAVE_XSLTPROC_TRUE
918 HAVE_XSLTPROC_FALSE
919 LIB_DEBUG_CPPFLAGS
920 ENSC_USE_EXPENSIVE_TESTS
921 initrddir
922 RELEASE_CPPFLAGS
923 CPP
924 DIET
925 DIETFLAGS
926 USE_DIETLIBC_TRUE
927 USE_DIETLIBC_FALSE
928 USE_DIETLIBC_COMPAT_TRUE
929 USE_DIETLIBC_COMPAT_FALSE
930 ENSC_USE_DIETLIBC_TRUE
931 ENSC_USE_DIETLIBC_FALSE
932 ENSC_USE_GLIBC_TRUE
933 ENSC_USE_GLIBC_FALSE
934 ECHO
935 AR
936 RANLIB
937 CXXCPP
938 F77
939 FFLAGS
940 ac_ct_F77
941 LIBTOOL
942 vserverdir
943 SVN2CL
944 HAVE_SVN2CL_TRUE
945 HAVE_SVN2CL_FALSE
946 ENSC_ENABLE_INTERNAL_HEADERS_TRUE
947 ENSC_ENABLE_INTERNAL_HEADERS_FALSE
948 ENSC_HAVE_BEECRYPT_TRUE
949 ENSC_HAVE_BEECRYPT_FALSE
950 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE
951 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE
952 HAVE_GENTOO_INIT_TRUE
953 HAVE_GENTOO_INIT_FALSE
954 HAVE_SYSV_INIT_TRUE
955 HAVE_SYSV_INIT_FALSE
956 LIBOBJS
957 LTLIBOBJS'
958 ac_subst_files=''
959       ac_precious_vars='build_alias
960 host_alias
961 target_alias
962 CXX
963 CXXFLAGS
964 LDFLAGS
965 LIBS
966 CPPFLAGS
967 CCC
968 CC
969 CFLAGS
970 CPP
971 DIET
972 DIETFLAGS
973 CXXCPP
974 F77
975 FFLAGS'
976
977
978 # Initialize some variables set by options.
979 ac_init_help=
980 ac_init_version=false
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
997
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1023
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1027 do
1028   # If the previous option needs an argument, assign it.
1029   if test -n "$ac_prev"; then
1030     eval $ac_prev=\$ac_option
1031     ac_prev=
1032     continue
1033   fi
1034
1035   case $ac_option in
1036   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037   *)    ac_optarg=yes ;;
1038   esac
1039
1040   # Accept the important Cygnus configure options, so we can diagnose typos.
1041
1042   case $ac_dashdash$ac_option in
1043   --)
1044     ac_dashdash=yes ;;
1045
1046   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047     ac_prev=bindir ;;
1048   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049     bindir=$ac_optarg ;;
1050
1051   -build | --build | --buil | --bui | --bu)
1052     ac_prev=build_alias ;;
1053   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054     build_alias=$ac_optarg ;;
1055
1056   -cache-file | --cache-file | --cache-fil | --cache-fi \
1057   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058     ac_prev=cache_file ;;
1059   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061     cache_file=$ac_optarg ;;
1062
1063   --config-cache | -C)
1064     cache_file=config.cache ;;
1065
1066   -datadir | --datadir | --datadi | --datad)
1067     ac_prev=datadir ;;
1068   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069     datadir=$ac_optarg ;;
1070
1071   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072   | --dataroo | --dataro | --datar)
1073     ac_prev=datarootdir ;;
1074   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076     datarootdir=$ac_optarg ;;
1077
1078   -disable-* | --disable-*)
1079     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083    { (exit 1); exit 1; }; }
1084     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1085     eval enable_$ac_feature=no ;;
1086
1087   -docdir | --docdir | --docdi | --doc | --do)
1088     ac_prev=docdir ;;
1089   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1090     docdir=$ac_optarg ;;
1091
1092   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093     ac_prev=dvidir ;;
1094   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1095     dvidir=$ac_optarg ;;
1096
1097   -enable-* | --enable-*)
1098     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1104     eval enable_$ac_feature=\$ac_optarg ;;
1105
1106   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108   | --exec | --exe | --ex)
1109     ac_prev=exec_prefix ;;
1110   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112   | --exec=* | --exe=* | --ex=*)
1113     exec_prefix=$ac_optarg ;;
1114
1115   -gas | --gas | --ga | --g)
1116     # Obsolete; use --with-gas.
1117     with_gas=yes ;;
1118
1119   -help | --help | --hel | --he | -h)
1120     ac_init_help=long ;;
1121   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122     ac_init_help=recursive ;;
1123   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124     ac_init_help=short ;;
1125
1126   -host | --host | --hos | --ho)
1127     ac_prev=host_alias ;;
1128   -host=* | --host=* | --hos=* | --ho=*)
1129     host_alias=$ac_optarg ;;
1130
1131   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132     ac_prev=htmldir ;;
1133   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134   | --ht=*)
1135     htmldir=$ac_optarg ;;
1136
1137   -includedir | --includedir | --includedi | --included | --include \
1138   | --includ | --inclu | --incl | --inc)
1139     ac_prev=includedir ;;
1140   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141   | --includ=* | --inclu=* | --incl=* | --inc=*)
1142     includedir=$ac_optarg ;;
1143
1144   -infodir | --infodir | --infodi | --infod | --info | --inf)
1145     ac_prev=infodir ;;
1146   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147     infodir=$ac_optarg ;;
1148
1149   -libdir | --libdir | --libdi | --libd)
1150     ac_prev=libdir ;;
1151   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152     libdir=$ac_optarg ;;
1153
1154   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155   | --libexe | --libex | --libe)
1156     ac_prev=libexecdir ;;
1157   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158   | --libexe=* | --libex=* | --libe=*)
1159     libexecdir=$ac_optarg ;;
1160
1161   -localedir | --localedir | --localedi | --localed | --locale)
1162     ac_prev=localedir ;;
1163   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164     localedir=$ac_optarg ;;
1165
1166   -localstatedir | --localstatedir | --localstatedi | --localstated \
1167   | --localstate | --localstat | --localsta | --localst | --locals)
1168     ac_prev=localstatedir ;;
1169   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171     localstatedir=$ac_optarg ;;
1172
1173   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174     ac_prev=mandir ;;
1175   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176     mandir=$ac_optarg ;;
1177
1178   -nfp | --nfp | --nf)
1179     # Obsolete; use --without-fp.
1180     with_fp=no ;;
1181
1182   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183   | --no-cr | --no-c | -n)
1184     no_create=yes ;;
1185
1186   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188     no_recursion=yes ;;
1189
1190   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192   | --oldin | --oldi | --old | --ol | --o)
1193     ac_prev=oldincludedir ;;
1194   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197     oldincludedir=$ac_optarg ;;
1198
1199   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200     ac_prev=prefix ;;
1201   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202     prefix=$ac_optarg ;;
1203
1204   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205   | --program-pre | --program-pr | --program-p)
1206     ac_prev=program_prefix ;;
1207   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209     program_prefix=$ac_optarg ;;
1210
1211   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212   | --program-suf | --program-su | --program-s)
1213     ac_prev=program_suffix ;;
1214   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216     program_suffix=$ac_optarg ;;
1217
1218   -program-transform-name | --program-transform-name \
1219   | --program-transform-nam | --program-transform-na \
1220   | --program-transform-n | --program-transform- \
1221   | --program-transform | --program-transfor \
1222   | --program-transfo | --program-transf \
1223   | --program-trans | --program-tran \
1224   | --progr-tra | --program-tr | --program-t)
1225     ac_prev=program_transform_name ;;
1226   -program-transform-name=* | --program-transform-name=* \
1227   | --program-transform-nam=* | --program-transform-na=* \
1228   | --program-transform-n=* | --program-transform-=* \
1229   | --program-transform=* | --program-transfor=* \
1230   | --program-transfo=* | --program-transf=* \
1231   | --program-trans=* | --program-tran=* \
1232   | --progr-tra=* | --program-tr=* | --program-t=*)
1233     program_transform_name=$ac_optarg ;;
1234
1235   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236     ac_prev=pdfdir ;;
1237   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238     pdfdir=$ac_optarg ;;
1239
1240   -psdir | --psdir | --psdi | --psd | --ps)
1241     ac_prev=psdir ;;
1242   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243     psdir=$ac_optarg ;;
1244
1245   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246   | -silent | --silent | --silen | --sile | --sil)
1247     silent=yes ;;
1248
1249   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250     ac_prev=sbindir ;;
1251   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252   | --sbi=* | --sb=*)
1253     sbindir=$ac_optarg ;;
1254
1255   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257   | --sharedst | --shareds | --shared | --share | --shar \
1258   | --sha | --sh)
1259     ac_prev=sharedstatedir ;;
1260   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263   | --sha=* | --sh=*)
1264     sharedstatedir=$ac_optarg ;;
1265
1266   -site | --site | --sit)
1267     ac_prev=site ;;
1268   -site=* | --site=* | --sit=*)
1269     site=$ac_optarg ;;
1270
1271   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272     ac_prev=srcdir ;;
1273   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274     srcdir=$ac_optarg ;;
1275
1276   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277   | --syscon | --sysco | --sysc | --sys | --sy)
1278     ac_prev=sysconfdir ;;
1279   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281     sysconfdir=$ac_optarg ;;
1282
1283   -target | --target | --targe | --targ | --tar | --ta | --t)
1284     ac_prev=target_alias ;;
1285   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286     target_alias=$ac_optarg ;;
1287
1288   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289     verbose=yes ;;
1290
1291   -version | --version | --versio | --versi | --vers | -V)
1292     ac_init_version=: ;;
1293
1294   -with-* | --with-*)
1295     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296     # Reject names that are not valid shell variable names.
1297     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       { echo "$as_me: error: invalid package name: $ac_package" >&2
1299    { (exit 1); exit 1; }; }
1300     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1301     eval with_$ac_package=\$ac_optarg ;;
1302
1303   -without-* | --without-*)
1304     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307       { echo "$as_me: error: invalid package name: $ac_package" >&2
1308    { (exit 1); exit 1; }; }
1309     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1310     eval with_$ac_package=no ;;
1311
1312   --x)
1313     # Obsolete; use --with-x.
1314     with_x=yes ;;
1315
1316   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317   | --x-incl | --x-inc | --x-in | --x-i)
1318     ac_prev=x_includes ;;
1319   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321     x_includes=$ac_optarg ;;
1322
1323   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325     ac_prev=x_libraries ;;
1326   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328     x_libraries=$ac_optarg ;;
1329
1330   -*) { echo "$as_me: error: unrecognized option: $ac_option
1331 Try \`$0 --help' for more information." >&2
1332    { (exit 1); exit 1; }; }
1333     ;;
1334
1335   *=*)
1336     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337     # Reject names that are not valid shell variable names.
1338     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1339       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1340    { (exit 1); exit 1; }; }
1341     eval $ac_envvar=\$ac_optarg
1342     export $ac_envvar ;;
1343
1344   *)
1345     # FIXME: should be removed in autoconf 3.0.
1346     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350     ;;
1351
1352   esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357   { echo "$as_me: error: missing argument to $ac_option" >&2
1358    { (exit 1); exit 1; }; }
1359 fi
1360
1361 # Be sure to have absolute directory names.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   case $ac_val in
1369     [\\/$]* | ?:[\\/]* )  continue;;
1370     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371   esac
1372   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1373    { (exit 1); exit 1; }; }
1374 done
1375
1376 # There might be people who depend on the old broken behavior: `$host'
1377 # used to hold the argument of --host etc.
1378 # FIXME: To remove some day.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1382
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385   if test "x$build_alias" = x; then
1386     cross_compiling=maybe
1387     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1388     If a cross compiler is detected then cross compile mode will be used." >&2
1389   elif test "x$build_alias" != "x$host_alias"; then
1390     cross_compiling=yes
1391   fi
1392 fi
1393
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397 test "$silent" = yes && exec 6>/dev/null
1398
1399
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403   { echo "$as_me: error: Working directory cannot be determined" >&2
1404    { (exit 1); exit 1; }; }
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406   { echo "$as_me: error: pwd does not report name of working directory" >&2
1407    { (exit 1); exit 1; }; }
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$0" ||
1415 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$0" : 'X\(//\)[^/]' \| \
1417          X"$0" : 'X\(//\)$' \| \
1418          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1419 echo X"$0" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1447    { (exit 1); exit 1; }; }
1448 fi
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1452    { (exit 1); exit 1; }; }
1453         pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456   srcdir=.
1457 fi
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_env_${ac_var}_value=\$${ac_var}
1467   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1470
1471 #
1472 # Report the --help message.
1473 #
1474 if test "$ac_init_help" = "long"; then
1475   # Omit some internal or obsolete options to make the list less imposing.
1476   # This message is too long to be a string in the A/UX 3.1 sh.
1477   cat <<_ACEOF
1478 \`configure' configures util-vserver 0.30.214 to adapt to many kinds of systems.
1479
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE.  See below for descriptions of some of the useful variables.
1484
1485 Defaults for the options are specified in brackets.
1486
1487 Configuration:
1488   -h, --help              display this help and exit
1489       --help=short        display options specific to this package
1490       --help=recursive    display the short help of all the included packages
1491   -V, --version           display version information and exit
1492   -q, --quiet, --silent   do not print \`checking...' messages
1493       --cache-file=FILE   cache test results in FILE [disabled]
1494   -C, --config-cache      alias for \`--cache-file=config.cache'
1495   -n, --no-create         do not create output files
1496       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1497
1498 Installation directories:
1499   --prefix=PREFIX         install architecture-independent files in PREFIX
1500                           [$ac_default_prefix]
1501   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1502                           [PREFIX]
1503
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1508
1509 For better control, use the options below.
1510
1511 Fine tuning of the installation directories:
1512   --bindir=DIR           user executables [EPREFIX/bin]
1513   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1514   --libexecdir=DIR       program executables [EPREFIX/libexec]
1515   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1516   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1517   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1518   --libdir=DIR           object code libraries [EPREFIX/lib]
1519   --includedir=DIR       C header files [PREFIX/include]
1520   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1521   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1522   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1523   --infodir=DIR          info documentation [DATAROOTDIR/info]
1524   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1525   --mandir=DIR           man documentation [DATAROOTDIR/man]
1526   --docdir=DIR           documentation root [DATAROOTDIR/doc/util-vserver]
1527   --htmldir=DIR          html documentation [DOCDIR]
1528   --dvidir=DIR           dvi documentation [DOCDIR]
1529   --pdfdir=DIR           pdf documentation [DOCDIR]
1530   --psdir=DIR            ps documentation [DOCDIR]
1531 _ACEOF
1532
1533   cat <<\_ACEOF
1534
1535 Program names:
1536   --program-prefix=PREFIX            prepend PREFIX to installed program names
1537   --program-suffix=SUFFIX            append SUFFIX to installed program names
1538   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1539
1540 System types:
1541   --build=BUILD     configure for building on BUILD [guessed]
1542   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1543 _ACEOF
1544 fi
1545
1546 if test -n "$ac_init_help"; then
1547   case $ac_init_help in
1548      short | recursive ) echo "Configuration of util-vserver 0.30.214:";;
1549    esac
1550   cat <<\_ACEOF
1551
1552 Optional Features:
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --enable-maintainer-mode  enable make rules and dependencies not useful
1556                           (and sometimes confusing) to the casual installer
1557   --disable-dependency-tracking  speeds up one-time build
1558   --enable-dependency-tracking   do not reject slow dependency extractors
1559   --disable-extra-optimizations
1560                           disable certain extra optimizations (default: no)
1561   --enable-lib-debug      enable additional debug code in library (default:
1562                           no)
1563   --enable-expensive-tests
1564                           disable tests which might be expensive on some
1565                           systems (default: no)
1566   --enable-release        enable release mode (default: no)
1567   --disable-alternative-syscalls
1568                           do not use the alternative _syscallX macros provided
1569                           by Herbert Poetzl (default: use them)
1570   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1571                           --enable-dietlibc) (default: autodetect dietlibc)
1572   --enable-shared[=PKGS]  build shared libraries [default=yes]
1573   --enable-static[=PKGS]  build static libraries [default=yes]
1574   --enable-fast-install[=PKGS]
1575                           optimize for fast installation [default=yes]
1576   --disable-libtool-lock  avoid locking (might break parallel builds)
1577   --disable-internal-headers
1578                           use vserver specific headers from the kernel instead
1579                           of the shipped versions (default: no)
1580   --enable-apis=APIS      enable support for the given apis; possible values
1581                           are:
1582                           legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2
1583                           ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)
1584
1585 Optional Packages:
1586   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1587   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1588   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1589                           $sysconfdir/init.d)
1590   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1591                           values are 'fast', 'traditional' and 'auto'
1592                           (default: auto)
1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594   --with-pic              try to use only PIC/non-PIC objects [default=use
1595                           both]
1596   --with-tags[=TAGS]      include additional configurations [automatic]
1597   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1598   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1599                           and 'sysv' (default: guess)
1600
1601 Some influential environment variables:
1602   CXX         C++ compiler command
1603   CXXFLAGS    C++ compiler flags
1604   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1605               nonstandard directory <lib dir>
1606   LIBS        libraries to pass to the linker, e.g. -l<library>
1607   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1608               you have headers in a nonstandard directory <include dir>
1609   CC          C compiler command
1610   CFLAGS      C compiler flags
1611   CPP         C preprocessor
1612   DIET        The 'diet' wrapper (default: diet)
1613   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1614   CXXCPP      C++ preprocessor
1615   F77         Fortran 77 compiler command
1616   FFLAGS      Fortran 77 compiler flags
1617
1618 Use these variables to override the choices made by `configure' or to help
1619 it to find libraries and programs with nonstandard names/locations.
1620
1621 Report bugs to <vserver@list.linux-vserver.org>.
1622 _ACEOF
1623 ac_status=$?
1624 fi
1625
1626 if test "$ac_init_help" = "recursive"; then
1627   # If there are subdirs, report their specific --help.
1628   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1629     test -d "$ac_dir" || continue
1630     ac_builddir=.
1631
1632 case "$ac_dir" in
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *)
1635   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1636   # A ".." for each directory in $ac_dir_suffix.
1637   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1638   case $ac_top_builddir_sub in
1639   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641   esac ;;
1642 esac
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1647
1648 case $srcdir in
1649   .)  # We are building in place.
1650     ac_srcdir=.
1651     ac_top_srcdir=$ac_top_builddir_sub
1652     ac_abs_top_srcdir=$ac_pwd ;;
1653   [\\/]* | ?:[\\/]* )  # Absolute name.
1654     ac_srcdir=$srcdir$ac_dir_suffix;
1655     ac_top_srcdir=$srcdir
1656     ac_abs_top_srcdir=$srcdir ;;
1657   *) # Relative name.
1658     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659     ac_top_srcdir=$ac_top_build_prefix$srcdir
1660     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 esac
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664     cd "$ac_dir" || { ac_status=$?; continue; }
1665     # Check for guested configure.
1666     if test -f "$ac_srcdir/configure.gnu"; then
1667       echo &&
1668       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669     elif test -f "$ac_srcdir/configure"; then
1670       echo &&
1671       $SHELL "$ac_srcdir/configure" --help=recursive
1672     else
1673       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674     fi || ac_status=$?
1675     cd "$ac_pwd" || { ac_status=$?; break; }
1676   done
1677 fi
1678
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1681   cat <<\_ACEOF
1682 util-vserver configure 0.30.214
1683 generated by GNU Autoconf 2.61
1684
1685 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1686 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690   exit
1691 fi
1692 cat >config.log <<_ACEOF
1693 This file contains any messages produced by compilers while
1694 running configure, to aid debugging if configure makes a mistake.
1695
1696 It was created by util-vserver $as_me 0.30.214, which was
1697 generated by GNU Autoconf 2.61.  Invocation command line was
1698
1699   $ $0 $@
1700
1701 _ACEOF
1702 exec 5>>config.log
1703 {
1704 cat <<_ASUNAME
1705 ## --------- ##
1706 ## Platform. ##
1707 ## --------- ##
1708
1709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714
1715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1716 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1717
1718 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1719 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1721 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1722 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1723 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1724 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1725
1726 _ASUNAME
1727
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731   IFS=$as_save_IFS
1732   test -z "$as_dir" && as_dir=.
1733   echo "PATH: $as_dir"
1734 done
1735 IFS=$as_save_IFS
1736
1737 } >&5
1738
1739 cat >&5 <<_ACEOF
1740
1741
1742 ## ----------- ##
1743 ## Core tests. ##
1744 ## ----------- ##
1745
1746 _ACEOF
1747
1748
1749 # Keep a trace of the command line.
1750 # Strip out --no-create and --no-recursion so they do not pile up.
1751 # Strip out --silent because we don't want to record it for future runs.
1752 # Also quote any args containing shell meta-characters.
1753 # Make two passes to allow for proper duplicate-argument suppression.
1754 ac_configure_args=
1755 ac_configure_args0=
1756 ac_configure_args1=
1757 ac_must_keep_next=false
1758 for ac_pass in 1 2
1759 do
1760   for ac_arg
1761   do
1762     case $ac_arg in
1763     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1764     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1765     | -silent | --silent | --silen | --sile | --sil)
1766       continue ;;
1767     *\'*)
1768       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1769     esac
1770     case $ac_pass in
1771     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772     2)
1773       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1774       if test $ac_must_keep_next = true; then
1775         ac_must_keep_next=false # Got value, back to normal.
1776       else
1777         case $ac_arg in
1778           *=* | --config-cache | -C | -disable-* | --disable-* \
1779           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1780           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1781           | -with-* | --with-* | -without-* | --without-* | --x)
1782             case "$ac_configure_args0 " in
1783               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1784             esac
1785             ;;
1786           -* ) ac_must_keep_next=true ;;
1787         esac
1788       fi
1789       ac_configure_args="$ac_configure_args '$ac_arg'"
1790       ;;
1791     esac
1792   done
1793 done
1794 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1795 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796
1797 # When interrupted or exit'd, cleanup temporary files, and complete
1798 # config.log.  We remove comments because anyway the quotes in there
1799 # would cause problems or look ugly.
1800 # WARNING: Use '\'' to represent an apostrophe within the trap.
1801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1802 trap 'exit_status=$?
1803   # Save into config.log some information that might help in debugging.
1804   {
1805     echo
1806
1807     cat <<\_ASBOX
1808 ## ---------------- ##
1809 ## Cache variables. ##
1810 ## ---------------- ##
1811 _ASBOX
1812     echo
1813     # The following way of writing the cache mishandles newlines in values,
1814 (
1815   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1816     eval ac_val=\$$ac_var
1817     case $ac_val in #(
1818     *${as_nl}*)
1819       case $ac_var in #(
1820       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1821 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1822       esac
1823       case $ac_var in #(
1824       _ | IFS | as_nl) ;; #(
1825       *) $as_unset $ac_var ;;
1826       esac ;;
1827     esac
1828   done
1829   (set) 2>&1 |
1830     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831     *${as_nl}ac_space=\ *)
1832       sed -n \
1833         "s/'\''/'\''\\\\'\'''\''/g;
1834           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1835       ;; #(
1836     *)
1837       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838       ;;
1839     esac |
1840     sort
1841 )
1842     echo
1843
1844     cat <<\_ASBOX
1845 ## ----------------- ##
1846 ## Output variables. ##
1847 ## ----------------- ##
1848 _ASBOX
1849     echo
1850     for ac_var in $ac_subst_vars
1851     do
1852       eval ac_val=\$$ac_var
1853       case $ac_val in
1854       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855       esac
1856       echo "$ac_var='\''$ac_val'\''"
1857     done | sort
1858     echo
1859
1860     if test -n "$ac_subst_files"; then
1861       cat <<\_ASBOX
1862 ## ------------------- ##
1863 ## File substitutions. ##
1864 ## ------------------- ##
1865 _ASBOX
1866       echo
1867       for ac_var in $ac_subst_files
1868       do
1869         eval ac_val=\$$ac_var
1870         case $ac_val in
1871         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872         esac
1873         echo "$ac_var='\''$ac_val'\''"
1874       done | sort
1875       echo
1876     fi
1877
1878     if test -s confdefs.h; then
1879       cat <<\_ASBOX
1880 ## ----------- ##
1881 ## confdefs.h. ##
1882 ## ----------- ##
1883 _ASBOX
1884       echo
1885       cat confdefs.h
1886       echo
1887     fi
1888     test "$ac_signal" != 0 &&
1889       echo "$as_me: caught signal $ac_signal"
1890     echo "$as_me: exit $exit_status"
1891   } >&5
1892   rm -f core *.core core.conftest.* &&
1893     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1894     exit $exit_status
1895 ' 0
1896 for ac_signal in 1 2 13 15; do
1897   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1898 done
1899 ac_signal=0
1900
1901 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1902 rm -f -r conftest* confdefs.h
1903
1904 # Predefined preprocessor variables.
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_NAME "$PACKAGE_NAME"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_STRING "$PACKAGE_STRING"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1928 _ACEOF
1929
1930
1931 # Let the site file select an alternate cache file if it wants to.
1932 # Prefer explicitly selected file to automatically selected ones.
1933 if test -n "$CONFIG_SITE"; then
1934   set x "$CONFIG_SITE"
1935 elif test "x$prefix" != xNONE; then
1936   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 else
1938   set x "$ac_default_prefix/share/config.site" \
1939         "$ac_default_prefix/etc/config.site"
1940 fi
1941 shift
1942 for ac_site_file
1943 do
1944   if test -r "$ac_site_file"; then
1945     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1946 echo "$as_me: loading site script $ac_site_file" >&6;}
1947     sed 's/^/| /' "$ac_site_file" >&5
1948     . "$ac_site_file"
1949   fi
1950 done
1951
1952 if test -r "$cache_file"; then
1953   # Some versions of bash will fail to source /dev/null (special
1954   # files actually), so we avoid doing that.
1955   if test -f "$cache_file"; then
1956     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1957 echo "$as_me: loading cache $cache_file" >&6;}
1958     case $cache_file in
1959       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1960       *)                      . "./$cache_file";;
1961     esac
1962   fi
1963 else
1964   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1965 echo "$as_me: creating cache $cache_file" >&6;}
1966   >$cache_file
1967 fi
1968
1969 # Check that the precious variables saved in the cache have kept the same
1970 # value.
1971 ac_cache_corrupted=false
1972 for ac_var in $ac_precious_vars; do
1973   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1974   eval ac_new_set=\$ac_env_${ac_var}_set
1975   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1976   eval ac_new_val=\$ac_env_${ac_var}_value
1977   case $ac_old_set,$ac_new_set in
1978     set,)
1979       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1980 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1981       ac_cache_corrupted=: ;;
1982     ,set)
1983       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1985       ac_cache_corrupted=: ;;
1986     ,);;
1987     *)
1988       if test "x$ac_old_val" != "x$ac_new_val"; then
1989         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1990 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1991         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1992 echo "$as_me:   former value:  $ac_old_val" >&2;}
1993         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1994 echo "$as_me:   current value: $ac_new_val" >&2;}
1995         ac_cache_corrupted=:
1996       fi;;
1997   esac
1998   # Pass precious variables to config.status.
1999   if test "$ac_new_set" = set; then
2000     case $ac_new_val in
2001     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2002     *) ac_arg=$ac_var=$ac_new_val ;;
2003     esac
2004     case " $ac_configure_args " in
2005       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2006       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2007     esac
2008   fi
2009 done
2010 if $ac_cache_corrupted; then
2011   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2015    { (exit 1); exit 1; }; }
2016 fi
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042 ac_ext=c
2043 ac_cpp='$CPP $CPPFLAGS'
2044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047
2048
2049
2050 ac_config_headers="$ac_config_headers config.h"
2051
2052
2053 am__api_version='1.10'
2054
2055 ac_aux_dir=
2056 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2057   if test -f "$ac_dir/install-sh"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/install-sh -c"
2060     break
2061   elif test -f "$ac_dir/install.sh"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/install.sh -c"
2064     break
2065   elif test -f "$ac_dir/shtool"; then
2066     ac_aux_dir=$ac_dir
2067     ac_install_sh="$ac_aux_dir/shtool install -c"
2068     break
2069   fi
2070 done
2071 if test -z "$ac_aux_dir"; then
2072   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2073 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2074    { (exit 1); exit 1; }; }
2075 fi
2076
2077 # These three variables are undocumented and unsupported,
2078 # and are intended to be withdrawn in a future Autoconf release.
2079 # They can cause serious problems if a builder's source tree is in a directory
2080 # whose full name contains unusual characters.
2081 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2082 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2083 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2084
2085
2086 # Find a good install program.  We prefer a C program (faster),
2087 # so one script is as good as another.  But avoid the broken or
2088 # incompatible versions:
2089 # SysV /etc/install, /usr/sbin/install
2090 # SunOS /usr/etc/install
2091 # IRIX /sbin/install
2092 # AIX /bin/install
2093 # AmigaOS /C/install, which installs bootblocks on floppy discs
2094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2097 # OS/2's system install, which has a completely different semantic
2098 # ./install, which can be erroneously created by make from ./install.sh.
2099 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2100 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2101 if test -z "$INSTALL"; then
2102 if test "${ac_cv_path_install+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   # Account for people who put trailing slashes in PATH elements.
2111 case $as_dir/ in
2112   ./ | .// | /cC/* | \
2113   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2114   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2115   /usr/ucb/* ) ;;
2116   *)
2117     # OSF1 and SCO ODT 3.0 have their own names for install.
2118     # Don't use installbsd from OSF since it installs stuff as root
2119     # by default.
2120     for ac_prog in ginstall scoinst install; do
2121       for ac_exec_ext in '' $ac_executable_extensions; do
2122         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2123           if test $ac_prog = install &&
2124             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2125             # AIX install.  It has an incompatible calling convention.
2126             :
2127           elif test $ac_prog = install &&
2128             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129             # program-specific install script used by HP pwplus--don't use.
2130             :
2131           else
2132             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2133             break 3
2134           fi
2135         fi
2136       done
2137     done
2138     ;;
2139 esac
2140 done
2141 IFS=$as_save_IFS
2142
2143
2144 fi
2145   if test "${ac_cv_path_install+set}" = set; then
2146     INSTALL=$ac_cv_path_install
2147   else
2148     # As a last resort, use the slow shell script.  Don't cache a
2149     # value for INSTALL within a source directory, because that will
2150     # break other packages using the cache if that directory is
2151     # removed, or if the value is a relative name.
2152     INSTALL=$ac_install_sh
2153   fi
2154 fi
2155 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2156 echo "${ECHO_T}$INSTALL" >&6; }
2157
2158 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2159 # It thinks the first close brace ends the variable substitution.
2160 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2161
2162 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2163
2164 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165
2166 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2167 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2168 # Just in case
2169 sleep 1
2170 echo timestamp > conftest.file
2171 # Do `set' in a subshell so we don't clobber the current shell's
2172 # arguments.  Must try -L first in case configure is actually a
2173 # symlink; some systems play weird games with the mod time of symlinks
2174 # (eg FreeBSD returns the mod time of the symlink's containing
2175 # directory).
2176 if (
2177    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2178    if test "$*" = "X"; then
2179       # -L didn't work.
2180       set X `ls -t $srcdir/configure conftest.file`
2181    fi
2182    rm -f conftest.file
2183    if test "$*" != "X $srcdir/configure conftest.file" \
2184       && test "$*" != "X conftest.file $srcdir/configure"; then
2185
2186       # If neither matched, then we have a broken ls.  This can happen
2187       # if, for instance, CONFIG_SHELL is bash and it inherits a
2188       # broken ls alias from the environment.  This has actually
2189       # happened.  Such a system could not be considered "sane".
2190       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2191 alias in your environment" >&5
2192 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2193 alias in your environment" >&2;}
2194    { (exit 1); exit 1; }; }
2195    fi
2196
2197    test "$2" = conftest.file
2198    )
2199 then
2200    # Ok.
2201    :
2202 else
2203    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2204 Check your system clock" >&5
2205 echo "$as_me: error: newly created file is older than distributed files!
2206 Check your system clock" >&2;}
2207    { (exit 1); exit 1; }; }
2208 fi
2209 { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2211 test "$program_prefix" != NONE &&
2212   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2213 # Use a double $ so make ignores it.
2214 test "$program_suffix" != NONE &&
2215   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2216 # Double any \ or $.  echo might interpret backslashes.
2217 # By default was `s,x,x', remove it if useless.
2218 cat <<\_ACEOF >conftest.sed
2219 s/[\\$]/&&/g;s/;s,x,x,$//
2220 _ACEOF
2221 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2222 rm -f conftest.sed
2223
2224 # expand $ac_aux_dir to an absolute path
2225 am_aux_dir=`cd $ac_aux_dir && pwd`
2226
2227 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2228 # Use eval to expand $SHELL
2229 if eval "$MISSING --run true"; then
2230   am_missing_run="$MISSING --run "
2231 else
2232   am_missing_run=
2233   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2234 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2235 fi
2236
2237 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2238 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2239 if test -z "$MKDIR_P"; then
2240   if test "${ac_cv_path_mkdir+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248   for ac_prog in mkdir gmkdir; do
2249          for ac_exec_ext in '' $ac_executable_extensions; do
2250            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2251            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2252              'mkdir (GNU coreutils) '* | \
2253              'mkdir (coreutils) '* | \
2254              'mkdir (fileutils) '4.1*)
2255                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2256                break 3;;
2257            esac
2258          done
2259        done
2260 done
2261 IFS=$as_save_IFS
2262
2263 fi
2264
2265   if test "${ac_cv_path_mkdir+set}" = set; then
2266     MKDIR_P="$ac_cv_path_mkdir -p"
2267   else
2268     # As a last resort, use the slow shell script.  Don't cache a
2269     # value for MKDIR_P within a source directory, because that will
2270     # break other packages using the cache if that directory is
2271     # removed, or if the value is a relative name.
2272     test -d ./--version && rmdir ./--version
2273     MKDIR_P="$ac_install_sh -d"
2274   fi
2275 fi
2276 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2277 echo "${ECHO_T}$MKDIR_P" >&6; }
2278
2279 mkdir_p="$MKDIR_P"
2280 case $mkdir_p in
2281   [\\/$]* | ?:[\\/]*) ;;
2282   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2283 esac
2284
2285 for ac_prog in gawk mawk nawk awk
2286 do
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_prog_AWK+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$AWK"; then
2295   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304     ac_cv_prog_AWK="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310 IFS=$as_save_IFS
2311
2312 fi
2313 fi
2314 AWK=$ac_cv_prog_AWK
2315 if test -n "$AWK"; then
2316   { echo "$as_me:$LINENO: result: $AWK" >&5
2317 echo "${ECHO_T}$AWK" >&6; }
2318 else
2319   { echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6; }
2321 fi
2322
2323
2324   test -n "$AWK" && break
2325 done
2326
2327 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2328 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2329 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   cat >conftest.make <<\_ACEOF
2334 SHELL = /bin/sh
2335 all:
2336         @echo '@@@%%%=$(MAKE)=@@@%%%'
2337 _ACEOF
2338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2340   *@@@%%%=?*=@@@%%%*)
2341     eval ac_cv_prog_make_${ac_make}_set=yes;;
2342   *)
2343     eval ac_cv_prog_make_${ac_make}_set=no;;
2344 esac
2345 rm -f conftest.make
2346 fi
2347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2348   { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2350   SET_MAKE=
2351 else
2352   { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2354   SET_MAKE="MAKE=${MAKE-make}"
2355 fi
2356
2357 rm -rf .tst 2>/dev/null
2358 mkdir .tst 2>/dev/null
2359 if test -d .tst; then
2360   am__leading_dot=.
2361 else
2362   am__leading_dot=_
2363 fi
2364 rmdir .tst 2>/dev/null
2365
2366 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2367   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2368   # is not polluted with repeated "-I."
2369   am__isrc=' -I$(srcdir)'
2370   # test to see if srcdir already configured
2371   if test -f $srcdir/config.status; then
2372     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2373 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2374    { (exit 1); exit 1; }; }
2375   fi
2376 fi
2377
2378 # test whether we have cygpath
2379 if test -z "$CYGPATH_W"; then
2380   if (cygpath --version) >/dev/null 2>/dev/null; then
2381     CYGPATH_W='cygpath -w'
2382   else
2383     CYGPATH_W=echo
2384   fi
2385 fi
2386
2387
2388 # Define the identity of the package.
2389  PACKAGE='util-vserver'
2390  VERSION='0.30.214'
2391
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE "$PACKAGE"
2395 _ACEOF
2396
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define VERSION "$VERSION"
2400 _ACEOF
2401
2402 # Some tools Automake needs.
2403
2404 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2405
2406
2407 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2408
2409
2410 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2411
2412
2413 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2414
2415
2416 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2417
2418 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2419
2420 # Installed binaries are usually stripped using `strip' when the user
2421 # run `make install-strip'.  However `strip' might not be the right
2422 # tool to use in cross-compilation environments, therefore Automake
2423 # will honor the `STRIP' environment variable to overrule this program.
2424 if test "$cross_compiling" != no; then
2425   if test -n "$ac_tool_prefix"; then
2426   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_STRIP+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$STRIP"; then
2434   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 STRIP=$ac_cv_prog_STRIP
2454 if test -n "$STRIP"; then
2455   { echo "$as_me:$LINENO: result: $STRIP" >&5
2456 echo "${ECHO_T}$STRIP" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462
2463 fi
2464 if test -z "$ac_cv_prog_STRIP"; then
2465   ac_ct_STRIP=$STRIP
2466   # Extract the first word of "strip", so it can be a program name with args.
2467 set dummy strip; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$ac_ct_STRIP"; then
2474   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479   IFS=$as_save_IFS
2480   test -z "$as_dir" && as_dir=.
2481   for ac_exec_ext in '' $ac_executable_extensions; do
2482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483     ac_cv_prog_ac_ct_STRIP="strip"
2484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486   fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2494 if test -n "$ac_ct_STRIP"; then
2495   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2496 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2497 else
2498   { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2500 fi
2501
2502   if test "x$ac_ct_STRIP" = x; then
2503     STRIP=":"
2504   else
2505     case $cross_compiling:$ac_tool_warned in
2506 yes:)
2507 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&5
2510 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet.  If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515     STRIP=$ac_ct_STRIP
2516   fi
2517 else
2518   STRIP="$ac_cv_prog_STRIP"
2519 fi
2520
2521 fi
2522 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523
2524 # We need awk for the "check" target.  The system "awk" is bad on
2525 # some platforms.
2526 # Always define AMTAR for backward compatibility.
2527
2528 AMTAR=${AMTAR-"${am_missing_run}tar"}
2529
2530 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2531
2532
2533
2534
2535
2536 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2537 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2538     # Check whether --enable-maintainer-mode was given.
2539 if test "${enable_maintainer_mode+set}" = set; then
2540   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2541 else
2542   USE_MAINTAINER_MODE=no
2543 fi
2544
2545   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2546 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2547    if test $USE_MAINTAINER_MODE = yes; then
2548   MAINTAINER_MODE_TRUE=
2549   MAINTAINER_MODE_FALSE='#'
2550 else
2551   MAINTAINER_MODE_TRUE='#'
2552   MAINTAINER_MODE_FALSE=
2553 fi
2554
2555   MAINT=$MAINTAINER_MODE_TRUE
2556
2557
2558
2559 # Make sure we can run config.sub.
2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2561   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2562 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2563    { (exit 1); exit 1; }; }
2564
2565 { echo "$as_me:$LINENO: checking build system type" >&5
2566 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2567 if test "${ac_cv_build+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   ac_build_alias=$build_alias
2571 test "x$ac_build_alias" = x &&
2572   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2573 test "x$ac_build_alias" = x &&
2574   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2575 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2576    { (exit 1); exit 1; }; }
2577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2579 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2580    { (exit 1); exit 1; }; }
2581
2582 fi
2583 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2584 echo "${ECHO_T}$ac_cv_build" >&6; }
2585 case $ac_cv_build in
2586 *-*-*) ;;
2587 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2588 echo "$as_me: error: invalid value of canonical build" >&2;}
2589    { (exit 1); exit 1; }; };;
2590 esac
2591 build=$ac_cv_build
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_build
2594 shift
2595 build_cpu=$1
2596 build_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 build_os=$*
2601 IFS=$ac_save_IFS
2602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { echo "$as_me:$LINENO: checking host system type" >&5
2606 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2607 if test "${ac_cv_host+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test "x$host_alias" = x; then
2611   ac_cv_host=$ac_cv_build
2612 else
2613   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2614     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2615 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2616    { (exit 1); exit 1; }; }
2617 fi
2618
2619 fi
2620 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2621 echo "${ECHO_T}$ac_cv_host" >&6; }
2622 case $ac_cv_host in
2623 *-*-*) ;;
2624 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2625 echo "$as_me: error: invalid value of canonical host" >&2;}
2626    { (exit 1); exit 1; }; };;
2627 esac
2628 host=$ac_cv_host
2629 ac_save_IFS=$IFS; IFS='-'
2630 set x $ac_cv_host
2631 shift
2632 host_cpu=$1
2633 host_vendor=$2
2634 shift; shift
2635 # Remember, the first character of IFS is used to create $*,
2636 # except with old shells:
2637 host_os=$*
2638 IFS=$ac_save_IFS
2639 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2640
2641
2642
2643 GPG_KEY="0xFFD316AC53ACA43A!"
2644
2645
2646 # Checks for programs.
2647 ac_ext=cpp
2648 ac_cpp='$CXXCPP $CPPFLAGS'
2649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2652 if test -z "$CXX"; then
2653   if test -n "$CCC"; then
2654     CXX=$CCC
2655   else
2656     if test -n "$ac_tool_prefix"; then
2657   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2658   do
2659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CXX+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$CXX"; then
2667   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CXX=$ac_cv_prog_CXX
2687 if test -n "$CXX"; then
2688   { echo "$as_me:$LINENO: result: $CXX" >&5
2689 echo "${ECHO_T}$CXX" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696     test -n "$CXX" && break
2697   done
2698 fi
2699 if test -z "$CXX"; then
2700   ac_ct_CXX=$CXX
2701   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2702 do
2703   # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   if test -n "$ac_ct_CXX"; then
2711   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718   for ac_exec_ext in '' $ac_executable_extensions; do
2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720     ac_cv_prog_ac_ct_CXX="$ac_prog"
2721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722     break 2
2723   fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2731 if test -n "$ac_ct_CXX"; then
2732   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2733 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2734 else
2735   { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2737 fi
2738
2739
2740   test -n "$ac_ct_CXX" && break
2741 done
2742
2743   if test "x$ac_ct_CXX" = x; then
2744     CXX="g++"
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet.  If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet.  If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756     CXX=$ac_ct_CXX
2757   fi
2758 fi
2759
2760   fi
2761 fi
2762 # Provide some information about the compiler.
2763 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2764 ac_compiler=`set X $ac_compile; echo $2`
2765 { (ac_try="$ac_compiler --version >&5"
2766 case "(($ac_try" in
2767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768   *) ac_try_echo=$ac_try;;
2769 esac
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771   (eval "$ac_compiler --version >&5") 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); }
2775 { (ac_try="$ac_compiler -v >&5"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compiler -v >&5") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }
2785 { (ac_try="$ac_compiler -V >&5"
2786 case "(($ac_try" in
2787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788   *) ac_try_echo=$ac_try;;
2789 esac
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791   (eval "$ac_compiler -V >&5") 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }
2795
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802
2803 int
2804 main ()
2805 {
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 ac_clean_files_save=$ac_clean_files
2812 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2813 # Try to create an executable without -o first, disregard a.out.
2814 # It will help us diagnose broken compilers, and finding out an intuition
2815 # of exeext.
2816 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2817 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2818 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2819 #
2820 # List of possible output files, starting from the most likely.
2821 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2822 # only as a last resort.  b.out is created by i960 compilers.
2823 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2824 #
2825 # The IRIX 6 linker writes into existing files which may not be
2826 # executable, retaining their permissions.  Remove them first so a
2827 # subsequent execution test works.
2828 ac_rmfiles=
2829 for ac_file in $ac_files
2830 do
2831   case $ac_file in
2832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2833     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2834   esac
2835 done
2836 rm -f $ac_rmfiles
2837
2838 if { (ac_try="$ac_link_default"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_link_default") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; then
2848   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2850 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2851 # so that the user can short-circuit this test for compilers unknown to
2852 # Autoconf.
2853 for ac_file in $ac_files ''
2854 do
2855   test -f "$ac_file" || continue
2856   case $ac_file in
2857     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2858         ;;
2859     [ab].out )
2860         # We found the default executable, but exeext='' is most
2861         # certainly right.
2862         break;;
2863     *.* )
2864         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2865         then :; else
2866            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867         fi
2868         # We set ac_cv_exeext here because the later test for it is not
2869         # safe: cross compilers may not add the suffix if given an `-o'
2870         # argument, so we may need to know it at that point already.
2871         # Even if this section looks crufty: it has the advantage of
2872         # actually working.
2873         break;;
2874     * )
2875         break;;
2876   esac
2877 done
2878 test "$ac_cv_exeext" = no && ac_cv_exeext=
2879
2880 else
2881   ac_file=''
2882 fi
2883
2884 { echo "$as_me:$LINENO: result: $ac_file" >&5
2885 echo "${ECHO_T}$ac_file" >&6; }
2886 if test -z "$ac_file"; then
2887   echo "$as_me: failed program was:" >&5
2888 sed 's/^/| /' conftest.$ac_ext >&5
2889
2890 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2891 See \`config.log' for more details." >&5
2892 echo "$as_me: error: C++ compiler cannot create executables
2893 See \`config.log' for more details." >&2;}
2894    { (exit 77); exit 77; }; }
2895 fi
2896
2897 ac_exeext=$ac_cv_exeext
2898
2899 # Check that the compiler produces executables we can run.  If not, either
2900 # the compiler is broken, or we cross compile.
2901 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2902 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2904 # If not cross compiling, check that we can run a simple program.
2905 if test "$cross_compiling" != yes; then
2906   if { ac_try='./$ac_file'
2907   { (case "(($ac_try" in
2908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909   *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912   (eval "$ac_try") 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916     cross_compiling=no
2917   else
2918     if test "$cross_compiling" = maybe; then
2919         cross_compiling=yes
2920     else
2921         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2922 If you meant to cross compile, use \`--host'.
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: cannot run C++ compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details." >&2;}
2927    { (exit 1); exit 1; }; }
2928     fi
2929   fi
2930 fi
2931 { echo "$as_me:$LINENO: result: yes" >&5
2932 echo "${ECHO_T}yes" >&6; }
2933
2934 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2935 ac_clean_files=$ac_clean_files_save
2936 # Check that the compiler produces executables we can run.  If not, either
2937 # the compiler is broken, or we cross compile.
2938 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2939 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2940 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2941 echo "${ECHO_T}$cross_compiling" >&6; }
2942
2943 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2944 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2945 if { (ac_try="$ac_link"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_link") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; then
2955   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2956 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2957 # work properly (i.e., refer to `conftest.exe'), while it won't with
2958 # `rm'.
2959 for ac_file in conftest.exe conftest conftest.*; do
2960   test -f "$ac_file" || continue
2961   case $ac_file in
2962     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2963     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964           break;;
2965     * ) break;;
2966   esac
2967 done
2968 else
2969   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 rm -f conftest$ac_cv_exeext
2977 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2978 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2979
2980 rm -f conftest.$ac_ext
2981 EXEEXT=$ac_cv_exeext
2982 ac_exeext=$EXEEXT
2983 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2984 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2985 if test "${ac_cv_objext+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994
2995 int
2996 main ()
2997 {
2998
2999   ;
3000   return 0;
3001 }
3002 _ACEOF
3003 rm -f conftest.o conftest.obj
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007   *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010   (eval "$ac_compile") 2>&5
3011   ac_status=$?
3012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013   (exit $ac_status); }; then
3014   for ac_file in conftest.o conftest.obj conftest.*; do
3015   test -f "$ac_file" || continue;
3016   case $ac_file in
3017     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3018     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3019        break;;
3020   esac
3021 done
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3029 See \`config.log' for more details." >&2;}
3030    { (exit 1); exit 1; }; }
3031 fi
3032
3033 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3034 fi
3035 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3036 echo "${ECHO_T}$ac_cv_objext" >&6; }
3037 OBJEXT=$ac_cv_objext
3038 ac_objext=$OBJEXT
3039 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3040 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3041 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054 #ifndef __GNUC__
3055        choke me
3056 #endif
3057
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3064 case "(($ac_try" in
3065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066   *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069   (eval "$ac_compile") 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } && {
3076          test -z "$ac_cxx_werror_flag" ||
3077          test ! -s conftest.err
3078        } && test -s conftest.$ac_objext; then
3079   ac_compiler_gnu=yes
3080 else
3081   echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084         ac_compiler_gnu=no
3085 fi
3086
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3089
3090 fi
3091 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3092 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3093 GXX=`test $ac_compiler_gnu = yes && echo yes`
3094 ac_test_CXXFLAGS=${CXXFLAGS+set}
3095 ac_save_CXXFLAGS=$CXXFLAGS
3096 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3097 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_cxx_g+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3102    ac_cxx_werror_flag=yes
3103    ac_cv_prog_cxx_g=no
3104    CXXFLAGS="-g"
3105    cat >conftest.$ac_ext <<_ACEOF
3106 /* confdefs.h.  */
3107 _ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h.  */
3111
3112 int
3113 main ()
3114 {
3115
3116   ;
3117   return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_compile") 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } && {
3134          test -z "$ac_cxx_werror_flag" ||
3135          test ! -s conftest.err
3136        } && test -s conftest.$ac_objext; then
3137   ac_cv_prog_cxx_g=yes
3138 else
3139   echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142         CXXFLAGS=""
3143       cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h.  */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h.  */
3149
3150 int
3151 main ()
3152 {
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165   (eval "$ac_compile") 2>conftest.er1
3166   ac_status=$?
3167   grep -v '^ *+' conftest.er1 >conftest.err
3168   rm -f conftest.er1
3169   cat conftest.err >&5
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); } && {
3172          test -z "$ac_cxx_werror_flag" ||
3173          test ! -s conftest.err
3174        } && test -s conftest.$ac_objext; then
3175   :
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181          CXXFLAGS="-g"
3182          cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } && {
3211          test -z "$ac_cxx_werror_flag" ||
3212          test ! -s conftest.err
3213        } && test -s conftest.$ac_objext; then
3214   ac_cv_prog_cxx_g=yes
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3230 fi
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3233 if test "$ac_test_CXXFLAGS" = set; then
3234   CXXFLAGS=$ac_save_CXXFLAGS
3235 elif test $ac_cv_prog_cxx_g = yes; then
3236   if test "$GXX" = yes; then
3237     CXXFLAGS="-g -O2"
3238   else
3239     CXXFLAGS="-g"
3240   fi
3241 else
3242   if test "$GXX" = yes; then
3243     CXXFLAGS="-O2"
3244   else
3245     CXXFLAGS=
3246   fi
3247 fi
3248 ac_ext=c
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 DEPDIR="${am__leading_dot}deps"
3254
3255 ac_config_commands="$ac_config_commands depfiles"
3256
3257
3258 am_make=${MAKE-make}
3259 cat > confinc << 'END'
3260 am__doit:
3261         @echo done
3262 .PHONY: am__doit
3263 END
3264 # If we don't find an include directive, just comment out the code.
3265 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3266 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3267 am__include="#"
3268 am__quote=
3269 _am_result=none
3270 # First try GNU make style include.
3271 echo "include confinc" > confmf
3272 # We grep out `Entering directory' and `Leaving directory'
3273 # messages which can occur if `w' ends up in MAKEFLAGS.
3274 # In particular we don't look at `^make:' because GNU make might
3275 # be invoked under some other name (usually "gmake"), in which
3276 # case it prints its new name instead of `make'.
3277 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3278    am__include=include
3279    am__quote=
3280    _am_result=GNU
3281 fi
3282 # Now try BSD make style include.
3283 if test "$am__include" = "#"; then
3284    echo '.include "confinc"' > confmf
3285    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3286       am__include=.include
3287       am__quote="\""
3288       _am_result=BSD
3289    fi
3290 fi
3291
3292
3293 { echo "$as_me:$LINENO: result: $_am_result" >&5
3294 echo "${ECHO_T}$_am_result" >&6; }
3295 rm -f confinc confmf
3296
3297 # Check whether --enable-dependency-tracking was given.
3298 if test "${enable_dependency_tracking+set}" = set; then
3299   enableval=$enable_dependency_tracking;
3300 fi
3301
3302 if test "x$enable_dependency_tracking" != xno; then
3303   am_depcomp="$ac_aux_dir/depcomp"
3304   AMDEPBACKSLASH='\'
3305 fi
3306  if test "x$enable_dependency_tracking" != xno; then
3307   AMDEP_TRUE=
3308   AMDEP_FALSE='#'
3309 else
3310   AMDEP_TRUE='#'
3311   AMDEP_FALSE=
3312 fi
3313
3314
3315
3316 depcc="$CXX"  am_compiler_list=
3317
3318 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3319 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3320 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3324   # We make a subdir and do the tests there.  Otherwise we can end up
3325   # making bogus files that we don't know about and never remove.  For
3326   # instance it was reported that on HP-UX the gcc test will end up
3327   # making a dummy file named `D' -- because `-MD' means `put the output
3328   # in D'.
3329   mkdir conftest.dir
3330   # Copy depcomp to subdir because otherwise we won't find it if we're
3331   # using a relative directory.
3332   cp "$am_depcomp" conftest.dir
3333   cd conftest.dir
3334   # We will build objects and dependencies in a subdirectory because
3335   # it helps to detect inapplicable dependency modes.  For instance
3336   # both Tru64's cc and ICC support -MD to output dependencies as a
3337   # side effect of compilation, but ICC will put the dependencies in
3338   # the current directory while Tru64 will put them in the object
3339   # directory.
3340   mkdir sub
3341
3342   am_cv_CXX_dependencies_compiler_type=none
3343   if test "$am_compiler_list" = ""; then
3344      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3345   fi
3346   for depmode in $am_compiler_list; do
3347     # Setup a source with many dependencies, because some compilers
3348     # like to wrap large dependency lists on column 80 (with \), and
3349     # we should not choose a depcomp mode which is confused by this.
3350     #
3351     # We need to recreate these files for each test, as the compiler may
3352     # overwrite some of them when testing with obscure command lines.
3353     # This happens at least with the AIX C compiler.
3354     : > sub/conftest.c
3355     for i in 1 2 3 4 5 6; do
3356       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3357       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3358       # Solaris 8's {/usr,}/bin/sh.
3359       touch sub/conftst$i.h
3360     done
3361     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3362
3363     case $depmode in
3364     nosideeffect)
3365       # after this tag, mechanisms are not by side-effect, so they'll
3366       # only be used when explicitly requested
3367       if test "x$enable_dependency_tracking" = xyes; then
3368         continue
3369       else
3370         break
3371       fi
3372       ;;
3373     none) break ;;
3374     esac
3375     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3376     # mode.  It turns out that the SunPro C++ compiler does not properly
3377     # handle `-M -o', and we need to detect this.
3378     if depmode=$depmode \
3379        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3380        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3381        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3382          >/dev/null 2>conftest.err &&
3383        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3384        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3385        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3386        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3387       # icc doesn't choke on unknown options, it will just issue warnings
3388       # or remarks (even with -Werror).  So we grep stderr for any message
3389       # that says an option was ignored or not supported.
3390       # When given -MP, icc 7.0 and 7.1 complain thusly:
3391       #   icc: Command line warning: ignoring option '-M'; no argument required
3392       # The diagnosis changed in icc 8.0:
3393       #   icc: Command line remark: option '-MP' not supported
3394       if (grep 'ignoring option' conftest.err ||
3395           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3396         am_cv_CXX_dependencies_compiler_type=$depmode
3397         break
3398       fi
3399     fi
3400   done
3401
3402   cd ..
3403   rm -rf conftest.dir
3404 else
3405   am_cv_CXX_dependencies_compiler_type=none
3406 fi
3407
3408 fi
3409 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3410 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3411 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3412
3413  if
3414   test "x$enable_dependency_tracking" != xno \
3415   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3416   am__fastdepCXX_TRUE=
3417   am__fastdepCXX_FALSE='#'
3418 else
3419   am__fastdepCXX_TRUE='#'
3420   am__fastdepCXX_FALSE=
3421 fi
3422
3423
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 if test -n "$ac_tool_prefix"; then
3430   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3434 if test "${ac_cv_prog_CC+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -n "$CC"; then
3438   ac_cv_prog_CC="$CC" # Let the user override the test.
3439 else
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453 IFS=$as_save_IFS
3454
3455 fi
3456 fi
3457 CC=$ac_cv_prog_CC
3458 if test -n "$CC"; then
3459   { echo "$as_me:$LINENO: result: $CC" >&5
3460 echo "${ECHO_T}$CC" >&6; }
3461 else
3462   { echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6; }
3464 fi
3465
3466
3467 fi
3468 if test -z "$ac_cv_prog_CC"; then
3469   ac_ct_CC=$CC
3470   # Extract the first word of "gcc", so it can be a program name with args.
3471 set dummy gcc; ac_word=$2
3472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   if test -n "$ac_ct_CC"; then
3478   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487     ac_cv_prog_ac_ct_CC="gcc"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3498 if test -n "$ac_ct_CC"; then
3499   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3500 echo "${ECHO_T}$ac_ct_CC" >&6; }
3501 else
3502   { echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6; }
3504 fi
3505
3506   if test "x$ac_ct_CC" = x; then
3507     CC=""
3508   else
3509     case $cross_compiling:$ac_tool_warned in
3510 yes:)
3511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3512 whose name does not start with the host triplet.  If you think this
3513 configuration is useful to you, please write to autoconf@gnu.org." >&5
3514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3515 whose name does not start with the host triplet.  If you think this
3516 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3517 ac_tool_warned=yes ;;
3518 esac
3519     CC=$ac_ct_CC
3520   fi
3521 else
3522   CC="$ac_cv_prog_CC"
3523 fi
3524
3525 if test -z "$CC"; then
3526           if test -n "$ac_tool_prefix"; then
3527     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3528 set dummy ${ac_tool_prefix}cc; ac_word=$2
3529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   if test -n "$CC"; then
3535   ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542   for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_CC="${ac_tool_prefix}cc"
3545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   { echo "$as_me:$LINENO: result: $CC" >&5
3557 echo "${ECHO_T}$CC" >&6; }
3558 else
3559   { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3561 fi
3562
3563
3564   fi
3565 fi
3566 if test -z "$CC"; then
3567   # Extract the first word of "cc", so it can be a program name with args.
3568 set dummy cc; ac_word=$2
3569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_CC+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   if test -n "$CC"; then
3575   ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577   ac_prog_rejected=no
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581   IFS=$as_save_IFS
3582   test -z "$as_dir" && as_dir=.
3583   for ac_exec_ext in '' $ac_executable_extensions; do
3584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3586        ac_prog_rejected=yes
3587        continue
3588      fi
3589     ac_cv_prog_CC="cc"
3590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 if test $ac_prog_rejected = yes; then
3598   # We found a bogon in the path, so make sure we never use it.
3599   set dummy $ac_cv_prog_CC
3600   shift
3601   if test $# != 0; then
3602     # We chose a different compiler from the bogus one.
3603     # However, it has the same basename, so the bogon will be chosen
3604     # first if we set CC to just the basename; use the full file name.
3605     shift
3606     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3607   fi
3608 fi
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613   { echo "$as_me:$LINENO: result: $CC" >&5
3614 echo "${ECHO_T}$CC" >&6; }
3615 else
3616   { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3618 fi
3619
3620
3621 fi
3622 if test -z "$CC"; then
3623   if test -n "$ac_tool_prefix"; then
3624   for ac_prog in cl.exe
3625   do
3626     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   if test -n "$CC"; then
3634   ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655   { echo "$as_me:$LINENO: result: $CC" >&5
3656 echo "${ECHO_T}$CC" >&6; }
3657 else
3658   { echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6; }
3660 fi
3661
3662
3663     test -n "$CC" && break
3664   done
3665 fi
3666 if test -z "$CC"; then
3667   ac_ct_CC=$CC
3668   for ac_prog in cl.exe
3669 do
3670   # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   if test -n "$ac_ct_CC"; then
3678   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687     ac_cv_prog_ac_ct_CC="$ac_prog"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3700 echo "${ECHO_T}$ac_ct_CC" >&6; }
3701 else
3702   { echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6; }
3704 fi
3705
3706
3707   test -n "$ac_ct_CC" && break
3708 done
3709
3710   if test "x$ac_ct_CC" = x; then
3711     CC=""
3712   else
3713     case $cross_compiling:$ac_tool_warned in
3714 yes:)
3715 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3716 whose name does not start with the host triplet.  If you think this
3717 configuration is useful to you, please write to autoconf@gnu.org." >&5
3718 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3719 whose name does not start with the host triplet.  If you think this
3720 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3721 ac_tool_warned=yes ;;
3722 esac
3723     CC=$ac_ct_CC
3724   fi
3725 fi
3726
3727 fi
3728
3729
3730 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3731 See \`config.log' for more details." >&5
3732 echo "$as_me: error: no acceptable C compiler found in \$PATH
3733 See \`config.log' for more details." >&2;}
3734    { (exit 1); exit 1; }; }
3735
3736 # Provide some information about the compiler.
3737 echo "$as_me:$LINENO: checking for C compiler version" >&5
3738 ac_compiler=`set X $ac_compile; echo $2`
3739 { (ac_try="$ac_compiler --version >&5"
3740 case "(($ac_try" in
3741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742   *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745   (eval "$ac_compiler --version >&5") 2>&5
3746   ac_status=$?
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); }
3749 { (ac_try="$ac_compiler -v >&5"
3750 case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755   (eval "$ac_compiler -v >&5") 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }
3759 { (ac_try="$ac_compiler -V >&5"
3760 case "(($ac_try" in
3761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762   *) ac_try_echo=$ac_try;;
3763 esac
3764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3765   (eval "$ac_compiler -V >&5") 2>&5
3766   ac_status=$?
3767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }
3769
3770 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3771 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3772 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781
3782 int
3783 main ()
3784 {
3785 #ifndef __GNUC__
3786        choke me
3787 #endif
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 rm -f conftest.$ac_objext
3794 if { (ac_try="$ac_compile"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_compile") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } && {
3807          test -z "$ac_c_werror_flag" ||
3808          test ! -s conftest.err
3809        } && test -s conftest.$ac_objext; then
3810   ac_compiler_gnu=yes
3811 else
3812   echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3814
3815         ac_compiler_gnu=no
3816 fi
3817
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3820
3821 fi
3822 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3823 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3824 GCC=`test $ac_compiler_gnu = yes && echo yes`
3825 ac_test_CFLAGS=${CFLAGS+set}
3826 ac_save_CFLAGS=$CFLAGS
3827 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3828 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3829 if test "${ac_cv_prog_cc_g+set}" = set; then
3830   echo $ECHO_N "(cached) $ECHO_C" >&6
3831 else
3832   ac_save_c_werror_flag=$ac_c_werror_flag
3833    ac_c_werror_flag=yes
3834    ac_cv_prog_cc_g=no
3835    CFLAGS="-g"
3836    cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842
3843 int
3844 main ()
3845 {
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 rm -f conftest.$ac_objext
3852 if { (ac_try="$ac_compile"
3853 case "(($ac_try" in
3854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855   *) ac_try_echo=$ac_try;;
3856 esac
3857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858   (eval "$ac_compile") 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } && {
3865          test -z "$ac_c_werror_flag" ||
3866          test ! -s conftest.err
3867        } && test -s conftest.$ac_objext; then
3868   ac_cv_prog_cc_g=yes
3869 else
3870   echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3872
3873         CFLAGS=""
3874       cat >conftest.$ac_ext <<_ACEOF
3875 /* confdefs.h.  */
3876 _ACEOF
3877 cat confdefs.h >>conftest.$ac_ext
3878 cat >>conftest.$ac_ext <<_ACEOF
3879 /* end confdefs.h.  */
3880
3881 int
3882 main ()
3883 {
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   :
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ac_c_werror_flag=$ac_save_c_werror_flag
3912          CFLAGS="-g"
3913          cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935   (eval "$ac_compile") 2>conftest.er1
3936   ac_status=$?
3937   grep -v '^ *+' conftest.er1 >conftest.err
3938   rm -f conftest.er1
3939   cat conftest.err >&5
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } && {
3942          test -z "$ac_c_werror_flag" ||
3943          test ! -s conftest.err
3944        } && test -s conftest.$ac_objext; then
3945   ac_cv_prog_cc_g=yes
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950
3951 fi
3952
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 fi
3955
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 fi
3958
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960    ac_c_werror_flag=$ac_save_c_werror_flag
3961 fi
3962 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3963 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3964 if test "$ac_test_CFLAGS" = set; then
3965   CFLAGS=$ac_save_CFLAGS
3966 elif test $ac_cv_prog_cc_g = yes; then
3967   if test "$GCC" = yes; then
3968     CFLAGS="-g -O2"
3969   else
3970     CFLAGS="-g"
3971   fi
3972 else
3973   if test "$GCC" = yes; then
3974     CFLAGS="-O2"
3975   else
3976     CFLAGS=
3977   fi
3978 fi
3979 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3980 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3981 if test "${ac_cv_prog_cc_c89+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   ac_cv_prog_cc_c89=no
3985 ac_save_CC=$CC
3986 cat >conftest.$ac_ext <<_ACEOF
3987 /* confdefs.h.  */
3988 _ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h.  */
3992 #include <stdarg.h>
3993 #include <stdio.h>
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4000      char **p;
4001      int i;
4002 {
4003   return p[i];
4004 }
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4006 {
4007   char *s;
4008   va_list v;
4009   va_start (v,p);
4010   s = g (p, va_arg (v,int));
4011   va_end (v);
4012   return s;
4013 }
4014
4015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4016    function prototypes and stuff, but not '\xHH' hex character constants.
4017    These don't provoke an error unfortunately, instead are silently treated
4018    as 'x'.  The following induces an error, until -std is added to get
4019    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4020    array size at least.  It's necessary to write '\x00'==0 to get something
4021    that's true only with -std.  */
4022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023
4024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025    inside strings and character constants.  */
4026 #define FOO(x) 'x'
4027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 int argc;
4034 char **argv;
4035 int
4036 main ()
4037 {
4038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 do
4046   CC="$ac_save_CC $ac_arg"
4047   rm -f conftest.$ac_objext
4048 if { (ac_try="$ac_compile"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_compile") 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } && {
4061          test -z "$ac_c_werror_flag" ||
4062          test ! -s conftest.err
4063        } && test -s conftest.$ac_objext; then
4064   ac_cv_prog_cc_c89=$ac_arg
4065 else
4066   echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069
4070 fi
4071
4072 rm -f core conftest.err conftest.$ac_objext
4073   test "x$ac_cv_prog_cc_c89" != "xno" && break
4074 done
4075 rm -f conftest.$ac_ext
4076 CC=$ac_save_CC
4077
4078 fi
4079 # AC_CACHE_VAL
4080 case "x$ac_cv_prog_cc_c89" in
4081   x)
4082     { echo "$as_me:$LINENO: result: none needed" >&5
4083 echo "${ECHO_T}none needed" >&6; } ;;
4084   xno)
4085     { echo "$as_me:$LINENO: result: unsupported" >&5
4086 echo "${ECHO_T}unsupported" >&6; } ;;
4087   *)
4088     CC="$CC $ac_cv_prog_cc_c89"
4089     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4090 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4091 esac
4092
4093
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099
4100 depcc="$CC"   am_compiler_list=
4101
4102 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4105   echo $ECHO_N "(cached) $ECHO_C" >&6
4106 else
4107   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4108   # We make a subdir and do the tests there.  Otherwise we can end up
4109   # making bogus files that we don't know about and never remove.  For
4110   # instance it was reported that on HP-UX the gcc test will end up
4111   # making a dummy file named `D' -- because `-MD' means `put the output
4112   # in D'.
4113   mkdir conftest.dir
4114   # Copy depcomp to subdir because otherwise we won't find it if we're
4115   # using a relative directory.
4116   cp "$am_depcomp" conftest.dir
4117   cd conftest.dir
4118   # We will build objects and dependencies in a subdirectory because
4119   # it helps to detect inapplicable dependency modes.  For instance
4120   # both Tru64's cc and ICC support -MD to output dependencies as a
4121   # side effect of compilation, but ICC will put the dependencies in
4122   # the current directory while Tru64 will put them in the object
4123   # directory.
4124   mkdir sub
4125
4126   am_cv_CC_dependencies_compiler_type=none
4127   if test "$am_compiler_list" = ""; then
4128      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4129   fi
4130   for depmode in $am_compiler_list; do
4131     # Setup a source with many dependencies, because some compilers
4132     # like to wrap large dependency lists on column 80 (with \), and
4133     # we should not choose a depcomp mode which is confused by this.
4134     #
4135     # We need to recreate these files for each test, as the compiler may
4136     # overwrite some of them when testing with obscure command lines.
4137     # This happens at least with the AIX C compiler.
4138     : > sub/conftest.c
4139     for i in 1 2 3 4 5 6; do
4140       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4141       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4142       # Solaris 8's {/usr,}/bin/sh.
4143       touch sub/conftst$i.h
4144     done
4145     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4146
4147     case $depmode in
4148     nosideeffect)
4149       # after this tag, mechanisms are not by side-effect, so they'll
4150       # only be used when explicitly requested
4151       if test "x$enable_dependency_tracking" = xyes; then
4152         continue
4153       else
4154         break
4155       fi
4156       ;;
4157     none) break ;;
4158     esac
4159     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4160     # mode.  It turns out that the SunPro C++ compiler does not properly
4161     # handle `-M -o', and we need to detect this.
4162     if depmode=$depmode \
4163        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4165        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4166          >/dev/null 2>conftest.err &&
4167        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4168        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4169        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4170        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4171       # icc doesn't choke on unknown options, it will just issue warnings
4172       # or remarks (even with -Werror).  So we grep stderr for any message
4173       # that says an option was ignored or not supported.
4174       # When given -MP, icc 7.0 and 7.1 complain thusly:
4175       #   icc: Command line warning: ignoring option '-M'; no argument required
4176       # The diagnosis changed in icc 8.0:
4177       #   icc: Command line remark: option '-MP' not supported
4178       if (grep 'ignoring option' conftest.err ||
4179           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4180         am_cv_CC_dependencies_compiler_type=$depmode
4181         break
4182       fi
4183     fi
4184   done
4185
4186   cd ..
4187   rm -rf conftest.dir
4188 else
4189   am_cv_CC_dependencies_compiler_type=none
4190 fi
4191
4192 fi
4193 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4194 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4195 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196
4197  if
4198   test "x$enable_dependency_tracking" != xno \
4199   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200   am__fastdepCC_TRUE=
4201   am__fastdepCC_FALSE='#'
4202 else
4203   am__fastdepCC_TRUE='#'
4204   am__fastdepCC_FALSE=
4205 fi
4206
4207
4208 # Find a good install program.  We prefer a C program (faster),
4209 # so one script is as good as another.  But avoid the broken or
4210 # incompatible versions:
4211 # SysV /etc/install, /usr/sbin/install
4212 # SunOS /usr/etc/install
4213 # IRIX /sbin/install
4214 # AIX /bin/install
4215 # AmigaOS /C/install, which installs bootblocks on floppy discs
4216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4219 # OS/2's system install, which has a completely different semantic
4220 # ./install, which can be erroneously created by make from ./install.sh.
4221 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4222 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4223 if test -z "$INSTALL"; then
4224 if test "${ac_cv_path_install+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 for as_dir in $PATH
4229 do
4230   IFS=$as_save_IFS
4231   test -z "$as_dir" && as_dir=.
4232   # Account for people who put trailing slashes in PATH elements.
4233 case $as_dir/ in
4234   ./ | .// | /cC/* | \
4235   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4236   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4237   /usr/ucb/* ) ;;
4238   *)
4239     # OSF1 and SCO ODT 3.0 have their own names for install.
4240     # Don't use installbsd from OSF since it installs stuff as root
4241     # by default.
4242     for ac_prog in ginstall scoinst install; do
4243       for ac_exec_ext in '' $ac_executable_extensions; do
4244         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4245           if test $ac_prog = install &&
4246             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4247             # AIX install.  It has an incompatible calling convention.
4248             :
4249           elif test $ac_prog = install &&
4250             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251             # program-specific install script used by HP pwplus--don't use.
4252             :
4253           else
4254             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4255             break 3
4256           fi
4257         fi
4258       done
4259     done
4260     ;;
4261 esac
4262 done
4263 IFS=$as_save_IFS
4264
4265
4266 fi
4267   if test "${ac_cv_path_install+set}" = set; then
4268     INSTALL=$ac_cv_path_install
4269   else
4270     # As a last resort, use the slow shell script.  Don't cache a
4271     # value for INSTALL within a source directory, because that will
4272     # break other packages using the cache if that directory is
4273     # removed, or if the value is a relative name.
4274     INSTALL=$ac_install_sh
4275   fi
4276 fi
4277 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4278 echo "${ECHO_T}$INSTALL" >&6; }
4279
4280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4281 # It thinks the first close brace ends the variable substitution.
4282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4283
4284 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4285
4286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4287
4288 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4289 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4290 LN_S=$as_ln_s
4291 if test "$LN_S" = "ln -s"; then
4292   { echo "$as_me:$LINENO: result: yes" >&5
4293 echo "${ECHO_T}yes" >&6; }
4294 else
4295   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4296 echo "${ECHO_T}no, using $LN_S" >&6; }
4297 fi
4298
4299 if test "x$CC" != xcc; then
4300   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4301 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4302 else
4303   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4304 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4305 fi
4306 set dummy $CC; ac_cc=`echo $2 |
4307                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4308 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 # Make sure it works both with $CC and with simple cc.
4327 # We do the test twice because some compilers refuse to overwrite an
4328 # existing .o file with -o, though they will create one.
4329 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330 rm -f conftest2.*
4331 if { (case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342   *) ac_try_echo=$ac_try;;
4343 esac
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345   (eval "$ac_try") 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); };
4349 then
4350   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4351   if test "x$CC" != xcc; then
4352     # Test first that cc exists at all.
4353     if { ac_try='cc -c conftest.$ac_ext >&5'
4354   { (case "(($ac_try" in
4355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356   *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359   (eval "$ac_try") 2>&5
4360   ac_status=$?
4361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362   (exit $ac_status); }; }; then
4363       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4364       rm -f conftest2.*
4365       if { (case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370   (eval "$ac_try") 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); } &&
4374          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); };
4383       then
4384         # cc works too.
4385         :
4386       else
4387         # cc exists but doesn't like -o.
4388         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4389       fi
4390     fi
4391   fi
4392 else
4393   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4394 fi
4395 rm -f core conftest*
4396
4397 fi
4398 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4399   { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; }
4401 else
4402   { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }
4404
4405 cat >>confdefs.h <<\_ACEOF
4406 #define NO_MINUS_C_MINUS_O 1
4407 _ACEOF
4408
4409 fi
4410
4411 # FIXME: we rely on the cache variable name because
4412 # there is no other way.
4413 set dummy $CC
4414 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4415 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4416    # Losing compiler, so override with the script.
4417    # FIXME: It is wrong to rewrite CC.
4418    # But if we don't then we get into trouble of one sort or another.
4419    # A longer-term fix would be to have automake use am__CC in this case,
4420    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4421    CC="$am_aux_dir/compile $CC"
4422 fi
4423
4424
4425
4426
4427
4428
4429         { echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4430 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6; }
4431 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434
4435                 ac_ext=cpp
4436 ac_cpp='$CXXCPP $CPPFLAGS'
4437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4440
4441                 cat >conftest.$ac_ext <<_ACEOF
4442
4443                     #include <ostream>
4444
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (ac_try="$ac_compile"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453   (eval "$ac_compile") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } && {
4460          test -z "$ac_cxx_werror_flag" ||
4461          test ! -s conftest.err
4462        } && test -s conftest.$ac_objext; then
4463   ensc_cv_cxx_cxxcompiler=yes
4464 else
4465   echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468         ensc_cv_cxx_cxxcompiler=no
4469 fi
4470
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472                 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477
4478
4479 fi
4480 { echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4481 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6; }
4482
4483          if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4484   ENSC_HAVE_CXX_COMPILER_TRUE=
4485   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4486 else
4487   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4488   ENSC_HAVE_CXX_COMPILER_FALSE=
4489 fi
4490
4491
4492         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4493                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4494 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4495         fi
4496
4497
4498
4499
4500
4501         { echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4502 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6; }
4503 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4504   echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506
4507                 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513                 cat >conftest.$ac_ext <<_ACEOF
4514
4515 int main(int argc, char *argv) {
4516   struct { int x; }   a = { .x = argc };
4517   if (0) return 0;
4518   int b;
4519 }
4520
4521 _ACEOF
4522 rm -f conftest.$ac_objext
4523 if { (ac_try="$ac_compile"
4524 case "(($ac_try" in
4525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526   *) ac_try_echo=$ac_try;;
4527 esac
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529   (eval "$ac_compile") 2>conftest.er1
4530   ac_status=$?
4531   grep -v '^ *+' conftest.er1 >conftest.err
4532   rm -f conftest.er1
4533   cat conftest.err >&5
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } && {
4536          test -z "$ac_c_werror_flag" ||
4537          test ! -s conftest.err
4538        } && test -s conftest.$ac_objext; then
4539   ensc_cv_c99_c99compiler=yes
4540 else
4541   echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544         ensc_cv_c99_c99compiler=no
4545 fi
4546
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548                 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554
4555 fi
4556 { echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4557 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6; }
4558
4559          if test x"$ensc_cv_c99_c99compiler" = xyes; then
4560   ENSC_HAVE_C99_COMPILER_TRUE=
4561   ENSC_HAVE_C99_COMPILER_FALSE='#'
4562 else
4563   ENSC_HAVE_C99_COMPILER_TRUE='#'
4564   ENSC_HAVE_C99_COMPILER_FALSE=
4565 fi
4566
4567
4568         if test x"$ensc_cv_c99_c99compiler" = xno; then
4569                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4570 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4571         fi
4572
4573
4574
4575         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4576
4577
4578         ENSC_PATHPROG_SED=
4579
4580
4581
4582
4583
4584
4585
4586         if test -z ""; then
4587                 rq=true
4588         else
4589                 rq=false
4590         fi
4591
4592         if $rq; then
4593                 ensc_dflt=
4594         else
4595                 ensc_dflt=""
4596         fi
4597
4598         for ac_prog in awk
4599 do
4600   # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_path_AWK+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   case $AWK in
4608   [\\/]* | ?:[\\/]*)
4609   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4610   ;;
4611   *)
4612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $ensc_searchpath
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625 IFS=$as_save_IFS
4626
4627   ;;
4628 esac
4629 fi
4630 AWK=$ac_cv_path_AWK
4631 if test -n "$AWK"; then
4632   { echo "$as_me:$LINENO: result: $AWK" >&5
4633 echo "${ECHO_T}$AWK" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640   test -n "$AWK" && break
4641 done
4642 test -n "$AWK" || AWK="$ensc_dflt"
4643
4644
4645         if test -z "${AWK}" && $rq; then
4646                 if test -z ""; then
4647                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4648 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4649    { (exit 1); exit 1; }; }
4650                 else
4651                         { { echo "$as_me:$LINENO: error:
4652 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4653 " >&5
4654 echo "$as_me: error:
4655 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4656 " >&2;}
4657    { (exit 1); exit 1; }; }
4658                 fi
4659         fi
4660
4661         if test -e "${AWK}"; then
4662                 AWK=`readlink -f "${AWK}"`
4663         fi
4664
4665         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4666
4667         test "${AWK}"
4668
4669
4670
4671
4672         if test -z ""; then
4673                 rq=true
4674         else
4675                 rq=false
4676         fi
4677
4678         if $rq; then
4679                 ensc_dflt=
4680         else
4681                 ensc_dflt=""
4682         fi
4683
4684         for ac_prog in cat
4685 do
4686   # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_path_CAT+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   case $CAT in
4694   [\\/]* | ?:[\\/]*)
4695   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4696   ;;
4697   *)
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $ensc_searchpath
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713   ;;
4714 esac
4715 fi
4716 CAT=$ac_cv_path_CAT
4717 if test -n "$CAT"; then
4718   { echo "$as_me:$LINENO: result: $CAT" >&5
4719 echo "${ECHO_T}$CAT" >&6; }
4720 else
4721   { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4723 fi
4724
4725
4726   test -n "$CAT" && break
4727 done
4728 test -n "$CAT" || CAT="$ensc_dflt"
4729
4730
4731         if test -z "${CAT}" && $rq; then
4732                 if test -z ""; then
4733                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4734 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4735    { (exit 1); exit 1; }; }
4736                 else
4737                         { { echo "$as_me:$LINENO: error:
4738 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4739 " >&5
4740 echo "$as_me: error:
4741 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4742 " >&2;}
4743    { (exit 1); exit 1; }; }
4744                 fi
4745         fi
4746
4747         if test -e "${CAT}"; then
4748                 CAT=`readlink -f "${CAT}"`
4749         fi
4750
4751         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4752
4753         test "${CAT}"
4754
4755
4756
4757
4758         if test -z ""; then
4759                 rq=true
4760         else
4761                 rq=false
4762         fi
4763
4764         if $rq; then
4765                 ensc_dflt=
4766         else
4767                 ensc_dflt=""
4768         fi
4769
4770         for ac_prog in chown
4771 do
4772   # Extract the first word of "$ac_prog", so it can be a program name with args.
4773 set dummy $ac_prog; ac_word=$2
4774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4776 if test "${ac_cv_path_CHOWN+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779   case $CHOWN in
4780   [\\/]* | ?:[\\/]*)
4781   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4782   ;;
4783   *)
4784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $ensc_searchpath
4786 do
4787   IFS=$as_save_IFS
4788   test -z "$as_dir" && as_dir=.
4789   for ac_exec_ext in '' $ac_executable_extensions; do
4790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793     break 2
4794   fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799   ;;
4800 esac
4801 fi
4802 CHOWN=$ac_cv_path_CHOWN
4803 if test -n "$CHOWN"; then
4804   { echo "$as_me:$LINENO: result: $CHOWN" >&5
4805 echo "${ECHO_T}$CHOWN" >&6; }
4806 else
4807   { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4809 fi
4810
4811
4812   test -n "$CHOWN" && break
4813 done
4814 test -n "$CHOWN" || CHOWN="$ensc_dflt"
4815
4816
4817         if test -z "${CHOWN}" && $rq; then
4818                 if test -z ""; then
4819                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
4820 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4821    { (exit 1); exit 1; }; }
4822                 else
4823                         { { echo "$as_me:$LINENO: error:
4824 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4825 " >&5
4826 echo "$as_me: error:
4827 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
4828 " >&2;}
4829    { (exit 1); exit 1; }; }
4830                 fi
4831         fi
4832
4833         if test -e "${CHOWN}"; then
4834                 CHOWN=`readlink -f "${CHOWN}"`
4835         fi
4836
4837         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
4838
4839         test "${CHOWN}"
4840
4841
4842
4843
4844         if test -z ""; then
4845                 rq=true
4846         else
4847                 rq=false
4848         fi
4849
4850         if $rq; then
4851                 ensc_dflt=
4852         else
4853                 ensc_dflt=""
4854         fi
4855
4856         for ac_prog in cmp
4857 do
4858   # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_path_CMP+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   case $CMP in
4866   [\\/]* | ?:[\\/]*)
4867   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4868   ;;
4869   *)
4870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $ensc_searchpath
4872 do
4873   IFS=$as_save_IFS
4874   test -z "$as_dir" && as_dir=.
4875   for ac_exec_ext in '' $ac_executable_extensions; do
4876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879     break 2
4880   fi
4881 done
4882 done
4883 IFS=$as_save_IFS
4884
4885   ;;
4886 esac
4887 fi
4888 CMP=$ac_cv_path_CMP
4889 if test -n "$CMP"; then
4890   { echo "$as_me:$LINENO: result: $CMP" >&5
4891 echo "${ECHO_T}$CMP" >&6; }
4892 else
4893   { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4895 fi
4896
4897
4898   test -n "$CMP" && break
4899 done
4900 test -n "$CMP" || CMP="$ensc_dflt"
4901
4902
4903         if test -z "${CMP}" && $rq; then
4904                 if test -z ""; then
4905                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
4906 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4907    { (exit 1); exit 1; }; }
4908                 else
4909                         { { echo "$as_me:$LINENO: error:
4910 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4911 " >&5
4912 echo "$as_me: error:
4913 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
4914 " >&2;}
4915    { (exit 1); exit 1; }; }
4916                 fi
4917         fi
4918
4919         if test -e "${CMP}"; then
4920                 CMP=`readlink -f "${CMP}"`
4921         fi
4922
4923         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
4924
4925         test "${CMP}"
4926
4927
4928
4929
4930         if test -z ""; then
4931                 rq=true
4932         else
4933                 rq=false
4934         fi
4935
4936         if $rq; then
4937                 ensc_dflt=
4938         else
4939                 ensc_dflt=""
4940         fi
4941
4942         for ac_prog in cp
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4948 if test "${ac_cv_path_CP+set}" = set; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   case $CP in
4952   [\\/]* | ?:[\\/]*)
4953   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4954   ;;
4955   *)
4956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $ensc_searchpath
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961   for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968 done
4969 IFS=$as_save_IFS
4970
4971   ;;
4972 esac
4973 fi
4974 CP=$ac_cv_path_CP
4975 if test -n "$CP"; then
4976   { echo "$as_me:$LINENO: result: $CP" >&5
4977 echo "${ECHO_T}$CP" >&6; }
4978 else
4979   { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4981 fi
4982
4983
4984   test -n "$CP" && break
4985 done
4986 test -n "$CP" || CP="$ensc_dflt"
4987
4988
4989         if test -z "${CP}" && $rq; then
4990                 if test -z ""; then
4991                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
4992 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4993    { (exit 1); exit 1; }; }
4994                 else
4995                         { { echo "$as_me:$LINENO: error:
4996 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
4997 " >&5
4998 echo "$as_me: error:
4999 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5000 " >&2;}
5001    { (exit 1); exit 1; }; }
5002                 fi
5003         fi
5004
5005         if test -e "${CP}"; then
5006                 CP=`readlink -f "${CP}"`
5007         fi
5008
5009         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
5010
5011         test "${CP}"
5012
5013
5014
5015
5016         if test -z ""; then
5017                 rq=true
5018         else
5019                 rq=false
5020         fi
5021
5022         if $rq; then
5023                 ensc_dflt=
5024         else
5025                 ensc_dflt=""
5026         fi
5027
5028         for ac_prog in dirname
5029 do
5030   # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_path_DIRNAME+set}" = set; then
5035   echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037   case $DIRNAME in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $ensc_searchpath
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057   ;;
5058 esac
5059 fi
5060 DIRNAME=$ac_cv_path_DIRNAME
5061 if test -n "$DIRNAME"; then
5062   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5063 echo "${ECHO_T}$DIRNAME" >&6; }
5064 else
5065   { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5067 fi
5068
5069
5070   test -n "$DIRNAME" && break
5071 done
5072 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
5073
5074
5075         if test -z "${DIRNAME}" && $rq; then
5076                 if test -z ""; then
5077                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
5078 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5079    { (exit 1); exit 1; }; }
5080                 else
5081                         { { echo "$as_me:$LINENO: error:
5082 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5083 " >&5
5084 echo "$as_me: error:
5085 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5086 " >&2;}
5087    { (exit 1); exit 1; }; }
5088                 fi
5089         fi
5090
5091         if test -e "${DIRNAME}"; then
5092                 DIRNAME=`readlink -f "${DIRNAME}"`
5093         fi
5094
5095         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
5096
5097         test "${DIRNAME}"
5098
5099
5100
5101
5102         if test -z ""; then
5103                 rq=true
5104         else
5105                 rq=false
5106         fi
5107
5108         if $rq; then
5109                 ensc_dflt=
5110         else
5111                 ensc_dflt=""
5112         fi
5113
5114         for ac_prog in egrep
5115 do
5116   # Extract the first word of "$ac_prog", so it can be a program name with args.
5117 set dummy $ac_prog; ac_word=$2
5118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5120 if test "${ac_cv_path_EGREP+set}" = set; then
5121   echo $ECHO_N "(cached) $ECHO_C" >&6
5122 else
5123   case $EGREP in
5124   [\\/]* | ?:[\\/]*)
5125   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
5126   ;;
5127   *)
5128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $ensc_searchpath
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133   for ac_exec_ext in '' $ac_executable_extensions; do
5134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
5136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137     break 2
5138   fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143   ;;
5144 esac
5145 fi
5146 EGREP=$ac_cv_path_EGREP
5147 if test -n "$EGREP"; then
5148   { echo "$as_me:$LINENO: result: $EGREP" >&5
5149 echo "${ECHO_T}$EGREP" >&6; }
5150 else
5151   { echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6; }
5153 fi
5154
5155
5156   test -n "$EGREP" && break
5157 done
5158 test -n "$EGREP" || EGREP="$ensc_dflt"
5159
5160
5161         if test -z "${EGREP}" && $rq; then
5162                 if test -z ""; then
5163                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
5164 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5165    { (exit 1); exit 1; }; }
5166                 else
5167                         { { echo "$as_me:$LINENO: error:
5168 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5169 " >&5
5170 echo "$as_me: error:
5171 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5172 " >&2;}
5173    { (exit 1); exit 1; }; }
5174                 fi
5175         fi
5176
5177         if test -e "${EGREP}"; then
5178                 EGREP=`readlink -f "${EGREP}"`
5179         fi
5180
5181         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
5182
5183         test "${EGREP}"
5184
5185
5186
5187
5188         if test -z ""; then
5189                 rq=true
5190         else
5191                 rq=false
5192         fi
5193
5194         if $rq; then
5195                 ensc_dflt=
5196         else
5197                 ensc_dflt=""
5198         fi
5199
5200         for ac_prog in env
5201 do
5202   # Extract the first word of "$ac_prog", so it can be a program name with args.
5203 set dummy $ac_prog; ac_word=$2
5204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5206 if test "${ac_cv_path_ENV+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   case $ENV in
5210   [\\/]* | ?:[\\/]*)
5211   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
5212   ;;
5213   *)
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $ensc_searchpath
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219   for ac_exec_ext in '' $ac_executable_extensions; do
5220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
5222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229   ;;
5230 esac
5231 fi
5232 ENV=$ac_cv_path_ENV
5233 if test -n "$ENV"; then
5234   { echo "$as_me:$LINENO: result: $ENV" >&5
5235 echo "${ECHO_T}$ENV" >&6; }
5236 else
5237   { echo "$as_me:$LINENO: result: no" >&5
5238 echo "${ECHO_T}no" >&6; }
5239 fi
5240
5241
5242   test -n "$ENV" && break
5243 done
5244 test -n "$ENV" || ENV="$ensc_dflt"
5245
5246
5247         if test -z "${ENV}" && $rq; then
5248                 if test -z ""; then
5249                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
5250 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5251    { (exit 1); exit 1; }; }
5252                 else
5253                         { { echo "$as_me:$LINENO: error:
5254 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5255 " >&5
5256 echo "$as_me: error:
5257 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5258 " >&2;}
5259    { (exit 1); exit 1; }; }
5260                 fi
5261         fi
5262
5263         if test -e "${ENV}"; then
5264                 ENV=`readlink -f "${ENV}"`
5265         fi
5266
5267         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
5268
5269         test "${ENV}"
5270
5271
5272
5273
5274         if test -z ""; then
5275                 rq=true
5276         else
5277                 rq=false
5278         fi
5279
5280         if $rq; then
5281                 ensc_dflt=
5282         else
5283                 ensc_dflt=""
5284         fi
5285
5286         for ac_prog in grep
5287 do
5288   # Extract the first word of "$ac_prog", so it can be a program name with args.
5289 set dummy $ac_prog; ac_word=$2
5290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292 if test "${ac_cv_path_GREP+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   case $GREP in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $ensc_searchpath
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305   for ac_exec_ext in '' $ac_executable_extensions; do
5306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5307     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312 done
5313 IFS=$as_save_IFS
5314
5315   ;;
5316 esac
5317 fi
5318 GREP=$ac_cv_path_GREP
5319 if test -n "$GREP"; then
5320   { echo "$as_me:$LINENO: result: $GREP" >&5
5321 echo "${ECHO_T}$GREP" >&6; }
5322 else
5323   { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5325 fi
5326
5327
5328   test -n "$GREP" && break
5329 done
5330 test -n "$GREP" || GREP="$ensc_dflt"
5331
5332
5333         if test -z "${GREP}" && $rq; then
5334                 if test -z ""; then
5335                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
5336 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5337    { (exit 1); exit 1; }; }
5338                 else
5339                         { { echo "$as_me:$LINENO: error:
5340 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5341 " >&5
5342 echo "$as_me: error:
5343 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5344 " >&2;}
5345    { (exit 1); exit 1; }; }
5346                 fi
5347         fi
5348
5349         if test -e "${GREP}"; then
5350                 GREP=`readlink -f "${GREP}"`
5351         fi
5352
5353         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
5354
5355         test "${GREP}"
5356
5357
5358
5359
5360         if test -z ""; then
5361                 rq=true
5362         else
5363                 rq=false
5364         fi
5365
5366         if $rq; then
5367                 ensc_dflt=
5368         else
5369                 ensc_dflt=""
5370         fi
5371
5372         for ac_prog in ln
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_path_LN+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   case $LN in
5382   [\\/]* | ?:[\\/]*)
5383   ac_cv_path_LN="$LN" # Let the user override the test with a path.
5384   ;;
5385   *)
5386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $ensc_searchpath
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401   ;;
5402 esac
5403 fi
5404 LN=$ac_cv_path_LN
5405 if test -n "$LN"; then
5406   { echo "$as_me:$LINENO: result: $LN" >&5
5407 echo "${ECHO_T}$LN" >&6; }
5408 else
5409   { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5411 fi
5412
5413
5414   test -n "$LN" && break
5415 done
5416 test -n "$LN" || LN="$ensc_dflt"
5417
5418
5419         if test -z "${LN}" && $rq; then
5420                 if test -z ""; then
5421                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
5422 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5423    { (exit 1); exit 1; }; }
5424                 else
5425                         { { echo "$as_me:$LINENO: error:
5426 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5427 " >&5
5428 echo "$as_me: error:
5429 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5430 " >&2;}
5431    { (exit 1); exit 1; }; }
5432                 fi
5433         fi
5434
5435         if test -e "${LN}"; then
5436                 LN=`readlink -f "${LN}"`
5437         fi
5438
5439         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
5440
5441         test "${LN}"
5442
5443
5444
5445
5446         if test -z ""; then
5447                 rq=true
5448         else
5449                 rq=false
5450         fi
5451
5452         if $rq; then
5453                 ensc_dflt=
5454         else
5455                 ensc_dflt=""
5456         fi
5457
5458         for ac_prog in mkdir
5459 do
5460   # Extract the first word of "$ac_prog", so it can be a program name with args.
5461 set dummy $ac_prog; ac_word=$2
5462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464 if test "${ac_cv_path_MKDIR+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   case $MKDIR in
5468   [\\/]* | ?:[\\/]*)
5469   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5470   ;;
5471   *)
5472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $ensc_searchpath
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477   for ac_exec_ext in '' $ac_executable_extensions; do
5478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487   ;;
5488 esac
5489 fi
5490 MKDIR=$ac_cv_path_MKDIR
5491 if test -n "$MKDIR"; then
5492   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5493 echo "${ECHO_T}$MKDIR" >&6; }
5494 else
5495   { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5497 fi
5498
5499
5500   test -n "$MKDIR" && break
5501 done
5502 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5503
5504
5505         if test -z "${MKDIR}" && $rq; then
5506                 if test -z ""; then
5507                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5508 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5509    { (exit 1); exit 1; }; }
5510                 else
5511                         { { echo "$as_me:$LINENO: error:
5512 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5513 " >&5
5514 echo "$as_me: error:
5515 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5516 " >&2;}
5517    { (exit 1); exit 1; }; }
5518                 fi
5519         fi
5520
5521         if test -e "${MKDIR}"; then
5522                 MKDIR=`readlink -f "${MKDIR}"`
5523         fi
5524
5525         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5526
5527         test "${MKDIR}"
5528
5529
5530
5531
5532         if test -z ""; then
5533                 rq=true
5534         else
5535                 rq=false
5536         fi
5537
5538         if $rq; then
5539                 ensc_dflt=
5540         else
5541                 ensc_dflt=""
5542         fi
5543
5544         for ac_prog in mkfifo
5545 do
5546   # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550 if test "${ac_cv_path_MKFIFO+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   case $MKFIFO in
5554   [\\/]* | ?:[\\/]*)
5555   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5556   ;;
5557   *)
5558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $ensc_searchpath
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563   for ac_exec_ext in '' $ac_executable_extensions; do
5564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567     break 2
5568   fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573   ;;
5574 esac
5575 fi
5576 MKFIFO=$ac_cv_path_MKFIFO
5577 if test -n "$MKFIFO"; then
5578   { echo "$as_me:$LINENO: result: $MKFIFO" >&5
5579 echo "${ECHO_T}$MKFIFO" >&6; }
5580 else
5581   { echo "$as_me:$LINENO: result: no" >&5
5582 echo "${ECHO_T}no" >&6; }
5583 fi
5584
5585
5586   test -n "$MKFIFO" && break
5587 done
5588 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5589
5590
5591         if test -z "${MKFIFO}" && $rq; then
5592                 if test -z ""; then
5593                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5594 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5595    { (exit 1); exit 1; }; }
5596                 else
5597                         { { echo "$as_me:$LINENO: error:
5598 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5599 " >&5
5600 echo "$as_me: error:
5601 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5602 " >&2;}
5603    { (exit 1); exit 1; }; }
5604                 fi
5605         fi
5606
5607         if test -e "${MKFIFO}"; then
5608                 MKFIFO=`readlink -f "${MKFIFO}"`
5609         fi
5610
5611         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5612
5613         test "${MKFIFO}"
5614
5615
5616
5617
5618         if test -z ""; then
5619                 rq=true
5620         else
5621                 rq=false
5622         fi
5623
5624         if $rq; then
5625                 ensc_dflt=
5626         else
5627                 ensc_dflt=""
5628         fi
5629
5630         for ac_prog in mktemp
5631 do
5632   # Extract the first word of "$ac_prog", so it can be a program name with args.
5633 set dummy $ac_prog; ac_word=$2
5634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5636 if test "${ac_cv_path_MKTEMP+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   case $MKTEMP in
5640   [\\/]* | ?:[\\/]*)
5641   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5642   ;;
5643   *)
5644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $ensc_searchpath
5646 do
5647   IFS=$as_save_IFS
5648   test -z "$as_dir" && as_dir=.
5649   for ac_exec_ext in '' $ac_executable_extensions; do
5650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5651     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653     break 2
5654   fi
5655 done
5656 done
5657 IFS=$as_save_IFS
5658
5659   ;;
5660 esac
5661 fi
5662 MKTEMP=$ac_cv_path_MKTEMP
5663 if test -n "$MKTEMP"; then
5664   { echo "$as_me:$LINENO: result: $MKTEMP" >&5
5665 echo "${ECHO_T}$MKTEMP" >&6; }
5666 else
5667   { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5669 fi
5670
5671
5672   test -n "$MKTEMP" && break
5673 done
5674 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5675
5676
5677         if test -z "${MKTEMP}" && $rq; then
5678                 if test -z ""; then
5679                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5680 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5681    { (exit 1); exit 1; }; }
5682                 else
5683                         { { echo "$as_me:$LINENO: error:
5684 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5685 " >&5
5686 echo "$as_me: error:
5687 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5688 " >&2;}
5689    { (exit 1); exit 1; }; }
5690                 fi
5691         fi
5692
5693         if test -e "${MKTEMP}"; then
5694                 MKTEMP=`readlink -f "${MKTEMP}"`
5695         fi
5696
5697         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5698
5699         test "${MKTEMP}"
5700
5701
5702
5703
5704         if test -z ""; then
5705                 rq=true
5706         else
5707                 rq=false
5708         fi
5709
5710         if $rq; then
5711                 ensc_dflt=
5712         else
5713                 ensc_dflt=""
5714         fi
5715
5716         for ac_prog in mount
5717 do
5718   # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5722 if test "${ac_cv_path_MOUNT+set}" = set; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   case $MOUNT in
5726   [\\/]* | ?:[\\/]*)
5727   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5728   ;;
5729   *)
5730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $ensc_searchpath
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735   for ac_exec_ext in '' $ac_executable_extensions; do
5736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742 done
5743 IFS=$as_save_IFS
5744
5745   ;;
5746 esac
5747 fi
5748 MOUNT=$ac_cv_path_MOUNT
5749 if test -n "$MOUNT"; then
5750   { echo "$as_me:$LINENO: result: $MOUNT" >&5
5751 echo "${ECHO_T}$MOUNT" >&6; }
5752 else
5753   { echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6; }
5755 fi
5756
5757
5758   test -n "$MOUNT" && break
5759 done
5760 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5761
5762
5763         if test -z "${MOUNT}" && $rq; then
5764                 if test -z ""; then
5765                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5766 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5767    { (exit 1); exit 1; }; }
5768                 else
5769                         { { echo "$as_me:$LINENO: error:
5770 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5771 " >&5
5772 echo "$as_me: error:
5773 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5774 " >&2;}
5775    { (exit 1); exit 1; }; }
5776                 fi
5777         fi
5778
5779         if test -e "${MOUNT}"; then
5780                 MOUNT=`readlink -f "${MOUNT}"`
5781         fi
5782
5783         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5784
5785         test "${MOUNT}"
5786
5787
5788
5789
5790         if test -z ""; then
5791                 rq=true
5792         else
5793                 rq=false
5794         fi
5795
5796         if $rq; then
5797                 ensc_dflt=
5798         else
5799                 ensc_dflt=""
5800         fi
5801
5802         for ac_prog in mv
5803 do
5804   # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_path_MV+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   case $MV in
5812   [\\/]* | ?:[\\/]*)
5813   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5814   ;;
5815   *)
5816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $ensc_searchpath
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829 IFS=$as_save_IFS
5830
5831   ;;
5832 esac
5833 fi
5834 MV=$ac_cv_path_MV
5835 if test -n "$MV"; then
5836   { echo "$as_me:$LINENO: result: $MV" >&5
5837 echo "${ECHO_T}$MV" >&6; }
5838 else
5839   { echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6; }
5841 fi
5842
5843
5844   test -n "$MV" && break
5845 done
5846 test -n "$MV" || MV="$ensc_dflt"
5847
5848
5849         if test -z "${MV}" && $rq; then
5850                 if test -z ""; then
5851                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
5852 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5853    { (exit 1); exit 1; }; }
5854                 else
5855                         { { echo "$as_me:$LINENO: error:
5856 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5857 " >&5
5858 echo "$as_me: error:
5859 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
5860 " >&2;}
5861    { (exit 1); exit 1; }; }
5862                 fi
5863         fi
5864
5865         if test -e "${MV}"; then
5866                 MV=`readlink -f "${MV}"`
5867         fi
5868
5869         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
5870
5871         test "${MV}"
5872
5873
5874
5875
5876         if test -z ""; then
5877                 rq=true
5878         else
5879                 rq=false
5880         fi
5881
5882         if $rq; then
5883                 ensc_dflt=
5884         else
5885                 ensc_dflt=""
5886         fi
5887
5888         for ac_prog in nice
5889 do
5890   # Extract the first word of "$ac_prog", so it can be a program name with args.
5891 set dummy $ac_prog; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_path_NICE+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   case $NICE in
5898   [\\/]* | ?:[\\/]*)
5899   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
5900   ;;
5901   *)
5902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $ensc_searchpath
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917   ;;
5918 esac
5919 fi
5920 NICE=$ac_cv_path_NICE
5921 if test -n "$NICE"; then
5922   { echo "$as_me:$LINENO: result: $NICE" >&5
5923 echo "${ECHO_T}$NICE" >&6; }
5924 else
5925   { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5927 fi
5928
5929
5930   test -n "$NICE" && break
5931 done
5932 test -n "$NICE" || NICE="$ensc_dflt"
5933
5934
5935         if test -z "${NICE}" && $rq; then
5936                 if test -z ""; then
5937                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
5938 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5939    { (exit 1); exit 1; }; }
5940                 else
5941                         { { echo "$as_me:$LINENO: error:
5942 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5943 " >&5
5944 echo "$as_me: error:
5945 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
5946 " >&2;}
5947    { (exit 1); exit 1; }; }
5948                 fi
5949         fi
5950
5951         if test -e "${NICE}"; then
5952                 NICE=`readlink -f "${NICE}"`
5953         fi
5954
5955         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
5956
5957         test "${NICE}"
5958
5959
5960
5961
5962         if test -z ""; then
5963                 rq=true
5964         else
5965                 rq=false
5966         fi
5967
5968         if $rq; then
5969                 ensc_dflt=
5970         else
5971                 ensc_dflt=""
5972         fi
5973
5974         for ac_prog in ps
5975 do
5976   # Extract the first word of "$ac_prog", so it can be a program name with args.
5977 set dummy $ac_prog; ac_word=$2
5978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_PS+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   case $PS in
5984   [\\/]* | ?:[\\/]*)
5985   ac_cv_path_PS="$PS" # Let the user override the test with a path.
5986   ;;
5987   *)
5988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 for as_dir in $ensc_searchpath
5990 do
5991   IFS=$as_save_IFS
5992   test -z "$as_dir" && as_dir=.
5993   for ac_exec_ext in '' $ac_executable_extensions; do
5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
5996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997     break 2
5998   fi
5999 done
6000 done
6001 IFS=$as_save_IFS
6002
6003   ;;
6004 esac
6005 fi
6006 PS=$ac_cv_path_PS
6007 if test -n "$PS"; then
6008   { echo "$as_me:$LINENO: result: $PS" >&5
6009 echo "${ECHO_T}$PS" >&6; }
6010 else
6011   { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6013 fi
6014
6015
6016   test -n "$PS" && break
6017 done
6018 test -n "$PS" || PS="$ensc_dflt"
6019
6020
6021         if test -z "${PS}" && $rq; then
6022                 if test -z ""; then
6023                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
6024 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6025    { (exit 1); exit 1; }; }
6026                 else
6027                         { { echo "$as_me:$LINENO: error:
6028 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6029 " >&5
6030 echo "$as_me: error:
6031 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6032 " >&2;}
6033    { (exit 1); exit 1; }; }
6034                 fi
6035         fi
6036
6037         if test -e "${PS}"; then
6038                 PS=`readlink -f "${PS}"`
6039         fi
6040
6041         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
6042
6043         test "${PS}"
6044
6045
6046
6047
6048         if test -z ""; then
6049                 rq=true
6050         else
6051                 rq=false
6052         fi
6053
6054         if $rq; then
6055                 ensc_dflt=
6056         else
6057                 ensc_dflt=""
6058         fi
6059
6060         for ac_prog in rm
6061 do
6062   # Extract the first word of "$ac_prog", so it can be a program name with args.
6063 set dummy $ac_prog; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_RM+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   case $RM in
6070   [\\/]* | ?:[\\/]*)
6071   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6072   ;;
6073   *)
6074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $ensc_searchpath
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089   ;;
6090 esac
6091 fi
6092 RM=$ac_cv_path_RM
6093 if test -n "$RM"; then
6094   { echo "$as_me:$LINENO: result: $RM" >&5
6095 echo "${ECHO_T}$RM" >&6; }
6096 else
6097   { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099 fi
6100
6101
6102   test -n "$RM" && break
6103 done
6104 test -n "$RM" || RM="$ensc_dflt"
6105
6106
6107         if test -z "${RM}" && $rq; then
6108                 if test -z ""; then
6109                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
6110 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6111    { (exit 1); exit 1; }; }
6112                 else
6113                         { { echo "$as_me:$LINENO: error:
6114 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6115 " >&5
6116 echo "$as_me: error:
6117 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6118 " >&2;}
6119    { (exit 1); exit 1; }; }
6120                 fi
6121         fi
6122
6123         if test -e "${RM}"; then
6124                 RM=`readlink -f "${RM}"`
6125         fi
6126
6127         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
6128
6129         test "${RM}"
6130
6131
6132
6133
6134         if test -z ""; then
6135                 rq=true
6136         else
6137                 rq=false
6138         fi
6139
6140         if $rq; then
6141                 ensc_dflt=
6142         else
6143                 ensc_dflt=""
6144         fi
6145
6146         for ac_prog in rmdir
6147 do
6148   # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6152 if test "${ac_cv_path_RMDIR+set}" = set; then
6153   echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155   case $RMDIR in
6156   [\\/]* | ?:[\\/]*)
6157   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
6158   ;;
6159   *)
6160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6161 for as_dir in $ensc_searchpath
6162 do
6163   IFS=$as_save_IFS
6164   test -z "$as_dir" && as_dir=.
6165   for ac_exec_ext in '' $ac_executable_extensions; do
6166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
6168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169     break 2
6170   fi
6171 done
6172 done
6173 IFS=$as_save_IFS
6174
6175   ;;
6176 esac
6177 fi
6178 RMDIR=$ac_cv_path_RMDIR
6179 if test -n "$RMDIR"; then
6180   { echo "$as_me:$LINENO: result: $RMDIR" >&5
6181 echo "${ECHO_T}$RMDIR" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188   test -n "$RMDIR" && break
6189 done
6190 test -n "$RMDIR" || RMDIR="$ensc_dflt"
6191
6192
6193         if test -z "${RMDIR}" && $rq; then
6194                 if test -z ""; then
6195                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
6196 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6197    { (exit 1); exit 1; }; }
6198                 else
6199                         { { echo "$as_me:$LINENO: error:
6200 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6201 " >&5
6202 echo "$as_me: error:
6203 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6204 " >&2;}
6205    { (exit 1); exit 1; }; }
6206                 fi
6207         fi
6208
6209         if test -e "${RMDIR}"; then
6210                 RMDIR=`readlink -f "${RMDIR}"`
6211         fi
6212
6213         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
6214
6215         test "${RMDIR}"
6216
6217
6218
6219
6220         if test -z ""; then
6221                 rq=true
6222         else
6223                 rq=false
6224         fi
6225
6226         if $rq; then
6227                 ensc_dflt=
6228         else
6229                 ensc_dflt=""
6230         fi
6231
6232         for ac_prog in sed
6233 do
6234   # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6238 if test "${ac_cv_path_SED+set}" = set; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   case $SED in
6242   [\\/]* | ?:[\\/]*)
6243   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6244   ;;
6245   *)
6246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $ensc_searchpath
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261   ;;
6262 esac
6263 fi
6264 SED=$ac_cv_path_SED
6265 if test -n "$SED"; then
6266   { echo "$as_me:$LINENO: result: $SED" >&5
6267 echo "${ECHO_T}$SED" >&6; }
6268 else
6269   { echo "$as_me:$LINENO: result: no" >&5
6270 echo "${ECHO_T}no" >&6; }
6271 fi
6272
6273
6274   test -n "$SED" && break
6275 done
6276 test -n "$SED" || SED="$ensc_dflt"
6277
6278
6279         if test -z "${SED}" && $rq; then
6280                 if test -z ""; then
6281                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
6282 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6283    { (exit 1); exit 1; }; }
6284                 else
6285                         { { echo "$as_me:$LINENO: error:
6286 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6287 " >&5
6288 echo "$as_me: error:
6289 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6290 " >&2;}
6291    { (exit 1); exit 1; }; }
6292                 fi
6293         fi
6294
6295         if test -e "${SED}"; then
6296                 SED=`readlink -f "${SED}"`
6297         fi
6298
6299         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
6300
6301         test "${SED}"
6302
6303
6304
6305
6306         if test -z ""; then
6307                 rq=true
6308         else
6309                 rq=false
6310         fi
6311
6312         if $rq; then
6313                 ensc_dflt=
6314         else
6315                 ensc_dflt=""
6316         fi
6317
6318         for ac_prog in sh
6319 do
6320   # Extract the first word of "$ac_prog", so it can be a program name with args.
6321 set dummy $ac_prog; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_SH+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   case $SH in
6328   [\\/]* | ?:[\\/]*)
6329   ac_cv_path_SH="$SH" # Let the user override the test with a path.
6330   ;;
6331   *)
6332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $ensc_searchpath
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347   ;;
6348 esac
6349 fi
6350 SH=$ac_cv_path_SH
6351 if test -n "$SH"; then
6352   { echo "$as_me:$LINENO: result: $SH" >&5
6353 echo "${ECHO_T}$SH" >&6; }
6354 else
6355   { echo "$as_me:$LINENO: result: no" >&5
6356 echo "${ECHO_T}no" >&6; }
6357 fi
6358
6359
6360   test -n "$SH" && break
6361 done
6362 test -n "$SH" || SH="$ensc_dflt"
6363
6364
6365         if test -z "${SH}" && $rq; then
6366                 if test -z ""; then
6367                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
6368 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6369    { (exit 1); exit 1; }; }
6370                 else
6371                         { { echo "$as_me:$LINENO: error:
6372 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6373 " >&5
6374 echo "$as_me: error:
6375 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6376 " >&2;}
6377    { (exit 1); exit 1; }; }
6378                 fi
6379         fi
6380
6381         if test -e "${SH}"; then
6382                 SH=`readlink -f "${SH}"`
6383         fi
6384
6385         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
6386
6387         test "${SH}"
6388
6389
6390
6391
6392         if test -z ""; then
6393                 rq=true
6394         else
6395                 rq=false
6396         fi
6397
6398         if $rq; then
6399                 ensc_dflt=
6400         else
6401                 ensc_dflt=""
6402         fi
6403
6404         for ac_prog in tac
6405 do
6406   # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6410 if test "${ac_cv_path_TAC+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   case $TAC in
6414   [\\/]* | ?:[\\/]*)
6415   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
6416   ;;
6417   *)
6418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $ensc_searchpath
6420 do
6421   IFS=$as_save_IFS
6422   test -z "$as_dir" && as_dir=.
6423   for ac_exec_ext in '' $ac_executable_extensions; do
6424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
6426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427     break 2
6428   fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433   ;;
6434 esac
6435 fi
6436 TAC=$ac_cv_path_TAC
6437 if test -n "$TAC"; then
6438   { echo "$as_me:$LINENO: result: $TAC" >&5
6439 echo "${ECHO_T}$TAC" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 fi
6444
6445
6446   test -n "$TAC" && break
6447 done
6448 test -n "$TAC" || TAC="$ensc_dflt"
6449
6450
6451         if test -z "${TAC}" && $rq; then
6452                 if test -z ""; then
6453                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
6454 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6455    { (exit 1); exit 1; }; }
6456                 else
6457                         { { echo "$as_me:$LINENO: error:
6458 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6459 " >&5
6460 echo "$as_me: error:
6461 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6462 " >&2;}
6463    { (exit 1); exit 1; }; }
6464                 fi
6465         fi
6466
6467         if test -e "${TAC}"; then
6468                 TAC=`readlink -f "${TAC}"`
6469         fi
6470
6471         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
6472
6473         test "${TAC}"
6474
6475
6476
6477
6478         if test -z ""; then
6479                 rq=true
6480         else
6481                 rq=false
6482         fi
6483
6484         if $rq; then
6485                 ensc_dflt=
6486         else
6487                 ensc_dflt=""
6488         fi
6489
6490         for ac_prog in tar
6491 do
6492   # Extract the first word of "$ac_prog", so it can be a program name with args.
6493 set dummy $ac_prog; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_path_TAR+set}" = set; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   case $TAR in
6500   [\\/]* | ?:[\\/]*)
6501   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6502   ;;
6503   *)
6504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $ensc_searchpath
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509   for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516 done
6517 IFS=$as_save_IFS
6518
6519   ;;
6520 esac
6521 fi
6522 TAR=$ac_cv_path_TAR
6523 if test -n "$TAR"; then
6524   { echo "$as_me:$LINENO: result: $TAR" >&5
6525 echo "${ECHO_T}$TAR" >&6; }
6526 else
6527   { echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6; }
6529 fi
6530
6531
6532   test -n "$TAR" && break
6533 done
6534 test -n "$TAR" || TAR="$ensc_dflt"
6535
6536
6537         if test -z "${TAR}" && $rq; then
6538                 if test -z ""; then
6539                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6540 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6541    { (exit 1); exit 1; }; }
6542                 else
6543                         { { echo "$as_me:$LINENO: error:
6544 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6545 " >&5
6546 echo "$as_me: error:
6547 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6548 " >&2;}
6549    { (exit 1); exit 1; }; }
6550                 fi
6551         fi
6552
6553         if test -e "${TAR}"; then
6554                 TAR=`readlink -f "${TAR}"`
6555         fi
6556
6557         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6558
6559         test "${TAR}"
6560
6561
6562
6563
6564         if test -z ""; then
6565                 rq=true
6566         else
6567                 rq=false
6568         fi
6569
6570         if $rq; then
6571                 ensc_dflt=
6572         else
6573                 ensc_dflt=""
6574         fi
6575
6576         for ac_prog in touch
6577 do
6578   # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_TOUCH+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   case $TOUCH in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $ensc_searchpath
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605   ;;
6606 esac
6607 fi
6608 TOUCH=$ac_cv_path_TOUCH
6609 if test -n "$TOUCH"; then
6610   { echo "$as_me:$LINENO: result: $TOUCH" >&5
6611 echo "${ECHO_T}$TOUCH" >&6; }
6612 else
6613   { echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6; }
6615 fi
6616
6617
6618   test -n "$TOUCH" && break
6619 done
6620 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6621
6622
6623         if test -z "${TOUCH}" && $rq; then
6624                 if test -z ""; then
6625                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6626 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6627    { (exit 1); exit 1; }; }
6628                 else
6629                         { { echo "$as_me:$LINENO: error:
6630 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6631 " >&5
6632 echo "$as_me: error:
6633 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6634 " >&2;}
6635    { (exit 1); exit 1; }; }
6636                 fi
6637         fi
6638
6639         if test -e "${TOUCH}"; then
6640                 TOUCH=`readlink -f "${TOUCH}"`
6641         fi
6642
6643         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6644
6645         test "${TOUCH}"
6646
6647
6648
6649
6650         if test -z ""; then
6651                 rq=true
6652         else
6653                 rq=false
6654         fi
6655
6656         if $rq; then
6657                 ensc_dflt=
6658         else
6659                 ensc_dflt=""
6660         fi
6661
6662         for ac_prog in tty
6663 do
6664   # Extract the first word of "$ac_prog", so it can be a program name with args.
6665 set dummy $ac_prog; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_path_TTY+set}" = set; then
6669   echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671   case $TTY in
6672   [\\/]* | ?:[\\/]*)
6673   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6674   ;;
6675   *)
6676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $ensc_searchpath
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681   for ac_exec_ext in '' $ac_executable_extensions; do
6682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688 done
6689 IFS=$as_save_IFS
6690
6691   ;;
6692 esac
6693 fi
6694 TTY=$ac_cv_path_TTY
6695 if test -n "$TTY"; then
6696   { echo "$as_me:$LINENO: result: $TTY" >&5
6697 echo "${ECHO_T}$TTY" >&6; }
6698 else
6699   { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6701 fi
6702
6703
6704   test -n "$TTY" && break
6705 done
6706 test -n "$TTY" || TTY="$ensc_dflt"
6707
6708
6709         if test -z "${TTY}" && $rq; then
6710                 if test -z ""; then
6711                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6712 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6713    { (exit 1); exit 1; }; }
6714                 else
6715                         { { echo "$as_me:$LINENO: error:
6716 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6717 " >&5
6718 echo "$as_me: error:
6719 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6720 " >&2;}
6721    { (exit 1); exit 1; }; }
6722                 fi
6723         fi
6724
6725         if test -e "${TTY}"; then
6726                 TTY=`readlink -f "${TTY}"`
6727         fi
6728
6729         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6730
6731         test "${TTY}"
6732
6733
6734
6735
6736         if test -z ""; then
6737                 rq=true
6738         else
6739                 rq=false
6740         fi
6741
6742         if $rq; then
6743                 ensc_dflt=
6744         else
6745                 ensc_dflt=""
6746         fi
6747
6748         for ac_prog in umount
6749 do
6750   # Extract the first word of "$ac_prog", so it can be a program name with args.
6751 set dummy $ac_prog; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_path_UMOUNT+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   case $UMOUNT in
6758   [\\/]* | ?:[\\/]*)
6759   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6760   ;;
6761   *)
6762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $ensc_searchpath
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767   for ac_exec_ext in '' $ac_executable_extensions; do
6768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6769     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777   ;;
6778 esac
6779 fi
6780 UMOUNT=$ac_cv_path_UMOUNT
6781 if test -n "$UMOUNT"; then
6782   { echo "$as_me:$LINENO: result: $UMOUNT" >&5
6783 echo "${ECHO_T}$UMOUNT" >&6; }
6784 else
6785   { echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6; }
6787 fi
6788
6789
6790   test -n "$UMOUNT" && break
6791 done
6792 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6793
6794
6795         if test -z "${UMOUNT}" && $rq; then
6796                 if test -z ""; then
6797                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6798 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6799    { (exit 1); exit 1; }; }
6800                 else
6801                         { { echo "$as_me:$LINENO: error:
6802 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6803 " >&5
6804 echo "$as_me: error:
6805 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
6806 " >&2;}
6807    { (exit 1); exit 1; }; }
6808                 fi
6809         fi
6810
6811         if test -e "${UMOUNT}"; then
6812                 UMOUNT=`readlink -f "${UMOUNT}"`
6813         fi
6814
6815         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
6816
6817         test "${UMOUNT}"
6818
6819
6820
6821
6822         if test -z ""; then
6823                 rq=true
6824         else
6825                 rq=false
6826         fi
6827
6828         if $rq; then
6829                 ensc_dflt=
6830         else
6831                 ensc_dflt=""
6832         fi
6833
6834         for ac_prog in wc
6835 do
6836   # Extract the first word of "$ac_prog", so it can be a program name with args.
6837 set dummy $ac_prog; ac_word=$2
6838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6840 if test "${ac_cv_path_WC+set}" = set; then
6841   echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843   case $WC in
6844   [\\/]* | ?:[\\/]*)
6845   ac_cv_path_WC="$WC" # Let the user override the test with a path.
6846   ;;
6847   *)
6848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $ensc_searchpath
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   for ac_exec_ext in '' $ac_executable_extensions; do
6854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
6856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857     break 2
6858   fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863   ;;
6864 esac
6865 fi
6866 WC=$ac_cv_path_WC
6867 if test -n "$WC"; then
6868   { echo "$as_me:$LINENO: result: $WC" >&5
6869 echo "${ECHO_T}$WC" >&6; }
6870 else
6871   { echo "$as_me:$LINENO: result: no" >&5
6872 echo "${ECHO_T}no" >&6; }
6873 fi
6874
6875
6876   test -n "$WC" && break
6877 done
6878 test -n "$WC" || WC="$ensc_dflt"
6879
6880
6881         if test -z "${WC}" && $rq; then
6882                 if test -z ""; then
6883                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
6884 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6885    { (exit 1); exit 1; }; }
6886                 else
6887                         { { echo "$as_me:$LINENO: error:
6888 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6889 " >&5
6890 echo "$as_me: error:
6891 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
6892 " >&2;}
6893    { (exit 1); exit 1; }; }
6894                 fi
6895         fi
6896
6897         if test -e "${WC}"; then
6898                 WC=`readlink -f "${WC}"`
6899         fi
6900
6901         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
6902
6903         test "${WC}"
6904
6905
6906
6907
6908
6909
6910         if test -z ""; then
6911                 rq=true
6912         else
6913                 rq=false
6914         fi
6915
6916         if $rq; then
6917                 ensc_dflt=
6918         else
6919                 ensc_dflt=""
6920         fi
6921
6922         for ac_prog in ip
6923 do
6924   # Extract the first word of "$ac_prog", so it can be a program name with args.
6925 set dummy $ac_prog; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_IP+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   case $IP in
6932   [\\/]* | ?:[\\/]*)
6933   ac_cv_path_IP="$IP" # Let the user override the test with a path.
6934   ;;
6935   *)
6936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $ensc_searchpath
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941   for ac_exec_ext in '' $ac_executable_extensions; do
6942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6943     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
6944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948 done
6949 IFS=$as_save_IFS
6950
6951   ;;
6952 esac
6953 fi
6954 IP=$ac_cv_path_IP
6955 if test -n "$IP"; then
6956   { echo "$as_me:$LINENO: result: $IP" >&5
6957 echo "${ECHO_T}$IP" >&6; }
6958 else
6959   { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6961 fi
6962
6963
6964   test -n "$IP" && break
6965 done
6966 test -n "$IP" || IP="$ensc_dflt"
6967
6968
6969         if test -z "${IP}" && $rq; then
6970                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
6971                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
6972 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6973    { (exit 1); exit 1; }; }
6974                 else
6975                         { { echo "$as_me:$LINENO: error:
6976 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6977 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
6978 echo "$as_me: error:
6979 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
6980 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
6981    { (exit 1); exit 1; }; }
6982                 fi
6983         fi
6984
6985         if test -e "${IP}"; then
6986                 IP=`readlink -f "${IP}"`
6987         fi
6988
6989         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
6990
6991         test "${IP}"
6992
6993
6994
6995
6996         if test -z ""; then
6997                 rq=true
6998         else
6999                 rq=false
7000         fi
7001
7002         if $rq; then
7003                 ensc_dflt=
7004         else
7005                 ensc_dflt=""
7006         fi
7007
7008         for ac_prog in iptables
7009 do
7010   # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7014 if test "${ac_cv_path_IPTABLES+set}" = set; then
7015   echo $ECHO_N "(cached) $ECHO_C" >&6
7016 else
7017   case $IPTABLES in
7018   [\\/]* | ?:[\\/]*)
7019   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
7020   ;;
7021   *)
7022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $ensc_searchpath
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027   for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
7030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037   ;;
7038 esac
7039 fi
7040 IPTABLES=$ac_cv_path_IPTABLES
7041 if test -n "$IPTABLES"; then
7042   { echo "$as_me:$LINENO: result: $IPTABLES" >&5
7043 echo "${ECHO_T}$IPTABLES" >&6; }
7044 else
7045   { echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6; }
7047 fi
7048
7049
7050   test -n "$IPTABLES" && break
7051 done
7052 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
7053
7054
7055         if test -z "${IPTABLES}" && $rq; then
7056                 if test -z ""; then
7057                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
7058 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7059    { (exit 1); exit 1; }; }
7060                 else
7061                         { { echo "$as_me:$LINENO: error:
7062 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7063 " >&5
7064 echo "$as_me: error:
7065 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7066 " >&2;}
7067    { (exit 1); exit 1; }; }
7068                 fi
7069         fi
7070
7071         if test -e "${IPTABLES}"; then
7072                 IPTABLES=`readlink -f "${IPTABLES}"`
7073         fi
7074
7075         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
7076
7077         test "${IPTABLES}"
7078
7079
7080
7081
7082         if test -z ""; then
7083                 rq=true
7084         else
7085                 rq=false
7086         fi
7087
7088         if $rq; then
7089                 ensc_dflt=
7090         else
7091                 ensc_dflt=""
7092         fi
7093
7094         for ac_prog in modprobe
7095 do
7096   # Extract the first word of "$ac_prog", so it can be a program name with args.
7097 set dummy $ac_prog; ac_word=$2
7098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7100 if test "${ac_cv_path_MODPROBE+set}" = set; then
7101   echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103   case $MODPROBE in
7104   [\\/]* | ?:[\\/]*)
7105   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
7106   ;;
7107   *)
7108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $ensc_searchpath
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121 IFS=$as_save_IFS
7122
7123   ;;
7124 esac
7125 fi
7126 MODPROBE=$ac_cv_path_MODPROBE
7127 if test -n "$MODPROBE"; then
7128   { echo "$as_me:$LINENO: result: $MODPROBE" >&5
7129 echo "${ECHO_T}$MODPROBE" >&6; }
7130 else
7131   { echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6; }
7133 fi
7134
7135
7136   test -n "$MODPROBE" && break
7137 done
7138 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
7139
7140
7141         if test -z "${MODPROBE}" && $rq; then
7142                 if test -z ""; then
7143                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
7144 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7145    { (exit 1); exit 1; }; }
7146                 else
7147                         { { echo "$as_me:$LINENO: error:
7148 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7149 " >&5
7150 echo "$as_me: error:
7151 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7152 " >&2;}
7153    { (exit 1); exit 1; }; }
7154                 fi
7155         fi
7156
7157         if test -e "${MODPROBE}"; then
7158                 MODPROBE=`readlink -f "${MODPROBE}"`
7159         fi
7160
7161         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
7162
7163         test "${MODPROBE}"
7164
7165
7166
7167
7168         if test -z ""; then
7169                 rq=true
7170         else
7171                 rq=false
7172         fi
7173
7174         if $rq; then
7175                 ensc_dflt=
7176         else
7177                 ensc_dflt=""
7178         fi
7179
7180         for ac_prog in nameif
7181 do
7182   # Extract the first word of "$ac_prog", so it can be a program name with args.
7183 set dummy $ac_prog; ac_word=$2
7184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7186 if test "${ac_cv_path_NAMEIF+set}" = set; then
7187   echo $ECHO_N "(cached) $ECHO_C" >&6
7188 else
7189   case $NAMEIF in
7190   [\\/]* | ?:[\\/]*)
7191   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
7192   ;;
7193   *)
7194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $ensc_searchpath
7196 do
7197   IFS=$as_save_IFS
7198   test -z "$as_dir" && as_dir=.
7199   for ac_exec_ext in '' $ac_executable_extensions; do
7200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
7202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203     break 2
7204   fi
7205 done
7206 done
7207 IFS=$as_save_IFS
7208
7209   ;;
7210 esac
7211 fi
7212 NAMEIF=$ac_cv_path_NAMEIF
7213 if test -n "$NAMEIF"; then
7214   { echo "$as_me:$LINENO: result: $NAMEIF" >&5
7215 echo "${ECHO_T}$NAMEIF" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7220
7221
7222   test -n "$NAMEIF" && break
7223 done
7224 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
7225
7226
7227         if test -z "${NAMEIF}" && $rq; then
7228                 if test -z ""; then
7229                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
7230 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7231    { (exit 1); exit 1; }; }
7232                 else
7233                         { { echo "$as_me:$LINENO: error:
7234 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7235 " >&5
7236 echo "$as_me: error:
7237 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7238 " >&2;}
7239    { (exit 1); exit 1; }; }
7240                 fi
7241         fi
7242
7243         if test -e "${NAMEIF}"; then
7244                 NAMEIF=`readlink -f "${NAMEIF}"`
7245         fi
7246
7247         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
7248
7249         test "${NAMEIF}"
7250
7251
7252
7253
7254         if test -z ""; then
7255                 rq=true
7256         else
7257                 rq=false
7258         fi
7259
7260         if $rq; then
7261                 ensc_dflt=
7262         else
7263                 ensc_dflt=""
7264         fi
7265
7266         for ac_prog in nohup
7267 do
7268   # Extract the first word of "$ac_prog", so it can be a program name with args.
7269 set dummy $ac_prog; ac_word=$2
7270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7272 if test "${ac_cv_path_NOHUP+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275   case $NOHUP in
7276   [\\/]* | ?:[\\/]*)
7277   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
7278   ;;
7279   *)
7280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $ensc_searchpath
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285   for ac_exec_ext in '' $ac_executable_extensions; do
7286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
7288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295   ;;
7296 esac
7297 fi
7298 NOHUP=$ac_cv_path_NOHUP
7299 if test -n "$NOHUP"; then
7300   { echo "$as_me:$LINENO: result: $NOHUP" >&5
7301 echo "${ECHO_T}$NOHUP" >&6; }
7302 else
7303   { echo "$as_me:$LINENO: result: no" >&5
7304 echo "${ECHO_T}no" >&6; }
7305 fi
7306
7307
7308   test -n "$NOHUP" && break
7309 done
7310 test -n "$NOHUP" || NOHUP="$ensc_dflt"
7311
7312
7313         if test -z "${NOHUP}" && $rq; then
7314                 if test -z ""; then
7315                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
7316 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7317    { (exit 1); exit 1; }; }
7318                 else
7319                         { { echo "$as_me:$LINENO: error:
7320 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7321 " >&5
7322 echo "$as_me: error:
7323 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7324 " >&2;}
7325    { (exit 1); exit 1; }; }
7326                 fi
7327         fi
7328
7329         if test -e "${NOHUP}"; then
7330                 NOHUP=`readlink -f "${NOHUP}"`
7331         fi
7332
7333         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
7334
7335         test "${NOHUP}"
7336
7337
7338
7339
7340         if test -z ""; then
7341                 rq=true
7342         else
7343                 rq=false
7344         fi
7345
7346         if $rq; then
7347                 ensc_dflt=
7348         else
7349                 ensc_dflt=""
7350         fi
7351
7352         for ac_prog in rmmod
7353 do
7354   # Extract the first word of "$ac_prog", so it can be a program name with args.
7355 set dummy $ac_prog; ac_word=$2
7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7358 if test "${ac_cv_path_RMMOD+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   case $RMMOD in
7362   [\\/]* | ?:[\\/]*)
7363   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
7364   ;;
7365   *)
7366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $ensc_searchpath
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371   for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
7374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378 done
7379 IFS=$as_save_IFS
7380
7381   ;;
7382 esac
7383 fi
7384 RMMOD=$ac_cv_path_RMMOD
7385 if test -n "$RMMOD"; then
7386   { echo "$as_me:$LINENO: result: $RMMOD" >&5
7387 echo "${ECHO_T}$RMMOD" >&6; }
7388 else
7389   { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7391 fi
7392
7393
7394   test -n "$RMMOD" && break
7395 done
7396 test -n "$RMMOD" || RMMOD="$ensc_dflt"
7397
7398
7399         if test -z "${RMMOD}" && $rq; then
7400                 if test -z ""; then
7401                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
7402 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7403    { (exit 1); exit 1; }; }
7404                 else
7405                         { { echo "$as_me:$LINENO: error:
7406 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7407 " >&5
7408 echo "$as_me: error:
7409 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7410 " >&2;}
7411    { (exit 1); exit 1; }; }
7412                 fi
7413         fi
7414
7415         if test -e "${RMMOD}"; then
7416                 RMMOD=`readlink -f "${RMMOD}"`
7417         fi
7418
7419         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
7420
7421         test "${RMMOD}"
7422
7423
7424
7425
7426         if test -z ""; then
7427                 rq=true
7428         else
7429                 rq=false
7430         fi
7431
7432         if $rq; then
7433                 ensc_dflt=
7434         else
7435                 ensc_dflt=""
7436         fi
7437
7438         for ac_prog in vconfig
7439 do
7440   # Extract the first word of "$ac_prog", so it can be a program name with args.
7441 set dummy $ac_prog; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_VCONFIG+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $VCONFIG in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $ensc_searchpath
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467   ;;
7468 esac
7469 fi
7470 VCONFIG=$ac_cv_path_VCONFIG
7471 if test -n "$VCONFIG"; then
7472   { echo "$as_me:$LINENO: result: $VCONFIG" >&5
7473 echo "${ECHO_T}$VCONFIG" >&6; }
7474 else
7475   { echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6; }
7477 fi
7478
7479
7480   test -n "$VCONFIG" && break
7481 done
7482 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
7483
7484
7485         if test -z "${VCONFIG}" && $rq; then
7486                 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
7487                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
7488 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7489    { (exit 1); exit 1; }; }
7490                 else
7491                         { { echo "$as_me:$LINENO: error:
7492 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7493 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
7494 echo "$as_me: error:
7495 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7496 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
7497    { (exit 1); exit 1; }; }
7498                 fi
7499         fi
7500
7501         if test -e "${VCONFIG}"; then
7502                 VCONFIG=`readlink -f "${VCONFIG}"`
7503         fi
7504
7505         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
7506
7507         test "${VCONFIG}"
7508
7509
7510
7511
7512         if test -z ""; then
7513                 rq=true
7514         else
7515                 rq=false
7516         fi
7517
7518         if $rq; then
7519                 ensc_dflt=
7520         else
7521                 ensc_dflt=""
7522         fi
7523
7524         for ac_prog in wget
7525 do
7526   # Extract the first word of "$ac_prog", so it can be a program name with args.
7527 set dummy $ac_prog; ac_word=$2
7528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7530 if test "${ac_cv_path_WGET+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533   case $WGET in
7534   [\\/]* | ?:[\\/]*)
7535   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7536   ;;
7537   *)
7538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $ensc_searchpath
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543   for ac_exec_ext in '' $ac_executable_extensions; do
7544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550 done
7551 IFS=$as_save_IFS
7552
7553   ;;
7554 esac
7555 fi
7556 WGET=$ac_cv_path_WGET
7557 if test -n "$WGET"; then
7558   { echo "$as_me:$LINENO: result: $WGET" >&5
7559 echo "${ECHO_T}$WGET" >&6; }
7560 else
7561   { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7563 fi
7564
7565
7566   test -n "$WGET" && break
7567 done
7568 test -n "$WGET" || WGET="$ensc_dflt"
7569
7570
7571         if test -z "${WGET}" && $rq; then
7572                 if test -z ""; then
7573                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7574 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7575    { (exit 1); exit 1; }; }
7576                 else
7577                         { { echo "$as_me:$LINENO: error:
7578 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7579 " >&5
7580 echo "$as_me: error:
7581 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7582 " >&2;}
7583    { (exit 1); exit 1; }; }
7584                 fi
7585         fi
7586
7587         if test -e "${WGET}"; then
7588                 WGET=`readlink -f "${WGET}"`
7589         fi
7590
7591         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7592
7593         test "${WGET}"
7594
7595
7596
7597
7598         if test -z "file"; then
7599                 rq=true
7600         else
7601                 rq=false
7602         fi
7603
7604         if $rq; then
7605                 ensc_dflt=
7606         else
7607                 ensc_dflt="file"
7608         fi
7609
7610         for ac_prog in file
7611 do
7612   # Extract the first word of "$ac_prog", so it can be a program name with args.
7613 set dummy $ac_prog; ac_word=$2
7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616 if test "${ac_cv_path_FILE+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   case $FILE in
7620   [\\/]* | ?:[\\/]*)
7621   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7622   ;;
7623   *)
7624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $ensc_searchpath
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629   for ac_exec_ext in '' $ac_executable_extensions; do
7630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7631     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636 done
7637 IFS=$as_save_IFS
7638
7639   ;;
7640 esac
7641 fi
7642 FILE=$ac_cv_path_FILE
7643 if test -n "$FILE"; then
7644   { echo "$as_me:$LINENO: result: $FILE" >&5
7645 echo "${ECHO_T}$FILE" >&6; }
7646 else
7647   { echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6; }
7649 fi
7650
7651
7652   test -n "$FILE" && break
7653 done
7654 test -n "$FILE" || FILE="$ensc_dflt"
7655
7656
7657         if test -z "${FILE}" && $rq; then
7658                 if test -z ""; then
7659                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7660 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7661    { (exit 1); exit 1; }; }
7662                 else
7663                         { { echo "$as_me:$LINENO: error:
7664 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7665 " >&5
7666 echo "$as_me: error:
7667 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7668 " >&2;}
7669    { (exit 1); exit 1; }; }
7670                 fi
7671         fi
7672
7673         if test -e "${FILE}"; then
7674                 FILE=`readlink -f "${FILE}"`
7675         fi
7676
7677         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7678
7679         test "${FILE}"
7680
7681
7682
7683
7684         if test -z "gzip"; then
7685                 rq=true
7686         else
7687                 rq=false
7688         fi
7689
7690         if $rq; then
7691                 ensc_dflt=
7692         else
7693                 ensc_dflt="gzip"
7694         fi
7695
7696         for ac_prog in gzip
7697 do
7698   # Extract the first word of "$ac_prog", so it can be a program name with args.
7699 set dummy $ac_prog; ac_word=$2
7700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702 if test "${ac_cv_path_GZIP+set}" = set; then
7703   echo $ECHO_N "(cached) $ECHO_C" >&6
7704 else
7705   case $GZIP in
7706   [\\/]* | ?:[\\/]*)
7707   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7708   ;;
7709   *)
7710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $ensc_searchpath
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725   ;;
7726 esac
7727 fi
7728 GZIP=$ac_cv_path_GZIP
7729 if test -n "$GZIP"; then
7730   { echo "$as_me:$LINENO: result: $GZIP" >&5
7731 echo "${ECHO_T}$GZIP" >&6; }
7732 else
7733   { echo "$as_me:$LINENO: result: no" >&5
7734 echo "${ECHO_T}no" >&6; }
7735 fi
7736
7737
7738   test -n "$GZIP" && break
7739 done
7740 test -n "$GZIP" || GZIP="$ensc_dflt"
7741
7742
7743         if test -z "${GZIP}" && $rq; then
7744                 if test -z ""; then
7745                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7746 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7747    { (exit 1); exit 1; }; }
7748                 else
7749                         { { echo "$as_me:$LINENO: error:
7750 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7751 " >&5
7752 echo "$as_me: error:
7753 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7754 " >&2;}
7755    { (exit 1); exit 1; }; }
7756                 fi
7757         fi
7758
7759         if test -e "${GZIP}"; then
7760                 GZIP=`readlink -f "${GZIP}"`
7761         fi
7762
7763         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7764
7765         test "${GZIP}"
7766
7767
7768
7769
7770         if test -z "bzip2"; then
7771                 rq=true
7772         else
7773                 rq=false
7774         fi
7775
7776         if $rq; then
7777                 ensc_dflt=
7778         else
7779                 ensc_dflt="bzip2"
7780         fi
7781
7782         for ac_prog in bzip2
7783 do
7784   # Extract the first word of "$ac_prog", so it can be a program name with args.
7785 set dummy $ac_prog; ac_word=$2
7786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7788 if test "${ac_cv_path_BZIP2+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   case $BZIP2 in
7792   [\\/]* | ?:[\\/]*)
7793   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7794   ;;
7795   *)
7796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $ensc_searchpath
7798 do
7799   IFS=$as_save_IFS
7800   test -z "$as_dir" && as_dir=.
7801   for ac_exec_ext in '' $ac_executable_extensions; do
7802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7803     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805     break 2
7806   fi
7807 done
7808 done
7809 IFS=$as_save_IFS
7810
7811   ;;
7812 esac
7813 fi
7814 BZIP2=$ac_cv_path_BZIP2
7815 if test -n "$BZIP2"; then
7816   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7817 echo "${ECHO_T}$BZIP2" >&6; }
7818 else
7819   { echo "$as_me:$LINENO: result: no" >&5
7820 echo "${ECHO_T}no" >&6; }
7821 fi
7822
7823
7824   test -n "$BZIP2" && break
7825 done
7826 test -n "$BZIP2" || BZIP2="$ensc_dflt"
7827
7828
7829         if test -z "${BZIP2}" && $rq; then
7830                 if test -z ""; then
7831                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
7832 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7833    { (exit 1); exit 1; }; }
7834                 else
7835                         { { echo "$as_me:$LINENO: error:
7836 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7837 " >&5
7838 echo "$as_me: error:
7839 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
7840 " >&2;}
7841    { (exit 1); exit 1; }; }
7842                 fi
7843         fi
7844
7845         if test -e "${BZIP2}"; then
7846                 BZIP2=`readlink -f "${BZIP2}"`
7847         fi
7848
7849         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
7850
7851         test "${BZIP2}"
7852
7853
7854
7855
7856         if test -z "cpio"; then
7857                 rq=true
7858         else
7859                 rq=false
7860         fi
7861
7862         if $rq; then
7863                 ensc_dflt=
7864         else
7865                 ensc_dflt="cpio"
7866         fi
7867
7868         for ac_prog in cpio
7869 do
7870   # Extract the first word of "$ac_prog", so it can be a program name with args.
7871 set dummy $ac_prog; ac_word=$2
7872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7874 if test "${ac_cv_path_CPIO+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   case $CPIO in
7878   [\\/]* | ?:[\\/]*)
7879   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
7880   ;;
7881   *)
7882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $ensc_searchpath
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887   for ac_exec_ext in '' $ac_executable_extensions; do
7888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
7890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897   ;;
7898 esac
7899 fi
7900 CPIO=$ac_cv_path_CPIO
7901 if test -n "$CPIO"; then
7902   { echo "$as_me:$LINENO: result: $CPIO" >&5
7903 echo "${ECHO_T}$CPIO" >&6; }
7904 else
7905   { echo "$as_me:$LINENO: result: no" >&5
7906 echo "${ECHO_T}no" >&6; }
7907 fi
7908
7909
7910   test -n "$CPIO" && break
7911 done
7912 test -n "$CPIO" || CPIO="$ensc_dflt"
7913
7914
7915         if test -z "${CPIO}" && $rq; then
7916                 if test -z ""; then
7917                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
7918 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7919    { (exit 1); exit 1; }; }
7920                 else
7921                         { { echo "$as_me:$LINENO: error:
7922 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7923 " >&5
7924 echo "$as_me: error:
7925 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
7926 " >&2;}
7927    { (exit 1); exit 1; }; }
7928                 fi
7929         fi
7930
7931         if test -e "${CPIO}"; then
7932                 CPIO=`readlink -f "${CPIO}"`
7933         fi
7934
7935         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
7936
7937         test "${CPIO}"
7938
7939
7940
7941
7942         if test -z "restore"; then
7943                 rq=true
7944         else
7945                 rq=false
7946         fi
7947
7948         if $rq; then
7949                 ensc_dflt=
7950         else
7951                 ensc_dflt="restore"
7952         fi
7953
7954         for ac_prog in restore
7955 do
7956   # Extract the first word of "$ac_prog", so it can be a program name with args.
7957 set dummy $ac_prog; ac_word=$2
7958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7960 if test "${ac_cv_path_RESTORE+set}" = set; then
7961   echo $ECHO_N "(cached) $ECHO_C" >&6
7962 else
7963   case $RESTORE in
7964   [\\/]* | ?:[\\/]*)
7965   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
7966   ;;
7967   *)
7968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $ensc_searchpath
7970 do
7971   IFS=$as_save_IFS
7972   test -z "$as_dir" && as_dir=.
7973   for ac_exec_ext in '' $ac_executable_extensions; do
7974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
7976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977     break 2
7978   fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983   ;;
7984 esac
7985 fi
7986 RESTORE=$ac_cv_path_RESTORE
7987 if test -n "$RESTORE"; then
7988   { echo "$as_me:$LINENO: result: $RESTORE" >&5
7989 echo "${ECHO_T}$RESTORE" >&6; }
7990 else
7991   { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7993 fi
7994
7995
7996   test -n "$RESTORE" && break
7997 done
7998 test -n "$RESTORE" || RESTORE="$ensc_dflt"
7999
8000
8001         if test -z "${RESTORE}" && $rq; then
8002                 if test -z ""; then
8003                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
8004 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8005    { (exit 1); exit 1; }; }
8006                 else
8007                         { { echo "$as_me:$LINENO: error:
8008 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8009 " >&5
8010 echo "$as_me: error:
8011 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8012 " >&2;}
8013    { (exit 1); exit 1; }; }
8014                 fi
8015         fi
8016
8017         if test -e "${RESTORE}"; then
8018                 RESTORE=`readlink -f "${RESTORE}"`
8019         fi
8020
8021         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
8022
8023         test "${RESTORE}"
8024
8025
8026
8027
8028         if test -z "rsync"; then
8029                 rq=true
8030         else
8031                 rq=false
8032         fi
8033
8034         if $rq; then
8035                 ensc_dflt=
8036         else
8037                 ensc_dflt="rsync"
8038         fi
8039
8040         for ac_prog in rsync
8041 do
8042   # Extract the first word of "$ac_prog", so it can be a program name with args.
8043 set dummy $ac_prog; ac_word=$2
8044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8046 if test "${ac_cv_path_RSYNC+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   case $RSYNC in
8050   [\\/]* | ?:[\\/]*)
8051   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
8052   ;;
8053   *)
8054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $ensc_searchpath
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059   for ac_exec_ext in '' $ac_executable_extensions; do
8060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
8062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069   ;;
8070 esac
8071 fi
8072 RSYNC=$ac_cv_path_RSYNC
8073 if test -n "$RSYNC"; then
8074   { echo "$as_me:$LINENO: result: $RSYNC" >&5
8075 echo "${ECHO_T}$RSYNC" >&6; }
8076 else
8077   { echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6; }
8079 fi
8080
8081
8082   test -n "$RSYNC" && break
8083 done
8084 test -n "$RSYNC" || RSYNC="$ensc_dflt"
8085
8086
8087         if test -z "${RSYNC}" && $rq; then
8088                 if test -z ""; then
8089                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
8090 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8091    { (exit 1); exit 1; }; }
8092                 else
8093                         { { echo "$as_me:$LINENO: error:
8094 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8095 " >&5
8096 echo "$as_me: error:
8097 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8098 " >&2;}
8099    { (exit 1); exit 1; }; }
8100                 fi
8101         fi
8102
8103         if test -e "${RSYNC}"; then
8104                 RSYNC=`readlink -f "${RSYNC}"`
8105         fi
8106
8107         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
8108
8109         test "${RSYNC}"
8110
8111
8112
8113
8114         if test -z "strace"; then
8115                 rq=true
8116         else
8117                 rq=false
8118         fi
8119
8120         if $rq; then
8121                 ensc_dflt=
8122         else
8123                 ensc_dflt="strace"
8124         fi
8125
8126         for ac_prog in strace
8127 do
8128   # Extract the first word of "$ac_prog", so it can be a program name with args.
8129 set dummy $ac_prog; ac_word=$2
8130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132 if test "${ac_cv_path_STRACE+set}" = set; then
8133   echo $ECHO_N "(cached) $ECHO_C" >&6
8134 else
8135   case $STRACE in
8136   [\\/]* | ?:[\\/]*)
8137   ac_cv_path_STRACE="$STRACE" # Let the user override the test with a path.
8138   ;;
8139   *)
8140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $ensc_searchpath
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145   for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_path_STRACE="$as_dir/$ac_word$ac_exec_ext"
8148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155   ;;
8156 esac
8157 fi
8158 STRACE=$ac_cv_path_STRACE
8159 if test -n "$STRACE"; then
8160   { echo "$as_me:$LINENO: result: $STRACE" >&5
8161 echo "${ECHO_T}$STRACE" >&6; }
8162 else
8163   { echo "$as_me:$LINENO: result: no" >&5
8164 echo "${ECHO_T}no" >&6; }
8165 fi
8166
8167
8168   test -n "$STRACE" && break
8169 done
8170 test -n "$STRACE" || STRACE="$ensc_dflt"
8171
8172
8173         if test -z "${STRACE}" && $rq; then
8174                 if test -z ""; then
8175                         { { echo "$as_me:$LINENO: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&5
8176 echo "$as_me: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8177    { (exit 1); exit 1; }; }
8178                 else
8179                         { { echo "$as_me:$LINENO: error:
8180 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8181 " >&5
8182 echo "$as_me: error:
8183 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8184 " >&2;}
8185    { (exit 1); exit 1; }; }
8186                 fi
8187         fi
8188
8189         if test -e "${STRACE}"; then
8190                 STRACE=`readlink -f "${STRACE}"`
8191         fi
8192
8193         test "${STRACE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'STRACE'@!${STRACE}!g;"
8194
8195         test "${STRACE}"
8196
8197
8198
8199
8200
8201         if test -z ":"; then
8202                 rq=true
8203         else
8204                 rq=false
8205         fi
8206
8207         if $rq; then
8208                 ensc_dflt=
8209         else
8210                 ensc_dflt=":"
8211         fi
8212
8213         for ac_prog in doxygen
8214 do
8215   # Extract the first word of "$ac_prog", so it can be a program name with args.
8216 set dummy $ac_prog; ac_word=$2
8217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   case $DOXYGEN in
8223   [\\/]* | ?:[\\/]*)
8224   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8225   ;;
8226   *)
8227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $ensc_searchpath
8229 do
8230   IFS=$as_save_IFS
8231   test -z "$as_dir" && as_dir=.
8232   for ac_exec_ext in '' $ac_executable_extensions; do
8233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8236     break 2
8237   fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242   ;;
8243 esac
8244 fi
8245 DOXYGEN=$ac_cv_path_DOXYGEN
8246 if test -n "$DOXYGEN"; then
8247   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8248 echo "${ECHO_T}$DOXYGEN" >&6; }
8249 else
8250   { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8252 fi
8253
8254
8255   test -n "$DOXYGEN" && break
8256 done
8257 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
8258
8259
8260         if test -z "${DOXYGEN}" && $rq; then
8261                 if test -z ""; then
8262                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
8263 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8264    { (exit 1); exit 1; }; }
8265                 else
8266                         { { echo "$as_me:$LINENO: error:
8267 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8268 " >&5
8269 echo "$as_me: error:
8270 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8271 " >&2;}
8272    { (exit 1); exit 1; }; }
8273                 fi
8274         fi
8275
8276         if test -e "${DOXYGEN}"; then
8277                 DOXYGEN=`readlink -f "${DOXYGEN}"`
8278         fi
8279
8280         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
8281
8282         test "${DOXYGEN}"
8283
8284
8285
8286
8287         if test -z ":"; then
8288                 rq=true
8289         else
8290                 rq=false
8291         fi
8292
8293         if $rq; then
8294                 ensc_dflt=
8295         else
8296                 ensc_dflt=":"
8297         fi
8298
8299         for ac_prog in xsltp
8300 do
8301   # Extract the first word of "$ac_prog", so it can be a program name with args.
8302 set dummy $ac_prog; ac_word=$2
8303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8305 if test "${ac_cv_path_XSLTP+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   case $XSLTP in
8309   [\\/]* | ?:[\\/]*)
8310   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
8311   ;;
8312   *)
8313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $ensc_searchpath
8315 do
8316   IFS=$as_save_IFS
8317   test -z "$as_dir" && as_dir=.
8318   for ac_exec_ext in '' $ac_executable_extensions; do
8319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
8321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322     break 2
8323   fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328   ;;
8329 esac
8330 fi
8331 XSLTP=$ac_cv_path_XSLTP
8332 if test -n "$XSLTP"; then
8333   { echo "$as_me:$LINENO: result: $XSLTP" >&5
8334 echo "${ECHO_T}$XSLTP" >&6; }
8335 else
8336   { echo "$as_me:$LINENO: result: no" >&5
8337 echo "${ECHO_T}no" >&6; }
8338 fi
8339
8340
8341   test -n "$XSLTP" && break
8342 done
8343 test -n "$XSLTP" || XSLTP="$ensc_dflt"
8344
8345
8346         if test -z "${XSLTP}" && $rq; then
8347                 if test -z ""; then
8348                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
8349 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8350    { (exit 1); exit 1; }; }
8351                 else
8352                         { { echo "$as_me:$LINENO: error:
8353 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8354 " >&5
8355 echo "$as_me: error:
8356 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8357 " >&2;}
8358    { (exit 1); exit 1; }; }
8359                 fi
8360         fi
8361
8362         if test -e "${XSLTP}"; then
8363                 XSLTP=`readlink -f "${XSLTP}"`
8364         fi
8365
8366         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
8367
8368         test "${XSLTP}"
8369
8370
8371
8372
8373         if test -z ":"; then
8374                 rq=true
8375         else
8376                 rq=false
8377         fi
8378
8379         if $rq; then
8380                 ensc_dflt=
8381         else
8382                 ensc_dflt=":"
8383         fi
8384
8385         for ac_prog in xsltproc
8386 do
8387   # Extract the first word of "$ac_prog", so it can be a program name with args.
8388 set dummy $ac_prog; ac_word=$2
8389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8391 if test "${ac_cv_path_XSLTPROC+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   case $XSLTPROC in
8395   [\\/]* | ?:[\\/]*)
8396   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
8397   ;;
8398   *)
8399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $ensc_searchpath
8401 do
8402   IFS=$as_save_IFS
8403   test -z "$as_dir" && as_dir=.
8404   for ac_exec_ext in '' $ac_executable_extensions; do
8405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
8407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408     break 2
8409   fi
8410 done
8411 done
8412 IFS=$as_save_IFS
8413
8414   ;;
8415 esac
8416 fi
8417 XSLTPROC=$ac_cv_path_XSLTPROC
8418 if test -n "$XSLTPROC"; then
8419   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
8420 echo "${ECHO_T}$XSLTPROC" >&6; }
8421 else
8422   { echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6; }
8424 fi
8425
8426
8427   test -n "$XSLTPROC" && break
8428 done
8429 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
8430
8431
8432         if test -z "${XSLTPROC}" && $rq; then
8433                 if test -z ""; then
8434                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
8435 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8436    { (exit 1); exit 1; }; }
8437                 else
8438                         { { echo "$as_me:$LINENO: error:
8439 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8440 " >&5
8441 echo "$as_me: error:
8442 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8443 " >&2;}
8444    { (exit 1); exit 1; }; }
8445                 fi
8446         fi
8447
8448         if test -e "${XSLTPROC}"; then
8449                 XSLTPROC=`readlink -f "${XSLTPROC}"`
8450         fi
8451
8452         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
8453
8454         test "${XSLTPROC}"
8455
8456
8457  if test "$XSLTP"    != ':'; then
8458   HAVE_XSLTP_TRUE=
8459   HAVE_XSLTP_FALSE='#'
8460 else
8461   HAVE_XSLTP_TRUE='#'
8462   HAVE_XSLTP_FALSE=
8463 fi
8464
8465  if test "$XSLTPROC" != ':'; then
8466   HAVE_XSLTPROC_TRUE=
8467   HAVE_XSLTPROC_FALSE='#'
8468 else
8469   HAVE_XSLTPROC_TRUE='#'
8470   HAVE_XSLTPROC_FALSE=
8471 fi
8472
8473
8474 if test x"$prefix" = x/; then
8475         prefix=
8476 fi
8477
8478
8479
8480         warn_flags="-Werror -W"
8481         { echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
8482 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8483         ac_ext=c
8484 ac_cpp='$CPP $CPPFLAGS'
8485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8488
8489         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
8490         CFLAGS="$warn_flags"
8491         cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497 inline static void f(){}
8498 int
8499 main ()
8500 {
8501
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510   *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513   (eval "$ac_compile") 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } && {
8520          test -z "$ac_c_werror_flag" ||
8521          test ! -s conftest.err
8522        } && test -s conftest.$ac_objext; then
8523   ensc_sys_compilerwarnflags_C=${warn_flags}
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528         ensc_sys_compilerwarnflags_C=
8529 fi
8530
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532         ac_ext=c
8533 ac_cpp='$CPP $CPPFLAGS'
8534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
8538         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8539
8540         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
8541                 { echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6; }
8543         else
8544                 { echo "$as_me:$LINENO: result: yes" >&5
8545 echo "${ECHO_T}yes" >&6; }
8546         fi
8547
8548
8549
8550
8551
8552 echo 'void f(){}' > conftest.c
8553   for i in -std=c99 -Wall -pedantic -W
8554   do
8555     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8556 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8557     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8558     then
8559       CFLAGS="${CFLAGS} $i"
8560       { echo "$as_me:$LINENO: result: yes" >&5
8561 echo "${ECHO_T}yes" >&6; }
8562     else
8563       { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8565     fi
8566   done
8567   rm -f conftest.c conftest.o
8568
8569
8570
8571         warn_flags="-Werror -W"
8572         { echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
8573 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8574         ac_ext=cpp
8575 ac_cpp='$CXXCPP $CPPFLAGS'
8576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8579
8580         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
8581         CXXFLAGS="$warn_flags"
8582         cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588 inline static void f(){}
8589 int
8590 main ()
8591 {
8592
8593   ;
8594   return 0;
8595 }
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (ac_try="$ac_compile"
8599 case "(($ac_try" in
8600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601   *) ac_try_echo=$ac_try;;
8602 esac
8603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604   (eval "$ac_compile") 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } && {
8611          test -z "$ac_cxx_werror_flag" ||
8612          test ! -s conftest.err
8613        } && test -s conftest.$ac_objext; then
8614   ensc_sys_compilerwarnflags_CXX=${warn_flags}
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619         ensc_sys_compilerwarnflags_CXX=
8620 fi
8621
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623         ac_ext=c
8624 ac_cpp='$CPP $CPPFLAGS'
8625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8628
8629         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8630
8631         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
8632                 { echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6; }
8634         else
8635                 { echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6; }
8637         fi
8638
8639
8640
8641
8642
8643   echo 'void f(){}' > conftest.cc
8644   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
8645   do
8646     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8647 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8648     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8649     then
8650       CXXFLAGS="${CXXFLAGS} $i"
8651       { echo "$as_me:$LINENO: result: yes" >&5
8652 echo "${ECHO_T}yes" >&6; }
8653     else
8654       { echo "$as_me:$LINENO: result: no" >&5
8655 echo "${ECHO_T}no" >&6; }
8656     fi
8657   done
8658   rm -f conftest.cc conftest.o
8659
8660
8661 { echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
8662 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6; }
8663 # Check whether --enable-extra-optimizations was given.
8664 if test "${enable_extra_optimizations+set}" = set; then
8665   enableval=$enable_extra_optimizations; case "$enableval" in
8666                   (yes) use_extra_optimizations=1;;
8667                   (no)  use_extra_optimizations=;;
8668                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
8669 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
8670    { (exit 1); exit 1; }; };;
8671                esac
8672 else
8673   use_extra_optimizations=1
8674 fi
8675
8676
8677 if test x"$use_extra_optimizations" = x; then
8678         { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8680 else
8681         { echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6; }
8683
8684
8685
8686 echo 'void f(){}' > conftest.c
8687   for i in -funit-at-a-time
8688   do
8689     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8690 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8691     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8692     then
8693       CFLAGS="${CFLAGS} $i"
8694       { echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6; }
8696     else
8697       { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8699     fi
8700   done
8701   rm -f conftest.c conftest.o
8702
8703
8704
8705
8706   echo 'void f(){}' > conftest.cc
8707   for i in -funit-at-a-time
8708   do
8709     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8710 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8711     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8712     then
8713       CXXFLAGS="${CXXFLAGS} $i"
8714       { echo "$as_me:$LINENO: result: yes" >&5
8715 echo "${ECHO_T}yes" >&6; }
8716     else
8717       { echo "$as_me:$LINENO: result: no" >&5
8718 echo "${ECHO_T}no" >&6; }
8719     fi
8720   done
8721   rm -f conftest.cc conftest.o
8722
8723 fi
8724
8725 { echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8726 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6; }
8727 # Check whether --enable-lib-debug was given.
8728 if test "${enable_lib_debug+set}" = set; then
8729   enableval=$enable_lib_debug; case "$enableval" in
8730                   (yes) use_lib_debug=1;;
8731                   (no)  use_lib_debug=;;
8732                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8733 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8734    { (exit 1); exit 1; }; };;
8735                esac
8736 else
8737    use_lib_debug=
8738 fi
8739
8740
8741 if test x"$use_lib_debug" = x; then
8742         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8743
8744         { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8746 else
8747
8748         { echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6; }
8750 fi
8751
8752 { echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8753 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6; }
8754 # Check whether --enable-expensive-tests was given.
8755 if test "${enable_expensive_tests+set}" = set; then
8756   enableval=$enable_expensive_tests; case "$enableval" in
8757                  (yes|no)  use_expensive_tests=$enableval;;
8758                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8759 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8760    { (exit 1); exit 1; }; };;
8761                esac
8762 else
8763    use_expensive_tests=no
8764 fi
8765
8766 { echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8767 echo "${ECHO_T}$use_expensive_tests" >&6; }
8768
8769 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8770
8771
8772
8773
8774         { echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8775 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6; }
8776         { echo "$as_me:$LINENO: result: " >&5
8777 echo "${ECHO_T}" >&6; }
8778
8779         ac_ext=c
8780 ac_cpp='$CPP $CPPFLAGS'
8781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8784
8785         { echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8786 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6; }
8787 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796
8797 #include <linux/personality.h>
8798
8799
8800 int
8801 main ()
8802 {
8803 #ifndef MMAP_PAGE_ZERO
8804   (void) MMAP_PAGE_ZERO;
8805 #endif
8806
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8813 case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_compile") 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } && {
8825          test -z "$ac_c_werror_flag" ||
8826          test ! -s conftest.err
8827        } && test -s conftest.$ac_objext; then
8828   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
8829 else
8830   echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833         ac_cv_have_decl_MMAP_PAGE_ZERO=no
8834 fi
8835
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
8839 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
8840 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
8841
8842 cat >>confdefs.h <<_ACEOF
8843 #define HAVE_DECL_MMAP_PAGE_ZERO 1
8844 _ACEOF
8845
8846
8847 else
8848   cat >>confdefs.h <<_ACEOF
8849 #define HAVE_DECL_MMAP_PAGE_ZERO 0
8850 _ACEOF
8851
8852
8853 fi
8854 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
8855 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6; }
8856 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865
8866 #include <linux/personality.h>
8867
8868
8869 int
8870 main ()
8871 {
8872 #ifndef ADDR_LIMIT_32BIT
8873   (void) ADDR_LIMIT_32BIT;
8874 #endif
8875
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext
8881 if { (ac_try="$ac_compile"
8882 case "(($ac_try" in
8883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884   *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887   (eval "$ac_compile") 2>conftest.er1
8888   ac_status=$?
8889   grep -v '^ *+' conftest.er1 >conftest.err
8890   rm -f conftest.er1
8891   cat conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } && {
8894          test -z "$ac_c_werror_flag" ||
8895          test ! -s conftest.err
8896        } && test -s conftest.$ac_objext; then
8897   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
8898 else
8899   echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902         ac_cv_have_decl_ADDR_LIMIT_32BIT=no
8903 fi
8904
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 fi
8907 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
8908 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
8909 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
8910
8911 cat >>confdefs.h <<_ACEOF
8912 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
8913 _ACEOF
8914
8915
8916 else
8917   cat >>confdefs.h <<_ACEOF
8918 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
8919 _ACEOF
8920
8921
8922 fi
8923 { echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
8924 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6; }
8925 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
8926   echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928   cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934
8935 #include <linux/personality.h>
8936
8937
8938 int
8939 main ()
8940 {
8941 #ifndef SHORT_INODE
8942   (void) SHORT_INODE;
8943 #endif
8944
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 rm -f conftest.$ac_objext
8950 if { (ac_try="$ac_compile"
8951 case "(($ac_try" in
8952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953   *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956   (eval "$ac_compile") 2>conftest.er1
8957   ac_status=$?
8958   grep -v '^ *+' conftest.er1 >conftest.err
8959   rm -f conftest.er1
8960   cat conftest.err >&5
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); } && {
8963          test -z "$ac_c_werror_flag" ||
8964          test ! -s conftest.err
8965        } && test -s conftest.$ac_objext; then
8966   ac_cv_have_decl_SHORT_INODE=yes
8967 else
8968   echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971         ac_cv_have_decl_SHORT_INODE=no
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 fi
8976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
8977 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6; }
8978 if test $ac_cv_have_decl_SHORT_INODE = yes; then
8979
8980 cat >>confdefs.h <<_ACEOF
8981 #define HAVE_DECL_SHORT_INODE 1
8982 _ACEOF
8983
8984
8985 else
8986   cat >>confdefs.h <<_ACEOF
8987 #define HAVE_DECL_SHORT_INODE 0
8988 _ACEOF
8989
8990
8991 fi
8992 { echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
8993 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6; }
8994 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h.  */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h.  */
9003
9004 #include <linux/personality.h>
9005
9006
9007 int
9008 main ()
9009 {
9010 #ifndef WHOLE_SECONDS
9011   (void) WHOLE_SECONDS;
9012 #endif
9013
9014   ;
9015   return 0;
9016 }
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (ac_try="$ac_compile"
9020 case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_compile") 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && {
9032          test -z "$ac_c_werror_flag" ||
9033          test ! -s conftest.err
9034        } && test -s conftest.$ac_objext; then
9035   ac_cv_have_decl_WHOLE_SECONDS=yes
9036 else
9037   echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9039
9040         ac_cv_have_decl_WHOLE_SECONDS=no
9041 fi
9042
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 fi
9045 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
9046 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
9047 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
9048
9049 cat >>confdefs.h <<_ACEOF
9050 #define HAVE_DECL_WHOLE_SECONDS 1
9051 _ACEOF
9052
9053
9054 else
9055   cat >>confdefs.h <<_ACEOF
9056 #define HAVE_DECL_WHOLE_SECONDS 0
9057 _ACEOF
9058
9059
9060 fi
9061 { echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
9062 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6; }
9063 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
9064   echo $ECHO_N "(cached) $ECHO_C" >&6
9065 else
9066   cat >conftest.$ac_ext <<_ACEOF
9067 /* confdefs.h.  */
9068 _ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h.  */
9072
9073 #include <linux/personality.h>
9074
9075
9076 int
9077 main ()
9078 {
9079 #ifndef STICKY_TIMEOUTS
9080   (void) STICKY_TIMEOUTS;
9081 #endif
9082
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext
9088 if { (ac_try="$ac_compile"
9089 case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094   (eval "$ac_compile") 2>conftest.er1
9095   ac_status=$?
9096   grep -v '^ *+' conftest.er1 >conftest.err
9097   rm -f conftest.er1
9098   cat conftest.err >&5
9099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100   (exit $ac_status); } && {
9101          test -z "$ac_c_werror_flag" ||
9102          test ! -s conftest.err
9103        } && test -s conftest.$ac_objext; then
9104   ac_cv_have_decl_STICKY_TIMEOUTS=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109         ac_cv_have_decl_STICKY_TIMEOUTS=no
9110 fi
9111
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 fi
9114 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
9115 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
9116 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define HAVE_DECL_STICKY_TIMEOUTS 1
9120 _ACEOF
9121
9122
9123 else
9124   cat >>confdefs.h <<_ACEOF
9125 #define HAVE_DECL_STICKY_TIMEOUTS 0
9126 _ACEOF
9127
9128
9129 fi
9130 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
9131 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6; }
9132 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141
9142 #include <linux/personality.h>
9143
9144
9145 int
9146 main ()
9147 {
9148 #ifndef ADDR_LIMIT_3GB
9149   (void) ADDR_LIMIT_3GB;
9150 #endif
9151
9152   ;
9153   return 0;
9154 }
9155 _ACEOF
9156 rm -f conftest.$ac_objext
9157 if { (ac_try="$ac_compile"
9158 case "(($ac_try" in
9159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9160   *) ac_try_echo=$ac_try;;
9161 esac
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163   (eval "$ac_compile") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } && {
9170          test -z "$ac_c_werror_flag" ||
9171          test ! -s conftest.err
9172        } && test -s conftest.$ac_objext; then
9173   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178         ac_cv_have_decl_ADDR_LIMIT_3GB=no
9179 fi
9180
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
9184 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
9185 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
9186
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_DECL_ADDR_LIMIT_3GB 1
9189 _ACEOF
9190
9191
9192 else
9193   cat >>confdefs.h <<_ACEOF
9194 #define HAVE_DECL_ADDR_LIMIT_3GB 0
9195 _ACEOF
9196
9197
9198 fi
9199
9200
9201
9202         { echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
9203 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6; }
9204 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
9205   echo $ECHO_N "(cached) $ECHO_C" >&6
9206 else
9207   cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213
9214 #include <linux/personality.h>
9215
9216
9217 int
9218 main ()
9219 {
9220 #ifndef PER_LINUX
9221   (void) PER_LINUX;
9222 #endif
9223
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9230 case "(($ac_try" in
9231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232   *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235   (eval "$ac_compile") 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } && {
9242          test -z "$ac_c_werror_flag" ||
9243          test ! -s conftest.err
9244        } && test -s conftest.$ac_objext; then
9245   ac_cv_have_decl_PER_LINUX=yes
9246 else
9247   echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9249
9250         ac_cv_have_decl_PER_LINUX=no
9251 fi
9252
9253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 fi
9255 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
9256 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6; }
9257 if test $ac_cv_have_decl_PER_LINUX = yes; then
9258
9259 cat >>confdefs.h <<_ACEOF
9260 #define HAVE_DECL_PER_LINUX 1
9261 _ACEOF
9262
9263
9264 else
9265   cat >>confdefs.h <<_ACEOF
9266 #define HAVE_DECL_PER_LINUX 0
9267 _ACEOF
9268
9269
9270 fi
9271 { echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
9272 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6; }
9273 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h.  */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h.  */
9282
9283 #include <linux/personality.h>
9284
9285
9286 int
9287 main ()
9288 {
9289 #ifndef PER_LINUX_32BIT
9290   (void) PER_LINUX_32BIT;
9291 #endif
9292
9293   ;
9294   return 0;
9295 }
9296 _ACEOF
9297 rm -f conftest.$ac_objext
9298 if { (ac_try="$ac_compile"
9299 case "(($ac_try" in
9300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301   *) ac_try_echo=$ac_try;;
9302 esac
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304   (eval "$ac_compile") 2>conftest.er1
9305   ac_status=$?
9306   grep -v '^ *+' conftest.er1 >conftest.err
9307   rm -f conftest.er1
9308   cat conftest.err >&5
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && {
9311          test -z "$ac_c_werror_flag" ||
9312          test ! -s conftest.err
9313        } && test -s conftest.$ac_objext; then
9314   ac_cv_have_decl_PER_LINUX_32BIT=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319         ac_cv_have_decl_PER_LINUX_32BIT=no
9320 fi
9321
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323 fi
9324 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
9325 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6; }
9326 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
9327
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_DECL_PER_LINUX_32BIT 1
9330 _ACEOF
9331
9332
9333 else
9334   cat >>confdefs.h <<_ACEOF
9335 #define HAVE_DECL_PER_LINUX_32BIT 0
9336 _ACEOF
9337
9338
9339 fi
9340 { echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
9341 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6; }
9342 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   cat >conftest.$ac_ext <<_ACEOF
9346 /* confdefs.h.  */
9347 _ACEOF
9348 cat confdefs.h >>conftest.$ac_ext
9349 cat >>conftest.$ac_ext <<_ACEOF
9350 /* end confdefs.h.  */
9351
9352 #include <linux/personality.h>
9353
9354
9355 int
9356 main ()
9357 {
9358 #ifndef PER_SVR4
9359   (void) PER_SVR4;
9360 #endif
9361
9362   ;
9363   return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext
9367 if { (ac_try="$ac_compile"
9368 case "(($ac_try" in
9369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370   *) ac_try_echo=$ac_try;;
9371 esac
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373   (eval "$ac_compile") 2>conftest.er1
9374   ac_status=$?
9375   grep -v '^ *+' conftest.er1 >conftest.err
9376   rm -f conftest.er1
9377   cat conftest.err >&5
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); } && {
9380          test -z "$ac_c_werror_flag" ||
9381          test ! -s conftest.err
9382        } && test -s conftest.$ac_objext; then
9383   ac_cv_have_decl_PER_SVR4=yes
9384 else
9385   echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9387
9388         ac_cv_have_decl_PER_SVR4=no
9389 fi
9390
9391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
9394 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6; }
9395 if test $ac_cv_have_decl_PER_SVR4 = yes; then
9396
9397 cat >>confdefs.h <<_ACEOF
9398 #define HAVE_DECL_PER_SVR4 1
9399 _ACEOF
9400
9401
9402 else
9403   cat >>confdefs.h <<_ACEOF
9404 #define HAVE_DECL_PER_SVR4 0
9405 _ACEOF
9406
9407
9408 fi
9409 { echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
9410 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6; }
9411 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420
9421 #include <linux/personality.h>
9422
9423
9424 int
9425 main ()
9426 {
9427 #ifndef PER_SVR3
9428   (void) PER_SVR3;
9429 #endif
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_compile") 2>conftest.er1
9443   ac_status=$?
9444   grep -v '^ *+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } && {
9449          test -z "$ac_c_werror_flag" ||
9450          test ! -s conftest.err
9451        } && test -s conftest.$ac_objext; then
9452   ac_cv_have_decl_PER_SVR3=yes
9453 else
9454   echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.$ac_ext >&5
9456
9457         ac_cv_have_decl_PER_SVR3=no
9458 fi
9459
9460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461 fi
9462 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
9463 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6; }
9464 if test $ac_cv_have_decl_PER_SVR3 = yes; then
9465
9466 cat >>confdefs.h <<_ACEOF
9467 #define HAVE_DECL_PER_SVR3 1
9468 _ACEOF
9469
9470
9471 else
9472   cat >>confdefs.h <<_ACEOF
9473 #define HAVE_DECL_PER_SVR3 0
9474 _ACEOF
9475
9476
9477 fi
9478 { echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
9479 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6; }
9480 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489
9490 #include <linux/personality.h>
9491
9492
9493 int
9494 main ()
9495 {
9496 #ifndef PER_SCOSVR3
9497   (void) PER_SCOSVR3;
9498 #endif
9499
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext
9505 if { (ac_try="$ac_compile"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_compile") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest.$ac_objext; then
9521   ac_cv_have_decl_PER_SCOSVR3=yes
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526         ac_cv_have_decl_PER_SCOSVR3=no
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 fi
9531 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
9532 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6; }
9533 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define HAVE_DECL_PER_SCOSVR3 1
9537 _ACEOF
9538
9539
9540 else
9541   cat >>confdefs.h <<_ACEOF
9542 #define HAVE_DECL_PER_SCOSVR3 0
9543 _ACEOF
9544
9545
9546 fi
9547 { echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
9548 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6; }
9549 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558
9559 #include <linux/personality.h>
9560
9561
9562 int
9563 main ()
9564 {
9565 #ifndef PER_OSR5
9566   (void) PER_OSR5;
9567 #endif
9568
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9575 case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_compile") 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } && {
9587          test -z "$ac_c_werror_flag" ||
9588          test ! -s conftest.err
9589        } && test -s conftest.$ac_objext; then
9590   ac_cv_have_decl_PER_OSR5=yes
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595         ac_cv_have_decl_PER_OSR5=no
9596 fi
9597
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599 fi
9600 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
9601 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6; }
9602 if test $ac_cv_have_decl_PER_OSR5 = yes; then
9603
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_DECL_PER_OSR5 1
9606 _ACEOF
9607
9608
9609 else
9610   cat >>confdefs.h <<_ACEOF
9611 #define HAVE_DECL_PER_OSR5 0
9612 _ACEOF
9613
9614
9615 fi
9616 { echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
9617 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6; }
9618 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
9619   echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621   cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h.  */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h.  */
9627
9628 #include <linux/personality.h>
9629
9630
9631 int
9632 main ()
9633 {
9634 #ifndef PER_WYSEV386
9635   (void) PER_WYSEV386;
9636 #endif
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (ac_try="$ac_compile"
9644 case "(($ac_try" in
9645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646   *) ac_try_echo=$ac_try;;
9647 esac
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649   (eval "$ac_compile") 2>conftest.er1
9650   ac_status=$?
9651   grep -v '^ *+' conftest.er1 >conftest.err
9652   rm -f conftest.er1
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } && {
9656          test -z "$ac_c_werror_flag" ||
9657          test ! -s conftest.err
9658        } && test -s conftest.$ac_objext; then
9659   ac_cv_have_decl_PER_WYSEV386=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664         ac_cv_have_decl_PER_WYSEV386=no
9665 fi
9666
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9670 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6; }
9671 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9672
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_DECL_PER_WYSEV386 1
9675 _ACEOF
9676
9677
9678 else
9679   cat >>confdefs.h <<_ACEOF
9680 #define HAVE_DECL_PER_WYSEV386 0
9681 _ACEOF
9682
9683
9684 fi
9685 { echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9686 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6; }
9687 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 #include <linux/personality.h>
9698
9699
9700 int
9701 main ()
9702 {
9703 #ifndef PER_ISCR4
9704   (void) PER_ISCR4;
9705 #endif
9706
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (ac_try="$ac_compile"
9713 case "(($ac_try" in
9714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715   *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718   (eval "$ac_compile") 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } && {
9725          test -z "$ac_c_werror_flag" ||
9726          test ! -s conftest.err
9727        } && test -s conftest.$ac_objext; then
9728   ac_cv_have_decl_PER_ISCR4=yes
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733         ac_cv_have_decl_PER_ISCR4=no
9734 fi
9735
9736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 fi
9738 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9739 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6; }
9740 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9741
9742 cat >>confdefs.h <<_ACEOF
9743 #define HAVE_DECL_PER_ISCR4 1
9744 _ACEOF
9745
9746
9747 else
9748   cat >>confdefs.h <<_ACEOF
9749 #define HAVE_DECL_PER_ISCR4 0
9750 _ACEOF
9751
9752
9753 fi
9754 { echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9755 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6; }
9756 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   cat >conftest.$ac_ext <<_ACEOF
9760 /* confdefs.h.  */
9761 _ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h.  */
9765
9766 #include <linux/personality.h>
9767
9768
9769 int
9770 main ()
9771 {
9772 #ifndef PER_BSD
9773   (void) PER_BSD;
9774 #endif
9775
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext
9781 if { (ac_try="$ac_compile"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_compile") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } && {
9794          test -z "$ac_c_werror_flag" ||
9795          test ! -s conftest.err
9796        } && test -s conftest.$ac_objext; then
9797   ac_cv_have_decl_PER_BSD=yes
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802         ac_cv_have_decl_PER_BSD=no
9803 fi
9804
9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 fi
9807 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
9808 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6; }
9809 if test $ac_cv_have_decl_PER_BSD = yes; then
9810
9811 cat >>confdefs.h <<_ACEOF
9812 #define HAVE_DECL_PER_BSD 1
9813 _ACEOF
9814
9815
9816 else
9817   cat >>confdefs.h <<_ACEOF
9818 #define HAVE_DECL_PER_BSD 0
9819 _ACEOF
9820
9821
9822 fi
9823 { echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
9824 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6; }
9825 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828   cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834
9835 #include <linux/personality.h>
9836
9837
9838 int
9839 main ()
9840 {
9841 #ifndef PER_SUNOS
9842   (void) PER_SUNOS;
9843 #endif
9844
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext
9850 if { (ac_try="$ac_compile"
9851 case "(($ac_try" in
9852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853   *) ac_try_echo=$ac_try;;
9854 esac
9855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856   (eval "$ac_compile") 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } && {
9863          test -z "$ac_c_werror_flag" ||
9864          test ! -s conftest.err
9865        } && test -s conftest.$ac_objext; then
9866   ac_cv_have_decl_PER_SUNOS=yes
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871         ac_cv_have_decl_PER_SUNOS=no
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 fi
9876 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
9877 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6; }
9878 if test $ac_cv_have_decl_PER_SUNOS = yes; then
9879
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_DECL_PER_SUNOS 1
9882 _ACEOF
9883
9884
9885 else
9886   cat >>confdefs.h <<_ACEOF
9887 #define HAVE_DECL_PER_SUNOS 0
9888 _ACEOF
9889
9890
9891 fi
9892 { echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
9893 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6; }
9894 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903
9904 #include <linux/personality.h>
9905
9906
9907 int
9908 main ()
9909 {
9910 #ifndef PER_XENIX
9911   (void) PER_XENIX;
9912 #endif
9913
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext
9919 if { (ac_try="$ac_compile"
9920 case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_compile") 2>conftest.er1
9926   ac_status=$?
9927   grep -v '^ *+' conftest.er1 >conftest.err
9928   rm -f conftest.er1
9929   cat conftest.err >&5
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } && {
9932          test -z "$ac_c_werror_flag" ||
9933          test ! -s conftest.err
9934        } && test -s conftest.$ac_objext; then
9935   ac_cv_have_decl_PER_XENIX=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940         ac_cv_have_decl_PER_XENIX=no
9941 fi
9942
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9944 fi
9945 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
9946 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6; }
9947 if test $ac_cv_have_decl_PER_XENIX = yes; then
9948
9949 cat >>confdefs.h <<_ACEOF
9950 #define HAVE_DECL_PER_XENIX 1
9951 _ACEOF
9952
9953
9954 else
9955   cat >>confdefs.h <<_ACEOF
9956 #define HAVE_DECL_PER_XENIX 0
9957 _ACEOF
9958
9959
9960 fi
9961 { echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
9962 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6; }
9963 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972
9973 #include <linux/personality.h>
9974
9975
9976 int
9977 main ()
9978 {
9979 #ifndef PER_LINUX32
9980   (void) PER_LINUX32;
9981 #endif
9982
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_compile") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } && {
10001          test -z "$ac_c_werror_flag" ||
10002          test ! -s conftest.err
10003        } && test -s conftest.$ac_objext; then
10004   ac_cv_have_decl_PER_LINUX32=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         ac_cv_have_decl_PER_LINUX32=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6; }
10016 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
10017
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_DECL_PER_LINUX32 1
10020 _ACEOF
10021
10022
10023 else
10024   cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_PER_LINUX32 0
10026 _ACEOF
10027
10028
10029 fi
10030 { echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
10031 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6; }
10032 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 #include <linux/personality.h>
10043
10044
10045 int
10046 main ()
10047 {
10048 #ifndef PER_LINUX32_3GB
10049   (void) PER_LINUX32_3GB;
10050 #endif
10051
10052   ;
10053   return 0;
10054 }
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (ac_try="$ac_compile"
10058 case "(($ac_try" in
10059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060   *) ac_try_echo=$ac_try;;
10061 esac
10062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063   (eval "$ac_compile") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } && {
10070          test -z "$ac_c_werror_flag" ||
10071          test ! -s conftest.err
10072        } && test -s conftest.$ac_objext; then
10073   ac_cv_have_decl_PER_LINUX32_3GB=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_have_decl_PER_LINUX32_3GB=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 fi
10083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
10084 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6; }
10085 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
10086
10087 cat >>confdefs.h <<_ACEOF
10088 #define HAVE_DECL_PER_LINUX32_3GB 1
10089 _ACEOF
10090
10091
10092 else
10093   cat >>confdefs.h <<_ACEOF
10094 #define HAVE_DECL_PER_LINUX32_3GB 0
10095 _ACEOF
10096
10097
10098 fi
10099 { echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
10100 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6; }
10101 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
10102   echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104   cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 #include <linux/personality.h>
10112
10113
10114 int
10115 main ()
10116 {
10117 #ifndef PER_IRIX32
10118   (void) PER_IRIX32;
10119 #endif
10120
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (ac_try="$ac_compile"
10127 case "(($ac_try" in
10128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129   *) ac_try_echo=$ac_try;;
10130 esac
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132   (eval "$ac_compile") 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } && {
10139          test -z "$ac_c_werror_flag" ||
10140          test ! -s conftest.err
10141        } && test -s conftest.$ac_objext; then
10142   ac_cv_have_decl_PER_IRIX32=yes
10143 else
10144   echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10146
10147         ac_cv_have_decl_PER_IRIX32=no
10148 fi
10149
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 fi
10152 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
10153 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6; }
10154 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
10155
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_DECL_PER_IRIX32 1
10158 _ACEOF
10159
10160
10161 else
10162   cat >>confdefs.h <<_ACEOF
10163 #define HAVE_DECL_PER_IRIX32 0
10164 _ACEOF
10165
10166
10167 fi
10168 { echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
10169 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6; }
10170 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179
10180 #include <linux/personality.h>
10181
10182
10183 int
10184 main ()
10185 {
10186 #ifndef PER_IRIXN32
10187   (void) PER_IRIXN32;
10188 #endif
10189
10190   ;
10191   return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext
10195 if { (ac_try="$ac_compile"
10196 case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_compile") 2>conftest.er1
10202   ac_status=$?
10203   grep -v '^ *+' conftest.er1 >conftest.err
10204   rm -f conftest.er1
10205   cat conftest.err >&5
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); } && {
10208          test -z "$ac_c_werror_flag" ||
10209          test ! -s conftest.err
10210        } && test -s conftest.$ac_objext; then
10211   ac_cv_have_decl_PER_IRIXN32=yes
10212 else
10213   echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10215
10216         ac_cv_have_decl_PER_IRIXN32=no
10217 fi
10218
10219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10220 fi
10221 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
10222 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6; }
10223 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
10224
10225 cat >>confdefs.h <<_ACEOF
10226 #define HAVE_DECL_PER_IRIXN32 1
10227 _ACEOF
10228
10229
10230 else
10231   cat >>confdefs.h <<_ACEOF
10232 #define HAVE_DECL_PER_IRIXN32 0
10233 _ACEOF
10234
10235
10236 fi
10237 { echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
10238 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6; }
10239 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
10240   echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242   cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248
10249 #include <linux/personality.h>
10250
10251
10252 int
10253 main ()
10254 {
10255 #ifndef PER_IRIX64
10256   (void) PER_IRIX64;
10257 #endif
10258
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_compile") 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } && {
10277          test -z "$ac_c_werror_flag" ||
10278          test ! -s conftest.err
10279        } && test -s conftest.$ac_objext; then
10280   ac_cv_have_decl_PER_IRIX64=yes
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285         ac_cv_have_decl_PER_IRIX64=no
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 fi
10290 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
10291 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6; }
10292 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
10293
10294 cat >>confdefs.h <<_ACEOF
10295 #define HAVE_DECL_PER_IRIX64 1
10296 _ACEOF
10297
10298
10299 else
10300   cat >>confdefs.h <<_ACEOF
10301 #define HAVE_DECL_PER_IRIX64 0
10302 _ACEOF
10303
10304
10305 fi
10306 { echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
10307 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6; }
10308 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 /* confdefs.h.  */
10313 _ACEOF
10314 cat confdefs.h >>conftest.$ac_ext
10315 cat >>conftest.$ac_ext <<_ACEOF
10316 /* end confdefs.h.  */
10317
10318 #include <linux/personality.h>
10319
10320
10321 int
10322 main ()
10323 {
10324 #ifndef PER_RISCOS
10325   (void) PER_RISCOS;
10326 #endif
10327
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_compile") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } && {
10346          test -z "$ac_c_werror_flag" ||
10347          test ! -s conftest.err
10348        } && test -s conftest.$ac_objext; then
10349   ac_cv_have_decl_PER_RISCOS=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354         ac_cv_have_decl_PER_RISCOS=no
10355 fi
10356
10357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358 fi
10359 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
10360 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6; }
10361 if test $ac_cv_have_decl_PER_RISCOS = yes; then
10362
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_DECL_PER_RISCOS 1
10365 _ACEOF
10366
10367
10368 else
10369   cat >>confdefs.h <<_ACEOF
10370 #define HAVE_DECL_PER_RISCOS 0
10371 _ACEOF
10372
10373
10374 fi
10375 { echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
10376 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6; }
10377 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 #include <linux/personality.h>
10388
10389
10390 int
10391 main ()
10392 {
10393 #ifndef PER_SOLARIS
10394   (void) PER_SOLARIS;
10395 #endif
10396
10397   ;
10398   return 0;
10399 }
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10408   (eval "$ac_compile") 2>conftest.er1
10409   ac_status=$?
10410   grep -v '^ *+' conftest.er1 >conftest.err
10411   rm -f conftest.er1
10412   cat conftest.err >&5
10413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414   (exit $ac_status); } && {
10415          test -z "$ac_c_werror_flag" ||
10416          test ! -s conftest.err
10417        } && test -s conftest.$ac_objext; then
10418   ac_cv_have_decl_PER_SOLARIS=yes
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423         ac_cv_have_decl_PER_SOLARIS=no
10424 fi
10425
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 fi
10428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
10429 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6; }
10430 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
10431
10432 cat >>confdefs.h <<_ACEOF
10433 #define HAVE_DECL_PER_SOLARIS 1
10434 _ACEOF
10435
10436
10437 else
10438   cat >>confdefs.h <<_ACEOF
10439 #define HAVE_DECL_PER_SOLARIS 0
10440 _ACEOF
10441
10442
10443 fi
10444 { echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
10445 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6; }
10446 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
10447   echo $ECHO_N "(cached) $ECHO_C" >&6
10448 else
10449   cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455
10456 #include <linux/personality.h>
10457
10458
10459 int
10460 main ()
10461 {
10462 #ifndef PER_UW7
10463   (void) PER_UW7;
10464 #endif
10465
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (ac_try="$ac_compile"
10472 case "(($ac_try" in
10473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474   *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477   (eval "$ac_compile") 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } && {
10484          test -z "$ac_c_werror_flag" ||
10485          test ! -s conftest.err
10486        } && test -s conftest.$ac_objext; then
10487   ac_cv_have_decl_PER_UW7=yes
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492         ac_cv_have_decl_PER_UW7=no
10493 fi
10494
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
10498 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6; }
10499 if test $ac_cv_have_decl_PER_UW7 = yes; then
10500
10501 cat >>confdefs.h <<_ACEOF
10502 #define HAVE_DECL_PER_UW7 1
10503 _ACEOF
10504
10505
10506 else
10507   cat >>confdefs.h <<_ACEOF
10508 #define HAVE_DECL_PER_UW7 0
10509 _ACEOF
10510
10511
10512 fi
10513 { echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
10514 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6; }
10515 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
10516   echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518   cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524
10525 #include <linux/personality.h>
10526
10527
10528 int
10529 main ()
10530 {
10531 #ifndef PER_HPUX
10532   (void) PER_HPUX;
10533 #endif
10534
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext
10540 if { (ac_try="$ac_compile"
10541 case "(($ac_try" in
10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543   *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546   (eval "$ac_compile") 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } && {
10553          test -z "$ac_c_werror_flag" ||
10554          test ! -s conftest.err
10555        } && test -s conftest.$ac_objext; then
10556   ac_cv_have_decl_PER_HPUX=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561         ac_cv_have_decl_PER_HPUX=no
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565 fi
10566 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
10567 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6; }
10568 if test $ac_cv_have_decl_PER_HPUX = yes; then
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_DECL_PER_HPUX 1
10572 _ACEOF
10573
10574
10575 else
10576   cat >>confdefs.h <<_ACEOF
10577 #define HAVE_DECL_PER_HPUX 0
10578 _ACEOF
10579
10580
10581 fi
10582 { echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
10583 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6; }
10584 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
10585   echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587   cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h.  */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h.  */
10593
10594 #include <linux/personality.h>
10595
10596
10597 int
10598 main ()
10599 {
10600 #ifndef PER_OSF4
10601   (void) PER_OSF4;
10602 #endif
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_compile") 2>conftest.er1
10616   ac_status=$?
10617   grep -v '^ *+' conftest.er1 >conftest.err
10618   rm -f conftest.er1
10619   cat conftest.err >&5
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } && {
10622          test -z "$ac_c_werror_flag" ||
10623          test ! -s conftest.err
10624        } && test -s conftest.$ac_objext; then
10625   ac_cv_have_decl_PER_OSF4=yes
10626 else
10627   echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10629
10630         ac_cv_have_decl_PER_OSF4=no
10631 fi
10632
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 fi
10635 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10636 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6; }
10637 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10638
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_DECL_PER_OSF4 1
10641 _ACEOF
10642
10643
10644 else
10645   cat >>confdefs.h <<_ACEOF
10646 #define HAVE_DECL_PER_OSF4 0
10647 _ACEOF
10648
10649
10650 fi
10651
10652
10653         ac_ext=c
10654 ac_cpp='$CPP $CPPFLAGS'
10655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10658
10659
10660
10661
10662
10663
10664         { echo "$as_me:$LINENO: checking for initrddir" >&5
10665 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6; }
10666
10667 # Check whether --with-initrddir was given.
10668 if test "${with_initrddir+set}" = set; then
10669   withval=$with_initrddir; case "$withval" in
10670                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10671 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10672    { (exit 1); exit 1; }; };;
10673                         *)      ensc_initrddir=$withval;;
10674                      esac
10675 else
10676   ensc_initrddir='$(sysconfdir)/init.d'
10677 fi
10678
10679
10680         if test "initrddir"; then
10681                 initrddir=$ensc_initrddir
10682
10683         fi
10684
10685         { echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10686 echo "${ECHO_T}$ensc_initrddir" >&6; }
10687
10688
10689         { echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10690 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6; }
10691         # Check whether --enable-release was given.
10692 if test "${enable_release+set}" = set; then
10693   enableval=$enable_release; case "$enableval" in
10694                           yes)  ensc_release_mode=yes;;
10695                           no)   ensc_release_mode=no;;
10696                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10697 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10698    { (exit 1); exit 1; }; };;
10699                        esac
10700 else
10701    ensc_release_mode=no
10702 fi
10703
10704
10705         if test x"$ensc_release_mode" = xno; then
10706                 RELEASE_CPPFLAGS=
10707         else
10708                 RELEASE_CPPFLAGS='-DNDEBUG'
10709         fi
10710
10711
10712         { echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10713 echo "${ECHO_T}$ensc_release_mode" >&6; }
10714
10715
10716 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10717 # syscalls will never be enabled for glibc.
10718 ac_ext=c
10719 ac_cpp='$CPP $CPPFLAGS'
10720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10723 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10724 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10725 # On Suns, sometimes $CPP names a directory.
10726 if test -n "$CPP" && test -d "$CPP"; then
10727   CPP=
10728 fi
10729 if test -z "$CPP"; then
10730   if test "${ac_cv_prog_CPP+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733       # Double quotes because CPP needs to be expanded
10734     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10735     do
10736       ac_preproc_ok=false
10737 for ac_c_preproc_warn_flag in '' yes
10738 do
10739   # Use a header file that comes with gcc, so configuring glibc
10740   # with a fresh cross-compiler works.
10741   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10742   # <limits.h> exists even on freestanding compilers.
10743   # On the NeXT, cc -E runs the code through the compiler's parser,
10744   # not just through cpp. "Syntax error" is here to catch this case.
10745   cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751 #ifdef __STDC__
10752 # include <limits.h>
10753 #else
10754 # include <assert.h>
10755 #endif
10756                      Syntax error
10757 _ACEOF
10758 if { (ac_try="$ac_cpp conftest.$ac_ext"
10759 case "(($ac_try" in
10760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761   *) ac_try_echo=$ac_try;;
10762 esac
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10765   ac_status=$?
10766   grep -v '^ *+' conftest.er1 >conftest.err
10767   rm -f conftest.er1
10768   cat conftest.err >&5
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); } >/dev/null && {
10771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10772          test ! -s conftest.err
10773        }; then
10774   :
10775 else
10776   echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10778
10779   # Broken: fails on valid input.
10780 continue
10781 fi
10782
10783 rm -f conftest.err conftest.$ac_ext
10784
10785   # OK, works on sane cases.  Now check whether nonexistent headers
10786   # can be detected and how.
10787   cat >conftest.$ac_ext <<_ACEOF
10788 /* confdefs.h.  */
10789 _ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h.  */
10793 #include <ac_nonexistent.h>
10794 _ACEOF
10795 if { (ac_try="$ac_cpp conftest.$ac_ext"
10796 case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } >/dev/null && {
10808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10809          test ! -s conftest.err
10810        }; then
10811   # Broken: success on invalid input.
10812 continue
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817   # Passes both tests.
10818 ac_preproc_ok=:
10819 break
10820 fi
10821
10822 rm -f conftest.err conftest.$ac_ext
10823
10824 done
10825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10826 rm -f conftest.err conftest.$ac_ext
10827 if $ac_preproc_ok; then
10828   break
10829 fi
10830
10831     done
10832     ac_cv_prog_CPP=$CPP
10833
10834 fi
10835   CPP=$ac_cv_prog_CPP
10836 else
10837   ac_cv_prog_CPP=$CPP
10838 fi
10839 { echo "$as_me:$LINENO: result: $CPP" >&5
10840 echo "${ECHO_T}$CPP" >&6; }
10841 ac_preproc_ok=false
10842 for ac_c_preproc_warn_flag in '' yes
10843 do
10844   # Use a header file that comes with gcc, so configuring glibc
10845   # with a fresh cross-compiler works.
10846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10847   # <limits.h> exists even on freestanding compilers.
10848   # On the NeXT, cc -E runs the code through the compiler's parser,
10849   # not just through cpp. "Syntax error" is here to catch this case.
10850   cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856 #ifdef __STDC__
10857 # include <limits.h>
10858 #else
10859 # include <assert.h>
10860 #endif
10861                      Syntax error
10862 _ACEOF
10863 if { (ac_try="$ac_cpp conftest.$ac_ext"
10864 case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10870   ac_status=$?
10871   grep -v '^ *+' conftest.er1 >conftest.err
10872   rm -f conftest.er1
10873   cat conftest.err >&5
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); } >/dev/null && {
10876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10877          test ! -s conftest.err
10878        }; then
10879   :
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884   # Broken: fails on valid input.
10885 continue
10886 fi
10887
10888 rm -f conftest.err conftest.$ac_ext
10889
10890   # OK, works on sane cases.  Now check whether nonexistent headers
10891   # can be detected and how.
10892   cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898 #include <ac_nonexistent.h>
10899 _ACEOF
10900 if { (ac_try="$ac_cpp conftest.$ac_ext"
10901 case "(($ac_try" in
10902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903   *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10907   ac_status=$?
10908   grep -v '^ *+' conftest.er1 >conftest.err
10909   rm -f conftest.er1
10910   cat conftest.err >&5
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } >/dev/null && {
10913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10914          test ! -s conftest.err
10915        }; then
10916   # Broken: success on invalid input.
10917 continue
10918 else
10919   echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922   # Passes both tests.
10923 ac_preproc_ok=:
10924 break
10925 fi
10926
10927 rm -f conftest.err conftest.$ac_ext
10928
10929 done
10930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10931 rm -f conftest.err conftest.$ac_ext
10932 if $ac_preproc_ok; then
10933   :
10934 else
10935   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10936 See \`config.log' for more details." >&5
10937 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10938 See \`config.log' for more details." >&2;}
10939    { (exit 1); exit 1; }; }
10940 fi
10941
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
10948 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
10949 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
10950 if test "${ac_cv_path_GREP+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   # Extract the first word of "grep ggrep" to use in msg output
10954 if test -z "$GREP"; then
10955 set dummy grep ggrep; ac_prog_name=$2
10956 if test "${ac_cv_path_GREP+set}" = set; then
10957   echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959   ac_path_GREP_found=false
10960 # Loop through the user's path and test for each of PROGNAME-LIST
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10963 do
10964   IFS=$as_save_IFS
10965   test -z "$as_dir" && as_dir=.
10966   for ac_prog in grep ggrep; do
10967   for ac_exec_ext in '' $ac_executable_extensions; do
10968     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10969     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10970     # Check for GNU ac_path_GREP and select it if it is found.
10971   # Check for GNU $ac_path_GREP
10972 case `"$ac_path_GREP" --version 2>&1` in
10973 *GNU*)
10974   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10975 *)
10976   ac_count=0
10977   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10978   while :
10979   do
10980     cat "conftest.in" "conftest.in" >"conftest.tmp"
10981     mv "conftest.tmp" "conftest.in"
10982     cp "conftest.in" "conftest.nl"
10983     echo 'GREP' >> "conftest.nl"
10984     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10985     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10986     ac_count=`expr $ac_count + 1`
10987     if test $ac_count -gt ${ac_path_GREP_max-0}; then
10988       # Best one so far, save it but keep looking for a better one
10989       ac_cv_path_GREP="$ac_path_GREP"
10990       ac_path_GREP_max=$ac_count
10991     fi
10992     # 10*(2^10) chars as input seems more than enough
10993     test $ac_count -gt 10 && break
10994   done
10995   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10996 esac
10997
10998
10999     $ac_path_GREP_found && break 3
11000   done
11001 done
11002
11003 done
11004 IFS=$as_save_IFS
11005
11006
11007 fi
11008
11009 GREP="$ac_cv_path_GREP"
11010 if test -z "$GREP"; then
11011   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11012 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11013    { (exit 1); exit 1; }; }
11014 fi
11015
11016 else
11017   ac_cv_path_GREP=$GREP
11018 fi
11019
11020
11021 fi
11022 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
11023 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
11024  GREP="$ac_cv_path_GREP"
11025
11026
11027 { echo "$as_me:$LINENO: checking for egrep" >&5
11028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11029 if test "${ac_cv_path_EGREP+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11033    then ac_cv_path_EGREP="$GREP -E"
11034    else
11035      # Extract the first word of "egrep" to use in msg output
11036 if test -z "$EGREP"; then
11037 set dummy egrep; ac_prog_name=$2
11038 if test "${ac_cv_path_EGREP+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041   ac_path_EGREP_found=false
11042 # Loop through the user's path and test for each of PROGNAME-LIST
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11045 do
11046   IFS=$as_save_IFS
11047   test -z "$as_dir" && as_dir=.
11048   for ac_prog in egrep; do
11049   for ac_exec_ext in '' $ac_executable_extensions; do
11050     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11051     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11052     # Check for GNU ac_path_EGREP and select it if it is found.
11053   # Check for GNU $ac_path_EGREP
11054 case `"$ac_path_EGREP" --version 2>&1` in
11055 *GNU*)
11056   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11057 *)
11058   ac_count=0
11059   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11060   while :
11061   do
11062     cat "conftest.in" "conftest.in" >"conftest.tmp"
11063     mv "conftest.tmp" "conftest.in"
11064     cp "conftest.in" "conftest.nl"
11065     echo 'EGREP' >> "conftest.nl"
11066     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11068     ac_count=`expr $ac_count + 1`
11069     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11070       # Best one so far, save it but keep looking for a better one
11071       ac_cv_path_EGREP="$ac_path_EGREP"
11072       ac_path_EGREP_max=$ac_count
11073     fi
11074     # 10*(2^10) chars as input seems more than enough
11075     test $ac_count -gt 10 && break
11076   done
11077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11078 esac
11079
11080
11081     $ac_path_EGREP_found && break 3
11082   done
11083 done
11084
11085 done
11086 IFS=$as_save_IFS
11087
11088
11089 fi
11090
11091 EGREP="$ac_cv_path_EGREP"
11092 if test -z "$EGREP"; then
11093   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11094 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11095    { (exit 1); exit 1; }; }
11096 fi
11097
11098 else
11099   ac_cv_path_EGREP=$EGREP
11100 fi
11101
11102
11103    fi
11104 fi
11105 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11106 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11107  EGREP="$ac_cv_path_EGREP"
11108
11109
11110
11111
11112
11113
11114         { echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
11115 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6; }
11116 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
11117   echo $ECHO_N "(cached) $ECHO_C" >&6
11118 else
11119
11120                 ac_ext=c
11121 ac_cpp='$CPP $CPPFLAGS'
11122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11125
11126                 cat >conftest.$ac_ext <<_ACEOF
11127
11128 #ifdef ENSC_SYSCALL_FALLBACK
11129 #  include ENSC_SYSCALL_FALLBACK
11130 #else
11131 #  include <asm/unistd.h>
11132 #endif
11133 #ifdef __NR_vserver
11134 ensc_syscall_tmp_nr=__NR_vserver;
11135 ensc_syscall_tmp_src=ENSC_MARK
11136 #endif
11137
11138 _ACEOF
11139                 ensc_syscall_tmp_nr=
11140                 ensc_syscall_tmp_src=
11141                 test x"$ensc_syscall_tmp_nr" != x || \
11142                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
11143                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
11144                         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=.*)$')
11145                 test "$ensc_syscall_tmp_nr" || {
11146                         ensc_syscall_tmp_nr=273
11147                         ensc_syscall_tmp_src=default
11148                 }
11149
11150                 if test x"$ensc_syscall_tmp_nr" = x; then
11151                         { { 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
11152 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;}
11153    { (exit 1); exit 1; }; }
11154                 fi
11155                 ac_ext=c
11156 ac_cpp='$CPP $CPPFLAGS'
11157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11160
11161
11162                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
11163
11164 fi
11165 { echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
11166 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6; }
11167
11168         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
11169         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
11170
11171         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
11172
11173 cat >>confdefs.h <<_ACEOF
11174 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
11175 _ACEOF
11176
11177         fi
11178
11179
11180         { echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
11181 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6; }
11182         # Check whether --enable-alternative-syscalls was given.
11183 if test "${enable_alternative_syscalls+set}" = set; then
11184   enableval=$enable_alternative_syscalls; case $enableval in
11185                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
11186                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
11187 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
11188    { (exit 1); exit 1; }; };;
11189                        esac
11190 else
11191   ensc_use_alternative_syscall_macros=yes
11192 fi
11193
11194
11195         case $ensc_use_alternative_syscall_macros in
11196                 (yes)
11197 cat >>confdefs.h <<\_ACEOF
11198 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
11199 _ACEOF
11200 ;;
11201         esac
11202
11203         { echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
11204 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6; }
11205
11206
11207
11208
11209         { echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
11210 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6; }
11211
11212 # Check whether --with-syscall was given.
11213 if test "${with_syscall+set}" = set; then
11214   withval=$with_syscall;
11215 else
11216   with_syscall=auto
11217 fi
11218
11219         { echo "$as_me:$LINENO: result: $with_syscall" >&5
11220 echo "${ECHO_T}$with_syscall" >&6; }
11221
11222         case x"$with_syscall" in
11223             (xauto)
11224                 { echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
11225 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6; }
11226 if test "${ensc_cv_test_syscall+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229
11230                                 ac_ext=c
11231 ac_cpp='$CPP $CPPFLAGS'
11232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11235
11236                                 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h.  */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h.  */
11242
11243 #include "$srcdir/lib/syscall-wrap.h"
11244 #include <errno.h>
11245
11246 #define __NR_foo0       300
11247 #define __NR_foo1       301
11248 #define __NR_foo2       302
11249 #define __NR_foo3       303
11250 #define __NR_foo4       304
11251 #define __NR_foo5       305
11252 inline static _syscall0(int, foo0)
11253 inline static _syscall1(int, foo1, int, a)
11254 inline static _syscall2(int, foo2, int, a, int, b)
11255 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11256 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11257 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11258
11259 int main() {
11260   return foo0() || \
11261          foo1(1) || \
11262          foo2(1,2) || \
11263          foo3(1,2,3) || \
11264          foo4(1,2,3,4) || \
11265          foo5(1,2,3,4,5);
11266 }
11267
11268 _ACEOF
11269 rm -f conftest.$ac_objext
11270 if { (ac_try="$ac_compile"
11271 case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_compile") 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } && {
11283          test -z "$ac_c_werror_flag" ||
11284          test ! -s conftest.err
11285        } && test -s conftest.$ac_objext; then
11286   ensc_cv_test_syscall=fast
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ensc_cv_test_syscall=traditional
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295
11296                                 ac_ext=c
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302
11303 fi
11304 { echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
11305 echo "${ECHO_T}$ensc_cv_test_syscall" >&6; }
11306                 with_syscall=$ensc_cv_test_syscall
11307                 ;;
11308             (xfast|xtraditional)
11309                 ;;
11310             *)
11311                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
11312 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
11313    { (exit 1); exit 1; }; }
11314                 ;;
11315         esac
11316
11317         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
11318             with_syscall='alternative'
11319         fi
11320
11321         if test x"$with_syscall" = xtraditional; then
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define ENSC_SYSCALL_TRADITIONAL 1
11325 _ACEOF
11326
11327         fi
11328
11329
11330
11331
11332
11333
11334 case $host_cpu in
11335         (i*86|athlon)   min_diet_ver=0.25;;
11336         (ia64|hppa*)    min_diet_ver=0.29;;
11337         (sparc*)        min_diet_ver=0.30;;
11338         (x86_64)        min_diet_ver=0.27;;
11339         (*)             min_diet_ver=0.28;;
11340 esac
11341
11342
11343         { echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
11344 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6; }
11345
11346
11347
11348
11349         : ${DIET:=diet}
11350         : ${DIETFLAGS=-Os}
11351
11352         # Check whether --enable-dietlibc was given.
11353 if test "${enable_dietlibc+set}" = set; then
11354   enableval=$enable_dietlibc; case "$enableval" in
11355                           (yes) use_dietlibc=forced;;
11356                           (no)  use_dietlibc=forced_no;;
11357                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
11358 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
11359    { (exit 1); exit 1; }; };;
11360                        esac
11361 else
11362   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
11363 fi
11364
11365
11366         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
11367             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
11368             _dietlibc_ver=${_dietlibc_ver##*diet version }
11369             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
11370             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
11371             _dietlibc_ver_min=${_dietlibc_ver##*.}
11372             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
11373             _dietlibc_cmp="$min_diet_ver"
11374             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
11375             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
11376
11377             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
11378
11379             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
11380             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
11381
11382             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
11383         else
11384             ENSC_VERSION_DIETLIBC=
11385             _dietlibc_ver=-1
11386         fi
11387
11388         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
11389         ensc_have_dietlibc=no
11390
11391         case x"$use_dietlibc" in
11392             xdetected)
11393                  if true; then
11394   USE_DIETLIBC_TRUE=
11395   USE_DIETLIBC_FALSE='#'
11396 else
11397   USE_DIETLIBC_TRUE='#'
11398   USE_DIETLIBC_FALSE=
11399 fi
11400
11401                 { echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
11402 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6; }
11403                 ensc_have_dietlibc=yes
11404                 ;;
11405             xforced)
11406                  if true; then
11407   USE_DIETLIBC_TRUE=
11408   USE_DIETLIBC_FALSE='#'
11409 else
11410   USE_DIETLIBC_TRUE='#'
11411   USE_DIETLIBC_FALSE=
11412 fi
11413
11414                 { echo "$as_me:$LINENO: result: yes (forced)" >&5
11415 echo "${ECHO_T}yes (forced)" >&6; }
11416                 ensc_have_dietlibc=yes
11417                 ;;
11418             xdetected_no)
11419                  if false; then
11420   USE_DIETLIBC_TRUE=
11421   USE_DIETLIBC_FALSE='#'
11422 else
11423   USE_DIETLIBC_TRUE='#'
11424   USE_DIETLIBC_FALSE=
11425 fi
11426
11427                 { echo "$as_me:$LINENO: result: no (detected)" >&5
11428 echo "${ECHO_T}no (detected)" >&6; }
11429                 ;;
11430             xdetected_old)
11431                  if false; then
11432   USE_DIETLIBC_TRUE=
11433   USE_DIETLIBC_FALSE='#'
11434 else
11435   USE_DIETLIBC_TRUE='#'
11436   USE_DIETLIBC_FALSE=
11437 fi
11438
11439                 { echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
11440 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6; }
11441                 ;;
11442             xforced_no)
11443                  if false; then
11444   USE_DIETLIBC_TRUE=
11445   USE_DIETLIBC_FALSE='#'
11446 else
11447   USE_DIETLIBC_TRUE='#'
11448   USE_DIETLIBC_FALSE=
11449 fi
11450
11451                 { echo "$as_me:$LINENO: result: no (forced)" >&5
11452 echo "${ECHO_T}no (forced)" >&6; }
11453                 ;;
11454             *)
11455                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
11456 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
11457    { (exit 1); exit 1; }; }
11458                 ;;
11459         esac
11460
11461         if test x"$ensc_have_dietlibc" != xno; then
11462
11463
11464
11465
11466         { echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
11467 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6; }
11468 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
11469   echo $ECHO_N "(cached) $ECHO_C" >&6
11470 else
11471
11472                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
11473                 _ensc_dietlibc_c99_old_CC=$CC
11474
11475                 CFLAGS="-std=c99"
11476                 CC="${DIET:-diet} $CC"
11477
11478                 ac_ext=c
11479 ac_cpp='$CPP $CPPFLAGS'
11480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483
11484                 cat >conftest.$ac_ext <<_ACEOF
11485 /* */
11486 _ACEOF
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491   *) ac_try_echo=$ac_try;;
11492 esac
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494   (eval "$ac_compile") 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } && {
11501          test -z "$ac_c_werror_flag" ||
11502          test ! -s conftest.err
11503        } && test -s conftest.$ac_objext; then
11504
11505                         cat >conftest.$ac_ext <<_ACEOF
11506
11507                                 #include <stdint.h>
11508                                 #include <sys/cdefs.h>
11509                                 #if defined(inline)
11510                                 #  error 'inline' badly defined
11511                                 #endif
11512                                 volatile uint64_t       a;
11513
11514 _ACEOF
11515 rm -f conftest.$ac_objext
11516 if { (ac_try="$ac_compile"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522   (eval "$ac_compile") 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } && {
11529          test -z "$ac_c_werror_flag" ||
11530          test ! -s conftest.err
11531        } && test -s conftest.$ac_objext; then
11532   ensc_cv_c_dietlibc_c99=yes
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537         ensc_cv_c_dietlibc_c99=no
11538 fi
11539
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549                 ac_ext=c
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554
11555
11556                 CC=$_ensc_dietlibc_c99_old_CC
11557                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
11558
11559 fi
11560 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
11561 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6; }
11562
11563         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
11564                 cat >>confdefs.h <<\_ACEOF
11565 #define ENSC_DIETLIBC_C99 1
11566 _ACEOF
11567
11568         fi
11569
11570
11571
11572
11573
11574         { echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
11575 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6; }
11576 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579
11580                 _ensc_dietlibc_syscall_old_CC="$CC"
11581                 CC="${DIET:-diet} $CC"
11582
11583                 ac_ext=c
11584 ac_cpp='$CPP $CPPFLAGS'
11585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11588
11589                 cat >conftest.$ac_ext <<_ACEOF
11590
11591                         #include <sys/syscall.h>
11592                         long int syscall(long int __sysno, ...);
11593
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (ac_try="$ac_compile"
11597 case "(($ac_try" in
11598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599   *) ac_try_echo=$ac_try;;
11600 esac
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602   (eval "$ac_compile") 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } && {
11609          test -z "$ac_c_werror_flag" ||
11610          test ! -s conftest.err
11611        } && test -s conftest.$ac_objext; then
11612   ensc_cv_c_dietlibc_syscall=no
11613 else
11614   echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617         ensc_cv_c_dietlibc_syscall=yes
11618 fi
11619
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621                 ac_ext=c
11622 ac_cpp='$CPP $CPPFLAGS'
11623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11626
11627
11628                 CC="$_ensc_dietlibc_syscall_old_CC"
11629
11630 fi
11631 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
11632 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6; }
11633
11634         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
11635                 cat >>confdefs.h <<\_ACEOF
11636 #define ENSC_DIETLIBC_HAS_SYSCALL 1
11637 _ACEOF
11638
11639         fi
11640
11641         fi
11642
11643
11644 if test x"$ensc_have_dietlibc" = xno; then
11645         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11646 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11647         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
11648 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
11649         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
11650 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
11651         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
11652 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
11653         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
11654 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
11655         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11656 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11657          if false; then
11658   USE_DIETLIBC_COMPAT_TRUE=
11659   USE_DIETLIBC_COMPAT_FALSE='#'
11660 else
11661   USE_DIETLIBC_COMPAT_TRUE='#'
11662   USE_DIETLIBC_COMPAT_FALSE=
11663 fi
11664
11665 else
11666         # HACK: libtool does not have cmdline options to build only
11667         # dynamic libraries; this can be done with the
11668         # '--disable-static' ./configure option only.  As our static
11669         # libraries will be build with dietlibc, we have to do set
11670         # this option which is evaluated by 'AC_PROG_LIBTOOL'
11671         # below.  Therefore, this macro must not be called earlier.
11672         enable_static=no
11673
11674
11675
11676
11677         { echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
11678 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6; }
11679 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
11680   echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682
11683                 ac_ext=c
11684 ac_cpp='$CPP $CPPFLAGS'
11685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11688
11689                 ensc_dietlibc_need_compat_old_CC=$CC
11690                 CC="${DIET:-diet} $CC"
11691                 cat >conftest.$ac_ext <<_ACEOF
11692
11693                         /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698
11699 #include "$srcdir/lib/syscall-wrap.h"
11700 #include <errno.h>
11701
11702 #define __NR_foo0               42
11703 #define __NR_foo1               42
11704 #define __NR_foo2               42
11705 #define __NR_foo3               42
11706 #define __NR_foo4               42
11707 #define __NR_foo5               42
11708 inline static _syscall0(int, foo0)
11709 inline static _syscall1(int, foo1, int, a)
11710 inline static _syscall2(int, foo2, int, a, int, b)
11711 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11712 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11713 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11714
11715 int
11716 main ()
11717 {
11718 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727   *) ac_try_echo=$ac_try;;
11728 esac
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730   (eval "$ac_link") 2>conftest.er1
11731   ac_status=$?
11732   grep -v '^ *+' conftest.er1 >conftest.err
11733   rm -f conftest.er1
11734   cat conftest.err >&5
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); } && {
11737          test -z "$ac_c_werror_flag" ||
11738          test ! -s conftest.err
11739        } && test -s conftest$ac_exeext &&
11740        $as_test_x conftest$ac_exeext; then
11741   ensc_cv_c_dietlibc_compat=no
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746         ensc_cv_c_dietlibc_compat=yes
11747 fi
11748
11749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750       conftest$ac_exeext conftest.$ac_ext
11751                 CC=$ensc_dietlibc_need_compat_old_CC
11752                 ac_ext=c
11753 ac_cpp='$CPP $CPPFLAGS'
11754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11757
11758
11759 fi
11760 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11761 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6; }
11762
11763         if test x"USE_DIETLIBC_COMPAT" != x; then
11764                  if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11765   USE_DIETLIBC_COMPAT_TRUE=
11766   USE_DIETLIBC_COMPAT_FALSE='#'
11767 else
11768   USE_DIETLIBC_COMPAT_TRUE='#'
11769   USE_DIETLIBC_COMPAT_FALSE=
11770 fi
11771
11772         fi
11773
11774 fi
11775
11776  if test x"$ensc_have_dietlibc" = xyes; then
11777   ENSC_USE_DIETLIBC_TRUE=
11778   ENSC_USE_DIETLIBC_FALSE='#'
11779 else
11780   ENSC_USE_DIETLIBC_TRUE='#'
11781   ENSC_USE_DIETLIBC_FALSE=
11782 fi
11783
11784  if true; then
11785   ENSC_USE_GLIBC_TRUE=
11786   ENSC_USE_GLIBC_FALSE='#'
11787 else
11788   ENSC_USE_GLIBC_TRUE='#'
11789   ENSC_USE_GLIBC_FALSE=
11790 fi
11791
11792
11793 # HACK: see comments at 'enable_static' above
11794 # Check whether --enable-shared was given.
11795 if test "${enable_shared+set}" = set; then
11796   enableval=$enable_shared; p=${PACKAGE-default}
11797     case $enableval in
11798     yes) enable_shared=yes ;;
11799     no) enable_shared=no ;;
11800     *)
11801       enable_shared=no
11802       # Look at the argument we got.  We use all the common list separators.
11803       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11804       for pkg in $enableval; do
11805         IFS="$lt_save_ifs"
11806         if test "X$pkg" = "X$p"; then
11807           enable_shared=yes
11808         fi
11809       done
11810       IFS="$lt_save_ifs"
11811       ;;
11812     esac
11813 else
11814   enable_shared=yes
11815 fi
11816
11817
11818 # Check whether --enable-static was given.
11819 if test "${enable_static+set}" = set; then
11820   enableval=$enable_static; p=${PACKAGE-default}
11821     case $enableval in
11822     yes) enable_static=yes ;;
11823     no) enable_static=no ;;
11824     *)
11825      enable_static=no
11826       # Look at the argument we got.  We use all the common list separators.
11827       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11828       for pkg in $enableval; do
11829         IFS="$lt_save_ifs"
11830         if test "X$pkg" = "X$p"; then
11831           enable_static=yes
11832         fi
11833       done
11834       IFS="$lt_save_ifs"
11835       ;;
11836     esac
11837 else
11838   enable_static=yes
11839 fi
11840
11841
11842 # Check whether --enable-fast-install was given.
11843 if test "${enable_fast_install+set}" = set; then
11844   enableval=$enable_fast_install; p=${PACKAGE-default}
11845     case $enableval in
11846     yes) enable_fast_install=yes ;;
11847     no) enable_fast_install=no ;;
11848     *)
11849       enable_fast_install=no
11850       # Look at the argument we got.  We use all the common list separators.
11851       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11852       for pkg in $enableval; do
11853         IFS="$lt_save_ifs"
11854         if test "X$pkg" = "X$p"; then
11855           enable_fast_install=yes
11856         fi
11857       done
11858       IFS="$lt_save_ifs"
11859       ;;
11860     esac
11861 else
11862   enable_fast_install=yes
11863 fi
11864
11865
11866 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11867 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11868 if test "${lt_cv_path_SED+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871   # Loop through the user's path and test for sed and gsed.
11872 # Then use that list of sed's as ones to test for truncation.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878   for lt_ac_prog in sed gsed; do
11879     for ac_exec_ext in '' $ac_executable_extensions; do
11880       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11881         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11882       fi
11883     done
11884   done
11885 done
11886 IFS=$as_save_IFS
11887 lt_ac_max=0
11888 lt_ac_count=0
11889 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11890 # along with /bin/sed that truncates output.
11891 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11892   test ! -f $lt_ac_sed && continue
11893   cat /dev/null > conftest.in
11894   lt_ac_count=0
11895   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11896   # Check for GNU sed and select it if it is found.
11897   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11898     lt_cv_path_SED=$lt_ac_sed
11899     break
11900   fi
11901   while true; do
11902     cat conftest.in conftest.in >conftest.tmp
11903     mv conftest.tmp conftest.in
11904     cp conftest.in conftest.nl
11905     echo >>conftest.nl
11906     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11907     cmp -s conftest.out conftest.nl || break
11908     # 10000 chars as input seems more than enough
11909     test $lt_ac_count -gt 10 && break
11910     lt_ac_count=`expr $lt_ac_count + 1`
11911     if test $lt_ac_count -gt $lt_ac_max; then
11912       lt_ac_max=$lt_ac_count
11913       lt_cv_path_SED=$lt_ac_sed
11914     fi
11915   done
11916 done
11917
11918 fi
11919
11920 SED=$lt_cv_path_SED
11921
11922 { echo "$as_me:$LINENO: result: $SED" >&5
11923 echo "${ECHO_T}$SED" >&6; }
11924
11925
11926 # Check whether --with-gnu-ld was given.
11927 if test "${with_gnu_ld+set}" = set; then
11928   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11929 else
11930   with_gnu_ld=no
11931 fi
11932
11933 ac_prog=ld
11934 if test "$GCC" = yes; then
11935   # Check if gcc -print-prog-name=ld gives a path.
11936   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11937 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11938   case $host in
11939   *-*-mingw*)
11940     # gcc leaves a trailing carriage return which upsets mingw
11941     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11942   *)
11943     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11944   esac
11945   case $ac_prog in
11946     # Accept absolute paths.
11947     [\\/]* | ?:[\\/]*)
11948       re_direlt='/[^/][^/]*/\.\./'
11949       # Canonicalize the pathname of ld
11950       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11951       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11952         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11953       done
11954       test -z "$LD" && LD="$ac_prog"
11955       ;;
11956   "")
11957     # If it fails, then pretend we aren't using GCC.
11958     ac_prog=ld
11959     ;;
11960   *)
11961     # If it is relative, then search for the first ld in PATH.
11962     with_gnu_ld=unknown
11963     ;;
11964   esac
11965 elif test "$with_gnu_ld" = yes; then
11966   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11967 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11968 else
11969   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11970 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11971 fi
11972 if test "${lt_cv_path_LD+set}" = set; then
11973   echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975   if test -z "$LD"; then
11976   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11977   for ac_dir in $PATH; do
11978     IFS="$lt_save_ifs"
11979     test -z "$ac_dir" && ac_dir=.
11980     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11981       lt_cv_path_LD="$ac_dir/$ac_prog"
11982       # Check to see if the program is GNU ld.  I'd rather use --version,
11983       # but apparently some variants of GNU ld only accept -v.
11984       # Break only if it was the GNU/non-GNU ld that we prefer.
11985       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11986       *GNU* | *'with BFD'*)
11987         test "$with_gnu_ld" != no && break
11988         ;;
11989       *)
11990         test "$with_gnu_ld" != yes && break
11991         ;;
11992       esac
11993     fi
11994   done
11995   IFS="$lt_save_ifs"
11996 else
11997   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11998 fi
11999 fi
12000
12001 LD="$lt_cv_path_LD"
12002 if test -n "$LD"; then
12003   { echo "$as_me:$LINENO: result: $LD" >&5
12004 echo "${ECHO_T}$LD" >&6; }
12005 else
12006   { echo "$as_me:$LINENO: result: no" >&5
12007 echo "${ECHO_T}no" >&6; }
12008 fi
12009 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12010 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12011    { (exit 1); exit 1; }; }
12012 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12013 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12014 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12018 case `$LD -v 2>&1 </dev/null` in
12019 *GNU* | *'with BFD'*)
12020   lt_cv_prog_gnu_ld=yes
12021   ;;
12022 *)
12023   lt_cv_prog_gnu_ld=no
12024   ;;
12025 esac
12026 fi
12027 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12028 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12029 with_gnu_ld=$lt_cv_prog_gnu_ld
12030
12031
12032 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12033 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12034 if test "${lt_cv_ld_reload_flag+set}" = set; then
12035   echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037   lt_cv_ld_reload_flag='-r'
12038 fi
12039 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12040 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12041 reload_flag=$lt_cv_ld_reload_flag
12042 case $reload_flag in
12043 "" | " "*) ;;
12044 *) reload_flag=" $reload_flag" ;;
12045 esac
12046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12047 case $host_os in
12048   darwin*)
12049     if test "$GCC" = yes; then
12050       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12051     else
12052       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12053     fi
12054     ;;
12055 esac
12056
12057 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12058 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12059 if test "${lt_cv_path_NM+set}" = set; then
12060   echo $ECHO_N "(cached) $ECHO_C" >&6
12061 else
12062   if test -n "$NM"; then
12063   # Let the user override the test.
12064   lt_cv_path_NM="$NM"
12065 else
12066   lt_nm_to_check="${ac_tool_prefix}nm"
12067   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12068     lt_nm_to_check="$lt_nm_to_check nm"
12069   fi
12070   for lt_tmp_nm in $lt_nm_to_check; do
12071     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12072     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12073       IFS="$lt_save_ifs"
12074       test -z "$ac_dir" && ac_dir=.
12075       tmp_nm="$ac_dir/$lt_tmp_nm"
12076       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12077         # Check to see if the nm accepts a BSD-compat flag.
12078         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12079         #   nm: unknown option "B" ignored
12080         # Tru64's nm complains that /dev/null is an invalid object file
12081         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12082         */dev/null* | *'Invalid file or object type'*)
12083           lt_cv_path_NM="$tmp_nm -B"
12084           break
12085           ;;
12086         *)
12087           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12088           */dev/null*)
12089             lt_cv_path_NM="$tmp_nm -p"
12090             break
12091             ;;
12092           *)
12093             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12094             continue # so that we can try to find one that supports BSD flags
12095             ;;
12096           esac
12097           ;;
12098         esac
12099       fi
12100     done
12101     IFS="$lt_save_ifs"
12102   done
12103   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12104 fi
12105 fi
12106 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12107 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12108 NM="$lt_cv_path_NM"
12109
12110 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12111 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12112 if test "${lt_cv_deplibs_check_method+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115   lt_cv_file_magic_cmd='$MAGIC_CMD'
12116 lt_cv_file_magic_test_file=
12117 lt_cv_deplibs_check_method='unknown'
12118 # Need to set the preceding variable on all platforms that support
12119 # interlibrary dependencies.
12120 # 'none' -- dependencies not supported.
12121 # `unknown' -- same as none, but documents that we really don't know.
12122 # 'pass_all' -- all dependencies passed with no checks.
12123 # 'test_compile' -- check by making test program.
12124 # 'file_magic [[regex]]' -- check by looking for files in library path
12125 # which responds to the $file_magic_cmd with a given extended regex.
12126 # If you have `file' or equivalent on your system and you're not sure
12127 # whether `pass_all' will *always* work, you probably want this one.
12128
12129 case $host_os in
12130 aix4* | aix5*)
12131   lt_cv_deplibs_check_method=pass_all
12132   ;;
12133
12134 beos*)
12135   lt_cv_deplibs_check_method=pass_all
12136   ;;
12137
12138 bsdi[45]*)
12139   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12140   lt_cv_file_magic_cmd='/usr/bin/file -L'
12141   lt_cv_file_magic_test_file=/shlib/libc.so
12142   ;;
12143
12144 cygwin*)
12145   # func_win32_libid is a shell function defined in ltmain.sh
12146   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12147   lt_cv_file_magic_cmd='func_win32_libid'
12148   ;;
12149
12150 mingw* | pw32*)
12151   # Base MSYS/MinGW do not provide the 'file' command needed by
12152   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12153   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12154   lt_cv_file_magic_cmd='$OBJDUMP -f'
12155   ;;
12156
12157 darwin* | rhapsody*)
12158   lt_cv_deplibs_check_method=pass_all
12159   ;;
12160
12161 freebsd* | kfreebsd*-gnu | dragonfly*)
12162   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12163     case $host_cpu in
12164     i*86 )
12165       # Not sure whether the presence of OpenBSD here was a mistake.
12166       # Let's accept both of them until this is cleared up.
12167       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12168       lt_cv_file_magic_cmd=/usr/bin/file
12169       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12170       ;;
12171     esac
12172   else
12173     lt_cv_deplibs_check_method=pass_all
12174   fi
12175   ;;
12176
12177 gnu*)
12178   lt_cv_deplibs_check_method=pass_all
12179   ;;
12180
12181 hpux10.20* | hpux11*)
12182   lt_cv_file_magic_cmd=/usr/bin/file
12183   case $host_cpu in
12184   ia64*)
12185     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12186     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12187     ;;
12188   hppa*64*)
12189     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]'
12190     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12191     ;;
12192   *)
12193     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12194     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12195     ;;
12196   esac
12197   ;;
12198
12199 interix3*)
12200   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12201   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12202   ;;
12203
12204 irix5* | irix6* | nonstopux*)
12205   case $LD in
12206   *-32|*"-32 ") libmagic=32-bit;;
12207   *-n32|*"-n32 ") libmagic=N32;;
12208   *-64|*"-64 ") libmagic=64-bit;;
12209   *) libmagic=never-match;;
12210   esac
12211   lt_cv_deplibs_check_method=pass_all
12212   ;;
12213
12214 # This must be Linux ELF.
12215 linux*)
12216   lt_cv_deplibs_check_method=pass_all
12217   ;;
12218
12219 netbsd*)
12220   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12221     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12222   else
12223     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12224   fi
12225   ;;
12226
12227 newos6*)
12228   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12229   lt_cv_file_magic_cmd=/usr/bin/file
12230   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12231   ;;
12232
12233 nto-qnx*)
12234   lt_cv_deplibs_check_method=unknown
12235   ;;
12236
12237 openbsd*)
12238   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12239     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12240   else
12241     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12242   fi
12243   ;;
12244
12245 osf3* | osf4* | osf5*)
12246   lt_cv_deplibs_check_method=pass_all
12247   ;;
12248
12249 solaris*)
12250   lt_cv_deplibs_check_method=pass_all
12251   ;;
12252
12253 sysv4 | sysv4.3*)
12254   case $host_vendor in
12255   motorola)
12256     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]'
12257     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12258     ;;
12259   ncr)
12260     lt_cv_deplibs_check_method=pass_all
12261     ;;
12262   sequent)
12263     lt_cv_file_magic_cmd='/bin/file'
12264     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12265     ;;
12266   sni)
12267     lt_cv_file_magic_cmd='/bin/file'
12268     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12269     lt_cv_file_magic_test_file=/lib/libc.so
12270     ;;
12271   siemens)
12272     lt_cv_deplibs_check_method=pass_all
12273     ;;
12274   pc)
12275     lt_cv_deplibs_check_method=pass_all
12276     ;;
12277   esac
12278   ;;
12279
12280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12281   lt_cv_deplibs_check_method=pass_all
12282   ;;
12283 esac
12284
12285 fi
12286 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12287 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12288 file_magic_cmd=$lt_cv_file_magic_cmd
12289 deplibs_check_method=$lt_cv_deplibs_check_method
12290 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12291
12292
12293
12294
12295 # If no C compiler was specified, use CC.
12296 LTCC=${LTCC-"$CC"}
12297
12298 # If no C compiler flags were specified, use CFLAGS.
12299 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12300
12301 # Allow CC to be a program name with arguments.
12302 compiler=$CC
12303
12304 # Check whether --enable-libtool-lock was given.
12305 if test "${enable_libtool_lock+set}" = set; then
12306   enableval=$enable_libtool_lock;
12307 fi
12308
12309 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12310
12311 # Some flags need to be propagated to the compiler or linker for good
12312 # libtool support.
12313 case $host in
12314 ia64-*-hpux*)
12315   # Find out which ABI we are using.
12316   echo 'int i;' > conftest.$ac_ext
12317   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12318   (eval $ac_compile) 2>&5
12319   ac_status=$?
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); }; then
12322     case `/usr/bin/file conftest.$ac_objext` in
12323     *ELF-32*)
12324       HPUX_IA64_MODE="32"
12325       ;;
12326     *ELF-64*)
12327       HPUX_IA64_MODE="64"
12328       ;;
12329     esac
12330   fi
12331   rm -rf conftest*
12332   ;;
12333 *-*-irix6*)
12334   # Find out which ABI we are using.
12335   echo '#line 12335 "configure"' > conftest.$ac_ext
12336   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337   (eval $ac_compile) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; then
12341    if test "$lt_cv_prog_gnu_ld" = yes; then
12342     case `/usr/bin/file conftest.$ac_objext` in
12343     *32-bit*)
12344       LD="${LD-ld} -melf32bsmip"
12345       ;;
12346     *N32*)
12347       LD="${LD-ld} -melf32bmipn32"
12348       ;;
12349     *64-bit*)
12350       LD="${LD-ld} -melf64bmip"
12351       ;;
12352     esac
12353    else
12354     case `/usr/bin/file conftest.$ac_objext` in
12355     *32-bit*)
12356       LD="${LD-ld} -32"
12357       ;;
12358     *N32*)
12359       LD="${LD-ld} -n32"
12360       ;;
12361     *64-bit*)
12362       LD="${LD-ld} -64"
12363       ;;
12364     esac
12365    fi
12366   fi
12367   rm -rf conftest*
12368   ;;
12369
12370 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12371   # Find out which ABI we are using.
12372   echo 'int i;' > conftest.$ac_ext
12373   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374   (eval $ac_compile) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; then
12378     case `/usr/bin/file conftest.o` in
12379     *32-bit*)
12380       case $host in
12381         x86_64-*linux*)
12382           LD="${LD-ld} -m elf_i386"
12383           ;;
12384         ppc64-*linux*|powerpc64-*linux*)
12385           LD="${LD-ld} -m elf32ppclinux"
12386           ;;
12387         s390x-*linux*)
12388           LD="${LD-ld} -m elf_s390"
12389           ;;
12390         sparc64-*linux*)
12391           LD="${LD-ld} -m elf32_sparc"
12392           ;;
12393       esac
12394       ;;
12395     *64-bit*)
12396       case $host in
12397         x86_64-*linux*)
12398           LD="${LD-ld} -m elf_x86_64"
12399           ;;
12400         ppc*-*linux*|powerpc*-*linux*)
12401           LD="${LD-ld} -m elf64ppc"
12402           ;;
12403         s390*-*linux*)
12404           LD="${LD-ld} -m elf64_s390"
12405           ;;
12406         sparc*-*linux*)
12407           LD="${LD-ld} -m elf64_sparc"
12408           ;;
12409       esac
12410       ;;
12411     esac
12412   fi
12413   rm -rf conftest*
12414   ;;
12415
12416 *-*-sco3.2v5*)
12417   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12418   SAVE_CFLAGS="$CFLAGS"
12419   CFLAGS="$CFLAGS -belf"
12420   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12421 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12422 if test "${lt_cv_cc_needs_belf+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   ac_ext=c
12426 ac_cpp='$CPP $CPPFLAGS'
12427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12430
12431      cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437
12438 int
12439 main ()
12440 {
12441
12442   ;
12443   return 0;
12444 }
12445 _ACEOF
12446 rm -f conftest.$ac_objext conftest$ac_exeext
12447 if { (ac_try="$ac_link"
12448 case "(($ac_try" in
12449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450   *) ac_try_echo=$ac_try;;
12451 esac
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453   (eval "$ac_link") 2>conftest.er1
12454   ac_status=$?
12455   grep -v '^ *+' conftest.er1 >conftest.err
12456   rm -f conftest.er1
12457   cat conftest.err >&5
12458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459   (exit $ac_status); } && {
12460          test -z "$ac_c_werror_flag" ||
12461          test ! -s conftest.err
12462        } && test -s conftest$ac_exeext &&
12463        $as_test_x conftest$ac_exeext; then
12464   lt_cv_cc_needs_belf=yes
12465 else
12466   echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12468
12469         lt_cv_cc_needs_belf=no
12470 fi
12471
12472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12473       conftest$ac_exeext conftest.$ac_ext
12474      ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 fi
12481 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12482 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12483   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12484     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12485     CFLAGS="$SAVE_CFLAGS"
12486   fi
12487   ;;
12488 sparc*-*solaris*)
12489   # Find out which ABI we are using.
12490   echo 'int i;' > conftest.$ac_ext
12491   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492   (eval $ac_compile) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; then
12496     case `/usr/bin/file conftest.o` in
12497     *64-bit*)
12498       case $lt_cv_prog_gnu_ld in
12499       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12500       *)    LD="${LD-ld} -64" ;;
12501       esac
12502       ;;
12503     esac
12504   fi
12505   rm -rf conftest*
12506   ;;
12507
12508
12509 esac
12510
12511 need_locks="$enable_libtool_lock"
12512
12513
12514
12515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12517 if test "${ac_cv_header_stdc+set}" = set; then
12518   echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520   cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 #include <stdlib.h>
12527 #include <stdarg.h>
12528 #include <string.h>
12529 #include <float.h>
12530
12531 int
12532 main ()
12533 {
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext
12540 if { (ac_try="$ac_compile"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_compile") 2>conftest.er1
12547   ac_status=$?
12548   grep -v '^ *+' conftest.er1 >conftest.err
12549   rm -f conftest.er1
12550   cat conftest.err >&5
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); } && {
12553          test -z "$ac_c_werror_flag" ||
12554          test ! -s conftest.err
12555        } && test -s conftest.$ac_objext; then
12556   ac_cv_header_stdc=yes
12557 else
12558   echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561         ac_cv_header_stdc=no
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565
12566 if test $ac_cv_header_stdc = yes; then
12567   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12568   cat >conftest.$ac_ext <<_ACEOF
12569 /* confdefs.h.  */
12570 _ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h.  */
12574 #include <string.h>
12575
12576 _ACEOF
12577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12578   $EGREP "memchr" >/dev/null 2>&1; then
12579   :
12580 else
12581   ac_cv_header_stdc=no
12582 fi
12583 rm -f conftest*
12584
12585 fi
12586
12587 if test $ac_cv_header_stdc = yes; then
12588   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12589   cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 #include <stdlib.h>
12596
12597 _ACEOF
12598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12599   $EGREP "free" >/dev/null 2>&1; then
12600   :
12601 else
12602   ac_cv_header_stdc=no
12603 fi
12604 rm -f conftest*
12605
12606 fi
12607
12608 if test $ac_cv_header_stdc = yes; then
12609   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12610   if test "$cross_compiling" = yes; then
12611   :
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 #include <ctype.h>
12620 #include <stdlib.h>
12621 #if ((' ' & 0x0FF) == 0x020)
12622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12624 #else
12625 # define ISLOWER(c) \
12626                    (('a' <= (c) && (c) <= 'i') \
12627                      || ('j' <= (c) && (c) <= 'r') \
12628                      || ('s' <= (c) && (c) <= 'z'))
12629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12630 #endif
12631
12632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12633 int
12634 main ()
12635 {
12636   int i;
12637   for (i = 0; i < 256; i++)
12638     if (XOR (islower (i), ISLOWER (i))
12639         || toupper (i) != TOUPPER (i))
12640       return 2;
12641   return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648   *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651   (eval "$ac_link") 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12655   { (case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660   (eval "$ac_try") 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; }; then
12664   :
12665 else
12666   echo "$as_me: program exited with status $ac_status" >&5
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12669
12670 ( exit $ac_status )
12671 ac_cv_header_stdc=no
12672 fi
12673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12674 fi
12675
12676
12677 fi
12678 fi
12679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12681 if test $ac_cv_header_stdc = yes; then
12682
12683 cat >>confdefs.h <<\_ACEOF
12684 #define STDC_HEADERS 1
12685 _ACEOF
12686
12687 fi
12688
12689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12700                   inttypes.h stdint.h unistd.h
12701 do
12702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12706   echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708   cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714 $ac_includes_default
12715
12716 #include <$ac_header>
12717 _ACEOF
12718 rm -f conftest.$ac_objext
12719 if { (ac_try="$ac_compile"
12720 case "(($ac_try" in
12721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12722   *) ac_try_echo=$ac_try;;
12723 esac
12724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12725   (eval "$ac_compile") 2>conftest.er1
12726   ac_status=$?
12727   grep -v '^ *+' conftest.er1 >conftest.err
12728   rm -f conftest.er1
12729   cat conftest.err >&5
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } && {
12732          test -z "$ac_c_werror_flag" ||
12733          test ! -s conftest.err
12734        } && test -s conftest.$ac_objext; then
12735   eval "$as_ac_Header=yes"
12736 else
12737   echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12739
12740         eval "$as_ac_Header=no"
12741 fi
12742
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 fi
12745 ac_res=`eval echo '${'$as_ac_Header'}'`
12746                { echo "$as_me:$LINENO: result: $ac_res" >&5
12747 echo "${ECHO_T}$ac_res" >&6; }
12748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12749   cat >>confdefs.h <<_ACEOF
12750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12751 _ACEOF
12752
12753 fi
12754
12755 done
12756
12757
12758
12759 for ac_header in dlfcn.h
12760 do
12761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12763   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 fi
12768 ac_res=`eval echo '${'$as_ac_Header'}'`
12769                { echo "$as_me:$LINENO: result: $ac_res" >&5
12770 echo "${ECHO_T}$ac_res" >&6; }
12771 else
12772   # Is the header compilable?
12773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 $ac_includes_default
12782 #include <$ac_header>
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_compile") 2>conftest.er1
12792   ac_status=$?
12793   grep -v '^ *+' conftest.er1 >conftest.err
12794   rm -f conftest.er1
12795   cat conftest.err >&5
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } && {
12798          test -z "$ac_c_werror_flag" ||
12799          test ! -s conftest.err
12800        } && test -s conftest.$ac_objext; then
12801   ac_header_compiler=yes
12802 else
12803   echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806         ac_header_compiler=no
12807 fi
12808
12809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12811 echo "${ECHO_T}$ac_header_compiler" >&6; }
12812
12813 # Is the header present?
12814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12816 cat >conftest.$ac_ext <<_ACEOF
12817 /* confdefs.h.  */
12818 _ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h.  */
12822 #include <$ac_header>
12823 _ACEOF
12824 if { (ac_try="$ac_cpp conftest.$ac_ext"
12825 case "(($ac_try" in
12826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827   *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12831   ac_status=$?
12832   grep -v '^ *+' conftest.er1 >conftest.err
12833   rm -f conftest.er1
12834   cat conftest.err >&5
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); } >/dev/null && {
12837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12838          test ! -s conftest.err
12839        }; then
12840   ac_header_preproc=yes
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845   ac_header_preproc=no
12846 fi
12847
12848 rm -f conftest.err conftest.$ac_ext
12849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12850 echo "${ECHO_T}$ac_header_preproc" >&6; }
12851
12852 # So?  What about this header?
12853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12854   yes:no: )
12855     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12859     ac_header_preproc=yes
12860     ;;
12861   no:yes:* )
12862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12864     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12865 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12866     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12868     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12869 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12872     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12874     ( cat <<\_ASBOX
12875 ## --------------------------------------------- ##
12876 ## Report this to vserver@list.linux-vserver.org ##
12877 ## --------------------------------------------- ##
12878 _ASBOX
12879      ) | sed "s/^/$as_me: WARNING:     /" >&2
12880     ;;
12881 esac
12882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12885   echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887   eval "$as_ac_Header=\$ac_header_preproc"
12888 fi
12889 ac_res=`eval echo '${'$as_ac_Header'}'`
12890                { echo "$as_me:$LINENO: result: $ac_res" >&5
12891 echo "${ECHO_T}$ac_res" >&6; }
12892
12893 fi
12894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12895   cat >>confdefs.h <<_ACEOF
12896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12897 _ACEOF
12898
12899 fi
12900
12901 done
12902
12903
12904
12905 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12906     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12907     (test "X$CXX" != "Xg++"))) ; then
12908   ac_ext=cpp
12909 ac_cpp='$CXXCPP $CPPFLAGS'
12910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12913 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12914 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12915 if test -z "$CXXCPP"; then
12916   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919       # Double quotes because CXXCPP needs to be expanded
12920     for CXXCPP in "$CXX -E" "/lib/cpp"
12921     do
12922       ac_preproc_ok=false
12923 for ac_cxx_preproc_warn_flag in '' yes
12924 do
12925   # Use a header file that comes with gcc, so configuring glibc
12926   # with a fresh cross-compiler works.
12927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928   # <limits.h> exists even on freestanding compilers.
12929   # On the NeXT, cc -E runs the code through the compiler's parser,
12930   # not just through cpp. "Syntax error" is here to catch this case.
12931   cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937 #ifdef __STDC__
12938 # include <limits.h>
12939 #else
12940 # include <assert.h>
12941 #endif
12942                      Syntax error
12943 _ACEOF
12944 if { (ac_try="$ac_cpp conftest.$ac_ext"
12945 case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } >/dev/null && {
12957          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12958          test ! -s conftest.err
12959        }; then
12960   :
12961 else
12962   echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965   # Broken: fails on valid input.
12966 continue
12967 fi
12968
12969 rm -f conftest.err conftest.$ac_ext
12970
12971   # OK, works on sane cases.  Now check whether nonexistent headers
12972   # can be detected and how.
12973   cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h.  */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h.  */
12979 #include <ac_nonexistent.h>
12980 _ACEOF
12981 if { (ac_try="$ac_cpp conftest.$ac_ext"
12982 case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12988   ac_status=$?
12989   grep -v '^ *+' conftest.er1 >conftest.err
12990   rm -f conftest.er1
12991   cat conftest.err >&5
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); } >/dev/null && {
12994          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12995          test ! -s conftest.err
12996        }; then
12997   # Broken: success on invalid input.
12998 continue
12999 else
13000   echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13002
13003   # Passes both tests.
13004 ac_preproc_ok=:
13005 break
13006 fi
13007
13008 rm -f conftest.err conftest.$ac_ext
13009
13010 done
13011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13012 rm -f conftest.err conftest.$ac_ext
13013 if $ac_preproc_ok; then
13014   break
13015 fi
13016
13017     done
13018     ac_cv_prog_CXXCPP=$CXXCPP
13019
13020 fi
13021   CXXCPP=$ac_cv_prog_CXXCPP
13022 else
13023   ac_cv_prog_CXXCPP=$CXXCPP
13024 fi
13025 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13026 echo "${ECHO_T}$CXXCPP" >&6; }
13027 ac_preproc_ok=false
13028 for ac_cxx_preproc_warn_flag in '' yes
13029 do
13030   # Use a header file that comes with gcc, so configuring glibc
13031   # with a fresh cross-compiler works.
13032   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13033   # <limits.h> exists even on freestanding compilers.
13034   # On the NeXT, cc -E runs the code through the compiler's parser,
13035   # not just through cpp. "Syntax error" is here to catch this case.
13036   cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #ifdef __STDC__
13043 # include <limits.h>
13044 #else
13045 # include <assert.h>
13046 #endif
13047                      Syntax error
13048 _ACEOF
13049 if { (ac_try="$ac_cpp conftest.$ac_ext"
13050 case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } >/dev/null && {
13062          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13063          test ! -s conftest.err
13064        }; then
13065   :
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070   # Broken: fails on valid input.
13071 continue
13072 fi
13073
13074 rm -f conftest.err conftest.$ac_ext
13075
13076   # OK, works on sane cases.  Now check whether nonexistent headers
13077   # can be detected and how.
13078   cat >conftest.$ac_ext <<_ACEOF
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #include <ac_nonexistent.h>
13085 _ACEOF
13086 if { (ac_try="$ac_cpp conftest.$ac_ext"
13087 case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13093   ac_status=$?
13094   grep -v '^ *+' conftest.er1 >conftest.err
13095   rm -f conftest.er1
13096   cat conftest.err >&5
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } >/dev/null && {
13099          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13100          test ! -s conftest.err
13101        }; then
13102   # Broken: success on invalid input.
13103 continue
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108   # Passes both tests.
13109 ac_preproc_ok=:
13110 break
13111 fi
13112
13113 rm -f conftest.err conftest.$ac_ext
13114
13115 done
13116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13117 rm -f conftest.err conftest.$ac_ext
13118 if $ac_preproc_ok; then
13119   :
13120 else
13121   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13124 See \`config.log' for more details." >&2;}
13125    { (exit 1); exit 1; }; }
13126 fi
13127
13128 ac_ext=cpp
13129 ac_cpp='$CXXCPP $CPPFLAGS'
13130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13133
13134 fi
13135
13136 ac_ext=f
13137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13140 if test -n "$ac_tool_prefix"; then
13141   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
13142   do
13143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13147 if test "${ac_cv_prog_F77+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   if test -n "$F77"; then
13151   ac_cv_prog_F77="$F77" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13155 do
13156   IFS=$as_save_IFS
13157   test -z "$as_dir" && as_dir=.
13158   for ac_exec_ext in '' $ac_executable_extensions; do
13159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13162     break 2
13163   fi
13164 done
13165 done
13166 IFS=$as_save_IFS
13167
13168 fi
13169 fi
13170 F77=$ac_cv_prog_F77
13171 if test -n "$F77"; then
13172   { echo "$as_me:$LINENO: result: $F77" >&5
13173 echo "${ECHO_T}$F77" >&6; }
13174 else
13175   { echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6; }
13177 fi
13178
13179
13180     test -n "$F77" && break
13181   done
13182 fi
13183 if test -z "$F77"; then
13184   ac_ct_F77=$F77
13185   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
13186 do
13187   # Extract the first word of "$ac_prog", so it can be a program name with args.
13188 set dummy $ac_prog; ac_word=$2
13189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13191 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13192   echo $ECHO_N "(cached) $ECHO_C" >&6
13193 else
13194   if test -n "$ac_ct_F77"; then
13195   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13196 else
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13199 do
13200   IFS=$as_save_IFS
13201   test -z "$as_dir" && as_dir=.
13202   for ac_exec_ext in '' $ac_executable_extensions; do
13203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13204     ac_cv_prog_ac_ct_F77="$ac_prog"
13205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13206     break 2
13207   fi
13208 done
13209 done
13210 IFS=$as_save_IFS
13211
13212 fi
13213 fi
13214 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13215 if test -n "$ac_ct_F77"; then
13216   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13217 echo "${ECHO_T}$ac_ct_F77" >&6; }
13218 else
13219   { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13221 fi
13222
13223
13224   test -n "$ac_ct_F77" && break
13225 done
13226
13227   if test "x$ac_ct_F77" = x; then
13228     F77=""
13229   else
13230     case $cross_compiling:$ac_tool_warned in
13231 yes:)
13232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13233 whose name does not start with the host triplet.  If you think this
13234 configuration is useful to you, please write to autoconf@gnu.org." >&5
13235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13236 whose name does not start with the host triplet.  If you think this
13237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13238 ac_tool_warned=yes ;;
13239 esac
13240     F77=$ac_ct_F77
13241   fi
13242 fi
13243
13244
13245 # Provide some information about the compiler.
13246 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13247 ac_compiler=`set X $ac_compile; echo $2`
13248 { (ac_try="$ac_compiler --version >&5"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_compiler --version >&5") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }
13258 { (ac_try="$ac_compiler -v >&5"
13259 case "(($ac_try" in
13260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261   *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264   (eval "$ac_compiler -v >&5") 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }
13268 { (ac_try="$ac_compiler -V >&5"
13269 case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_compiler -V >&5") 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }
13278 rm -f a.out
13279
13280 # If we don't use `.F' as extension, the preprocessor is not run on the
13281 # input file.  (Note that this only needs to work for GNU compilers.)
13282 ac_save_ext=$ac_ext
13283 ac_ext=F
13284 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13285 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13286 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289   cat >conftest.$ac_ext <<_ACEOF
13290       program main
13291 #ifndef __GNUC__
13292        choke me
13293 #endif
13294
13295       end
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (ac_try="$ac_compile"
13299 case "(($ac_try" in
13300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301   *) ac_try_echo=$ac_try;;
13302 esac
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304   (eval "$ac_compile") 2>conftest.er1
13305   ac_status=$?
13306   grep -v '^ *+' conftest.er1 >conftest.err
13307   rm -f conftest.er1
13308   cat conftest.err >&5
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } && {
13311          test -z "$ac_f77_werror_flag" ||
13312          test ! -s conftest.err
13313        } && test -s conftest.$ac_objext; then
13314   ac_compiler_gnu=yes
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319         ac_compiler_gnu=no
13320 fi
13321
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13324
13325 fi
13326 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13327 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13328 ac_ext=$ac_save_ext
13329 ac_test_FFLAGS=${FFLAGS+set}
13330 ac_save_FFLAGS=$FFLAGS
13331 FFLAGS=
13332 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13333 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13334 if test "${ac_cv_prog_f77_g+set}" = set; then
13335   echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337   FFLAGS=-g
13338 cat >conftest.$ac_ext <<_ACEOF
13339       program main
13340
13341       end
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_compile") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } && {
13357          test -z "$ac_f77_werror_flag" ||
13358          test ! -s conftest.err
13359        } && test -s conftest.$ac_objext; then
13360   ac_cv_prog_f77_g=yes
13361 else
13362   echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365         ac_cv_prog_f77_g=no
13366 fi
13367
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369
13370 fi
13371 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13372 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13373 if test "$ac_test_FFLAGS" = set; then
13374   FFLAGS=$ac_save_FFLAGS
13375 elif test $ac_cv_prog_f77_g = yes; then
13376   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13377     FFLAGS="-g -O2"
13378   else
13379     FFLAGS="-g"
13380   fi
13381 else
13382   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13383     FFLAGS="-O2"
13384   else
13385     FFLAGS=
13386   fi
13387 fi
13388
13389 G77=`test $ac_compiler_gnu = yes && echo yes`
13390 ac_ext=c
13391 ac_cpp='$CPP $CPPFLAGS'
13392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13395
13396
13397
13398 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13399
13400 # find the maximum length of command line arguments
13401 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13402 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13403 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406     i=0
13407   teststring="ABCD"
13408
13409   case $build_os in
13410   msdosdjgpp*)
13411     # On DJGPP, this test can blow up pretty badly due to problems in libc
13412     # (any single argument exceeding 2000 bytes causes a buffer overrun
13413     # during glob expansion).  Even if it were fixed, the result of this
13414     # check would be larger than it should be.
13415     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13416     ;;
13417
13418   gnu*)
13419     # Under GNU Hurd, this test is not required because there is
13420     # no limit to the length of command line arguments.
13421     # Libtool will interpret -1 as no limit whatsoever
13422     lt_cv_sys_max_cmd_len=-1;
13423     ;;
13424
13425   cygwin* | mingw*)
13426     # On Win9x/ME, this test blows up -- it succeeds, but takes
13427     # about 5 minutes as the teststring grows exponentially.
13428     # Worse, since 9x/ME are not pre-emptively multitasking,
13429     # you end up with a "frozen" computer, even though with patience
13430     # the test eventually succeeds (with a max line length of 256k).
13431     # Instead, let's just punt: use the minimum linelength reported by
13432     # all of the supported platforms: 8192 (on NT/2K/XP).
13433     lt_cv_sys_max_cmd_len=8192;
13434     ;;
13435
13436   amigaos*)
13437     # On AmigaOS with pdksh, this test takes hours, literally.
13438     # So we just punt and use a minimum line length of 8192.
13439     lt_cv_sys_max_cmd_len=8192;
13440     ;;
13441
13442   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13443     # This has been around since 386BSD, at least.  Likely further.
13444     if test -x /sbin/sysctl; then
13445       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13446     elif test -x /usr/sbin/sysctl; then
13447       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13448     else
13449       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13450     fi
13451     # And add a safety zone
13452     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13453     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13454     ;;
13455
13456   interix*)
13457     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13458     lt_cv_sys_max_cmd_len=196608
13459     ;;
13460
13461   osf*)
13462     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13463     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13464     # nice to cause kernel panics so lets avoid the loop below.
13465     # First set a reasonable default.
13466     lt_cv_sys_max_cmd_len=16384
13467     #
13468     if test -x /sbin/sysconfig; then
13469       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13470         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13471       esac
13472     fi
13473     ;;
13474   sco3.2v5*)
13475     lt_cv_sys_max_cmd_len=102400
13476     ;;
13477   sysv5* | sco5v6* | sysv4.2uw2*)
13478     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13479     if test -n "$kargmax"; then
13480       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13481     else
13482       lt_cv_sys_max_cmd_len=32768
13483     fi
13484     ;;
13485   *)
13486     # If test is not a shell built-in, we'll probably end up computing a
13487     # maximum length that is only half of the actual maximum length, but
13488     # we can't tell.
13489     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13490     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13491                = "XX$teststring") >/dev/null 2>&1 &&
13492             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13493             lt_cv_sys_max_cmd_len=$new_result &&
13494             test $i != 17 # 1/2 MB should be enough
13495     do
13496       i=`expr $i + 1`
13497       teststring=$teststring$teststring
13498     done
13499     teststring=
13500     # Add a significant safety factor because C++ compilers can tack on massive
13501     # amounts of additional arguments before passing them to the linker.
13502     # It appears as though 1/2 is a usable value.
13503     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13504     ;;
13505   esac
13506
13507 fi
13508
13509 if test -n $lt_cv_sys_max_cmd_len ; then
13510   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13511 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13512 else
13513   { echo "$as_me:$LINENO: result: none" >&5
13514 echo "${ECHO_T}none" >&6; }
13515 fi
13516
13517
13518
13519
13520 # Check for command to grab the raw symbol name followed by C symbol from nm.
13521 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13522 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13523 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526
13527 # These are sane defaults that work on at least a few old systems.
13528 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13529
13530 # Character class describing NM global symbol codes.
13531 symcode='[BCDEGRST]'
13532
13533 # Regexp to match symbols that can be accessed directly from C.
13534 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13535
13536 # Transform an extracted symbol line into a proper C declaration
13537 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13538
13539 # Transform an extracted symbol line into symbol name and symbol address
13540 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'"
13541
13542 # Define system-specific variables.
13543 case $host_os in
13544 aix*)
13545   symcode='[BCDT]'
13546   ;;
13547 cygwin* | mingw* | pw32*)
13548   symcode='[ABCDGISTW]'
13549   ;;
13550 hpux*) # Its linker distinguishes data from code symbols
13551   if test "$host_cpu" = ia64; then
13552     symcode='[ABCDEGRST]'
13553   fi
13554   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13555   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'"
13556   ;;
13557 linux*)
13558   if test "$host_cpu" = ia64; then
13559     symcode='[ABCDGIRSTW]'
13560     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13561     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'"
13562   fi
13563   ;;
13564 irix* | nonstopux*)
13565   symcode='[BCDEGRST]'
13566   ;;
13567 osf*)
13568   symcode='[BCDEGQRST]'
13569   ;;
13570 solaris*)
13571   symcode='[BDRT]'
13572   ;;
13573 sco3.2v5*)
13574   symcode='[DT]'
13575   ;;
13576 sysv4.2uw2*)
13577   symcode='[DT]'
13578   ;;
13579 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13580   symcode='[ABDT]'
13581   ;;
13582 sysv4)
13583   symcode='[DFNSTU]'
13584   ;;
13585 esac
13586
13587 # Handle CRLF in mingw tool chain
13588 opt_cr=
13589 case $build_os in
13590 mingw*)
13591   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13592   ;;
13593 esac
13594
13595 # If we're using GNU nm, then use its standard symbol codes.
13596 case `$NM -V 2>&1` in
13597 *GNU* | *'with BFD'*)
13598   symcode='[ABCDGIRSTW]' ;;
13599 esac
13600
13601 # Try without a prefix undercore, then with it.
13602 for ac_symprfx in "" "_"; do
13603
13604   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13605   symxfrm="\\1 $ac_symprfx\\2 \\2"
13606
13607   # Write the raw and C identifiers.
13608   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13609
13610   # Check to see that the pipe works correctly.
13611   pipe_works=no
13612
13613   rm -f conftest*
13614   cat > conftest.$ac_ext <<EOF
13615 #ifdef __cplusplus
13616 extern "C" {
13617 #endif
13618 char nm_test_var;
13619 void nm_test_func(){}
13620 #ifdef __cplusplus
13621 }
13622 #endif
13623 int main(){nm_test_var='a';nm_test_func();return(0);}
13624 EOF
13625
13626   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627   (eval $ac_compile) 2>&5
13628   ac_status=$?
13629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630   (exit $ac_status); }; then
13631     # Now try to grab the symbols.
13632     nlist=conftest.nm
13633     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13634   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } && test -s "$nlist"; then
13638       # Try sorting and uniquifying the output.
13639       if sort "$nlist" | uniq > "$nlist"T; then
13640         mv -f "$nlist"T "$nlist"
13641       else
13642         rm -f "$nlist"T
13643       fi
13644
13645       # Make sure that we snagged all the symbols we need.
13646       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13647         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13648           cat <<EOF > conftest.$ac_ext
13649 #ifdef __cplusplus
13650 extern "C" {
13651 #endif
13652
13653 EOF
13654           # Now generate the symbol file.
13655           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13656
13657           cat <<EOF >> conftest.$ac_ext
13658 #if defined (__STDC__) && __STDC__
13659 # define lt_ptr_t void *
13660 #else
13661 # define lt_ptr_t char *
13662 # define const
13663 #endif
13664
13665 /* The mapping between symbol names and symbols. */
13666 const struct {
13667   const char *name;
13668   lt_ptr_t address;
13669 }
13670 lt_preloaded_symbols[] =
13671 {
13672 EOF
13673           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13674           cat <<\EOF >> conftest.$ac_ext
13675   {0, (lt_ptr_t) 0}
13676 };
13677
13678 #ifdef __cplusplus
13679 }
13680 #endif
13681 EOF
13682           # Now try linking the two files.
13683           mv conftest.$ac_objext conftstm.$ac_objext
13684           lt_save_LIBS="$LIBS"
13685           lt_save_CFLAGS="$CFLAGS"
13686           LIBS="conftstm.$ac_objext"
13687           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13688           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13689   (eval $ac_link) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13693             pipe_works=yes
13694           fi
13695           LIBS="$lt_save_LIBS"
13696           CFLAGS="$lt_save_CFLAGS"
13697         else
13698           echo "cannot find nm_test_func in $nlist" >&5
13699         fi
13700       else
13701         echo "cannot find nm_test_var in $nlist" >&5
13702       fi
13703     else
13704       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13705     fi
13706   else
13707     echo "$progname: failed program was:" >&5
13708     cat conftest.$ac_ext >&5
13709   fi
13710   rm -f conftest* conftst*
13711
13712   # Do not use the global_symbol_pipe unless it works.
13713   if test "$pipe_works" = yes; then
13714     break
13715   else
13716     lt_cv_sys_global_symbol_pipe=
13717   fi
13718 done
13719
13720 fi
13721
13722 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13723   lt_cv_sys_global_symbol_to_cdecl=
13724 fi
13725 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13726   { echo "$as_me:$LINENO: result: failed" >&5
13727 echo "${ECHO_T}failed" >&6; }
13728 else
13729   { echo "$as_me:$LINENO: result: ok" >&5
13730 echo "${ECHO_T}ok" >&6; }
13731 fi
13732
13733 { echo "$as_me:$LINENO: checking for objdir" >&5
13734 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13735 if test "${lt_cv_objdir+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   rm -f .libs 2>/dev/null
13739 mkdir .libs 2>/dev/null
13740 if test -d .libs; then
13741   lt_cv_objdir=.libs
13742 else
13743   # MS-DOS does not allow filenames that begin with a dot.
13744   lt_cv_objdir=_libs
13745 fi
13746 rmdir .libs 2>/dev/null
13747 fi
13748 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13749 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13750 objdir=$lt_cv_objdir
13751
13752
13753
13754
13755
13756 case $host_os in
13757 aix3*)
13758   # AIX sometimes has problems with the GCC collect2 program.  For some
13759   # reason, if we set the COLLECT_NAMES environment variable, the problems
13760   # vanish in a puff of smoke.
13761   if test "X${COLLECT_NAMES+set}" != Xset; then
13762     COLLECT_NAMES=
13763     export COLLECT_NAMES
13764   fi
13765   ;;
13766 esac
13767
13768 # Sed substitution that helps us do robust quoting.  It backslashifies
13769 # metacharacters that are still active within double-quoted strings.
13770 Xsed='sed -e 1s/^X//'
13771 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13772
13773 # Same as above, but do not quote variable references.
13774 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13775
13776 # Sed substitution to delay expansion of an escaped shell variable in a
13777 # double_quote_subst'ed string.
13778 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13779
13780 # Sed substitution to avoid accidental globbing in evaled expressions
13781 no_glob_subst='s/\*/\\\*/g'
13782
13783 # Constants:
13784 rm="rm -f"
13785
13786 # Global variables:
13787 default_ofile=libtool
13788 can_build_shared=yes
13789
13790 # All known linkers require a `.a' archive for static linking (except MSVC,
13791 # which needs '.lib').
13792 libext=a
13793 ltmain="$ac_aux_dir/ltmain.sh"
13794 ofile="$default_ofile"
13795 with_gnu_ld="$lt_cv_prog_gnu_ld"
13796
13797 if test -n "$ac_tool_prefix"; then
13798   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13799 set dummy ${ac_tool_prefix}ar; ac_word=$2
13800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13802 if test "${ac_cv_prog_AR+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   if test -n "$AR"; then
13806   ac_cv_prog_AR="$AR" # Let the user override the test.
13807 else
13808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809 for as_dir in $PATH
13810 do
13811   IFS=$as_save_IFS
13812   test -z "$as_dir" && as_dir=.
13813   for ac_exec_ext in '' $ac_executable_extensions; do
13814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13815     ac_cv_prog_AR="${ac_tool_prefix}ar"
13816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13817     break 2
13818   fi
13819 done
13820 done
13821 IFS=$as_save_IFS
13822
13823 fi
13824 fi
13825 AR=$ac_cv_prog_AR
13826 if test -n "$AR"; then
13827   { echo "$as_me:$LINENO: result: $AR" >&5
13828 echo "${ECHO_T}$AR" >&6; }
13829 else
13830   { echo "$as_me:$LINENO: result: no" >&5
13831 echo "${ECHO_T}no" >&6; }
13832 fi
13833
13834
13835 fi
13836 if test -z "$ac_cv_prog_AR"; then
13837   ac_ct_AR=$AR
13838   # Extract the first word of "ar", so it can be a program name with args.
13839 set dummy ar; ac_word=$2
13840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13842 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13843   echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845   if test -n "$ac_ct_AR"; then
13846   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13847 else
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851   IFS=$as_save_IFS
13852   test -z "$as_dir" && as_dir=.
13853   for ac_exec_ext in '' $ac_executable_extensions; do
13854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13855     ac_cv_prog_ac_ct_AR="ar"
13856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13857     break 2
13858   fi
13859 done
13860 done
13861 IFS=$as_save_IFS
13862
13863 fi
13864 fi
13865 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13866 if test -n "$ac_ct_AR"; then
13867   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13868 echo "${ECHO_T}$ac_ct_AR" >&6; }
13869 else
13870   { echo "$as_me:$LINENO: result: no" >&5
13871 echo "${ECHO_T}no" >&6; }
13872 fi
13873
13874   if test "x$ac_ct_AR" = x; then
13875     AR="false"
13876   else
13877     case $cross_compiling:$ac_tool_warned in
13878 yes:)
13879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13880 whose name does not start with the host triplet.  If you think this
13881 configuration is useful to you, please write to autoconf@gnu.org." >&5
13882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13883 whose name does not start with the host triplet.  If you think this
13884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13885 ac_tool_warned=yes ;;
13886 esac
13887     AR=$ac_ct_AR
13888   fi
13889 else
13890   AR="$ac_cv_prog_AR"
13891 fi
13892
13893 if test -n "$ac_tool_prefix"; then
13894   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13898 if test "${ac_cv_prog_RANLIB+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 else
13901   if test -n "$RANLIB"; then
13902   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13903 else
13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13905 for as_dir in $PATH
13906 do
13907   IFS=$as_save_IFS
13908   test -z "$as_dir" && as_dir=.
13909   for ac_exec_ext in '' $ac_executable_extensions; do
13910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13911     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913     break 2
13914   fi
13915 done
13916 done
13917 IFS=$as_save_IFS
13918
13919 fi
13920 fi
13921 RANLIB=$ac_cv_prog_RANLIB
13922 if test -n "$RANLIB"; then
13923   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13924 echo "${ECHO_T}$RANLIB" >&6; }
13925 else
13926   { echo "$as_me:$LINENO: result: no" >&5
13927 echo "${ECHO_T}no" >&6; }
13928 fi
13929
13930
13931 fi
13932 if test -z "$ac_cv_prog_RANLIB"; then
13933   ac_ct_RANLIB=$RANLIB
13934   # Extract the first word of "ranlib", so it can be a program name with args.
13935 set dummy ranlib; ac_word=$2
13936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941   if test -n "$ac_ct_RANLIB"; then
13942   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13943 else
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13946 do
13947   IFS=$as_save_IFS
13948   test -z "$as_dir" && as_dir=.
13949   for ac_exec_ext in '' $ac_executable_extensions; do
13950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13951     ac_cv_prog_ac_ct_RANLIB="ranlib"
13952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953     break 2
13954   fi
13955 done
13956 done
13957 IFS=$as_save_IFS
13958
13959 fi
13960 fi
13961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13962 if test -n "$ac_ct_RANLIB"; then
13963   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13964 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13965 else
13966   { echo "$as_me:$LINENO: result: no" >&5
13967 echo "${ECHO_T}no" >&6; }
13968 fi
13969
13970   if test "x$ac_ct_RANLIB" = x; then
13971     RANLIB=":"
13972   else
13973     case $cross_compiling:$ac_tool_warned in
13974 yes:)
13975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13976 whose name does not start with the host triplet.  If you think this
13977 configuration is useful to you, please write to autoconf@gnu.org." >&5
13978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13979 whose name does not start with the host triplet.  If you think this
13980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13981 ac_tool_warned=yes ;;
13982 esac
13983     RANLIB=$ac_ct_RANLIB
13984   fi
13985 else
13986   RANLIB="$ac_cv_prog_RANLIB"
13987 fi
13988
13989 if test -n "$ac_tool_prefix"; then
13990   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13991 set dummy ${ac_tool_prefix}strip; ac_word=$2
13992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13994 if test "${ac_cv_prog_STRIP+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   if test -n "$STRIP"; then
13998   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13999 else
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003   IFS=$as_save_IFS
14004   test -z "$as_dir" && as_dir=.
14005   for ac_exec_ext in '' $ac_executable_extensions; do
14006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009     break 2
14010   fi
14011 done
14012 done
14013 IFS=$as_save_IFS
14014
14015 fi
14016 fi
14017 STRIP=$ac_cv_prog_STRIP
14018 if test -n "$STRIP"; then
14019   { echo "$as_me:$LINENO: result: $STRIP" >&5
14020 echo "${ECHO_T}$STRIP" >&6; }
14021 else
14022   { echo "$as_me:$LINENO: result: no" >&5
14023 echo "${ECHO_T}no" >&6; }
14024 fi
14025
14026
14027 fi
14028 if test -z "$ac_cv_prog_STRIP"; then
14029   ac_ct_STRIP=$STRIP
14030   # Extract the first word of "strip", so it can be a program name with args.
14031 set dummy strip; ac_word=$2
14032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14034 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   if test -n "$ac_ct_STRIP"; then
14038   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14039 else
14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14041 for as_dir in $PATH
14042 do
14043   IFS=$as_save_IFS
14044   test -z "$as_dir" && as_dir=.
14045   for ac_exec_ext in '' $ac_executable_extensions; do
14046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14047     ac_cv_prog_ac_ct_STRIP="strip"
14048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14049     break 2
14050   fi
14051 done
14052 done
14053 IFS=$as_save_IFS
14054
14055 fi
14056 fi
14057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14058 if test -n "$ac_ct_STRIP"; then
14059   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14060 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14061 else
14062   { echo "$as_me:$LINENO: result: no" >&5
14063 echo "${ECHO_T}no" >&6; }
14064 fi
14065
14066   if test "x$ac_ct_STRIP" = x; then
14067     STRIP=":"
14068   else
14069     case $cross_compiling:$ac_tool_warned in
14070 yes:)
14071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14072 whose name does not start with the host triplet.  If you think this
14073 configuration is useful to you, please write to autoconf@gnu.org." >&5
14074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14075 whose name does not start with the host triplet.  If you think this
14076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14077 ac_tool_warned=yes ;;
14078 esac
14079     STRIP=$ac_ct_STRIP
14080   fi
14081 else
14082   STRIP="$ac_cv_prog_STRIP"
14083 fi
14084
14085
14086 old_CC="$CC"
14087 old_CFLAGS="$CFLAGS"
14088
14089 # Set sane defaults for various variables
14090 test -z "$AR" && AR=ar
14091 test -z "$AR_FLAGS" && AR_FLAGS=cru
14092 test -z "$AS" && AS=as
14093 test -z "$CC" && CC=cc
14094 test -z "$LTCC" && LTCC=$CC
14095 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14096 test -z "$DLLTOOL" && DLLTOOL=dlltool
14097 test -z "$LD" && LD=ld
14098 test -z "$LN_S" && LN_S="ln -s"
14099 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14100 test -z "$NM" && NM=nm
14101 test -z "$SED" && SED=sed
14102 test -z "$OBJDUMP" && OBJDUMP=objdump
14103 test -z "$RANLIB" && RANLIB=:
14104 test -z "$STRIP" && STRIP=:
14105 test -z "$ac_objext" && ac_objext=o
14106
14107 # Determine commands to create old-style static archives.
14108 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14109 old_postinstall_cmds='chmod 644 $oldlib'
14110 old_postuninstall_cmds=
14111
14112 if test -n "$RANLIB"; then
14113   case $host_os in
14114   openbsd*)
14115     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14116     ;;
14117   *)
14118     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14119     ;;
14120   esac
14121   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14122 fi
14123
14124 for cc_temp in $compiler""; do
14125   case $cc_temp in
14126     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14127     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14128     \-*) ;;
14129     *) break;;
14130   esac
14131 done
14132 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14133
14134
14135 # Only perform the check for file, if the check method requires it
14136 case $deplibs_check_method in
14137 file_magic*)
14138   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14139     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14140 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14141 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14142   echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144   case $MAGIC_CMD in
14145 [\\/*] |  ?:[\\/]*)
14146   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14147   ;;
14148 *)
14149   lt_save_MAGIC_CMD="$MAGIC_CMD"
14150   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14151   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14152   for ac_dir in $ac_dummy; do
14153     IFS="$lt_save_ifs"
14154     test -z "$ac_dir" && ac_dir=.
14155     if test -f $ac_dir/${ac_tool_prefix}file; then
14156       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14157       if test -n "$file_magic_test_file"; then
14158         case $deplibs_check_method in
14159         "file_magic "*)
14160           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14161           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14162           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14163             $EGREP "$file_magic_regex" > /dev/null; then
14164             :
14165           else
14166             cat <<EOF 1>&2
14167
14168 *** Warning: the command libtool uses to detect shared libraries,
14169 *** $file_magic_cmd, produces output that libtool cannot recognize.
14170 *** The result is that libtool may fail to recognize shared libraries
14171 *** as such.  This will affect the creation of libtool libraries that
14172 *** depend on shared libraries, but programs linked with such libtool
14173 *** libraries will work regardless of this problem.  Nevertheless, you
14174 *** may want to report the problem to your system manager and/or to
14175 *** bug-libtool@gnu.org
14176
14177 EOF
14178           fi ;;
14179         esac
14180       fi
14181       break
14182     fi
14183   done
14184   IFS="$lt_save_ifs"
14185   MAGIC_CMD="$lt_save_MAGIC_CMD"
14186   ;;
14187 esac
14188 fi
14189
14190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14191 if test -n "$MAGIC_CMD"; then
14192   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14193 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14194 else
14195   { echo "$as_me:$LINENO: result: no" >&5
14196 echo "${ECHO_T}no" >&6; }
14197 fi
14198
14199 if test -z "$lt_cv_path_MAGIC_CMD"; then
14200   if test -n "$ac_tool_prefix"; then
14201     { echo "$as_me:$LINENO: checking for file" >&5
14202 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   case $MAGIC_CMD in
14207 [\\/*] |  ?:[\\/]*)
14208   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14209   ;;
14210 *)
14211   lt_save_MAGIC_CMD="$MAGIC_CMD"
14212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14213   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14214   for ac_dir in $ac_dummy; do
14215     IFS="$lt_save_ifs"
14216     test -z "$ac_dir" && ac_dir=.
14217     if test -f $ac_dir/file; then
14218       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14219       if test -n "$file_magic_test_file"; then
14220         case $deplibs_check_method in
14221         "file_magic "*)
14222           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14223           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14224           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14225             $EGREP "$file_magic_regex" > /dev/null; then
14226             :
14227           else
14228             cat <<EOF 1>&2
14229
14230 *** Warning: the command libtool uses to detect shared libraries,
14231 *** $file_magic_cmd, produces output that libtool cannot recognize.
14232 *** The result is that libtool may fail to recognize shared libraries
14233 *** as such.  This will affect the creation of libtool libraries that
14234 *** depend on shared libraries, but programs linked with such libtool
14235 *** libraries will work regardless of this problem.  Nevertheless, you
14236 *** may want to report the problem to your system manager and/or to
14237 *** bug-libtool@gnu.org
14238
14239 EOF
14240           fi ;;
14241         esac
14242       fi
14243       break
14244     fi
14245   done
14246   IFS="$lt_save_ifs"
14247   MAGIC_CMD="$lt_save_MAGIC_CMD"
14248   ;;
14249 esac
14250 fi
14251
14252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14253 if test -n "$MAGIC_CMD"; then
14254   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14255 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14256 else
14257   { echo "$as_me:$LINENO: result: no" >&5
14258 echo "${ECHO_T}no" >&6; }
14259 fi
14260
14261   else
14262     MAGIC_CMD=:
14263   fi
14264 fi
14265
14266   fi
14267   ;;
14268 esac
14269
14270 enable_dlopen=no
14271 enable_win32_dll=no
14272
14273 # Check whether --enable-libtool-lock was given.
14274 if test "${enable_libtool_lock+set}" = set; then
14275   enableval=$enable_libtool_lock;
14276 fi
14277
14278 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14279
14280
14281 # Check whether --with-pic was given.
14282 if test "${with_pic+set}" = set; then
14283   withval=$with_pic; pic_mode="$withval"
14284 else
14285   pic_mode=default
14286 fi
14287
14288 test -z "$pic_mode" && pic_mode=default
14289
14290 # Use C for the default configuration in the libtool script
14291 tagname=
14292 lt_save_CC="$CC"
14293 ac_ext=c
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14298
14299
14300 # Source file extension for C test sources.
14301 ac_ext=c
14302
14303 # Object file extension for compiled C test sources.
14304 objext=o
14305 objext=$objext
14306
14307 # Code to be used in simple compile tests
14308 lt_simple_compile_test_code="int some_variable = 0;\n"
14309
14310 # Code to be used in simple link tests
14311 lt_simple_link_test_code='int main(){return(0);}\n'
14312
14313
14314 # If no C compiler was specified, use CC.
14315 LTCC=${LTCC-"$CC"}
14316
14317 # If no C compiler flags were specified, use CFLAGS.
14318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14319
14320 # Allow CC to be a program name with arguments.
14321 compiler=$CC
14322
14323
14324 # save warnings/boilerplate of simple test code
14325 ac_outfile=conftest.$ac_objext
14326 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14327 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14328 _lt_compiler_boilerplate=`cat conftest.err`
14329 $rm conftest*
14330
14331 ac_outfile=conftest.$ac_objext
14332 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14333 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14334 _lt_linker_boilerplate=`cat conftest.err`
14335 $rm conftest*
14336
14337
14338
14339 lt_prog_compiler_no_builtin_flag=
14340
14341 if test "$GCC" = yes; then
14342   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14343
14344
14345 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14346 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14347 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14348   echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350   lt_cv_prog_compiler_rtti_exceptions=no
14351   ac_outfile=conftest.$ac_objext
14352    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14353    lt_compiler_flag="-fno-rtti -fno-exceptions"
14354    # Insert the option either (1) after the last *FLAGS variable, or
14355    # (2) before a word containing "conftest.", or (3) at the end.
14356    # Note that $ac_compile itself does not contain backslashes and begins
14357    # with a dollar sign (not a hyphen), so the echo should work correctly.
14358    # The option is referenced via a variable to avoid confusing sed.
14359    lt_compile=`echo "$ac_compile" | $SED \
14360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14362    -e 's:$: $lt_compiler_flag:'`
14363    (eval echo "\"\$as_me:14363: $lt_compile\"" >&5)
14364    (eval "$lt_compile" 2>conftest.err)
14365    ac_status=$?
14366    cat conftest.err >&5
14367    echo "$as_me:14367: \$? = $ac_status" >&5
14368    if (exit $ac_status) && test -s "$ac_outfile"; then
14369      # The compiler can only warn and ignore the option if not recognized
14370      # So say no if there are warnings other than the usual output.
14371      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14372      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14373      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14374        lt_cv_prog_compiler_rtti_exceptions=yes
14375      fi
14376    fi
14377    $rm conftest*
14378
14379 fi
14380 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14381 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14382
14383 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14384     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14385 else
14386     :
14387 fi
14388
14389 fi
14390
14391 lt_prog_compiler_wl=
14392 lt_prog_compiler_pic=
14393 lt_prog_compiler_static=
14394
14395 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14396 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14397
14398   if test "$GCC" = yes; then
14399     lt_prog_compiler_wl='-Wl,'
14400     lt_prog_compiler_static='-static'
14401
14402     case $host_os in
14403       aix*)
14404       # All AIX code is PIC.
14405       if test "$host_cpu" = ia64; then
14406         # AIX 5 now supports IA64 processor
14407         lt_prog_compiler_static='-Bstatic'
14408       fi
14409       ;;
14410
14411     amigaos*)
14412       # FIXME: we need at least 68020 code to build shared libraries, but
14413       # adding the `-m68020' flag to GCC prevents building anything better,
14414       # like `-m68040'.
14415       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14416       ;;
14417
14418     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14419       # PIC is the default for these OSes.
14420       ;;
14421
14422     mingw* | pw32* | os2*)
14423       # This hack is so that the source file can tell whether it is being
14424       # built for inclusion in a dll (and should export symbols for example).
14425       lt_prog_compiler_pic='-DDLL_EXPORT'
14426       ;;
14427
14428     darwin* | rhapsody*)
14429       # PIC is the default on this platform
14430       # Common symbols not allowed in MH_DYLIB files
14431       lt_prog_compiler_pic='-fno-common'
14432       ;;
14433
14434     interix3*)
14435       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14436       # Instead, we relocate shared libraries at runtime.
14437       ;;
14438
14439     msdosdjgpp*)
14440       # Just because we use GCC doesn't mean we suddenly get shared libraries
14441       # on systems that don't support them.
14442       lt_prog_compiler_can_build_shared=no
14443       enable_shared=no
14444       ;;
14445
14446     sysv4*MP*)
14447       if test -d /usr/nec; then
14448         lt_prog_compiler_pic=-Kconform_pic
14449       fi
14450       ;;
14451
14452     hpux*)
14453       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454       # not for PA HP-UX.
14455       case $host_cpu in
14456       hppa*64*|ia64*)
14457         # +Z the default
14458         ;;
14459       *)
14460         lt_prog_compiler_pic='-fPIC'
14461         ;;
14462       esac
14463       ;;
14464
14465     *)
14466       lt_prog_compiler_pic='-fPIC'
14467       ;;
14468     esac
14469   else
14470     # PORTME Check for flag to pass linker flags through the system compiler.
14471     case $host_os in
14472     aix*)
14473       lt_prog_compiler_wl='-Wl,'
14474       if test "$host_cpu" = ia64; then
14475         # AIX 5 now supports IA64 processor
14476         lt_prog_compiler_static='-Bstatic'
14477       else
14478         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14479       fi
14480       ;;
14481       darwin*)
14482         # PIC is the default on this platform
14483         # Common symbols not allowed in MH_DYLIB files
14484        case $cc_basename in
14485          xlc*)
14486          lt_prog_compiler_pic='-qnocommon'
14487          lt_prog_compiler_wl='-Wl,'
14488          ;;
14489        esac
14490        ;;
14491
14492     mingw* | pw32* | os2*)
14493       # This hack is so that the source file can tell whether it is being
14494       # built for inclusion in a dll (and should export symbols for example).
14495       lt_prog_compiler_pic='-DDLL_EXPORT'
14496       ;;
14497
14498     hpux9* | hpux10* | hpux11*)
14499       lt_prog_compiler_wl='-Wl,'
14500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14501       # not for PA HP-UX.
14502       case $host_cpu in
14503       hppa*64*|ia64*)
14504         # +Z the default
14505         ;;
14506       *)
14507         lt_prog_compiler_pic='+Z'
14508         ;;
14509       esac
14510       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14511       lt_prog_compiler_static='${wl}-a ${wl}archive'
14512       ;;
14513
14514     irix5* | irix6* | nonstopux*)
14515       lt_prog_compiler_wl='-Wl,'
14516       # PIC (with -KPIC) is the default.
14517       lt_prog_compiler_static='-non_shared'
14518       ;;
14519
14520     newsos6)
14521       lt_prog_compiler_pic='-KPIC'
14522       lt_prog_compiler_static='-Bstatic'
14523       ;;
14524
14525     linux*)
14526       case $cc_basename in
14527       icc* | ecc*)
14528         lt_prog_compiler_wl='-Wl,'
14529         lt_prog_compiler_pic='-KPIC'
14530         lt_prog_compiler_static='-static'
14531         ;;
14532       pgcc* | pgf77* | pgf90* | pgf95*)
14533         # Portland Group compilers (*not* the Pentium gcc compiler,
14534         # which looks to be a dead project)
14535         lt_prog_compiler_wl='-Wl,'
14536         lt_prog_compiler_pic='-fpic'
14537         lt_prog_compiler_static='-Bstatic'
14538         ;;
14539       ccc*)
14540         lt_prog_compiler_wl='-Wl,'
14541         # All Alpha code is PIC.
14542         lt_prog_compiler_static='-non_shared'
14543         ;;
14544       esac
14545       ;;
14546
14547     osf3* | osf4* | osf5*)
14548       lt_prog_compiler_wl='-Wl,'
14549       # All OSF/1 code is PIC.
14550       lt_prog_compiler_static='-non_shared'
14551       ;;
14552
14553     solaris*)
14554       lt_prog_compiler_pic='-KPIC'
14555       lt_prog_compiler_static='-Bstatic'
14556       case $cc_basename in
14557       f77* | f90* | f95*)
14558         lt_prog_compiler_wl='-Qoption ld ';;
14559       *)
14560         lt_prog_compiler_wl='-Wl,';;
14561       esac
14562       ;;
14563
14564     sunos4*)
14565       lt_prog_compiler_wl='-Qoption ld '
14566       lt_prog_compiler_pic='-PIC'
14567       lt_prog_compiler_static='-Bstatic'
14568       ;;
14569
14570     sysv4 | sysv4.2uw2* | sysv4.3*)
14571       lt_prog_compiler_wl='-Wl,'
14572       lt_prog_compiler_pic='-KPIC'
14573       lt_prog_compiler_static='-Bstatic'
14574       ;;
14575
14576     sysv4*MP*)
14577       if test -d /usr/nec ;then
14578         lt_prog_compiler_pic='-Kconform_pic'
14579         lt_prog_compiler_static='-Bstatic'
14580       fi
14581       ;;
14582
14583     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14584       lt_prog_compiler_wl='-Wl,'
14585       lt_prog_compiler_pic='-KPIC'
14586       lt_prog_compiler_static='-Bstatic'
14587       ;;
14588
14589     unicos*)
14590       lt_prog_compiler_wl='-Wl,'
14591       lt_prog_compiler_can_build_shared=no
14592       ;;
14593
14594     uts4*)
14595       lt_prog_compiler_pic='-pic'
14596       lt_prog_compiler_static='-Bstatic'
14597       ;;
14598
14599     *)
14600       lt_prog_compiler_can_build_shared=no
14601       ;;
14602     esac
14603   fi
14604
14605 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14606 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14607
14608 #
14609 # Check to make sure the PIC flag actually works.
14610 #
14611 if test -n "$lt_prog_compiler_pic"; then
14612
14613 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14614 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14615 if test "${lt_prog_compiler_pic_works+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618   lt_prog_compiler_pic_works=no
14619   ac_outfile=conftest.$ac_objext
14620    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14621    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14622    # Insert the option either (1) after the last *FLAGS variable, or
14623    # (2) before a word containing "conftest.", or (3) at the end.
14624    # Note that $ac_compile itself does not contain backslashes and begins
14625    # with a dollar sign (not a hyphen), so the echo should work correctly.
14626    # The option is referenced via a variable to avoid confusing sed.
14627    lt_compile=`echo "$ac_compile" | $SED \
14628    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630    -e 's:$: $lt_compiler_flag:'`
14631    (eval echo "\"\$as_me:14631: $lt_compile\"" >&5)
14632    (eval "$lt_compile" 2>conftest.err)
14633    ac_status=$?
14634    cat conftest.err >&5
14635    echo "$as_me:14635: \$? = $ac_status" >&5
14636    if (exit $ac_status) && test -s "$ac_outfile"; then
14637      # The compiler can only warn and ignore the option if not recognized
14638      # So say no if there are warnings other than the usual output.
14639      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14640      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14641      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14642        lt_prog_compiler_pic_works=yes
14643      fi
14644    fi
14645    $rm conftest*
14646
14647 fi
14648 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14649 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14650
14651 if test x"$lt_prog_compiler_pic_works" = xyes; then
14652     case $lt_prog_compiler_pic in
14653      "" | " "*) ;;
14654      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14655      esac
14656 else
14657     lt_prog_compiler_pic=
14658      lt_prog_compiler_can_build_shared=no
14659 fi
14660
14661 fi
14662 case $host_os in
14663   # For platforms which do not support PIC, -DPIC is meaningless:
14664   *djgpp*)
14665     lt_prog_compiler_pic=
14666     ;;
14667   *)
14668     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14669     ;;
14670 esac
14671
14672 #
14673 # Check to make sure the static flag actually works.
14674 #
14675 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14676 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14677 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14678 if test "${lt_prog_compiler_static_works+set}" = set; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681   lt_prog_compiler_static_works=no
14682    save_LDFLAGS="$LDFLAGS"
14683    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14684    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14685    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14686      # The linker can only warn and ignore the option if not recognized
14687      # So say no if there are warnings
14688      if test -s conftest.err; then
14689        # Append any errors to the config.log.
14690        cat conftest.err 1>&5
14691        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14692        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14693        if diff conftest.exp conftest.er2 >/dev/null; then
14694          lt_prog_compiler_static_works=yes
14695        fi
14696      else
14697        lt_prog_compiler_static_works=yes
14698      fi
14699    fi
14700    $rm conftest*
14701    LDFLAGS="$save_LDFLAGS"
14702
14703 fi
14704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14705 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14706
14707 if test x"$lt_prog_compiler_static_works" = xyes; then
14708     :
14709 else
14710     lt_prog_compiler_static=
14711 fi
14712
14713
14714 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14715 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14716 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719   lt_cv_prog_compiler_c_o=no
14720    $rm -r conftest 2>/dev/null
14721    mkdir conftest
14722    cd conftest
14723    mkdir out
14724    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14725
14726    lt_compiler_flag="-o out/conftest2.$ac_objext"
14727    # Insert the option either (1) after the last *FLAGS variable, or
14728    # (2) before a word containing "conftest.", or (3) at the end.
14729    # Note that $ac_compile itself does not contain backslashes and begins
14730    # with a dollar sign (not a hyphen), so the echo should work correctly.
14731    lt_compile=`echo "$ac_compile" | $SED \
14732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734    -e 's:$: $lt_compiler_flag:'`
14735    (eval echo "\"\$as_me:14735: $lt_compile\"" >&5)
14736    (eval "$lt_compile" 2>out/conftest.err)
14737    ac_status=$?
14738    cat out/conftest.err >&5
14739    echo "$as_me:14739: \$? = $ac_status" >&5
14740    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14741    then
14742      # The compiler can only warn and ignore the option if not recognized
14743      # So say no if there are warnings
14744      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14745      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14746      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14747        lt_cv_prog_compiler_c_o=yes
14748      fi
14749    fi
14750    chmod u+w . 2>&5
14751    $rm conftest*
14752    # SGI C++ compiler will create directory out/ii_files/ for
14753    # template instantiation
14754    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14755    $rm out/* && rmdir out
14756    cd ..
14757    rmdir conftest
14758    $rm conftest*
14759
14760 fi
14761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14762 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14763
14764
14765 hard_links="nottested"
14766 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14767   # do not overwrite the value of need_locks provided by the user
14768   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14769 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14770   hard_links=yes
14771   $rm conftest*
14772   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14773   touch conftest.a
14774   ln conftest.a conftest.b 2>&5 || hard_links=no
14775   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14776   { echo "$as_me:$LINENO: result: $hard_links" >&5
14777 echo "${ECHO_T}$hard_links" >&6; }
14778   if test "$hard_links" = no; then
14779     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14780 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14781     need_locks=warn
14782   fi
14783 else
14784   need_locks=no
14785 fi
14786
14787 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14788 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14789
14790   runpath_var=
14791   allow_undefined_flag=
14792   enable_shared_with_static_runtimes=no
14793   archive_cmds=
14794   archive_expsym_cmds=
14795   old_archive_From_new_cmds=
14796   old_archive_from_expsyms_cmds=
14797   export_dynamic_flag_spec=
14798   whole_archive_flag_spec=
14799   thread_safe_flag_spec=
14800   hardcode_libdir_flag_spec=
14801   hardcode_libdir_flag_spec_ld=
14802   hardcode_libdir_separator=
14803   hardcode_direct=no
14804   hardcode_minus_L=no
14805   hardcode_shlibpath_var=unsupported
14806   link_all_deplibs=unknown
14807   hardcode_automatic=no
14808   module_cmds=
14809   module_expsym_cmds=
14810   always_export_symbols=no
14811   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14812   # include_expsyms should be a list of space-separated symbols to be *always*
14813   # included in the symbol list
14814   include_expsyms=
14815   # exclude_expsyms can be an extended regexp of symbols to exclude
14816   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14817   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14818   # as well as any symbol that contains `d'.
14819   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14820   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14821   # platforms (ab)use it in PIC code, but their linkers get confused if
14822   # the symbol is explicitly referenced.  Since portable code cannot
14823   # rely on this symbol name, it's probably fine to never include it in
14824   # preloaded symbol tables.
14825   extract_expsyms_cmds=
14826   # Just being paranoid about ensuring that cc_basename is set.
14827   for cc_temp in $compiler""; do
14828   case $cc_temp in
14829     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14830     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14831     \-*) ;;
14832     *) break;;
14833   esac
14834 done
14835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14836
14837   case $host_os in
14838   cygwin* | mingw* | pw32*)
14839     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14840     # When not using gcc, we currently assume that we are using
14841     # Microsoft Visual C++.
14842     if test "$GCC" != yes; then
14843       with_gnu_ld=no
14844     fi
14845     ;;
14846   interix*)
14847     # we just hope/assume this is gcc and not c89 (= MSVC++)
14848     with_gnu_ld=yes
14849     ;;
14850   openbsd*)
14851     with_gnu_ld=no
14852     ;;
14853   esac
14854
14855   ld_shlibs=yes
14856   if test "$with_gnu_ld" = yes; then
14857     # If archive_cmds runs LD, not CC, wlarc should be empty
14858     wlarc='${wl}'
14859
14860     # Set some defaults for GNU ld with shared library support. These
14861     # are reset later if shared libraries are not supported. Putting them
14862     # here allows them to be overridden if necessary.
14863     runpath_var=LD_RUN_PATH
14864     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14865     export_dynamic_flag_spec='${wl}--export-dynamic'
14866     # ancient GNU ld didn't support --whole-archive et. al.
14867     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14868         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14869       else
14870         whole_archive_flag_spec=
14871     fi
14872     supports_anon_versioning=no
14873     case `$LD -v 2>/dev/null` in
14874       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14875       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14876       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14877       *\ 2.11.*) ;; # other 2.11 versions
14878       *) supports_anon_versioning=yes ;;
14879     esac
14880
14881     # See if GNU ld supports shared libraries.
14882     case $host_os in
14883     aix3* | aix4* | aix5*)
14884       # On AIX/PPC, the GNU linker is very broken
14885       if test "$host_cpu" != ia64; then
14886         ld_shlibs=no
14887         cat <<EOF 1>&2
14888
14889 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14890 *** to be unable to reliably create shared libraries on AIX.
14891 *** Therefore, libtool is disabling shared libraries support.  If you
14892 *** really care for shared libraries, you may want to modify your PATH
14893 *** so that a non-GNU linker is found, and then restart.
14894
14895 EOF
14896       fi
14897       ;;
14898
14899     amigaos*)
14900       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)'
14901       hardcode_libdir_flag_spec='-L$libdir'
14902       hardcode_minus_L=yes
14903
14904       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14905       # that the semantics of dynamic libraries on AmigaOS, at least up
14906       # to version 4, is to share data among multiple programs linked
14907       # with the same dynamic library.  Since this doesn't match the
14908       # behavior of shared libraries on other platforms, we can't use
14909       # them.
14910       ld_shlibs=no
14911       ;;
14912
14913     beos*)
14914       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14915         allow_undefined_flag=unsupported
14916         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14917         # support --undefined.  This deserves some investigation.  FIXME
14918         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14919       else
14920         ld_shlibs=no
14921       fi
14922       ;;
14923
14924     cygwin* | mingw* | pw32*)
14925       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14926       # as there is no search path for DLLs.
14927       hardcode_libdir_flag_spec='-L$libdir'
14928       allow_undefined_flag=unsupported
14929       always_export_symbols=no
14930       enable_shared_with_static_runtimes=yes
14931       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14932
14933       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14934         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14935         # If the export-symbols file already is a .def file (1st line
14936         # is EXPORTS), use it as is; otherwise, prepend...
14937         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14938           cp $export_symbols $output_objdir/$soname.def;
14939         else
14940           echo EXPORTS > $output_objdir/$soname.def;
14941           cat $export_symbols >> $output_objdir/$soname.def;
14942         fi~
14943         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14944       else
14945         ld_shlibs=no
14946       fi
14947       ;;
14948
14949     interix3*)
14950       hardcode_direct=no
14951       hardcode_shlibpath_var=no
14952       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14953       export_dynamic_flag_spec='${wl}-E'
14954       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14955       # Instead, shared libraries are loaded at an image base (0x10000000 by
14956       # default) and relocated if they conflict, which is a slow very memory
14957       # consuming and fragmenting process.  To avoid this, we pick a random,
14958       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14959       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14960       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14961       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'
14962       ;;
14963
14964     linux*)
14965       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14966         tmp_addflag=
14967         case $cc_basename,$host_cpu in
14968         pgcc*)                          # Portland Group C compiler
14969           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'
14970           tmp_addflag=' $pic_flag'
14971           ;;
14972         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14973           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'
14974           tmp_addflag=' $pic_flag -Mnomain' ;;
14975         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14976           tmp_addflag=' -i_dynamic' ;;
14977         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14978           tmp_addflag=' -i_dynamic -nofor_main' ;;
14979         ifc* | ifort*)                  # Intel Fortran compiler
14980           tmp_addflag=' -nofor_main' ;;
14981         esac
14982         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983
14984         if test $supports_anon_versioning = yes; then
14985           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14986   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14987   $echo "local: *; };" >> $output_objdir/$libname.ver~
14988           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14989         fi
14990       else
14991         ld_shlibs=no
14992       fi
14993       ;;
14994
14995     netbsd*)
14996       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14997         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14998         wlarc=
14999       else
15000         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15001         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15002       fi
15003       ;;
15004
15005     solaris*)
15006       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15007         ld_shlibs=no
15008         cat <<EOF 1>&2
15009
15010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15011 *** create shared libraries on Solaris systems.  Therefore, libtool
15012 *** is disabling shared libraries support.  We urge you to upgrade GNU
15013 *** binutils to release 2.9.1 or newer.  Another option is to modify
15014 *** your PATH or compiler configuration so that the native linker is
15015 *** used, and then restart.
15016
15017 EOF
15018       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15019         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15020         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15021       else
15022         ld_shlibs=no
15023       fi
15024       ;;
15025
15026     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15027       case `$LD -v 2>&1` in
15028         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15029         ld_shlibs=no
15030         cat <<_LT_EOF 1>&2
15031
15032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15033 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15034 *** is disabling shared libraries support.  We urge you to upgrade GNU
15035 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15036 *** your PATH or compiler configuration so that the native linker is
15037 *** used, and then restart.
15038
15039 _LT_EOF
15040         ;;
15041         *)
15042           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15043             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15044             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15045             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15046           else
15047             ld_shlibs=no
15048           fi
15049         ;;
15050       esac
15051       ;;
15052
15053     sunos4*)
15054       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15055       wlarc=
15056       hardcode_direct=yes
15057       hardcode_shlibpath_var=no
15058       ;;
15059
15060     *)
15061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15063         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15064       else
15065         ld_shlibs=no
15066       fi
15067       ;;
15068     esac
15069
15070     if test "$ld_shlibs" = no; then
15071       runpath_var=
15072       hardcode_libdir_flag_spec=
15073       export_dynamic_flag_spec=
15074       whole_archive_flag_spec=
15075     fi
15076   else
15077     # PORTME fill in a description of your system's linker (not GNU ld)
15078     case $host_os in
15079     aix3*)
15080       allow_undefined_flag=unsupported
15081       always_export_symbols=yes
15082       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'
15083       # Note: this linker hardcodes the directories in LIBPATH if there
15084       # are no directories specified by -L.
15085       hardcode_minus_L=yes
15086       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15087         # Neither direct hardcoding nor static linking is supported with a
15088         # broken collect2.
15089         hardcode_direct=unsupported
15090       fi
15091       ;;
15092
15093     aix4* | aix5*)
15094       if test "$host_cpu" = ia64; then
15095         # On IA64, the linker does run time linking by default, so we don't
15096         # have to do anything special.
15097         aix_use_runtimelinking=no
15098         exp_sym_flag='-Bexport'
15099         no_entry_flag=""
15100       else
15101         # If we're using GNU nm, then we don't want the "-C" option.
15102         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15103         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15104           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'
15105         else
15106           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'
15107         fi
15108         aix_use_runtimelinking=no
15109
15110         # Test if we are trying to use run time linking or normal
15111         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15112         # need to do runtime linking.
15113         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15114           for ld_flag in $LDFLAGS; do
15115           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15116             aix_use_runtimelinking=yes
15117             break
15118           fi
15119           done
15120           ;;
15121         esac
15122
15123         exp_sym_flag='-bexport'
15124         no_entry_flag='-bnoentry'
15125       fi
15126
15127       # When large executables or shared objects are built, AIX ld can
15128       # have problems creating the table of contents.  If linking a library
15129       # or program results in "error TOC overflow" add -mminimal-toc to
15130       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15131       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15132
15133       archive_cmds=''
15134       hardcode_direct=yes
15135       hardcode_libdir_separator=':'
15136       link_all_deplibs=yes
15137
15138       if test "$GCC" = yes; then
15139         case $host_os in aix4.[012]|aix4.[012].*)
15140         # We only want to do this on AIX 4.2 and lower, the check
15141         # below for broken collect2 doesn't work under 4.3+
15142           collect2name=`${CC} -print-prog-name=collect2`
15143           if test -f "$collect2name" && \
15144            strings "$collect2name" | grep resolve_lib_name >/dev/null
15145           then
15146           # We have reworked collect2
15147           hardcode_direct=yes
15148           else
15149           # We have old collect2
15150           hardcode_direct=unsupported
15151           # It fails to find uninstalled libraries when the uninstalled
15152           # path is not listed in the libpath.  Setting hardcode_minus_L
15153           # to unsupported forces relinking
15154           hardcode_minus_L=yes
15155           hardcode_libdir_flag_spec='-L$libdir'
15156           hardcode_libdir_separator=
15157           fi
15158           ;;
15159         esac
15160         shared_flag='-shared'
15161         if test "$aix_use_runtimelinking" = yes; then
15162           shared_flag="$shared_flag "'${wl}-G'
15163         fi
15164       else
15165         # not using gcc
15166         if test "$host_cpu" = ia64; then
15167         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15168         # chokes on -Wl,-G. The following line is correct:
15169           shared_flag='-G'
15170         else
15171           if test "$aix_use_runtimelinking" = yes; then
15172             shared_flag='${wl}-G'
15173           else
15174             shared_flag='${wl}-bM:SRE'
15175           fi
15176         fi
15177       fi
15178
15179       # It seems that -bexpall does not export symbols beginning with
15180       # underscore (_), so it is better to generate a list of symbols to export.
15181       always_export_symbols=yes
15182       if test "$aix_use_runtimelinking" = yes; then
15183         # Warning - without using the other runtime loading flags (-brtl),
15184         # -berok will link without error, but may produce a broken library.
15185         allow_undefined_flag='-berok'
15186        # Determine the default libpath from the value encoded in an empty executable.
15187        cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h.  */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h.  */
15193
15194 int
15195 main ()
15196 {
15197
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
15204 case "(($ac_try" in
15205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206   *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209   (eval "$ac_link") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } && {
15216          test -z "$ac_c_werror_flag" ||
15217          test ! -s conftest.err
15218        } && test -s conftest$ac_exeext &&
15219        $as_test_x conftest$ac_exeext; then
15220
15221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15222 }'`
15223 # Check for a 64-bit object if we didn't find anything.
15224 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; }
15225 }'`; fi
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230
15231 fi
15232
15233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15234       conftest$ac_exeext conftest.$ac_ext
15235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15236
15237        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15238         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"
15239        else
15240         if test "$host_cpu" = ia64; then
15241           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15242           allow_undefined_flag="-z nodefs"
15243           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"
15244         else
15245          # Determine the default libpath from the value encoded in an empty executable.
15246          cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252
15253 int
15254 main ()
15255 {
15256
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265   *) ac_try_echo=$ac_try;;
15266 esac
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268   (eval "$ac_link") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && {
15275          test -z "$ac_c_werror_flag" ||
15276          test ! -s conftest.err
15277        } && test -s conftest$ac_exeext &&
15278        $as_test_x conftest$ac_exeext; then
15279
15280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15281 }'`
15282 # Check for a 64-bit object if we didn't find anything.
15283 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; }
15284 }'`; fi
15285 else
15286   echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289
15290 fi
15291
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293       conftest$ac_exeext conftest.$ac_ext
15294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15295
15296          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15297           # Warning - without using the other run time loading flags,
15298           # -berok will link without error, but may produce a broken library.
15299           no_undefined_flag=' ${wl}-bernotok'
15300           allow_undefined_flag=' ${wl}-berok'
15301           # Exported symbols can be pulled into shared objects from archives
15302           whole_archive_flag_spec='$convenience'
15303           archive_cmds_need_lc=yes
15304           # This is similar to how AIX traditionally builds its shared libraries.
15305           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'
15306         fi
15307       fi
15308       ;;
15309
15310     amigaos*)
15311       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)'
15312       hardcode_libdir_flag_spec='-L$libdir'
15313       hardcode_minus_L=yes
15314       # see comment about different semantics on the GNU ld section
15315       ld_shlibs=no
15316       ;;
15317
15318     bsdi[45]*)
15319       export_dynamic_flag_spec=-rdynamic
15320       ;;
15321
15322     cygwin* | mingw* | pw32*)
15323       # When not using gcc, we currently assume that we are using
15324       # Microsoft Visual C++.
15325       # hardcode_libdir_flag_spec is actually meaningless, as there is
15326       # no search path for DLLs.
15327       hardcode_libdir_flag_spec=' '
15328       allow_undefined_flag=unsupported
15329       # Tell ltmain to make .lib files, not .a files.
15330       libext=lib
15331       # Tell ltmain to make .dll files, not .so files.
15332       shrext_cmds=".dll"
15333       # FIXME: Setting linknames here is a bad hack.
15334       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15335       # The linker will automatically build a .lib file if we build a DLL.
15336       old_archive_From_new_cmds='true'
15337       # FIXME: Should let the user specify the lib program.
15338       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15339       fix_srcfile_path='`cygpath -w "$srcfile"`'
15340       enable_shared_with_static_runtimes=yes
15341       ;;
15342
15343     darwin* | rhapsody*)
15344       case $host_os in
15345         rhapsody* | darwin1.[012])
15346          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15347          ;;
15348        *) # Darwin 1.3 on
15349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15350            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15351          else
15352            case ${MACOSX_DEPLOYMENT_TARGET} in
15353              10.[012])
15354                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15355                ;;
15356              10.*)
15357                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15358                ;;
15359            esac
15360          fi
15361          ;;
15362       esac
15363       archive_cmds_need_lc=no
15364       hardcode_direct=no
15365       hardcode_automatic=yes
15366       hardcode_shlibpath_var=unsupported
15367       whole_archive_flag_spec=''
15368       link_all_deplibs=yes
15369     if test "$GCC" = yes ; then
15370         output_verbose_link_cmd='echo'
15371         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15372       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15373       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15374       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}'
15375       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}'
15376     else
15377       case $cc_basename in
15378         xlc*)
15379          output_verbose_link_cmd='echo'
15380          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15381          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15382           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15383          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}'
15384           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}'
15385           ;;
15386        *)
15387          ld_shlibs=no
15388           ;;
15389       esac
15390     fi
15391       ;;
15392
15393     dgux*)
15394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15395       hardcode_libdir_flag_spec='-L$libdir'
15396       hardcode_shlibpath_var=no
15397       ;;
15398
15399     freebsd1*)
15400       ld_shlibs=no
15401       ;;
15402
15403     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15404     # support.  Future versions do this automatically, but an explicit c++rt0.o
15405     # does not break anything, and helps significantly (at the cost of a little
15406     # extra space).
15407     freebsd2.2*)
15408       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15409       hardcode_libdir_flag_spec='-R$libdir'
15410       hardcode_direct=yes
15411       hardcode_shlibpath_var=no
15412       ;;
15413
15414     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15415     freebsd2*)
15416       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417       hardcode_direct=yes
15418       hardcode_minus_L=yes
15419       hardcode_shlibpath_var=no
15420       ;;
15421
15422     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15423     freebsd* | kfreebsd*-gnu | dragonfly*)
15424       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15425       hardcode_libdir_flag_spec='-R$libdir'
15426       hardcode_direct=yes
15427       hardcode_shlibpath_var=no
15428       ;;
15429
15430     hpux9*)
15431       if test "$GCC" = yes; then
15432         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'
15433       else
15434         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'
15435       fi
15436       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15437       hardcode_libdir_separator=:
15438       hardcode_direct=yes
15439
15440       # hardcode_minus_L: Not really in the search PATH,
15441       # but as the default location of the library.
15442       hardcode_minus_L=yes
15443       export_dynamic_flag_spec='${wl}-E'
15444       ;;
15445
15446     hpux10*)
15447       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15448         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15449       else
15450         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15451       fi
15452       if test "$with_gnu_ld" = no; then
15453         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15454         hardcode_libdir_separator=:
15455
15456         hardcode_direct=yes
15457         export_dynamic_flag_spec='${wl}-E'
15458
15459         # hardcode_minus_L: Not really in the search PATH,
15460         # but as the default location of the library.
15461         hardcode_minus_L=yes
15462       fi
15463       ;;
15464
15465     hpux11*)
15466       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15467         case $host_cpu in
15468         hppa*64*)
15469           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15470           ;;
15471         ia64*)
15472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15473           ;;
15474         *)
15475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15476           ;;
15477         esac
15478       else
15479         case $host_cpu in
15480         hppa*64*)
15481           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482           ;;
15483         ia64*)
15484           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15485           ;;
15486         *)
15487           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15488           ;;
15489         esac
15490       fi
15491       if test "$with_gnu_ld" = no; then
15492         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15493         hardcode_libdir_separator=:
15494
15495         case $host_cpu in
15496         hppa*64*|ia64*)
15497           hardcode_libdir_flag_spec_ld='+b $libdir'
15498           hardcode_direct=no
15499           hardcode_shlibpath_var=no
15500           ;;
15501         *)
15502           hardcode_direct=yes
15503           export_dynamic_flag_spec='${wl}-E'
15504
15505           # hardcode_minus_L: Not really in the search PATH,
15506           # but as the default location of the library.
15507           hardcode_minus_L=yes
15508           ;;
15509         esac
15510       fi
15511       ;;
15512
15513     irix5* | irix6* | nonstopux*)
15514       if test "$GCC" = yes; then
15515         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'
15516       else
15517         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'
15518         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15519       fi
15520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15521       hardcode_libdir_separator=:
15522       link_all_deplibs=yes
15523       ;;
15524
15525     netbsd*)
15526       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15527         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15528       else
15529         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15530       fi
15531       hardcode_libdir_flag_spec='-R$libdir'
15532       hardcode_direct=yes
15533       hardcode_shlibpath_var=no
15534       ;;
15535
15536     newsos6)
15537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15538       hardcode_direct=yes
15539       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15540       hardcode_libdir_separator=:
15541       hardcode_shlibpath_var=no
15542       ;;
15543
15544     openbsd*)
15545       hardcode_direct=yes
15546       hardcode_shlibpath_var=no
15547       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15548         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15549         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15550         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15551         export_dynamic_flag_spec='${wl}-E'
15552       else
15553        case $host_os in
15554          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15555            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15556            hardcode_libdir_flag_spec='-R$libdir'
15557            ;;
15558          *)
15559            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15560            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15561            ;;
15562        esac
15563       fi
15564       ;;
15565
15566     os2*)
15567       hardcode_libdir_flag_spec='-L$libdir'
15568       hardcode_minus_L=yes
15569       allow_undefined_flag=unsupported
15570       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'
15571       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15572       ;;
15573
15574     osf3*)
15575       if test "$GCC" = yes; then
15576         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15577         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'
15578       else
15579         allow_undefined_flag=' -expect_unresolved \*'
15580         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'
15581       fi
15582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15583       hardcode_libdir_separator=:
15584       ;;
15585
15586     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15587       if test "$GCC" = yes; then
15588         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15589         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'
15590         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15591       else
15592         allow_undefined_flag=' -expect_unresolved \*'
15593         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'
15594         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15595         $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'
15596
15597         # Both c and cxx compiler support -rpath directly
15598         hardcode_libdir_flag_spec='-rpath $libdir'
15599       fi
15600       hardcode_libdir_separator=:
15601       ;;
15602
15603     solaris*)
15604       no_undefined_flag=' -z text'
15605       if test "$GCC" = yes; then
15606         wlarc='${wl}'
15607         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15608         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15609           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15610       else
15611         wlarc=''
15612         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15613         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15614         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15615       fi
15616       hardcode_libdir_flag_spec='-R$libdir'
15617       hardcode_shlibpath_var=no
15618       case $host_os in
15619       solaris2.[0-5] | solaris2.[0-5].*) ;;
15620       *)
15621         # The compiler driver will combine linker options so we
15622         # cannot just pass the convience library names through
15623         # without $wl, iff we do not link with $LD.
15624         # Luckily, gcc supports the same syntax we need for Sun Studio.
15625         # Supported since Solaris 2.6 (maybe 2.5.1?)
15626         case $wlarc in
15627         '')
15628           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15629         *)
15630           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' ;;
15631         esac ;;
15632       esac
15633       link_all_deplibs=yes
15634       ;;
15635
15636     sunos4*)
15637       if test "x$host_vendor" = xsequent; then
15638         # Use $CC to link under sequent, because it throws in some extra .o
15639         # files that make .init and .fini sections work.
15640         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15641       else
15642         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15643       fi
15644       hardcode_libdir_flag_spec='-L$libdir'
15645       hardcode_direct=yes
15646       hardcode_minus_L=yes
15647       hardcode_shlibpath_var=no
15648       ;;
15649
15650     sysv4)
15651       case $host_vendor in
15652         sni)
15653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15654           hardcode_direct=yes # is this really true???
15655         ;;
15656         siemens)
15657           ## LD is ld it makes a PLAMLIB
15658           ## CC just makes a GrossModule.
15659           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15660           reload_cmds='$CC -r -o $output$reload_objs'
15661           hardcode_direct=no
15662         ;;
15663         motorola)
15664           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15666         ;;
15667       esac
15668       runpath_var='LD_RUN_PATH'
15669       hardcode_shlibpath_var=no
15670       ;;
15671
15672     sysv4.3*)
15673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674       hardcode_shlibpath_var=no
15675       export_dynamic_flag_spec='-Bexport'
15676       ;;
15677
15678     sysv4*MP*)
15679       if test -d /usr/nec; then
15680         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681         hardcode_shlibpath_var=no
15682         runpath_var=LD_RUN_PATH
15683         hardcode_runpath_var=yes
15684         ld_shlibs=yes
15685       fi
15686       ;;
15687
15688     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15689       no_undefined_flag='${wl}-z,text'
15690       archive_cmds_need_lc=no
15691       hardcode_shlibpath_var=no
15692       runpath_var='LD_RUN_PATH'
15693
15694       if test "$GCC" = yes; then
15695         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15696         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15697       else
15698         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15700       fi
15701       ;;
15702
15703     sysv5* | sco3.2v5* | sco5v6*)
15704       # Note: We can NOT use -z defs as we might desire, because we do not
15705       # link with -lc, and that would cause any symbols used from libc to
15706       # always be unresolved, which means just about no library would
15707       # ever link correctly.  If we're not using GNU ld we use -z text
15708       # though, which does catch some bad symbols but isn't as heavy-handed
15709       # as -z defs.
15710       no_undefined_flag='${wl}-z,text'
15711       allow_undefined_flag='${wl}-z,nodefs'
15712       archive_cmds_need_lc=no
15713       hardcode_shlibpath_var=no
15714       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15715       hardcode_libdir_separator=':'
15716       link_all_deplibs=yes
15717       export_dynamic_flag_spec='${wl}-Bexport'
15718       runpath_var='LD_RUN_PATH'
15719
15720       if test "$GCC" = yes; then
15721         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15722         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15723       else
15724         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15725         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15726       fi
15727       ;;
15728
15729     uts4*)
15730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15731       hardcode_libdir_flag_spec='-L$libdir'
15732       hardcode_shlibpath_var=no
15733       ;;
15734
15735     *)
15736       ld_shlibs=no
15737       ;;
15738     esac
15739   fi
15740
15741 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15742 echo "${ECHO_T}$ld_shlibs" >&6; }
15743 test "$ld_shlibs" = no && can_build_shared=no
15744
15745 #
15746 # Do we need to explicitly link libc?
15747 #
15748 case "x$archive_cmds_need_lc" in
15749 x|xyes)
15750   # Assume -lc should be added
15751   archive_cmds_need_lc=yes
15752
15753   if test "$enable_shared" = yes && test "$GCC" = yes; then
15754     case $archive_cmds in
15755     *'~'*)
15756       # FIXME: we may have to deal with multi-command sequences.
15757       ;;
15758     '$CC '*)
15759       # Test whether the compiler implicitly links with -lc since on some
15760       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15761       # to ld, don't add -lc before -lgcc.
15762       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15764       $rm conftest*
15765       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15766
15767       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768   (eval $ac_compile) 2>&5
15769   ac_status=$?
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); } 2>conftest.err; then
15772         soname=conftest
15773         lib=conftest
15774         libobjs=conftest.$ac_objext
15775         deplibs=
15776         wl=$lt_prog_compiler_wl
15777         pic_flag=$lt_prog_compiler_pic
15778         compiler_flags=-v
15779         linker_flags=-v
15780         verstring=
15781         output_objdir=.
15782         libname=conftest
15783         lt_save_allow_undefined_flag=$allow_undefined_flag
15784         allow_undefined_flag=
15785         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15786   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }
15790         then
15791           archive_cmds_need_lc=no
15792         else
15793           archive_cmds_need_lc=yes
15794         fi
15795         allow_undefined_flag=$lt_save_allow_undefined_flag
15796       else
15797         cat conftest.err 1>&5
15798       fi
15799       $rm conftest*
15800       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15801 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15802       ;;
15803     esac
15804   fi
15805   ;;
15806 esac
15807
15808 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15810 library_names_spec=
15811 libname_spec='lib$name'
15812 soname_spec=
15813 shrext_cmds=".so"
15814 postinstall_cmds=
15815 postuninstall_cmds=
15816 finish_cmds=
15817 finish_eval=
15818 shlibpath_var=
15819 shlibpath_overrides_runpath=unknown
15820 version_type=none
15821 dynamic_linker="$host_os ld.so"
15822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15823 if test "$GCC" = yes; then
15824   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15825   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15826     # if the path contains ";" then we assume it to be the separator
15827     # otherwise default to the standard path separator (i.e. ":") - it is
15828     # assumed that no part of a normal pathname contains ";" but that should
15829     # okay in the real world where ";" in dirpaths is itself problematic.
15830     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15831   else
15832     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15833   fi
15834 else
15835   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15836 fi
15837 need_lib_prefix=unknown
15838 hardcode_into_libs=no
15839
15840 # when you set need_version to no, make sure it does not cause -set_version
15841 # flags to be left without arguments
15842 need_version=unknown
15843
15844 case $host_os in
15845 aix3*)
15846   version_type=linux
15847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15848   shlibpath_var=LIBPATH
15849
15850   # AIX 3 has no versioning support, so we append a major version to the name.
15851   soname_spec='${libname}${release}${shared_ext}$major'
15852   ;;
15853
15854 aix4* | aix5*)
15855   version_type=linux
15856   need_lib_prefix=no
15857   need_version=no
15858   hardcode_into_libs=yes
15859   if test "$host_cpu" = ia64; then
15860     # AIX 5 supports IA64
15861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15862     shlibpath_var=LD_LIBRARY_PATH
15863   else
15864     # With GCC up to 2.95.x, collect2 would create an import file
15865     # for dependence libraries.  The import file would start with
15866     # the line `#! .'.  This would cause the generated library to
15867     # depend on `.', always an invalid library.  This was fixed in
15868     # development snapshots of GCC prior to 3.0.
15869     case $host_os in
15870       aix4 | aix4.[01] | aix4.[01].*)
15871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15872            echo ' yes '
15873            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15874         :
15875       else
15876         can_build_shared=no
15877       fi
15878       ;;
15879     esac
15880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15881     # soname into executable. Probably we can add versioning support to
15882     # collect2, so additional links can be useful in future.
15883     if test "$aix_use_runtimelinking" = yes; then
15884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15885       # instead of lib<name>.a to let people know that these are not
15886       # typical AIX shared libraries.
15887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888     else
15889       # We preserve .a as extension for shared libraries through AIX4.2
15890       # and later when we are not doing run time linking.
15891       library_names_spec='${libname}${release}.a $libname.a'
15892       soname_spec='${libname}${release}${shared_ext}$major'
15893     fi
15894     shlibpath_var=LIBPATH
15895   fi
15896   ;;
15897
15898 amigaos*)
15899   library_names_spec='$libname.ixlibrary $libname.a'
15900   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15901   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'
15902   ;;
15903
15904 beos*)
15905   library_names_spec='${libname}${shared_ext}'
15906   dynamic_linker="$host_os ld.so"
15907   shlibpath_var=LIBRARY_PATH
15908   ;;
15909
15910 bsdi[45]*)
15911   version_type=linux
15912   need_version=no
15913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914   soname_spec='${libname}${release}${shared_ext}$major'
15915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15919   # the default ld.so.conf also contains /usr/contrib/lib and
15920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15921   # libtool to hard-code these into programs
15922   ;;
15923
15924 cygwin* | mingw* | pw32*)
15925   version_type=windows
15926   shrext_cmds=".dll"
15927   need_version=no
15928   need_lib_prefix=no
15929
15930   case $GCC,$host_os in
15931   yes,cygwin* | yes,mingw* | yes,pw32*)
15932     library_names_spec='$libname.dll.a'
15933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15934     postinstall_cmds='base_file=`basename \${file}`~
15935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15936       dldir=$destdir/`dirname \$dlpath`~
15937       test -d \$dldir || mkdir -p \$dldir~
15938       $install_prog $dir/$dlname \$dldir/$dlname~
15939       chmod a+x \$dldir/$dlname'
15940     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15941       dlpath=$dir/\$dldll~
15942        $rm \$dlpath'
15943     shlibpath_overrides_runpath=yes
15944
15945     case $host_os in
15946     cygwin*)
15947       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15948       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15949       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15950       ;;
15951     mingw*)
15952       # MinGW DLLs use traditional 'lib' prefix
15953       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15954       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15955       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15956         # It is most probably a Windows format PATH printed by
15957         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15958         # path with ; separators, and with drive letters. We can handle the
15959         # drive letters (cygwin fileutils understands them), so leave them,
15960         # especially as we might pass files found there to a mingw objdump,
15961         # which wouldn't understand a cygwinified path. Ahh.
15962         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15963       else
15964         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15965       fi
15966       ;;
15967     pw32*)
15968       # pw32 DLLs use 'pw' prefix rather than 'lib'
15969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15970       ;;
15971     esac
15972     ;;
15973
15974   *)
15975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15976     ;;
15977   esac
15978   dynamic_linker='Win32 ld.exe'
15979   # FIXME: first we should search . and the directory the executable is in
15980   shlibpath_var=PATH
15981   ;;
15982
15983 darwin* | rhapsody*)
15984   dynamic_linker="$host_os dyld"
15985   version_type=darwin
15986   need_lib_prefix=no
15987   need_version=no
15988   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15989   soname_spec='${libname}${release}${major}$shared_ext'
15990   shlibpath_overrides_runpath=yes
15991   shlibpath_var=DYLD_LIBRARY_PATH
15992   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15993   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15994   if test "$GCC" = yes; then
15995     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"`
15996   else
15997     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15998   fi
15999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16000   ;;
16001
16002 dgux*)
16003   version_type=linux
16004   need_lib_prefix=no
16005   need_version=no
16006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16007   soname_spec='${libname}${release}${shared_ext}$major'
16008   shlibpath_var=LD_LIBRARY_PATH
16009   ;;
16010
16011 freebsd1*)
16012   dynamic_linker=no
16013   ;;
16014
16015 kfreebsd*-gnu)
16016   version_type=linux
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16020   soname_spec='${libname}${release}${shared_ext}$major'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   shlibpath_overrides_runpath=no
16023   hardcode_into_libs=yes
16024   dynamic_linker='GNU ld.so'
16025   ;;
16026
16027 freebsd* | dragonfly*)
16028   # DragonFly does not have aout.  When/if they implement a new
16029   # versioning mechanism, adjust this.
16030   if test -x /usr/bin/objformat; then
16031     objformat=`/usr/bin/objformat`
16032   else
16033     case $host_os in
16034     freebsd[123]*) objformat=aout ;;
16035     *) objformat=elf ;;
16036     esac
16037   fi
16038   version_type=freebsd-$objformat
16039   case $version_type in
16040     freebsd-elf*)
16041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16042       need_version=no
16043       need_lib_prefix=no
16044       ;;
16045     freebsd-*)
16046       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16047       need_version=yes
16048       ;;
16049   esac
16050   shlibpath_var=LD_LIBRARY_PATH
16051   case $host_os in
16052   freebsd2*)
16053     shlibpath_overrides_runpath=yes
16054     ;;
16055   freebsd3.[01]* | freebsdelf3.[01]*)
16056     shlibpath_overrides_runpath=yes
16057     hardcode_into_libs=yes
16058     ;;
16059   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16060   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16061     shlibpath_overrides_runpath=no
16062     hardcode_into_libs=yes
16063     ;;
16064   freebsd*) # from 4.6 on
16065     shlibpath_overrides_runpath=yes
16066     hardcode_into_libs=yes
16067     ;;
16068   esac
16069   ;;
16070
16071 gnu*)
16072   version_type=linux
16073   need_lib_prefix=no
16074   need_version=no
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   hardcode_into_libs=yes
16079   ;;
16080
16081 hpux9* | hpux10* | hpux11*)
16082   # Give a soname corresponding to the major version so that dld.sl refuses to
16083   # link against other versions.
16084   version_type=sunos
16085   need_lib_prefix=no
16086   need_version=no
16087   case $host_cpu in
16088   ia64*)
16089     shrext_cmds='.so'
16090     hardcode_into_libs=yes
16091     dynamic_linker="$host_os dld.so"
16092     shlibpath_var=LD_LIBRARY_PATH
16093     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095     soname_spec='${libname}${release}${shared_ext}$major'
16096     if test "X$HPUX_IA64_MODE" = X32; then
16097       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16098     else
16099       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16100     fi
16101     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16102     ;;
16103    hppa*64*)
16104      shrext_cmds='.sl'
16105      hardcode_into_libs=yes
16106      dynamic_linker="$host_os dld.sl"
16107      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16108      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110      soname_spec='${libname}${release}${shared_ext}$major'
16111      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16112      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16113      ;;
16114    *)
16115     shrext_cmds='.sl'
16116     dynamic_linker="$host_os dld.sl"
16117     shlibpath_var=SHLIB_PATH
16118     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16120     soname_spec='${libname}${release}${shared_ext}$major'
16121     ;;
16122   esac
16123   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16124   postinstall_cmds='chmod 555 $lib'
16125   ;;
16126
16127 interix3*)
16128   version_type=linux
16129   need_lib_prefix=no
16130   need_version=no
16131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16132   soname_spec='${libname}${release}${shared_ext}$major'
16133   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16134   shlibpath_var=LD_LIBRARY_PATH
16135   shlibpath_overrides_runpath=no
16136   hardcode_into_libs=yes
16137   ;;
16138
16139 irix5* | irix6* | nonstopux*)
16140   case $host_os in
16141     nonstopux*) version_type=nonstopux ;;
16142     *)
16143         if test "$lt_cv_prog_gnu_ld" = yes; then
16144                 version_type=linux
16145         else
16146                 version_type=irix
16147         fi ;;
16148   esac
16149   need_lib_prefix=no
16150   need_version=no
16151   soname_spec='${libname}${release}${shared_ext}$major'
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16153   case $host_os in
16154   irix5* | nonstopux*)
16155     libsuff= shlibsuff=
16156     ;;
16157   *)
16158     case $LD in # libtool.m4 will add one of these switches to LD
16159     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16160       libsuff= shlibsuff= libmagic=32-bit;;
16161     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16162       libsuff=32 shlibsuff=N32 libmagic=N32;;
16163     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16164       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16165     *) libsuff= shlibsuff= libmagic=never-match;;
16166     esac
16167     ;;
16168   esac
16169   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16170   shlibpath_overrides_runpath=no
16171   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16172   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16173   hardcode_into_libs=yes
16174   ;;
16175
16176 # No shared lib support for Linux oldld, aout, or coff.
16177 linux*oldld* | linux*aout* | linux*coff*)
16178   dynamic_linker=no
16179   ;;
16180
16181 # This must be Linux ELF.
16182 linux*)
16183   version_type=linux
16184   need_lib_prefix=no
16185   need_version=no
16186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187   soname_spec='${libname}${release}${shared_ext}$major'
16188   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16189   shlibpath_var=LD_LIBRARY_PATH
16190   shlibpath_overrides_runpath=no
16191   # This implies no fast_install, which is unacceptable.
16192   # Some rework will be needed to allow for fast_install
16193   # before this can be enabled.
16194   hardcode_into_libs=yes
16195
16196   # find out which ABI we are using
16197   libsuff=
16198   case "$host_cpu" in
16199   x86_64*|s390x*|powerpc64*)
16200     echo '#line 16200 "configure"' > conftest.$ac_ext
16201     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16202   (eval $ac_compile) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; then
16206       case `/usr/bin/file conftest.$ac_objext` in
16207       *64-bit*)
16208         libsuff=64
16209         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16210         ;;
16211       esac
16212     fi
16213     rm -rf conftest*
16214     ;;
16215   esac
16216
16217   # Append ld.so.conf contents to the search path
16218   if test -f /etc/ld.so.conf; then
16219     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' ' '`
16220     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16221   fi
16222
16223   # We used to test for /lib/ld.so.1 and disable shared libraries on
16224   # powerpc, because MkLinux only supported shared libraries with the
16225   # GNU dynamic linker.  Since this was broken with cross compilers,
16226   # most powerpc-linux boxes support dynamic linking these days and
16227   # people can always --disable-shared, the test was removed, and we
16228   # assume the GNU/Linux dynamic linker is in use.
16229   dynamic_linker='GNU/Linux ld.so'
16230   ;;
16231
16232 knetbsd*-gnu)
16233   version_type=linux
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=no
16240   hardcode_into_libs=yes
16241   dynamic_linker='GNU ld.so'
16242   ;;
16243
16244 netbsd*)
16245   version_type=sunos
16246   need_lib_prefix=no
16247   need_version=no
16248   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251     dynamic_linker='NetBSD (a.out) ld.so'
16252   else
16253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254     soname_spec='${libname}${release}${shared_ext}$major'
16255     dynamic_linker='NetBSD ld.elf_so'
16256   fi
16257   shlibpath_var=LD_LIBRARY_PATH
16258   shlibpath_overrides_runpath=yes
16259   hardcode_into_libs=yes
16260   ;;
16261
16262 newsos6)
16263   version_type=linux
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   shlibpath_var=LD_LIBRARY_PATH
16266   shlibpath_overrides_runpath=yes
16267   ;;
16268
16269 nto-qnx*)
16270   version_type=linux
16271   need_lib_prefix=no
16272   need_version=no
16273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274   soname_spec='${libname}${release}${shared_ext}$major'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   shlibpath_overrides_runpath=yes
16277   ;;
16278
16279 openbsd*)
16280   version_type=sunos
16281   sys_lib_dlsearch_path_spec="/usr/lib"
16282   need_lib_prefix=no
16283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16284   case $host_os in
16285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16286     *)                         need_version=no  ;;
16287   esac
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16292     case $host_os in
16293       openbsd2.[89] | openbsd2.[89].*)
16294         shlibpath_overrides_runpath=no
16295         ;;
16296       *)
16297         shlibpath_overrides_runpath=yes
16298         ;;
16299       esac
16300   else
16301     shlibpath_overrides_runpath=yes
16302   fi
16303   ;;
16304
16305 os2*)
16306   libname_spec='$name'
16307   shrext_cmds=".dll"
16308   need_lib_prefix=no
16309   library_names_spec='$libname${shared_ext} $libname.a'
16310   dynamic_linker='OS/2 ld.exe'
16311   shlibpath_var=LIBPATH
16312   ;;
16313
16314 osf3* | osf4* | osf5*)
16315   version_type=osf
16316   need_lib_prefix=no
16317   need_version=no
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   shlibpath_var=LD_LIBRARY_PATH
16321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16323   ;;
16324
16325 solaris*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   shlibpath_var=LD_LIBRARY_PATH
16332   shlibpath_overrides_runpath=yes
16333   hardcode_into_libs=yes
16334   # ldd complains unless libraries are executable
16335   postinstall_cmds='chmod +x $lib'
16336   ;;
16337
16338 sunos4*)
16339   version_type=sunos
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16342   shlibpath_var=LD_LIBRARY_PATH
16343   shlibpath_overrides_runpath=yes
16344   if test "$with_gnu_ld" = yes; then
16345     need_lib_prefix=no
16346   fi
16347   need_version=yes
16348   ;;
16349
16350 sysv4 | sysv4.3*)
16351   version_type=linux
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353   soname_spec='${libname}${release}${shared_ext}$major'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   case $host_vendor in
16356     sni)
16357       shlibpath_overrides_runpath=no
16358       need_lib_prefix=no
16359       export_dynamic_flag_spec='${wl}-Blargedynsym'
16360       runpath_var=LD_RUN_PATH
16361       ;;
16362     siemens)
16363       need_lib_prefix=no
16364       ;;
16365     motorola)
16366       need_lib_prefix=no
16367       need_version=no
16368       shlibpath_overrides_runpath=no
16369       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16370       ;;
16371   esac
16372   ;;
16373
16374 sysv4*MP*)
16375   if test -d /usr/nec ;then
16376     version_type=linux
16377     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16378     soname_spec='$libname${shared_ext}.$major'
16379     shlibpath_var=LD_LIBRARY_PATH
16380   fi
16381   ;;
16382
16383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16384   version_type=freebsd-elf
16385   need_lib_prefix=no
16386   need_version=no
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   shlibpath_var=LD_LIBRARY_PATH
16390   hardcode_into_libs=yes
16391   if test "$with_gnu_ld" = yes; then
16392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16393     shlibpath_overrides_runpath=no
16394   else
16395     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16396     shlibpath_overrides_runpath=yes
16397     case $host_os in
16398       sco3.2v5*)
16399         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16400         ;;
16401     esac
16402   fi
16403   sys_lib_dlsearch_path_spec='/usr/lib'
16404   ;;
16405
16406 uts4*)
16407   version_type=linux
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   soname_spec='${libname}${release}${shared_ext}$major'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   ;;
16412
16413 *)
16414   dynamic_linker=no
16415   ;;
16416 esac
16417 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16418 echo "${ECHO_T}$dynamic_linker" >&6; }
16419 test "$dynamic_linker" = no && can_build_shared=no
16420
16421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16422 if test "$GCC" = yes; then
16423   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16424 fi
16425
16426 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16428 hardcode_action=
16429 if test -n "$hardcode_libdir_flag_spec" || \
16430    test -n "$runpath_var" || \
16431    test "X$hardcode_automatic" = "Xyes" ; then
16432
16433   # We can hardcode non-existant directories.
16434   if test "$hardcode_direct" != no &&
16435      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16436      # have to relink, otherwise we might link with an installed library
16437      # when we should be linking with a yet-to-be-installed one
16438      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16439      test "$hardcode_minus_L" != no; then
16440     # Linking always hardcodes the temporary library directory.
16441     hardcode_action=relink
16442   else
16443     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16444     hardcode_action=immediate
16445   fi
16446 else
16447   # We cannot hardcode anything, or else we can only hardcode existing
16448   # directories.
16449   hardcode_action=unsupported
16450 fi
16451 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16452 echo "${ECHO_T}$hardcode_action" >&6; }
16453
16454 if test "$hardcode_action" = relink; then
16455   # Fast installation is not supported
16456   enable_fast_install=no
16457 elif test "$shlibpath_overrides_runpath" = yes ||
16458      test "$enable_shared" = no; then
16459   # Fast installation is not necessary
16460   enable_fast_install=needless
16461 fi
16462
16463 striplib=
16464 old_striplib=
16465 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16466 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16467 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16468   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16469   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16470   { echo "$as_me:$LINENO: result: yes" >&5
16471 echo "${ECHO_T}yes" >&6; }
16472 else
16473 # FIXME - insert some real tests, host_os isn't really good enough
16474   case $host_os in
16475    darwin*)
16476        if test -n "$STRIP" ; then
16477          striplib="$STRIP -x"
16478          { echo "$as_me:$LINENO: result: yes" >&5
16479 echo "${ECHO_T}yes" >&6; }
16480        else
16481   { echo "$as_me:$LINENO: result: no" >&5
16482 echo "${ECHO_T}no" >&6; }
16483 fi
16484        ;;
16485    *)
16486   { echo "$as_me:$LINENO: result: no" >&5
16487 echo "${ECHO_T}no" >&6; }
16488     ;;
16489   esac
16490 fi
16491
16492 if test "x$enable_dlopen" != xyes; then
16493   enable_dlopen=unknown
16494   enable_dlopen_self=unknown
16495   enable_dlopen_self_static=unknown
16496 else
16497   lt_cv_dlopen=no
16498   lt_cv_dlopen_libs=
16499
16500   case $host_os in
16501   beos*)
16502     lt_cv_dlopen="load_add_on"
16503     lt_cv_dlopen_libs=
16504     lt_cv_dlopen_self=yes
16505     ;;
16506
16507   mingw* | pw32*)
16508     lt_cv_dlopen="LoadLibrary"
16509     lt_cv_dlopen_libs=
16510    ;;
16511
16512   cygwin*)
16513     lt_cv_dlopen="dlopen"
16514     lt_cv_dlopen_libs=
16515    ;;
16516
16517   darwin*)
16518   # if libdl is installed we need to link against it
16519     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16522   echo $ECHO_N "(cached) $ECHO_C" >&6
16523 else
16524   ac_check_lib_save_LIBS=$LIBS
16525 LIBS="-ldl  $LIBS"
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h.  */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h.  */
16532
16533 /* Override any GCC internal prototype to avoid an error.
16534    Use char because int might match the return type of a GCC
16535    builtin and then its argument prototype would still apply.  */
16536 #ifdef __cplusplus
16537 extern "C"
16538 #endif
16539 char dlopen ();
16540 int
16541 main ()
16542 {
16543 return dlopen ();
16544   ;
16545   return 0;
16546 }
16547 _ACEOF
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552   *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555   (eval "$ac_link") 2>conftest.er1
16556   ac_status=$?
16557   grep -v '^ *+' conftest.er1 >conftest.err
16558   rm -f conftest.er1
16559   cat conftest.err >&5
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); } && {
16562          test -z "$ac_c_werror_flag" ||
16563          test ! -s conftest.err
16564        } && test -s conftest$ac_exeext &&
16565        $as_test_x conftest$ac_exeext; then
16566   ac_cv_lib_dl_dlopen=yes
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571         ac_cv_lib_dl_dlopen=no
16572 fi
16573
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575       conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16577 fi
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16580 if test $ac_cv_lib_dl_dlopen = yes; then
16581   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16582 else
16583
16584     lt_cv_dlopen="dyld"
16585     lt_cv_dlopen_libs=
16586     lt_cv_dlopen_self=yes
16587
16588 fi
16589
16590    ;;
16591
16592   *)
16593     { echo "$as_me:$LINENO: checking for shl_load" >&5
16594 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16595 if test "${ac_cv_func_shl_load+set}" = set; then
16596   echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598   cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16606 #define shl_load innocuous_shl_load
16607
16608 /* System header to define __stub macros and hopefully few prototypes,
16609     which can conflict with char shl_load (); below.
16610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16611     <limits.h> exists even on freestanding compilers.  */
16612
16613 #ifdef __STDC__
16614 # include <limits.h>
16615 #else
16616 # include <assert.h>
16617 #endif
16618
16619 #undef shl_load
16620
16621 /* Override any GCC internal prototype to avoid an error.
16622    Use char because int might match the return type of a GCC
16623    builtin and then its argument prototype would still apply.  */
16624 #ifdef __cplusplus
16625 extern "C"
16626 #endif
16627 char shl_load ();
16628 /* The GNU C library defines this for functions which it implements
16629     to always fail with ENOSYS.  Some functions are actually named
16630     something starting with __ and the normal name is an alias.  */
16631 #if defined __stub_shl_load || defined __stub___shl_load
16632 choke me
16633 #endif
16634
16635 int
16636 main ()
16637 {
16638 return shl_load ();
16639   ;
16640   return 0;
16641 }
16642 _ACEOF
16643 rm -f conftest.$ac_objext conftest$ac_exeext
16644 if { (ac_try="$ac_link"
16645 case "(($ac_try" in
16646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647   *) ac_try_echo=$ac_try;;
16648 esac
16649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16650   (eval "$ac_link") 2>conftest.er1
16651   ac_status=$?
16652   grep -v '^ *+' conftest.er1 >conftest.err
16653   rm -f conftest.er1
16654   cat conftest.err >&5
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } && {
16657          test -z "$ac_c_werror_flag" ||
16658          test ! -s conftest.err
16659        } && test -s conftest$ac_exeext &&
16660        $as_test_x conftest$ac_exeext; then
16661   ac_cv_func_shl_load=yes
16662 else
16663   echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16665
16666         ac_cv_func_shl_load=no
16667 fi
16668
16669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16670       conftest$ac_exeext conftest.$ac_ext
16671 fi
16672 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16673 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16674 if test $ac_cv_func_shl_load = yes; then
16675   lt_cv_dlopen="shl_load"
16676 else
16677   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16678 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16679 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16680   echo $ECHO_N "(cached) $ECHO_C" >&6
16681 else
16682   ac_check_lib_save_LIBS=$LIBS
16683 LIBS="-ldld  $LIBS"
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h.  */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h.  */
16690
16691 /* Override any GCC internal prototype to avoid an error.
16692    Use char because int might match the return type of a GCC
16693    builtin and then its argument prototype would still apply.  */
16694 #ifdef __cplusplus
16695 extern "C"
16696 #endif
16697 char shl_load ();
16698 int
16699 main ()
16700 {
16701 return shl_load ();
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext conftest$ac_exeext
16707 if { (ac_try="$ac_link"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_link") 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } && {
16720          test -z "$ac_c_werror_flag" ||
16721          test ! -s conftest.err
16722        } && test -s conftest$ac_exeext &&
16723        $as_test_x conftest$ac_exeext; then
16724   ac_cv_lib_dld_shl_load=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729         ac_cv_lib_dld_shl_load=no
16730 fi
16731
16732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16733       conftest$ac_exeext conftest.$ac_ext
16734 LIBS=$ac_check_lib_save_LIBS
16735 fi
16736 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16737 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16738 if test $ac_cv_lib_dld_shl_load = yes; then
16739   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16740 else
16741   { echo "$as_me:$LINENO: checking for dlopen" >&5
16742 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16743 if test "${ac_cv_func_dlopen+set}" = set; then
16744   echo $ECHO_N "(cached) $ECHO_C" >&6
16745 else
16746   cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16754 #define dlopen innocuous_dlopen
16755
16756 /* System header to define __stub macros and hopefully few prototypes,
16757     which can conflict with char dlopen (); below.
16758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16759     <limits.h> exists even on freestanding compilers.  */
16760
16761 #ifdef __STDC__
16762 # include <limits.h>
16763 #else
16764 # include <assert.h>
16765 #endif
16766
16767 #undef dlopen
16768
16769 /* Override any GCC internal prototype to avoid an error.
16770    Use char because int might match the return type of a GCC
16771    builtin and then its argument prototype would still apply.  */
16772 #ifdef __cplusplus
16773 extern "C"
16774 #endif
16775 char dlopen ();
16776 /* The GNU C library defines this for functions which it implements
16777     to always fail with ENOSYS.  Some functions are actually named
16778     something starting with __ and the normal name is an alias.  */
16779 #if defined __stub_dlopen || defined __stub___dlopen
16780 choke me
16781 #endif
16782
16783 int
16784 main ()
16785 {
16786 return dlopen ();
16787   ;
16788   return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext conftest$ac_exeext
16792 if { (ac_try="$ac_link"
16793 case "(($ac_try" in
16794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795   *) ac_try_echo=$ac_try;;
16796 esac
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798   (eval "$ac_link") 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } && {
16805          test -z "$ac_c_werror_flag" ||
16806          test ! -s conftest.err
16807        } && test -s conftest$ac_exeext &&
16808        $as_test_x conftest$ac_exeext; then
16809   ac_cv_func_dlopen=yes
16810 else
16811   echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814         ac_cv_func_dlopen=no
16815 fi
16816
16817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16818       conftest$ac_exeext conftest.$ac_ext
16819 fi
16820 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16821 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16822 if test $ac_cv_func_dlopen = yes; then
16823   lt_cv_dlopen="dlopen"
16824 else
16825   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16826 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16827 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830   ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-ldl  $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h.  */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h.  */
16838
16839 /* Override any GCC internal prototype to avoid an error.
16840    Use char because int might match the return type of a GCC
16841    builtin and then its argument prototype would still apply.  */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char dlopen ();
16846 int
16847 main ()
16848 {
16849 return dlopen ();
16850   ;
16851   return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_link") 2>conftest.er1
16862   ac_status=$?
16863   grep -v '^ *+' conftest.er1 >conftest.err
16864   rm -f conftest.er1
16865   cat conftest.err >&5
16866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); } && {
16868          test -z "$ac_c_werror_flag" ||
16869          test ! -s conftest.err
16870        } && test -s conftest$ac_exeext &&
16871        $as_test_x conftest$ac_exeext; then
16872   ac_cv_lib_dl_dlopen=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877         ac_cv_lib_dl_dlopen=no
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881       conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16885 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16886 if test $ac_cv_lib_dl_dlopen = yes; then
16887   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888 else
16889   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16890 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16891 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16892   echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894   ac_check_lib_save_LIBS=$LIBS
16895 LIBS="-lsvld  $LIBS"
16896 cat >conftest.$ac_ext <<_ACEOF
16897 /* confdefs.h.  */
16898 _ACEOF
16899 cat confdefs.h >>conftest.$ac_ext
16900 cat >>conftest.$ac_ext <<_ACEOF
16901 /* end confdefs.h.  */
16902
16903 /* Override any GCC internal prototype to avoid an error.
16904    Use char because int might match the return type of a GCC
16905    builtin and then its argument prototype would still apply.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 char dlopen ();
16910 int
16911 main ()
16912 {
16913 return dlopen ();
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext conftest$ac_exeext
16919 if { (ac_try="$ac_link"
16920 case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_link") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } && {
16932          test -z "$ac_c_werror_flag" ||
16933          test ! -s conftest.err
16934        } && test -s conftest$ac_exeext &&
16935        $as_test_x conftest$ac_exeext; then
16936   ac_cv_lib_svld_dlopen=yes
16937 else
16938   echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941         ac_cv_lib_svld_dlopen=no
16942 fi
16943
16944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16945       conftest$ac_exeext conftest.$ac_ext
16946 LIBS=$ac_check_lib_save_LIBS
16947 fi
16948 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16949 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16950 if test $ac_cv_lib_svld_dlopen = yes; then
16951   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16952 else
16953   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16954 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16955 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16956   echo $ECHO_N "(cached) $ECHO_C" >&6
16957 else
16958   ac_check_lib_save_LIBS=$LIBS
16959 LIBS="-ldld  $LIBS"
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966
16967 /* Override any GCC internal prototype to avoid an error.
16968    Use char because int might match the return type of a GCC
16969    builtin and then its argument prototype would still apply.  */
16970 #ifdef __cplusplus
16971 extern "C"
16972 #endif
16973 char dld_link ();
16974 int
16975 main ()
16976 {
16977 return dld_link ();
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_link") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } && {
16996          test -z "$ac_c_werror_flag" ||
16997          test ! -s conftest.err
16998        } && test -s conftest$ac_exeext &&
16999        $as_test_x conftest$ac_exeext; then
17000   ac_cv_lib_dld_dld_link=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005         ac_cv_lib_dld_dld_link=no
17006 fi
17007
17008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17009       conftest$ac_exeext conftest.$ac_ext
17010 LIBS=$ac_check_lib_save_LIBS
17011 fi
17012 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17013 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17014 if test $ac_cv_lib_dld_dld_link = yes; then
17015   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17016 fi
17017
17018
17019 fi
17020
17021
17022 fi
17023
17024
17025 fi
17026
17027
17028 fi
17029
17030
17031 fi
17032
17033     ;;
17034   esac
17035
17036   if test "x$lt_cv_dlopen" != xno; then
17037     enable_dlopen=yes
17038   else
17039     enable_dlopen=no
17040   fi
17041
17042   case $lt_cv_dlopen in
17043   dlopen)
17044     save_CPPFLAGS="$CPPFLAGS"
17045     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17046
17047     save_LDFLAGS="$LDFLAGS"
17048     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17049
17050     save_LIBS="$LIBS"
17051     LIBS="$lt_cv_dlopen_libs $LIBS"
17052
17053     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17054 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17055 if test "${lt_cv_dlopen_self+set}" = set; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058           if test "$cross_compiling" = yes; then :
17059   lt_cv_dlopen_self=cross
17060 else
17061   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17062   lt_status=$lt_dlunknown
17063   cat > conftest.$ac_ext <<EOF
17064 #line 17064 "configure"
17065 #include "confdefs.h"
17066
17067 #if HAVE_DLFCN_H
17068 #include <dlfcn.h>
17069 #endif
17070
17071 #include <stdio.h>
17072
17073 #ifdef RTLD_GLOBAL
17074 #  define LT_DLGLOBAL           RTLD_GLOBAL
17075 #else
17076 #  ifdef DL_GLOBAL
17077 #    define LT_DLGLOBAL         DL_GLOBAL
17078 #  else
17079 #    define LT_DLGLOBAL         0
17080 #  endif
17081 #endif
17082
17083 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17084    find out it does not work in some platform. */
17085 #ifndef LT_DLLAZY_OR_NOW
17086 #  ifdef RTLD_LAZY
17087 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17088 #  else
17089 #    ifdef DL_LAZY
17090 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17091 #    else
17092 #      ifdef RTLD_NOW
17093 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17094 #      else
17095 #        ifdef DL_NOW
17096 #          define LT_DLLAZY_OR_NOW      DL_NOW
17097 #        else
17098 #          define LT_DLLAZY_OR_NOW      0
17099 #        endif
17100 #      endif
17101 #    endif
17102 #  endif
17103 #endif
17104
17105 #ifdef __cplusplus
17106 extern "C" void exit (int);
17107 #endif
17108
17109 void fnord() { int i=42;}
17110 int main ()
17111 {
17112   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17113   int status = $lt_dlunknown;
17114
17115   if (self)
17116     {
17117       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17118       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17119       /* dlclose (self); */
17120     }
17121   else
17122     puts (dlerror ());
17123
17124     exit (status);
17125 }
17126 EOF
17127   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17128   (eval $ac_link) 2>&5
17129   ac_status=$?
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17132     (./conftest; exit; ) >&5 2>/dev/null
17133     lt_status=$?
17134     case x$lt_status in
17135       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17136       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17137       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17138     esac
17139   else :
17140     # compilation failed
17141     lt_cv_dlopen_self=no
17142   fi
17143 fi
17144 rm -fr conftest*
17145
17146
17147 fi
17148 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17149 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17150
17151     if test "x$lt_cv_dlopen_self" = xyes; then
17152       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17153       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17154 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17155 if test "${lt_cv_dlopen_self_static+set}" = set; then
17156   echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158           if test "$cross_compiling" = yes; then :
17159   lt_cv_dlopen_self_static=cross
17160 else
17161   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17162   lt_status=$lt_dlunknown
17163   cat > conftest.$ac_ext <<EOF
17164 #line 17164 "configure"
17165 #include "confdefs.h"
17166
17167 #if HAVE_DLFCN_H
17168 #include <dlfcn.h>
17169 #endif
17170
17171 #include <stdio.h>
17172
17173 #ifdef RTLD_GLOBAL
17174 #  define LT_DLGLOBAL           RTLD_GLOBAL
17175 #else
17176 #  ifdef DL_GLOBAL
17177 #    define LT_DLGLOBAL         DL_GLOBAL
17178 #  else
17179 #    define LT_DLGLOBAL         0
17180 #  endif
17181 #endif
17182
17183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17184    find out it does not work in some platform. */
17185 #ifndef LT_DLLAZY_OR_NOW
17186 #  ifdef RTLD_LAZY
17187 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17188 #  else
17189 #    ifdef DL_LAZY
17190 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17191 #    else
17192 #      ifdef RTLD_NOW
17193 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17194 #      else
17195 #        ifdef DL_NOW
17196 #          define LT_DLLAZY_OR_NOW      DL_NOW
17197 #        else
17198 #          define LT_DLLAZY_OR_NOW      0
17199 #        endif
17200 #      endif
17201 #    endif
17202 #  endif
17203 #endif
17204
17205 #ifdef __cplusplus
17206 extern "C" void exit (int);
17207 #endif
17208
17209 void fnord() { int i=42;}
17210 int main ()
17211 {
17212   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17213   int status = $lt_dlunknown;
17214
17215   if (self)
17216     {
17217       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17218       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17219       /* dlclose (self); */
17220     }
17221   else
17222     puts (dlerror ());
17223
17224     exit (status);
17225 }
17226 EOF
17227   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17228   (eval $ac_link) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17232     (./conftest; exit; ) >&5 2>/dev/null
17233     lt_status=$?
17234     case x$lt_status in
17235       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17236       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17237       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17238     esac
17239   else :
17240     # compilation failed
17241     lt_cv_dlopen_self_static=no
17242   fi
17243 fi
17244 rm -fr conftest*
17245
17246
17247 fi
17248 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17249 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17250     fi
17251
17252     CPPFLAGS="$save_CPPFLAGS"
17253     LDFLAGS="$save_LDFLAGS"
17254     LIBS="$save_LIBS"
17255     ;;
17256   esac
17257
17258   case $lt_cv_dlopen_self in
17259   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17260   *) enable_dlopen_self=unknown ;;
17261   esac
17262
17263   case $lt_cv_dlopen_self_static in
17264   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17265   *) enable_dlopen_self_static=unknown ;;
17266   esac
17267 fi
17268
17269
17270 # Report which library types will actually be built
17271 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17272 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17273 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17274 echo "${ECHO_T}$can_build_shared" >&6; }
17275
17276 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17277 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17278 test "$can_build_shared" = "no" && enable_shared=no
17279
17280 # On AIX, shared libraries and static libraries use the same namespace, and
17281 # are all built from PIC.
17282 case $host_os in
17283 aix3*)
17284   test "$enable_shared" = yes && enable_static=no
17285   if test -n "$RANLIB"; then
17286     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17287     postinstall_cmds='$RANLIB $lib'
17288   fi
17289   ;;
17290
17291 aix4* | aix5*)
17292   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17293     test "$enable_shared" = yes && enable_static=no
17294   fi
17295     ;;
17296 esac
17297 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17298 echo "${ECHO_T}$enable_shared" >&6; }
17299
17300 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17301 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17302 # Make sure either enable_shared or enable_static is yes.
17303 test "$enable_shared" = yes || enable_static=yes
17304 { echo "$as_me:$LINENO: result: $enable_static" >&5
17305 echo "${ECHO_T}$enable_static" >&6; }
17306
17307 # The else clause should only fire when bootstrapping the
17308 # libtool distribution, otherwise you forgot to ship ltmain.sh
17309 # with your package, and you will get complaints that there are
17310 # no rules to generate ltmain.sh.
17311 if test -f "$ltmain"; then
17312   # See if we are running on zsh, and set the options which allow our commands through
17313   # without removal of \ escapes.
17314   if test -n "${ZSH_VERSION+set}" ; then
17315     setopt NO_GLOB_SUBST
17316   fi
17317   # Now quote all the things that may contain metacharacters while being
17318   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17319   # variables and quote the copies for generation of the libtool script.
17320   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17321     SED SHELL STRIP \
17322     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17323     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17324     deplibs_check_method reload_flag reload_cmds need_locks \
17325     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17326     lt_cv_sys_global_symbol_to_c_name_address \
17327     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17328     old_postinstall_cmds old_postuninstall_cmds \
17329     compiler \
17330     CC \
17331     LD \
17332     lt_prog_compiler_wl \
17333     lt_prog_compiler_pic \
17334     lt_prog_compiler_static \
17335     lt_prog_compiler_no_builtin_flag \
17336     export_dynamic_flag_spec \
17337     thread_safe_flag_spec \
17338     whole_archive_flag_spec \
17339     enable_shared_with_static_runtimes \
17340     old_archive_cmds \
17341     old_archive_from_new_cmds \
17342     predep_objects \
17343     postdep_objects \
17344     predeps \
17345     postdeps \
17346     compiler_lib_search_path \
17347     archive_cmds \
17348     archive_expsym_cmds \
17349     postinstall_cmds \
17350     postuninstall_cmds \
17351     old_archive_from_expsyms_cmds \
17352     allow_undefined_flag \
17353     no_undefined_flag \
17354     export_symbols_cmds \
17355     hardcode_libdir_flag_spec \
17356     hardcode_libdir_flag_spec_ld \
17357     hardcode_libdir_separator \
17358     hardcode_automatic \
17359     module_cmds \
17360     module_expsym_cmds \
17361     lt_cv_prog_compiler_c_o \
17362     exclude_expsyms \
17363     include_expsyms; do
17364
17365     case $var in
17366     old_archive_cmds | \
17367     old_archive_from_new_cmds | \
17368     archive_cmds | \
17369     archive_expsym_cmds | \
17370     module_cmds | \
17371     module_expsym_cmds | \
17372     old_archive_from_expsyms_cmds | \
17373     export_symbols_cmds | \
17374     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17375     postinstall_cmds | postuninstall_cmds | \
17376     old_postinstall_cmds | old_postuninstall_cmds | \
17377     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17378       # Double-quote double-evaled strings.
17379       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17380       ;;
17381     *)
17382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17383       ;;
17384     esac
17385   done
17386
17387   case $lt_echo in
17388   *'\$0 --fallback-echo"')
17389     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17390     ;;
17391   esac
17392
17393 cfgfile="${ofile}T"
17394   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17395   $rm -f "$cfgfile"
17396   { echo "$as_me:$LINENO: creating $ofile" >&5
17397 echo "$as_me: creating $ofile" >&6;}
17398
17399   cat <<__EOF__ >> "$cfgfile"
17400 #! $SHELL
17401
17402 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17403 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17404 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17405 #
17406 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17407 # Free Software Foundation, Inc.
17408 #
17409 # This file is part of GNU Libtool:
17410 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17411 #
17412 # This program is free software; you can redistribute it and/or modify
17413 # it under the terms of the GNU General Public License as published by
17414 # the Free Software Foundation; either version 2 of the License, or
17415 # (at your option) any later version.
17416 #
17417 # This program is distributed in the hope that it will be useful, but
17418 # WITHOUT ANY WARRANTY; without even the implied warranty of
17419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17420 # General Public License for more details.
17421 #
17422 # You should have received a copy of the GNU General Public License
17423 # along with this program; if not, write to the Free Software
17424 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17425 #
17426 # As a special exception to the GNU General Public License, if you
17427 # distribute this file as part of a program that contains a
17428 # configuration script generated by Autoconf, you may include it under
17429 # the same distribution terms that you use for the rest of that program.
17430
17431 # A sed program that does not truncate output.
17432 SED=$lt_SED
17433
17434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17435 Xsed="$SED -e 1s/^X//"
17436
17437 # The HP-UX ksh and POSIX shell print the target directory to stdout
17438 # if CDPATH is set.
17439 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17440
17441 # The names of the tagged configurations supported by this script.
17442 available_tags=
17443
17444 # ### BEGIN LIBTOOL CONFIG
17445
17446 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17447
17448 # Shell to use when invoking shell scripts.
17449 SHELL=$lt_SHELL
17450
17451 # Whether or not to build shared libraries.
17452 build_libtool_libs=$enable_shared
17453
17454 # Whether or not to build static libraries.
17455 build_old_libs=$enable_static
17456
17457 # Whether or not to add -lc for building shared libraries.
17458 build_libtool_need_lc=$archive_cmds_need_lc
17459
17460 # Whether or not to disallow shared libs when runtime libs are static
17461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17462
17463 # Whether or not to optimize for fast installation.
17464 fast_install=$enable_fast_install
17465
17466 # The host system.
17467 host_alias=$host_alias
17468 host=$host
17469 host_os=$host_os
17470
17471 # The build system.
17472 build_alias=$build_alias
17473 build=$build
17474 build_os=$build_os
17475
17476 # An echo program that does not interpret backslashes.
17477 echo=$lt_echo
17478
17479 # The archiver.
17480 AR=$lt_AR
17481 AR_FLAGS=$lt_AR_FLAGS
17482
17483 # A C compiler.
17484 LTCC=$lt_LTCC
17485
17486 # LTCC compiler flags.
17487 LTCFLAGS=$lt_LTCFLAGS
17488
17489 # A language-specific compiler.
17490 CC=$lt_compiler
17491
17492 # Is the compiler the GNU C compiler?
17493 with_gcc=$GCC
17494
17495 # An ERE matcher.
17496 EGREP=$lt_EGREP
17497
17498 # The linker used to build libraries.
17499 LD=$lt_LD
17500
17501 # Whether we need hard or soft links.
17502 LN_S=$lt_LN_S
17503
17504 # A BSD-compatible nm program.
17505 NM=$lt_NM
17506
17507 # A symbol stripping program
17508 STRIP=$lt_STRIP
17509
17510 # Used to examine libraries when file_magic_cmd begins "file"
17511 MAGIC_CMD=$MAGIC_CMD
17512
17513 # Used on cygwin: DLL creation program.
17514 DLLTOOL="$DLLTOOL"
17515
17516 # Used on cygwin: object dumper.
17517 OBJDUMP="$OBJDUMP"
17518
17519 # Used on cygwin: assembler.
17520 AS="$AS"
17521
17522 # The name of the directory that contains temporary libtool files.
17523 objdir=$objdir
17524
17525 # How to create reloadable object files.
17526 reload_flag=$lt_reload_flag
17527 reload_cmds=$lt_reload_cmds
17528
17529 # How to pass a linker flag through the compiler.
17530 wl=$lt_lt_prog_compiler_wl
17531
17532 # Object file suffix (normally "o").
17533 objext="$ac_objext"
17534
17535 # Old archive suffix (normally "a").
17536 libext="$libext"
17537
17538 # Shared library suffix (normally ".so").
17539 shrext_cmds='$shrext_cmds'
17540
17541 # Executable file suffix (normally "").
17542 exeext="$exeext"
17543
17544 # Additional compiler flags for building library objects.
17545 pic_flag=$lt_lt_prog_compiler_pic
17546 pic_mode=$pic_mode
17547
17548 # What is the maximum length of a command?
17549 max_cmd_len=$lt_cv_sys_max_cmd_len
17550
17551 # Does compiler simultaneously support -c and -o options?
17552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17553
17554 # Must we lock files when doing compilation?
17555 need_locks=$lt_need_locks
17556
17557 # Do we need the lib prefix for modules?
17558 need_lib_prefix=$need_lib_prefix
17559
17560 # Do we need a version for libraries?
17561 need_version=$need_version
17562
17563 # Whether dlopen is supported.
17564 dlopen_support=$enable_dlopen
17565
17566 # Whether dlopen of programs is supported.
17567 dlopen_self=$enable_dlopen_self
17568
17569 # Whether dlopen of statically linked programs is supported.
17570 dlopen_self_static=$enable_dlopen_self_static
17571
17572 # Compiler flag to prevent dynamic linking.
17573 link_static_flag=$lt_lt_prog_compiler_static
17574
17575 # Compiler flag to turn off builtin functions.
17576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17577
17578 # Compiler flag to allow reflexive dlopens.
17579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17580
17581 # Compiler flag to generate shared objects directly from archives.
17582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17583
17584 # Compiler flag to generate thread-safe objects.
17585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17586
17587 # Library versioning type.
17588 version_type=$version_type
17589
17590 # Format of library name prefix.
17591 libname_spec=$lt_libname_spec
17592
17593 # List of archive names.  First name is the real one, the rest are links.
17594 # The last name is the one that the linker finds with -lNAME.
17595 library_names_spec=$lt_library_names_spec
17596
17597 # The coded name of the library, if different from the real name.
17598 soname_spec=$lt_soname_spec
17599
17600 # Commands used to build and install an old-style archive.
17601 RANLIB=$lt_RANLIB
17602 old_archive_cmds=$lt_old_archive_cmds
17603 old_postinstall_cmds=$lt_old_postinstall_cmds
17604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17605
17606 # Create an old-style archive from a shared archive.
17607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17608
17609 # Create a temporary old-style archive to link instead of a shared archive.
17610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17611
17612 # Commands used to build and install a shared archive.
17613 archive_cmds=$lt_archive_cmds
17614 archive_expsym_cmds=$lt_archive_expsym_cmds
17615 postinstall_cmds=$lt_postinstall_cmds
17616 postuninstall_cmds=$lt_postuninstall_cmds
17617
17618 # Commands used to build a loadable module (assumed same as above if empty)
17619 module_cmds=$lt_module_cmds
17620 module_expsym_cmds=$lt_module_expsym_cmds
17621
17622 # Commands to strip libraries.
17623 old_striplib=$lt_old_striplib
17624 striplib=$lt_striplib
17625
17626 # Dependencies to place before the objects being linked to create a
17627 # shared library.
17628 predep_objects=$lt_predep_objects
17629
17630 # Dependencies to place after the objects being linked to create a
17631 # shared library.
17632 postdep_objects=$lt_postdep_objects
17633
17634 # Dependencies to place before the objects being linked to create a
17635 # shared library.
17636 predeps=$lt_predeps
17637
17638 # Dependencies to place after the objects being linked to create a
17639 # shared library.
17640 postdeps=$lt_postdeps
17641
17642 # The library search path used internally by the compiler when linking
17643 # a shared library.
17644 compiler_lib_search_path=$lt_compiler_lib_search_path
17645
17646 # Method to check whether dependent libraries are shared objects.
17647 deplibs_check_method=$lt_deplibs_check_method
17648
17649 # Command to use when deplibs_check_method == file_magic.
17650 file_magic_cmd=$lt_file_magic_cmd
17651
17652 # Flag that allows shared libraries with undefined symbols to be built.
17653 allow_undefined_flag=$lt_allow_undefined_flag
17654
17655 # Flag that forces no undefined symbols.
17656 no_undefined_flag=$lt_no_undefined_flag
17657
17658 # Commands used to finish a libtool library installation in a directory.
17659 finish_cmds=$lt_finish_cmds
17660
17661 # Same as above, but a single script fragment to be evaled but not shown.
17662 finish_eval=$lt_finish_eval
17663
17664 # Take the output of nm and produce a listing of raw symbols and C names.
17665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17666
17667 # Transform the output of nm in a proper C declaration
17668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17669
17670 # Transform the output of nm in a C name address pair
17671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17672
17673 # This is the shared library runtime path variable.
17674 runpath_var=$runpath_var
17675
17676 # This is the shared library path variable.
17677 shlibpath_var=$shlibpath_var
17678
17679 # Is shlibpath searched before the hard-coded library search path?
17680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17681
17682 # How to hardcode a shared library path into an executable.
17683 hardcode_action=$hardcode_action
17684
17685 # Whether we should hardcode library paths into libraries.
17686 hardcode_into_libs=$hardcode_into_libs
17687
17688 # Flag to hardcode \$libdir into a binary during linking.
17689 # This must work even if \$libdir does not exist.
17690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17691
17692 # If ld is used when linking, flag to hardcode \$libdir into
17693 # a binary during linking. This must work even if \$libdir does
17694 # not exist.
17695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17696
17697 # Whether we need a single -rpath flag with a separated argument.
17698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17699
17700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17701 # resulting binary.
17702 hardcode_direct=$hardcode_direct
17703
17704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17705 # resulting binary.
17706 hardcode_minus_L=$hardcode_minus_L
17707
17708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17709 # the resulting binary.
17710 hardcode_shlibpath_var=$hardcode_shlibpath_var
17711
17712 # Set to yes if building a shared library automatically hardcodes DIR into the library
17713 # and all subsequent libraries and executables linked against it.
17714 hardcode_automatic=$hardcode_automatic
17715
17716 # Variables whose values should be saved in libtool wrapper scripts and
17717 # restored at relink time.
17718 variables_saved_for_relink="$variables_saved_for_relink"
17719
17720 # Whether libtool must link a program against all its dependency libraries.
17721 link_all_deplibs=$link_all_deplibs
17722
17723 # Compile-time system search path for libraries
17724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17725
17726 # Run-time system search path for libraries
17727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17728
17729 # Fix the shell variable \$srcfile for the compiler.
17730 fix_srcfile_path="$fix_srcfile_path"
17731
17732 # Set to yes if exported symbols are required.
17733 always_export_symbols=$always_export_symbols
17734
17735 # The commands to list exported symbols.
17736 export_symbols_cmds=$lt_export_symbols_cmds
17737
17738 # The commands to extract the exported symbol list from a shared archive.
17739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17740
17741 # Symbols that should not be listed in the preloaded symbols.
17742 exclude_expsyms=$lt_exclude_expsyms
17743
17744 # Symbols that must always be exported.
17745 include_expsyms=$lt_include_expsyms
17746
17747 # ### END LIBTOOL CONFIG
17748
17749 __EOF__
17750
17751
17752   case $host_os in
17753   aix3*)
17754     cat <<\EOF >> "$cfgfile"
17755
17756 # AIX sometimes has problems with the GCC collect2 program.  For some
17757 # reason, if we set the COLLECT_NAMES environment variable, the problems
17758 # vanish in a puff of smoke.
17759 if test "X${COLLECT_NAMES+set}" != Xset; then
17760   COLLECT_NAMES=
17761   export COLLECT_NAMES
17762 fi
17763 EOF
17764     ;;
17765   esac
17766
17767   # We use sed instead of cat because bash on DJGPP gets confused if
17768   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17769   # text mode, it properly converts lines to CR/LF.  This bash problem
17770   # is reportedly fixed, but why not run on old versions too?
17771   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17772
17773   mv -f "$cfgfile" "$ofile" || \
17774     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17775   chmod +x "$ofile"
17776
17777 else
17778   # If there is no Makefile yet, we rely on a make rule to execute
17779   # `config.status --recheck' to rerun these tests and create the
17780   # libtool script then.
17781   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17782   if test -f "$ltmain_in"; then
17783     test -f Makefile && make "$ltmain"
17784   fi
17785 fi
17786
17787
17788 ac_ext=c
17789 ac_cpp='$CPP $CPPFLAGS'
17790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17793
17794 CC="$lt_save_CC"
17795
17796
17797 # Check whether --with-tags was given.
17798 if test "${with_tags+set}" = set; then
17799   withval=$with_tags; tagnames="$withval"
17800 fi
17801
17802
17803 if test -f "$ltmain" && test -n "$tagnames"; then
17804   if test ! -f "${ofile}"; then
17805     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17807   fi
17808
17809   if test -z "$LTCC"; then
17810     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17811     if test -z "$LTCC"; then
17812       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17814     else
17815       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17817     fi
17818   fi
17819   if test -z "$LTCFLAGS"; then
17820     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17821   fi
17822
17823   # Extract list of available tagged configurations in $ofile.
17824   # Note that this assumes the entire list is on one line.
17825   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17826
17827   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17828   for tagname in $tagnames; do
17829     IFS="$lt_save_ifs"
17830     # Check whether tagname contains only valid characters
17831     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17832     "") ;;
17833     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17834 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17835    { (exit 1); exit 1; }; }
17836         ;;
17837     esac
17838
17839     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17840     then
17841       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17842 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17843    { (exit 1); exit 1; }; }
17844     fi
17845
17846     # Update the list of available tags.
17847     if test -n "$tagname"; then
17848       echo appending configuration tag \"$tagname\" to $ofile
17849
17850       case $tagname in
17851       CXX)
17852         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17853             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17854             (test "X$CXX" != "Xg++"))) ; then
17855           ac_ext=cpp
17856 ac_cpp='$CXXCPP $CPPFLAGS'
17857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17860
17861
17862
17863
17864 archive_cmds_need_lc_CXX=no
17865 allow_undefined_flag_CXX=
17866 always_export_symbols_CXX=no
17867 archive_expsym_cmds_CXX=
17868 export_dynamic_flag_spec_CXX=
17869 hardcode_direct_CXX=no
17870 hardcode_libdir_flag_spec_CXX=
17871 hardcode_libdir_flag_spec_ld_CXX=
17872 hardcode_libdir_separator_CXX=
17873 hardcode_minus_L_CXX=no
17874 hardcode_shlibpath_var_CXX=unsupported
17875 hardcode_automatic_CXX=no
17876 module_cmds_CXX=
17877 module_expsym_cmds_CXX=
17878 link_all_deplibs_CXX=unknown
17879 old_archive_cmds_CXX=$old_archive_cmds
17880 no_undefined_flag_CXX=
17881 whole_archive_flag_spec_CXX=
17882 enable_shared_with_static_runtimes_CXX=no
17883
17884 # Dependencies to place before and after the object being linked:
17885 predep_objects_CXX=
17886 postdep_objects_CXX=
17887 predeps_CXX=
17888 postdeps_CXX=
17889 compiler_lib_search_path_CXX=
17890
17891 # Source file extension for C++ test sources.
17892 ac_ext=cpp
17893
17894 # Object file extension for compiled C++ test sources.
17895 objext=o
17896 objext_CXX=$objext
17897
17898 # Code to be used in simple compile tests
17899 lt_simple_compile_test_code="int some_variable = 0;\n"
17900
17901 # Code to be used in simple link tests
17902 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17903
17904 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17905
17906 # If no C compiler was specified, use CC.
17907 LTCC=${LTCC-"$CC"}
17908
17909 # If no C compiler flags were specified, use CFLAGS.
17910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17911
17912 # Allow CC to be a program name with arguments.
17913 compiler=$CC
17914
17915
17916 # save warnings/boilerplate of simple test code
17917 ac_outfile=conftest.$ac_objext
17918 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17920 _lt_compiler_boilerplate=`cat conftest.err`
17921 $rm conftest*
17922
17923 ac_outfile=conftest.$ac_objext
17924 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17926 _lt_linker_boilerplate=`cat conftest.err`
17927 $rm conftest*
17928
17929
17930 # Allow CC to be a program name with arguments.
17931 lt_save_CC=$CC
17932 lt_save_LD=$LD
17933 lt_save_GCC=$GCC
17934 GCC=$GXX
17935 lt_save_with_gnu_ld=$with_gnu_ld
17936 lt_save_path_LD=$lt_cv_path_LD
17937 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17938   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17939 else
17940   $as_unset lt_cv_prog_gnu_ld
17941 fi
17942 if test -n "${lt_cv_path_LDCXX+set}"; then
17943   lt_cv_path_LD=$lt_cv_path_LDCXX
17944 else
17945   $as_unset lt_cv_path_LD
17946 fi
17947 test -z "${LDCXX+set}" || LD=$LDCXX
17948 CC=${CXX-"c++"}
17949 compiler=$CC
17950 compiler_CXX=$CC
17951 for cc_temp in $compiler""; do
17952   case $cc_temp in
17953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17955     \-*) ;;
17956     *) break;;
17957   esac
17958 done
17959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17960
17961
17962 # We don't want -fno-exception wen compiling C++ code, so set the
17963 # no_builtin_flag separately
17964 if test "$GXX" = yes; then
17965   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17966 else
17967   lt_prog_compiler_no_builtin_flag_CXX=
17968 fi
17969
17970 if test "$GXX" = yes; then
17971   # Set up default GNU C++ configuration
17972
17973
17974 # Check whether --with-gnu-ld was given.
17975 if test "${with_gnu_ld+set}" = set; then
17976   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17977 else
17978   with_gnu_ld=no
17979 fi
17980
17981 ac_prog=ld
17982 if test "$GCC" = yes; then
17983   # Check if gcc -print-prog-name=ld gives a path.
17984   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17986   case $host in
17987   *-*-mingw*)
17988     # gcc leaves a trailing carriage return which upsets mingw
17989     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17990   *)
17991     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17992   esac
17993   case $ac_prog in
17994     # Accept absolute paths.
17995     [\\/]* | ?:[\\/]*)
17996       re_direlt='/[^/][^/]*/\.\./'
17997       # Canonicalize the pathname of ld
17998       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17999       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18000         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18001       done
18002       test -z "$LD" && LD="$ac_prog"
18003       ;;
18004   "")
18005     # If it fails, then pretend we aren't using GCC.
18006     ac_prog=ld
18007     ;;
18008   *)
18009     # If it is relative, then search for the first ld in PATH.
18010     with_gnu_ld=unknown
18011     ;;
18012   esac
18013 elif test "$with_gnu_ld" = yes; then
18014   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18016 else
18017   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18019 fi
18020 if test "${lt_cv_path_LD+set}" = set; then
18021   echo $ECHO_N "(cached) $ECHO_C" >&6
18022 else
18023   if test -z "$LD"; then
18024   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18025   for ac_dir in $PATH; do
18026     IFS="$lt_save_ifs"
18027     test -z "$ac_dir" && ac_dir=.
18028     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18029       lt_cv_path_LD="$ac_dir/$ac_prog"
18030       # Check to see if the program is GNU ld.  I'd rather use --version,
18031       # but apparently some variants of GNU ld only accept -v.
18032       # Break only if it was the GNU/non-GNU ld that we prefer.
18033       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18034       *GNU* | *'with BFD'*)
18035         test "$with_gnu_ld" != no && break
18036         ;;
18037       *)
18038         test "$with_gnu_ld" != yes && break
18039         ;;
18040       esac
18041     fi
18042   done
18043   IFS="$lt_save_ifs"
18044 else
18045   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18046 fi
18047 fi
18048
18049 LD="$lt_cv_path_LD"
18050 if test -n "$LD"; then
18051   { echo "$as_me:$LINENO: result: $LD" >&5
18052 echo "${ECHO_T}$LD" >&6; }
18053 else
18054   { echo "$as_me:$LINENO: result: no" >&5
18055 echo "${ECHO_T}no" >&6; }
18056 fi
18057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18059    { (exit 1); exit 1; }; }
18060 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18063   echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18066 case `$LD -v 2>&1 </dev/null` in
18067 *GNU* | *'with BFD'*)
18068   lt_cv_prog_gnu_ld=yes
18069   ;;
18070 *)
18071   lt_cv_prog_gnu_ld=no
18072   ;;
18073 esac
18074 fi
18075 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18077 with_gnu_ld=$lt_cv_prog_gnu_ld
18078
18079
18080
18081   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18082   # archiving commands below assume that GNU ld is being used.
18083   if test "$with_gnu_ld" = yes; then
18084     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18085     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'
18086
18087     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18088     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18089
18090     # If archive_cmds runs LD, not CC, wlarc should be empty
18091     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18092     #     investigate it a little bit more. (MM)
18093     wlarc='${wl}'
18094
18095     # ancient GNU ld didn't support --whole-archive et. al.
18096     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18097         grep 'no-whole-archive' > /dev/null; then
18098       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18099     else
18100       whole_archive_flag_spec_CXX=
18101     fi
18102   else
18103     with_gnu_ld=no
18104     wlarc=
18105
18106     # A generic and very simple default shared library creation
18107     # command for GNU C++ for the case where it uses the native
18108     # linker, instead of GNU ld.  If possible, this setting should
18109     # overridden to take advantage of the native linker features on
18110     # the platform it is being used on.
18111     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18112   fi
18113
18114   # Commands to make compiler produce verbose output that lists
18115   # what "hidden" libraries, object files and flags are used when
18116   # linking a shared library.
18117   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18118
18119 else
18120   GXX=no
18121   with_gnu_ld=no
18122   wlarc=
18123 fi
18124
18125 # PORTME: fill in a description of your system's C++ link characteristics
18126 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18127 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18128 ld_shlibs_CXX=yes
18129 case $host_os in
18130   aix3*)
18131     # FIXME: insert proper C++ library support
18132     ld_shlibs_CXX=no
18133     ;;
18134   aix4* | aix5*)
18135     if test "$host_cpu" = ia64; then
18136       # On IA64, the linker does run time linking by default, so we don't
18137       # have to do anything special.
18138       aix_use_runtimelinking=no
18139       exp_sym_flag='-Bexport'
18140       no_entry_flag=""
18141     else
18142       aix_use_runtimelinking=no
18143
18144       # Test if we are trying to use run time linking or normal
18145       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18146       # need to do runtime linking.
18147       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18148         for ld_flag in $LDFLAGS; do
18149           case $ld_flag in
18150           *-brtl*)
18151             aix_use_runtimelinking=yes
18152             break
18153             ;;
18154           esac
18155         done
18156         ;;
18157       esac
18158
18159       exp_sym_flag='-bexport'
18160       no_entry_flag='-bnoentry'
18161     fi
18162
18163     # When large executables or shared objects are built, AIX ld can
18164     # have problems creating the table of contents.  If linking a library
18165     # or program results in "error TOC overflow" add -mminimal-toc to
18166     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18167     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18168
18169     archive_cmds_CXX=''
18170     hardcode_direct_CXX=yes
18171     hardcode_libdir_separator_CXX=':'
18172     link_all_deplibs_CXX=yes
18173
18174     if test "$GXX" = yes; then
18175       case $host_os in aix4.[012]|aix4.[012].*)
18176       # We only want to do this on AIX 4.2 and lower, the check
18177       # below for broken collect2 doesn't work under 4.3+
18178         collect2name=`${CC} -print-prog-name=collect2`
18179         if test -f "$collect2name" && \
18180            strings "$collect2name" | grep resolve_lib_name >/dev/null
18181         then
18182           # We have reworked collect2
18183           hardcode_direct_CXX=yes
18184         else
18185           # We have old collect2
18186           hardcode_direct_CXX=unsupported
18187           # It fails to find uninstalled libraries when the uninstalled
18188           # path is not listed in the libpath.  Setting hardcode_minus_L
18189           # to unsupported forces relinking
18190           hardcode_minus_L_CXX=yes
18191           hardcode_libdir_flag_spec_CXX='-L$libdir'
18192           hardcode_libdir_separator_CXX=
18193         fi
18194         ;;
18195       esac
18196       shared_flag='-shared'
18197       if test "$aix_use_runtimelinking" = yes; then
18198         shared_flag="$shared_flag "'${wl}-G'
18199       fi
18200     else
18201       # not using gcc
18202       if test "$host_cpu" = ia64; then
18203         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18204         # chokes on -Wl,-G. The following line is correct:
18205         shared_flag='-G'
18206       else
18207         if test "$aix_use_runtimelinking" = yes; then
18208           shared_flag='${wl}-G'
18209         else
18210           shared_flag='${wl}-bM:SRE'
18211         fi
18212       fi
18213     fi
18214
18215     # It seems that -bexpall does not export symbols beginning with
18216     # underscore (_), so it is better to generate a list of symbols to export.
18217     always_export_symbols_CXX=yes
18218     if test "$aix_use_runtimelinking" = yes; then
18219       # Warning - without using the other runtime loading flags (-brtl),
18220       # -berok will link without error, but may produce a broken library.
18221       allow_undefined_flag_CXX='-berok'
18222       # Determine the default libpath from the value encoded in an empty executable.
18223       cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229
18230 int
18231 main ()
18232 {
18233
18234   ;
18235   return 0;
18236 }
18237 _ACEOF
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } && {
18252          test -z "$ac_cxx_werror_flag" ||
18253          test ! -s conftest.err
18254        } && test -s conftest$ac_exeext &&
18255        $as_test_x conftest$ac_exeext; then
18256
18257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18258 }'`
18259 # Check for a 64-bit object if we didn't find anything.
18260 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; }
18261 }'`; fi
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266
18267 fi
18268
18269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270       conftest$ac_exeext conftest.$ac_ext
18271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18272
18273       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18274
18275       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"
18276      else
18277       if test "$host_cpu" = ia64; then
18278         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18279         allow_undefined_flag_CXX="-z nodefs"
18280         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"
18281       else
18282         # Determine the default libpath from the value encoded in an empty executable.
18283         cat >conftest.$ac_ext <<_ACEOF
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290 int
18291 main ()
18292 {
18293
18294   ;
18295   return 0;
18296 }
18297 _ACEOF
18298 rm -f conftest.$ac_objext conftest$ac_exeext
18299 if { (ac_try="$ac_link"
18300 case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_link") 2>conftest.er1
18306   ac_status=$?
18307   grep -v '^ *+' conftest.er1 >conftest.err
18308   rm -f conftest.er1
18309   cat conftest.err >&5
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } && {
18312          test -z "$ac_cxx_werror_flag" ||
18313          test ! -s conftest.err
18314        } && test -s conftest$ac_exeext &&
18315        $as_test_x conftest$ac_exeext; then
18316
18317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18318 }'`
18319 # Check for a 64-bit object if we didn't find anything.
18320 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; }
18321 }'`; fi
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326
18327 fi
18328
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330       conftest$ac_exeext conftest.$ac_ext
18331 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18332
18333         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18334         # Warning - without using the other run time loading flags,
18335         # -berok will link without error, but may produce a broken library.
18336         no_undefined_flag_CXX=' ${wl}-bernotok'
18337         allow_undefined_flag_CXX=' ${wl}-berok'
18338         # Exported symbols can be pulled into shared objects from archives
18339         whole_archive_flag_spec_CXX='$convenience'
18340         archive_cmds_need_lc_CXX=yes
18341         # This is similar to how AIX traditionally builds its shared libraries.
18342         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'
18343       fi
18344     fi
18345     ;;
18346
18347   beos*)
18348     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18349       allow_undefined_flag_CXX=unsupported
18350       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18351       # support --undefined.  This deserves some investigation.  FIXME
18352       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18353     else
18354       ld_shlibs_CXX=no
18355     fi
18356     ;;
18357
18358   chorus*)
18359     case $cc_basename in
18360       *)
18361         # FIXME: insert proper C++ library support
18362         ld_shlibs_CXX=no
18363         ;;
18364     esac
18365     ;;
18366
18367   cygwin* | mingw* | pw32*)
18368     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18369     # as there is no search path for DLLs.
18370     hardcode_libdir_flag_spec_CXX='-L$libdir'
18371     allow_undefined_flag_CXX=unsupported
18372     always_export_symbols_CXX=no
18373     enable_shared_with_static_runtimes_CXX=yes
18374
18375     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18376       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'
18377       # If the export-symbols file already is a .def file (1st line
18378       # is EXPORTS), use it as is; otherwise, prepend...
18379       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18380         cp $export_symbols $output_objdir/$soname.def;
18381       else
18382         echo EXPORTS > $output_objdir/$soname.def;
18383         cat $export_symbols >> $output_objdir/$soname.def;
18384       fi~
18385       $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'
18386     else
18387       ld_shlibs_CXX=no
18388     fi
18389   ;;
18390       darwin* | rhapsody*)
18391         case $host_os in
18392         rhapsody* | darwin1.[012])
18393          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18394          ;;
18395        *) # Darwin 1.3 on
18396          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18397            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18398          else
18399            case ${MACOSX_DEPLOYMENT_TARGET} in
18400              10.[012])
18401                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18402                ;;
18403              10.*)
18404                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18405                ;;
18406            esac
18407          fi
18408          ;;
18409         esac
18410       archive_cmds_need_lc_CXX=no
18411       hardcode_direct_CXX=no
18412       hardcode_automatic_CXX=yes
18413       hardcode_shlibpath_var_CXX=unsupported
18414       whole_archive_flag_spec_CXX=''
18415       link_all_deplibs_CXX=yes
18416
18417     if test "$GXX" = yes ; then
18418       lt_int_apple_cc_single_mod=no
18419       output_verbose_link_cmd='echo'
18420       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18421        lt_int_apple_cc_single_mod=yes
18422       fi
18423       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18424        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18425       else
18426           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'
18427         fi
18428         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18429         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18430           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18431             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}'
18432           else
18433             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}'
18434           fi
18435             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}'
18436       else
18437       case $cc_basename in
18438         xlc*)
18439          output_verbose_link_cmd='echo'
18440           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'
18441           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18442           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18443           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}'
18444           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}'
18445           ;;
18446        *)
18447          ld_shlibs_CXX=no
18448           ;;
18449       esac
18450       fi
18451         ;;
18452
18453   dgux*)
18454     case $cc_basename in
18455       ec++*)
18456         # FIXME: insert proper C++ library support
18457         ld_shlibs_CXX=no
18458         ;;
18459       ghcx*)
18460         # Green Hills C++ Compiler
18461         # FIXME: insert proper C++ library support
18462         ld_shlibs_CXX=no
18463         ;;
18464       *)
18465         # FIXME: insert proper C++ library support
18466         ld_shlibs_CXX=no
18467         ;;
18468     esac
18469     ;;
18470   freebsd[12]*)
18471     # C++ shared libraries reported to be fairly broken before switch to ELF
18472     ld_shlibs_CXX=no
18473     ;;
18474   freebsd-elf*)
18475     archive_cmds_need_lc_CXX=no
18476     ;;
18477   freebsd* | kfreebsd*-gnu | dragonfly*)
18478     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18479     # conventions
18480     ld_shlibs_CXX=yes
18481     ;;
18482   gnu*)
18483     ;;
18484   hpux9*)
18485     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18486     hardcode_libdir_separator_CXX=:
18487     export_dynamic_flag_spec_CXX='${wl}-E'
18488     hardcode_direct_CXX=yes
18489     hardcode_minus_L_CXX=yes # Not in the search PATH,
18490                                 # but as the default
18491                                 # location of the library.
18492
18493     case $cc_basename in
18494     CC*)
18495       # FIXME: insert proper C++ library support
18496       ld_shlibs_CXX=no
18497       ;;
18498     aCC*)
18499       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'
18500       # Commands to make compiler produce verbose output that lists
18501       # what "hidden" libraries, object files and flags are used when
18502       # linking a shared library.
18503       #
18504       # There doesn't appear to be a way to prevent this compiler from
18505       # explicitly linking system object files so we need to strip them
18506       # from the output so that they don't get included in the library
18507       # dependencies.
18508       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'
18509       ;;
18510     *)
18511       if test "$GXX" = yes; then
18512         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'
18513       else
18514         # FIXME: insert proper C++ library support
18515         ld_shlibs_CXX=no
18516       fi
18517       ;;
18518     esac
18519     ;;
18520   hpux10*|hpux11*)
18521     if test $with_gnu_ld = no; then
18522       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18523       hardcode_libdir_separator_CXX=:
18524
18525       case $host_cpu in
18526       hppa*64*|ia64*)
18527         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18528         ;;
18529       *)
18530         export_dynamic_flag_spec_CXX='${wl}-E'
18531         ;;
18532       esac
18533     fi
18534     case $host_cpu in
18535     hppa*64*|ia64*)
18536       hardcode_direct_CXX=no
18537       hardcode_shlibpath_var_CXX=no
18538       ;;
18539     *)
18540       hardcode_direct_CXX=yes
18541       hardcode_minus_L_CXX=yes # Not in the search PATH,
18542                                               # but as the default
18543                                               # location of the library.
18544       ;;
18545     esac
18546
18547     case $cc_basename in
18548       CC*)
18549         # FIXME: insert proper C++ library support
18550         ld_shlibs_CXX=no
18551         ;;
18552       aCC*)
18553         case $host_cpu in
18554         hppa*64*)
18555           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18556           ;;
18557         ia64*)
18558           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18559           ;;
18560         *)
18561           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18562           ;;
18563         esac
18564         # Commands to make compiler produce verbose output that lists
18565         # what "hidden" libraries, object files and flags are used when
18566         # linking a shared library.
18567         #
18568         # There doesn't appear to be a way to prevent this compiler from
18569         # explicitly linking system object files so we need to strip them
18570         # from the output so that they don't get included in the library
18571         # dependencies.
18572         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'
18573         ;;
18574       *)
18575         if test "$GXX" = yes; then
18576           if test $with_gnu_ld = no; then
18577             case $host_cpu in
18578             hppa*64*)
18579               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18580               ;;
18581             ia64*)
18582               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18583               ;;
18584             *)
18585               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'
18586               ;;
18587             esac
18588           fi
18589         else
18590           # FIXME: insert proper C++ library support
18591           ld_shlibs_CXX=no
18592         fi
18593         ;;
18594     esac
18595     ;;
18596   interix3*)
18597     hardcode_direct_CXX=no
18598     hardcode_shlibpath_var_CXX=no
18599     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18600     export_dynamic_flag_spec_CXX='${wl}-E'
18601     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18602     # Instead, shared libraries are loaded at an image base (0x10000000 by
18603     # default) and relocated if they conflict, which is a slow very memory
18604     # consuming and fragmenting process.  To avoid this, we pick a random,
18605     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18606     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18607     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'
18608     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'
18609     ;;
18610   irix5* | irix6*)
18611     case $cc_basename in
18612       CC*)
18613         # SGI C++
18614         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'
18615
18616         # Archives containing C++ object files must be created using
18617         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18618         # necessary to make sure instantiated templates are included
18619         # in the archive.
18620         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18621         ;;
18622       *)
18623         if test "$GXX" = yes; then
18624           if test "$with_gnu_ld" = no; then
18625             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'
18626           else
18627             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'
18628           fi
18629         fi
18630         link_all_deplibs_CXX=yes
18631         ;;
18632     esac
18633     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18634     hardcode_libdir_separator_CXX=:
18635     ;;
18636   linux*)
18637     case $cc_basename in
18638       KCC*)
18639         # Kuck and Associates, Inc. (KAI) C++ Compiler
18640
18641         # KCC will only create a shared library if the output file
18642         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18643         # to its proper name (with version) after linking.
18644         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'
18645         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'
18646         # Commands to make compiler produce verbose output that lists
18647         # what "hidden" libraries, object files and flags are used when
18648         # linking a shared library.
18649         #
18650         # There doesn't appear to be a way to prevent this compiler from
18651         # explicitly linking system object files so we need to strip them
18652         # from the output so that they don't get included in the library
18653         # dependencies.
18654         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'
18655
18656         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18657         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18658
18659         # Archives containing C++ object files must be created using
18660         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18661         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18662         ;;
18663       icpc*)
18664         # Intel C++
18665         with_gnu_ld=yes
18666         # version 8.0 and above of icpc choke on multiply defined symbols
18667         # if we add $predep_objects and $postdep_objects, however 7.1 and
18668         # earlier do not add the objects themselves.
18669         case `$CC -V 2>&1` in
18670         *"Version 7."*)
18671           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18672           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'
18673           ;;
18674         *)  # Version 8.0 or newer
18675           tmp_idyn=
18676           case $host_cpu in
18677             ia64*) tmp_idyn=' -i_dynamic';;
18678           esac
18679           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18680           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'
18681           ;;
18682         esac
18683         archive_cmds_need_lc_CXX=no
18684         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18685         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18686         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18687         ;;
18688       pgCC*)
18689         # Portland Group C++ compiler
18690         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18691         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'
18692
18693         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18694         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18695         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'
18696         ;;
18697       cxx*)
18698         # Compaq C++
18699         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18700         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'
18701
18702         runpath_var=LD_RUN_PATH
18703         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18704         hardcode_libdir_separator_CXX=:
18705
18706         # Commands to make compiler produce verbose output that lists
18707         # what "hidden" libraries, object files and flags are used when
18708         # linking a shared library.
18709         #
18710         # There doesn't appear to be a way to prevent this compiler from
18711         # explicitly linking system object files so we need to strip them
18712         # from the output so that they don't get included in the library
18713         # dependencies.
18714         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'
18715         ;;
18716     esac
18717     ;;
18718   lynxos*)
18719     # FIXME: insert proper C++ library support
18720     ld_shlibs_CXX=no
18721     ;;
18722   m88k*)
18723     # FIXME: insert proper C++ library support
18724     ld_shlibs_CXX=no
18725     ;;
18726   mvs*)
18727     case $cc_basename in
18728       cxx*)
18729         # FIXME: insert proper C++ library support
18730         ld_shlibs_CXX=no
18731         ;;
18732       *)
18733         # FIXME: insert proper C++ library support
18734         ld_shlibs_CXX=no
18735         ;;
18736     esac
18737     ;;
18738   netbsd*)
18739     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18740       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18741       wlarc=
18742       hardcode_libdir_flag_spec_CXX='-R$libdir'
18743       hardcode_direct_CXX=yes
18744       hardcode_shlibpath_var_CXX=no
18745     fi
18746     # Workaround some broken pre-1.5 toolchains
18747     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18748     ;;
18749   openbsd2*)
18750     # C++ shared libraries are fairly broken
18751     ld_shlibs_CXX=no
18752     ;;
18753   openbsd*)
18754     hardcode_direct_CXX=yes
18755     hardcode_shlibpath_var_CXX=no
18756     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18757     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18758     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18759       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18760       export_dynamic_flag_spec_CXX='${wl}-E'
18761       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18762     fi
18763     output_verbose_link_cmd='echo'
18764     ;;
18765   osf3*)
18766     case $cc_basename in
18767       KCC*)
18768         # Kuck and Associates, Inc. (KAI) C++ Compiler
18769
18770         # KCC will only create a shared library if the output file
18771         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18772         # to its proper name (with version) after linking.
18773         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'
18774
18775         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18776         hardcode_libdir_separator_CXX=:
18777
18778         # Archives containing C++ object files must be created using
18779         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18780         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18781
18782         ;;
18783       RCC*)
18784         # Rational C++ 2.4.1
18785         # FIXME: insert proper C++ library support
18786         ld_shlibs_CXX=no
18787         ;;
18788       cxx*)
18789         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18790         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'
18791
18792         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18793         hardcode_libdir_separator_CXX=:
18794
18795         # Commands to make compiler produce verbose output that lists
18796         # what "hidden" libraries, object files and flags are used when
18797         # linking a shared library.
18798         #
18799         # There doesn't appear to be a way to prevent this compiler from
18800         # explicitly linking system object files so we need to strip them
18801         # from the output so that they don't get included in the library
18802         # dependencies.
18803         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'
18804         ;;
18805       *)
18806         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18807           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18808           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'
18809
18810           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18811           hardcode_libdir_separator_CXX=:
18812
18813           # Commands to make compiler produce verbose output that lists
18814           # what "hidden" libraries, object files and flags are used when
18815           # linking a shared library.
18816           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18817
18818         else
18819           # FIXME: insert proper C++ library support
18820           ld_shlibs_CXX=no
18821         fi
18822         ;;
18823     esac
18824     ;;
18825   osf4* | osf5*)
18826     case $cc_basename in
18827       KCC*)
18828         # Kuck and Associates, Inc. (KAI) C++ Compiler
18829
18830         # KCC will only create a shared library if the output file
18831         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18832         # to its proper name (with version) after linking.
18833         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'
18834
18835         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18836         hardcode_libdir_separator_CXX=:
18837
18838         # Archives containing C++ object files must be created using
18839         # the KAI C++ compiler.
18840         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18841         ;;
18842       RCC*)
18843         # Rational C++ 2.4.1
18844         # FIXME: insert proper C++ library support
18845         ld_shlibs_CXX=no
18846         ;;
18847       cxx*)
18848         allow_undefined_flag_CXX=' -expect_unresolved \*'
18849         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'
18850         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18851           echo "-hidden">> $lib.exp~
18852           $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~
18853           $rm $lib.exp'
18854
18855         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18856         hardcode_libdir_separator_CXX=:
18857
18858         # Commands to make compiler produce verbose output that lists
18859         # what "hidden" libraries, object files and flags are used when
18860         # linking a shared library.
18861         #
18862         # There doesn't appear to be a way to prevent this compiler from
18863         # explicitly linking system object files so we need to strip them
18864         # from the output so that they don't get included in the library
18865         # dependencies.
18866         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'
18867         ;;
18868       *)
18869         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18870           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18871          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'
18872
18873           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18874           hardcode_libdir_separator_CXX=:
18875
18876           # Commands to make compiler produce verbose output that lists
18877           # what "hidden" libraries, object files and flags are used when
18878           # linking a shared library.
18879           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18880
18881         else
18882           # FIXME: insert proper C++ library support
18883           ld_shlibs_CXX=no
18884         fi
18885         ;;
18886     esac
18887     ;;
18888   psos*)
18889     # FIXME: insert proper C++ library support
18890     ld_shlibs_CXX=no
18891     ;;
18892   sunos4*)
18893     case $cc_basename in
18894       CC*)
18895         # Sun C++ 4.x
18896         # FIXME: insert proper C++ library support
18897         ld_shlibs_CXX=no
18898         ;;
18899       lcc*)
18900         # Lucid
18901         # FIXME: insert proper C++ library support
18902         ld_shlibs_CXX=no
18903         ;;
18904       *)
18905         # FIXME: insert proper C++ library support
18906         ld_shlibs_CXX=no
18907         ;;
18908     esac
18909     ;;
18910   solaris*)
18911     case $cc_basename in
18912       CC*)
18913         # Sun C++ 4.2, 5.x and Centerline C++
18914         archive_cmds_need_lc_CXX=yes
18915         no_undefined_flag_CXX=' -zdefs'
18916         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18917         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18918         $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'
18919
18920         hardcode_libdir_flag_spec_CXX='-R$libdir'
18921         hardcode_shlibpath_var_CXX=no
18922         case $host_os in
18923           solaris2.[0-5] | solaris2.[0-5].*) ;;
18924           *)
18925             # The C++ compiler is used as linker so we must use $wl
18926             # flag to pass the commands to the underlying system
18927             # linker. We must also pass each convience library through
18928             # to the system linker between allextract/defaultextract.
18929             # The C++ compiler will combine linker options so we
18930             # cannot just pass the convience library names through
18931             # without $wl.
18932             # Supported since Solaris 2.6 (maybe 2.5.1?)
18933             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'
18934             ;;
18935         esac
18936         link_all_deplibs_CXX=yes
18937
18938         output_verbose_link_cmd='echo'
18939
18940         # Archives containing C++ object files must be created using
18941         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18942         # necessary to make sure instantiated templates are included
18943         # in the archive.
18944         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18945         ;;
18946       gcx*)
18947         # Green Hills C++ Compiler
18948         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18949
18950         # The C++ compiler must be used to create the archive.
18951         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18952         ;;
18953       *)
18954         # GNU C++ compiler with Solaris linker
18955         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18956           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18957           if $CC --version | grep -v '^2\.7' > /dev/null; then
18958             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18959             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18960                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18961
18962             # Commands to make compiler produce verbose output that lists
18963             # what "hidden" libraries, object files and flags are used when
18964             # linking a shared library.
18965             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18966           else
18967             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18968             # platform.
18969             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18970             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18971                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18972
18973             # Commands to make compiler produce verbose output that lists
18974             # what "hidden" libraries, object files and flags are used when
18975             # linking a shared library.
18976             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18977           fi
18978
18979           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18980         fi
18981         ;;
18982     esac
18983     ;;
18984   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18985     no_undefined_flag_CXX='${wl}-z,text'
18986     archive_cmds_need_lc_CXX=no
18987     hardcode_shlibpath_var_CXX=no
18988     runpath_var='LD_RUN_PATH'
18989
18990     case $cc_basename in
18991       CC*)
18992         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994         ;;
18995       *)
18996         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18997         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18998         ;;
18999     esac
19000     ;;
19001   sysv5* | sco3.2v5* | sco5v6*)
19002     # Note: We can NOT use -z defs as we might desire, because we do not
19003     # link with -lc, and that would cause any symbols used from libc to
19004     # always be unresolved, which means just about no library would
19005     # ever link correctly.  If we're not using GNU ld we use -z text
19006     # though, which does catch some bad symbols but isn't as heavy-handed
19007     # as -z defs.
19008     # For security reasons, it is highly recommended that you always
19009     # use absolute paths for naming shared libraries, and exclude the
19010     # DT_RUNPATH tag from executables and libraries.  But doing so
19011     # requires that you compile everything twice, which is a pain.
19012     # So that behaviour is only enabled if SCOABSPATH is set to a
19013     # non-empty value in the environment.  Most likely only useful for
19014     # creating official distributions of packages.
19015     # This is a hack until libtool officially supports absolute path
19016     # names for shared libraries.
19017     no_undefined_flag_CXX='${wl}-z,text'
19018     allow_undefined_flag_CXX='${wl}-z,nodefs'
19019     archive_cmds_need_lc_CXX=no
19020     hardcode_shlibpath_var_CXX=no
19021     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19022     hardcode_libdir_separator_CXX=':'
19023     link_all_deplibs_CXX=yes
19024     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19025     runpath_var='LD_RUN_PATH'
19026
19027     case $cc_basename in
19028       CC*)
19029         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031         ;;
19032       *)
19033         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19034         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19035         ;;
19036     esac
19037     ;;
19038   tandem*)
19039     case $cc_basename in
19040       NCC*)
19041         # NonStop-UX NCC 3.20
19042         # FIXME: insert proper C++ library support
19043         ld_shlibs_CXX=no
19044         ;;
19045       *)
19046         # FIXME: insert proper C++ library support
19047         ld_shlibs_CXX=no
19048         ;;
19049     esac
19050     ;;
19051   vxworks*)
19052     # FIXME: insert proper C++ library support
19053     ld_shlibs_CXX=no
19054     ;;
19055   *)
19056     # FIXME: insert proper C++ library support
19057     ld_shlibs_CXX=no
19058     ;;
19059 esac
19060 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19061 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19062 test "$ld_shlibs_CXX" = no && can_build_shared=no
19063
19064 GCC_CXX="$GXX"
19065 LD_CXX="$LD"
19066
19067
19068 cat > conftest.$ac_ext <<EOF
19069 class Foo
19070 {
19071 public:
19072   Foo (void) { a = 0; }
19073 private:
19074   int a;
19075 };
19076 EOF
19077
19078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19079   (eval $ac_compile) 2>&5
19080   ac_status=$?
19081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); }; then
19083   # Parse the compiler output and extract the necessary
19084   # objects, libraries and library flags.
19085
19086   # Sentinel used to keep track of whether or not we are before
19087   # the conftest object file.
19088   pre_test_object_deps_done=no
19089
19090   # The `*' in the case matches for architectures that use `case' in
19091   # $output_verbose_cmd can trigger glob expansion during the loop
19092   # eval without this substitution.
19093   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19094
19095   for p in `eval $output_verbose_link_cmd`; do
19096     case $p in
19097
19098     -L* | -R* | -l*)
19099        # Some compilers place space between "-{L,R}" and the path.
19100        # Remove the space.
19101        if test $p = "-L" \
19102           || test $p = "-R"; then
19103          prev=$p
19104          continue
19105        else
19106          prev=
19107        fi
19108
19109        if test "$pre_test_object_deps_done" = no; then
19110          case $p in
19111          -L* | -R*)
19112            # Internal compiler library paths should come after those
19113            # provided the user.  The postdeps already come after the
19114            # user supplied libs so there is no need to process them.
19115            if test -z "$compiler_lib_search_path_CXX"; then
19116              compiler_lib_search_path_CXX="${prev}${p}"
19117            else
19118              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19119            fi
19120            ;;
19121          # The "-l" case would never come before the object being
19122          # linked, so don't bother handling this case.
19123          esac
19124        else
19125          if test -z "$postdeps_CXX"; then
19126            postdeps_CXX="${prev}${p}"
19127          else
19128            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19129          fi
19130        fi
19131        ;;
19132
19133     *.$objext)
19134        # This assumes that the test object file only shows up
19135        # once in the compiler output.
19136        if test "$p" = "conftest.$objext"; then
19137          pre_test_object_deps_done=yes
19138          continue
19139        fi
19140
19141        if test "$pre_test_object_deps_done" = no; then
19142          if test -z "$predep_objects_CXX"; then
19143            predep_objects_CXX="$p"
19144          else
19145            predep_objects_CXX="$predep_objects_CXX $p"
19146          fi
19147        else
19148          if test -z "$postdep_objects_CXX"; then
19149            postdep_objects_CXX="$p"
19150          else
19151            postdep_objects_CXX="$postdep_objects_CXX $p"
19152          fi
19153        fi
19154        ;;
19155
19156     *) ;; # Ignore the rest.
19157
19158     esac
19159   done
19160
19161   # Clean up.
19162   rm -f a.out a.exe
19163 else
19164   echo "libtool.m4: error: problem compiling CXX test program"
19165 fi
19166
19167 $rm -f confest.$objext
19168
19169 # PORTME: override above test on systems where it is broken
19170 case $host_os in
19171 interix3*)
19172   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19173   # hack all around it, let's just trust "g++" to DTRT.
19174   predep_objects_CXX=
19175   postdep_objects_CXX=
19176   postdeps_CXX=
19177   ;;
19178
19179 solaris*)
19180   case $cc_basename in
19181   CC*)
19182     # Adding this requires a known-good setup of shared libraries for
19183     # Sun compiler versions before 5.6, else PIC objects from an old
19184     # archive will be linked into the output, leading to subtle bugs.
19185     postdeps_CXX='-lCstd -lCrun'
19186     ;;
19187   esac
19188   ;;
19189 esac
19190
19191
19192 case " $postdeps_CXX " in
19193 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19194 esac
19195
19196 lt_prog_compiler_wl_CXX=
19197 lt_prog_compiler_pic_CXX=
19198 lt_prog_compiler_static_CXX=
19199
19200 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19201 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19202
19203   # C++ specific cases for pic, static, wl, etc.
19204   if test "$GXX" = yes; then
19205     lt_prog_compiler_wl_CXX='-Wl,'
19206     lt_prog_compiler_static_CXX='-static'
19207
19208     case $host_os in
19209     aix*)
19210       # All AIX code is PIC.
19211       if test "$host_cpu" = ia64; then
19212         # AIX 5 now supports IA64 processor
19213         lt_prog_compiler_static_CXX='-Bstatic'
19214       fi
19215       ;;
19216     amigaos*)
19217       # FIXME: we need at least 68020 code to build shared libraries, but
19218       # adding the `-m68020' flag to GCC prevents building anything better,
19219       # like `-m68040'.
19220       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19221       ;;
19222     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19223       # PIC is the default for these OSes.
19224       ;;
19225     mingw* | os2* | pw32*)
19226       # This hack is so that the source file can tell whether it is being
19227       # built for inclusion in a dll (and should export symbols for example).
19228       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19229       ;;
19230     darwin* | rhapsody*)
19231       # PIC is the default on this platform
19232       # Common symbols not allowed in MH_DYLIB files
19233       lt_prog_compiler_pic_CXX='-fno-common'
19234       ;;
19235     *djgpp*)
19236       # DJGPP does not support shared libraries at all
19237       lt_prog_compiler_pic_CXX=
19238       ;;
19239     interix3*)
19240       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19241       # Instead, we relocate shared libraries at runtime.
19242       ;;
19243     sysv4*MP*)
19244       if test -d /usr/nec; then
19245         lt_prog_compiler_pic_CXX=-Kconform_pic
19246       fi
19247       ;;
19248     hpux*)
19249       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19250       # not for PA HP-UX.
19251       case $host_cpu in
19252       hppa*64*|ia64*)
19253         ;;
19254       *)
19255         lt_prog_compiler_pic_CXX='-fPIC'
19256         ;;
19257       esac
19258       ;;
19259     *)
19260       lt_prog_compiler_pic_CXX='-fPIC'
19261       ;;
19262     esac
19263   else
19264     case $host_os in
19265       aix4* | aix5*)
19266         # All AIX code is PIC.
19267         if test "$host_cpu" = ia64; then
19268           # AIX 5 now supports IA64 processor
19269           lt_prog_compiler_static_CXX='-Bstatic'
19270         else
19271           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19272         fi
19273         ;;
19274       chorus*)
19275         case $cc_basename in
19276         cxch68*)
19277           # Green Hills C++ Compiler
19278           # _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"
19279           ;;
19280         esac
19281         ;;
19282        darwin*)
19283          # PIC is the default on this platform
19284          # Common symbols not allowed in MH_DYLIB files
19285          case $cc_basename in
19286            xlc*)
19287            lt_prog_compiler_pic_CXX='-qnocommon'
19288            lt_prog_compiler_wl_CXX='-Wl,'
19289            ;;
19290          esac
19291        ;;
19292       dgux*)
19293         case $cc_basename in
19294           ec++*)
19295             lt_prog_compiler_pic_CXX='-KPIC'
19296             ;;
19297           ghcx*)
19298             # Green Hills C++ Compiler
19299             lt_prog_compiler_pic_CXX='-pic'
19300             ;;
19301           *)
19302             ;;
19303         esac
19304         ;;
19305       freebsd* | kfreebsd*-gnu | dragonfly*)
19306         # FreeBSD uses GNU C++
19307         ;;
19308       hpux9* | hpux10* | hpux11*)
19309         case $cc_basename in
19310           CC*)
19311             lt_prog_compiler_wl_CXX='-Wl,'
19312             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19313             if test "$host_cpu" != ia64; then
19314               lt_prog_compiler_pic_CXX='+Z'
19315             fi
19316             ;;
19317           aCC*)
19318             lt_prog_compiler_wl_CXX='-Wl,'
19319             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19320             case $host_cpu in
19321             hppa*64*|ia64*)
19322               # +Z the default
19323               ;;
19324             *)
19325               lt_prog_compiler_pic_CXX='+Z'
19326               ;;
19327             esac
19328             ;;
19329           *)
19330             ;;
19331         esac
19332         ;;
19333       interix*)
19334         # This is c89, which is MS Visual C++ (no shared libs)
19335         # Anyone wants to do a port?
19336         ;;
19337       irix5* | irix6* | nonstopux*)
19338         case $cc_basename in
19339           CC*)
19340             lt_prog_compiler_wl_CXX='-Wl,'
19341             lt_prog_compiler_static_CXX='-non_shared'
19342             # CC pic flag -KPIC is the default.
19343             ;;
19344           *)
19345             ;;
19346         esac
19347         ;;
19348       linux*)
19349         case $cc_basename in
19350           KCC*)
19351             # KAI C++ Compiler
19352             lt_prog_compiler_wl_CXX='--backend -Wl,'
19353             lt_prog_compiler_pic_CXX='-fPIC'
19354             ;;
19355           icpc* | ecpc*)
19356             # Intel C++
19357             lt_prog_compiler_wl_CXX='-Wl,'
19358             lt_prog_compiler_pic_CXX='-KPIC'
19359             lt_prog_compiler_static_CXX='-static'
19360             ;;
19361           pgCC*)
19362             # Portland Group C++ compiler.
19363             lt_prog_compiler_wl_CXX='-Wl,'
19364             lt_prog_compiler_pic_CXX='-fpic'
19365             lt_prog_compiler_static_CXX='-Bstatic'
19366             ;;
19367           cxx*)
19368             # Compaq C++
19369             # Make sure the PIC flag is empty.  It appears that all Alpha
19370             # Linux and Compaq Tru64 Unix objects are PIC.
19371             lt_prog_compiler_pic_CXX=
19372             lt_prog_compiler_static_CXX='-non_shared'
19373             ;;
19374           *)
19375             ;;
19376         esac
19377         ;;
19378       lynxos*)
19379         ;;
19380       m88k*)
19381         ;;
19382       mvs*)
19383         case $cc_basename in
19384           cxx*)
19385             lt_prog_compiler_pic_CXX='-W c,exportall'
19386             ;;
19387           *)
19388             ;;
19389         esac
19390         ;;
19391       netbsd*)
19392         ;;
19393       osf3* | osf4* | osf5*)
19394         case $cc_basename in
19395           KCC*)
19396             lt_prog_compiler_wl_CXX='--backend -Wl,'
19397             ;;
19398           RCC*)
19399             # Rational C++ 2.4.1
19400             lt_prog_compiler_pic_CXX='-pic'
19401             ;;
19402           cxx*)
19403             # Digital/Compaq C++
19404             lt_prog_compiler_wl_CXX='-Wl,'
19405             # Make sure the PIC flag is empty.  It appears that all Alpha
19406             # Linux and Compaq Tru64 Unix objects are PIC.
19407             lt_prog_compiler_pic_CXX=
19408             lt_prog_compiler_static_CXX='-non_shared'
19409             ;;
19410           *)
19411             ;;
19412         esac
19413         ;;
19414       psos*)
19415         ;;
19416       solaris*)
19417         case $cc_basename in
19418           CC*)
19419             # Sun C++ 4.2, 5.x and Centerline C++
19420             lt_prog_compiler_pic_CXX='-KPIC'
19421             lt_prog_compiler_static_CXX='-Bstatic'
19422             lt_prog_compiler_wl_CXX='-Qoption ld '
19423             ;;
19424           gcx*)
19425             # Green Hills C++ Compiler
19426             lt_prog_compiler_pic_CXX='-PIC'
19427             ;;
19428           *)
19429             ;;
19430         esac
19431         ;;
19432       sunos4*)
19433         case $cc_basename in
19434           CC*)
19435             # Sun C++ 4.x
19436             lt_prog_compiler_pic_CXX='-pic'
19437             lt_prog_compiler_static_CXX='-Bstatic'
19438             ;;
19439           lcc*)
19440             # Lucid
19441             lt_prog_compiler_pic_CXX='-pic'
19442             ;;
19443           *)
19444             ;;
19445         esac
19446         ;;
19447       tandem*)
19448         case $cc_basename in
19449           NCC*)
19450             # NonStop-UX NCC 3.20
19451             lt_prog_compiler_pic_CXX='-KPIC'
19452             ;;
19453           *)
19454             ;;
19455         esac
19456         ;;
19457       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19458         case $cc_basename in
19459           CC*)
19460             lt_prog_compiler_wl_CXX='-Wl,'
19461             lt_prog_compiler_pic_CXX='-KPIC'
19462             lt_prog_compiler_static_CXX='-Bstatic'
19463             ;;
19464         esac
19465         ;;
19466       vxworks*)
19467         ;;
19468       *)
19469         lt_prog_compiler_can_build_shared_CXX=no
19470         ;;
19471     esac
19472   fi
19473
19474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19475 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19476
19477 #
19478 # Check to make sure the PIC flag actually works.
19479 #
19480 if test -n "$lt_prog_compiler_pic_CXX"; then
19481
19482 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19483 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19484 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   lt_prog_compiler_pic_works_CXX=no
19488   ac_outfile=conftest.$ac_objext
19489    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19490    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19491    # Insert the option either (1) after the last *FLAGS variable, or
19492    # (2) before a word containing "conftest.", or (3) at the end.
19493    # Note that $ac_compile itself does not contain backslashes and begins
19494    # with a dollar sign (not a hyphen), so the echo should work correctly.
19495    # The option is referenced via a variable to avoid confusing sed.
19496    lt_compile=`echo "$ac_compile" | $SED \
19497    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19498    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19499    -e 's:$: $lt_compiler_flag:'`
19500    (eval echo "\"\$as_me:19500: $lt_compile\"" >&5)
19501    (eval "$lt_compile" 2>conftest.err)
19502    ac_status=$?
19503    cat conftest.err >&5
19504    echo "$as_me:19504: \$? = $ac_status" >&5
19505    if (exit $ac_status) && test -s "$ac_outfile"; then
19506      # The compiler can only warn and ignore the option if not recognized
19507      # So say no if there are warnings other than the usual output.
19508      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19509      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19510      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19511        lt_prog_compiler_pic_works_CXX=yes
19512      fi
19513    fi
19514    $rm conftest*
19515
19516 fi
19517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19518 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19519
19520 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19521     case $lt_prog_compiler_pic_CXX in
19522      "" | " "*) ;;
19523      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19524      esac
19525 else
19526     lt_prog_compiler_pic_CXX=
19527      lt_prog_compiler_can_build_shared_CXX=no
19528 fi
19529
19530 fi
19531 case $host_os in
19532   # For platforms which do not support PIC, -DPIC is meaningless:
19533   *djgpp*)
19534     lt_prog_compiler_pic_CXX=
19535     ;;
19536   *)
19537     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19538     ;;
19539 esac
19540
19541 #
19542 # Check to make sure the static flag actually works.
19543 #
19544 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19545 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19546 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19547 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   lt_prog_compiler_static_works_CXX=no
19551    save_LDFLAGS="$LDFLAGS"
19552    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19553    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19554    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19555      # The linker can only warn and ignore the option if not recognized
19556      # So say no if there are warnings
19557      if test -s conftest.err; then
19558        # Append any errors to the config.log.
19559        cat conftest.err 1>&5
19560        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19561        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19562        if diff conftest.exp conftest.er2 >/dev/null; then
19563          lt_prog_compiler_static_works_CXX=yes
19564        fi
19565      else
19566        lt_prog_compiler_static_works_CXX=yes
19567      fi
19568    fi
19569    $rm conftest*
19570    LDFLAGS="$save_LDFLAGS"
19571
19572 fi
19573 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19574 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19575
19576 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19577     :
19578 else
19579     lt_prog_compiler_static_CXX=
19580 fi
19581
19582
19583 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19584 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19585 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19586   echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588   lt_cv_prog_compiler_c_o_CXX=no
19589    $rm -r conftest 2>/dev/null
19590    mkdir conftest
19591    cd conftest
19592    mkdir out
19593    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19594
19595    lt_compiler_flag="-o out/conftest2.$ac_objext"
19596    # Insert the option either (1) after the last *FLAGS variable, or
19597    # (2) before a word containing "conftest.", or (3) at the end.
19598    # Note that $ac_compile itself does not contain backslashes and begins
19599    # with a dollar sign (not a hyphen), so the echo should work correctly.
19600    lt_compile=`echo "$ac_compile" | $SED \
19601    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19602    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19603    -e 's:$: $lt_compiler_flag:'`
19604    (eval echo "\"\$as_me:19604: $lt_compile\"" >&5)
19605    (eval "$lt_compile" 2>out/conftest.err)
19606    ac_status=$?
19607    cat out/conftest.err >&5
19608    echo "$as_me:19608: \$? = $ac_status" >&5
19609    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19610    then
19611      # The compiler can only warn and ignore the option if not recognized
19612      # So say no if there are warnings
19613      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19614      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19615      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19616        lt_cv_prog_compiler_c_o_CXX=yes
19617      fi
19618    fi
19619    chmod u+w . 2>&5
19620    $rm conftest*
19621    # SGI C++ compiler will create directory out/ii_files/ for
19622    # template instantiation
19623    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19624    $rm out/* && rmdir out
19625    cd ..
19626    rmdir conftest
19627    $rm conftest*
19628
19629 fi
19630 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19631 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19632
19633
19634 hard_links="nottested"
19635 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19636   # do not overwrite the value of need_locks provided by the user
19637   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19638 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19639   hard_links=yes
19640   $rm conftest*
19641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642   touch conftest.a
19643   ln conftest.a conftest.b 2>&5 || hard_links=no
19644   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19645   { echo "$as_me:$LINENO: result: $hard_links" >&5
19646 echo "${ECHO_T}$hard_links" >&6; }
19647   if test "$hard_links" = no; then
19648     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19649 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19650     need_locks=warn
19651   fi
19652 else
19653   need_locks=no
19654 fi
19655
19656 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19657 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19658
19659   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19660   case $host_os in
19661   aix4* | aix5*)
19662     # If we're using GNU nm, then we don't want the "-C" option.
19663     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19664     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19665       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'
19666     else
19667       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'
19668     fi
19669     ;;
19670   pw32*)
19671     export_symbols_cmds_CXX="$ltdll_cmds"
19672   ;;
19673   cygwin* | mingw*)
19674     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'
19675   ;;
19676   *)
19677     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19678   ;;
19679   esac
19680
19681 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19682 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19683 test "$ld_shlibs_CXX" = no && can_build_shared=no
19684
19685 #
19686 # Do we need to explicitly link libc?
19687 #
19688 case "x$archive_cmds_need_lc_CXX" in
19689 x|xyes)
19690   # Assume -lc should be added
19691   archive_cmds_need_lc_CXX=yes
19692
19693   if test "$enable_shared" = yes && test "$GCC" = yes; then
19694     case $archive_cmds_CXX in
19695     *'~'*)
19696       # FIXME: we may have to deal with multi-command sequences.
19697       ;;
19698     '$CC '*)
19699       # Test whether the compiler implicitly links with -lc since on some
19700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19701       # to ld, don't add -lc before -lgcc.
19702       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19703 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19704       $rm conftest*
19705       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19706
19707       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19708   (eval $ac_compile) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } 2>conftest.err; then
19712         soname=conftest
19713         lib=conftest
19714         libobjs=conftest.$ac_objext
19715         deplibs=
19716         wl=$lt_prog_compiler_wl_CXX
19717         pic_flag=$lt_prog_compiler_pic_CXX
19718         compiler_flags=-v
19719         linker_flags=-v
19720         verstring=
19721         output_objdir=.
19722         libname=conftest
19723         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19724         allow_undefined_flag_CXX=
19725         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19726   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19727   ac_status=$?
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); }
19730         then
19731           archive_cmds_need_lc_CXX=no
19732         else
19733           archive_cmds_need_lc_CXX=yes
19734         fi
19735         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19736       else
19737         cat conftest.err 1>&5
19738       fi
19739       $rm conftest*
19740       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19741 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19742       ;;
19743     esac
19744   fi
19745   ;;
19746 esac
19747
19748 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19749 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19750 library_names_spec=
19751 libname_spec='lib$name'
19752 soname_spec=
19753 shrext_cmds=".so"
19754 postinstall_cmds=
19755 postuninstall_cmds=
19756 finish_cmds=
19757 finish_eval=
19758 shlibpath_var=
19759 shlibpath_overrides_runpath=unknown
19760 version_type=none
19761 dynamic_linker="$host_os ld.so"
19762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19763 if test "$GCC" = yes; then
19764   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19765   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19766     # if the path contains ";" then we assume it to be the separator
19767     # otherwise default to the standard path separator (i.e. ":") - it is
19768     # assumed that no part of a normal pathname contains ";" but that should
19769     # okay in the real world where ";" in dirpaths is itself problematic.
19770     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19771   else
19772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19773   fi
19774 else
19775   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19776 fi
19777 need_lib_prefix=unknown
19778 hardcode_into_libs=no
19779
19780 # when you set need_version to no, make sure it does not cause -set_version
19781 # flags to be left without arguments
19782 need_version=unknown
19783
19784 case $host_os in
19785 aix3*)
19786   version_type=linux
19787   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19788   shlibpath_var=LIBPATH
19789
19790   # AIX 3 has no versioning support, so we append a major version to the name.
19791   soname_spec='${libname}${release}${shared_ext}$major'
19792   ;;
19793
19794 aix4* | aix5*)
19795   version_type=linux
19796   need_lib_prefix=no
19797   need_version=no
19798   hardcode_into_libs=yes
19799   if test "$host_cpu" = ia64; then
19800     # AIX 5 supports IA64
19801     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19802     shlibpath_var=LD_LIBRARY_PATH
19803   else
19804     # With GCC up to 2.95.x, collect2 would create an import file
19805     # for dependence libraries.  The import file would start with
19806     # the line `#! .'.  This would cause the generated library to
19807     # depend on `.', always an invalid library.  This was fixed in
19808     # development snapshots of GCC prior to 3.0.
19809     case $host_os in
19810       aix4 | aix4.[01] | aix4.[01].*)
19811       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19812            echo ' yes '
19813            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19814         :
19815       else
19816         can_build_shared=no
19817       fi
19818       ;;
19819     esac
19820     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19821     # soname into executable. Probably we can add versioning support to
19822     # collect2, so additional links can be useful in future.
19823     if test "$aix_use_runtimelinking" = yes; then
19824       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19825       # instead of lib<name>.a to let people know that these are not
19826       # typical AIX shared libraries.
19827       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828     else
19829       # We preserve .a as extension for shared libraries through AIX4.2
19830       # and later when we are not doing run time linking.
19831       library_names_spec='${libname}${release}.a $libname.a'
19832       soname_spec='${libname}${release}${shared_ext}$major'
19833     fi
19834     shlibpath_var=LIBPATH
19835   fi
19836   ;;
19837
19838 amigaos*)
19839   library_names_spec='$libname.ixlibrary $libname.a'
19840   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19841   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'
19842   ;;
19843
19844 beos*)
19845   library_names_spec='${libname}${shared_ext}'
19846   dynamic_linker="$host_os ld.so"
19847   shlibpath_var=LIBRARY_PATH
19848   ;;
19849
19850 bsdi[45]*)
19851   version_type=linux
19852   need_version=no
19853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19854   soname_spec='${libname}${release}${shared_ext}$major'
19855   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19856   shlibpath_var=LD_LIBRARY_PATH
19857   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19858   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19859   # the default ld.so.conf also contains /usr/contrib/lib and
19860   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19861   # libtool to hard-code these into programs
19862   ;;
19863
19864 cygwin* | mingw* | pw32*)
19865   version_type=windows
19866   shrext_cmds=".dll"
19867   need_version=no
19868   need_lib_prefix=no
19869
19870   case $GCC,$host_os in
19871   yes,cygwin* | yes,mingw* | yes,pw32*)
19872     library_names_spec='$libname.dll.a'
19873     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19874     postinstall_cmds='base_file=`basename \${file}`~
19875       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19876       dldir=$destdir/`dirname \$dlpath`~
19877       test -d \$dldir || mkdir -p \$dldir~
19878       $install_prog $dir/$dlname \$dldir/$dlname~
19879       chmod a+x \$dldir/$dlname'
19880     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19881       dlpath=$dir/\$dldll~
19882        $rm \$dlpath'
19883     shlibpath_overrides_runpath=yes
19884
19885     case $host_os in
19886     cygwin*)
19887       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19888       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19889       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19890       ;;
19891     mingw*)
19892       # MinGW DLLs use traditional 'lib' prefix
19893       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19894       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19895       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19896         # It is most probably a Windows format PATH printed by
19897         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19898         # path with ; separators, and with drive letters. We can handle the
19899         # drive letters (cygwin fileutils understands them), so leave them,
19900         # especially as we might pass files found there to a mingw objdump,
19901         # which wouldn't understand a cygwinified path. Ahh.
19902         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19903       else
19904         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19905       fi
19906       ;;
19907     pw32*)
19908       # pw32 DLLs use 'pw' prefix rather than 'lib'
19909       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19910       ;;
19911     esac
19912     ;;
19913
19914   *)
19915     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19916     ;;
19917   esac
19918   dynamic_linker='Win32 ld.exe'
19919   # FIXME: first we should search . and the directory the executable is in
19920   shlibpath_var=PATH
19921   ;;
19922
19923 darwin* | rhapsody*)
19924   dynamic_linker="$host_os dyld"
19925   version_type=darwin
19926   need_lib_prefix=no
19927   need_version=no
19928   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19929   soname_spec='${libname}${release}${major}$shared_ext'
19930   shlibpath_overrides_runpath=yes
19931   shlibpath_var=DYLD_LIBRARY_PATH
19932   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19933   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19934   if test "$GCC" = yes; then
19935     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"`
19936   else
19937     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19938   fi
19939   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19940   ;;
19941
19942 dgux*)
19943   version_type=linux
19944   need_lib_prefix=no
19945   need_version=no
19946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19947   soname_spec='${libname}${release}${shared_ext}$major'
19948   shlibpath_var=LD_LIBRARY_PATH
19949   ;;
19950
19951 freebsd1*)
19952   dynamic_linker=no
19953   ;;
19954
19955 kfreebsd*-gnu)
19956   version_type=linux
19957   need_lib_prefix=no
19958   need_version=no
19959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19960   soname_spec='${libname}${release}${shared_ext}$major'
19961   shlibpath_var=LD_LIBRARY_PATH
19962   shlibpath_overrides_runpath=no
19963   hardcode_into_libs=yes
19964   dynamic_linker='GNU ld.so'
19965   ;;
19966
19967 freebsd* | dragonfly*)
19968   # DragonFly does not have aout.  When/if they implement a new
19969   # versioning mechanism, adjust this.
19970   if test -x /usr/bin/objformat; then
19971     objformat=`/usr/bin/objformat`
19972   else
19973     case $host_os in
19974     freebsd[123]*) objformat=aout ;;
19975     *) objformat=elf ;;
19976     esac
19977   fi
19978   version_type=freebsd-$objformat
19979   case $version_type in
19980     freebsd-elf*)
19981       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19982       need_version=no
19983       need_lib_prefix=no
19984       ;;
19985     freebsd-*)
19986       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19987       need_version=yes
19988       ;;
19989   esac
19990   shlibpath_var=LD_LIBRARY_PATH
19991   case $host_os in
19992   freebsd2*)
19993     shlibpath_overrides_runpath=yes
19994     ;;
19995   freebsd3.[01]* | freebsdelf3.[01]*)
19996     shlibpath_overrides_runpath=yes
19997     hardcode_into_libs=yes
19998     ;;
19999   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20000   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20001     shlibpath_overrides_runpath=no
20002     hardcode_into_libs=yes
20003     ;;
20004   freebsd*) # from 4.6 on
20005     shlibpath_overrides_runpath=yes
20006     hardcode_into_libs=yes
20007     ;;
20008   esac
20009   ;;
20010
20011 gnu*)
20012   version_type=linux
20013   need_lib_prefix=no
20014   need_version=no
20015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20016   soname_spec='${libname}${release}${shared_ext}$major'
20017   shlibpath_var=LD_LIBRARY_PATH
20018   hardcode_into_libs=yes
20019   ;;
20020
20021 hpux9* | hpux10* | hpux11*)
20022   # Give a soname corresponding to the major version so that dld.sl refuses to
20023   # link against other versions.
20024   version_type=sunos
20025   need_lib_prefix=no
20026   need_version=no
20027   case $host_cpu in
20028   ia64*)
20029     shrext_cmds='.so'
20030     hardcode_into_libs=yes
20031     dynamic_linker="$host_os dld.so"
20032     shlibpath_var=LD_LIBRARY_PATH
20033     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20035     soname_spec='${libname}${release}${shared_ext}$major'
20036     if test "X$HPUX_IA64_MODE" = X32; then
20037       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20038     else
20039       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20040     fi
20041     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20042     ;;
20043    hppa*64*)
20044      shrext_cmds='.sl'
20045      hardcode_into_libs=yes
20046      dynamic_linker="$host_os dld.sl"
20047      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20048      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20049      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20050      soname_spec='${libname}${release}${shared_ext}$major'
20051      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20052      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20053      ;;
20054    *)
20055     shrext_cmds='.sl'
20056     dynamic_linker="$host_os dld.sl"
20057     shlibpath_var=SHLIB_PATH
20058     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20059     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060     soname_spec='${libname}${release}${shared_ext}$major'
20061     ;;
20062   esac
20063   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20064   postinstall_cmds='chmod 555 $lib'
20065   ;;
20066
20067 interix3*)
20068   version_type=linux
20069   need_lib_prefix=no
20070   need_version=no
20071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072   soname_spec='${libname}${release}${shared_ext}$major'
20073   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20074   shlibpath_var=LD_LIBRARY_PATH
20075   shlibpath_overrides_runpath=no
20076   hardcode_into_libs=yes
20077   ;;
20078
20079 irix5* | irix6* | nonstopux*)
20080   case $host_os in
20081     nonstopux*) version_type=nonstopux ;;
20082     *)
20083         if test "$lt_cv_prog_gnu_ld" = yes; then
20084                 version_type=linux
20085         else
20086                 version_type=irix
20087         fi ;;
20088   esac
20089   need_lib_prefix=no
20090   need_version=no
20091   soname_spec='${libname}${release}${shared_ext}$major'
20092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20093   case $host_os in
20094   irix5* | nonstopux*)
20095     libsuff= shlibsuff=
20096     ;;
20097   *)
20098     case $LD in # libtool.m4 will add one of these switches to LD
20099     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20100       libsuff= shlibsuff= libmagic=32-bit;;
20101     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20102       libsuff=32 shlibsuff=N32 libmagic=N32;;
20103     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20104       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20105     *) libsuff= shlibsuff= libmagic=never-match;;
20106     esac
20107     ;;
20108   esac
20109   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20110   shlibpath_overrides_runpath=no
20111   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20112   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20113   hardcode_into_libs=yes
20114   ;;
20115
20116 # No shared lib support for Linux oldld, aout, or coff.
20117 linux*oldld* | linux*aout* | linux*coff*)
20118   dynamic_linker=no
20119   ;;
20120
20121 # This must be Linux ELF.
20122 linux*)
20123   version_type=linux
20124   need_lib_prefix=no
20125   need_version=no
20126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20127   soname_spec='${libname}${release}${shared_ext}$major'
20128   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20129   shlibpath_var=LD_LIBRARY_PATH
20130   shlibpath_overrides_runpath=no
20131   # This implies no fast_install, which is unacceptable.
20132   # Some rework will be needed to allow for fast_install
20133   # before this can be enabled.
20134   hardcode_into_libs=yes
20135
20136   # find out which ABI we are using
20137   libsuff=
20138   case "$host_cpu" in
20139   x86_64*|s390x*|powerpc64*)
20140     echo '#line 20140 "configure"' > conftest.$ac_ext
20141     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20142   (eval $ac_compile) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; then
20146       case `/usr/bin/file conftest.$ac_objext` in
20147       *64-bit*)
20148         libsuff=64
20149         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20150         ;;
20151       esac
20152     fi
20153     rm -rf conftest*
20154     ;;
20155   esac
20156
20157   # Append ld.so.conf contents to the search path
20158   if test -f /etc/ld.so.conf; then
20159     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' ' '`
20160     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
20161   fi
20162
20163   # We used to test for /lib/ld.so.1 and disable shared libraries on
20164   # powerpc, because MkLinux only supported shared libraries with the
20165   # GNU dynamic linker.  Since this was broken with cross compilers,
20166   # most powerpc-linux boxes support dynamic linking these days and
20167   # people can always --disable-shared, the test was removed, and we
20168   # assume the GNU/Linux dynamic linker is in use.
20169   dynamic_linker='GNU/Linux ld.so'
20170   ;;
20171
20172 knetbsd*-gnu)
20173   version_type=linux
20174   need_lib_prefix=no
20175   need_version=no
20176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20177   soname_spec='${libname}${release}${shared_ext}$major'
20178   shlibpath_var=LD_LIBRARY_PATH
20179   shlibpath_overrides_runpath=no
20180   hardcode_into_libs=yes
20181   dynamic_linker='GNU ld.so'
20182   ;;
20183
20184 netbsd*)
20185   version_type=sunos
20186   need_lib_prefix=no
20187   need_version=no
20188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20191     dynamic_linker='NetBSD (a.out) ld.so'
20192   else
20193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194     soname_spec='${libname}${release}${shared_ext}$major'
20195     dynamic_linker='NetBSD ld.elf_so'
20196   fi
20197   shlibpath_var=LD_LIBRARY_PATH
20198   shlibpath_overrides_runpath=yes
20199   hardcode_into_libs=yes
20200   ;;
20201
20202 newsos6)
20203   version_type=linux
20204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205   shlibpath_var=LD_LIBRARY_PATH
20206   shlibpath_overrides_runpath=yes
20207   ;;
20208
20209 nto-qnx*)
20210   version_type=linux
20211   need_lib_prefix=no
20212   need_version=no
20213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214   soname_spec='${libname}${release}${shared_ext}$major'
20215   shlibpath_var=LD_LIBRARY_PATH
20216   shlibpath_overrides_runpath=yes
20217   ;;
20218
20219 openbsd*)
20220   version_type=sunos
20221   sys_lib_dlsearch_path_spec="/usr/lib"
20222   need_lib_prefix=no
20223   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20224   case $host_os in
20225     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20226     *)                         need_version=no  ;;
20227   esac
20228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20230   shlibpath_var=LD_LIBRARY_PATH
20231   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20232     case $host_os in
20233       openbsd2.[89] | openbsd2.[89].*)
20234         shlibpath_overrides_runpath=no
20235         ;;
20236       *)
20237         shlibpath_overrides_runpath=yes
20238         ;;
20239       esac
20240   else
20241     shlibpath_overrides_runpath=yes
20242   fi
20243   ;;
20244
20245 os2*)
20246   libname_spec='$name'
20247   shrext_cmds=".dll"
20248   need_lib_prefix=no
20249   library_names_spec='$libname${shared_ext} $libname.a'
20250   dynamic_linker='OS/2 ld.exe'
20251   shlibpath_var=LIBPATH
20252   ;;
20253
20254 osf3* | osf4* | osf5*)
20255   version_type=osf
20256   need_lib_prefix=no
20257   need_version=no
20258   soname_spec='${libname}${release}${shared_ext}$major'
20259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260   shlibpath_var=LD_LIBRARY_PATH
20261   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20262   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20263   ;;
20264
20265 solaris*)
20266   version_type=linux
20267   need_lib_prefix=no
20268   need_version=no
20269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270   soname_spec='${libname}${release}${shared_ext}$major'
20271   shlibpath_var=LD_LIBRARY_PATH
20272   shlibpath_overrides_runpath=yes
20273   hardcode_into_libs=yes
20274   # ldd complains unless libraries are executable
20275   postinstall_cmds='chmod +x $lib'
20276   ;;
20277
20278 sunos4*)
20279   version_type=sunos
20280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20282   shlibpath_var=LD_LIBRARY_PATH
20283   shlibpath_overrides_runpath=yes
20284   if test "$with_gnu_ld" = yes; then
20285     need_lib_prefix=no
20286   fi
20287   need_version=yes
20288   ;;
20289
20290 sysv4 | sysv4.3*)
20291   version_type=linux
20292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20293   soname_spec='${libname}${release}${shared_ext}$major'
20294   shlibpath_var=LD_LIBRARY_PATH
20295   case $host_vendor in
20296     sni)
20297       shlibpath_overrides_runpath=no
20298       need_lib_prefix=no
20299       export_dynamic_flag_spec='${wl}-Blargedynsym'
20300       runpath_var=LD_RUN_PATH
20301       ;;
20302     siemens)
20303       need_lib_prefix=no
20304       ;;
20305     motorola)
20306       need_lib_prefix=no
20307       need_version=no
20308       shlibpath_overrides_runpath=no
20309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20310       ;;
20311   esac
20312   ;;
20313
20314 sysv4*MP*)
20315   if test -d /usr/nec ;then
20316     version_type=linux
20317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20318     soname_spec='$libname${shared_ext}.$major'
20319     shlibpath_var=LD_LIBRARY_PATH
20320   fi
20321   ;;
20322
20323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20324   version_type=freebsd-elf
20325   need_lib_prefix=no
20326   need_version=no
20327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20328   soname_spec='${libname}${release}${shared_ext}$major'
20329   shlibpath_var=LD_LIBRARY_PATH
20330   hardcode_into_libs=yes
20331   if test "$with_gnu_ld" = yes; then
20332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20333     shlibpath_overrides_runpath=no
20334   else
20335     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20336     shlibpath_overrides_runpath=yes
20337     case $host_os in
20338       sco3.2v5*)
20339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20340         ;;
20341     esac
20342   fi
20343   sys_lib_dlsearch_path_spec='/usr/lib'
20344   ;;
20345
20346 uts4*)
20347   version_type=linux
20348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20349   soname_spec='${libname}${release}${shared_ext}$major'
20350   shlibpath_var=LD_LIBRARY_PATH
20351   ;;
20352
20353 *)
20354   dynamic_linker=no
20355   ;;
20356 esac
20357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20358 echo "${ECHO_T}$dynamic_linker" >&6; }
20359 test "$dynamic_linker" = no && can_build_shared=no
20360
20361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20362 if test "$GCC" = yes; then
20363   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20364 fi
20365
20366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20368 hardcode_action_CXX=
20369 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20370    test -n "$runpath_var_CXX" || \
20371    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20372
20373   # We can hardcode non-existant directories.
20374   if test "$hardcode_direct_CXX" != no &&
20375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20376      # have to relink, otherwise we might link with an installed library
20377      # when we should be linking with a yet-to-be-installed one
20378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20379      test "$hardcode_minus_L_CXX" != no; then
20380     # Linking always hardcodes the temporary library directory.
20381     hardcode_action_CXX=relink
20382   else
20383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20384     hardcode_action_CXX=immediate
20385   fi
20386 else
20387   # We cannot hardcode anything, or else we can only hardcode existing
20388   # directories.
20389   hardcode_action_CXX=unsupported
20390 fi
20391 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20392 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20393
20394 if test "$hardcode_action_CXX" = relink; then
20395   # Fast installation is not supported
20396   enable_fast_install=no
20397 elif test "$shlibpath_overrides_runpath" = yes ||
20398      test "$enable_shared" = no; then
20399   # Fast installation is not necessary
20400   enable_fast_install=needless
20401 fi
20402
20403
20404 # The else clause should only fire when bootstrapping the
20405 # libtool distribution, otherwise you forgot to ship ltmain.sh
20406 # with your package, and you will get complaints that there are
20407 # no rules to generate ltmain.sh.
20408 if test -f "$ltmain"; then
20409   # See if we are running on zsh, and set the options which allow our commands through
20410   # without removal of \ escapes.
20411   if test -n "${ZSH_VERSION+set}" ; then
20412     setopt NO_GLOB_SUBST
20413   fi
20414   # Now quote all the things that may contain metacharacters while being
20415   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20416   # variables and quote the copies for generation of the libtool script.
20417   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20418     SED SHELL STRIP \
20419     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20420     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20421     deplibs_check_method reload_flag reload_cmds need_locks \
20422     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20423     lt_cv_sys_global_symbol_to_c_name_address \
20424     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20425     old_postinstall_cmds old_postuninstall_cmds \
20426     compiler_CXX \
20427     CC_CXX \
20428     LD_CXX \
20429     lt_prog_compiler_wl_CXX \
20430     lt_prog_compiler_pic_CXX \
20431     lt_prog_compiler_static_CXX \
20432     lt_prog_compiler_no_builtin_flag_CXX \
20433     export_dynamic_flag_spec_CXX \
20434     thread_safe_flag_spec_CXX \
20435     whole_archive_flag_spec_CXX \
20436     enable_shared_with_static_runtimes_CXX \
20437     old_archive_cmds_CXX \
20438     old_archive_from_new_cmds_CXX \
20439     predep_objects_CXX \
20440     postdep_objects_CXX \
20441     predeps_CXX \
20442     postdeps_CXX \
20443     compiler_lib_search_path_CXX \
20444     archive_cmds_CXX \
20445     archive_expsym_cmds_CXX \
20446     postinstall_cmds_CXX \
20447     postuninstall_cmds_CXX \
20448     old_archive_from_expsyms_cmds_CXX \
20449     allow_undefined_flag_CXX \
20450     no_undefined_flag_CXX \
20451     export_symbols_cmds_CXX \
20452     hardcode_libdir_flag_spec_CXX \
20453     hardcode_libdir_flag_spec_ld_CXX \
20454     hardcode_libdir_separator_CXX \
20455     hardcode_automatic_CXX \
20456     module_cmds_CXX \
20457     module_expsym_cmds_CXX \
20458     lt_cv_prog_compiler_c_o_CXX \
20459     exclude_expsyms_CXX \
20460     include_expsyms_CXX; do
20461
20462     case $var in
20463     old_archive_cmds_CXX | \
20464     old_archive_from_new_cmds_CXX | \
20465     archive_cmds_CXX | \
20466     archive_expsym_cmds_CXX | \
20467     module_cmds_CXX | \
20468     module_expsym_cmds_CXX | \
20469     old_archive_from_expsyms_cmds_CXX | \
20470     export_symbols_cmds_CXX | \
20471     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20472     postinstall_cmds | postuninstall_cmds | \
20473     old_postinstall_cmds | old_postuninstall_cmds | \
20474     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20475       # Double-quote double-evaled strings.
20476       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20477       ;;
20478     *)
20479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20480       ;;
20481     esac
20482   done
20483
20484   case $lt_echo in
20485   *'\$0 --fallback-echo"')
20486     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20487     ;;
20488   esac
20489
20490 cfgfile="$ofile"
20491
20492   cat <<__EOF__ >> "$cfgfile"
20493 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20494
20495 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20496
20497 # Shell to use when invoking shell scripts.
20498 SHELL=$lt_SHELL
20499
20500 # Whether or not to build shared libraries.
20501 build_libtool_libs=$enable_shared
20502
20503 # Whether or not to build static libraries.
20504 build_old_libs=$enable_static
20505
20506 # Whether or not to add -lc for building shared libraries.
20507 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20508
20509 # Whether or not to disallow shared libs when runtime libs are static
20510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20511
20512 # Whether or not to optimize for fast installation.
20513 fast_install=$enable_fast_install
20514
20515 # The host system.
20516 host_alias=$host_alias
20517 host=$host
20518 host_os=$host_os
20519
20520 # The build system.
20521 build_alias=$build_alias
20522 build=$build
20523 build_os=$build_os
20524
20525 # An echo program that does not interpret backslashes.
20526 echo=$lt_echo
20527
20528 # The archiver.
20529 AR=$lt_AR
20530 AR_FLAGS=$lt_AR_FLAGS
20531
20532 # A C compiler.
20533 LTCC=$lt_LTCC
20534
20535 # LTCC compiler flags.
20536 LTCFLAGS=$lt_LTCFLAGS
20537
20538 # A language-specific compiler.
20539 CC=$lt_compiler_CXX
20540
20541 # Is the compiler the GNU C compiler?
20542 with_gcc=$GCC_CXX
20543
20544 # An ERE matcher.
20545 EGREP=$lt_EGREP
20546
20547 # The linker used to build libraries.
20548 LD=$lt_LD_CXX
20549
20550 # Whether we need hard or soft links.
20551 LN_S=$lt_LN_S
20552
20553 # A BSD-compatible nm program.
20554 NM=$lt_NM
20555
20556 # A symbol stripping program
20557 STRIP=$lt_STRIP
20558
20559 # Used to examine libraries when file_magic_cmd begins "file"
20560 MAGIC_CMD=$MAGIC_CMD
20561
20562 # Used on cygwin: DLL creation program.
20563 DLLTOOL="$DLLTOOL"
20564
20565 # Used on cygwin: object dumper.
20566 OBJDUMP="$OBJDUMP"
20567
20568 # Used on cygwin: assembler.
20569 AS="$AS"
20570
20571 # The name of the directory that contains temporary libtool files.
20572 objdir=$objdir
20573
20574 # How to create reloadable object files.
20575 reload_flag=$lt_reload_flag
20576 reload_cmds=$lt_reload_cmds
20577
20578 # How to pass a linker flag through the compiler.
20579 wl=$lt_lt_prog_compiler_wl_CXX
20580
20581 # Object file suffix (normally "o").
20582 objext="$ac_objext"
20583
20584 # Old archive suffix (normally "a").
20585 libext="$libext"
20586
20587 # Shared library suffix (normally ".so").
20588 shrext_cmds='$shrext_cmds'
20589
20590 # Executable file suffix (normally "").
20591 exeext="$exeext"
20592
20593 # Additional compiler flags for building library objects.
20594 pic_flag=$lt_lt_prog_compiler_pic_CXX
20595 pic_mode=$pic_mode
20596
20597 # What is the maximum length of a command?
20598 max_cmd_len=$lt_cv_sys_max_cmd_len
20599
20600 # Does compiler simultaneously support -c and -o options?
20601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20602
20603 # Must we lock files when doing compilation?
20604 need_locks=$lt_need_locks
20605
20606 # Do we need the lib prefix for modules?
20607 need_lib_prefix=$need_lib_prefix
20608
20609 # Do we need a version for libraries?
20610 need_version=$need_version
20611
20612 # Whether dlopen is supported.
20613 dlopen_support=$enable_dlopen
20614
20615 # Whether dlopen of programs is supported.
20616 dlopen_self=$enable_dlopen_self
20617
20618 # Whether dlopen of statically linked programs is supported.
20619 dlopen_self_static=$enable_dlopen_self_static
20620
20621 # Compiler flag to prevent dynamic linking.
20622 link_static_flag=$lt_lt_prog_compiler_static_CXX
20623
20624 # Compiler flag to turn off builtin functions.
20625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20626
20627 # Compiler flag to allow reflexive dlopens.
20628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20629
20630 # Compiler flag to generate shared objects directly from archives.
20631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20632
20633 # Compiler flag to generate thread-safe objects.
20634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20635
20636 # Library versioning type.
20637 version_type=$version_type
20638
20639 # Format of library name prefix.
20640 libname_spec=$lt_libname_spec
20641
20642 # List of archive names.  First name is the real one, the rest are links.
20643 # The last name is the one that the linker finds with -lNAME.
20644 library_names_spec=$lt_library_names_spec
20645
20646 # The coded name of the library, if different from the real name.
20647 soname_spec=$lt_soname_spec
20648
20649 # Commands used to build and install an old-style archive.
20650 RANLIB=$lt_RANLIB
20651 old_archive_cmds=$lt_old_archive_cmds_CXX
20652 old_postinstall_cmds=$lt_old_postinstall_cmds
20653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20654
20655 # Create an old-style archive from a shared archive.
20656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20657
20658 # Create a temporary old-style archive to link instead of a shared archive.
20659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20660
20661 # Commands used to build and install a shared archive.
20662 archive_cmds=$lt_archive_cmds_CXX
20663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20664 postinstall_cmds=$lt_postinstall_cmds
20665 postuninstall_cmds=$lt_postuninstall_cmds
20666
20667 # Commands used to build a loadable module (assumed same as above if empty)
20668 module_cmds=$lt_module_cmds_CXX
20669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20670
20671 # Commands to strip libraries.
20672 old_striplib=$lt_old_striplib
20673 striplib=$lt_striplib
20674
20675 # Dependencies to place before the objects being linked to create a
20676 # shared library.
20677 predep_objects=$lt_predep_objects_CXX
20678
20679 # Dependencies to place after the objects being linked to create a
20680 # shared library.
20681 postdep_objects=$lt_postdep_objects_CXX
20682
20683 # Dependencies to place before the objects being linked to create a
20684 # shared library.
20685 predeps=$lt_predeps_CXX
20686
20687 # Dependencies to place after the objects being linked to create a
20688 # shared library.
20689 postdeps=$lt_postdeps_CXX
20690
20691 # The library search path used internally by the compiler when linking
20692 # a shared library.
20693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20694
20695 # Method to check whether dependent libraries are shared objects.
20696 deplibs_check_method=$lt_deplibs_check_method
20697
20698 # Command to use when deplibs_check_method == file_magic.
20699 file_magic_cmd=$lt_file_magic_cmd
20700
20701 # Flag that allows shared libraries with undefined symbols to be built.
20702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20703
20704 # Flag that forces no undefined symbols.
20705 no_undefined_flag=$lt_no_undefined_flag_CXX
20706
20707 # Commands used to finish a libtool library installation in a directory.
20708 finish_cmds=$lt_finish_cmds
20709
20710 # Same as above, but a single script fragment to be evaled but not shown.
20711 finish_eval=$lt_finish_eval
20712
20713 # Take the output of nm and produce a listing of raw symbols and C names.
20714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20715
20716 # Transform the output of nm in a proper C declaration
20717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20718
20719 # Transform the output of nm in a C name address pair
20720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20721
20722 # This is the shared library runtime path variable.
20723 runpath_var=$runpath_var
20724
20725 # This is the shared library path variable.
20726 shlibpath_var=$shlibpath_var
20727
20728 # Is shlibpath searched before the hard-coded library search path?
20729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20730
20731 # How to hardcode a shared library path into an executable.
20732 hardcode_action=$hardcode_action_CXX
20733
20734 # Whether we should hardcode library paths into libraries.
20735 hardcode_into_libs=$hardcode_into_libs
20736
20737 # Flag to hardcode \$libdir into a binary during linking.
20738 # This must work even if \$libdir does not exist.
20739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20740
20741 # If ld is used when linking, flag to hardcode \$libdir into
20742 # a binary during linking. This must work even if \$libdir does
20743 # not exist.
20744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20745
20746 # Whether we need a single -rpath flag with a separated argument.
20747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20748
20749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20750 # resulting binary.
20751 hardcode_direct=$hardcode_direct_CXX
20752
20753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20754 # resulting binary.
20755 hardcode_minus_L=$hardcode_minus_L_CXX
20756
20757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20758 # the resulting binary.
20759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20760
20761 # Set to yes if building a shared library automatically hardcodes DIR into the library
20762 # and all subsequent libraries and executables linked against it.
20763 hardcode_automatic=$hardcode_automatic_CXX
20764
20765 # Variables whose values should be saved in libtool wrapper scripts and
20766 # restored at relink time.
20767 variables_saved_for_relink="$variables_saved_for_relink"
20768
20769 # Whether libtool must link a program against all its dependency libraries.
20770 link_all_deplibs=$link_all_deplibs_CXX
20771
20772 # Compile-time system search path for libraries
20773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20774
20775 # Run-time system search path for libraries
20776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20777
20778 # Fix the shell variable \$srcfile for the compiler.
20779 fix_srcfile_path="$fix_srcfile_path_CXX"
20780
20781 # Set to yes if exported symbols are required.
20782 always_export_symbols=$always_export_symbols_CXX
20783
20784 # The commands to list exported symbols.
20785 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20786
20787 # The commands to extract the exported symbol list from a shared archive.
20788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20789
20790 # Symbols that should not be listed in the preloaded symbols.
20791 exclude_expsyms=$lt_exclude_expsyms_CXX
20792
20793 # Symbols that must always be exported.
20794 include_expsyms=$lt_include_expsyms_CXX
20795
20796 # ### END LIBTOOL TAG CONFIG: $tagname
20797
20798 __EOF__
20799
20800
20801 else
20802   # If there is no Makefile yet, we rely on a make rule to execute
20803   # `config.status --recheck' to rerun these tests and create the
20804   # libtool script then.
20805   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20806   if test -f "$ltmain_in"; then
20807     test -f Makefile && make "$ltmain"
20808   fi
20809 fi
20810
20811
20812 ac_ext=c
20813 ac_cpp='$CPP $CPPFLAGS'
20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20817
20818 CC=$lt_save_CC
20819 LDCXX=$LD
20820 LD=$lt_save_LD
20821 GCC=$lt_save_GCC
20822 with_gnu_ldcxx=$with_gnu_ld
20823 with_gnu_ld=$lt_save_with_gnu_ld
20824 lt_cv_path_LDCXX=$lt_cv_path_LD
20825 lt_cv_path_LD=$lt_save_path_LD
20826 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20827 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20828
20829         else
20830           tagname=""
20831         fi
20832         ;;
20833
20834       F77)
20835         if test -n "$F77" && test "X$F77" != "Xno"; then
20836
20837 ac_ext=f
20838 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20839 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20841
20842
20843 archive_cmds_need_lc_F77=no
20844 allow_undefined_flag_F77=
20845 always_export_symbols_F77=no
20846 archive_expsym_cmds_F77=
20847 export_dynamic_flag_spec_F77=
20848 hardcode_direct_F77=no
20849 hardcode_libdir_flag_spec_F77=
20850 hardcode_libdir_flag_spec_ld_F77=
20851 hardcode_libdir_separator_F77=
20852 hardcode_minus_L_F77=no
20853 hardcode_automatic_F77=no
20854 module_cmds_F77=
20855 module_expsym_cmds_F77=
20856 link_all_deplibs_F77=unknown
20857 old_archive_cmds_F77=$old_archive_cmds
20858 no_undefined_flag_F77=
20859 whole_archive_flag_spec_F77=
20860 enable_shared_with_static_runtimes_F77=no
20861
20862 # Source file extension for f77 test sources.
20863 ac_ext=f
20864
20865 # Object file extension for compiled f77 test sources.
20866 objext=o
20867 objext_F77=$objext
20868
20869 # Code to be used in simple compile tests
20870 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
20871
20872 # Code to be used in simple link tests
20873 lt_simple_link_test_code="      program t\n      end\n"
20874
20875 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20876
20877 # If no C compiler was specified, use CC.
20878 LTCC=${LTCC-"$CC"}
20879
20880 # If no C compiler flags were specified, use CFLAGS.
20881 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20882
20883 # Allow CC to be a program name with arguments.
20884 compiler=$CC
20885
20886
20887 # save warnings/boilerplate of simple test code
20888 ac_outfile=conftest.$ac_objext
20889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20891 _lt_compiler_boilerplate=`cat conftest.err`
20892 $rm conftest*
20893
20894 ac_outfile=conftest.$ac_objext
20895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20897 _lt_linker_boilerplate=`cat conftest.err`
20898 $rm conftest*
20899
20900
20901 # Allow CC to be a program name with arguments.
20902 lt_save_CC="$CC"
20903 CC=${F77-"f77"}
20904 compiler=$CC
20905 compiler_F77=$CC
20906 for cc_temp in $compiler""; do
20907   case $cc_temp in
20908     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20909     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20910     \-*) ;;
20911     *) break;;
20912   esac
20913 done
20914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20915
20916
20917 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20918 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20919 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20920 echo "${ECHO_T}$can_build_shared" >&6; }
20921
20922 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20923 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20924 test "$can_build_shared" = "no" && enable_shared=no
20925
20926 # On AIX, shared libraries and static libraries use the same namespace, and
20927 # are all built from PIC.
20928 case $host_os in
20929 aix3*)
20930   test "$enable_shared" = yes && enable_static=no
20931   if test -n "$RANLIB"; then
20932     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20933     postinstall_cmds='$RANLIB $lib'
20934   fi
20935   ;;
20936 aix4* | aix5*)
20937   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20938     test "$enable_shared" = yes && enable_static=no
20939   fi
20940   ;;
20941 esac
20942 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20943 echo "${ECHO_T}$enable_shared" >&6; }
20944
20945 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20946 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20947 # Make sure either enable_shared or enable_static is yes.
20948 test "$enable_shared" = yes || enable_static=yes
20949 { echo "$as_me:$LINENO: result: $enable_static" >&5
20950 echo "${ECHO_T}$enable_static" >&6; }
20951
20952 GCC_F77="$G77"
20953 LD_F77="$LD"
20954
20955 lt_prog_compiler_wl_F77=
20956 lt_prog_compiler_pic_F77=
20957 lt_prog_compiler_static_F77=
20958
20959 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20960 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20961
20962   if test "$GCC" = yes; then
20963     lt_prog_compiler_wl_F77='-Wl,'
20964     lt_prog_compiler_static_F77='-static'
20965
20966     case $host_os in
20967       aix*)
20968       # All AIX code is PIC.
20969       if test "$host_cpu" = ia64; then
20970         # AIX 5 now supports IA64 processor
20971         lt_prog_compiler_static_F77='-Bstatic'
20972       fi
20973       ;;
20974
20975     amigaos*)
20976       # FIXME: we need at least 68020 code to build shared libraries, but
20977       # adding the `-m68020' flag to GCC prevents building anything better,
20978       # like `-m68040'.
20979       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20980       ;;
20981
20982     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20983       # PIC is the default for these OSes.
20984       ;;
20985
20986     mingw* | pw32* | os2*)
20987       # This hack is so that the source file can tell whether it is being
20988       # built for inclusion in a dll (and should export symbols for example).
20989       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20990       ;;
20991
20992     darwin* | rhapsody*)
20993       # PIC is the default on this platform
20994       # Common symbols not allowed in MH_DYLIB files
20995       lt_prog_compiler_pic_F77='-fno-common'
20996       ;;
20997
20998     interix3*)
20999       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21000       # Instead, we relocate shared libraries at runtime.
21001       ;;
21002
21003     msdosdjgpp*)
21004       # Just because we use GCC doesn't mean we suddenly get shared libraries
21005       # on systems that don't support them.
21006       lt_prog_compiler_can_build_shared_F77=no
21007       enable_shared=no
21008       ;;
21009
21010     sysv4*MP*)
21011       if test -d /usr/nec; then
21012         lt_prog_compiler_pic_F77=-Kconform_pic
21013       fi
21014       ;;
21015
21016     hpux*)
21017       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21018       # not for PA HP-UX.
21019       case $host_cpu in
21020       hppa*64*|ia64*)
21021         # +Z the default
21022         ;;
21023       *)
21024         lt_prog_compiler_pic_F77='-fPIC'
21025         ;;
21026       esac
21027       ;;
21028
21029     *)
21030       lt_prog_compiler_pic_F77='-fPIC'
21031       ;;
21032     esac
21033   else
21034     # PORTME Check for flag to pass linker flags through the system compiler.
21035     case $host_os in
21036     aix*)
21037       lt_prog_compiler_wl_F77='-Wl,'
21038       if test "$host_cpu" = ia64; then
21039         # AIX 5 now supports IA64 processor
21040         lt_prog_compiler_static_F77='-Bstatic'
21041       else
21042         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21043       fi
21044       ;;
21045       darwin*)
21046         # PIC is the default on this platform
21047         # Common symbols not allowed in MH_DYLIB files
21048        case $cc_basename in
21049          xlc*)
21050          lt_prog_compiler_pic_F77='-qnocommon'
21051          lt_prog_compiler_wl_F77='-Wl,'
21052          ;;
21053        esac
21054        ;;
21055
21056     mingw* | pw32* | os2*)
21057       # This hack is so that the source file can tell whether it is being
21058       # built for inclusion in a dll (and should export symbols for example).
21059       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21060       ;;
21061
21062     hpux9* | hpux10* | hpux11*)
21063       lt_prog_compiler_wl_F77='-Wl,'
21064       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21065       # not for PA HP-UX.
21066       case $host_cpu in
21067       hppa*64*|ia64*)
21068         # +Z the default
21069         ;;
21070       *)
21071         lt_prog_compiler_pic_F77='+Z'
21072         ;;
21073       esac
21074       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21075       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21076       ;;
21077
21078     irix5* | irix6* | nonstopux*)
21079       lt_prog_compiler_wl_F77='-Wl,'
21080       # PIC (with -KPIC) is the default.
21081       lt_prog_compiler_static_F77='-non_shared'
21082       ;;
21083
21084     newsos6)
21085       lt_prog_compiler_pic_F77='-KPIC'
21086       lt_prog_compiler_static_F77='-Bstatic'
21087       ;;
21088
21089     linux*)
21090       case $cc_basename in
21091       icc* | ecc*)
21092         lt_prog_compiler_wl_F77='-Wl,'
21093         lt_prog_compiler_pic_F77='-KPIC'
21094         lt_prog_compiler_static_F77='-static'
21095         ;;
21096       pgcc* | pgf77* | pgf90* | pgf95*)
21097         # Portland Group compilers (*not* the Pentium gcc compiler,
21098         # which looks to be a dead project)
21099         lt_prog_compiler_wl_F77='-Wl,'
21100         lt_prog_compiler_pic_F77='-fpic'
21101         lt_prog_compiler_static_F77='-Bstatic'
21102         ;;
21103       ccc*)
21104         lt_prog_compiler_wl_F77='-Wl,'
21105         # All Alpha code is PIC.
21106         lt_prog_compiler_static_F77='-non_shared'
21107         ;;
21108       esac
21109       ;;
21110
21111     osf3* | osf4* | osf5*)
21112       lt_prog_compiler_wl_F77='-Wl,'
21113       # All OSF/1 code is PIC.
21114       lt_prog_compiler_static_F77='-non_shared'
21115       ;;
21116
21117     solaris*)
21118       lt_prog_compiler_pic_F77='-KPIC'
21119       lt_prog_compiler_static_F77='-Bstatic'
21120       case $cc_basename in
21121       f77* | f90* | f95*)
21122         lt_prog_compiler_wl_F77='-Qoption ld ';;
21123       *)
21124         lt_prog_compiler_wl_F77='-Wl,';;
21125       esac
21126       ;;
21127
21128     sunos4*)
21129       lt_prog_compiler_wl_F77='-Qoption ld '
21130       lt_prog_compiler_pic_F77='-PIC'
21131       lt_prog_compiler_static_F77='-Bstatic'
21132       ;;
21133
21134     sysv4 | sysv4.2uw2* | sysv4.3*)
21135       lt_prog_compiler_wl_F77='-Wl,'
21136       lt_prog_compiler_pic_F77='-KPIC'
21137       lt_prog_compiler_static_F77='-Bstatic'
21138       ;;
21139
21140     sysv4*MP*)
21141       if test -d /usr/nec ;then
21142         lt_prog_compiler_pic_F77='-Kconform_pic'
21143         lt_prog_compiler_static_F77='-Bstatic'
21144       fi
21145       ;;
21146
21147     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21148       lt_prog_compiler_wl_F77='-Wl,'
21149       lt_prog_compiler_pic_F77='-KPIC'
21150       lt_prog_compiler_static_F77='-Bstatic'
21151       ;;
21152
21153     unicos*)
21154       lt_prog_compiler_wl_F77='-Wl,'
21155       lt_prog_compiler_can_build_shared_F77=no
21156       ;;
21157
21158     uts4*)
21159       lt_prog_compiler_pic_F77='-pic'
21160       lt_prog_compiler_static_F77='-Bstatic'
21161       ;;
21162
21163     *)
21164       lt_prog_compiler_can_build_shared_F77=no
21165       ;;
21166     esac
21167   fi
21168
21169 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21170 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21171
21172 #
21173 # Check to make sure the PIC flag actually works.
21174 #
21175 if test -n "$lt_prog_compiler_pic_F77"; then
21176
21177 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21178 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21179 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21180   echo $ECHO_N "(cached) $ECHO_C" >&6
21181 else
21182   lt_prog_compiler_pic_works_F77=no
21183   ac_outfile=conftest.$ac_objext
21184    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21185    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21186    # Insert the option either (1) after the last *FLAGS variable, or
21187    # (2) before a word containing "conftest.", or (3) at the end.
21188    # Note that $ac_compile itself does not contain backslashes and begins
21189    # with a dollar sign (not a hyphen), so the echo should work correctly.
21190    # The option is referenced via a variable to avoid confusing sed.
21191    lt_compile=`echo "$ac_compile" | $SED \
21192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21194    -e 's:$: $lt_compiler_flag:'`
21195    (eval echo "\"\$as_me:21195: $lt_compile\"" >&5)
21196    (eval "$lt_compile" 2>conftest.err)
21197    ac_status=$?
21198    cat conftest.err >&5
21199    echo "$as_me:21199: \$? = $ac_status" >&5
21200    if (exit $ac_status) && test -s "$ac_outfile"; then
21201      # The compiler can only warn and ignore the option if not recognized
21202      # So say no if there are warnings other than the usual output.
21203      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21204      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21205      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21206        lt_prog_compiler_pic_works_F77=yes
21207      fi
21208    fi
21209    $rm conftest*
21210
21211 fi
21212 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21213 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21214
21215 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21216     case $lt_prog_compiler_pic_F77 in
21217      "" | " "*) ;;
21218      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21219      esac
21220 else
21221     lt_prog_compiler_pic_F77=
21222      lt_prog_compiler_can_build_shared_F77=no
21223 fi
21224
21225 fi
21226 case $host_os in
21227   # For platforms which do not support PIC, -DPIC is meaningless:
21228   *djgpp*)
21229     lt_prog_compiler_pic_F77=
21230     ;;
21231   *)
21232     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21233     ;;
21234 esac
21235
21236 #
21237 # Check to make sure the static flag actually works.
21238 #
21239 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21240 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21241 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21242 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245   lt_prog_compiler_static_works_F77=no
21246    save_LDFLAGS="$LDFLAGS"
21247    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21248    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21249    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21250      # The linker can only warn and ignore the option if not recognized
21251      # So say no if there are warnings
21252      if test -s conftest.err; then
21253        # Append any errors to the config.log.
21254        cat conftest.err 1>&5
21255        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21256        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21257        if diff conftest.exp conftest.er2 >/dev/null; then
21258          lt_prog_compiler_static_works_F77=yes
21259        fi
21260      else
21261        lt_prog_compiler_static_works_F77=yes
21262      fi
21263    fi
21264    $rm conftest*
21265    LDFLAGS="$save_LDFLAGS"
21266
21267 fi
21268 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21269 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21270
21271 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21272     :
21273 else
21274     lt_prog_compiler_static_F77=
21275 fi
21276
21277
21278 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21279 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21280 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21281   echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283   lt_cv_prog_compiler_c_o_F77=no
21284    $rm -r conftest 2>/dev/null
21285    mkdir conftest
21286    cd conftest
21287    mkdir out
21288    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21289
21290    lt_compiler_flag="-o out/conftest2.$ac_objext"
21291    # Insert the option either (1) after the last *FLAGS variable, or
21292    # (2) before a word containing "conftest.", or (3) at the end.
21293    # Note that $ac_compile itself does not contain backslashes and begins
21294    # with a dollar sign (not a hyphen), so the echo should work correctly.
21295    lt_compile=`echo "$ac_compile" | $SED \
21296    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21298    -e 's:$: $lt_compiler_flag:'`
21299    (eval echo "\"\$as_me:21299: $lt_compile\"" >&5)
21300    (eval "$lt_compile" 2>out/conftest.err)
21301    ac_status=$?
21302    cat out/conftest.err >&5
21303    echo "$as_me:21303: \$? = $ac_status" >&5
21304    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21305    then
21306      # The compiler can only warn and ignore the option if not recognized
21307      # So say no if there are warnings
21308      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21309      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21310      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21311        lt_cv_prog_compiler_c_o_F77=yes
21312      fi
21313    fi
21314    chmod u+w . 2>&5
21315    $rm conftest*
21316    # SGI C++ compiler will create directory out/ii_files/ for
21317    # template instantiation
21318    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21319    $rm out/* && rmdir out
21320    cd ..
21321    rmdir conftest
21322    $rm conftest*
21323
21324 fi
21325 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21326 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21327
21328
21329 hard_links="nottested"
21330 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21331   # do not overwrite the value of need_locks provided by the user
21332   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21333 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21334   hard_links=yes
21335   $rm conftest*
21336   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21337   touch conftest.a
21338   ln conftest.a conftest.b 2>&5 || hard_links=no
21339   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21340   { echo "$as_me:$LINENO: result: $hard_links" >&5
21341 echo "${ECHO_T}$hard_links" >&6; }
21342   if test "$hard_links" = no; then
21343     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21344 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21345     need_locks=warn
21346   fi
21347 else
21348   need_locks=no
21349 fi
21350
21351 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21353
21354   runpath_var=
21355   allow_undefined_flag_F77=
21356   enable_shared_with_static_runtimes_F77=no
21357   archive_cmds_F77=
21358   archive_expsym_cmds_F77=
21359   old_archive_From_new_cmds_F77=
21360   old_archive_from_expsyms_cmds_F77=
21361   export_dynamic_flag_spec_F77=
21362   whole_archive_flag_spec_F77=
21363   thread_safe_flag_spec_F77=
21364   hardcode_libdir_flag_spec_F77=
21365   hardcode_libdir_flag_spec_ld_F77=
21366   hardcode_libdir_separator_F77=
21367   hardcode_direct_F77=no
21368   hardcode_minus_L_F77=no
21369   hardcode_shlibpath_var_F77=unsupported
21370   link_all_deplibs_F77=unknown
21371   hardcode_automatic_F77=no
21372   module_cmds_F77=
21373   module_expsym_cmds_F77=
21374   always_export_symbols_F77=no
21375   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21376   # include_expsyms should be a list of space-separated symbols to be *always*
21377   # included in the symbol list
21378   include_expsyms_F77=
21379   # exclude_expsyms can be an extended regexp of symbols to exclude
21380   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21381   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21382   # as well as any symbol that contains `d'.
21383   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21384   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21385   # platforms (ab)use it in PIC code, but their linkers get confused if
21386   # the symbol is explicitly referenced.  Since portable code cannot
21387   # rely on this symbol name, it's probably fine to never include it in
21388   # preloaded symbol tables.
21389   extract_expsyms_cmds=
21390   # Just being paranoid about ensuring that cc_basename is set.
21391   for cc_temp in $compiler""; do
21392   case $cc_temp in
21393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21395     \-*) ;;
21396     *) break;;
21397   esac
21398 done
21399 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21400
21401   case $host_os in
21402   cygwin* | mingw* | pw32*)
21403     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21404     # When not using gcc, we currently assume that we are using
21405     # Microsoft Visual C++.
21406     if test "$GCC" != yes; then
21407       with_gnu_ld=no
21408     fi
21409     ;;
21410   interix*)
21411     # we just hope/assume this is gcc and not c89 (= MSVC++)
21412     with_gnu_ld=yes
21413     ;;
21414   openbsd*)
21415     with_gnu_ld=no
21416     ;;
21417   esac
21418
21419   ld_shlibs_F77=yes
21420   if test "$with_gnu_ld" = yes; then
21421     # If archive_cmds runs LD, not CC, wlarc should be empty
21422     wlarc='${wl}'
21423
21424     # Set some defaults for GNU ld with shared library support. These
21425     # are reset later if shared libraries are not supported. Putting them
21426     # here allows them to be overridden if necessary.
21427     runpath_var=LD_RUN_PATH
21428     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21429     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21430     # ancient GNU ld didn't support --whole-archive et. al.
21431     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21432         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21433       else
21434         whole_archive_flag_spec_F77=
21435     fi
21436     supports_anon_versioning=no
21437     case `$LD -v 2>/dev/null` in
21438       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21439       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21440       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21441       *\ 2.11.*) ;; # other 2.11 versions
21442       *) supports_anon_versioning=yes ;;
21443     esac
21444
21445     # See if GNU ld supports shared libraries.
21446     case $host_os in
21447     aix3* | aix4* | aix5*)
21448       # On AIX/PPC, the GNU linker is very broken
21449       if test "$host_cpu" != ia64; then
21450         ld_shlibs_F77=no
21451         cat <<EOF 1>&2
21452
21453 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21454 *** to be unable to reliably create shared libraries on AIX.
21455 *** Therefore, libtool is disabling shared libraries support.  If you
21456 *** really care for shared libraries, you may want to modify your PATH
21457 *** so that a non-GNU linker is found, and then restart.
21458
21459 EOF
21460       fi
21461       ;;
21462
21463     amigaos*)
21464       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)'
21465       hardcode_libdir_flag_spec_F77='-L$libdir'
21466       hardcode_minus_L_F77=yes
21467
21468       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21469       # that the semantics of dynamic libraries on AmigaOS, at least up
21470       # to version 4, is to share data among multiple programs linked
21471       # with the same dynamic library.  Since this doesn't match the
21472       # behavior of shared libraries on other platforms, we can't use
21473       # them.
21474       ld_shlibs_F77=no
21475       ;;
21476
21477     beos*)
21478       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21479         allow_undefined_flag_F77=unsupported
21480         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21481         # support --undefined.  This deserves some investigation.  FIXME
21482         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21483       else
21484         ld_shlibs_F77=no
21485       fi
21486       ;;
21487
21488     cygwin* | mingw* | pw32*)
21489       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21490       # as there is no search path for DLLs.
21491       hardcode_libdir_flag_spec_F77='-L$libdir'
21492       allow_undefined_flag_F77=unsupported
21493       always_export_symbols_F77=no
21494       enable_shared_with_static_runtimes_F77=yes
21495       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21496
21497       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21498         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21499         # If the export-symbols file already is a .def file (1st line
21500         # is EXPORTS), use it as is; otherwise, prepend...
21501         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21502           cp $export_symbols $output_objdir/$soname.def;
21503         else
21504           echo EXPORTS > $output_objdir/$soname.def;
21505           cat $export_symbols >> $output_objdir/$soname.def;
21506         fi~
21507         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21508       else
21509         ld_shlibs_F77=no
21510       fi
21511       ;;
21512
21513     interix3*)
21514       hardcode_direct_F77=no
21515       hardcode_shlibpath_var_F77=no
21516       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21517       export_dynamic_flag_spec_F77='${wl}-E'
21518       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21519       # Instead, shared libraries are loaded at an image base (0x10000000 by
21520       # default) and relocated if they conflict, which is a slow very memory
21521       # consuming and fragmenting process.  To avoid this, we pick a random,
21522       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21523       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21524       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'
21525       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'
21526       ;;
21527
21528     linux*)
21529       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21530         tmp_addflag=
21531         case $cc_basename,$host_cpu in
21532         pgcc*)                          # Portland Group C compiler
21533           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'
21534           tmp_addflag=' $pic_flag'
21535           ;;
21536         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21537           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'
21538           tmp_addflag=' $pic_flag -Mnomain' ;;
21539         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21540           tmp_addflag=' -i_dynamic' ;;
21541         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21542           tmp_addflag=' -i_dynamic -nofor_main' ;;
21543         ifc* | ifort*)                  # Intel Fortran compiler
21544           tmp_addflag=' -nofor_main' ;;
21545         esac
21546         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21547
21548         if test $supports_anon_versioning = yes; then
21549           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21550   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21551   $echo "local: *; };" >> $output_objdir/$libname.ver~
21552           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21553         fi
21554       else
21555         ld_shlibs_F77=no
21556       fi
21557       ;;
21558
21559     netbsd*)
21560       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21561         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21562         wlarc=
21563       else
21564         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21565         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21566       fi
21567       ;;
21568
21569     solaris*)
21570       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21571         ld_shlibs_F77=no
21572         cat <<EOF 1>&2
21573
21574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21575 *** create shared libraries on Solaris systems.  Therefore, libtool
21576 *** is disabling shared libraries support.  We urge you to upgrade GNU
21577 *** binutils to release 2.9.1 or newer.  Another option is to modify
21578 *** your PATH or compiler configuration so that the native linker is
21579 *** used, and then restart.
21580
21581 EOF
21582       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21583         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21584         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21585       else
21586         ld_shlibs_F77=no
21587       fi
21588       ;;
21589
21590     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21591       case `$LD -v 2>&1` in
21592         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21593         ld_shlibs_F77=no
21594         cat <<_LT_EOF 1>&2
21595
21596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21597 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21598 *** is disabling shared libraries support.  We urge you to upgrade GNU
21599 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21600 *** your PATH or compiler configuration so that the native linker is
21601 *** used, and then restart.
21602
21603 _LT_EOF
21604         ;;
21605         *)
21606           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21607             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21608             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21609             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21610           else
21611             ld_shlibs_F77=no
21612           fi
21613         ;;
21614       esac
21615       ;;
21616
21617     sunos4*)
21618       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21619       wlarc=
21620       hardcode_direct_F77=yes
21621       hardcode_shlibpath_var_F77=no
21622       ;;
21623
21624     *)
21625       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21626         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21627         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21628       else
21629         ld_shlibs_F77=no
21630       fi
21631       ;;
21632     esac
21633
21634     if test "$ld_shlibs_F77" = no; then
21635       runpath_var=
21636       hardcode_libdir_flag_spec_F77=
21637       export_dynamic_flag_spec_F77=
21638       whole_archive_flag_spec_F77=
21639     fi
21640   else
21641     # PORTME fill in a description of your system's linker (not GNU ld)
21642     case $host_os in
21643     aix3*)
21644       allow_undefined_flag_F77=unsupported
21645       always_export_symbols_F77=yes
21646       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'
21647       # Note: this linker hardcodes the directories in LIBPATH if there
21648       # are no directories specified by -L.
21649       hardcode_minus_L_F77=yes
21650       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21651         # Neither direct hardcoding nor static linking is supported with a
21652         # broken collect2.
21653         hardcode_direct_F77=unsupported
21654       fi
21655       ;;
21656
21657     aix4* | aix5*)
21658       if test "$host_cpu" = ia64; then
21659         # On IA64, the linker does run time linking by default, so we don't
21660         # have to do anything special.
21661         aix_use_runtimelinking=no
21662         exp_sym_flag='-Bexport'
21663         no_entry_flag=""
21664       else
21665         # If we're using GNU nm, then we don't want the "-C" option.
21666         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21667         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21668           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'
21669         else
21670           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'
21671         fi
21672         aix_use_runtimelinking=no
21673
21674         # Test if we are trying to use run time linking or normal
21675         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21676         # need to do runtime linking.
21677         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21678           for ld_flag in $LDFLAGS; do
21679           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21680             aix_use_runtimelinking=yes
21681             break
21682           fi
21683           done
21684           ;;
21685         esac
21686
21687         exp_sym_flag='-bexport'
21688         no_entry_flag='-bnoentry'
21689       fi
21690
21691       # When large executables or shared objects are built, AIX ld can
21692       # have problems creating the table of contents.  If linking a library
21693       # or program results in "error TOC overflow" add -mminimal-toc to
21694       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21695       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21696
21697       archive_cmds_F77=''
21698       hardcode_direct_F77=yes
21699       hardcode_libdir_separator_F77=':'
21700       link_all_deplibs_F77=yes
21701
21702       if test "$GCC" = yes; then
21703         case $host_os in aix4.[012]|aix4.[012].*)
21704         # We only want to do this on AIX 4.2 and lower, the check
21705         # below for broken collect2 doesn't work under 4.3+
21706           collect2name=`${CC} -print-prog-name=collect2`
21707           if test -f "$collect2name" && \
21708            strings "$collect2name" | grep resolve_lib_name >/dev/null
21709           then
21710           # We have reworked collect2
21711           hardcode_direct_F77=yes
21712           else
21713           # We have old collect2
21714           hardcode_direct_F77=unsupported
21715           # It fails to find uninstalled libraries when the uninstalled
21716           # path is not listed in the libpath.  Setting hardcode_minus_L
21717           # to unsupported forces relinking
21718           hardcode_minus_L_F77=yes
21719           hardcode_libdir_flag_spec_F77='-L$libdir'
21720           hardcode_libdir_separator_F77=
21721           fi
21722           ;;
21723         esac
21724         shared_flag='-shared'
21725         if test "$aix_use_runtimelinking" = yes; then
21726           shared_flag="$shared_flag "'${wl}-G'
21727         fi
21728       else
21729         # not using gcc
21730         if test "$host_cpu" = ia64; then
21731         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21732         # chokes on -Wl,-G. The following line is correct:
21733           shared_flag='-G'
21734         else
21735           if test "$aix_use_runtimelinking" = yes; then
21736             shared_flag='${wl}-G'
21737           else
21738             shared_flag='${wl}-bM:SRE'
21739           fi
21740         fi
21741       fi
21742
21743       # It seems that -bexpall does not export symbols beginning with
21744       # underscore (_), so it is better to generate a list of symbols to export.
21745       always_export_symbols_F77=yes
21746       if test "$aix_use_runtimelinking" = yes; then
21747         # Warning - without using the other runtime loading flags (-brtl),
21748         # -berok will link without error, but may produce a broken library.
21749         allow_undefined_flag_F77='-berok'
21750        # Determine the default libpath from the value encoded in an empty executable.
21751        cat >conftest.$ac_ext <<_ACEOF
21752       program main
21753
21754       end
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_link") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && {
21770          test -z "$ac_f77_werror_flag" ||
21771          test ! -s conftest.err
21772        } && test -s conftest$ac_exeext &&
21773        $as_test_x conftest$ac_exeext; then
21774
21775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21776 }'`
21777 # Check for a 64-bit object if we didn't find anything.
21778 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; }
21779 }'`; fi
21780 else
21781   echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21783
21784
21785 fi
21786
21787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21788       conftest$ac_exeext conftest.$ac_ext
21789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21790
21791        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21792         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"
21793        else
21794         if test "$host_cpu" = ia64; then
21795           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21796           allow_undefined_flag_F77="-z nodefs"
21797           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"
21798         else
21799          # Determine the default libpath from the value encoded in an empty executable.
21800          cat >conftest.$ac_ext <<_ACEOF
21801       program main
21802
21803       end
21804 _ACEOF
21805 rm -f conftest.$ac_objext conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_link") 2>conftest.er1
21813   ac_status=$?
21814   grep -v '^ *+' conftest.er1 >conftest.err
21815   rm -f conftest.er1
21816   cat conftest.err >&5
21817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818   (exit $ac_status); } && {
21819          test -z "$ac_f77_werror_flag" ||
21820          test ! -s conftest.err
21821        } && test -s conftest$ac_exeext &&
21822        $as_test_x conftest$ac_exeext; then
21823
21824 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21825 }'`
21826 # Check for a 64-bit object if we didn't find anything.
21827 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; }
21828 }'`; fi
21829 else
21830   echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833
21834 fi
21835
21836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21837       conftest$ac_exeext conftest.$ac_ext
21838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21839
21840          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21841           # Warning - without using the other run time loading flags,
21842           # -berok will link without error, but may produce a broken library.
21843           no_undefined_flag_F77=' ${wl}-bernotok'
21844           allow_undefined_flag_F77=' ${wl}-berok'
21845           # Exported symbols can be pulled into shared objects from archives
21846           whole_archive_flag_spec_F77='$convenience'
21847           archive_cmds_need_lc_F77=yes
21848           # This is similar to how AIX traditionally builds its shared libraries.
21849           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'
21850         fi
21851       fi
21852       ;;
21853
21854     amigaos*)
21855       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)'
21856       hardcode_libdir_flag_spec_F77='-L$libdir'
21857       hardcode_minus_L_F77=yes
21858       # see comment about different semantics on the GNU ld section
21859       ld_shlibs_F77=no
21860       ;;
21861
21862     bsdi[45]*)
21863       export_dynamic_flag_spec_F77=-rdynamic
21864       ;;
21865
21866     cygwin* | mingw* | pw32*)
21867       # When not using gcc, we currently assume that we are using
21868       # Microsoft Visual C++.
21869       # hardcode_libdir_flag_spec is actually meaningless, as there is
21870       # no search path for DLLs.
21871       hardcode_libdir_flag_spec_F77=' '
21872       allow_undefined_flag_F77=unsupported
21873       # Tell ltmain to make .lib files, not .a files.
21874       libext=lib
21875       # Tell ltmain to make .dll files, not .so files.
21876       shrext_cmds=".dll"
21877       # FIXME: Setting linknames here is a bad hack.
21878       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21879       # The linker will automatically build a .lib file if we build a DLL.
21880       old_archive_From_new_cmds_F77='true'
21881       # FIXME: Should let the user specify the lib program.
21882       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21883       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21884       enable_shared_with_static_runtimes_F77=yes
21885       ;;
21886
21887     darwin* | rhapsody*)
21888       case $host_os in
21889         rhapsody* | darwin1.[012])
21890          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21891          ;;
21892        *) # Darwin 1.3 on
21893          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21894            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21895          else
21896            case ${MACOSX_DEPLOYMENT_TARGET} in
21897              10.[012])
21898                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21899                ;;
21900              10.*)
21901                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21902                ;;
21903            esac
21904          fi
21905          ;;
21906       esac
21907       archive_cmds_need_lc_F77=no
21908       hardcode_direct_F77=no
21909       hardcode_automatic_F77=yes
21910       hardcode_shlibpath_var_F77=unsupported
21911       whole_archive_flag_spec_F77=''
21912       link_all_deplibs_F77=yes
21913     if test "$GCC" = yes ; then
21914         output_verbose_link_cmd='echo'
21915         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21916       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21917       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21918       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}'
21919       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}'
21920     else
21921       case $cc_basename in
21922         xlc*)
21923          output_verbose_link_cmd='echo'
21924          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21925          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21926           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21927          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}'
21928           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}'
21929           ;;
21930        *)
21931          ld_shlibs_F77=no
21932           ;;
21933       esac
21934     fi
21935       ;;
21936
21937     dgux*)
21938       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21939       hardcode_libdir_flag_spec_F77='-L$libdir'
21940       hardcode_shlibpath_var_F77=no
21941       ;;
21942
21943     freebsd1*)
21944       ld_shlibs_F77=no
21945       ;;
21946
21947     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21948     # support.  Future versions do this automatically, but an explicit c++rt0.o
21949     # does not break anything, and helps significantly (at the cost of a little
21950     # extra space).
21951     freebsd2.2*)
21952       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21953       hardcode_libdir_flag_spec_F77='-R$libdir'
21954       hardcode_direct_F77=yes
21955       hardcode_shlibpath_var_F77=no
21956       ;;
21957
21958     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21959     freebsd2*)
21960       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21961       hardcode_direct_F77=yes
21962       hardcode_minus_L_F77=yes
21963       hardcode_shlibpath_var_F77=no
21964       ;;
21965
21966     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21967     freebsd* | kfreebsd*-gnu | dragonfly*)
21968       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21969       hardcode_libdir_flag_spec_F77='-R$libdir'
21970       hardcode_direct_F77=yes
21971       hardcode_shlibpath_var_F77=no
21972       ;;
21973
21974     hpux9*)
21975       if test "$GCC" = yes; then
21976         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'
21977       else
21978         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'
21979       fi
21980       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21981       hardcode_libdir_separator_F77=:
21982       hardcode_direct_F77=yes
21983
21984       # hardcode_minus_L: Not really in the search PATH,
21985       # but as the default location of the library.
21986       hardcode_minus_L_F77=yes
21987       export_dynamic_flag_spec_F77='${wl}-E'
21988       ;;
21989
21990     hpux10*)
21991       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21992         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21993       else
21994         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21995       fi
21996       if test "$with_gnu_ld" = no; then
21997         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21998         hardcode_libdir_separator_F77=:
21999
22000         hardcode_direct_F77=yes
22001         export_dynamic_flag_spec_F77='${wl}-E'
22002
22003         # hardcode_minus_L: Not really in the search PATH,
22004         # but as the default location of the library.
22005         hardcode_minus_L_F77=yes
22006       fi
22007       ;;
22008
22009     hpux11*)
22010       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22011         case $host_cpu in
22012         hppa*64*)
22013           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22014           ;;
22015         ia64*)
22016           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22017           ;;
22018         *)
22019           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22020           ;;
22021         esac
22022       else
22023         case $host_cpu in
22024         hppa*64*)
22025           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22026           ;;
22027         ia64*)
22028           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22029           ;;
22030         *)
22031           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22032           ;;
22033         esac
22034       fi
22035       if test "$with_gnu_ld" = no; then
22036         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22037         hardcode_libdir_separator_F77=:
22038
22039         case $host_cpu in
22040         hppa*64*|ia64*)
22041           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22042           hardcode_direct_F77=no
22043           hardcode_shlibpath_var_F77=no
22044           ;;
22045         *)
22046           hardcode_direct_F77=yes
22047           export_dynamic_flag_spec_F77='${wl}-E'
22048
22049           # hardcode_minus_L: Not really in the search PATH,
22050           # but as the default location of the library.
22051           hardcode_minus_L_F77=yes
22052           ;;
22053         esac
22054       fi
22055       ;;
22056
22057     irix5* | irix6* | nonstopux*)
22058       if test "$GCC" = yes; then
22059         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'
22060       else
22061         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'
22062         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22063       fi
22064       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22065       hardcode_libdir_separator_F77=:
22066       link_all_deplibs_F77=yes
22067       ;;
22068
22069     netbsd*)
22070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22071         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22072       else
22073         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22074       fi
22075       hardcode_libdir_flag_spec_F77='-R$libdir'
22076       hardcode_direct_F77=yes
22077       hardcode_shlibpath_var_F77=no
22078       ;;
22079
22080     newsos6)
22081       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22082       hardcode_direct_F77=yes
22083       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22084       hardcode_libdir_separator_F77=:
22085       hardcode_shlibpath_var_F77=no
22086       ;;
22087
22088     openbsd*)
22089       hardcode_direct_F77=yes
22090       hardcode_shlibpath_var_F77=no
22091       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22092         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22093         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22094         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22095         export_dynamic_flag_spec_F77='${wl}-E'
22096       else
22097        case $host_os in
22098          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22099            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22100            hardcode_libdir_flag_spec_F77='-R$libdir'
22101            ;;
22102          *)
22103            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22104            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22105            ;;
22106        esac
22107       fi
22108       ;;
22109
22110     os2*)
22111       hardcode_libdir_flag_spec_F77='-L$libdir'
22112       hardcode_minus_L_F77=yes
22113       allow_undefined_flag_F77=unsupported
22114       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'
22115       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22116       ;;
22117
22118     osf3*)
22119       if test "$GCC" = yes; then
22120         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22121         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'
22122       else
22123         allow_undefined_flag_F77=' -expect_unresolved \*'
22124         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'
22125       fi
22126       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22127       hardcode_libdir_separator_F77=:
22128       ;;
22129
22130     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22131       if test "$GCC" = yes; then
22132         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22133         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'
22134         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22135       else
22136         allow_undefined_flag_F77=' -expect_unresolved \*'
22137         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'
22138         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~
22139         $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'
22140
22141         # Both c and cxx compiler support -rpath directly
22142         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22143       fi
22144       hardcode_libdir_separator_F77=:
22145       ;;
22146
22147     solaris*)
22148       no_undefined_flag_F77=' -z text'
22149       if test "$GCC" = yes; then
22150         wlarc='${wl}'
22151         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22152         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22153           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22154       else
22155         wlarc=''
22156         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22157         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22158         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22159       fi
22160       hardcode_libdir_flag_spec_F77='-R$libdir'
22161       hardcode_shlibpath_var_F77=no
22162       case $host_os in
22163       solaris2.[0-5] | solaris2.[0-5].*) ;;
22164       *)
22165         # The compiler driver will combine linker options so we
22166         # cannot just pass the convience library names through
22167         # without $wl, iff we do not link with $LD.
22168         # Luckily, gcc supports the same syntax we need for Sun Studio.
22169         # Supported since Solaris 2.6 (maybe 2.5.1?)
22170         case $wlarc in
22171         '')
22172           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22173         *)
22174           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' ;;
22175         esac ;;
22176       esac
22177       link_all_deplibs_F77=yes
22178       ;;
22179
22180     sunos4*)
22181       if test "x$host_vendor" = xsequent; then
22182         # Use $CC to link under sequent, because it throws in some extra .o
22183         # files that make .init and .fini sections work.
22184         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22185       else
22186         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22187       fi
22188       hardcode_libdir_flag_spec_F77='-L$libdir'
22189       hardcode_direct_F77=yes
22190       hardcode_minus_L_F77=yes
22191       hardcode_shlibpath_var_F77=no
22192       ;;
22193
22194     sysv4)
22195       case $host_vendor in
22196         sni)
22197           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22198           hardcode_direct_F77=yes # is this really true???
22199         ;;
22200         siemens)
22201           ## LD is ld it makes a PLAMLIB
22202           ## CC just makes a GrossModule.
22203           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22204           reload_cmds_F77='$CC -r -o $output$reload_objs'
22205           hardcode_direct_F77=no
22206         ;;
22207         motorola)
22208           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22209           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22210         ;;
22211       esac
22212       runpath_var='LD_RUN_PATH'
22213       hardcode_shlibpath_var_F77=no
22214       ;;
22215
22216     sysv4.3*)
22217       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22218       hardcode_shlibpath_var_F77=no
22219       export_dynamic_flag_spec_F77='-Bexport'
22220       ;;
22221
22222     sysv4*MP*)
22223       if test -d /usr/nec; then
22224         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225         hardcode_shlibpath_var_F77=no
22226         runpath_var=LD_RUN_PATH
22227         hardcode_runpath_var=yes
22228         ld_shlibs_F77=yes
22229       fi
22230       ;;
22231
22232     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22233       no_undefined_flag_F77='${wl}-z,text'
22234       archive_cmds_need_lc_F77=no
22235       hardcode_shlibpath_var_F77=no
22236       runpath_var='LD_RUN_PATH'
22237
22238       if test "$GCC" = yes; then
22239         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22240         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22241       else
22242         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22243         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22244       fi
22245       ;;
22246
22247     sysv5* | sco3.2v5* | sco5v6*)
22248       # Note: We can NOT use -z defs as we might desire, because we do not
22249       # link with -lc, and that would cause any symbols used from libc to
22250       # always be unresolved, which means just about no library would
22251       # ever link correctly.  If we're not using GNU ld we use -z text
22252       # though, which does catch some bad symbols but isn't as heavy-handed
22253       # as -z defs.
22254       no_undefined_flag_F77='${wl}-z,text'
22255       allow_undefined_flag_F77='${wl}-z,nodefs'
22256       archive_cmds_need_lc_F77=no
22257       hardcode_shlibpath_var_F77=no
22258       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22259       hardcode_libdir_separator_F77=':'
22260       link_all_deplibs_F77=yes
22261       export_dynamic_flag_spec_F77='${wl}-Bexport'
22262       runpath_var='LD_RUN_PATH'
22263
22264       if test "$GCC" = yes; then
22265         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22267       else
22268         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22270       fi
22271       ;;
22272
22273     uts4*)
22274       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22275       hardcode_libdir_flag_spec_F77='-L$libdir'
22276       hardcode_shlibpath_var_F77=no
22277       ;;
22278
22279     *)
22280       ld_shlibs_F77=no
22281       ;;
22282     esac
22283   fi
22284
22285 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22286 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22287 test "$ld_shlibs_F77" = no && can_build_shared=no
22288
22289 #
22290 # Do we need to explicitly link libc?
22291 #
22292 case "x$archive_cmds_need_lc_F77" in
22293 x|xyes)
22294   # Assume -lc should be added
22295   archive_cmds_need_lc_F77=yes
22296
22297   if test "$enable_shared" = yes && test "$GCC" = yes; then
22298     case $archive_cmds_F77 in
22299     *'~'*)
22300       # FIXME: we may have to deal with multi-command sequences.
22301       ;;
22302     '$CC '*)
22303       # Test whether the compiler implicitly links with -lc since on some
22304       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22305       # to ld, don't add -lc before -lgcc.
22306       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22307 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22308       $rm conftest*
22309       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22310
22311       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22312   (eval $ac_compile) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); } 2>conftest.err; then
22316         soname=conftest
22317         lib=conftest
22318         libobjs=conftest.$ac_objext
22319         deplibs=
22320         wl=$lt_prog_compiler_wl_F77
22321         pic_flag=$lt_prog_compiler_pic_F77
22322         compiler_flags=-v
22323         linker_flags=-v
22324         verstring=
22325         output_objdir=.
22326         libname=conftest
22327         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22328         allow_undefined_flag_F77=
22329         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22330   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); }
22334         then
22335           archive_cmds_need_lc_F77=no
22336         else
22337           archive_cmds_need_lc_F77=yes
22338         fi
22339         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22340       else
22341         cat conftest.err 1>&5
22342       fi
22343       $rm conftest*
22344       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22345 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22346       ;;
22347     esac
22348   fi
22349   ;;
22350 esac
22351
22352 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22353 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22354 library_names_spec=
22355 libname_spec='lib$name'
22356 soname_spec=
22357 shrext_cmds=".so"
22358 postinstall_cmds=
22359 postuninstall_cmds=
22360 finish_cmds=
22361 finish_eval=
22362 shlibpath_var=
22363 shlibpath_overrides_runpath=unknown
22364 version_type=none
22365 dynamic_linker="$host_os ld.so"
22366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22367 if test "$GCC" = yes; then
22368   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22369   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22370     # if the path contains ";" then we assume it to be the separator
22371     # otherwise default to the standard path separator (i.e. ":") - it is
22372     # assumed that no part of a normal pathname contains ";" but that should
22373     # okay in the real world where ";" in dirpaths is itself problematic.
22374     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22375   else
22376     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22377   fi
22378 else
22379   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22380 fi
22381 need_lib_prefix=unknown
22382 hardcode_into_libs=no
22383
22384 # when you set need_version to no, make sure it does not cause -set_version
22385 # flags to be left without arguments
22386 need_version=unknown
22387
22388 case $host_os in
22389 aix3*)
22390   version_type=linux
22391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22392   shlibpath_var=LIBPATH
22393
22394   # AIX 3 has no versioning support, so we append a major version to the name.
22395   soname_spec='${libname}${release}${shared_ext}$major'
22396   ;;
22397
22398 aix4* | aix5*)
22399   version_type=linux
22400   need_lib_prefix=no
22401   need_version=no
22402   hardcode_into_libs=yes
22403   if test "$host_cpu" = ia64; then
22404     # AIX 5 supports IA64
22405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22406     shlibpath_var=LD_LIBRARY_PATH
22407   else
22408     # With GCC up to 2.95.x, collect2 would create an import file
22409     # for dependence libraries.  The import file would start with
22410     # the line `#! .'.  This would cause the generated library to
22411     # depend on `.', always an invalid library.  This was fixed in
22412     # development snapshots of GCC prior to 3.0.
22413     case $host_os in
22414       aix4 | aix4.[01] | aix4.[01].*)
22415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22416            echo ' yes '
22417            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22418         :
22419       else
22420         can_build_shared=no
22421       fi
22422       ;;
22423     esac
22424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22425     # soname into executable. Probably we can add versioning support to
22426     # collect2, so additional links can be useful in future.
22427     if test "$aix_use_runtimelinking" = yes; then
22428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22429       # instead of lib<name>.a to let people know that these are not
22430       # typical AIX shared libraries.
22431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22432     else
22433       # We preserve .a as extension for shared libraries through AIX4.2
22434       # and later when we are not doing run time linking.
22435       library_names_spec='${libname}${release}.a $libname.a'
22436       soname_spec='${libname}${release}${shared_ext}$major'
22437     fi
22438     shlibpath_var=LIBPATH
22439   fi
22440   ;;
22441
22442 amigaos*)
22443   library_names_spec='$libname.ixlibrary $libname.a'
22444   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22445   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'
22446   ;;
22447
22448 beos*)
22449   library_names_spec='${libname}${shared_ext}'
22450   dynamic_linker="$host_os ld.so"
22451   shlibpath_var=LIBRARY_PATH
22452   ;;
22453
22454 bsdi[45]*)
22455   version_type=linux
22456   need_version=no
22457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22458   soname_spec='${libname}${release}${shared_ext}$major'
22459   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22460   shlibpath_var=LD_LIBRARY_PATH
22461   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22462   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22463   # the default ld.so.conf also contains /usr/contrib/lib and
22464   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22465   # libtool to hard-code these into programs
22466   ;;
22467
22468 cygwin* | mingw* | pw32*)
22469   version_type=windows
22470   shrext_cmds=".dll"
22471   need_version=no
22472   need_lib_prefix=no
22473
22474   case $GCC,$host_os in
22475   yes,cygwin* | yes,mingw* | yes,pw32*)
22476     library_names_spec='$libname.dll.a'
22477     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22478     postinstall_cmds='base_file=`basename \${file}`~
22479       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22480       dldir=$destdir/`dirname \$dlpath`~
22481       test -d \$dldir || mkdir -p \$dldir~
22482       $install_prog $dir/$dlname \$dldir/$dlname~
22483       chmod a+x \$dldir/$dlname'
22484     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22485       dlpath=$dir/\$dldll~
22486        $rm \$dlpath'
22487     shlibpath_overrides_runpath=yes
22488
22489     case $host_os in
22490     cygwin*)
22491       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22492       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22493       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22494       ;;
22495     mingw*)
22496       # MinGW DLLs use traditional 'lib' prefix
22497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22498       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22499       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22500         # It is most probably a Windows format PATH printed by
22501         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22502         # path with ; separators, and with drive letters. We can handle the
22503         # drive letters (cygwin fileutils understands them), so leave them,
22504         # especially as we might pass files found there to a mingw objdump,
22505         # which wouldn't understand a cygwinified path. Ahh.
22506         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22507       else
22508         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22509       fi
22510       ;;
22511     pw32*)
22512       # pw32 DLLs use 'pw' prefix rather than 'lib'
22513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22514       ;;
22515     esac
22516     ;;
22517
22518   *)
22519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22520     ;;
22521   esac
22522   dynamic_linker='Win32 ld.exe'
22523   # FIXME: first we should search . and the directory the executable is in
22524   shlibpath_var=PATH
22525   ;;
22526
22527 darwin* | rhapsody*)
22528   dynamic_linker="$host_os dyld"
22529   version_type=darwin
22530   need_lib_prefix=no
22531   need_version=no
22532   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22533   soname_spec='${libname}${release}${major}$shared_ext'
22534   shlibpath_overrides_runpath=yes
22535   shlibpath_var=DYLD_LIBRARY_PATH
22536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22537   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22538   if test "$GCC" = yes; then
22539     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"`
22540   else
22541     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22542   fi
22543   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22544   ;;
22545
22546 dgux*)
22547   version_type=linux
22548   need_lib_prefix=no
22549   need_version=no
22550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22551   soname_spec='${libname}${release}${shared_ext}$major'
22552   shlibpath_var=LD_LIBRARY_PATH
22553   ;;
22554
22555 freebsd1*)
22556   dynamic_linker=no
22557   ;;
22558
22559 kfreebsd*-gnu)
22560   version_type=linux
22561   need_lib_prefix=no
22562   need_version=no
22563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22564   soname_spec='${libname}${release}${shared_ext}$major'
22565   shlibpath_var=LD_LIBRARY_PATH
22566   shlibpath_overrides_runpath=no
22567   hardcode_into_libs=yes
22568   dynamic_linker='GNU ld.so'
22569   ;;
22570
22571 freebsd* | dragonfly*)
22572   # DragonFly does not have aout.  When/if they implement a new
22573   # versioning mechanism, adjust this.
22574   if test -x /usr/bin/objformat; then
22575     objformat=`/usr/bin/objformat`
22576   else
22577     case $host_os in
22578     freebsd[123]*) objformat=aout ;;
22579     *) objformat=elf ;;
22580     esac
22581   fi
22582   version_type=freebsd-$objformat
22583   case $version_type in
22584     freebsd-elf*)
22585       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22586       need_version=no
22587       need_lib_prefix=no
22588       ;;
22589     freebsd-*)
22590       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22591       need_version=yes
22592       ;;
22593   esac
22594   shlibpath_var=LD_LIBRARY_PATH
22595   case $host_os in
22596   freebsd2*)
22597     shlibpath_overrides_runpath=yes
22598     ;;
22599   freebsd3.[01]* | freebsdelf3.[01]*)
22600     shlibpath_overrides_runpath=yes
22601     hardcode_into_libs=yes
22602     ;;
22603   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22604   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22605     shlibpath_overrides_runpath=no
22606     hardcode_into_libs=yes
22607     ;;
22608   freebsd*) # from 4.6 on
22609     shlibpath_overrides_runpath=yes
22610     hardcode_into_libs=yes
22611     ;;
22612   esac
22613   ;;
22614
22615 gnu*)
22616   version_type=linux
22617   need_lib_prefix=no
22618   need_version=no
22619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22620   soname_spec='${libname}${release}${shared_ext}$major'
22621   shlibpath_var=LD_LIBRARY_PATH
22622   hardcode_into_libs=yes
22623   ;;
22624
22625 hpux9* | hpux10* | hpux11*)
22626   # Give a soname corresponding to the major version so that dld.sl refuses to
22627   # link against other versions.
22628   version_type=sunos
22629   need_lib_prefix=no
22630   need_version=no
22631   case $host_cpu in
22632   ia64*)
22633     shrext_cmds='.so'
22634     hardcode_into_libs=yes
22635     dynamic_linker="$host_os dld.so"
22636     shlibpath_var=LD_LIBRARY_PATH
22637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22639     soname_spec='${libname}${release}${shared_ext}$major'
22640     if test "X$HPUX_IA64_MODE" = X32; then
22641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22642     else
22643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22644     fi
22645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22646     ;;
22647    hppa*64*)
22648      shrext_cmds='.sl'
22649      hardcode_into_libs=yes
22650      dynamic_linker="$host_os dld.sl"
22651      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22652      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22654      soname_spec='${libname}${release}${shared_ext}$major'
22655      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22656      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22657      ;;
22658    *)
22659     shrext_cmds='.sl'
22660     dynamic_linker="$host_os dld.sl"
22661     shlibpath_var=SHLIB_PATH
22662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22664     soname_spec='${libname}${release}${shared_ext}$major'
22665     ;;
22666   esac
22667   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22668   postinstall_cmds='chmod 555 $lib'
22669   ;;
22670
22671 interix3*)
22672   version_type=linux
22673   need_lib_prefix=no
22674   need_version=no
22675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22676   soname_spec='${libname}${release}${shared_ext}$major'
22677   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22678   shlibpath_var=LD_LIBRARY_PATH
22679   shlibpath_overrides_runpath=no
22680   hardcode_into_libs=yes
22681   ;;
22682
22683 irix5* | irix6* | nonstopux*)
22684   case $host_os in
22685     nonstopux*) version_type=nonstopux ;;
22686     *)
22687         if test "$lt_cv_prog_gnu_ld" = yes; then
22688                 version_type=linux
22689         else
22690                 version_type=irix
22691         fi ;;
22692   esac
22693   need_lib_prefix=no
22694   need_version=no
22695   soname_spec='${libname}${release}${shared_ext}$major'
22696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22697   case $host_os in
22698   irix5* | nonstopux*)
22699     libsuff= shlibsuff=
22700     ;;
22701   *)
22702     case $LD in # libtool.m4 will add one of these switches to LD
22703     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22704       libsuff= shlibsuff= libmagic=32-bit;;
22705     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22706       libsuff=32 shlibsuff=N32 libmagic=N32;;
22707     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22708       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22709     *) libsuff= shlibsuff= libmagic=never-match;;
22710     esac
22711     ;;
22712   esac
22713   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22714   shlibpath_overrides_runpath=no
22715   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22716   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22717   hardcode_into_libs=yes
22718   ;;
22719
22720 # No shared lib support for Linux oldld, aout, or coff.
22721 linux*oldld* | linux*aout* | linux*coff*)
22722   dynamic_linker=no
22723   ;;
22724
22725 # This must be Linux ELF.
22726 linux*)
22727   version_type=linux
22728   need_lib_prefix=no
22729   need_version=no
22730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731   soname_spec='${libname}${release}${shared_ext}$major'
22732   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22733   shlibpath_var=LD_LIBRARY_PATH
22734   shlibpath_overrides_runpath=no
22735   # This implies no fast_install, which is unacceptable.
22736   # Some rework will be needed to allow for fast_install
22737   # before this can be enabled.
22738   hardcode_into_libs=yes
22739
22740   # find out which ABI we are using
22741   libsuff=
22742   case "$host_cpu" in
22743   x86_64*|s390x*|powerpc64*)
22744     echo '#line 22744 "configure"' > conftest.$ac_ext
22745     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22746   (eval $ac_compile) 2>&5
22747   ac_status=$?
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); }; then
22750       case `/usr/bin/file conftest.$ac_objext` in
22751       *64-bit*)
22752         libsuff=64
22753         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22754         ;;
22755       esac
22756     fi
22757     rm -rf conftest*
22758     ;;
22759   esac
22760
22761   # Append ld.so.conf contents to the search path
22762   if test -f /etc/ld.so.conf; then
22763     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' ' '`
22764     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22765   fi
22766
22767   # We used to test for /lib/ld.so.1 and disable shared libraries on
22768   # powerpc, because MkLinux only supported shared libraries with the
22769   # GNU dynamic linker.  Since this was broken with cross compilers,
22770   # most powerpc-linux boxes support dynamic linking these days and
22771   # people can always --disable-shared, the test was removed, and we
22772   # assume the GNU/Linux dynamic linker is in use.
22773   dynamic_linker='GNU/Linux ld.so'
22774   ;;
22775
22776 knetbsd*-gnu)
22777   version_type=linux
22778   need_lib_prefix=no
22779   need_version=no
22780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22781   soname_spec='${libname}${release}${shared_ext}$major'
22782   shlibpath_var=LD_LIBRARY_PATH
22783   shlibpath_overrides_runpath=no
22784   hardcode_into_libs=yes
22785   dynamic_linker='GNU ld.so'
22786   ;;
22787
22788 netbsd*)
22789   version_type=sunos
22790   need_lib_prefix=no
22791   need_version=no
22792   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22794     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22795     dynamic_linker='NetBSD (a.out) ld.so'
22796   else
22797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22798     soname_spec='${libname}${release}${shared_ext}$major'
22799     dynamic_linker='NetBSD ld.elf_so'
22800   fi
22801   shlibpath_var=LD_LIBRARY_PATH
22802   shlibpath_overrides_runpath=yes
22803   hardcode_into_libs=yes
22804   ;;
22805
22806 newsos6)
22807   version_type=linux
22808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22809   shlibpath_var=LD_LIBRARY_PATH
22810   shlibpath_overrides_runpath=yes
22811   ;;
22812
22813 nto-qnx*)
22814   version_type=linux
22815   need_lib_prefix=no
22816   need_version=no
22817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22818   soname_spec='${libname}${release}${shared_ext}$major'
22819   shlibpath_var=LD_LIBRARY_PATH
22820   shlibpath_overrides_runpath=yes
22821   ;;
22822
22823 openbsd*)
22824   version_type=sunos
22825   sys_lib_dlsearch_path_spec="/usr/lib"
22826   need_lib_prefix=no
22827   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22828   case $host_os in
22829     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22830     *)                         need_version=no  ;;
22831   esac
22832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22833   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22834   shlibpath_var=LD_LIBRARY_PATH
22835   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22836     case $host_os in
22837       openbsd2.[89] | openbsd2.[89].*)
22838         shlibpath_overrides_runpath=no
22839         ;;
22840       *)
22841         shlibpath_overrides_runpath=yes
22842         ;;
22843       esac
22844   else
22845     shlibpath_overrides_runpath=yes
22846   fi
22847   ;;
22848
22849 os2*)
22850   libname_spec='$name'
22851   shrext_cmds=".dll"
22852   need_lib_prefix=no
22853   library_names_spec='$libname${shared_ext} $libname.a'
22854   dynamic_linker='OS/2 ld.exe'
22855   shlibpath_var=LIBPATH
22856   ;;
22857
22858 osf3* | osf4* | osf5*)
22859   version_type=osf
22860   need_lib_prefix=no
22861   need_version=no
22862   soname_spec='${libname}${release}${shared_ext}$major'
22863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22864   shlibpath_var=LD_LIBRARY_PATH
22865   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22866   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22867   ;;
22868
22869 solaris*)
22870   version_type=linux
22871   need_lib_prefix=no
22872   need_version=no
22873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22874   soname_spec='${libname}${release}${shared_ext}$major'
22875   shlibpath_var=LD_LIBRARY_PATH
22876   shlibpath_overrides_runpath=yes
22877   hardcode_into_libs=yes
22878   # ldd complains unless libraries are executable
22879   postinstall_cmds='chmod +x $lib'
22880   ;;
22881
22882 sunos4*)
22883   version_type=sunos
22884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22885   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22886   shlibpath_var=LD_LIBRARY_PATH
22887   shlibpath_overrides_runpath=yes
22888   if test "$with_gnu_ld" = yes; then
22889     need_lib_prefix=no
22890   fi
22891   need_version=yes
22892   ;;
22893
22894 sysv4 | sysv4.3*)
22895   version_type=linux
22896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897   soname_spec='${libname}${release}${shared_ext}$major'
22898   shlibpath_var=LD_LIBRARY_PATH
22899   case $host_vendor in
22900     sni)
22901       shlibpath_overrides_runpath=no
22902       need_lib_prefix=no
22903       export_dynamic_flag_spec='${wl}-Blargedynsym'
22904       runpath_var=LD_RUN_PATH
22905       ;;
22906     siemens)
22907       need_lib_prefix=no
22908       ;;
22909     motorola)
22910       need_lib_prefix=no
22911       need_version=no
22912       shlibpath_overrides_runpath=no
22913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22914       ;;
22915   esac
22916   ;;
22917
22918 sysv4*MP*)
22919   if test -d /usr/nec ;then
22920     version_type=linux
22921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22922     soname_spec='$libname${shared_ext}.$major'
22923     shlibpath_var=LD_LIBRARY_PATH
22924   fi
22925   ;;
22926
22927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22928   version_type=freebsd-elf
22929   need_lib_prefix=no
22930   need_version=no
22931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22932   soname_spec='${libname}${release}${shared_ext}$major'
22933   shlibpath_var=LD_LIBRARY_PATH
22934   hardcode_into_libs=yes
22935   if test "$with_gnu_ld" = yes; then
22936     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22937     shlibpath_overrides_runpath=no
22938   else
22939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22940     shlibpath_overrides_runpath=yes
22941     case $host_os in
22942       sco3.2v5*)
22943         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22944         ;;
22945     esac
22946   fi
22947   sys_lib_dlsearch_path_spec='/usr/lib'
22948   ;;
22949
22950 uts4*)
22951   version_type=linux
22952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22953   soname_spec='${libname}${release}${shared_ext}$major'
22954   shlibpath_var=LD_LIBRARY_PATH
22955   ;;
22956
22957 *)
22958   dynamic_linker=no
22959   ;;
22960 esac
22961 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22962 echo "${ECHO_T}$dynamic_linker" >&6; }
22963 test "$dynamic_linker" = no && can_build_shared=no
22964
22965 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22966 if test "$GCC" = yes; then
22967   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22968 fi
22969
22970 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22971 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22972 hardcode_action_F77=
22973 if test -n "$hardcode_libdir_flag_spec_F77" || \
22974    test -n "$runpath_var_F77" || \
22975    test "X$hardcode_automatic_F77" = "Xyes" ; then
22976
22977   # We can hardcode non-existant directories.
22978   if test "$hardcode_direct_F77" != no &&
22979      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22980      # have to relink, otherwise we might link with an installed library
22981      # when we should be linking with a yet-to-be-installed one
22982      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22983      test "$hardcode_minus_L_F77" != no; then
22984     # Linking always hardcodes the temporary library directory.
22985     hardcode_action_F77=relink
22986   else
22987     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22988     hardcode_action_F77=immediate
22989   fi
22990 else
22991   # We cannot hardcode anything, or else we can only hardcode existing
22992   # directories.
22993   hardcode_action_F77=unsupported
22994 fi
22995 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22996 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22997
22998 if test "$hardcode_action_F77" = relink; then
22999   # Fast installation is not supported
23000   enable_fast_install=no
23001 elif test "$shlibpath_overrides_runpath" = yes ||
23002      test "$enable_shared" = no; then
23003   # Fast installation is not necessary
23004   enable_fast_install=needless
23005 fi
23006
23007
23008 # The else clause should only fire when bootstrapping the
23009 # libtool distribution, otherwise you forgot to ship ltmain.sh
23010 # with your package, and you will get complaints that there are
23011 # no rules to generate ltmain.sh.
23012 if test -f "$ltmain"; then
23013   # See if we are running on zsh, and set the options which allow our commands through
23014   # without removal of \ escapes.
23015   if test -n "${ZSH_VERSION+set}" ; then
23016     setopt NO_GLOB_SUBST
23017   fi
23018   # Now quote all the things that may contain metacharacters while being
23019   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23020   # variables and quote the copies for generation of the libtool script.
23021   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23022     SED SHELL STRIP \
23023     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23024     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23025     deplibs_check_method reload_flag reload_cmds need_locks \
23026     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23027     lt_cv_sys_global_symbol_to_c_name_address \
23028     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23029     old_postinstall_cmds old_postuninstall_cmds \
23030     compiler_F77 \
23031     CC_F77 \
23032     LD_F77 \
23033     lt_prog_compiler_wl_F77 \
23034     lt_prog_compiler_pic_F77 \
23035     lt_prog_compiler_static_F77 \
23036     lt_prog_compiler_no_builtin_flag_F77 \
23037     export_dynamic_flag_spec_F77 \
23038     thread_safe_flag_spec_F77 \
23039     whole_archive_flag_spec_F77 \
23040     enable_shared_with_static_runtimes_F77 \
23041     old_archive_cmds_F77 \
23042     old_archive_from_new_cmds_F77 \
23043     predep_objects_F77 \
23044     postdep_objects_F77 \
23045     predeps_F77 \
23046     postdeps_F77 \
23047     compiler_lib_search_path_F77 \
23048     archive_cmds_F77 \
23049     archive_expsym_cmds_F77 \
23050     postinstall_cmds_F77 \
23051     postuninstall_cmds_F77 \
23052     old_archive_from_expsyms_cmds_F77 \
23053     allow_undefined_flag_F77 \
23054     no_undefined_flag_F77 \
23055     export_symbols_cmds_F77 \
23056     hardcode_libdir_flag_spec_F77 \
23057     hardcode_libdir_flag_spec_ld_F77 \
23058     hardcode_libdir_separator_F77 \
23059     hardcode_automatic_F77 \
23060     module_cmds_F77 \
23061     module_expsym_cmds_F77 \
23062     lt_cv_prog_compiler_c_o_F77 \
23063     exclude_expsyms_F77 \
23064     include_expsyms_F77; do
23065
23066     case $var in
23067     old_archive_cmds_F77 | \
23068     old_archive_from_new_cmds_F77 | \
23069     archive_cmds_F77 | \
23070     archive_expsym_cmds_F77 | \
23071     module_cmds_F77 | \
23072     module_expsym_cmds_F77 | \
23073     old_archive_from_expsyms_cmds_F77 | \
23074     export_symbols_cmds_F77 | \
23075     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23076     postinstall_cmds | postuninstall_cmds | \
23077     old_postinstall_cmds | old_postuninstall_cmds | \
23078     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23079       # Double-quote double-evaled strings.
23080       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23081       ;;
23082     *)
23083       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23084       ;;
23085     esac
23086   done
23087
23088   case $lt_echo in
23089   *'\$0 --fallback-echo"')
23090     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23091     ;;
23092   esac
23093
23094 cfgfile="$ofile"
23095
23096   cat <<__EOF__ >> "$cfgfile"
23097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23098
23099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23100
23101 # Shell to use when invoking shell scripts.
23102 SHELL=$lt_SHELL
23103
23104 # Whether or not to build shared libraries.
23105 build_libtool_libs=$enable_shared
23106
23107 # Whether or not to build static libraries.
23108 build_old_libs=$enable_static
23109
23110 # Whether or not to add -lc for building shared libraries.
23111 build_libtool_need_lc=$archive_cmds_need_lc_F77
23112
23113 # Whether or not to disallow shared libs when runtime libs are static
23114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23115
23116 # Whether or not to optimize for fast installation.
23117 fast_install=$enable_fast_install
23118
23119 # The host system.
23120 host_alias=$host_alias
23121 host=$host
23122 host_os=$host_os
23123
23124 # The build system.
23125 build_alias=$build_alias
23126 build=$build
23127 build_os=$build_os
23128
23129 # An echo program that does not interpret backslashes.
23130 echo=$lt_echo
23131
23132 # The archiver.
23133 AR=$lt_AR
23134 AR_FLAGS=$lt_AR_FLAGS
23135
23136 # A C compiler.
23137 LTCC=$lt_LTCC
23138
23139 # LTCC compiler flags.
23140 LTCFLAGS=$lt_LTCFLAGS
23141
23142 # A language-specific compiler.
23143 CC=$lt_compiler_F77
23144
23145 # Is the compiler the GNU C compiler?
23146 with_gcc=$GCC_F77
23147
23148 # An ERE matcher.
23149 EGREP=$lt_EGREP
23150
23151 # The linker used to build libraries.
23152 LD=$lt_LD_F77
23153
23154 # Whether we need hard or soft links.
23155 LN_S=$lt_LN_S
23156
23157 # A BSD-compatible nm program.
23158 NM=$lt_NM
23159
23160 # A symbol stripping program
23161 STRIP=$lt_STRIP
23162
23163 # Used to examine libraries when file_magic_cmd begins "file"
23164 MAGIC_CMD=$MAGIC_CMD
23165
23166 # Used on cygwin: DLL creation program.
23167 DLLTOOL="$DLLTOOL"
23168
23169 # Used on cygwin: object dumper.
23170 OBJDUMP="$OBJDUMP"
23171
23172 # Used on cygwin: assembler.
23173 AS="$AS"
23174
23175 # The name of the directory that contains temporary libtool files.
23176 objdir=$objdir
23177
23178 # How to create reloadable object files.
23179 reload_flag=$lt_reload_flag
23180 reload_cmds=$lt_reload_cmds
23181
23182 # How to pass a linker flag through the compiler.
23183 wl=$lt_lt_prog_compiler_wl_F77
23184
23185 # Object file suffix (normally "o").
23186 objext="$ac_objext"
23187
23188 # Old archive suffix (normally "a").
23189 libext="$libext"
23190
23191 # Shared library suffix (normally ".so").
23192 shrext_cmds='$shrext_cmds'
23193
23194 # Executable file suffix (normally "").
23195 exeext="$exeext"
23196
23197 # Additional compiler flags for building library objects.
23198 pic_flag=$lt_lt_prog_compiler_pic_F77
23199 pic_mode=$pic_mode
23200
23201 # What is the maximum length of a command?
23202 max_cmd_len=$lt_cv_sys_max_cmd_len
23203
23204 # Does compiler simultaneously support -c and -o options?
23205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23206
23207 # Must we lock files when doing compilation?
23208 need_locks=$lt_need_locks
23209
23210 # Do we need the lib prefix for modules?
23211 need_lib_prefix=$need_lib_prefix
23212
23213 # Do we need a version for libraries?
23214 need_version=$need_version
23215
23216 # Whether dlopen is supported.
23217 dlopen_support=$enable_dlopen
23218
23219 # Whether dlopen of programs is supported.
23220 dlopen_self=$enable_dlopen_self
23221
23222 # Whether dlopen of statically linked programs is supported.
23223 dlopen_self_static=$enable_dlopen_self_static
23224
23225 # Compiler flag to prevent dynamic linking.
23226 link_static_flag=$lt_lt_prog_compiler_static_F77
23227
23228 # Compiler flag to turn off builtin functions.
23229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23230
23231 # Compiler flag to allow reflexive dlopens.
23232 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23233
23234 # Compiler flag to generate shared objects directly from archives.
23235 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23236
23237 # Compiler flag to generate thread-safe objects.
23238 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23239
23240 # Library versioning type.
23241 version_type=$version_type
23242
23243 # Format of library name prefix.
23244 libname_spec=$lt_libname_spec
23245
23246 # List of archive names.  First name is the real one, the rest are links.
23247 # The last name is the one that the linker finds with -lNAME.
23248 library_names_spec=$lt_library_names_spec
23249
23250 # The coded name of the library, if different from the real name.
23251 soname_spec=$lt_soname_spec
23252
23253 # Commands used to build and install an old-style archive.
23254 RANLIB=$lt_RANLIB
23255 old_archive_cmds=$lt_old_archive_cmds_F77
23256 old_postinstall_cmds=$lt_old_postinstall_cmds
23257 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23258
23259 # Create an old-style archive from a shared archive.
23260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23261
23262 # Create a temporary old-style archive to link instead of a shared archive.
23263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23264
23265 # Commands used to build and install a shared archive.
23266 archive_cmds=$lt_archive_cmds_F77
23267 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23268 postinstall_cmds=$lt_postinstall_cmds
23269 postuninstall_cmds=$lt_postuninstall_cmds
23270
23271 # Commands used to build a loadable module (assumed same as above if empty)
23272 module_cmds=$lt_module_cmds_F77
23273 module_expsym_cmds=$lt_module_expsym_cmds_F77
23274
23275 # Commands to strip libraries.
23276 old_striplib=$lt_old_striplib
23277 striplib=$lt_striplib
23278
23279 # Dependencies to place before the objects being linked to create a
23280 # shared library.
23281 predep_objects=$lt_predep_objects_F77
23282
23283 # Dependencies to place after the objects being linked to create a
23284 # shared library.
23285 postdep_objects=$lt_postdep_objects_F77
23286
23287 # Dependencies to place before the objects being linked to create a
23288 # shared library.
23289 predeps=$lt_predeps_F77
23290
23291 # Dependencies to place after the objects being linked to create a
23292 # shared library.
23293 postdeps=$lt_postdeps_F77
23294
23295 # The library search path used internally by the compiler when linking
23296 # a shared library.
23297 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23298
23299 # Method to check whether dependent libraries are shared objects.
23300 deplibs_check_method=$lt_deplibs_check_method
23301
23302 # Command to use when deplibs_check_method == file_magic.
23303 file_magic_cmd=$lt_file_magic_cmd
23304
23305 # Flag that allows shared libraries with undefined symbols to be built.
23306 allow_undefined_flag=$lt_allow_undefined_flag_F77
23307
23308 # Flag that forces no undefined symbols.
23309 no_undefined_flag=$lt_no_undefined_flag_F77
23310
23311 # Commands used to finish a libtool library installation in a directory.
23312 finish_cmds=$lt_finish_cmds
23313
23314 # Same as above, but a single script fragment to be evaled but not shown.
23315 finish_eval=$lt_finish_eval
23316
23317 # Take the output of nm and produce a listing of raw symbols and C names.
23318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23319
23320 # Transform the output of nm in a proper C declaration
23321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23322
23323 # Transform the output of nm in a C name address pair
23324 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23325
23326 # This is the shared library runtime path variable.
23327 runpath_var=$runpath_var
23328
23329 # This is the shared library path variable.
23330 shlibpath_var=$shlibpath_var
23331
23332 # Is shlibpath searched before the hard-coded library search path?
23333 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23334
23335 # How to hardcode a shared library path into an executable.
23336 hardcode_action=$hardcode_action_F77
23337
23338 # Whether we should hardcode library paths into libraries.
23339 hardcode_into_libs=$hardcode_into_libs
23340
23341 # Flag to hardcode \$libdir into a binary during linking.
23342 # This must work even if \$libdir does not exist.
23343 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23344
23345 # If ld is used when linking, flag to hardcode \$libdir into
23346 # a binary during linking. This must work even if \$libdir does
23347 # not exist.
23348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23349
23350 # Whether we need a single -rpath flag with a separated argument.
23351 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23352
23353 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23354 # resulting binary.
23355 hardcode_direct=$hardcode_direct_F77
23356
23357 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23358 # resulting binary.
23359 hardcode_minus_L=$hardcode_minus_L_F77
23360
23361 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23362 # the resulting binary.
23363 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23364
23365 # Set to yes if building a shared library automatically hardcodes DIR into the library
23366 # and all subsequent libraries and executables linked against it.
23367 hardcode_automatic=$hardcode_automatic_F77
23368
23369 # Variables whose values should be saved in libtool wrapper scripts and
23370 # restored at relink time.
23371 variables_saved_for_relink="$variables_saved_for_relink"
23372
23373 # Whether libtool must link a program against all its dependency libraries.
23374 link_all_deplibs=$link_all_deplibs_F77
23375
23376 # Compile-time system search path for libraries
23377 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23378
23379 # Run-time system search path for libraries
23380 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23381
23382 # Fix the shell variable \$srcfile for the compiler.
23383 fix_srcfile_path="$fix_srcfile_path_F77"
23384
23385 # Set to yes if exported symbols are required.
23386 always_export_symbols=$always_export_symbols_F77
23387
23388 # The commands to list exported symbols.
23389 export_symbols_cmds=$lt_export_symbols_cmds_F77
23390
23391 # The commands to extract the exported symbol list from a shared archive.
23392 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23393
23394 # Symbols that should not be listed in the preloaded symbols.
23395 exclude_expsyms=$lt_exclude_expsyms_F77
23396
23397 # Symbols that must always be exported.
23398 include_expsyms=$lt_include_expsyms_F77
23399
23400 # ### END LIBTOOL TAG CONFIG: $tagname
23401
23402 __EOF__
23403
23404
23405 else
23406   # If there is no Makefile yet, we rely on a make rule to execute
23407   # `config.status --recheck' to rerun these tests and create the
23408   # libtool script then.
23409   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23410   if test -f "$ltmain_in"; then
23411     test -f Makefile && make "$ltmain"
23412   fi
23413 fi
23414
23415
23416 ac_ext=c
23417 ac_cpp='$CPP $CPPFLAGS'
23418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23421
23422 CC="$lt_save_CC"
23423
23424         else
23425           tagname=""
23426         fi
23427         ;;
23428
23429       GCJ)
23430         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23431
23432
23433 # Source file extension for Java test sources.
23434 ac_ext=java
23435
23436 # Object file extension for compiled Java test sources.
23437 objext=o
23438 objext_GCJ=$objext
23439
23440 # Code to be used in simple compile tests
23441 lt_simple_compile_test_code="class foo {}\n"
23442
23443 # Code to be used in simple link tests
23444 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23445
23446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23447
23448 # If no C compiler was specified, use CC.
23449 LTCC=${LTCC-"$CC"}
23450
23451 # If no C compiler flags were specified, use CFLAGS.
23452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23453
23454 # Allow CC to be a program name with arguments.
23455 compiler=$CC
23456
23457
23458 # save warnings/boilerplate of simple test code
23459 ac_outfile=conftest.$ac_objext
23460 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23462 _lt_compiler_boilerplate=`cat conftest.err`
23463 $rm conftest*
23464
23465 ac_outfile=conftest.$ac_objext
23466 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23468 _lt_linker_boilerplate=`cat conftest.err`
23469 $rm conftest*
23470
23471
23472 # Allow CC to be a program name with arguments.
23473 lt_save_CC="$CC"
23474 CC=${GCJ-"gcj"}
23475 compiler=$CC
23476 compiler_GCJ=$CC
23477 for cc_temp in $compiler""; do
23478   case $cc_temp in
23479     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23480     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23481     \-*) ;;
23482     *) break;;
23483   esac
23484 done
23485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23486
23487
23488 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23489 archive_cmds_need_lc_GCJ=no
23490
23491 old_archive_cmds_GCJ=$old_archive_cmds
23492
23493
23494 lt_prog_compiler_no_builtin_flag_GCJ=
23495
23496 if test "$GCC" = yes; then
23497   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23498
23499
23500 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23502 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23503   echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505   lt_cv_prog_compiler_rtti_exceptions=no
23506   ac_outfile=conftest.$ac_objext
23507    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23508    lt_compiler_flag="-fno-rtti -fno-exceptions"
23509    # Insert the option either (1) after the last *FLAGS variable, or
23510    # (2) before a word containing "conftest.", or (3) at the end.
23511    # Note that $ac_compile itself does not contain backslashes and begins
23512    # with a dollar sign (not a hyphen), so the echo should work correctly.
23513    # The option is referenced via a variable to avoid confusing sed.
23514    lt_compile=`echo "$ac_compile" | $SED \
23515    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23516    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23517    -e 's:$: $lt_compiler_flag:'`
23518    (eval echo "\"\$as_me:23518: $lt_compile\"" >&5)
23519    (eval "$lt_compile" 2>conftest.err)
23520    ac_status=$?
23521    cat conftest.err >&5
23522    echo "$as_me:23522: \$? = $ac_status" >&5
23523    if (exit $ac_status) && test -s "$ac_outfile"; then
23524      # The compiler can only warn and ignore the option if not recognized
23525      # So say no if there are warnings other than the usual output.
23526      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23527      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23528      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23529        lt_cv_prog_compiler_rtti_exceptions=yes
23530      fi
23531    fi
23532    $rm conftest*
23533
23534 fi
23535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23536 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23537
23538 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23539     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23540 else
23541     :
23542 fi
23543
23544 fi
23545
23546 lt_prog_compiler_wl_GCJ=
23547 lt_prog_compiler_pic_GCJ=
23548 lt_prog_compiler_static_GCJ=
23549
23550 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23552
23553   if test "$GCC" = yes; then
23554     lt_prog_compiler_wl_GCJ='-Wl,'
23555     lt_prog_compiler_static_GCJ='-static'
23556
23557     case $host_os in
23558       aix*)
23559       # All AIX code is PIC.
23560       if test "$host_cpu" = ia64; then
23561         # AIX 5 now supports IA64 processor
23562         lt_prog_compiler_static_GCJ='-Bstatic'
23563       fi
23564       ;;
23565
23566     amigaos*)
23567       # FIXME: we need at least 68020 code to build shared libraries, but
23568       # adding the `-m68020' flag to GCC prevents building anything better,
23569       # like `-m68040'.
23570       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23571       ;;
23572
23573     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23574       # PIC is the default for these OSes.
23575       ;;
23576
23577     mingw* | pw32* | os2*)
23578       # This hack is so that the source file can tell whether it is being
23579       # built for inclusion in a dll (and should export symbols for example).
23580       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23581       ;;
23582
23583     darwin* | rhapsody*)
23584       # PIC is the default on this platform
23585       # Common symbols not allowed in MH_DYLIB files
23586       lt_prog_compiler_pic_GCJ='-fno-common'
23587       ;;
23588
23589     interix3*)
23590       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23591       # Instead, we relocate shared libraries at runtime.
23592       ;;
23593
23594     msdosdjgpp*)
23595       # Just because we use GCC doesn't mean we suddenly get shared libraries
23596       # on systems that don't support them.
23597       lt_prog_compiler_can_build_shared_GCJ=no
23598       enable_shared=no
23599       ;;
23600
23601     sysv4*MP*)
23602       if test -d /usr/nec; then
23603         lt_prog_compiler_pic_GCJ=-Kconform_pic
23604       fi
23605       ;;
23606
23607     hpux*)
23608       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23609       # not for PA HP-UX.
23610       case $host_cpu in
23611       hppa*64*|ia64*)
23612         # +Z the default
23613         ;;
23614       *)
23615         lt_prog_compiler_pic_GCJ='-fPIC'
23616         ;;
23617       esac
23618       ;;
23619
23620     *)
23621       lt_prog_compiler_pic_GCJ='-fPIC'
23622       ;;
23623     esac
23624   else
23625     # PORTME Check for flag to pass linker flags through the system compiler.
23626     case $host_os in
23627     aix*)
23628       lt_prog_compiler_wl_GCJ='-Wl,'
23629       if test "$host_cpu" = ia64; then
23630         # AIX 5 now supports IA64 processor
23631         lt_prog_compiler_static_GCJ='-Bstatic'
23632       else
23633         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23634       fi
23635       ;;
23636       darwin*)
23637         # PIC is the default on this platform
23638         # Common symbols not allowed in MH_DYLIB files
23639        case $cc_basename in
23640          xlc*)
23641          lt_prog_compiler_pic_GCJ='-qnocommon'
23642          lt_prog_compiler_wl_GCJ='-Wl,'
23643          ;;
23644        esac
23645        ;;
23646
23647     mingw* | pw32* | os2*)
23648       # This hack is so that the source file can tell whether it is being
23649       # built for inclusion in a dll (and should export symbols for example).
23650       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23651       ;;
23652
23653     hpux9* | hpux10* | hpux11*)
23654       lt_prog_compiler_wl_GCJ='-Wl,'
23655       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23656       # not for PA HP-UX.
23657       case $host_cpu in
23658       hppa*64*|ia64*)
23659         # +Z the default
23660         ;;
23661       *)
23662         lt_prog_compiler_pic_GCJ='+Z'
23663         ;;
23664       esac
23665       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23666       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23667       ;;
23668
23669     irix5* | irix6* | nonstopux*)
23670       lt_prog_compiler_wl_GCJ='-Wl,'
23671       # PIC (with -KPIC) is the default.
23672       lt_prog_compiler_static_GCJ='-non_shared'
23673       ;;
23674
23675     newsos6)
23676       lt_prog_compiler_pic_GCJ='-KPIC'
23677       lt_prog_compiler_static_GCJ='-Bstatic'
23678       ;;
23679
23680     linux*)
23681       case $cc_basename in
23682       icc* | ecc*)
23683         lt_prog_compiler_wl_GCJ='-Wl,'
23684         lt_prog_compiler_pic_GCJ='-KPIC'
23685         lt_prog_compiler_static_GCJ='-static'
23686         ;;
23687       pgcc* | pgf77* | pgf90* | pgf95*)
23688         # Portland Group compilers (*not* the Pentium gcc compiler,
23689         # which looks to be a dead project)
23690         lt_prog_compiler_wl_GCJ='-Wl,'
23691         lt_prog_compiler_pic_GCJ='-fpic'
23692         lt_prog_compiler_static_GCJ='-Bstatic'
23693         ;;
23694       ccc*)
23695         lt_prog_compiler_wl_GCJ='-Wl,'
23696         # All Alpha code is PIC.
23697         lt_prog_compiler_static_GCJ='-non_shared'
23698         ;;
23699       esac
23700       ;;
23701
23702     osf3* | osf4* | osf5*)
23703       lt_prog_compiler_wl_GCJ='-Wl,'
23704       # All OSF/1 code is PIC.
23705       lt_prog_compiler_static_GCJ='-non_shared'
23706       ;;
23707
23708     solaris*)
23709       lt_prog_compiler_pic_GCJ='-KPIC'
23710       lt_prog_compiler_static_GCJ='-Bstatic'
23711       case $cc_basename in
23712       f77* | f90* | f95*)
23713         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23714       *)
23715         lt_prog_compiler_wl_GCJ='-Wl,';;
23716       esac
23717       ;;
23718
23719     sunos4*)
23720       lt_prog_compiler_wl_GCJ='-Qoption ld '
23721       lt_prog_compiler_pic_GCJ='-PIC'
23722       lt_prog_compiler_static_GCJ='-Bstatic'
23723       ;;
23724
23725     sysv4 | sysv4.2uw2* | sysv4.3*)
23726       lt_prog_compiler_wl_GCJ='-Wl,'
23727       lt_prog_compiler_pic_GCJ='-KPIC'
23728       lt_prog_compiler_static_GCJ='-Bstatic'
23729       ;;
23730
23731     sysv4*MP*)
23732       if test -d /usr/nec ;then
23733         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23734         lt_prog_compiler_static_GCJ='-Bstatic'
23735       fi
23736       ;;
23737
23738     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23739       lt_prog_compiler_wl_GCJ='-Wl,'
23740       lt_prog_compiler_pic_GCJ='-KPIC'
23741       lt_prog_compiler_static_GCJ='-Bstatic'
23742       ;;
23743
23744     unicos*)
23745       lt_prog_compiler_wl_GCJ='-Wl,'
23746       lt_prog_compiler_can_build_shared_GCJ=no
23747       ;;
23748
23749     uts4*)
23750       lt_prog_compiler_pic_GCJ='-pic'
23751       lt_prog_compiler_static_GCJ='-Bstatic'
23752       ;;
23753
23754     *)
23755       lt_prog_compiler_can_build_shared_GCJ=no
23756       ;;
23757     esac
23758   fi
23759
23760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23761 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23762
23763 #
23764 # Check to make sure the PIC flag actually works.
23765 #
23766 if test -n "$lt_prog_compiler_pic_GCJ"; then
23767
23768 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23769 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23770 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   lt_prog_compiler_pic_works_GCJ=no
23774   ac_outfile=conftest.$ac_objext
23775    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23776    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23777    # Insert the option either (1) after the last *FLAGS variable, or
23778    # (2) before a word containing "conftest.", or (3) at the end.
23779    # Note that $ac_compile itself does not contain backslashes and begins
23780    # with a dollar sign (not a hyphen), so the echo should work correctly.
23781    # The option is referenced via a variable to avoid confusing sed.
23782    lt_compile=`echo "$ac_compile" | $SED \
23783    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23785    -e 's:$: $lt_compiler_flag:'`
23786    (eval echo "\"\$as_me:23786: $lt_compile\"" >&5)
23787    (eval "$lt_compile" 2>conftest.err)
23788    ac_status=$?
23789    cat conftest.err >&5
23790    echo "$as_me:23790: \$? = $ac_status" >&5
23791    if (exit $ac_status) && test -s "$ac_outfile"; then
23792      # The compiler can only warn and ignore the option if not recognized
23793      # So say no if there are warnings other than the usual output.
23794      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23795      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23796      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23797        lt_prog_compiler_pic_works_GCJ=yes
23798      fi
23799    fi
23800    $rm conftest*
23801
23802 fi
23803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23804 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23805
23806 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23807     case $lt_prog_compiler_pic_GCJ in
23808      "" | " "*) ;;
23809      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23810      esac
23811 else
23812     lt_prog_compiler_pic_GCJ=
23813      lt_prog_compiler_can_build_shared_GCJ=no
23814 fi
23815
23816 fi
23817 case $host_os in
23818   # For platforms which do not support PIC, -DPIC is meaningless:
23819   *djgpp*)
23820     lt_prog_compiler_pic_GCJ=
23821     ;;
23822   *)
23823     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23824     ;;
23825 esac
23826
23827 #
23828 # Check to make sure the static flag actually works.
23829 #
23830 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23831 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23832 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23833 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23834   echo $ECHO_N "(cached) $ECHO_C" >&6
23835 else
23836   lt_prog_compiler_static_works_GCJ=no
23837    save_LDFLAGS="$LDFLAGS"
23838    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23839    printf "$lt_simple_link_test_code" > conftest.$ac_ext
23840    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23841      # The linker can only warn and ignore the option if not recognized
23842      # So say no if there are warnings
23843      if test -s conftest.err; then
23844        # Append any errors to the config.log.
23845        cat conftest.err 1>&5
23846        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23847        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23848        if diff conftest.exp conftest.er2 >/dev/null; then
23849          lt_prog_compiler_static_works_GCJ=yes
23850        fi
23851      else
23852        lt_prog_compiler_static_works_GCJ=yes
23853      fi
23854    fi
23855    $rm conftest*
23856    LDFLAGS="$save_LDFLAGS"
23857
23858 fi
23859 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23860 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23861
23862 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23863     :
23864 else
23865     lt_prog_compiler_static_GCJ=
23866 fi
23867
23868
23869 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23871 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23872   echo $ECHO_N "(cached) $ECHO_C" >&6
23873 else
23874   lt_cv_prog_compiler_c_o_GCJ=no
23875    $rm -r conftest 2>/dev/null
23876    mkdir conftest
23877    cd conftest
23878    mkdir out
23879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23880
23881    lt_compiler_flag="-o out/conftest2.$ac_objext"
23882    # Insert the option either (1) after the last *FLAGS variable, or
23883    # (2) before a word containing "conftest.", or (3) at the end.
23884    # Note that $ac_compile itself does not contain backslashes and begins
23885    # with a dollar sign (not a hyphen), so the echo should work correctly.
23886    lt_compile=`echo "$ac_compile" | $SED \
23887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23889    -e 's:$: $lt_compiler_flag:'`
23890    (eval echo "\"\$as_me:23890: $lt_compile\"" >&5)
23891    (eval "$lt_compile" 2>out/conftest.err)
23892    ac_status=$?
23893    cat out/conftest.err >&5
23894    echo "$as_me:23894: \$? = $ac_status" >&5
23895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23896    then
23897      # The compiler can only warn and ignore the option if not recognized
23898      # So say no if there are warnings
23899      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23900      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23901      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23902        lt_cv_prog_compiler_c_o_GCJ=yes
23903      fi
23904    fi
23905    chmod u+w . 2>&5
23906    $rm conftest*
23907    # SGI C++ compiler will create directory out/ii_files/ for
23908    # template instantiation
23909    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23910    $rm out/* && rmdir out
23911    cd ..
23912    rmdir conftest
23913    $rm conftest*
23914
23915 fi
23916 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23917 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23918
23919
23920 hard_links="nottested"
23921 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23922   # do not overwrite the value of need_locks provided by the user
23923   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23924 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23925   hard_links=yes
23926   $rm conftest*
23927   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23928   touch conftest.a
23929   ln conftest.a conftest.b 2>&5 || hard_links=no
23930   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23931   { echo "$as_me:$LINENO: result: $hard_links" >&5
23932 echo "${ECHO_T}$hard_links" >&6; }
23933   if test "$hard_links" = no; then
23934     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23935 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23936     need_locks=warn
23937   fi
23938 else
23939   need_locks=no
23940 fi
23941
23942 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23943 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23944
23945   runpath_var=
23946   allow_undefined_flag_GCJ=
23947   enable_shared_with_static_runtimes_GCJ=no
23948   archive_cmds_GCJ=
23949   archive_expsym_cmds_GCJ=
23950   old_archive_From_new_cmds_GCJ=
23951   old_archive_from_expsyms_cmds_GCJ=
23952   export_dynamic_flag_spec_GCJ=
23953   whole_archive_flag_spec_GCJ=
23954   thread_safe_flag_spec_GCJ=
23955   hardcode_libdir_flag_spec_GCJ=
23956   hardcode_libdir_flag_spec_ld_GCJ=
23957   hardcode_libdir_separator_GCJ=
23958   hardcode_direct_GCJ=no
23959   hardcode_minus_L_GCJ=no
23960   hardcode_shlibpath_var_GCJ=unsupported
23961   link_all_deplibs_GCJ=unknown
23962   hardcode_automatic_GCJ=no
23963   module_cmds_GCJ=
23964   module_expsym_cmds_GCJ=
23965   always_export_symbols_GCJ=no
23966   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23967   # include_expsyms should be a list of space-separated symbols to be *always*
23968   # included in the symbol list
23969   include_expsyms_GCJ=
23970   # exclude_expsyms can be an extended regexp of symbols to exclude
23971   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23972   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23973   # as well as any symbol that contains `d'.
23974   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23975   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23976   # platforms (ab)use it in PIC code, but their linkers get confused if
23977   # the symbol is explicitly referenced.  Since portable code cannot
23978   # rely on this symbol name, it's probably fine to never include it in
23979   # preloaded symbol tables.
23980   extract_expsyms_cmds=
23981   # Just being paranoid about ensuring that cc_basename is set.
23982   for cc_temp in $compiler""; do
23983   case $cc_temp in
23984     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23985     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23986     \-*) ;;
23987     *) break;;
23988   esac
23989 done
23990 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23991
23992   case $host_os in
23993   cygwin* | mingw* | pw32*)
23994     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23995     # When not using gcc, we currently assume that we are using
23996     # Microsoft Visual C++.
23997     if test "$GCC" != yes; then
23998       with_gnu_ld=no
23999     fi
24000     ;;
24001   interix*)
24002     # we just hope/assume this is gcc and not c89 (= MSVC++)
24003     with_gnu_ld=yes
24004     ;;
24005   openbsd*)
24006     with_gnu_ld=no
24007     ;;
24008   esac
24009
24010   ld_shlibs_GCJ=yes
24011   if test "$with_gnu_ld" = yes; then
24012     # If archive_cmds runs LD, not CC, wlarc should be empty
24013     wlarc='${wl}'
24014
24015     # Set some defaults for GNU ld with shared library support. These
24016     # are reset later if shared libraries are not supported. Putting them
24017     # here allows them to be overridden if necessary.
24018     runpath_var=LD_RUN_PATH
24019     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24020     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24021     # ancient GNU ld didn't support --whole-archive et. al.
24022     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24023         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24024       else
24025         whole_archive_flag_spec_GCJ=
24026     fi
24027     supports_anon_versioning=no
24028     case `$LD -v 2>/dev/null` in
24029       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24030       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24031       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24032       *\ 2.11.*) ;; # other 2.11 versions
24033       *) supports_anon_versioning=yes ;;
24034     esac
24035
24036     # See if GNU ld supports shared libraries.
24037     case $host_os in
24038     aix3* | aix4* | aix5*)
24039       # On AIX/PPC, the GNU linker is very broken
24040       if test "$host_cpu" != ia64; then
24041         ld_shlibs_GCJ=no
24042         cat <<EOF 1>&2
24043
24044 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24045 *** to be unable to reliably create shared libraries on AIX.
24046 *** Therefore, libtool is disabling shared libraries support.  If you
24047 *** really care for shared libraries, you may want to modify your PATH
24048 *** so that a non-GNU linker is found, and then restart.
24049
24050 EOF
24051       fi
24052       ;;
24053
24054     amigaos*)
24055       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)'
24056       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24057       hardcode_minus_L_GCJ=yes
24058
24059       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24060       # that the semantics of dynamic libraries on AmigaOS, at least up
24061       # to version 4, is to share data among multiple programs linked
24062       # with the same dynamic library.  Since this doesn't match the
24063       # behavior of shared libraries on other platforms, we can't use
24064       # them.
24065       ld_shlibs_GCJ=no
24066       ;;
24067
24068     beos*)
24069       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24070         allow_undefined_flag_GCJ=unsupported
24071         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24072         # support --undefined.  This deserves some investigation.  FIXME
24073         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24074       else
24075         ld_shlibs_GCJ=no
24076       fi
24077       ;;
24078
24079     cygwin* | mingw* | pw32*)
24080       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24081       # as there is no search path for DLLs.
24082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24083       allow_undefined_flag_GCJ=unsupported
24084       always_export_symbols_GCJ=no
24085       enable_shared_with_static_runtimes_GCJ=yes
24086       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24087
24088       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24089         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24090         # If the export-symbols file already is a .def file (1st line
24091         # is EXPORTS), use it as is; otherwise, prepend...
24092         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24093           cp $export_symbols $output_objdir/$soname.def;
24094         else
24095           echo EXPORTS > $output_objdir/$soname.def;
24096           cat $export_symbols >> $output_objdir/$soname.def;
24097         fi~
24098         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24099       else
24100         ld_shlibs_GCJ=no
24101       fi
24102       ;;
24103
24104     interix3*)
24105       hardcode_direct_GCJ=no
24106       hardcode_shlibpath_var_GCJ=no
24107       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24108       export_dynamic_flag_spec_GCJ='${wl}-E'
24109       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24110       # Instead, shared libraries are loaded at an image base (0x10000000 by
24111       # default) and relocated if they conflict, which is a slow very memory
24112       # consuming and fragmenting process.  To avoid this, we pick a random,
24113       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24114       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24115       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'
24116       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'
24117       ;;
24118
24119     linux*)
24120       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24121         tmp_addflag=
24122         case $cc_basename,$host_cpu in
24123         pgcc*)                          # Portland Group C compiler
24124           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'
24125           tmp_addflag=' $pic_flag'
24126           ;;
24127         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24128           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'
24129           tmp_addflag=' $pic_flag -Mnomain' ;;
24130         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24131           tmp_addflag=' -i_dynamic' ;;
24132         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24133           tmp_addflag=' -i_dynamic -nofor_main' ;;
24134         ifc* | ifort*)                  # Intel Fortran compiler
24135           tmp_addflag=' -nofor_main' ;;
24136         esac
24137         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24138
24139         if test $supports_anon_versioning = yes; then
24140           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24141   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24142   $echo "local: *; };" >> $output_objdir/$libname.ver~
24143           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24144         fi
24145       else
24146         ld_shlibs_GCJ=no
24147       fi
24148       ;;
24149
24150     netbsd*)
24151       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24152         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24153         wlarc=
24154       else
24155         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24156         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24157       fi
24158       ;;
24159
24160     solaris*)
24161       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24162         ld_shlibs_GCJ=no
24163         cat <<EOF 1>&2
24164
24165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24166 *** create shared libraries on Solaris systems.  Therefore, libtool
24167 *** is disabling shared libraries support.  We urge you to upgrade GNU
24168 *** binutils to release 2.9.1 or newer.  Another option is to modify
24169 *** your PATH or compiler configuration so that the native linker is
24170 *** used, and then restart.
24171
24172 EOF
24173       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24174         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24175         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24176       else
24177         ld_shlibs_GCJ=no
24178       fi
24179       ;;
24180
24181     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24182       case `$LD -v 2>&1` in
24183         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24184         ld_shlibs_GCJ=no
24185         cat <<_LT_EOF 1>&2
24186
24187 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24188 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24189 *** is disabling shared libraries support.  We urge you to upgrade GNU
24190 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24191 *** your PATH or compiler configuration so that the native linker is
24192 *** used, and then restart.
24193
24194 _LT_EOF
24195         ;;
24196         *)
24197           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24198             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24199             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24200             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24201           else
24202             ld_shlibs_GCJ=no
24203           fi
24204         ;;
24205       esac
24206       ;;
24207
24208     sunos4*)
24209       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24210       wlarc=
24211       hardcode_direct_GCJ=yes
24212       hardcode_shlibpath_var_GCJ=no
24213       ;;
24214
24215     *)
24216       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24217         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24218         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24219       else
24220         ld_shlibs_GCJ=no
24221       fi
24222       ;;
24223     esac
24224
24225     if test "$ld_shlibs_GCJ" = no; then
24226       runpath_var=
24227       hardcode_libdir_flag_spec_GCJ=
24228       export_dynamic_flag_spec_GCJ=
24229       whole_archive_flag_spec_GCJ=
24230     fi
24231   else
24232     # PORTME fill in a description of your system's linker (not GNU ld)
24233     case $host_os in
24234     aix3*)
24235       allow_undefined_flag_GCJ=unsupported
24236       always_export_symbols_GCJ=yes
24237       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'
24238       # Note: this linker hardcodes the directories in LIBPATH if there
24239       # are no directories specified by -L.
24240       hardcode_minus_L_GCJ=yes
24241       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24242         # Neither direct hardcoding nor static linking is supported with a
24243         # broken collect2.
24244         hardcode_direct_GCJ=unsupported
24245       fi
24246       ;;
24247
24248     aix4* | aix5*)
24249       if test "$host_cpu" = ia64; then
24250         # On IA64, the linker does run time linking by default, so we don't
24251         # have to do anything special.
24252         aix_use_runtimelinking=no
24253         exp_sym_flag='-Bexport'
24254         no_entry_flag=""
24255       else
24256         # If we're using GNU nm, then we don't want the "-C" option.
24257         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24258         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24259           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'
24260         else
24261           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'
24262         fi
24263         aix_use_runtimelinking=no
24264
24265         # Test if we are trying to use run time linking or normal
24266         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24267         # need to do runtime linking.
24268         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24269           for ld_flag in $LDFLAGS; do
24270           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24271             aix_use_runtimelinking=yes
24272             break
24273           fi
24274           done
24275           ;;
24276         esac
24277
24278         exp_sym_flag='-bexport'
24279         no_entry_flag='-bnoentry'
24280       fi
24281
24282       # When large executables or shared objects are built, AIX ld can
24283       # have problems creating the table of contents.  If linking a library
24284       # or program results in "error TOC overflow" add -mminimal-toc to
24285       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24286       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24287
24288       archive_cmds_GCJ=''
24289       hardcode_direct_GCJ=yes
24290       hardcode_libdir_separator_GCJ=':'
24291       link_all_deplibs_GCJ=yes
24292
24293       if test "$GCC" = yes; then
24294         case $host_os in aix4.[012]|aix4.[012].*)
24295         # We only want to do this on AIX 4.2 and lower, the check
24296         # below for broken collect2 doesn't work under 4.3+
24297           collect2name=`${CC} -print-prog-name=collect2`
24298           if test -f "$collect2name" && \
24299            strings "$collect2name" | grep resolve_lib_name >/dev/null
24300           then
24301           # We have reworked collect2
24302           hardcode_direct_GCJ=yes
24303           else
24304           # We have old collect2
24305           hardcode_direct_GCJ=unsupported
24306           # It fails to find uninstalled libraries when the uninstalled
24307           # path is not listed in the libpath.  Setting hardcode_minus_L
24308           # to unsupported forces relinking
24309           hardcode_minus_L_GCJ=yes
24310           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24311           hardcode_libdir_separator_GCJ=
24312           fi
24313           ;;
24314         esac
24315         shared_flag='-shared'
24316         if test "$aix_use_runtimelinking" = yes; then
24317           shared_flag="$shared_flag "'${wl}-G'
24318         fi
24319       else
24320         # not using gcc
24321         if test "$host_cpu" = ia64; then
24322         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24323         # chokes on -Wl,-G. The following line is correct:
24324           shared_flag='-G'
24325         else
24326           if test "$aix_use_runtimelinking" = yes; then
24327             shared_flag='${wl}-G'
24328           else
24329             shared_flag='${wl}-bM:SRE'
24330           fi
24331         fi
24332       fi
24333
24334       # It seems that -bexpall does not export symbols beginning with
24335       # underscore (_), so it is better to generate a list of symbols to export.
24336       always_export_symbols_GCJ=yes
24337       if test "$aix_use_runtimelinking" = yes; then
24338         # Warning - without using the other runtime loading flags (-brtl),
24339         # -berok will link without error, but may produce a broken library.
24340         allow_undefined_flag_GCJ='-berok'
24341        # Determine the default libpath from the value encoded in an empty executable.
24342        cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h.  */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h.  */
24348
24349 int
24350 main ()
24351 {
24352
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 rm -f conftest.$ac_objext conftest$ac_exeext
24358 if { (ac_try="$ac_link"
24359 case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24364   (eval "$ac_link") 2>conftest.er1
24365   ac_status=$?
24366   grep -v '^ *+' conftest.er1 >conftest.err
24367   rm -f conftest.er1
24368   cat conftest.err >&5
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); } && {
24371          test -z "$ac_c_werror_flag" ||
24372          test ! -s conftest.err
24373        } && test -s conftest$ac_exeext &&
24374        $as_test_x conftest$ac_exeext; then
24375
24376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24377 }'`
24378 # Check for a 64-bit object if we didn't find anything.
24379 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; }
24380 }'`; fi
24381 else
24382   echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24384
24385
24386 fi
24387
24388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24389       conftest$ac_exeext conftest.$ac_ext
24390 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24391
24392        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24393         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"
24394        else
24395         if test "$host_cpu" = ia64; then
24396           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24397           allow_undefined_flag_GCJ="-z nodefs"
24398           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"
24399         else
24400          # Determine the default libpath from the value encoded in an empty executable.
24401          cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407
24408 int
24409 main ()
24410 {
24411
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 rm -f conftest.$ac_objext conftest$ac_exeext
24417 if { (ac_try="$ac_link"
24418 case "(($ac_try" in
24419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420   *) ac_try_echo=$ac_try;;
24421 esac
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423   (eval "$ac_link") 2>conftest.er1
24424   ac_status=$?
24425   grep -v '^ *+' conftest.er1 >conftest.err
24426   rm -f conftest.er1
24427   cat conftest.err >&5
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } && {
24430          test -z "$ac_c_werror_flag" ||
24431          test ! -s conftest.err
24432        } && test -s conftest$ac_exeext &&
24433        $as_test_x conftest$ac_exeext; then
24434
24435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24436 }'`
24437 # Check for a 64-bit object if we didn't find anything.
24438 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; }
24439 }'`; fi
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444
24445 fi
24446
24447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24448       conftest$ac_exeext conftest.$ac_ext
24449 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24450
24451          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24452           # Warning - without using the other run time loading flags,
24453           # -berok will link without error, but may produce a broken library.
24454           no_undefined_flag_GCJ=' ${wl}-bernotok'
24455           allow_undefined_flag_GCJ=' ${wl}-berok'
24456           # Exported symbols can be pulled into shared objects from archives
24457           whole_archive_flag_spec_GCJ='$convenience'
24458           archive_cmds_need_lc_GCJ=yes
24459           # This is similar to how AIX traditionally builds its shared libraries.
24460           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'
24461         fi
24462       fi
24463       ;;
24464
24465     amigaos*)
24466       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)'
24467       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24468       hardcode_minus_L_GCJ=yes
24469       # see comment about different semantics on the GNU ld section
24470       ld_shlibs_GCJ=no
24471       ;;
24472
24473     bsdi[45]*)
24474       export_dynamic_flag_spec_GCJ=-rdynamic
24475       ;;
24476
24477     cygwin* | mingw* | pw32*)
24478       # When not using gcc, we currently assume that we are using
24479       # Microsoft Visual C++.
24480       # hardcode_libdir_flag_spec is actually meaningless, as there is
24481       # no search path for DLLs.
24482       hardcode_libdir_flag_spec_GCJ=' '
24483       allow_undefined_flag_GCJ=unsupported
24484       # Tell ltmain to make .lib files, not .a files.
24485       libext=lib
24486       # Tell ltmain to make .dll files, not .so files.
24487       shrext_cmds=".dll"
24488       # FIXME: Setting linknames here is a bad hack.
24489       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24490       # The linker will automatically build a .lib file if we build a DLL.
24491       old_archive_From_new_cmds_GCJ='true'
24492       # FIXME: Should let the user specify the lib program.
24493       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24494       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24495       enable_shared_with_static_runtimes_GCJ=yes
24496       ;;
24497
24498     darwin* | rhapsody*)
24499       case $host_os in
24500         rhapsody* | darwin1.[012])
24501          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24502          ;;
24503        *) # Darwin 1.3 on
24504          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24505            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24506          else
24507            case ${MACOSX_DEPLOYMENT_TARGET} in
24508              10.[012])
24509                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24510                ;;
24511              10.*)
24512                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24513                ;;
24514            esac
24515          fi
24516          ;;
24517       esac
24518       archive_cmds_need_lc_GCJ=no
24519       hardcode_direct_GCJ=no
24520       hardcode_automatic_GCJ=yes
24521       hardcode_shlibpath_var_GCJ=unsupported
24522       whole_archive_flag_spec_GCJ=''
24523       link_all_deplibs_GCJ=yes
24524     if test "$GCC" = yes ; then
24525         output_verbose_link_cmd='echo'
24526         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24527       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24528       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24529       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}'
24530       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}'
24531     else
24532       case $cc_basename in
24533         xlc*)
24534          output_verbose_link_cmd='echo'
24535          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24536          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24537           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24538          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}'
24539           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}'
24540           ;;
24541        *)
24542          ld_shlibs_GCJ=no
24543           ;;
24544       esac
24545     fi
24546       ;;
24547
24548     dgux*)
24549       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24550       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24551       hardcode_shlibpath_var_GCJ=no
24552       ;;
24553
24554     freebsd1*)
24555       ld_shlibs_GCJ=no
24556       ;;
24557
24558     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24559     # support.  Future versions do this automatically, but an explicit c++rt0.o
24560     # does not break anything, and helps significantly (at the cost of a little
24561     # extra space).
24562     freebsd2.2*)
24563       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24564       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24565       hardcode_direct_GCJ=yes
24566       hardcode_shlibpath_var_GCJ=no
24567       ;;
24568
24569     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24570     freebsd2*)
24571       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24572       hardcode_direct_GCJ=yes
24573       hardcode_minus_L_GCJ=yes
24574       hardcode_shlibpath_var_GCJ=no
24575       ;;
24576
24577     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24578     freebsd* | kfreebsd*-gnu | dragonfly*)
24579       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24580       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24581       hardcode_direct_GCJ=yes
24582       hardcode_shlibpath_var_GCJ=no
24583       ;;
24584
24585     hpux9*)
24586       if test "$GCC" = yes; then
24587         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'
24588       else
24589         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'
24590       fi
24591       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24592       hardcode_libdir_separator_GCJ=:
24593       hardcode_direct_GCJ=yes
24594
24595       # hardcode_minus_L: Not really in the search PATH,
24596       # but as the default location of the library.
24597       hardcode_minus_L_GCJ=yes
24598       export_dynamic_flag_spec_GCJ='${wl}-E'
24599       ;;
24600
24601     hpux10*)
24602       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24603         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24604       else
24605         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24606       fi
24607       if test "$with_gnu_ld" = no; then
24608         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24609         hardcode_libdir_separator_GCJ=:
24610
24611         hardcode_direct_GCJ=yes
24612         export_dynamic_flag_spec_GCJ='${wl}-E'
24613
24614         # hardcode_minus_L: Not really in the search PATH,
24615         # but as the default location of the library.
24616         hardcode_minus_L_GCJ=yes
24617       fi
24618       ;;
24619
24620     hpux11*)
24621       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24622         case $host_cpu in
24623         hppa*64*)
24624           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24625           ;;
24626         ia64*)
24627           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24628           ;;
24629         *)
24630           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24631           ;;
24632         esac
24633       else
24634         case $host_cpu in
24635         hppa*64*)
24636           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24637           ;;
24638         ia64*)
24639           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24640           ;;
24641         *)
24642           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24643           ;;
24644         esac
24645       fi
24646       if test "$with_gnu_ld" = no; then
24647         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24648         hardcode_libdir_separator_GCJ=:
24649
24650         case $host_cpu in
24651         hppa*64*|ia64*)
24652           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24653           hardcode_direct_GCJ=no
24654           hardcode_shlibpath_var_GCJ=no
24655           ;;
24656         *)
24657           hardcode_direct_GCJ=yes
24658           export_dynamic_flag_spec_GCJ='${wl}-E'
24659
24660           # hardcode_minus_L: Not really in the search PATH,
24661           # but as the default location of the library.
24662           hardcode_minus_L_GCJ=yes
24663           ;;
24664         esac
24665       fi
24666       ;;
24667
24668     irix5* | irix6* | nonstopux*)
24669       if test "$GCC" = yes; then
24670         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'
24671       else
24672         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'
24673         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24674       fi
24675       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24676       hardcode_libdir_separator_GCJ=:
24677       link_all_deplibs_GCJ=yes
24678       ;;
24679
24680     netbsd*)
24681       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24682         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24683       else
24684         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24685       fi
24686       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24687       hardcode_direct_GCJ=yes
24688       hardcode_shlibpath_var_GCJ=no
24689       ;;
24690
24691     newsos6)
24692       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24693       hardcode_direct_GCJ=yes
24694       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24695       hardcode_libdir_separator_GCJ=:
24696       hardcode_shlibpath_var_GCJ=no
24697       ;;
24698
24699     openbsd*)
24700       hardcode_direct_GCJ=yes
24701       hardcode_shlibpath_var_GCJ=no
24702       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24703         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24704         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24705         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24706         export_dynamic_flag_spec_GCJ='${wl}-E'
24707       else
24708        case $host_os in
24709          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24710            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24711            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24712            ;;
24713          *)
24714            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24715            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24716            ;;
24717        esac
24718       fi
24719       ;;
24720
24721     os2*)
24722       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24723       hardcode_minus_L_GCJ=yes
24724       allow_undefined_flag_GCJ=unsupported
24725       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'
24726       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24727       ;;
24728
24729     osf3*)
24730       if test "$GCC" = yes; then
24731         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24732         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'
24733       else
24734         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24735         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'
24736       fi
24737       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24738       hardcode_libdir_separator_GCJ=:
24739       ;;
24740
24741     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24742       if test "$GCC" = yes; then
24743         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24744         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'
24745         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24746       else
24747         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24748         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'
24749         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~
24750         $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'
24751
24752         # Both c and cxx compiler support -rpath directly
24753         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24754       fi
24755       hardcode_libdir_separator_GCJ=:
24756       ;;
24757
24758     solaris*)
24759       no_undefined_flag_GCJ=' -z text'
24760       if test "$GCC" = yes; then
24761         wlarc='${wl}'
24762         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24763         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24764           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24765       else
24766         wlarc=''
24767         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24768         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24769         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24770       fi
24771       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24772       hardcode_shlibpath_var_GCJ=no
24773       case $host_os in
24774       solaris2.[0-5] | solaris2.[0-5].*) ;;
24775       *)
24776         # The compiler driver will combine linker options so we
24777         # cannot just pass the convience library names through
24778         # without $wl, iff we do not link with $LD.
24779         # Luckily, gcc supports the same syntax we need for Sun Studio.
24780         # Supported since Solaris 2.6 (maybe 2.5.1?)
24781         case $wlarc in
24782         '')
24783           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24784         *)
24785           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' ;;
24786         esac ;;
24787       esac
24788       link_all_deplibs_GCJ=yes
24789       ;;
24790
24791     sunos4*)
24792       if test "x$host_vendor" = xsequent; then
24793         # Use $CC to link under sequent, because it throws in some extra .o
24794         # files that make .init and .fini sections work.
24795         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24796       else
24797         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24798       fi
24799       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24800       hardcode_direct_GCJ=yes
24801       hardcode_minus_L_GCJ=yes
24802       hardcode_shlibpath_var_GCJ=no
24803       ;;
24804
24805     sysv4)
24806       case $host_vendor in
24807         sni)
24808           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24809           hardcode_direct_GCJ=yes # is this really true???
24810         ;;
24811         siemens)
24812           ## LD is ld it makes a PLAMLIB
24813           ## CC just makes a GrossModule.
24814           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24815           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24816           hardcode_direct_GCJ=no
24817         ;;
24818         motorola)
24819           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24820           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24821         ;;
24822       esac
24823       runpath_var='LD_RUN_PATH'
24824       hardcode_shlibpath_var_GCJ=no
24825       ;;
24826
24827     sysv4.3*)
24828       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24829       hardcode_shlibpath_var_GCJ=no
24830       export_dynamic_flag_spec_GCJ='-Bexport'
24831       ;;
24832
24833     sysv4*MP*)
24834       if test -d /usr/nec; then
24835         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24836         hardcode_shlibpath_var_GCJ=no
24837         runpath_var=LD_RUN_PATH
24838         hardcode_runpath_var=yes
24839         ld_shlibs_GCJ=yes
24840       fi
24841       ;;
24842
24843     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24844       no_undefined_flag_GCJ='${wl}-z,text'
24845       archive_cmds_need_lc_GCJ=no
24846       hardcode_shlibpath_var_GCJ=no
24847       runpath_var='LD_RUN_PATH'
24848
24849       if test "$GCC" = yes; then
24850         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24851         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24852       else
24853         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24854         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24855       fi
24856       ;;
24857
24858     sysv5* | sco3.2v5* | sco5v6*)
24859       # Note: We can NOT use -z defs as we might desire, because we do not
24860       # link with -lc, and that would cause any symbols used from libc to
24861       # always be unresolved, which means just about no library would
24862       # ever link correctly.  If we're not using GNU ld we use -z text
24863       # though, which does catch some bad symbols but isn't as heavy-handed
24864       # as -z defs.
24865       no_undefined_flag_GCJ='${wl}-z,text'
24866       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24867       archive_cmds_need_lc_GCJ=no
24868       hardcode_shlibpath_var_GCJ=no
24869       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24870       hardcode_libdir_separator_GCJ=':'
24871       link_all_deplibs_GCJ=yes
24872       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24873       runpath_var='LD_RUN_PATH'
24874
24875       if test "$GCC" = yes; then
24876         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24877         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24878       else
24879         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24880         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24881       fi
24882       ;;
24883
24884     uts4*)
24885       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24886       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24887       hardcode_shlibpath_var_GCJ=no
24888       ;;
24889
24890     *)
24891       ld_shlibs_GCJ=no
24892       ;;
24893     esac
24894   fi
24895
24896 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24897 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24898 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24899
24900 #
24901 # Do we need to explicitly link libc?
24902 #
24903 case "x$archive_cmds_need_lc_GCJ" in
24904 x|xyes)
24905   # Assume -lc should be added
24906   archive_cmds_need_lc_GCJ=yes
24907
24908   if test "$enable_shared" = yes && test "$GCC" = yes; then
24909     case $archive_cmds_GCJ in
24910     *'~'*)
24911       # FIXME: we may have to deal with multi-command sequences.
24912       ;;
24913     '$CC '*)
24914       # Test whether the compiler implicitly links with -lc since on some
24915       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24916       # to ld, don't add -lc before -lgcc.
24917       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24918 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24919       $rm conftest*
24920       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24921
24922       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24923   (eval $ac_compile) 2>&5
24924   ac_status=$?
24925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926   (exit $ac_status); } 2>conftest.err; then
24927         soname=conftest
24928         lib=conftest
24929         libobjs=conftest.$ac_objext
24930         deplibs=
24931         wl=$lt_prog_compiler_wl_GCJ
24932         pic_flag=$lt_prog_compiler_pic_GCJ
24933         compiler_flags=-v
24934         linker_flags=-v
24935         verstring=
24936         output_objdir=.
24937         libname=conftest
24938         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24939         allow_undefined_flag_GCJ=
24940         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24941   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }
24945         then
24946           archive_cmds_need_lc_GCJ=no
24947         else
24948           archive_cmds_need_lc_GCJ=yes
24949         fi
24950         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24951       else
24952         cat conftest.err 1>&5
24953       fi
24954       $rm conftest*
24955       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24956 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24957       ;;
24958     esac
24959   fi
24960   ;;
24961 esac
24962
24963 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24965 library_names_spec=
24966 libname_spec='lib$name'
24967 soname_spec=
24968 shrext_cmds=".so"
24969 postinstall_cmds=
24970 postuninstall_cmds=
24971 finish_cmds=
24972 finish_eval=
24973 shlibpath_var=
24974 shlibpath_overrides_runpath=unknown
24975 version_type=none
24976 dynamic_linker="$host_os ld.so"
24977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24978 if test "$GCC" = yes; then
24979   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24980   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24981     # if the path contains ";" then we assume it to be the separator
24982     # otherwise default to the standard path separator (i.e. ":") - it is
24983     # assumed that no part of a normal pathname contains ";" but that should
24984     # okay in the real world where ";" in dirpaths is itself problematic.
24985     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24986   else
24987     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24988   fi
24989 else
24990   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24991 fi
24992 need_lib_prefix=unknown
24993 hardcode_into_libs=no
24994
24995 # when you set need_version to no, make sure it does not cause -set_version
24996 # flags to be left without arguments
24997 need_version=unknown
24998
24999 case $host_os in
25000 aix3*)
25001   version_type=linux
25002   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25003   shlibpath_var=LIBPATH
25004
25005   # AIX 3 has no versioning support, so we append a major version to the name.
25006   soname_spec='${libname}${release}${shared_ext}$major'
25007   ;;
25008
25009 aix4* | aix5*)
25010   version_type=linux
25011   need_lib_prefix=no
25012   need_version=no
25013   hardcode_into_libs=yes
25014   if test "$host_cpu" = ia64; then
25015     # AIX 5 supports IA64
25016     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25017     shlibpath_var=LD_LIBRARY_PATH
25018   else
25019     # With GCC up to 2.95.x, collect2 would create an import file
25020     # for dependence libraries.  The import file would start with
25021     # the line `#! .'.  This would cause the generated library to
25022     # depend on `.', always an invalid library.  This was fixed in
25023     # development snapshots of GCC prior to 3.0.
25024     case $host_os in
25025       aix4 | aix4.[01] | aix4.[01].*)
25026       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25027            echo ' yes '
25028            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25029         :
25030       else
25031         can_build_shared=no
25032       fi
25033       ;;
25034     esac
25035     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25036     # soname into executable. Probably we can add versioning support to
25037     # collect2, so additional links can be useful in future.
25038     if test "$aix_use_runtimelinking" = yes; then
25039       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25040       # instead of lib<name>.a to let people know that these are not
25041       # typical AIX shared libraries.
25042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25043     else
25044       # We preserve .a as extension for shared libraries through AIX4.2
25045       # and later when we are not doing run time linking.
25046       library_names_spec='${libname}${release}.a $libname.a'
25047       soname_spec='${libname}${release}${shared_ext}$major'
25048     fi
25049     shlibpath_var=LIBPATH
25050   fi
25051   ;;
25052
25053 amigaos*)
25054   library_names_spec='$libname.ixlibrary $libname.a'
25055   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25056   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'
25057   ;;
25058
25059 beos*)
25060   library_names_spec='${libname}${shared_ext}'
25061   dynamic_linker="$host_os ld.so"
25062   shlibpath_var=LIBRARY_PATH
25063   ;;
25064
25065 bsdi[45]*)
25066   version_type=linux
25067   need_version=no
25068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25069   soname_spec='${libname}${release}${shared_ext}$major'
25070   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25071   shlibpath_var=LD_LIBRARY_PATH
25072   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25073   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25074   # the default ld.so.conf also contains /usr/contrib/lib and
25075   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25076   # libtool to hard-code these into programs
25077   ;;
25078
25079 cygwin* | mingw* | pw32*)
25080   version_type=windows
25081   shrext_cmds=".dll"
25082   need_version=no
25083   need_lib_prefix=no
25084
25085   case $GCC,$host_os in
25086   yes,cygwin* | yes,mingw* | yes,pw32*)
25087     library_names_spec='$libname.dll.a'
25088     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25089     postinstall_cmds='base_file=`basename \${file}`~
25090       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25091       dldir=$destdir/`dirname \$dlpath`~
25092       test -d \$dldir || mkdir -p \$dldir~
25093       $install_prog $dir/$dlname \$dldir/$dlname~
25094       chmod a+x \$dldir/$dlname'
25095     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25096       dlpath=$dir/\$dldll~
25097        $rm \$dlpath'
25098     shlibpath_overrides_runpath=yes
25099
25100     case $host_os in
25101     cygwin*)
25102       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25103       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25104       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25105       ;;
25106     mingw*)
25107       # MinGW DLLs use traditional 'lib' prefix
25108       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25109       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25110       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25111         # It is most probably a Windows format PATH printed by
25112         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25113         # path with ; separators, and with drive letters. We can handle the
25114         # drive letters (cygwin fileutils understands them), so leave them,
25115         # especially as we might pass files found there to a mingw objdump,
25116         # which wouldn't understand a cygwinified path. Ahh.
25117         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25118       else
25119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25120       fi
25121       ;;
25122     pw32*)
25123       # pw32 DLLs use 'pw' prefix rather than 'lib'
25124       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25125       ;;
25126     esac
25127     ;;
25128
25129   *)
25130     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25131     ;;
25132   esac
25133   dynamic_linker='Win32 ld.exe'
25134   # FIXME: first we should search . and the directory the executable is in
25135   shlibpath_var=PATH
25136   ;;
25137
25138 darwin* | rhapsody*)
25139   dynamic_linker="$host_os dyld"
25140   version_type=darwin
25141   need_lib_prefix=no
25142   need_version=no
25143   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25144   soname_spec='${libname}${release}${major}$shared_ext'
25145   shlibpath_overrides_runpath=yes
25146   shlibpath_var=DYLD_LIBRARY_PATH
25147   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25148   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25149   if test "$GCC" = yes; then
25150     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"`
25151   else
25152     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25153   fi
25154   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25155   ;;
25156
25157 dgux*)
25158   version_type=linux
25159   need_lib_prefix=no
25160   need_version=no
25161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25162   soname_spec='${libname}${release}${shared_ext}$major'
25163   shlibpath_var=LD_LIBRARY_PATH
25164   ;;
25165
25166 freebsd1*)
25167   dynamic_linker=no
25168   ;;
25169
25170 kfreebsd*-gnu)
25171   version_type=linux
25172   need_lib_prefix=no
25173   need_version=no
25174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25175   soname_spec='${libname}${release}${shared_ext}$major'
25176   shlibpath_var=LD_LIBRARY_PATH
25177   shlibpath_overrides_runpath=no
25178   hardcode_into_libs=yes
25179   dynamic_linker='GNU ld.so'
25180   ;;
25181
25182 freebsd* | dragonfly*)
25183   # DragonFly does not have aout.  When/if they implement a new
25184   # versioning mechanism, adjust this.
25185   if test -x /usr/bin/objformat; then
25186     objformat=`/usr/bin/objformat`
25187   else
25188     case $host_os in
25189     freebsd[123]*) objformat=aout ;;
25190     *) objformat=elf ;;
25191     esac
25192   fi
25193   version_type=freebsd-$objformat
25194   case $version_type in
25195     freebsd-elf*)
25196       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25197       need_version=no
25198       need_lib_prefix=no
25199       ;;
25200     freebsd-*)
25201       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25202       need_version=yes
25203       ;;
25204   esac
25205   shlibpath_var=LD_LIBRARY_PATH
25206   case $host_os in
25207   freebsd2*)
25208     shlibpath_overrides_runpath=yes
25209     ;;
25210   freebsd3.[01]* | freebsdelf3.[01]*)
25211     shlibpath_overrides_runpath=yes
25212     hardcode_into_libs=yes
25213     ;;
25214   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25215   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25216     shlibpath_overrides_runpath=no
25217     hardcode_into_libs=yes
25218     ;;
25219   freebsd*) # from 4.6 on
25220     shlibpath_overrides_runpath=yes
25221     hardcode_into_libs=yes
25222     ;;
25223   esac
25224   ;;
25225
25226 gnu*)
25227   version_type=linux
25228   need_lib_prefix=no
25229   need_version=no
25230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25231   soname_spec='${libname}${release}${shared_ext}$major'
25232   shlibpath_var=LD_LIBRARY_PATH
25233   hardcode_into_libs=yes
25234   ;;
25235
25236 hpux9* | hpux10* | hpux11*)
25237   # Give a soname corresponding to the major version so that dld.sl refuses to
25238   # link against other versions.
25239   version_type=sunos
25240   need_lib_prefix=no
25241   need_version=no
25242   case $host_cpu in
25243   ia64*)
25244     shrext_cmds='.so'
25245     hardcode_into_libs=yes
25246     dynamic_linker="$host_os dld.so"
25247     shlibpath_var=LD_LIBRARY_PATH
25248     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25250     soname_spec='${libname}${release}${shared_ext}$major'
25251     if test "X$HPUX_IA64_MODE" = X32; then
25252       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25253     else
25254       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25255     fi
25256     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25257     ;;
25258    hppa*64*)
25259      shrext_cmds='.sl'
25260      hardcode_into_libs=yes
25261      dynamic_linker="$host_os dld.sl"
25262      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25263      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25264      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25265      soname_spec='${libname}${release}${shared_ext}$major'
25266      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25267      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25268      ;;
25269    *)
25270     shrext_cmds='.sl'
25271     dynamic_linker="$host_os dld.sl"
25272     shlibpath_var=SHLIB_PATH
25273     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25275     soname_spec='${libname}${release}${shared_ext}$major'
25276     ;;
25277   esac
25278   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25279   postinstall_cmds='chmod 555 $lib'
25280   ;;
25281
25282 interix3*)
25283   version_type=linux
25284   need_lib_prefix=no
25285   need_version=no
25286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25287   soname_spec='${libname}${release}${shared_ext}$major'
25288   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25289   shlibpath_var=LD_LIBRARY_PATH
25290   shlibpath_overrides_runpath=no
25291   hardcode_into_libs=yes
25292   ;;
25293
25294 irix5* | irix6* | nonstopux*)
25295   case $host_os in
25296     nonstopux*) version_type=nonstopux ;;
25297     *)
25298         if test "$lt_cv_prog_gnu_ld" = yes; then
25299                 version_type=linux
25300         else
25301                 version_type=irix
25302         fi ;;
25303   esac
25304   need_lib_prefix=no
25305   need_version=no
25306   soname_spec='${libname}${release}${shared_ext}$major'
25307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25308   case $host_os in
25309   irix5* | nonstopux*)
25310     libsuff= shlibsuff=
25311     ;;
25312   *)
25313     case $LD in # libtool.m4 will add one of these switches to LD
25314     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25315       libsuff= shlibsuff= libmagic=32-bit;;
25316     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25317       libsuff=32 shlibsuff=N32 libmagic=N32;;
25318     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25319       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25320     *) libsuff= shlibsuff= libmagic=never-match;;
25321     esac
25322     ;;
25323   esac
25324   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25325   shlibpath_overrides_runpath=no
25326   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25327   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25328   hardcode_into_libs=yes
25329   ;;
25330
25331 # No shared lib support for Linux oldld, aout, or coff.
25332 linux*oldld* | linux*aout* | linux*coff*)
25333   dynamic_linker=no
25334   ;;
25335
25336 # This must be Linux ELF.
25337 linux*)
25338   version_type=linux
25339   need_lib_prefix=no
25340   need_version=no
25341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25342   soname_spec='${libname}${release}${shared_ext}$major'
25343   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25344   shlibpath_var=LD_LIBRARY_PATH
25345   shlibpath_overrides_runpath=no
25346   # This implies no fast_install, which is unacceptable.
25347   # Some rework will be needed to allow for fast_install
25348   # before this can be enabled.
25349   hardcode_into_libs=yes
25350
25351   # find out which ABI we are using
25352   libsuff=
25353   case "$host_cpu" in
25354   x86_64*|s390x*|powerpc64*)
25355     echo '#line 25355 "configure"' > conftest.$ac_ext
25356     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25357   (eval $ac_compile) 2>&5
25358   ac_status=$?
25359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360   (exit $ac_status); }; then
25361       case `/usr/bin/file conftest.$ac_objext` in
25362       *64-bit*)
25363         libsuff=64
25364         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
25365         ;;
25366       esac
25367     fi
25368     rm -rf conftest*
25369     ;;
25370   esac
25371
25372   # Append ld.so.conf contents to the search path
25373   if test -f /etc/ld.so.conf; then
25374     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' ' '`
25375     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
25376   fi
25377
25378   # We used to test for /lib/ld.so.1 and disable shared libraries on
25379   # powerpc, because MkLinux only supported shared libraries with the
25380   # GNU dynamic linker.  Since this was broken with cross compilers,
25381   # most powerpc-linux boxes support dynamic linking these days and
25382   # people can always --disable-shared, the test was removed, and we
25383   # assume the GNU/Linux dynamic linker is in use.
25384   dynamic_linker='GNU/Linux ld.so'
25385   ;;
25386
25387 knetbsd*-gnu)
25388   version_type=linux
25389   need_lib_prefix=no
25390   need_version=no
25391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25392   soname_spec='${libname}${release}${shared_ext}$major'
25393   shlibpath_var=LD_LIBRARY_PATH
25394   shlibpath_overrides_runpath=no
25395   hardcode_into_libs=yes
25396   dynamic_linker='GNU ld.so'
25397   ;;
25398
25399 netbsd*)
25400   version_type=sunos
25401   need_lib_prefix=no
25402   need_version=no
25403   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25405     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25406     dynamic_linker='NetBSD (a.out) ld.so'
25407   else
25408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25409     soname_spec='${libname}${release}${shared_ext}$major'
25410     dynamic_linker='NetBSD ld.elf_so'
25411   fi
25412   shlibpath_var=LD_LIBRARY_PATH
25413   shlibpath_overrides_runpath=yes
25414   hardcode_into_libs=yes
25415   ;;
25416
25417 newsos6)
25418   version_type=linux
25419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25420   shlibpath_var=LD_LIBRARY_PATH
25421   shlibpath_overrides_runpath=yes
25422   ;;
25423
25424 nto-qnx*)
25425   version_type=linux
25426   need_lib_prefix=no
25427   need_version=no
25428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25429   soname_spec='${libname}${release}${shared_ext}$major'
25430   shlibpath_var=LD_LIBRARY_PATH
25431   shlibpath_overrides_runpath=yes
25432   ;;
25433
25434 openbsd*)
25435   version_type=sunos
25436   sys_lib_dlsearch_path_spec="/usr/lib"
25437   need_lib_prefix=no
25438   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25439   case $host_os in
25440     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25441     *)                         need_version=no  ;;
25442   esac
25443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25444   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25445   shlibpath_var=LD_LIBRARY_PATH
25446   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25447     case $host_os in
25448       openbsd2.[89] | openbsd2.[89].*)
25449         shlibpath_overrides_runpath=no
25450         ;;
25451       *)
25452         shlibpath_overrides_runpath=yes
25453         ;;
25454       esac
25455   else
25456     shlibpath_overrides_runpath=yes
25457   fi
25458   ;;
25459
25460 os2*)
25461   libname_spec='$name'
25462   shrext_cmds=".dll"
25463   need_lib_prefix=no
25464   library_names_spec='$libname${shared_ext} $libname.a'
25465   dynamic_linker='OS/2 ld.exe'
25466   shlibpath_var=LIBPATH
25467   ;;
25468
25469 osf3* | osf4* | osf5*)
25470   version_type=osf
25471   need_lib_prefix=no
25472   need_version=no
25473   soname_spec='${libname}${release}${shared_ext}$major'
25474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475   shlibpath_var=LD_LIBRARY_PATH
25476   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25477   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25478   ;;
25479
25480 solaris*)
25481   version_type=linux
25482   need_lib_prefix=no
25483   need_version=no
25484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25485   soname_spec='${libname}${release}${shared_ext}$major'
25486   shlibpath_var=LD_LIBRARY_PATH
25487   shlibpath_overrides_runpath=yes
25488   hardcode_into_libs=yes
25489   # ldd complains unless libraries are executable
25490   postinstall_cmds='chmod +x $lib'
25491   ;;
25492
25493 sunos4*)
25494   version_type=sunos
25495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25496   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25497   shlibpath_var=LD_LIBRARY_PATH
25498   shlibpath_overrides_runpath=yes
25499   if test "$with_gnu_ld" = yes; then
25500     need_lib_prefix=no
25501   fi
25502   need_version=yes
25503   ;;
25504
25505 sysv4 | sysv4.3*)
25506   version_type=linux
25507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508   soname_spec='${libname}${release}${shared_ext}$major'
25509   shlibpath_var=LD_LIBRARY_PATH
25510   case $host_vendor in
25511     sni)
25512       shlibpath_overrides_runpath=no
25513       need_lib_prefix=no
25514       export_dynamic_flag_spec='${wl}-Blargedynsym'
25515       runpath_var=LD_RUN_PATH
25516       ;;
25517     siemens)
25518       need_lib_prefix=no
25519       ;;
25520     motorola)
25521       need_lib_prefix=no
25522       need_version=no
25523       shlibpath_overrides_runpath=no
25524       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25525       ;;
25526   esac
25527   ;;
25528
25529 sysv4*MP*)
25530   if test -d /usr/nec ;then
25531     version_type=linux
25532     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25533     soname_spec='$libname${shared_ext}.$major'
25534     shlibpath_var=LD_LIBRARY_PATH
25535   fi
25536   ;;
25537
25538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25539   version_type=freebsd-elf
25540   need_lib_prefix=no
25541   need_version=no
25542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25543   soname_spec='${libname}${release}${shared_ext}$major'
25544   shlibpath_var=LD_LIBRARY_PATH
25545   hardcode_into_libs=yes
25546   if test "$with_gnu_ld" = yes; then
25547     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25548     shlibpath_overrides_runpath=no
25549   else
25550     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25551     shlibpath_overrides_runpath=yes
25552     case $host_os in
25553       sco3.2v5*)
25554         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25555         ;;
25556     esac
25557   fi
25558   sys_lib_dlsearch_path_spec='/usr/lib'
25559   ;;
25560
25561 uts4*)
25562   version_type=linux
25563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25564   soname_spec='${libname}${release}${shared_ext}$major'
25565   shlibpath_var=LD_LIBRARY_PATH
25566   ;;
25567
25568 *)
25569   dynamic_linker=no
25570   ;;
25571 esac
25572 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25573 echo "${ECHO_T}$dynamic_linker" >&6; }
25574 test "$dynamic_linker" = no && can_build_shared=no
25575
25576 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25577 if test "$GCC" = yes; then
25578   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25579 fi
25580
25581 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25582 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25583 hardcode_action_GCJ=
25584 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25585    test -n "$runpath_var_GCJ" || \
25586    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25587
25588   # We can hardcode non-existant directories.
25589   if test "$hardcode_direct_GCJ" != no &&
25590      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25591      # have to relink, otherwise we might link with an installed library
25592      # when we should be linking with a yet-to-be-installed one
25593      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25594      test "$hardcode_minus_L_GCJ" != no; then
25595     # Linking always hardcodes the temporary library directory.
25596     hardcode_action_GCJ=relink
25597   else
25598     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25599     hardcode_action_GCJ=immediate
25600   fi
25601 else
25602   # We cannot hardcode anything, or else we can only hardcode existing
25603   # directories.
25604   hardcode_action_GCJ=unsupported
25605 fi
25606 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25607 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25608
25609 if test "$hardcode_action_GCJ" = relink; then
25610   # Fast installation is not supported
25611   enable_fast_install=no
25612 elif test "$shlibpath_overrides_runpath" = yes ||
25613      test "$enable_shared" = no; then
25614   # Fast installation is not necessary
25615   enable_fast_install=needless
25616 fi
25617
25618
25619 # The else clause should only fire when bootstrapping the
25620 # libtool distribution, otherwise you forgot to ship ltmain.sh
25621 # with your package, and you will get complaints that there are
25622 # no rules to generate ltmain.sh.
25623 if test -f "$ltmain"; then
25624   # See if we are running on zsh, and set the options which allow our commands through
25625   # without removal of \ escapes.
25626   if test -n "${ZSH_VERSION+set}" ; then
25627     setopt NO_GLOB_SUBST
25628   fi
25629   # Now quote all the things that may contain metacharacters while being
25630   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25631   # variables and quote the copies for generation of the libtool script.
25632   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25633     SED SHELL STRIP \
25634     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25635     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25636     deplibs_check_method reload_flag reload_cmds need_locks \
25637     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25638     lt_cv_sys_global_symbol_to_c_name_address \
25639     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25640     old_postinstall_cmds old_postuninstall_cmds \
25641     compiler_GCJ \
25642     CC_GCJ \
25643     LD_GCJ \
25644     lt_prog_compiler_wl_GCJ \
25645     lt_prog_compiler_pic_GCJ \
25646     lt_prog_compiler_static_GCJ \
25647     lt_prog_compiler_no_builtin_flag_GCJ \
25648     export_dynamic_flag_spec_GCJ \
25649     thread_safe_flag_spec_GCJ \
25650     whole_archive_flag_spec_GCJ \
25651     enable_shared_with_static_runtimes_GCJ \
25652     old_archive_cmds_GCJ \
25653     old_archive_from_new_cmds_GCJ \
25654     predep_objects_GCJ \
25655     postdep_objects_GCJ \
25656     predeps_GCJ \
25657     postdeps_GCJ \
25658     compiler_lib_search_path_GCJ \
25659     archive_cmds_GCJ \
25660     archive_expsym_cmds_GCJ \
25661     postinstall_cmds_GCJ \
25662     postuninstall_cmds_GCJ \
25663     old_archive_from_expsyms_cmds_GCJ \
25664     allow_undefined_flag_GCJ \
25665     no_undefined_flag_GCJ \
25666     export_symbols_cmds_GCJ \
25667     hardcode_libdir_flag_spec_GCJ \
25668     hardcode_libdir_flag_spec_ld_GCJ \
25669     hardcode_libdir_separator_GCJ \
25670     hardcode_automatic_GCJ \
25671     module_cmds_GCJ \
25672     module_expsym_cmds_GCJ \
25673     lt_cv_prog_compiler_c_o_GCJ \
25674     exclude_expsyms_GCJ \
25675     include_expsyms_GCJ; do
25676
25677     case $var in
25678     old_archive_cmds_GCJ | \
25679     old_archive_from_new_cmds_GCJ | \
25680     archive_cmds_GCJ | \
25681     archive_expsym_cmds_GCJ | \
25682     module_cmds_GCJ | \
25683     module_expsym_cmds_GCJ | \
25684     old_archive_from_expsyms_cmds_GCJ | \
25685     export_symbols_cmds_GCJ | \
25686     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25687     postinstall_cmds | postuninstall_cmds | \
25688     old_postinstall_cmds | old_postuninstall_cmds | \
25689     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25690       # Double-quote double-evaled strings.
25691       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25692       ;;
25693     *)
25694       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25695       ;;
25696     esac
25697   done
25698
25699   case $lt_echo in
25700   *'\$0 --fallback-echo"')
25701     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25702     ;;
25703   esac
25704
25705 cfgfile="$ofile"
25706
25707   cat <<__EOF__ >> "$cfgfile"
25708 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25709
25710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25711
25712 # Shell to use when invoking shell scripts.
25713 SHELL=$lt_SHELL
25714
25715 # Whether or not to build shared libraries.
25716 build_libtool_libs=$enable_shared
25717
25718 # Whether or not to build static libraries.
25719 build_old_libs=$enable_static
25720
25721 # Whether or not to add -lc for building shared libraries.
25722 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25723
25724 # Whether or not to disallow shared libs when runtime libs are static
25725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25726
25727 # Whether or not to optimize for fast installation.
25728 fast_install=$enable_fast_install
25729
25730 # The host system.
25731 host_alias=$host_alias
25732 host=$host
25733 host_os=$host_os
25734
25735 # The build system.
25736 build_alias=$build_alias
25737 build=$build
25738 build_os=$build_os
25739
25740 # An echo program that does not interpret backslashes.
25741 echo=$lt_echo
25742
25743 # The archiver.
25744 AR=$lt_AR
25745 AR_FLAGS=$lt_AR_FLAGS
25746
25747 # A C compiler.
25748 LTCC=$lt_LTCC
25749
25750 # LTCC compiler flags.
25751 LTCFLAGS=$lt_LTCFLAGS
25752
25753 # A language-specific compiler.
25754 CC=$lt_compiler_GCJ
25755
25756 # Is the compiler the GNU C compiler?
25757 with_gcc=$GCC_GCJ
25758
25759 # An ERE matcher.
25760 EGREP=$lt_EGREP
25761
25762 # The linker used to build libraries.
25763 LD=$lt_LD_GCJ
25764
25765 # Whether we need hard or soft links.
25766 LN_S=$lt_LN_S
25767
25768 # A BSD-compatible nm program.
25769 NM=$lt_NM
25770
25771 # A symbol stripping program
25772 STRIP=$lt_STRIP
25773
25774 # Used to examine libraries when file_magic_cmd begins "file"
25775 MAGIC_CMD=$MAGIC_CMD
25776
25777 # Used on cygwin: DLL creation program.
25778 DLLTOOL="$DLLTOOL"
25779
25780 # Used on cygwin: object dumper.
25781 OBJDUMP="$OBJDUMP"
25782
25783 # Used on cygwin: assembler.
25784 AS="$AS"
25785
25786 # The name of the directory that contains temporary libtool files.
25787 objdir=$objdir
25788
25789 # How to create reloadable object files.
25790 reload_flag=$lt_reload_flag
25791 reload_cmds=$lt_reload_cmds
25792
25793 # How to pass a linker flag through the compiler.
25794 wl=$lt_lt_prog_compiler_wl_GCJ
25795
25796 # Object file suffix (normally "o").
25797 objext="$ac_objext"
25798
25799 # Old archive suffix (normally "a").
25800 libext="$libext"
25801
25802 # Shared library suffix (normally ".so").
25803 shrext_cmds='$shrext_cmds'
25804
25805 # Executable file suffix (normally "").
25806 exeext="$exeext"
25807
25808 # Additional compiler flags for building library objects.
25809 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25810 pic_mode=$pic_mode
25811
25812 # What is the maximum length of a command?
25813 max_cmd_len=$lt_cv_sys_max_cmd_len
25814
25815 # Does compiler simultaneously support -c and -o options?
25816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25817
25818 # Must we lock files when doing compilation?
25819 need_locks=$lt_need_locks
25820
25821 # Do we need the lib prefix for modules?
25822 need_lib_prefix=$need_lib_prefix
25823
25824 # Do we need a version for libraries?
25825 need_version=$need_version
25826
25827 # Whether dlopen is supported.
25828 dlopen_support=$enable_dlopen
25829
25830 # Whether dlopen of programs is supported.
25831 dlopen_self=$enable_dlopen_self
25832
25833 # Whether dlopen of statically linked programs is supported.
25834 dlopen_self_static=$enable_dlopen_self_static
25835
25836 # Compiler flag to prevent dynamic linking.
25837 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25838
25839 # Compiler flag to turn off builtin functions.
25840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25841
25842 # Compiler flag to allow reflexive dlopens.
25843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25844
25845 # Compiler flag to generate shared objects directly from archives.
25846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25847
25848 # Compiler flag to generate thread-safe objects.
25849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25850
25851 # Library versioning type.
25852 version_type=$version_type
25853
25854 # Format of library name prefix.
25855 libname_spec=$lt_libname_spec
25856
25857 # List of archive names.  First name is the real one, the rest are links.
25858 # The last name is the one that the linker finds with -lNAME.
25859 library_names_spec=$lt_library_names_spec
25860
25861 # The coded name of the library, if different from the real name.
25862 soname_spec=$lt_soname_spec
25863
25864 # Commands used to build and install an old-style archive.
25865 RANLIB=$lt_RANLIB
25866 old_archive_cmds=$lt_old_archive_cmds_GCJ
25867 old_postinstall_cmds=$lt_old_postinstall_cmds
25868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25869
25870 # Create an old-style archive from a shared archive.
25871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25872
25873 # Create a temporary old-style archive to link instead of a shared archive.
25874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25875
25876 # Commands used to build and install a shared archive.
25877 archive_cmds=$lt_archive_cmds_GCJ
25878 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25879 postinstall_cmds=$lt_postinstall_cmds
25880 postuninstall_cmds=$lt_postuninstall_cmds
25881
25882 # Commands used to build a loadable module (assumed same as above if empty)
25883 module_cmds=$lt_module_cmds_GCJ
25884 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25885
25886 # Commands to strip libraries.
25887 old_striplib=$lt_old_striplib
25888 striplib=$lt_striplib
25889
25890 # Dependencies to place before the objects being linked to create a
25891 # shared library.
25892 predep_objects=$lt_predep_objects_GCJ
25893
25894 # Dependencies to place after the objects being linked to create a
25895 # shared library.
25896 postdep_objects=$lt_postdep_objects_GCJ
25897
25898 # Dependencies to place before the objects being linked to create a
25899 # shared library.
25900 predeps=$lt_predeps_GCJ
25901
25902 # Dependencies to place after the objects being linked to create a
25903 # shared library.
25904 postdeps=$lt_postdeps_GCJ
25905
25906 # The library search path used internally by the compiler when linking
25907 # a shared library.
25908 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25909
25910 # Method to check whether dependent libraries are shared objects.
25911 deplibs_check_method=$lt_deplibs_check_method
25912
25913 # Command to use when deplibs_check_method == file_magic.
25914 file_magic_cmd=$lt_file_magic_cmd
25915
25916 # Flag that allows shared libraries with undefined symbols to be built.
25917 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25918
25919 # Flag that forces no undefined symbols.
25920 no_undefined_flag=$lt_no_undefined_flag_GCJ
25921
25922 # Commands used to finish a libtool library installation in a directory.
25923 finish_cmds=$lt_finish_cmds
25924
25925 # Same as above, but a single script fragment to be evaled but not shown.
25926 finish_eval=$lt_finish_eval
25927
25928 # Take the output of nm and produce a listing of raw symbols and C names.
25929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25930
25931 # Transform the output of nm in a proper C declaration
25932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25933
25934 # Transform the output of nm in a C name address pair
25935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25936
25937 # This is the shared library runtime path variable.
25938 runpath_var=$runpath_var
25939
25940 # This is the shared library path variable.
25941 shlibpath_var=$shlibpath_var
25942
25943 # Is shlibpath searched before the hard-coded library search path?
25944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25945
25946 # How to hardcode a shared library path into an executable.
25947 hardcode_action=$hardcode_action_GCJ
25948
25949 # Whether we should hardcode library paths into libraries.
25950 hardcode_into_libs=$hardcode_into_libs
25951
25952 # Flag to hardcode \$libdir into a binary during linking.
25953 # This must work even if \$libdir does not exist.
25954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25955
25956 # If ld is used when linking, flag to hardcode \$libdir into
25957 # a binary during linking. This must work even if \$libdir does
25958 # not exist.
25959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25960
25961 # Whether we need a single -rpath flag with a separated argument.
25962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25963
25964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25965 # resulting binary.
25966 hardcode_direct=$hardcode_direct_GCJ
25967
25968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25969 # resulting binary.
25970 hardcode_minus_L=$hardcode_minus_L_GCJ
25971
25972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25973 # the resulting binary.
25974 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25975
25976 # Set to yes if building a shared library automatically hardcodes DIR into the library
25977 # and all subsequent libraries and executables linked against it.
25978 hardcode_automatic=$hardcode_automatic_GCJ
25979
25980 # Variables whose values should be saved in libtool wrapper scripts and
25981 # restored at relink time.
25982 variables_saved_for_relink="$variables_saved_for_relink"
25983
25984 # Whether libtool must link a program against all its dependency libraries.
25985 link_all_deplibs=$link_all_deplibs_GCJ
25986
25987 # Compile-time system search path for libraries
25988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25989
25990 # Run-time system search path for libraries
25991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25992
25993 # Fix the shell variable \$srcfile for the compiler.
25994 fix_srcfile_path="$fix_srcfile_path_GCJ"
25995
25996 # Set to yes if exported symbols are required.
25997 always_export_symbols=$always_export_symbols_GCJ
25998
25999 # The commands to list exported symbols.
26000 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26001
26002 # The commands to extract the exported symbol list from a shared archive.
26003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26004
26005 # Symbols that should not be listed in the preloaded symbols.
26006 exclude_expsyms=$lt_exclude_expsyms_GCJ
26007
26008 # Symbols that must always be exported.
26009 include_expsyms=$lt_include_expsyms_GCJ
26010
26011 # ### END LIBTOOL TAG CONFIG: $tagname
26012
26013 __EOF__
26014
26015
26016 else
26017   # If there is no Makefile yet, we rely on a make rule to execute
26018   # `config.status --recheck' to rerun these tests and create the
26019   # libtool script then.
26020   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26021   if test -f "$ltmain_in"; then
26022     test -f Makefile && make "$ltmain"
26023   fi
26024 fi
26025
26026
26027 ac_ext=c
26028 ac_cpp='$CPP $CPPFLAGS'
26029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26032
26033 CC="$lt_save_CC"
26034
26035         else
26036           tagname=""
26037         fi
26038         ;;
26039
26040       RC)
26041
26042
26043 # Source file extension for RC test sources.
26044 ac_ext=rc
26045
26046 # Object file extension for compiled RC test sources.
26047 objext=o
26048 objext_RC=$objext
26049
26050 # Code to be used in simple compile tests
26051 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26052
26053 # Code to be used in simple link tests
26054 lt_simple_link_test_code="$lt_simple_compile_test_code"
26055
26056 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26057
26058 # If no C compiler was specified, use CC.
26059 LTCC=${LTCC-"$CC"}
26060
26061 # If no C compiler flags were specified, use CFLAGS.
26062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26063
26064 # Allow CC to be a program name with arguments.
26065 compiler=$CC
26066
26067
26068 # save warnings/boilerplate of simple test code
26069 ac_outfile=conftest.$ac_objext
26070 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26072 _lt_compiler_boilerplate=`cat conftest.err`
26073 $rm conftest*
26074
26075 ac_outfile=conftest.$ac_objext
26076 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26078 _lt_linker_boilerplate=`cat conftest.err`
26079 $rm conftest*
26080
26081
26082 # Allow CC to be a program name with arguments.
26083 lt_save_CC="$CC"
26084 CC=${RC-"windres"}
26085 compiler=$CC
26086 compiler_RC=$CC
26087 for cc_temp in $compiler""; do
26088   case $cc_temp in
26089     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26090     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26091     \-*) ;;
26092     *) break;;
26093   esac
26094 done
26095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26096
26097 lt_cv_prog_compiler_c_o_RC=yes
26098
26099 # The else clause should only fire when bootstrapping the
26100 # libtool distribution, otherwise you forgot to ship ltmain.sh
26101 # with your package, and you will get complaints that there are
26102 # no rules to generate ltmain.sh.
26103 if test -f "$ltmain"; then
26104   # See if we are running on zsh, and set the options which allow our commands through
26105   # without removal of \ escapes.
26106   if test -n "${ZSH_VERSION+set}" ; then
26107     setopt NO_GLOB_SUBST
26108   fi
26109   # Now quote all the things that may contain metacharacters while being
26110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26111   # variables and quote the copies for generation of the libtool script.
26112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26113     SED SHELL STRIP \
26114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26116     deplibs_check_method reload_flag reload_cmds need_locks \
26117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26118     lt_cv_sys_global_symbol_to_c_name_address \
26119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26120     old_postinstall_cmds old_postuninstall_cmds \
26121     compiler_RC \
26122     CC_RC \
26123     LD_RC \
26124     lt_prog_compiler_wl_RC \
26125     lt_prog_compiler_pic_RC \
26126     lt_prog_compiler_static_RC \
26127     lt_prog_compiler_no_builtin_flag_RC \
26128     export_dynamic_flag_spec_RC \
26129     thread_safe_flag_spec_RC \
26130     whole_archive_flag_spec_RC \
26131     enable_shared_with_static_runtimes_RC \
26132     old_archive_cmds_RC \
26133     old_archive_from_new_cmds_RC \
26134     predep_objects_RC \
26135     postdep_objects_RC \
26136     predeps_RC \
26137     postdeps_RC \
26138     compiler_lib_search_path_RC \
26139     archive_cmds_RC \
26140     archive_expsym_cmds_RC \
26141     postinstall_cmds_RC \
26142     postuninstall_cmds_RC \
26143     old_archive_from_expsyms_cmds_RC \
26144     allow_undefined_flag_RC \
26145     no_undefined_flag_RC \
26146     export_symbols_cmds_RC \
26147     hardcode_libdir_flag_spec_RC \
26148     hardcode_libdir_flag_spec_ld_RC \
26149     hardcode_libdir_separator_RC \
26150     hardcode_automatic_RC \
26151     module_cmds_RC \
26152     module_expsym_cmds_RC \
26153     lt_cv_prog_compiler_c_o_RC \
26154     exclude_expsyms_RC \
26155     include_expsyms_RC; do
26156
26157     case $var in
26158     old_archive_cmds_RC | \
26159     old_archive_from_new_cmds_RC | \
26160     archive_cmds_RC | \
26161     archive_expsym_cmds_RC | \
26162     module_cmds_RC | \
26163     module_expsym_cmds_RC | \
26164     old_archive_from_expsyms_cmds_RC | \
26165     export_symbols_cmds_RC | \
26166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26167     postinstall_cmds | postuninstall_cmds | \
26168     old_postinstall_cmds | old_postuninstall_cmds | \
26169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26170       # Double-quote double-evaled strings.
26171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26172       ;;
26173     *)
26174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26175       ;;
26176     esac
26177   done
26178
26179   case $lt_echo in
26180   *'\$0 --fallback-echo"')
26181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26182     ;;
26183   esac
26184
26185 cfgfile="$ofile"
26186
26187   cat <<__EOF__ >> "$cfgfile"
26188 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26189
26190 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26191
26192 # Shell to use when invoking shell scripts.
26193 SHELL=$lt_SHELL
26194
26195 # Whether or not to build shared libraries.
26196 build_libtool_libs=$enable_shared
26197
26198 # Whether or not to build static libraries.
26199 build_old_libs=$enable_static
26200
26201 # Whether or not to add -lc for building shared libraries.
26202 build_libtool_need_lc=$archive_cmds_need_lc_RC
26203
26204 # Whether or not to disallow shared libs when runtime libs are static
26205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26206
26207 # Whether or not to optimize for fast installation.
26208 fast_install=$enable_fast_install
26209
26210 # The host system.
26211 host_alias=$host_alias
26212 host=$host
26213 host_os=$host_os
26214
26215 # The build system.
26216 build_alias=$build_alias
26217 build=$build
26218 build_os=$build_os
26219
26220 # An echo program that does not interpret backslashes.
26221 echo=$lt_echo
26222
26223 # The archiver.
26224 AR=$lt_AR
26225 AR_FLAGS=$lt_AR_FLAGS
26226
26227 # A C compiler.
26228 LTCC=$lt_LTCC
26229
26230 # LTCC compiler flags.
26231 LTCFLAGS=$lt_LTCFLAGS
26232
26233 # A language-specific compiler.
26234 CC=$lt_compiler_RC
26235
26236 # Is the compiler the GNU C compiler?
26237 with_gcc=$GCC_RC
26238
26239 # An ERE matcher.
26240 EGREP=$lt_EGREP
26241
26242 # The linker used to build libraries.
26243 LD=$lt_LD_RC
26244
26245 # Whether we need hard or soft links.
26246 LN_S=$lt_LN_S
26247
26248 # A BSD-compatible nm program.
26249 NM=$lt_NM
26250
26251 # A symbol stripping program
26252 STRIP=$lt_STRIP
26253
26254 # Used to examine libraries when file_magic_cmd begins "file"
26255 MAGIC_CMD=$MAGIC_CMD
26256
26257 # Used on cygwin: DLL creation program.
26258 DLLTOOL="$DLLTOOL"
26259
26260 # Used on cygwin: object dumper.
26261 OBJDUMP="$OBJDUMP"
26262
26263 # Used on cygwin: assembler.
26264 AS="$AS"
26265
26266 # The name of the directory that contains temporary libtool files.
26267 objdir=$objdir
26268
26269 # How to create reloadable object files.
26270 reload_flag=$lt_reload_flag
26271 reload_cmds=$lt_reload_cmds
26272
26273 # How to pass a linker flag through the compiler.
26274 wl=$lt_lt_prog_compiler_wl_RC
26275
26276 # Object file suffix (normally "o").
26277 objext="$ac_objext"
26278
26279 # Old archive suffix (normally "a").
26280 libext="$libext"
26281
26282 # Shared library suffix (normally ".so").
26283 shrext_cmds='$shrext_cmds'
26284
26285 # Executable file suffix (normally "").
26286 exeext="$exeext"
26287
26288 # Additional compiler flags for building library objects.
26289 pic_flag=$lt_lt_prog_compiler_pic_RC
26290 pic_mode=$pic_mode
26291
26292 # What is the maximum length of a command?
26293 max_cmd_len=$lt_cv_sys_max_cmd_len
26294
26295 # Does compiler simultaneously support -c and -o options?
26296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26297
26298 # Must we lock files when doing compilation?
26299 need_locks=$lt_need_locks
26300
26301 # Do we need the lib prefix for modules?
26302 need_lib_prefix=$need_lib_prefix
26303
26304 # Do we need a version for libraries?
26305 need_version=$need_version
26306
26307 # Whether dlopen is supported.
26308 dlopen_support=$enable_dlopen
26309
26310 # Whether dlopen of programs is supported.
26311 dlopen_self=$enable_dlopen_self
26312
26313 # Whether dlopen of statically linked programs is supported.
26314 dlopen_self_static=$enable_dlopen_self_static
26315
26316 # Compiler flag to prevent dynamic linking.
26317 link_static_flag=$lt_lt_prog_compiler_static_RC
26318
26319 # Compiler flag to turn off builtin functions.
26320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26321
26322 # Compiler flag to allow reflexive dlopens.
26323 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26324
26325 # Compiler flag to generate shared objects directly from archives.
26326 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26327
26328 # Compiler flag to generate thread-safe objects.
26329 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26330
26331 # Library versioning type.
26332 version_type=$version_type
26333
26334 # Format of library name prefix.
26335 libname_spec=$lt_libname_spec
26336
26337 # List of archive names.  First name is the real one, the rest are links.
26338 # The last name is the one that the linker finds with -lNAME.
26339 library_names_spec=$lt_library_names_spec
26340
26341 # The coded name of the library, if different from the real name.
26342 soname_spec=$lt_soname_spec
26343
26344 # Commands used to build and install an old-style archive.
26345 RANLIB=$lt_RANLIB
26346 old_archive_cmds=$lt_old_archive_cmds_RC
26347 old_postinstall_cmds=$lt_old_postinstall_cmds
26348 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26349
26350 # Create an old-style archive from a shared archive.
26351 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26352
26353 # Create a temporary old-style archive to link instead of a shared archive.
26354 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26355
26356 # Commands used to build and install a shared archive.
26357 archive_cmds=$lt_archive_cmds_RC
26358 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26359 postinstall_cmds=$lt_postinstall_cmds
26360 postuninstall_cmds=$lt_postuninstall_cmds
26361
26362 # Commands used to build a loadable module (assumed same as above if empty)
26363 module_cmds=$lt_module_cmds_RC
26364 module_expsym_cmds=$lt_module_expsym_cmds_RC
26365
26366 # Commands to strip libraries.
26367 old_striplib=$lt_old_striplib
26368 striplib=$lt_striplib
26369
26370 # Dependencies to place before the objects being linked to create a
26371 # shared library.
26372 predep_objects=$lt_predep_objects_RC
26373
26374 # Dependencies to place after the objects being linked to create a
26375 # shared library.
26376 postdep_objects=$lt_postdep_objects_RC
26377
26378 # Dependencies to place before the objects being linked to create a
26379 # shared library.
26380 predeps=$lt_predeps_RC
26381
26382 # Dependencies to place after the objects being linked to create a
26383 # shared library.
26384 postdeps=$lt_postdeps_RC
26385
26386 # The library search path used internally by the compiler when linking
26387 # a shared library.
26388 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26389
26390 # Method to check whether dependent libraries are shared objects.
26391 deplibs_check_method=$lt_deplibs_check_method
26392
26393 # Command to use when deplibs_check_method == file_magic.
26394 file_magic_cmd=$lt_file_magic_cmd
26395
26396 # Flag that allows shared libraries with undefined symbols to be built.
26397 allow_undefined_flag=$lt_allow_undefined_flag_RC
26398
26399 # Flag that forces no undefined symbols.
26400 no_undefined_flag=$lt_no_undefined_flag_RC
26401
26402 # Commands used to finish a libtool library installation in a directory.
26403 finish_cmds=$lt_finish_cmds
26404
26405 # Same as above, but a single script fragment to be evaled but not shown.
26406 finish_eval=$lt_finish_eval
26407
26408 # Take the output of nm and produce a listing of raw symbols and C names.
26409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26410
26411 # Transform the output of nm in a proper C declaration
26412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26413
26414 # Transform the output of nm in a C name address pair
26415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26416
26417 # This is the shared library runtime path variable.
26418 runpath_var=$runpath_var
26419
26420 # This is the shared library path variable.
26421 shlibpath_var=$shlibpath_var
26422
26423 # Is shlibpath searched before the hard-coded library search path?
26424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26425
26426 # How to hardcode a shared library path into an executable.
26427 hardcode_action=$hardcode_action_RC
26428
26429 # Whether we should hardcode library paths into libraries.
26430 hardcode_into_libs=$hardcode_into_libs
26431
26432 # Flag to hardcode \$libdir into a binary during linking.
26433 # This must work even if \$libdir does not exist.
26434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26435
26436 # If ld is used when linking, flag to hardcode \$libdir into
26437 # a binary during linking. This must work even if \$libdir does
26438 # not exist.
26439 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26440
26441 # Whether we need a single -rpath flag with a separated argument.
26442 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26443
26444 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26445 # resulting binary.
26446 hardcode_direct=$hardcode_direct_RC
26447
26448 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26449 # resulting binary.
26450 hardcode_minus_L=$hardcode_minus_L_RC
26451
26452 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26453 # the resulting binary.
26454 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26455
26456 # Set to yes if building a shared library automatically hardcodes DIR into the library
26457 # and all subsequent libraries and executables linked against it.
26458 hardcode_automatic=$hardcode_automatic_RC
26459
26460 # Variables whose values should be saved in libtool wrapper scripts and
26461 # restored at relink time.
26462 variables_saved_for_relink="$variables_saved_for_relink"
26463
26464 # Whether libtool must link a program against all its dependency libraries.
26465 link_all_deplibs=$link_all_deplibs_RC
26466
26467 # Compile-time system search path for libraries
26468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26469
26470 # Run-time system search path for libraries
26471 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26472
26473 # Fix the shell variable \$srcfile for the compiler.
26474 fix_srcfile_path="$fix_srcfile_path_RC"
26475
26476 # Set to yes if exported symbols are required.
26477 always_export_symbols=$always_export_symbols_RC
26478
26479 # The commands to list exported symbols.
26480 export_symbols_cmds=$lt_export_symbols_cmds_RC
26481
26482 # The commands to extract the exported symbol list from a shared archive.
26483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26484
26485 # Symbols that should not be listed in the preloaded symbols.
26486 exclude_expsyms=$lt_exclude_expsyms_RC
26487
26488 # Symbols that must always be exported.
26489 include_expsyms=$lt_include_expsyms_RC
26490
26491 # ### END LIBTOOL TAG CONFIG: $tagname
26492
26493 __EOF__
26494
26495
26496 else
26497   # If there is no Makefile yet, we rely on a make rule to execute
26498   # `config.status --recheck' to rerun these tests and create the
26499   # libtool script then.
26500   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26501   if test -f "$ltmain_in"; then
26502     test -f Makefile && make "$ltmain"
26503   fi
26504 fi
26505
26506
26507 ac_ext=c
26508 ac_cpp='$CPP $CPPFLAGS'
26509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26512
26513 CC="$lt_save_CC"
26514
26515         ;;
26516
26517       *)
26518         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26519 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26520    { (exit 1); exit 1; }; }
26521         ;;
26522       esac
26523
26524       # Append the new tag name to the list of available tags.
26525       if test -n "$tagname" ; then
26526       available_tags="$available_tags $tagname"
26527     fi
26528     fi
26529   done
26530   IFS="$lt_save_ifs"
26531
26532   # Now substitute the updated list of available tags.
26533   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26534     mv "${ofile}T" "$ofile"
26535     chmod +x "$ofile"
26536   else
26537     rm -f "${ofile}T"
26538     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26539 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26540    { (exit 1); exit 1; }; }
26541   fi
26542 fi
26543
26544
26545
26546 # This can be used to rebuild libtool when needed
26547 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26548
26549 # Always use our own libtool.
26550 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26551
26552 # Prevent multiple expansion
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576         { echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26577 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6; }
26578
26579 # Check whether --with-vrootdir was given.
26580 if test "${with_vrootdir+set}" = set; then
26581   withval=$with_vrootdir; case "$withval" in
26582                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26583 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26584    { (exit 1); exit 1; }; };;
26585                         *)      ensc_uv_path_vrootdir=$withval;;
26586                      esac
26587 else
26588   ensc_uv_path_vrootdir=/vservers
26589 fi
26590
26591         { echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26592 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6; }
26593
26594         if test x"vserverdir" != x; then
26595                 vserverdir=$ensc_uv_path_vrootdir
26596
26597         fi
26598
26599
26600         for ac_prog in svn2cl
26601 do
26602   # Extract the first word of "$ac_prog", so it can be a program name with args.
26603 set dummy $ac_prog; ac_word=$2
26604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26606 if test "${ac_cv_prog_SVN2CL+set}" = set; then
26607   echo $ECHO_N "(cached) $ECHO_C" >&6
26608 else
26609   if test -n "$SVN2CL"; then
26610   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
26611 else
26612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613 for as_dir in $PATH
26614 do
26615   IFS=$as_save_IFS
26616   test -z "$as_dir" && as_dir=.
26617   for ac_exec_ext in '' $ac_executable_extensions; do
26618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26619     ac_cv_prog_SVN2CL="$ac_prog"
26620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621     break 2
26622   fi
26623 done
26624 done
26625 IFS=$as_save_IFS
26626
26627 fi
26628 fi
26629 SVN2CL=$ac_cv_prog_SVN2CL
26630 if test -n "$SVN2CL"; then
26631   { echo "$as_me:$LINENO: result: $SVN2CL" >&5
26632 echo "${ECHO_T}$SVN2CL" >&6; }
26633 else
26634   { echo "$as_me:$LINENO: result: no" >&5
26635 echo "${ECHO_T}no" >&6; }
26636 fi
26637
26638
26639   test -n "$SVN2CL" && break
26640 done
26641
26642          if test x"$SVN2CL" != x; then
26643   HAVE_SVN2CL_TRUE=
26644   HAVE_SVN2CL_FALSE='#'
26645 else
26646   HAVE_SVN2CL_TRUE='#'
26647   HAVE_SVN2CL_FALSE=
26648 fi
26649
26650
26651
26652
26653 { echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26654 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6; }
26655 # Check whether --enable-internal-headers was given.
26656 if test "${enable_internal_headers+set}" = set; then
26657   enableval=$enable_internal_headers; case "$enableval" in
26658                   (yes|no) ;;
26659                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26660 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26661    { (exit 1); exit 1; }; };;
26662                esac
26663 else
26664   enable_internal_headers=yes
26665 fi
26666
26667
26668  if test x"$enable_internal_headers" = xyes; then
26669   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26670   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26671 else
26672   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26673   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26674 fi
26675
26676 { echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26677 echo "${ECHO_T}$enable_internal_headers" >&6; }
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706 { echo "$as_me:$LINENO: checking for supported APIs" >&5
26707 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6; }
26708 # Check whether --enable-apis was given.
26709 if test "${enable_apis+set}" = set; then
26710   enableval=$enable_apis;
26711 else
26712   enable_apis=v13,net,v21,v22,v23,netv2
26713 fi
26714
26715
26716 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
26717 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
26718 enable_api_oldproc=
26719 enable_api_olduts=
26720 old_IFS=$IFS
26721 IFS=,;
26722
26723 for i in $enable_apis; do
26724         case "$i" in
26725                 (compat)        cat >>confdefs.h <<\_ACEOF
26726 #define VC_ENABLE_API_COMPAT 1
26727 _ACEOF
26728
26729                                 enable_api_oldproc=${enable_api_oldproc:-1}
26730                                 enable_api_olduts=${enable_api_olduts:-1}
26731                                 ;;
26732                 (legacy)        cat >>confdefs.h <<\_ACEOF
26733 #define VC_ENABLE_API_LEGACY 1
26734 _ACEOF
26735
26736                                 enable_api_oldproc=${enable_api_oldproc:-1}
26737                                 enable_api_olduts=${enable_api_olduts:-1}
26738                                 ;;
26739                 (v11)           cat >>confdefs.h <<\_ACEOF
26740 #define VC_ENABLE_API_V11 1
26741 _ACEOF
26742
26743                                 enable_api_oldproc=${enable_api_oldproc:-1}
26744                                 enable_api_olduts=${enable_api_olduts:-1}
26745                                 ;;
26746                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26747 #define VC_ENABLE_API_FSCOMPAT 1
26748 _ACEOF
26749 ;;
26750                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26751 #define VC_ENABLE_API_V13OBS 1
26752 _ACEOF
26753
26754                                 cat >>confdefs.h <<\_ACEOF
26755 #define VC_ENABLE_API_V13 1
26756 _ACEOF
26757 ;;
26758                 (v13)           cat >>confdefs.h <<\_ACEOF
26759 #define VC_ENABLE_API_V13 1
26760 _ACEOF
26761 ;;
26762                 (net)           cat >>confdefs.h <<\_ACEOF
26763 #define VC_ENABLE_API_NET 1
26764 _ACEOF
26765 ;;
26766                 (v21)           cat >>confdefs.h <<\_ACEOF
26767 #define VC_ENABLE_API_V21 1
26768 _ACEOF
26769 ;;
26770                 (v22)           cat >>confdefs.h <<\_ACEOF
26771 #define VC_ENABLE_API_V22 1
26772 _ACEOF
26773 ;;
26774                 (v23)           cat >>confdefs.h <<\_ACEOF
26775 #define VC_ENABLE_API_V23 1
26776 _ACEOF
26777 ;;
26778                 (netv2)         cat >>confdefs.h <<\_ACEOF
26779 #define VC_ENABLE_API_NETV2 1
26780 _ACEOF
26781 ;;
26782                 (oldproc)       enable_api_oldproc=2;;
26783                 (olduts)        enable_api_olduts=2;;
26784                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26785 echo "$as_me: error: '$i' is not a supported API" >&2;}
26786    { (exit 1); exit 1; }; };;
26787         esac
26788 done
26789 IFS=$old_IFS
26790 if test x"$enable_api_oldproc" != x; then
26791         cat >>confdefs.h <<\_ACEOF
26792 #define VC_ENABLE_API_OLDPROC 1
26793 _ACEOF
26794
26795         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26796 fi
26797 if test x"$enable_api_olduts" != x; then
26798         cat >>confdefs.h <<\_ACEOF
26799 #define VC_ENABLE_API_OLDUTS 1
26800 _ACEOF
26801
26802         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
26803 fi
26804 { echo "$as_me:$LINENO: result: $enable_apis" >&5
26805 echo "${ECHO_T}$enable_apis" >&6; }
26806
26807
26808
26809
26810     ac_ext=cpp
26811 ac_cpp='$CXXCPP $CPPFLAGS'
26812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26815
26816     { echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
26817 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6; }
26818 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
26819   echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26821
26822         cat >conftest.$ac_ext <<_ACEOF
26823 /* confdefs.h.  */
26824 _ACEOF
26825 cat confdefs.h >>conftest.$ac_ext
26826 cat >>conftest.$ac_ext <<_ACEOF
26827 /* end confdefs.h.  */
26828 #include <ext2fs/ext2_fs.h>
26829                                           int main() { return 0; }
26830 _ACEOF
26831 rm -f conftest.$ac_objext
26832 if { (ac_try="$ac_compile"
26833 case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838   (eval "$ac_compile") 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } && {
26845          test -z "$ac_cxx_werror_flag" ||
26846          test ! -s conftest.err
26847        } && test -s conftest.$ac_objext; then
26848   ensc_cv_test_ext2fs_header=e2fsprogs
26849 else
26850   echo "$as_me: failed program was:" >&5
26851 sed 's/^/| /' conftest.$ac_ext >&5
26852
26853
26854         cat >conftest.$ac_ext <<_ACEOF
26855 /* confdefs.h.  */
26856 _ACEOF
26857 cat confdefs.h >>conftest.$ac_ext
26858 cat >>conftest.$ac_ext <<_ACEOF
26859 /* end confdefs.h.  */
26860 #include <linux/ext2_fs.h>
26861                                           int main() { return 0; }
26862 _ACEOF
26863 rm -f conftest.$ac_objext
26864 if { (ac_try="$ac_compile"
26865 case "(($ac_try" in
26866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867   *) ac_try_echo=$ac_try;;
26868 esac
26869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26870   (eval "$ac_compile") 2>conftest.er1
26871   ac_status=$?
26872   grep -v '^ *+' conftest.er1 >conftest.err
26873   rm -f conftest.er1
26874   cat conftest.err >&5
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); } && {
26877          test -z "$ac_cxx_werror_flag" ||
26878          test ! -s conftest.err
26879        } && test -s conftest.$ac_objext; then
26880   ensc_cv_test_ext2fs_header=kernel
26881 else
26882   echo "$as_me: failed program was:" >&5
26883 sed 's/^/| /' conftest.$ac_ext >&5
26884
26885
26886         ensc_cv_test_ext2fs_header=none
26887 fi
26888
26889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26890 fi
26891
26892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26893 fi
26894 { echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
26895 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6; }
26896
26897     case x"$ensc_cv_test_ext2fs_header" in
26898         (xe2fsprogs)
26899                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26900   { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
26901 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
26902 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
26903   echo $ECHO_N "(cached) $ECHO_C" >&6
26904 fi
26905 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
26906 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
26907 else
26908   # Is the header compilable?
26909 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
26910 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6; }
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917 $ac_includes_default
26918 #include <ext2fs/ext2_fs.h>
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_compile") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } && {
26934          test -z "$ac_cxx_werror_flag" ||
26935          test ! -s conftest.err
26936        } && test -s conftest.$ac_objext; then
26937   ac_header_compiler=yes
26938 else
26939   echo "$as_me: failed program was:" >&5
26940 sed 's/^/| /' conftest.$ac_ext >&5
26941
26942         ac_header_compiler=no
26943 fi
26944
26945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26947 echo "${ECHO_T}$ac_header_compiler" >&6; }
26948
26949 # Is the header present?
26950 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
26951 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6; }
26952 cat >conftest.$ac_ext <<_ACEOF
26953 /* confdefs.h.  */
26954 _ACEOF
26955 cat confdefs.h >>conftest.$ac_ext
26956 cat >>conftest.$ac_ext <<_ACEOF
26957 /* end confdefs.h.  */
26958 #include <ext2fs/ext2_fs.h>
26959 _ACEOF
26960 if { (ac_try="$ac_cpp conftest.$ac_ext"
26961 case "(($ac_try" in
26962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26963   *) ac_try_echo=$ac_try;;
26964 esac
26965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26967   ac_status=$?
26968   grep -v '^ *+' conftest.er1 >conftest.err
26969   rm -f conftest.er1
26970   cat conftest.err >&5
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } >/dev/null && {
26973          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26974          test ! -s conftest.err
26975        }; then
26976   ac_header_preproc=yes
26977 else
26978   echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981   ac_header_preproc=no
26982 fi
26983
26984 rm -f conftest.err conftest.$ac_ext
26985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26986 echo "${ECHO_T}$ac_header_preproc" >&6; }
26987
26988 # So?  What about this header?
26989 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26990   yes:no: )
26991     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
26992 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26993     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
26994 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
26995     ac_header_preproc=yes
26996     ;;
26997   no:yes:* )
26998     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
26999 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
27000     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
27001 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27002     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
27003 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
27004     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27005 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27006     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
27007 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27008     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
27009 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27010     ( cat <<\_ASBOX
27011 ## --------------------------------------------- ##
27012 ## Report this to vserver@list.linux-vserver.org ##
27013 ## --------------------------------------------- ##
27014 _ASBOX
27015      ) | sed "s/^/$as_me: WARNING:     /" >&2
27016     ;;
27017 esac
27018 { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27019 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27020 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27021   echo $ECHO_N "(cached) $ECHO_C" >&6
27022 else
27023   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
27024 fi
27025 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27026 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27027
27028 fi
27029 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
27030
27031 cat >>confdefs.h <<\_ACEOF
27032 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
27033 _ACEOF
27034
27035 else
27036   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27037 See \`config.log' for more details." >&5
27038 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27039 See \`config.log' for more details." >&2;}
27040    { (exit 1); exit 1; }; }
27041 fi
27042
27043
27044                 ;;
27045         (xkernel)
27046                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27047   { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27048 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27049 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27050   echo $ECHO_N "(cached) $ECHO_C" >&6
27051 fi
27052 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27053 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27054 else
27055   # Is the header compilable?
27056 { echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
27057 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6; }
27058 cat >conftest.$ac_ext <<_ACEOF
27059 /* confdefs.h.  */
27060 _ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h.  */
27064 $ac_includes_default
27065 #include <linux/ext2_fs.h>
27066 _ACEOF
27067 rm -f conftest.$ac_objext
27068 if { (ac_try="$ac_compile"
27069 case "(($ac_try" in
27070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071   *) ac_try_echo=$ac_try;;
27072 esac
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074   (eval "$ac_compile") 2>conftest.er1
27075   ac_status=$?
27076   grep -v '^ *+' conftest.er1 >conftest.err
27077   rm -f conftest.er1
27078   cat conftest.err >&5
27079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080   (exit $ac_status); } && {
27081          test -z "$ac_cxx_werror_flag" ||
27082          test ! -s conftest.err
27083        } && test -s conftest.$ac_objext; then
27084   ac_header_compiler=yes
27085 else
27086   echo "$as_me: failed program was:" >&5
27087 sed 's/^/| /' conftest.$ac_ext >&5
27088
27089         ac_header_compiler=no
27090 fi
27091
27092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27094 echo "${ECHO_T}$ac_header_compiler" >&6; }
27095
27096 # Is the header present?
27097 { echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
27098 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6; }
27099 cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105 #include <linux/ext2_fs.h>
27106 _ACEOF
27107 if { (ac_try="$ac_cpp conftest.$ac_ext"
27108 case "(($ac_try" in
27109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27110   *) ac_try_echo=$ac_try;;
27111 esac
27112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27113   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27114   ac_status=$?
27115   grep -v '^ *+' conftest.er1 >conftest.err
27116   rm -f conftest.er1
27117   cat conftest.err >&5
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); } >/dev/null && {
27120          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27121          test ! -s conftest.err
27122        }; then
27123   ac_header_preproc=yes
27124 else
27125   echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27127
27128   ac_header_preproc=no
27129 fi
27130
27131 rm -f conftest.err conftest.$ac_ext
27132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27133 echo "${ECHO_T}$ac_header_preproc" >&6; }
27134
27135 # So?  What about this header?
27136 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27137   yes:no: )
27138     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27139 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27140     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
27141 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
27142     ac_header_preproc=yes
27143     ;;
27144   no:yes:* )
27145     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
27146 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
27147     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
27148 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27149     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
27150 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
27151     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27152 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27153     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
27154 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27155     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
27156 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27157     ( cat <<\_ASBOX
27158 ## --------------------------------------------- ##
27159 ## Report this to vserver@list.linux-vserver.org ##
27160 ## --------------------------------------------- ##
27161 _ASBOX
27162      ) | sed "s/^/$as_me: WARNING:     /" >&2
27163     ;;
27164 esac
27165 { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27166 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27167 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
27171 fi
27172 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27173 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27174
27175 fi
27176 if test $ac_cv_header_linux_ext2_fs_h = yes; then
27177
27178 cat >>confdefs.h <<\_ACEOF
27179 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
27180 _ACEOF
27181
27182 else
27183   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
27184 See \`config.log' for more details." >&5
27185 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
27186 See \`config.log' for more details." >&2;}
27187    { (exit 1); exit 1; }; }
27188 fi
27189
27190
27191                 ;;
27192         (*)
27193                 { { echo "$as_me:$LINENO: error:
27194 ext2fs headers were not found, or they are not usable. This can have
27195 the following reasons:
27196
27197 * you have neither the e2fsprogs nor the kernel headers installed
27198
27199 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27200   and you do not have e2fsprogs headers installed; please try to install
27201   - e2fsprogs-devel (for Red Hat), or
27202   - lib*ext2fs2-devel (for Mandriva), or
27203   - e2fslibs-dev (for Debian)
27204   in this case.
27205
27206 * kernel headers are broken and your e2fsprogs headers are too old;
27207   until version 1.27 (inclusive), they are using reserved C++ keywords
27208
27209 * kernel headers are broken and your e2fsprogs headers are too new;
27210   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27211   C++, for details and a solution see
27212   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27213
27214
27215 In the latter two cases you have the following options:
27216 * fix the headers manually, or
27217 * install a stable version of e2fsprogs (e.g. 1.34), or
27218 * use good kernel headers (from linux 2.4.x)
27219
27220 See \`config.log' for more details." >&5
27221 echo "$as_me: error:
27222 ext2fs headers were not found, or they are not usable. This can have
27223 the following reasons:
27224
27225 * you have neither the e2fsprogs nor the kernel headers installed
27226
27227 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27228   and you do not have e2fsprogs headers installed; please try to install
27229   - e2fsprogs-devel (for Red Hat), or
27230   - lib*ext2fs2-devel (for Mandriva), or
27231   - e2fslibs-dev (for Debian)
27232   in this case.
27233
27234 * kernel headers are broken and your e2fsprogs headers are too old;
27235   until version 1.27 (inclusive), they are using reserved C++ keywords
27236
27237 * kernel headers are broken and your e2fsprogs headers are too new;
27238   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27239   C++, for details and a solution see
27240   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27241
27242
27243 In the latter two cases you have the following options:
27244 * fix the headers manually, or
27245 * install a stable version of e2fsprogs (e.g. 1.34), or
27246 * use good kernel headers (from linux 2.4.x)
27247
27248 See \`config.log' for more details." >&2;}
27249    { (exit 1); exit 1; }; }
27250                 ;;
27251     esac
27252     ac_ext=c
27253 ac_cpp='$CPP $CPPFLAGS'
27254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27257
27258
27259
27260 for ac_func in vserver
27261 do
27262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27266   echo $ECHO_N "(cached) $ECHO_C" >&6
27267 else
27268   cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27276 #define $ac_func innocuous_$ac_func
27277
27278 /* System header to define __stub macros and hopefully few prototypes,
27279     which can conflict with char $ac_func (); below.
27280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281     <limits.h> exists even on freestanding compilers.  */
27282
27283 #ifdef __STDC__
27284 # include <limits.h>
27285 #else
27286 # include <assert.h>
27287 #endif
27288
27289 #undef $ac_func
27290
27291 /* Override any GCC internal prototype to avoid an error.
27292    Use char because int might match the return type of a GCC
27293    builtin and then its argument prototype would still apply.  */
27294 #ifdef __cplusplus
27295 extern "C"
27296 #endif
27297 char $ac_func ();
27298 /* The GNU C library defines this for functions which it implements
27299     to always fail with ENOSYS.  Some functions are actually named
27300     something starting with __ and the normal name is an alias.  */
27301 #if defined __stub_$ac_func || defined __stub___$ac_func
27302 choke me
27303 #endif
27304
27305 int
27306 main ()
27307 {
27308 return $ac_func ();
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_link") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_c_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest$ac_exeext &&
27330        $as_test_x conftest$ac_exeext; then
27331   eval "$as_ac_var=yes"
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         eval "$as_ac_var=no"
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27340       conftest$ac_exeext conftest.$ac_ext
27341 fi
27342 ac_res=`eval echo '${'$as_ac_var'}'`
27343                { echo "$as_me:$LINENO: result: $ac_res" >&5
27344 echo "${ECHO_T}$ac_res" >&6; }
27345 if test `eval echo '${'$as_ac_var'}'` = yes; then
27346   cat >>confdefs.h <<_ACEOF
27347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27348 _ACEOF
27349
27350 fi
27351 done
27352
27353 { echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27354 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6; }
27355 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27356   echo $ECHO_N "(cached) $ECHO_C" >&6
27357 else
27358   cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 #include <linux/fs.h>
27365
27366 int
27367 main ()
27368 {
27369 #ifndef MS_MOVE
27370   (void) MS_MOVE;
27371 #endif
27372
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 rm -f conftest.$ac_objext
27378 if { (ac_try="$ac_compile"
27379 case "(($ac_try" in
27380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381   *) ac_try_echo=$ac_try;;
27382 esac
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384   (eval "$ac_compile") 2>conftest.er1
27385   ac_status=$?
27386   grep -v '^ *+' conftest.er1 >conftest.err
27387   rm -f conftest.er1
27388   cat conftest.err >&5
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); } && {
27391          test -z "$ac_c_werror_flag" ||
27392          test ! -s conftest.err
27393        } && test -s conftest.$ac_objext; then
27394   ac_cv_have_decl_MS_MOVE=yes
27395 else
27396   echo "$as_me: failed program was:" >&5
27397 sed 's/^/| /' conftest.$ac_ext >&5
27398
27399         ac_cv_have_decl_MS_MOVE=no
27400 fi
27401
27402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27403 fi
27404 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27405 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6; }
27406 if test $ac_cv_have_decl_MS_MOVE = yes; then
27407
27408 cat >>confdefs.h <<_ACEOF
27409 #define HAVE_DECL_MS_MOVE 1
27410 _ACEOF
27411
27412
27413 else
27414   cat >>confdefs.h <<_ACEOF
27415 #define HAVE_DECL_MS_MOVE 0
27416 _ACEOF
27417
27418
27419 fi
27420
27421
27422 { echo "$as_me:$LINENO: checking for xid_t" >&5
27423 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6; }
27424 if test "${ac_cv_type_xid_t+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 #include <sys/types.h>
27434
27435 typedef xid_t ac__type_new_;
27436 int
27437 main ()
27438 {
27439 if ((ac__type_new_ *) 0)
27440   return 0;
27441 if (sizeof (ac__type_new_))
27442   return 0;
27443   ;
27444   return 0;
27445 }
27446 _ACEOF
27447 rm -f conftest.$ac_objext
27448 if { (ac_try="$ac_compile"
27449 case "(($ac_try" in
27450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451   *) ac_try_echo=$ac_try;;
27452 esac
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454   (eval "$ac_compile") 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } && {
27461          test -z "$ac_c_werror_flag" ||
27462          test ! -s conftest.err
27463        } && test -s conftest.$ac_objext; then
27464   ac_cv_type_xid_t=yes
27465 else
27466   echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27468
27469         ac_cv_type_xid_t=no
27470 fi
27471
27472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27473 fi
27474 { echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27475 echo "${ECHO_T}$ac_cv_type_xid_t" >&6; }
27476 if test $ac_cv_type_xid_t = yes; then
27477
27478 cat >>confdefs.h <<_ACEOF
27479 #define HAVE_XID_T 1
27480 _ACEOF
27481
27482
27483 fi
27484
27485 { echo "$as_me:$LINENO: checking for nid_t" >&5
27486 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6; }
27487 if test "${ac_cv_type_nid_t+set}" = set; then
27488   echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490   cat >conftest.$ac_ext <<_ACEOF
27491 /* confdefs.h.  */
27492 _ACEOF
27493 cat confdefs.h >>conftest.$ac_ext
27494 cat >>conftest.$ac_ext <<_ACEOF
27495 /* end confdefs.h.  */
27496 #include <sys/types.h>
27497
27498 typedef nid_t ac__type_new_;
27499 int
27500 main ()
27501 {
27502 if ((ac__type_new_ *) 0)
27503   return 0;
27504 if (sizeof (ac__type_new_))
27505   return 0;
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext
27511 if { (ac_try="$ac_compile"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_compile") 2>conftest.er1
27518   ac_status=$?
27519   grep -v '^ *+' conftest.er1 >conftest.err
27520   rm -f conftest.er1
27521   cat conftest.err >&5
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); } && {
27524          test -z "$ac_c_werror_flag" ||
27525          test ! -s conftest.err
27526        } && test -s conftest.$ac_objext; then
27527   ac_cv_type_nid_t=yes
27528 else
27529   echo "$as_me: failed program was:" >&5
27530 sed 's/^/| /' conftest.$ac_ext >&5
27531
27532         ac_cv_type_nid_t=no
27533 fi
27534
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 fi
27537 { echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27538 echo "${ECHO_T}$ac_cv_type_nid_t" >&6; }
27539 if test $ac_cv_type_nid_t = yes; then
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define HAVE_NID_T 1
27543 _ACEOF
27544
27545
27546 fi
27547
27548 { echo "$as_me:$LINENO: checking for tag_t" >&5
27549 echo $ECHO_N "checking for tag_t... $ECHO_C" >&6; }
27550 if test "${ac_cv_type_tag_t+set}" = set; then
27551   echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553   cat >conftest.$ac_ext <<_ACEOF
27554 /* confdefs.h.  */
27555 _ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h.  */
27559 #include <sys/types.h>
27560
27561 typedef tag_t ac__type_new_;
27562 int
27563 main ()
27564 {
27565 if ((ac__type_new_ *) 0)
27566   return 0;
27567 if (sizeof (ac__type_new_))
27568   return 0;
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580   (eval "$ac_compile") 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } && {
27587          test -z "$ac_c_werror_flag" ||
27588          test ! -s conftest.err
27589        } && test -s conftest.$ac_objext; then
27590   ac_cv_type_tag_t=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595         ac_cv_type_tag_t=no
27596 fi
27597
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 fi
27600 { echo "$as_me:$LINENO: result: $ac_cv_type_tag_t" >&5
27601 echo "${ECHO_T}$ac_cv_type_tag_t" >&6; }
27602 if test $ac_cv_type_tag_t = yes; then
27603
27604 cat >>confdefs.h <<_ACEOF
27605 #define HAVE_TAG_T 1
27606 _ACEOF
27607
27608
27609 fi
27610
27611
27612
27613 for ac_header in sys/capability.h
27614 do
27615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27617   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27620   echo $ECHO_N "(cached) $ECHO_C" >&6
27621 fi
27622 ac_res=`eval echo '${'$as_ac_Header'}'`
27623                { echo "$as_me:$LINENO: result: $ac_res" >&5
27624 echo "${ECHO_T}$ac_res" >&6; }
27625 else
27626   # Is the header compilable?
27627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27629 cat >conftest.$ac_ext <<_ACEOF
27630 /* confdefs.h.  */
27631 _ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h.  */
27635 $ac_includes_default
27636 #include <$ac_header>
27637 _ACEOF
27638 rm -f conftest.$ac_objext
27639 if { (ac_try="$ac_compile"
27640 case "(($ac_try" in
27641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642   *) ac_try_echo=$ac_try;;
27643 esac
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645   (eval "$ac_compile") 2>conftest.er1
27646   ac_status=$?
27647   grep -v '^ *+' conftest.er1 >conftest.err
27648   rm -f conftest.er1
27649   cat conftest.err >&5
27650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651   (exit $ac_status); } && {
27652          test -z "$ac_c_werror_flag" ||
27653          test ! -s conftest.err
27654        } && test -s conftest.$ac_objext; then
27655   ac_header_compiler=yes
27656 else
27657   echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27659
27660         ac_header_compiler=no
27661 fi
27662
27663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27665 echo "${ECHO_T}$ac_header_compiler" >&6; }
27666
27667 # Is the header present?
27668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27670 cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676 #include <$ac_header>
27677 _ACEOF
27678 if { (ac_try="$ac_cpp conftest.$ac_ext"
27679 case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } >/dev/null && {
27691          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27692          test ! -s conftest.err
27693        }; then
27694   ac_header_preproc=yes
27695 else
27696   echo "$as_me: failed program was:" >&5
27697 sed 's/^/| /' conftest.$ac_ext >&5
27698
27699   ac_header_preproc=no
27700 fi
27701
27702 rm -f conftest.err conftest.$ac_ext
27703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27704 echo "${ECHO_T}$ac_header_preproc" >&6; }
27705
27706 # So?  What about this header?
27707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27708   yes:no: )
27709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27713     ac_header_preproc=yes
27714     ;;
27715   no:yes:* )
27716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27728     ( cat <<\_ASBOX
27729 ## --------------------------------------------- ##
27730 ## Report this to vserver@list.linux-vserver.org ##
27731 ## --------------------------------------------- ##
27732 _ASBOX
27733      ) | sed "s/^/$as_me: WARNING:     /" >&2
27734     ;;
27735 esac
27736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27739   echo $ECHO_N "(cached) $ECHO_C" >&6
27740 else
27741   eval "$as_ac_Header=\$ac_header_preproc"
27742 fi
27743 ac_res=`eval echo '${'$as_ac_Header'}'`
27744                { echo "$as_me:$LINENO: result: $ac_res" >&5
27745 echo "${ECHO_T}$ac_res" >&6; }
27746
27747 fi
27748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27749   cat >>confdefs.h <<_ACEOF
27750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27751 _ACEOF
27752
27753 fi
27754
27755 done
27756
27757
27758 if test x"$ensc_have_dietlibc" = xno; then
27759         { echo "$as_me:$LINENO: checking for openpty" >&5
27760 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
27761 if test "${ac_cv_func_openpty+set}" = set; then
27762   echo $ECHO_N "(cached) $ECHO_C" >&6
27763 else
27764   cat >conftest.$ac_ext <<_ACEOF
27765 /* confdefs.h.  */
27766 _ACEOF
27767 cat confdefs.h >>conftest.$ac_ext
27768 cat >>conftest.$ac_ext <<_ACEOF
27769 /* end confdefs.h.  */
27770 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27772 #define openpty innocuous_openpty
27773
27774 /* System header to define __stub macros and hopefully few prototypes,
27775     which can conflict with char openpty (); below.
27776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27777     <limits.h> exists even on freestanding compilers.  */
27778
27779 #ifdef __STDC__
27780 # include <limits.h>
27781 #else
27782 # include <assert.h>
27783 #endif
27784
27785 #undef openpty
27786
27787 /* Override any GCC internal prototype to avoid an error.
27788    Use char because int might match the return type of a GCC
27789    builtin and then its argument prototype would still apply.  */
27790 #ifdef __cplusplus
27791 extern "C"
27792 #endif
27793 char openpty ();
27794 /* The GNU C library defines this for functions which it implements
27795     to always fail with ENOSYS.  Some functions are actually named
27796     something starting with __ and the normal name is an alias.  */
27797 #if defined __stub_openpty || defined __stub___openpty
27798 choke me
27799 #endif
27800
27801 int
27802 main ()
27803 {
27804 return openpty ();
27805   ;
27806   return 0;
27807 }
27808 _ACEOF
27809 rm -f conftest.$ac_objext conftest$ac_exeext
27810 if { (ac_try="$ac_link"
27811 case "(($ac_try" in
27812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27813   *) ac_try_echo=$ac_try;;
27814 esac
27815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27816   (eval "$ac_link") 2>conftest.er1
27817   ac_status=$?
27818   grep -v '^ *+' conftest.er1 >conftest.err
27819   rm -f conftest.er1
27820   cat conftest.err >&5
27821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822   (exit $ac_status); } && {
27823          test -z "$ac_c_werror_flag" ||
27824          test ! -s conftest.err
27825        } && test -s conftest$ac_exeext &&
27826        $as_test_x conftest$ac_exeext; then
27827   ac_cv_func_openpty=yes
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832         ac_cv_func_openpty=no
27833 fi
27834
27835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27836       conftest$ac_exeext conftest.$ac_ext
27837 fi
27838 { echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
27839 echo "${ECHO_T}$ac_cv_func_openpty" >&6; }
27840 if test $ac_cv_func_openpty = yes; then
27841   :
27842 else
27843
27844 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
27845 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
27846 if test "${ac_cv_lib_util_openpty+set}" = set; then
27847   echo $ECHO_N "(cached) $ECHO_C" >&6
27848 else
27849   ac_check_lib_save_LIBS=$LIBS
27850 LIBS="-lutil  $LIBS"
27851 cat >conftest.$ac_ext <<_ACEOF
27852 /* confdefs.h.  */
27853 _ACEOF
27854 cat confdefs.h >>conftest.$ac_ext
27855 cat >>conftest.$ac_ext <<_ACEOF
27856 /* end confdefs.h.  */
27857
27858 /* Override any GCC internal prototype to avoid an error.
27859    Use char because int might match the return type of a GCC
27860    builtin and then its argument prototype would still apply.  */
27861 #ifdef __cplusplus
27862 extern "C"
27863 #endif
27864 char openpty ();
27865 int
27866 main ()
27867 {
27868 return openpty ();
27869   ;
27870   return 0;
27871 }
27872 _ACEOF
27873 rm -f conftest.$ac_objext conftest$ac_exeext
27874 if { (ac_try="$ac_link"
27875 case "(($ac_try" in
27876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27877   *) ac_try_echo=$ac_try;;
27878 esac
27879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27880   (eval "$ac_link") 2>conftest.er1
27881   ac_status=$?
27882   grep -v '^ *+' conftest.er1 >conftest.err
27883   rm -f conftest.er1
27884   cat conftest.err >&5
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); } && {
27887          test -z "$ac_c_werror_flag" ||
27888          test ! -s conftest.err
27889        } && test -s conftest$ac_exeext &&
27890        $as_test_x conftest$ac_exeext; then
27891   ac_cv_lib_util_openpty=yes
27892 else
27893   echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27895
27896         ac_cv_lib_util_openpty=no
27897 fi
27898
27899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27900       conftest$ac_exeext conftest.$ac_ext
27901 LIBS=$ac_check_lib_save_LIBS
27902 fi
27903 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
27904 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
27905 if test $ac_cv_lib_util_openpty = yes; then
27906   cat >>confdefs.h <<_ACEOF
27907 #define HAVE_LIBUTIL 1
27908 _ACEOF
27909
27910   LIBS="-lutil $LIBS"
27911
27912 else
27913   { { echo "$as_me:$LINENO: error:
27914 ****
27915 **** openpty could not be found
27916 ****" >&5
27917 echo "$as_me: error:
27918 ****
27919 **** openpty could not be found
27920 ****" >&2;}
27921    { (exit 1); exit 1; }; }
27922 fi
27923
27924 fi
27925
27926 fi
27927
27928
27929 if test x"$ensc_cv_c99_c99compiler" = xyes; then
27930         ensc_have_beecrypt=yes
27931
27932         if test x"$ensc_have_beecrypt" = xyes; then
27933                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27934   { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
27935 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
27936 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 fi
27939 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
27940 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
27941 else
27942   # Is the header compilable?
27943 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
27944 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6; }
27945 cat >conftest.$ac_ext <<_ACEOF
27946 /* confdefs.h.  */
27947 _ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h.  */
27951 $ac_includes_default
27952 #include <beecrypt/beecrypt.h>
27953 _ACEOF
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958   *) ac_try_echo=$ac_try;;
27959 esac
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961   (eval "$ac_compile") 2>conftest.er1
27962   ac_status=$?
27963   grep -v '^ *+' conftest.er1 >conftest.err
27964   rm -f conftest.er1
27965   cat conftest.err >&5
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } && {
27968          test -z "$ac_c_werror_flag" ||
27969          test ! -s conftest.err
27970        } && test -s conftest.$ac_objext; then
27971   ac_header_compiler=yes
27972 else
27973   echo "$as_me: failed program was:" >&5
27974 sed 's/^/| /' conftest.$ac_ext >&5
27975
27976         ac_header_compiler=no
27977 fi
27978
27979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27981 echo "${ECHO_T}$ac_header_compiler" >&6; }
27982
27983 # Is the header present?
27984 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
27985 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6; }
27986 cat >conftest.$ac_ext <<_ACEOF
27987 /* confdefs.h.  */
27988 _ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h.  */
27992 #include <beecrypt/beecrypt.h>
27993 _ACEOF
27994 if { (ac_try="$ac_cpp conftest.$ac_ext"
27995 case "(($ac_try" in
27996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997   *) ac_try_echo=$ac_try;;
27998 esac
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } >/dev/null && {
28007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28008          test ! -s conftest.err
28009        }; then
28010   ac_header_preproc=yes
28011 else
28012   echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28014
28015   ac_header_preproc=no
28016 fi
28017
28018 rm -f conftest.err conftest.$ac_ext
28019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28020 echo "${ECHO_T}$ac_header_preproc" >&6; }
28021
28022 # So?  What about this header?
28023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28024   yes:no: )
28025     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28026 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28027     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
28028 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
28029     ac_header_preproc=yes
28030     ;;
28031   no:yes:* )
28032     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
28033 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
28034     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
28035 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
28036     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
28037 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
28038     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
28039 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28040     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
28041 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
28042     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
28043 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
28044     ( cat <<\_ASBOX
28045 ## --------------------------------------------- ##
28046 ## Report this to vserver@list.linux-vserver.org ##
28047 ## --------------------------------------------- ##
28048 _ASBOX
28049      ) | sed "s/^/$as_me: WARNING:     /" >&2
28050     ;;
28051 esac
28052 { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28053 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28054 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
28058 fi
28059 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28060 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28061
28062 fi
28063 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
28064    :
28065 else
28066    ensc_have_beecrypt=no
28067 fi
28068
28069
28070         fi
28071
28072         if test x"$ensc_have_beecrypt" = xyes; then
28073                 { echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
28074 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6; }
28075 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
28076   echo $ECHO_N "(cached) $ECHO_C" >&6
28077 else
28078   ac_check_lib_save_LIBS=$LIBS
28079 LIBS="-lbeecrypt  $LIBS"
28080 cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086
28087 /* Override any GCC internal prototype to avoid an error.
28088    Use char because int might match the return type of a GCC
28089    builtin and then its argument prototype would still apply.  */
28090 #ifdef __cplusplus
28091 extern "C"
28092 #endif
28093 char hashFunctionContextInit ();
28094 int
28095 main ()
28096 {
28097 return hashFunctionContextInit ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_link") 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } && {
28116          test -z "$ac_c_werror_flag" ||
28117          test ! -s conftest.err
28118        } && test -s conftest$ac_exeext &&
28119        $as_test_x conftest$ac_exeext; then
28120   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         ac_cv_lib_beecrypt_hashFunctionContextInit=no
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129       conftest$ac_exeext conftest.$ac_ext
28130 LIBS=$ac_check_lib_save_LIBS
28131 fi
28132 { echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
28133 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6; }
28134 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
28135    :
28136 else
28137    ensc_have_beecrypt=no
28138 fi
28139
28140         fi
28141
28142         if test x"$ensc_have_beecrypt" != xyes; then
28143                 { echo "$as_me:$LINENO: WARNING:
28144 ****
28145 **** 'beecrypt' could not be found;
28146 **** this will disable the build of 'vhashify'
28147 ****" >&5
28148 echo "$as_me: WARNING:
28149 ****
28150 **** 'beecrypt' could not be found;
28151 **** this will disable the build of 'vhashify'
28152 ****" >&2;}
28153         fi
28154 else
28155         ensc_have_beecrypt=no
28156 fi
28157
28158  if test x"$ensc_have_beecrypt" = xyes; then
28159   ENSC_HAVE_BEECRYPT_TRUE=
28160   ENSC_HAVE_BEECRYPT_FALSE='#'
28161 else
28162   ENSC_HAVE_BEECRYPT_TRUE='#'
28163   ENSC_HAVE_BEECRYPT_FALSE=
28164 fi
28165
28166  if false; then
28167   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
28168   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
28169 else
28170   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
28171   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
28172 fi
28173
28174
28175
28176 { echo "$as_me:$LINENO: checking for host initscripts" >&5
28177 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6; }
28178
28179 # Check whether --with-initscripts was given.
28180 if test "${with_initscripts+set}" = set; then
28181   withval=$with_initscripts;
28182         case "$withval" in
28183         gentoo) ensc_with_init=gentoo;;
28184         sysv)   ensc_with_init=sysv;;
28185         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
28186 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
28187    { (exit 1); exit 1; }; };;
28188         esac
28189
28190 else
28191
28192         if test -e /etc/gentoo-release; then
28193                 ensc_with_init=gentoo
28194         else
28195                 ensc_with_init=sysv
28196         fi
28197
28198 fi
28199
28200 { echo "$as_me:$LINENO: result: $ensc_with_init" >&5
28201 echo "${ECHO_T}$ensc_with_init" >&6; }
28202  if test x"$ensc_with_init" = xgentoo; then
28203   HAVE_GENTOO_INIT_TRUE=
28204   HAVE_GENTOO_INIT_FALSE='#'
28205 else
28206   HAVE_GENTOO_INIT_TRUE='#'
28207   HAVE_GENTOO_INIT_FALSE=
28208 fi
28209
28210  if test x"$ensc_with_init" = xsysv; then
28211   HAVE_SYSV_INIT_TRUE=
28212   HAVE_SYSV_INIT_FALSE='#'
28213 else
28214   HAVE_SYSV_INIT_TRUE='#'
28215   HAVE_SYSV_INIT_FALSE=
28216 fi
28217
28218
28219
28220
28221 cat >>confdefs.h <<\_ACEOF
28222 #define UTMP_GID 22
28223 _ACEOF
28224
28225
28226 if false; then
28227
28228 cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_GROWING_STACK 1
28230 _ACEOF
28231
28232 fi
28233
28234
28235 cat >>confdefs.h <<\_ACEOF
28236 #define _FILE_OFFSET_BITS 64
28237 _ACEOF
28238
28239
28240 ensc_cxx_affected=" (affected: vbuild, vcheck)"
28241 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
28242 ensc_diet_msg=" (you have been warned)"
28243 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
28244 ensc_diet_compat_msg=" (using -lcompat)"
28245 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
28246 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
28247 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
28248 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
28249 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
28250
28251
28252
28253
28254
28255 ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile"
28256
28257 cat >confcache <<\_ACEOF
28258 # This file is a shell script that caches the results of configure
28259 # tests run on this system so they can be shared between configure
28260 # scripts and configure runs, see configure's option --config-cache.
28261 # It is not useful on other systems.  If it contains results you don't
28262 # want to keep, you may remove or edit it.
28263 #
28264 # config.status only pays attention to the cache file if you give it
28265 # the --recheck option to rerun configure.
28266 #
28267 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28268 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28269 # following values.
28270
28271 _ACEOF
28272
28273 # The following way of writing the cache mishandles newlines in values,
28274 # but we know of no workaround that is simple, portable, and efficient.
28275 # So, we kill variables containing newlines.
28276 # Ultrix sh set writes to stderr and can't be redirected directly,
28277 # and sets the high bit in the cache file unless we assign to the vars.
28278 (
28279   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28280     eval ac_val=\$$ac_var
28281     case $ac_val in #(
28282     *${as_nl}*)
28283       case $ac_var in #(
28284       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28285 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28286       esac
28287       case $ac_var in #(
28288       _ | IFS | as_nl) ;; #(
28289       *) $as_unset $ac_var ;;
28290       esac ;;
28291     esac
28292   done
28293
28294   (set) 2>&1 |
28295     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28296     *${as_nl}ac_space=\ *)
28297       # `set' does not quote correctly, so add quotes (double-quote
28298       # substitution turns \\\\ into \\, and sed turns \\ into \).
28299       sed -n \
28300         "s/'/'\\\\''/g;
28301           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28302       ;; #(
28303     *)
28304       # `set' quotes correctly as required by POSIX, so do not add quotes.
28305       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28306       ;;
28307     esac |
28308     sort
28309 ) |
28310   sed '
28311      /^ac_cv_env_/b end
28312      t clear
28313      :clear
28314      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28315      t end
28316      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28317      :end' >>confcache
28318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28319   if test -w "$cache_file"; then
28320     test "x$cache_file" != "x/dev/null" &&
28321       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28322 echo "$as_me: updating cache $cache_file" >&6;}
28323     cat confcache >$cache_file
28324   else
28325     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28326 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28327   fi
28328 fi
28329 rm -f confcache
28330
28331 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28332 # Let make expand exec_prefix.
28333 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28334
28335 DEFS=-DHAVE_CONFIG_H
28336
28337 ac_libobjs=
28338 ac_ltlibobjs=
28339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28340   # 1. Remove the extension, and $U if already installed.
28341   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28342   ac_i=`echo "$ac_i" | sed "$ac_script"`
28343   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28344   #    will be set to the directory where LIBOBJS objects are built.
28345   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28346   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28347 done
28348 LIBOBJS=$ac_libobjs
28349
28350 LTLIBOBJS=$ac_ltlibobjs
28351
28352
28353 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28354   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28355 Usually this means the macro was only invoked conditionally." >&5
28356 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28357 Usually this means the macro was only invoked conditionally." >&2;}
28358    { (exit 1); exit 1; }; }
28359 fi
28360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28361   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28362 Usually this means the macro was only invoked conditionally." >&5
28363 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28364 Usually this means the macro was only invoked conditionally." >&2;}
28365    { (exit 1); exit 1; }; }
28366 fi
28367 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28368   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28369 Usually this means the macro was only invoked conditionally." >&5
28370 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28371 Usually this means the macro was only invoked conditionally." >&2;}
28372    { (exit 1); exit 1; }; }
28373 fi
28374 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28375   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28376 Usually this means the macro was only invoked conditionally." >&5
28377 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28378 Usually this means the macro was only invoked conditionally." >&2;}
28379    { (exit 1); exit 1; }; }
28380 fi
28381 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
28382   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28383 Usually this means the macro was only invoked conditionally." >&5
28384 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
28385 Usually this means the macro was only invoked conditionally." >&2;}
28386    { (exit 1); exit 1; }; }
28387 fi
28388 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
28389   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28390 Usually this means the macro was only invoked conditionally." >&5
28391 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
28392 Usually this means the macro was only invoked conditionally." >&2;}
28393    { (exit 1); exit 1; }; }
28394 fi
28395 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
28396   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
28397 Usually this means the macro was only invoked conditionally." >&5
28398 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
28399 Usually this means the macro was only invoked conditionally." >&2;}
28400    { (exit 1); exit 1; }; }
28401 fi
28402 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
28403   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
28404 Usually this means the macro was only invoked conditionally." >&5
28405 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
28406 Usually this means the macro was only invoked conditionally." >&2;}
28407    { (exit 1); exit 1; }; }
28408 fi
28409 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28410   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28411 Usually this means the macro was only invoked conditionally." >&5
28412 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28413 Usually this means the macro was only invoked conditionally." >&2;}
28414    { (exit 1); exit 1; }; }
28415 fi
28416 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28417   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28418 Usually this means the macro was only invoked conditionally." >&5
28419 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28420 Usually this means the macro was only invoked conditionally." >&2;}
28421    { (exit 1); exit 1; }; }
28422 fi
28423 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28424   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28425 Usually this means the macro was only invoked conditionally." >&5
28426 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28427 Usually this means the macro was only invoked conditionally." >&2;}
28428    { (exit 1); exit 1; }; }
28429 fi
28430 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28431   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28432 Usually this means the macro was only invoked conditionally." >&5
28433 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28434 Usually this means the macro was only invoked conditionally." >&2;}
28435    { (exit 1); exit 1; }; }
28436 fi
28437 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
28438   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
28439 Usually this means the macro was only invoked conditionally." >&5
28440 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
28441 Usually this means the macro was only invoked conditionally." >&2;}
28442    { (exit 1); exit 1; }; }
28443 fi
28444 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28445   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28446 Usually this means the macro was only invoked conditionally." >&5
28447 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28448 Usually this means the macro was only invoked conditionally." >&2;}
28449    { (exit 1); exit 1; }; }
28450 fi
28451 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
28452   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28453 Usually this means the macro was only invoked conditionally." >&5
28454 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
28455 Usually this means the macro was only invoked conditionally." >&2;}
28456    { (exit 1); exit 1; }; }
28457 fi
28458 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
28459   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28460 Usually this means the macro was only invoked conditionally." >&5
28461 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
28462 Usually this means the macro was only invoked conditionally." >&2;}
28463    { (exit 1); exit 1; }; }
28464 fi
28465 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
28466   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28467 Usually this means the macro was only invoked conditionally." >&5
28468 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
28469 Usually this means the macro was only invoked conditionally." >&2;}
28470    { (exit 1); exit 1; }; }
28471 fi
28472 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
28473   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
28474 Usually this means the macro was only invoked conditionally." >&5
28475 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
28476 Usually this means the macro was only invoked conditionally." >&2;}
28477    { (exit 1); exit 1; }; }
28478 fi
28479 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
28480   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28481 Usually this means the macro was only invoked conditionally." >&5
28482 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
28483 Usually this means the macro was only invoked conditionally." >&2;}
28484    { (exit 1); exit 1; }; }
28485 fi
28486 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
28487   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28488 Usually this means the macro was only invoked conditionally." >&5
28489 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
28490 Usually this means the macro was only invoked conditionally." >&2;}
28491    { (exit 1); exit 1; }; }
28492 fi
28493 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
28494   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28495 Usually this means the macro was only invoked conditionally." >&5
28496 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
28497 Usually this means the macro was only invoked conditionally." >&2;}
28498    { (exit 1); exit 1; }; }
28499 fi
28500 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
28501   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
28502 Usually this means the macro was only invoked conditionally." >&5
28503 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
28504 Usually this means the macro was only invoked conditionally." >&2;}
28505    { (exit 1); exit 1; }; }
28506 fi
28507 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
28508   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
28509 Usually this means the macro was only invoked conditionally." >&5
28510 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
28511 Usually this means the macro was only invoked conditionally." >&2;}
28512    { (exit 1); exit 1; }; }
28513 fi
28514
28515                         FEATURES_TXT="\
28516 Features:
28517                        CC: $CC, $($CC   --version | sed -e '1p;d')
28518                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
28519                  CPPFLAGS: '$CPPFLAGS'
28520                    CFLAGS: '$CFLAGS'
28521                  CXXFLAGS: '$CXXFLAGS'
28522                build/host: $build/$host
28523              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
28524        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
28525        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
28526            Available APIs: $enable_apis
28527             ext2fs Source: $ensc_cv_test_ext2fs_header
28528     syscall(2) invocation: $with_syscall
28529       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
28530
28531 Paths:
28532                    prefix: $prefix
28533         sysconf-Directory: $sysconfdir
28534             cfg-Directory: $sysconfdir/vservers
28535          initrd-Directory: $initrddir
28536        pkgstate-Directory: $localstatedir/run/vservers
28537           vserver-Rootdir: $vserverdir
28538 "
28539                         echo "$FEATURES_TXT" >FEATURES.txt
28540
28541
28542 : ${CONFIG_STATUS=./config.status}
28543 ac_clean_files_save=$ac_clean_files
28544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28545 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28546 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28547 cat >$CONFIG_STATUS <<_ACEOF
28548 #! $SHELL
28549 # Generated by $as_me.
28550 # Run this file to recreate the current configuration.
28551 # Compiler output produced by configure, useful for debugging
28552 # configure, is in config.log if it exists.
28553
28554 debug=false
28555 ac_cs_recheck=false
28556 ac_cs_silent=false
28557 SHELL=\${CONFIG_SHELL-$SHELL}
28558 _ACEOF
28559
28560 cat >>$CONFIG_STATUS <<\_ACEOF
28561 ## --------------------- ##
28562 ## M4sh Initialization.  ##
28563 ## --------------------- ##
28564
28565 # Be more Bourne compatible
28566 DUALCASE=1; export DUALCASE # for MKS sh
28567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28568   emulate sh
28569   NULLCMD=:
28570   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28571   # is contrary to our usage.  Disable this feature.
28572   alias -g '${1+"$@"}'='"$@"'
28573   setopt NO_GLOB_SUBST
28574 else
28575   case `(set -o) 2>/dev/null` in
28576   *posix*) set -o posix ;;
28577 esac
28578
28579 fi
28580
28581
28582
28583
28584 # PATH needs CR
28585 # Avoid depending upon Character Ranges.
28586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28589 as_cr_digits='0123456789'
28590 as_cr_alnum=$as_cr_Letters$as_cr_digits
28591
28592 # The user is always right.
28593 if test "${PATH_SEPARATOR+set}" != set; then
28594   echo "#! /bin/sh" >conf$$.sh
28595   echo  "exit 0"   >>conf$$.sh
28596   chmod +x conf$$.sh
28597   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28598     PATH_SEPARATOR=';'
28599   else
28600     PATH_SEPARATOR=:
28601   fi
28602   rm -f conf$$.sh
28603 fi
28604
28605 # Support unset when possible.
28606 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28607   as_unset=unset
28608 else
28609   as_unset=false
28610 fi
28611
28612
28613 # IFS
28614 # We need space, tab and new line, in precisely that order.  Quoting is
28615 # there to prevent editors from complaining about space-tab.
28616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28617 # splitting by setting IFS to empty value.)
28618 as_nl='
28619 '
28620 IFS=" ""        $as_nl"
28621
28622 # Find who we are.  Look in the path if we contain no directory separator.
28623 case $0 in
28624   *[\\/]* ) as_myself=$0 ;;
28625   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28626 for as_dir in $PATH
28627 do
28628   IFS=$as_save_IFS
28629   test -z "$as_dir" && as_dir=.
28630   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28631 done
28632 IFS=$as_save_IFS
28633
28634      ;;
28635 esac
28636 # We did not find ourselves, most probably we were run as `sh COMMAND'
28637 # in which case we are not to be found in the path.
28638 if test "x$as_myself" = x; then
28639   as_myself=$0
28640 fi
28641 if test ! -f "$as_myself"; then
28642   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28643   { (exit 1); exit 1; }
28644 fi
28645
28646 # Work around bugs in pre-3.0 UWIN ksh.
28647 for as_var in ENV MAIL MAILPATH
28648 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28649 done
28650 PS1='$ '
28651 PS2='> '
28652 PS4='+ '
28653
28654 # NLS nuisances.
28655 for as_var in \
28656   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28657   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28658   LC_TELEPHONE LC_TIME
28659 do
28660   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28661     eval $as_var=C; export $as_var
28662   else
28663     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28664   fi
28665 done
28666
28667 # Required to use basename.
28668 if expr a : '\(a\)' >/dev/null 2>&1 &&
28669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28670   as_expr=expr
28671 else
28672   as_expr=false
28673 fi
28674
28675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28676   as_basename=basename
28677 else
28678   as_basename=false
28679 fi
28680
28681
28682 # Name of the executable.
28683 as_me=`$as_basename -- "$0" ||
28684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28685          X"$0" : 'X\(//\)$' \| \
28686          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28687 echo X/"$0" |
28688     sed '/^.*\/\([^/][^/]*\)\/*$/{
28689             s//\1/
28690             q
28691           }
28692           /^X\/\(\/\/\)$/{
28693             s//\1/
28694             q
28695           }
28696           /^X\/\(\/\).*/{
28697             s//\1/
28698             q
28699           }
28700           s/.*/./; q'`
28701
28702 # CDPATH.
28703 $as_unset CDPATH
28704
28705
28706
28707   as_lineno_1=$LINENO
28708   as_lineno_2=$LINENO
28709   test "x$as_lineno_1" != "x$as_lineno_2" &&
28710   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28711
28712   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28713   # uniformly replaced by the line number.  The first 'sed' inserts a
28714   # line-number line after each line using $LINENO; the second 'sed'
28715   # does the real work.  The second script uses 'N' to pair each
28716   # line-number line with the line containing $LINENO, and appends
28717   # trailing '-' during substitution so that $LINENO is not a special
28718   # case at line end.
28719   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28720   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28721   # E. McMahon (1931-1989) for sed's syntax.  :-)
28722   sed -n '
28723     p
28724     /[$]LINENO/=
28725   ' <$as_myself |
28726     sed '
28727       s/[$]LINENO.*/&-/
28728       t lineno
28729       b
28730       :lineno
28731       N
28732       :loop
28733       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28734       t loop
28735       s/-\n.*//
28736     ' >$as_me.lineno &&
28737   chmod +x "$as_me.lineno" ||
28738     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28739    { (exit 1); exit 1; }; }
28740
28741   # Don't try to exec as it changes $[0], causing all sort of problems
28742   # (the dirname of $[0] is not the place where we might find the
28743   # original and so on.  Autoconf is especially sensitive to this).
28744   . "./$as_me.lineno"
28745   # Exit status is that of the last command.
28746   exit
28747 }
28748
28749
28750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28751   as_dirname=dirname
28752 else
28753   as_dirname=false
28754 fi
28755
28756 ECHO_C= ECHO_N= ECHO_T=
28757 case `echo -n x` in
28758 -n*)
28759   case `echo 'x\c'` in
28760   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28761   *)   ECHO_C='\c';;
28762   esac;;
28763 *)
28764   ECHO_N='-n';;
28765 esac
28766
28767 if expr a : '\(a\)' >/dev/null 2>&1 &&
28768    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28769   as_expr=expr
28770 else
28771   as_expr=false
28772 fi
28773
28774 rm -f conf$$ conf$$.exe conf$$.file
28775 if test -d conf$$.dir; then
28776   rm -f conf$$.dir/conf$$.file
28777 else
28778   rm -f conf$$.dir
28779   mkdir conf$$.dir
28780 fi
28781 echo >conf$$.file
28782 if ln -s conf$$.file conf$$ 2>/dev/null; then
28783   as_ln_s='ln -s'
28784   # ... but there are two gotchas:
28785   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28786   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28787   # In both cases, we have to default to `cp -p'.
28788   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28789     as_ln_s='cp -p'
28790 elif ln conf$$.file conf$$ 2>/dev/null; then
28791   as_ln_s=ln
28792 else
28793   as_ln_s='cp -p'
28794 fi
28795 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28796 rmdir conf$$.dir 2>/dev/null
28797
28798 if mkdir -p . 2>/dev/null; then
28799   as_mkdir_p=:
28800 else
28801   test -d ./-p && rmdir ./-p
28802   as_mkdir_p=false
28803 fi
28804
28805 if test -x / >/dev/null 2>&1; then
28806   as_test_x='test -x'
28807 else
28808   if ls -dL / >/dev/null 2>&1; then
28809     as_ls_L_option=L
28810   else
28811     as_ls_L_option=
28812   fi
28813   as_test_x='
28814     eval sh -c '\''
28815       if test -d "$1"; then
28816         test -d "$1/.";
28817       else
28818         case $1 in
28819         -*)set "./$1";;
28820         esac;
28821         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28822         ???[sx]*):;;*)false;;esac;fi
28823     '\'' sh
28824   '
28825 fi
28826 as_executable_p=$as_test_x
28827
28828 # Sed expression to map a string onto a valid CPP name.
28829 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28830
28831 # Sed expression to map a string onto a valid variable name.
28832 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28833
28834
28835 exec 6>&1
28836
28837 # Save the log message, to keep $[0] and so on meaningful, and to
28838 # report actual input values of CONFIG_FILES etc. instead of their
28839 # values after options handling.
28840 ac_log="
28841 This file was extended by util-vserver $as_me 0.30.214, which was
28842 generated by GNU Autoconf 2.61.  Invocation command line was
28843
28844   CONFIG_FILES    = $CONFIG_FILES
28845   CONFIG_HEADERS  = $CONFIG_HEADERS
28846   CONFIG_LINKS    = $CONFIG_LINKS
28847   CONFIG_COMMANDS = $CONFIG_COMMANDS
28848   $ $0 $@
28849
28850 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28851 "
28852
28853 _ACEOF
28854
28855 cat >>$CONFIG_STATUS <<_ACEOF
28856 # Files that config.status was made for.
28857 config_files="$ac_config_files"
28858 config_headers="$ac_config_headers"
28859 config_commands="$ac_config_commands"
28860
28861 _ACEOF
28862
28863 cat >>$CONFIG_STATUS <<\_ACEOF
28864 ac_cs_usage="\
28865 \`$as_me' instantiates files from templates according to the
28866 current configuration.
28867
28868 Usage: $0 [OPTIONS] [FILE]...
28869
28870   -h, --help       print this help, then exit
28871   -V, --version    print version number and configuration settings, then exit
28872   -q, --quiet      do not print progress messages
28873   -d, --debug      don't remove temporary files
28874       --recheck    update $as_me by reconfiguring in the same conditions
28875   --file=FILE[:TEMPLATE]
28876                    instantiate the configuration file FILE
28877   --header=FILE[:TEMPLATE]
28878                    instantiate the configuration header FILE
28879
28880 Configuration files:
28881 $config_files
28882
28883 Configuration headers:
28884 $config_headers
28885
28886 Configuration commands:
28887 $config_commands
28888
28889 Report bugs to <bug-autoconf@gnu.org>."
28890
28891 _ACEOF
28892 cat >>$CONFIG_STATUS <<_ACEOF
28893 ac_cs_version="\\
28894 util-vserver config.status 0.30.214
28895 configured by $0, generated by GNU Autoconf 2.61,
28896   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28897
28898 Copyright (C) 2006 Free Software Foundation, Inc.
28899 This config.status script is free software; the Free Software Foundation
28900 gives unlimited permission to copy, distribute and modify it."
28901
28902 ac_pwd='$ac_pwd'
28903 srcdir='$srcdir'
28904 INSTALL='$INSTALL'
28905 MKDIR_P='$MKDIR_P'
28906 _ACEOF
28907
28908 cat >>$CONFIG_STATUS <<\_ACEOF
28909 # If no file are specified by the user, then we need to provide default
28910 # value.  By we need to know if files were specified by the user.
28911 ac_need_defaults=:
28912 while test $# != 0
28913 do
28914   case $1 in
28915   --*=*)
28916     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28917     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28918     ac_shift=:
28919     ;;
28920   *)
28921     ac_option=$1
28922     ac_optarg=$2
28923     ac_shift=shift
28924     ;;
28925   esac
28926
28927   case $ac_option in
28928   # Handling of the options.
28929   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28930     ac_cs_recheck=: ;;
28931   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28932     echo "$ac_cs_version"; exit ;;
28933   --debug | --debu | --deb | --de | --d | -d )
28934     debug=: ;;
28935   --file | --fil | --fi | --f )
28936     $ac_shift
28937     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28938     ac_need_defaults=false;;
28939   --header | --heade | --head | --hea )
28940     $ac_shift
28941     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28942     ac_need_defaults=false;;
28943   --he | --h)
28944     # Conflict between --help and --header
28945     { echo "$as_me: error: ambiguous option: $1
28946 Try \`$0 --help' for more information." >&2
28947    { (exit 1); exit 1; }; };;
28948   --help | --hel | -h )
28949     echo "$ac_cs_usage"; exit ;;
28950   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28951   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28952     ac_cs_silent=: ;;
28953
28954   # This is an error.
28955   -*) { echo "$as_me: error: unrecognized option: $1
28956 Try \`$0 --help' for more information." >&2
28957    { (exit 1); exit 1; }; } ;;
28958
28959   *) ac_config_targets="$ac_config_targets $1"
28960      ac_need_defaults=false ;;
28961
28962   esac
28963   shift
28964 done
28965
28966 ac_configure_extra_args=
28967
28968 if $ac_cs_silent; then
28969   exec 6>/dev/null
28970   ac_configure_extra_args="$ac_configure_extra_args --silent"
28971 fi
28972
28973 _ACEOF
28974 cat >>$CONFIG_STATUS <<_ACEOF
28975 if \$ac_cs_recheck; then
28976   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28977   CONFIG_SHELL=$SHELL
28978   export CONFIG_SHELL
28979   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28980 fi
28981
28982 _ACEOF
28983 cat >>$CONFIG_STATUS <<\_ACEOF
28984 exec 5>>config.log
28985 {
28986   echo
28987   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28988 ## Running $as_me. ##
28989 _ASBOX
28990   echo "$ac_log"
28991 } >&5
28992
28993 _ACEOF
28994 cat >>$CONFIG_STATUS <<_ACEOF
28995 #
28996 # INIT-COMMANDS
28997 #
28998 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28999
29000 _ACEOF
29001
29002 cat >>$CONFIG_STATUS <<\_ACEOF
29003
29004 # Handling of arguments.
29005 for ac_config_target in $ac_config_targets
29006 do
29007   case $ac_config_target in
29008     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29009     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29010     "util-vserver.spec") CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
29011     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29012     "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
29013     "lib/apidoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
29014
29015   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29017    { (exit 1); exit 1; }; };;
29018   esac
29019 done
29020
29021
29022 # If the user did not use the arguments to specify the items to instantiate,
29023 # then the envvar interface is used.  Set only those that are not.
29024 # We use the long form for the default assignment because of an extremely
29025 # bizarre bug on SunOS 4.1.3.
29026 if $ac_need_defaults; then
29027   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29028   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29029   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29030 fi
29031
29032 # Have a temporary directory for convenience.  Make it in the build tree
29033 # simply because there is no reason against having it here, and in addition,
29034 # creating and moving files from /tmp can sometimes cause problems.
29035 # Hook for its removal unless debugging.
29036 # Note that there is a small window in which the directory will not be cleaned:
29037 # after its creation but before its name has been assigned to `$tmp'.
29038 $debug ||
29039 {
29040   tmp=
29041   trap 'exit_status=$?
29042   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29043 ' 0
29044   trap '{ (exit 1); exit 1; }' 1 2 13 15
29045 }
29046 # Create a (secure) tmp directory for tmp files.
29047
29048 {
29049   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29050   test -n "$tmp" && test -d "$tmp"
29051 }  ||
29052 {
29053   tmp=./conf$$-$RANDOM
29054   (umask 077 && mkdir "$tmp")
29055 } ||
29056 {
29057    echo "$me: cannot create a temporary directory in ." >&2
29058    { (exit 1); exit 1; }
29059 }
29060
29061 #
29062 # Set up the sed scripts for CONFIG_FILES section.
29063 #
29064
29065 # No need to generate the scripts if there are no CONFIG_FILES.
29066 # This happens for instance when ./config.status config.h
29067 if test -n "$CONFIG_FILES"; then
29068
29069 _ACEOF
29070
29071
29072
29073 ac_delim='%!_!# '
29074 for ac_last_try in false false false false false :; do
29075   cat >conf$$subs.sed <<_ACEOF
29076 SHELL!$SHELL$ac_delim
29077 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29078 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29079 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29080 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29081 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29082 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29083 exec_prefix!$exec_prefix$ac_delim
29084 prefix!$prefix$ac_delim
29085 program_transform_name!$program_transform_name$ac_delim
29086 bindir!$bindir$ac_delim
29087 sbindir!$sbindir$ac_delim
29088 libexecdir!$libexecdir$ac_delim
29089 datarootdir!$datarootdir$ac_delim
29090 datadir!$datadir$ac_delim
29091 sysconfdir!$sysconfdir$ac_delim
29092 sharedstatedir!$sharedstatedir$ac_delim
29093 localstatedir!$localstatedir$ac_delim
29094 includedir!$includedir$ac_delim
29095 oldincludedir!$oldincludedir$ac_delim
29096 docdir!$docdir$ac_delim
29097 infodir!$infodir$ac_delim
29098 htmldir!$htmldir$ac_delim
29099 dvidir!$dvidir$ac_delim
29100 pdfdir!$pdfdir$ac_delim
29101 psdir!$psdir$ac_delim
29102 libdir!$libdir$ac_delim
29103 localedir!$localedir$ac_delim
29104 mandir!$mandir$ac_delim
29105 DEFS!$DEFS$ac_delim
29106 ECHO_C!$ECHO_C$ac_delim
29107 ECHO_N!$ECHO_N$ac_delim
29108 ECHO_T!$ECHO_T$ac_delim
29109 LIBS!$LIBS$ac_delim
29110 build_alias!$build_alias$ac_delim
29111 host_alias!$host_alias$ac_delim
29112 target_alias!$target_alias$ac_delim
29113 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29114 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29115 INSTALL_DATA!$INSTALL_DATA$ac_delim
29116 am__isrc!$am__isrc$ac_delim
29117 CYGPATH_W!$CYGPATH_W$ac_delim
29118 PACKAGE!$PACKAGE$ac_delim
29119 VERSION!$VERSION$ac_delim
29120 ACLOCAL!$ACLOCAL$ac_delim
29121 AUTOCONF!$AUTOCONF$ac_delim
29122 AUTOMAKE!$AUTOMAKE$ac_delim
29123 AUTOHEADER!$AUTOHEADER$ac_delim
29124 MAKEINFO!$MAKEINFO$ac_delim
29125 install_sh!$install_sh$ac_delim
29126 STRIP!$STRIP$ac_delim
29127 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29128 mkdir_p!$mkdir_p$ac_delim
29129 AWK!$AWK$ac_delim
29130 SET_MAKE!$SET_MAKE$ac_delim
29131 am__leading_dot!$am__leading_dot$ac_delim
29132 AMTAR!$AMTAR$ac_delim
29133 am__tar!$am__tar$ac_delim
29134 am__untar!$am__untar$ac_delim
29135 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29136 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29137 MAINT!$MAINT$ac_delim
29138 build!$build$ac_delim
29139 build_cpu!$build_cpu$ac_delim
29140 build_vendor!$build_vendor$ac_delim
29141 build_os!$build_os$ac_delim
29142 host!$host$ac_delim
29143 host_cpu!$host_cpu$ac_delim
29144 host_vendor!$host_vendor$ac_delim
29145 host_os!$host_os$ac_delim
29146 GPG_KEY!$GPG_KEY$ac_delim
29147 CXX!$CXX$ac_delim
29148 CXXFLAGS!$CXXFLAGS$ac_delim
29149 LDFLAGS!$LDFLAGS$ac_delim
29150 CPPFLAGS!$CPPFLAGS$ac_delim
29151 ac_ct_CXX!$ac_ct_CXX$ac_delim
29152 EXEEXT!$EXEEXT$ac_delim
29153 OBJEXT!$OBJEXT$ac_delim
29154 DEPDIR!$DEPDIR$ac_delim
29155 am__include!$am__include$ac_delim
29156 am__quote!$am__quote$ac_delim
29157 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29158 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29159 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29160 CXXDEPMODE!$CXXDEPMODE$ac_delim
29161 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29162 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29163 CC!$CC$ac_delim
29164 CFLAGS!$CFLAGS$ac_delim
29165 ac_ct_CC!$ac_ct_CC$ac_delim
29166 CCDEPMODE!$CCDEPMODE$ac_delim
29167 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29168 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29169 LN_S!$LN_S$ac_delim
29170 ENSC_HAVE_CXX_COMPILER_TRUE!$ENSC_HAVE_CXX_COMPILER_TRUE$ac_delim
29171 ENSC_HAVE_CXX_COMPILER_FALSE!$ENSC_HAVE_CXX_COMPILER_FALSE$ac_delim
29172 ENSC_HAVE_C99_COMPILER_TRUE!$ENSC_HAVE_C99_COMPILER_TRUE$ac_delim
29173 _ACEOF
29174
29175   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29176     break
29177   elif $ac_last_try; then
29178     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29179 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29180    { (exit 1); exit 1; }; }
29181   else
29182     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29183   fi
29184 done
29185
29186 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29187 if test -n "$ac_eof"; then
29188   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29189   ac_eof=`expr $ac_eof + 1`
29190 fi
29191
29192 cat >>$CONFIG_STATUS <<_ACEOF
29193 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29194 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29195 _ACEOF
29196 sed '
29197 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29198 s/^/s,@/; s/!/@,|#_!!_#|/
29199 :n
29200 t n
29201 s/'"$ac_delim"'$/,g/; t
29202 s/$/\\/; p
29203 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29204 ' >>$CONFIG_STATUS <conf$$subs.sed
29205 rm -f conf$$subs.sed
29206 cat >>$CONFIG_STATUS <<_ACEOF
29207 CEOF$ac_eof
29208 _ACEOF
29209
29210
29211 ac_delim='%!_!# '
29212 for ac_last_try in false false false false false :; do
29213   cat >conf$$subs.sed <<_ACEOF
29214 ENSC_HAVE_C99_COMPILER_FALSE!$ENSC_HAVE_C99_COMPILER_FALSE$ac_delim
29215 ENSC_PATHPROG_SED!$ENSC_PATHPROG_SED$ac_delim
29216 CAT!$CAT$ac_delim
29217 CHOWN!$CHOWN$ac_delim
29218 CMP!$CMP$ac_delim
29219 CP!$CP$ac_delim
29220 DIRNAME!$DIRNAME$ac_delim
29221 EGREP!$EGREP$ac_delim
29222 ENV!$ENV$ac_delim
29223 GREP!$GREP$ac_delim
29224 LN!$LN$ac_delim
29225 MKDIR!$MKDIR$ac_delim
29226 MKFIFO!$MKFIFO$ac_delim
29227 MKTEMP!$MKTEMP$ac_delim
29228 MOUNT!$MOUNT$ac_delim
29229 MV!$MV$ac_delim
29230 NICE!$NICE$ac_delim
29231 PS!$PS$ac_delim
29232 RM!$RM$ac_delim
29233 RMDIR!$RMDIR$ac_delim
29234 SED!$SED$ac_delim
29235 SH!$SH$ac_delim
29236 TAC!$TAC$ac_delim
29237 TAR!$TAR$ac_delim
29238 TOUCH!$TOUCH$ac_delim
29239 TTY!$TTY$ac_delim
29240 UMOUNT!$UMOUNT$ac_delim
29241 WC!$WC$ac_delim
29242 IP!$IP$ac_delim
29243 IPTABLES!$IPTABLES$ac_delim
29244 MODPROBE!$MODPROBE$ac_delim
29245 NAMEIF!$NAMEIF$ac_delim
29246 NOHUP!$NOHUP$ac_delim
29247 RMMOD!$RMMOD$ac_delim
29248 VCONFIG!$VCONFIG$ac_delim
29249 WGET!$WGET$ac_delim
29250 FILE!$FILE$ac_delim
29251 GZIP!$GZIP$ac_delim
29252 BZIP2!$BZIP2$ac_delim
29253 CPIO!$CPIO$ac_delim
29254 RESTORE!$RESTORE$ac_delim
29255 RSYNC!$RSYNC$ac_delim
29256 STRACE!$STRACE$ac_delim
29257 DOXYGEN!$DOXYGEN$ac_delim
29258 XSLTP!$XSLTP$ac_delim
29259 XSLTPROC!$XSLTPROC$ac_delim
29260 HAVE_XSLTP_TRUE!$HAVE_XSLTP_TRUE$ac_delim
29261 HAVE_XSLTP_FALSE!$HAVE_XSLTP_FALSE$ac_delim
29262 HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
29263 HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
29264 LIB_DEBUG_CPPFLAGS!$LIB_DEBUG_CPPFLAGS$ac_delim
29265 ENSC_USE_EXPENSIVE_TESTS!$ENSC_USE_EXPENSIVE_TESTS$ac_delim
29266 initrddir!$initrddir$ac_delim
29267 RELEASE_CPPFLAGS!$RELEASE_CPPFLAGS$ac_delim
29268 CPP!$CPP$ac_delim
29269 DIET!$DIET$ac_delim
29270 DIETFLAGS!$DIETFLAGS$ac_delim
29271 USE_DIETLIBC_TRUE!$USE_DIETLIBC_TRUE$ac_delim
29272 USE_DIETLIBC_FALSE!$USE_DIETLIBC_FALSE$ac_delim
29273 USE_DIETLIBC_COMPAT_TRUE!$USE_DIETLIBC_COMPAT_TRUE$ac_delim
29274 USE_DIETLIBC_COMPAT_FALSE!$USE_DIETLIBC_COMPAT_FALSE$ac_delim
29275 ENSC_USE_DIETLIBC_TRUE!$ENSC_USE_DIETLIBC_TRUE$ac_delim
29276 ENSC_USE_DIETLIBC_FALSE!$ENSC_USE_DIETLIBC_FALSE$ac_delim
29277 ENSC_USE_GLIBC_TRUE!$ENSC_USE_GLIBC_TRUE$ac_delim
29278 ENSC_USE_GLIBC_FALSE!$ENSC_USE_GLIBC_FALSE$ac_delim
29279 ECHO!$ECHO$ac_delim
29280 AR!$AR$ac_delim
29281 RANLIB!$RANLIB$ac_delim
29282 CXXCPP!$CXXCPP$ac_delim
29283 F77!$F77$ac_delim
29284 FFLAGS!$FFLAGS$ac_delim
29285 ac_ct_F77!$ac_ct_F77$ac_delim
29286 LIBTOOL!$LIBTOOL$ac_delim
29287 vserverdir!$vserverdir$ac_delim
29288 SVN2CL!$SVN2CL$ac_delim
29289 HAVE_SVN2CL_TRUE!$HAVE_SVN2CL_TRUE$ac_delim
29290 HAVE_SVN2CL_FALSE!$HAVE_SVN2CL_FALSE$ac_delim
29291 ENSC_ENABLE_INTERNAL_HEADERS_TRUE!$ENSC_ENABLE_INTERNAL_HEADERS_TRUE$ac_delim
29292 ENSC_ENABLE_INTERNAL_HEADERS_FALSE!$ENSC_ENABLE_INTERNAL_HEADERS_FALSE$ac_delim
29293 ENSC_HAVE_BEECRYPT_TRUE!$ENSC_HAVE_BEECRYPT_TRUE$ac_delim
29294 ENSC_HAVE_BEECRYPT_FALSE!$ENSC_HAVE_BEECRYPT_FALSE$ac_delim
29295 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE$ac_delim
29296 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE$ac_delim
29297 HAVE_GENTOO_INIT_TRUE!$HAVE_GENTOO_INIT_TRUE$ac_delim
29298 HAVE_GENTOO_INIT_FALSE!$HAVE_GENTOO_INIT_FALSE$ac_delim
29299 HAVE_SYSV_INIT_TRUE!$HAVE_SYSV_INIT_TRUE$ac_delim
29300 HAVE_SYSV_INIT_FALSE!$HAVE_SYSV_INIT_FALSE$ac_delim
29301 LIBOBJS!$LIBOBJS$ac_delim
29302 LTLIBOBJS!$LTLIBOBJS$ac_delim
29303 _ACEOF
29304
29305   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
29306     break
29307   elif $ac_last_try; then
29308     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29309 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29310    { (exit 1); exit 1; }; }
29311   else
29312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29313   fi
29314 done
29315
29316 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29317 if test -n "$ac_eof"; then
29318   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29319   ac_eof=`expr $ac_eof + 1`
29320 fi
29321
29322 cat >>$CONFIG_STATUS <<_ACEOF
29323 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29325 _ACEOF
29326 sed '
29327 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29328 s/^/s,@/; s/!/@,|#_!!_#|/
29329 :n
29330 t n
29331 s/'"$ac_delim"'$/,g/; t
29332 s/$/\\/; p
29333 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29334 ' >>$CONFIG_STATUS <conf$$subs.sed
29335 rm -f conf$$subs.sed
29336 cat >>$CONFIG_STATUS <<_ACEOF
29337 :end
29338 s/|#_!!_#|//g
29339 CEOF$ac_eof
29340 _ACEOF
29341
29342
29343 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29344 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29345 # trailing colons and then remove the whole line if VPATH becomes empty
29346 # (actually we leave an empty line to preserve line numbers).
29347 if test "x$srcdir" = x.; then
29348   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29349 s/:*\$(srcdir):*/:/
29350 s/:*\${srcdir}:*/:/
29351 s/:*@srcdir@:*/:/
29352 s/^\([^=]*=[     ]*\):*/\1/
29353 s/:*$//
29354 s/^[^=]*=[       ]*$//
29355 }'
29356 fi
29357
29358 cat >>$CONFIG_STATUS <<\_ACEOF
29359 fi # test -n "$CONFIG_FILES"
29360
29361
29362 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
29363 do
29364   case $ac_tag in
29365   :[FHLC]) ac_mode=$ac_tag; continue;;
29366   esac
29367   case $ac_mode$ac_tag in
29368   :[FHL]*:*);;
29369   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29370 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29371    { (exit 1); exit 1; }; };;
29372   :[FH]-) ac_tag=-:-;;
29373   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29374   esac
29375   ac_save_IFS=$IFS
29376   IFS=:
29377   set x $ac_tag
29378   IFS=$ac_save_IFS
29379   shift
29380   ac_file=$1
29381   shift
29382
29383   case $ac_mode in
29384   :L) ac_source=$1;;
29385   :[FH])
29386     ac_file_inputs=
29387     for ac_f
29388     do
29389       case $ac_f in
29390       -) ac_f="$tmp/stdin";;
29391       *) # Look for the file first in the build tree, then in the source tree
29392          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29393          # because $ac_f cannot contain `:'.
29394          test -f "$ac_f" ||
29395            case $ac_f in
29396            [\\/$]*) false;;
29397            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29398            esac ||
29399            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29400 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29401    { (exit 1); exit 1; }; };;
29402       esac
29403       ac_file_inputs="$ac_file_inputs $ac_f"
29404     done
29405
29406     # Let's still pretend it is `configure' which instantiates (i.e., don't
29407     # use $as_me), people would be surprised to read:
29408     #    /* config.h.  Generated by config.status.  */
29409     configure_input="Generated from "`IFS=:
29410           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29411     if test x"$ac_file" != x-; then
29412       configure_input="$ac_file.  $configure_input"
29413       { echo "$as_me:$LINENO: creating $ac_file" >&5
29414 echo "$as_me: creating $ac_file" >&6;}
29415     fi
29416
29417     case $ac_tag in
29418     *:-:* | *:-) cat >"$tmp/stdin";;
29419     esac
29420     ;;
29421   esac
29422
29423   ac_dir=`$as_dirname -- "$ac_file" ||
29424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29425          X"$ac_file" : 'X\(//\)[^/]' \| \
29426          X"$ac_file" : 'X\(//\)$' \| \
29427          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29428 echo X"$ac_file" |
29429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29430             s//\1/
29431             q
29432           }
29433           /^X\(\/\/\)[^/].*/{
29434             s//\1/
29435             q
29436           }
29437           /^X\(\/\/\)$/{
29438             s//\1/
29439             q
29440           }
29441           /^X\(\/\).*/{
29442             s//\1/
29443             q
29444           }
29445           s/.*/./; q'`
29446   { as_dir="$ac_dir"
29447   case $as_dir in #(
29448   -*) as_dir=./$as_dir;;
29449   esac
29450   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29451     as_dirs=
29452     while :; do
29453       case $as_dir in #(
29454       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29455       *) as_qdir=$as_dir;;
29456       esac
29457       as_dirs="'$as_qdir' $as_dirs"
29458       as_dir=`$as_dirname -- "$as_dir" ||
29459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29460          X"$as_dir" : 'X\(//\)[^/]' \| \
29461          X"$as_dir" : 'X\(//\)$' \| \
29462          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29463 echo X"$as_dir" |
29464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29465             s//\1/
29466             q
29467           }
29468           /^X\(\/\/\)[^/].*/{
29469             s//\1/
29470             q
29471           }
29472           /^X\(\/\/\)$/{
29473             s//\1/
29474             q
29475           }
29476           /^X\(\/\).*/{
29477             s//\1/
29478             q
29479           }
29480           s/.*/./; q'`
29481       test -d "$as_dir" && break
29482     done
29483     test -z "$as_dirs" || eval "mkdir $as_dirs"
29484   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29485 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29486    { (exit 1); exit 1; }; }; }
29487   ac_builddir=.
29488
29489 case "$ac_dir" in
29490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29491 *)
29492   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29493   # A ".." for each directory in $ac_dir_suffix.
29494   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29495   case $ac_top_builddir_sub in
29496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29498   esac ;;
29499 esac
29500 ac_abs_top_builddir=$ac_pwd
29501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29502 # for backward compatibility:
29503 ac_top_builddir=$ac_top_build_prefix
29504
29505 case $srcdir in
29506   .)  # We are building in place.
29507     ac_srcdir=.
29508     ac_top_srcdir=$ac_top_builddir_sub
29509     ac_abs_top_srcdir=$ac_pwd ;;
29510   [\\/]* | ?:[\\/]* )  # Absolute name.
29511     ac_srcdir=$srcdir$ac_dir_suffix;
29512     ac_top_srcdir=$srcdir
29513     ac_abs_top_srcdir=$srcdir ;;
29514   *) # Relative name.
29515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29516     ac_top_srcdir=$ac_top_build_prefix$srcdir
29517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29518 esac
29519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29520
29521
29522   case $ac_mode in
29523   :F)
29524   #
29525   # CONFIG_FILE
29526   #
29527
29528   case $INSTALL in
29529   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29530   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29531   esac
29532   ac_MKDIR_P=$MKDIR_P
29533   case $MKDIR_P in
29534   [\\/$]* | ?:[\\/]* ) ;;
29535   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29536   esac
29537 _ACEOF
29538
29539 cat >>$CONFIG_STATUS <<\_ACEOF
29540 # If the template does not know about datarootdir, expand it.
29541 # FIXME: This hack should be removed a few years after 2.60.
29542 ac_datarootdir_hack=; ac_datarootdir_seen=
29543
29544 case `sed -n '/datarootdir/ {
29545   p
29546   q
29547 }
29548 /@datadir@/p
29549 /@docdir@/p
29550 /@infodir@/p
29551 /@localedir@/p
29552 /@mandir@/p
29553 ' $ac_file_inputs` in
29554 *datarootdir*) ac_datarootdir_seen=yes;;
29555 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29556   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29557 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29558 _ACEOF
29559 cat >>$CONFIG_STATUS <<_ACEOF
29560   ac_datarootdir_hack='
29561   s&@datadir@&$datadir&g
29562   s&@docdir@&$docdir&g
29563   s&@infodir@&$infodir&g
29564   s&@localedir@&$localedir&g
29565   s&@mandir@&$mandir&g
29566     s&\\\${datarootdir}&$datarootdir&g' ;;
29567 esac
29568 _ACEOF
29569
29570 # Neutralize VPATH when `$srcdir' = `.'.
29571 # Shell code in configure.ac might set extrasub.
29572 # FIXME: do we really want to maintain this feature?
29573 cat >>$CONFIG_STATUS <<_ACEOF
29574   sed "$ac_vpsub
29575 $extrasub
29576 _ACEOF
29577 cat >>$CONFIG_STATUS <<\_ACEOF
29578 :t
29579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29580 s&@configure_input@&$configure_input&;t t
29581 s&@top_builddir@&$ac_top_builddir_sub&;t t
29582 s&@srcdir@&$ac_srcdir&;t t
29583 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29584 s&@top_srcdir@&$ac_top_srcdir&;t t
29585 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29586 s&@builddir@&$ac_builddir&;t t
29587 s&@abs_builddir@&$ac_abs_builddir&;t t
29588 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29589 s&@INSTALL@&$ac_INSTALL&;t t
29590 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29591 $ac_datarootdir_hack
29592 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
29593
29594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29595   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29596   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29597   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29598 which seems to be undefined.  Please make sure it is defined." >&5
29599 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29600 which seems to be undefined.  Please make sure it is defined." >&2;}
29601
29602   rm -f "$tmp/stdin"
29603   case $ac_file in
29604   -) cat "$tmp/out"; rm -f "$tmp/out";;
29605   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29606   esac
29607  ;;
29608   :H)
29609   #
29610   # CONFIG_HEADER
29611   #
29612 _ACEOF
29613
29614 # Transform confdefs.h into a sed script `conftest.defines', that
29615 # substitutes the proper values into config.h.in to produce config.h.
29616 rm -f conftest.defines conftest.tail
29617 # First, append a space to every undef/define line, to ease matching.
29618 echo 's/$/ /' >conftest.defines
29619 # Then, protect against being on the right side of a sed subst, or in
29620 # an unquoted here document, in config.status.  If some macros were
29621 # called several times there might be several #defines for the same
29622 # symbol, which is useless.  But do not sort them, since the last
29623 # AC_DEFINE must be honored.
29624 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29625 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29626 # NAME is the cpp macro being defined, VALUE is the value it is being given.
29627 # PARAMS is the parameter list in the macro definition--in most cases, it's
29628 # just an empty string.
29629 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
29630 ac_dB='\\)[      (].*,\\1define\\2'
29631 ac_dC=' '
29632 ac_dD=' ,'
29633
29634 uniq confdefs.h |
29635   sed -n '
29636         t rset
29637         :rset
29638         s/^[     ]*#[    ]*define[       ][      ]*//
29639         t ok
29640         d
29641         :ok
29642         s/[\\&,]/\\&/g
29643         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29644         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29645   ' >>conftest.defines
29646
29647 # Remove the space that was appended to ease matching.
29648 # Then replace #undef with comments.  This is necessary, for
29649 # example, in the case of _POSIX_SOURCE, which is predefined and required
29650 # on some systems where configure will not decide to define it.
29651 # (The regexp can be short, since the line contains either #define or #undef.)
29652 echo 's/ $//
29653 s,^[     #]*u.*,/* & */,' >>conftest.defines
29654
29655 # Break up conftest.defines:
29656 ac_max_sed_lines=50
29657
29658 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29659 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29660 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29661 # et cetera.
29662 ac_in='$ac_file_inputs'
29663 ac_out='"$tmp/out1"'
29664 ac_nxt='"$tmp/out2"'
29665
29666 while :
29667 do
29668   # Write a here document:
29669     cat >>$CONFIG_STATUS <<_ACEOF
29670     # First, check the format of the line:
29671     cat >"\$tmp/defines.sed" <<\\CEOF
29672 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
29673 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
29674 b
29675 :def
29676 _ACEOF
29677   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29678   echo 'CEOF
29679     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29680   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29681   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29682   grep . conftest.tail >/dev/null || break
29683   rm -f conftest.defines
29684   mv conftest.tail conftest.defines
29685 done
29686 rm -f conftest.defines conftest.tail
29687
29688 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29689 cat >>$CONFIG_STATUS <<\_ACEOF
29690   if test x"$ac_file" != x-; then
29691     echo "/* $configure_input  */" >"$tmp/config.h"
29692     cat "$ac_result" >>"$tmp/config.h"
29693     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29694       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29695 echo "$as_me: $ac_file is unchanged" >&6;}
29696     else
29697       rm -f $ac_file
29698       mv "$tmp/config.h" $ac_file
29699     fi
29700   else
29701     echo "/* $configure_input  */"
29702     cat "$ac_result"
29703   fi
29704   rm -f "$tmp/out12"
29705 # Compute $ac_file's index in $config_headers.
29706 _am_stamp_count=1
29707 for _am_header in $config_headers :; do
29708   case $_am_header in
29709     $ac_file | $ac_file:* )
29710       break ;;
29711     * )
29712       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29713   esac
29714 done
29715 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29716 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29717          X$ac_file : 'X\(//\)[^/]' \| \
29718          X$ac_file : 'X\(//\)$' \| \
29719          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29720 echo X$ac_file |
29721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29722             s//\1/
29723             q
29724           }
29725           /^X\(\/\/\)[^/].*/{
29726             s//\1/
29727             q
29728           }
29729           /^X\(\/\/\)$/{
29730             s//\1/
29731             q
29732           }
29733           /^X\(\/\).*/{
29734             s//\1/
29735             q
29736           }
29737           s/.*/./; q'`/stamp-h$_am_stamp_count
29738  ;;
29739
29740   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29741 echo "$as_me: executing $ac_file commands" >&6;}
29742  ;;
29743   esac
29744
29745
29746   case $ac_file$ac_mode in
29747     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29748   # Strip MF so we end up with the name of the file.
29749   mf=`echo "$mf" | sed -e 's/:.*$//'`
29750   # Check whether this is an Automake generated Makefile or not.
29751   # We used to match only the files named `Makefile.in', but
29752   # some people rename them; so instead we look at the file content.
29753   # Grep'ing the first line is not enough: some people post-process
29754   # each Makefile.in and add a new line on top of each file to say so.
29755   # Grep'ing the whole file is not good either: AIX grep has a line
29756   # limit of 2048, but all sed's we know have understand at least 4000.
29757   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
29758     dirpart=`$as_dirname -- "$mf" ||
29759 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29760          X"$mf" : 'X\(//\)[^/]' \| \
29761          X"$mf" : 'X\(//\)$' \| \
29762          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29763 echo X"$mf" |
29764     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29765             s//\1/
29766             q
29767           }
29768           /^X\(\/\/\)[^/].*/{
29769             s//\1/
29770             q
29771           }
29772           /^X\(\/\/\)$/{
29773             s//\1/
29774             q
29775           }
29776           /^X\(\/\).*/{
29777             s//\1/
29778             q
29779           }
29780           s/.*/./; q'`
29781   else
29782     continue
29783   fi
29784   # Extract the definition of DEPDIR, am__include, and am__quote
29785   # from the Makefile without running `make'.
29786   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29787   test -z "$DEPDIR" && continue
29788   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29789   test -z "am__include" && continue
29790   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29791   # When using ansi2knr, U may be empty or an underscore; expand it
29792   U=`sed -n 's/^U = //p' < "$mf"`
29793   # Find all dependency output files, they are included files with
29794   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29795   # simplest approach to changing $(DEPDIR) to its actual value in the
29796   # expansion.
29797   for file in `sed -n "
29798     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29799        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29800     # Make sure the directory exists.
29801     test -f "$dirpart/$file" && continue
29802     fdir=`$as_dirname -- "$file" ||
29803 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29804          X"$file" : 'X\(//\)[^/]' \| \
29805          X"$file" : 'X\(//\)$' \| \
29806          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29807 echo X"$file" |
29808     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29809             s//\1/
29810             q
29811           }
29812           /^X\(\/\/\)[^/].*/{
29813             s//\1/
29814             q
29815           }
29816           /^X\(\/\/\)$/{
29817             s//\1/
29818             q
29819           }
29820           /^X\(\/\).*/{
29821             s//\1/
29822             q
29823           }
29824           s/.*/./; q'`
29825     { as_dir=$dirpart/$fdir
29826   case $as_dir in #(
29827   -*) as_dir=./$as_dir;;
29828   esac
29829   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29830     as_dirs=
29831     while :; do
29832       case $as_dir in #(
29833       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29834       *) as_qdir=$as_dir;;
29835       esac
29836       as_dirs="'$as_qdir' $as_dirs"
29837       as_dir=`$as_dirname -- "$as_dir" ||
29838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29839          X"$as_dir" : 'X\(//\)[^/]' \| \
29840          X"$as_dir" : 'X\(//\)$' \| \
29841          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29842 echo X"$as_dir" |
29843     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29844             s//\1/
29845             q
29846           }
29847           /^X\(\/\/\)[^/].*/{
29848             s//\1/
29849             q
29850           }
29851           /^X\(\/\/\)$/{
29852             s//\1/
29853             q
29854           }
29855           /^X\(\/\).*/{
29856             s//\1/
29857             q
29858           }
29859           s/.*/./; q'`
29860       test -d "$as_dir" && break
29861     done
29862     test -z "$as_dirs" || eval "mkdir $as_dirs"
29863   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29864 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29865    { (exit 1); exit 1; }; }; }
29866     # echo "creating $dirpart/$file"
29867     echo '# dummy' > "$dirpart/$file"
29868   done
29869 done
29870  ;;
29871
29872   esac
29873 done # for ac_tag
29874
29875
29876 { (exit 0); exit 0; }
29877 _ACEOF
29878 chmod +x $CONFIG_STATUS
29879 ac_clean_files=$ac_clean_files_save
29880
29881
29882 # configure is writing to config.log, and then calls config.status.
29883 # config.status does its own redirection, appending to config.log.
29884 # Unfortunately, on DOS this fails, as config.log is still kept open
29885 # by configure, so config.status won't be able to write to it; its
29886 # output is simply discarded.  So we exec the FD to /dev/null,
29887 # effectively closing config.log, so it can be properly (re)opened and
29888 # appended to by config.status.  When coming back to configure, we
29889 # need to make the FD available again.
29890 if test "$no_create" != yes; then
29891   ac_cs_success=:
29892   ac_config_status_args=
29893   test "$silent" = yes &&
29894     ac_config_status_args="$ac_config_status_args --quiet"
29895   exec 5>/dev/null
29896   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29897   exec 5>>config.log
29898   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29899   # would make configure fail if this is the last instruction.
29900   $ac_cs_success || { (exit 1); exit 1; }
29901 fi
29902
29903
29904 { echo "$as_me:$LINENO:
29905
29906 $PACKAGE_STRING
29907
29908 $FEATURES_TXT" >&5
29909 echo "$as_me:
29910
29911 $PACKAGE_STRING
29912
29913 $FEATURES_TXT" >&6;}