Merge 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 PYTHON
867 PYTHON_VERSION
868 PYTHON_PREFIX
869 PYTHON_EXEC_PREFIX
870 PYTHON_PLATFORM
871 pythondir
872 pkgpythondir
873 pyexecdir
874 pkgpyexecdir
875 ENSC_HAVE_CXX_COMPILER_TRUE
876 ENSC_HAVE_CXX_COMPILER_FALSE
877 ENSC_HAVE_C99_COMPILER_TRUE
878 ENSC_HAVE_C99_COMPILER_FALSE
879 ENSC_PATHPROG_SED
880 CAT
881 CHOWN
882 CMP
883 CP
884 DIRNAME
885 EGREP
886 ENV
887 GREP
888 LN
889 MKDIR
890 MKFIFO
891 MKTEMP
892 MOUNT
893 MV
894 NICE
895 PS
896 RM
897 RMDIR
898 SED
899 SH
900 TAC
901 TAR
902 TOUCH
903 TTY
904 UMOUNT
905 WC
906 IP
907 IPTABLES
908 MODPROBE
909 NAMEIF
910 NOHUP
911 RMMOD
912 VCONFIG
913 WGET
914 FILE
915 GZIP
916 BZIP2
917 CPIO
918 RESTORE
919 RSYNC
920 STRACE
921 DOXYGEN
922 XSLTP
923 XSLTPROC
924 HAVE_XSLTP_TRUE
925 HAVE_XSLTP_FALSE
926 HAVE_XSLTPROC_TRUE
927 HAVE_XSLTPROC_FALSE
928 LIB_DEBUG_CPPFLAGS
929 ENSC_USE_EXPENSIVE_TESTS
930 initrddir
931 RELEASE_CPPFLAGS
932 CPP
933 DIET
934 DIETFLAGS
935 USE_DIETLIBC_TRUE
936 USE_DIETLIBC_FALSE
937 USE_DIETLIBC_COMPAT_TRUE
938 USE_DIETLIBC_COMPAT_FALSE
939 ENSC_USE_DIETLIBC_TRUE
940 ENSC_USE_DIETLIBC_FALSE
941 ENSC_USE_GLIBC_TRUE
942 ENSC_USE_GLIBC_FALSE
943 ECHO
944 AR
945 RANLIB
946 CXXCPP
947 F77
948 FFLAGS
949 ac_ct_F77
950 LIBTOOL
951 vserverdir
952 SVN2CL
953 HAVE_SVN2CL_TRUE
954 HAVE_SVN2CL_FALSE
955 ENSC_ENABLE_INTERNAL_HEADERS_TRUE
956 ENSC_ENABLE_INTERNAL_HEADERS_FALSE
957 ENSC_HAVE_BEECRYPT_TRUE
958 ENSC_HAVE_BEECRYPT_FALSE
959 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE
960 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE
961 ENSC_HAVE_LIBNL_TRUE
962 ENSC_HAVE_LIBNL_FALSE
963 PYTHON_INCLUDES
964 HAVE_GENTOO_INIT_TRUE
965 HAVE_GENTOO_INIT_FALSE
966 HAVE_SYSV_INIT_TRUE
967 HAVE_SYSV_INIT_FALSE
968 LIBOBJS
969 LTLIBOBJS'
970 ac_subst_files=''
971       ac_precious_vars='build_alias
972 host_alias
973 target_alias
974 CXX
975 CXXFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
979 CCC
980 CC
981 CFLAGS
982 CPP
983 DIET
984 DIETFLAGS
985 CXXCPP
986 F77
987 FFLAGS'
988
989
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
995 cache_file=/dev/null
996 exec_prefix=NONE
997 no_create=
998 no_recursion=
999 prefix=NONE
1000 program_prefix=NONE
1001 program_suffix=NONE
1002 program_transform_name=s,x,x,
1003 silent=
1004 site=
1005 srcdir=
1006 verbose=
1007 x_includes=NONE
1008 x_libraries=NONE
1009
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 includedir='${prefix}/include'
1025 oldincludedir='/usr/include'
1026 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027 infodir='${datarootdir}/info'
1028 htmldir='${docdir}'
1029 dvidir='${docdir}'
1030 pdfdir='${docdir}'
1031 psdir='${docdir}'
1032 libdir='${exec_prefix}/lib'
1033 localedir='${datarootdir}/locale'
1034 mandir='${datarootdir}/man'
1035
1036 ac_prev=
1037 ac_dashdash=
1038 for ac_option
1039 do
1040   # If the previous option needs an argument, assign it.
1041   if test -n "$ac_prev"; then
1042     eval $ac_prev=\$ac_option
1043     ac_prev=
1044     continue
1045   fi
1046
1047   case $ac_option in
1048   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049   *)    ac_optarg=yes ;;
1050   esac
1051
1052   # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054   case $ac_dashdash$ac_option in
1055   --)
1056     ac_dashdash=yes ;;
1057
1058   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059     ac_prev=bindir ;;
1060   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061     bindir=$ac_optarg ;;
1062
1063   -build | --build | --buil | --bui | --bu)
1064     ac_prev=build_alias ;;
1065   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066     build_alias=$ac_optarg ;;
1067
1068   -cache-file | --cache-file | --cache-fil | --cache-fi \
1069   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070     ac_prev=cache_file ;;
1071   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073     cache_file=$ac_optarg ;;
1074
1075   --config-cache | -C)
1076     cache_file=config.cache ;;
1077
1078   -datadir | --datadir | --datadi | --datad)
1079     ac_prev=datadir ;;
1080   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081     datadir=$ac_optarg ;;
1082
1083   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084   | --dataroo | --dataro | --datar)
1085     ac_prev=datarootdir ;;
1086   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088     datarootdir=$ac_optarg ;;
1089
1090   -disable-* | --disable-*)
1091     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095    { (exit 1); exit 1; }; }
1096     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1097     eval enable_$ac_feature=no ;;
1098
1099   -docdir | --docdir | --docdi | --doc | --do)
1100     ac_prev=docdir ;;
1101   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102     docdir=$ac_optarg ;;
1103
1104   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105     ac_prev=dvidir ;;
1106   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107     dvidir=$ac_optarg ;;
1108
1109   -enable-* | --enable-*)
1110     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1114    { (exit 1); exit 1; }; }
1115     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1116     eval enable_$ac_feature=\$ac_optarg ;;
1117
1118   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1119   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1120   | --exec | --exe | --ex)
1121     ac_prev=exec_prefix ;;
1122   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1123   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1124   | --exec=* | --exe=* | --ex=*)
1125     exec_prefix=$ac_optarg ;;
1126
1127   -gas | --gas | --ga | --g)
1128     # Obsolete; use --with-gas.
1129     with_gas=yes ;;
1130
1131   -help | --help | --hel | --he | -h)
1132     ac_init_help=long ;;
1133   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1134     ac_init_help=recursive ;;
1135   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1136     ac_init_help=short ;;
1137
1138   -host | --host | --hos | --ho)
1139     ac_prev=host_alias ;;
1140   -host=* | --host=* | --hos=* | --ho=*)
1141     host_alias=$ac_optarg ;;
1142
1143   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1144     ac_prev=htmldir ;;
1145   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1146   | --ht=*)
1147     htmldir=$ac_optarg ;;
1148
1149   -includedir | --includedir | --includedi | --included | --include \
1150   | --includ | --inclu | --incl | --inc)
1151     ac_prev=includedir ;;
1152   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1153   | --includ=* | --inclu=* | --incl=* | --inc=*)
1154     includedir=$ac_optarg ;;
1155
1156   -infodir | --infodir | --infodi | --infod | --info | --inf)
1157     ac_prev=infodir ;;
1158   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1159     infodir=$ac_optarg ;;
1160
1161   -libdir | --libdir | --libdi | --libd)
1162     ac_prev=libdir ;;
1163   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1164     libdir=$ac_optarg ;;
1165
1166   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1167   | --libexe | --libex | --libe)
1168     ac_prev=libexecdir ;;
1169   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1170   | --libexe=* | --libex=* | --libe=*)
1171     libexecdir=$ac_optarg ;;
1172
1173   -localedir | --localedir | --localedi | --localed | --locale)
1174     ac_prev=localedir ;;
1175   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1176     localedir=$ac_optarg ;;
1177
1178   -localstatedir | --localstatedir | --localstatedi | --localstated \
1179   | --localstate | --localstat | --localsta | --localst | --locals)
1180     ac_prev=localstatedir ;;
1181   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1182   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1183     localstatedir=$ac_optarg ;;
1184
1185   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1186     ac_prev=mandir ;;
1187   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1188     mandir=$ac_optarg ;;
1189
1190   -nfp | --nfp | --nf)
1191     # Obsolete; use --without-fp.
1192     with_fp=no ;;
1193
1194   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1195   | --no-cr | --no-c | -n)
1196     no_create=yes ;;
1197
1198   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1199   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1200     no_recursion=yes ;;
1201
1202   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1203   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1204   | --oldin | --oldi | --old | --ol | --o)
1205     ac_prev=oldincludedir ;;
1206   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1207   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1208   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1209     oldincludedir=$ac_optarg ;;
1210
1211   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1212     ac_prev=prefix ;;
1213   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1214     prefix=$ac_optarg ;;
1215
1216   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1217   | --program-pre | --program-pr | --program-p)
1218     ac_prev=program_prefix ;;
1219   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1220   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1221     program_prefix=$ac_optarg ;;
1222
1223   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1224   | --program-suf | --program-su | --program-s)
1225     ac_prev=program_suffix ;;
1226   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1227   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1228     program_suffix=$ac_optarg ;;
1229
1230   -program-transform-name | --program-transform-name \
1231   | --program-transform-nam | --program-transform-na \
1232   | --program-transform-n | --program-transform- \
1233   | --program-transform | --program-transfor \
1234   | --program-transfo | --program-transf \
1235   | --program-trans | --program-tran \
1236   | --progr-tra | --program-tr | --program-t)
1237     ac_prev=program_transform_name ;;
1238   -program-transform-name=* | --program-transform-name=* \
1239   | --program-transform-nam=* | --program-transform-na=* \
1240   | --program-transform-n=* | --program-transform-=* \
1241   | --program-transform=* | --program-transfor=* \
1242   | --program-transfo=* | --program-transf=* \
1243   | --program-trans=* | --program-tran=* \
1244   | --progr-tra=* | --program-tr=* | --program-t=*)
1245     program_transform_name=$ac_optarg ;;
1246
1247   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1248     ac_prev=pdfdir ;;
1249   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1250     pdfdir=$ac_optarg ;;
1251
1252   -psdir | --psdir | --psdi | --psd | --ps)
1253     ac_prev=psdir ;;
1254   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1255     psdir=$ac_optarg ;;
1256
1257   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258   | -silent | --silent | --silen | --sile | --sil)
1259     silent=yes ;;
1260
1261   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262     ac_prev=sbindir ;;
1263   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264   | --sbi=* | --sb=*)
1265     sbindir=$ac_optarg ;;
1266
1267   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269   | --sharedst | --shareds | --shared | --share | --shar \
1270   | --sha | --sh)
1271     ac_prev=sharedstatedir ;;
1272   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275   | --sha=* | --sh=*)
1276     sharedstatedir=$ac_optarg ;;
1277
1278   -site | --site | --sit)
1279     ac_prev=site ;;
1280   -site=* | --site=* | --sit=*)
1281     site=$ac_optarg ;;
1282
1283   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284     ac_prev=srcdir ;;
1285   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286     srcdir=$ac_optarg ;;
1287
1288   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289   | --syscon | --sysco | --sysc | --sys | --sy)
1290     ac_prev=sysconfdir ;;
1291   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293     sysconfdir=$ac_optarg ;;
1294
1295   -target | --target | --targe | --targ | --tar | --ta | --t)
1296     ac_prev=target_alias ;;
1297   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298     target_alias=$ac_optarg ;;
1299
1300   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301     verbose=yes ;;
1302
1303   -version | --version | --versio | --versi | --vers | -V)
1304     ac_init_version=: ;;
1305
1306   -with-* | --with-*)
1307     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308     # Reject names that are not valid shell variable names.
1309     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310       { echo "$as_me: error: invalid package name: $ac_package" >&2
1311    { (exit 1); exit 1; }; }
1312     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1313     eval with_$ac_package=\$ac_optarg ;;
1314
1315   -without-* | --without-*)
1316     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317     # Reject names that are not valid shell variable names.
1318     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319       { echo "$as_me: error: invalid package name: $ac_package" >&2
1320    { (exit 1); exit 1; }; }
1321     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1322     eval with_$ac_package=no ;;
1323
1324   --x)
1325     # Obsolete; use --with-x.
1326     with_x=yes ;;
1327
1328   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329   | --x-incl | --x-inc | --x-in | --x-i)
1330     ac_prev=x_includes ;;
1331   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333     x_includes=$ac_optarg ;;
1334
1335   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337     ac_prev=x_libraries ;;
1338   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340     x_libraries=$ac_optarg ;;
1341
1342   -*) { echo "$as_me: error: unrecognized option: $ac_option
1343 Try \`$0 --help' for more information." >&2
1344    { (exit 1); exit 1; }; }
1345     ;;
1346
1347   *=*)
1348     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349     # Reject names that are not valid shell variable names.
1350     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352    { (exit 1); exit 1; }; }
1353     eval $ac_envvar=\$ac_optarg
1354     export $ac_envvar ;;
1355
1356   *)
1357     # FIXME: should be removed in autoconf 3.0.
1358     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362     ;;
1363
1364   esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369   { echo "$as_me: error: missing argument to $ac_option" >&2
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 # Be sure to have absolute directory names.
1374 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375                 datadir sysconfdir sharedstatedir localstatedir includedir \
1376                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377                 libdir localedir mandir
1378 do
1379   eval ac_val=\$$ac_var
1380   case $ac_val in
1381     [\\/$]* | ?:[\\/]* )  continue;;
1382     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383   esac
1384   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385    { (exit 1); exit 1; }; }
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397   if test "x$build_alias" = x; then
1398     cross_compiling=maybe
1399     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400     If a cross compiler is detected then cross compile mode will be used." >&2
1401   elif test "x$build_alias" != "x$host_alias"; then
1402     cross_compiling=yes
1403   fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415   { echo "$as_me: error: Working directory cannot be determined" >&2
1416    { (exit 1); exit 1; }; }
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418   { echo "$as_me: error: pwd does not report name of working directory" >&2
1419    { (exit 1); exit 1; }; }
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424   ac_srcdir_defaulted=yes
1425   # Try the directory containing this script, then the parent directory.
1426   ac_confdir=`$as_dirname -- "$0" ||
1427 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428          X"$0" : 'X\(//\)[^/]' \| \
1429          X"$0" : 'X\(//\)$' \| \
1430          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1431 echo X"$0" |
1432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\/\)[^/].*/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)$/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\).*/{
1445             s//\1/
1446             q
1447           }
1448           s/.*/./; q'`
1449   srcdir=$ac_confdir
1450   if test ! -r "$srcdir/$ac_unique_file"; then
1451     srcdir=..
1452   fi
1453 else
1454   ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1459    { (exit 1); exit 1; }; }
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1464    { (exit 1); exit 1; }; }
1465         pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468   srcdir=.
1469 fi
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478   eval ac_env_${ac_var}_value=\$${ac_var}
1479   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1482
1483 #
1484 # Report the --help message.
1485 #
1486 if test "$ac_init_help" = "long"; then
1487   # Omit some internal or obsolete options to make the list less imposing.
1488   # This message is too long to be a string in the A/UX 3.1 sh.
1489   cat <<_ACEOF
1490 \`configure' configures util-vserver 0.30.214 to adapt to many kinds of systems.
1491
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE.  See below for descriptions of some of the useful variables.
1496
1497 Defaults for the options are specified in brackets.
1498
1499 Configuration:
1500   -h, --help              display this help and exit
1501       --help=short        display options specific to this package
1502       --help=recursive    display the short help of all the included packages
1503   -V, --version           display version information and exit
1504   -q, --quiet, --silent   do not print \`checking...' messages
1505       --cache-file=FILE   cache test results in FILE [disabled]
1506   -C, --config-cache      alias for \`--cache-file=config.cache'
1507   -n, --no-create         do not create output files
1508       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1509
1510 Installation directories:
1511   --prefix=PREFIX         install architecture-independent files in PREFIX
1512                           [$ac_default_prefix]
1513   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1514                           [PREFIX]
1515
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1520
1521 For better control, use the options below.
1522
1523 Fine tuning of the installation directories:
1524   --bindir=DIR           user executables [EPREFIX/bin]
1525   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1526   --libexecdir=DIR       program executables [EPREFIX/libexec]
1527   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1528   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1529   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1530   --libdir=DIR           object code libraries [EPREFIX/lib]
1531   --includedir=DIR       C header files [PREFIX/include]
1532   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1533   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1534   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1535   --infodir=DIR          info documentation [DATAROOTDIR/info]
1536   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1537   --mandir=DIR           man documentation [DATAROOTDIR/man]
1538   --docdir=DIR           documentation root [DATAROOTDIR/doc/util-vserver]
1539   --htmldir=DIR          html documentation [DOCDIR]
1540   --dvidir=DIR           dvi documentation [DOCDIR]
1541   --pdfdir=DIR           pdf documentation [DOCDIR]
1542   --psdir=DIR            ps documentation [DOCDIR]
1543 _ACEOF
1544
1545   cat <<\_ACEOF
1546
1547 Program names:
1548   --program-prefix=PREFIX            prepend PREFIX to installed program names
1549   --program-suffix=SUFFIX            append SUFFIX to installed program names
1550   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1551
1552 System types:
1553   --build=BUILD     configure for building on BUILD [guessed]
1554   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559   case $ac_init_help in
1560      short | recursive ) echo "Configuration of util-vserver 0.30.214:";;
1561    esac
1562   cat <<\_ACEOF
1563
1564 Optional Features:
1565   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1566   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1567   --enable-maintainer-mode  enable make rules and dependencies not useful
1568                           (and sometimes confusing) to the casual installer
1569   --disable-dependency-tracking  speeds up one-time build
1570   --enable-dependency-tracking   do not reject slow dependency extractors
1571   --disable-extra-optimizations
1572                           disable certain extra optimizations (default: no)
1573   --enable-lib-debug      enable additional debug code in library (default:
1574                           no)
1575   --enable-expensive-tests
1576                           disable tests which might be expensive on some
1577                           systems (default: no)
1578   --enable-release        enable release mode (default: no)
1579   --disable-alternative-syscalls
1580                           do not use the alternative _syscallX macros provided
1581                           by Herbert Poetzl (default: use them)
1582   --disable-dietlibc      do not use dietlibc resp. enforce its usage (with
1583                           --enable-dietlibc) (default: autodetect dietlibc)
1584   --enable-shared[=PKGS]  build shared libraries [default=yes]
1585   --enable-static[=PKGS]  build static libraries [default=yes]
1586   --enable-fast-install[=PKGS]
1587                           optimize for fast installation [default=yes]
1588   --disable-libtool-lock  avoid locking (might break parallel builds)
1589   --disable-internal-headers
1590                           use vserver specific headers from the kernel instead
1591                           of the shipped versions (default: no)
1592   --enable-apis=APIS      enable support for the given apis; possible values
1593                           are:
1594                           legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2
1595                           ALL,NOLEGACY (default: v13,net,v21,v22,v23,netv2)
1596
1597 Optional Packages:
1598   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1599   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1600   --with-initrddir <DIR>  use <DIR> as directory for SysV init-files (default:
1601                           $sysconfdir/init.d)
1602   --with-syscall=METHOD   call syscall(2) with the specified METHOD; valid
1603                           values are 'fast', 'traditional' and 'auto'
1604                           (default: auto)
1605   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606   --with-pic              try to use only PIC/non-PIC objects [default=use
1607                           both]
1608   --with-tags[=TAGS]      include additional configurations [automatic]
1609   --with-vrootdir=DIR     place vservers under DIR (default: /vservers)
1610   --with-initscripts=TYPE force host initscripts; valid values are 'gentoo'
1611                           and 'sysv' (default: guess)
1612
1613 Some influential environment variables:
1614   CXX         C++ compiler command
1615   CXXFLAGS    C++ compiler flags
1616   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1617               nonstandard directory <lib dir>
1618   LIBS        libraries to pass to the linker, e.g. -l<library>
1619   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620               you have headers in a nonstandard directory <include dir>
1621   CC          C compiler command
1622   CFLAGS      C compiler flags
1623   CPP         C preprocessor
1624   DIET        The 'diet' wrapper (default: diet)
1625   DIETFLAGS   Flags passed to the 'diet' wrapper (default: -O)
1626   CXXCPP      C++ preprocessor
1627   F77         Fortran 77 compiler command
1628   FFLAGS      Fortran 77 compiler flags
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <vserver@list.linux-vserver.org>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639   # If there are subdirs, report their specific --help.
1640   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641     test -d "$ac_dir" || continue
1642     ac_builddir=.
1643
1644 case "$ac_dir" in
1645 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *)
1647   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1648   # A ".." for each directory in $ac_dir_suffix.
1649   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1650   case $ac_top_builddir_sub in
1651   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653   esac ;;
1654 esac
1655 ac_abs_top_builddir=$ac_pwd
1656 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1657 # for backward compatibility:
1658 ac_top_builddir=$ac_top_build_prefix
1659
1660 case $srcdir in
1661   .)  # We are building in place.
1662     ac_srcdir=.
1663     ac_top_srcdir=$ac_top_builddir_sub
1664     ac_abs_top_srcdir=$ac_pwd ;;
1665   [\\/]* | ?:[\\/]* )  # Absolute name.
1666     ac_srcdir=$srcdir$ac_dir_suffix;
1667     ac_top_srcdir=$srcdir
1668     ac_abs_top_srcdir=$srcdir ;;
1669   *) # Relative name.
1670     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1671     ac_top_srcdir=$ac_top_build_prefix$srcdir
1672     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1673 esac
1674 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1675
1676     cd "$ac_dir" || { ac_status=$?; continue; }
1677     # Check for guested configure.
1678     if test -f "$ac_srcdir/configure.gnu"; then
1679       echo &&
1680       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1681     elif test -f "$ac_srcdir/configure"; then
1682       echo &&
1683       $SHELL "$ac_srcdir/configure" --help=recursive
1684     else
1685       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1686     fi || ac_status=$?
1687     cd "$ac_pwd" || { ac_status=$?; break; }
1688   done
1689 fi
1690
1691 test -n "$ac_init_help" && exit $ac_status
1692 if $ac_init_version; then
1693   cat <<\_ACEOF
1694 util-vserver configure 0.30.214
1695 generated by GNU Autoconf 2.61
1696
1697 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1698 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1701 _ACEOF
1702   exit
1703 fi
1704 cat >config.log <<_ACEOF
1705 This file contains any messages produced by compilers while
1706 running configure, to aid debugging if configure makes a mistake.
1707
1708 It was created by util-vserver $as_me 0.30.214, which was
1709 generated by GNU Autoconf 2.61.  Invocation command line was
1710
1711   $ $0 $@
1712
1713 _ACEOF
1714 exec 5>>config.log
1715 {
1716 cat <<_ASUNAME
1717 ## --------- ##
1718 ## Platform. ##
1719 ## --------- ##
1720
1721 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1722 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1723 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1724 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1725 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1726
1727 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1728 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1729
1730 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1731 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1732 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1733 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1734 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1735 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1736 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1737
1738 _ASUNAME
1739
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 for as_dir in $PATH
1742 do
1743   IFS=$as_save_IFS
1744   test -z "$as_dir" && as_dir=.
1745   echo "PATH: $as_dir"
1746 done
1747 IFS=$as_save_IFS
1748
1749 } >&5
1750
1751 cat >&5 <<_ACEOF
1752
1753
1754 ## ----------- ##
1755 ## Core tests. ##
1756 ## ----------- ##
1757
1758 _ACEOF
1759
1760
1761 # Keep a trace of the command line.
1762 # Strip out --no-create and --no-recursion so they do not pile up.
1763 # Strip out --silent because we don't want to record it for future runs.
1764 # Also quote any args containing shell meta-characters.
1765 # Make two passes to allow for proper duplicate-argument suppression.
1766 ac_configure_args=
1767 ac_configure_args0=
1768 ac_configure_args1=
1769 ac_must_keep_next=false
1770 for ac_pass in 1 2
1771 do
1772   for ac_arg
1773   do
1774     case $ac_arg in
1775     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1776     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1777     | -silent | --silent | --silen | --sile | --sil)
1778       continue ;;
1779     *\'*)
1780       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781     esac
1782     case $ac_pass in
1783     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1784     2)
1785       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1786       if test $ac_must_keep_next = true; then
1787         ac_must_keep_next=false # Got value, back to normal.
1788       else
1789         case $ac_arg in
1790           *=* | --config-cache | -C | -disable-* | --disable-* \
1791           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1792           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1793           | -with-* | --with-* | -without-* | --without-* | --x)
1794             case "$ac_configure_args0 " in
1795               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1796             esac
1797             ;;
1798           -* ) ac_must_keep_next=true ;;
1799         esac
1800       fi
1801       ac_configure_args="$ac_configure_args '$ac_arg'"
1802       ;;
1803     esac
1804   done
1805 done
1806 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1807 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1808
1809 # When interrupted or exit'd, cleanup temporary files, and complete
1810 # config.log.  We remove comments because anyway the quotes in there
1811 # would cause problems or look ugly.
1812 # WARNING: Use '\'' to represent an apostrophe within the trap.
1813 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1814 trap 'exit_status=$?
1815   # Save into config.log some information that might help in debugging.
1816   {
1817     echo
1818
1819     cat <<\_ASBOX
1820 ## ---------------- ##
1821 ## Cache variables. ##
1822 ## ---------------- ##
1823 _ASBOX
1824     echo
1825     # The following way of writing the cache mishandles newlines in values,
1826 (
1827   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828     eval ac_val=\$$ac_var
1829     case $ac_val in #(
1830     *${as_nl}*)
1831       case $ac_var in #(
1832       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1833 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1834       esac
1835       case $ac_var in #(
1836       _ | IFS | as_nl) ;; #(
1837       *) $as_unset $ac_var ;;
1838       esac ;;
1839     esac
1840   done
1841   (set) 2>&1 |
1842     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1843     *${as_nl}ac_space=\ *)
1844       sed -n \
1845         "s/'\''/'\''\\\\'\'''\''/g;
1846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1847       ;; #(
1848     *)
1849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1850       ;;
1851     esac |
1852     sort
1853 )
1854     echo
1855
1856     cat <<\_ASBOX
1857 ## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##
1860 _ASBOX
1861     echo
1862     for ac_var in $ac_subst_vars
1863     do
1864       eval ac_val=\$$ac_var
1865       case $ac_val in
1866       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867       esac
1868       echo "$ac_var='\''$ac_val'\''"
1869     done | sort
1870     echo
1871
1872     if test -n "$ac_subst_files"; then
1873       cat <<\_ASBOX
1874 ## ------------------- ##
1875 ## File substitutions. ##
1876 ## ------------------- ##
1877 _ASBOX
1878       echo
1879       for ac_var in $ac_subst_files
1880       do
1881         eval ac_val=\$$ac_var
1882         case $ac_val in
1883         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1884         esac
1885         echo "$ac_var='\''$ac_val'\''"
1886       done | sort
1887       echo
1888     fi
1889
1890     if test -s confdefs.h; then
1891       cat <<\_ASBOX
1892 ## ----------- ##
1893 ## confdefs.h. ##
1894 ## ----------- ##
1895 _ASBOX
1896       echo
1897       cat confdefs.h
1898       echo
1899     fi
1900     test "$ac_signal" != 0 &&
1901       echo "$as_me: caught signal $ac_signal"
1902     echo "$as_me: exit $exit_status"
1903   } >&5
1904   rm -f core *.core core.conftest.* &&
1905     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1906     exit $exit_status
1907 ' 0
1908 for ac_signal in 1 2 13 15; do
1909   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1910 done
1911 ac_signal=0
1912
1913 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1914 rm -f -r conftest* confdefs.h
1915
1916 # Predefined preprocessor variables.
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_NAME "$PACKAGE_NAME"
1920 _ACEOF
1921
1922
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1925 _ACEOF
1926
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_STRING "$PACKAGE_STRING"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1940 _ACEOF
1941
1942
1943 # Let the site file select an alternate cache file if it wants to.
1944 # Prefer explicitly selected file to automatically selected ones.
1945 if test -n "$CONFIG_SITE"; then
1946   set x "$CONFIG_SITE"
1947 elif test "x$prefix" != xNONE; then
1948   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1949 else
1950   set x "$ac_default_prefix/share/config.site" \
1951         "$ac_default_prefix/etc/config.site"
1952 fi
1953 shift
1954 for ac_site_file
1955 do
1956   if test -r "$ac_site_file"; then
1957     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1958 echo "$as_me: loading site script $ac_site_file" >&6;}
1959     sed 's/^/| /' "$ac_site_file" >&5
1960     . "$ac_site_file"
1961   fi
1962 done
1963
1964 if test -r "$cache_file"; then
1965   # Some versions of bash will fail to source /dev/null (special
1966   # files actually), so we avoid doing that.
1967   if test -f "$cache_file"; then
1968     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1969 echo "$as_me: loading cache $cache_file" >&6;}
1970     case $cache_file in
1971       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1972       *)                      . "./$cache_file";;
1973     esac
1974   fi
1975 else
1976   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1977 echo "$as_me: creating cache $cache_file" >&6;}
1978   >$cache_file
1979 fi
1980
1981 # Check that the precious variables saved in the cache have kept the same
1982 # value.
1983 ac_cache_corrupted=false
1984 for ac_var in $ac_precious_vars; do
1985   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1986   eval ac_new_set=\$ac_env_${ac_var}_set
1987   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1988   eval ac_new_val=\$ac_env_${ac_var}_value
1989   case $ac_old_set,$ac_new_set in
1990     set,)
1991       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1992 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1993       ac_cache_corrupted=: ;;
1994     ,set)
1995       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1997       ac_cache_corrupted=: ;;
1998     ,);;
1999     *)
2000       if test "x$ac_old_val" != "x$ac_new_val"; then
2001         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2004 echo "$as_me:   former value:  $ac_old_val" >&2;}
2005         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2006 echo "$as_me:   current value: $ac_new_val" >&2;}
2007         ac_cache_corrupted=:
2008       fi;;
2009   esac
2010   # Pass precious variables to config.status.
2011   if test "$ac_new_set" = set; then
2012     case $ac_new_val in
2013     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2014     *) ac_arg=$ac_var=$ac_new_val ;;
2015     esac
2016     case " $ac_configure_args " in
2017       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2018       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2019     esac
2020   fi
2021 done
2022 if $ac_cache_corrupted; then
2023   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2024 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2025   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2026 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2027    { (exit 1); exit 1; }; }
2028 fi
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054 ac_ext=c
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2059
2060
2061
2062 ac_config_headers="$ac_config_headers config.h"
2063
2064
2065 am__api_version='1.10'
2066
2067 ac_aux_dir=
2068 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2069   if test -f "$ac_dir/install-sh"; then
2070     ac_aux_dir=$ac_dir
2071     ac_install_sh="$ac_aux_dir/install-sh -c"
2072     break
2073   elif test -f "$ac_dir/install.sh"; then
2074     ac_aux_dir=$ac_dir
2075     ac_install_sh="$ac_aux_dir/install.sh -c"
2076     break
2077   elif test -f "$ac_dir/shtool"; then
2078     ac_aux_dir=$ac_dir
2079     ac_install_sh="$ac_aux_dir/shtool install -c"
2080     break
2081   fi
2082 done
2083 if test -z "$ac_aux_dir"; then
2084   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2085 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2086    { (exit 1); exit 1; }; }
2087 fi
2088
2089 # These three variables are undocumented and unsupported,
2090 # and are intended to be withdrawn in a future Autoconf release.
2091 # They can cause serious problems if a builder's source tree is in a directory
2092 # whose full name contains unusual characters.
2093 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2094 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2095 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2096
2097
2098 # Find a good install program.  We prefer a C program (faster),
2099 # so one script is as good as another.  But avoid the broken or
2100 # incompatible versions:
2101 # SysV /etc/install, /usr/sbin/install
2102 # SunOS /usr/etc/install
2103 # IRIX /sbin/install
2104 # AIX /bin/install
2105 # AmigaOS /C/install, which installs bootblocks on floppy discs
2106 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2107 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2108 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2109 # OS/2's system install, which has a completely different semantic
2110 # ./install, which can be erroneously created by make from ./install.sh.
2111 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2112 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2113 if test -z "$INSTALL"; then
2114 if test "${ac_cv_path_install+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2119 do
2120   IFS=$as_save_IFS
2121   test -z "$as_dir" && as_dir=.
2122   # Account for people who put trailing slashes in PATH elements.
2123 case $as_dir/ in
2124   ./ | .// | /cC/* | \
2125   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2126   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2127   /usr/ucb/* ) ;;
2128   *)
2129     # OSF1 and SCO ODT 3.0 have their own names for install.
2130     # Don't use installbsd from OSF since it installs stuff as root
2131     # by default.
2132     for ac_prog in ginstall scoinst install; do
2133       for ac_exec_ext in '' $ac_executable_extensions; do
2134         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2135           if test $ac_prog = install &&
2136             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2137             # AIX install.  It has an incompatible calling convention.
2138             :
2139           elif test $ac_prog = install &&
2140             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2141             # program-specific install script used by HP pwplus--don't use.
2142             :
2143           else
2144             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2145             break 3
2146           fi
2147         fi
2148       done
2149     done
2150     ;;
2151 esac
2152 done
2153 IFS=$as_save_IFS
2154
2155
2156 fi
2157   if test "${ac_cv_path_install+set}" = set; then
2158     INSTALL=$ac_cv_path_install
2159   else
2160     # As a last resort, use the slow shell script.  Don't cache a
2161     # value for INSTALL within a source directory, because that will
2162     # break other packages using the cache if that directory is
2163     # removed, or if the value is a relative name.
2164     INSTALL=$ac_install_sh
2165   fi
2166 fi
2167 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2168 echo "${ECHO_T}$INSTALL" >&6; }
2169
2170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2171 # It thinks the first close brace ends the variable substitution.
2172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2173
2174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2175
2176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2177
2178 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2179 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2180 # Just in case
2181 sleep 1
2182 echo timestamp > conftest.file
2183 # Do `set' in a subshell so we don't clobber the current shell's
2184 # arguments.  Must try -L first in case configure is actually a
2185 # symlink; some systems play weird games with the mod time of symlinks
2186 # (eg FreeBSD returns the mod time of the symlink's containing
2187 # directory).
2188 if (
2189    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2190    if test "$*" = "X"; then
2191       # -L didn't work.
2192       set X `ls -t $srcdir/configure conftest.file`
2193    fi
2194    rm -f conftest.file
2195    if test "$*" != "X $srcdir/configure conftest.file" \
2196       && test "$*" != "X conftest.file $srcdir/configure"; then
2197
2198       # If neither matched, then we have a broken ls.  This can happen
2199       # if, for instance, CONFIG_SHELL is bash and it inherits a
2200       # broken ls alias from the environment.  This has actually
2201       # happened.  Such a system could not be considered "sane".
2202       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2203 alias in your environment" >&5
2204 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2205 alias in your environment" >&2;}
2206    { (exit 1); exit 1; }; }
2207    fi
2208
2209    test "$2" = conftest.file
2210    )
2211 then
2212    # Ok.
2213    :
2214 else
2215    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2216 Check your system clock" >&5
2217 echo "$as_me: error: newly created file is older than distributed files!
2218 Check your system clock" >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221 { echo "$as_me:$LINENO: result: yes" >&5
2222 echo "${ECHO_T}yes" >&6; }
2223 test "$program_prefix" != NONE &&
2224   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2225 # Use a double $ so make ignores it.
2226 test "$program_suffix" != NONE &&
2227   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2228 # Double any \ or $.  echo might interpret backslashes.
2229 # By default was `s,x,x', remove it if useless.
2230 cat <<\_ACEOF >conftest.sed
2231 s/[\\$]/&&/g;s/;s,x,x,$//
2232 _ACEOF
2233 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2234 rm -f conftest.sed
2235
2236 # expand $ac_aux_dir to an absolute path
2237 am_aux_dir=`cd $ac_aux_dir && pwd`
2238
2239 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2240 # Use eval to expand $SHELL
2241 if eval "$MISSING --run true"; then
2242   am_missing_run="$MISSING --run "
2243 else
2244   am_missing_run=
2245   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2246 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2247 fi
2248
2249 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2250 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2251 if test -z "$MKDIR_P"; then
2252   if test "${ac_cv_path_mkdir+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2257 do
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_prog in mkdir gmkdir; do
2261          for ac_exec_ext in '' $ac_executable_extensions; do
2262            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2263            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2264              'mkdir (GNU coreutils) '* | \
2265              'mkdir (coreutils) '* | \
2266              'mkdir (fileutils) '4.1*)
2267                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2268                break 3;;
2269            esac
2270          done
2271        done
2272 done
2273 IFS=$as_save_IFS
2274
2275 fi
2276
2277   if test "${ac_cv_path_mkdir+set}" = set; then
2278     MKDIR_P="$ac_cv_path_mkdir -p"
2279   else
2280     # As a last resort, use the slow shell script.  Don't cache a
2281     # value for MKDIR_P within a source directory, because that will
2282     # break other packages using the cache if that directory is
2283     # removed, or if the value is a relative name.
2284     test -d ./--version && rmdir ./--version
2285     MKDIR_P="$ac_install_sh -d"
2286   fi
2287 fi
2288 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2289 echo "${ECHO_T}$MKDIR_P" >&6; }
2290
2291 mkdir_p="$MKDIR_P"
2292 case $mkdir_p in
2293   [\\/$]* | ?:[\\/]*) ;;
2294   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2295 esac
2296
2297 for ac_prog in gawk mawk nawk awk
2298 do
2299   # Extract the first word of "$ac_prog", so it can be a program name with args.
2300 set dummy $ac_prog; ac_word=$2
2301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2303 if test "${ac_cv_prog_AWK+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   if test -n "$AWK"; then
2307   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316     ac_cv_prog_AWK="$ac_prog"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322 IFS=$as_save_IFS
2323
2324 fi
2325 fi
2326 AWK=$ac_cv_prog_AWK
2327 if test -n "$AWK"; then
2328   { echo "$as_me:$LINENO: result: $AWK" >&5
2329 echo "${ECHO_T}$AWK" >&6; }
2330 else
2331   { echo "$as_me:$LINENO: result: no" >&5
2332 echo "${ECHO_T}no" >&6; }
2333 fi
2334
2335
2336   test -n "$AWK" && break
2337 done
2338
2339 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2340 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2341 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2342 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.make <<\_ACEOF
2346 SHELL = /bin/sh
2347 all:
2348         @echo '@@@%%%=$(MAKE)=@@@%%%'
2349 _ACEOF
2350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2352   *@@@%%%=?*=@@@%%%*)
2353     eval ac_cv_prog_make_${ac_make}_set=yes;;
2354   *)
2355     eval ac_cv_prog_make_${ac_make}_set=no;;
2356 esac
2357 rm -f conftest.make
2358 fi
2359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2360   { echo "$as_me:$LINENO: result: yes" >&5
2361 echo "${ECHO_T}yes" >&6; }
2362   SET_MAKE=
2363 else
2364   { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366   SET_MAKE="MAKE=${MAKE-make}"
2367 fi
2368
2369 rm -rf .tst 2>/dev/null
2370 mkdir .tst 2>/dev/null
2371 if test -d .tst; then
2372   am__leading_dot=.
2373 else
2374   am__leading_dot=_
2375 fi
2376 rmdir .tst 2>/dev/null
2377
2378 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2379   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2380   # is not polluted with repeated "-I."
2381   am__isrc=' -I$(srcdir)'
2382   # test to see if srcdir already configured
2383   if test -f $srcdir/config.status; then
2384     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2385 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2386    { (exit 1); exit 1; }; }
2387   fi
2388 fi
2389
2390 # test whether we have cygpath
2391 if test -z "$CYGPATH_W"; then
2392   if (cygpath --version) >/dev/null 2>/dev/null; then
2393     CYGPATH_W='cygpath -w'
2394   else
2395     CYGPATH_W=echo
2396   fi
2397 fi
2398
2399
2400 # Define the identity of the package.
2401  PACKAGE='util-vserver'
2402  VERSION='0.30.214'
2403
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE "$PACKAGE"
2407 _ACEOF
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define VERSION "$VERSION"
2412 _ACEOF
2413
2414 # Some tools Automake needs.
2415
2416 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417
2418
2419 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420
2421
2422 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423
2424
2425 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426
2427
2428 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2429
2430 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2431
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'.  However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437   if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$STRIP"; then
2446   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467   { echo "$as_me:$LINENO: result: $STRIP" >&5
2468 echo "${ECHO_T}$STRIP" >&6; }
2469 else
2470   { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_STRIP"; then
2477   ac_ct_STRIP=$STRIP
2478   # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$ac_ct_STRIP"; then
2486   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_STRIP="strip"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_STRIP" = x; then
2515     STRIP=":"
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned=yes ;;
2526 esac
2527     STRIP=$ac_ct_STRIP
2528   fi
2529 else
2530   STRIP="$ac_cv_prog_STRIP"
2531 fi
2532
2533 fi
2534 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2535
2536 # We need awk for the "check" target.  The system "awk" is bad on
2537 # some platforms.
2538 # Always define AMTAR for backward compatibility.
2539
2540 AMTAR=${AMTAR-"${am_missing_run}tar"}
2541
2542 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2543
2544
2545
2546
2547
2548 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2549 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2550     # Check whether --enable-maintainer-mode was given.
2551 if test "${enable_maintainer_mode+set}" = set; then
2552   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2553 else
2554   USE_MAINTAINER_MODE=no
2555 fi
2556
2557   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2558 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2559    if test $USE_MAINTAINER_MODE = yes; then
2560   MAINTAINER_MODE_TRUE=
2561   MAINTAINER_MODE_FALSE='#'
2562 else
2563   MAINTAINER_MODE_TRUE='#'
2564   MAINTAINER_MODE_FALSE=
2565 fi
2566
2567   MAINT=$MAINTAINER_MODE_TRUE
2568
2569
2570
2571 # Make sure we can run config.sub.
2572 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2573   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2574 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2575    { (exit 1); exit 1; }; }
2576
2577 { echo "$as_me:$LINENO: checking build system type" >&5
2578 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2579 if test "${ac_cv_build+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   ac_build_alias=$build_alias
2583 test "x$ac_build_alias" = x &&
2584   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2585 test "x$ac_build_alias" = x &&
2586   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2587 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2588    { (exit 1); exit 1; }; }
2589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2590   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2592    { (exit 1); exit 1; }; }
2593
2594 fi
2595 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2596 echo "${ECHO_T}$ac_cv_build" >&6; }
2597 case $ac_cv_build in
2598 *-*-*) ;;
2599 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2600 echo "$as_me: error: invalid value of canonical build" >&2;}
2601    { (exit 1); exit 1; }; };;
2602 esac
2603 build=$ac_cv_build
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_build
2606 shift
2607 build_cpu=$1
2608 build_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 build_os=$*
2613 IFS=$ac_save_IFS
2614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2615
2616
2617 { echo "$as_me:$LINENO: checking host system type" >&5
2618 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2619 if test "${ac_cv_host+set}" = set; then
2620   echo $ECHO_N "(cached) $ECHO_C" >&6
2621 else
2622   if test "x$host_alias" = x; then
2623   ac_cv_host=$ac_cv_build
2624 else
2625   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2626     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2627 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2628    { (exit 1); exit 1; }; }
2629 fi
2630
2631 fi
2632 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2633 echo "${ECHO_T}$ac_cv_host" >&6; }
2634 case $ac_cv_host in
2635 *-*-*) ;;
2636 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2637 echo "$as_me: error: invalid value of canonical host" >&2;}
2638    { (exit 1); exit 1; }; };;
2639 esac
2640 host=$ac_cv_host
2641 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_host
2643 shift
2644 host_cpu=$1
2645 host_vendor=$2
2646 shift; shift
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2649 host_os=$*
2650 IFS=$ac_save_IFS
2651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2652
2653
2654
2655 GPG_KEY="0xFFD316AC53ACA43A!"
2656
2657
2658 # Checks for programs.
2659 ac_ext=cpp
2660 ac_cpp='$CXXCPP $CPPFLAGS'
2661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2664 if test -z "$CXX"; then
2665   if test -n "$CCC"; then
2666     CXX=$CCC
2667   else
2668     if test -n "$ac_tool_prefix"; then
2669   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2670   do
2671     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CXX+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   if test -n "$CXX"; then
2679   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684   IFS=$as_save_IFS
2685   test -z "$as_dir" && as_dir=.
2686   for ac_exec_ext in '' $ac_executable_extensions; do
2687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690     break 2
2691   fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CXX=$ac_cv_prog_CXX
2699 if test -n "$CXX"; then
2700   { echo "$as_me:$LINENO: result: $CXX" >&5
2701 echo "${ECHO_T}$CXX" >&6; }
2702 else
2703   { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708     test -n "$CXX" && break
2709   done
2710 fi
2711 if test -z "$CXX"; then
2712   ac_ct_CXX=$CXX
2713   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2714 do
2715   # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   if test -n "$ac_ct_CXX"; then
2723   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730   for ac_exec_ext in '' $ac_executable_extensions; do
2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732     ac_cv_prog_ac_ct_CXX="$ac_prog"
2733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2746 else
2747   { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2749 fi
2750
2751
2752   test -n "$ac_ct_CXX" && break
2753 done
2754
2755   if test "x$ac_ct_CXX" = x; then
2756     CXX="g++"
2757   else
2758     case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2761 whose name does not start with the host triplet.  If you think this
2762 configuration is useful to you, please write to autoconf@gnu.org." >&5
2763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2764 whose name does not start with the host triplet.  If you think this
2765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768     CXX=$ac_ct_CXX
2769   fi
2770 fi
2771
2772   fi
2773 fi
2774 # Provide some information about the compiler.
2775 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2776 ac_compiler=`set X $ac_compile; echo $2`
2777 { (ac_try="$ac_compiler --version >&5"
2778 case "(($ac_try" in
2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780   *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783   (eval "$ac_compiler --version >&5") 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }
2787 { (ac_try="$ac_compiler -v >&5"
2788 case "(($ac_try" in
2789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790   *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793   (eval "$ac_compiler -v >&5") 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }
2797 { (ac_try="$ac_compiler -V >&5"
2798 case "(($ac_try" in
2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800   *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803   (eval "$ac_compiler -V >&5") 2>&5
2804   ac_status=$?
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); }
2807
2808 cat >conftest.$ac_ext <<_ACEOF
2809 /* confdefs.h.  */
2810 _ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h.  */
2814
2815 int
2816 main ()
2817 {
2818
2819   ;
2820   return 0;
2821 }
2822 _ACEOF
2823 ac_clean_files_save=$ac_clean_files
2824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2825 # Try to create an executable without -o first, disregard a.out.
2826 # It will help us diagnose broken compilers, and finding out an intuition
2827 # of exeext.
2828 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2829 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2831 #
2832 # List of possible output files, starting from the most likely.
2833 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2834 # only as a last resort.  b.out is created by i960 compilers.
2835 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2836 #
2837 # The IRIX 6 linker writes into existing files which may not be
2838 # executable, retaining their permissions.  Remove them first so a
2839 # subsequent execution test works.
2840 ac_rmfiles=
2841 for ac_file in $ac_files
2842 do
2843   case $ac_file in
2844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846   esac
2847 done
2848 rm -f $ac_rmfiles
2849
2850 if { (ac_try="$ac_link_default"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856   (eval "$ac_link_default") 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; then
2860   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2862 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2863 # so that the user can short-circuit this test for compilers unknown to
2864 # Autoconf.
2865 for ac_file in $ac_files ''
2866 do
2867   test -f "$ac_file" || continue
2868   case $ac_file in
2869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2870         ;;
2871     [ab].out )
2872         # We found the default executable, but exeext='' is most
2873         # certainly right.
2874         break;;
2875     *.* )
2876         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877         then :; else
2878            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879         fi
2880         # We set ac_cv_exeext here because the later test for it is not
2881         # safe: cross compilers may not add the suffix if given an `-o'
2882         # argument, so we may need to know it at that point already.
2883         # Even if this section looks crufty: it has the advantage of
2884         # actually working.
2885         break;;
2886     * )
2887         break;;
2888   esac
2889 done
2890 test "$ac_cv_exeext" = no && ac_cv_exeext=
2891
2892 else
2893   ac_file=''
2894 fi
2895
2896 { echo "$as_me:$LINENO: result: $ac_file" >&5
2897 echo "${ECHO_T}$ac_file" >&6; }
2898 if test -z "$ac_file"; then
2899   echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: C++ compiler cannot create executables
2905 See \`config.log' for more details." >&2;}
2906    { (exit 77); exit 77; }; }
2907 fi
2908
2909 ac_exeext=$ac_cv_exeext
2910
2911 # Check that the compiler produces executables we can run.  If not, either
2912 # the compiler is broken, or we cross compile.
2913 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2914 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2916 # If not cross compiling, check that we can run a simple program.
2917 if test "$cross_compiling" != yes; then
2918   if { ac_try='./$ac_file'
2919   { (case "(($ac_try" in
2920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921   *) ac_try_echo=$ac_try;;
2922 esac
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924   (eval "$ac_try") 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928     cross_compiling=no
2929   else
2930     if test "$cross_compiling" = maybe; then
2931         cross_compiling=yes
2932     else
2933         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details." >&5
2936 echo "$as_me: error: cannot run C++ compiled programs.
2937 If you meant to cross compile, use \`--host'.
2938 See \`config.log' for more details." >&2;}
2939    { (exit 1); exit 1; }; }
2940     fi
2941   fi
2942 fi
2943 { echo "$as_me:$LINENO: result: yes" >&5
2944 echo "${ECHO_T}yes" >&6; }
2945
2946 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2947 ac_clean_files=$ac_clean_files_save
2948 # Check that the compiler produces executables we can run.  If not, either
2949 # the compiler is broken, or we cross compile.
2950 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2951 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2952 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2953 echo "${ECHO_T}$cross_compiling" >&6; }
2954
2955 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2956 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2957 if { (ac_try="$ac_link"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_link") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; then
2967   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2968 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2969 # work properly (i.e., refer to `conftest.exe'), while it won't with
2970 # `rm'.
2971 for ac_file in conftest.exe conftest conftest.*; do
2972   test -f "$ac_file" || continue
2973   case $ac_file in
2974     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2975     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2976           break;;
2977     * ) break;;
2978   esac
2979 done
2980 else
2981   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2984 See \`config.log' for more details." >&2;}
2985    { (exit 1); exit 1; }; }
2986 fi
2987
2988 rm -f conftest$ac_cv_exeext
2989 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2990 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2991
2992 rm -f conftest.$ac_ext
2993 EXEEXT=$ac_cv_exeext
2994 ac_exeext=$EXEEXT
2995 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2996 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2997 if test "${ac_cv_objext+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000   cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006
3007 int
3008 main ()
3009 {
3010
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 rm -f conftest.o conftest.obj
3016 if { (ac_try="$ac_compile"
3017 case "(($ac_try" in
3018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019   *) ac_try_echo=$ac_try;;
3020 esac
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022   (eval "$ac_compile") 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; then
3026   for ac_file in conftest.o conftest.obj conftest.*; do
3027   test -f "$ac_file" || continue;
3028   case $ac_file in
3029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3030     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3031        break;;
3032   esac
3033 done
3034 else
3035   echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3039 See \`config.log' for more details." >&5
3040 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3041 See \`config.log' for more details." >&2;}
3042    { (exit 1); exit 1; }; }
3043 fi
3044
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3048 echo "${ECHO_T}$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3052 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3053 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3054   echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056   cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062
3063 int
3064 main ()
3065 {
3066 #ifndef __GNUC__
3067        choke me
3068 #endif
3069
3070   ;
3071   return 0;
3072 }
3073 _ACEOF
3074 rm -f conftest.$ac_objext
3075 if { (ac_try="$ac_compile"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_compile") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } && {
3088          test -z "$ac_cxx_werror_flag" ||
3089          test ! -s conftest.err
3090        } && test -s conftest.$ac_objext; then
3091   ac_compiler_gnu=yes
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096         ac_compiler_gnu=no
3097 fi
3098
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3101
3102 fi
3103 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3104 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3105 GXX=`test $ac_compiler_gnu = yes && echo yes`
3106 ac_test_CXXFLAGS=${CXXFLAGS+set}
3107 ac_save_CXXFLAGS=$CXXFLAGS
3108 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3109 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_cxx_g+set}" = set; then
3111   echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3114    ac_cxx_werror_flag=yes
3115    ac_cv_prog_cxx_g=no
3116    CXXFLAGS="-g"
3117    cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h.  */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h.  */
3123
3124 int
3125 main ()
3126 {
3127
3128   ;
3129   return 0;
3130 }
3131 _ACEOF
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compile") 2>conftest.er1
3140   ac_status=$?
3141   grep -v '^ *+' conftest.er1 >conftest.err
3142   rm -f conftest.er1
3143   cat conftest.err >&5
3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145   (exit $ac_status); } && {
3146          test -z "$ac_cxx_werror_flag" ||
3147          test ! -s conftest.err
3148        } && test -s conftest.$ac_objext; then
3149   ac_cv_prog_cxx_g=yes
3150 else
3151   echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3153
3154         CXXFLAGS=""
3155       cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compile") 2>conftest.er1
3178   ac_status=$?
3179   grep -v '^ *+' conftest.er1 >conftest.err
3180   rm -f conftest.er1
3181   cat conftest.err >&5
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } && {
3184          test -z "$ac_cxx_werror_flag" ||
3185          test ! -s conftest.err
3186        } && test -s conftest.$ac_objext; then
3187   :
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3193          CXXFLAGS="-g"
3194          cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h.  */
3200
3201 int
3202 main ()
3203 {
3204
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 rm -f conftest.$ac_objext
3210 if { (ac_try="$ac_compile"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216   (eval "$ac_compile") 2>conftest.er1
3217   ac_status=$?
3218   grep -v '^ *+' conftest.er1 >conftest.err
3219   rm -f conftest.er1
3220   cat conftest.err >&5
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); } && {
3223          test -z "$ac_cxx_werror_flag" ||
3224          test ! -s conftest.err
3225        } && test -s conftest.$ac_objext; then
3226   ac_cv_prog_cxx_g=yes
3227 else
3228   echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 fi
3236
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3242 fi
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3245 if test "$ac_test_CXXFLAGS" = set; then
3246   CXXFLAGS=$ac_save_CXXFLAGS
3247 elif test $ac_cv_prog_cxx_g = yes; then
3248   if test "$GXX" = yes; then
3249     CXXFLAGS="-g -O2"
3250   else
3251     CXXFLAGS="-g"
3252   fi
3253 else
3254   if test "$GXX" = yes; then
3255     CXXFLAGS="-O2"
3256   else
3257     CXXFLAGS=
3258   fi
3259 fi
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 DEPDIR="${am__leading_dot}deps"
3266
3267 ac_config_commands="$ac_config_commands depfiles"
3268
3269
3270 am_make=${MAKE-make}
3271 cat > confinc << 'END'
3272 am__doit:
3273         @echo done
3274 .PHONY: am__doit
3275 END
3276 # If we don't find an include directive, just comment out the code.
3277 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3278 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3279 am__include="#"
3280 am__quote=
3281 _am_result=none
3282 # First try GNU make style include.
3283 echo "include confinc" > confmf
3284 # We grep out `Entering directory' and `Leaving directory'
3285 # messages which can occur if `w' ends up in MAKEFLAGS.
3286 # In particular we don't look at `^make:' because GNU make might
3287 # be invoked under some other name (usually "gmake"), in which
3288 # case it prints its new name instead of `make'.
3289 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3290    am__include=include
3291    am__quote=
3292    _am_result=GNU
3293 fi
3294 # Now try BSD make style include.
3295 if test "$am__include" = "#"; then
3296    echo '.include "confinc"' > confmf
3297    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3298       am__include=.include
3299       am__quote="\""
3300       _am_result=BSD
3301    fi
3302 fi
3303
3304
3305 { echo "$as_me:$LINENO: result: $_am_result" >&5
3306 echo "${ECHO_T}$_am_result" >&6; }
3307 rm -f confinc confmf
3308
3309 # Check whether --enable-dependency-tracking was given.
3310 if test "${enable_dependency_tracking+set}" = set; then
3311   enableval=$enable_dependency_tracking;
3312 fi
3313
3314 if test "x$enable_dependency_tracking" != xno; then
3315   am_depcomp="$ac_aux_dir/depcomp"
3316   AMDEPBACKSLASH='\'
3317 fi
3318  if test "x$enable_dependency_tracking" != xno; then
3319   AMDEP_TRUE=
3320   AMDEP_FALSE='#'
3321 else
3322   AMDEP_TRUE='#'
3323   AMDEP_FALSE=
3324 fi
3325
3326
3327
3328 depcc="$CXX"  am_compiler_list=
3329
3330 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3331 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3332 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3336   # We make a subdir and do the tests there.  Otherwise we can end up
3337   # making bogus files that we don't know about and never remove.  For
3338   # instance it was reported that on HP-UX the gcc test will end up
3339   # making a dummy file named `D' -- because `-MD' means `put the output
3340   # in D'.
3341   mkdir conftest.dir
3342   # Copy depcomp to subdir because otherwise we won't find it if we're
3343   # using a relative directory.
3344   cp "$am_depcomp" conftest.dir
3345   cd conftest.dir
3346   # We will build objects and dependencies in a subdirectory because
3347   # it helps to detect inapplicable dependency modes.  For instance
3348   # both Tru64's cc and ICC support -MD to output dependencies as a
3349   # side effect of compilation, but ICC will put the dependencies in
3350   # the current directory while Tru64 will put them in the object
3351   # directory.
3352   mkdir sub
3353
3354   am_cv_CXX_dependencies_compiler_type=none
3355   if test "$am_compiler_list" = ""; then
3356      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3357   fi
3358   for depmode in $am_compiler_list; do
3359     # Setup a source with many dependencies, because some compilers
3360     # like to wrap large dependency lists on column 80 (with \), and
3361     # we should not choose a depcomp mode which is confused by this.
3362     #
3363     # We need to recreate these files for each test, as the compiler may
3364     # overwrite some of them when testing with obscure command lines.
3365     # This happens at least with the AIX C compiler.
3366     : > sub/conftest.c
3367     for i in 1 2 3 4 5 6; do
3368       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3369       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3370       # Solaris 8's {/usr,}/bin/sh.
3371       touch sub/conftst$i.h
3372     done
3373     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3374
3375     case $depmode in
3376     nosideeffect)
3377       # after this tag, mechanisms are not by side-effect, so they'll
3378       # only be used when explicitly requested
3379       if test "x$enable_dependency_tracking" = xyes; then
3380         continue
3381       else
3382         break
3383       fi
3384       ;;
3385     none) break ;;
3386     esac
3387     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3388     # mode.  It turns out that the SunPro C++ compiler does not properly
3389     # handle `-M -o', and we need to detect this.
3390     if depmode=$depmode \
3391        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3392        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3393        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3394          >/dev/null 2>conftest.err &&
3395        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3396        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3397        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3398        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3399       # icc doesn't choke on unknown options, it will just issue warnings
3400       # or remarks (even with -Werror).  So we grep stderr for any message
3401       # that says an option was ignored or not supported.
3402       # When given -MP, icc 7.0 and 7.1 complain thusly:
3403       #   icc: Command line warning: ignoring option '-M'; no argument required
3404       # The diagnosis changed in icc 8.0:
3405       #   icc: Command line remark: option '-MP' not supported
3406       if (grep 'ignoring option' conftest.err ||
3407           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3408         am_cv_CXX_dependencies_compiler_type=$depmode
3409         break
3410       fi
3411     fi
3412   done
3413
3414   cd ..
3415   rm -rf conftest.dir
3416 else
3417   am_cv_CXX_dependencies_compiler_type=none
3418 fi
3419
3420 fi
3421 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3422 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3423 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3424
3425  if
3426   test "x$enable_dependency_tracking" != xno \
3427   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3428   am__fastdepCXX_TRUE=
3429   am__fastdepCXX_FALSE='#'
3430 else
3431   am__fastdepCXX_TRUE='#'
3432   am__fastdepCXX_FALSE=
3433 fi
3434
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 if test -n "$ac_tool_prefix"; then
3442   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3446 if test "${ac_cv_prog_CC+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$CC"; then
3450   ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457   for ac_exec_ext in '' $ac_executable_extensions; do
3458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464 done
3465 IFS=$as_save_IFS
3466
3467 fi
3468 fi
3469 CC=$ac_cv_prog_CC
3470 if test -n "$CC"; then
3471   { echo "$as_me:$LINENO: result: $CC" >&5
3472 echo "${ECHO_T}$CC" >&6; }
3473 else
3474   { echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6; }
3476 fi
3477
3478
3479 fi
3480 if test -z "$ac_cv_prog_CC"; then
3481   ac_ct_CC=$CC
3482   # Extract the first word of "gcc", so it can be a program name with args.
3483 set dummy gcc; ac_word=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3487   echo $ECHO_N "(cached) $ECHO_C" >&6
3488 else
3489   if test -n "$ac_ct_CC"; then
3490   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3491 else
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 for as_dir in $PATH
3494 do
3495   IFS=$as_save_IFS
3496   test -z "$as_dir" && as_dir=.
3497   for ac_exec_ext in '' $ac_executable_extensions; do
3498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499     ac_cv_prog_ac_ct_CC="gcc"
3500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3501     break 2
3502   fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 fi
3508 fi
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3512 echo "${ECHO_T}$ac_ct_CC" >&6; }
3513 else
3514   { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3516 fi
3517
3518   if test "x$ac_ct_CC" = x; then
3519     CC=""
3520   else
3521     case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3524 whose name does not start with the host triplet.  If you think this
3525 configuration is useful to you, please write to autoconf@gnu.org." >&5
3526 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3527 whose name does not start with the host triplet.  If you think this
3528 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3529 ac_tool_warned=yes ;;
3530 esac
3531     CC=$ac_ct_CC
3532   fi
3533 else
3534   CC="$ac_cv_prog_CC"
3535 fi
3536
3537 if test -z "$CC"; then
3538           if test -n "$ac_tool_prefix"; then
3539     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}cc; ac_word=$2
3541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3543 if test "${ac_cv_prog_CC+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -n "$CC"; then
3547   ac_cv_prog_CC="$CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3551 do
3552   IFS=$as_save_IFS
3553   test -z "$as_dir" && as_dir=.
3554   for ac_exec_ext in '' $ac_executable_extensions; do
3555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556     ac_cv_prog_CC="${ac_tool_prefix}cc"
3557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558     break 2
3559   fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568   { echo "$as_me:$LINENO: result: $CC" >&5
3569 echo "${ECHO_T}$CC" >&6; }
3570 else
3571   { echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6; }
3573 fi
3574
3575
3576   fi
3577 fi
3578 if test -z "$CC"; then
3579   # Extract the first word of "cc", so it can be a program name with args.
3580 set dummy cc; ac_word=$2
3581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3583 if test "${ac_cv_prog_CC+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   if test -n "$CC"; then
3587   ac_cv_prog_CC="$CC" # Let the user override the test.
3588 else
3589   ac_prog_rejected=no
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3598        ac_prog_rejected=yes
3599        continue
3600      fi
3601     ac_cv_prog_CC="cc"
3602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 if test $ac_prog_rejected = yes; then
3610   # We found a bogon in the path, so make sure we never use it.
3611   set dummy $ac_cv_prog_CC
3612   shift
3613   if test $# != 0; then
3614     # We chose a different compiler from the bogus one.
3615     # However, it has the same basename, so the bogon will be chosen
3616     # first if we set CC to just the basename; use the full file name.
3617     shift
3618     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3619   fi
3620 fi
3621 fi
3622 fi
3623 CC=$ac_cv_prog_CC
3624 if test -n "$CC"; then
3625   { echo "$as_me:$LINENO: result: $CC" >&5
3626 echo "${ECHO_T}$CC" >&6; }
3627 else
3628   { echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6; }
3630 fi
3631
3632
3633 fi
3634 if test -z "$CC"; then
3635   if test -n "$ac_tool_prefix"; then
3636   for ac_prog in cl.exe
3637   do
3638     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3639 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3642 if test "${ac_cv_prog_CC+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   if test -n "$CC"; then
3646   ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651   IFS=$as_save_IFS
3652   test -z "$as_dir" && as_dir=.
3653   for ac_exec_ext in '' $ac_executable_extensions; do
3654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657     break 2
3658   fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3662
3663 fi
3664 fi
3665 CC=$ac_cv_prog_CC
3666 if test -n "$CC"; then
3667   { echo "$as_me:$LINENO: result: $CC" >&5
3668 echo "${ECHO_T}$CC" >&6; }
3669 else
3670   { echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6; }
3672 fi
3673
3674
3675     test -n "$CC" && break
3676   done
3677 fi
3678 if test -z "$CC"; then
3679   ac_ct_CC=$CC
3680   for ac_prog in cl.exe
3681 do
3682   # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   if test -n "$ac_ct_CC"; then
3690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697   for ac_exec_ext in '' $ac_executable_extensions; do
3698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3699     ac_cv_prog_ac_ct_CC="$ac_prog"
3700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701     break 2
3702   fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 fi
3708 fi
3709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3710 if test -n "$ac_ct_CC"; then
3711   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3712 echo "${ECHO_T}$ac_ct_CC" >&6; }
3713 else
3714   { echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6; }
3716 fi
3717
3718
3719   test -n "$ac_ct_CC" && break
3720 done
3721
3722   if test "x$ac_ct_CC" = x; then
3723     CC=""
3724   else
3725     case $cross_compiling:$ac_tool_warned in
3726 yes:)
3727 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3728 whose name does not start with the host triplet.  If you think this
3729 configuration is useful to you, please write to autoconf@gnu.org." >&5
3730 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3731 whose name does not start with the host triplet.  If you think this
3732 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3733 ac_tool_warned=yes ;;
3734 esac
3735     CC=$ac_ct_CC
3736   fi
3737 fi
3738
3739 fi
3740
3741
3742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3743 See \`config.log' for more details." >&5
3744 echo "$as_me: error: no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." >&2;}
3746    { (exit 1); exit 1; }; }
3747
3748 # Provide some information about the compiler.
3749 echo "$as_me:$LINENO: checking for C compiler version" >&5
3750 ac_compiler=`set X $ac_compile; echo $2`
3751 { (ac_try="$ac_compiler --version >&5"
3752 case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757   (eval "$ac_compiler --version >&5") 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }
3761 { (ac_try="$ac_compiler -v >&5"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767   (eval "$ac_compiler -v >&5") 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }
3771 { (ac_try="$ac_compiler -V >&5"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777   (eval "$ac_compiler -V >&5") 2>&5
3778   ac_status=$?
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); }
3781
3782 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3783 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3784 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h.  */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h.  */
3793
3794 int
3795 main ()
3796 {
3797 #ifndef __GNUC__
3798        choke me
3799 #endif
3800
3801   ;
3802   return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (ac_try="$ac_compile"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812   (eval "$ac_compile") 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } && {
3819          test -z "$ac_c_werror_flag" ||
3820          test ! -s conftest.err
3821        } && test -s conftest.$ac_objext; then
3822   ac_compiler_gnu=yes
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827         ac_compiler_gnu=no
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832
3833 fi
3834 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3835 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3836 GCC=`test $ac_compiler_gnu = yes && echo yes`
3837 ac_test_CFLAGS=${CFLAGS+set}
3838 ac_save_CFLAGS=$CFLAGS
3839 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3840 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3841 if test "${ac_cv_prog_cc_g+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   ac_save_c_werror_flag=$ac_c_werror_flag
3845    ac_c_werror_flag=yes
3846    ac_cv_prog_cc_g=no
3847    CFLAGS="-g"
3848    cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870   (eval "$ac_compile") 2>conftest.er1
3871   ac_status=$?
3872   grep -v '^ *+' conftest.er1 >conftest.err
3873   rm -f conftest.er1
3874   cat conftest.err >&5
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); } && {
3877          test -z "$ac_c_werror_flag" ||
3878          test ! -s conftest.err
3879        } && test -s conftest.$ac_objext; then
3880   ac_cv_prog_cc_g=yes
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885         CFLAGS=""
3886       cat >conftest.$ac_ext <<_ACEOF
3887 /* confdefs.h.  */
3888 _ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908   (eval "$ac_compile") 2>conftest.er1
3909   ac_status=$?
3910   grep -v '^ *+' conftest.er1 >conftest.err
3911   rm -f conftest.er1
3912   cat conftest.err >&5
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); } && {
3915          test -z "$ac_c_werror_flag" ||
3916          test ! -s conftest.err
3917        } && test -s conftest.$ac_objext; then
3918   :
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923         ac_c_werror_flag=$ac_save_c_werror_flag
3924          CFLAGS="-g"
3925          cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 rm -f conftest.$ac_objext
3941 if { (ac_try="$ac_compile"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947   (eval "$ac_compile") 2>conftest.er1
3948   ac_status=$?
3949   grep -v '^ *+' conftest.er1 >conftest.err
3950   rm -f conftest.er1
3951   cat conftest.err >&5
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); } && {
3954          test -z "$ac_c_werror_flag" ||
3955          test ! -s conftest.err
3956        } && test -s conftest.$ac_objext; then
3957   ac_cv_prog_cc_g=yes
3958 else
3959   echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3961
3962
3963 fi
3964
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972    ac_c_werror_flag=$ac_save_c_werror_flag
3973 fi
3974 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977   CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979   if test "$GCC" = yes; then
3980     CFLAGS="-g -O2"
3981   else
3982     CFLAGS="-g"
3983   fi
3984 else
3985   if test "$GCC" = yes; then
3986     CFLAGS="-O2"
3987   else
3988     CFLAGS=
3989   fi
3990 fi
3991 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3992 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3993 if test "${ac_cv_prog_cc_c89+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   ac_cv_prog_cc_c89=no
3997 ac_save_CC=$CC
3998 cat >conftest.$ac_ext <<_ACEOF
3999 /* confdefs.h.  */
4000 _ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h.  */
4004 #include <stdarg.h>
4005 #include <stdio.h>
4006 #include <sys/types.h>
4007 #include <sys/stat.h>
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4012      char **p;
4013      int i;
4014 {
4015   return p[i];
4016 }
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4018 {
4019   char *s;
4020   va_list v;
4021   va_start (v,p);
4022   s = g (p, va_arg (v,int));
4023   va_end (v);
4024   return s;
4025 }
4026
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4028    function prototypes and stuff, but not '\xHH' hex character constants.
4029    These don't provoke an error unfortunately, instead are silently treated
4030    as 'x'.  The following induces an error, until -std is added to get
4031    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4032    array size at least.  It's necessary to write '\x00'==0 to get something
4033    that's true only with -std.  */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4035
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037    inside strings and character constants.  */
4038 #define FOO(x) 'x'
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4040
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 int argc;
4046 char **argv;
4047 int
4048 main ()
4049 {
4050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4057 do
4058   CC="$ac_save_CC $ac_arg"
4059   rm -f conftest.$ac_objext
4060 if { (ac_try="$ac_compile"
4061 case "(($ac_try" in
4062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063   *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066   (eval "$ac_compile") 2>conftest.er1
4067   ac_status=$?
4068   grep -v '^ *+' conftest.er1 >conftest.err
4069   rm -f conftest.er1
4070   cat conftest.err >&5
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } && {
4073          test -z "$ac_c_werror_flag" ||
4074          test ! -s conftest.err
4075        } && test -s conftest.$ac_objext; then
4076   ac_cv_prog_cc_c89=$ac_arg
4077 else
4078   echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081
4082 fi
4083
4084 rm -f core conftest.err conftest.$ac_objext
4085   test "x$ac_cv_prog_cc_c89" != "xno" && break
4086 done
4087 rm -f conftest.$ac_ext
4088 CC=$ac_save_CC
4089
4090 fi
4091 # AC_CACHE_VAL
4092 case "x$ac_cv_prog_cc_c89" in
4093   x)
4094     { echo "$as_me:$LINENO: result: none needed" >&5
4095 echo "${ECHO_T}none needed" >&6; } ;;
4096   xno)
4097     { echo "$as_me:$LINENO: result: unsupported" >&5
4098 echo "${ECHO_T}unsupported" >&6; } ;;
4099   *)
4100     CC="$CC $ac_cv_prog_cc_c89"
4101     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4102 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4103 esac
4104
4105
4106 ac_ext=c
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112 depcc="$CC"   am_compiler_list=
4113
4114 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4115 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4116 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4117   echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4120   # We make a subdir and do the tests there.  Otherwise we can end up
4121   # making bogus files that we don't know about and never remove.  For
4122   # instance it was reported that on HP-UX the gcc test will end up
4123   # making a dummy file named `D' -- because `-MD' means `put the output
4124   # in D'.
4125   mkdir conftest.dir
4126   # Copy depcomp to subdir because otherwise we won't find it if we're
4127   # using a relative directory.
4128   cp "$am_depcomp" conftest.dir
4129   cd conftest.dir
4130   # We will build objects and dependencies in a subdirectory because
4131   # it helps to detect inapplicable dependency modes.  For instance
4132   # both Tru64's cc and ICC support -MD to output dependencies as a
4133   # side effect of compilation, but ICC will put the dependencies in
4134   # the current directory while Tru64 will put them in the object
4135   # directory.
4136   mkdir sub
4137
4138   am_cv_CC_dependencies_compiler_type=none
4139   if test "$am_compiler_list" = ""; then
4140      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141   fi
4142   for depmode in $am_compiler_list; do
4143     # Setup a source with many dependencies, because some compilers
4144     # like to wrap large dependency lists on column 80 (with \), and
4145     # we should not choose a depcomp mode which is confused by this.
4146     #
4147     # We need to recreate these files for each test, as the compiler may
4148     # overwrite some of them when testing with obscure command lines.
4149     # This happens at least with the AIX C compiler.
4150     : > sub/conftest.c
4151     for i in 1 2 3 4 5 6; do
4152       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4153       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4154       # Solaris 8's {/usr,}/bin/sh.
4155       touch sub/conftst$i.h
4156     done
4157     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4158
4159     case $depmode in
4160     nosideeffect)
4161       # after this tag, mechanisms are not by side-effect, so they'll
4162       # only be used when explicitly requested
4163       if test "x$enable_dependency_tracking" = xyes; then
4164         continue
4165       else
4166         break
4167       fi
4168       ;;
4169     none) break ;;
4170     esac
4171     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4172     # mode.  It turns out that the SunPro C++ compiler does not properly
4173     # handle `-M -o', and we need to detect this.
4174     if depmode=$depmode \
4175        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4176        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4177        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4178          >/dev/null 2>conftest.err &&
4179        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4180        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4181        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4182        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4183       # icc doesn't choke on unknown options, it will just issue warnings
4184       # or remarks (even with -Werror).  So we grep stderr for any message
4185       # that says an option was ignored or not supported.
4186       # When given -MP, icc 7.0 and 7.1 complain thusly:
4187       #   icc: Command line warning: ignoring option '-M'; no argument required
4188       # The diagnosis changed in icc 8.0:
4189       #   icc: Command line remark: option '-MP' not supported
4190       if (grep 'ignoring option' conftest.err ||
4191           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4192         am_cv_CC_dependencies_compiler_type=$depmode
4193         break
4194       fi
4195     fi
4196   done
4197
4198   cd ..
4199   rm -rf conftest.dir
4200 else
4201   am_cv_CC_dependencies_compiler_type=none
4202 fi
4203
4204 fi
4205 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4206 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4208
4209  if
4210   test "x$enable_dependency_tracking" != xno \
4211   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4212   am__fastdepCC_TRUE=
4213   am__fastdepCC_FALSE='#'
4214 else
4215   am__fastdepCC_TRUE='#'
4216   am__fastdepCC_FALSE=
4217 fi
4218
4219
4220 # Find a good install program.  We prefer a C program (faster),
4221 # so one script is as good as another.  But avoid the broken or
4222 # incompatible versions:
4223 # SysV /etc/install, /usr/sbin/install
4224 # SunOS /usr/etc/install
4225 # IRIX /sbin/install
4226 # AIX /bin/install
4227 # AmigaOS /C/install, which installs bootblocks on floppy discs
4228 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4229 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4230 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4231 # OS/2's system install, which has a completely different semantic
4232 # ./install, which can be erroneously created by make from ./install.sh.
4233 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4234 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4235 if test -z "$INSTALL"; then
4236 if test "${ac_cv_path_install+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244   # Account for people who put trailing slashes in PATH elements.
4245 case $as_dir/ in
4246   ./ | .// | /cC/* | \
4247   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4248   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4249   /usr/ucb/* ) ;;
4250   *)
4251     # OSF1 and SCO ODT 3.0 have their own names for install.
4252     # Don't use installbsd from OSF since it installs stuff as root
4253     # by default.
4254     for ac_prog in ginstall scoinst install; do
4255       for ac_exec_ext in '' $ac_executable_extensions; do
4256         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4257           if test $ac_prog = install &&
4258             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4259             # AIX install.  It has an incompatible calling convention.
4260             :
4261           elif test $ac_prog = install &&
4262             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4263             # program-specific install script used by HP pwplus--don't use.
4264             :
4265           else
4266             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4267             break 3
4268           fi
4269         fi
4270       done
4271     done
4272     ;;
4273 esac
4274 done
4275 IFS=$as_save_IFS
4276
4277
4278 fi
4279   if test "${ac_cv_path_install+set}" = set; then
4280     INSTALL=$ac_cv_path_install
4281   else
4282     # As a last resort, use the slow shell script.  Don't cache a
4283     # value for INSTALL within a source directory, because that will
4284     # break other packages using the cache if that directory is
4285     # removed, or if the value is a relative name.
4286     INSTALL=$ac_install_sh
4287   fi
4288 fi
4289 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4290 echo "${ECHO_T}$INSTALL" >&6; }
4291
4292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4293 # It thinks the first close brace ends the variable substitution.
4294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4295
4296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4297
4298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4299
4300 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4301 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4302 LN_S=$as_ln_s
4303 if test "$LN_S" = "ln -s"; then
4304   { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306 else
4307   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4308 echo "${ECHO_T}no, using $LN_S" >&6; }
4309 fi
4310
4311 if test "x$CC" != xcc; then
4312   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4313 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4314 else
4315   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4316 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4317 fi
4318 set dummy $CC; ac_cc=`echo $2 |
4319                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4320 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 # Make sure it works both with $CC and with simple cc.
4339 # We do the test twice because some compilers refuse to overwrite an
4340 # existing .o file with -o, though they will create one.
4341 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4342 rm -f conftest2.*
4343 if { (case "(($ac_try" in
4344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345   *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348   (eval "$ac_try") 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); };
4361 then
4362   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4363   if test "x$CC" != xcc; then
4364     # Test first that cc exists at all.
4365     if { ac_try='cc -c conftest.$ac_ext >&5'
4366   { (case "(($ac_try" in
4367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368   *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; }; then
4375       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4376       rm -f conftest2.*
4377       if { (case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_try") 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388   *) ac_try_echo=$ac_try;;
4389 esac
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); };
4395       then
4396         # cc works too.
4397         :
4398       else
4399         # cc exists but doesn't like -o.
4400         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4401       fi
4402     fi
4403   fi
4404 else
4405   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4406 fi
4407 rm -f core conftest*
4408
4409 fi
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411   { echo "$as_me:$LINENO: result: yes" >&5
4412 echo "${ECHO_T}yes" >&6; }
4413 else
4414   { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4416
4417 cat >>confdefs.h <<\_ACEOF
4418 #define NO_MINUS_C_MINUS_O 1
4419 _ACEOF
4420
4421 fi
4422
4423 # FIXME: we rely on the cache variable name because
4424 # there is no other way.
4425 set dummy $CC
4426 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4427 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4428    # Losing compiler, so override with the script.
4429    # FIXME: It is wrong to rewrite CC.
4430    # But if we don't then we get into trouble of one sort or another.
4431    # A longer-term fix would be to have automake use am__CC in this case,
4432    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4433    CC="$am_aux_dir/compile $CC"
4434 fi
4435
4436
4437
4438
4439
4440
4441         if test -n "$PYTHON"; then
4442       # If the user set $PYTHON, use it and don't search something else.
4443       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
4444 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
4445       prog="import sys, string
4446 # split strings by '.' and convert to numeric.  Append some zeros
4447 # because we need at least 4 digits for the hex conversion.
4448 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
4449 minverhex = 0
4450 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4451 sys.exit(sys.hexversion < minverhex)"
4452   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4453    ($PYTHON -c "$prog") >&5 2>&5
4454    ac_status=$?
4455    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456    (exit $ac_status); }; then
4457   { echo "$as_me:$LINENO: result: yes" >&5
4458 echo "${ECHO_T}yes" >&6; }
4459 else
4460   { { echo "$as_me:$LINENO: error: too old" >&5
4461 echo "$as_me: error: too old" >&2;}
4462    { (exit 1); exit 1; }; }
4463 fi
4464
4465       am_display_PYTHON=$PYTHON
4466     else
4467       # Otherwise, try each interpreter until we find one that satisfies
4468       # VERSION.
4469       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
4470 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
4471 if test "${am_cv_pathless_PYTHON+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474
4475         for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
4476           test "$am_cv_pathless_PYTHON" = none && break
4477           prog="import sys, string
4478 # split strings by '.' and convert to numeric.  Append some zeros
4479 # because we need at least 4 digits for the hex conversion.
4480 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
4481 minverhex = 0
4482 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4483 sys.exit(sys.hexversion < minverhex)"
4484   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4485    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4486    ac_status=$?
4487    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488    (exit $ac_status); }; then
4489   break
4490 fi
4491
4492         done
4493 fi
4494 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4495 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4496       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4497       if test "$am_cv_pathless_PYTHON" = none; then
4498         PYTHON=:
4499       else
4500         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4501 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504 if test "${ac_cv_path_PYTHON+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   case $PYTHON in
4508   [\\/]* | ?:[\\/]*)
4509   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4510   ;;
4511   *)
4512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527   ;;
4528 esac
4529 fi
4530 PYTHON=$ac_cv_path_PYTHON
4531 if test -n "$PYTHON"; then
4532   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4533 echo "${ECHO_T}$PYTHON" >&6; }
4534 else
4535   { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }
4537 fi
4538
4539
4540       fi
4541       am_display_PYTHON=$am_cv_pathless_PYTHON
4542     fi
4543
4544
4545   if test "$PYTHON" = :; then
4546       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4547 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4548    { (exit 1); exit 1; }; }
4549   else
4550
4551
4552   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4553 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4554 if test "${am_cv_python_version+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4558 fi
4559 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4560 echo "${ECHO_T}$am_cv_python_version" >&6; }
4561   PYTHON_VERSION=$am_cv_python_version
4562
4563
4564
4565   PYTHON_PREFIX='${prefix}'
4566
4567   PYTHON_EXEC_PREFIX='${exec_prefix}'
4568
4569
4570
4571   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
4572 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
4573 if test "${am_cv_python_platform+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
4577 fi
4578 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
4579 echo "${ECHO_T}$am_cv_python_platform" >&6; }
4580   PYTHON_PLATFORM=$am_cv_python_platform
4581
4582
4583
4584
4585                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
4586 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
4587 if test "${am_cv_python_pythondir+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
4591      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4592 fi
4593 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
4594 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
4595   pythondir=$am_cv_python_pythondir
4596
4597
4598
4599   pkgpythondir=\${pythondir}/$PACKAGE
4600
4601
4602             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
4603 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
4604 if test "${am_cv_python_pyexecdir+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
4608      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
4609 fi
4610 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
4611 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
4612   pyexecdir=$am_cv_python_pyexecdir
4613
4614
4615
4616   pkgpyexecdir=\${pyexecdir}/$PACKAGE
4617
4618
4619
4620   fi
4621
4622
4623
4624
4625
4626
4627         { echo "$as_me:$LINENO: checking whether $CXX is a C++ compiler" >&5
4628 echo $ECHO_N "checking whether $CXX is a C++ compiler... $ECHO_C" >&6; }
4629 if test "${ensc_cv_cxx_cxxcompiler+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632
4633                 ac_ext=cpp
4634 ac_cpp='$CXXCPP $CPPFLAGS'
4635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4638
4639                 cat >conftest.$ac_ext <<_ACEOF
4640
4641                     #include <ostream>
4642
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4646 case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651   (eval "$ac_compile") 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } && {
4658          test -z "$ac_cxx_werror_flag" ||
4659          test ! -s conftest.err
4660        } && test -s conftest.$ac_objext; then
4661   ensc_cv_cxx_cxxcompiler=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666         ensc_cv_cxx_cxxcompiler=no
4667 fi
4668
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670                 ac_ext=c
4671 ac_cpp='$CPP $CPPFLAGS'
4672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676
4677 fi
4678 { echo "$as_me:$LINENO: result: $ensc_cv_cxx_cxxcompiler" >&5
4679 echo "${ECHO_T}$ensc_cv_cxx_cxxcompiler" >&6; }
4680
4681          if test x"$ensc_cv_cxx_cxxcompiler" = xyes; then
4682   ENSC_HAVE_CXX_COMPILER_TRUE=
4683   ENSC_HAVE_CXX_COMPILER_FALSE='#'
4684 else
4685   ENSC_HAVE_CXX_COMPILER_TRUE='#'
4686   ENSC_HAVE_CXX_COMPILER_FALSE=
4687 fi
4688
4689
4690         if test x"$ensc_cv_cxx_cxxcompiler" = xno; then
4691                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&5
4692 echo "$as_me: WARNING: *** some programs will not be built because a C++ compiler is lacking" >&2;}
4693         fi
4694
4695
4696
4697
4698
4699         { echo "$as_me:$LINENO: checking whether $CC is a C99 compiler" >&5
4700 echo $ECHO_N "checking whether $CC is a C99 compiler... $ECHO_C" >&6; }
4701 if test "${ensc_cv_c99_c99compiler+set}" = set; then
4702   echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704
4705                 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711                 cat >conftest.$ac_ext <<_ACEOF
4712
4713 int main(int argc, char *argv) {
4714   struct { int x; }   a = { .x = argc };
4715   if (0) return 0;
4716   int b;
4717 }
4718
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_compile") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } && {
4734          test -z "$ac_c_werror_flag" ||
4735          test ! -s conftest.err
4736        } && test -s conftest.$ac_objext; then
4737   ensc_cv_c99_c99compiler=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742         ensc_cv_c99_c99compiler=no
4743 fi
4744
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746                 ac_ext=c
4747 ac_cpp='$CPP $CPPFLAGS'
4748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752
4753 fi
4754 { echo "$as_me:$LINENO: result: $ensc_cv_c99_c99compiler" >&5
4755 echo "${ECHO_T}$ensc_cv_c99_c99compiler" >&6; }
4756
4757          if test x"$ensc_cv_c99_c99compiler" = xyes; then
4758   ENSC_HAVE_C99_COMPILER_TRUE=
4759   ENSC_HAVE_C99_COMPILER_FALSE='#'
4760 else
4761   ENSC_HAVE_C99_COMPILER_TRUE='#'
4762   ENSC_HAVE_C99_COMPILER_FALSE=
4763 fi
4764
4765
4766         if test x"$ensc_cv_c99_c99compiler" = xno; then
4767                 { echo "$as_me:$LINENO: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&5
4768 echo "$as_me: WARNING: *** some programs will not be built because system is lacking a C99 compiler" >&2;}
4769         fi
4770
4771
4772
4773         ensc_searchpath="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4774
4775
4776         ENSC_PATHPROG_SED=
4777
4778
4779
4780
4781
4782
4783
4784         if test -z ""; then
4785                 rq=true
4786         else
4787                 rq=false
4788         fi
4789
4790         if $rq; then
4791                 ensc_dflt=
4792         else
4793                 ensc_dflt=""
4794         fi
4795
4796         for ac_prog in awk
4797 do
4798   # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4802 if test "${ac_cv_path_AWK+set}" = set; then
4803   echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805   case $AWK in
4806   [\\/]* | ?:[\\/]*)
4807   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4808   ;;
4809   *)
4810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $ensc_searchpath
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815   for ac_exec_ext in '' $ac_executable_extensions; do
4816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825   ;;
4826 esac
4827 fi
4828 AWK=$ac_cv_path_AWK
4829 if test -n "$AWK"; then
4830   { echo "$as_me:$LINENO: result: $AWK" >&5
4831 echo "${ECHO_T}$AWK" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838   test -n "$AWK" && break
4839 done
4840 test -n "$AWK" || AWK="$ensc_dflt"
4841
4842
4843         if test -z "${AWK}" && $rq; then
4844                 if test -z ""; then
4845                         { { echo "$as_me:$LINENO: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&5
4846 echo "$as_me: error: Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4847    { (exit 1); exit 1; }; }
4848                 else
4849                         { { echo "$as_me:$LINENO: error:
4850 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4851 " >&5
4852 echo "$as_me: error:
4853 Can not find the 'awk' tool within '${ensc_searchpath:-$PATH}'.
4854 " >&2;}
4855    { (exit 1); exit 1; }; }
4856                 fi
4857         fi
4858
4859         if test -e "${AWK}"; then
4860                 AWK=`readlink -f "${AWK}"`
4861         fi
4862
4863         test "${AWK}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'AWK'@!${AWK}!g;"
4864
4865         test "${AWK}"
4866
4867
4868
4869
4870         if test -z ""; then
4871                 rq=true
4872         else
4873                 rq=false
4874         fi
4875
4876         if $rq; then
4877                 ensc_dflt=
4878         else
4879                 ensc_dflt=""
4880         fi
4881
4882         for ac_prog in cat
4883 do
4884   # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_path_CAT+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   case $CAT in
4892   [\\/]* | ?:[\\/]*)
4893   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4894   ;;
4895   *)
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $ensc_searchpath
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911   ;;
4912 esac
4913 fi
4914 CAT=$ac_cv_path_CAT
4915 if test -n "$CAT"; then
4916   { echo "$as_me:$LINENO: result: $CAT" >&5
4917 echo "${ECHO_T}$CAT" >&6; }
4918 else
4919   { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4921 fi
4922
4923
4924   test -n "$CAT" && break
4925 done
4926 test -n "$CAT" || CAT="$ensc_dflt"
4927
4928
4929         if test -z "${CAT}" && $rq; then
4930                 if test -z ""; then
4931                         { { echo "$as_me:$LINENO: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&5
4932 echo "$as_me: error: Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'." >&2;}
4933    { (exit 1); exit 1; }; }
4934                 else
4935                         { { echo "$as_me:$LINENO: error:
4936 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4937 " >&5
4938 echo "$as_me: error:
4939 Can not find the 'cat' tool within '${ensc_searchpath:-$PATH}'.
4940 " >&2;}
4941    { (exit 1); exit 1; }; }
4942                 fi
4943         fi
4944
4945         if test -e "${CAT}"; then
4946                 CAT=`readlink -f "${CAT}"`
4947         fi
4948
4949         test "${CAT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CAT'@!${CAT}!g;"
4950
4951         test "${CAT}"
4952
4953
4954
4955
4956         if test -z ""; then
4957                 rq=true
4958         else
4959                 rq=false
4960         fi
4961
4962         if $rq; then
4963                 ensc_dflt=
4964         else
4965                 ensc_dflt=""
4966         fi
4967
4968         for ac_prog in chown
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974 if test "${ac_cv_path_CHOWN+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   case $CHOWN in
4978   [\\/]* | ?:[\\/]*)
4979   ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
4980   ;;
4981   *)
4982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $ensc_searchpath
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987   for ac_exec_ext in '' $ac_executable_extensions; do
4988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989     ac_cv_path_CHOWN="$as_dir/$ac_word$ac_exec_ext"
4990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991     break 2
4992   fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997   ;;
4998 esac
4999 fi
5000 CHOWN=$ac_cv_path_CHOWN
5001 if test -n "$CHOWN"; then
5002   { echo "$as_me:$LINENO: result: $CHOWN" >&5
5003 echo "${ECHO_T}$CHOWN" >&6; }
5004 else
5005   { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009
5010   test -n "$CHOWN" && break
5011 done
5012 test -n "$CHOWN" || CHOWN="$ensc_dflt"
5013
5014
5015         if test -z "${CHOWN}" && $rq; then
5016                 if test -z ""; then
5017                         { { echo "$as_me:$LINENO: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&5
5018 echo "$as_me: error: Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5019    { (exit 1); exit 1; }; }
5020                 else
5021                         { { echo "$as_me:$LINENO: error:
5022 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
5023 " >&5
5024 echo "$as_me: error:
5025 Can not find the 'chown' tool within '${ensc_searchpath:-$PATH}'.
5026 " >&2;}
5027    { (exit 1); exit 1; }; }
5028                 fi
5029         fi
5030
5031         if test -e "${CHOWN}"; then
5032                 CHOWN=`readlink -f "${CHOWN}"`
5033         fi
5034
5035         test "${CHOWN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CHOWN'@!${CHOWN}!g;"
5036
5037         test "${CHOWN}"
5038
5039
5040
5041
5042         if test -z ""; then
5043                 rq=true
5044         else
5045                 rq=false
5046         fi
5047
5048         if $rq; then
5049                 ensc_dflt=
5050         else
5051                 ensc_dflt=""
5052         fi
5053
5054         for ac_prog in cmp
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_path_CMP+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   case $CMP in
5064   [\\/]* | ?:[\\/]*)
5065   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5066   ;;
5067   *)
5068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $ensc_searchpath
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083   ;;
5084 esac
5085 fi
5086 CMP=$ac_cv_path_CMP
5087 if test -n "$CMP"; then
5088   { echo "$as_me:$LINENO: result: $CMP" >&5
5089 echo "${ECHO_T}$CMP" >&6; }
5090 else
5091   { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5093 fi
5094
5095
5096   test -n "$CMP" && break
5097 done
5098 test -n "$CMP" || CMP="$ensc_dflt"
5099
5100
5101         if test -z "${CMP}" && $rq; then
5102                 if test -z ""; then
5103                         { { echo "$as_me:$LINENO: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&5
5104 echo "$as_me: error: Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5105    { (exit 1); exit 1; }; }
5106                 else
5107                         { { echo "$as_me:$LINENO: error:
5108 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5109 " >&5
5110 echo "$as_me: error:
5111 Can not find the 'cmp' tool within '${ensc_searchpath:-$PATH}'.
5112 " >&2;}
5113    { (exit 1); exit 1; }; }
5114                 fi
5115         fi
5116
5117         if test -e "${CMP}"; then
5118                 CMP=`readlink -f "${CMP}"`
5119         fi
5120
5121         test "${CMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CMP'@!${CMP}!g;"
5122
5123         test "${CMP}"
5124
5125
5126
5127
5128         if test -z ""; then
5129                 rq=true
5130         else
5131                 rq=false
5132         fi
5133
5134         if $rq; then
5135                 ensc_dflt=
5136         else
5137                 ensc_dflt=""
5138         fi
5139
5140         for ac_prog in cp
5141 do
5142   # Extract the first word of "$ac_prog", so it can be a program name with args.
5143 set dummy $ac_prog; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_CP+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   case $CP in
5150   [\\/]* | ?:[\\/]*)
5151   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5152   ;;
5153   *)
5154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $ensc_searchpath
5156 do
5157   IFS=$as_save_IFS
5158   test -z "$as_dir" && as_dir=.
5159   for ac_exec_ext in '' $ac_executable_extensions; do
5160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163     break 2
5164   fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169   ;;
5170 esac
5171 fi
5172 CP=$ac_cv_path_CP
5173 if test -n "$CP"; then
5174   { echo "$as_me:$LINENO: result: $CP" >&5
5175 echo "${ECHO_T}$CP" >&6; }
5176 else
5177   { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5179 fi
5180
5181
5182   test -n "$CP" && break
5183 done
5184 test -n "$CP" || CP="$ensc_dflt"
5185
5186
5187         if test -z "${CP}" && $rq; then
5188                 if test -z ""; then
5189                         { { echo "$as_me:$LINENO: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&5
5190 echo "$as_me: error: Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5191    { (exit 1); exit 1; }; }
5192                 else
5193                         { { echo "$as_me:$LINENO: error:
5194 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5195 " >&5
5196 echo "$as_me: error:
5197 Can not find the 'cp' tool within '${ensc_searchpath:-$PATH}'.
5198 " >&2;}
5199    { (exit 1); exit 1; }; }
5200                 fi
5201         fi
5202
5203         if test -e "${CP}"; then
5204                 CP=`readlink -f "${CP}"`
5205         fi
5206
5207         test "${CP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CP'@!${CP}!g;"
5208
5209         test "${CP}"
5210
5211
5212
5213
5214         if test -z ""; then
5215                 rq=true
5216         else
5217                 rq=false
5218         fi
5219
5220         if $rq; then
5221                 ensc_dflt=
5222         else
5223                 ensc_dflt=""
5224         fi
5225
5226         for ac_prog in dirname
5227 do
5228   # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5232 if test "${ac_cv_path_DIRNAME+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235   case $DIRNAME in
5236   [\\/]* | ?:[\\/]*)
5237   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
5238   ;;
5239   *)
5240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $ensc_searchpath
5242 do
5243   IFS=$as_save_IFS
5244   test -z "$as_dir" && as_dir=.
5245   for ac_exec_ext in '' $ac_executable_extensions; do
5246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
5248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249     break 2
5250   fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255   ;;
5256 esac
5257 fi
5258 DIRNAME=$ac_cv_path_DIRNAME
5259 if test -n "$DIRNAME"; then
5260   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5261 echo "${ECHO_T}$DIRNAME" >&6; }
5262 else
5263   { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265 fi
5266
5267
5268   test -n "$DIRNAME" && break
5269 done
5270 test -n "$DIRNAME" || DIRNAME="$ensc_dflt"
5271
5272
5273         if test -z "${DIRNAME}" && $rq; then
5274                 if test -z ""; then
5275                         { { echo "$as_me:$LINENO: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&5
5276 echo "$as_me: error: Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5277    { (exit 1); exit 1; }; }
5278                 else
5279                         { { echo "$as_me:$LINENO: error:
5280 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5281 " >&5
5282 echo "$as_me: error:
5283 Can not find the 'dirname' tool within '${ensc_searchpath:-$PATH}'.
5284 " >&2;}
5285    { (exit 1); exit 1; }; }
5286                 fi
5287         fi
5288
5289         if test -e "${DIRNAME}"; then
5290                 DIRNAME=`readlink -f "${DIRNAME}"`
5291         fi
5292
5293         test "${DIRNAME}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DIRNAME'@!${DIRNAME}!g;"
5294
5295         test "${DIRNAME}"
5296
5297
5298
5299
5300         if test -z ""; then
5301                 rq=true
5302         else
5303                 rq=false
5304         fi
5305
5306         if $rq; then
5307                 ensc_dflt=
5308         else
5309                 ensc_dflt=""
5310         fi
5311
5312         for ac_prog in egrep
5313 do
5314   # Extract the first word of "$ac_prog", so it can be a program name with args.
5315 set dummy $ac_prog; ac_word=$2
5316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5318 if test "${ac_cv_path_EGREP+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   case $EGREP in
5322   [\\/]* | ?:[\\/]*)
5323   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
5324   ;;
5325   *)
5326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $ensc_searchpath
5328 do
5329   IFS=$as_save_IFS
5330   test -z "$as_dir" && as_dir=.
5331   for ac_exec_ext in '' $ac_executable_extensions; do
5332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
5334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335     break 2
5336   fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341   ;;
5342 esac
5343 fi
5344 EGREP=$ac_cv_path_EGREP
5345 if test -n "$EGREP"; then
5346   { echo "$as_me:$LINENO: result: $EGREP" >&5
5347 echo "${ECHO_T}$EGREP" >&6; }
5348 else
5349   { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5351 fi
5352
5353
5354   test -n "$EGREP" && break
5355 done
5356 test -n "$EGREP" || EGREP="$ensc_dflt"
5357
5358
5359         if test -z "${EGREP}" && $rq; then
5360                 if test -z ""; then
5361                         { { echo "$as_me:$LINENO: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&5
5362 echo "$as_me: error: Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5363    { (exit 1); exit 1; }; }
5364                 else
5365                         { { echo "$as_me:$LINENO: error:
5366 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5367 " >&5
5368 echo "$as_me: error:
5369 Can not find the 'egrep' tool within '${ensc_searchpath:-$PATH}'.
5370 " >&2;}
5371    { (exit 1); exit 1; }; }
5372                 fi
5373         fi
5374
5375         if test -e "${EGREP}"; then
5376                 EGREP=`readlink -f "${EGREP}"`
5377         fi
5378
5379         test "${EGREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'EGREP'@!${EGREP}!g;"
5380
5381         test "${EGREP}"
5382
5383
5384
5385
5386         if test -z ""; then
5387                 rq=true
5388         else
5389                 rq=false
5390         fi
5391
5392         if $rq; then
5393                 ensc_dflt=
5394         else
5395                 ensc_dflt=""
5396         fi
5397
5398         for ac_prog in env
5399 do
5400   # Extract the first word of "$ac_prog", so it can be a program name with args.
5401 set dummy $ac_prog; ac_word=$2
5402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5404 if test "${ac_cv_path_ENV+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407   case $ENV in
5408   [\\/]* | ?:[\\/]*)
5409   ac_cv_path_ENV="$ENV" # Let the user override the test with a path.
5410   ;;
5411   *)
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $ensc_searchpath
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417   for ac_exec_ext in '' $ac_executable_extensions; do
5418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5419     ac_cv_path_ENV="$as_dir/$ac_word$ac_exec_ext"
5420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5421     break 2
5422   fi
5423 done
5424 done
5425 IFS=$as_save_IFS
5426
5427   ;;
5428 esac
5429 fi
5430 ENV=$ac_cv_path_ENV
5431 if test -n "$ENV"; then
5432   { echo "$as_me:$LINENO: result: $ENV" >&5
5433 echo "${ECHO_T}$ENV" >&6; }
5434 else
5435   { echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6; }
5437 fi
5438
5439
5440   test -n "$ENV" && break
5441 done
5442 test -n "$ENV" || ENV="$ensc_dflt"
5443
5444
5445         if test -z "${ENV}" && $rq; then
5446                 if test -z ""; then
5447                         { { echo "$as_me:$LINENO: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&5
5448 echo "$as_me: error: Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5449    { (exit 1); exit 1; }; }
5450                 else
5451                         { { echo "$as_me:$LINENO: error:
5452 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5453 " >&5
5454 echo "$as_me: error:
5455 Can not find the 'env' tool within '${ensc_searchpath:-$PATH}'.
5456 " >&2;}
5457    { (exit 1); exit 1; }; }
5458                 fi
5459         fi
5460
5461         if test -e "${ENV}"; then
5462                 ENV=`readlink -f "${ENV}"`
5463         fi
5464
5465         test "${ENV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'ENV'@!${ENV}!g;"
5466
5467         test "${ENV}"
5468
5469
5470
5471
5472         if test -z ""; then
5473                 rq=true
5474         else
5475                 rq=false
5476         fi
5477
5478         if $rq; then
5479                 ensc_dflt=
5480         else
5481                 ensc_dflt=""
5482         fi
5483
5484         for ac_prog in grep
5485 do
5486   # Extract the first word of "$ac_prog", so it can be a program name with args.
5487 set dummy $ac_prog; ac_word=$2
5488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5490 if test "${ac_cv_path_GREP+set}" = set; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493   case $GREP in
5494   [\\/]* | ?:[\\/]*)
5495   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5496   ;;
5497   *)
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $ensc_searchpath
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513   ;;
5514 esac
5515 fi
5516 GREP=$ac_cv_path_GREP
5517 if test -n "$GREP"; then
5518   { echo "$as_me:$LINENO: result: $GREP" >&5
5519 echo "${ECHO_T}$GREP" >&6; }
5520 else
5521   { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5523 fi
5524
5525
5526   test -n "$GREP" && break
5527 done
5528 test -n "$GREP" || GREP="$ensc_dflt"
5529
5530
5531         if test -z "${GREP}" && $rq; then
5532                 if test -z ""; then
5533                         { { echo "$as_me:$LINENO: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&5
5534 echo "$as_me: error: Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5535    { (exit 1); exit 1; }; }
5536                 else
5537                         { { echo "$as_me:$LINENO: error:
5538 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5539 " >&5
5540 echo "$as_me: error:
5541 Can not find the 'grep' tool within '${ensc_searchpath:-$PATH}'.
5542 " >&2;}
5543    { (exit 1); exit 1; }; }
5544                 fi
5545         fi
5546
5547         if test -e "${GREP}"; then
5548                 GREP=`readlink -f "${GREP}"`
5549         fi
5550
5551         test "${GREP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GREP'@!${GREP}!g;"
5552
5553         test "${GREP}"
5554
5555
5556
5557
5558         if test -z ""; then
5559                 rq=true
5560         else
5561                 rq=false
5562         fi
5563
5564         if $rq; then
5565                 ensc_dflt=
5566         else
5567                 ensc_dflt=""
5568         fi
5569
5570         for ac_prog in ln
5571 do
5572   # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5576 if test "${ac_cv_path_LN+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   case $LN in
5580   [\\/]* | ?:[\\/]*)
5581   ac_cv_path_LN="$LN" # Let the user override the test with a path.
5582   ;;
5583   *)
5584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $ensc_searchpath
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589   for ac_exec_ext in '' $ac_executable_extensions; do
5590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
5592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596 done
5597 IFS=$as_save_IFS
5598
5599   ;;
5600 esac
5601 fi
5602 LN=$ac_cv_path_LN
5603 if test -n "$LN"; then
5604   { echo "$as_me:$LINENO: result: $LN" >&5
5605 echo "${ECHO_T}$LN" >&6; }
5606 else
5607   { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5609 fi
5610
5611
5612   test -n "$LN" && break
5613 done
5614 test -n "$LN" || LN="$ensc_dflt"
5615
5616
5617         if test -z "${LN}" && $rq; then
5618                 if test -z ""; then
5619                         { { echo "$as_me:$LINENO: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&5
5620 echo "$as_me: error: Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5621    { (exit 1); exit 1; }; }
5622                 else
5623                         { { echo "$as_me:$LINENO: error:
5624 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5625 " >&5
5626 echo "$as_me: error:
5627 Can not find the 'ln' tool within '${ensc_searchpath:-$PATH}'.
5628 " >&2;}
5629    { (exit 1); exit 1; }; }
5630                 fi
5631         fi
5632
5633         if test -e "${LN}"; then
5634                 LN=`readlink -f "${LN}"`
5635         fi
5636
5637         test "${LN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'LN'@!${LN}!g;"
5638
5639         test "${LN}"
5640
5641
5642
5643
5644         if test -z ""; then
5645                 rq=true
5646         else
5647                 rq=false
5648         fi
5649
5650         if $rq; then
5651                 ensc_dflt=
5652         else
5653                 ensc_dflt=""
5654         fi
5655
5656         for ac_prog in mkdir
5657 do
5658   # Extract the first word of "$ac_prog", so it can be a program name with args.
5659 set dummy $ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_path_MKDIR+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   case $MKDIR in
5666   [\\/]* | ?:[\\/]*)
5667   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5668   ;;
5669   *)
5670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $ensc_searchpath
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685   ;;
5686 esac
5687 fi
5688 MKDIR=$ac_cv_path_MKDIR
5689 if test -n "$MKDIR"; then
5690   { echo "$as_me:$LINENO: result: $MKDIR" >&5
5691 echo "${ECHO_T}$MKDIR" >&6; }
5692 else
5693   { echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6; }
5695 fi
5696
5697
5698   test -n "$MKDIR" && break
5699 done
5700 test -n "$MKDIR" || MKDIR="$ensc_dflt"
5701
5702
5703         if test -z "${MKDIR}" && $rq; then
5704                 if test -z ""; then
5705                         { { echo "$as_me:$LINENO: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&5
5706 echo "$as_me: error: Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5707    { (exit 1); exit 1; }; }
5708                 else
5709                         { { echo "$as_me:$LINENO: error:
5710 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5711 " >&5
5712 echo "$as_me: error:
5713 Can not find the 'mkdir' tool within '${ensc_searchpath:-$PATH}'.
5714 " >&2;}
5715    { (exit 1); exit 1; }; }
5716                 fi
5717         fi
5718
5719         if test -e "${MKDIR}"; then
5720                 MKDIR=`readlink -f "${MKDIR}"`
5721         fi
5722
5723         test "${MKDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKDIR'@!${MKDIR}!g;"
5724
5725         test "${MKDIR}"
5726
5727
5728
5729
5730         if test -z ""; then
5731                 rq=true
5732         else
5733                 rq=false
5734         fi
5735
5736         if $rq; then
5737                 ensc_dflt=
5738         else
5739                 ensc_dflt=""
5740         fi
5741
5742         for ac_prog in mkfifo
5743 do
5744   # Extract the first word of "$ac_prog", so it can be a program name with args.
5745 set dummy $ac_prog; ac_word=$2
5746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5748 if test "${ac_cv_path_MKFIFO+set}" = set; then
5749   echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751   case $MKFIFO in
5752   [\\/]* | ?:[\\/]*)
5753   ac_cv_path_MKFIFO="$MKFIFO" # Let the user override the test with a path.
5754   ;;
5755   *)
5756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $ensc_searchpath
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_path_MKFIFO="$as_dir/$ac_word$ac_exec_ext"
5764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768 done
5769 IFS=$as_save_IFS
5770
5771   ;;
5772 esac
5773 fi
5774 MKFIFO=$ac_cv_path_MKFIFO
5775 if test -n "$MKFIFO"; then
5776   { echo "$as_me:$LINENO: result: $MKFIFO" >&5
5777 echo "${ECHO_T}$MKFIFO" >&6; }
5778 else
5779   { echo "$as_me:$LINENO: result: no" >&5
5780 echo "${ECHO_T}no" >&6; }
5781 fi
5782
5783
5784   test -n "$MKFIFO" && break
5785 done
5786 test -n "$MKFIFO" || MKFIFO="$ensc_dflt"
5787
5788
5789         if test -z "${MKFIFO}" && $rq; then
5790                 if test -z ""; then
5791                         { { echo "$as_me:$LINENO: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&5
5792 echo "$as_me: error: Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5793    { (exit 1); exit 1; }; }
5794                 else
5795                         { { echo "$as_me:$LINENO: error:
5796 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5797 " >&5
5798 echo "$as_me: error:
5799 Can not find the 'mkfifo' tool within '${ensc_searchpath:-$PATH}'.
5800 " >&2;}
5801    { (exit 1); exit 1; }; }
5802                 fi
5803         fi
5804
5805         if test -e "${MKFIFO}"; then
5806                 MKFIFO=`readlink -f "${MKFIFO}"`
5807         fi
5808
5809         test "${MKFIFO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKFIFO'@!${MKFIFO}!g;"
5810
5811         test "${MKFIFO}"
5812
5813
5814
5815
5816         if test -z ""; then
5817                 rq=true
5818         else
5819                 rq=false
5820         fi
5821
5822         if $rq; then
5823                 ensc_dflt=
5824         else
5825                 ensc_dflt=""
5826         fi
5827
5828         for ac_prog in mktemp
5829 do
5830   # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834 if test "${ac_cv_path_MKTEMP+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   case $MKTEMP in
5838   [\\/]* | ?:[\\/]*)
5839   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
5840   ;;
5841   *)
5842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $ensc_searchpath
5844 do
5845   IFS=$as_save_IFS
5846   test -z "$as_dir" && as_dir=.
5847   for ac_exec_ext in '' $ac_executable_extensions; do
5848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
5850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852   fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857   ;;
5858 esac
5859 fi
5860 MKTEMP=$ac_cv_path_MKTEMP
5861 if test -n "$MKTEMP"; then
5862   { echo "$as_me:$LINENO: result: $MKTEMP" >&5
5863 echo "${ECHO_T}$MKTEMP" >&6; }
5864 else
5865   { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5867 fi
5868
5869
5870   test -n "$MKTEMP" && break
5871 done
5872 test -n "$MKTEMP" || MKTEMP="$ensc_dflt"
5873
5874
5875         if test -z "${MKTEMP}" && $rq; then
5876                 if test -z ""; then
5877                         { { echo "$as_me:$LINENO: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&5
5878 echo "$as_me: error: Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5879    { (exit 1); exit 1; }; }
5880                 else
5881                         { { echo "$as_me:$LINENO: error:
5882 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5883 " >&5
5884 echo "$as_me: error:
5885 Can not find the 'mktemp' tool within '${ensc_searchpath:-$PATH}'.
5886 " >&2;}
5887    { (exit 1); exit 1; }; }
5888                 fi
5889         fi
5890
5891         if test -e "${MKTEMP}"; then
5892                 MKTEMP=`readlink -f "${MKTEMP}"`
5893         fi
5894
5895         test "${MKTEMP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MKTEMP'@!${MKTEMP}!g;"
5896
5897         test "${MKTEMP}"
5898
5899
5900
5901
5902         if test -z ""; then
5903                 rq=true
5904         else
5905                 rq=false
5906         fi
5907
5908         if $rq; then
5909                 ensc_dflt=
5910         else
5911                 ensc_dflt=""
5912         fi
5913
5914         for ac_prog in mount
5915 do
5916   # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5920 if test "${ac_cv_path_MOUNT+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   case $MOUNT in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $ensc_searchpath
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933   for ac_exec_ext in '' $ac_executable_extensions; do
5934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
5936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943   ;;
5944 esac
5945 fi
5946 MOUNT=$ac_cv_path_MOUNT
5947 if test -n "$MOUNT"; then
5948   { echo "$as_me:$LINENO: result: $MOUNT" >&5
5949 echo "${ECHO_T}$MOUNT" >&6; }
5950 else
5951   { echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6; }
5953 fi
5954
5955
5956   test -n "$MOUNT" && break
5957 done
5958 test -n "$MOUNT" || MOUNT="$ensc_dflt"
5959
5960
5961         if test -z "${MOUNT}" && $rq; then
5962                 if test -z ""; then
5963                         { { echo "$as_me:$LINENO: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&5
5964 echo "$as_me: error: Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
5965    { (exit 1); exit 1; }; }
5966                 else
5967                         { { echo "$as_me:$LINENO: error:
5968 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5969 " >&5
5970 echo "$as_me: error:
5971 Can not find the 'mount' tool within '${ensc_searchpath:-$PATH}'.
5972 " >&2;}
5973    { (exit 1); exit 1; }; }
5974                 fi
5975         fi
5976
5977         if test -e "${MOUNT}"; then
5978                 MOUNT=`readlink -f "${MOUNT}"`
5979         fi
5980
5981         test "${MOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MOUNT'@!${MOUNT}!g;"
5982
5983         test "${MOUNT}"
5984
5985
5986
5987
5988         if test -z ""; then
5989                 rq=true
5990         else
5991                 rq=false
5992         fi
5993
5994         if $rq; then
5995                 ensc_dflt=
5996         else
5997                 ensc_dflt=""
5998         fi
5999
6000         for ac_prog in mv
6001 do
6002   # Extract the first word of "$ac_prog", so it can be a program name with args.
6003 set dummy $ac_prog; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_MV+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   case $MV in
6010   [\\/]* | ?:[\\/]*)
6011   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6012   ;;
6013   *)
6014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $ensc_searchpath
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019   for ac_exec_ext in '' $ac_executable_extensions; do
6020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029   ;;
6030 esac
6031 fi
6032 MV=$ac_cv_path_MV
6033 if test -n "$MV"; then
6034   { echo "$as_me:$LINENO: result: $MV" >&5
6035 echo "${ECHO_T}$MV" >&6; }
6036 else
6037   { echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6; }
6039 fi
6040
6041
6042   test -n "$MV" && break
6043 done
6044 test -n "$MV" || MV="$ensc_dflt"
6045
6046
6047         if test -z "${MV}" && $rq; then
6048                 if test -z ""; then
6049                         { { echo "$as_me:$LINENO: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&5
6050 echo "$as_me: error: Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6051    { (exit 1); exit 1; }; }
6052                 else
6053                         { { echo "$as_me:$LINENO: error:
6054 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
6055 " >&5
6056 echo "$as_me: error:
6057 Can not find the 'mv' tool within '${ensc_searchpath:-$PATH}'.
6058 " >&2;}
6059    { (exit 1); exit 1; }; }
6060                 fi
6061         fi
6062
6063         if test -e "${MV}"; then
6064                 MV=`readlink -f "${MV}"`
6065         fi
6066
6067         test "${MV}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MV'@!${MV}!g;"
6068
6069         test "${MV}"
6070
6071
6072
6073
6074         if test -z ""; then
6075                 rq=true
6076         else
6077                 rq=false
6078         fi
6079
6080         if $rq; then
6081                 ensc_dflt=
6082         else
6083                 ensc_dflt=""
6084         fi
6085
6086         for ac_prog in nice
6087 do
6088   # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6092 if test "${ac_cv_path_NICE+set}" = set; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   case $NICE in
6096   [\\/]* | ?:[\\/]*)
6097   ac_cv_path_NICE="$NICE" # Let the user override the test with a path.
6098   ;;
6099   *)
6100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $ensc_searchpath
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105   for ac_exec_ext in '' $ac_executable_extensions; do
6106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107     ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext"
6108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115   ;;
6116 esac
6117 fi
6118 NICE=$ac_cv_path_NICE
6119 if test -n "$NICE"; then
6120   { echo "$as_me:$LINENO: result: $NICE" >&5
6121 echo "${ECHO_T}$NICE" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127
6128   test -n "$NICE" && break
6129 done
6130 test -n "$NICE" || NICE="$ensc_dflt"
6131
6132
6133         if test -z "${NICE}" && $rq; then
6134                 if test -z ""; then
6135                         { { echo "$as_me:$LINENO: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&5
6136 echo "$as_me: error: Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6137    { (exit 1); exit 1; }; }
6138                 else
6139                         { { echo "$as_me:$LINENO: error:
6140 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6141 " >&5
6142 echo "$as_me: error:
6143 Can not find the 'nice' tool within '${ensc_searchpath:-$PATH}'.
6144 " >&2;}
6145    { (exit 1); exit 1; }; }
6146                 fi
6147         fi
6148
6149         if test -e "${NICE}"; then
6150                 NICE=`readlink -f "${NICE}"`
6151         fi
6152
6153         test "${NICE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NICE'@!${NICE}!g;"
6154
6155         test "${NICE}"
6156
6157
6158
6159
6160         if test -z ""; then
6161                 rq=true
6162         else
6163                 rq=false
6164         fi
6165
6166         if $rq; then
6167                 ensc_dflt=
6168         else
6169                 ensc_dflt=""
6170         fi
6171
6172         for ac_prog in ps
6173 do
6174   # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_PS+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   case $PS in
6182   [\\/]* | ?:[\\/]*)
6183   ac_cv_path_PS="$PS" # Let the user override the test with a path.
6184   ;;
6185   *)
6186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $ensc_searchpath
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191   for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
6194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201   ;;
6202 esac
6203 fi
6204 PS=$ac_cv_path_PS
6205 if test -n "$PS"; then
6206   { echo "$as_me:$LINENO: result: $PS" >&5
6207 echo "${ECHO_T}$PS" >&6; }
6208 else
6209   { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6211 fi
6212
6213
6214   test -n "$PS" && break
6215 done
6216 test -n "$PS" || PS="$ensc_dflt"
6217
6218
6219         if test -z "${PS}" && $rq; then
6220                 if test -z ""; then
6221                         { { echo "$as_me:$LINENO: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&5
6222 echo "$as_me: error: Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6223    { (exit 1); exit 1; }; }
6224                 else
6225                         { { echo "$as_me:$LINENO: error:
6226 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6227 " >&5
6228 echo "$as_me: error:
6229 Can not find the 'ps' tool within '${ensc_searchpath:-$PATH}'.
6230 " >&2;}
6231    { (exit 1); exit 1; }; }
6232                 fi
6233         fi
6234
6235         if test -e "${PS}"; then
6236                 PS=`readlink -f "${PS}"`
6237         fi
6238
6239         test "${PS}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'PS'@!${PS}!g;"
6240
6241         test "${PS}"
6242
6243
6244
6245
6246         if test -z ""; then
6247                 rq=true
6248         else
6249                 rq=false
6250         fi
6251
6252         if $rq; then
6253                 ensc_dflt=
6254         else
6255                 ensc_dflt=""
6256         fi
6257
6258         for ac_prog in rm
6259 do
6260   # Extract the first word of "$ac_prog", so it can be a program name with args.
6261 set dummy $ac_prog; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_RM+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   case $RM in
6268   [\\/]* | ?:[\\/]*)
6269   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6270   ;;
6271   *)
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $ensc_searchpath
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287   ;;
6288 esac
6289 fi
6290 RM=$ac_cv_path_RM
6291 if test -n "$RM"; then
6292   { echo "$as_me:$LINENO: result: $RM" >&5
6293 echo "${ECHO_T}$RM" >&6; }
6294 else
6295   { echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6; }
6297 fi
6298
6299
6300   test -n "$RM" && break
6301 done
6302 test -n "$RM" || RM="$ensc_dflt"
6303
6304
6305         if test -z "${RM}" && $rq; then
6306                 if test -z ""; then
6307                         { { echo "$as_me:$LINENO: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&5
6308 echo "$as_me: error: Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6309    { (exit 1); exit 1; }; }
6310                 else
6311                         { { echo "$as_me:$LINENO: error:
6312 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6313 " >&5
6314 echo "$as_me: error:
6315 Can not find the 'rm' tool within '${ensc_searchpath:-$PATH}'.
6316 " >&2;}
6317    { (exit 1); exit 1; }; }
6318                 fi
6319         fi
6320
6321         if test -e "${RM}"; then
6322                 RM=`readlink -f "${RM}"`
6323         fi
6324
6325         test "${RM}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RM'@!${RM}!g;"
6326
6327         test "${RM}"
6328
6329
6330
6331
6332         if test -z ""; then
6333                 rq=true
6334         else
6335                 rq=false
6336         fi
6337
6338         if $rq; then
6339                 ensc_dflt=
6340         else
6341                 ensc_dflt=""
6342         fi
6343
6344         for ac_prog in rmdir
6345 do
6346   # Extract the first word of "$ac_prog", so it can be a program name with args.
6347 set dummy $ac_prog; ac_word=$2
6348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6350 if test "${ac_cv_path_RMDIR+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   case $RMDIR in
6354   [\\/]* | ?:[\\/]*)
6355   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
6356   ;;
6357   *)
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $ensc_searchpath
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363   for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
6366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370 done
6371 IFS=$as_save_IFS
6372
6373   ;;
6374 esac
6375 fi
6376 RMDIR=$ac_cv_path_RMDIR
6377 if test -n "$RMDIR"; then
6378   { echo "$as_me:$LINENO: result: $RMDIR" >&5
6379 echo "${ECHO_T}$RMDIR" >&6; }
6380 else
6381   { echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6; }
6383 fi
6384
6385
6386   test -n "$RMDIR" && break
6387 done
6388 test -n "$RMDIR" || RMDIR="$ensc_dflt"
6389
6390
6391         if test -z "${RMDIR}" && $rq; then
6392                 if test -z ""; then
6393                         { { echo "$as_me:$LINENO: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&5
6394 echo "$as_me: error: Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6395    { (exit 1); exit 1; }; }
6396                 else
6397                         { { echo "$as_me:$LINENO: error:
6398 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6399 " >&5
6400 echo "$as_me: error:
6401 Can not find the 'rmdir' tool within '${ensc_searchpath:-$PATH}'.
6402 " >&2;}
6403    { (exit 1); exit 1; }; }
6404                 fi
6405         fi
6406
6407         if test -e "${RMDIR}"; then
6408                 RMDIR=`readlink -f "${RMDIR}"`
6409         fi
6410
6411         test "${RMDIR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMDIR'@!${RMDIR}!g;"
6412
6413         test "${RMDIR}"
6414
6415
6416
6417
6418         if test -z ""; then
6419                 rq=true
6420         else
6421                 rq=false
6422         fi
6423
6424         if $rq; then
6425                 ensc_dflt=
6426         else
6427                 ensc_dflt=""
6428         fi
6429
6430         for ac_prog in sed
6431 do
6432   # Extract the first word of "$ac_prog", so it can be a program name with args.
6433 set dummy $ac_prog; ac_word=$2
6434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436 if test "${ac_cv_path_SED+set}" = set; then
6437   echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439   case $SED in
6440   [\\/]* | ?:[\\/]*)
6441   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6442   ;;
6443   *)
6444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $ensc_searchpath
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459   ;;
6460 esac
6461 fi
6462 SED=$ac_cv_path_SED
6463 if test -n "$SED"; then
6464   { echo "$as_me:$LINENO: result: $SED" >&5
6465 echo "${ECHO_T}$SED" >&6; }
6466 else
6467   { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6469 fi
6470
6471
6472   test -n "$SED" && break
6473 done
6474 test -n "$SED" || SED="$ensc_dflt"
6475
6476
6477         if test -z "${SED}" && $rq; then
6478                 if test -z ""; then
6479                         { { echo "$as_me:$LINENO: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&5
6480 echo "$as_me: error: Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6481    { (exit 1); exit 1; }; }
6482                 else
6483                         { { echo "$as_me:$LINENO: error:
6484 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6485 " >&5
6486 echo "$as_me: error:
6487 Can not find the 'sed' tool within '${ensc_searchpath:-$PATH}'.
6488 " >&2;}
6489    { (exit 1); exit 1; }; }
6490                 fi
6491         fi
6492
6493         if test -e "${SED}"; then
6494                 SED=`readlink -f "${SED}"`
6495         fi
6496
6497         test "${SED}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SED'@!${SED}!g;"
6498
6499         test "${SED}"
6500
6501
6502
6503
6504         if test -z ""; then
6505                 rq=true
6506         else
6507                 rq=false
6508         fi
6509
6510         if $rq; then
6511                 ensc_dflt=
6512         else
6513                 ensc_dflt=""
6514         fi
6515
6516         for ac_prog in sh
6517 do
6518   # Extract the first word of "$ac_prog", so it can be a program name with args.
6519 set dummy $ac_prog; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_path_SH+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   case $SH in
6526   [\\/]* | ?:[\\/]*)
6527   ac_cv_path_SH="$SH" # Let the user override the test with a path.
6528   ;;
6529   *)
6530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $ensc_searchpath
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
6538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545   ;;
6546 esac
6547 fi
6548 SH=$ac_cv_path_SH
6549 if test -n "$SH"; then
6550   { echo "$as_me:$LINENO: result: $SH" >&5
6551 echo "${ECHO_T}$SH" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558   test -n "$SH" && break
6559 done
6560 test -n "$SH" || SH="$ensc_dflt"
6561
6562
6563         if test -z "${SH}" && $rq; then
6564                 if test -z ""; then
6565                         { { echo "$as_me:$LINENO: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&5
6566 echo "$as_me: error: Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6567    { (exit 1); exit 1; }; }
6568                 else
6569                         { { echo "$as_me:$LINENO: error:
6570 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6571 " >&5
6572 echo "$as_me: error:
6573 Can not find the 'sh' tool within '${ensc_searchpath:-$PATH}'.
6574 " >&2;}
6575    { (exit 1); exit 1; }; }
6576                 fi
6577         fi
6578
6579         if test -e "${SH}"; then
6580                 SH=`readlink -f "${SH}"`
6581         fi
6582
6583         test "${SH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'SH'@!${SH}!g;"
6584
6585         test "${SH}"
6586
6587
6588
6589
6590         if test -z ""; then
6591                 rq=true
6592         else
6593                 rq=false
6594         fi
6595
6596         if $rq; then
6597                 ensc_dflt=
6598         else
6599                 ensc_dflt=""
6600         fi
6601
6602         for ac_prog in tac
6603 do
6604   # Extract the first word of "$ac_prog", so it can be a program name with args.
6605 set dummy $ac_prog; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_TAC+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   case $TAC in
6612   [\\/]* | ?:[\\/]*)
6613   ac_cv_path_TAC="$TAC" # Let the user override the test with a path.
6614   ;;
6615   *)
6616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $ensc_searchpath
6618 do
6619   IFS=$as_save_IFS
6620   test -z "$as_dir" && as_dir=.
6621   for ac_exec_ext in '' $ac_executable_extensions; do
6622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623     ac_cv_path_TAC="$as_dir/$ac_word$ac_exec_ext"
6624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625     break 2
6626   fi
6627 done
6628 done
6629 IFS=$as_save_IFS
6630
6631   ;;
6632 esac
6633 fi
6634 TAC=$ac_cv_path_TAC
6635 if test -n "$TAC"; then
6636   { echo "$as_me:$LINENO: result: $TAC" >&5
6637 echo "${ECHO_T}$TAC" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644   test -n "$TAC" && break
6645 done
6646 test -n "$TAC" || TAC="$ensc_dflt"
6647
6648
6649         if test -z "${TAC}" && $rq; then
6650                 if test -z ""; then
6651                         { { echo "$as_me:$LINENO: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&5
6652 echo "$as_me: error: Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6653    { (exit 1); exit 1; }; }
6654                 else
6655                         { { echo "$as_me:$LINENO: error:
6656 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6657 " >&5
6658 echo "$as_me: error:
6659 Can not find the 'tac' tool within '${ensc_searchpath:-$PATH}'.
6660 " >&2;}
6661    { (exit 1); exit 1; }; }
6662                 fi
6663         fi
6664
6665         if test -e "${TAC}"; then
6666                 TAC=`readlink -f "${TAC}"`
6667         fi
6668
6669         test "${TAC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAC'@!${TAC}!g;"
6670
6671         test "${TAC}"
6672
6673
6674
6675
6676         if test -z ""; then
6677                 rq=true
6678         else
6679                 rq=false
6680         fi
6681
6682         if $rq; then
6683                 ensc_dflt=
6684         else
6685                 ensc_dflt=""
6686         fi
6687
6688         for ac_prog in tar
6689 do
6690   # Extract the first word of "$ac_prog", so it can be a program name with args.
6691 set dummy $ac_prog; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_TAR+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   case $TAR in
6698   [\\/]* | ?:[\\/]*)
6699   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6700   ;;
6701   *)
6702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $ensc_searchpath
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707   for ac_exec_ext in '' $ac_executable_extensions; do
6708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717   ;;
6718 esac
6719 fi
6720 TAR=$ac_cv_path_TAR
6721 if test -n "$TAR"; then
6722   { echo "$as_me:$LINENO: result: $TAR" >&5
6723 echo "${ECHO_T}$TAR" >&6; }
6724 else
6725   { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 fi
6728
6729
6730   test -n "$TAR" && break
6731 done
6732 test -n "$TAR" || TAR="$ensc_dflt"
6733
6734
6735         if test -z "${TAR}" && $rq; then
6736                 if test -z ""; then
6737                         { { echo "$as_me:$LINENO: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&5
6738 echo "$as_me: error: Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6739    { (exit 1); exit 1; }; }
6740                 else
6741                         { { echo "$as_me:$LINENO: error:
6742 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6743 " >&5
6744 echo "$as_me: error:
6745 Can not find the 'tar' tool within '${ensc_searchpath:-$PATH}'.
6746 " >&2;}
6747    { (exit 1); exit 1; }; }
6748                 fi
6749         fi
6750
6751         if test -e "${TAR}"; then
6752                 TAR=`readlink -f "${TAR}"`
6753         fi
6754
6755         test "${TAR}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TAR'@!${TAR}!g;"
6756
6757         test "${TAR}"
6758
6759
6760
6761
6762         if test -z ""; then
6763                 rq=true
6764         else
6765                 rq=false
6766         fi
6767
6768         if $rq; then
6769                 ensc_dflt=
6770         else
6771                 ensc_dflt=""
6772         fi
6773
6774         for ac_prog in touch
6775 do
6776   # Extract the first word of "$ac_prog", so it can be a program name with args.
6777 set dummy $ac_prog; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_TOUCH+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   case $TOUCH in
6784   [\\/]* | ?:[\\/]*)
6785   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
6786   ;;
6787   *)
6788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $ensc_searchpath
6790 do
6791   IFS=$as_save_IFS
6792   test -z "$as_dir" && as_dir=.
6793   for ac_exec_ext in '' $ac_executable_extensions; do
6794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
6796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797     break 2
6798   fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803   ;;
6804 esac
6805 fi
6806 TOUCH=$ac_cv_path_TOUCH
6807 if test -n "$TOUCH"; then
6808   { echo "$as_me:$LINENO: result: $TOUCH" >&5
6809 echo "${ECHO_T}$TOUCH" >&6; }
6810 else
6811   { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6813 fi
6814
6815
6816   test -n "$TOUCH" && break
6817 done
6818 test -n "$TOUCH" || TOUCH="$ensc_dflt"
6819
6820
6821         if test -z "${TOUCH}" && $rq; then
6822                 if test -z ""; then
6823                         { { echo "$as_me:$LINENO: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&5
6824 echo "$as_me: error: Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6825    { (exit 1); exit 1; }; }
6826                 else
6827                         { { echo "$as_me:$LINENO: error:
6828 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6829 " >&5
6830 echo "$as_me: error:
6831 Can not find the 'touch' tool within '${ensc_searchpath:-$PATH}'.
6832 " >&2;}
6833    { (exit 1); exit 1; }; }
6834                 fi
6835         fi
6836
6837         if test -e "${TOUCH}"; then
6838                 TOUCH=`readlink -f "${TOUCH}"`
6839         fi
6840
6841         test "${TOUCH}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TOUCH'@!${TOUCH}!g;"
6842
6843         test "${TOUCH}"
6844
6845
6846
6847
6848         if test -z ""; then
6849                 rq=true
6850         else
6851                 rq=false
6852         fi
6853
6854         if $rq; then
6855                 ensc_dflt=
6856         else
6857                 ensc_dflt=""
6858         fi
6859
6860         for ac_prog in tty
6861 do
6862   # Extract the first word of "$ac_prog", so it can be a program name with args.
6863 set dummy $ac_prog; ac_word=$2
6864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6866 if test "${ac_cv_path_TTY+set}" = set; then
6867   echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869   case $TTY in
6870   [\\/]* | ?:[\\/]*)
6871   ac_cv_path_TTY="$TTY" # Let the user override the test with a path.
6872   ;;
6873   *)
6874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $ensc_searchpath
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_path_TTY="$as_dir/$ac_word$ac_exec_ext"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889   ;;
6890 esac
6891 fi
6892 TTY=$ac_cv_path_TTY
6893 if test -n "$TTY"; then
6894   { echo "$as_me:$LINENO: result: $TTY" >&5
6895 echo "${ECHO_T}$TTY" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902   test -n "$TTY" && break
6903 done
6904 test -n "$TTY" || TTY="$ensc_dflt"
6905
6906
6907         if test -z "${TTY}" && $rq; then
6908                 if test -z ""; then
6909                         { { echo "$as_me:$LINENO: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&5
6910 echo "$as_me: error: Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6911    { (exit 1); exit 1; }; }
6912                 else
6913                         { { echo "$as_me:$LINENO: error:
6914 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6915 " >&5
6916 echo "$as_me: error:
6917 Can not find the 'tty' tool within '${ensc_searchpath:-$PATH}'.
6918 " >&2;}
6919    { (exit 1); exit 1; }; }
6920                 fi
6921         fi
6922
6923         if test -e "${TTY}"; then
6924                 TTY=`readlink -f "${TTY}"`
6925         fi
6926
6927         test "${TTY}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'TTY'@!${TTY}!g;"
6928
6929         test "${TTY}"
6930
6931
6932
6933
6934         if test -z ""; then
6935                 rq=true
6936         else
6937                 rq=false
6938         fi
6939
6940         if $rq; then
6941                 ensc_dflt=
6942         else
6943                 ensc_dflt=""
6944         fi
6945
6946         for ac_prog in umount
6947 do
6948   # Extract the first word of "$ac_prog", so it can be a program name with args.
6949 set dummy $ac_prog; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_UMOUNT+set}" = set; then
6953   echo $ECHO_N "(cached) $ECHO_C" >&6
6954 else
6955   case $UMOUNT in
6956   [\\/]* | ?:[\\/]*)
6957   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
6958   ;;
6959   *)
6960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $ensc_searchpath
6962 do
6963   IFS=$as_save_IFS
6964   test -z "$as_dir" && as_dir=.
6965   for ac_exec_ext in '' $ac_executable_extensions; do
6966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6967     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
6968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969     break 2
6970   fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975   ;;
6976 esac
6977 fi
6978 UMOUNT=$ac_cv_path_UMOUNT
6979 if test -n "$UMOUNT"; then
6980   { echo "$as_me:$LINENO: result: $UMOUNT" >&5
6981 echo "${ECHO_T}$UMOUNT" >&6; }
6982 else
6983   { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988   test -n "$UMOUNT" && break
6989 done
6990 test -n "$UMOUNT" || UMOUNT="$ensc_dflt"
6991
6992
6993         if test -z "${UMOUNT}" && $rq; then
6994                 if test -z ""; then
6995                         { { echo "$as_me:$LINENO: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&5
6996 echo "$as_me: error: Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'." >&2;}
6997    { (exit 1); exit 1; }; }
6998                 else
6999                         { { echo "$as_me:$LINENO: error:
7000 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
7001 " >&5
7002 echo "$as_me: error:
7003 Can not find the 'umount' tool within '${ensc_searchpath:-$PATH}'.
7004 " >&2;}
7005    { (exit 1); exit 1; }; }
7006                 fi
7007         fi
7008
7009         if test -e "${UMOUNT}"; then
7010                 UMOUNT=`readlink -f "${UMOUNT}"`
7011         fi
7012
7013         test "${UMOUNT}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'UMOUNT'@!${UMOUNT}!g;"
7014
7015         test "${UMOUNT}"
7016
7017
7018
7019
7020         if test -z ""; then
7021                 rq=true
7022         else
7023                 rq=false
7024         fi
7025
7026         if $rq; then
7027                 ensc_dflt=
7028         else
7029                 ensc_dflt=""
7030         fi
7031
7032         for ac_prog in wc
7033 do
7034   # Extract the first word of "$ac_prog", so it can be a program name with args.
7035 set dummy $ac_prog; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_WC+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $WC in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_WC="$WC" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $ensc_searchpath
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   ;;
7062 esac
7063 fi
7064 WC=$ac_cv_path_WC
7065 if test -n "$WC"; then
7066   { echo "$as_me:$LINENO: result: $WC" >&5
7067 echo "${ECHO_T}$WC" >&6; }
7068 else
7069   { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7071 fi
7072
7073
7074   test -n "$WC" && break
7075 done
7076 test -n "$WC" || WC="$ensc_dflt"
7077
7078
7079         if test -z "${WC}" && $rq; then
7080                 if test -z ""; then
7081                         { { echo "$as_me:$LINENO: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&5
7082 echo "$as_me: error: Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7083    { (exit 1); exit 1; }; }
7084                 else
7085                         { { echo "$as_me:$LINENO: error:
7086 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7087 " >&5
7088 echo "$as_me: error:
7089 Can not find the 'wc' tool within '${ensc_searchpath:-$PATH}'.
7090 " >&2;}
7091    { (exit 1); exit 1; }; }
7092                 fi
7093         fi
7094
7095         if test -e "${WC}"; then
7096                 WC=`readlink -f "${WC}"`
7097         fi
7098
7099         test "${WC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WC'@!${WC}!g;"
7100
7101         test "${WC}"
7102
7103
7104
7105
7106
7107
7108         if test -z ""; then
7109                 rq=true
7110         else
7111                 rq=false
7112         fi
7113
7114         if $rq; then
7115                 ensc_dflt=
7116         else
7117                 ensc_dflt=""
7118         fi
7119
7120         for ac_prog in ip
7121 do
7122   # Extract the first word of "$ac_prog", so it can be a program name with args.
7123 set dummy $ac_prog; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_IP+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $IP in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_IP="$IP" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $ensc_searchpath
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_IP="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 IP=$ac_cv_path_IP
7153 if test -n "$IP"; then
7154   { echo "$as_me:$LINENO: result: $IP" >&5
7155 echo "${ECHO_T}$IP" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162   test -n "$IP" && break
7163 done
7164 test -n "$IP" || IP="$ensc_dflt"
7165
7166
7167         if test -z "${IP}" && $rq; then
7168                 if test -z "Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution"; then
7169                         { { echo "$as_me:$LINENO: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&5
7170 echo "$as_me: error: Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7171    { (exit 1); exit 1; }; }
7172                 else
7173                         { { echo "$as_me:$LINENO: error:
7174 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7175 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&5
7176 echo "$as_me: error:
7177 Can not find the 'ip' tool within '${ensc_searchpath:-$PATH}'.
7178 Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution" >&2;}
7179    { (exit 1); exit 1; }; }
7180                 fi
7181         fi
7182
7183         if test -e "${IP}"; then
7184                 IP=`readlink -f "${IP}"`
7185         fi
7186
7187         test "${IP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IP'@!${IP}!g;"
7188
7189         test "${IP}"
7190
7191
7192
7193
7194         if test -z ""; then
7195                 rq=true
7196         else
7197                 rq=false
7198         fi
7199
7200         if $rq; then
7201                 ensc_dflt=
7202         else
7203                 ensc_dflt=""
7204         fi
7205
7206         for ac_prog in iptables
7207 do
7208   # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy $ac_prog; ac_word=$2
7210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212 if test "${ac_cv_path_IPTABLES+set}" = set; then
7213   echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215   case $IPTABLES in
7216   [\\/]* | ?:[\\/]*)
7217   ac_cv_path_IPTABLES="$IPTABLES" # Let the user override the test with a path.
7218   ;;
7219   *)
7220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $ensc_searchpath
7222 do
7223   IFS=$as_save_IFS
7224   test -z "$as_dir" && as_dir=.
7225   for ac_exec_ext in '' $ac_executable_extensions; do
7226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227     ac_cv_path_IPTABLES="$as_dir/$ac_word$ac_exec_ext"
7228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7229     break 2
7230   fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235   ;;
7236 esac
7237 fi
7238 IPTABLES=$ac_cv_path_IPTABLES
7239 if test -n "$IPTABLES"; then
7240   { echo "$as_me:$LINENO: result: $IPTABLES" >&5
7241 echo "${ECHO_T}$IPTABLES" >&6; }
7242 else
7243   { echo "$as_me:$LINENO: result: no" >&5
7244 echo "${ECHO_T}no" >&6; }
7245 fi
7246
7247
7248   test -n "$IPTABLES" && break
7249 done
7250 test -n "$IPTABLES" || IPTABLES="$ensc_dflt"
7251
7252
7253         if test -z "${IPTABLES}" && $rq; then
7254                 if test -z ""; then
7255                         { { echo "$as_me:$LINENO: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&5
7256 echo "$as_me: error: Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7257    { (exit 1); exit 1; }; }
7258                 else
7259                         { { echo "$as_me:$LINENO: error:
7260 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7261 " >&5
7262 echo "$as_me: error:
7263 Can not find the 'iptables' tool within '${ensc_searchpath:-$PATH}'.
7264 " >&2;}
7265    { (exit 1); exit 1; }; }
7266                 fi
7267         fi
7268
7269         if test -e "${IPTABLES}"; then
7270                 IPTABLES=`readlink -f "${IPTABLES}"`
7271         fi
7272
7273         test "${IPTABLES}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'IPTABLES'@!${IPTABLES}!g;"
7274
7275         test "${IPTABLES}"
7276
7277
7278
7279
7280         if test -z ""; then
7281                 rq=true
7282         else
7283                 rq=false
7284         fi
7285
7286         if $rq; then
7287                 ensc_dflt=
7288         else
7289                 ensc_dflt=""
7290         fi
7291
7292         for ac_prog in modprobe
7293 do
7294   # Extract the first word of "$ac_prog", so it can be a program name with args.
7295 set dummy $ac_prog; ac_word=$2
7296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7298 if test "${ac_cv_path_MODPROBE+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   case $MODPROBE in
7302   [\\/]* | ?:[\\/]*)
7303   ac_cv_path_MODPROBE="$MODPROBE" # Let the user override the test with a path.
7304   ;;
7305   *)
7306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $ensc_searchpath
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_path_MODPROBE="$as_dir/$ac_word$ac_exec_ext"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7320
7321   ;;
7322 esac
7323 fi
7324 MODPROBE=$ac_cv_path_MODPROBE
7325 if test -n "$MODPROBE"; then
7326   { echo "$as_me:$LINENO: result: $MODPROBE" >&5
7327 echo "${ECHO_T}$MODPROBE" >&6; }
7328 else
7329   { echo "$as_me:$LINENO: result: no" >&5
7330 echo "${ECHO_T}no" >&6; }
7331 fi
7332
7333
7334   test -n "$MODPROBE" && break
7335 done
7336 test -n "$MODPROBE" || MODPROBE="$ensc_dflt"
7337
7338
7339         if test -z "${MODPROBE}" && $rq; then
7340                 if test -z ""; then
7341                         { { echo "$as_me:$LINENO: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&5
7342 echo "$as_me: error: Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7343    { (exit 1); exit 1; }; }
7344                 else
7345                         { { echo "$as_me:$LINENO: error:
7346 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7347 " >&5
7348 echo "$as_me: error:
7349 Can not find the 'modprobe' tool within '${ensc_searchpath:-$PATH}'.
7350 " >&2;}
7351    { (exit 1); exit 1; }; }
7352                 fi
7353         fi
7354
7355         if test -e "${MODPROBE}"; then
7356                 MODPROBE=`readlink -f "${MODPROBE}"`
7357         fi
7358
7359         test "${MODPROBE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'MODPROBE'@!${MODPROBE}!g;"
7360
7361         test "${MODPROBE}"
7362
7363
7364
7365
7366         if test -z ""; then
7367                 rq=true
7368         else
7369                 rq=false
7370         fi
7371
7372         if $rq; then
7373                 ensc_dflt=
7374         else
7375                 ensc_dflt=""
7376         fi
7377
7378         for ac_prog in nameif
7379 do
7380   # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy $ac_prog; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_path_NAMEIF+set}" = set; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   case $NAMEIF in
7388   [\\/]* | ?:[\\/]*)
7389   ac_cv_path_NAMEIF="$NAMEIF" # Let the user override the test with a path.
7390   ;;
7391   *)
7392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $ensc_searchpath
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_path_NAMEIF="$as_dir/$ac_word$ac_exec_ext"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407   ;;
7408 esac
7409 fi
7410 NAMEIF=$ac_cv_path_NAMEIF
7411 if test -n "$NAMEIF"; then
7412   { echo "$as_me:$LINENO: result: $NAMEIF" >&5
7413 echo "${ECHO_T}$NAMEIF" >&6; }
7414 else
7415   { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7417 fi
7418
7419
7420   test -n "$NAMEIF" && break
7421 done
7422 test -n "$NAMEIF" || NAMEIF="$ensc_dflt"
7423
7424
7425         if test -z "${NAMEIF}" && $rq; then
7426                 if test -z ""; then
7427                         { { echo "$as_me:$LINENO: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&5
7428 echo "$as_me: error: Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7429    { (exit 1); exit 1; }; }
7430                 else
7431                         { { echo "$as_me:$LINENO: error:
7432 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7433 " >&5
7434 echo "$as_me: error:
7435 Can not find the 'nameif' tool within '${ensc_searchpath:-$PATH}'.
7436 " >&2;}
7437    { (exit 1); exit 1; }; }
7438                 fi
7439         fi
7440
7441         if test -e "${NAMEIF}"; then
7442                 NAMEIF=`readlink -f "${NAMEIF}"`
7443         fi
7444
7445         test "${NAMEIF}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NAMEIF'@!${NAMEIF}!g;"
7446
7447         test "${NAMEIF}"
7448
7449
7450
7451
7452         if test -z ""; then
7453                 rq=true
7454         else
7455                 rq=false
7456         fi
7457
7458         if $rq; then
7459                 ensc_dflt=
7460         else
7461                 ensc_dflt=""
7462         fi
7463
7464         for ac_prog in nohup
7465 do
7466   # Extract the first word of "$ac_prog", so it can be a program name with args.
7467 set dummy $ac_prog; ac_word=$2
7468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7470 if test "${ac_cv_path_NOHUP+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   case $NOHUP in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_NOHUP="$NOHUP" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $ensc_searchpath
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483   for ac_exec_ext in '' $ac_executable_extensions; do
7484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7485     ac_cv_path_NOHUP="$as_dir/$ac_word$ac_exec_ext"
7486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490 done
7491 IFS=$as_save_IFS
7492
7493   ;;
7494 esac
7495 fi
7496 NOHUP=$ac_cv_path_NOHUP
7497 if test -n "$NOHUP"; then
7498   { echo "$as_me:$LINENO: result: $NOHUP" >&5
7499 echo "${ECHO_T}$NOHUP" >&6; }
7500 else
7501   { echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6; }
7503 fi
7504
7505
7506   test -n "$NOHUP" && break
7507 done
7508 test -n "$NOHUP" || NOHUP="$ensc_dflt"
7509
7510
7511         if test -z "${NOHUP}" && $rq; then
7512                 if test -z ""; then
7513                         { { echo "$as_me:$LINENO: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&5
7514 echo "$as_me: error: Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7515    { (exit 1); exit 1; }; }
7516                 else
7517                         { { echo "$as_me:$LINENO: error:
7518 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7519 " >&5
7520 echo "$as_me: error:
7521 Can not find the 'nohup' tool within '${ensc_searchpath:-$PATH}'.
7522 " >&2;}
7523    { (exit 1); exit 1; }; }
7524                 fi
7525         fi
7526
7527         if test -e "${NOHUP}"; then
7528                 NOHUP=`readlink -f "${NOHUP}"`
7529         fi
7530
7531         test "${NOHUP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'NOHUP'@!${NOHUP}!g;"
7532
7533         test "${NOHUP}"
7534
7535
7536
7537
7538         if test -z ""; then
7539                 rq=true
7540         else
7541                 rq=false
7542         fi
7543
7544         if $rq; then
7545                 ensc_dflt=
7546         else
7547                 ensc_dflt=""
7548         fi
7549
7550         for ac_prog in rmmod
7551 do
7552   # Extract the first word of "$ac_prog", so it can be a program name with args.
7553 set dummy $ac_prog; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_RMMOD+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $RMMOD in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_RMMOD="$RMMOD" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $ensc_searchpath
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_RMMOD="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   ;;
7580 esac
7581 fi
7582 RMMOD=$ac_cv_path_RMMOD
7583 if test -n "$RMMOD"; then
7584   { echo "$as_me:$LINENO: result: $RMMOD" >&5
7585 echo "${ECHO_T}$RMMOD" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591
7592   test -n "$RMMOD" && break
7593 done
7594 test -n "$RMMOD" || RMMOD="$ensc_dflt"
7595
7596
7597         if test -z "${RMMOD}" && $rq; then
7598                 if test -z ""; then
7599                         { { echo "$as_me:$LINENO: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&5
7600 echo "$as_me: error: Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7601    { (exit 1); exit 1; }; }
7602                 else
7603                         { { echo "$as_me:$LINENO: error:
7604 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7605 " >&5
7606 echo "$as_me: error:
7607 Can not find the 'rmmod' tool within '${ensc_searchpath:-$PATH}'.
7608 " >&2;}
7609    { (exit 1); exit 1; }; }
7610                 fi
7611         fi
7612
7613         if test -e "${RMMOD}"; then
7614                 RMMOD=`readlink -f "${RMMOD}"`
7615         fi
7616
7617         test "${RMMOD}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RMMOD'@!${RMMOD}!g;"
7618
7619         test "${RMMOD}"
7620
7621
7622
7623
7624         if test -z ""; then
7625                 rq=true
7626         else
7627                 rq=false
7628         fi
7629
7630         if $rq; then
7631                 ensc_dflt=
7632         else
7633                 ensc_dflt=""
7634         fi
7635
7636         for ac_prog in vconfig
7637 do
7638   # Extract the first word of "$ac_prog", so it can be a program name with args.
7639 set dummy $ac_prog; ac_word=$2
7640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7642 if test "${ac_cv_path_VCONFIG+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645   case $VCONFIG in
7646   [\\/]* | ?:[\\/]*)
7647   ac_cv_path_VCONFIG="$VCONFIG" # Let the user override the test with a path.
7648   ;;
7649   *)
7650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 for as_dir in $ensc_searchpath
7652 do
7653   IFS=$as_save_IFS
7654   test -z "$as_dir" && as_dir=.
7655   for ac_exec_ext in '' $ac_executable_extensions; do
7656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657     ac_cv_path_VCONFIG="$as_dir/$ac_word$ac_exec_ext"
7658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659     break 2
7660   fi
7661 done
7662 done
7663 IFS=$as_save_IFS
7664
7665   ;;
7666 esac
7667 fi
7668 VCONFIG=$ac_cv_path_VCONFIG
7669 if test -n "$VCONFIG"; then
7670   { echo "$as_me:$LINENO: result: $VCONFIG" >&5
7671 echo "${ECHO_T}$VCONFIG" >&6; }
7672 else
7673   { echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6; }
7675 fi
7676
7677
7678   test -n "$VCONFIG" && break
7679 done
7680 test -n "$VCONFIG" || VCONFIG="$ensc_dflt"
7681
7682
7683         if test -z "${VCONFIG}" && $rq; then
7684                 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
7685                         { { echo "$as_me:$LINENO: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&5
7686 echo "$as_me: error: Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7687    { (exit 1); exit 1; }; }
7688                 else
7689                         { { echo "$as_me:$LINENO: error:
7690 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7691 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&5
7692 echo "$as_me: error:
7693 Can not find the 'vconfig' tool within '${ensc_searchpath:-$PATH}'.
7694 See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution" >&2;}
7695    { (exit 1); exit 1; }; }
7696                 fi
7697         fi
7698
7699         if test -e "${VCONFIG}"; then
7700                 VCONFIG=`readlink -f "${VCONFIG}"`
7701         fi
7702
7703         test "${VCONFIG}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'VCONFIG'@!${VCONFIG}!g;"
7704
7705         test "${VCONFIG}"
7706
7707
7708
7709
7710         if test -z ""; then
7711                 rq=true
7712         else
7713                 rq=false
7714         fi
7715
7716         if $rq; then
7717                 ensc_dflt=
7718         else
7719                 ensc_dflt=""
7720         fi
7721
7722         for ac_prog in wget
7723 do
7724   # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728 if test "${ac_cv_path_WGET+set}" = set; then
7729   echo $ECHO_N "(cached) $ECHO_C" >&6
7730 else
7731   case $WGET in
7732   [\\/]* | ?:[\\/]*)
7733   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
7734   ;;
7735   *)
7736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $ensc_searchpath
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7743     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
7744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749 IFS=$as_save_IFS
7750
7751   ;;
7752 esac
7753 fi
7754 WGET=$ac_cv_path_WGET
7755 if test -n "$WGET"; then
7756   { echo "$as_me:$LINENO: result: $WGET" >&5
7757 echo "${ECHO_T}$WGET" >&6; }
7758 else
7759   { echo "$as_me:$LINENO: result: no" >&5
7760 echo "${ECHO_T}no" >&6; }
7761 fi
7762
7763
7764   test -n "$WGET" && break
7765 done
7766 test -n "$WGET" || WGET="$ensc_dflt"
7767
7768
7769         if test -z "${WGET}" && $rq; then
7770                 if test -z ""; then
7771                         { { echo "$as_me:$LINENO: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&5
7772 echo "$as_me: error: Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7773    { (exit 1); exit 1; }; }
7774                 else
7775                         { { echo "$as_me:$LINENO: error:
7776 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7777 " >&5
7778 echo "$as_me: error:
7779 Can not find the 'wget' tool within '${ensc_searchpath:-$PATH}'.
7780 " >&2;}
7781    { (exit 1); exit 1; }; }
7782                 fi
7783         fi
7784
7785         if test -e "${WGET}"; then
7786                 WGET=`readlink -f "${WGET}"`
7787         fi
7788
7789         test "${WGET}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'WGET'@!${WGET}!g;"
7790
7791         test "${WGET}"
7792
7793
7794
7795
7796         if test -z "file"; then
7797                 rq=true
7798         else
7799                 rq=false
7800         fi
7801
7802         if $rq; then
7803                 ensc_dflt=
7804         else
7805                 ensc_dflt="file"
7806         fi
7807
7808         for ac_prog in file
7809 do
7810   # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7814 if test "${ac_cv_path_FILE+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   case $FILE in
7818   [\\/]* | ?:[\\/]*)
7819   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7820   ;;
7821   *)
7822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $ensc_searchpath
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827   for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837   ;;
7838 esac
7839 fi
7840 FILE=$ac_cv_path_FILE
7841 if test -n "$FILE"; then
7842   { echo "$as_me:$LINENO: result: $FILE" >&5
7843 echo "${ECHO_T}$FILE" >&6; }
7844 else
7845   { echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6; }
7847 fi
7848
7849
7850   test -n "$FILE" && break
7851 done
7852 test -n "$FILE" || FILE="$ensc_dflt"
7853
7854
7855         if test -z "${FILE}" && $rq; then
7856                 if test -z ""; then
7857                         { { echo "$as_me:$LINENO: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&5
7858 echo "$as_me: error: Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7859    { (exit 1); exit 1; }; }
7860                 else
7861                         { { echo "$as_me:$LINENO: error:
7862 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7863 " >&5
7864 echo "$as_me: error:
7865 Can not find the 'file' tool within '${ensc_searchpath:-$PATH}'.
7866 " >&2;}
7867    { (exit 1); exit 1; }; }
7868                 fi
7869         fi
7870
7871         if test -e "${FILE}"; then
7872                 FILE=`readlink -f "${FILE}"`
7873         fi
7874
7875         test "${FILE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'FILE'@!${FILE}!g;"
7876
7877         test "${FILE}"
7878
7879
7880
7881
7882         if test -z "gzip"; then
7883                 rq=true
7884         else
7885                 rq=false
7886         fi
7887
7888         if $rq; then
7889                 ensc_dflt=
7890         else
7891                 ensc_dflt="gzip"
7892         fi
7893
7894         for ac_prog in gzip
7895 do
7896   # Extract the first word of "$ac_prog", so it can be a program name with args.
7897 set dummy $ac_prog; ac_word=$2
7898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7900 if test "${ac_cv_path_GZIP+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   case $GZIP in
7904   [\\/]* | ?:[\\/]*)
7905   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7906   ;;
7907   *)
7908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $ensc_searchpath
7910 do
7911   IFS=$as_save_IFS
7912   test -z "$as_dir" && as_dir=.
7913   for ac_exec_ext in '' $ac_executable_extensions; do
7914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7915     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917     break 2
7918   fi
7919 done
7920 done
7921 IFS=$as_save_IFS
7922
7923   ;;
7924 esac
7925 fi
7926 GZIP=$ac_cv_path_GZIP
7927 if test -n "$GZIP"; then
7928   { echo "$as_me:$LINENO: result: $GZIP" >&5
7929 echo "${ECHO_T}$GZIP" >&6; }
7930 else
7931   { echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6; }
7933 fi
7934
7935
7936   test -n "$GZIP" && break
7937 done
7938 test -n "$GZIP" || GZIP="$ensc_dflt"
7939
7940
7941         if test -z "${GZIP}" && $rq; then
7942                 if test -z ""; then
7943                         { { echo "$as_me:$LINENO: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&5
7944 echo "$as_me: error: Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'." >&2;}
7945    { (exit 1); exit 1; }; }
7946                 else
7947                         { { echo "$as_me:$LINENO: error:
7948 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7949 " >&5
7950 echo "$as_me: error:
7951 Can not find the 'gzip' tool within '${ensc_searchpath:-$PATH}'.
7952 " >&2;}
7953    { (exit 1); exit 1; }; }
7954                 fi
7955         fi
7956
7957         if test -e "${GZIP}"; then
7958                 GZIP=`readlink -f "${GZIP}"`
7959         fi
7960
7961         test "${GZIP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'GZIP'@!${GZIP}!g;"
7962
7963         test "${GZIP}"
7964
7965
7966
7967
7968         if test -z "bzip2"; then
7969                 rq=true
7970         else
7971                 rq=false
7972         fi
7973
7974         if $rq; then
7975                 ensc_dflt=
7976         else
7977                 ensc_dflt="bzip2"
7978         fi
7979
7980         for ac_prog in bzip2
7981 do
7982   # Extract the first word of "$ac_prog", so it can be a program name with args.
7983 set dummy $ac_prog; ac_word=$2
7984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7986 if test "${ac_cv_path_BZIP2+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   case $BZIP2 in
7990   [\\/]* | ?:[\\/]*)
7991   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7992   ;;
7993   *)
7994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $ensc_searchpath
7996 do
7997   IFS=$as_save_IFS
7998   test -z "$as_dir" && as_dir=.
7999   for ac_exec_ext in '' $ac_executable_extensions; do
8000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8003     break 2
8004   fi
8005 done
8006 done
8007 IFS=$as_save_IFS
8008
8009   ;;
8010 esac
8011 fi
8012 BZIP2=$ac_cv_path_BZIP2
8013 if test -n "$BZIP2"; then
8014   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8015 echo "${ECHO_T}$BZIP2" >&6; }
8016 else
8017   { echo "$as_me:$LINENO: result: no" >&5
8018 echo "${ECHO_T}no" >&6; }
8019 fi
8020
8021
8022   test -n "$BZIP2" && break
8023 done
8024 test -n "$BZIP2" || BZIP2="$ensc_dflt"
8025
8026
8027         if test -z "${BZIP2}" && $rq; then
8028                 if test -z ""; then
8029                         { { echo "$as_me:$LINENO: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&5
8030 echo "$as_me: error: Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8031    { (exit 1); exit 1; }; }
8032                 else
8033                         { { echo "$as_me:$LINENO: error:
8034 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
8035 " >&5
8036 echo "$as_me: error:
8037 Can not find the 'bzip2' tool within '${ensc_searchpath:-$PATH}'.
8038 " >&2;}
8039    { (exit 1); exit 1; }; }
8040                 fi
8041         fi
8042
8043         if test -e "${BZIP2}"; then
8044                 BZIP2=`readlink -f "${BZIP2}"`
8045         fi
8046
8047         test "${BZIP2}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'BZIP2'@!${BZIP2}!g;"
8048
8049         test "${BZIP2}"
8050
8051
8052
8053
8054         if test -z "cpio"; then
8055                 rq=true
8056         else
8057                 rq=false
8058         fi
8059
8060         if $rq; then
8061                 ensc_dflt=
8062         else
8063                 ensc_dflt="cpio"
8064         fi
8065
8066         for ac_prog in cpio
8067 do
8068   # Extract the first word of "$ac_prog", so it can be a program name with args.
8069 set dummy $ac_prog; ac_word=$2
8070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8072 if test "${ac_cv_path_CPIO+set}" = set; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075   case $CPIO in
8076   [\\/]* | ?:[\\/]*)
8077   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
8078   ;;
8079   *)
8080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 for as_dir in $ensc_searchpath
8082 do
8083   IFS=$as_save_IFS
8084   test -z "$as_dir" && as_dir=.
8085   for ac_exec_ext in '' $ac_executable_extensions; do
8086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
8088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8089     break 2
8090   fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095   ;;
8096 esac
8097 fi
8098 CPIO=$ac_cv_path_CPIO
8099 if test -n "$CPIO"; then
8100   { echo "$as_me:$LINENO: result: $CPIO" >&5
8101 echo "${ECHO_T}$CPIO" >&6; }
8102 else
8103   { echo "$as_me:$LINENO: result: no" >&5
8104 echo "${ECHO_T}no" >&6; }
8105 fi
8106
8107
8108   test -n "$CPIO" && break
8109 done
8110 test -n "$CPIO" || CPIO="$ensc_dflt"
8111
8112
8113         if test -z "${CPIO}" && $rq; then
8114                 if test -z ""; then
8115                         { { echo "$as_me:$LINENO: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&5
8116 echo "$as_me: error: Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8117    { (exit 1); exit 1; }; }
8118                 else
8119                         { { echo "$as_me:$LINENO: error:
8120 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8121 " >&5
8122 echo "$as_me: error:
8123 Can not find the 'cpio' tool within '${ensc_searchpath:-$PATH}'.
8124 " >&2;}
8125    { (exit 1); exit 1; }; }
8126                 fi
8127         fi
8128
8129         if test -e "${CPIO}"; then
8130                 CPIO=`readlink -f "${CPIO}"`
8131         fi
8132
8133         test "${CPIO}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'CPIO'@!${CPIO}!g;"
8134
8135         test "${CPIO}"
8136
8137
8138
8139
8140         if test -z "restore"; then
8141                 rq=true
8142         else
8143                 rq=false
8144         fi
8145
8146         if $rq; then
8147                 ensc_dflt=
8148         else
8149                 ensc_dflt="restore"
8150         fi
8151
8152         for ac_prog in restore
8153 do
8154   # Extract the first word of "$ac_prog", so it can be a program name with args.
8155 set dummy $ac_prog; ac_word=$2
8156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8158 if test "${ac_cv_path_RESTORE+set}" = set; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161   case $RESTORE in
8162   [\\/]* | ?:[\\/]*)
8163   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
8164   ;;
8165   *)
8166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $ensc_searchpath
8168 do
8169   IFS=$as_save_IFS
8170   test -z "$as_dir" && as_dir=.
8171   for ac_exec_ext in '' $ac_executable_extensions; do
8172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8173     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
8174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175     break 2
8176   fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181   ;;
8182 esac
8183 fi
8184 RESTORE=$ac_cv_path_RESTORE
8185 if test -n "$RESTORE"; then
8186   { echo "$as_me:$LINENO: result: $RESTORE" >&5
8187 echo "${ECHO_T}$RESTORE" >&6; }
8188 else
8189   { echo "$as_me:$LINENO: result: no" >&5
8190 echo "${ECHO_T}no" >&6; }
8191 fi
8192
8193
8194   test -n "$RESTORE" && break
8195 done
8196 test -n "$RESTORE" || RESTORE="$ensc_dflt"
8197
8198
8199         if test -z "${RESTORE}" && $rq; then
8200                 if test -z ""; then
8201                         { { echo "$as_me:$LINENO: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&5
8202 echo "$as_me: error: Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8203    { (exit 1); exit 1; }; }
8204                 else
8205                         { { echo "$as_me:$LINENO: error:
8206 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8207 " >&5
8208 echo "$as_me: error:
8209 Can not find the 'restore' tool within '${ensc_searchpath:-$PATH}'.
8210 " >&2;}
8211    { (exit 1); exit 1; }; }
8212                 fi
8213         fi
8214
8215         if test -e "${RESTORE}"; then
8216                 RESTORE=`readlink -f "${RESTORE}"`
8217         fi
8218
8219         test "${RESTORE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RESTORE'@!${RESTORE}!g;"
8220
8221         test "${RESTORE}"
8222
8223
8224
8225
8226         if test -z "rsync"; then
8227                 rq=true
8228         else
8229                 rq=false
8230         fi
8231
8232         if $rq; then
8233                 ensc_dflt=
8234         else
8235                 ensc_dflt="rsync"
8236         fi
8237
8238         for ac_prog in rsync
8239 do
8240   # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8244 if test "${ac_cv_path_RSYNC+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   case $RSYNC in
8248   [\\/]* | ?:[\\/]*)
8249   ac_cv_path_RSYNC="$RSYNC" # Let the user override the test with a path.
8250   ;;
8251   *)
8252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $ensc_searchpath
8254 do
8255   IFS=$as_save_IFS
8256   test -z "$as_dir" && as_dir=.
8257   for ac_exec_ext in '' $ac_executable_extensions; do
8258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259     ac_cv_path_RSYNC="$as_dir/$ac_word$ac_exec_ext"
8260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8261     break 2
8262   fi
8263 done
8264 done
8265 IFS=$as_save_IFS
8266
8267   ;;
8268 esac
8269 fi
8270 RSYNC=$ac_cv_path_RSYNC
8271 if test -n "$RSYNC"; then
8272   { echo "$as_me:$LINENO: result: $RSYNC" >&5
8273 echo "${ECHO_T}$RSYNC" >&6; }
8274 else
8275   { echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6; }
8277 fi
8278
8279
8280   test -n "$RSYNC" && break
8281 done
8282 test -n "$RSYNC" || RSYNC="$ensc_dflt"
8283
8284
8285         if test -z "${RSYNC}" && $rq; then
8286                 if test -z ""; then
8287                         { { echo "$as_me:$LINENO: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&5
8288 echo "$as_me: error: Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8289    { (exit 1); exit 1; }; }
8290                 else
8291                         { { echo "$as_me:$LINENO: error:
8292 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8293 " >&5
8294 echo "$as_me: error:
8295 Can not find the 'rsync' tool within '${ensc_searchpath:-$PATH}'.
8296 " >&2;}
8297    { (exit 1); exit 1; }; }
8298                 fi
8299         fi
8300
8301         if test -e "${RSYNC}"; then
8302                 RSYNC=`readlink -f "${RSYNC}"`
8303         fi
8304
8305         test "${RSYNC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'RSYNC'@!${RSYNC}!g;"
8306
8307         test "${RSYNC}"
8308
8309
8310
8311
8312         if test -z "strace"; then
8313                 rq=true
8314         else
8315                 rq=false
8316         fi
8317
8318         if $rq; then
8319                 ensc_dflt=
8320         else
8321                 ensc_dflt="strace"
8322         fi
8323
8324         for ac_prog in strace
8325 do
8326   # Extract the first word of "$ac_prog", so it can be a program name with args.
8327 set dummy $ac_prog; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_path_STRACE+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   case $STRACE in
8334   [\\/]* | ?:[\\/]*)
8335   ac_cv_path_STRACE="$STRACE" # Let the user override the test with a path.
8336   ;;
8337   *)
8338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $ensc_searchpath
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343   for ac_exec_ext in '' $ac_executable_extensions; do
8344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345     ac_cv_path_STRACE="$as_dir/$ac_word$ac_exec_ext"
8346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353   ;;
8354 esac
8355 fi
8356 STRACE=$ac_cv_path_STRACE
8357 if test -n "$STRACE"; then
8358   { echo "$as_me:$LINENO: result: $STRACE" >&5
8359 echo "${ECHO_T}$STRACE" >&6; }
8360 else
8361   { echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6; }
8363 fi
8364
8365
8366   test -n "$STRACE" && break
8367 done
8368 test -n "$STRACE" || STRACE="$ensc_dflt"
8369
8370
8371         if test -z "${STRACE}" && $rq; then
8372                 if test -z ""; then
8373                         { { echo "$as_me:$LINENO: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&5
8374 echo "$as_me: error: Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8375    { (exit 1); exit 1; }; }
8376                 else
8377                         { { echo "$as_me:$LINENO: error:
8378 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8379 " >&5
8380 echo "$as_me: error:
8381 Can not find the 'strace' tool within '${ensc_searchpath:-$PATH}'.
8382 " >&2;}
8383    { (exit 1); exit 1; }; }
8384                 fi
8385         fi
8386
8387         if test -e "${STRACE}"; then
8388                 STRACE=`readlink -f "${STRACE}"`
8389         fi
8390
8391         test "${STRACE}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'STRACE'@!${STRACE}!g;"
8392
8393         test "${STRACE}"
8394
8395
8396
8397
8398
8399         if test -z ":"; then
8400                 rq=true
8401         else
8402                 rq=false
8403         fi
8404
8405         if $rq; then
8406                 ensc_dflt=
8407         else
8408                 ensc_dflt=":"
8409         fi
8410
8411         for ac_prog in doxygen
8412 do
8413   # Extract the first word of "$ac_prog", so it can be a program name with args.
8414 set dummy $ac_prog; ac_word=$2
8415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8417 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8418   echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420   case $DOXYGEN in
8421   [\\/]* | ?:[\\/]*)
8422   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8423   ;;
8424   *)
8425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $ensc_searchpath
8427 do
8428   IFS=$as_save_IFS
8429   test -z "$as_dir" && as_dir=.
8430   for ac_exec_ext in '' $ac_executable_extensions; do
8431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434     break 2
8435   fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440   ;;
8441 esac
8442 fi
8443 DOXYGEN=$ac_cv_path_DOXYGEN
8444 if test -n "$DOXYGEN"; then
8445   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8446 echo "${ECHO_T}$DOXYGEN" >&6; }
8447 else
8448   { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8450 fi
8451
8452
8453   test -n "$DOXYGEN" && break
8454 done
8455 test -n "$DOXYGEN" || DOXYGEN="$ensc_dflt"
8456
8457
8458         if test -z "${DOXYGEN}" && $rq; then
8459                 if test -z ""; then
8460                         { { echo "$as_me:$LINENO: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&5
8461 echo "$as_me: error: Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8462    { (exit 1); exit 1; }; }
8463                 else
8464                         { { echo "$as_me:$LINENO: error:
8465 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8466 " >&5
8467 echo "$as_me: error:
8468 Can not find the 'doxygen' tool within '${ensc_searchpath:-$PATH}'.
8469 " >&2;}
8470    { (exit 1); exit 1; }; }
8471                 fi
8472         fi
8473
8474         if test -e "${DOXYGEN}"; then
8475                 DOXYGEN=`readlink -f "${DOXYGEN}"`
8476         fi
8477
8478         test "${DOXYGEN}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'DOXYGEN'@!${DOXYGEN}!g;"
8479
8480         test "${DOXYGEN}"
8481
8482
8483
8484
8485         if test -z ":"; then
8486                 rq=true
8487         else
8488                 rq=false
8489         fi
8490
8491         if $rq; then
8492                 ensc_dflt=
8493         else
8494                 ensc_dflt=":"
8495         fi
8496
8497         for ac_prog in xsltp
8498 do
8499   # Extract the first word of "$ac_prog", so it can be a program name with args.
8500 set dummy $ac_prog; ac_word=$2
8501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8503 if test "${ac_cv_path_XSLTP+set}" = set; then
8504   echo $ECHO_N "(cached) $ECHO_C" >&6
8505 else
8506   case $XSLTP in
8507   [\\/]* | ?:[\\/]*)
8508   ac_cv_path_XSLTP="$XSLTP" # Let the user override the test with a path.
8509   ;;
8510   *)
8511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $ensc_searchpath
8513 do
8514   IFS=$as_save_IFS
8515   test -z "$as_dir" && as_dir=.
8516   for ac_exec_ext in '' $ac_executable_extensions; do
8517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8518     ac_cv_path_XSLTP="$as_dir/$ac_word$ac_exec_ext"
8519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520     break 2
8521   fi
8522 done
8523 done
8524 IFS=$as_save_IFS
8525
8526   ;;
8527 esac
8528 fi
8529 XSLTP=$ac_cv_path_XSLTP
8530 if test -n "$XSLTP"; then
8531   { echo "$as_me:$LINENO: result: $XSLTP" >&5
8532 echo "${ECHO_T}$XSLTP" >&6; }
8533 else
8534   { echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6; }
8536 fi
8537
8538
8539   test -n "$XSLTP" && break
8540 done
8541 test -n "$XSLTP" || XSLTP="$ensc_dflt"
8542
8543
8544         if test -z "${XSLTP}" && $rq; then
8545                 if test -z ""; then
8546                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&5
8547 echo "$as_me: error: Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8548    { (exit 1); exit 1; }; }
8549                 else
8550                         { { echo "$as_me:$LINENO: error:
8551 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8552 " >&5
8553 echo "$as_me: error:
8554 Can not find the 'xsltp' tool within '${ensc_searchpath:-$PATH}'.
8555 " >&2;}
8556    { (exit 1); exit 1; }; }
8557                 fi
8558         fi
8559
8560         if test -e "${XSLTP}"; then
8561                 XSLTP=`readlink -f "${XSLTP}"`
8562         fi
8563
8564         test "${XSLTP}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTP'@!${XSLTP}!g;"
8565
8566         test "${XSLTP}"
8567
8568
8569
8570
8571         if test -z ":"; then
8572                 rq=true
8573         else
8574                 rq=false
8575         fi
8576
8577         if $rq; then
8578                 ensc_dflt=
8579         else
8580                 ensc_dflt=":"
8581         fi
8582
8583         for ac_prog in xsltproc
8584 do
8585   # Extract the first word of "$ac_prog", so it can be a program name with args.
8586 set dummy $ac_prog; ac_word=$2
8587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8589 if test "${ac_cv_path_XSLTPROC+set}" = set; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   case $XSLTPROC in
8593   [\\/]* | ?:[\\/]*)
8594   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
8595   ;;
8596   *)
8597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $ensc_searchpath
8599 do
8600   IFS=$as_save_IFS
8601   test -z "$as_dir" && as_dir=.
8602   for ac_exec_ext in '' $ac_executable_extensions; do
8603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
8605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8606     break 2
8607   fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612   ;;
8613 esac
8614 fi
8615 XSLTPROC=$ac_cv_path_XSLTPROC
8616 if test -n "$XSLTPROC"; then
8617   { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
8618 echo "${ECHO_T}$XSLTPROC" >&6; }
8619 else
8620   { echo "$as_me:$LINENO: result: no" >&5
8621 echo "${ECHO_T}no" >&6; }
8622 fi
8623
8624
8625   test -n "$XSLTPROC" && break
8626 done
8627 test -n "$XSLTPROC" || XSLTPROC="$ensc_dflt"
8628
8629
8630         if test -z "${XSLTPROC}" && $rq; then
8631                 if test -z ""; then
8632                         { { echo "$as_me:$LINENO: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&5
8633 echo "$as_me: error: Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'." >&2;}
8634    { (exit 1); exit 1; }; }
8635                 else
8636                         { { echo "$as_me:$LINENO: error:
8637 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8638 " >&5
8639 echo "$as_me: error:
8640 Can not find the 'xsltproc' tool within '${ensc_searchpath:-$PATH}'.
8641 " >&2;}
8642    { (exit 1); exit 1; }; }
8643                 fi
8644         fi
8645
8646         if test -e "${XSLTPROC}"; then
8647                 XSLTPROC=`readlink -f "${XSLTPROC}"`
8648         fi
8649
8650         test "${XSLTPROC}" && ENSC_PATHPROG_SED="${ENSC_PATHPROG_SED}s!@'XSLTPROC'@!${XSLTPROC}!g;"
8651
8652         test "${XSLTPROC}"
8653
8654
8655  if test "$XSLTP"    != ':'; then
8656   HAVE_XSLTP_TRUE=
8657   HAVE_XSLTP_FALSE='#'
8658 else
8659   HAVE_XSLTP_TRUE='#'
8660   HAVE_XSLTP_FALSE=
8661 fi
8662
8663  if test "$XSLTPROC" != ':'; then
8664   HAVE_XSLTPROC_TRUE=
8665   HAVE_XSLTPROC_FALSE='#'
8666 else
8667   HAVE_XSLTPROC_TRUE='#'
8668   HAVE_XSLTPROC_FALSE=
8669 fi
8670
8671
8672 if test x"$prefix" = x/; then
8673         prefix=
8674 fi
8675
8676
8677
8678         warn_flags="-Werror -W"
8679         { echo "$as_me:$LINENO: checking whether the C-compiler accepts ${warn_flags}" >&5
8680 echo $ECHO_N "checking whether the C-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8681         ac_ext=c
8682 ac_cpp='$CPP $CPPFLAGS'
8683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686
8687         __ensc_check_warnflags_old_CFLAGS="${CFLAGS}"
8688         CFLAGS="$warn_flags"
8689         cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695 inline static void f(){}
8696 int
8697 main ()
8698 {
8699
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext
8705 if { (ac_try="$ac_compile"
8706 case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8711   (eval "$ac_compile") 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } && {
8718          test -z "$ac_c_werror_flag" ||
8719          test ! -s conftest.err
8720        } && test -s conftest.$ac_objext; then
8721   ensc_sys_compilerwarnflags_C=${warn_flags}
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726         ensc_sys_compilerwarnflags_C=
8727 fi
8728
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730         ac_ext=c
8731 ac_cpp='$CPP $CPPFLAGS'
8732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735
8736         CFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8737
8738         if test x"${ensc_sys_compilerwarnflags_C}" = x; then
8739                 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741         else
8742                 { echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6; }
8744         fi
8745
8746
8747
8748
8749
8750 echo 'void f(){}' > conftest.c
8751   for i in -std=c99 -Wall -pedantic -W
8752   do
8753     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8754 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8755     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8756     then
8757       CFLAGS="${CFLAGS} $i"
8758       { echo "$as_me:$LINENO: result: yes" >&5
8759 echo "${ECHO_T}yes" >&6; }
8760     else
8761       { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8763     fi
8764   done
8765   rm -f conftest.c conftest.o
8766
8767
8768
8769         warn_flags="-Werror -W"
8770         { echo "$as_me:$LINENO: checking whether the C++-compiler accepts ${warn_flags}" >&5
8771 echo $ECHO_N "checking whether the C++-compiler accepts ${warn_flags}... $ECHO_C" >&6; }
8772         ac_ext=cpp
8773 ac_cpp='$CXXCPP $CPPFLAGS'
8774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8777
8778         __ensc_check_warnflags_old_CFLAGS="${CXXFLAGS}"
8779         CXXFLAGS="$warn_flags"
8780         cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 inline static void f(){}
8787 int
8788 main ()
8789 {
8790
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799   *) ac_try_echo=$ac_try;;
8800 esac
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802   (eval "$ac_compile") 2>conftest.er1
8803   ac_status=$?
8804   grep -v '^ *+' conftest.er1 >conftest.err
8805   rm -f conftest.er1
8806   cat conftest.err >&5
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); } && {
8809          test -z "$ac_cxx_werror_flag" ||
8810          test ! -s conftest.err
8811        } && test -s conftest.$ac_objext; then
8812   ensc_sys_compilerwarnflags_CXX=${warn_flags}
8813 else
8814   echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8816
8817         ensc_sys_compilerwarnflags_CXX=
8818 fi
8819
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821         ac_ext=c
8822 ac_cpp='$CPP $CPPFLAGS'
8823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8826
8827         CXXFLAGS="$__ensc_check_warnflags_old_CFLAGS"
8828
8829         if test x"${ensc_sys_compilerwarnflags_CXX}" = x; then
8830                 { echo "$as_me:$LINENO: result: no" >&5
8831 echo "${ECHO_T}no" >&6; }
8832         else
8833                 { echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6; }
8835         fi
8836
8837
8838
8839
8840
8841   echo 'void f(){}' > conftest.cc
8842   for i in -ansi   -Wall -pedantic -W -fmessage-length=0
8843   do
8844     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8845 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8846     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8847     then
8848       CXXFLAGS="${CXXFLAGS} $i"
8849       { echo "$as_me:$LINENO: result: yes" >&5
8850 echo "${ECHO_T}yes" >&6; }
8851     else
8852       { echo "$as_me:$LINENO: result: no" >&5
8853 echo "${ECHO_T}no" >&6; }
8854     fi
8855   done
8856   rm -f conftest.cc conftest.o
8857
8858
8859 { echo "$as_me:$LINENO: checking whether to enable extra optimizations" >&5
8860 echo $ECHO_N "checking whether to enable extra optimizations... $ECHO_C" >&6; }
8861 # Check whether --enable-extra-optimizations was given.
8862 if test "${enable_extra_optimizations+set}" = set; then
8863   enableval=$enable_extra_optimizations; case "$enableval" in
8864                   (yes) use_extra_optimizations=1;;
8865                   (no)  use_extra_optimizations=;;
8866                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&5
8867 echo "$as_me: error: '$enableval' is not a valid value for '--disable-extra-optimizations'" >&2;}
8868    { (exit 1); exit 1; }; };;
8869                esac
8870 else
8871   use_extra_optimizations=1
8872 fi
8873
8874
8875 if test x"$use_extra_optimizations" = x; then
8876         { echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6; }
8878 else
8879         { echo "$as_me:$LINENO: result: yes" >&5
8880 echo "${ECHO_T}yes" >&6; }
8881
8882
8883
8884 echo 'void f(){}' > conftest.c
8885   for i in -funit-at-a-time
8886   do
8887     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
8888 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
8889     if test -z "`${CC} ${ensc_sys_compilerwarnflags_C} $i -c conftest.c 2>&1`"
8890     then
8891       CFLAGS="${CFLAGS} $i"
8892       { echo "$as_me:$LINENO: result: yes" >&5
8893 echo "${ECHO_T}yes" >&6; }
8894     else
8895       { echo "$as_me:$LINENO: result: no" >&5
8896 echo "${ECHO_T}no" >&6; }
8897     fi
8898   done
8899   rm -f conftest.c conftest.o
8900
8901
8902
8903
8904   echo 'void f(){}' > conftest.cc
8905   for i in -funit-at-a-time
8906   do
8907     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
8908 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
8909     if test -z "`${CXX} ${ensc_sys_compilerwarnflags_CXX} $i -c conftest.cc 2>&1`"
8910     then
8911       CXXFLAGS="${CXXFLAGS} $i"
8912       { echo "$as_me:$LINENO: result: yes" >&5
8913 echo "${ECHO_T}yes" >&6; }
8914     else
8915       { echo "$as_me:$LINENO: result: no" >&5
8916 echo "${ECHO_T}no" >&6; }
8917     fi
8918   done
8919   rm -f conftest.cc conftest.o
8920
8921 fi
8922
8923 { echo "$as_me:$LINENO: checking whether to enable debug-code in library" >&5
8924 echo $ECHO_N "checking whether to enable debug-code in library... $ECHO_C" >&6; }
8925 # Check whether --enable-lib-debug was given.
8926 if test "${enable_lib_debug+set}" = set; then
8927   enableval=$enable_lib_debug; case "$enableval" in
8928                   (yes) use_lib_debug=1;;
8929                   (no)  use_lib_debug=;;
8930                   (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&5
8931 echo "$as_me: error: '$enableval' is not a valid value for '--enable-lib-debug'" >&2;}
8932    { (exit 1); exit 1; }; };;
8933                esac
8934 else
8935    use_lib_debug=
8936 fi
8937
8938
8939 if test x"$use_lib_debug" = x; then
8940         LIB_DEBUG_CPPFLAGS=-DNDEBUG
8941
8942         { echo "$as_me:$LINENO: result: no" >&5
8943 echo "${ECHO_T}no" >&6; }
8944 else
8945
8946         { echo "$as_me:$LINENO: result: yes" >&5
8947 echo "${ECHO_T}yes" >&6; }
8948 fi
8949
8950 { echo "$as_me:$LINENO: checking whether to enable expensive tests" >&5
8951 echo $ECHO_N "checking whether to enable expensive tests... $ECHO_C" >&6; }
8952 # Check whether --enable-expensive-tests was given.
8953 if test "${enable_expensive_tests+set}" = set; then
8954   enableval=$enable_expensive_tests; case "$enableval" in
8955                  (yes|no)  use_expensive_tests=$enableval;;
8956                  (*)       { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&5
8957 echo "$as_me: error: '$enableval' is not a valid value for '--enable-expensive-tests'" >&2;}
8958    { (exit 1); exit 1; }; };;
8959                esac
8960 else
8961    use_expensive_tests=no
8962 fi
8963
8964 { echo "$as_me:$LINENO: result: $use_expensive_tests" >&5
8965 echo "${ECHO_T}$use_expensive_tests" >&6; }
8966
8967 ENSC_USE_EXPENSIVE_TESTS="$use_expensive_tests"
8968
8969
8970
8971
8972         { echo "$as_me:$LINENO: checking for declarations in <linux/personality.h>" >&5
8973 echo $ECHO_N "checking for declarations in <linux/personality.h>... $ECHO_C" >&6; }
8974         { echo "$as_me:$LINENO: result: " >&5
8975 echo "${ECHO_T}" >&6; }
8976
8977         ac_ext=c
8978 ac_cpp='$CPP $CPPFLAGS'
8979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983         { echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
8984 echo $ECHO_N "checking whether MMAP_PAGE_ZERO is declared... $ECHO_C" >&6; }
8985 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h.  */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h.  */
8994
8995 #include <linux/personality.h>
8996
8997
8998 int
8999 main ()
9000 {
9001 #ifndef MMAP_PAGE_ZERO
9002   (void) MMAP_PAGE_ZERO;
9003 #endif
9004
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (ac_try="$ac_compile"
9011 case "(($ac_try" in
9012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013   *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016   (eval "$ac_compile") 2>conftest.er1
9017   ac_status=$?
9018   grep -v '^ *+' conftest.er1 >conftest.err
9019   rm -f conftest.er1
9020   cat conftest.err >&5
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); } && {
9023          test -z "$ac_c_werror_flag" ||
9024          test ! -s conftest.err
9025        } && test -s conftest.$ac_objext; then
9026   ac_cv_have_decl_MMAP_PAGE_ZERO=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031         ac_cv_have_decl_MMAP_PAGE_ZERO=no
9032 fi
9033
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 fi
9036 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
9037 echo "${ECHO_T}$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
9038 if test $ac_cv_have_decl_MMAP_PAGE_ZERO = yes; then
9039
9040 cat >>confdefs.h <<_ACEOF
9041 #define HAVE_DECL_MMAP_PAGE_ZERO 1
9042 _ACEOF
9043
9044
9045 else
9046   cat >>confdefs.h <<_ACEOF
9047 #define HAVE_DECL_MMAP_PAGE_ZERO 0
9048 _ACEOF
9049
9050
9051 fi
9052 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
9053 echo $ECHO_N "checking whether ADDR_LIMIT_32BIT is declared... $ECHO_C" >&6; }
9054 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   cat >conftest.$ac_ext <<_ACEOF
9058 /* confdefs.h.  */
9059 _ACEOF
9060 cat confdefs.h >>conftest.$ac_ext
9061 cat >>conftest.$ac_ext <<_ACEOF
9062 /* end confdefs.h.  */
9063
9064 #include <linux/personality.h>
9065
9066
9067 int
9068 main ()
9069 {
9070 #ifndef ADDR_LIMIT_32BIT
9071   (void) ADDR_LIMIT_32BIT;
9072 #endif
9073
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9080 case "(($ac_try" in
9081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082   *) ac_try_echo=$ac_try;;
9083 esac
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085   (eval "$ac_compile") 2>conftest.er1
9086   ac_status=$?
9087   grep -v '^ *+' conftest.er1 >conftest.err
9088   rm -f conftest.er1
9089   cat conftest.err >&5
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } && {
9092          test -z "$ac_c_werror_flag" ||
9093          test ! -s conftest.err
9094        } && test -s conftest.$ac_objext; then
9095   ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
9096 else
9097   echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100         ac_cv_have_decl_ADDR_LIMIT_32BIT=no
9101 fi
9102
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 fi
9105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
9106 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
9107 if test $ac_cv_have_decl_ADDR_LIMIT_32BIT = yes; then
9108
9109 cat >>confdefs.h <<_ACEOF
9110 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
9111 _ACEOF
9112
9113
9114 else
9115   cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
9117 _ACEOF
9118
9119
9120 fi
9121 { echo "$as_me:$LINENO: checking whether SHORT_INODE is declared" >&5
9122 echo $ECHO_N "checking whether SHORT_INODE is declared... $ECHO_C" >&6; }
9123 if test "${ac_cv_have_decl_SHORT_INODE+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132
9133 #include <linux/personality.h>
9134
9135
9136 int
9137 main ()
9138 {
9139 #ifndef SHORT_INODE
9140   (void) SHORT_INODE;
9141 #endif
9142
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9149 case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_compile") 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } && {
9161          test -z "$ac_c_werror_flag" ||
9162          test ! -s conftest.err
9163        } && test -s conftest.$ac_objext; then
9164   ac_cv_have_decl_SHORT_INODE=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169         ac_cv_have_decl_SHORT_INODE=no
9170 fi
9171
9172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9173 fi
9174 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHORT_INODE" >&5
9175 echo "${ECHO_T}$ac_cv_have_decl_SHORT_INODE" >&6; }
9176 if test $ac_cv_have_decl_SHORT_INODE = yes; then
9177
9178 cat >>confdefs.h <<_ACEOF
9179 #define HAVE_DECL_SHORT_INODE 1
9180 _ACEOF
9181
9182
9183 else
9184   cat >>confdefs.h <<_ACEOF
9185 #define HAVE_DECL_SHORT_INODE 0
9186 _ACEOF
9187
9188
9189 fi
9190 { echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
9191 echo $ECHO_N "checking whether WHOLE_SECONDS is declared... $ECHO_C" >&6; }
9192 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
9193   echo $ECHO_N "(cached) $ECHO_C" >&6
9194 else
9195   cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201
9202 #include <linux/personality.h>
9203
9204
9205 int
9206 main ()
9207 {
9208 #ifndef WHOLE_SECONDS
9209   (void) WHOLE_SECONDS;
9210 #endif
9211
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 rm -f conftest.$ac_objext
9217 if { (ac_try="$ac_compile"
9218 case "(($ac_try" in
9219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220   *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223   (eval "$ac_compile") 2>conftest.er1
9224   ac_status=$?
9225   grep -v '^ *+' conftest.er1 >conftest.err
9226   rm -f conftest.er1
9227   cat conftest.err >&5
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); } && {
9230          test -z "$ac_c_werror_flag" ||
9231          test ! -s conftest.err
9232        } && test -s conftest.$ac_objext; then
9233   ac_cv_have_decl_WHOLE_SECONDS=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238         ac_cv_have_decl_WHOLE_SECONDS=no
9239 fi
9240
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 fi
9243 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
9244 echo "${ECHO_T}$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
9245 if test $ac_cv_have_decl_WHOLE_SECONDS = yes; then
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_DECL_WHOLE_SECONDS 1
9249 _ACEOF
9250
9251
9252 else
9253   cat >>confdefs.h <<_ACEOF
9254 #define HAVE_DECL_WHOLE_SECONDS 0
9255 _ACEOF
9256
9257
9258 fi
9259 { echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
9260 echo $ECHO_N "checking whether STICKY_TIMEOUTS is declared... $ECHO_C" >&6; }
9261 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
9262   echo $ECHO_N "(cached) $ECHO_C" >&6
9263 else
9264   cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 #include <linux/personality.h>
9272
9273
9274 int
9275 main ()
9276 {
9277 #ifndef STICKY_TIMEOUTS
9278   (void) STICKY_TIMEOUTS;
9279 #endif
9280
9281   ;
9282   return 0;
9283 }
9284 _ACEOF
9285 rm -f conftest.$ac_objext
9286 if { (ac_try="$ac_compile"
9287 case "(($ac_try" in
9288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289   *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292   (eval "$ac_compile") 2>conftest.er1
9293   ac_status=$?
9294   grep -v '^ *+' conftest.er1 >conftest.err
9295   rm -f conftest.er1
9296   cat conftest.err >&5
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } && {
9299          test -z "$ac_c_werror_flag" ||
9300          test ! -s conftest.err
9301        } && test -s conftest.$ac_objext; then
9302   ac_cv_have_decl_STICKY_TIMEOUTS=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307         ac_cv_have_decl_STICKY_TIMEOUTS=no
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
9313 echo "${ECHO_T}$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
9314 if test $ac_cv_have_decl_STICKY_TIMEOUTS = yes; then
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define HAVE_DECL_STICKY_TIMEOUTS 1
9318 _ACEOF
9319
9320
9321 else
9322   cat >>confdefs.h <<_ACEOF
9323 #define HAVE_DECL_STICKY_TIMEOUTS 0
9324 _ACEOF
9325
9326
9327 fi
9328 { echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
9329 echo $ECHO_N "checking whether ADDR_LIMIT_3GB is declared... $ECHO_C" >&6; }
9330 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
9331   echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333   cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339
9340 #include <linux/personality.h>
9341
9342
9343 int
9344 main ()
9345 {
9346 #ifndef ADDR_LIMIT_3GB
9347   (void) ADDR_LIMIT_3GB;
9348 #endif
9349
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 rm -f conftest.$ac_objext
9355 if { (ac_try="$ac_compile"
9356 case "(($ac_try" in
9357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358   *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361   (eval "$ac_compile") 2>conftest.er1
9362   ac_status=$?
9363   grep -v '^ *+' conftest.er1 >conftest.err
9364   rm -f conftest.er1
9365   cat conftest.err >&5
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } && {
9368          test -z "$ac_c_werror_flag" ||
9369          test ! -s conftest.err
9370        } && test -s conftest.$ac_objext; then
9371   ac_cv_have_decl_ADDR_LIMIT_3GB=yes
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376         ac_cv_have_decl_ADDR_LIMIT_3GB=no
9377 fi
9378
9379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9380 fi
9381 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
9382 echo "${ECHO_T}$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
9383 if test $ac_cv_have_decl_ADDR_LIMIT_3GB = yes; then
9384
9385 cat >>confdefs.h <<_ACEOF
9386 #define HAVE_DECL_ADDR_LIMIT_3GB 1
9387 _ACEOF
9388
9389
9390 else
9391   cat >>confdefs.h <<_ACEOF
9392 #define HAVE_DECL_ADDR_LIMIT_3GB 0
9393 _ACEOF
9394
9395
9396 fi
9397
9398
9399
9400         { echo "$as_me:$LINENO: checking whether PER_LINUX is declared" >&5
9401 echo $ECHO_N "checking whether PER_LINUX is declared... $ECHO_C" >&6; }
9402 if test "${ac_cv_have_decl_PER_LINUX+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 #include <linux/personality.h>
9413
9414
9415 int
9416 main ()
9417 {
9418 #ifndef PER_LINUX
9419   (void) PER_LINUX;
9420 #endif
9421
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 rm -f conftest.$ac_objext
9427 if { (ac_try="$ac_compile"
9428 case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433   (eval "$ac_compile") 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && {
9440          test -z "$ac_c_werror_flag" ||
9441          test ! -s conftest.err
9442        } && test -s conftest.$ac_objext; then
9443   ac_cv_have_decl_PER_LINUX=yes
9444 else
9445   echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448         ac_cv_have_decl_PER_LINUX=no
9449 fi
9450
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 fi
9453 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX" >&5
9454 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX" >&6; }
9455 if test $ac_cv_have_decl_PER_LINUX = yes; then
9456
9457 cat >>confdefs.h <<_ACEOF
9458 #define HAVE_DECL_PER_LINUX 1
9459 _ACEOF
9460
9461
9462 else
9463   cat >>confdefs.h <<_ACEOF
9464 #define HAVE_DECL_PER_LINUX 0
9465 _ACEOF
9466
9467
9468 fi
9469 { echo "$as_me:$LINENO: checking whether PER_LINUX_32BIT is declared" >&5
9470 echo $ECHO_N "checking whether PER_LINUX_32BIT is declared... $ECHO_C" >&6; }
9471 if test "${ac_cv_have_decl_PER_LINUX_32BIT+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480
9481 #include <linux/personality.h>
9482
9483
9484 int
9485 main ()
9486 {
9487 #ifndef PER_LINUX_32BIT
9488   (void) PER_LINUX_32BIT;
9489 #endif
9490
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (ac_try="$ac_compile"
9497 case "(($ac_try" in
9498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499   *) ac_try_echo=$ac_try;;
9500 esac
9501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9502   (eval "$ac_compile") 2>conftest.er1
9503   ac_status=$?
9504   grep -v '^ *+' conftest.er1 >conftest.err
9505   rm -f conftest.er1
9506   cat conftest.err >&5
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); } && {
9509          test -z "$ac_c_werror_flag" ||
9510          test ! -s conftest.err
9511        } && test -s conftest.$ac_objext; then
9512   ac_cv_have_decl_PER_LINUX_32BIT=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517         ac_cv_have_decl_PER_LINUX_32BIT=no
9518 fi
9519
9520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 fi
9522 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX_32BIT" >&5
9523 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX_32BIT" >&6; }
9524 if test $ac_cv_have_decl_PER_LINUX_32BIT = yes; then
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_DECL_PER_LINUX_32BIT 1
9528 _ACEOF
9529
9530
9531 else
9532   cat >>confdefs.h <<_ACEOF
9533 #define HAVE_DECL_PER_LINUX_32BIT 0
9534 _ACEOF
9535
9536
9537 fi
9538 { echo "$as_me:$LINENO: checking whether PER_SVR4 is declared" >&5
9539 echo $ECHO_N "checking whether PER_SVR4 is declared... $ECHO_C" >&6; }
9540 if test "${ac_cv_have_decl_PER_SVR4+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549
9550 #include <linux/personality.h>
9551
9552
9553 int
9554 main ()
9555 {
9556 #ifndef PER_SVR4
9557   (void) PER_SVR4;
9558 #endif
9559
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9566 case "(($ac_try" in
9567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568   *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571   (eval "$ac_compile") 2>conftest.er1
9572   ac_status=$?
9573   grep -v '^ *+' conftest.er1 >conftest.err
9574   rm -f conftest.er1
9575   cat conftest.err >&5
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } && {
9578          test -z "$ac_c_werror_flag" ||
9579          test ! -s conftest.err
9580        } && test -s conftest.$ac_objext; then
9581   ac_cv_have_decl_PER_SVR4=yes
9582 else
9583   echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586         ac_cv_have_decl_PER_SVR4=no
9587 fi
9588
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 fi
9591 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR4" >&5
9592 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR4" >&6; }
9593 if test $ac_cv_have_decl_PER_SVR4 = yes; then
9594
9595 cat >>confdefs.h <<_ACEOF
9596 #define HAVE_DECL_PER_SVR4 1
9597 _ACEOF
9598
9599
9600 else
9601   cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_PER_SVR4 0
9603 _ACEOF
9604
9605
9606 fi
9607 { echo "$as_me:$LINENO: checking whether PER_SVR3 is declared" >&5
9608 echo $ECHO_N "checking whether PER_SVR3 is declared... $ECHO_C" >&6; }
9609 if test "${ac_cv_have_decl_PER_SVR3+set}" = set; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 #include <linux/personality.h>
9620
9621
9622 int
9623 main ()
9624 {
9625 #ifndef PER_SVR3
9626   (void) PER_SVR3;
9627 #endif
9628
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 rm -f conftest.$ac_objext
9634 if { (ac_try="$ac_compile"
9635 case "(($ac_try" in
9636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637   *) ac_try_echo=$ac_try;;
9638 esac
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640   (eval "$ac_compile") 2>conftest.er1
9641   ac_status=$?
9642   grep -v '^ *+' conftest.er1 >conftest.err
9643   rm -f conftest.er1
9644   cat conftest.err >&5
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); } && {
9647          test -z "$ac_c_werror_flag" ||
9648          test ! -s conftest.err
9649        } && test -s conftest.$ac_objext; then
9650   ac_cv_have_decl_PER_SVR3=yes
9651 else
9652   echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655         ac_cv_have_decl_PER_SVR3=no
9656 fi
9657
9658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9659 fi
9660 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SVR3" >&5
9661 echo "${ECHO_T}$ac_cv_have_decl_PER_SVR3" >&6; }
9662 if test $ac_cv_have_decl_PER_SVR3 = yes; then
9663
9664 cat >>confdefs.h <<_ACEOF
9665 #define HAVE_DECL_PER_SVR3 1
9666 _ACEOF
9667
9668
9669 else
9670   cat >>confdefs.h <<_ACEOF
9671 #define HAVE_DECL_PER_SVR3 0
9672 _ACEOF
9673
9674
9675 fi
9676 { echo "$as_me:$LINENO: checking whether PER_SCOSVR3 is declared" >&5
9677 echo $ECHO_N "checking whether PER_SCOSVR3 is declared... $ECHO_C" >&6; }
9678 if test "${ac_cv_have_decl_PER_SCOSVR3+set}" = set; then
9679   echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681   cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687
9688 #include <linux/personality.h>
9689
9690
9691 int
9692 main ()
9693 {
9694 #ifndef PER_SCOSVR3
9695   (void) PER_SCOSVR3;
9696 #endif
9697
9698   ;
9699   return 0;
9700 }
9701 _ACEOF
9702 rm -f conftest.$ac_objext
9703 if { (ac_try="$ac_compile"
9704 case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_compile") 2>conftest.er1
9710   ac_status=$?
9711   grep -v '^ *+' conftest.er1 >conftest.err
9712   rm -f conftest.er1
9713   cat conftest.err >&5
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } && {
9716          test -z "$ac_c_werror_flag" ||
9717          test ! -s conftest.err
9718        } && test -s conftest.$ac_objext; then
9719   ac_cv_have_decl_PER_SCOSVR3=yes
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724         ac_cv_have_decl_PER_SCOSVR3=no
9725 fi
9726
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SCOSVR3" >&5
9730 echo "${ECHO_T}$ac_cv_have_decl_PER_SCOSVR3" >&6; }
9731 if test $ac_cv_have_decl_PER_SCOSVR3 = yes; then
9732
9733 cat >>confdefs.h <<_ACEOF
9734 #define HAVE_DECL_PER_SCOSVR3 1
9735 _ACEOF
9736
9737
9738 else
9739   cat >>confdefs.h <<_ACEOF
9740 #define HAVE_DECL_PER_SCOSVR3 0
9741 _ACEOF
9742
9743
9744 fi
9745 { echo "$as_me:$LINENO: checking whether PER_OSR5 is declared" >&5
9746 echo $ECHO_N "checking whether PER_OSR5 is declared... $ECHO_C" >&6; }
9747 if test "${ac_cv_have_decl_PER_OSR5+set}" = set; then
9748   echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750   cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756
9757 #include <linux/personality.h>
9758
9759
9760 int
9761 main ()
9762 {
9763 #ifndef PER_OSR5
9764   (void) PER_OSR5;
9765 #endif
9766
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (ac_try="$ac_compile"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_compile") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } && {
9785          test -z "$ac_c_werror_flag" ||
9786          test ! -s conftest.err
9787        } && test -s conftest.$ac_objext; then
9788   ac_cv_have_decl_PER_OSR5=yes
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793         ac_cv_have_decl_PER_OSR5=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSR5" >&5
9799 echo "${ECHO_T}$ac_cv_have_decl_PER_OSR5" >&6; }
9800 if test $ac_cv_have_decl_PER_OSR5 = yes; then
9801
9802 cat >>confdefs.h <<_ACEOF
9803 #define HAVE_DECL_PER_OSR5 1
9804 _ACEOF
9805
9806
9807 else
9808   cat >>confdefs.h <<_ACEOF
9809 #define HAVE_DECL_PER_OSR5 0
9810 _ACEOF
9811
9812
9813 fi
9814 { echo "$as_me:$LINENO: checking whether PER_WYSEV386 is declared" >&5
9815 echo $ECHO_N "checking whether PER_WYSEV386 is declared... $ECHO_C" >&6; }
9816 if test "${ac_cv_have_decl_PER_WYSEV386+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825
9826 #include <linux/personality.h>
9827
9828
9829 int
9830 main ()
9831 {
9832 #ifndef PER_WYSEV386
9833   (void) PER_WYSEV386;
9834 #endif
9835
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext
9841 if { (ac_try="$ac_compile"
9842 case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_compile") 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } && {
9854          test -z "$ac_c_werror_flag" ||
9855          test ! -s conftest.err
9856        } && test -s conftest.$ac_objext; then
9857   ac_cv_have_decl_PER_WYSEV386=yes
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862         ac_cv_have_decl_PER_WYSEV386=no
9863 fi
9864
9865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866 fi
9867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_WYSEV386" >&5
9868 echo "${ECHO_T}$ac_cv_have_decl_PER_WYSEV386" >&6; }
9869 if test $ac_cv_have_decl_PER_WYSEV386 = yes; then
9870
9871 cat >>confdefs.h <<_ACEOF
9872 #define HAVE_DECL_PER_WYSEV386 1
9873 _ACEOF
9874
9875
9876 else
9877   cat >>confdefs.h <<_ACEOF
9878 #define HAVE_DECL_PER_WYSEV386 0
9879 _ACEOF
9880
9881
9882 fi
9883 { echo "$as_me:$LINENO: checking whether PER_ISCR4 is declared" >&5
9884 echo $ECHO_N "checking whether PER_ISCR4 is declared... $ECHO_C" >&6; }
9885 if test "${ac_cv_have_decl_PER_ISCR4+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894
9895 #include <linux/personality.h>
9896
9897
9898 int
9899 main ()
9900 {
9901 #ifndef PER_ISCR4
9902   (void) PER_ISCR4;
9903 #endif
9904
9905   ;
9906   return 0;
9907 }
9908 _ACEOF
9909 rm -f conftest.$ac_objext
9910 if { (ac_try="$ac_compile"
9911 case "(($ac_try" in
9912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913   *) ac_try_echo=$ac_try;;
9914 esac
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916   (eval "$ac_compile") 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } && {
9923          test -z "$ac_c_werror_flag" ||
9924          test ! -s conftest.err
9925        } && test -s conftest.$ac_objext; then
9926   ac_cv_have_decl_PER_ISCR4=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_have_decl_PER_ISCR4=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 fi
9936 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_ISCR4" >&5
9937 echo "${ECHO_T}$ac_cv_have_decl_PER_ISCR4" >&6; }
9938 if test $ac_cv_have_decl_PER_ISCR4 = yes; then
9939
9940 cat >>confdefs.h <<_ACEOF
9941 #define HAVE_DECL_PER_ISCR4 1
9942 _ACEOF
9943
9944
9945 else
9946   cat >>confdefs.h <<_ACEOF
9947 #define HAVE_DECL_PER_ISCR4 0
9948 _ACEOF
9949
9950
9951 fi
9952 { echo "$as_me:$LINENO: checking whether PER_BSD is declared" >&5
9953 echo $ECHO_N "checking whether PER_BSD is declared... $ECHO_C" >&6; }
9954 if test "${ac_cv_have_decl_PER_BSD+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963
9964 #include <linux/personality.h>
9965
9966
9967 int
9968 main ()
9969 {
9970 #ifndef PER_BSD
9971   (void) PER_BSD;
9972 #endif
9973
9974   ;
9975   return 0;
9976 }
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9980 case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_compile") 2>conftest.er1
9986   ac_status=$?
9987   grep -v '^ *+' conftest.er1 >conftest.err
9988   rm -f conftest.er1
9989   cat conftest.err >&5
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } && {
9992          test -z "$ac_c_werror_flag" ||
9993          test ! -s conftest.err
9994        } && test -s conftest.$ac_objext; then
9995   ac_cv_have_decl_PER_BSD=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000         ac_cv_have_decl_PER_BSD=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 fi
10005 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_BSD" >&5
10006 echo "${ECHO_T}$ac_cv_have_decl_PER_BSD" >&6; }
10007 if test $ac_cv_have_decl_PER_BSD = yes; then
10008
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_DECL_PER_BSD 1
10011 _ACEOF
10012
10013
10014 else
10015   cat >>confdefs.h <<_ACEOF
10016 #define HAVE_DECL_PER_BSD 0
10017 _ACEOF
10018
10019
10020 fi
10021 { echo "$as_me:$LINENO: checking whether PER_SUNOS is declared" >&5
10022 echo $ECHO_N "checking whether PER_SUNOS is declared... $ECHO_C" >&6; }
10023 if test "${ac_cv_have_decl_PER_SUNOS+set}" = set; then
10024   echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026   cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h.  */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h.  */
10032
10033 #include <linux/personality.h>
10034
10035
10036 int
10037 main ()
10038 {
10039 #ifndef PER_SUNOS
10040   (void) PER_SUNOS;
10041 #endif
10042
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_compile") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } && {
10061          test -z "$ac_c_werror_flag" ||
10062          test ! -s conftest.err
10063        } && test -s conftest.$ac_objext; then
10064   ac_cv_have_decl_PER_SUNOS=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069         ac_cv_have_decl_PER_SUNOS=no
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SUNOS" >&5
10075 echo "${ECHO_T}$ac_cv_have_decl_PER_SUNOS" >&6; }
10076 if test $ac_cv_have_decl_PER_SUNOS = yes; then
10077
10078 cat >>confdefs.h <<_ACEOF
10079 #define HAVE_DECL_PER_SUNOS 1
10080 _ACEOF
10081
10082
10083 else
10084   cat >>confdefs.h <<_ACEOF
10085 #define HAVE_DECL_PER_SUNOS 0
10086 _ACEOF
10087
10088
10089 fi
10090 { echo "$as_me:$LINENO: checking whether PER_XENIX is declared" >&5
10091 echo $ECHO_N "checking whether PER_XENIX is declared... $ECHO_C" >&6; }
10092 if test "${ac_cv_have_decl_PER_XENIX+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101
10102 #include <linux/personality.h>
10103
10104
10105 int
10106 main ()
10107 {
10108 #ifndef PER_XENIX
10109   (void) PER_XENIX;
10110 #endif
10111
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext
10117 if { (ac_try="$ac_compile"
10118 case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123   (eval "$ac_compile") 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } && {
10130          test -z "$ac_c_werror_flag" ||
10131          test ! -s conftest.err
10132        } && test -s conftest.$ac_objext; then
10133   ac_cv_have_decl_PER_XENIX=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138         ac_cv_have_decl_PER_XENIX=no
10139 fi
10140
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_XENIX" >&5
10144 echo "${ECHO_T}$ac_cv_have_decl_PER_XENIX" >&6; }
10145 if test $ac_cv_have_decl_PER_XENIX = yes; then
10146
10147 cat >>confdefs.h <<_ACEOF
10148 #define HAVE_DECL_PER_XENIX 1
10149 _ACEOF
10150
10151
10152 else
10153   cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DECL_PER_XENIX 0
10155 _ACEOF
10156
10157
10158 fi
10159 { echo "$as_me:$LINENO: checking whether PER_LINUX32 is declared" >&5
10160 echo $ECHO_N "checking whether PER_LINUX32 is declared... $ECHO_C" >&6; }
10161 if test "${ac_cv_have_decl_PER_LINUX32+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170
10171 #include <linux/personality.h>
10172
10173
10174 int
10175 main ()
10176 {
10177 #ifndef PER_LINUX32
10178   (void) PER_LINUX32;
10179 #endif
10180
10181   ;
10182   return 0;
10183 }
10184 _ACEOF
10185 rm -f conftest.$ac_objext
10186 if { (ac_try="$ac_compile"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_compile") 2>conftest.er1
10193   ac_status=$?
10194   grep -v '^ *+' conftest.er1 >conftest.err
10195   rm -f conftest.er1
10196   cat conftest.err >&5
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); } && {
10199          test -z "$ac_c_werror_flag" ||
10200          test ! -s conftest.err
10201        } && test -s conftest.$ac_objext; then
10202   ac_cv_have_decl_PER_LINUX32=yes
10203 else
10204   echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10206
10207         ac_cv_have_decl_PER_LINUX32=no
10208 fi
10209
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 fi
10212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32" >&5
10213 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32" >&6; }
10214 if test $ac_cv_have_decl_PER_LINUX32 = yes; then
10215
10216 cat >>confdefs.h <<_ACEOF
10217 #define HAVE_DECL_PER_LINUX32 1
10218 _ACEOF
10219
10220
10221 else
10222   cat >>confdefs.h <<_ACEOF
10223 #define HAVE_DECL_PER_LINUX32 0
10224 _ACEOF
10225
10226
10227 fi
10228 { echo "$as_me:$LINENO: checking whether PER_LINUX32_3GB is declared" >&5
10229 echo $ECHO_N "checking whether PER_LINUX32_3GB is declared... $ECHO_C" >&6; }
10230 if test "${ac_cv_have_decl_PER_LINUX32_3GB+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233   cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239
10240 #include <linux/personality.h>
10241
10242
10243 int
10244 main ()
10245 {
10246 #ifndef PER_LINUX32_3GB
10247   (void) PER_LINUX32_3GB;
10248 #endif
10249
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261   (eval "$ac_compile") 2>conftest.er1
10262   ac_status=$?
10263   grep -v '^ *+' conftest.er1 >conftest.err
10264   rm -f conftest.er1
10265   cat conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } && {
10268          test -z "$ac_c_werror_flag" ||
10269          test ! -s conftest.err
10270        } && test -s conftest.$ac_objext; then
10271   ac_cv_have_decl_PER_LINUX32_3GB=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276         ac_cv_have_decl_PER_LINUX32_3GB=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10280 fi
10281 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_LINUX32_3GB" >&5
10282 echo "${ECHO_T}$ac_cv_have_decl_PER_LINUX32_3GB" >&6; }
10283 if test $ac_cv_have_decl_PER_LINUX32_3GB = yes; then
10284
10285 cat >>confdefs.h <<_ACEOF
10286 #define HAVE_DECL_PER_LINUX32_3GB 1
10287 _ACEOF
10288
10289
10290 else
10291   cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DECL_PER_LINUX32_3GB 0
10293 _ACEOF
10294
10295
10296 fi
10297 { echo "$as_me:$LINENO: checking whether PER_IRIX32 is declared" >&5
10298 echo $ECHO_N "checking whether PER_IRIX32 is declared... $ECHO_C" >&6; }
10299 if test "${ac_cv_have_decl_PER_IRIX32+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308
10309 #include <linux/personality.h>
10310
10311
10312 int
10313 main ()
10314 {
10315 #ifndef PER_IRIX32
10316   (void) PER_IRIX32;
10317 #endif
10318
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext
10324 if { (ac_try="$ac_compile"
10325 case "(($ac_try" in
10326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327   *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330   (eval "$ac_compile") 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } && {
10337          test -z "$ac_c_werror_flag" ||
10338          test ! -s conftest.err
10339        } && test -s conftest.$ac_objext; then
10340   ac_cv_have_decl_PER_IRIX32=yes
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345         ac_cv_have_decl_PER_IRIX32=no
10346 fi
10347
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX32" >&5
10351 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX32" >&6; }
10352 if test $ac_cv_have_decl_PER_IRIX32 = yes; then
10353
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_DECL_PER_IRIX32 1
10356 _ACEOF
10357
10358
10359 else
10360   cat >>confdefs.h <<_ACEOF
10361 #define HAVE_DECL_PER_IRIX32 0
10362 _ACEOF
10363
10364
10365 fi
10366 { echo "$as_me:$LINENO: checking whether PER_IRIXN32 is declared" >&5
10367 echo $ECHO_N "checking whether PER_IRIXN32 is declared... $ECHO_C" >&6; }
10368 if test "${ac_cv_have_decl_PER_IRIXN32+set}" = set; then
10369   echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371   cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377
10378 #include <linux/personality.h>
10379
10380
10381 int
10382 main ()
10383 {
10384 #ifndef PER_IRIXN32
10385   (void) PER_IRIXN32;
10386 #endif
10387
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (ac_try="$ac_compile"
10394 case "(($ac_try" in
10395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396   *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399   (eval "$ac_compile") 2>conftest.er1
10400   ac_status=$?
10401   grep -v '^ *+' conftest.er1 >conftest.err
10402   rm -f conftest.er1
10403   cat conftest.err >&5
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); } && {
10406          test -z "$ac_c_werror_flag" ||
10407          test ! -s conftest.err
10408        } && test -s conftest.$ac_objext; then
10409   ac_cv_have_decl_PER_IRIXN32=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414         ac_cv_have_decl_PER_IRIXN32=no
10415 fi
10416
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 fi
10419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIXN32" >&5
10420 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIXN32" >&6; }
10421 if test $ac_cv_have_decl_PER_IRIXN32 = yes; then
10422
10423 cat >>confdefs.h <<_ACEOF
10424 #define HAVE_DECL_PER_IRIXN32 1
10425 _ACEOF
10426
10427
10428 else
10429   cat >>confdefs.h <<_ACEOF
10430 #define HAVE_DECL_PER_IRIXN32 0
10431 _ACEOF
10432
10433
10434 fi
10435 { echo "$as_me:$LINENO: checking whether PER_IRIX64 is declared" >&5
10436 echo $ECHO_N "checking whether PER_IRIX64 is declared... $ECHO_C" >&6; }
10437 if test "${ac_cv_have_decl_PER_IRIX64+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446
10447 #include <linux/personality.h>
10448
10449
10450 int
10451 main ()
10452 {
10453 #ifndef PER_IRIX64
10454   (void) PER_IRIX64;
10455 #endif
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468   (eval "$ac_compile") 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } && {
10475          test -z "$ac_c_werror_flag" ||
10476          test ! -s conftest.err
10477        } && test -s conftest.$ac_objext; then
10478   ac_cv_have_decl_PER_IRIX64=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483         ac_cv_have_decl_PER_IRIX64=no
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 fi
10488 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_IRIX64" >&5
10489 echo "${ECHO_T}$ac_cv_have_decl_PER_IRIX64" >&6; }
10490 if test $ac_cv_have_decl_PER_IRIX64 = yes; then
10491
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_DECL_PER_IRIX64 1
10494 _ACEOF
10495
10496
10497 else
10498   cat >>confdefs.h <<_ACEOF
10499 #define HAVE_DECL_PER_IRIX64 0
10500 _ACEOF
10501
10502
10503 fi
10504 { echo "$as_me:$LINENO: checking whether PER_RISCOS is declared" >&5
10505 echo $ECHO_N "checking whether PER_RISCOS is declared... $ECHO_C" >&6; }
10506 if test "${ac_cv_have_decl_PER_RISCOS+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515
10516 #include <linux/personality.h>
10517
10518
10519 int
10520 main ()
10521 {
10522 #ifndef PER_RISCOS
10523   (void) PER_RISCOS;
10524 #endif
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (ac_try="$ac_compile"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_compile") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } && {
10544          test -z "$ac_c_werror_flag" ||
10545          test ! -s conftest.err
10546        } && test -s conftest.$ac_objext; then
10547   ac_cv_have_decl_PER_RISCOS=yes
10548 else
10549   echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552         ac_cv_have_decl_PER_RISCOS=no
10553 fi
10554
10555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_RISCOS" >&5
10558 echo "${ECHO_T}$ac_cv_have_decl_PER_RISCOS" >&6; }
10559 if test $ac_cv_have_decl_PER_RISCOS = yes; then
10560
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_DECL_PER_RISCOS 1
10563 _ACEOF
10564
10565
10566 else
10567   cat >>confdefs.h <<_ACEOF
10568 #define HAVE_DECL_PER_RISCOS 0
10569 _ACEOF
10570
10571
10572 fi
10573 { echo "$as_me:$LINENO: checking whether PER_SOLARIS is declared" >&5
10574 echo $ECHO_N "checking whether PER_SOLARIS is declared... $ECHO_C" >&6; }
10575 if test "${ac_cv_have_decl_PER_SOLARIS+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 #include <linux/personality.h>
10586
10587
10588 int
10589 main ()
10590 {
10591 #ifndef PER_SOLARIS
10592   (void) PER_SOLARIS;
10593 #endif
10594
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_compile") 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } && {
10613          test -z "$ac_c_werror_flag" ||
10614          test ! -s conftest.err
10615        } && test -s conftest.$ac_objext; then
10616   ac_cv_have_decl_PER_SOLARIS=yes
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621         ac_cv_have_decl_PER_SOLARIS=no
10622 fi
10623
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 fi
10626 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_SOLARIS" >&5
10627 echo "${ECHO_T}$ac_cv_have_decl_PER_SOLARIS" >&6; }
10628 if test $ac_cv_have_decl_PER_SOLARIS = yes; then
10629
10630 cat >>confdefs.h <<_ACEOF
10631 #define HAVE_DECL_PER_SOLARIS 1
10632 _ACEOF
10633
10634
10635 else
10636   cat >>confdefs.h <<_ACEOF
10637 #define HAVE_DECL_PER_SOLARIS 0
10638 _ACEOF
10639
10640
10641 fi
10642 { echo "$as_me:$LINENO: checking whether PER_UW7 is declared" >&5
10643 echo $ECHO_N "checking whether PER_UW7 is declared... $ECHO_C" >&6; }
10644 if test "${ac_cv_have_decl_PER_UW7+set}" = set; then
10645   echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647   cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653
10654 #include <linux/personality.h>
10655
10656
10657 int
10658 main ()
10659 {
10660 #ifndef PER_UW7
10661   (void) PER_UW7;
10662 #endif
10663
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext
10669 if { (ac_try="$ac_compile"
10670 case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675   (eval "$ac_compile") 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } && {
10682          test -z "$ac_c_werror_flag" ||
10683          test ! -s conftest.err
10684        } && test -s conftest.$ac_objext; then
10685   ac_cv_have_decl_PER_UW7=yes
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690         ac_cv_have_decl_PER_UW7=no
10691 fi
10692
10693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 fi
10695 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_UW7" >&5
10696 echo "${ECHO_T}$ac_cv_have_decl_PER_UW7" >&6; }
10697 if test $ac_cv_have_decl_PER_UW7 = yes; then
10698
10699 cat >>confdefs.h <<_ACEOF
10700 #define HAVE_DECL_PER_UW7 1
10701 _ACEOF
10702
10703
10704 else
10705   cat >>confdefs.h <<_ACEOF
10706 #define HAVE_DECL_PER_UW7 0
10707 _ACEOF
10708
10709
10710 fi
10711 { echo "$as_me:$LINENO: checking whether PER_HPUX is declared" >&5
10712 echo $ECHO_N "checking whether PER_HPUX is declared... $ECHO_C" >&6; }
10713 if test "${ac_cv_have_decl_PER_HPUX+set}" = set; then
10714   echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716   cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722
10723 #include <linux/personality.h>
10724
10725
10726 int
10727 main ()
10728 {
10729 #ifndef PER_HPUX
10730   (void) PER_HPUX;
10731 #endif
10732
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (ac_try="$ac_compile"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_compile") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } && {
10751          test -z "$ac_c_werror_flag" ||
10752          test ! -s conftest.err
10753        } && test -s conftest.$ac_objext; then
10754   ac_cv_have_decl_PER_HPUX=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759         ac_cv_have_decl_PER_HPUX=no
10760 fi
10761
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 fi
10764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_HPUX" >&5
10765 echo "${ECHO_T}$ac_cv_have_decl_PER_HPUX" >&6; }
10766 if test $ac_cv_have_decl_PER_HPUX = yes; then
10767
10768 cat >>confdefs.h <<_ACEOF
10769 #define HAVE_DECL_PER_HPUX 1
10770 _ACEOF
10771
10772
10773 else
10774   cat >>confdefs.h <<_ACEOF
10775 #define HAVE_DECL_PER_HPUX 0
10776 _ACEOF
10777
10778
10779 fi
10780 { echo "$as_me:$LINENO: checking whether PER_OSF4 is declared" >&5
10781 echo $ECHO_N "checking whether PER_OSF4 is declared... $ECHO_C" >&6; }
10782 if test "${ac_cv_have_decl_PER_OSF4+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791
10792 #include <linux/personality.h>
10793
10794
10795 int
10796 main ()
10797 {
10798 #ifndef PER_OSF4
10799   (void) PER_OSF4;
10800 #endif
10801
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext
10807 if { (ac_try="$ac_compile"
10808 case "(($ac_try" in
10809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810   *) ac_try_echo=$ac_try;;
10811 esac
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813   (eval "$ac_compile") 2>conftest.er1
10814   ac_status=$?
10815   grep -v '^ *+' conftest.er1 >conftest.err
10816   rm -f conftest.er1
10817   cat conftest.err >&5
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } && {
10820          test -z "$ac_c_werror_flag" ||
10821          test ! -s conftest.err
10822        } && test -s conftest.$ac_objext; then
10823   ac_cv_have_decl_PER_OSF4=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828         ac_cv_have_decl_PER_OSF4=no
10829 fi
10830
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 fi
10833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_PER_OSF4" >&5
10834 echo "${ECHO_T}$ac_cv_have_decl_PER_OSF4" >&6; }
10835 if test $ac_cv_have_decl_PER_OSF4 = yes; then
10836
10837 cat >>confdefs.h <<_ACEOF
10838 #define HAVE_DECL_PER_OSF4 1
10839 _ACEOF
10840
10841
10842 else
10843   cat >>confdefs.h <<_ACEOF
10844 #define HAVE_DECL_PER_OSF4 0
10845 _ACEOF
10846
10847
10848 fi
10849
10850
10851         ac_ext=c
10852 ac_cpp='$CPP $CPPFLAGS'
10853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10856
10857
10858
10859
10860
10861
10862         { echo "$as_me:$LINENO: checking for initrddir" >&5
10863 echo $ECHO_N "checking for initrddir... $ECHO_C" >&6; }
10864
10865 # Check whether --with-initrddir was given.
10866 if test "${with_initrddir+set}" = set; then
10867   withval=$with_initrddir; case "$withval" in
10868                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for '--with-initrddir'" >&5
10869 echo "$as_me: error: '$withval' is not a valid value for '--with-initrddir'" >&2;}
10870    { (exit 1); exit 1; }; };;
10871                         *)      ensc_initrddir=$withval;;
10872                      esac
10873 else
10874   ensc_initrddir='$(sysconfdir)/init.d'
10875 fi
10876
10877
10878         if test "initrddir"; then
10879                 initrddir=$ensc_initrddir
10880
10881         fi
10882
10883         { echo "$as_me:$LINENO: result: $ensc_initrddir" >&5
10884 echo "${ECHO_T}$ensc_initrddir" >&6; }
10885
10886
10887         { echo "$as_me:$LINENO: checking whether to enable release-mode" >&5
10888 echo $ECHO_N "checking whether to enable release-mode... $ECHO_C" >&6; }
10889         # Check whether --enable-release was given.
10890 if test "${enable_release+set}" = set; then
10891   enableval=$enable_release; case "$enableval" in
10892                           yes)  ensc_release_mode=yes;;
10893                           no)   ensc_release_mode=no;;
10894                           *)    { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--enable-release'" >&5
10895 echo "$as_me: error: '$enableval' is not a valid value for '--enable-release'" >&2;}
10896    { (exit 1); exit 1; }; };;
10897                        esac
10898 else
10899    ensc_release_mode=no
10900 fi
10901
10902
10903         if test x"$ensc_release_mode" = xno; then
10904                 RELEASE_CPPFLAGS=
10905         else
10906                 RELEASE_CPPFLAGS='-DNDEBUG'
10907         fi
10908
10909
10910         { echo "$as_me:$LINENO: result: $ensc_release_mode" >&5
10911 echo "${ECHO_T}$ensc_release_mode" >&6; }
10912
10913
10914 # HACK: This needs to be before ENSC_DIETLIBC_NEED_COMPAT, or the alternative
10915 # syscalls will never be enabled for glibc.
10916 ac_ext=c
10917 ac_cpp='$CPP $CPPFLAGS'
10918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
10923 # On Suns, sometimes $CPP names a directory.
10924 if test -n "$CPP" && test -d "$CPP"; then
10925   CPP=
10926 fi
10927 if test -z "$CPP"; then
10928   if test "${ac_cv_prog_CPP+set}" = set; then
10929   echo $ECHO_N "(cached) $ECHO_C" >&6
10930 else
10931       # Double quotes because CPP needs to be expanded
10932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10933     do
10934       ac_preproc_ok=false
10935 for ac_c_preproc_warn_flag in '' yes
10936 do
10937   # Use a header file that comes with gcc, so configuring glibc
10938   # with a fresh cross-compiler works.
10939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10940   # <limits.h> exists even on freestanding compilers.
10941   # On the NeXT, cc -E runs the code through the compiler's parser,
10942   # not just through cpp. "Syntax error" is here to catch this case.
10943   cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949 #ifdef __STDC__
10950 # include <limits.h>
10951 #else
10952 # include <assert.h>
10953 #endif
10954                      Syntax error
10955 _ACEOF
10956 if { (ac_try="$ac_cpp conftest.$ac_ext"
10957 case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10963   ac_status=$?
10964   grep -v '^ *+' conftest.er1 >conftest.err
10965   rm -f conftest.er1
10966   cat conftest.err >&5
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } >/dev/null && {
10969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10970          test ! -s conftest.err
10971        }; then
10972   :
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977   # Broken: fails on valid input.
10978 continue
10979 fi
10980
10981 rm -f conftest.err conftest.$ac_ext
10982
10983   # OK, works on sane cases.  Now check whether nonexistent headers
10984   # can be detected and how.
10985   cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991 #include <ac_nonexistent.h>
10992 _ACEOF
10993 if { (ac_try="$ac_cpp conftest.$ac_ext"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11000   ac_status=$?
11001   grep -v '^ *+' conftest.er1 >conftest.err
11002   rm -f conftest.er1
11003   cat conftest.err >&5
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); } >/dev/null && {
11006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11007          test ! -s conftest.err
11008        }; then
11009   # Broken: success on invalid input.
11010 continue
11011 else
11012   echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015   # Passes both tests.
11016 ac_preproc_ok=:
11017 break
11018 fi
11019
11020 rm -f conftest.err conftest.$ac_ext
11021
11022 done
11023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11024 rm -f conftest.err conftest.$ac_ext
11025 if $ac_preproc_ok; then
11026   break
11027 fi
11028
11029     done
11030     ac_cv_prog_CPP=$CPP
11031
11032 fi
11033   CPP=$ac_cv_prog_CPP
11034 else
11035   ac_cv_prog_CPP=$CPP
11036 fi
11037 { echo "$as_me:$LINENO: result: $CPP" >&5
11038 echo "${ECHO_T}$CPP" >&6; }
11039 ac_preproc_ok=false
11040 for ac_c_preproc_warn_flag in '' yes
11041 do
11042   # Use a header file that comes with gcc, so configuring glibc
11043   # with a fresh cross-compiler works.
11044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045   # <limits.h> exists even on freestanding compilers.
11046   # On the NeXT, cc -E runs the code through the compiler's parser,
11047   # not just through cpp. "Syntax error" is here to catch this case.
11048   cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h.  */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h.  */
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11059                      Syntax error
11060 _ACEOF
11061 if { (ac_try="$ac_cpp conftest.$ac_ext"
11062 case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11068   ac_status=$?
11069   grep -v '^ *+' conftest.er1 >conftest.err
11070   rm -f conftest.er1
11071   cat conftest.err >&5
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); } >/dev/null && {
11074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11075          test ! -s conftest.err
11076        }; then
11077   :
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082   # Broken: fails on valid input.
11083 continue
11084 fi
11085
11086 rm -f conftest.err conftest.$ac_ext
11087
11088   # OK, works on sane cases.  Now check whether nonexistent headers
11089   # can be detected and how.
11090   cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096 #include <ac_nonexistent.h>
11097 _ACEOF
11098 if { (ac_try="$ac_cpp conftest.$ac_ext"
11099 case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11105   ac_status=$?
11106   grep -v '^ *+' conftest.er1 >conftest.err
11107   rm -f conftest.er1
11108   cat conftest.err >&5
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } >/dev/null && {
11111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11112          test ! -s conftest.err
11113        }; then
11114   # Broken: success on invalid input.
11115 continue
11116 else
11117   echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11119
11120   # Passes both tests.
11121 ac_preproc_ok=:
11122 break
11123 fi
11124
11125 rm -f conftest.err conftest.$ac_ext
11126
11127 done
11128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11129 rm -f conftest.err conftest.$ac_ext
11130 if $ac_preproc_ok; then
11131   :
11132 else
11133   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11134 See \`config.log' for more details." >&5
11135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11136 See \`config.log' for more details." >&2;}
11137    { (exit 1); exit 1; }; }
11138 fi
11139
11140 ac_ext=c
11141 ac_cpp='$CPP $CPPFLAGS'
11142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145
11146 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
11147 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
11148 if test "${ac_cv_path_GREP+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   # Extract the first word of "grep ggrep" to use in msg output
11152 if test -z "$GREP"; then
11153 set dummy grep ggrep; ac_prog_name=$2
11154 if test "${ac_cv_path_GREP+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   ac_path_GREP_found=false
11158 # Loop through the user's path and test for each of PROGNAME-LIST
11159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11161 do
11162   IFS=$as_save_IFS
11163   test -z "$as_dir" && as_dir=.
11164   for ac_prog in grep ggrep; do
11165   for ac_exec_ext in '' $ac_executable_extensions; do
11166     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11167     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
11168     # Check for GNU ac_path_GREP and select it if it is found.
11169   # Check for GNU $ac_path_GREP
11170 case `"$ac_path_GREP" --version 2>&1` in
11171 *GNU*)
11172   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11173 *)
11174   ac_count=0
11175   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11176   while :
11177   do
11178     cat "conftest.in" "conftest.in" >"conftest.tmp"
11179     mv "conftest.tmp" "conftest.in"
11180     cp "conftest.in" "conftest.nl"
11181     echo 'GREP' >> "conftest.nl"
11182     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11184     ac_count=`expr $ac_count + 1`
11185     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11186       # Best one so far, save it but keep looking for a better one
11187       ac_cv_path_GREP="$ac_path_GREP"
11188       ac_path_GREP_max=$ac_count
11189     fi
11190     # 10*(2^10) chars as input seems more than enough
11191     test $ac_count -gt 10 && break
11192   done
11193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11194 esac
11195
11196
11197     $ac_path_GREP_found && break 3
11198   done
11199 done
11200
11201 done
11202 IFS=$as_save_IFS
11203
11204
11205 fi
11206
11207 GREP="$ac_cv_path_GREP"
11208 if test -z "$GREP"; then
11209   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11210 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11211    { (exit 1); exit 1; }; }
11212 fi
11213
11214 else
11215   ac_cv_path_GREP=$GREP
11216 fi
11217
11218
11219 fi
11220 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
11221 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
11222  GREP="$ac_cv_path_GREP"
11223
11224
11225 { echo "$as_me:$LINENO: checking for egrep" >&5
11226 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11227 if test "${ac_cv_path_EGREP+set}" = set; then
11228   echo $ECHO_N "(cached) $ECHO_C" >&6
11229 else
11230   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11231    then ac_cv_path_EGREP="$GREP -E"
11232    else
11233      # Extract the first word of "egrep" to use in msg output
11234 if test -z "$EGREP"; then
11235 set dummy egrep; ac_prog_name=$2
11236 if test "${ac_cv_path_EGREP+set}" = set; then
11237   echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239   ac_path_EGREP_found=false
11240 # Loop through the user's path and test for each of PROGNAME-LIST
11241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11243 do
11244   IFS=$as_save_IFS
11245   test -z "$as_dir" && as_dir=.
11246   for ac_prog in egrep; do
11247   for ac_exec_ext in '' $ac_executable_extensions; do
11248     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11249     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11250     # Check for GNU ac_path_EGREP and select it if it is found.
11251   # Check for GNU $ac_path_EGREP
11252 case `"$ac_path_EGREP" --version 2>&1` in
11253 *GNU*)
11254   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11255 *)
11256   ac_count=0
11257   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11258   while :
11259   do
11260     cat "conftest.in" "conftest.in" >"conftest.tmp"
11261     mv "conftest.tmp" "conftest.in"
11262     cp "conftest.in" "conftest.nl"
11263     echo 'EGREP' >> "conftest.nl"
11264     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11266     ac_count=`expr $ac_count + 1`
11267     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11268       # Best one so far, save it but keep looking for a better one
11269       ac_cv_path_EGREP="$ac_path_EGREP"
11270       ac_path_EGREP_max=$ac_count
11271     fi
11272     # 10*(2^10) chars as input seems more than enough
11273     test $ac_count -gt 10 && break
11274   done
11275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11276 esac
11277
11278
11279     $ac_path_EGREP_found && break 3
11280   done
11281 done
11282
11283 done
11284 IFS=$as_save_IFS
11285
11286
11287 fi
11288
11289 EGREP="$ac_cv_path_EGREP"
11290 if test -z "$EGREP"; then
11291   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11292 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11293    { (exit 1); exit 1; }; }
11294 fi
11295
11296 else
11297   ac_cv_path_EGREP=$EGREP
11298 fi
11299
11300
11301    fi
11302 fi
11303 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11304 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11305  EGREP="$ac_cv_path_EGREP"
11306
11307
11308
11309
11310
11311
11312         { echo "$as_me:$LINENO: checking for number of syscall 'vserver'" >&5
11313 echo $ECHO_N "checking for number of syscall 'vserver'... $ECHO_C" >&6; }
11314 if test "${ensc_cv_value_syscall_vserver+set}" = set; then
11315   echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317
11318                 ac_ext=c
11319 ac_cpp='$CPP $CPPFLAGS'
11320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11323
11324                 cat >conftest.$ac_ext <<_ACEOF
11325
11326 #ifdef ENSC_SYSCALL_FALLBACK
11327 #  include ENSC_SYSCALL_FALLBACK
11328 #else
11329 #  include <asm/unistd.h>
11330 #endif
11331 #ifdef __NR_vserver
11332 ensc_syscall_tmp_nr=__NR_vserver;
11333 ensc_syscall_tmp_src=ENSC_MARK
11334 #endif
11335
11336 _ACEOF
11337                 ensc_syscall_tmp_nr=
11338                 ensc_syscall_tmp_src=
11339                 test x"$ensc_syscall_tmp_nr" != x || \
11340                         eval $($CPP $CPPFLAGS -D ENSC_MARK='glibc'                                    conftest.c | $EGREP '^ensc_syscall_tmp_(nr=[1-9][0-9]*;|src=.*)$')
11341                 test x"$ensc_syscall_tmp_nr" != x -o x'lib/syscall-fallback.h' = x || \
11342                         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=.*)$')
11343                 test "$ensc_syscall_tmp_nr" || {
11344                         ensc_syscall_tmp_nr=273
11345                         ensc_syscall_tmp_src=default
11346                 }
11347
11348                 if test x"$ensc_syscall_tmp_nr" = x; then
11349                         { { 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
11350 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;}
11351    { (exit 1); exit 1; }; }
11352                 fi
11353                 ac_ext=c
11354 ac_cpp='$CPP $CPPFLAGS'
11355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11358
11359
11360                 ensc_cv_value_syscall_vserver="$ensc_syscall_tmp_nr/$ensc_syscall_tmp_src"
11361
11362 fi
11363 { echo "$as_me:$LINENO: result: $ensc_cv_value_syscall_vserver" >&5
11364 echo "${ECHO_T}$ensc_cv_value_syscall_vserver" >&6; }
11365
11366         ensc_syscall_tmp_nr=${ensc_cv_value_syscall_vserver%/*}
11367         ensc_syscall_tmp_src=${ensc_cv_value_syscall_vserver#*/}
11368
11369         if test x"$ensc_syscall_tmp_src" != x'glibc'; then
11370
11371 cat >>confdefs.h <<_ACEOF
11372 #define ENSC_SYSCALL__NR_vserver $ensc_syscall_tmp_nr
11373 _ACEOF
11374
11375         fi
11376
11377
11378         { echo "$as_me:$LINENO: checking whether to use alternative _syscallX macros" >&5
11379 echo $ECHO_N "checking whether to use alternative _syscallX macros... $ECHO_C" >&6; }
11380         # Check whether --enable-alternative-syscalls was given.
11381 if test "${enable_alternative_syscalls+set}" = set; then
11382   enableval=$enable_alternative_syscalls; case $enableval in
11383                            (yes|no)   ensc_use_alternative_syscall_macros=$enableval;;
11384                            (*)        { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&5
11385 echo "$as_me: error: '$enableval' is not a valid value for '--disable-alternative-syscalls'" >&2;}
11386    { (exit 1); exit 1; }; };;
11387                        esac
11388 else
11389   ensc_use_alternative_syscall_macros=yes
11390 fi
11391
11392
11393         case $ensc_use_alternative_syscall_macros in
11394                 (yes)
11395 cat >>confdefs.h <<\_ACEOF
11396 #define ENSC_USE_ALTERNATIVE_SYSCALL_MACROS 1
11397 _ACEOF
11398 ;;
11399         esac
11400
11401         { echo "$as_me:$LINENO: result: $ensc_use_alternative_syscall_macros" >&5
11402 echo "${ECHO_T}$ensc_use_alternative_syscall_macros" >&6; }
11403
11404
11405
11406
11407         { echo "$as_me:$LINENO: checking for syscall(2) invocation method" >&5
11408 echo $ECHO_N "checking for syscall(2) invocation method... $ECHO_C" >&6; }
11409
11410 # Check whether --with-syscall was given.
11411 if test "${with_syscall+set}" = set; then
11412   withval=$with_syscall;
11413 else
11414   with_syscall=auto
11415 fi
11416
11417         { echo "$as_me:$LINENO: result: $with_syscall" >&5
11418 echo "${ECHO_T}$with_syscall" >&6; }
11419
11420         case x"$with_syscall" in
11421             (xauto)
11422                 { echo "$as_me:$LINENO: checking which syscall(2) invocation works" >&5
11423 echo $ECHO_N "checking which syscall(2) invocation works... $ECHO_C" >&6; }
11424 if test "${ensc_cv_test_syscall+set}" = set; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427
11428                                 ac_ext=c
11429 ac_cpp='$CPP $CPPFLAGS'
11430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11433
11434                                 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 #include "$srcdir/lib/syscall-wrap.h"
11442 #include <errno.h>
11443
11444 #define __NR_foo0       300
11445 #define __NR_foo1       301
11446 #define __NR_foo2       302
11447 #define __NR_foo3       303
11448 #define __NR_foo4       304
11449 #define __NR_foo5       305
11450 inline static _syscall0(int, foo0)
11451 inline static _syscall1(int, foo1, int, a)
11452 inline static _syscall2(int, foo2, int, a, int, b)
11453 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11454 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11455 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11456
11457 int main() {
11458   return foo0() || \
11459          foo1(1) || \
11460          foo2(1,2) || \
11461          foo3(1,2,3) || \
11462          foo4(1,2,3,4) || \
11463          foo5(1,2,3,4,5);
11464 }
11465
11466 _ACEOF
11467 rm -f conftest.$ac_objext
11468 if { (ac_try="$ac_compile"
11469 case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_compile") 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } && {
11481          test -z "$ac_c_werror_flag" ||
11482          test ! -s conftest.err
11483        } && test -s conftest.$ac_objext; then
11484   ensc_cv_test_syscall=fast
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489         ensc_cv_test_syscall=traditional
11490 fi
11491
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493
11494                                 ac_ext=c
11495 ac_cpp='$CPP $CPPFLAGS'
11496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11499
11500
11501 fi
11502 { echo "$as_me:$LINENO: result: $ensc_cv_test_syscall" >&5
11503 echo "${ECHO_T}$ensc_cv_test_syscall" >&6; }
11504                 with_syscall=$ensc_cv_test_syscall
11505                 ;;
11506             (xfast|xtraditional)
11507                 ;;
11508             *)
11509                 { { echo "$as_me:$LINENO: error: '$with_syscall' is not a valid value for '--with-syscall'" >&5
11510 echo "$as_me: error: '$with_syscall' is not a valid value for '--with-syscall'" >&2;}
11511    { (exit 1); exit 1; }; }
11512                 ;;
11513         esac
11514
11515         if test x"$with_syscall $ensc_use_alternative_syscall_macros" = 'xfast yes'; then
11516             with_syscall='alternative'
11517         fi
11518
11519         if test x"$with_syscall" = xtraditional; then
11520
11521 cat >>confdefs.h <<\_ACEOF
11522 #define ENSC_SYSCALL_TRADITIONAL 1
11523 _ACEOF
11524
11525         fi
11526
11527
11528
11529
11530
11531
11532 case $host_cpu in
11533         (i*86|athlon)   min_diet_ver=0.25;;
11534         (ia64|hppa*)    min_diet_ver=0.29;;
11535         (sparc*)        min_diet_ver=0.30;;
11536         (x86_64)        min_diet_ver=0.27;;
11537         (*)             min_diet_ver=0.28;;
11538 esac
11539
11540
11541         { echo "$as_me:$LINENO: checking whether to enable dietlibc" >&5
11542 echo $ECHO_N "checking whether to enable dietlibc... $ECHO_C" >&6; }
11543
11544
11545
11546
11547         : ${DIET:=diet}
11548         : ${DIETFLAGS=-Os}
11549
11550         # Check whether --enable-dietlibc was given.
11551 if test "${enable_dietlibc+set}" = set; then
11552   enableval=$enable_dietlibc; case "$enableval" in
11553                           (yes) use_dietlibc=forced;;
11554                           (no)  use_dietlibc=forced_no;;
11555                           (*)   { { echo "$as_me:$LINENO: error: '$enableval' is not a valid value for --enable-dietlibc" >&5
11556 echo "$as_me: error: '$enableval' is not a valid value for --enable-dietlibc" >&2;}
11557    { (exit 1); exit 1; }; };;
11558                        esac
11559 else
11560   which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no
11561 fi
11562
11563
11564         if test "$use_dietlibc" = detected -a "$min_diet_ver"; then
11565             _dietlibc_ver=$($DIET -v 2>&1 | sed '1p;d')
11566             _dietlibc_ver=${_dietlibc_ver##*diet version }
11567             _dietlibc_ver=${_dietlibc_ver##*dietlibc-}
11568             _dietlibc_ver_maj=${_dietlibc_ver%%.*}
11569             _dietlibc_ver_min=${_dietlibc_ver##*.}
11570             _dietlibc_ver_min=${_dietlibc_ver_min%%[!0-9]*}
11571             _dietlibc_cmp="$min_diet_ver"
11572             _dietlibc_cmp_maj=${_dietlibc_cmp%%.*}
11573             _dietlibc_cmp_min=${_dietlibc_cmp##*.}
11574
11575             ENSC_VERSION_DIETLIBC=$_dietlibc_ver_maj.$_dietlibc_ver_min
11576
11577             let _dietlibc_ver=_dietlibc_ver_maj*1000+_dietlibc_ver_min 2>/dev/null || _dietlibc_ver=0
11578             let _dietlibc_cmp=_dietlibc_cmp_maj*1000+_dietlibc_cmp_min
11579
11580             test $_dietlibc_ver -ge $_dietlibc_cmp || use_dietlibc=detected_old
11581         else
11582             ENSC_VERSION_DIETLIBC=
11583             _dietlibc_ver=-1
11584         fi
11585
11586         ENSC_VERSION_DIETLIBC_NUM=$_dietlibc_ver
11587         ensc_have_dietlibc=no
11588
11589         case x"$use_dietlibc" in
11590             xdetected)
11591                  if true; then
11592   USE_DIETLIBC_TRUE=
11593   USE_DIETLIBC_FALSE='#'
11594 else
11595   USE_DIETLIBC_TRUE='#'
11596   USE_DIETLIBC_FALSE=
11597 fi
11598
11599                 { echo "$as_me:$LINENO: result: yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&5
11600 echo "${ECHO_T}yes (autodetected, $ENSC_VERSION_DIETLIBC)" >&6; }
11601                 ensc_have_dietlibc=yes
11602                 ;;
11603             xforced)
11604                  if true; then
11605   USE_DIETLIBC_TRUE=
11606   USE_DIETLIBC_FALSE='#'
11607 else
11608   USE_DIETLIBC_TRUE='#'
11609   USE_DIETLIBC_FALSE=
11610 fi
11611
11612                 { echo "$as_me:$LINENO: result: yes (forced)" >&5
11613 echo "${ECHO_T}yes (forced)" >&6; }
11614                 ensc_have_dietlibc=yes
11615                 ;;
11616             xdetected_no)
11617                  if false; then
11618   USE_DIETLIBC_TRUE=
11619   USE_DIETLIBC_FALSE='#'
11620 else
11621   USE_DIETLIBC_TRUE='#'
11622   USE_DIETLIBC_FALSE=
11623 fi
11624
11625                 { echo "$as_me:$LINENO: result: no (detected)" >&5
11626 echo "${ECHO_T}no (detected)" >&6; }
11627                 ;;
11628             xdetected_old)
11629                  if false; then
11630   USE_DIETLIBC_TRUE=
11631   USE_DIETLIBC_FALSE='#'
11632 else
11633   USE_DIETLIBC_TRUE='#'
11634   USE_DIETLIBC_FALSE=
11635 fi
11636
11637                 { echo "$as_me:$LINENO: result: no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&5
11638 echo "${ECHO_T}no (too old; $min_diet_ver+ required, $ENSC_VERSION_DIETLIBC found)" >&6; }
11639                 ;;
11640             xforced_no)
11641                  if false; then
11642   USE_DIETLIBC_TRUE=
11643   USE_DIETLIBC_FALSE='#'
11644 else
11645   USE_DIETLIBC_TRUE='#'
11646   USE_DIETLIBC_FALSE=
11647 fi
11648
11649                 { echo "$as_me:$LINENO: result: no (forced)" >&5
11650 echo "${ECHO_T}no (forced)" >&6; }
11651                 ;;
11652             *)
11653                 { { echo "$as_me:$LINENO: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&5
11654 echo "$as_me: error: internal error, use_dietlibc was \"$use_dietlibc\"" >&2;}
11655    { (exit 1); exit 1; }; }
11656                 ;;
11657         esac
11658
11659         if test x"$ensc_have_dietlibc" != xno; then
11660
11661
11662
11663
11664         { echo "$as_me:$LINENO: checking whether dietlibc supports C99" >&5
11665 echo $ECHO_N "checking whether dietlibc supports C99... $ECHO_C" >&6; }
11666 if test "${ensc_cv_c_dietlibc_c99+set}" = set; then
11667   echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669
11670                 _ensc_dietlibc_c99_old_CFLAGS=$CFLAGS
11671                 _ensc_dietlibc_c99_old_CC=$CC
11672
11673                 CFLAGS="-std=c99"
11674                 CC="${DIET:-diet} $CC"
11675
11676                 ac_ext=c
11677 ac_cpp='$CPP $CPPFLAGS'
11678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11681
11682                 cat >conftest.$ac_ext <<_ACEOF
11683 /* */
11684 _ACEOF
11685 rm -f conftest.$ac_objext
11686 if { (ac_try="$ac_compile"
11687 case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_compile") 2>conftest.er1
11693   ac_status=$?
11694   grep -v '^ *+' conftest.er1 >conftest.err
11695   rm -f conftest.er1
11696   cat conftest.err >&5
11697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698   (exit $ac_status); } && {
11699          test -z "$ac_c_werror_flag" ||
11700          test ! -s conftest.err
11701        } && test -s conftest.$ac_objext; then
11702
11703                         cat >conftest.$ac_ext <<_ACEOF
11704
11705                                 #include <stdint.h>
11706                                 #include <sys/cdefs.h>
11707                                 #if defined(inline)
11708                                 #  error 'inline' badly defined
11709                                 #endif
11710                                 volatile uint64_t       a;
11711
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (ac_try="$ac_compile"
11715 case "(($ac_try" in
11716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717   *) ac_try_echo=$ac_try;;
11718 esac
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720   (eval "$ac_compile") 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } && {
11727          test -z "$ac_c_werror_flag" ||
11728          test ! -s conftest.err
11729        } && test -s conftest.$ac_objext; then
11730   ensc_cv_c_dietlibc_c99=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735         ensc_cv_c_dietlibc_c99=no
11736 fi
11737
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743         ensc_cv_c_dietlibc_c99='skipped (compiler does not support C99)'
11744 fi
11745
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747                 ac_ext=c
11748 ac_cpp='$CPP $CPPFLAGS'
11749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753
11754                 CC=$_ensc_dietlibc_c99_old_CC
11755                 CFLAGS=$_ensc_dietlibc_c99_old_CFLAGS
11756
11757 fi
11758 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_c99" >&5
11759 echo "${ECHO_T}$ensc_cv_c_dietlibc_c99" >&6; }
11760
11761         if test x"$ensc_cv_c_dietlibc_c99" = xyes; then
11762                 cat >>confdefs.h <<\_ACEOF
11763 #define ENSC_DIETLIBC_C99 1
11764 _ACEOF
11765
11766         fi
11767
11768
11769
11770
11771
11772         { echo "$as_me:$LINENO: checking whether dietlibc declares syscall" >&5
11773 echo $ECHO_N "checking whether dietlibc declares syscall... $ECHO_C" >&6; }
11774 if test "${ensc_cv_c_dietlibc_syscall+set}" = set; then
11775   echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777
11778                 _ensc_dietlibc_syscall_old_CC="$CC"
11779                 CC="${DIET:-diet} $CC"
11780
11781                 ac_ext=c
11782 ac_cpp='$CPP $CPPFLAGS'
11783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11786
11787                 cat >conftest.$ac_ext <<_ACEOF
11788
11789                         #include <sys/syscall.h>
11790                         long int syscall(long int __sysno, ...);
11791
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797   *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800   (eval "$ac_compile") 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } && {
11807          test -z "$ac_c_werror_flag" ||
11808          test ! -s conftest.err
11809        } && test -s conftest.$ac_objext; then
11810   ensc_cv_c_dietlibc_syscall=no
11811 else
11812   echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815         ensc_cv_c_dietlibc_syscall=yes
11816 fi
11817
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819                 ac_ext=c
11820 ac_cpp='$CPP $CPPFLAGS'
11821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824
11825
11826                 CC="$_ensc_dietlibc_syscall_old_CC"
11827
11828 fi
11829 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_syscall" >&5
11830 echo "${ECHO_T}$ensc_cv_c_dietlibc_syscall" >&6; }
11831
11832         if test x"$ensc_cv_c_dietlibc_syscall" = xyes; then
11833                 cat >>confdefs.h <<\_ACEOF
11834 #define ENSC_DIETLIBC_HAS_SYSCALL 1
11835 _ACEOF
11836
11837         fi
11838
11839         fi
11840
11841
11842 if test x"$ensc_have_dietlibc" = xno; then
11843         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11844 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11845         { echo "$as_me:$LINENO: WARNING: *** it is strongly recommended to link util-vserver against ***" >&5
11846 echo "$as_me: WARNING: *** it is strongly recommended to link util-vserver against ***" >&2;}
11847         { echo "$as_me:$LINENO: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&5
11848 echo "$as_me: WARNING: *** dietlibc;  glibc's NSS functions are very unreliable in ***" >&2;}
11849         { echo "$as_me:$LINENO: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&5
11850 echo "$as_me: WARNING: *** chroot() environments,  so you have to  expect problems ***" >&2;}
11851         { echo "$as_me:$LINENO: WARNING: *** there.                                                  ***" >&5
11852 echo "$as_me: WARNING: *** there.                                                  ***" >&2;}
11853         { echo "$as_me:$LINENO: WARNING: ***                                                         ***" >&5
11854 echo "$as_me: WARNING: ***                                                         ***" >&2;}
11855          if false; then
11856   USE_DIETLIBC_COMPAT_TRUE=
11857   USE_DIETLIBC_COMPAT_FALSE='#'
11858 else
11859   USE_DIETLIBC_COMPAT_TRUE='#'
11860   USE_DIETLIBC_COMPAT_FALSE=
11861 fi
11862
11863 else
11864         # HACK: libtool does not have cmdline options to build only
11865         # dynamic libraries; this can be done with the
11866         # '--disable-static' ./configure option only.  As our static
11867         # libraries will be build with dietlibc, we have to do set
11868         # this option which is evaluated by 'AC_PROG_LIBTOOL'
11869         # below.  Therefore, this macro must not be called earlier.
11870         enable_static=no
11871
11872
11873
11874
11875         { echo "$as_me:$LINENO: checking whether dietlibc needs '-lcompat'" >&5
11876 echo $ECHO_N "checking whether dietlibc needs '-lcompat'... $ECHO_C" >&6; }
11877 if test "${ensc_cv_c_dietlibc_compat+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880
11881                 ac_ext=c
11882 ac_cpp='$CPP $CPPFLAGS'
11883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11886
11887                 ensc_dietlibc_need_compat_old_CC=$CC
11888                 CC="${DIET:-diet} $CC"
11889                 cat >conftest.$ac_ext <<_ACEOF
11890
11891                         /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896
11897 #include "$srcdir/lib/syscall-wrap.h"
11898 #include <errno.h>
11899
11900 #define __NR_foo0               42
11901 #define __NR_foo1               42
11902 #define __NR_foo2               42
11903 #define __NR_foo3               42
11904 #define __NR_foo4               42
11905 #define __NR_foo5               42
11906 inline static _syscall0(int, foo0)
11907 inline static _syscall1(int, foo1, int, a)
11908 inline static _syscall2(int, foo2, int, a, int, b)
11909 inline static _syscall3(int, foo3, int, a, int, b, int, c)
11910 inline static _syscall4(int, foo4, int, a, int, b, int, c, int, d)
11911 inline static _syscall5(int, foo5, int, a, int, b, int, c, int, d, int, e)
11912
11913 int
11914 main ()
11915 {
11916 foo0(); foo1(0); foo2(0,0); foo3(0,0,0); foo4(0,0,0,0); foo5(0,0,0,0,0);
11917   ;
11918   return 0;
11919 }
11920 _ACEOF
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_link") 2>conftest.er1
11929   ac_status=$?
11930   grep -v '^ *+' conftest.er1 >conftest.err
11931   rm -f conftest.er1
11932   cat conftest.err >&5
11933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934   (exit $ac_status); } && {
11935          test -z "$ac_c_werror_flag" ||
11936          test ! -s conftest.err
11937        } && test -s conftest$ac_exeext &&
11938        $as_test_x conftest$ac_exeext; then
11939   ensc_cv_c_dietlibc_compat=no
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944         ensc_cv_c_dietlibc_compat=yes
11945 fi
11946
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948       conftest$ac_exeext conftest.$ac_ext
11949                 CC=$ensc_dietlibc_need_compat_old_CC
11950                 ac_ext=c
11951 ac_cpp='$CPP $CPPFLAGS'
11952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955
11956
11957 fi
11958 { echo "$as_me:$LINENO: result: $ensc_cv_c_dietlibc_compat" >&5
11959 echo "${ECHO_T}$ensc_cv_c_dietlibc_compat" >&6; }
11960
11961         if test x"USE_DIETLIBC_COMPAT" != x; then
11962                  if test x"$ensc_cv_c_dietlibc_compat" = xyes; then
11963   USE_DIETLIBC_COMPAT_TRUE=
11964   USE_DIETLIBC_COMPAT_FALSE='#'
11965 else
11966   USE_DIETLIBC_COMPAT_TRUE='#'
11967   USE_DIETLIBC_COMPAT_FALSE=
11968 fi
11969
11970         fi
11971
11972 fi
11973
11974  if test x"$ensc_have_dietlibc" = xyes; then
11975   ENSC_USE_DIETLIBC_TRUE=
11976   ENSC_USE_DIETLIBC_FALSE='#'
11977 else
11978   ENSC_USE_DIETLIBC_TRUE='#'
11979   ENSC_USE_DIETLIBC_FALSE=
11980 fi
11981
11982  if true; then
11983   ENSC_USE_GLIBC_TRUE=
11984   ENSC_USE_GLIBC_FALSE='#'
11985 else
11986   ENSC_USE_GLIBC_TRUE='#'
11987   ENSC_USE_GLIBC_FALSE=
11988 fi
11989
11990
11991 # HACK: see comments at 'enable_static' above
11992 # Check whether --enable-shared was given.
11993 if test "${enable_shared+set}" = set; then
11994   enableval=$enable_shared; p=${PACKAGE-default}
11995     case $enableval in
11996     yes) enable_shared=yes ;;
11997     no) enable_shared=no ;;
11998     *)
11999       enable_shared=no
12000       # Look at the argument we got.  We use all the common list separators.
12001       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12002       for pkg in $enableval; do
12003         IFS="$lt_save_ifs"
12004         if test "X$pkg" = "X$p"; then
12005           enable_shared=yes
12006         fi
12007       done
12008       IFS="$lt_save_ifs"
12009       ;;
12010     esac
12011 else
12012   enable_shared=yes
12013 fi
12014
12015
12016 # Check whether --enable-static was given.
12017 if test "${enable_static+set}" = set; then
12018   enableval=$enable_static; p=${PACKAGE-default}
12019     case $enableval in
12020     yes) enable_static=yes ;;
12021     no) enable_static=no ;;
12022     *)
12023      enable_static=no
12024       # Look at the argument we got.  We use all the common list separators.
12025       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12026       for pkg in $enableval; do
12027         IFS="$lt_save_ifs"
12028         if test "X$pkg" = "X$p"; then
12029           enable_static=yes
12030         fi
12031       done
12032       IFS="$lt_save_ifs"
12033       ;;
12034     esac
12035 else
12036   enable_static=yes
12037 fi
12038
12039
12040 # Check whether --enable-fast-install was given.
12041 if test "${enable_fast_install+set}" = set; then
12042   enableval=$enable_fast_install; p=${PACKAGE-default}
12043     case $enableval in
12044     yes) enable_fast_install=yes ;;
12045     no) enable_fast_install=no ;;
12046     *)
12047       enable_fast_install=no
12048       # Look at the argument we got.  We use all the common list separators.
12049       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12050       for pkg in $enableval; do
12051         IFS="$lt_save_ifs"
12052         if test "X$pkg" = "X$p"; then
12053           enable_fast_install=yes
12054         fi
12055       done
12056       IFS="$lt_save_ifs"
12057       ;;
12058     esac
12059 else
12060   enable_fast_install=yes
12061 fi
12062
12063
12064 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12065 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12066 if test "${lt_cv_path_SED+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069   # Loop through the user's path and test for sed and gsed.
12070 # Then use that list of sed's as ones to test for truncation.
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076   for lt_ac_prog in sed gsed; do
12077     for ac_exec_ext in '' $ac_executable_extensions; do
12078       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12079         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12080       fi
12081     done
12082   done
12083 done
12084 IFS=$as_save_IFS
12085 lt_ac_max=0
12086 lt_ac_count=0
12087 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12088 # along with /bin/sed that truncates output.
12089 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12090   test ! -f $lt_ac_sed && continue
12091   cat /dev/null > conftest.in
12092   lt_ac_count=0
12093   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12094   # Check for GNU sed and select it if it is found.
12095   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12096     lt_cv_path_SED=$lt_ac_sed
12097     break
12098   fi
12099   while true; do
12100     cat conftest.in conftest.in >conftest.tmp
12101     mv conftest.tmp conftest.in
12102     cp conftest.in conftest.nl
12103     echo >>conftest.nl
12104     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12105     cmp -s conftest.out conftest.nl || break
12106     # 10000 chars as input seems more than enough
12107     test $lt_ac_count -gt 10 && break
12108     lt_ac_count=`expr $lt_ac_count + 1`
12109     if test $lt_ac_count -gt $lt_ac_max; then
12110       lt_ac_max=$lt_ac_count
12111       lt_cv_path_SED=$lt_ac_sed
12112     fi
12113   done
12114 done
12115
12116 fi
12117
12118 SED=$lt_cv_path_SED
12119
12120 { echo "$as_me:$LINENO: result: $SED" >&5
12121 echo "${ECHO_T}$SED" >&6; }
12122
12123
12124 # Check whether --with-gnu-ld was given.
12125 if test "${with_gnu_ld+set}" = set; then
12126   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12127 else
12128   with_gnu_ld=no
12129 fi
12130
12131 ac_prog=ld
12132 if test "$GCC" = yes; then
12133   # Check if gcc -print-prog-name=ld gives a path.
12134   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12135 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12136   case $host in
12137   *-*-mingw*)
12138     # gcc leaves a trailing carriage return which upsets mingw
12139     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12140   *)
12141     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12142   esac
12143   case $ac_prog in
12144     # Accept absolute paths.
12145     [\\/]* | ?:[\\/]*)
12146       re_direlt='/[^/][^/]*/\.\./'
12147       # Canonicalize the pathname of ld
12148       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12149       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12150         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12151       done
12152       test -z "$LD" && LD="$ac_prog"
12153       ;;
12154   "")
12155     # If it fails, then pretend we aren't using GCC.
12156     ac_prog=ld
12157     ;;
12158   *)
12159     # If it is relative, then search for the first ld in PATH.
12160     with_gnu_ld=unknown
12161     ;;
12162   esac
12163 elif test "$with_gnu_ld" = yes; then
12164   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12165 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12166 else
12167   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12168 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12169 fi
12170 if test "${lt_cv_path_LD+set}" = set; then
12171   echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173   if test -z "$LD"; then
12174   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12175   for ac_dir in $PATH; do
12176     IFS="$lt_save_ifs"
12177     test -z "$ac_dir" && ac_dir=.
12178     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12179       lt_cv_path_LD="$ac_dir/$ac_prog"
12180       # Check to see if the program is GNU ld.  I'd rather use --version,
12181       # but apparently some variants of GNU ld only accept -v.
12182       # Break only if it was the GNU/non-GNU ld that we prefer.
12183       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12184       *GNU* | *'with BFD'*)
12185         test "$with_gnu_ld" != no && break
12186         ;;
12187       *)
12188         test "$with_gnu_ld" != yes && break
12189         ;;
12190       esac
12191     fi
12192   done
12193   IFS="$lt_save_ifs"
12194 else
12195   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12196 fi
12197 fi
12198
12199 LD="$lt_cv_path_LD"
12200 if test -n "$LD"; then
12201   { echo "$as_me:$LINENO: result: $LD" >&5
12202 echo "${ECHO_T}$LD" >&6; }
12203 else
12204   { echo "$as_me:$LINENO: result: no" >&5
12205 echo "${ECHO_T}no" >&6; }
12206 fi
12207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12209    { (exit 1); exit 1; }; }
12210 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12212 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12216 case `$LD -v 2>&1 </dev/null` in
12217 *GNU* | *'with BFD'*)
12218   lt_cv_prog_gnu_ld=yes
12219   ;;
12220 *)
12221   lt_cv_prog_gnu_ld=no
12222   ;;
12223 esac
12224 fi
12225 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12226 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12227 with_gnu_ld=$lt_cv_prog_gnu_ld
12228
12229
12230 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12231 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12232 if test "${lt_cv_ld_reload_flag+set}" = set; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   lt_cv_ld_reload_flag='-r'
12236 fi
12237 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12238 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12239 reload_flag=$lt_cv_ld_reload_flag
12240 case $reload_flag in
12241 "" | " "*) ;;
12242 *) reload_flag=" $reload_flag" ;;
12243 esac
12244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12245 case $host_os in
12246   darwin*)
12247     if test "$GCC" = yes; then
12248       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12249     else
12250       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12251     fi
12252     ;;
12253 esac
12254
12255 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12256 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12257 if test "${lt_cv_path_NM+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   if test -n "$NM"; then
12261   # Let the user override the test.
12262   lt_cv_path_NM="$NM"
12263 else
12264   lt_nm_to_check="${ac_tool_prefix}nm"
12265   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12266     lt_nm_to_check="$lt_nm_to_check nm"
12267   fi
12268   for lt_tmp_nm in $lt_nm_to_check; do
12269     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12270     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12271       IFS="$lt_save_ifs"
12272       test -z "$ac_dir" && ac_dir=.
12273       tmp_nm="$ac_dir/$lt_tmp_nm"
12274       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12275         # Check to see if the nm accepts a BSD-compat flag.
12276         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12277         #   nm: unknown option "B" ignored
12278         # Tru64's nm complains that /dev/null is an invalid object file
12279         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12280         */dev/null* | *'Invalid file or object type'*)
12281           lt_cv_path_NM="$tmp_nm -B"
12282           break
12283           ;;
12284         *)
12285           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12286           */dev/null*)
12287             lt_cv_path_NM="$tmp_nm -p"
12288             break
12289             ;;
12290           *)
12291             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12292             continue # so that we can try to find one that supports BSD flags
12293             ;;
12294           esac
12295           ;;
12296         esac
12297       fi
12298     done
12299     IFS="$lt_save_ifs"
12300   done
12301   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12302 fi
12303 fi
12304 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12305 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12306 NM="$lt_cv_path_NM"
12307
12308 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12309 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12310 if test "${lt_cv_deplibs_check_method+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   lt_cv_file_magic_cmd='$MAGIC_CMD'
12314 lt_cv_file_magic_test_file=
12315 lt_cv_deplibs_check_method='unknown'
12316 # Need to set the preceding variable on all platforms that support
12317 # interlibrary dependencies.
12318 # 'none' -- dependencies not supported.
12319 # `unknown' -- same as none, but documents that we really don't know.
12320 # 'pass_all' -- all dependencies passed with no checks.
12321 # 'test_compile' -- check by making test program.
12322 # 'file_magic [[regex]]' -- check by looking for files in library path
12323 # which responds to the $file_magic_cmd with a given extended regex.
12324 # If you have `file' or equivalent on your system and you're not sure
12325 # whether `pass_all' will *always* work, you probably want this one.
12326
12327 case $host_os in
12328 aix4* | aix5*)
12329   lt_cv_deplibs_check_method=pass_all
12330   ;;
12331
12332 beos*)
12333   lt_cv_deplibs_check_method=pass_all
12334   ;;
12335
12336 bsdi[45]*)
12337   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12338   lt_cv_file_magic_cmd='/usr/bin/file -L'
12339   lt_cv_file_magic_test_file=/shlib/libc.so
12340   ;;
12341
12342 cygwin*)
12343   # func_win32_libid is a shell function defined in ltmain.sh
12344   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12345   lt_cv_file_magic_cmd='func_win32_libid'
12346   ;;
12347
12348 mingw* | pw32*)
12349   # Base MSYS/MinGW do not provide the 'file' command needed by
12350   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12351   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12352   lt_cv_file_magic_cmd='$OBJDUMP -f'
12353   ;;
12354
12355 darwin* | rhapsody*)
12356   lt_cv_deplibs_check_method=pass_all
12357   ;;
12358
12359 freebsd* | kfreebsd*-gnu | dragonfly*)
12360   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12361     case $host_cpu in
12362     i*86 )
12363       # Not sure whether the presence of OpenBSD here was a mistake.
12364       # Let's accept both of them until this is cleared up.
12365       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12366       lt_cv_file_magic_cmd=/usr/bin/file
12367       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12368       ;;
12369     esac
12370   else
12371     lt_cv_deplibs_check_method=pass_all
12372   fi
12373   ;;
12374
12375 gnu*)
12376   lt_cv_deplibs_check_method=pass_all
12377   ;;
12378
12379 hpux10.20* | hpux11*)
12380   lt_cv_file_magic_cmd=/usr/bin/file
12381   case $host_cpu in
12382   ia64*)
12383     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12384     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12385     ;;
12386   hppa*64*)
12387     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]'
12388     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12389     ;;
12390   *)
12391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12392     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12393     ;;
12394   esac
12395   ;;
12396
12397 interix3*)
12398   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12399   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12400   ;;
12401
12402 irix5* | irix6* | nonstopux*)
12403   case $LD in
12404   *-32|*"-32 ") libmagic=32-bit;;
12405   *-n32|*"-n32 ") libmagic=N32;;
12406   *-64|*"-64 ") libmagic=64-bit;;
12407   *) libmagic=never-match;;
12408   esac
12409   lt_cv_deplibs_check_method=pass_all
12410   ;;
12411
12412 # This must be Linux ELF.
12413 linux*)
12414   lt_cv_deplibs_check_method=pass_all
12415   ;;
12416
12417 netbsd*)
12418   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12419     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12420   else
12421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12422   fi
12423   ;;
12424
12425 newos6*)
12426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12427   lt_cv_file_magic_cmd=/usr/bin/file
12428   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12429   ;;
12430
12431 nto-qnx*)
12432   lt_cv_deplibs_check_method=unknown
12433   ;;
12434
12435 openbsd*)
12436   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12438   else
12439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12440   fi
12441   ;;
12442
12443 osf3* | osf4* | osf5*)
12444   lt_cv_deplibs_check_method=pass_all
12445   ;;
12446
12447 solaris*)
12448   lt_cv_deplibs_check_method=pass_all
12449   ;;
12450
12451 sysv4 | sysv4.3*)
12452   case $host_vendor in
12453   motorola)
12454     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]'
12455     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12456     ;;
12457   ncr)
12458     lt_cv_deplibs_check_method=pass_all
12459     ;;
12460   sequent)
12461     lt_cv_file_magic_cmd='/bin/file'
12462     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12463     ;;
12464   sni)
12465     lt_cv_file_magic_cmd='/bin/file'
12466     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12467     lt_cv_file_magic_test_file=/lib/libc.so
12468     ;;
12469   siemens)
12470     lt_cv_deplibs_check_method=pass_all
12471     ;;
12472   pc)
12473     lt_cv_deplibs_check_method=pass_all
12474     ;;
12475   esac
12476   ;;
12477
12478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12479   lt_cv_deplibs_check_method=pass_all
12480   ;;
12481 esac
12482
12483 fi
12484 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12485 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12486 file_magic_cmd=$lt_cv_file_magic_cmd
12487 deplibs_check_method=$lt_cv_deplibs_check_method
12488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12489
12490
12491
12492
12493 # If no C compiler was specified, use CC.
12494 LTCC=${LTCC-"$CC"}
12495
12496 # If no C compiler flags were specified, use CFLAGS.
12497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12498
12499 # Allow CC to be a program name with arguments.
12500 compiler=$CC
12501
12502 # Check whether --enable-libtool-lock was given.
12503 if test "${enable_libtool_lock+set}" = set; then
12504   enableval=$enable_libtool_lock;
12505 fi
12506
12507 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12508
12509 # Some flags need to be propagated to the compiler or linker for good
12510 # libtool support.
12511 case $host in
12512 ia64-*-hpux*)
12513   # Find out which ABI we are using.
12514   echo 'int i;' > conftest.$ac_ext
12515   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); }; then
12520     case `/usr/bin/file conftest.$ac_objext` in
12521     *ELF-32*)
12522       HPUX_IA64_MODE="32"
12523       ;;
12524     *ELF-64*)
12525       HPUX_IA64_MODE="64"
12526       ;;
12527     esac
12528   fi
12529   rm -rf conftest*
12530   ;;
12531 *-*-irix6*)
12532   # Find out which ABI we are using.
12533   echo '#line 12533 "configure"' > conftest.$ac_ext
12534   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; then
12539    if test "$lt_cv_prog_gnu_ld" = yes; then
12540     case `/usr/bin/file conftest.$ac_objext` in
12541     *32-bit*)
12542       LD="${LD-ld} -melf32bsmip"
12543       ;;
12544     *N32*)
12545       LD="${LD-ld} -melf32bmipn32"
12546       ;;
12547     *64-bit*)
12548       LD="${LD-ld} -melf64bmip"
12549       ;;
12550     esac
12551    else
12552     case `/usr/bin/file conftest.$ac_objext` in
12553     *32-bit*)
12554       LD="${LD-ld} -32"
12555       ;;
12556     *N32*)
12557       LD="${LD-ld} -n32"
12558       ;;
12559     *64-bit*)
12560       LD="${LD-ld} -64"
12561       ;;
12562     esac
12563    fi
12564   fi
12565   rm -rf conftest*
12566   ;;
12567
12568 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12569   # Find out which ABI we are using.
12570   echo 'int i;' > conftest.$ac_ext
12571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572   (eval $ac_compile) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; then
12576     case `/usr/bin/file conftest.o` in
12577     *32-bit*)
12578       case $host in
12579         x86_64-*linux*)
12580           LD="${LD-ld} -m elf_i386"
12581           ;;
12582         ppc64-*linux*|powerpc64-*linux*)
12583           LD="${LD-ld} -m elf32ppclinux"
12584           ;;
12585         s390x-*linux*)
12586           LD="${LD-ld} -m elf_s390"
12587           ;;
12588         sparc64-*linux*)
12589           LD="${LD-ld} -m elf32_sparc"
12590           ;;
12591       esac
12592       ;;
12593     *64-bit*)
12594       case $host in
12595         x86_64-*linux*)
12596           LD="${LD-ld} -m elf_x86_64"
12597           ;;
12598         ppc*-*linux*|powerpc*-*linux*)
12599           LD="${LD-ld} -m elf64ppc"
12600           ;;
12601         s390*-*linux*)
12602           LD="${LD-ld} -m elf64_s390"
12603           ;;
12604         sparc*-*linux*)
12605           LD="${LD-ld} -m elf64_sparc"
12606           ;;
12607       esac
12608       ;;
12609     esac
12610   fi
12611   rm -rf conftest*
12612   ;;
12613
12614 *-*-sco3.2v5*)
12615   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12616   SAVE_CFLAGS="$CFLAGS"
12617   CFLAGS="$CFLAGS -belf"
12618   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12619 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12620 if test "${lt_cv_cc_needs_belf+set}" = set; then
12621   echo $ECHO_N "(cached) $ECHO_C" >&6
12622 else
12623   ac_ext=c
12624 ac_cpp='$CPP $CPPFLAGS'
12625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12628
12629      cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635
12636 int
12637 main ()
12638 {
12639
12640   ;
12641   return 0;
12642 }
12643 _ACEOF
12644 rm -f conftest.$ac_objext 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>conftest.er1
12652   ac_status=$?
12653   grep -v '^ *+' conftest.er1 >conftest.err
12654   rm -f conftest.er1
12655   cat conftest.err >&5
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); } && {
12658          test -z "$ac_c_werror_flag" ||
12659          test ! -s conftest.err
12660        } && test -s conftest$ac_exeext &&
12661        $as_test_x conftest$ac_exeext; then
12662   lt_cv_cc_needs_belf=yes
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         lt_cv_cc_needs_belf=no
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12671       conftest$ac_exeext conftest.$ac_ext
12672      ac_ext=c
12673 ac_cpp='$CPP $CPPFLAGS'
12674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12677
12678 fi
12679 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12680 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12681   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12682     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12683     CFLAGS="$SAVE_CFLAGS"
12684   fi
12685   ;;
12686 sparc*-*solaris*)
12687   # Find out which ABI we are using.
12688   echo 'int i;' > conftest.$ac_ext
12689   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; then
12694     case `/usr/bin/file conftest.o` in
12695     *64-bit*)
12696       case $lt_cv_prog_gnu_ld in
12697       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12698       *)    LD="${LD-ld} -64" ;;
12699       esac
12700       ;;
12701     esac
12702   fi
12703   rm -rf conftest*
12704   ;;
12705
12706
12707 esac
12708
12709 need_locks="$enable_libtool_lock"
12710
12711
12712
12713 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12714 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12715 if test "${ac_cv_header_stdc+set}" = set; then
12716   echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718   cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h.  */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h.  */
12724 #include <stdlib.h>
12725 #include <stdarg.h>
12726 #include <string.h>
12727 #include <float.h>
12728
12729 int
12730 main ()
12731 {
12732
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (ac_try="$ac_compile"
12739 case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_compile") 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } && {
12751          test -z "$ac_c_werror_flag" ||
12752          test ! -s conftest.err
12753        } && test -s conftest.$ac_objext; then
12754   ac_cv_header_stdc=yes
12755 else
12756   echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12758
12759         ac_cv_header_stdc=no
12760 fi
12761
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763
12764 if test $ac_cv_header_stdc = yes; then
12765   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12766   cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772 #include <string.h>
12773
12774 _ACEOF
12775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12776   $EGREP "memchr" >/dev/null 2>&1; then
12777   :
12778 else
12779   ac_cv_header_stdc=no
12780 fi
12781 rm -f conftest*
12782
12783 fi
12784
12785 if test $ac_cv_header_stdc = yes; then
12786   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12787   cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 #include <stdlib.h>
12794
12795 _ACEOF
12796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12797   $EGREP "free" >/dev/null 2>&1; then
12798   :
12799 else
12800   ac_cv_header_stdc=no
12801 fi
12802 rm -f conftest*
12803
12804 fi
12805
12806 if test $ac_cv_header_stdc = yes; then
12807   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12808   if test "$cross_compiling" = yes; then
12809   :
12810 else
12811   cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817 #include <ctype.h>
12818 #include <stdlib.h>
12819 #if ((' ' & 0x0FF) == 0x020)
12820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12822 #else
12823 # define ISLOWER(c) \
12824                    (('a' <= (c) && (c) <= 'i') \
12825                      || ('j' <= (c) && (c) <= 'r') \
12826                      || ('s' <= (c) && (c) <= 'z'))
12827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12828 #endif
12829
12830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12831 int
12832 main ()
12833 {
12834   int i;
12835   for (i = 0; i < 256; i++)
12836     if (XOR (islower (i), ISLOWER (i))
12837         || toupper (i) != TOUPPER (i))
12838       return 2;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest$ac_exeext
12843 if { (ac_try="$ac_link"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849   (eval "$ac_link") 2>&5
12850   ac_status=$?
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12853   { (case "(($ac_try" in
12854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855   *) ac_try_echo=$ac_try;;
12856 esac
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858   (eval "$ac_try") 2>&5
12859   ac_status=$?
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); }; }; then
12862   :
12863 else
12864   echo "$as_me: program exited with status $ac_status" >&5
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868 ( exit $ac_status )
12869 ac_cv_header_stdc=no
12870 fi
12871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12872 fi
12873
12874
12875 fi
12876 fi
12877 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12878 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12879 if test $ac_cv_header_stdc = yes; then
12880
12881 cat >>confdefs.h <<\_ACEOF
12882 #define STDC_HEADERS 1
12883 _ACEOF
12884
12885 fi
12886
12887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12898                   inttypes.h stdint.h unistd.h
12899 do
12900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12904   echo $ECHO_N "(cached) $ECHO_C" >&6
12905 else
12906   cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h.  */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913
12914 #include <$ac_header>
12915 _ACEOF
12916 rm -f conftest.$ac_objext
12917 if { (ac_try="$ac_compile"
12918 case "(($ac_try" in
12919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920   *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923   (eval "$ac_compile") 2>conftest.er1
12924   ac_status=$?
12925   grep -v '^ *+' conftest.er1 >conftest.err
12926   rm -f conftest.er1
12927   cat conftest.err >&5
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } && {
12930          test -z "$ac_c_werror_flag" ||
12931          test ! -s conftest.err
12932        } && test -s conftest.$ac_objext; then
12933   eval "$as_ac_Header=yes"
12934 else
12935   echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938         eval "$as_ac_Header=no"
12939 fi
12940
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 ac_res=`eval echo '${'$as_ac_Header'}'`
12944                { echo "$as_me:$LINENO: result: $ac_res" >&5
12945 echo "${ECHO_T}$ac_res" >&6; }
12946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12947   cat >>confdefs.h <<_ACEOF
12948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949 _ACEOF
12950
12951 fi
12952
12953 done
12954
12955
12956
12957 for ac_header in dlfcn.h
12958 do
12959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12964   echo $ECHO_N "(cached) $ECHO_C" >&6
12965 fi
12966 ac_res=`eval echo '${'$as_ac_Header'}'`
12967                { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 else
12970   # Is the header compilable?
12971 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 $ac_includes_default
12980 #include <$ac_header>
12981 _ACEOF
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986   *) ac_try_echo=$ac_try;;
12987 esac
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989   (eval "$ac_compile") 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } && {
12996          test -z "$ac_c_werror_flag" ||
12997          test ! -s conftest.err
12998        } && test -s conftest.$ac_objext; then
12999   ac_header_compiler=yes
13000 else
13001   echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004         ac_header_compiler=no
13005 fi
13006
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13009 echo "${ECHO_T}$ac_header_compiler" >&6; }
13010
13011 # Is the header present?
13012 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13014 cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h.  */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h.  */
13020 #include <$ac_header>
13021 _ACEOF
13022 if { (ac_try="$ac_cpp conftest.$ac_ext"
13023 case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } >/dev/null && {
13035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13036          test ! -s conftest.err
13037        }; then
13038   ac_header_preproc=yes
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043   ac_header_preproc=no
13044 fi
13045
13046 rm -f conftest.err conftest.$ac_ext
13047 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13048 echo "${ECHO_T}$ac_header_preproc" >&6; }
13049
13050 # So?  What about this header?
13051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13052   yes:no: )
13053     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13054 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13056 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13057     ac_header_preproc=yes
13058     ;;
13059   no:yes:* )
13060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13062     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13063 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13064     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13065 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13066     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13067 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13070     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13071 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13072     ( cat <<\_ASBOX
13073 ## --------------------------------------------- ##
13074 ## Report this to vserver@list.linux-vserver.org ##
13075 ## --------------------------------------------- ##
13076 _ASBOX
13077      ) | sed "s/^/$as_me: WARNING:     /" >&2
13078     ;;
13079 esac
13080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13083   echo $ECHO_N "(cached) $ECHO_C" >&6
13084 else
13085   eval "$as_ac_Header=\$ac_header_preproc"
13086 fi
13087 ac_res=`eval echo '${'$as_ac_Header'}'`
13088                { echo "$as_me:$LINENO: result: $ac_res" >&5
13089 echo "${ECHO_T}$ac_res" >&6; }
13090
13091 fi
13092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13093   cat >>confdefs.h <<_ACEOF
13094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13095 _ACEOF
13096
13097 fi
13098
13099 done
13100
13101
13102
13103 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13104     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13105     (test "X$CXX" != "Xg++"))) ; then
13106   ac_ext=cpp
13107 ac_cpp='$CXXCPP $CPPFLAGS'
13108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13111 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13112 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13113 if test -z "$CXXCPP"; then
13114   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117       # Double quotes because CXXCPP needs to be expanded
13118     for CXXCPP in "$CXX -E" "/lib/cpp"
13119     do
13120       ac_preproc_ok=false
13121 for ac_cxx_preproc_warn_flag in '' yes
13122 do
13123   # Use a header file that comes with gcc, so configuring glibc
13124   # with a fresh cross-compiler works.
13125   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13126   # <limits.h> exists even on freestanding compilers.
13127   # On the NeXT, cc -E runs the code through the compiler's parser,
13128   # not just through cpp. "Syntax error" is here to catch this case.
13129   cat >conftest.$ac_ext <<_ACEOF
13130 /* confdefs.h.  */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h.  */
13135 #ifdef __STDC__
13136 # include <limits.h>
13137 #else
13138 # include <assert.h>
13139 #endif
13140                      Syntax error
13141 _ACEOF
13142 if { (ac_try="$ac_cpp conftest.$ac_ext"
13143 case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13149   ac_status=$?
13150   grep -v '^ *+' conftest.er1 >conftest.err
13151   rm -f conftest.er1
13152   cat conftest.err >&5
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); } >/dev/null && {
13155          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13156          test ! -s conftest.err
13157        }; then
13158   :
13159 else
13160   echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163   # Broken: fails on valid input.
13164 continue
13165 fi
13166
13167 rm -f conftest.err conftest.$ac_ext
13168
13169   # OK, works on sane cases.  Now check whether nonexistent headers
13170   # can be detected and how.
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177 #include <ac_nonexistent.h>
13178 _ACEOF
13179 if { (ac_try="$ac_cpp conftest.$ac_ext"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186   ac_status=$?
13187   grep -v '^ *+' conftest.er1 >conftest.err
13188   rm -f conftest.er1
13189   cat conftest.err >&5
13190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191   (exit $ac_status); } >/dev/null && {
13192          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13193          test ! -s conftest.err
13194        }; then
13195   # Broken: success on invalid input.
13196 continue
13197 else
13198   echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201   # Passes both tests.
13202 ac_preproc_ok=:
13203 break
13204 fi
13205
13206 rm -f conftest.err conftest.$ac_ext
13207
13208 done
13209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13210 rm -f conftest.err conftest.$ac_ext
13211 if $ac_preproc_ok; then
13212   break
13213 fi
13214
13215     done
13216     ac_cv_prog_CXXCPP=$CXXCPP
13217
13218 fi
13219   CXXCPP=$ac_cv_prog_CXXCPP
13220 else
13221   ac_cv_prog_CXXCPP=$CXXCPP
13222 fi
13223 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13224 echo "${ECHO_T}$CXXCPP" >&6; }
13225 ac_preproc_ok=false
13226 for ac_cxx_preproc_warn_flag in '' yes
13227 do
13228   # Use a header file that comes with gcc, so configuring glibc
13229   # with a fresh cross-compiler works.
13230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13231   # <limits.h> exists even on freestanding compilers.
13232   # On the NeXT, cc -E runs the code through the compiler's parser,
13233   # not just through cpp. "Syntax error" is here to catch this case.
13234   cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h.  */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h.  */
13240 #ifdef __STDC__
13241 # include <limits.h>
13242 #else
13243 # include <assert.h>
13244 #endif
13245                      Syntax error
13246 _ACEOF
13247 if { (ac_try="$ac_cpp conftest.$ac_ext"
13248 case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13254   ac_status=$?
13255   grep -v '^ *+' conftest.er1 >conftest.err
13256   rm -f conftest.er1
13257   cat conftest.err >&5
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); } >/dev/null && {
13260          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13261          test ! -s conftest.err
13262        }; then
13263   :
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268   # Broken: fails on valid input.
13269 continue
13270 fi
13271
13272 rm -f conftest.err conftest.$ac_ext
13273
13274   # OK, works on sane cases.  Now check whether nonexistent headers
13275   # can be detected and how.
13276   cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h.  */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h.  */
13282 #include <ac_nonexistent.h>
13283 _ACEOF
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287   *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291   ac_status=$?
13292   grep -v '^ *+' conftest.er1 >conftest.err
13293   rm -f conftest.er1
13294   cat conftest.err >&5
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); } >/dev/null && {
13297          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13298          test ! -s conftest.err
13299        }; then
13300   # Broken: success on invalid input.
13301 continue
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306   # Passes both tests.
13307 ac_preproc_ok=:
13308 break
13309 fi
13310
13311 rm -f conftest.err conftest.$ac_ext
13312
13313 done
13314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13315 rm -f conftest.err conftest.$ac_ext
13316 if $ac_preproc_ok; then
13317   :
13318 else
13319   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13320 See \`config.log' for more details." >&5
13321 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13322 See \`config.log' for more details." >&2;}
13323    { (exit 1); exit 1; }; }
13324 fi
13325
13326 ac_ext=cpp
13327 ac_cpp='$CXXCPP $CPPFLAGS'
13328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13331
13332 fi
13333
13334 ac_ext=f
13335 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13336 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13338 if test -n "$ac_tool_prefix"; then
13339   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
13340   do
13341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13345 if test "${ac_cv_prog_F77+set}" = set; then
13346   echo $ECHO_N "(cached) $ECHO_C" >&6
13347 else
13348   if test -n "$F77"; then
13349   ac_cv_prog_F77="$F77" # Let the user override the test.
13350 else
13351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13352 for as_dir in $PATH
13353 do
13354   IFS=$as_save_IFS
13355   test -z "$as_dir" && as_dir=.
13356   for ac_exec_ext in '' $ac_executable_extensions; do
13357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13358     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13360     break 2
13361   fi
13362 done
13363 done
13364 IFS=$as_save_IFS
13365
13366 fi
13367 fi
13368 F77=$ac_cv_prog_F77
13369 if test -n "$F77"; then
13370   { echo "$as_me:$LINENO: result: $F77" >&5
13371 echo "${ECHO_T}$F77" >&6; }
13372 else
13373   { echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6; }
13375 fi
13376
13377
13378     test -n "$F77" && break
13379   done
13380 fi
13381 if test -z "$F77"; then
13382   ac_ct_F77=$F77
13383   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
13384 do
13385   # Extract the first word of "$ac_prog", so it can be a program name with args.
13386 set dummy $ac_prog; ac_word=$2
13387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13389 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13390   echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392   if test -n "$ac_ct_F77"; then
13393   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13394 else
13395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396 for as_dir in $PATH
13397 do
13398   IFS=$as_save_IFS
13399   test -z "$as_dir" && as_dir=.
13400   for ac_exec_ext in '' $ac_executable_extensions; do
13401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13402     ac_cv_prog_ac_ct_F77="$ac_prog"
13403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13404     break 2
13405   fi
13406 done
13407 done
13408 IFS=$as_save_IFS
13409
13410 fi
13411 fi
13412 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13413 if test -n "$ac_ct_F77"; then
13414   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13415 echo "${ECHO_T}$ac_ct_F77" >&6; }
13416 else
13417   { echo "$as_me:$LINENO: result: no" >&5
13418 echo "${ECHO_T}no" >&6; }
13419 fi
13420
13421
13422   test -n "$ac_ct_F77" && break
13423 done
13424
13425   if test "x$ac_ct_F77" = x; then
13426     F77=""
13427   else
13428     case $cross_compiling:$ac_tool_warned in
13429 yes:)
13430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13431 whose name does not start with the host triplet.  If you think this
13432 configuration is useful to you, please write to autoconf@gnu.org." >&5
13433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13434 whose name does not start with the host triplet.  If you think this
13435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13436 ac_tool_warned=yes ;;
13437 esac
13438     F77=$ac_ct_F77
13439   fi
13440 fi
13441
13442
13443 # Provide some information about the compiler.
13444 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13445 ac_compiler=`set X $ac_compile; echo $2`
13446 { (ac_try="$ac_compiler --version >&5"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_compiler --version >&5") 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }
13456 { (ac_try="$ac_compiler -v >&5"
13457 case "(($ac_try" in
13458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459   *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462   (eval "$ac_compiler -v >&5") 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }
13466 { (ac_try="$ac_compiler -V >&5"
13467 case "(($ac_try" in
13468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469   *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472   (eval "$ac_compiler -V >&5") 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }
13476 rm -f a.out
13477
13478 # If we don't use `.F' as extension, the preprocessor is not run on the
13479 # input file.  (Note that this only needs to work for GNU compilers.)
13480 ac_save_ext=$ac_ext
13481 ac_ext=F
13482 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13483 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13484 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   cat >conftest.$ac_ext <<_ACEOF
13488       program main
13489 #ifndef __GNUC__
13490        choke me
13491 #endif
13492
13493       end
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (ac_try="$ac_compile"
13497 case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502   (eval "$ac_compile") 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } && {
13509          test -z "$ac_f77_werror_flag" ||
13510          test ! -s conftest.err
13511        } && test -s conftest.$ac_objext; then
13512   ac_compiler_gnu=yes
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517         ac_compiler_gnu=no
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13522
13523 fi
13524 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13525 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13526 ac_ext=$ac_save_ext
13527 ac_test_FFLAGS=${FFLAGS+set}
13528 ac_save_FFLAGS=$FFLAGS
13529 FFLAGS=
13530 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13531 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13532 if test "${ac_cv_prog_f77_g+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   FFLAGS=-g
13536 cat >conftest.$ac_ext <<_ACEOF
13537       program main
13538
13539       end
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (ac_try="$ac_compile"
13543 case "(($ac_try" in
13544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545   *) ac_try_echo=$ac_try;;
13546 esac
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548   (eval "$ac_compile") 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } && {
13555          test -z "$ac_f77_werror_flag" ||
13556          test ! -s conftest.err
13557        } && test -s conftest.$ac_objext; then
13558   ac_cv_prog_f77_g=yes
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563         ac_cv_prog_f77_g=no
13564 fi
13565
13566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13567
13568 fi
13569 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13570 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13571 if test "$ac_test_FFLAGS" = set; then
13572   FFLAGS=$ac_save_FFLAGS
13573 elif test $ac_cv_prog_f77_g = yes; then
13574   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13575     FFLAGS="-g -O2"
13576   else
13577     FFLAGS="-g"
13578   fi
13579 else
13580   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13581     FFLAGS="-O2"
13582   else
13583     FFLAGS=
13584   fi
13585 fi
13586
13587 G77=`test $ac_compiler_gnu = yes && echo yes`
13588 ac_ext=c
13589 ac_cpp='$CPP $CPPFLAGS'
13590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13593
13594
13595
13596 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13597
13598 # find the maximum length of command line arguments
13599 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13600 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13601 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604     i=0
13605   teststring="ABCD"
13606
13607   case $build_os in
13608   msdosdjgpp*)
13609     # On DJGPP, this test can blow up pretty badly due to problems in libc
13610     # (any single argument exceeding 2000 bytes causes a buffer overrun
13611     # during glob expansion).  Even if it were fixed, the result of this
13612     # check would be larger than it should be.
13613     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13614     ;;
13615
13616   gnu*)
13617     # Under GNU Hurd, this test is not required because there is
13618     # no limit to the length of command line arguments.
13619     # Libtool will interpret -1 as no limit whatsoever
13620     lt_cv_sys_max_cmd_len=-1;
13621     ;;
13622
13623   cygwin* | mingw*)
13624     # On Win9x/ME, this test blows up -- it succeeds, but takes
13625     # about 5 minutes as the teststring grows exponentially.
13626     # Worse, since 9x/ME are not pre-emptively multitasking,
13627     # you end up with a "frozen" computer, even though with patience
13628     # the test eventually succeeds (with a max line length of 256k).
13629     # Instead, let's just punt: use the minimum linelength reported by
13630     # all of the supported platforms: 8192 (on NT/2K/XP).
13631     lt_cv_sys_max_cmd_len=8192;
13632     ;;
13633
13634   amigaos*)
13635     # On AmigaOS with pdksh, this test takes hours, literally.
13636     # So we just punt and use a minimum line length of 8192.
13637     lt_cv_sys_max_cmd_len=8192;
13638     ;;
13639
13640   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13641     # This has been around since 386BSD, at least.  Likely further.
13642     if test -x /sbin/sysctl; then
13643       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13644     elif test -x /usr/sbin/sysctl; then
13645       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13646     else
13647       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
13648     fi
13649     # And add a safety zone
13650     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13651     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13652     ;;
13653
13654   interix*)
13655     # We know the value 262144 and hardcode it with a safety zone (like BSD)
13656     lt_cv_sys_max_cmd_len=196608
13657     ;;
13658
13659   osf*)
13660     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13661     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13662     # nice to cause kernel panics so lets avoid the loop below.
13663     # First set a reasonable default.
13664     lt_cv_sys_max_cmd_len=16384
13665     #
13666     if test -x /sbin/sysconfig; then
13667       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13668         *1*) lt_cv_sys_max_cmd_len=-1 ;;
13669       esac
13670     fi
13671     ;;
13672   sco3.2v5*)
13673     lt_cv_sys_max_cmd_len=102400
13674     ;;
13675   sysv5* | sco5v6* | sysv4.2uw2*)
13676     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13677     if test -n "$kargmax"; then
13678       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
13679     else
13680       lt_cv_sys_max_cmd_len=32768
13681     fi
13682     ;;
13683   *)
13684     # If test is not a shell built-in, we'll probably end up computing a
13685     # maximum length that is only half of the actual maximum length, but
13686     # we can't tell.
13687     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13688     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13689                = "XX$teststring") >/dev/null 2>&1 &&
13690             new_result=`expr "X$teststring" : ".*" 2>&1` &&
13691             lt_cv_sys_max_cmd_len=$new_result &&
13692             test $i != 17 # 1/2 MB should be enough
13693     do
13694       i=`expr $i + 1`
13695       teststring=$teststring$teststring
13696     done
13697     teststring=
13698     # Add a significant safety factor because C++ compilers can tack on massive
13699     # amounts of additional arguments before passing them to the linker.
13700     # It appears as though 1/2 is a usable value.
13701     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13702     ;;
13703   esac
13704
13705 fi
13706
13707 if test -n $lt_cv_sys_max_cmd_len ; then
13708   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13709 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13710 else
13711   { echo "$as_me:$LINENO: result: none" >&5
13712 echo "${ECHO_T}none" >&6; }
13713 fi
13714
13715
13716
13717
13718 # Check for command to grab the raw symbol name followed by C symbol from nm.
13719 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13720 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13721 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13722   echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13724
13725 # These are sane defaults that work on at least a few old systems.
13726 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13727
13728 # Character class describing NM global symbol codes.
13729 symcode='[BCDEGRST]'
13730
13731 # Regexp to match symbols that can be accessed directly from C.
13732 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13733
13734 # Transform an extracted symbol line into a proper C declaration
13735 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13736
13737 # Transform an extracted symbol line into symbol name and symbol address
13738 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'"
13739
13740 # Define system-specific variables.
13741 case $host_os in
13742 aix*)
13743   symcode='[BCDT]'
13744   ;;
13745 cygwin* | mingw* | pw32*)
13746   symcode='[ABCDGISTW]'
13747   ;;
13748 hpux*) # Its linker distinguishes data from code symbols
13749   if test "$host_cpu" = ia64; then
13750     symcode='[ABCDEGRST]'
13751   fi
13752   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13753   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'"
13754   ;;
13755 linux*)
13756   if test "$host_cpu" = ia64; then
13757     symcode='[ABCDGIRSTW]'
13758     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13759     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'"
13760   fi
13761   ;;
13762 irix* | nonstopux*)
13763   symcode='[BCDEGRST]'
13764   ;;
13765 osf*)
13766   symcode='[BCDEGQRST]'
13767   ;;
13768 solaris*)
13769   symcode='[BDRT]'
13770   ;;
13771 sco3.2v5*)
13772   symcode='[DT]'
13773   ;;
13774 sysv4.2uw2*)
13775   symcode='[DT]'
13776   ;;
13777 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13778   symcode='[ABDT]'
13779   ;;
13780 sysv4)
13781   symcode='[DFNSTU]'
13782   ;;
13783 esac
13784
13785 # Handle CRLF in mingw tool chain
13786 opt_cr=
13787 case $build_os in
13788 mingw*)
13789   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13790   ;;
13791 esac
13792
13793 # If we're using GNU nm, then use its standard symbol codes.
13794 case `$NM -V 2>&1` in
13795 *GNU* | *'with BFD'*)
13796   symcode='[ABCDGIRSTW]' ;;
13797 esac
13798
13799 # Try without a prefix undercore, then with it.
13800 for ac_symprfx in "" "_"; do
13801
13802   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13803   symxfrm="\\1 $ac_symprfx\\2 \\2"
13804
13805   # Write the raw and C identifiers.
13806   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13807
13808   # Check to see that the pipe works correctly.
13809   pipe_works=no
13810
13811   rm -f conftest*
13812   cat > conftest.$ac_ext <<EOF
13813 #ifdef __cplusplus
13814 extern "C" {
13815 #endif
13816 char nm_test_var;
13817 void nm_test_func(){}
13818 #ifdef __cplusplus
13819 }
13820 #endif
13821 int main(){nm_test_var='a';nm_test_func();return(0);}
13822 EOF
13823
13824   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13825   (eval $ac_compile) 2>&5
13826   ac_status=$?
13827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828   (exit $ac_status); }; then
13829     # Now try to grab the symbols.
13830     nlist=conftest.nm
13831     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13832   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } && test -s "$nlist"; then
13836       # Try sorting and uniquifying the output.
13837       if sort "$nlist" | uniq > "$nlist"T; then
13838         mv -f "$nlist"T "$nlist"
13839       else
13840         rm -f "$nlist"T
13841       fi
13842
13843       # Make sure that we snagged all the symbols we need.
13844       if grep ' nm_test_var$' "$nlist" >/dev/null; then
13845         if grep ' nm_test_func$' "$nlist" >/dev/null; then
13846           cat <<EOF > conftest.$ac_ext
13847 #ifdef __cplusplus
13848 extern "C" {
13849 #endif
13850
13851 EOF
13852           # Now generate the symbol file.
13853           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13854
13855           cat <<EOF >> conftest.$ac_ext
13856 #if defined (__STDC__) && __STDC__
13857 # define lt_ptr_t void *
13858 #else
13859 # define lt_ptr_t char *
13860 # define const
13861 #endif
13862
13863 /* The mapping between symbol names and symbols. */
13864 const struct {
13865   const char *name;
13866   lt_ptr_t address;
13867 }
13868 lt_preloaded_symbols[] =
13869 {
13870 EOF
13871           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13872           cat <<\EOF >> conftest.$ac_ext
13873   {0, (lt_ptr_t) 0}
13874 };
13875
13876 #ifdef __cplusplus
13877 }
13878 #endif
13879 EOF
13880           # Now try linking the two files.
13881           mv conftest.$ac_objext conftstm.$ac_objext
13882           lt_save_LIBS="$LIBS"
13883           lt_save_CFLAGS="$CFLAGS"
13884           LIBS="conftstm.$ac_objext"
13885           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13886           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887   (eval $ac_link) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13891             pipe_works=yes
13892           fi
13893           LIBS="$lt_save_LIBS"
13894           CFLAGS="$lt_save_CFLAGS"
13895         else
13896           echo "cannot find nm_test_func in $nlist" >&5
13897         fi
13898       else
13899         echo "cannot find nm_test_var in $nlist" >&5
13900       fi
13901     else
13902       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13903     fi
13904   else
13905     echo "$progname: failed program was:" >&5
13906     cat conftest.$ac_ext >&5
13907   fi
13908   rm -f conftest* conftst*
13909
13910   # Do not use the global_symbol_pipe unless it works.
13911   if test "$pipe_works" = yes; then
13912     break
13913   else
13914     lt_cv_sys_global_symbol_pipe=
13915   fi
13916 done
13917
13918 fi
13919
13920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13921   lt_cv_sys_global_symbol_to_cdecl=
13922 fi
13923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13924   { echo "$as_me:$LINENO: result: failed" >&5
13925 echo "${ECHO_T}failed" >&6; }
13926 else
13927   { echo "$as_me:$LINENO: result: ok" >&5
13928 echo "${ECHO_T}ok" >&6; }
13929 fi
13930
13931 { echo "$as_me:$LINENO: checking for objdir" >&5
13932 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13933 if test "${lt_cv_objdir+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   rm -f .libs 2>/dev/null
13937 mkdir .libs 2>/dev/null
13938 if test -d .libs; then
13939   lt_cv_objdir=.libs
13940 else
13941   # MS-DOS does not allow filenames that begin with a dot.
13942   lt_cv_objdir=_libs
13943 fi
13944 rmdir .libs 2>/dev/null
13945 fi
13946 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13947 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13948 objdir=$lt_cv_objdir
13949
13950
13951
13952
13953
13954 case $host_os in
13955 aix3*)
13956   # AIX sometimes has problems with the GCC collect2 program.  For some
13957   # reason, if we set the COLLECT_NAMES environment variable, the problems
13958   # vanish in a puff of smoke.
13959   if test "X${COLLECT_NAMES+set}" != Xset; then
13960     COLLECT_NAMES=
13961     export COLLECT_NAMES
13962   fi
13963   ;;
13964 esac
13965
13966 # Sed substitution that helps us do robust quoting.  It backslashifies
13967 # metacharacters that are still active within double-quoted strings.
13968 Xsed='sed -e 1s/^X//'
13969 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13970
13971 # Same as above, but do not quote variable references.
13972 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13973
13974 # Sed substitution to delay expansion of an escaped shell variable in a
13975 # double_quote_subst'ed string.
13976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13977
13978 # Sed substitution to avoid accidental globbing in evaled expressions
13979 no_glob_subst='s/\*/\\\*/g'
13980
13981 # Constants:
13982 rm="rm -f"
13983
13984 # Global variables:
13985 default_ofile=libtool
13986 can_build_shared=yes
13987
13988 # All known linkers require a `.a' archive for static linking (except MSVC,
13989 # which needs '.lib').
13990 libext=a
13991 ltmain="$ac_aux_dir/ltmain.sh"
13992 ofile="$default_ofile"
13993 with_gnu_ld="$lt_cv_prog_gnu_ld"
13994
13995 if test -n "$ac_tool_prefix"; then
13996   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13997 set dummy ${ac_tool_prefix}ar; ac_word=$2
13998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14000 if test "${ac_cv_prog_AR+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003   if test -n "$AR"; then
14004   ac_cv_prog_AR="$AR" # Let the user override the test.
14005 else
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14008 do
14009   IFS=$as_save_IFS
14010   test -z "$as_dir" && as_dir=.
14011   for ac_exec_ext in '' $ac_executable_extensions; do
14012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14013     ac_cv_prog_AR="${ac_tool_prefix}ar"
14014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14015     break 2
14016   fi
14017 done
14018 done
14019 IFS=$as_save_IFS
14020
14021 fi
14022 fi
14023 AR=$ac_cv_prog_AR
14024 if test -n "$AR"; then
14025   { echo "$as_me:$LINENO: result: $AR" >&5
14026 echo "${ECHO_T}$AR" >&6; }
14027 else
14028   { echo "$as_me:$LINENO: result: no" >&5
14029 echo "${ECHO_T}no" >&6; }
14030 fi
14031
14032
14033 fi
14034 if test -z "$ac_cv_prog_AR"; then
14035   ac_ct_AR=$AR
14036   # Extract the first word of "ar", so it can be a program name with args.
14037 set dummy ar; ac_word=$2
14038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14040 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043   if test -n "$ac_ct_AR"; then
14044   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14045 else
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14048 do
14049   IFS=$as_save_IFS
14050   test -z "$as_dir" && as_dir=.
14051   for ac_exec_ext in '' $ac_executable_extensions; do
14052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14053     ac_cv_prog_ac_ct_AR="ar"
14054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055     break 2
14056   fi
14057 done
14058 done
14059 IFS=$as_save_IFS
14060
14061 fi
14062 fi
14063 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14064 if test -n "$ac_ct_AR"; then
14065   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14066 echo "${ECHO_T}$ac_ct_AR" >&6; }
14067 else
14068   { echo "$as_me:$LINENO: result: no" >&5
14069 echo "${ECHO_T}no" >&6; }
14070 fi
14071
14072   if test "x$ac_ct_AR" = x; then
14073     AR="false"
14074   else
14075     case $cross_compiling:$ac_tool_warned in
14076 yes:)
14077 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14078 whose name does not start with the host triplet.  If you think this
14079 configuration is useful to you, please write to autoconf@gnu.org." >&5
14080 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14081 whose name does not start with the host triplet.  If you think this
14082 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14083 ac_tool_warned=yes ;;
14084 esac
14085     AR=$ac_ct_AR
14086   fi
14087 else
14088   AR="$ac_cv_prog_AR"
14089 fi
14090
14091 if test -n "$ac_tool_prefix"; then
14092   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14096 if test "${ac_cv_prog_RANLIB+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   if test -n "$RANLIB"; then
14100   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105   IFS=$as_save_IFS
14106   test -z "$as_dir" && as_dir=.
14107   for ac_exec_ext in '' $ac_executable_extensions; do
14108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14109     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14111     break 2
14112   fi
14113 done
14114 done
14115 IFS=$as_save_IFS
14116
14117 fi
14118 fi
14119 RANLIB=$ac_cv_prog_RANLIB
14120 if test -n "$RANLIB"; then
14121   { echo "$as_me:$LINENO: result: $RANLIB" >&5
14122 echo "${ECHO_T}$RANLIB" >&6; }
14123 else
14124   { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14126 fi
14127
14128
14129 fi
14130 if test -z "$ac_cv_prog_RANLIB"; then
14131   ac_ct_RANLIB=$RANLIB
14132   # Extract the first word of "ranlib", so it can be a program name with args.
14133 set dummy ranlib; ac_word=$2
14134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14137   echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139   if test -n "$ac_ct_RANLIB"; then
14140   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14141 else
14142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143 for as_dir in $PATH
14144 do
14145   IFS=$as_save_IFS
14146   test -z "$as_dir" && as_dir=.
14147   for ac_exec_ext in '' $ac_executable_extensions; do
14148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14149     ac_cv_prog_ac_ct_RANLIB="ranlib"
14150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151     break 2
14152   fi
14153 done
14154 done
14155 IFS=$as_save_IFS
14156
14157 fi
14158 fi
14159 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14160 if test -n "$ac_ct_RANLIB"; then
14161   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14162 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14163 else
14164   { echo "$as_me:$LINENO: result: no" >&5
14165 echo "${ECHO_T}no" >&6; }
14166 fi
14167
14168   if test "x$ac_ct_RANLIB" = x; then
14169     RANLIB=":"
14170   else
14171     case $cross_compiling:$ac_tool_warned in
14172 yes:)
14173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14174 whose name does not start with the host triplet.  If you think this
14175 configuration is useful to you, please write to autoconf@gnu.org." >&5
14176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14177 whose name does not start with the host triplet.  If you think this
14178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14179 ac_tool_warned=yes ;;
14180 esac
14181     RANLIB=$ac_ct_RANLIB
14182   fi
14183 else
14184   RANLIB="$ac_cv_prog_RANLIB"
14185 fi
14186
14187 if test -n "$ac_tool_prefix"; then
14188   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14189 set dummy ${ac_tool_prefix}strip; ac_word=$2
14190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14192 if test "${ac_cv_prog_STRIP+set}" = set; then
14193   echo $ECHO_N "(cached) $ECHO_C" >&6
14194 else
14195   if test -n "$STRIP"; then
14196   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14197 else
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $PATH
14200 do
14201   IFS=$as_save_IFS
14202   test -z "$as_dir" && as_dir=.
14203   for ac_exec_ext in '' $ac_executable_extensions; do
14204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14205     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14207     break 2
14208   fi
14209 done
14210 done
14211 IFS=$as_save_IFS
14212
14213 fi
14214 fi
14215 STRIP=$ac_cv_prog_STRIP
14216 if test -n "$STRIP"; then
14217   { echo "$as_me:$LINENO: result: $STRIP" >&5
14218 echo "${ECHO_T}$STRIP" >&6; }
14219 else
14220   { echo "$as_me:$LINENO: result: no" >&5
14221 echo "${ECHO_T}no" >&6; }
14222 fi
14223
14224
14225 fi
14226 if test -z "$ac_cv_prog_STRIP"; then
14227   ac_ct_STRIP=$STRIP
14228   # Extract the first word of "strip", so it can be a program name with args.
14229 set dummy strip; ac_word=$2
14230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14232 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14233   echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235   if test -n "$ac_ct_STRIP"; then
14236   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14237 else
14238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239 for as_dir in $PATH
14240 do
14241   IFS=$as_save_IFS
14242   test -z "$as_dir" && as_dir=.
14243   for ac_exec_ext in '' $ac_executable_extensions; do
14244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14245     ac_cv_prog_ac_ct_STRIP="strip"
14246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247     break 2
14248   fi
14249 done
14250 done
14251 IFS=$as_save_IFS
14252
14253 fi
14254 fi
14255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14256 if test -n "$ac_ct_STRIP"; then
14257   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14258 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14259 else
14260   { echo "$as_me:$LINENO: result: no" >&5
14261 echo "${ECHO_T}no" >&6; }
14262 fi
14263
14264   if test "x$ac_ct_STRIP" = x; then
14265     STRIP=":"
14266   else
14267     case $cross_compiling:$ac_tool_warned in
14268 yes:)
14269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14270 whose name does not start with the host triplet.  If you think this
14271 configuration is useful to you, please write to autoconf@gnu.org." >&5
14272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14273 whose name does not start with the host triplet.  If you think this
14274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14275 ac_tool_warned=yes ;;
14276 esac
14277     STRIP=$ac_ct_STRIP
14278   fi
14279 else
14280   STRIP="$ac_cv_prog_STRIP"
14281 fi
14282
14283
14284 old_CC="$CC"
14285 old_CFLAGS="$CFLAGS"
14286
14287 # Set sane defaults for various variables
14288 test -z "$AR" && AR=ar
14289 test -z "$AR_FLAGS" && AR_FLAGS=cru
14290 test -z "$AS" && AS=as
14291 test -z "$CC" && CC=cc
14292 test -z "$LTCC" && LTCC=$CC
14293 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14294 test -z "$DLLTOOL" && DLLTOOL=dlltool
14295 test -z "$LD" && LD=ld
14296 test -z "$LN_S" && LN_S="ln -s"
14297 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14298 test -z "$NM" && NM=nm
14299 test -z "$SED" && SED=sed
14300 test -z "$OBJDUMP" && OBJDUMP=objdump
14301 test -z "$RANLIB" && RANLIB=:
14302 test -z "$STRIP" && STRIP=:
14303 test -z "$ac_objext" && ac_objext=o
14304
14305 # Determine commands to create old-style static archives.
14306 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14307 old_postinstall_cmds='chmod 644 $oldlib'
14308 old_postuninstall_cmds=
14309
14310 if test -n "$RANLIB"; then
14311   case $host_os in
14312   openbsd*)
14313     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14314     ;;
14315   *)
14316     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14317     ;;
14318   esac
14319   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14320 fi
14321
14322 for cc_temp in $compiler""; do
14323   case $cc_temp in
14324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14326     \-*) ;;
14327     *) break;;
14328   esac
14329 done
14330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14331
14332
14333 # Only perform the check for file, if the check method requires it
14334 case $deplibs_check_method in
14335 file_magic*)
14336   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14337     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14338 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14339 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14340   echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342   case $MAGIC_CMD in
14343 [\\/*] |  ?:[\\/]*)
14344   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14345   ;;
14346 *)
14347   lt_save_MAGIC_CMD="$MAGIC_CMD"
14348   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14349   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14350   for ac_dir in $ac_dummy; do
14351     IFS="$lt_save_ifs"
14352     test -z "$ac_dir" && ac_dir=.
14353     if test -f $ac_dir/${ac_tool_prefix}file; then
14354       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14355       if test -n "$file_magic_test_file"; then
14356         case $deplibs_check_method in
14357         "file_magic "*)
14358           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14359           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14360           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14361             $EGREP "$file_magic_regex" > /dev/null; then
14362             :
14363           else
14364             cat <<EOF 1>&2
14365
14366 *** Warning: the command libtool uses to detect shared libraries,
14367 *** $file_magic_cmd, produces output that libtool cannot recognize.
14368 *** The result is that libtool may fail to recognize shared libraries
14369 *** as such.  This will affect the creation of libtool libraries that
14370 *** depend on shared libraries, but programs linked with such libtool
14371 *** libraries will work regardless of this problem.  Nevertheless, you
14372 *** may want to report the problem to your system manager and/or to
14373 *** bug-libtool@gnu.org
14374
14375 EOF
14376           fi ;;
14377         esac
14378       fi
14379       break
14380     fi
14381   done
14382   IFS="$lt_save_ifs"
14383   MAGIC_CMD="$lt_save_MAGIC_CMD"
14384   ;;
14385 esac
14386 fi
14387
14388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14389 if test -n "$MAGIC_CMD"; then
14390   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14391 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14392 else
14393   { echo "$as_me:$LINENO: result: no" >&5
14394 echo "${ECHO_T}no" >&6; }
14395 fi
14396
14397 if test -z "$lt_cv_path_MAGIC_CMD"; then
14398   if test -n "$ac_tool_prefix"; then
14399     { echo "$as_me:$LINENO: checking for file" >&5
14400 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14401 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14402   echo $ECHO_N "(cached) $ECHO_C" >&6
14403 else
14404   case $MAGIC_CMD in
14405 [\\/*] |  ?:[\\/]*)
14406   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14407   ;;
14408 *)
14409   lt_save_MAGIC_CMD="$MAGIC_CMD"
14410   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14411   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14412   for ac_dir in $ac_dummy; do
14413     IFS="$lt_save_ifs"
14414     test -z "$ac_dir" && ac_dir=.
14415     if test -f $ac_dir/file; then
14416       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14417       if test -n "$file_magic_test_file"; then
14418         case $deplibs_check_method in
14419         "file_magic "*)
14420           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14421           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14422           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14423             $EGREP "$file_magic_regex" > /dev/null; then
14424             :
14425           else
14426             cat <<EOF 1>&2
14427
14428 *** Warning: the command libtool uses to detect shared libraries,
14429 *** $file_magic_cmd, produces output that libtool cannot recognize.
14430 *** The result is that libtool may fail to recognize shared libraries
14431 *** as such.  This will affect the creation of libtool libraries that
14432 *** depend on shared libraries, but programs linked with such libtool
14433 *** libraries will work regardless of this problem.  Nevertheless, you
14434 *** may want to report the problem to your system manager and/or to
14435 *** bug-libtool@gnu.org
14436
14437 EOF
14438           fi ;;
14439         esac
14440       fi
14441       break
14442     fi
14443   done
14444   IFS="$lt_save_ifs"
14445   MAGIC_CMD="$lt_save_MAGIC_CMD"
14446   ;;
14447 esac
14448 fi
14449
14450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14451 if test -n "$MAGIC_CMD"; then
14452   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14453 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14454 else
14455   { echo "$as_me:$LINENO: result: no" >&5
14456 echo "${ECHO_T}no" >&6; }
14457 fi
14458
14459   else
14460     MAGIC_CMD=:
14461   fi
14462 fi
14463
14464   fi
14465   ;;
14466 esac
14467
14468 enable_dlopen=no
14469 enable_win32_dll=no
14470
14471 # Check whether --enable-libtool-lock was given.
14472 if test "${enable_libtool_lock+set}" = set; then
14473   enableval=$enable_libtool_lock;
14474 fi
14475
14476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14477
14478
14479 # Check whether --with-pic was given.
14480 if test "${with_pic+set}" = set; then
14481   withval=$with_pic; pic_mode="$withval"
14482 else
14483   pic_mode=default
14484 fi
14485
14486 test -z "$pic_mode" && pic_mode=default
14487
14488 # Use C for the default configuration in the libtool script
14489 tagname=
14490 lt_save_CC="$CC"
14491 ac_ext=c
14492 ac_cpp='$CPP $CPPFLAGS'
14493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14496
14497
14498 # Source file extension for C test sources.
14499 ac_ext=c
14500
14501 # Object file extension for compiled C test sources.
14502 objext=o
14503 objext=$objext
14504
14505 # Code to be used in simple compile tests
14506 lt_simple_compile_test_code="int some_variable = 0;\n"
14507
14508 # Code to be used in simple link tests
14509 lt_simple_link_test_code='int main(){return(0);}\n'
14510
14511
14512 # If no C compiler was specified, use CC.
14513 LTCC=${LTCC-"$CC"}
14514
14515 # If no C compiler flags were specified, use CFLAGS.
14516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14517
14518 # Allow CC to be a program name with arguments.
14519 compiler=$CC
14520
14521
14522 # save warnings/boilerplate of simple test code
14523 ac_outfile=conftest.$ac_objext
14524 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14525 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14526 _lt_compiler_boilerplate=`cat conftest.err`
14527 $rm conftest*
14528
14529 ac_outfile=conftest.$ac_objext
14530 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14531 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14532 _lt_linker_boilerplate=`cat conftest.err`
14533 $rm conftest*
14534
14535
14536
14537 lt_prog_compiler_no_builtin_flag=
14538
14539 if test "$GCC" = yes; then
14540   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14541
14542
14543 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14544 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14545 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   lt_cv_prog_compiler_rtti_exceptions=no
14549   ac_outfile=conftest.$ac_objext
14550    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14551    lt_compiler_flag="-fno-rtti -fno-exceptions"
14552    # Insert the option either (1) after the last *FLAGS variable, or
14553    # (2) before a word containing "conftest.", or (3) at the end.
14554    # Note that $ac_compile itself does not contain backslashes and begins
14555    # with a dollar sign (not a hyphen), so the echo should work correctly.
14556    # The option is referenced via a variable to avoid confusing sed.
14557    lt_compile=`echo "$ac_compile" | $SED \
14558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14560    -e 's:$: $lt_compiler_flag:'`
14561    (eval echo "\"\$as_me:14561: $lt_compile\"" >&5)
14562    (eval "$lt_compile" 2>conftest.err)
14563    ac_status=$?
14564    cat conftest.err >&5
14565    echo "$as_me:14565: \$? = $ac_status" >&5
14566    if (exit $ac_status) && test -s "$ac_outfile"; then
14567      # The compiler can only warn and ignore the option if not recognized
14568      # So say no if there are warnings other than the usual output.
14569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14570      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14571      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14572        lt_cv_prog_compiler_rtti_exceptions=yes
14573      fi
14574    fi
14575    $rm conftest*
14576
14577 fi
14578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14579 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14580
14581 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14582     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14583 else
14584     :
14585 fi
14586
14587 fi
14588
14589 lt_prog_compiler_wl=
14590 lt_prog_compiler_pic=
14591 lt_prog_compiler_static=
14592
14593 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14594 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14595
14596   if test "$GCC" = yes; then
14597     lt_prog_compiler_wl='-Wl,'
14598     lt_prog_compiler_static='-static'
14599
14600     case $host_os in
14601       aix*)
14602       # All AIX code is PIC.
14603       if test "$host_cpu" = ia64; then
14604         # AIX 5 now supports IA64 processor
14605         lt_prog_compiler_static='-Bstatic'
14606       fi
14607       ;;
14608
14609     amigaos*)
14610       # FIXME: we need at least 68020 code to build shared libraries, but
14611       # adding the `-m68020' flag to GCC prevents building anything better,
14612       # like `-m68040'.
14613       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14614       ;;
14615
14616     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14617       # PIC is the default for these OSes.
14618       ;;
14619
14620     mingw* | pw32* | os2*)
14621       # This hack is so that the source file can tell whether it is being
14622       # built for inclusion in a dll (and should export symbols for example).
14623       lt_prog_compiler_pic='-DDLL_EXPORT'
14624       ;;
14625
14626     darwin* | rhapsody*)
14627       # PIC is the default on this platform
14628       # Common symbols not allowed in MH_DYLIB files
14629       lt_prog_compiler_pic='-fno-common'
14630       ;;
14631
14632     interix3*)
14633       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14634       # Instead, we relocate shared libraries at runtime.
14635       ;;
14636
14637     msdosdjgpp*)
14638       # Just because we use GCC doesn't mean we suddenly get shared libraries
14639       # on systems that don't support them.
14640       lt_prog_compiler_can_build_shared=no
14641       enable_shared=no
14642       ;;
14643
14644     sysv4*MP*)
14645       if test -d /usr/nec; then
14646         lt_prog_compiler_pic=-Kconform_pic
14647       fi
14648       ;;
14649
14650     hpux*)
14651       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14652       # not for PA HP-UX.
14653       case $host_cpu in
14654       hppa*64*|ia64*)
14655         # +Z the default
14656         ;;
14657       *)
14658         lt_prog_compiler_pic='-fPIC'
14659         ;;
14660       esac
14661       ;;
14662
14663     *)
14664       lt_prog_compiler_pic='-fPIC'
14665       ;;
14666     esac
14667   else
14668     # PORTME Check for flag to pass linker flags through the system compiler.
14669     case $host_os in
14670     aix*)
14671       lt_prog_compiler_wl='-Wl,'
14672       if test "$host_cpu" = ia64; then
14673         # AIX 5 now supports IA64 processor
14674         lt_prog_compiler_static='-Bstatic'
14675       else
14676         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14677       fi
14678       ;;
14679       darwin*)
14680         # PIC is the default on this platform
14681         # Common symbols not allowed in MH_DYLIB files
14682        case $cc_basename in
14683          xlc*)
14684          lt_prog_compiler_pic='-qnocommon'
14685          lt_prog_compiler_wl='-Wl,'
14686          ;;
14687        esac
14688        ;;
14689
14690     mingw* | pw32* | os2*)
14691       # This hack is so that the source file can tell whether it is being
14692       # built for inclusion in a dll (and should export symbols for example).
14693       lt_prog_compiler_pic='-DDLL_EXPORT'
14694       ;;
14695
14696     hpux9* | hpux10* | hpux11*)
14697       lt_prog_compiler_wl='-Wl,'
14698       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14699       # not for PA HP-UX.
14700       case $host_cpu in
14701       hppa*64*|ia64*)
14702         # +Z the default
14703         ;;
14704       *)
14705         lt_prog_compiler_pic='+Z'
14706         ;;
14707       esac
14708       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14709       lt_prog_compiler_static='${wl}-a ${wl}archive'
14710       ;;
14711
14712     irix5* | irix6* | nonstopux*)
14713       lt_prog_compiler_wl='-Wl,'
14714       # PIC (with -KPIC) is the default.
14715       lt_prog_compiler_static='-non_shared'
14716       ;;
14717
14718     newsos6)
14719       lt_prog_compiler_pic='-KPIC'
14720       lt_prog_compiler_static='-Bstatic'
14721       ;;
14722
14723     linux*)
14724       case $cc_basename in
14725       icc* | ecc*)
14726         lt_prog_compiler_wl='-Wl,'
14727         lt_prog_compiler_pic='-KPIC'
14728         lt_prog_compiler_static='-static'
14729         ;;
14730       pgcc* | pgf77* | pgf90* | pgf95*)
14731         # Portland Group compilers (*not* the Pentium gcc compiler,
14732         # which looks to be a dead project)
14733         lt_prog_compiler_wl='-Wl,'
14734         lt_prog_compiler_pic='-fpic'
14735         lt_prog_compiler_static='-Bstatic'
14736         ;;
14737       ccc*)
14738         lt_prog_compiler_wl='-Wl,'
14739         # All Alpha code is PIC.
14740         lt_prog_compiler_static='-non_shared'
14741         ;;
14742       esac
14743       ;;
14744
14745     osf3* | osf4* | osf5*)
14746       lt_prog_compiler_wl='-Wl,'
14747       # All OSF/1 code is PIC.
14748       lt_prog_compiler_static='-non_shared'
14749       ;;
14750
14751     solaris*)
14752       lt_prog_compiler_pic='-KPIC'
14753       lt_prog_compiler_static='-Bstatic'
14754       case $cc_basename in
14755       f77* | f90* | f95*)
14756         lt_prog_compiler_wl='-Qoption ld ';;
14757       *)
14758         lt_prog_compiler_wl='-Wl,';;
14759       esac
14760       ;;
14761
14762     sunos4*)
14763       lt_prog_compiler_wl='-Qoption ld '
14764       lt_prog_compiler_pic='-PIC'
14765       lt_prog_compiler_static='-Bstatic'
14766       ;;
14767
14768     sysv4 | sysv4.2uw2* | sysv4.3*)
14769       lt_prog_compiler_wl='-Wl,'
14770       lt_prog_compiler_pic='-KPIC'
14771       lt_prog_compiler_static='-Bstatic'
14772       ;;
14773
14774     sysv4*MP*)
14775       if test -d /usr/nec ;then
14776         lt_prog_compiler_pic='-Kconform_pic'
14777         lt_prog_compiler_static='-Bstatic'
14778       fi
14779       ;;
14780
14781     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14782       lt_prog_compiler_wl='-Wl,'
14783       lt_prog_compiler_pic='-KPIC'
14784       lt_prog_compiler_static='-Bstatic'
14785       ;;
14786
14787     unicos*)
14788       lt_prog_compiler_wl='-Wl,'
14789       lt_prog_compiler_can_build_shared=no
14790       ;;
14791
14792     uts4*)
14793       lt_prog_compiler_pic='-pic'
14794       lt_prog_compiler_static='-Bstatic'
14795       ;;
14796
14797     *)
14798       lt_prog_compiler_can_build_shared=no
14799       ;;
14800     esac
14801   fi
14802
14803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14804 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14805
14806 #
14807 # Check to make sure the PIC flag actually works.
14808 #
14809 if test -n "$lt_prog_compiler_pic"; then
14810
14811 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14812 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14813 if test "${lt_prog_compiler_pic_works+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   lt_prog_compiler_pic_works=no
14817   ac_outfile=conftest.$ac_objext
14818    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14819    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14820    # Insert the option either (1) after the last *FLAGS variable, or
14821    # (2) before a word containing "conftest.", or (3) at the end.
14822    # Note that $ac_compile itself does not contain backslashes and begins
14823    # with a dollar sign (not a hyphen), so the echo should work correctly.
14824    # The option is referenced via a variable to avoid confusing sed.
14825    lt_compile=`echo "$ac_compile" | $SED \
14826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14828    -e 's:$: $lt_compiler_flag:'`
14829    (eval echo "\"\$as_me:14829: $lt_compile\"" >&5)
14830    (eval "$lt_compile" 2>conftest.err)
14831    ac_status=$?
14832    cat conftest.err >&5
14833    echo "$as_me:14833: \$? = $ac_status" >&5
14834    if (exit $ac_status) && test -s "$ac_outfile"; then
14835      # The compiler can only warn and ignore the option if not recognized
14836      # So say no if there are warnings other than the usual output.
14837      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14838      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14839      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14840        lt_prog_compiler_pic_works=yes
14841      fi
14842    fi
14843    $rm conftest*
14844
14845 fi
14846 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14847 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14848
14849 if test x"$lt_prog_compiler_pic_works" = xyes; then
14850     case $lt_prog_compiler_pic in
14851      "" | " "*) ;;
14852      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14853      esac
14854 else
14855     lt_prog_compiler_pic=
14856      lt_prog_compiler_can_build_shared=no
14857 fi
14858
14859 fi
14860 case $host_os in
14861   # For platforms which do not support PIC, -DPIC is meaningless:
14862   *djgpp*)
14863     lt_prog_compiler_pic=
14864     ;;
14865   *)
14866     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14867     ;;
14868 esac
14869
14870 #
14871 # Check to make sure the static flag actually works.
14872 #
14873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14874 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14875 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14876 if test "${lt_prog_compiler_static_works+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   lt_prog_compiler_static_works=no
14880    save_LDFLAGS="$LDFLAGS"
14881    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14882    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14883    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14884      # The linker can only warn and ignore the option if not recognized
14885      # So say no if there are warnings
14886      if test -s conftest.err; then
14887        # Append any errors to the config.log.
14888        cat conftest.err 1>&5
14889        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14890        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14891        if diff conftest.exp conftest.er2 >/dev/null; then
14892          lt_prog_compiler_static_works=yes
14893        fi
14894      else
14895        lt_prog_compiler_static_works=yes
14896      fi
14897    fi
14898    $rm conftest*
14899    LDFLAGS="$save_LDFLAGS"
14900
14901 fi
14902 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14903 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14904
14905 if test x"$lt_prog_compiler_static_works" = xyes; then
14906     :
14907 else
14908     lt_prog_compiler_static=
14909 fi
14910
14911
14912 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14915   echo $ECHO_N "(cached) $ECHO_C" >&6
14916 else
14917   lt_cv_prog_compiler_c_o=no
14918    $rm -r conftest 2>/dev/null
14919    mkdir conftest
14920    cd conftest
14921    mkdir out
14922    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14923
14924    lt_compiler_flag="-o out/conftest2.$ac_objext"
14925    # Insert the option either (1) after the last *FLAGS variable, or
14926    # (2) before a word containing "conftest.", or (3) at the end.
14927    # Note that $ac_compile itself does not contain backslashes and begins
14928    # with a dollar sign (not a hyphen), so the echo should work correctly.
14929    lt_compile=`echo "$ac_compile" | $SED \
14930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14932    -e 's:$: $lt_compiler_flag:'`
14933    (eval echo "\"\$as_me:14933: $lt_compile\"" >&5)
14934    (eval "$lt_compile" 2>out/conftest.err)
14935    ac_status=$?
14936    cat out/conftest.err >&5
14937    echo "$as_me:14937: \$? = $ac_status" >&5
14938    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14939    then
14940      # The compiler can only warn and ignore the option if not recognized
14941      # So say no if there are warnings
14942      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14943      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14944      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14945        lt_cv_prog_compiler_c_o=yes
14946      fi
14947    fi
14948    chmod u+w . 2>&5
14949    $rm conftest*
14950    # SGI C++ compiler will create directory out/ii_files/ for
14951    # template instantiation
14952    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14953    $rm out/* && rmdir out
14954    cd ..
14955    rmdir conftest
14956    $rm conftest*
14957
14958 fi
14959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14961
14962
14963 hard_links="nottested"
14964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14965   # do not overwrite the value of need_locks provided by the user
14966   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14968   hard_links=yes
14969   $rm conftest*
14970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14971   touch conftest.a
14972   ln conftest.a conftest.b 2>&5 || hard_links=no
14973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14974   { echo "$as_me:$LINENO: result: $hard_links" >&5
14975 echo "${ECHO_T}$hard_links" >&6; }
14976   if test "$hard_links" = no; then
14977     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14979     need_locks=warn
14980   fi
14981 else
14982   need_locks=no
14983 fi
14984
14985 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14987
14988   runpath_var=
14989   allow_undefined_flag=
14990   enable_shared_with_static_runtimes=no
14991   archive_cmds=
14992   archive_expsym_cmds=
14993   old_archive_From_new_cmds=
14994   old_archive_from_expsyms_cmds=
14995   export_dynamic_flag_spec=
14996   whole_archive_flag_spec=
14997   thread_safe_flag_spec=
14998   hardcode_libdir_flag_spec=
14999   hardcode_libdir_flag_spec_ld=
15000   hardcode_libdir_separator=
15001   hardcode_direct=no
15002   hardcode_minus_L=no
15003   hardcode_shlibpath_var=unsupported
15004   link_all_deplibs=unknown
15005   hardcode_automatic=no
15006   module_cmds=
15007   module_expsym_cmds=
15008   always_export_symbols=no
15009   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15010   # include_expsyms should be a list of space-separated symbols to be *always*
15011   # included in the symbol list
15012   include_expsyms=
15013   # exclude_expsyms can be an extended regexp of symbols to exclude
15014   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15015   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15016   # as well as any symbol that contains `d'.
15017   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15018   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15019   # platforms (ab)use it in PIC code, but their linkers get confused if
15020   # the symbol is explicitly referenced.  Since portable code cannot
15021   # rely on this symbol name, it's probably fine to never include it in
15022   # preloaded symbol tables.
15023   extract_expsyms_cmds=
15024   # Just being paranoid about ensuring that cc_basename is set.
15025   for cc_temp in $compiler""; do
15026   case $cc_temp in
15027     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15028     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15029     \-*) ;;
15030     *) break;;
15031   esac
15032 done
15033 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15034
15035   case $host_os in
15036   cygwin* | mingw* | pw32*)
15037     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15038     # When not using gcc, we currently assume that we are using
15039     # Microsoft Visual C++.
15040     if test "$GCC" != yes; then
15041       with_gnu_ld=no
15042     fi
15043     ;;
15044   interix*)
15045     # we just hope/assume this is gcc and not c89 (= MSVC++)
15046     with_gnu_ld=yes
15047     ;;
15048   openbsd*)
15049     with_gnu_ld=no
15050     ;;
15051   esac
15052
15053   ld_shlibs=yes
15054   if test "$with_gnu_ld" = yes; then
15055     # If archive_cmds runs LD, not CC, wlarc should be empty
15056     wlarc='${wl}'
15057
15058     # Set some defaults for GNU ld with shared library support. These
15059     # are reset later if shared libraries are not supported. Putting them
15060     # here allows them to be overridden if necessary.
15061     runpath_var=LD_RUN_PATH
15062     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15063     export_dynamic_flag_spec='${wl}--export-dynamic'
15064     # ancient GNU ld didn't support --whole-archive et. al.
15065     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15066         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15067       else
15068         whole_archive_flag_spec=
15069     fi
15070     supports_anon_versioning=no
15071     case `$LD -v 2>/dev/null` in
15072       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15073       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15074       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15075       *\ 2.11.*) ;; # other 2.11 versions
15076       *) supports_anon_versioning=yes ;;
15077     esac
15078
15079     # See if GNU ld supports shared libraries.
15080     case $host_os in
15081     aix3* | aix4* | aix5*)
15082       # On AIX/PPC, the GNU linker is very broken
15083       if test "$host_cpu" != ia64; then
15084         ld_shlibs=no
15085         cat <<EOF 1>&2
15086
15087 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15088 *** to be unable to reliably create shared libraries on AIX.
15089 *** Therefore, libtool is disabling shared libraries support.  If you
15090 *** really care for shared libraries, you may want to modify your PATH
15091 *** so that a non-GNU linker is found, and then restart.
15092
15093 EOF
15094       fi
15095       ;;
15096
15097     amigaos*)
15098       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)'
15099       hardcode_libdir_flag_spec='-L$libdir'
15100       hardcode_minus_L=yes
15101
15102       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15103       # that the semantics of dynamic libraries on AmigaOS, at least up
15104       # to version 4, is to share data among multiple programs linked
15105       # with the same dynamic library.  Since this doesn't match the
15106       # behavior of shared libraries on other platforms, we can't use
15107       # them.
15108       ld_shlibs=no
15109       ;;
15110
15111     beos*)
15112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15113         allow_undefined_flag=unsupported
15114         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15115         # support --undefined.  This deserves some investigation.  FIXME
15116         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15117       else
15118         ld_shlibs=no
15119       fi
15120       ;;
15121
15122     cygwin* | mingw* | pw32*)
15123       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15124       # as there is no search path for DLLs.
15125       hardcode_libdir_flag_spec='-L$libdir'
15126       allow_undefined_flag=unsupported
15127       always_export_symbols=no
15128       enable_shared_with_static_runtimes=yes
15129       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15130
15131       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15132         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15133         # If the export-symbols file already is a .def file (1st line
15134         # is EXPORTS), use it as is; otherwise, prepend...
15135         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15136           cp $export_symbols $output_objdir/$soname.def;
15137         else
15138           echo EXPORTS > $output_objdir/$soname.def;
15139           cat $export_symbols >> $output_objdir/$soname.def;
15140         fi~
15141         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15142       else
15143         ld_shlibs=no
15144       fi
15145       ;;
15146
15147     interix3*)
15148       hardcode_direct=no
15149       hardcode_shlibpath_var=no
15150       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15151       export_dynamic_flag_spec='${wl}-E'
15152       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15153       # Instead, shared libraries are loaded at an image base (0x10000000 by
15154       # default) and relocated if they conflict, which is a slow very memory
15155       # consuming and fragmenting process.  To avoid this, we pick a random,
15156       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15157       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15158       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15159       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'
15160       ;;
15161
15162     linux*)
15163       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15164         tmp_addflag=
15165         case $cc_basename,$host_cpu in
15166         pgcc*)                          # Portland Group C compiler
15167           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'
15168           tmp_addflag=' $pic_flag'
15169           ;;
15170         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15171           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'
15172           tmp_addflag=' $pic_flag -Mnomain' ;;
15173         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15174           tmp_addflag=' -i_dynamic' ;;
15175         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15176           tmp_addflag=' -i_dynamic -nofor_main' ;;
15177         ifc* | ifort*)                  # Intel Fortran compiler
15178           tmp_addflag=' -nofor_main' ;;
15179         esac
15180         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181
15182         if test $supports_anon_versioning = yes; then
15183           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15184   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15185   $echo "local: *; };" >> $output_objdir/$libname.ver~
15186           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15187         fi
15188       else
15189         ld_shlibs=no
15190       fi
15191       ;;
15192
15193     netbsd*)
15194       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15195         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15196         wlarc=
15197       else
15198         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15199         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15200       fi
15201       ;;
15202
15203     solaris*)
15204       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15205         ld_shlibs=no
15206         cat <<EOF 1>&2
15207
15208 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15209 *** create shared libraries on Solaris systems.  Therefore, libtool
15210 *** is disabling shared libraries support.  We urge you to upgrade GNU
15211 *** binutils to release 2.9.1 or newer.  Another option is to modify
15212 *** your PATH or compiler configuration so that the native linker is
15213 *** used, and then restart.
15214
15215 EOF
15216       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15217         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15218         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15219       else
15220         ld_shlibs=no
15221       fi
15222       ;;
15223
15224     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15225       case `$LD -v 2>&1` in
15226         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15227         ld_shlibs=no
15228         cat <<_LT_EOF 1>&2
15229
15230 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15231 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15232 *** is disabling shared libraries support.  We urge you to upgrade GNU
15233 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15234 *** your PATH or compiler configuration so that the native linker is
15235 *** used, and then restart.
15236
15237 _LT_EOF
15238         ;;
15239         *)
15240           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15241             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15242             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15243             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15244           else
15245             ld_shlibs=no
15246           fi
15247         ;;
15248       esac
15249       ;;
15250
15251     sunos4*)
15252       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15253       wlarc=
15254       hardcode_direct=yes
15255       hardcode_shlibpath_var=no
15256       ;;
15257
15258     *)
15259       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15262       else
15263         ld_shlibs=no
15264       fi
15265       ;;
15266     esac
15267
15268     if test "$ld_shlibs" = no; then
15269       runpath_var=
15270       hardcode_libdir_flag_spec=
15271       export_dynamic_flag_spec=
15272       whole_archive_flag_spec=
15273     fi
15274   else
15275     # PORTME fill in a description of your system's linker (not GNU ld)
15276     case $host_os in
15277     aix3*)
15278       allow_undefined_flag=unsupported
15279       always_export_symbols=yes
15280       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'
15281       # Note: this linker hardcodes the directories in LIBPATH if there
15282       # are no directories specified by -L.
15283       hardcode_minus_L=yes
15284       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15285         # Neither direct hardcoding nor static linking is supported with a
15286         # broken collect2.
15287         hardcode_direct=unsupported
15288       fi
15289       ;;
15290
15291     aix4* | aix5*)
15292       if test "$host_cpu" = ia64; then
15293         # On IA64, the linker does run time linking by default, so we don't
15294         # have to do anything special.
15295         aix_use_runtimelinking=no
15296         exp_sym_flag='-Bexport'
15297         no_entry_flag=""
15298       else
15299         # If we're using GNU nm, then we don't want the "-C" option.
15300         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15301         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15302           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'
15303         else
15304           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'
15305         fi
15306         aix_use_runtimelinking=no
15307
15308         # Test if we are trying to use run time linking or normal
15309         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15310         # need to do runtime linking.
15311         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15312           for ld_flag in $LDFLAGS; do
15313           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15314             aix_use_runtimelinking=yes
15315             break
15316           fi
15317           done
15318           ;;
15319         esac
15320
15321         exp_sym_flag='-bexport'
15322         no_entry_flag='-bnoentry'
15323       fi
15324
15325       # When large executables or shared objects are built, AIX ld can
15326       # have problems creating the table of contents.  If linking a library
15327       # or program results in "error TOC overflow" add -mminimal-toc to
15328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15330
15331       archive_cmds=''
15332       hardcode_direct=yes
15333       hardcode_libdir_separator=':'
15334       link_all_deplibs=yes
15335
15336       if test "$GCC" = yes; then
15337         case $host_os in aix4.[012]|aix4.[012].*)
15338         # We only want to do this on AIX 4.2 and lower, the check
15339         # below for broken collect2 doesn't work under 4.3+
15340           collect2name=`${CC} -print-prog-name=collect2`
15341           if test -f "$collect2name" && \
15342            strings "$collect2name" | grep resolve_lib_name >/dev/null
15343           then
15344           # We have reworked collect2
15345           hardcode_direct=yes
15346           else
15347           # We have old collect2
15348           hardcode_direct=unsupported
15349           # It fails to find uninstalled libraries when the uninstalled
15350           # path is not listed in the libpath.  Setting hardcode_minus_L
15351           # to unsupported forces relinking
15352           hardcode_minus_L=yes
15353           hardcode_libdir_flag_spec='-L$libdir'
15354           hardcode_libdir_separator=
15355           fi
15356           ;;
15357         esac
15358         shared_flag='-shared'
15359         if test "$aix_use_runtimelinking" = yes; then
15360           shared_flag="$shared_flag "'${wl}-G'
15361         fi
15362       else
15363         # not using gcc
15364         if test "$host_cpu" = ia64; then
15365         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15366         # chokes on -Wl,-G. The following line is correct:
15367           shared_flag='-G'
15368         else
15369           if test "$aix_use_runtimelinking" = yes; then
15370             shared_flag='${wl}-G'
15371           else
15372             shared_flag='${wl}-bM:SRE'
15373           fi
15374         fi
15375       fi
15376
15377       # It seems that -bexpall does not export symbols beginning with
15378       # underscore (_), so it is better to generate a list of symbols to export.
15379       always_export_symbols=yes
15380       if test "$aix_use_runtimelinking" = yes; then
15381         # Warning - without using the other runtime loading flags (-brtl),
15382         # -berok will link without error, but may produce a broken library.
15383         allow_undefined_flag='-berok'
15384        # Determine the default libpath from the value encoded in an empty executable.
15385        cat >conftest.$ac_ext <<_ACEOF
15386 /* confdefs.h.  */
15387 _ACEOF
15388 cat confdefs.h >>conftest.$ac_ext
15389 cat >>conftest.$ac_ext <<_ACEOF
15390 /* end confdefs.h.  */
15391
15392 int
15393 main ()
15394 {
15395
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } && {
15414          test -z "$ac_c_werror_flag" ||
15415          test ! -s conftest.err
15416        } && test -s conftest$ac_exeext &&
15417        $as_test_x conftest$ac_exeext; then
15418
15419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15420 }'`
15421 # Check for a 64-bit object if we didn't find anything.
15422 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; }
15423 }'`; fi
15424 else
15425   echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15427
15428
15429 fi
15430
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432       conftest$ac_exeext conftest.$ac_ext
15433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15434
15435        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15436         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"
15437        else
15438         if test "$host_cpu" = ia64; then
15439           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15440           allow_undefined_flag="-z nodefs"
15441           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"
15442         else
15443          # Determine the default libpath from the value encoded in an empty executable.
15444          cat >conftest.$ac_ext <<_ACEOF
15445 /* confdefs.h.  */
15446 _ACEOF
15447 cat confdefs.h >>conftest.$ac_ext
15448 cat >>conftest.$ac_ext <<_ACEOF
15449 /* end confdefs.h.  */
15450
15451 int
15452 main ()
15453 {
15454
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463   *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466   (eval "$ac_link") 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } && {
15473          test -z "$ac_c_werror_flag" ||
15474          test ! -s conftest.err
15475        } && test -s conftest$ac_exeext &&
15476        $as_test_x conftest$ac_exeext; then
15477
15478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15479 }'`
15480 # Check for a 64-bit object if we didn't find anything.
15481 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; }
15482 }'`; fi
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491       conftest$ac_exeext conftest.$ac_ext
15492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15493
15494          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15495           # Warning - without using the other run time loading flags,
15496           # -berok will link without error, but may produce a broken library.
15497           no_undefined_flag=' ${wl}-bernotok'
15498           allow_undefined_flag=' ${wl}-berok'
15499           # Exported symbols can be pulled into shared objects from archives
15500           whole_archive_flag_spec='$convenience'
15501           archive_cmds_need_lc=yes
15502           # This is similar to how AIX traditionally builds its shared libraries.
15503           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'
15504         fi
15505       fi
15506       ;;
15507
15508     amigaos*)
15509       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)'
15510       hardcode_libdir_flag_spec='-L$libdir'
15511       hardcode_minus_L=yes
15512       # see comment about different semantics on the GNU ld section
15513       ld_shlibs=no
15514       ;;
15515
15516     bsdi[45]*)
15517       export_dynamic_flag_spec=-rdynamic
15518       ;;
15519
15520     cygwin* | mingw* | pw32*)
15521       # When not using gcc, we currently assume that we are using
15522       # Microsoft Visual C++.
15523       # hardcode_libdir_flag_spec is actually meaningless, as there is
15524       # no search path for DLLs.
15525       hardcode_libdir_flag_spec=' '
15526       allow_undefined_flag=unsupported
15527       # Tell ltmain to make .lib files, not .a files.
15528       libext=lib
15529       # Tell ltmain to make .dll files, not .so files.
15530       shrext_cmds=".dll"
15531       # FIXME: Setting linknames here is a bad hack.
15532       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15533       # The linker will automatically build a .lib file if we build a DLL.
15534       old_archive_From_new_cmds='true'
15535       # FIXME: Should let the user specify the lib program.
15536       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15537       fix_srcfile_path='`cygpath -w "$srcfile"`'
15538       enable_shared_with_static_runtimes=yes
15539       ;;
15540
15541     darwin* | rhapsody*)
15542       case $host_os in
15543         rhapsody* | darwin1.[012])
15544          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15545          ;;
15546        *) # Darwin 1.3 on
15547          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15548            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15549          else
15550            case ${MACOSX_DEPLOYMENT_TARGET} in
15551              10.[012])
15552                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15553                ;;
15554              10.*)
15555                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15556                ;;
15557            esac
15558          fi
15559          ;;
15560       esac
15561       archive_cmds_need_lc=no
15562       hardcode_direct=no
15563       hardcode_automatic=yes
15564       hardcode_shlibpath_var=unsupported
15565       whole_archive_flag_spec=''
15566       link_all_deplibs=yes
15567     if test "$GCC" = yes ; then
15568         output_verbose_link_cmd='echo'
15569         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15570       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15571       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15572       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}'
15573       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}'
15574     else
15575       case $cc_basename in
15576         xlc*)
15577          output_verbose_link_cmd='echo'
15578          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15579          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15580           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15581          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}'
15582           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}'
15583           ;;
15584        *)
15585          ld_shlibs=no
15586           ;;
15587       esac
15588     fi
15589       ;;
15590
15591     dgux*)
15592       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15593       hardcode_libdir_flag_spec='-L$libdir'
15594       hardcode_shlibpath_var=no
15595       ;;
15596
15597     freebsd1*)
15598       ld_shlibs=no
15599       ;;
15600
15601     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15602     # support.  Future versions do this automatically, but an explicit c++rt0.o
15603     # does not break anything, and helps significantly (at the cost of a little
15604     # extra space).
15605     freebsd2.2*)
15606       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15607       hardcode_libdir_flag_spec='-R$libdir'
15608       hardcode_direct=yes
15609       hardcode_shlibpath_var=no
15610       ;;
15611
15612     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15613     freebsd2*)
15614       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15615       hardcode_direct=yes
15616       hardcode_minus_L=yes
15617       hardcode_shlibpath_var=no
15618       ;;
15619
15620     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15621     freebsd* | kfreebsd*-gnu | dragonfly*)
15622       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15623       hardcode_libdir_flag_spec='-R$libdir'
15624       hardcode_direct=yes
15625       hardcode_shlibpath_var=no
15626       ;;
15627
15628     hpux9*)
15629       if test "$GCC" = yes; then
15630         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'
15631       else
15632         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'
15633       fi
15634       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15635       hardcode_libdir_separator=:
15636       hardcode_direct=yes
15637
15638       # hardcode_minus_L: Not really in the search PATH,
15639       # but as the default location of the library.
15640       hardcode_minus_L=yes
15641       export_dynamic_flag_spec='${wl}-E'
15642       ;;
15643
15644     hpux10*)
15645       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15646         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15647       else
15648         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15649       fi
15650       if test "$with_gnu_ld" = no; then
15651         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15652         hardcode_libdir_separator=:
15653
15654         hardcode_direct=yes
15655         export_dynamic_flag_spec='${wl}-E'
15656
15657         # hardcode_minus_L: Not really in the search PATH,
15658         # but as the default location of the library.
15659         hardcode_minus_L=yes
15660       fi
15661       ;;
15662
15663     hpux11*)
15664       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15665         case $host_cpu in
15666         hppa*64*)
15667           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15668           ;;
15669         ia64*)
15670           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15671           ;;
15672         *)
15673           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15674           ;;
15675         esac
15676       else
15677         case $host_cpu in
15678         hppa*64*)
15679           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15680           ;;
15681         ia64*)
15682           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15683           ;;
15684         *)
15685           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15686           ;;
15687         esac
15688       fi
15689       if test "$with_gnu_ld" = no; then
15690         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15691         hardcode_libdir_separator=:
15692
15693         case $host_cpu in
15694         hppa*64*|ia64*)
15695           hardcode_libdir_flag_spec_ld='+b $libdir'
15696           hardcode_direct=no
15697           hardcode_shlibpath_var=no
15698           ;;
15699         *)
15700           hardcode_direct=yes
15701           export_dynamic_flag_spec='${wl}-E'
15702
15703           # hardcode_minus_L: Not really in the search PATH,
15704           # but as the default location of the library.
15705           hardcode_minus_L=yes
15706           ;;
15707         esac
15708       fi
15709       ;;
15710
15711     irix5* | irix6* | nonstopux*)
15712       if test "$GCC" = yes; then
15713         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'
15714       else
15715         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'
15716         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15717       fi
15718       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15719       hardcode_libdir_separator=:
15720       link_all_deplibs=yes
15721       ;;
15722
15723     netbsd*)
15724       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15725         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15726       else
15727         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15728       fi
15729       hardcode_libdir_flag_spec='-R$libdir'
15730       hardcode_direct=yes
15731       hardcode_shlibpath_var=no
15732       ;;
15733
15734     newsos6)
15735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736       hardcode_direct=yes
15737       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15738       hardcode_libdir_separator=:
15739       hardcode_shlibpath_var=no
15740       ;;
15741
15742     openbsd*)
15743       hardcode_direct=yes
15744       hardcode_shlibpath_var=no
15745       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15746         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15748         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15749         export_dynamic_flag_spec='${wl}-E'
15750       else
15751        case $host_os in
15752          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15753            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15754            hardcode_libdir_flag_spec='-R$libdir'
15755            ;;
15756          *)
15757            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15758            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15759            ;;
15760        esac
15761       fi
15762       ;;
15763
15764     os2*)
15765       hardcode_libdir_flag_spec='-L$libdir'
15766       hardcode_minus_L=yes
15767       allow_undefined_flag=unsupported
15768       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'
15769       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15770       ;;
15771
15772     osf3*)
15773       if test "$GCC" = yes; then
15774         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15775         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'
15776       else
15777         allow_undefined_flag=' -expect_unresolved \*'
15778         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'
15779       fi
15780       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15781       hardcode_libdir_separator=:
15782       ;;
15783
15784     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15785       if test "$GCC" = yes; then
15786         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15787         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'
15788         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15789       else
15790         allow_undefined_flag=' -expect_unresolved \*'
15791         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'
15792         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15793         $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'
15794
15795         # Both c and cxx compiler support -rpath directly
15796         hardcode_libdir_flag_spec='-rpath $libdir'
15797       fi
15798       hardcode_libdir_separator=:
15799       ;;
15800
15801     solaris*)
15802       no_undefined_flag=' -z text'
15803       if test "$GCC" = yes; then
15804         wlarc='${wl}'
15805         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15806         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15807           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15808       else
15809         wlarc=''
15810         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15811         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15812         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15813       fi
15814       hardcode_libdir_flag_spec='-R$libdir'
15815       hardcode_shlibpath_var=no
15816       case $host_os in
15817       solaris2.[0-5] | solaris2.[0-5].*) ;;
15818       *)
15819         # The compiler driver will combine linker options so we
15820         # cannot just pass the convience library names through
15821         # without $wl, iff we do not link with $LD.
15822         # Luckily, gcc supports the same syntax we need for Sun Studio.
15823         # Supported since Solaris 2.6 (maybe 2.5.1?)
15824         case $wlarc in
15825         '')
15826           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15827         *)
15828           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' ;;
15829         esac ;;
15830       esac
15831       link_all_deplibs=yes
15832       ;;
15833
15834     sunos4*)
15835       if test "x$host_vendor" = xsequent; then
15836         # Use $CC to link under sequent, because it throws in some extra .o
15837         # files that make .init and .fini sections work.
15838         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15839       else
15840         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15841       fi
15842       hardcode_libdir_flag_spec='-L$libdir'
15843       hardcode_direct=yes
15844       hardcode_minus_L=yes
15845       hardcode_shlibpath_var=no
15846       ;;
15847
15848     sysv4)
15849       case $host_vendor in
15850         sni)
15851           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852           hardcode_direct=yes # is this really true???
15853         ;;
15854         siemens)
15855           ## LD is ld it makes a PLAMLIB
15856           ## CC just makes a GrossModule.
15857           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15858           reload_cmds='$CC -r -o $output$reload_objs'
15859           hardcode_direct=no
15860         ;;
15861         motorola)
15862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15864         ;;
15865       esac
15866       runpath_var='LD_RUN_PATH'
15867       hardcode_shlibpath_var=no
15868       ;;
15869
15870     sysv4.3*)
15871       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15872       hardcode_shlibpath_var=no
15873       export_dynamic_flag_spec='-Bexport'
15874       ;;
15875
15876     sysv4*MP*)
15877       if test -d /usr/nec; then
15878         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15879         hardcode_shlibpath_var=no
15880         runpath_var=LD_RUN_PATH
15881         hardcode_runpath_var=yes
15882         ld_shlibs=yes
15883       fi
15884       ;;
15885
15886     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15887       no_undefined_flag='${wl}-z,text'
15888       archive_cmds_need_lc=no
15889       hardcode_shlibpath_var=no
15890       runpath_var='LD_RUN_PATH'
15891
15892       if test "$GCC" = yes; then
15893         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15894         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15895       else
15896         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15897         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898       fi
15899       ;;
15900
15901     sysv5* | sco3.2v5* | sco5v6*)
15902       # Note: We can NOT use -z defs as we might desire, because we do not
15903       # link with -lc, and that would cause any symbols used from libc to
15904       # always be unresolved, which means just about no library would
15905       # ever link correctly.  If we're not using GNU ld we use -z text
15906       # though, which does catch some bad symbols but isn't as heavy-handed
15907       # as -z defs.
15908       no_undefined_flag='${wl}-z,text'
15909       allow_undefined_flag='${wl}-z,nodefs'
15910       archive_cmds_need_lc=no
15911       hardcode_shlibpath_var=no
15912       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15913       hardcode_libdir_separator=':'
15914       link_all_deplibs=yes
15915       export_dynamic_flag_spec='${wl}-Bexport'
15916       runpath_var='LD_RUN_PATH'
15917
15918       if test "$GCC" = yes; then
15919         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15920         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15921       else
15922         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15924       fi
15925       ;;
15926
15927     uts4*)
15928       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15929       hardcode_libdir_flag_spec='-L$libdir'
15930       hardcode_shlibpath_var=no
15931       ;;
15932
15933     *)
15934       ld_shlibs=no
15935       ;;
15936     esac
15937   fi
15938
15939 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15940 echo "${ECHO_T}$ld_shlibs" >&6; }
15941 test "$ld_shlibs" = no && can_build_shared=no
15942
15943 #
15944 # Do we need to explicitly link libc?
15945 #
15946 case "x$archive_cmds_need_lc" in
15947 x|xyes)
15948   # Assume -lc should be added
15949   archive_cmds_need_lc=yes
15950
15951   if test "$enable_shared" = yes && test "$GCC" = yes; then
15952     case $archive_cmds in
15953     *'~'*)
15954       # FIXME: we may have to deal with multi-command sequences.
15955       ;;
15956     '$CC '*)
15957       # Test whether the compiler implicitly links with -lc since on some
15958       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15959       # to ld, don't add -lc before -lgcc.
15960       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15961 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15962       $rm conftest*
15963       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15964
15965       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15966   (eval $ac_compile) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } 2>conftest.err; then
15970         soname=conftest
15971         lib=conftest
15972         libobjs=conftest.$ac_objext
15973         deplibs=
15974         wl=$lt_prog_compiler_wl
15975         pic_flag=$lt_prog_compiler_pic
15976         compiler_flags=-v
15977         linker_flags=-v
15978         verstring=
15979         output_objdir=.
15980         libname=conftest
15981         lt_save_allow_undefined_flag=$allow_undefined_flag
15982         allow_undefined_flag=
15983         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15984   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15985   ac_status=$?
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); }
15988         then
15989           archive_cmds_need_lc=no
15990         else
15991           archive_cmds_need_lc=yes
15992         fi
15993         allow_undefined_flag=$lt_save_allow_undefined_flag
15994       else
15995         cat conftest.err 1>&5
15996       fi
15997       $rm conftest*
15998       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15999 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16000       ;;
16001     esac
16002   fi
16003   ;;
16004 esac
16005
16006 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16007 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16008 library_names_spec=
16009 libname_spec='lib$name'
16010 soname_spec=
16011 shrext_cmds=".so"
16012 postinstall_cmds=
16013 postuninstall_cmds=
16014 finish_cmds=
16015 finish_eval=
16016 shlibpath_var=
16017 shlibpath_overrides_runpath=unknown
16018 version_type=none
16019 dynamic_linker="$host_os ld.so"
16020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16021 if test "$GCC" = yes; then
16022   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16023   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16024     # if the path contains ";" then we assume it to be the separator
16025     # otherwise default to the standard path separator (i.e. ":") - it is
16026     # assumed that no part of a normal pathname contains ";" but that should
16027     # okay in the real world where ";" in dirpaths is itself problematic.
16028     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16029   else
16030     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16031   fi
16032 else
16033   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16034 fi
16035 need_lib_prefix=unknown
16036 hardcode_into_libs=no
16037
16038 # when you set need_version to no, make sure it does not cause -set_version
16039 # flags to be left without arguments
16040 need_version=unknown
16041
16042 case $host_os in
16043 aix3*)
16044   version_type=linux
16045   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16046   shlibpath_var=LIBPATH
16047
16048   # AIX 3 has no versioning support, so we append a major version to the name.
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   ;;
16051
16052 aix4* | aix5*)
16053   version_type=linux
16054   need_lib_prefix=no
16055   need_version=no
16056   hardcode_into_libs=yes
16057   if test "$host_cpu" = ia64; then
16058     # AIX 5 supports IA64
16059     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16060     shlibpath_var=LD_LIBRARY_PATH
16061   else
16062     # With GCC up to 2.95.x, collect2 would create an import file
16063     # for dependence libraries.  The import file would start with
16064     # the line `#! .'.  This would cause the generated library to
16065     # depend on `.', always an invalid library.  This was fixed in
16066     # development snapshots of GCC prior to 3.0.
16067     case $host_os in
16068       aix4 | aix4.[01] | aix4.[01].*)
16069       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16070            echo ' yes '
16071            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16072         :
16073       else
16074         can_build_shared=no
16075       fi
16076       ;;
16077     esac
16078     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16079     # soname into executable. Probably we can add versioning support to
16080     # collect2, so additional links can be useful in future.
16081     if test "$aix_use_runtimelinking" = yes; then
16082       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16083       # instead of lib<name>.a to let people know that these are not
16084       # typical AIX shared libraries.
16085       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086     else
16087       # We preserve .a as extension for shared libraries through AIX4.2
16088       # and later when we are not doing run time linking.
16089       library_names_spec='${libname}${release}.a $libname.a'
16090       soname_spec='${libname}${release}${shared_ext}$major'
16091     fi
16092     shlibpath_var=LIBPATH
16093   fi
16094   ;;
16095
16096 amigaos*)
16097   library_names_spec='$libname.ixlibrary $libname.a'
16098   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16099   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'
16100   ;;
16101
16102 beos*)
16103   library_names_spec='${libname}${shared_ext}'
16104   dynamic_linker="$host_os ld.so"
16105   shlibpath_var=LIBRARY_PATH
16106   ;;
16107
16108 bsdi[45]*)
16109   version_type=linux
16110   need_version=no
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16114   shlibpath_var=LD_LIBRARY_PATH
16115   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16116   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16117   # the default ld.so.conf also contains /usr/contrib/lib and
16118   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16119   # libtool to hard-code these into programs
16120   ;;
16121
16122 cygwin* | mingw* | pw32*)
16123   version_type=windows
16124   shrext_cmds=".dll"
16125   need_version=no
16126   need_lib_prefix=no
16127
16128   case $GCC,$host_os in
16129   yes,cygwin* | yes,mingw* | yes,pw32*)
16130     library_names_spec='$libname.dll.a'
16131     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16132     postinstall_cmds='base_file=`basename \${file}`~
16133       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16134       dldir=$destdir/`dirname \$dlpath`~
16135       test -d \$dldir || mkdir -p \$dldir~
16136       $install_prog $dir/$dlname \$dldir/$dlname~
16137       chmod a+x \$dldir/$dlname'
16138     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16139       dlpath=$dir/\$dldll~
16140        $rm \$dlpath'
16141     shlibpath_overrides_runpath=yes
16142
16143     case $host_os in
16144     cygwin*)
16145       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16146       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16147       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16148       ;;
16149     mingw*)
16150       # MinGW DLLs use traditional 'lib' prefix
16151       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16152       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16153       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16154         # It is most probably a Windows format PATH printed by
16155         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16156         # path with ; separators, and with drive letters. We can handle the
16157         # drive letters (cygwin fileutils understands them), so leave them,
16158         # especially as we might pass files found there to a mingw objdump,
16159         # which wouldn't understand a cygwinified path. Ahh.
16160         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16161       else
16162         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16163       fi
16164       ;;
16165     pw32*)
16166       # pw32 DLLs use 'pw' prefix rather than 'lib'
16167       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16168       ;;
16169     esac
16170     ;;
16171
16172   *)
16173     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16174     ;;
16175   esac
16176   dynamic_linker='Win32 ld.exe'
16177   # FIXME: first we should search . and the directory the executable is in
16178   shlibpath_var=PATH
16179   ;;
16180
16181 darwin* | rhapsody*)
16182   dynamic_linker="$host_os dyld"
16183   version_type=darwin
16184   need_lib_prefix=no
16185   need_version=no
16186   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16187   soname_spec='${libname}${release}${major}$shared_ext'
16188   shlibpath_overrides_runpath=yes
16189   shlibpath_var=DYLD_LIBRARY_PATH
16190   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16191   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16192   if test "$GCC" = yes; then
16193     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"`
16194   else
16195     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16196   fi
16197   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16198   ;;
16199
16200 dgux*)
16201   version_type=linux
16202   need_lib_prefix=no
16203   need_version=no
16204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16205   soname_spec='${libname}${release}${shared_ext}$major'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   ;;
16208
16209 freebsd1*)
16210   dynamic_linker=no
16211   ;;
16212
16213 kfreebsd*-gnu)
16214   version_type=linux
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16218   soname_spec='${libname}${release}${shared_ext}$major'
16219   shlibpath_var=LD_LIBRARY_PATH
16220   shlibpath_overrides_runpath=no
16221   hardcode_into_libs=yes
16222   dynamic_linker='GNU ld.so'
16223   ;;
16224
16225 freebsd* | dragonfly*)
16226   # DragonFly does not have aout.  When/if they implement a new
16227   # versioning mechanism, adjust this.
16228   if test -x /usr/bin/objformat; then
16229     objformat=`/usr/bin/objformat`
16230   else
16231     case $host_os in
16232     freebsd[123]*) objformat=aout ;;
16233     *) objformat=elf ;;
16234     esac
16235   fi
16236   version_type=freebsd-$objformat
16237   case $version_type in
16238     freebsd-elf*)
16239       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16240       need_version=no
16241       need_lib_prefix=no
16242       ;;
16243     freebsd-*)
16244       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16245       need_version=yes
16246       ;;
16247   esac
16248   shlibpath_var=LD_LIBRARY_PATH
16249   case $host_os in
16250   freebsd2*)
16251     shlibpath_overrides_runpath=yes
16252     ;;
16253   freebsd3.[01]* | freebsdelf3.[01]*)
16254     shlibpath_overrides_runpath=yes
16255     hardcode_into_libs=yes
16256     ;;
16257   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16258   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16259     shlibpath_overrides_runpath=no
16260     hardcode_into_libs=yes
16261     ;;
16262   freebsd*) # from 4.6 on
16263     shlibpath_overrides_runpath=yes
16264     hardcode_into_libs=yes
16265     ;;
16266   esac
16267   ;;
16268
16269 gnu*)
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   hardcode_into_libs=yes
16277   ;;
16278
16279 hpux9* | hpux10* | hpux11*)
16280   # Give a soname corresponding to the major version so that dld.sl refuses to
16281   # link against other versions.
16282   version_type=sunos
16283   need_lib_prefix=no
16284   need_version=no
16285   case $host_cpu in
16286   ia64*)
16287     shrext_cmds='.so'
16288     hardcode_into_libs=yes
16289     dynamic_linker="$host_os dld.so"
16290     shlibpath_var=LD_LIBRARY_PATH
16291     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16292     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293     soname_spec='${libname}${release}${shared_ext}$major'
16294     if test "X$HPUX_IA64_MODE" = X32; then
16295       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16296     else
16297       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16298     fi
16299     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16300     ;;
16301    hppa*64*)
16302      shrext_cmds='.sl'
16303      hardcode_into_libs=yes
16304      dynamic_linker="$host_os dld.sl"
16305      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16306      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16307      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16308      soname_spec='${libname}${release}${shared_ext}$major'
16309      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16310      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16311      ;;
16312    *)
16313     shrext_cmds='.sl'
16314     dynamic_linker="$host_os dld.sl"
16315     shlibpath_var=SHLIB_PATH
16316     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318     soname_spec='${libname}${release}${shared_ext}$major'
16319     ;;
16320   esac
16321   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16322   postinstall_cmds='chmod 555 $lib'
16323   ;;
16324
16325 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16332   shlibpath_var=LD_LIBRARY_PATH
16333   shlibpath_overrides_runpath=no
16334   hardcode_into_libs=yes
16335   ;;
16336
16337 irix5* | irix6* | nonstopux*)
16338   case $host_os in
16339     nonstopux*) version_type=nonstopux ;;
16340     *)
16341         if test "$lt_cv_prog_gnu_ld" = yes; then
16342                 version_type=linux
16343         else
16344                 version_type=irix
16345         fi ;;
16346   esac
16347   need_lib_prefix=no
16348   need_version=no
16349   soname_spec='${libname}${release}${shared_ext}$major'
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16351   case $host_os in
16352   irix5* | nonstopux*)
16353     libsuff= shlibsuff=
16354     ;;
16355   *)
16356     case $LD in # libtool.m4 will add one of these switches to LD
16357     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16358       libsuff= shlibsuff= libmagic=32-bit;;
16359     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16360       libsuff=32 shlibsuff=N32 libmagic=N32;;
16361     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16362       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16363     *) libsuff= shlibsuff= libmagic=never-match;;
16364     esac
16365     ;;
16366   esac
16367   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16368   shlibpath_overrides_runpath=no
16369   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16370   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16371   hardcode_into_libs=yes
16372   ;;
16373
16374 # No shared lib support for Linux oldld, aout, or coff.
16375 linux*oldld* | linux*aout* | linux*coff*)
16376   dynamic_linker=no
16377   ;;
16378
16379 # This must be Linux ELF.
16380 linux*)
16381   version_type=linux
16382   need_lib_prefix=no
16383   need_version=no
16384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385   soname_spec='${libname}${release}${shared_ext}$major'
16386   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16387   shlibpath_var=LD_LIBRARY_PATH
16388   shlibpath_overrides_runpath=no
16389   # This implies no fast_install, which is unacceptable.
16390   # Some rework will be needed to allow for fast_install
16391   # before this can be enabled.
16392   hardcode_into_libs=yes
16393
16394   # find out which ABI we are using
16395   libsuff=
16396   case "$host_cpu" in
16397   x86_64*|s390x*|powerpc64*)
16398     echo '#line 16398 "configure"' > conftest.$ac_ext
16399     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16400   (eval $ac_compile) 2>&5
16401   ac_status=$?
16402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403   (exit $ac_status); }; then
16404       case `/usr/bin/file conftest.$ac_objext` in
16405       *64-bit*)
16406         libsuff=64
16407         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16408         ;;
16409       esac
16410     fi
16411     rm -rf conftest*
16412     ;;
16413   esac
16414
16415   # Append ld.so.conf contents to the search path
16416   if test -f /etc/ld.so.conf; then
16417     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' ' '`
16418     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16419   fi
16420
16421   # We used to test for /lib/ld.so.1 and disable shared libraries on
16422   # powerpc, because MkLinux only supported shared libraries with the
16423   # GNU dynamic linker.  Since this was broken with cross compilers,
16424   # most powerpc-linux boxes support dynamic linking these days and
16425   # people can always --disable-shared, the test was removed, and we
16426   # assume the GNU/Linux dynamic linker is in use.
16427   dynamic_linker='GNU/Linux ld.so'
16428   ;;
16429
16430 knetbsd*-gnu)
16431   version_type=linux
16432   need_lib_prefix=no
16433   need_version=no
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16435   soname_spec='${libname}${release}${shared_ext}$major'
16436   shlibpath_var=LD_LIBRARY_PATH
16437   shlibpath_overrides_runpath=no
16438   hardcode_into_libs=yes
16439   dynamic_linker='GNU ld.so'
16440   ;;
16441
16442 netbsd*)
16443   version_type=sunos
16444   need_lib_prefix=no
16445   need_version=no
16446   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449     dynamic_linker='NetBSD (a.out) ld.so'
16450   else
16451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16452     soname_spec='${libname}${release}${shared_ext}$major'
16453     dynamic_linker='NetBSD ld.elf_so'
16454   fi
16455   shlibpath_var=LD_LIBRARY_PATH
16456   shlibpath_overrides_runpath=yes
16457   hardcode_into_libs=yes
16458   ;;
16459
16460 newsos6)
16461   version_type=linux
16462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463   shlibpath_var=LD_LIBRARY_PATH
16464   shlibpath_overrides_runpath=yes
16465   ;;
16466
16467 nto-qnx*)
16468   version_type=linux
16469   need_lib_prefix=no
16470   need_version=no
16471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16472   soname_spec='${libname}${release}${shared_ext}$major'
16473   shlibpath_var=LD_LIBRARY_PATH
16474   shlibpath_overrides_runpath=yes
16475   ;;
16476
16477 openbsd*)
16478   version_type=sunos
16479   sys_lib_dlsearch_path_spec="/usr/lib"
16480   need_lib_prefix=no
16481   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16482   case $host_os in
16483     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16484     *)                         need_version=no  ;;
16485   esac
16486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16488   shlibpath_var=LD_LIBRARY_PATH
16489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16490     case $host_os in
16491       openbsd2.[89] | openbsd2.[89].*)
16492         shlibpath_overrides_runpath=no
16493         ;;
16494       *)
16495         shlibpath_overrides_runpath=yes
16496         ;;
16497       esac
16498   else
16499     shlibpath_overrides_runpath=yes
16500   fi
16501   ;;
16502
16503 os2*)
16504   libname_spec='$name'
16505   shrext_cmds=".dll"
16506   need_lib_prefix=no
16507   library_names_spec='$libname${shared_ext} $libname.a'
16508   dynamic_linker='OS/2 ld.exe'
16509   shlibpath_var=LIBPATH
16510   ;;
16511
16512 osf3* | osf4* | osf5*)
16513   version_type=osf
16514   need_lib_prefix=no
16515   need_version=no
16516   soname_spec='${libname}${release}${shared_ext}$major'
16517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518   shlibpath_var=LD_LIBRARY_PATH
16519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16520   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16521   ;;
16522
16523 solaris*)
16524   version_type=linux
16525   need_lib_prefix=no
16526   need_version=no
16527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528   soname_spec='${libname}${release}${shared_ext}$major'
16529   shlibpath_var=LD_LIBRARY_PATH
16530   shlibpath_overrides_runpath=yes
16531   hardcode_into_libs=yes
16532   # ldd complains unless libraries are executable
16533   postinstall_cmds='chmod +x $lib'
16534   ;;
16535
16536 sunos4*)
16537   version_type=sunos
16538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16539   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16540   shlibpath_var=LD_LIBRARY_PATH
16541   shlibpath_overrides_runpath=yes
16542   if test "$with_gnu_ld" = yes; then
16543     need_lib_prefix=no
16544   fi
16545   need_version=yes
16546   ;;
16547
16548 sysv4 | sysv4.3*)
16549   version_type=linux
16550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551   soname_spec='${libname}${release}${shared_ext}$major'
16552   shlibpath_var=LD_LIBRARY_PATH
16553   case $host_vendor in
16554     sni)
16555       shlibpath_overrides_runpath=no
16556       need_lib_prefix=no
16557       export_dynamic_flag_spec='${wl}-Blargedynsym'
16558       runpath_var=LD_RUN_PATH
16559       ;;
16560     siemens)
16561       need_lib_prefix=no
16562       ;;
16563     motorola)
16564       need_lib_prefix=no
16565       need_version=no
16566       shlibpath_overrides_runpath=no
16567       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16568       ;;
16569   esac
16570   ;;
16571
16572 sysv4*MP*)
16573   if test -d /usr/nec ;then
16574     version_type=linux
16575     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16576     soname_spec='$libname${shared_ext}.$major'
16577     shlibpath_var=LD_LIBRARY_PATH
16578   fi
16579   ;;
16580
16581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16582   version_type=freebsd-elf
16583   need_lib_prefix=no
16584   need_version=no
16585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16586   soname_spec='${libname}${release}${shared_ext}$major'
16587   shlibpath_var=LD_LIBRARY_PATH
16588   hardcode_into_libs=yes
16589   if test "$with_gnu_ld" = yes; then
16590     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16591     shlibpath_overrides_runpath=no
16592   else
16593     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16594     shlibpath_overrides_runpath=yes
16595     case $host_os in
16596       sco3.2v5*)
16597         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16598         ;;
16599     esac
16600   fi
16601   sys_lib_dlsearch_path_spec='/usr/lib'
16602   ;;
16603
16604 uts4*)
16605   version_type=linux
16606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16607   soname_spec='${libname}${release}${shared_ext}$major'
16608   shlibpath_var=LD_LIBRARY_PATH
16609   ;;
16610
16611 *)
16612   dynamic_linker=no
16613   ;;
16614 esac
16615 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16616 echo "${ECHO_T}$dynamic_linker" >&6; }
16617 test "$dynamic_linker" = no && can_build_shared=no
16618
16619 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16620 if test "$GCC" = yes; then
16621   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16622 fi
16623
16624 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16625 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16626 hardcode_action=
16627 if test -n "$hardcode_libdir_flag_spec" || \
16628    test -n "$runpath_var" || \
16629    test "X$hardcode_automatic" = "Xyes" ; then
16630
16631   # We can hardcode non-existant directories.
16632   if test "$hardcode_direct" != no &&
16633      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16634      # have to relink, otherwise we might link with an installed library
16635      # when we should be linking with a yet-to-be-installed one
16636      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16637      test "$hardcode_minus_L" != no; then
16638     # Linking always hardcodes the temporary library directory.
16639     hardcode_action=relink
16640   else
16641     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16642     hardcode_action=immediate
16643   fi
16644 else
16645   # We cannot hardcode anything, or else we can only hardcode existing
16646   # directories.
16647   hardcode_action=unsupported
16648 fi
16649 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16650 echo "${ECHO_T}$hardcode_action" >&6; }
16651
16652 if test "$hardcode_action" = relink; then
16653   # Fast installation is not supported
16654   enable_fast_install=no
16655 elif test "$shlibpath_overrides_runpath" = yes ||
16656      test "$enable_shared" = no; then
16657   # Fast installation is not necessary
16658   enable_fast_install=needless
16659 fi
16660
16661 striplib=
16662 old_striplib=
16663 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16664 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16665 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16666   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16667   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16668   { echo "$as_me:$LINENO: result: yes" >&5
16669 echo "${ECHO_T}yes" >&6; }
16670 else
16671 # FIXME - insert some real tests, host_os isn't really good enough
16672   case $host_os in
16673    darwin*)
16674        if test -n "$STRIP" ; then
16675          striplib="$STRIP -x"
16676          { echo "$as_me:$LINENO: result: yes" >&5
16677 echo "${ECHO_T}yes" >&6; }
16678        else
16679   { echo "$as_me:$LINENO: result: no" >&5
16680 echo "${ECHO_T}no" >&6; }
16681 fi
16682        ;;
16683    *)
16684   { echo "$as_me:$LINENO: result: no" >&5
16685 echo "${ECHO_T}no" >&6; }
16686     ;;
16687   esac
16688 fi
16689
16690 if test "x$enable_dlopen" != xyes; then
16691   enable_dlopen=unknown
16692   enable_dlopen_self=unknown
16693   enable_dlopen_self_static=unknown
16694 else
16695   lt_cv_dlopen=no
16696   lt_cv_dlopen_libs=
16697
16698   case $host_os in
16699   beos*)
16700     lt_cv_dlopen="load_add_on"
16701     lt_cv_dlopen_libs=
16702     lt_cv_dlopen_self=yes
16703     ;;
16704
16705   mingw* | pw32*)
16706     lt_cv_dlopen="LoadLibrary"
16707     lt_cv_dlopen_libs=
16708    ;;
16709
16710   cygwin*)
16711     lt_cv_dlopen="dlopen"
16712     lt_cv_dlopen_libs=
16713    ;;
16714
16715   darwin*)
16716   # if libdl is installed we need to link against it
16717     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16718 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16719 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16720   echo $ECHO_N "(cached) $ECHO_C" >&6
16721 else
16722   ac_check_lib_save_LIBS=$LIBS
16723 LIBS="-ldl  $LIBS"
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730
16731 /* Override any GCC internal prototype to avoid an error.
16732    Use char because int might match the return type of a GCC
16733    builtin and then its argument prototype would still apply.  */
16734 #ifdef __cplusplus
16735 extern "C"
16736 #endif
16737 char dlopen ();
16738 int
16739 main ()
16740 {
16741 return dlopen ();
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750   *) ac_try_echo=$ac_try;;
16751 esac
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753   (eval "$ac_link") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } && {
16760          test -z "$ac_c_werror_flag" ||
16761          test ! -s conftest.err
16762        } && test -s conftest$ac_exeext &&
16763        $as_test_x conftest$ac_exeext; then
16764   ac_cv_lib_dl_dlopen=yes
16765 else
16766   echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769         ac_cv_lib_dl_dlopen=no
16770 fi
16771
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773       conftest$ac_exeext conftest.$ac_ext
16774 LIBS=$ac_check_lib_save_LIBS
16775 fi
16776 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16778 if test $ac_cv_lib_dl_dlopen = yes; then
16779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16780 else
16781
16782     lt_cv_dlopen="dyld"
16783     lt_cv_dlopen_libs=
16784     lt_cv_dlopen_self=yes
16785
16786 fi
16787
16788    ;;
16789
16790   *)
16791     { echo "$as_me:$LINENO: checking for shl_load" >&5
16792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16793 if test "${ac_cv_func_shl_load+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16804 #define shl_load innocuous_shl_load
16805
16806 /* System header to define __stub macros and hopefully few prototypes,
16807     which can conflict with char shl_load (); below.
16808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16809     <limits.h> exists even on freestanding compilers.  */
16810
16811 #ifdef __STDC__
16812 # include <limits.h>
16813 #else
16814 # include <assert.h>
16815 #endif
16816
16817 #undef shl_load
16818
16819 /* Override any GCC internal prototype to avoid an error.
16820    Use char because int might match the return type of a GCC
16821    builtin and then its argument prototype would still apply.  */
16822 #ifdef __cplusplus
16823 extern "C"
16824 #endif
16825 char shl_load ();
16826 /* The GNU C library defines this for functions which it implements
16827     to always fail with ENOSYS.  Some functions are actually named
16828     something starting with __ and the normal name is an alias.  */
16829 #if defined __stub_shl_load || defined __stub___shl_load
16830 choke me
16831 #endif
16832
16833 int
16834 main ()
16835 {
16836 return shl_load ();
16837   ;
16838   return 0;
16839 }
16840 _ACEOF
16841 rm -f conftest.$ac_objext conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_link") 2>conftest.er1
16849   ac_status=$?
16850   grep -v '^ *+' conftest.er1 >conftest.err
16851   rm -f conftest.er1
16852   cat conftest.err >&5
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } && {
16855          test -z "$ac_c_werror_flag" ||
16856          test ! -s conftest.err
16857        } && test -s conftest$ac_exeext &&
16858        $as_test_x conftest$ac_exeext; then
16859   ac_cv_func_shl_load=yes
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864         ac_cv_func_shl_load=no
16865 fi
16866
16867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16868       conftest$ac_exeext conftest.$ac_ext
16869 fi
16870 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16871 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16872 if test $ac_cv_func_shl_load = yes; then
16873   lt_cv_dlopen="shl_load"
16874 else
16875   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16876 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   ac_check_lib_save_LIBS=$LIBS
16881 LIBS="-ldld  $LIBS"
16882 cat >conftest.$ac_ext <<_ACEOF
16883 /* confdefs.h.  */
16884 _ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h.  */
16888
16889 /* Override any GCC internal prototype to avoid an error.
16890    Use char because int might match the return type of a GCC
16891    builtin and then its argument prototype would still apply.  */
16892 #ifdef __cplusplus
16893 extern "C"
16894 #endif
16895 char shl_load ();
16896 int
16897 main ()
16898 {
16899 return shl_load ();
16900   ;
16901   return 0;
16902 }
16903 _ACEOF
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908   *) ac_try_echo=$ac_try;;
16909 esac
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911   (eval "$ac_link") 2>conftest.er1
16912   ac_status=$?
16913   grep -v '^ *+' conftest.er1 >conftest.err
16914   rm -f conftest.er1
16915   cat conftest.err >&5
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); } && {
16918          test -z "$ac_c_werror_flag" ||
16919          test ! -s conftest.err
16920        } && test -s conftest$ac_exeext &&
16921        $as_test_x conftest$ac_exeext; then
16922   ac_cv_lib_dld_shl_load=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927         ac_cv_lib_dld_shl_load=no
16928 fi
16929
16930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16931       conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16933 fi
16934 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16935 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16936 if test $ac_cv_lib_dld_shl_load = yes; then
16937   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16938 else
16939   { echo "$as_me:$LINENO: checking for dlopen" >&5
16940 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16941 if test "${ac_cv_func_dlopen+set}" = set; then
16942   echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944   cat >conftest.$ac_ext <<_ACEOF
16945 /* confdefs.h.  */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h.  */
16950 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16952 #define dlopen innocuous_dlopen
16953
16954 /* System header to define __stub macros and hopefully few prototypes,
16955     which can conflict with char dlopen (); below.
16956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16957     <limits.h> exists even on freestanding compilers.  */
16958
16959 #ifdef __STDC__
16960 # include <limits.h>
16961 #else
16962 # include <assert.h>
16963 #endif
16964
16965 #undef dlopen
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 dlopen ();
16974 /* The GNU C library defines this for functions which it implements
16975     to always fail with ENOSYS.  Some functions are actually named
16976     something starting with __ and the normal name is an alias.  */
16977 #if defined __stub_dlopen || defined __stub___dlopen
16978 choke me
16979 #endif
16980
16981 int
16982 main ()
16983 {
16984 return dlopen ();
16985   ;
16986   return 0;
16987 }
16988 _ACEOF
16989 rm -f conftest.$ac_objext conftest$ac_exeext
16990 if { (ac_try="$ac_link"
16991 case "(($ac_try" in
16992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993   *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996   (eval "$ac_link") 2>conftest.er1
16997   ac_status=$?
16998   grep -v '^ *+' conftest.er1 >conftest.err
16999   rm -f conftest.er1
17000   cat conftest.err >&5
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); } && {
17003          test -z "$ac_c_werror_flag" ||
17004          test ! -s conftest.err
17005        } && test -s conftest$ac_exeext &&
17006        $as_test_x conftest$ac_exeext; then
17007   ac_cv_func_dlopen=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012         ac_cv_func_dlopen=no
17013 fi
17014
17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016       conftest$ac_exeext conftest.$ac_ext
17017 fi
17018 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17019 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17020 if test $ac_cv_func_dlopen = yes; then
17021   lt_cv_dlopen="dlopen"
17022 else
17023   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17024 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17025 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17026   echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028   ac_check_lib_save_LIBS=$LIBS
17029 LIBS="-ldl  $LIBS"
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036
17037 /* Override any GCC internal prototype to avoid an error.
17038    Use char because int might match the return type of a GCC
17039    builtin and then its argument prototype would still apply.  */
17040 #ifdef __cplusplus
17041 extern "C"
17042 #endif
17043 char dlopen ();
17044 int
17045 main ()
17046 {
17047 return dlopen ();
17048   ;
17049   return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_link") 2>conftest.er1
17060   ac_status=$?
17061   grep -v '^ *+' conftest.er1 >conftest.err
17062   rm -f conftest.er1
17063   cat conftest.err >&5
17064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); } && {
17066          test -z "$ac_c_werror_flag" ||
17067          test ! -s conftest.err
17068        } && test -s conftest$ac_exeext &&
17069        $as_test_x conftest$ac_exeext; then
17070   ac_cv_lib_dl_dlopen=yes
17071 else
17072   echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075         ac_cv_lib_dl_dlopen=no
17076 fi
17077
17078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17079       conftest$ac_exeext conftest.$ac_ext
17080 LIBS=$ac_check_lib_save_LIBS
17081 fi
17082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17083 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17084 if test $ac_cv_lib_dl_dlopen = yes; then
17085   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17086 else
17087   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17088 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17089 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   ac_check_lib_save_LIBS=$LIBS
17093 LIBS="-lsvld  $LIBS"
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h.  */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h.  */
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102    Use char because int might match the return type of a GCC
17103    builtin and then its argument prototype would still apply.  */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 char dlopen ();
17108 int
17109 main ()
17110 {
17111 return dlopen ();
17112   ;
17113   return 0;
17114 }
17115 _ACEOF
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (ac_try="$ac_link"
17118 case "(($ac_try" in
17119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17120   *) ac_try_echo=$ac_try;;
17121 esac
17122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17123   (eval "$ac_link") 2>conftest.er1
17124   ac_status=$?
17125   grep -v '^ *+' conftest.er1 >conftest.err
17126   rm -f conftest.er1
17127   cat conftest.err >&5
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); } && {
17130          test -z "$ac_c_werror_flag" ||
17131          test ! -s conftest.err
17132        } && test -s conftest$ac_exeext &&
17133        $as_test_x conftest$ac_exeext; then
17134   ac_cv_lib_svld_dlopen=yes
17135 else
17136   echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139         ac_cv_lib_svld_dlopen=no
17140 fi
17141
17142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17143       conftest$ac_exeext conftest.$ac_ext
17144 LIBS=$ac_check_lib_save_LIBS
17145 fi
17146 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17147 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17148 if test $ac_cv_lib_svld_dlopen = yes; then
17149   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17150 else
17151   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17152 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17153 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-ldld  $LIBS"
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h.  */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h.  */
17164
17165 /* Override any GCC internal prototype to avoid an error.
17166    Use char because int might match the return type of a GCC
17167    builtin and then its argument prototype would still apply.  */
17168 #ifdef __cplusplus
17169 extern "C"
17170 #endif
17171 char dld_link ();
17172 int
17173 main ()
17174 {
17175 return dld_link ();
17176   ;
17177   return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184   *) ac_try_echo=$ac_try;;
17185 esac
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187   (eval "$ac_link") 2>conftest.er1
17188   ac_status=$?
17189   grep -v '^ *+' conftest.er1 >conftest.err
17190   rm -f conftest.er1
17191   cat conftest.err >&5
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); } && {
17194          test -z "$ac_c_werror_flag" ||
17195          test ! -s conftest.err
17196        } && test -s conftest$ac_exeext &&
17197        $as_test_x conftest$ac_exeext; then
17198   ac_cv_lib_dld_dld_link=yes
17199 else
17200   echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.$ac_ext >&5
17202
17203         ac_cv_lib_dld_dld_link=no
17204 fi
17205
17206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17207       conftest$ac_exeext conftest.$ac_ext
17208 LIBS=$ac_check_lib_save_LIBS
17209 fi
17210 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17211 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17212 if test $ac_cv_lib_dld_dld_link = yes; then
17213   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17214 fi
17215
17216
17217 fi
17218
17219
17220 fi
17221
17222
17223 fi
17224
17225
17226 fi
17227
17228
17229 fi
17230
17231     ;;
17232   esac
17233
17234   if test "x$lt_cv_dlopen" != xno; then
17235     enable_dlopen=yes
17236   else
17237     enable_dlopen=no
17238   fi
17239
17240   case $lt_cv_dlopen in
17241   dlopen)
17242     save_CPPFLAGS="$CPPFLAGS"
17243     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17244
17245     save_LDFLAGS="$LDFLAGS"
17246     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17247
17248     save_LIBS="$LIBS"
17249     LIBS="$lt_cv_dlopen_libs $LIBS"
17250
17251     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17252 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17253 if test "${lt_cv_dlopen_self+set}" = set; then
17254   echo $ECHO_N "(cached) $ECHO_C" >&6
17255 else
17256           if test "$cross_compiling" = yes; then :
17257   lt_cv_dlopen_self=cross
17258 else
17259   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17260   lt_status=$lt_dlunknown
17261   cat > conftest.$ac_ext <<EOF
17262 #line 17262 "configure"
17263 #include "confdefs.h"
17264
17265 #if HAVE_DLFCN_H
17266 #include <dlfcn.h>
17267 #endif
17268
17269 #include <stdio.h>
17270
17271 #ifdef RTLD_GLOBAL
17272 #  define LT_DLGLOBAL           RTLD_GLOBAL
17273 #else
17274 #  ifdef DL_GLOBAL
17275 #    define LT_DLGLOBAL         DL_GLOBAL
17276 #  else
17277 #    define LT_DLGLOBAL         0
17278 #  endif
17279 #endif
17280
17281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17282    find out it does not work in some platform. */
17283 #ifndef LT_DLLAZY_OR_NOW
17284 #  ifdef RTLD_LAZY
17285 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17286 #  else
17287 #    ifdef DL_LAZY
17288 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17289 #    else
17290 #      ifdef RTLD_NOW
17291 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17292 #      else
17293 #        ifdef DL_NOW
17294 #          define LT_DLLAZY_OR_NOW      DL_NOW
17295 #        else
17296 #          define LT_DLLAZY_OR_NOW      0
17297 #        endif
17298 #      endif
17299 #    endif
17300 #  endif
17301 #endif
17302
17303 #ifdef __cplusplus
17304 extern "C" void exit (int);
17305 #endif
17306
17307 void fnord() { int i=42;}
17308 int main ()
17309 {
17310   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17311   int status = $lt_dlunknown;
17312
17313   if (self)
17314     {
17315       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17316       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17317       /* dlclose (self); */
17318     }
17319   else
17320     puts (dlerror ());
17321
17322     exit (status);
17323 }
17324 EOF
17325   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17326   (eval $ac_link) 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17330     (./conftest; exit; ) >&5 2>/dev/null
17331     lt_status=$?
17332     case x$lt_status in
17333       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17334       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17335       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17336     esac
17337   else :
17338     # compilation failed
17339     lt_cv_dlopen_self=no
17340   fi
17341 fi
17342 rm -fr conftest*
17343
17344
17345 fi
17346 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17347 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17348
17349     if test "x$lt_cv_dlopen_self" = xyes; then
17350       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17351       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17352 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17353 if test "${lt_cv_dlopen_self_static+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356           if test "$cross_compiling" = yes; then :
17357   lt_cv_dlopen_self_static=cross
17358 else
17359   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17360   lt_status=$lt_dlunknown
17361   cat > conftest.$ac_ext <<EOF
17362 #line 17362 "configure"
17363 #include "confdefs.h"
17364
17365 #if HAVE_DLFCN_H
17366 #include <dlfcn.h>
17367 #endif
17368
17369 #include <stdio.h>
17370
17371 #ifdef RTLD_GLOBAL
17372 #  define LT_DLGLOBAL           RTLD_GLOBAL
17373 #else
17374 #  ifdef DL_GLOBAL
17375 #    define LT_DLGLOBAL         DL_GLOBAL
17376 #  else
17377 #    define LT_DLGLOBAL         0
17378 #  endif
17379 #endif
17380
17381 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17382    find out it does not work in some platform. */
17383 #ifndef LT_DLLAZY_OR_NOW
17384 #  ifdef RTLD_LAZY
17385 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17386 #  else
17387 #    ifdef DL_LAZY
17388 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17389 #    else
17390 #      ifdef RTLD_NOW
17391 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17392 #      else
17393 #        ifdef DL_NOW
17394 #          define LT_DLLAZY_OR_NOW      DL_NOW
17395 #        else
17396 #          define LT_DLLAZY_OR_NOW      0
17397 #        endif
17398 #      endif
17399 #    endif
17400 #  endif
17401 #endif
17402
17403 #ifdef __cplusplus
17404 extern "C" void exit (int);
17405 #endif
17406
17407 void fnord() { int i=42;}
17408 int main ()
17409 {
17410   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17411   int status = $lt_dlunknown;
17412
17413   if (self)
17414     {
17415       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17416       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17417       /* dlclose (self); */
17418     }
17419   else
17420     puts (dlerror ());
17421
17422     exit (status);
17423 }
17424 EOF
17425   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426   (eval $ac_link) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17430     (./conftest; exit; ) >&5 2>/dev/null
17431     lt_status=$?
17432     case x$lt_status in
17433       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17434       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17435       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17436     esac
17437   else :
17438     # compilation failed
17439     lt_cv_dlopen_self_static=no
17440   fi
17441 fi
17442 rm -fr conftest*
17443
17444
17445 fi
17446 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17447 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17448     fi
17449
17450     CPPFLAGS="$save_CPPFLAGS"
17451     LDFLAGS="$save_LDFLAGS"
17452     LIBS="$save_LIBS"
17453     ;;
17454   esac
17455
17456   case $lt_cv_dlopen_self in
17457   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17458   *) enable_dlopen_self=unknown ;;
17459   esac
17460
17461   case $lt_cv_dlopen_self_static in
17462   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17463   *) enable_dlopen_self_static=unknown ;;
17464   esac
17465 fi
17466
17467
17468 # Report which library types will actually be built
17469 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17470 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17471 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17472 echo "${ECHO_T}$can_build_shared" >&6; }
17473
17474 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17475 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17476 test "$can_build_shared" = "no" && enable_shared=no
17477
17478 # On AIX, shared libraries and static libraries use the same namespace, and
17479 # are all built from PIC.
17480 case $host_os in
17481 aix3*)
17482   test "$enable_shared" = yes && enable_static=no
17483   if test -n "$RANLIB"; then
17484     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17485     postinstall_cmds='$RANLIB $lib'
17486   fi
17487   ;;
17488
17489 aix4* | aix5*)
17490   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17491     test "$enable_shared" = yes && enable_static=no
17492   fi
17493     ;;
17494 esac
17495 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17496 echo "${ECHO_T}$enable_shared" >&6; }
17497
17498 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17499 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17500 # Make sure either enable_shared or enable_static is yes.
17501 test "$enable_shared" = yes || enable_static=yes
17502 { echo "$as_me:$LINENO: result: $enable_static" >&5
17503 echo "${ECHO_T}$enable_static" >&6; }
17504
17505 # The else clause should only fire when bootstrapping the
17506 # libtool distribution, otherwise you forgot to ship ltmain.sh
17507 # with your package, and you will get complaints that there are
17508 # no rules to generate ltmain.sh.
17509 if test -f "$ltmain"; then
17510   # See if we are running on zsh, and set the options which allow our commands through
17511   # without removal of \ escapes.
17512   if test -n "${ZSH_VERSION+set}" ; then
17513     setopt NO_GLOB_SUBST
17514   fi
17515   # Now quote all the things that may contain metacharacters while being
17516   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17517   # variables and quote the copies for generation of the libtool script.
17518   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17519     SED SHELL STRIP \
17520     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17521     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17522     deplibs_check_method reload_flag reload_cmds need_locks \
17523     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17524     lt_cv_sys_global_symbol_to_c_name_address \
17525     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17526     old_postinstall_cmds old_postuninstall_cmds \
17527     compiler \
17528     CC \
17529     LD \
17530     lt_prog_compiler_wl \
17531     lt_prog_compiler_pic \
17532     lt_prog_compiler_static \
17533     lt_prog_compiler_no_builtin_flag \
17534     export_dynamic_flag_spec \
17535     thread_safe_flag_spec \
17536     whole_archive_flag_spec \
17537     enable_shared_with_static_runtimes \
17538     old_archive_cmds \
17539     old_archive_from_new_cmds \
17540     predep_objects \
17541     postdep_objects \
17542     predeps \
17543     postdeps \
17544     compiler_lib_search_path \
17545     archive_cmds \
17546     archive_expsym_cmds \
17547     postinstall_cmds \
17548     postuninstall_cmds \
17549     old_archive_from_expsyms_cmds \
17550     allow_undefined_flag \
17551     no_undefined_flag \
17552     export_symbols_cmds \
17553     hardcode_libdir_flag_spec \
17554     hardcode_libdir_flag_spec_ld \
17555     hardcode_libdir_separator \
17556     hardcode_automatic \
17557     module_cmds \
17558     module_expsym_cmds \
17559     lt_cv_prog_compiler_c_o \
17560     exclude_expsyms \
17561     include_expsyms; do
17562
17563     case $var in
17564     old_archive_cmds | \
17565     old_archive_from_new_cmds | \
17566     archive_cmds | \
17567     archive_expsym_cmds | \
17568     module_cmds | \
17569     module_expsym_cmds | \
17570     old_archive_from_expsyms_cmds | \
17571     export_symbols_cmds | \
17572     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17573     postinstall_cmds | postuninstall_cmds | \
17574     old_postinstall_cmds | old_postuninstall_cmds | \
17575     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17576       # Double-quote double-evaled strings.
17577       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17578       ;;
17579     *)
17580       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17581       ;;
17582     esac
17583   done
17584
17585   case $lt_echo in
17586   *'\$0 --fallback-echo"')
17587     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17588     ;;
17589   esac
17590
17591 cfgfile="${ofile}T"
17592   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17593   $rm -f "$cfgfile"
17594   { echo "$as_me:$LINENO: creating $ofile" >&5
17595 echo "$as_me: creating $ofile" >&6;}
17596
17597   cat <<__EOF__ >> "$cfgfile"
17598 #! $SHELL
17599
17600 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17601 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17602 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17603 #
17604 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17605 # Free Software Foundation, Inc.
17606 #
17607 # This file is part of GNU Libtool:
17608 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17609 #
17610 # This program is free software; you can redistribute it and/or modify
17611 # it under the terms of the GNU General Public License as published by
17612 # the Free Software Foundation; either version 2 of the License, or
17613 # (at your option) any later version.
17614 #
17615 # This program is distributed in the hope that it will be useful, but
17616 # WITHOUT ANY WARRANTY; without even the implied warranty of
17617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17618 # General Public License for more details.
17619 #
17620 # You should have received a copy of the GNU General Public License
17621 # along with this program; if not, write to the Free Software
17622 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17623 #
17624 # As a special exception to the GNU General Public License, if you
17625 # distribute this file as part of a program that contains a
17626 # configuration script generated by Autoconf, you may include it under
17627 # the same distribution terms that you use for the rest of that program.
17628
17629 # A sed program that does not truncate output.
17630 SED=$lt_SED
17631
17632 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17633 Xsed="$SED -e 1s/^X//"
17634
17635 # The HP-UX ksh and POSIX shell print the target directory to stdout
17636 # if CDPATH is set.
17637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17638
17639 # The names of the tagged configurations supported by this script.
17640 available_tags=
17641
17642 # ### BEGIN LIBTOOL CONFIG
17643
17644 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17645
17646 # Shell to use when invoking shell scripts.
17647 SHELL=$lt_SHELL
17648
17649 # Whether or not to build shared libraries.
17650 build_libtool_libs=$enable_shared
17651
17652 # Whether or not to build static libraries.
17653 build_old_libs=$enable_static
17654
17655 # Whether or not to add -lc for building shared libraries.
17656 build_libtool_need_lc=$archive_cmds_need_lc
17657
17658 # Whether or not to disallow shared libs when runtime libs are static
17659 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17660
17661 # Whether or not to optimize for fast installation.
17662 fast_install=$enable_fast_install
17663
17664 # The host system.
17665 host_alias=$host_alias
17666 host=$host
17667 host_os=$host_os
17668
17669 # The build system.
17670 build_alias=$build_alias
17671 build=$build
17672 build_os=$build_os
17673
17674 # An echo program that does not interpret backslashes.
17675 echo=$lt_echo
17676
17677 # The archiver.
17678 AR=$lt_AR
17679 AR_FLAGS=$lt_AR_FLAGS
17680
17681 # A C compiler.
17682 LTCC=$lt_LTCC
17683
17684 # LTCC compiler flags.
17685 LTCFLAGS=$lt_LTCFLAGS
17686
17687 # A language-specific compiler.
17688 CC=$lt_compiler
17689
17690 # Is the compiler the GNU C compiler?
17691 with_gcc=$GCC
17692
17693 # An ERE matcher.
17694 EGREP=$lt_EGREP
17695
17696 # The linker used to build libraries.
17697 LD=$lt_LD
17698
17699 # Whether we need hard or soft links.
17700 LN_S=$lt_LN_S
17701
17702 # A BSD-compatible nm program.
17703 NM=$lt_NM
17704
17705 # A symbol stripping program
17706 STRIP=$lt_STRIP
17707
17708 # Used to examine libraries when file_magic_cmd begins "file"
17709 MAGIC_CMD=$MAGIC_CMD
17710
17711 # Used on cygwin: DLL creation program.
17712 DLLTOOL="$DLLTOOL"
17713
17714 # Used on cygwin: object dumper.
17715 OBJDUMP="$OBJDUMP"
17716
17717 # Used on cygwin: assembler.
17718 AS="$AS"
17719
17720 # The name of the directory that contains temporary libtool files.
17721 objdir=$objdir
17722
17723 # How to create reloadable object files.
17724 reload_flag=$lt_reload_flag
17725 reload_cmds=$lt_reload_cmds
17726
17727 # How to pass a linker flag through the compiler.
17728 wl=$lt_lt_prog_compiler_wl
17729
17730 # Object file suffix (normally "o").
17731 objext="$ac_objext"
17732
17733 # Old archive suffix (normally "a").
17734 libext="$libext"
17735
17736 # Shared library suffix (normally ".so").
17737 shrext_cmds='$shrext_cmds'
17738
17739 # Executable file suffix (normally "").
17740 exeext="$exeext"
17741
17742 # Additional compiler flags for building library objects.
17743 pic_flag=$lt_lt_prog_compiler_pic
17744 pic_mode=$pic_mode
17745
17746 # What is the maximum length of a command?
17747 max_cmd_len=$lt_cv_sys_max_cmd_len
17748
17749 # Does compiler simultaneously support -c and -o options?
17750 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17751
17752 # Must we lock files when doing compilation?
17753 need_locks=$lt_need_locks
17754
17755 # Do we need the lib prefix for modules?
17756 need_lib_prefix=$need_lib_prefix
17757
17758 # Do we need a version for libraries?
17759 need_version=$need_version
17760
17761 # Whether dlopen is supported.
17762 dlopen_support=$enable_dlopen
17763
17764 # Whether dlopen of programs is supported.
17765 dlopen_self=$enable_dlopen_self
17766
17767 # Whether dlopen of statically linked programs is supported.
17768 dlopen_self_static=$enable_dlopen_self_static
17769
17770 # Compiler flag to prevent dynamic linking.
17771 link_static_flag=$lt_lt_prog_compiler_static
17772
17773 # Compiler flag to turn off builtin functions.
17774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17775
17776 # Compiler flag to allow reflexive dlopens.
17777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17778
17779 # Compiler flag to generate shared objects directly from archives.
17780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17781
17782 # Compiler flag to generate thread-safe objects.
17783 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17784
17785 # Library versioning type.
17786 version_type=$version_type
17787
17788 # Format of library name prefix.
17789 libname_spec=$lt_libname_spec
17790
17791 # List of archive names.  First name is the real one, the rest are links.
17792 # The last name is the one that the linker finds with -lNAME.
17793 library_names_spec=$lt_library_names_spec
17794
17795 # The coded name of the library, if different from the real name.
17796 soname_spec=$lt_soname_spec
17797
17798 # Commands used to build and install an old-style archive.
17799 RANLIB=$lt_RANLIB
17800 old_archive_cmds=$lt_old_archive_cmds
17801 old_postinstall_cmds=$lt_old_postinstall_cmds
17802 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17803
17804 # Create an old-style archive from a shared archive.
17805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17806
17807 # Create a temporary old-style archive to link instead of a shared archive.
17808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17809
17810 # Commands used to build and install a shared archive.
17811 archive_cmds=$lt_archive_cmds
17812 archive_expsym_cmds=$lt_archive_expsym_cmds
17813 postinstall_cmds=$lt_postinstall_cmds
17814 postuninstall_cmds=$lt_postuninstall_cmds
17815
17816 # Commands used to build a loadable module (assumed same as above if empty)
17817 module_cmds=$lt_module_cmds
17818 module_expsym_cmds=$lt_module_expsym_cmds
17819
17820 # Commands to strip libraries.
17821 old_striplib=$lt_old_striplib
17822 striplib=$lt_striplib
17823
17824 # Dependencies to place before the objects being linked to create a
17825 # shared library.
17826 predep_objects=$lt_predep_objects
17827
17828 # Dependencies to place after the objects being linked to create a
17829 # shared library.
17830 postdep_objects=$lt_postdep_objects
17831
17832 # Dependencies to place before the objects being linked to create a
17833 # shared library.
17834 predeps=$lt_predeps
17835
17836 # Dependencies to place after the objects being linked to create a
17837 # shared library.
17838 postdeps=$lt_postdeps
17839
17840 # The library search path used internally by the compiler when linking
17841 # a shared library.
17842 compiler_lib_search_path=$lt_compiler_lib_search_path
17843
17844 # Method to check whether dependent libraries are shared objects.
17845 deplibs_check_method=$lt_deplibs_check_method
17846
17847 # Command to use when deplibs_check_method == file_magic.
17848 file_magic_cmd=$lt_file_magic_cmd
17849
17850 # Flag that allows shared libraries with undefined symbols to be built.
17851 allow_undefined_flag=$lt_allow_undefined_flag
17852
17853 # Flag that forces no undefined symbols.
17854 no_undefined_flag=$lt_no_undefined_flag
17855
17856 # Commands used to finish a libtool library installation in a directory.
17857 finish_cmds=$lt_finish_cmds
17858
17859 # Same as above, but a single script fragment to be evaled but not shown.
17860 finish_eval=$lt_finish_eval
17861
17862 # Take the output of nm and produce a listing of raw symbols and C names.
17863 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17864
17865 # Transform the output of nm in a proper C declaration
17866 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17867
17868 # Transform the output of nm in a C name address pair
17869 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17870
17871 # This is the shared library runtime path variable.
17872 runpath_var=$runpath_var
17873
17874 # This is the shared library path variable.
17875 shlibpath_var=$shlibpath_var
17876
17877 # Is shlibpath searched before the hard-coded library search path?
17878 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17879
17880 # How to hardcode a shared library path into an executable.
17881 hardcode_action=$hardcode_action
17882
17883 # Whether we should hardcode library paths into libraries.
17884 hardcode_into_libs=$hardcode_into_libs
17885
17886 # Flag to hardcode \$libdir into a binary during linking.
17887 # This must work even if \$libdir does not exist.
17888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17889
17890 # If ld is used when linking, flag to hardcode \$libdir into
17891 # a binary during linking. This must work even if \$libdir does
17892 # not exist.
17893 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17894
17895 # Whether we need a single -rpath flag with a separated argument.
17896 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17897
17898 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17899 # resulting binary.
17900 hardcode_direct=$hardcode_direct
17901
17902 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17903 # resulting binary.
17904 hardcode_minus_L=$hardcode_minus_L
17905
17906 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17907 # the resulting binary.
17908 hardcode_shlibpath_var=$hardcode_shlibpath_var
17909
17910 # Set to yes if building a shared library automatically hardcodes DIR into the library
17911 # and all subsequent libraries and executables linked against it.
17912 hardcode_automatic=$hardcode_automatic
17913
17914 # Variables whose values should be saved in libtool wrapper scripts and
17915 # restored at relink time.
17916 variables_saved_for_relink="$variables_saved_for_relink"
17917
17918 # Whether libtool must link a program against all its dependency libraries.
17919 link_all_deplibs=$link_all_deplibs
17920
17921 # Compile-time system search path for libraries
17922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17923
17924 # Run-time system search path for libraries
17925 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17926
17927 # Fix the shell variable \$srcfile for the compiler.
17928 fix_srcfile_path="$fix_srcfile_path"
17929
17930 # Set to yes if exported symbols are required.
17931 always_export_symbols=$always_export_symbols
17932
17933 # The commands to list exported symbols.
17934 export_symbols_cmds=$lt_export_symbols_cmds
17935
17936 # The commands to extract the exported symbol list from a shared archive.
17937 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17938
17939 # Symbols that should not be listed in the preloaded symbols.
17940 exclude_expsyms=$lt_exclude_expsyms
17941
17942 # Symbols that must always be exported.
17943 include_expsyms=$lt_include_expsyms
17944
17945 # ### END LIBTOOL CONFIG
17946
17947 __EOF__
17948
17949
17950   case $host_os in
17951   aix3*)
17952     cat <<\EOF >> "$cfgfile"
17953
17954 # AIX sometimes has problems with the GCC collect2 program.  For some
17955 # reason, if we set the COLLECT_NAMES environment variable, the problems
17956 # vanish in a puff of smoke.
17957 if test "X${COLLECT_NAMES+set}" != Xset; then
17958   COLLECT_NAMES=
17959   export COLLECT_NAMES
17960 fi
17961 EOF
17962     ;;
17963   esac
17964
17965   # We use sed instead of cat because bash on DJGPP gets confused if
17966   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17967   # text mode, it properly converts lines to CR/LF.  This bash problem
17968   # is reportedly fixed, but why not run on old versions too?
17969   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17970
17971   mv -f "$cfgfile" "$ofile" || \
17972     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17973   chmod +x "$ofile"
17974
17975 else
17976   # If there is no Makefile yet, we rely on a make rule to execute
17977   # `config.status --recheck' to rerun these tests and create the
17978   # libtool script then.
17979   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17980   if test -f "$ltmain_in"; then
17981     test -f Makefile && make "$ltmain"
17982   fi
17983 fi
17984
17985
17986 ac_ext=c
17987 ac_cpp='$CPP $CPPFLAGS'
17988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17991
17992 CC="$lt_save_CC"
17993
17994
17995 # Check whether --with-tags was given.
17996 if test "${with_tags+set}" = set; then
17997   withval=$with_tags; tagnames="$withval"
17998 fi
17999
18000
18001 if test -f "$ltmain" && test -n "$tagnames"; then
18002   if test ! -f "${ofile}"; then
18003     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18004 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18005   fi
18006
18007   if test -z "$LTCC"; then
18008     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18009     if test -z "$LTCC"; then
18010       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18011 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18012     else
18013       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18014 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18015     fi
18016   fi
18017   if test -z "$LTCFLAGS"; then
18018     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18019   fi
18020
18021   # Extract list of available tagged configurations in $ofile.
18022   # Note that this assumes the entire list is on one line.
18023   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18024
18025   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18026   for tagname in $tagnames; do
18027     IFS="$lt_save_ifs"
18028     # Check whether tagname contains only valid characters
18029     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18030     "") ;;
18031     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18032 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18033    { (exit 1); exit 1; }; }
18034         ;;
18035     esac
18036
18037     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18038     then
18039       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18040 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18041    { (exit 1); exit 1; }; }
18042     fi
18043
18044     # Update the list of available tags.
18045     if test -n "$tagname"; then
18046       echo appending configuration tag \"$tagname\" to $ofile
18047
18048       case $tagname in
18049       CXX)
18050         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18051             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18052             (test "X$CXX" != "Xg++"))) ; then
18053           ac_ext=cpp
18054 ac_cpp='$CXXCPP $CPPFLAGS'
18055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18058
18059
18060
18061
18062 archive_cmds_need_lc_CXX=no
18063 allow_undefined_flag_CXX=
18064 always_export_symbols_CXX=no
18065 archive_expsym_cmds_CXX=
18066 export_dynamic_flag_spec_CXX=
18067 hardcode_direct_CXX=no
18068 hardcode_libdir_flag_spec_CXX=
18069 hardcode_libdir_flag_spec_ld_CXX=
18070 hardcode_libdir_separator_CXX=
18071 hardcode_minus_L_CXX=no
18072 hardcode_shlibpath_var_CXX=unsupported
18073 hardcode_automatic_CXX=no
18074 module_cmds_CXX=
18075 module_expsym_cmds_CXX=
18076 link_all_deplibs_CXX=unknown
18077 old_archive_cmds_CXX=$old_archive_cmds
18078 no_undefined_flag_CXX=
18079 whole_archive_flag_spec_CXX=
18080 enable_shared_with_static_runtimes_CXX=no
18081
18082 # Dependencies to place before and after the object being linked:
18083 predep_objects_CXX=
18084 postdep_objects_CXX=
18085 predeps_CXX=
18086 postdeps_CXX=
18087 compiler_lib_search_path_CXX=
18088
18089 # Source file extension for C++ test sources.
18090 ac_ext=cpp
18091
18092 # Object file extension for compiled C++ test sources.
18093 objext=o
18094 objext_CXX=$objext
18095
18096 # Code to be used in simple compile tests
18097 lt_simple_compile_test_code="int some_variable = 0;\n"
18098
18099 # Code to be used in simple link tests
18100 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18101
18102 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18103
18104 # If no C compiler was specified, use CC.
18105 LTCC=${LTCC-"$CC"}
18106
18107 # If no C compiler flags were specified, use CFLAGS.
18108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18109
18110 # Allow CC to be a program name with arguments.
18111 compiler=$CC
18112
18113
18114 # save warnings/boilerplate of simple test code
18115 ac_outfile=conftest.$ac_objext
18116 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18117 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18118 _lt_compiler_boilerplate=`cat conftest.err`
18119 $rm conftest*
18120
18121 ac_outfile=conftest.$ac_objext
18122 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18123 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18124 _lt_linker_boilerplate=`cat conftest.err`
18125 $rm conftest*
18126
18127
18128 # Allow CC to be a program name with arguments.
18129 lt_save_CC=$CC
18130 lt_save_LD=$LD
18131 lt_save_GCC=$GCC
18132 GCC=$GXX
18133 lt_save_with_gnu_ld=$with_gnu_ld
18134 lt_save_path_LD=$lt_cv_path_LD
18135 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18136   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18137 else
18138   $as_unset lt_cv_prog_gnu_ld
18139 fi
18140 if test -n "${lt_cv_path_LDCXX+set}"; then
18141   lt_cv_path_LD=$lt_cv_path_LDCXX
18142 else
18143   $as_unset lt_cv_path_LD
18144 fi
18145 test -z "${LDCXX+set}" || LD=$LDCXX
18146 CC=${CXX-"c++"}
18147 compiler=$CC
18148 compiler_CXX=$CC
18149 for cc_temp in $compiler""; do
18150   case $cc_temp in
18151     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18152     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18153     \-*) ;;
18154     *) break;;
18155   esac
18156 done
18157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18158
18159
18160 # We don't want -fno-exception wen compiling C++ code, so set the
18161 # no_builtin_flag separately
18162 if test "$GXX" = yes; then
18163   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18164 else
18165   lt_prog_compiler_no_builtin_flag_CXX=
18166 fi
18167
18168 if test "$GXX" = yes; then
18169   # Set up default GNU C++ configuration
18170
18171
18172 # Check whether --with-gnu-ld was given.
18173 if test "${with_gnu_ld+set}" = set; then
18174   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18175 else
18176   with_gnu_ld=no
18177 fi
18178
18179 ac_prog=ld
18180 if test "$GCC" = yes; then
18181   # Check if gcc -print-prog-name=ld gives a path.
18182   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18183 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18184   case $host in
18185   *-*-mingw*)
18186     # gcc leaves a trailing carriage return which upsets mingw
18187     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18188   *)
18189     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18190   esac
18191   case $ac_prog in
18192     # Accept absolute paths.
18193     [\\/]* | ?:[\\/]*)
18194       re_direlt='/[^/][^/]*/\.\./'
18195       # Canonicalize the pathname of ld
18196       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18197       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18198         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18199       done
18200       test -z "$LD" && LD="$ac_prog"
18201       ;;
18202   "")
18203     # If it fails, then pretend we aren't using GCC.
18204     ac_prog=ld
18205     ;;
18206   *)
18207     # If it is relative, then search for the first ld in PATH.
18208     with_gnu_ld=unknown
18209     ;;
18210   esac
18211 elif test "$with_gnu_ld" = yes; then
18212   { echo "$as_me:$LINENO: checking for GNU ld" >&5
18213 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18214 else
18215   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18216 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18217 fi
18218 if test "${lt_cv_path_LD+set}" = set; then
18219   echo $ECHO_N "(cached) $ECHO_C" >&6
18220 else
18221   if test -z "$LD"; then
18222   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18223   for ac_dir in $PATH; do
18224     IFS="$lt_save_ifs"
18225     test -z "$ac_dir" && ac_dir=.
18226     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18227       lt_cv_path_LD="$ac_dir/$ac_prog"
18228       # Check to see if the program is GNU ld.  I'd rather use --version,
18229       # but apparently some variants of GNU ld only accept -v.
18230       # Break only if it was the GNU/non-GNU ld that we prefer.
18231       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18232       *GNU* | *'with BFD'*)
18233         test "$with_gnu_ld" != no && break
18234         ;;
18235       *)
18236         test "$with_gnu_ld" != yes && break
18237         ;;
18238       esac
18239     fi
18240   done
18241   IFS="$lt_save_ifs"
18242 else
18243   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18244 fi
18245 fi
18246
18247 LD="$lt_cv_path_LD"
18248 if test -n "$LD"; then
18249   { echo "$as_me:$LINENO: result: $LD" >&5
18250 echo "${ECHO_T}$LD" >&6; }
18251 else
18252   { echo "$as_me:$LINENO: result: no" >&5
18253 echo "${ECHO_T}no" >&6; }
18254 fi
18255 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18256 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18257    { (exit 1); exit 1; }; }
18258 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18259 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18260 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18264 case `$LD -v 2>&1 </dev/null` in
18265 *GNU* | *'with BFD'*)
18266   lt_cv_prog_gnu_ld=yes
18267   ;;
18268 *)
18269   lt_cv_prog_gnu_ld=no
18270   ;;
18271 esac
18272 fi
18273 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18274 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18275 with_gnu_ld=$lt_cv_prog_gnu_ld
18276
18277
18278
18279   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18280   # archiving commands below assume that GNU ld is being used.
18281   if test "$with_gnu_ld" = yes; then
18282     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18283     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'
18284
18285     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18286     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18287
18288     # If archive_cmds runs LD, not CC, wlarc should be empty
18289     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18290     #     investigate it a little bit more. (MM)
18291     wlarc='${wl}'
18292
18293     # ancient GNU ld didn't support --whole-archive et. al.
18294     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18295         grep 'no-whole-archive' > /dev/null; then
18296       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18297     else
18298       whole_archive_flag_spec_CXX=
18299     fi
18300   else
18301     with_gnu_ld=no
18302     wlarc=
18303
18304     # A generic and very simple default shared library creation
18305     # command for GNU C++ for the case where it uses the native
18306     # linker, instead of GNU ld.  If possible, this setting should
18307     # overridden to take advantage of the native linker features on
18308     # the platform it is being used on.
18309     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18310   fi
18311
18312   # Commands to make compiler produce verbose output that lists
18313   # what "hidden" libraries, object files and flags are used when
18314   # linking a shared library.
18315   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18316
18317 else
18318   GXX=no
18319   with_gnu_ld=no
18320   wlarc=
18321 fi
18322
18323 # PORTME: fill in a description of your system's C++ link characteristics
18324 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18325 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18326 ld_shlibs_CXX=yes
18327 case $host_os in
18328   aix3*)
18329     # FIXME: insert proper C++ library support
18330     ld_shlibs_CXX=no
18331     ;;
18332   aix4* | aix5*)
18333     if test "$host_cpu" = ia64; then
18334       # On IA64, the linker does run time linking by default, so we don't
18335       # have to do anything special.
18336       aix_use_runtimelinking=no
18337       exp_sym_flag='-Bexport'
18338       no_entry_flag=""
18339     else
18340       aix_use_runtimelinking=no
18341
18342       # Test if we are trying to use run time linking or normal
18343       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18344       # need to do runtime linking.
18345       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18346         for ld_flag in $LDFLAGS; do
18347           case $ld_flag in
18348           *-brtl*)
18349             aix_use_runtimelinking=yes
18350             break
18351             ;;
18352           esac
18353         done
18354         ;;
18355       esac
18356
18357       exp_sym_flag='-bexport'
18358       no_entry_flag='-bnoentry'
18359     fi
18360
18361     # When large executables or shared objects are built, AIX ld can
18362     # have problems creating the table of contents.  If linking a library
18363     # or program results in "error TOC overflow" add -mminimal-toc to
18364     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18365     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18366
18367     archive_cmds_CXX=''
18368     hardcode_direct_CXX=yes
18369     hardcode_libdir_separator_CXX=':'
18370     link_all_deplibs_CXX=yes
18371
18372     if test "$GXX" = yes; then
18373       case $host_os in aix4.[012]|aix4.[012].*)
18374       # We only want to do this on AIX 4.2 and lower, the check
18375       # below for broken collect2 doesn't work under 4.3+
18376         collect2name=`${CC} -print-prog-name=collect2`
18377         if test -f "$collect2name" && \
18378            strings "$collect2name" | grep resolve_lib_name >/dev/null
18379         then
18380           # We have reworked collect2
18381           hardcode_direct_CXX=yes
18382         else
18383           # We have old collect2
18384           hardcode_direct_CXX=unsupported
18385           # It fails to find uninstalled libraries when the uninstalled
18386           # path is not listed in the libpath.  Setting hardcode_minus_L
18387           # to unsupported forces relinking
18388           hardcode_minus_L_CXX=yes
18389           hardcode_libdir_flag_spec_CXX='-L$libdir'
18390           hardcode_libdir_separator_CXX=
18391         fi
18392         ;;
18393       esac
18394       shared_flag='-shared'
18395       if test "$aix_use_runtimelinking" = yes; then
18396         shared_flag="$shared_flag "'${wl}-G'
18397       fi
18398     else
18399       # not using gcc
18400       if test "$host_cpu" = ia64; then
18401         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18402         # chokes on -Wl,-G. The following line is correct:
18403         shared_flag='-G'
18404       else
18405         if test "$aix_use_runtimelinking" = yes; then
18406           shared_flag='${wl}-G'
18407         else
18408           shared_flag='${wl}-bM:SRE'
18409         fi
18410       fi
18411     fi
18412
18413     # It seems that -bexpall does not export symbols beginning with
18414     # underscore (_), so it is better to generate a list of symbols to export.
18415     always_export_symbols_CXX=yes
18416     if test "$aix_use_runtimelinking" = yes; then
18417       # Warning - without using the other runtime loading flags (-brtl),
18418       # -berok will link without error, but may produce a broken library.
18419       allow_undefined_flag_CXX='-berok'
18420       # Determine the default libpath from the value encoded in an empty executable.
18421       cat >conftest.$ac_ext <<_ACEOF
18422 /* confdefs.h.  */
18423 _ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h.  */
18427
18428 int
18429 main ()
18430 {
18431
18432   ;
18433   return 0;
18434 }
18435 _ACEOF
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440   *) ac_try_echo=$ac_try;;
18441 esac
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443   (eval "$ac_link") 2>conftest.er1
18444   ac_status=$?
18445   grep -v '^ *+' conftest.er1 >conftest.err
18446   rm -f conftest.er1
18447   cat conftest.err >&5
18448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449   (exit $ac_status); } && {
18450          test -z "$ac_cxx_werror_flag" ||
18451          test ! -s conftest.err
18452        } && test -s conftest$ac_exeext &&
18453        $as_test_x conftest$ac_exeext; then
18454
18455 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18456 }'`
18457 # Check for a 64-bit object if we didn't find anything.
18458 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; }
18459 }'`; fi
18460 else
18461   echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464
18465 fi
18466
18467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18468       conftest$ac_exeext conftest.$ac_ext
18469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18470
18471       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18472
18473       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"
18474      else
18475       if test "$host_cpu" = ia64; then
18476         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18477         allow_undefined_flag_CXX="-z nodefs"
18478         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"
18479       else
18480         # Determine the default libpath from the value encoded in an empty executable.
18481         cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487
18488 int
18489 main ()
18490 {
18491
18492   ;
18493   return 0;
18494 }
18495 _ACEOF
18496 rm -f conftest.$ac_objext conftest$ac_exeext
18497 if { (ac_try="$ac_link"
18498 case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_link") 2>conftest.er1
18504   ac_status=$?
18505   grep -v '^ *+' conftest.er1 >conftest.err
18506   rm -f conftest.er1
18507   cat conftest.err >&5
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } && {
18510          test -z "$ac_cxx_werror_flag" ||
18511          test ! -s conftest.err
18512        } && test -s conftest$ac_exeext &&
18513        $as_test_x conftest$ac_exeext; then
18514
18515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18516 }'`
18517 # Check for a 64-bit object if we didn't find anything.
18518 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; }
18519 }'`; fi
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18528       conftest$ac_exeext conftest.$ac_ext
18529 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18530
18531         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18532         # Warning - without using the other run time loading flags,
18533         # -berok will link without error, but may produce a broken library.
18534         no_undefined_flag_CXX=' ${wl}-bernotok'
18535         allow_undefined_flag_CXX=' ${wl}-berok'
18536         # Exported symbols can be pulled into shared objects from archives
18537         whole_archive_flag_spec_CXX='$convenience'
18538         archive_cmds_need_lc_CXX=yes
18539         # This is similar to how AIX traditionally builds its shared libraries.
18540         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'
18541       fi
18542     fi
18543     ;;
18544
18545   beos*)
18546     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18547       allow_undefined_flag_CXX=unsupported
18548       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18549       # support --undefined.  This deserves some investigation.  FIXME
18550       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18551     else
18552       ld_shlibs_CXX=no
18553     fi
18554     ;;
18555
18556   chorus*)
18557     case $cc_basename in
18558       *)
18559         # FIXME: insert proper C++ library support
18560         ld_shlibs_CXX=no
18561         ;;
18562     esac
18563     ;;
18564
18565   cygwin* | mingw* | pw32*)
18566     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18567     # as there is no search path for DLLs.
18568     hardcode_libdir_flag_spec_CXX='-L$libdir'
18569     allow_undefined_flag_CXX=unsupported
18570     always_export_symbols_CXX=no
18571     enable_shared_with_static_runtimes_CXX=yes
18572
18573     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18574       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'
18575       # If the export-symbols file already is a .def file (1st line
18576       # is EXPORTS), use it as is; otherwise, prepend...
18577       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18578         cp $export_symbols $output_objdir/$soname.def;
18579       else
18580         echo EXPORTS > $output_objdir/$soname.def;
18581         cat $export_symbols >> $output_objdir/$soname.def;
18582       fi~
18583       $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'
18584     else
18585       ld_shlibs_CXX=no
18586     fi
18587   ;;
18588       darwin* | rhapsody*)
18589         case $host_os in
18590         rhapsody* | darwin1.[012])
18591          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18592          ;;
18593        *) # Darwin 1.3 on
18594          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18595            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18596          else
18597            case ${MACOSX_DEPLOYMENT_TARGET} in
18598              10.[012])
18599                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18600                ;;
18601              10.*)
18602                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18603                ;;
18604            esac
18605          fi
18606          ;;
18607         esac
18608       archive_cmds_need_lc_CXX=no
18609       hardcode_direct_CXX=no
18610       hardcode_automatic_CXX=yes
18611       hardcode_shlibpath_var_CXX=unsupported
18612       whole_archive_flag_spec_CXX=''
18613       link_all_deplibs_CXX=yes
18614
18615     if test "$GXX" = yes ; then
18616       lt_int_apple_cc_single_mod=no
18617       output_verbose_link_cmd='echo'
18618       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18619        lt_int_apple_cc_single_mod=yes
18620       fi
18621       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18622        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18623       else
18624           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'
18625         fi
18626         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18627         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18628           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18629             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}'
18630           else
18631             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}'
18632           fi
18633             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}'
18634       else
18635       case $cc_basename in
18636         xlc*)
18637          output_verbose_link_cmd='echo'
18638           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'
18639           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18640           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18641           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}'
18642           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}'
18643           ;;
18644        *)
18645          ld_shlibs_CXX=no
18646           ;;
18647       esac
18648       fi
18649         ;;
18650
18651   dgux*)
18652     case $cc_basename in
18653       ec++*)
18654         # FIXME: insert proper C++ library support
18655         ld_shlibs_CXX=no
18656         ;;
18657       ghcx*)
18658         # Green Hills C++ Compiler
18659         # FIXME: insert proper C++ library support
18660         ld_shlibs_CXX=no
18661         ;;
18662       *)
18663         # FIXME: insert proper C++ library support
18664         ld_shlibs_CXX=no
18665         ;;
18666     esac
18667     ;;
18668   freebsd[12]*)
18669     # C++ shared libraries reported to be fairly broken before switch to ELF
18670     ld_shlibs_CXX=no
18671     ;;
18672   freebsd-elf*)
18673     archive_cmds_need_lc_CXX=no
18674     ;;
18675   freebsd* | kfreebsd*-gnu | dragonfly*)
18676     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18677     # conventions
18678     ld_shlibs_CXX=yes
18679     ;;
18680   gnu*)
18681     ;;
18682   hpux9*)
18683     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18684     hardcode_libdir_separator_CXX=:
18685     export_dynamic_flag_spec_CXX='${wl}-E'
18686     hardcode_direct_CXX=yes
18687     hardcode_minus_L_CXX=yes # Not in the search PATH,
18688                                 # but as the default
18689                                 # location of the library.
18690
18691     case $cc_basename in
18692     CC*)
18693       # FIXME: insert proper C++ library support
18694       ld_shlibs_CXX=no
18695       ;;
18696     aCC*)
18697       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'
18698       # Commands to make compiler produce verbose output that lists
18699       # what "hidden" libraries, object files and flags are used when
18700       # linking a shared library.
18701       #
18702       # There doesn't appear to be a way to prevent this compiler from
18703       # explicitly linking system object files so we need to strip them
18704       # from the output so that they don't get included in the library
18705       # dependencies.
18706       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'
18707       ;;
18708     *)
18709       if test "$GXX" = yes; then
18710         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'
18711       else
18712         # FIXME: insert proper C++ library support
18713         ld_shlibs_CXX=no
18714       fi
18715       ;;
18716     esac
18717     ;;
18718   hpux10*|hpux11*)
18719     if test $with_gnu_ld = no; then
18720       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18721       hardcode_libdir_separator_CXX=:
18722
18723       case $host_cpu in
18724       hppa*64*|ia64*)
18725         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18726         ;;
18727       *)
18728         export_dynamic_flag_spec_CXX='${wl}-E'
18729         ;;
18730       esac
18731     fi
18732     case $host_cpu in
18733     hppa*64*|ia64*)
18734       hardcode_direct_CXX=no
18735       hardcode_shlibpath_var_CXX=no
18736       ;;
18737     *)
18738       hardcode_direct_CXX=yes
18739       hardcode_minus_L_CXX=yes # Not in the search PATH,
18740                                               # but as the default
18741                                               # location of the library.
18742       ;;
18743     esac
18744
18745     case $cc_basename in
18746       CC*)
18747         # FIXME: insert proper C++ library support
18748         ld_shlibs_CXX=no
18749         ;;
18750       aCC*)
18751         case $host_cpu in
18752         hppa*64*)
18753           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18754           ;;
18755         ia64*)
18756           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757           ;;
18758         *)
18759           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760           ;;
18761         esac
18762         # Commands to make compiler produce verbose output that lists
18763         # what "hidden" libraries, object files and flags are used when
18764         # linking a shared library.
18765         #
18766         # There doesn't appear to be a way to prevent this compiler from
18767         # explicitly linking system object files so we need to strip them
18768         # from the output so that they don't get included in the library
18769         # dependencies.
18770         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'
18771         ;;
18772       *)
18773         if test "$GXX" = yes; then
18774           if test $with_gnu_ld = no; then
18775             case $host_cpu in
18776             hppa*64*)
18777               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18778               ;;
18779             ia64*)
18780               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18781               ;;
18782             *)
18783               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'
18784               ;;
18785             esac
18786           fi
18787         else
18788           # FIXME: insert proper C++ library support
18789           ld_shlibs_CXX=no
18790         fi
18791         ;;
18792     esac
18793     ;;
18794   interix3*)
18795     hardcode_direct_CXX=no
18796     hardcode_shlibpath_var_CXX=no
18797     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18798     export_dynamic_flag_spec_CXX='${wl}-E'
18799     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18800     # Instead, shared libraries are loaded at an image base (0x10000000 by
18801     # default) and relocated if they conflict, which is a slow very memory
18802     # consuming and fragmenting process.  To avoid this, we pick a random,
18803     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18804     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18805     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'
18806     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'
18807     ;;
18808   irix5* | irix6*)
18809     case $cc_basename in
18810       CC*)
18811         # SGI C++
18812         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'
18813
18814         # Archives containing C++ object files must be created using
18815         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18816         # necessary to make sure instantiated templates are included
18817         # in the archive.
18818         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18819         ;;
18820       *)
18821         if test "$GXX" = yes; then
18822           if test "$with_gnu_ld" = no; then
18823             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'
18824           else
18825             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'
18826           fi
18827         fi
18828         link_all_deplibs_CXX=yes
18829         ;;
18830     esac
18831     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18832     hardcode_libdir_separator_CXX=:
18833     ;;
18834   linux*)
18835     case $cc_basename in
18836       KCC*)
18837         # Kuck and Associates, Inc. (KAI) C++ Compiler
18838
18839         # KCC will only create a shared library if the output file
18840         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18841         # to its proper name (with version) after linking.
18842         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'
18843         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'
18844         # Commands to make compiler produce verbose output that lists
18845         # what "hidden" libraries, object files and flags are used when
18846         # linking a shared library.
18847         #
18848         # There doesn't appear to be a way to prevent this compiler from
18849         # explicitly linking system object files so we need to strip them
18850         # from the output so that they don't get included in the library
18851         # dependencies.
18852         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'
18853
18854         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18855         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18856
18857         # Archives containing C++ object files must be created using
18858         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18859         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18860         ;;
18861       icpc*)
18862         # Intel C++
18863         with_gnu_ld=yes
18864         # version 8.0 and above of icpc choke on multiply defined symbols
18865         # if we add $predep_objects and $postdep_objects, however 7.1 and
18866         # earlier do not add the objects themselves.
18867         case `$CC -V 2>&1` in
18868         *"Version 7."*)
18869           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18870           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'
18871           ;;
18872         *)  # Version 8.0 or newer
18873           tmp_idyn=
18874           case $host_cpu in
18875             ia64*) tmp_idyn=' -i_dynamic';;
18876           esac
18877           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18878           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'
18879           ;;
18880         esac
18881         archive_cmds_need_lc_CXX=no
18882         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18883         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18884         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18885         ;;
18886       pgCC*)
18887         # Portland Group C++ compiler
18888         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18889         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'
18890
18891         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18892         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18893         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'
18894         ;;
18895       cxx*)
18896         # Compaq C++
18897         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18898         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'
18899
18900         runpath_var=LD_RUN_PATH
18901         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18902         hardcode_libdir_separator_CXX=:
18903
18904         # Commands to make compiler produce verbose output that lists
18905         # what "hidden" libraries, object files and flags are used when
18906         # linking a shared library.
18907         #
18908         # There doesn't appear to be a way to prevent this compiler from
18909         # explicitly linking system object files so we need to strip them
18910         # from the output so that they don't get included in the library
18911         # dependencies.
18912         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'
18913         ;;
18914     esac
18915     ;;
18916   lynxos*)
18917     # FIXME: insert proper C++ library support
18918     ld_shlibs_CXX=no
18919     ;;
18920   m88k*)
18921     # FIXME: insert proper C++ library support
18922     ld_shlibs_CXX=no
18923     ;;
18924   mvs*)
18925     case $cc_basename in
18926       cxx*)
18927         # FIXME: insert proper C++ library support
18928         ld_shlibs_CXX=no
18929         ;;
18930       *)
18931         # FIXME: insert proper C++ library support
18932         ld_shlibs_CXX=no
18933         ;;
18934     esac
18935     ;;
18936   netbsd*)
18937     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18938       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18939       wlarc=
18940       hardcode_libdir_flag_spec_CXX='-R$libdir'
18941       hardcode_direct_CXX=yes
18942       hardcode_shlibpath_var_CXX=no
18943     fi
18944     # Workaround some broken pre-1.5 toolchains
18945     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18946     ;;
18947   openbsd2*)
18948     # C++ shared libraries are fairly broken
18949     ld_shlibs_CXX=no
18950     ;;
18951   openbsd*)
18952     hardcode_direct_CXX=yes
18953     hardcode_shlibpath_var_CXX=no
18954     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18955     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18956     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18957       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18958       export_dynamic_flag_spec_CXX='${wl}-E'
18959       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18960     fi
18961     output_verbose_link_cmd='echo'
18962     ;;
18963   osf3*)
18964     case $cc_basename in
18965       KCC*)
18966         # Kuck and Associates, Inc. (KAI) C++ Compiler
18967
18968         # KCC will only create a shared library if the output file
18969         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18970         # to its proper name (with version) after linking.
18971         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'
18972
18973         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18974         hardcode_libdir_separator_CXX=:
18975
18976         # Archives containing C++ object files must be created using
18977         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18978         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18979
18980         ;;
18981       RCC*)
18982         # Rational C++ 2.4.1
18983         # FIXME: insert proper C++ library support
18984         ld_shlibs_CXX=no
18985         ;;
18986       cxx*)
18987         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18988         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'
18989
18990         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18991         hardcode_libdir_separator_CXX=:
18992
18993         # Commands to make compiler produce verbose output that lists
18994         # what "hidden" libraries, object files and flags are used when
18995         # linking a shared library.
18996         #
18997         # There doesn't appear to be a way to prevent this compiler from
18998         # explicitly linking system object files so we need to strip them
18999         # from the output so that they don't get included in the library
19000         # dependencies.
19001         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'
19002         ;;
19003       *)
19004         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19005           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19006           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'
19007
19008           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19009           hardcode_libdir_separator_CXX=:
19010
19011           # Commands to make compiler produce verbose output that lists
19012           # what "hidden" libraries, object files and flags are used when
19013           # linking a shared library.
19014           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19015
19016         else
19017           # FIXME: insert proper C++ library support
19018           ld_shlibs_CXX=no
19019         fi
19020         ;;
19021     esac
19022     ;;
19023   osf4* | osf5*)
19024     case $cc_basename in
19025       KCC*)
19026         # Kuck and Associates, Inc. (KAI) C++ Compiler
19027
19028         # KCC will only create a shared library if the output file
19029         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19030         # to its proper name (with version) after linking.
19031         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'
19032
19033         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19034         hardcode_libdir_separator_CXX=:
19035
19036         # Archives containing C++ object files must be created using
19037         # the KAI C++ compiler.
19038         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19039         ;;
19040       RCC*)
19041         # Rational C++ 2.4.1
19042         # FIXME: insert proper C++ library support
19043         ld_shlibs_CXX=no
19044         ;;
19045       cxx*)
19046         allow_undefined_flag_CXX=' -expect_unresolved \*'
19047         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'
19048         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19049           echo "-hidden">> $lib.exp~
19050           $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~
19051           $rm $lib.exp'
19052
19053         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19054         hardcode_libdir_separator_CXX=:
19055
19056         # Commands to make compiler produce verbose output that lists
19057         # what "hidden" libraries, object files and flags are used when
19058         # linking a shared library.
19059         #
19060         # There doesn't appear to be a way to prevent this compiler from
19061         # explicitly linking system object files so we need to strip them
19062         # from the output so that they don't get included in the library
19063         # dependencies.
19064         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'
19065         ;;
19066       *)
19067         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19068           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19069          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'
19070
19071           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19072           hardcode_libdir_separator_CXX=:
19073
19074           # Commands to make compiler produce verbose output that lists
19075           # what "hidden" libraries, object files and flags are used when
19076           # linking a shared library.
19077           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19078
19079         else
19080           # FIXME: insert proper C++ library support
19081           ld_shlibs_CXX=no
19082         fi
19083         ;;
19084     esac
19085     ;;
19086   psos*)
19087     # FIXME: insert proper C++ library support
19088     ld_shlibs_CXX=no
19089     ;;
19090   sunos4*)
19091     case $cc_basename in
19092       CC*)
19093         # Sun C++ 4.x
19094         # FIXME: insert proper C++ library support
19095         ld_shlibs_CXX=no
19096         ;;
19097       lcc*)
19098         # Lucid
19099         # FIXME: insert proper C++ library support
19100         ld_shlibs_CXX=no
19101         ;;
19102       *)
19103         # FIXME: insert proper C++ library support
19104         ld_shlibs_CXX=no
19105         ;;
19106     esac
19107     ;;
19108   solaris*)
19109     case $cc_basename in
19110       CC*)
19111         # Sun C++ 4.2, 5.x and Centerline C++
19112         archive_cmds_need_lc_CXX=yes
19113         no_undefined_flag_CXX=' -zdefs'
19114         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19115         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19116         $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'
19117
19118         hardcode_libdir_flag_spec_CXX='-R$libdir'
19119         hardcode_shlibpath_var_CXX=no
19120         case $host_os in
19121           solaris2.[0-5] | solaris2.[0-5].*) ;;
19122           *)
19123             # The C++ compiler is used as linker so we must use $wl
19124             # flag to pass the commands to the underlying system
19125             # linker. We must also pass each convience library through
19126             # to the system linker between allextract/defaultextract.
19127             # The C++ compiler will combine linker options so we
19128             # cannot just pass the convience library names through
19129             # without $wl.
19130             # Supported since Solaris 2.6 (maybe 2.5.1?)
19131             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'
19132             ;;
19133         esac
19134         link_all_deplibs_CXX=yes
19135
19136         output_verbose_link_cmd='echo'
19137
19138         # Archives containing C++ object files must be created using
19139         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19140         # necessary to make sure instantiated templates are included
19141         # in the archive.
19142         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19143         ;;
19144       gcx*)
19145         # Green Hills C++ Compiler
19146         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19147
19148         # The C++ compiler must be used to create the archive.
19149         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19150         ;;
19151       *)
19152         # GNU C++ compiler with Solaris linker
19153         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19154           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19155           if $CC --version | grep -v '^2\.7' > /dev/null; then
19156             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19157             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19158                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19159
19160             # Commands to make compiler produce verbose output that lists
19161             # what "hidden" libraries, object files and flags are used when
19162             # linking a shared library.
19163             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19164           else
19165             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19166             # platform.
19167             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19168             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19169                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19170
19171             # Commands to make compiler produce verbose output that lists
19172             # what "hidden" libraries, object files and flags are used when
19173             # linking a shared library.
19174             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19175           fi
19176
19177           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19178         fi
19179         ;;
19180     esac
19181     ;;
19182   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19183     no_undefined_flag_CXX='${wl}-z,text'
19184     archive_cmds_need_lc_CXX=no
19185     hardcode_shlibpath_var_CXX=no
19186     runpath_var='LD_RUN_PATH'
19187
19188     case $cc_basename in
19189       CC*)
19190         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19191         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19192         ;;
19193       *)
19194         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19196         ;;
19197     esac
19198     ;;
19199   sysv5* | sco3.2v5* | sco5v6*)
19200     # Note: We can NOT use -z defs as we might desire, because we do not
19201     # link with -lc, and that would cause any symbols used from libc to
19202     # always be unresolved, which means just about no library would
19203     # ever link correctly.  If we're not using GNU ld we use -z text
19204     # though, which does catch some bad symbols but isn't as heavy-handed
19205     # as -z defs.
19206     # For security reasons, it is highly recommended that you always
19207     # use absolute paths for naming shared libraries, and exclude the
19208     # DT_RUNPATH tag from executables and libraries.  But doing so
19209     # requires that you compile everything twice, which is a pain.
19210     # So that behaviour is only enabled if SCOABSPATH is set to a
19211     # non-empty value in the environment.  Most likely only useful for
19212     # creating official distributions of packages.
19213     # This is a hack until libtool officially supports absolute path
19214     # names for shared libraries.
19215     no_undefined_flag_CXX='${wl}-z,text'
19216     allow_undefined_flag_CXX='${wl}-z,nodefs'
19217     archive_cmds_need_lc_CXX=no
19218     hardcode_shlibpath_var_CXX=no
19219     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19220     hardcode_libdir_separator_CXX=':'
19221     link_all_deplibs_CXX=yes
19222     export_dynamic_flag_spec_CXX='${wl}-Bexport'
19223     runpath_var='LD_RUN_PATH'
19224
19225     case $cc_basename in
19226       CC*)
19227         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19228         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19229         ;;
19230       *)
19231         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19233         ;;
19234     esac
19235     ;;
19236   tandem*)
19237     case $cc_basename in
19238       NCC*)
19239         # NonStop-UX NCC 3.20
19240         # FIXME: insert proper C++ library support
19241         ld_shlibs_CXX=no
19242         ;;
19243       *)
19244         # FIXME: insert proper C++ library support
19245         ld_shlibs_CXX=no
19246         ;;
19247     esac
19248     ;;
19249   vxworks*)
19250     # FIXME: insert proper C++ library support
19251     ld_shlibs_CXX=no
19252     ;;
19253   *)
19254     # FIXME: insert proper C++ library support
19255     ld_shlibs_CXX=no
19256     ;;
19257 esac
19258 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19259 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19260 test "$ld_shlibs_CXX" = no && can_build_shared=no
19261
19262 GCC_CXX="$GXX"
19263 LD_CXX="$LD"
19264
19265
19266 cat > conftest.$ac_ext <<EOF
19267 class Foo
19268 {
19269 public:
19270   Foo (void) { a = 0; }
19271 private:
19272   int a;
19273 };
19274 EOF
19275
19276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19277   (eval $ac_compile) 2>&5
19278   ac_status=$?
19279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280   (exit $ac_status); }; then
19281   # Parse the compiler output and extract the necessary
19282   # objects, libraries and library flags.
19283
19284   # Sentinel used to keep track of whether or not we are before
19285   # the conftest object file.
19286   pre_test_object_deps_done=no
19287
19288   # The `*' in the case matches for architectures that use `case' in
19289   # $output_verbose_cmd can trigger glob expansion during the loop
19290   # eval without this substitution.
19291   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19292
19293   for p in `eval $output_verbose_link_cmd`; do
19294     case $p in
19295
19296     -L* | -R* | -l*)
19297        # Some compilers place space between "-{L,R}" and the path.
19298        # Remove the space.
19299        if test $p = "-L" \
19300           || test $p = "-R"; then
19301          prev=$p
19302          continue
19303        else
19304          prev=
19305        fi
19306
19307        if test "$pre_test_object_deps_done" = no; then
19308          case $p in
19309          -L* | -R*)
19310            # Internal compiler library paths should come after those
19311            # provided the user.  The postdeps already come after the
19312            # user supplied libs so there is no need to process them.
19313            if test -z "$compiler_lib_search_path_CXX"; then
19314              compiler_lib_search_path_CXX="${prev}${p}"
19315            else
19316              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19317            fi
19318            ;;
19319          # The "-l" case would never come before the object being
19320          # linked, so don't bother handling this case.
19321          esac
19322        else
19323          if test -z "$postdeps_CXX"; then
19324            postdeps_CXX="${prev}${p}"
19325          else
19326            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19327          fi
19328        fi
19329        ;;
19330
19331     *.$objext)
19332        # This assumes that the test object file only shows up
19333        # once in the compiler output.
19334        if test "$p" = "conftest.$objext"; then
19335          pre_test_object_deps_done=yes
19336          continue
19337        fi
19338
19339        if test "$pre_test_object_deps_done" = no; then
19340          if test -z "$predep_objects_CXX"; then
19341            predep_objects_CXX="$p"
19342          else
19343            predep_objects_CXX="$predep_objects_CXX $p"
19344          fi
19345        else
19346          if test -z "$postdep_objects_CXX"; then
19347            postdep_objects_CXX="$p"
19348          else
19349            postdep_objects_CXX="$postdep_objects_CXX $p"
19350          fi
19351        fi
19352        ;;
19353
19354     *) ;; # Ignore the rest.
19355
19356     esac
19357   done
19358
19359   # Clean up.
19360   rm -f a.out a.exe
19361 else
19362   echo "libtool.m4: error: problem compiling CXX test program"
19363 fi
19364
19365 $rm -f confest.$objext
19366
19367 # PORTME: override above test on systems where it is broken
19368 case $host_os in
19369 interix3*)
19370   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19371   # hack all around it, let's just trust "g++" to DTRT.
19372   predep_objects_CXX=
19373   postdep_objects_CXX=
19374   postdeps_CXX=
19375   ;;
19376
19377 solaris*)
19378   case $cc_basename in
19379   CC*)
19380     # Adding this requires a known-good setup of shared libraries for
19381     # Sun compiler versions before 5.6, else PIC objects from an old
19382     # archive will be linked into the output, leading to subtle bugs.
19383     postdeps_CXX='-lCstd -lCrun'
19384     ;;
19385   esac
19386   ;;
19387 esac
19388
19389
19390 case " $postdeps_CXX " in
19391 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19392 esac
19393
19394 lt_prog_compiler_wl_CXX=
19395 lt_prog_compiler_pic_CXX=
19396 lt_prog_compiler_static_CXX=
19397
19398 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19399 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19400
19401   # C++ specific cases for pic, static, wl, etc.
19402   if test "$GXX" = yes; then
19403     lt_prog_compiler_wl_CXX='-Wl,'
19404     lt_prog_compiler_static_CXX='-static'
19405
19406     case $host_os in
19407     aix*)
19408       # All AIX code is PIC.
19409       if test "$host_cpu" = ia64; then
19410         # AIX 5 now supports IA64 processor
19411         lt_prog_compiler_static_CXX='-Bstatic'
19412       fi
19413       ;;
19414     amigaos*)
19415       # FIXME: we need at least 68020 code to build shared libraries, but
19416       # adding the `-m68020' flag to GCC prevents building anything better,
19417       # like `-m68040'.
19418       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19419       ;;
19420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19421       # PIC is the default for these OSes.
19422       ;;
19423     mingw* | os2* | pw32*)
19424       # This hack is so that the source file can tell whether it is being
19425       # built for inclusion in a dll (and should export symbols for example).
19426       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19427       ;;
19428     darwin* | rhapsody*)
19429       # PIC is the default on this platform
19430       # Common symbols not allowed in MH_DYLIB files
19431       lt_prog_compiler_pic_CXX='-fno-common'
19432       ;;
19433     *djgpp*)
19434       # DJGPP does not support shared libraries at all
19435       lt_prog_compiler_pic_CXX=
19436       ;;
19437     interix3*)
19438       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19439       # Instead, we relocate shared libraries at runtime.
19440       ;;
19441     sysv4*MP*)
19442       if test -d /usr/nec; then
19443         lt_prog_compiler_pic_CXX=-Kconform_pic
19444       fi
19445       ;;
19446     hpux*)
19447       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19448       # not for PA HP-UX.
19449       case $host_cpu in
19450       hppa*64*|ia64*)
19451         ;;
19452       *)
19453         lt_prog_compiler_pic_CXX='-fPIC'
19454         ;;
19455       esac
19456       ;;
19457     *)
19458       lt_prog_compiler_pic_CXX='-fPIC'
19459       ;;
19460     esac
19461   else
19462     case $host_os in
19463       aix4* | aix5*)
19464         # All AIX code is PIC.
19465         if test "$host_cpu" = ia64; then
19466           # AIX 5 now supports IA64 processor
19467           lt_prog_compiler_static_CXX='-Bstatic'
19468         else
19469           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19470         fi
19471         ;;
19472       chorus*)
19473         case $cc_basename in
19474         cxch68*)
19475           # Green Hills C++ Compiler
19476           # _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"
19477           ;;
19478         esac
19479         ;;
19480        darwin*)
19481          # PIC is the default on this platform
19482          # Common symbols not allowed in MH_DYLIB files
19483          case $cc_basename in
19484            xlc*)
19485            lt_prog_compiler_pic_CXX='-qnocommon'
19486            lt_prog_compiler_wl_CXX='-Wl,'
19487            ;;
19488          esac
19489        ;;
19490       dgux*)
19491         case $cc_basename in
19492           ec++*)
19493             lt_prog_compiler_pic_CXX='-KPIC'
19494             ;;
19495           ghcx*)
19496             # Green Hills C++ Compiler
19497             lt_prog_compiler_pic_CXX='-pic'
19498             ;;
19499           *)
19500             ;;
19501         esac
19502         ;;
19503       freebsd* | kfreebsd*-gnu | dragonfly*)
19504         # FreeBSD uses GNU C++
19505         ;;
19506       hpux9* | hpux10* | hpux11*)
19507         case $cc_basename in
19508           CC*)
19509             lt_prog_compiler_wl_CXX='-Wl,'
19510             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19511             if test "$host_cpu" != ia64; then
19512               lt_prog_compiler_pic_CXX='+Z'
19513             fi
19514             ;;
19515           aCC*)
19516             lt_prog_compiler_wl_CXX='-Wl,'
19517             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19518             case $host_cpu in
19519             hppa*64*|ia64*)
19520               # +Z the default
19521               ;;
19522             *)
19523               lt_prog_compiler_pic_CXX='+Z'
19524               ;;
19525             esac
19526             ;;
19527           *)
19528             ;;
19529         esac
19530         ;;
19531       interix*)
19532         # This is c89, which is MS Visual C++ (no shared libs)
19533         # Anyone wants to do a port?
19534         ;;
19535       irix5* | irix6* | nonstopux*)
19536         case $cc_basename in
19537           CC*)
19538             lt_prog_compiler_wl_CXX='-Wl,'
19539             lt_prog_compiler_static_CXX='-non_shared'
19540             # CC pic flag -KPIC is the default.
19541             ;;
19542           *)
19543             ;;
19544         esac
19545         ;;
19546       linux*)
19547         case $cc_basename in
19548           KCC*)
19549             # KAI C++ Compiler
19550             lt_prog_compiler_wl_CXX='--backend -Wl,'
19551             lt_prog_compiler_pic_CXX='-fPIC'
19552             ;;
19553           icpc* | ecpc*)
19554             # Intel C++
19555             lt_prog_compiler_wl_CXX='-Wl,'
19556             lt_prog_compiler_pic_CXX='-KPIC'
19557             lt_prog_compiler_static_CXX='-static'
19558             ;;
19559           pgCC*)
19560             # Portland Group C++ compiler.
19561             lt_prog_compiler_wl_CXX='-Wl,'
19562             lt_prog_compiler_pic_CXX='-fpic'
19563             lt_prog_compiler_static_CXX='-Bstatic'
19564             ;;
19565           cxx*)
19566             # Compaq C++
19567             # Make sure the PIC flag is empty.  It appears that all Alpha
19568             # Linux and Compaq Tru64 Unix objects are PIC.
19569             lt_prog_compiler_pic_CXX=
19570             lt_prog_compiler_static_CXX='-non_shared'
19571             ;;
19572           *)
19573             ;;
19574         esac
19575         ;;
19576       lynxos*)
19577         ;;
19578       m88k*)
19579         ;;
19580       mvs*)
19581         case $cc_basename in
19582           cxx*)
19583             lt_prog_compiler_pic_CXX='-W c,exportall'
19584             ;;
19585           *)
19586             ;;
19587         esac
19588         ;;
19589       netbsd*)
19590         ;;
19591       osf3* | osf4* | osf5*)
19592         case $cc_basename in
19593           KCC*)
19594             lt_prog_compiler_wl_CXX='--backend -Wl,'
19595             ;;
19596           RCC*)
19597             # Rational C++ 2.4.1
19598             lt_prog_compiler_pic_CXX='-pic'
19599             ;;
19600           cxx*)
19601             # Digital/Compaq C++
19602             lt_prog_compiler_wl_CXX='-Wl,'
19603             # Make sure the PIC flag is empty.  It appears that all Alpha
19604             # Linux and Compaq Tru64 Unix objects are PIC.
19605             lt_prog_compiler_pic_CXX=
19606             lt_prog_compiler_static_CXX='-non_shared'
19607             ;;
19608           *)
19609             ;;
19610         esac
19611         ;;
19612       psos*)
19613         ;;
19614       solaris*)
19615         case $cc_basename in
19616           CC*)
19617             # Sun C++ 4.2, 5.x and Centerline C++
19618             lt_prog_compiler_pic_CXX='-KPIC'
19619             lt_prog_compiler_static_CXX='-Bstatic'
19620             lt_prog_compiler_wl_CXX='-Qoption ld '
19621             ;;
19622           gcx*)
19623             # Green Hills C++ Compiler
19624             lt_prog_compiler_pic_CXX='-PIC'
19625             ;;
19626           *)
19627             ;;
19628         esac
19629         ;;
19630       sunos4*)
19631         case $cc_basename in
19632           CC*)
19633             # Sun C++ 4.x
19634             lt_prog_compiler_pic_CXX='-pic'
19635             lt_prog_compiler_static_CXX='-Bstatic'
19636             ;;
19637           lcc*)
19638             # Lucid
19639             lt_prog_compiler_pic_CXX='-pic'
19640             ;;
19641           *)
19642             ;;
19643         esac
19644         ;;
19645       tandem*)
19646         case $cc_basename in
19647           NCC*)
19648             # NonStop-UX NCC 3.20
19649             lt_prog_compiler_pic_CXX='-KPIC'
19650             ;;
19651           *)
19652             ;;
19653         esac
19654         ;;
19655       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19656         case $cc_basename in
19657           CC*)
19658             lt_prog_compiler_wl_CXX='-Wl,'
19659             lt_prog_compiler_pic_CXX='-KPIC'
19660             lt_prog_compiler_static_CXX='-Bstatic'
19661             ;;
19662         esac
19663         ;;
19664       vxworks*)
19665         ;;
19666       *)
19667         lt_prog_compiler_can_build_shared_CXX=no
19668         ;;
19669     esac
19670   fi
19671
19672 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19673 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19674
19675 #
19676 # Check to make sure the PIC flag actually works.
19677 #
19678 if test -n "$lt_prog_compiler_pic_CXX"; then
19679
19680 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19681 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19682 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19683   echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685   lt_prog_compiler_pic_works_CXX=no
19686   ac_outfile=conftest.$ac_objext
19687    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19688    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19689    # Insert the option either (1) after the last *FLAGS variable, or
19690    # (2) before a word containing "conftest.", or (3) at the end.
19691    # Note that $ac_compile itself does not contain backslashes and begins
19692    # with a dollar sign (not a hyphen), so the echo should work correctly.
19693    # The option is referenced via a variable to avoid confusing sed.
19694    lt_compile=`echo "$ac_compile" | $SED \
19695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19697    -e 's:$: $lt_compiler_flag:'`
19698    (eval echo "\"\$as_me:19698: $lt_compile\"" >&5)
19699    (eval "$lt_compile" 2>conftest.err)
19700    ac_status=$?
19701    cat conftest.err >&5
19702    echo "$as_me:19702: \$? = $ac_status" >&5
19703    if (exit $ac_status) && test -s "$ac_outfile"; then
19704      # The compiler can only warn and ignore the option if not recognized
19705      # So say no if there are warnings other than the usual output.
19706      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19707      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19708      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19709        lt_prog_compiler_pic_works_CXX=yes
19710      fi
19711    fi
19712    $rm conftest*
19713
19714 fi
19715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19716 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19717
19718 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19719     case $lt_prog_compiler_pic_CXX in
19720      "" | " "*) ;;
19721      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19722      esac
19723 else
19724     lt_prog_compiler_pic_CXX=
19725      lt_prog_compiler_can_build_shared_CXX=no
19726 fi
19727
19728 fi
19729 case $host_os in
19730   # For platforms which do not support PIC, -DPIC is meaningless:
19731   *djgpp*)
19732     lt_prog_compiler_pic_CXX=
19733     ;;
19734   *)
19735     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19736     ;;
19737 esac
19738
19739 #
19740 # Check to make sure the static flag actually works.
19741 #
19742 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19743 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19744 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19745 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   lt_prog_compiler_static_works_CXX=no
19749    save_LDFLAGS="$LDFLAGS"
19750    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19751    printf "$lt_simple_link_test_code" > conftest.$ac_ext
19752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19753      # The linker can only warn and ignore the option if not recognized
19754      # So say no if there are warnings
19755      if test -s conftest.err; then
19756        # Append any errors to the config.log.
19757        cat conftest.err 1>&5
19758        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19760        if diff conftest.exp conftest.er2 >/dev/null; then
19761          lt_prog_compiler_static_works_CXX=yes
19762        fi
19763      else
19764        lt_prog_compiler_static_works_CXX=yes
19765      fi
19766    fi
19767    $rm conftest*
19768    LDFLAGS="$save_LDFLAGS"
19769
19770 fi
19771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19772 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19773
19774 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19775     :
19776 else
19777     lt_prog_compiler_static_CXX=
19778 fi
19779
19780
19781 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19782 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19783 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   lt_cv_prog_compiler_c_o_CXX=no
19787    $rm -r conftest 2>/dev/null
19788    mkdir conftest
19789    cd conftest
19790    mkdir out
19791    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19792
19793    lt_compiler_flag="-o out/conftest2.$ac_objext"
19794    # Insert the option either (1) after the last *FLAGS variable, or
19795    # (2) before a word containing "conftest.", or (3) at the end.
19796    # Note that $ac_compile itself does not contain backslashes and begins
19797    # with a dollar sign (not a hyphen), so the echo should work correctly.
19798    lt_compile=`echo "$ac_compile" | $SED \
19799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19801    -e 's:$: $lt_compiler_flag:'`
19802    (eval echo "\"\$as_me:19802: $lt_compile\"" >&5)
19803    (eval "$lt_compile" 2>out/conftest.err)
19804    ac_status=$?
19805    cat out/conftest.err >&5
19806    echo "$as_me:19806: \$? = $ac_status" >&5
19807    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19808    then
19809      # The compiler can only warn and ignore the option if not recognized
19810      # So say no if there are warnings
19811      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19812      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19813      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19814        lt_cv_prog_compiler_c_o_CXX=yes
19815      fi
19816    fi
19817    chmod u+w . 2>&5
19818    $rm conftest*
19819    # SGI C++ compiler will create directory out/ii_files/ for
19820    # template instantiation
19821    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19822    $rm out/* && rmdir out
19823    cd ..
19824    rmdir conftest
19825    $rm conftest*
19826
19827 fi
19828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19829 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19830
19831
19832 hard_links="nottested"
19833 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19834   # do not overwrite the value of need_locks provided by the user
19835   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19836 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19837   hard_links=yes
19838   $rm conftest*
19839   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19840   touch conftest.a
19841   ln conftest.a conftest.b 2>&5 || hard_links=no
19842   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19843   { echo "$as_me:$LINENO: result: $hard_links" >&5
19844 echo "${ECHO_T}$hard_links" >&6; }
19845   if test "$hard_links" = no; then
19846     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19847 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19848     need_locks=warn
19849   fi
19850 else
19851   need_locks=no
19852 fi
19853
19854 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19855 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19856
19857   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19858   case $host_os in
19859   aix4* | aix5*)
19860     # If we're using GNU nm, then we don't want the "-C" option.
19861     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19862     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19863       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'
19864     else
19865       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'
19866     fi
19867     ;;
19868   pw32*)
19869     export_symbols_cmds_CXX="$ltdll_cmds"
19870   ;;
19871   cygwin* | mingw*)
19872     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'
19873   ;;
19874   *)
19875     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19876   ;;
19877   esac
19878
19879 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19880 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19881 test "$ld_shlibs_CXX" = no && can_build_shared=no
19882
19883 #
19884 # Do we need to explicitly link libc?
19885 #
19886 case "x$archive_cmds_need_lc_CXX" in
19887 x|xyes)
19888   # Assume -lc should be added
19889   archive_cmds_need_lc_CXX=yes
19890
19891   if test "$enable_shared" = yes && test "$GCC" = yes; then
19892     case $archive_cmds_CXX in
19893     *'~'*)
19894       # FIXME: we may have to deal with multi-command sequences.
19895       ;;
19896     '$CC '*)
19897       # Test whether the compiler implicitly links with -lc since on some
19898       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19899       # to ld, don't add -lc before -lgcc.
19900       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19901 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19902       $rm conftest*
19903       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19904
19905       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906   (eval $ac_compile) 2>&5
19907   ac_status=$?
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } 2>conftest.err; then
19910         soname=conftest
19911         lib=conftest
19912         libobjs=conftest.$ac_objext
19913         deplibs=
19914         wl=$lt_prog_compiler_wl_CXX
19915         pic_flag=$lt_prog_compiler_pic_CXX
19916         compiler_flags=-v
19917         linker_flags=-v
19918         verstring=
19919         output_objdir=.
19920         libname=conftest
19921         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19922         allow_undefined_flag_CXX=
19923         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19924   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19925   ac_status=$?
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); }
19928         then
19929           archive_cmds_need_lc_CXX=no
19930         else
19931           archive_cmds_need_lc_CXX=yes
19932         fi
19933         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19934       else
19935         cat conftest.err 1>&5
19936       fi
19937       $rm conftest*
19938       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19939 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19940       ;;
19941     esac
19942   fi
19943   ;;
19944 esac
19945
19946 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19947 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19948 library_names_spec=
19949 libname_spec='lib$name'
19950 soname_spec=
19951 shrext_cmds=".so"
19952 postinstall_cmds=
19953 postuninstall_cmds=
19954 finish_cmds=
19955 finish_eval=
19956 shlibpath_var=
19957 shlibpath_overrides_runpath=unknown
19958 version_type=none
19959 dynamic_linker="$host_os ld.so"
19960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19961 if test "$GCC" = yes; then
19962   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19963   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19964     # if the path contains ";" then we assume it to be the separator
19965     # otherwise default to the standard path separator (i.e. ":") - it is
19966     # assumed that no part of a normal pathname contains ";" but that should
19967     # okay in the real world where ";" in dirpaths is itself problematic.
19968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19969   else
19970     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19971   fi
19972 else
19973   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19974 fi
19975 need_lib_prefix=unknown
19976 hardcode_into_libs=no
19977
19978 # when you set need_version to no, make sure it does not cause -set_version
19979 # flags to be left without arguments
19980 need_version=unknown
19981
19982 case $host_os in
19983 aix3*)
19984   version_type=linux
19985   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19986   shlibpath_var=LIBPATH
19987
19988   # AIX 3 has no versioning support, so we append a major version to the name.
19989   soname_spec='${libname}${release}${shared_ext}$major'
19990   ;;
19991
19992 aix4* | aix5*)
19993   version_type=linux
19994   need_lib_prefix=no
19995   need_version=no
19996   hardcode_into_libs=yes
19997   if test "$host_cpu" = ia64; then
19998     # AIX 5 supports IA64
19999     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20000     shlibpath_var=LD_LIBRARY_PATH
20001   else
20002     # With GCC up to 2.95.x, collect2 would create an import file
20003     # for dependence libraries.  The import file would start with
20004     # the line `#! .'.  This would cause the generated library to
20005     # depend on `.', always an invalid library.  This was fixed in
20006     # development snapshots of GCC prior to 3.0.
20007     case $host_os in
20008       aix4 | aix4.[01] | aix4.[01].*)
20009       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20010            echo ' yes '
20011            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20012         :
20013       else
20014         can_build_shared=no
20015       fi
20016       ;;
20017     esac
20018     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20019     # soname into executable. Probably we can add versioning support to
20020     # collect2, so additional links can be useful in future.
20021     if test "$aix_use_runtimelinking" = yes; then
20022       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20023       # instead of lib<name>.a to let people know that these are not
20024       # typical AIX shared libraries.
20025       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026     else
20027       # We preserve .a as extension for shared libraries through AIX4.2
20028       # and later when we are not doing run time linking.
20029       library_names_spec='${libname}${release}.a $libname.a'
20030       soname_spec='${libname}${release}${shared_ext}$major'
20031     fi
20032     shlibpath_var=LIBPATH
20033   fi
20034   ;;
20035
20036 amigaos*)
20037   library_names_spec='$libname.ixlibrary $libname.a'
20038   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20039   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'
20040   ;;
20041
20042 beos*)
20043   library_names_spec='${libname}${shared_ext}'
20044   dynamic_linker="$host_os ld.so"
20045   shlibpath_var=LIBRARY_PATH
20046   ;;
20047
20048 bsdi[45]*)
20049   version_type=linux
20050   need_version=no
20051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052   soname_spec='${libname}${release}${shared_ext}$major'
20053   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20054   shlibpath_var=LD_LIBRARY_PATH
20055   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20056   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20057   # the default ld.so.conf also contains /usr/contrib/lib and
20058   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20059   # libtool to hard-code these into programs
20060   ;;
20061
20062 cygwin* | mingw* | pw32*)
20063   version_type=windows
20064   shrext_cmds=".dll"
20065   need_version=no
20066   need_lib_prefix=no
20067
20068   case $GCC,$host_os in
20069   yes,cygwin* | yes,mingw* | yes,pw32*)
20070     library_names_spec='$libname.dll.a'
20071     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20072     postinstall_cmds='base_file=`basename \${file}`~
20073       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20074       dldir=$destdir/`dirname \$dlpath`~
20075       test -d \$dldir || mkdir -p \$dldir~
20076       $install_prog $dir/$dlname \$dldir/$dlname~
20077       chmod a+x \$dldir/$dlname'
20078     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20079       dlpath=$dir/\$dldll~
20080        $rm \$dlpath'
20081     shlibpath_overrides_runpath=yes
20082
20083     case $host_os in
20084     cygwin*)
20085       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20086       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20087       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20088       ;;
20089     mingw*)
20090       # MinGW DLLs use traditional 'lib' prefix
20091       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20092       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20093       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20094         # It is most probably a Windows format PATH printed by
20095         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20096         # path with ; separators, and with drive letters. We can handle the
20097         # drive letters (cygwin fileutils understands them), so leave them,
20098         # especially as we might pass files found there to a mingw objdump,
20099         # which wouldn't understand a cygwinified path. Ahh.
20100         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20101       else
20102         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20103       fi
20104       ;;
20105     pw32*)
20106       # pw32 DLLs use 'pw' prefix rather than 'lib'
20107       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20108       ;;
20109     esac
20110     ;;
20111
20112   *)
20113     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20114     ;;
20115   esac
20116   dynamic_linker='Win32 ld.exe'
20117   # FIXME: first we should search . and the directory the executable is in
20118   shlibpath_var=PATH
20119   ;;
20120
20121 darwin* | rhapsody*)
20122   dynamic_linker="$host_os dyld"
20123   version_type=darwin
20124   need_lib_prefix=no
20125   need_version=no
20126   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20127   soname_spec='${libname}${release}${major}$shared_ext'
20128   shlibpath_overrides_runpath=yes
20129   shlibpath_var=DYLD_LIBRARY_PATH
20130   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20131   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20132   if test "$GCC" = yes; then
20133     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"`
20134   else
20135     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20136   fi
20137   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20138   ;;
20139
20140 dgux*)
20141   version_type=linux
20142   need_lib_prefix=no
20143   need_version=no
20144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20145   soname_spec='${libname}${release}${shared_ext}$major'
20146   shlibpath_var=LD_LIBRARY_PATH
20147   ;;
20148
20149 freebsd1*)
20150   dynamic_linker=no
20151   ;;
20152
20153 kfreebsd*-gnu)
20154   version_type=linux
20155   need_lib_prefix=no
20156   need_version=no
20157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20158   soname_spec='${libname}${release}${shared_ext}$major'
20159   shlibpath_var=LD_LIBRARY_PATH
20160   shlibpath_overrides_runpath=no
20161   hardcode_into_libs=yes
20162   dynamic_linker='GNU ld.so'
20163   ;;
20164
20165 freebsd* | dragonfly*)
20166   # DragonFly does not have aout.  When/if they implement a new
20167   # versioning mechanism, adjust this.
20168   if test -x /usr/bin/objformat; then
20169     objformat=`/usr/bin/objformat`
20170   else
20171     case $host_os in
20172     freebsd[123]*) objformat=aout ;;
20173     *) objformat=elf ;;
20174     esac
20175   fi
20176   version_type=freebsd-$objformat
20177   case $version_type in
20178     freebsd-elf*)
20179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20180       need_version=no
20181       need_lib_prefix=no
20182       ;;
20183     freebsd-*)
20184       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20185       need_version=yes
20186       ;;
20187   esac
20188   shlibpath_var=LD_LIBRARY_PATH
20189   case $host_os in
20190   freebsd2*)
20191     shlibpath_overrides_runpath=yes
20192     ;;
20193   freebsd3.[01]* | freebsdelf3.[01]*)
20194     shlibpath_overrides_runpath=yes
20195     hardcode_into_libs=yes
20196     ;;
20197   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20198   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20199     shlibpath_overrides_runpath=no
20200     hardcode_into_libs=yes
20201     ;;
20202   freebsd*) # from 4.6 on
20203     shlibpath_overrides_runpath=yes
20204     hardcode_into_libs=yes
20205     ;;
20206   esac
20207   ;;
20208
20209 gnu*)
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   hardcode_into_libs=yes
20217   ;;
20218
20219 hpux9* | hpux10* | hpux11*)
20220   # Give a soname corresponding to the major version so that dld.sl refuses to
20221   # link against other versions.
20222   version_type=sunos
20223   need_lib_prefix=no
20224   need_version=no
20225   case $host_cpu in
20226   ia64*)
20227     shrext_cmds='.so'
20228     hardcode_into_libs=yes
20229     dynamic_linker="$host_os dld.so"
20230     shlibpath_var=LD_LIBRARY_PATH
20231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233     soname_spec='${libname}${release}${shared_ext}$major'
20234     if test "X$HPUX_IA64_MODE" = X32; then
20235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20236     else
20237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20238     fi
20239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20240     ;;
20241    hppa*64*)
20242      shrext_cmds='.sl'
20243      hardcode_into_libs=yes
20244      dynamic_linker="$host_os dld.sl"
20245      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20246      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20248      soname_spec='${libname}${release}${shared_ext}$major'
20249      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20250      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20251      ;;
20252    *)
20253     shrext_cmds='.sl'
20254     dynamic_linker="$host_os dld.sl"
20255     shlibpath_var=SHLIB_PATH
20256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258     soname_spec='${libname}${release}${shared_ext}$major'
20259     ;;
20260   esac
20261   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20262   postinstall_cmds='chmod 555 $lib'
20263   ;;
20264
20265 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20272   shlibpath_var=LD_LIBRARY_PATH
20273   shlibpath_overrides_runpath=no
20274   hardcode_into_libs=yes
20275   ;;
20276
20277 irix5* | irix6* | nonstopux*)
20278   case $host_os in
20279     nonstopux*) version_type=nonstopux ;;
20280     *)
20281         if test "$lt_cv_prog_gnu_ld" = yes; then
20282                 version_type=linux
20283         else
20284                 version_type=irix
20285         fi ;;
20286   esac
20287   need_lib_prefix=no
20288   need_version=no
20289   soname_spec='${libname}${release}${shared_ext}$major'
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20291   case $host_os in
20292   irix5* | nonstopux*)
20293     libsuff= shlibsuff=
20294     ;;
20295   *)
20296     case $LD in # libtool.m4 will add one of these switches to LD
20297     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20298       libsuff= shlibsuff= libmagic=32-bit;;
20299     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20300       libsuff=32 shlibsuff=N32 libmagic=N32;;
20301     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20302       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20303     *) libsuff= shlibsuff= libmagic=never-match;;
20304     esac
20305     ;;
20306   esac
20307   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20308   shlibpath_overrides_runpath=no
20309   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20310   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20311   hardcode_into_libs=yes
20312   ;;
20313
20314 # No shared lib support for Linux oldld, aout, or coff.
20315 linux*oldld* | linux*aout* | linux*coff*)
20316   dynamic_linker=no
20317   ;;
20318
20319 # This must be Linux ELF.
20320 linux*)
20321   version_type=linux
20322   need_lib_prefix=no
20323   need_version=no
20324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325   soname_spec='${libname}${release}${shared_ext}$major'
20326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20327   shlibpath_var=LD_LIBRARY_PATH
20328   shlibpath_overrides_runpath=no
20329   # This implies no fast_install, which is unacceptable.
20330   # Some rework will be needed to allow for fast_install
20331   # before this can be enabled.
20332   hardcode_into_libs=yes
20333
20334   # find out which ABI we are using
20335   libsuff=
20336   case "$host_cpu" in
20337   x86_64*|s390x*|powerpc64*)
20338     echo '#line 20338 "configure"' > conftest.$ac_ext
20339     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20340   (eval $ac_compile) 2>&5
20341   ac_status=$?
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); }; then
20344       case `/usr/bin/file conftest.$ac_objext` in
20345       *64-bit*)
20346         libsuff=64
20347         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20348         ;;
20349       esac
20350     fi
20351     rm -rf conftest*
20352     ;;
20353   esac
20354
20355   # Append ld.so.conf contents to the search path
20356   if test -f /etc/ld.so.conf; then
20357     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' ' '`
20358     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
20359   fi
20360
20361   # We used to test for /lib/ld.so.1 and disable shared libraries on
20362   # powerpc, because MkLinux only supported shared libraries with the
20363   # GNU dynamic linker.  Since this was broken with cross compilers,
20364   # most powerpc-linux boxes support dynamic linking these days and
20365   # people can always --disable-shared, the test was removed, and we
20366   # assume the GNU/Linux dynamic linker is in use.
20367   dynamic_linker='GNU/Linux ld.so'
20368   ;;
20369
20370 knetbsd*-gnu)
20371   version_type=linux
20372   need_lib_prefix=no
20373   need_version=no
20374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20375   soname_spec='${libname}${release}${shared_ext}$major'
20376   shlibpath_var=LD_LIBRARY_PATH
20377   shlibpath_overrides_runpath=no
20378   hardcode_into_libs=yes
20379   dynamic_linker='GNU ld.so'
20380   ;;
20381
20382 netbsd*)
20383   version_type=sunos
20384   need_lib_prefix=no
20385   need_version=no
20386   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20388     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20389     dynamic_linker='NetBSD (a.out) ld.so'
20390   else
20391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20392     soname_spec='${libname}${release}${shared_ext}$major'
20393     dynamic_linker='NetBSD ld.elf_so'
20394   fi
20395   shlibpath_var=LD_LIBRARY_PATH
20396   shlibpath_overrides_runpath=yes
20397   hardcode_into_libs=yes
20398   ;;
20399
20400 newsos6)
20401   version_type=linux
20402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403   shlibpath_var=LD_LIBRARY_PATH
20404   shlibpath_overrides_runpath=yes
20405   ;;
20406
20407 nto-qnx*)
20408   version_type=linux
20409   need_lib_prefix=no
20410   need_version=no
20411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412   soname_spec='${libname}${release}${shared_ext}$major'
20413   shlibpath_var=LD_LIBRARY_PATH
20414   shlibpath_overrides_runpath=yes
20415   ;;
20416
20417 openbsd*)
20418   version_type=sunos
20419   sys_lib_dlsearch_path_spec="/usr/lib"
20420   need_lib_prefix=no
20421   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20422   case $host_os in
20423     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20424     *)                         need_version=no  ;;
20425   esac
20426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20427   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20428   shlibpath_var=LD_LIBRARY_PATH
20429   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20430     case $host_os in
20431       openbsd2.[89] | openbsd2.[89].*)
20432         shlibpath_overrides_runpath=no
20433         ;;
20434       *)
20435         shlibpath_overrides_runpath=yes
20436         ;;
20437       esac
20438   else
20439     shlibpath_overrides_runpath=yes
20440   fi
20441   ;;
20442
20443 os2*)
20444   libname_spec='$name'
20445   shrext_cmds=".dll"
20446   need_lib_prefix=no
20447   library_names_spec='$libname${shared_ext} $libname.a'
20448   dynamic_linker='OS/2 ld.exe'
20449   shlibpath_var=LIBPATH
20450   ;;
20451
20452 osf3* | osf4* | osf5*)
20453   version_type=osf
20454   need_lib_prefix=no
20455   need_version=no
20456   soname_spec='${libname}${release}${shared_ext}$major'
20457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458   shlibpath_var=LD_LIBRARY_PATH
20459   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20460   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20461   ;;
20462
20463 solaris*)
20464   version_type=linux
20465   need_lib_prefix=no
20466   need_version=no
20467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20468   soname_spec='${libname}${release}${shared_ext}$major'
20469   shlibpath_var=LD_LIBRARY_PATH
20470   shlibpath_overrides_runpath=yes
20471   hardcode_into_libs=yes
20472   # ldd complains unless libraries are executable
20473   postinstall_cmds='chmod +x $lib'
20474   ;;
20475
20476 sunos4*)
20477   version_type=sunos
20478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20479   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20480   shlibpath_var=LD_LIBRARY_PATH
20481   shlibpath_overrides_runpath=yes
20482   if test "$with_gnu_ld" = yes; then
20483     need_lib_prefix=no
20484   fi
20485   need_version=yes
20486   ;;
20487
20488 sysv4 | sysv4.3*)
20489   version_type=linux
20490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491   soname_spec='${libname}${release}${shared_ext}$major'
20492   shlibpath_var=LD_LIBRARY_PATH
20493   case $host_vendor in
20494     sni)
20495       shlibpath_overrides_runpath=no
20496       need_lib_prefix=no
20497       export_dynamic_flag_spec='${wl}-Blargedynsym'
20498       runpath_var=LD_RUN_PATH
20499       ;;
20500     siemens)
20501       need_lib_prefix=no
20502       ;;
20503     motorola)
20504       need_lib_prefix=no
20505       need_version=no
20506       shlibpath_overrides_runpath=no
20507       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20508       ;;
20509   esac
20510   ;;
20511
20512 sysv4*MP*)
20513   if test -d /usr/nec ;then
20514     version_type=linux
20515     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20516     soname_spec='$libname${shared_ext}.$major'
20517     shlibpath_var=LD_LIBRARY_PATH
20518   fi
20519   ;;
20520
20521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20522   version_type=freebsd-elf
20523   need_lib_prefix=no
20524   need_version=no
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20526   soname_spec='${libname}${release}${shared_ext}$major'
20527   shlibpath_var=LD_LIBRARY_PATH
20528   hardcode_into_libs=yes
20529   if test "$with_gnu_ld" = yes; then
20530     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20531     shlibpath_overrides_runpath=no
20532   else
20533     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20534     shlibpath_overrides_runpath=yes
20535     case $host_os in
20536       sco3.2v5*)
20537         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20538         ;;
20539     esac
20540   fi
20541   sys_lib_dlsearch_path_spec='/usr/lib'
20542   ;;
20543
20544 uts4*)
20545   version_type=linux
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   shlibpath_var=LD_LIBRARY_PATH
20549   ;;
20550
20551 *)
20552   dynamic_linker=no
20553   ;;
20554 esac
20555 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20556 echo "${ECHO_T}$dynamic_linker" >&6; }
20557 test "$dynamic_linker" = no && can_build_shared=no
20558
20559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20560 if test "$GCC" = yes; then
20561   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20562 fi
20563
20564 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20565 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20566 hardcode_action_CXX=
20567 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20568    test -n "$runpath_var_CXX" || \
20569    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20570
20571   # We can hardcode non-existant directories.
20572   if test "$hardcode_direct_CXX" != no &&
20573      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20574      # have to relink, otherwise we might link with an installed library
20575      # when we should be linking with a yet-to-be-installed one
20576      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20577      test "$hardcode_minus_L_CXX" != no; then
20578     # Linking always hardcodes the temporary library directory.
20579     hardcode_action_CXX=relink
20580   else
20581     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20582     hardcode_action_CXX=immediate
20583   fi
20584 else
20585   # We cannot hardcode anything, or else we can only hardcode existing
20586   # directories.
20587   hardcode_action_CXX=unsupported
20588 fi
20589 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20590 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20591
20592 if test "$hardcode_action_CXX" = relink; then
20593   # Fast installation is not supported
20594   enable_fast_install=no
20595 elif test "$shlibpath_overrides_runpath" = yes ||
20596      test "$enable_shared" = no; then
20597   # Fast installation is not necessary
20598   enable_fast_install=needless
20599 fi
20600
20601
20602 # The else clause should only fire when bootstrapping the
20603 # libtool distribution, otherwise you forgot to ship ltmain.sh
20604 # with your package, and you will get complaints that there are
20605 # no rules to generate ltmain.sh.
20606 if test -f "$ltmain"; then
20607   # See if we are running on zsh, and set the options which allow our commands through
20608   # without removal of \ escapes.
20609   if test -n "${ZSH_VERSION+set}" ; then
20610     setopt NO_GLOB_SUBST
20611   fi
20612   # Now quote all the things that may contain metacharacters while being
20613   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20614   # variables and quote the copies for generation of the libtool script.
20615   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20616     SED SHELL STRIP \
20617     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20618     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20619     deplibs_check_method reload_flag reload_cmds need_locks \
20620     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20621     lt_cv_sys_global_symbol_to_c_name_address \
20622     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20623     old_postinstall_cmds old_postuninstall_cmds \
20624     compiler_CXX \
20625     CC_CXX \
20626     LD_CXX \
20627     lt_prog_compiler_wl_CXX \
20628     lt_prog_compiler_pic_CXX \
20629     lt_prog_compiler_static_CXX \
20630     lt_prog_compiler_no_builtin_flag_CXX \
20631     export_dynamic_flag_spec_CXX \
20632     thread_safe_flag_spec_CXX \
20633     whole_archive_flag_spec_CXX \
20634     enable_shared_with_static_runtimes_CXX \
20635     old_archive_cmds_CXX \
20636     old_archive_from_new_cmds_CXX \
20637     predep_objects_CXX \
20638     postdep_objects_CXX \
20639     predeps_CXX \
20640     postdeps_CXX \
20641     compiler_lib_search_path_CXX \
20642     archive_cmds_CXX \
20643     archive_expsym_cmds_CXX \
20644     postinstall_cmds_CXX \
20645     postuninstall_cmds_CXX \
20646     old_archive_from_expsyms_cmds_CXX \
20647     allow_undefined_flag_CXX \
20648     no_undefined_flag_CXX \
20649     export_symbols_cmds_CXX \
20650     hardcode_libdir_flag_spec_CXX \
20651     hardcode_libdir_flag_spec_ld_CXX \
20652     hardcode_libdir_separator_CXX \
20653     hardcode_automatic_CXX \
20654     module_cmds_CXX \
20655     module_expsym_cmds_CXX \
20656     lt_cv_prog_compiler_c_o_CXX \
20657     exclude_expsyms_CXX \
20658     include_expsyms_CXX; do
20659
20660     case $var in
20661     old_archive_cmds_CXX | \
20662     old_archive_from_new_cmds_CXX | \
20663     archive_cmds_CXX | \
20664     archive_expsym_cmds_CXX | \
20665     module_cmds_CXX | \
20666     module_expsym_cmds_CXX | \
20667     old_archive_from_expsyms_cmds_CXX | \
20668     export_symbols_cmds_CXX | \
20669     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20670     postinstall_cmds | postuninstall_cmds | \
20671     old_postinstall_cmds | old_postuninstall_cmds | \
20672     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20673       # Double-quote double-evaled strings.
20674       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20675       ;;
20676     *)
20677       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20678       ;;
20679     esac
20680   done
20681
20682   case $lt_echo in
20683   *'\$0 --fallback-echo"')
20684     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20685     ;;
20686   esac
20687
20688 cfgfile="$ofile"
20689
20690   cat <<__EOF__ >> "$cfgfile"
20691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20692
20693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20694
20695 # Shell to use when invoking shell scripts.
20696 SHELL=$lt_SHELL
20697
20698 # Whether or not to build shared libraries.
20699 build_libtool_libs=$enable_shared
20700
20701 # Whether or not to build static libraries.
20702 build_old_libs=$enable_static
20703
20704 # Whether or not to add -lc for building shared libraries.
20705 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20706
20707 # Whether or not to disallow shared libs when runtime libs are static
20708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20709
20710 # Whether or not to optimize for fast installation.
20711 fast_install=$enable_fast_install
20712
20713 # The host system.
20714 host_alias=$host_alias
20715 host=$host
20716 host_os=$host_os
20717
20718 # The build system.
20719 build_alias=$build_alias
20720 build=$build
20721 build_os=$build_os
20722
20723 # An echo program that does not interpret backslashes.
20724 echo=$lt_echo
20725
20726 # The archiver.
20727 AR=$lt_AR
20728 AR_FLAGS=$lt_AR_FLAGS
20729
20730 # A C compiler.
20731 LTCC=$lt_LTCC
20732
20733 # LTCC compiler flags.
20734 LTCFLAGS=$lt_LTCFLAGS
20735
20736 # A language-specific compiler.
20737 CC=$lt_compiler_CXX
20738
20739 # Is the compiler the GNU C compiler?
20740 with_gcc=$GCC_CXX
20741
20742 # An ERE matcher.
20743 EGREP=$lt_EGREP
20744
20745 # The linker used to build libraries.
20746 LD=$lt_LD_CXX
20747
20748 # Whether we need hard or soft links.
20749 LN_S=$lt_LN_S
20750
20751 # A BSD-compatible nm program.
20752 NM=$lt_NM
20753
20754 # A symbol stripping program
20755 STRIP=$lt_STRIP
20756
20757 # Used to examine libraries when file_magic_cmd begins "file"
20758 MAGIC_CMD=$MAGIC_CMD
20759
20760 # Used on cygwin: DLL creation program.
20761 DLLTOOL="$DLLTOOL"
20762
20763 # Used on cygwin: object dumper.
20764 OBJDUMP="$OBJDUMP"
20765
20766 # Used on cygwin: assembler.
20767 AS="$AS"
20768
20769 # The name of the directory that contains temporary libtool files.
20770 objdir=$objdir
20771
20772 # How to create reloadable object files.
20773 reload_flag=$lt_reload_flag
20774 reload_cmds=$lt_reload_cmds
20775
20776 # How to pass a linker flag through the compiler.
20777 wl=$lt_lt_prog_compiler_wl_CXX
20778
20779 # Object file suffix (normally "o").
20780 objext="$ac_objext"
20781
20782 # Old archive suffix (normally "a").
20783 libext="$libext"
20784
20785 # Shared library suffix (normally ".so").
20786 shrext_cmds='$shrext_cmds'
20787
20788 # Executable file suffix (normally "").
20789 exeext="$exeext"
20790
20791 # Additional compiler flags for building library objects.
20792 pic_flag=$lt_lt_prog_compiler_pic_CXX
20793 pic_mode=$pic_mode
20794
20795 # What is the maximum length of a command?
20796 max_cmd_len=$lt_cv_sys_max_cmd_len
20797
20798 # Does compiler simultaneously support -c and -o options?
20799 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20800
20801 # Must we lock files when doing compilation?
20802 need_locks=$lt_need_locks
20803
20804 # Do we need the lib prefix for modules?
20805 need_lib_prefix=$need_lib_prefix
20806
20807 # Do we need a version for libraries?
20808 need_version=$need_version
20809
20810 # Whether dlopen is supported.
20811 dlopen_support=$enable_dlopen
20812
20813 # Whether dlopen of programs is supported.
20814 dlopen_self=$enable_dlopen_self
20815
20816 # Whether dlopen of statically linked programs is supported.
20817 dlopen_self_static=$enable_dlopen_self_static
20818
20819 # Compiler flag to prevent dynamic linking.
20820 link_static_flag=$lt_lt_prog_compiler_static_CXX
20821
20822 # Compiler flag to turn off builtin functions.
20823 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20824
20825 # Compiler flag to allow reflexive dlopens.
20826 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20827
20828 # Compiler flag to generate shared objects directly from archives.
20829 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20830
20831 # Compiler flag to generate thread-safe objects.
20832 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20833
20834 # Library versioning type.
20835 version_type=$version_type
20836
20837 # Format of library name prefix.
20838 libname_spec=$lt_libname_spec
20839
20840 # List of archive names.  First name is the real one, the rest are links.
20841 # The last name is the one that the linker finds with -lNAME.
20842 library_names_spec=$lt_library_names_spec
20843
20844 # The coded name of the library, if different from the real name.
20845 soname_spec=$lt_soname_spec
20846
20847 # Commands used to build and install an old-style archive.
20848 RANLIB=$lt_RANLIB
20849 old_archive_cmds=$lt_old_archive_cmds_CXX
20850 old_postinstall_cmds=$lt_old_postinstall_cmds
20851 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20852
20853 # Create an old-style archive from a shared archive.
20854 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20855
20856 # Create a temporary old-style archive to link instead of a shared archive.
20857 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20858
20859 # Commands used to build and install a shared archive.
20860 archive_cmds=$lt_archive_cmds_CXX
20861 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20862 postinstall_cmds=$lt_postinstall_cmds
20863 postuninstall_cmds=$lt_postuninstall_cmds
20864
20865 # Commands used to build a loadable module (assumed same as above if empty)
20866 module_cmds=$lt_module_cmds_CXX
20867 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20868
20869 # Commands to strip libraries.
20870 old_striplib=$lt_old_striplib
20871 striplib=$lt_striplib
20872
20873 # Dependencies to place before the objects being linked to create a
20874 # shared library.
20875 predep_objects=$lt_predep_objects_CXX
20876
20877 # Dependencies to place after the objects being linked to create a
20878 # shared library.
20879 postdep_objects=$lt_postdep_objects_CXX
20880
20881 # Dependencies to place before the objects being linked to create a
20882 # shared library.
20883 predeps=$lt_predeps_CXX
20884
20885 # Dependencies to place after the objects being linked to create a
20886 # shared library.
20887 postdeps=$lt_postdeps_CXX
20888
20889 # The library search path used internally by the compiler when linking
20890 # a shared library.
20891 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20892
20893 # Method to check whether dependent libraries are shared objects.
20894 deplibs_check_method=$lt_deplibs_check_method
20895
20896 # Command to use when deplibs_check_method == file_magic.
20897 file_magic_cmd=$lt_file_magic_cmd
20898
20899 # Flag that allows shared libraries with undefined symbols to be built.
20900 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20901
20902 # Flag that forces no undefined symbols.
20903 no_undefined_flag=$lt_no_undefined_flag_CXX
20904
20905 # Commands used to finish a libtool library installation in a directory.
20906 finish_cmds=$lt_finish_cmds
20907
20908 # Same as above, but a single script fragment to be evaled but not shown.
20909 finish_eval=$lt_finish_eval
20910
20911 # Take the output of nm and produce a listing of raw symbols and C names.
20912 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20913
20914 # Transform the output of nm in a proper C declaration
20915 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20916
20917 # Transform the output of nm in a C name address pair
20918 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20919
20920 # This is the shared library runtime path variable.
20921 runpath_var=$runpath_var
20922
20923 # This is the shared library path variable.
20924 shlibpath_var=$shlibpath_var
20925
20926 # Is shlibpath searched before the hard-coded library search path?
20927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20928
20929 # How to hardcode a shared library path into an executable.
20930 hardcode_action=$hardcode_action_CXX
20931
20932 # Whether we should hardcode library paths into libraries.
20933 hardcode_into_libs=$hardcode_into_libs
20934
20935 # Flag to hardcode \$libdir into a binary during linking.
20936 # This must work even if \$libdir does not exist.
20937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20938
20939 # If ld is used when linking, flag to hardcode \$libdir into
20940 # a binary during linking. This must work even if \$libdir does
20941 # not exist.
20942 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20943
20944 # Whether we need a single -rpath flag with a separated argument.
20945 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20946
20947 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20948 # resulting binary.
20949 hardcode_direct=$hardcode_direct_CXX
20950
20951 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20952 # resulting binary.
20953 hardcode_minus_L=$hardcode_minus_L_CXX
20954
20955 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20956 # the resulting binary.
20957 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20958
20959 # Set to yes if building a shared library automatically hardcodes DIR into the library
20960 # and all subsequent libraries and executables linked against it.
20961 hardcode_automatic=$hardcode_automatic_CXX
20962
20963 # Variables whose values should be saved in libtool wrapper scripts and
20964 # restored at relink time.
20965 variables_saved_for_relink="$variables_saved_for_relink"
20966
20967 # Whether libtool must link a program against all its dependency libraries.
20968 link_all_deplibs=$link_all_deplibs_CXX
20969
20970 # Compile-time system search path for libraries
20971 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20972
20973 # Run-time system search path for libraries
20974 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20975
20976 # Fix the shell variable \$srcfile for the compiler.
20977 fix_srcfile_path="$fix_srcfile_path_CXX"
20978
20979 # Set to yes if exported symbols are required.
20980 always_export_symbols=$always_export_symbols_CXX
20981
20982 # The commands to list exported symbols.
20983 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20984
20985 # The commands to extract the exported symbol list from a shared archive.
20986 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20987
20988 # Symbols that should not be listed in the preloaded symbols.
20989 exclude_expsyms=$lt_exclude_expsyms_CXX
20990
20991 # Symbols that must always be exported.
20992 include_expsyms=$lt_include_expsyms_CXX
20993
20994 # ### END LIBTOOL TAG CONFIG: $tagname
20995
20996 __EOF__
20997
20998
20999 else
21000   # If there is no Makefile yet, we rely on a make rule to execute
21001   # `config.status --recheck' to rerun these tests and create the
21002   # libtool script then.
21003   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21004   if test -f "$ltmain_in"; then
21005     test -f Makefile && make "$ltmain"
21006   fi
21007 fi
21008
21009
21010 ac_ext=c
21011 ac_cpp='$CPP $CPPFLAGS'
21012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21015
21016 CC=$lt_save_CC
21017 LDCXX=$LD
21018 LD=$lt_save_LD
21019 GCC=$lt_save_GCC
21020 with_gnu_ldcxx=$with_gnu_ld
21021 with_gnu_ld=$lt_save_with_gnu_ld
21022 lt_cv_path_LDCXX=$lt_cv_path_LD
21023 lt_cv_path_LD=$lt_save_path_LD
21024 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21025 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21026
21027         else
21028           tagname=""
21029         fi
21030         ;;
21031
21032       F77)
21033         if test -n "$F77" && test "X$F77" != "Xno"; then
21034
21035 ac_ext=f
21036 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21037 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21039
21040
21041 archive_cmds_need_lc_F77=no
21042 allow_undefined_flag_F77=
21043 always_export_symbols_F77=no
21044 archive_expsym_cmds_F77=
21045 export_dynamic_flag_spec_F77=
21046 hardcode_direct_F77=no
21047 hardcode_libdir_flag_spec_F77=
21048 hardcode_libdir_flag_spec_ld_F77=
21049 hardcode_libdir_separator_F77=
21050 hardcode_minus_L_F77=no
21051 hardcode_automatic_F77=no
21052 module_cmds_F77=
21053 module_expsym_cmds_F77=
21054 link_all_deplibs_F77=unknown
21055 old_archive_cmds_F77=$old_archive_cmds
21056 no_undefined_flag_F77=
21057 whole_archive_flag_spec_F77=
21058 enable_shared_with_static_runtimes_F77=no
21059
21060 # Source file extension for f77 test sources.
21061 ac_ext=f
21062
21063 # Object file extension for compiled f77 test sources.
21064 objext=o
21065 objext_F77=$objext
21066
21067 # Code to be used in simple compile tests
21068 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
21069
21070 # Code to be used in simple link tests
21071 lt_simple_link_test_code="      program t\n      end\n"
21072
21073 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21074
21075 # If no C compiler was specified, use CC.
21076 LTCC=${LTCC-"$CC"}
21077
21078 # If no C compiler flags were specified, use CFLAGS.
21079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21080
21081 # Allow CC to be a program name with arguments.
21082 compiler=$CC
21083
21084
21085 # save warnings/boilerplate of simple test code
21086 ac_outfile=conftest.$ac_objext
21087 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21089 _lt_compiler_boilerplate=`cat conftest.err`
21090 $rm conftest*
21091
21092 ac_outfile=conftest.$ac_objext
21093 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21095 _lt_linker_boilerplate=`cat conftest.err`
21096 $rm conftest*
21097
21098
21099 # Allow CC to be a program name with arguments.
21100 lt_save_CC="$CC"
21101 CC=${F77-"f77"}
21102 compiler=$CC
21103 compiler_F77=$CC
21104 for cc_temp in $compiler""; do
21105   case $cc_temp in
21106     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21107     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21108     \-*) ;;
21109     *) break;;
21110   esac
21111 done
21112 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21113
21114
21115 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21116 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21117 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21118 echo "${ECHO_T}$can_build_shared" >&6; }
21119
21120 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21121 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21122 test "$can_build_shared" = "no" && enable_shared=no
21123
21124 # On AIX, shared libraries and static libraries use the same namespace, and
21125 # are all built from PIC.
21126 case $host_os in
21127 aix3*)
21128   test "$enable_shared" = yes && enable_static=no
21129   if test -n "$RANLIB"; then
21130     archive_cmds="$archive_cmds~\$RANLIB \$lib"
21131     postinstall_cmds='$RANLIB $lib'
21132   fi
21133   ;;
21134 aix4* | aix5*)
21135   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21136     test "$enable_shared" = yes && enable_static=no
21137   fi
21138   ;;
21139 esac
21140 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21141 echo "${ECHO_T}$enable_shared" >&6; }
21142
21143 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21144 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21145 # Make sure either enable_shared or enable_static is yes.
21146 test "$enable_shared" = yes || enable_static=yes
21147 { echo "$as_me:$LINENO: result: $enable_static" >&5
21148 echo "${ECHO_T}$enable_static" >&6; }
21149
21150 GCC_F77="$G77"
21151 LD_F77="$LD"
21152
21153 lt_prog_compiler_wl_F77=
21154 lt_prog_compiler_pic_F77=
21155 lt_prog_compiler_static_F77=
21156
21157 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21159
21160   if test "$GCC" = yes; then
21161     lt_prog_compiler_wl_F77='-Wl,'
21162     lt_prog_compiler_static_F77='-static'
21163
21164     case $host_os in
21165       aix*)
21166       # All AIX code is PIC.
21167       if test "$host_cpu" = ia64; then
21168         # AIX 5 now supports IA64 processor
21169         lt_prog_compiler_static_F77='-Bstatic'
21170       fi
21171       ;;
21172
21173     amigaos*)
21174       # FIXME: we need at least 68020 code to build shared libraries, but
21175       # adding the `-m68020' flag to GCC prevents building anything better,
21176       # like `-m68040'.
21177       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21178       ;;
21179
21180     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21181       # PIC is the default for these OSes.
21182       ;;
21183
21184     mingw* | pw32* | os2*)
21185       # This hack is so that the source file can tell whether it is being
21186       # built for inclusion in a dll (and should export symbols for example).
21187       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21188       ;;
21189
21190     darwin* | rhapsody*)
21191       # PIC is the default on this platform
21192       # Common symbols not allowed in MH_DYLIB files
21193       lt_prog_compiler_pic_F77='-fno-common'
21194       ;;
21195
21196     interix3*)
21197       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21198       # Instead, we relocate shared libraries at runtime.
21199       ;;
21200
21201     msdosdjgpp*)
21202       # Just because we use GCC doesn't mean we suddenly get shared libraries
21203       # on systems that don't support them.
21204       lt_prog_compiler_can_build_shared_F77=no
21205       enable_shared=no
21206       ;;
21207
21208     sysv4*MP*)
21209       if test -d /usr/nec; then
21210         lt_prog_compiler_pic_F77=-Kconform_pic
21211       fi
21212       ;;
21213
21214     hpux*)
21215       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21216       # not for PA HP-UX.
21217       case $host_cpu in
21218       hppa*64*|ia64*)
21219         # +Z the default
21220         ;;
21221       *)
21222         lt_prog_compiler_pic_F77='-fPIC'
21223         ;;
21224       esac
21225       ;;
21226
21227     *)
21228       lt_prog_compiler_pic_F77='-fPIC'
21229       ;;
21230     esac
21231   else
21232     # PORTME Check for flag to pass linker flags through the system compiler.
21233     case $host_os in
21234     aix*)
21235       lt_prog_compiler_wl_F77='-Wl,'
21236       if test "$host_cpu" = ia64; then
21237         # AIX 5 now supports IA64 processor
21238         lt_prog_compiler_static_F77='-Bstatic'
21239       else
21240         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21241       fi
21242       ;;
21243       darwin*)
21244         # PIC is the default on this platform
21245         # Common symbols not allowed in MH_DYLIB files
21246        case $cc_basename in
21247          xlc*)
21248          lt_prog_compiler_pic_F77='-qnocommon'
21249          lt_prog_compiler_wl_F77='-Wl,'
21250          ;;
21251        esac
21252        ;;
21253
21254     mingw* | pw32* | os2*)
21255       # This hack is so that the source file can tell whether it is being
21256       # built for inclusion in a dll (and should export symbols for example).
21257       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21258       ;;
21259
21260     hpux9* | hpux10* | hpux11*)
21261       lt_prog_compiler_wl_F77='-Wl,'
21262       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21263       # not for PA HP-UX.
21264       case $host_cpu in
21265       hppa*64*|ia64*)
21266         # +Z the default
21267         ;;
21268       *)
21269         lt_prog_compiler_pic_F77='+Z'
21270         ;;
21271       esac
21272       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21273       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21274       ;;
21275
21276     irix5* | irix6* | nonstopux*)
21277       lt_prog_compiler_wl_F77='-Wl,'
21278       # PIC (with -KPIC) is the default.
21279       lt_prog_compiler_static_F77='-non_shared'
21280       ;;
21281
21282     newsos6)
21283       lt_prog_compiler_pic_F77='-KPIC'
21284       lt_prog_compiler_static_F77='-Bstatic'
21285       ;;
21286
21287     linux*)
21288       case $cc_basename in
21289       icc* | ecc*)
21290         lt_prog_compiler_wl_F77='-Wl,'
21291         lt_prog_compiler_pic_F77='-KPIC'
21292         lt_prog_compiler_static_F77='-static'
21293         ;;
21294       pgcc* | pgf77* | pgf90* | pgf95*)
21295         # Portland Group compilers (*not* the Pentium gcc compiler,
21296         # which looks to be a dead project)
21297         lt_prog_compiler_wl_F77='-Wl,'
21298         lt_prog_compiler_pic_F77='-fpic'
21299         lt_prog_compiler_static_F77='-Bstatic'
21300         ;;
21301       ccc*)
21302         lt_prog_compiler_wl_F77='-Wl,'
21303         # All Alpha code is PIC.
21304         lt_prog_compiler_static_F77='-non_shared'
21305         ;;
21306       esac
21307       ;;
21308
21309     osf3* | osf4* | osf5*)
21310       lt_prog_compiler_wl_F77='-Wl,'
21311       # All OSF/1 code is PIC.
21312       lt_prog_compiler_static_F77='-non_shared'
21313       ;;
21314
21315     solaris*)
21316       lt_prog_compiler_pic_F77='-KPIC'
21317       lt_prog_compiler_static_F77='-Bstatic'
21318       case $cc_basename in
21319       f77* | f90* | f95*)
21320         lt_prog_compiler_wl_F77='-Qoption ld ';;
21321       *)
21322         lt_prog_compiler_wl_F77='-Wl,';;
21323       esac
21324       ;;
21325
21326     sunos4*)
21327       lt_prog_compiler_wl_F77='-Qoption ld '
21328       lt_prog_compiler_pic_F77='-PIC'
21329       lt_prog_compiler_static_F77='-Bstatic'
21330       ;;
21331
21332     sysv4 | sysv4.2uw2* | sysv4.3*)
21333       lt_prog_compiler_wl_F77='-Wl,'
21334       lt_prog_compiler_pic_F77='-KPIC'
21335       lt_prog_compiler_static_F77='-Bstatic'
21336       ;;
21337
21338     sysv4*MP*)
21339       if test -d /usr/nec ;then
21340         lt_prog_compiler_pic_F77='-Kconform_pic'
21341         lt_prog_compiler_static_F77='-Bstatic'
21342       fi
21343       ;;
21344
21345     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21346       lt_prog_compiler_wl_F77='-Wl,'
21347       lt_prog_compiler_pic_F77='-KPIC'
21348       lt_prog_compiler_static_F77='-Bstatic'
21349       ;;
21350
21351     unicos*)
21352       lt_prog_compiler_wl_F77='-Wl,'
21353       lt_prog_compiler_can_build_shared_F77=no
21354       ;;
21355
21356     uts4*)
21357       lt_prog_compiler_pic_F77='-pic'
21358       lt_prog_compiler_static_F77='-Bstatic'
21359       ;;
21360
21361     *)
21362       lt_prog_compiler_can_build_shared_F77=no
21363       ;;
21364     esac
21365   fi
21366
21367 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21368 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21369
21370 #
21371 # Check to make sure the PIC flag actually works.
21372 #
21373 if test -n "$lt_prog_compiler_pic_F77"; then
21374
21375 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21376 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21377 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   lt_prog_compiler_pic_works_F77=no
21381   ac_outfile=conftest.$ac_objext
21382    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21383    lt_compiler_flag="$lt_prog_compiler_pic_F77"
21384    # Insert the option either (1) after the last *FLAGS variable, or
21385    # (2) before a word containing "conftest.", or (3) at the end.
21386    # Note that $ac_compile itself does not contain backslashes and begins
21387    # with a dollar sign (not a hyphen), so the echo should work correctly.
21388    # The option is referenced via a variable to avoid confusing sed.
21389    lt_compile=`echo "$ac_compile" | $SED \
21390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21392    -e 's:$: $lt_compiler_flag:'`
21393    (eval echo "\"\$as_me:21393: $lt_compile\"" >&5)
21394    (eval "$lt_compile" 2>conftest.err)
21395    ac_status=$?
21396    cat conftest.err >&5
21397    echo "$as_me:21397: \$? = $ac_status" >&5
21398    if (exit $ac_status) && test -s "$ac_outfile"; then
21399      # The compiler can only warn and ignore the option if not recognized
21400      # So say no if there are warnings other than the usual output.
21401      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21402      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21403      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21404        lt_prog_compiler_pic_works_F77=yes
21405      fi
21406    fi
21407    $rm conftest*
21408
21409 fi
21410 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21411 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21412
21413 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21414     case $lt_prog_compiler_pic_F77 in
21415      "" | " "*) ;;
21416      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21417      esac
21418 else
21419     lt_prog_compiler_pic_F77=
21420      lt_prog_compiler_can_build_shared_F77=no
21421 fi
21422
21423 fi
21424 case $host_os in
21425   # For platforms which do not support PIC, -DPIC is meaningless:
21426   *djgpp*)
21427     lt_prog_compiler_pic_F77=
21428     ;;
21429   *)
21430     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21431     ;;
21432 esac
21433
21434 #
21435 # Check to make sure the static flag actually works.
21436 #
21437 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21438 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21439 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21440 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21441   echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443   lt_prog_compiler_static_works_F77=no
21444    save_LDFLAGS="$LDFLAGS"
21445    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21446    printf "$lt_simple_link_test_code" > conftest.$ac_ext
21447    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21448      # The linker can only warn and ignore the option if not recognized
21449      # So say no if there are warnings
21450      if test -s conftest.err; then
21451        # Append any errors to the config.log.
21452        cat conftest.err 1>&5
21453        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21454        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21455        if diff conftest.exp conftest.er2 >/dev/null; then
21456          lt_prog_compiler_static_works_F77=yes
21457        fi
21458      else
21459        lt_prog_compiler_static_works_F77=yes
21460      fi
21461    fi
21462    $rm conftest*
21463    LDFLAGS="$save_LDFLAGS"
21464
21465 fi
21466 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21467 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21468
21469 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21470     :
21471 else
21472     lt_prog_compiler_static_F77=
21473 fi
21474
21475
21476 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21477 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21478 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21479   echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481   lt_cv_prog_compiler_c_o_F77=no
21482    $rm -r conftest 2>/dev/null
21483    mkdir conftest
21484    cd conftest
21485    mkdir out
21486    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21487
21488    lt_compiler_flag="-o out/conftest2.$ac_objext"
21489    # Insert the option either (1) after the last *FLAGS variable, or
21490    # (2) before a word containing "conftest.", or (3) at the end.
21491    # Note that $ac_compile itself does not contain backslashes and begins
21492    # with a dollar sign (not a hyphen), so the echo should work correctly.
21493    lt_compile=`echo "$ac_compile" | $SED \
21494    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21496    -e 's:$: $lt_compiler_flag:'`
21497    (eval echo "\"\$as_me:21497: $lt_compile\"" >&5)
21498    (eval "$lt_compile" 2>out/conftest.err)
21499    ac_status=$?
21500    cat out/conftest.err >&5
21501    echo "$as_me:21501: \$? = $ac_status" >&5
21502    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21503    then
21504      # The compiler can only warn and ignore the option if not recognized
21505      # So say no if there are warnings
21506      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21507      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21508      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21509        lt_cv_prog_compiler_c_o_F77=yes
21510      fi
21511    fi
21512    chmod u+w . 2>&5
21513    $rm conftest*
21514    # SGI C++ compiler will create directory out/ii_files/ for
21515    # template instantiation
21516    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21517    $rm out/* && rmdir out
21518    cd ..
21519    rmdir conftest
21520    $rm conftest*
21521
21522 fi
21523 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21524 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21525
21526
21527 hard_links="nottested"
21528 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21529   # do not overwrite the value of need_locks provided by the user
21530   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21531 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21532   hard_links=yes
21533   $rm conftest*
21534   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21535   touch conftest.a
21536   ln conftest.a conftest.b 2>&5 || hard_links=no
21537   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21538   { echo "$as_me:$LINENO: result: $hard_links" >&5
21539 echo "${ECHO_T}$hard_links" >&6; }
21540   if test "$hard_links" = no; then
21541     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21542 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21543     need_locks=warn
21544   fi
21545 else
21546   need_locks=no
21547 fi
21548
21549 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21551
21552   runpath_var=
21553   allow_undefined_flag_F77=
21554   enable_shared_with_static_runtimes_F77=no
21555   archive_cmds_F77=
21556   archive_expsym_cmds_F77=
21557   old_archive_From_new_cmds_F77=
21558   old_archive_from_expsyms_cmds_F77=
21559   export_dynamic_flag_spec_F77=
21560   whole_archive_flag_spec_F77=
21561   thread_safe_flag_spec_F77=
21562   hardcode_libdir_flag_spec_F77=
21563   hardcode_libdir_flag_spec_ld_F77=
21564   hardcode_libdir_separator_F77=
21565   hardcode_direct_F77=no
21566   hardcode_minus_L_F77=no
21567   hardcode_shlibpath_var_F77=unsupported
21568   link_all_deplibs_F77=unknown
21569   hardcode_automatic_F77=no
21570   module_cmds_F77=
21571   module_expsym_cmds_F77=
21572   always_export_symbols_F77=no
21573   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21574   # include_expsyms should be a list of space-separated symbols to be *always*
21575   # included in the symbol list
21576   include_expsyms_F77=
21577   # exclude_expsyms can be an extended regexp of symbols to exclude
21578   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21579   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21580   # as well as any symbol that contains `d'.
21581   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21582   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21583   # platforms (ab)use it in PIC code, but their linkers get confused if
21584   # the symbol is explicitly referenced.  Since portable code cannot
21585   # rely on this symbol name, it's probably fine to never include it in
21586   # preloaded symbol tables.
21587   extract_expsyms_cmds=
21588   # Just being paranoid about ensuring that cc_basename is set.
21589   for cc_temp in $compiler""; do
21590   case $cc_temp in
21591     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21592     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21593     \-*) ;;
21594     *) break;;
21595   esac
21596 done
21597 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21598
21599   case $host_os in
21600   cygwin* | mingw* | pw32*)
21601     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21602     # When not using gcc, we currently assume that we are using
21603     # Microsoft Visual C++.
21604     if test "$GCC" != yes; then
21605       with_gnu_ld=no
21606     fi
21607     ;;
21608   interix*)
21609     # we just hope/assume this is gcc and not c89 (= MSVC++)
21610     with_gnu_ld=yes
21611     ;;
21612   openbsd*)
21613     with_gnu_ld=no
21614     ;;
21615   esac
21616
21617   ld_shlibs_F77=yes
21618   if test "$with_gnu_ld" = yes; then
21619     # If archive_cmds runs LD, not CC, wlarc should be empty
21620     wlarc='${wl}'
21621
21622     # Set some defaults for GNU ld with shared library support. These
21623     # are reset later if shared libraries are not supported. Putting them
21624     # here allows them to be overridden if necessary.
21625     runpath_var=LD_RUN_PATH
21626     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21627     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21628     # ancient GNU ld didn't support --whole-archive et. al.
21629     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21630         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21631       else
21632         whole_archive_flag_spec_F77=
21633     fi
21634     supports_anon_versioning=no
21635     case `$LD -v 2>/dev/null` in
21636       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21637       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21638       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21639       *\ 2.11.*) ;; # other 2.11 versions
21640       *) supports_anon_versioning=yes ;;
21641     esac
21642
21643     # See if GNU ld supports shared libraries.
21644     case $host_os in
21645     aix3* | aix4* | aix5*)
21646       # On AIX/PPC, the GNU linker is very broken
21647       if test "$host_cpu" != ia64; then
21648         ld_shlibs_F77=no
21649         cat <<EOF 1>&2
21650
21651 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21652 *** to be unable to reliably create shared libraries on AIX.
21653 *** Therefore, libtool is disabling shared libraries support.  If you
21654 *** really care for shared libraries, you may want to modify your PATH
21655 *** so that a non-GNU linker is found, and then restart.
21656
21657 EOF
21658       fi
21659       ;;
21660
21661     amigaos*)
21662       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)'
21663       hardcode_libdir_flag_spec_F77='-L$libdir'
21664       hardcode_minus_L_F77=yes
21665
21666       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21667       # that the semantics of dynamic libraries on AmigaOS, at least up
21668       # to version 4, is to share data among multiple programs linked
21669       # with the same dynamic library.  Since this doesn't match the
21670       # behavior of shared libraries on other platforms, we can't use
21671       # them.
21672       ld_shlibs_F77=no
21673       ;;
21674
21675     beos*)
21676       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21677         allow_undefined_flag_F77=unsupported
21678         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21679         # support --undefined.  This deserves some investigation.  FIXME
21680         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21681       else
21682         ld_shlibs_F77=no
21683       fi
21684       ;;
21685
21686     cygwin* | mingw* | pw32*)
21687       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21688       # as there is no search path for DLLs.
21689       hardcode_libdir_flag_spec_F77='-L$libdir'
21690       allow_undefined_flag_F77=unsupported
21691       always_export_symbols_F77=no
21692       enable_shared_with_static_runtimes_F77=yes
21693       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21694
21695       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21696         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21697         # If the export-symbols file already is a .def file (1st line
21698         # is EXPORTS), use it as is; otherwise, prepend...
21699         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21700           cp $export_symbols $output_objdir/$soname.def;
21701         else
21702           echo EXPORTS > $output_objdir/$soname.def;
21703           cat $export_symbols >> $output_objdir/$soname.def;
21704         fi~
21705         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21706       else
21707         ld_shlibs_F77=no
21708       fi
21709       ;;
21710
21711     interix3*)
21712       hardcode_direct_F77=no
21713       hardcode_shlibpath_var_F77=no
21714       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21715       export_dynamic_flag_spec_F77='${wl}-E'
21716       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21717       # Instead, shared libraries are loaded at an image base (0x10000000 by
21718       # default) and relocated if they conflict, which is a slow very memory
21719       # consuming and fragmenting process.  To avoid this, we pick a random,
21720       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21721       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21722       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'
21723       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'
21724       ;;
21725
21726     linux*)
21727       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21728         tmp_addflag=
21729         case $cc_basename,$host_cpu in
21730         pgcc*)                          # Portland Group C compiler
21731           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'
21732           tmp_addflag=' $pic_flag'
21733           ;;
21734         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21735           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'
21736           tmp_addflag=' $pic_flag -Mnomain' ;;
21737         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21738           tmp_addflag=' -i_dynamic' ;;
21739         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21740           tmp_addflag=' -i_dynamic -nofor_main' ;;
21741         ifc* | ifort*)                  # Intel Fortran compiler
21742           tmp_addflag=' -nofor_main' ;;
21743         esac
21744         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21745
21746         if test $supports_anon_versioning = yes; then
21747           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21748   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21749   $echo "local: *; };" >> $output_objdir/$libname.ver~
21750           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21751         fi
21752       else
21753         ld_shlibs_F77=no
21754       fi
21755       ;;
21756
21757     netbsd*)
21758       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21759         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21760         wlarc=
21761       else
21762         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21763         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21764       fi
21765       ;;
21766
21767     solaris*)
21768       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21769         ld_shlibs_F77=no
21770         cat <<EOF 1>&2
21771
21772 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21773 *** create shared libraries on Solaris systems.  Therefore, libtool
21774 *** is disabling shared libraries support.  We urge you to upgrade GNU
21775 *** binutils to release 2.9.1 or newer.  Another option is to modify
21776 *** your PATH or compiler configuration so that the native linker is
21777 *** used, and then restart.
21778
21779 EOF
21780       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21781         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21782         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21783       else
21784         ld_shlibs_F77=no
21785       fi
21786       ;;
21787
21788     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21789       case `$LD -v 2>&1` in
21790         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21791         ld_shlibs_F77=no
21792         cat <<_LT_EOF 1>&2
21793
21794 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21795 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21796 *** is disabling shared libraries support.  We urge you to upgrade GNU
21797 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21798 *** your PATH or compiler configuration so that the native linker is
21799 *** used, and then restart.
21800
21801 _LT_EOF
21802         ;;
21803         *)
21804           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21805             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21806             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21807             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21808           else
21809             ld_shlibs_F77=no
21810           fi
21811         ;;
21812       esac
21813       ;;
21814
21815     sunos4*)
21816       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21817       wlarc=
21818       hardcode_direct_F77=yes
21819       hardcode_shlibpath_var_F77=no
21820       ;;
21821
21822     *)
21823       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21824         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21825         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21826       else
21827         ld_shlibs_F77=no
21828       fi
21829       ;;
21830     esac
21831
21832     if test "$ld_shlibs_F77" = no; then
21833       runpath_var=
21834       hardcode_libdir_flag_spec_F77=
21835       export_dynamic_flag_spec_F77=
21836       whole_archive_flag_spec_F77=
21837     fi
21838   else
21839     # PORTME fill in a description of your system's linker (not GNU ld)
21840     case $host_os in
21841     aix3*)
21842       allow_undefined_flag_F77=unsupported
21843       always_export_symbols_F77=yes
21844       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'
21845       # Note: this linker hardcodes the directories in LIBPATH if there
21846       # are no directories specified by -L.
21847       hardcode_minus_L_F77=yes
21848       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21849         # Neither direct hardcoding nor static linking is supported with a
21850         # broken collect2.
21851         hardcode_direct_F77=unsupported
21852       fi
21853       ;;
21854
21855     aix4* | aix5*)
21856       if test "$host_cpu" = ia64; then
21857         # On IA64, the linker does run time linking by default, so we don't
21858         # have to do anything special.
21859         aix_use_runtimelinking=no
21860         exp_sym_flag='-Bexport'
21861         no_entry_flag=""
21862       else
21863         # If we're using GNU nm, then we don't want the "-C" option.
21864         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21865         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21866           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'
21867         else
21868           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'
21869         fi
21870         aix_use_runtimelinking=no
21871
21872         # Test if we are trying to use run time linking or normal
21873         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21874         # need to do runtime linking.
21875         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21876           for ld_flag in $LDFLAGS; do
21877           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21878             aix_use_runtimelinking=yes
21879             break
21880           fi
21881           done
21882           ;;
21883         esac
21884
21885         exp_sym_flag='-bexport'
21886         no_entry_flag='-bnoentry'
21887       fi
21888
21889       # When large executables or shared objects are built, AIX ld can
21890       # have problems creating the table of contents.  If linking a library
21891       # or program results in "error TOC overflow" add -mminimal-toc to
21892       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21893       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21894
21895       archive_cmds_F77=''
21896       hardcode_direct_F77=yes
21897       hardcode_libdir_separator_F77=':'
21898       link_all_deplibs_F77=yes
21899
21900       if test "$GCC" = yes; then
21901         case $host_os in aix4.[012]|aix4.[012].*)
21902         # We only want to do this on AIX 4.2 and lower, the check
21903         # below for broken collect2 doesn't work under 4.3+
21904           collect2name=`${CC} -print-prog-name=collect2`
21905           if test -f "$collect2name" && \
21906            strings "$collect2name" | grep resolve_lib_name >/dev/null
21907           then
21908           # We have reworked collect2
21909           hardcode_direct_F77=yes
21910           else
21911           # We have old collect2
21912           hardcode_direct_F77=unsupported
21913           # It fails to find uninstalled libraries when the uninstalled
21914           # path is not listed in the libpath.  Setting hardcode_minus_L
21915           # to unsupported forces relinking
21916           hardcode_minus_L_F77=yes
21917           hardcode_libdir_flag_spec_F77='-L$libdir'
21918           hardcode_libdir_separator_F77=
21919           fi
21920           ;;
21921         esac
21922         shared_flag='-shared'
21923         if test "$aix_use_runtimelinking" = yes; then
21924           shared_flag="$shared_flag "'${wl}-G'
21925         fi
21926       else
21927         # not using gcc
21928         if test "$host_cpu" = ia64; then
21929         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21930         # chokes on -Wl,-G. The following line is correct:
21931           shared_flag='-G'
21932         else
21933           if test "$aix_use_runtimelinking" = yes; then
21934             shared_flag='${wl}-G'
21935           else
21936             shared_flag='${wl}-bM:SRE'
21937           fi
21938         fi
21939       fi
21940
21941       # It seems that -bexpall does not export symbols beginning with
21942       # underscore (_), so it is better to generate a list of symbols to export.
21943       always_export_symbols_F77=yes
21944       if test "$aix_use_runtimelinking" = yes; then
21945         # Warning - without using the other runtime loading flags (-brtl),
21946         # -berok will link without error, but may produce a broken library.
21947         allow_undefined_flag_F77='-berok'
21948        # Determine the default libpath from the value encoded in an empty executable.
21949        cat >conftest.$ac_ext <<_ACEOF
21950       program main
21951
21952       end
21953 _ACEOF
21954 rm -f conftest.$ac_objext conftest$ac_exeext
21955 if { (ac_try="$ac_link"
21956 case "(($ac_try" in
21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958   *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961   (eval "$ac_link") 2>conftest.er1
21962   ac_status=$?
21963   grep -v '^ *+' conftest.er1 >conftest.err
21964   rm -f conftest.er1
21965   cat conftest.err >&5
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } && {
21968          test -z "$ac_f77_werror_flag" ||
21969          test ! -s conftest.err
21970        } && test -s conftest$ac_exeext &&
21971        $as_test_x conftest$ac_exeext; then
21972
21973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21974 }'`
21975 # Check for a 64-bit object if we didn't find anything.
21976 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; }
21977 }'`; fi
21978 else
21979   echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982
21983 fi
21984
21985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21986       conftest$ac_exeext conftest.$ac_ext
21987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21988
21989        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21990         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"
21991        else
21992         if test "$host_cpu" = ia64; then
21993           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21994           allow_undefined_flag_F77="-z nodefs"
21995           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"
21996         else
21997          # Determine the default libpath from the value encoded in an empty executable.
21998          cat >conftest.$ac_ext <<_ACEOF
21999       program main
22000
22001       end
22002 _ACEOF
22003 rm -f conftest.$ac_objext conftest$ac_exeext
22004 if { (ac_try="$ac_link"
22005 case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_link") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_f77_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest$ac_exeext &&
22020        $as_test_x conftest$ac_exeext; then
22021
22022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22023 }'`
22024 # Check for a 64-bit object if we didn't find anything.
22025 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; }
22026 }'`; fi
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031
22032 fi
22033
22034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22035       conftest$ac_exeext conftest.$ac_ext
22036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22037
22038          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22039           # Warning - without using the other run time loading flags,
22040           # -berok will link without error, but may produce a broken library.
22041           no_undefined_flag_F77=' ${wl}-bernotok'
22042           allow_undefined_flag_F77=' ${wl}-berok'
22043           # Exported symbols can be pulled into shared objects from archives
22044           whole_archive_flag_spec_F77='$convenience'
22045           archive_cmds_need_lc_F77=yes
22046           # This is similar to how AIX traditionally builds its shared libraries.
22047           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'
22048         fi
22049       fi
22050       ;;
22051
22052     amigaos*)
22053       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)'
22054       hardcode_libdir_flag_spec_F77='-L$libdir'
22055       hardcode_minus_L_F77=yes
22056       # see comment about different semantics on the GNU ld section
22057       ld_shlibs_F77=no
22058       ;;
22059
22060     bsdi[45]*)
22061       export_dynamic_flag_spec_F77=-rdynamic
22062       ;;
22063
22064     cygwin* | mingw* | pw32*)
22065       # When not using gcc, we currently assume that we are using
22066       # Microsoft Visual C++.
22067       # hardcode_libdir_flag_spec is actually meaningless, as there is
22068       # no search path for DLLs.
22069       hardcode_libdir_flag_spec_F77=' '
22070       allow_undefined_flag_F77=unsupported
22071       # Tell ltmain to make .lib files, not .a files.
22072       libext=lib
22073       # Tell ltmain to make .dll files, not .so files.
22074       shrext_cmds=".dll"
22075       # FIXME: Setting linknames here is a bad hack.
22076       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22077       # The linker will automatically build a .lib file if we build a DLL.
22078       old_archive_From_new_cmds_F77='true'
22079       # FIXME: Should let the user specify the lib program.
22080       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22081       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22082       enable_shared_with_static_runtimes_F77=yes
22083       ;;
22084
22085     darwin* | rhapsody*)
22086       case $host_os in
22087         rhapsody* | darwin1.[012])
22088          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22089          ;;
22090        *) # Darwin 1.3 on
22091          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22092            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22093          else
22094            case ${MACOSX_DEPLOYMENT_TARGET} in
22095              10.[012])
22096                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22097                ;;
22098              10.*)
22099                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22100                ;;
22101            esac
22102          fi
22103          ;;
22104       esac
22105       archive_cmds_need_lc_F77=no
22106       hardcode_direct_F77=no
22107       hardcode_automatic_F77=yes
22108       hardcode_shlibpath_var_F77=unsupported
22109       whole_archive_flag_spec_F77=''
22110       link_all_deplibs_F77=yes
22111     if test "$GCC" = yes ; then
22112         output_verbose_link_cmd='echo'
22113         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22114       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22115       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22116       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}'
22117       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}'
22118     else
22119       case $cc_basename in
22120         xlc*)
22121          output_verbose_link_cmd='echo'
22122          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22123          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22124           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22125          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}'
22126           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}'
22127           ;;
22128        *)
22129          ld_shlibs_F77=no
22130           ;;
22131       esac
22132     fi
22133       ;;
22134
22135     dgux*)
22136       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22137       hardcode_libdir_flag_spec_F77='-L$libdir'
22138       hardcode_shlibpath_var_F77=no
22139       ;;
22140
22141     freebsd1*)
22142       ld_shlibs_F77=no
22143       ;;
22144
22145     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22146     # support.  Future versions do this automatically, but an explicit c++rt0.o
22147     # does not break anything, and helps significantly (at the cost of a little
22148     # extra space).
22149     freebsd2.2*)
22150       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22151       hardcode_libdir_flag_spec_F77='-R$libdir'
22152       hardcode_direct_F77=yes
22153       hardcode_shlibpath_var_F77=no
22154       ;;
22155
22156     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22157     freebsd2*)
22158       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22159       hardcode_direct_F77=yes
22160       hardcode_minus_L_F77=yes
22161       hardcode_shlibpath_var_F77=no
22162       ;;
22163
22164     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22165     freebsd* | kfreebsd*-gnu | dragonfly*)
22166       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22167       hardcode_libdir_flag_spec_F77='-R$libdir'
22168       hardcode_direct_F77=yes
22169       hardcode_shlibpath_var_F77=no
22170       ;;
22171
22172     hpux9*)
22173       if test "$GCC" = yes; then
22174         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'
22175       else
22176         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'
22177       fi
22178       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22179       hardcode_libdir_separator_F77=:
22180       hardcode_direct_F77=yes
22181
22182       # hardcode_minus_L: Not really in the search PATH,
22183       # but as the default location of the library.
22184       hardcode_minus_L_F77=yes
22185       export_dynamic_flag_spec_F77='${wl}-E'
22186       ;;
22187
22188     hpux10*)
22189       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22190         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22191       else
22192         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22193       fi
22194       if test "$with_gnu_ld" = no; then
22195         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22196         hardcode_libdir_separator_F77=:
22197
22198         hardcode_direct_F77=yes
22199         export_dynamic_flag_spec_F77='${wl}-E'
22200
22201         # hardcode_minus_L: Not really in the search PATH,
22202         # but as the default location of the library.
22203         hardcode_minus_L_F77=yes
22204       fi
22205       ;;
22206
22207     hpux11*)
22208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22209         case $host_cpu in
22210         hppa*64*)
22211           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22212           ;;
22213         ia64*)
22214           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22215           ;;
22216         *)
22217           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22218           ;;
22219         esac
22220       else
22221         case $host_cpu in
22222         hppa*64*)
22223           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22224           ;;
22225         ia64*)
22226           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22227           ;;
22228         *)
22229           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22230           ;;
22231         esac
22232       fi
22233       if test "$with_gnu_ld" = no; then
22234         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22235         hardcode_libdir_separator_F77=:
22236
22237         case $host_cpu in
22238         hppa*64*|ia64*)
22239           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22240           hardcode_direct_F77=no
22241           hardcode_shlibpath_var_F77=no
22242           ;;
22243         *)
22244           hardcode_direct_F77=yes
22245           export_dynamic_flag_spec_F77='${wl}-E'
22246
22247           # hardcode_minus_L: Not really in the search PATH,
22248           # but as the default location of the library.
22249           hardcode_minus_L_F77=yes
22250           ;;
22251         esac
22252       fi
22253       ;;
22254
22255     irix5* | irix6* | nonstopux*)
22256       if test "$GCC" = yes; then
22257         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'
22258       else
22259         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'
22260         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22261       fi
22262       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22263       hardcode_libdir_separator_F77=:
22264       link_all_deplibs_F77=yes
22265       ;;
22266
22267     netbsd*)
22268       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22269         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22270       else
22271         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22272       fi
22273       hardcode_libdir_flag_spec_F77='-R$libdir'
22274       hardcode_direct_F77=yes
22275       hardcode_shlibpath_var_F77=no
22276       ;;
22277
22278     newsos6)
22279       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22280       hardcode_direct_F77=yes
22281       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22282       hardcode_libdir_separator_F77=:
22283       hardcode_shlibpath_var_F77=no
22284       ;;
22285
22286     openbsd*)
22287       hardcode_direct_F77=yes
22288       hardcode_shlibpath_var_F77=no
22289       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22290         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22291         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22292         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22293         export_dynamic_flag_spec_F77='${wl}-E'
22294       else
22295        case $host_os in
22296          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22297            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22298            hardcode_libdir_flag_spec_F77='-R$libdir'
22299            ;;
22300          *)
22301            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22302            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22303            ;;
22304        esac
22305       fi
22306       ;;
22307
22308     os2*)
22309       hardcode_libdir_flag_spec_F77='-L$libdir'
22310       hardcode_minus_L_F77=yes
22311       allow_undefined_flag_F77=unsupported
22312       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'
22313       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22314       ;;
22315
22316     osf3*)
22317       if test "$GCC" = yes; then
22318         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22319         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'
22320       else
22321         allow_undefined_flag_F77=' -expect_unresolved \*'
22322         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'
22323       fi
22324       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22325       hardcode_libdir_separator_F77=:
22326       ;;
22327
22328     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22329       if test "$GCC" = yes; then
22330         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22331         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'
22332         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22333       else
22334         allow_undefined_flag_F77=' -expect_unresolved \*'
22335         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'
22336         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~
22337         $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'
22338
22339         # Both c and cxx compiler support -rpath directly
22340         hardcode_libdir_flag_spec_F77='-rpath $libdir'
22341       fi
22342       hardcode_libdir_separator_F77=:
22343       ;;
22344
22345     solaris*)
22346       no_undefined_flag_F77=' -z text'
22347       if test "$GCC" = yes; then
22348         wlarc='${wl}'
22349         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22350         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22351           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22352       else
22353         wlarc=''
22354         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22355         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22356         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22357       fi
22358       hardcode_libdir_flag_spec_F77='-R$libdir'
22359       hardcode_shlibpath_var_F77=no
22360       case $host_os in
22361       solaris2.[0-5] | solaris2.[0-5].*) ;;
22362       *)
22363         # The compiler driver will combine linker options so we
22364         # cannot just pass the convience library names through
22365         # without $wl, iff we do not link with $LD.
22366         # Luckily, gcc supports the same syntax we need for Sun Studio.
22367         # Supported since Solaris 2.6 (maybe 2.5.1?)
22368         case $wlarc in
22369         '')
22370           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22371         *)
22372           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' ;;
22373         esac ;;
22374       esac
22375       link_all_deplibs_F77=yes
22376       ;;
22377
22378     sunos4*)
22379       if test "x$host_vendor" = xsequent; then
22380         # Use $CC to link under sequent, because it throws in some extra .o
22381         # files that make .init and .fini sections work.
22382         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22383       else
22384         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22385       fi
22386       hardcode_libdir_flag_spec_F77='-L$libdir'
22387       hardcode_direct_F77=yes
22388       hardcode_minus_L_F77=yes
22389       hardcode_shlibpath_var_F77=no
22390       ;;
22391
22392     sysv4)
22393       case $host_vendor in
22394         sni)
22395           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22396           hardcode_direct_F77=yes # is this really true???
22397         ;;
22398         siemens)
22399           ## LD is ld it makes a PLAMLIB
22400           ## CC just makes a GrossModule.
22401           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22402           reload_cmds_F77='$CC -r -o $output$reload_objs'
22403           hardcode_direct_F77=no
22404         ;;
22405         motorola)
22406           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22407           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22408         ;;
22409       esac
22410       runpath_var='LD_RUN_PATH'
22411       hardcode_shlibpath_var_F77=no
22412       ;;
22413
22414     sysv4.3*)
22415       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22416       hardcode_shlibpath_var_F77=no
22417       export_dynamic_flag_spec_F77='-Bexport'
22418       ;;
22419
22420     sysv4*MP*)
22421       if test -d /usr/nec; then
22422         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22423         hardcode_shlibpath_var_F77=no
22424         runpath_var=LD_RUN_PATH
22425         hardcode_runpath_var=yes
22426         ld_shlibs_F77=yes
22427       fi
22428       ;;
22429
22430     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22431       no_undefined_flag_F77='${wl}-z,text'
22432       archive_cmds_need_lc_F77=no
22433       hardcode_shlibpath_var_F77=no
22434       runpath_var='LD_RUN_PATH'
22435
22436       if test "$GCC" = yes; then
22437         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22438         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22439       else
22440         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22441         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22442       fi
22443       ;;
22444
22445     sysv5* | sco3.2v5* | sco5v6*)
22446       # Note: We can NOT use -z defs as we might desire, because we do not
22447       # link with -lc, and that would cause any symbols used from libc to
22448       # always be unresolved, which means just about no library would
22449       # ever link correctly.  If we're not using GNU ld we use -z text
22450       # though, which does catch some bad symbols but isn't as heavy-handed
22451       # as -z defs.
22452       no_undefined_flag_F77='${wl}-z,text'
22453       allow_undefined_flag_F77='${wl}-z,nodefs'
22454       archive_cmds_need_lc_F77=no
22455       hardcode_shlibpath_var_F77=no
22456       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22457       hardcode_libdir_separator_F77=':'
22458       link_all_deplibs_F77=yes
22459       export_dynamic_flag_spec_F77='${wl}-Bexport'
22460       runpath_var='LD_RUN_PATH'
22461
22462       if test "$GCC" = yes; then
22463         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22464         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22465       else
22466         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22467         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22468       fi
22469       ;;
22470
22471     uts4*)
22472       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22473       hardcode_libdir_flag_spec_F77='-L$libdir'
22474       hardcode_shlibpath_var_F77=no
22475       ;;
22476
22477     *)
22478       ld_shlibs_F77=no
22479       ;;
22480     esac
22481   fi
22482
22483 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22484 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22485 test "$ld_shlibs_F77" = no && can_build_shared=no
22486
22487 #
22488 # Do we need to explicitly link libc?
22489 #
22490 case "x$archive_cmds_need_lc_F77" in
22491 x|xyes)
22492   # Assume -lc should be added
22493   archive_cmds_need_lc_F77=yes
22494
22495   if test "$enable_shared" = yes && test "$GCC" = yes; then
22496     case $archive_cmds_F77 in
22497     *'~'*)
22498       # FIXME: we may have to deal with multi-command sequences.
22499       ;;
22500     '$CC '*)
22501       # Test whether the compiler implicitly links with -lc since on some
22502       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22503       # to ld, don't add -lc before -lgcc.
22504       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22506       $rm conftest*
22507       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22508
22509       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22510   (eval $ac_compile) 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } 2>conftest.err; then
22514         soname=conftest
22515         lib=conftest
22516         libobjs=conftest.$ac_objext
22517         deplibs=
22518         wl=$lt_prog_compiler_wl_F77
22519         pic_flag=$lt_prog_compiler_pic_F77
22520         compiler_flags=-v
22521         linker_flags=-v
22522         verstring=
22523         output_objdir=.
22524         libname=conftest
22525         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22526         allow_undefined_flag_F77=
22527         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22528   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }
22532         then
22533           archive_cmds_need_lc_F77=no
22534         else
22535           archive_cmds_need_lc_F77=yes
22536         fi
22537         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22538       else
22539         cat conftest.err 1>&5
22540       fi
22541       $rm conftest*
22542       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22543 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22544       ;;
22545     esac
22546   fi
22547   ;;
22548 esac
22549
22550 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22551 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22552 library_names_spec=
22553 libname_spec='lib$name'
22554 soname_spec=
22555 shrext_cmds=".so"
22556 postinstall_cmds=
22557 postuninstall_cmds=
22558 finish_cmds=
22559 finish_eval=
22560 shlibpath_var=
22561 shlibpath_overrides_runpath=unknown
22562 version_type=none
22563 dynamic_linker="$host_os ld.so"
22564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22565 if test "$GCC" = yes; then
22566   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22567   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22568     # if the path contains ";" then we assume it to be the separator
22569     # otherwise default to the standard path separator (i.e. ":") - it is
22570     # assumed that no part of a normal pathname contains ";" but that should
22571     # okay in the real world where ";" in dirpaths is itself problematic.
22572     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22573   else
22574     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22575   fi
22576 else
22577   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22578 fi
22579 need_lib_prefix=unknown
22580 hardcode_into_libs=no
22581
22582 # when you set need_version to no, make sure it does not cause -set_version
22583 # flags to be left without arguments
22584 need_version=unknown
22585
22586 case $host_os in
22587 aix3*)
22588   version_type=linux
22589   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22590   shlibpath_var=LIBPATH
22591
22592   # AIX 3 has no versioning support, so we append a major version to the name.
22593   soname_spec='${libname}${release}${shared_ext}$major'
22594   ;;
22595
22596 aix4* | aix5*)
22597   version_type=linux
22598   need_lib_prefix=no
22599   need_version=no
22600   hardcode_into_libs=yes
22601   if test "$host_cpu" = ia64; then
22602     # AIX 5 supports IA64
22603     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22604     shlibpath_var=LD_LIBRARY_PATH
22605   else
22606     # With GCC up to 2.95.x, collect2 would create an import file
22607     # for dependence libraries.  The import file would start with
22608     # the line `#! .'.  This would cause the generated library to
22609     # depend on `.', always an invalid library.  This was fixed in
22610     # development snapshots of GCC prior to 3.0.
22611     case $host_os in
22612       aix4 | aix4.[01] | aix4.[01].*)
22613       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22614            echo ' yes '
22615            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22616         :
22617       else
22618         can_build_shared=no
22619       fi
22620       ;;
22621     esac
22622     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22623     # soname into executable. Probably we can add versioning support to
22624     # collect2, so additional links can be useful in future.
22625     if test "$aix_use_runtimelinking" = yes; then
22626       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22627       # instead of lib<name>.a to let people know that these are not
22628       # typical AIX shared libraries.
22629       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630     else
22631       # We preserve .a as extension for shared libraries through AIX4.2
22632       # and later when we are not doing run time linking.
22633       library_names_spec='${libname}${release}.a $libname.a'
22634       soname_spec='${libname}${release}${shared_ext}$major'
22635     fi
22636     shlibpath_var=LIBPATH
22637   fi
22638   ;;
22639
22640 amigaos*)
22641   library_names_spec='$libname.ixlibrary $libname.a'
22642   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22643   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'
22644   ;;
22645
22646 beos*)
22647   library_names_spec='${libname}${shared_ext}'
22648   dynamic_linker="$host_os ld.so"
22649   shlibpath_var=LIBRARY_PATH
22650   ;;
22651
22652 bsdi[45]*)
22653   version_type=linux
22654   need_version=no
22655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22656   soname_spec='${libname}${release}${shared_ext}$major'
22657   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22658   shlibpath_var=LD_LIBRARY_PATH
22659   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22660   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22661   # the default ld.so.conf also contains /usr/contrib/lib and
22662   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22663   # libtool to hard-code these into programs
22664   ;;
22665
22666 cygwin* | mingw* | pw32*)
22667   version_type=windows
22668   shrext_cmds=".dll"
22669   need_version=no
22670   need_lib_prefix=no
22671
22672   case $GCC,$host_os in
22673   yes,cygwin* | yes,mingw* | yes,pw32*)
22674     library_names_spec='$libname.dll.a'
22675     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22676     postinstall_cmds='base_file=`basename \${file}`~
22677       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22678       dldir=$destdir/`dirname \$dlpath`~
22679       test -d \$dldir || mkdir -p \$dldir~
22680       $install_prog $dir/$dlname \$dldir/$dlname~
22681       chmod a+x \$dldir/$dlname'
22682     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22683       dlpath=$dir/\$dldll~
22684        $rm \$dlpath'
22685     shlibpath_overrides_runpath=yes
22686
22687     case $host_os in
22688     cygwin*)
22689       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22690       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22691       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22692       ;;
22693     mingw*)
22694       # MinGW DLLs use traditional 'lib' prefix
22695       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22696       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22697       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22698         # It is most probably a Windows format PATH printed by
22699         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22700         # path with ; separators, and with drive letters. We can handle the
22701         # drive letters (cygwin fileutils understands them), so leave them,
22702         # especially as we might pass files found there to a mingw objdump,
22703         # which wouldn't understand a cygwinified path. Ahh.
22704         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22705       else
22706         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22707       fi
22708       ;;
22709     pw32*)
22710       # pw32 DLLs use 'pw' prefix rather than 'lib'
22711       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22712       ;;
22713     esac
22714     ;;
22715
22716   *)
22717     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22718     ;;
22719   esac
22720   dynamic_linker='Win32 ld.exe'
22721   # FIXME: first we should search . and the directory the executable is in
22722   shlibpath_var=PATH
22723   ;;
22724
22725 darwin* | rhapsody*)
22726   dynamic_linker="$host_os dyld"
22727   version_type=darwin
22728   need_lib_prefix=no
22729   need_version=no
22730   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22731   soname_spec='${libname}${release}${major}$shared_ext'
22732   shlibpath_overrides_runpath=yes
22733   shlibpath_var=DYLD_LIBRARY_PATH
22734   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22735   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22736   if test "$GCC" = yes; then
22737     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"`
22738   else
22739     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22740   fi
22741   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22742   ;;
22743
22744 dgux*)
22745   version_type=linux
22746   need_lib_prefix=no
22747   need_version=no
22748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22749   soname_spec='${libname}${release}${shared_ext}$major'
22750   shlibpath_var=LD_LIBRARY_PATH
22751   ;;
22752
22753 freebsd1*)
22754   dynamic_linker=no
22755   ;;
22756
22757 kfreebsd*-gnu)
22758   version_type=linux
22759   need_lib_prefix=no
22760   need_version=no
22761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22762   soname_spec='${libname}${release}${shared_ext}$major'
22763   shlibpath_var=LD_LIBRARY_PATH
22764   shlibpath_overrides_runpath=no
22765   hardcode_into_libs=yes
22766   dynamic_linker='GNU ld.so'
22767   ;;
22768
22769 freebsd* | dragonfly*)
22770   # DragonFly does not have aout.  When/if they implement a new
22771   # versioning mechanism, adjust this.
22772   if test -x /usr/bin/objformat; then
22773     objformat=`/usr/bin/objformat`
22774   else
22775     case $host_os in
22776     freebsd[123]*) objformat=aout ;;
22777     *) objformat=elf ;;
22778     esac
22779   fi
22780   version_type=freebsd-$objformat
22781   case $version_type in
22782     freebsd-elf*)
22783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22784       need_version=no
22785       need_lib_prefix=no
22786       ;;
22787     freebsd-*)
22788       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22789       need_version=yes
22790       ;;
22791   esac
22792   shlibpath_var=LD_LIBRARY_PATH
22793   case $host_os in
22794   freebsd2*)
22795     shlibpath_overrides_runpath=yes
22796     ;;
22797   freebsd3.[01]* | freebsdelf3.[01]*)
22798     shlibpath_overrides_runpath=yes
22799     hardcode_into_libs=yes
22800     ;;
22801   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22802   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22803     shlibpath_overrides_runpath=no
22804     hardcode_into_libs=yes
22805     ;;
22806   freebsd*) # from 4.6 on
22807     shlibpath_overrides_runpath=yes
22808     hardcode_into_libs=yes
22809     ;;
22810   esac
22811   ;;
22812
22813 gnu*)
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   hardcode_into_libs=yes
22821   ;;
22822
22823 hpux9* | hpux10* | hpux11*)
22824   # Give a soname corresponding to the major version so that dld.sl refuses to
22825   # link against other versions.
22826   version_type=sunos
22827   need_lib_prefix=no
22828   need_version=no
22829   case $host_cpu in
22830   ia64*)
22831     shrext_cmds='.so'
22832     hardcode_into_libs=yes
22833     dynamic_linker="$host_os dld.so"
22834     shlibpath_var=LD_LIBRARY_PATH
22835     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22836     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837     soname_spec='${libname}${release}${shared_ext}$major'
22838     if test "X$HPUX_IA64_MODE" = X32; then
22839       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22840     else
22841       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22842     fi
22843     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22844     ;;
22845    hppa*64*)
22846      shrext_cmds='.sl'
22847      hardcode_into_libs=yes
22848      dynamic_linker="$host_os dld.sl"
22849      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22850      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22852      soname_spec='${libname}${release}${shared_ext}$major'
22853      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22854      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22855      ;;
22856    *)
22857     shrext_cmds='.sl'
22858     dynamic_linker="$host_os dld.sl"
22859     shlibpath_var=SHLIB_PATH
22860     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22862     soname_spec='${libname}${release}${shared_ext}$major'
22863     ;;
22864   esac
22865   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22866   postinstall_cmds='chmod 555 $lib'
22867   ;;
22868
22869 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22876   shlibpath_var=LD_LIBRARY_PATH
22877   shlibpath_overrides_runpath=no
22878   hardcode_into_libs=yes
22879   ;;
22880
22881 irix5* | irix6* | nonstopux*)
22882   case $host_os in
22883     nonstopux*) version_type=nonstopux ;;
22884     *)
22885         if test "$lt_cv_prog_gnu_ld" = yes; then
22886                 version_type=linux
22887         else
22888                 version_type=irix
22889         fi ;;
22890   esac
22891   need_lib_prefix=no
22892   need_version=no
22893   soname_spec='${libname}${release}${shared_ext}$major'
22894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22895   case $host_os in
22896   irix5* | nonstopux*)
22897     libsuff= shlibsuff=
22898     ;;
22899   *)
22900     case $LD in # libtool.m4 will add one of these switches to LD
22901     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22902       libsuff= shlibsuff= libmagic=32-bit;;
22903     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22904       libsuff=32 shlibsuff=N32 libmagic=N32;;
22905     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22906       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22907     *) libsuff= shlibsuff= libmagic=never-match;;
22908     esac
22909     ;;
22910   esac
22911   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22912   shlibpath_overrides_runpath=no
22913   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22914   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22915   hardcode_into_libs=yes
22916   ;;
22917
22918 # No shared lib support for Linux oldld, aout, or coff.
22919 linux*oldld* | linux*aout* | linux*coff*)
22920   dynamic_linker=no
22921   ;;
22922
22923 # This must be Linux ELF.
22924 linux*)
22925   version_type=linux
22926   need_lib_prefix=no
22927   need_version=no
22928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929   soname_spec='${libname}${release}${shared_ext}$major'
22930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22931   shlibpath_var=LD_LIBRARY_PATH
22932   shlibpath_overrides_runpath=no
22933   # This implies no fast_install, which is unacceptable.
22934   # Some rework will be needed to allow for fast_install
22935   # before this can be enabled.
22936   hardcode_into_libs=yes
22937
22938   # find out which ABI we are using
22939   libsuff=
22940   case "$host_cpu" in
22941   x86_64*|s390x*|powerpc64*)
22942     echo '#line 22942 "configure"' > conftest.$ac_ext
22943     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22944   (eval $ac_compile) 2>&5
22945   ac_status=$?
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); }; then
22948       case `/usr/bin/file conftest.$ac_objext` in
22949       *64-bit*)
22950         libsuff=64
22951         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
22952         ;;
22953       esac
22954     fi
22955     rm -rf conftest*
22956     ;;
22957   esac
22958
22959   # Append ld.so.conf contents to the search path
22960   if test -f /etc/ld.so.conf; then
22961     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' ' '`
22962     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
22963   fi
22964
22965   # We used to test for /lib/ld.so.1 and disable shared libraries on
22966   # powerpc, because MkLinux only supported shared libraries with the
22967   # GNU dynamic linker.  Since this was broken with cross compilers,
22968   # most powerpc-linux boxes support dynamic linking these days and
22969   # people can always --disable-shared, the test was removed, and we
22970   # assume the GNU/Linux dynamic linker is in use.
22971   dynamic_linker='GNU/Linux ld.so'
22972   ;;
22973
22974 knetbsd*-gnu)
22975   version_type=linux
22976   need_lib_prefix=no
22977   need_version=no
22978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22979   soname_spec='${libname}${release}${shared_ext}$major'
22980   shlibpath_var=LD_LIBRARY_PATH
22981   shlibpath_overrides_runpath=no
22982   hardcode_into_libs=yes
22983   dynamic_linker='GNU ld.so'
22984   ;;
22985
22986 netbsd*)
22987   version_type=sunos
22988   need_lib_prefix=no
22989   need_version=no
22990   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22992     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22993     dynamic_linker='NetBSD (a.out) ld.so'
22994   else
22995     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22996     soname_spec='${libname}${release}${shared_ext}$major'
22997     dynamic_linker='NetBSD ld.elf_so'
22998   fi
22999   shlibpath_var=LD_LIBRARY_PATH
23000   shlibpath_overrides_runpath=yes
23001   hardcode_into_libs=yes
23002   ;;
23003
23004 newsos6)
23005   version_type=linux
23006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007   shlibpath_var=LD_LIBRARY_PATH
23008   shlibpath_overrides_runpath=yes
23009   ;;
23010
23011 nto-qnx*)
23012   version_type=linux
23013   need_lib_prefix=no
23014   need_version=no
23015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23016   soname_spec='${libname}${release}${shared_ext}$major'
23017   shlibpath_var=LD_LIBRARY_PATH
23018   shlibpath_overrides_runpath=yes
23019   ;;
23020
23021 openbsd*)
23022   version_type=sunos
23023   sys_lib_dlsearch_path_spec="/usr/lib"
23024   need_lib_prefix=no
23025   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23026   case $host_os in
23027     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23028     *)                         need_version=no  ;;
23029   esac
23030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23031   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23032   shlibpath_var=LD_LIBRARY_PATH
23033   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23034     case $host_os in
23035       openbsd2.[89] | openbsd2.[89].*)
23036         shlibpath_overrides_runpath=no
23037         ;;
23038       *)
23039         shlibpath_overrides_runpath=yes
23040         ;;
23041       esac
23042   else
23043     shlibpath_overrides_runpath=yes
23044   fi
23045   ;;
23046
23047 os2*)
23048   libname_spec='$name'
23049   shrext_cmds=".dll"
23050   need_lib_prefix=no
23051   library_names_spec='$libname${shared_ext} $libname.a'
23052   dynamic_linker='OS/2 ld.exe'
23053   shlibpath_var=LIBPATH
23054   ;;
23055
23056 osf3* | osf4* | osf5*)
23057   version_type=osf
23058   need_lib_prefix=no
23059   need_version=no
23060   soname_spec='${libname}${release}${shared_ext}$major'
23061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23062   shlibpath_var=LD_LIBRARY_PATH
23063   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23064   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23065   ;;
23066
23067 solaris*)
23068   version_type=linux
23069   need_lib_prefix=no
23070   need_version=no
23071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23072   soname_spec='${libname}${release}${shared_ext}$major'
23073   shlibpath_var=LD_LIBRARY_PATH
23074   shlibpath_overrides_runpath=yes
23075   hardcode_into_libs=yes
23076   # ldd complains unless libraries are executable
23077   postinstall_cmds='chmod +x $lib'
23078   ;;
23079
23080 sunos4*)
23081   version_type=sunos
23082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23083   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23084   shlibpath_var=LD_LIBRARY_PATH
23085   shlibpath_overrides_runpath=yes
23086   if test "$with_gnu_ld" = yes; then
23087     need_lib_prefix=no
23088   fi
23089   need_version=yes
23090   ;;
23091
23092 sysv4 | sysv4.3*)
23093   version_type=linux
23094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095   soname_spec='${libname}${release}${shared_ext}$major'
23096   shlibpath_var=LD_LIBRARY_PATH
23097   case $host_vendor in
23098     sni)
23099       shlibpath_overrides_runpath=no
23100       need_lib_prefix=no
23101       export_dynamic_flag_spec='${wl}-Blargedynsym'
23102       runpath_var=LD_RUN_PATH
23103       ;;
23104     siemens)
23105       need_lib_prefix=no
23106       ;;
23107     motorola)
23108       need_lib_prefix=no
23109       need_version=no
23110       shlibpath_overrides_runpath=no
23111       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23112       ;;
23113   esac
23114   ;;
23115
23116 sysv4*MP*)
23117   if test -d /usr/nec ;then
23118     version_type=linux
23119     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23120     soname_spec='$libname${shared_ext}.$major'
23121     shlibpath_var=LD_LIBRARY_PATH
23122   fi
23123   ;;
23124
23125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23126   version_type=freebsd-elf
23127   need_lib_prefix=no
23128   need_version=no
23129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23130   soname_spec='${libname}${release}${shared_ext}$major'
23131   shlibpath_var=LD_LIBRARY_PATH
23132   hardcode_into_libs=yes
23133   if test "$with_gnu_ld" = yes; then
23134     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23135     shlibpath_overrides_runpath=no
23136   else
23137     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23138     shlibpath_overrides_runpath=yes
23139     case $host_os in
23140       sco3.2v5*)
23141         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23142         ;;
23143     esac
23144   fi
23145   sys_lib_dlsearch_path_spec='/usr/lib'
23146   ;;
23147
23148 uts4*)
23149   version_type=linux
23150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23151   soname_spec='${libname}${release}${shared_ext}$major'
23152   shlibpath_var=LD_LIBRARY_PATH
23153   ;;
23154
23155 *)
23156   dynamic_linker=no
23157   ;;
23158 esac
23159 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23160 echo "${ECHO_T}$dynamic_linker" >&6; }
23161 test "$dynamic_linker" = no && can_build_shared=no
23162
23163 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23164 if test "$GCC" = yes; then
23165   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23166 fi
23167
23168 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23169 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23170 hardcode_action_F77=
23171 if test -n "$hardcode_libdir_flag_spec_F77" || \
23172    test -n "$runpath_var_F77" || \
23173    test "X$hardcode_automatic_F77" = "Xyes" ; then
23174
23175   # We can hardcode non-existant directories.
23176   if test "$hardcode_direct_F77" != no &&
23177      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23178      # have to relink, otherwise we might link with an installed library
23179      # when we should be linking with a yet-to-be-installed one
23180      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23181      test "$hardcode_minus_L_F77" != no; then
23182     # Linking always hardcodes the temporary library directory.
23183     hardcode_action_F77=relink
23184   else
23185     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23186     hardcode_action_F77=immediate
23187   fi
23188 else
23189   # We cannot hardcode anything, or else we can only hardcode existing
23190   # directories.
23191   hardcode_action_F77=unsupported
23192 fi
23193 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23194 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23195
23196 if test "$hardcode_action_F77" = relink; then
23197   # Fast installation is not supported
23198   enable_fast_install=no
23199 elif test "$shlibpath_overrides_runpath" = yes ||
23200      test "$enable_shared" = no; then
23201   # Fast installation is not necessary
23202   enable_fast_install=needless
23203 fi
23204
23205
23206 # The else clause should only fire when bootstrapping the
23207 # libtool distribution, otherwise you forgot to ship ltmain.sh
23208 # with your package, and you will get complaints that there are
23209 # no rules to generate ltmain.sh.
23210 if test -f "$ltmain"; then
23211   # See if we are running on zsh, and set the options which allow our commands through
23212   # without removal of \ escapes.
23213   if test -n "${ZSH_VERSION+set}" ; then
23214     setopt NO_GLOB_SUBST
23215   fi
23216   # Now quote all the things that may contain metacharacters while being
23217   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23218   # variables and quote the copies for generation of the libtool script.
23219   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23220     SED SHELL STRIP \
23221     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23222     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23223     deplibs_check_method reload_flag reload_cmds need_locks \
23224     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23225     lt_cv_sys_global_symbol_to_c_name_address \
23226     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23227     old_postinstall_cmds old_postuninstall_cmds \
23228     compiler_F77 \
23229     CC_F77 \
23230     LD_F77 \
23231     lt_prog_compiler_wl_F77 \
23232     lt_prog_compiler_pic_F77 \
23233     lt_prog_compiler_static_F77 \
23234     lt_prog_compiler_no_builtin_flag_F77 \
23235     export_dynamic_flag_spec_F77 \
23236     thread_safe_flag_spec_F77 \
23237     whole_archive_flag_spec_F77 \
23238     enable_shared_with_static_runtimes_F77 \
23239     old_archive_cmds_F77 \
23240     old_archive_from_new_cmds_F77 \
23241     predep_objects_F77 \
23242     postdep_objects_F77 \
23243     predeps_F77 \
23244     postdeps_F77 \
23245     compiler_lib_search_path_F77 \
23246     archive_cmds_F77 \
23247     archive_expsym_cmds_F77 \
23248     postinstall_cmds_F77 \
23249     postuninstall_cmds_F77 \
23250     old_archive_from_expsyms_cmds_F77 \
23251     allow_undefined_flag_F77 \
23252     no_undefined_flag_F77 \
23253     export_symbols_cmds_F77 \
23254     hardcode_libdir_flag_spec_F77 \
23255     hardcode_libdir_flag_spec_ld_F77 \
23256     hardcode_libdir_separator_F77 \
23257     hardcode_automatic_F77 \
23258     module_cmds_F77 \
23259     module_expsym_cmds_F77 \
23260     lt_cv_prog_compiler_c_o_F77 \
23261     exclude_expsyms_F77 \
23262     include_expsyms_F77; do
23263
23264     case $var in
23265     old_archive_cmds_F77 | \
23266     old_archive_from_new_cmds_F77 | \
23267     archive_cmds_F77 | \
23268     archive_expsym_cmds_F77 | \
23269     module_cmds_F77 | \
23270     module_expsym_cmds_F77 | \
23271     old_archive_from_expsyms_cmds_F77 | \
23272     export_symbols_cmds_F77 | \
23273     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23274     postinstall_cmds | postuninstall_cmds | \
23275     old_postinstall_cmds | old_postuninstall_cmds | \
23276     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23277       # Double-quote double-evaled strings.
23278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23279       ;;
23280     *)
23281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23282       ;;
23283     esac
23284   done
23285
23286   case $lt_echo in
23287   *'\$0 --fallback-echo"')
23288     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23289     ;;
23290   esac
23291
23292 cfgfile="$ofile"
23293
23294   cat <<__EOF__ >> "$cfgfile"
23295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23296
23297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23298
23299 # Shell to use when invoking shell scripts.
23300 SHELL=$lt_SHELL
23301
23302 # Whether or not to build shared libraries.
23303 build_libtool_libs=$enable_shared
23304
23305 # Whether or not to build static libraries.
23306 build_old_libs=$enable_static
23307
23308 # Whether or not to add -lc for building shared libraries.
23309 build_libtool_need_lc=$archive_cmds_need_lc_F77
23310
23311 # Whether or not to disallow shared libs when runtime libs are static
23312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23313
23314 # Whether or not to optimize for fast installation.
23315 fast_install=$enable_fast_install
23316
23317 # The host system.
23318 host_alias=$host_alias
23319 host=$host
23320 host_os=$host_os
23321
23322 # The build system.
23323 build_alias=$build_alias
23324 build=$build
23325 build_os=$build_os
23326
23327 # An echo program that does not interpret backslashes.
23328 echo=$lt_echo
23329
23330 # The archiver.
23331 AR=$lt_AR
23332 AR_FLAGS=$lt_AR_FLAGS
23333
23334 # A C compiler.
23335 LTCC=$lt_LTCC
23336
23337 # LTCC compiler flags.
23338 LTCFLAGS=$lt_LTCFLAGS
23339
23340 # A language-specific compiler.
23341 CC=$lt_compiler_F77
23342
23343 # Is the compiler the GNU C compiler?
23344 with_gcc=$GCC_F77
23345
23346 # An ERE matcher.
23347 EGREP=$lt_EGREP
23348
23349 # The linker used to build libraries.
23350 LD=$lt_LD_F77
23351
23352 # Whether we need hard or soft links.
23353 LN_S=$lt_LN_S
23354
23355 # A BSD-compatible nm program.
23356 NM=$lt_NM
23357
23358 # A symbol stripping program
23359 STRIP=$lt_STRIP
23360
23361 # Used to examine libraries when file_magic_cmd begins "file"
23362 MAGIC_CMD=$MAGIC_CMD
23363
23364 # Used on cygwin: DLL creation program.
23365 DLLTOOL="$DLLTOOL"
23366
23367 # Used on cygwin: object dumper.
23368 OBJDUMP="$OBJDUMP"
23369
23370 # Used on cygwin: assembler.
23371 AS="$AS"
23372
23373 # The name of the directory that contains temporary libtool files.
23374 objdir=$objdir
23375
23376 # How to create reloadable object files.
23377 reload_flag=$lt_reload_flag
23378 reload_cmds=$lt_reload_cmds
23379
23380 # How to pass a linker flag through the compiler.
23381 wl=$lt_lt_prog_compiler_wl_F77
23382
23383 # Object file suffix (normally "o").
23384 objext="$ac_objext"
23385
23386 # Old archive suffix (normally "a").
23387 libext="$libext"
23388
23389 # Shared library suffix (normally ".so").
23390 shrext_cmds='$shrext_cmds'
23391
23392 # Executable file suffix (normally "").
23393 exeext="$exeext"
23394
23395 # Additional compiler flags for building library objects.
23396 pic_flag=$lt_lt_prog_compiler_pic_F77
23397 pic_mode=$pic_mode
23398
23399 # What is the maximum length of a command?
23400 max_cmd_len=$lt_cv_sys_max_cmd_len
23401
23402 # Does compiler simultaneously support -c and -o options?
23403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23404
23405 # Must we lock files when doing compilation?
23406 need_locks=$lt_need_locks
23407
23408 # Do we need the lib prefix for modules?
23409 need_lib_prefix=$need_lib_prefix
23410
23411 # Do we need a version for libraries?
23412 need_version=$need_version
23413
23414 # Whether dlopen is supported.
23415 dlopen_support=$enable_dlopen
23416
23417 # Whether dlopen of programs is supported.
23418 dlopen_self=$enable_dlopen_self
23419
23420 # Whether dlopen of statically linked programs is supported.
23421 dlopen_self_static=$enable_dlopen_self_static
23422
23423 # Compiler flag to prevent dynamic linking.
23424 link_static_flag=$lt_lt_prog_compiler_static_F77
23425
23426 # Compiler flag to turn off builtin functions.
23427 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23428
23429 # Compiler flag to allow reflexive dlopens.
23430 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23431
23432 # Compiler flag to generate shared objects directly from archives.
23433 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23434
23435 # Compiler flag to generate thread-safe objects.
23436 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23437
23438 # Library versioning type.
23439 version_type=$version_type
23440
23441 # Format of library name prefix.
23442 libname_spec=$lt_libname_spec
23443
23444 # List of archive names.  First name is the real one, the rest are links.
23445 # The last name is the one that the linker finds with -lNAME.
23446 library_names_spec=$lt_library_names_spec
23447
23448 # The coded name of the library, if different from the real name.
23449 soname_spec=$lt_soname_spec
23450
23451 # Commands used to build and install an old-style archive.
23452 RANLIB=$lt_RANLIB
23453 old_archive_cmds=$lt_old_archive_cmds_F77
23454 old_postinstall_cmds=$lt_old_postinstall_cmds
23455 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23456
23457 # Create an old-style archive from a shared archive.
23458 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23459
23460 # Create a temporary old-style archive to link instead of a shared archive.
23461 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23462
23463 # Commands used to build and install a shared archive.
23464 archive_cmds=$lt_archive_cmds_F77
23465 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23466 postinstall_cmds=$lt_postinstall_cmds
23467 postuninstall_cmds=$lt_postuninstall_cmds
23468
23469 # Commands used to build a loadable module (assumed same as above if empty)
23470 module_cmds=$lt_module_cmds_F77
23471 module_expsym_cmds=$lt_module_expsym_cmds_F77
23472
23473 # Commands to strip libraries.
23474 old_striplib=$lt_old_striplib
23475 striplib=$lt_striplib
23476
23477 # Dependencies to place before the objects being linked to create a
23478 # shared library.
23479 predep_objects=$lt_predep_objects_F77
23480
23481 # Dependencies to place after the objects being linked to create a
23482 # shared library.
23483 postdep_objects=$lt_postdep_objects_F77
23484
23485 # Dependencies to place before the objects being linked to create a
23486 # shared library.
23487 predeps=$lt_predeps_F77
23488
23489 # Dependencies to place after the objects being linked to create a
23490 # shared library.
23491 postdeps=$lt_postdeps_F77
23492
23493 # The library search path used internally by the compiler when linking
23494 # a shared library.
23495 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23496
23497 # Method to check whether dependent libraries are shared objects.
23498 deplibs_check_method=$lt_deplibs_check_method
23499
23500 # Command to use when deplibs_check_method == file_magic.
23501 file_magic_cmd=$lt_file_magic_cmd
23502
23503 # Flag that allows shared libraries with undefined symbols to be built.
23504 allow_undefined_flag=$lt_allow_undefined_flag_F77
23505
23506 # Flag that forces no undefined symbols.
23507 no_undefined_flag=$lt_no_undefined_flag_F77
23508
23509 # Commands used to finish a libtool library installation in a directory.
23510 finish_cmds=$lt_finish_cmds
23511
23512 # Same as above, but a single script fragment to be evaled but not shown.
23513 finish_eval=$lt_finish_eval
23514
23515 # Take the output of nm and produce a listing of raw symbols and C names.
23516 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23517
23518 # Transform the output of nm in a proper C declaration
23519 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23520
23521 # Transform the output of nm in a C name address pair
23522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23523
23524 # This is the shared library runtime path variable.
23525 runpath_var=$runpath_var
23526
23527 # This is the shared library path variable.
23528 shlibpath_var=$shlibpath_var
23529
23530 # Is shlibpath searched before the hard-coded library search path?
23531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23532
23533 # How to hardcode a shared library path into an executable.
23534 hardcode_action=$hardcode_action_F77
23535
23536 # Whether we should hardcode library paths into libraries.
23537 hardcode_into_libs=$hardcode_into_libs
23538
23539 # Flag to hardcode \$libdir into a binary during linking.
23540 # This must work even if \$libdir does not exist.
23541 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23542
23543 # If ld is used when linking, flag to hardcode \$libdir into
23544 # a binary during linking. This must work even if \$libdir does
23545 # not exist.
23546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23547
23548 # Whether we need a single -rpath flag with a separated argument.
23549 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23550
23551 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23552 # resulting binary.
23553 hardcode_direct=$hardcode_direct_F77
23554
23555 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23556 # resulting binary.
23557 hardcode_minus_L=$hardcode_minus_L_F77
23558
23559 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23560 # the resulting binary.
23561 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23562
23563 # Set to yes if building a shared library automatically hardcodes DIR into the library
23564 # and all subsequent libraries and executables linked against it.
23565 hardcode_automatic=$hardcode_automatic_F77
23566
23567 # Variables whose values should be saved in libtool wrapper scripts and
23568 # restored at relink time.
23569 variables_saved_for_relink="$variables_saved_for_relink"
23570
23571 # Whether libtool must link a program against all its dependency libraries.
23572 link_all_deplibs=$link_all_deplibs_F77
23573
23574 # Compile-time system search path for libraries
23575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23576
23577 # Run-time system search path for libraries
23578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23579
23580 # Fix the shell variable \$srcfile for the compiler.
23581 fix_srcfile_path="$fix_srcfile_path_F77"
23582
23583 # Set to yes if exported symbols are required.
23584 always_export_symbols=$always_export_symbols_F77
23585
23586 # The commands to list exported symbols.
23587 export_symbols_cmds=$lt_export_symbols_cmds_F77
23588
23589 # The commands to extract the exported symbol list from a shared archive.
23590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23591
23592 # Symbols that should not be listed in the preloaded symbols.
23593 exclude_expsyms=$lt_exclude_expsyms_F77
23594
23595 # Symbols that must always be exported.
23596 include_expsyms=$lt_include_expsyms_F77
23597
23598 # ### END LIBTOOL TAG CONFIG: $tagname
23599
23600 __EOF__
23601
23602
23603 else
23604   # If there is no Makefile yet, we rely on a make rule to execute
23605   # `config.status --recheck' to rerun these tests and create the
23606   # libtool script then.
23607   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23608   if test -f "$ltmain_in"; then
23609     test -f Makefile && make "$ltmain"
23610   fi
23611 fi
23612
23613
23614 ac_ext=c
23615 ac_cpp='$CPP $CPPFLAGS'
23616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23619
23620 CC="$lt_save_CC"
23621
23622         else
23623           tagname=""
23624         fi
23625         ;;
23626
23627       GCJ)
23628         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23629
23630
23631 # Source file extension for Java test sources.
23632 ac_ext=java
23633
23634 # Object file extension for compiled Java test sources.
23635 objext=o
23636 objext_GCJ=$objext
23637
23638 # Code to be used in simple compile tests
23639 lt_simple_compile_test_code="class foo {}\n"
23640
23641 # Code to be used in simple link tests
23642 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23643
23644 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23645
23646 # If no C compiler was specified, use CC.
23647 LTCC=${LTCC-"$CC"}
23648
23649 # If no C compiler flags were specified, use CFLAGS.
23650 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23651
23652 # Allow CC to be a program name with arguments.
23653 compiler=$CC
23654
23655
23656 # save warnings/boilerplate of simple test code
23657 ac_outfile=conftest.$ac_objext
23658 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23659 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23660 _lt_compiler_boilerplate=`cat conftest.err`
23661 $rm conftest*
23662
23663 ac_outfile=conftest.$ac_objext
23664 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23665 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23666 _lt_linker_boilerplate=`cat conftest.err`
23667 $rm conftest*
23668
23669
23670 # Allow CC to be a program name with arguments.
23671 lt_save_CC="$CC"
23672 CC=${GCJ-"gcj"}
23673 compiler=$CC
23674 compiler_GCJ=$CC
23675 for cc_temp in $compiler""; do
23676   case $cc_temp in
23677     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23678     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23679     \-*) ;;
23680     *) break;;
23681   esac
23682 done
23683 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23684
23685
23686 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23687 archive_cmds_need_lc_GCJ=no
23688
23689 old_archive_cmds_GCJ=$old_archive_cmds
23690
23691
23692 lt_prog_compiler_no_builtin_flag_GCJ=
23693
23694 if test "$GCC" = yes; then
23695   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23696
23697
23698 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23699 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23700 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   lt_cv_prog_compiler_rtti_exceptions=no
23704   ac_outfile=conftest.$ac_objext
23705    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23706    lt_compiler_flag="-fno-rtti -fno-exceptions"
23707    # Insert the option either (1) after the last *FLAGS variable, or
23708    # (2) before a word containing "conftest.", or (3) at the end.
23709    # Note that $ac_compile itself does not contain backslashes and begins
23710    # with a dollar sign (not a hyphen), so the echo should work correctly.
23711    # The option is referenced via a variable to avoid confusing sed.
23712    lt_compile=`echo "$ac_compile" | $SED \
23713    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23715    -e 's:$: $lt_compiler_flag:'`
23716    (eval echo "\"\$as_me:23716: $lt_compile\"" >&5)
23717    (eval "$lt_compile" 2>conftest.err)
23718    ac_status=$?
23719    cat conftest.err >&5
23720    echo "$as_me:23720: \$? = $ac_status" >&5
23721    if (exit $ac_status) && test -s "$ac_outfile"; then
23722      # The compiler can only warn and ignore the option if not recognized
23723      # So say no if there are warnings other than the usual output.
23724      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23725      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23726      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23727        lt_cv_prog_compiler_rtti_exceptions=yes
23728      fi
23729    fi
23730    $rm conftest*
23731
23732 fi
23733 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23734 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23735
23736 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23737     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23738 else
23739     :
23740 fi
23741
23742 fi
23743
23744 lt_prog_compiler_wl_GCJ=
23745 lt_prog_compiler_pic_GCJ=
23746 lt_prog_compiler_static_GCJ=
23747
23748 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23749 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23750
23751   if test "$GCC" = yes; then
23752     lt_prog_compiler_wl_GCJ='-Wl,'
23753     lt_prog_compiler_static_GCJ='-static'
23754
23755     case $host_os in
23756       aix*)
23757       # All AIX code is PIC.
23758       if test "$host_cpu" = ia64; then
23759         # AIX 5 now supports IA64 processor
23760         lt_prog_compiler_static_GCJ='-Bstatic'
23761       fi
23762       ;;
23763
23764     amigaos*)
23765       # FIXME: we need at least 68020 code to build shared libraries, but
23766       # adding the `-m68020' flag to GCC prevents building anything better,
23767       # like `-m68040'.
23768       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23769       ;;
23770
23771     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23772       # PIC is the default for these OSes.
23773       ;;
23774
23775     mingw* | pw32* | os2*)
23776       # This hack is so that the source file can tell whether it is being
23777       # built for inclusion in a dll (and should export symbols for example).
23778       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23779       ;;
23780
23781     darwin* | rhapsody*)
23782       # PIC is the default on this platform
23783       # Common symbols not allowed in MH_DYLIB files
23784       lt_prog_compiler_pic_GCJ='-fno-common'
23785       ;;
23786
23787     interix3*)
23788       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23789       # Instead, we relocate shared libraries at runtime.
23790       ;;
23791
23792     msdosdjgpp*)
23793       # Just because we use GCC doesn't mean we suddenly get shared libraries
23794       # on systems that don't support them.
23795       lt_prog_compiler_can_build_shared_GCJ=no
23796       enable_shared=no
23797       ;;
23798
23799     sysv4*MP*)
23800       if test -d /usr/nec; then
23801         lt_prog_compiler_pic_GCJ=-Kconform_pic
23802       fi
23803       ;;
23804
23805     hpux*)
23806       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23807       # not for PA HP-UX.
23808       case $host_cpu in
23809       hppa*64*|ia64*)
23810         # +Z the default
23811         ;;
23812       *)
23813         lt_prog_compiler_pic_GCJ='-fPIC'
23814         ;;
23815       esac
23816       ;;
23817
23818     *)
23819       lt_prog_compiler_pic_GCJ='-fPIC'
23820       ;;
23821     esac
23822   else
23823     # PORTME Check for flag to pass linker flags through the system compiler.
23824     case $host_os in
23825     aix*)
23826       lt_prog_compiler_wl_GCJ='-Wl,'
23827       if test "$host_cpu" = ia64; then
23828         # AIX 5 now supports IA64 processor
23829         lt_prog_compiler_static_GCJ='-Bstatic'
23830       else
23831         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23832       fi
23833       ;;
23834       darwin*)
23835         # PIC is the default on this platform
23836         # Common symbols not allowed in MH_DYLIB files
23837        case $cc_basename in
23838          xlc*)
23839          lt_prog_compiler_pic_GCJ='-qnocommon'
23840          lt_prog_compiler_wl_GCJ='-Wl,'
23841          ;;
23842        esac
23843        ;;
23844
23845     mingw* | pw32* | os2*)
23846       # This hack is so that the source file can tell whether it is being
23847       # built for inclusion in a dll (and should export symbols for example).
23848       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23849       ;;
23850
23851     hpux9* | hpux10* | hpux11*)
23852       lt_prog_compiler_wl_GCJ='-Wl,'
23853       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23854       # not for PA HP-UX.
23855       case $host_cpu in
23856       hppa*64*|ia64*)
23857         # +Z the default
23858         ;;
23859       *)
23860         lt_prog_compiler_pic_GCJ='+Z'
23861         ;;
23862       esac
23863       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23864       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23865       ;;
23866
23867     irix5* | irix6* | nonstopux*)
23868       lt_prog_compiler_wl_GCJ='-Wl,'
23869       # PIC (with -KPIC) is the default.
23870       lt_prog_compiler_static_GCJ='-non_shared'
23871       ;;
23872
23873     newsos6)
23874       lt_prog_compiler_pic_GCJ='-KPIC'
23875       lt_prog_compiler_static_GCJ='-Bstatic'
23876       ;;
23877
23878     linux*)
23879       case $cc_basename in
23880       icc* | ecc*)
23881         lt_prog_compiler_wl_GCJ='-Wl,'
23882         lt_prog_compiler_pic_GCJ='-KPIC'
23883         lt_prog_compiler_static_GCJ='-static'
23884         ;;
23885       pgcc* | pgf77* | pgf90* | pgf95*)
23886         # Portland Group compilers (*not* the Pentium gcc compiler,
23887         # which looks to be a dead project)
23888         lt_prog_compiler_wl_GCJ='-Wl,'
23889         lt_prog_compiler_pic_GCJ='-fpic'
23890         lt_prog_compiler_static_GCJ='-Bstatic'
23891         ;;
23892       ccc*)
23893         lt_prog_compiler_wl_GCJ='-Wl,'
23894         # All Alpha code is PIC.
23895         lt_prog_compiler_static_GCJ='-non_shared'
23896         ;;
23897       esac
23898       ;;
23899
23900     osf3* | osf4* | osf5*)
23901       lt_prog_compiler_wl_GCJ='-Wl,'
23902       # All OSF/1 code is PIC.
23903       lt_prog_compiler_static_GCJ='-non_shared'
23904       ;;
23905
23906     solaris*)
23907       lt_prog_compiler_pic_GCJ='-KPIC'
23908       lt_prog_compiler_static_GCJ='-Bstatic'
23909       case $cc_basename in
23910       f77* | f90* | f95*)
23911         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23912       *)
23913         lt_prog_compiler_wl_GCJ='-Wl,';;
23914       esac
23915       ;;
23916
23917     sunos4*)
23918       lt_prog_compiler_wl_GCJ='-Qoption ld '
23919       lt_prog_compiler_pic_GCJ='-PIC'
23920       lt_prog_compiler_static_GCJ='-Bstatic'
23921       ;;
23922
23923     sysv4 | sysv4.2uw2* | sysv4.3*)
23924       lt_prog_compiler_wl_GCJ='-Wl,'
23925       lt_prog_compiler_pic_GCJ='-KPIC'
23926       lt_prog_compiler_static_GCJ='-Bstatic'
23927       ;;
23928
23929     sysv4*MP*)
23930       if test -d /usr/nec ;then
23931         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23932         lt_prog_compiler_static_GCJ='-Bstatic'
23933       fi
23934       ;;
23935
23936     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23937       lt_prog_compiler_wl_GCJ='-Wl,'
23938       lt_prog_compiler_pic_GCJ='-KPIC'
23939       lt_prog_compiler_static_GCJ='-Bstatic'
23940       ;;
23941
23942     unicos*)
23943       lt_prog_compiler_wl_GCJ='-Wl,'
23944       lt_prog_compiler_can_build_shared_GCJ=no
23945       ;;
23946
23947     uts4*)
23948       lt_prog_compiler_pic_GCJ='-pic'
23949       lt_prog_compiler_static_GCJ='-Bstatic'
23950       ;;
23951
23952     *)
23953       lt_prog_compiler_can_build_shared_GCJ=no
23954       ;;
23955     esac
23956   fi
23957
23958 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23959 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23960
23961 #
23962 # Check to make sure the PIC flag actually works.
23963 #
23964 if test -n "$lt_prog_compiler_pic_GCJ"; then
23965
23966 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23967 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23968 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23969   echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971   lt_prog_compiler_pic_works_GCJ=no
23972   ac_outfile=conftest.$ac_objext
23973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23974    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23975    # Insert the option either (1) after the last *FLAGS variable, or
23976    # (2) before a word containing "conftest.", or (3) at the end.
23977    # Note that $ac_compile itself does not contain backslashes and begins
23978    # with a dollar sign (not a hyphen), so the echo should work correctly.
23979    # The option is referenced via a variable to avoid confusing sed.
23980    lt_compile=`echo "$ac_compile" | $SED \
23981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23983    -e 's:$: $lt_compiler_flag:'`
23984    (eval echo "\"\$as_me:23984: $lt_compile\"" >&5)
23985    (eval "$lt_compile" 2>conftest.err)
23986    ac_status=$?
23987    cat conftest.err >&5
23988    echo "$as_me:23988: \$? = $ac_status" >&5
23989    if (exit $ac_status) && test -s "$ac_outfile"; then
23990      # The compiler can only warn and ignore the option if not recognized
23991      # So say no if there are warnings other than the usual output.
23992      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23993      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23994      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23995        lt_prog_compiler_pic_works_GCJ=yes
23996      fi
23997    fi
23998    $rm conftest*
23999
24000 fi
24001 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24002 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24003
24004 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24005     case $lt_prog_compiler_pic_GCJ in
24006      "" | " "*) ;;
24007      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24008      esac
24009 else
24010     lt_prog_compiler_pic_GCJ=
24011      lt_prog_compiler_can_build_shared_GCJ=no
24012 fi
24013
24014 fi
24015 case $host_os in
24016   # For platforms which do not support PIC, -DPIC is meaningless:
24017   *djgpp*)
24018     lt_prog_compiler_pic_GCJ=
24019     ;;
24020   *)
24021     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24022     ;;
24023 esac
24024
24025 #
24026 # Check to make sure the static flag actually works.
24027 #
24028 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24029 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24030 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24031 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24032   echo $ECHO_N "(cached) $ECHO_C" >&6
24033 else
24034   lt_prog_compiler_static_works_GCJ=no
24035    save_LDFLAGS="$LDFLAGS"
24036    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24037    printf "$lt_simple_link_test_code" > conftest.$ac_ext
24038    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24039      # The linker can only warn and ignore the option if not recognized
24040      # So say no if there are warnings
24041      if test -s conftest.err; then
24042        # Append any errors to the config.log.
24043        cat conftest.err 1>&5
24044        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24045        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24046        if diff conftest.exp conftest.er2 >/dev/null; then
24047          lt_prog_compiler_static_works_GCJ=yes
24048        fi
24049      else
24050        lt_prog_compiler_static_works_GCJ=yes
24051      fi
24052    fi
24053    $rm conftest*
24054    LDFLAGS="$save_LDFLAGS"
24055
24056 fi
24057 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24058 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24059
24060 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24061     :
24062 else
24063     lt_prog_compiler_static_GCJ=
24064 fi
24065
24066
24067 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24069 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072   lt_cv_prog_compiler_c_o_GCJ=no
24073    $rm -r conftest 2>/dev/null
24074    mkdir conftest
24075    cd conftest
24076    mkdir out
24077    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24078
24079    lt_compiler_flag="-o out/conftest2.$ac_objext"
24080    # Insert the option either (1) after the last *FLAGS variable, or
24081    # (2) before a word containing "conftest.", or (3) at the end.
24082    # Note that $ac_compile itself does not contain backslashes and begins
24083    # with a dollar sign (not a hyphen), so the echo should work correctly.
24084    lt_compile=`echo "$ac_compile" | $SED \
24085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24087    -e 's:$: $lt_compiler_flag:'`
24088    (eval echo "\"\$as_me:24088: $lt_compile\"" >&5)
24089    (eval "$lt_compile" 2>out/conftest.err)
24090    ac_status=$?
24091    cat out/conftest.err >&5
24092    echo "$as_me:24092: \$? = $ac_status" >&5
24093    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24094    then
24095      # The compiler can only warn and ignore the option if not recognized
24096      # So say no if there are warnings
24097      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24098      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24099      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24100        lt_cv_prog_compiler_c_o_GCJ=yes
24101      fi
24102    fi
24103    chmod u+w . 2>&5
24104    $rm conftest*
24105    # SGI C++ compiler will create directory out/ii_files/ for
24106    # template instantiation
24107    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24108    $rm out/* && rmdir out
24109    cd ..
24110    rmdir conftest
24111    $rm conftest*
24112
24113 fi
24114 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24116
24117
24118 hard_links="nottested"
24119 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24120   # do not overwrite the value of need_locks provided by the user
24121   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24123   hard_links=yes
24124   $rm conftest*
24125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24126   touch conftest.a
24127   ln conftest.a conftest.b 2>&5 || hard_links=no
24128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24129   { echo "$as_me:$LINENO: result: $hard_links" >&5
24130 echo "${ECHO_T}$hard_links" >&6; }
24131   if test "$hard_links" = no; then
24132     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24134     need_locks=warn
24135   fi
24136 else
24137   need_locks=no
24138 fi
24139
24140 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24142
24143   runpath_var=
24144   allow_undefined_flag_GCJ=
24145   enable_shared_with_static_runtimes_GCJ=no
24146   archive_cmds_GCJ=
24147   archive_expsym_cmds_GCJ=
24148   old_archive_From_new_cmds_GCJ=
24149   old_archive_from_expsyms_cmds_GCJ=
24150   export_dynamic_flag_spec_GCJ=
24151   whole_archive_flag_spec_GCJ=
24152   thread_safe_flag_spec_GCJ=
24153   hardcode_libdir_flag_spec_GCJ=
24154   hardcode_libdir_flag_spec_ld_GCJ=
24155   hardcode_libdir_separator_GCJ=
24156   hardcode_direct_GCJ=no
24157   hardcode_minus_L_GCJ=no
24158   hardcode_shlibpath_var_GCJ=unsupported
24159   link_all_deplibs_GCJ=unknown
24160   hardcode_automatic_GCJ=no
24161   module_cmds_GCJ=
24162   module_expsym_cmds_GCJ=
24163   always_export_symbols_GCJ=no
24164   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24165   # include_expsyms should be a list of space-separated symbols to be *always*
24166   # included in the symbol list
24167   include_expsyms_GCJ=
24168   # exclude_expsyms can be an extended regexp of symbols to exclude
24169   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24170   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24171   # as well as any symbol that contains `d'.
24172   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24173   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24174   # platforms (ab)use it in PIC code, but their linkers get confused if
24175   # the symbol is explicitly referenced.  Since portable code cannot
24176   # rely on this symbol name, it's probably fine to never include it in
24177   # preloaded symbol tables.
24178   extract_expsyms_cmds=
24179   # Just being paranoid about ensuring that cc_basename is set.
24180   for cc_temp in $compiler""; do
24181   case $cc_temp in
24182     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24183     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24184     \-*) ;;
24185     *) break;;
24186   esac
24187 done
24188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24189
24190   case $host_os in
24191   cygwin* | mingw* | pw32*)
24192     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24193     # When not using gcc, we currently assume that we are using
24194     # Microsoft Visual C++.
24195     if test "$GCC" != yes; then
24196       with_gnu_ld=no
24197     fi
24198     ;;
24199   interix*)
24200     # we just hope/assume this is gcc and not c89 (= MSVC++)
24201     with_gnu_ld=yes
24202     ;;
24203   openbsd*)
24204     with_gnu_ld=no
24205     ;;
24206   esac
24207
24208   ld_shlibs_GCJ=yes
24209   if test "$with_gnu_ld" = yes; then
24210     # If archive_cmds runs LD, not CC, wlarc should be empty
24211     wlarc='${wl}'
24212
24213     # Set some defaults for GNU ld with shared library support. These
24214     # are reset later if shared libraries are not supported. Putting them
24215     # here allows them to be overridden if necessary.
24216     runpath_var=LD_RUN_PATH
24217     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24218     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24219     # ancient GNU ld didn't support --whole-archive et. al.
24220     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24221         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24222       else
24223         whole_archive_flag_spec_GCJ=
24224     fi
24225     supports_anon_versioning=no
24226     case `$LD -v 2>/dev/null` in
24227       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24228       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24229       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24230       *\ 2.11.*) ;; # other 2.11 versions
24231       *) supports_anon_versioning=yes ;;
24232     esac
24233
24234     # See if GNU ld supports shared libraries.
24235     case $host_os in
24236     aix3* | aix4* | aix5*)
24237       # On AIX/PPC, the GNU linker is very broken
24238       if test "$host_cpu" != ia64; then
24239         ld_shlibs_GCJ=no
24240         cat <<EOF 1>&2
24241
24242 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24243 *** to be unable to reliably create shared libraries on AIX.
24244 *** Therefore, libtool is disabling shared libraries support.  If you
24245 *** really care for shared libraries, you may want to modify your PATH
24246 *** so that a non-GNU linker is found, and then restart.
24247
24248 EOF
24249       fi
24250       ;;
24251
24252     amigaos*)
24253       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)'
24254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24255       hardcode_minus_L_GCJ=yes
24256
24257       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24258       # that the semantics of dynamic libraries on AmigaOS, at least up
24259       # to version 4, is to share data among multiple programs linked
24260       # with the same dynamic library.  Since this doesn't match the
24261       # behavior of shared libraries on other platforms, we can't use
24262       # them.
24263       ld_shlibs_GCJ=no
24264       ;;
24265
24266     beos*)
24267       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24268         allow_undefined_flag_GCJ=unsupported
24269         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24270         # support --undefined.  This deserves some investigation.  FIXME
24271         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24272       else
24273         ld_shlibs_GCJ=no
24274       fi
24275       ;;
24276
24277     cygwin* | mingw* | pw32*)
24278       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24279       # as there is no search path for DLLs.
24280       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24281       allow_undefined_flag_GCJ=unsupported
24282       always_export_symbols_GCJ=no
24283       enable_shared_with_static_runtimes_GCJ=yes
24284       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24285
24286       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24287         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24288         # If the export-symbols file already is a .def file (1st line
24289         # is EXPORTS), use it as is; otherwise, prepend...
24290         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24291           cp $export_symbols $output_objdir/$soname.def;
24292         else
24293           echo EXPORTS > $output_objdir/$soname.def;
24294           cat $export_symbols >> $output_objdir/$soname.def;
24295         fi~
24296         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24297       else
24298         ld_shlibs_GCJ=no
24299       fi
24300       ;;
24301
24302     interix3*)
24303       hardcode_direct_GCJ=no
24304       hardcode_shlibpath_var_GCJ=no
24305       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24306       export_dynamic_flag_spec_GCJ='${wl}-E'
24307       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24308       # Instead, shared libraries are loaded at an image base (0x10000000 by
24309       # default) and relocated if they conflict, which is a slow very memory
24310       # consuming and fragmenting process.  To avoid this, we pick a random,
24311       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24312       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24313       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'
24314       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'
24315       ;;
24316
24317     linux*)
24318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24319         tmp_addflag=
24320         case $cc_basename,$host_cpu in
24321         pgcc*)                          # Portland Group C compiler
24322           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'
24323           tmp_addflag=' $pic_flag'
24324           ;;
24325         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24326           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'
24327           tmp_addflag=' $pic_flag -Mnomain' ;;
24328         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24329           tmp_addflag=' -i_dynamic' ;;
24330         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24331           tmp_addflag=' -i_dynamic -nofor_main' ;;
24332         ifc* | ifort*)                  # Intel Fortran compiler
24333           tmp_addflag=' -nofor_main' ;;
24334         esac
24335         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24336
24337         if test $supports_anon_versioning = yes; then
24338           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24339   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24340   $echo "local: *; };" >> $output_objdir/$libname.ver~
24341           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24342         fi
24343       else
24344         ld_shlibs_GCJ=no
24345       fi
24346       ;;
24347
24348     netbsd*)
24349       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24350         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24351         wlarc=
24352       else
24353         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24354         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24355       fi
24356       ;;
24357
24358     solaris*)
24359       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24360         ld_shlibs_GCJ=no
24361         cat <<EOF 1>&2
24362
24363 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24364 *** create shared libraries on Solaris systems.  Therefore, libtool
24365 *** is disabling shared libraries support.  We urge you to upgrade GNU
24366 *** binutils to release 2.9.1 or newer.  Another option is to modify
24367 *** your PATH or compiler configuration so that the native linker is
24368 *** used, and then restart.
24369
24370 EOF
24371       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24372         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24373         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24374       else
24375         ld_shlibs_GCJ=no
24376       fi
24377       ;;
24378
24379     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24380       case `$LD -v 2>&1` in
24381         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24382         ld_shlibs_GCJ=no
24383         cat <<_LT_EOF 1>&2
24384
24385 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24386 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24387 *** is disabling shared libraries support.  We urge you to upgrade GNU
24388 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24389 *** your PATH or compiler configuration so that the native linker is
24390 *** used, and then restart.
24391
24392 _LT_EOF
24393         ;;
24394         *)
24395           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24396             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24397             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24398             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24399           else
24400             ld_shlibs_GCJ=no
24401           fi
24402         ;;
24403       esac
24404       ;;
24405
24406     sunos4*)
24407       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24408       wlarc=
24409       hardcode_direct_GCJ=yes
24410       hardcode_shlibpath_var_GCJ=no
24411       ;;
24412
24413     *)
24414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24415         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24416         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24417       else
24418         ld_shlibs_GCJ=no
24419       fi
24420       ;;
24421     esac
24422
24423     if test "$ld_shlibs_GCJ" = no; then
24424       runpath_var=
24425       hardcode_libdir_flag_spec_GCJ=
24426       export_dynamic_flag_spec_GCJ=
24427       whole_archive_flag_spec_GCJ=
24428     fi
24429   else
24430     # PORTME fill in a description of your system's linker (not GNU ld)
24431     case $host_os in
24432     aix3*)
24433       allow_undefined_flag_GCJ=unsupported
24434       always_export_symbols_GCJ=yes
24435       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'
24436       # Note: this linker hardcodes the directories in LIBPATH if there
24437       # are no directories specified by -L.
24438       hardcode_minus_L_GCJ=yes
24439       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24440         # Neither direct hardcoding nor static linking is supported with a
24441         # broken collect2.
24442         hardcode_direct_GCJ=unsupported
24443       fi
24444       ;;
24445
24446     aix4* | aix5*)
24447       if test "$host_cpu" = ia64; then
24448         # On IA64, the linker does run time linking by default, so we don't
24449         # have to do anything special.
24450         aix_use_runtimelinking=no
24451         exp_sym_flag='-Bexport'
24452         no_entry_flag=""
24453       else
24454         # If we're using GNU nm, then we don't want the "-C" option.
24455         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24456         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24457           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'
24458         else
24459           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'
24460         fi
24461         aix_use_runtimelinking=no
24462
24463         # Test if we are trying to use run time linking or normal
24464         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24465         # need to do runtime linking.
24466         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24467           for ld_flag in $LDFLAGS; do
24468           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24469             aix_use_runtimelinking=yes
24470             break
24471           fi
24472           done
24473           ;;
24474         esac
24475
24476         exp_sym_flag='-bexport'
24477         no_entry_flag='-bnoentry'
24478       fi
24479
24480       # When large executables or shared objects are built, AIX ld can
24481       # have problems creating the table of contents.  If linking a library
24482       # or program results in "error TOC overflow" add -mminimal-toc to
24483       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24484       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24485
24486       archive_cmds_GCJ=''
24487       hardcode_direct_GCJ=yes
24488       hardcode_libdir_separator_GCJ=':'
24489       link_all_deplibs_GCJ=yes
24490
24491       if test "$GCC" = yes; then
24492         case $host_os in aix4.[012]|aix4.[012].*)
24493         # We only want to do this on AIX 4.2 and lower, the check
24494         # below for broken collect2 doesn't work under 4.3+
24495           collect2name=`${CC} -print-prog-name=collect2`
24496           if test -f "$collect2name" && \
24497            strings "$collect2name" | grep resolve_lib_name >/dev/null
24498           then
24499           # We have reworked collect2
24500           hardcode_direct_GCJ=yes
24501           else
24502           # We have old collect2
24503           hardcode_direct_GCJ=unsupported
24504           # It fails to find uninstalled libraries when the uninstalled
24505           # path is not listed in the libpath.  Setting hardcode_minus_L
24506           # to unsupported forces relinking
24507           hardcode_minus_L_GCJ=yes
24508           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24509           hardcode_libdir_separator_GCJ=
24510           fi
24511           ;;
24512         esac
24513         shared_flag='-shared'
24514         if test "$aix_use_runtimelinking" = yes; then
24515           shared_flag="$shared_flag "'${wl}-G'
24516         fi
24517       else
24518         # not using gcc
24519         if test "$host_cpu" = ia64; then
24520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24521         # chokes on -Wl,-G. The following line is correct:
24522           shared_flag='-G'
24523         else
24524           if test "$aix_use_runtimelinking" = yes; then
24525             shared_flag='${wl}-G'
24526           else
24527             shared_flag='${wl}-bM:SRE'
24528           fi
24529         fi
24530       fi
24531
24532       # It seems that -bexpall does not export symbols beginning with
24533       # underscore (_), so it is better to generate a list of symbols to export.
24534       always_export_symbols_GCJ=yes
24535       if test "$aix_use_runtimelinking" = yes; then
24536         # Warning - without using the other runtime loading flags (-brtl),
24537         # -berok will link without error, but may produce a broken library.
24538         allow_undefined_flag_GCJ='-berok'
24539        # Determine the default libpath from the value encoded in an empty executable.
24540        cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h.  */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h.  */
24546
24547 int
24548 main ()
24549 {
24550
24551   ;
24552   return 0;
24553 }
24554 _ACEOF
24555 rm -f conftest.$ac_objext conftest$ac_exeext
24556 if { (ac_try="$ac_link"
24557 case "(($ac_try" in
24558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24559   *) ac_try_echo=$ac_try;;
24560 esac
24561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24562   (eval "$ac_link") 2>conftest.er1
24563   ac_status=$?
24564   grep -v '^ *+' conftest.er1 >conftest.err
24565   rm -f conftest.er1
24566   cat conftest.err >&5
24567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568   (exit $ac_status); } && {
24569          test -z "$ac_c_werror_flag" ||
24570          test ! -s conftest.err
24571        } && test -s conftest$ac_exeext &&
24572        $as_test_x conftest$ac_exeext; then
24573
24574 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24575 }'`
24576 # Check for a 64-bit object if we didn't find anything.
24577 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; }
24578 }'`; fi
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583
24584 fi
24585
24586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24587       conftest$ac_exeext conftest.$ac_ext
24588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24589
24590        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24591         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"
24592        else
24593         if test "$host_cpu" = ia64; then
24594           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24595           allow_undefined_flag_GCJ="-z nodefs"
24596           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"
24597         else
24598          # Determine the default libpath from the value encoded in an empty executable.
24599          cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605
24606 int
24607 main ()
24608 {
24609
24610   ;
24611   return 0;
24612 }
24613 _ACEOF
24614 rm -f conftest.$ac_objext conftest$ac_exeext
24615 if { (ac_try="$ac_link"
24616 case "(($ac_try" in
24617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618   *) ac_try_echo=$ac_try;;
24619 esac
24620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24621   (eval "$ac_link") 2>conftest.er1
24622   ac_status=$?
24623   grep -v '^ *+' conftest.er1 >conftest.err
24624   rm -f conftest.er1
24625   cat conftest.err >&5
24626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627   (exit $ac_status); } && {
24628          test -z "$ac_c_werror_flag" ||
24629          test ! -s conftest.err
24630        } && test -s conftest$ac_exeext &&
24631        $as_test_x conftest$ac_exeext; then
24632
24633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
24634 }'`
24635 # Check for a 64-bit object if we didn't find anything.
24636 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; }
24637 }'`; fi
24638 else
24639   echo "$as_me: failed program was:" >&5
24640 sed 's/^/| /' conftest.$ac_ext >&5
24641
24642
24643 fi
24644
24645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24646       conftest$ac_exeext conftest.$ac_ext
24647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24648
24649          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24650           # Warning - without using the other run time loading flags,
24651           # -berok will link without error, but may produce a broken library.
24652           no_undefined_flag_GCJ=' ${wl}-bernotok'
24653           allow_undefined_flag_GCJ=' ${wl}-berok'
24654           # Exported symbols can be pulled into shared objects from archives
24655           whole_archive_flag_spec_GCJ='$convenience'
24656           archive_cmds_need_lc_GCJ=yes
24657           # This is similar to how AIX traditionally builds its shared libraries.
24658           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'
24659         fi
24660       fi
24661       ;;
24662
24663     amigaos*)
24664       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)'
24665       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24666       hardcode_minus_L_GCJ=yes
24667       # see comment about different semantics on the GNU ld section
24668       ld_shlibs_GCJ=no
24669       ;;
24670
24671     bsdi[45]*)
24672       export_dynamic_flag_spec_GCJ=-rdynamic
24673       ;;
24674
24675     cygwin* | mingw* | pw32*)
24676       # When not using gcc, we currently assume that we are using
24677       # Microsoft Visual C++.
24678       # hardcode_libdir_flag_spec is actually meaningless, as there is
24679       # no search path for DLLs.
24680       hardcode_libdir_flag_spec_GCJ=' '
24681       allow_undefined_flag_GCJ=unsupported
24682       # Tell ltmain to make .lib files, not .a files.
24683       libext=lib
24684       # Tell ltmain to make .dll files, not .so files.
24685       shrext_cmds=".dll"
24686       # FIXME: Setting linknames here is a bad hack.
24687       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24688       # The linker will automatically build a .lib file if we build a DLL.
24689       old_archive_From_new_cmds_GCJ='true'
24690       # FIXME: Should let the user specify the lib program.
24691       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24692       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24693       enable_shared_with_static_runtimes_GCJ=yes
24694       ;;
24695
24696     darwin* | rhapsody*)
24697       case $host_os in
24698         rhapsody* | darwin1.[012])
24699          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24700          ;;
24701        *) # Darwin 1.3 on
24702          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24703            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24704          else
24705            case ${MACOSX_DEPLOYMENT_TARGET} in
24706              10.[012])
24707                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24708                ;;
24709              10.*)
24710                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24711                ;;
24712            esac
24713          fi
24714          ;;
24715       esac
24716       archive_cmds_need_lc_GCJ=no
24717       hardcode_direct_GCJ=no
24718       hardcode_automatic_GCJ=yes
24719       hardcode_shlibpath_var_GCJ=unsupported
24720       whole_archive_flag_spec_GCJ=''
24721       link_all_deplibs_GCJ=yes
24722     if test "$GCC" = yes ; then
24723         output_verbose_link_cmd='echo'
24724         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24725       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24726       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24727       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}'
24728       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}'
24729     else
24730       case $cc_basename in
24731         xlc*)
24732          output_verbose_link_cmd='echo'
24733          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24734          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24735           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24736          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}'
24737           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}'
24738           ;;
24739        *)
24740          ld_shlibs_GCJ=no
24741           ;;
24742       esac
24743     fi
24744       ;;
24745
24746     dgux*)
24747       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24748       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24749       hardcode_shlibpath_var_GCJ=no
24750       ;;
24751
24752     freebsd1*)
24753       ld_shlibs_GCJ=no
24754       ;;
24755
24756     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24757     # support.  Future versions do this automatically, but an explicit c++rt0.o
24758     # does not break anything, and helps significantly (at the cost of a little
24759     # extra space).
24760     freebsd2.2*)
24761       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24762       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24763       hardcode_direct_GCJ=yes
24764       hardcode_shlibpath_var_GCJ=no
24765       ;;
24766
24767     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24768     freebsd2*)
24769       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24770       hardcode_direct_GCJ=yes
24771       hardcode_minus_L_GCJ=yes
24772       hardcode_shlibpath_var_GCJ=no
24773       ;;
24774
24775     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24776     freebsd* | kfreebsd*-gnu | dragonfly*)
24777       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24778       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24779       hardcode_direct_GCJ=yes
24780       hardcode_shlibpath_var_GCJ=no
24781       ;;
24782
24783     hpux9*)
24784       if test "$GCC" = yes; then
24785         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'
24786       else
24787         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'
24788       fi
24789       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24790       hardcode_libdir_separator_GCJ=:
24791       hardcode_direct_GCJ=yes
24792
24793       # hardcode_minus_L: Not really in the search PATH,
24794       # but as the default location of the library.
24795       hardcode_minus_L_GCJ=yes
24796       export_dynamic_flag_spec_GCJ='${wl}-E'
24797       ;;
24798
24799     hpux10*)
24800       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24801         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24802       else
24803         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24804       fi
24805       if test "$with_gnu_ld" = no; then
24806         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24807         hardcode_libdir_separator_GCJ=:
24808
24809         hardcode_direct_GCJ=yes
24810         export_dynamic_flag_spec_GCJ='${wl}-E'
24811
24812         # hardcode_minus_L: Not really in the search PATH,
24813         # but as the default location of the library.
24814         hardcode_minus_L_GCJ=yes
24815       fi
24816       ;;
24817
24818     hpux11*)
24819       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24820         case $host_cpu in
24821         hppa*64*)
24822           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24823           ;;
24824         ia64*)
24825           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24826           ;;
24827         *)
24828           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24829           ;;
24830         esac
24831       else
24832         case $host_cpu in
24833         hppa*64*)
24834           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24835           ;;
24836         ia64*)
24837           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24838           ;;
24839         *)
24840           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24841           ;;
24842         esac
24843       fi
24844       if test "$with_gnu_ld" = no; then
24845         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24846         hardcode_libdir_separator_GCJ=:
24847
24848         case $host_cpu in
24849         hppa*64*|ia64*)
24850           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24851           hardcode_direct_GCJ=no
24852           hardcode_shlibpath_var_GCJ=no
24853           ;;
24854         *)
24855           hardcode_direct_GCJ=yes
24856           export_dynamic_flag_spec_GCJ='${wl}-E'
24857
24858           # hardcode_minus_L: Not really in the search PATH,
24859           # but as the default location of the library.
24860           hardcode_minus_L_GCJ=yes
24861           ;;
24862         esac
24863       fi
24864       ;;
24865
24866     irix5* | irix6* | nonstopux*)
24867       if test "$GCC" = yes; then
24868         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'
24869       else
24870         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'
24871         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24872       fi
24873       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24874       hardcode_libdir_separator_GCJ=:
24875       link_all_deplibs_GCJ=yes
24876       ;;
24877
24878     netbsd*)
24879       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24880         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24881       else
24882         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24883       fi
24884       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24885       hardcode_direct_GCJ=yes
24886       hardcode_shlibpath_var_GCJ=no
24887       ;;
24888
24889     newsos6)
24890       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24891       hardcode_direct_GCJ=yes
24892       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24893       hardcode_libdir_separator_GCJ=:
24894       hardcode_shlibpath_var_GCJ=no
24895       ;;
24896
24897     openbsd*)
24898       hardcode_direct_GCJ=yes
24899       hardcode_shlibpath_var_GCJ=no
24900       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24901         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24902         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24903         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24904         export_dynamic_flag_spec_GCJ='${wl}-E'
24905       else
24906        case $host_os in
24907          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24908            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24909            hardcode_libdir_flag_spec_GCJ='-R$libdir'
24910            ;;
24911          *)
24912            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24913            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24914            ;;
24915        esac
24916       fi
24917       ;;
24918
24919     os2*)
24920       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24921       hardcode_minus_L_GCJ=yes
24922       allow_undefined_flag_GCJ=unsupported
24923       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'
24924       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24925       ;;
24926
24927     osf3*)
24928       if test "$GCC" = yes; then
24929         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24930         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'
24931       else
24932         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24933         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'
24934       fi
24935       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24936       hardcode_libdir_separator_GCJ=:
24937       ;;
24938
24939     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24940       if test "$GCC" = yes; then
24941         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24942         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'
24943         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24944       else
24945         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24946         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'
24947         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~
24948         $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'
24949
24950         # Both c and cxx compiler support -rpath directly
24951         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24952       fi
24953       hardcode_libdir_separator_GCJ=:
24954       ;;
24955
24956     solaris*)
24957       no_undefined_flag_GCJ=' -z text'
24958       if test "$GCC" = yes; then
24959         wlarc='${wl}'
24960         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24961         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24962           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24963       else
24964         wlarc=''
24965         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24966         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24967         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24968       fi
24969       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24970       hardcode_shlibpath_var_GCJ=no
24971       case $host_os in
24972       solaris2.[0-5] | solaris2.[0-5].*) ;;
24973       *)
24974         # The compiler driver will combine linker options so we
24975         # cannot just pass the convience library names through
24976         # without $wl, iff we do not link with $LD.
24977         # Luckily, gcc supports the same syntax we need for Sun Studio.
24978         # Supported since Solaris 2.6 (maybe 2.5.1?)
24979         case $wlarc in
24980         '')
24981           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24982         *)
24983           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' ;;
24984         esac ;;
24985       esac
24986       link_all_deplibs_GCJ=yes
24987       ;;
24988
24989     sunos4*)
24990       if test "x$host_vendor" = xsequent; then
24991         # Use $CC to link under sequent, because it throws in some extra .o
24992         # files that make .init and .fini sections work.
24993         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24994       else
24995         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24996       fi
24997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24998       hardcode_direct_GCJ=yes
24999       hardcode_minus_L_GCJ=yes
25000       hardcode_shlibpath_var_GCJ=no
25001       ;;
25002
25003     sysv4)
25004       case $host_vendor in
25005         sni)
25006           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25007           hardcode_direct_GCJ=yes # is this really true???
25008         ;;
25009         siemens)
25010           ## LD is ld it makes a PLAMLIB
25011           ## CC just makes a GrossModule.
25012           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25013           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25014           hardcode_direct_GCJ=no
25015         ;;
25016         motorola)
25017           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25018           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25019         ;;
25020       esac
25021       runpath_var='LD_RUN_PATH'
25022       hardcode_shlibpath_var_GCJ=no
25023       ;;
25024
25025     sysv4.3*)
25026       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25027       hardcode_shlibpath_var_GCJ=no
25028       export_dynamic_flag_spec_GCJ='-Bexport'
25029       ;;
25030
25031     sysv4*MP*)
25032       if test -d /usr/nec; then
25033         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25034         hardcode_shlibpath_var_GCJ=no
25035         runpath_var=LD_RUN_PATH
25036         hardcode_runpath_var=yes
25037         ld_shlibs_GCJ=yes
25038       fi
25039       ;;
25040
25041     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25042       no_undefined_flag_GCJ='${wl}-z,text'
25043       archive_cmds_need_lc_GCJ=no
25044       hardcode_shlibpath_var_GCJ=no
25045       runpath_var='LD_RUN_PATH'
25046
25047       if test "$GCC" = yes; then
25048         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25049         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25050       else
25051         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25052         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25053       fi
25054       ;;
25055
25056     sysv5* | sco3.2v5* | sco5v6*)
25057       # Note: We can NOT use -z defs as we might desire, because we do not
25058       # link with -lc, and that would cause any symbols used from libc to
25059       # always be unresolved, which means just about no library would
25060       # ever link correctly.  If we're not using GNU ld we use -z text
25061       # though, which does catch some bad symbols but isn't as heavy-handed
25062       # as -z defs.
25063       no_undefined_flag_GCJ='${wl}-z,text'
25064       allow_undefined_flag_GCJ='${wl}-z,nodefs'
25065       archive_cmds_need_lc_GCJ=no
25066       hardcode_shlibpath_var_GCJ=no
25067       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25068       hardcode_libdir_separator_GCJ=':'
25069       link_all_deplibs_GCJ=yes
25070       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25071       runpath_var='LD_RUN_PATH'
25072
25073       if test "$GCC" = yes; then
25074         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25075         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25076       else
25077         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25078         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25079       fi
25080       ;;
25081
25082     uts4*)
25083       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25084       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25085       hardcode_shlibpath_var_GCJ=no
25086       ;;
25087
25088     *)
25089       ld_shlibs_GCJ=no
25090       ;;
25091     esac
25092   fi
25093
25094 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25095 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25096 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25097
25098 #
25099 # Do we need to explicitly link libc?
25100 #
25101 case "x$archive_cmds_need_lc_GCJ" in
25102 x|xyes)
25103   # Assume -lc should be added
25104   archive_cmds_need_lc_GCJ=yes
25105
25106   if test "$enable_shared" = yes && test "$GCC" = yes; then
25107     case $archive_cmds_GCJ in
25108     *'~'*)
25109       # FIXME: we may have to deal with multi-command sequences.
25110       ;;
25111     '$CC '*)
25112       # Test whether the compiler implicitly links with -lc since on some
25113       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25114       # to ld, don't add -lc before -lgcc.
25115       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25116 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25117       $rm conftest*
25118       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25119
25120       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25121   (eval $ac_compile) 2>&5
25122   ac_status=$?
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } 2>conftest.err; then
25125         soname=conftest
25126         lib=conftest
25127         libobjs=conftest.$ac_objext
25128         deplibs=
25129         wl=$lt_prog_compiler_wl_GCJ
25130         pic_flag=$lt_prog_compiler_pic_GCJ
25131         compiler_flags=-v
25132         linker_flags=-v
25133         verstring=
25134         output_objdir=.
25135         libname=conftest
25136         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25137         allow_undefined_flag_GCJ=
25138         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25139   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25140   ac_status=$?
25141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142   (exit $ac_status); }
25143         then
25144           archive_cmds_need_lc_GCJ=no
25145         else
25146           archive_cmds_need_lc_GCJ=yes
25147         fi
25148         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25149       else
25150         cat conftest.err 1>&5
25151       fi
25152       $rm conftest*
25153       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25154 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25155       ;;
25156     esac
25157   fi
25158   ;;
25159 esac
25160
25161 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25162 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25163 library_names_spec=
25164 libname_spec='lib$name'
25165 soname_spec=
25166 shrext_cmds=".so"
25167 postinstall_cmds=
25168 postuninstall_cmds=
25169 finish_cmds=
25170 finish_eval=
25171 shlibpath_var=
25172 shlibpath_overrides_runpath=unknown
25173 version_type=none
25174 dynamic_linker="$host_os ld.so"
25175 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25176 if test "$GCC" = yes; then
25177   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25178   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25179     # if the path contains ";" then we assume it to be the separator
25180     # otherwise default to the standard path separator (i.e. ":") - it is
25181     # assumed that no part of a normal pathname contains ";" but that should
25182     # okay in the real world where ";" in dirpaths is itself problematic.
25183     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25184   else
25185     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25186   fi
25187 else
25188   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25189 fi
25190 need_lib_prefix=unknown
25191 hardcode_into_libs=no
25192
25193 # when you set need_version to no, make sure it does not cause -set_version
25194 # flags to be left without arguments
25195 need_version=unknown
25196
25197 case $host_os in
25198 aix3*)
25199   version_type=linux
25200   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25201   shlibpath_var=LIBPATH
25202
25203   # AIX 3 has no versioning support, so we append a major version to the name.
25204   soname_spec='${libname}${release}${shared_ext}$major'
25205   ;;
25206
25207 aix4* | aix5*)
25208   version_type=linux
25209   need_lib_prefix=no
25210   need_version=no
25211   hardcode_into_libs=yes
25212   if test "$host_cpu" = ia64; then
25213     # AIX 5 supports IA64
25214     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25215     shlibpath_var=LD_LIBRARY_PATH
25216   else
25217     # With GCC up to 2.95.x, collect2 would create an import file
25218     # for dependence libraries.  The import file would start with
25219     # the line `#! .'.  This would cause the generated library to
25220     # depend on `.', always an invalid library.  This was fixed in
25221     # development snapshots of GCC prior to 3.0.
25222     case $host_os in
25223       aix4 | aix4.[01] | aix4.[01].*)
25224       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25225            echo ' yes '
25226            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25227         :
25228       else
25229         can_build_shared=no
25230       fi
25231       ;;
25232     esac
25233     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25234     # soname into executable. Probably we can add versioning support to
25235     # collect2, so additional links can be useful in future.
25236     if test "$aix_use_runtimelinking" = yes; then
25237       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25238       # instead of lib<name>.a to let people know that these are not
25239       # typical AIX shared libraries.
25240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25241     else
25242       # We preserve .a as extension for shared libraries through AIX4.2
25243       # and later when we are not doing run time linking.
25244       library_names_spec='${libname}${release}.a $libname.a'
25245       soname_spec='${libname}${release}${shared_ext}$major'
25246     fi
25247     shlibpath_var=LIBPATH
25248   fi
25249   ;;
25250
25251 amigaos*)
25252   library_names_spec='$libname.ixlibrary $libname.a'
25253   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25254   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'
25255   ;;
25256
25257 beos*)
25258   library_names_spec='${libname}${shared_ext}'
25259   dynamic_linker="$host_os ld.so"
25260   shlibpath_var=LIBRARY_PATH
25261   ;;
25262
25263 bsdi[45]*)
25264   version_type=linux
25265   need_version=no
25266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25267   soname_spec='${libname}${release}${shared_ext}$major'
25268   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25269   shlibpath_var=LD_LIBRARY_PATH
25270   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25271   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25272   # the default ld.so.conf also contains /usr/contrib/lib and
25273   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25274   # libtool to hard-code these into programs
25275   ;;
25276
25277 cygwin* | mingw* | pw32*)
25278   version_type=windows
25279   shrext_cmds=".dll"
25280   need_version=no
25281   need_lib_prefix=no
25282
25283   case $GCC,$host_os in
25284   yes,cygwin* | yes,mingw* | yes,pw32*)
25285     library_names_spec='$libname.dll.a'
25286     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25287     postinstall_cmds='base_file=`basename \${file}`~
25288       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25289       dldir=$destdir/`dirname \$dlpath`~
25290       test -d \$dldir || mkdir -p \$dldir~
25291       $install_prog $dir/$dlname \$dldir/$dlname~
25292       chmod a+x \$dldir/$dlname'
25293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25294       dlpath=$dir/\$dldll~
25295        $rm \$dlpath'
25296     shlibpath_overrides_runpath=yes
25297
25298     case $host_os in
25299     cygwin*)
25300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25302       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25303       ;;
25304     mingw*)
25305       # MinGW DLLs use traditional 'lib' prefix
25306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25307       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25308       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25309         # It is most probably a Windows format PATH printed by
25310         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25311         # path with ; separators, and with drive letters. We can handle the
25312         # drive letters (cygwin fileutils understands them), so leave them,
25313         # especially as we might pass files found there to a mingw objdump,
25314         # which wouldn't understand a cygwinified path. Ahh.
25315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25316       else
25317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25318       fi
25319       ;;
25320     pw32*)
25321       # pw32 DLLs use 'pw' prefix rather than 'lib'
25322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25323       ;;
25324     esac
25325     ;;
25326
25327   *)
25328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25329     ;;
25330   esac
25331   dynamic_linker='Win32 ld.exe'
25332   # FIXME: first we should search . and the directory the executable is in
25333   shlibpath_var=PATH
25334   ;;
25335
25336 darwin* | rhapsody*)
25337   dynamic_linker="$host_os dyld"
25338   version_type=darwin
25339   need_lib_prefix=no
25340   need_version=no
25341   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25342   soname_spec='${libname}${release}${major}$shared_ext'
25343   shlibpath_overrides_runpath=yes
25344   shlibpath_var=DYLD_LIBRARY_PATH
25345   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25346   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25347   if test "$GCC" = yes; then
25348     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"`
25349   else
25350     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25351   fi
25352   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25353   ;;
25354
25355 dgux*)
25356   version_type=linux
25357   need_lib_prefix=no
25358   need_version=no
25359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25360   soname_spec='${libname}${release}${shared_ext}$major'
25361   shlibpath_var=LD_LIBRARY_PATH
25362   ;;
25363
25364 freebsd1*)
25365   dynamic_linker=no
25366   ;;
25367
25368 kfreebsd*-gnu)
25369   version_type=linux
25370   need_lib_prefix=no
25371   need_version=no
25372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25373   soname_spec='${libname}${release}${shared_ext}$major'
25374   shlibpath_var=LD_LIBRARY_PATH
25375   shlibpath_overrides_runpath=no
25376   hardcode_into_libs=yes
25377   dynamic_linker='GNU ld.so'
25378   ;;
25379
25380 freebsd* | dragonfly*)
25381   # DragonFly does not have aout.  When/if they implement a new
25382   # versioning mechanism, adjust this.
25383   if test -x /usr/bin/objformat; then
25384     objformat=`/usr/bin/objformat`
25385   else
25386     case $host_os in
25387     freebsd[123]*) objformat=aout ;;
25388     *) objformat=elf ;;
25389     esac
25390   fi
25391   version_type=freebsd-$objformat
25392   case $version_type in
25393     freebsd-elf*)
25394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25395       need_version=no
25396       need_lib_prefix=no
25397       ;;
25398     freebsd-*)
25399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25400       need_version=yes
25401       ;;
25402   esac
25403   shlibpath_var=LD_LIBRARY_PATH
25404   case $host_os in
25405   freebsd2*)
25406     shlibpath_overrides_runpath=yes
25407     ;;
25408   freebsd3.[01]* | freebsdelf3.[01]*)
25409     shlibpath_overrides_runpath=yes
25410     hardcode_into_libs=yes
25411     ;;
25412   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25413   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25414     shlibpath_overrides_runpath=no
25415     hardcode_into_libs=yes
25416     ;;
25417   freebsd*) # from 4.6 on
25418     shlibpath_overrides_runpath=yes
25419     hardcode_into_libs=yes
25420     ;;
25421   esac
25422   ;;
25423
25424 gnu*)
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   hardcode_into_libs=yes
25432   ;;
25433
25434 hpux9* | hpux10* | hpux11*)
25435   # Give a soname corresponding to the major version so that dld.sl refuses to
25436   # link against other versions.
25437   version_type=sunos
25438   need_lib_prefix=no
25439   need_version=no
25440   case $host_cpu in
25441   ia64*)
25442     shrext_cmds='.so'
25443     hardcode_into_libs=yes
25444     dynamic_linker="$host_os dld.so"
25445     shlibpath_var=LD_LIBRARY_PATH
25446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25448     soname_spec='${libname}${release}${shared_ext}$major'
25449     if test "X$HPUX_IA64_MODE" = X32; then
25450       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25451     else
25452       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25453     fi
25454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25455     ;;
25456    hppa*64*)
25457      shrext_cmds='.sl'
25458      hardcode_into_libs=yes
25459      dynamic_linker="$host_os dld.sl"
25460      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25461      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25463      soname_spec='${libname}${release}${shared_ext}$major'
25464      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25465      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25466      ;;
25467    *)
25468     shrext_cmds='.sl'
25469     dynamic_linker="$host_os dld.sl"
25470     shlibpath_var=SHLIB_PATH
25471     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25473     soname_spec='${libname}${release}${shared_ext}$major'
25474     ;;
25475   esac
25476   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25477   postinstall_cmds='chmod 555 $lib'
25478   ;;
25479
25480 interix3*)
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25487   shlibpath_var=LD_LIBRARY_PATH
25488   shlibpath_overrides_runpath=no
25489   hardcode_into_libs=yes
25490   ;;
25491
25492 irix5* | irix6* | nonstopux*)
25493   case $host_os in
25494     nonstopux*) version_type=nonstopux ;;
25495     *)
25496         if test "$lt_cv_prog_gnu_ld" = yes; then
25497                 version_type=linux
25498         else
25499                 version_type=irix
25500         fi ;;
25501   esac
25502   need_lib_prefix=no
25503   need_version=no
25504   soname_spec='${libname}${release}${shared_ext}$major'
25505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25506   case $host_os in
25507   irix5* | nonstopux*)
25508     libsuff= shlibsuff=
25509     ;;
25510   *)
25511     case $LD in # libtool.m4 will add one of these switches to LD
25512     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25513       libsuff= shlibsuff= libmagic=32-bit;;
25514     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25515       libsuff=32 shlibsuff=N32 libmagic=N32;;
25516     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25517       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25518     *) libsuff= shlibsuff= libmagic=never-match;;
25519     esac
25520     ;;
25521   esac
25522   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25523   shlibpath_overrides_runpath=no
25524   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25525   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25526   hardcode_into_libs=yes
25527   ;;
25528
25529 # No shared lib support for Linux oldld, aout, or coff.
25530 linux*oldld* | linux*aout* | linux*coff*)
25531   dynamic_linker=no
25532   ;;
25533
25534 # This must be Linux ELF.
25535 linux*)
25536   version_type=linux
25537   need_lib_prefix=no
25538   need_version=no
25539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25540   soname_spec='${libname}${release}${shared_ext}$major'
25541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25542   shlibpath_var=LD_LIBRARY_PATH
25543   shlibpath_overrides_runpath=no
25544   # This implies no fast_install, which is unacceptable.
25545   # Some rework will be needed to allow for fast_install
25546   # before this can be enabled.
25547   hardcode_into_libs=yes
25548
25549   # find out which ABI we are using
25550   libsuff=
25551   case "$host_cpu" in
25552   x86_64*|s390x*|powerpc64*)
25553     echo '#line 25553 "configure"' > conftest.$ac_ext
25554     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25555   (eval $ac_compile) 2>&5
25556   ac_status=$?
25557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558   (exit $ac_status); }; then
25559       case `/usr/bin/file conftest.$ac_objext` in
25560       *64-bit*)
25561         libsuff=64
25562         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
25563         ;;
25564       esac
25565     fi
25566     rm -rf conftest*
25567     ;;
25568   esac
25569
25570   # Append ld.so.conf contents to the search path
25571   if test -f /etc/ld.so.conf; then
25572     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' ' '`
25573     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
25574   fi
25575
25576   # We used to test for /lib/ld.so.1 and disable shared libraries on
25577   # powerpc, because MkLinux only supported shared libraries with the
25578   # GNU dynamic linker.  Since this was broken with cross compilers,
25579   # most powerpc-linux boxes support dynamic linking these days and
25580   # people can always --disable-shared, the test was removed, and we
25581   # assume the GNU/Linux dynamic linker is in use.
25582   dynamic_linker='GNU/Linux ld.so'
25583   ;;
25584
25585 knetbsd*-gnu)
25586   version_type=linux
25587   need_lib_prefix=no
25588   need_version=no
25589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25590   soname_spec='${libname}${release}${shared_ext}$major'
25591   shlibpath_var=LD_LIBRARY_PATH
25592   shlibpath_overrides_runpath=no
25593   hardcode_into_libs=yes
25594   dynamic_linker='GNU ld.so'
25595   ;;
25596
25597 netbsd*)
25598   version_type=sunos
25599   need_lib_prefix=no
25600   need_version=no
25601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25604     dynamic_linker='NetBSD (a.out) ld.so'
25605   else
25606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25607     soname_spec='${libname}${release}${shared_ext}$major'
25608     dynamic_linker='NetBSD ld.elf_so'
25609   fi
25610   shlibpath_var=LD_LIBRARY_PATH
25611   shlibpath_overrides_runpath=yes
25612   hardcode_into_libs=yes
25613   ;;
25614
25615 newsos6)
25616   version_type=linux
25617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25618   shlibpath_var=LD_LIBRARY_PATH
25619   shlibpath_overrides_runpath=yes
25620   ;;
25621
25622 nto-qnx*)
25623   version_type=linux
25624   need_lib_prefix=no
25625   need_version=no
25626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627   soname_spec='${libname}${release}${shared_ext}$major'
25628   shlibpath_var=LD_LIBRARY_PATH
25629   shlibpath_overrides_runpath=yes
25630   ;;
25631
25632 openbsd*)
25633   version_type=sunos
25634   sys_lib_dlsearch_path_spec="/usr/lib"
25635   need_lib_prefix=no
25636   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25637   case $host_os in
25638     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25639     *)                         need_version=no  ;;
25640   esac
25641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25643   shlibpath_var=LD_LIBRARY_PATH
25644   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25645     case $host_os in
25646       openbsd2.[89] | openbsd2.[89].*)
25647         shlibpath_overrides_runpath=no
25648         ;;
25649       *)
25650         shlibpath_overrides_runpath=yes
25651         ;;
25652       esac
25653   else
25654     shlibpath_overrides_runpath=yes
25655   fi
25656   ;;
25657
25658 os2*)
25659   libname_spec='$name'
25660   shrext_cmds=".dll"
25661   need_lib_prefix=no
25662   library_names_spec='$libname${shared_ext} $libname.a'
25663   dynamic_linker='OS/2 ld.exe'
25664   shlibpath_var=LIBPATH
25665   ;;
25666
25667 osf3* | osf4* | osf5*)
25668   version_type=osf
25669   need_lib_prefix=no
25670   need_version=no
25671   soname_spec='${libname}${release}${shared_ext}$major'
25672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25673   shlibpath_var=LD_LIBRARY_PATH
25674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25676   ;;
25677
25678 solaris*)
25679   version_type=linux
25680   need_lib_prefix=no
25681   need_version=no
25682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25683   soname_spec='${libname}${release}${shared_ext}$major'
25684   shlibpath_var=LD_LIBRARY_PATH
25685   shlibpath_overrides_runpath=yes
25686   hardcode_into_libs=yes
25687   # ldd complains unless libraries are executable
25688   postinstall_cmds='chmod +x $lib'
25689   ;;
25690
25691 sunos4*)
25692   version_type=sunos
25693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25695   shlibpath_var=LD_LIBRARY_PATH
25696   shlibpath_overrides_runpath=yes
25697   if test "$with_gnu_ld" = yes; then
25698     need_lib_prefix=no
25699   fi
25700   need_version=yes
25701   ;;
25702
25703 sysv4 | sysv4.3*)
25704   version_type=linux
25705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25706   soname_spec='${libname}${release}${shared_ext}$major'
25707   shlibpath_var=LD_LIBRARY_PATH
25708   case $host_vendor in
25709     sni)
25710       shlibpath_overrides_runpath=no
25711       need_lib_prefix=no
25712       export_dynamic_flag_spec='${wl}-Blargedynsym'
25713       runpath_var=LD_RUN_PATH
25714       ;;
25715     siemens)
25716       need_lib_prefix=no
25717       ;;
25718     motorola)
25719       need_lib_prefix=no
25720       need_version=no
25721       shlibpath_overrides_runpath=no
25722       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25723       ;;
25724   esac
25725   ;;
25726
25727 sysv4*MP*)
25728   if test -d /usr/nec ;then
25729     version_type=linux
25730     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25731     soname_spec='$libname${shared_ext}.$major'
25732     shlibpath_var=LD_LIBRARY_PATH
25733   fi
25734   ;;
25735
25736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25737   version_type=freebsd-elf
25738   need_lib_prefix=no
25739   need_version=no
25740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25741   soname_spec='${libname}${release}${shared_ext}$major'
25742   shlibpath_var=LD_LIBRARY_PATH
25743   hardcode_into_libs=yes
25744   if test "$with_gnu_ld" = yes; then
25745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25746     shlibpath_overrides_runpath=no
25747   else
25748     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25749     shlibpath_overrides_runpath=yes
25750     case $host_os in
25751       sco3.2v5*)
25752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25753         ;;
25754     esac
25755   fi
25756   sys_lib_dlsearch_path_spec='/usr/lib'
25757   ;;
25758
25759 uts4*)
25760   version_type=linux
25761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25762   soname_spec='${libname}${release}${shared_ext}$major'
25763   shlibpath_var=LD_LIBRARY_PATH
25764   ;;
25765
25766 *)
25767   dynamic_linker=no
25768   ;;
25769 esac
25770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25771 echo "${ECHO_T}$dynamic_linker" >&6; }
25772 test "$dynamic_linker" = no && can_build_shared=no
25773
25774 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25775 if test "$GCC" = yes; then
25776   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25777 fi
25778
25779 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25780 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25781 hardcode_action_GCJ=
25782 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25783    test -n "$runpath_var_GCJ" || \
25784    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25785
25786   # We can hardcode non-existant directories.
25787   if test "$hardcode_direct_GCJ" != no &&
25788      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25789      # have to relink, otherwise we might link with an installed library
25790      # when we should be linking with a yet-to-be-installed one
25791      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25792      test "$hardcode_minus_L_GCJ" != no; then
25793     # Linking always hardcodes the temporary library directory.
25794     hardcode_action_GCJ=relink
25795   else
25796     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25797     hardcode_action_GCJ=immediate
25798   fi
25799 else
25800   # We cannot hardcode anything, or else we can only hardcode existing
25801   # directories.
25802   hardcode_action_GCJ=unsupported
25803 fi
25804 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25805 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25806
25807 if test "$hardcode_action_GCJ" = relink; then
25808   # Fast installation is not supported
25809   enable_fast_install=no
25810 elif test "$shlibpath_overrides_runpath" = yes ||
25811      test "$enable_shared" = no; then
25812   # Fast installation is not necessary
25813   enable_fast_install=needless
25814 fi
25815
25816
25817 # The else clause should only fire when bootstrapping the
25818 # libtool distribution, otherwise you forgot to ship ltmain.sh
25819 # with your package, and you will get complaints that there are
25820 # no rules to generate ltmain.sh.
25821 if test -f "$ltmain"; then
25822   # See if we are running on zsh, and set the options which allow our commands through
25823   # without removal of \ escapes.
25824   if test -n "${ZSH_VERSION+set}" ; then
25825     setopt NO_GLOB_SUBST
25826   fi
25827   # Now quote all the things that may contain metacharacters while being
25828   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25829   # variables and quote the copies for generation of the libtool script.
25830   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25831     SED SHELL STRIP \
25832     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25833     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25834     deplibs_check_method reload_flag reload_cmds need_locks \
25835     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25836     lt_cv_sys_global_symbol_to_c_name_address \
25837     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25838     old_postinstall_cmds old_postuninstall_cmds \
25839     compiler_GCJ \
25840     CC_GCJ \
25841     LD_GCJ \
25842     lt_prog_compiler_wl_GCJ \
25843     lt_prog_compiler_pic_GCJ \
25844     lt_prog_compiler_static_GCJ \
25845     lt_prog_compiler_no_builtin_flag_GCJ \
25846     export_dynamic_flag_spec_GCJ \
25847     thread_safe_flag_spec_GCJ \
25848     whole_archive_flag_spec_GCJ \
25849     enable_shared_with_static_runtimes_GCJ \
25850     old_archive_cmds_GCJ \
25851     old_archive_from_new_cmds_GCJ \
25852     predep_objects_GCJ \
25853     postdep_objects_GCJ \
25854     predeps_GCJ \
25855     postdeps_GCJ \
25856     compiler_lib_search_path_GCJ \
25857     archive_cmds_GCJ \
25858     archive_expsym_cmds_GCJ \
25859     postinstall_cmds_GCJ \
25860     postuninstall_cmds_GCJ \
25861     old_archive_from_expsyms_cmds_GCJ \
25862     allow_undefined_flag_GCJ \
25863     no_undefined_flag_GCJ \
25864     export_symbols_cmds_GCJ \
25865     hardcode_libdir_flag_spec_GCJ \
25866     hardcode_libdir_flag_spec_ld_GCJ \
25867     hardcode_libdir_separator_GCJ \
25868     hardcode_automatic_GCJ \
25869     module_cmds_GCJ \
25870     module_expsym_cmds_GCJ \
25871     lt_cv_prog_compiler_c_o_GCJ \
25872     exclude_expsyms_GCJ \
25873     include_expsyms_GCJ; do
25874
25875     case $var in
25876     old_archive_cmds_GCJ | \
25877     old_archive_from_new_cmds_GCJ | \
25878     archive_cmds_GCJ | \
25879     archive_expsym_cmds_GCJ | \
25880     module_cmds_GCJ | \
25881     module_expsym_cmds_GCJ | \
25882     old_archive_from_expsyms_cmds_GCJ | \
25883     export_symbols_cmds_GCJ | \
25884     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25885     postinstall_cmds | postuninstall_cmds | \
25886     old_postinstall_cmds | old_postuninstall_cmds | \
25887     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25888       # Double-quote double-evaled strings.
25889       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25890       ;;
25891     *)
25892       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25893       ;;
25894     esac
25895   done
25896
25897   case $lt_echo in
25898   *'\$0 --fallback-echo"')
25899     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25900     ;;
25901   esac
25902
25903 cfgfile="$ofile"
25904
25905   cat <<__EOF__ >> "$cfgfile"
25906 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25907
25908 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25909
25910 # Shell to use when invoking shell scripts.
25911 SHELL=$lt_SHELL
25912
25913 # Whether or not to build shared libraries.
25914 build_libtool_libs=$enable_shared
25915
25916 # Whether or not to build static libraries.
25917 build_old_libs=$enable_static
25918
25919 # Whether or not to add -lc for building shared libraries.
25920 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25921
25922 # Whether or not to disallow shared libs when runtime libs are static
25923 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25924
25925 # Whether or not to optimize for fast installation.
25926 fast_install=$enable_fast_install
25927
25928 # The host system.
25929 host_alias=$host_alias
25930 host=$host
25931 host_os=$host_os
25932
25933 # The build system.
25934 build_alias=$build_alias
25935 build=$build
25936 build_os=$build_os
25937
25938 # An echo program that does not interpret backslashes.
25939 echo=$lt_echo
25940
25941 # The archiver.
25942 AR=$lt_AR
25943 AR_FLAGS=$lt_AR_FLAGS
25944
25945 # A C compiler.
25946 LTCC=$lt_LTCC
25947
25948 # LTCC compiler flags.
25949 LTCFLAGS=$lt_LTCFLAGS
25950
25951 # A language-specific compiler.
25952 CC=$lt_compiler_GCJ
25953
25954 # Is the compiler the GNU C compiler?
25955 with_gcc=$GCC_GCJ
25956
25957 # An ERE matcher.
25958 EGREP=$lt_EGREP
25959
25960 # The linker used to build libraries.
25961 LD=$lt_LD_GCJ
25962
25963 # Whether we need hard or soft links.
25964 LN_S=$lt_LN_S
25965
25966 # A BSD-compatible nm program.
25967 NM=$lt_NM
25968
25969 # A symbol stripping program
25970 STRIP=$lt_STRIP
25971
25972 # Used to examine libraries when file_magic_cmd begins "file"
25973 MAGIC_CMD=$MAGIC_CMD
25974
25975 # Used on cygwin: DLL creation program.
25976 DLLTOOL="$DLLTOOL"
25977
25978 # Used on cygwin: object dumper.
25979 OBJDUMP="$OBJDUMP"
25980
25981 # Used on cygwin: assembler.
25982 AS="$AS"
25983
25984 # The name of the directory that contains temporary libtool files.
25985 objdir=$objdir
25986
25987 # How to create reloadable object files.
25988 reload_flag=$lt_reload_flag
25989 reload_cmds=$lt_reload_cmds
25990
25991 # How to pass a linker flag through the compiler.
25992 wl=$lt_lt_prog_compiler_wl_GCJ
25993
25994 # Object file suffix (normally "o").
25995 objext="$ac_objext"
25996
25997 # Old archive suffix (normally "a").
25998 libext="$libext"
25999
26000 # Shared library suffix (normally ".so").
26001 shrext_cmds='$shrext_cmds'
26002
26003 # Executable file suffix (normally "").
26004 exeext="$exeext"
26005
26006 # Additional compiler flags for building library objects.
26007 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26008 pic_mode=$pic_mode
26009
26010 # What is the maximum length of a command?
26011 max_cmd_len=$lt_cv_sys_max_cmd_len
26012
26013 # Does compiler simultaneously support -c and -o options?
26014 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26015
26016 # Must we lock files when doing compilation?
26017 need_locks=$lt_need_locks
26018
26019 # Do we need the lib prefix for modules?
26020 need_lib_prefix=$need_lib_prefix
26021
26022 # Do we need a version for libraries?
26023 need_version=$need_version
26024
26025 # Whether dlopen is supported.
26026 dlopen_support=$enable_dlopen
26027
26028 # Whether dlopen of programs is supported.
26029 dlopen_self=$enable_dlopen_self
26030
26031 # Whether dlopen of statically linked programs is supported.
26032 dlopen_self_static=$enable_dlopen_self_static
26033
26034 # Compiler flag to prevent dynamic linking.
26035 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26036
26037 # Compiler flag to turn off builtin functions.
26038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26039
26040 # Compiler flag to allow reflexive dlopens.
26041 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26042
26043 # Compiler flag to generate shared objects directly from archives.
26044 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26045
26046 # Compiler flag to generate thread-safe objects.
26047 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26048
26049 # Library versioning type.
26050 version_type=$version_type
26051
26052 # Format of library name prefix.
26053 libname_spec=$lt_libname_spec
26054
26055 # List of archive names.  First name is the real one, the rest are links.
26056 # The last name is the one that the linker finds with -lNAME.
26057 library_names_spec=$lt_library_names_spec
26058
26059 # The coded name of the library, if different from the real name.
26060 soname_spec=$lt_soname_spec
26061
26062 # Commands used to build and install an old-style archive.
26063 RANLIB=$lt_RANLIB
26064 old_archive_cmds=$lt_old_archive_cmds_GCJ
26065 old_postinstall_cmds=$lt_old_postinstall_cmds
26066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26067
26068 # Create an old-style archive from a shared archive.
26069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26070
26071 # Create a temporary old-style archive to link instead of a shared archive.
26072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26073
26074 # Commands used to build and install a shared archive.
26075 archive_cmds=$lt_archive_cmds_GCJ
26076 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26077 postinstall_cmds=$lt_postinstall_cmds
26078 postuninstall_cmds=$lt_postuninstall_cmds
26079
26080 # Commands used to build a loadable module (assumed same as above if empty)
26081 module_cmds=$lt_module_cmds_GCJ
26082 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26083
26084 # Commands to strip libraries.
26085 old_striplib=$lt_old_striplib
26086 striplib=$lt_striplib
26087
26088 # Dependencies to place before the objects being linked to create a
26089 # shared library.
26090 predep_objects=$lt_predep_objects_GCJ
26091
26092 # Dependencies to place after the objects being linked to create a
26093 # shared library.
26094 postdep_objects=$lt_postdep_objects_GCJ
26095
26096 # Dependencies to place before the objects being linked to create a
26097 # shared library.
26098 predeps=$lt_predeps_GCJ
26099
26100 # Dependencies to place after the objects being linked to create a
26101 # shared library.
26102 postdeps=$lt_postdeps_GCJ
26103
26104 # The library search path used internally by the compiler when linking
26105 # a shared library.
26106 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26107
26108 # Method to check whether dependent libraries are shared objects.
26109 deplibs_check_method=$lt_deplibs_check_method
26110
26111 # Command to use when deplibs_check_method == file_magic.
26112 file_magic_cmd=$lt_file_magic_cmd
26113
26114 # Flag that allows shared libraries with undefined symbols to be built.
26115 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26116
26117 # Flag that forces no undefined symbols.
26118 no_undefined_flag=$lt_no_undefined_flag_GCJ
26119
26120 # Commands used to finish a libtool library installation in a directory.
26121 finish_cmds=$lt_finish_cmds
26122
26123 # Same as above, but a single script fragment to be evaled but not shown.
26124 finish_eval=$lt_finish_eval
26125
26126 # Take the output of nm and produce a listing of raw symbols and C names.
26127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26128
26129 # Transform the output of nm in a proper C declaration
26130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26131
26132 # Transform the output of nm in a C name address pair
26133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26134
26135 # This is the shared library runtime path variable.
26136 runpath_var=$runpath_var
26137
26138 # This is the shared library path variable.
26139 shlibpath_var=$shlibpath_var
26140
26141 # Is shlibpath searched before the hard-coded library search path?
26142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26143
26144 # How to hardcode a shared library path into an executable.
26145 hardcode_action=$hardcode_action_GCJ
26146
26147 # Whether we should hardcode library paths into libraries.
26148 hardcode_into_libs=$hardcode_into_libs
26149
26150 # Flag to hardcode \$libdir into a binary during linking.
26151 # This must work even if \$libdir does not exist.
26152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26153
26154 # If ld is used when linking, flag to hardcode \$libdir into
26155 # a binary during linking. This must work even if \$libdir does
26156 # not exist.
26157 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26158
26159 # Whether we need a single -rpath flag with a separated argument.
26160 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26161
26162 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26163 # resulting binary.
26164 hardcode_direct=$hardcode_direct_GCJ
26165
26166 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26167 # resulting binary.
26168 hardcode_minus_L=$hardcode_minus_L_GCJ
26169
26170 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26171 # the resulting binary.
26172 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26173
26174 # Set to yes if building a shared library automatically hardcodes DIR into the library
26175 # and all subsequent libraries and executables linked against it.
26176 hardcode_automatic=$hardcode_automatic_GCJ
26177
26178 # Variables whose values should be saved in libtool wrapper scripts and
26179 # restored at relink time.
26180 variables_saved_for_relink="$variables_saved_for_relink"
26181
26182 # Whether libtool must link a program against all its dependency libraries.
26183 link_all_deplibs=$link_all_deplibs_GCJ
26184
26185 # Compile-time system search path for libraries
26186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26187
26188 # Run-time system search path for libraries
26189 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26190
26191 # Fix the shell variable \$srcfile for the compiler.
26192 fix_srcfile_path="$fix_srcfile_path_GCJ"
26193
26194 # Set to yes if exported symbols are required.
26195 always_export_symbols=$always_export_symbols_GCJ
26196
26197 # The commands to list exported symbols.
26198 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26199
26200 # The commands to extract the exported symbol list from a shared archive.
26201 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26202
26203 # Symbols that should not be listed in the preloaded symbols.
26204 exclude_expsyms=$lt_exclude_expsyms_GCJ
26205
26206 # Symbols that must always be exported.
26207 include_expsyms=$lt_include_expsyms_GCJ
26208
26209 # ### END LIBTOOL TAG CONFIG: $tagname
26210
26211 __EOF__
26212
26213
26214 else
26215   # If there is no Makefile yet, we rely on a make rule to execute
26216   # `config.status --recheck' to rerun these tests and create the
26217   # libtool script then.
26218   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26219   if test -f "$ltmain_in"; then
26220     test -f Makefile && make "$ltmain"
26221   fi
26222 fi
26223
26224
26225 ac_ext=c
26226 ac_cpp='$CPP $CPPFLAGS'
26227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26230
26231 CC="$lt_save_CC"
26232
26233         else
26234           tagname=""
26235         fi
26236         ;;
26237
26238       RC)
26239
26240
26241 # Source file extension for RC test sources.
26242 ac_ext=rc
26243
26244 # Object file extension for compiled RC test sources.
26245 objext=o
26246 objext_RC=$objext
26247
26248 # Code to be used in simple compile tests
26249 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26250
26251 # Code to be used in simple link tests
26252 lt_simple_link_test_code="$lt_simple_compile_test_code"
26253
26254 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26255
26256 # If no C compiler was specified, use CC.
26257 LTCC=${LTCC-"$CC"}
26258
26259 # If no C compiler flags were specified, use CFLAGS.
26260 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26261
26262 # Allow CC to be a program name with arguments.
26263 compiler=$CC
26264
26265
26266 # save warnings/boilerplate of simple test code
26267 ac_outfile=conftest.$ac_objext
26268 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26270 _lt_compiler_boilerplate=`cat conftest.err`
26271 $rm conftest*
26272
26273 ac_outfile=conftest.$ac_objext
26274 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26276 _lt_linker_boilerplate=`cat conftest.err`
26277 $rm conftest*
26278
26279
26280 # Allow CC to be a program name with arguments.
26281 lt_save_CC="$CC"
26282 CC=${RC-"windres"}
26283 compiler=$CC
26284 compiler_RC=$CC
26285 for cc_temp in $compiler""; do
26286   case $cc_temp in
26287     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26288     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26289     \-*) ;;
26290     *) break;;
26291   esac
26292 done
26293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26294
26295 lt_cv_prog_compiler_c_o_RC=yes
26296
26297 # The else clause should only fire when bootstrapping the
26298 # libtool distribution, otherwise you forgot to ship ltmain.sh
26299 # with your package, and you will get complaints that there are
26300 # no rules to generate ltmain.sh.
26301 if test -f "$ltmain"; then
26302   # See if we are running on zsh, and set the options which allow our commands through
26303   # without removal of \ escapes.
26304   if test -n "${ZSH_VERSION+set}" ; then
26305     setopt NO_GLOB_SUBST
26306   fi
26307   # Now quote all the things that may contain metacharacters while being
26308   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26309   # variables and quote the copies for generation of the libtool script.
26310   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26311     SED SHELL STRIP \
26312     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26313     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26314     deplibs_check_method reload_flag reload_cmds need_locks \
26315     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26316     lt_cv_sys_global_symbol_to_c_name_address \
26317     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26318     old_postinstall_cmds old_postuninstall_cmds \
26319     compiler_RC \
26320     CC_RC \
26321     LD_RC \
26322     lt_prog_compiler_wl_RC \
26323     lt_prog_compiler_pic_RC \
26324     lt_prog_compiler_static_RC \
26325     lt_prog_compiler_no_builtin_flag_RC \
26326     export_dynamic_flag_spec_RC \
26327     thread_safe_flag_spec_RC \
26328     whole_archive_flag_spec_RC \
26329     enable_shared_with_static_runtimes_RC \
26330     old_archive_cmds_RC \
26331     old_archive_from_new_cmds_RC \
26332     predep_objects_RC \
26333     postdep_objects_RC \
26334     predeps_RC \
26335     postdeps_RC \
26336     compiler_lib_search_path_RC \
26337     archive_cmds_RC \
26338     archive_expsym_cmds_RC \
26339     postinstall_cmds_RC \
26340     postuninstall_cmds_RC \
26341     old_archive_from_expsyms_cmds_RC \
26342     allow_undefined_flag_RC \
26343     no_undefined_flag_RC \
26344     export_symbols_cmds_RC \
26345     hardcode_libdir_flag_spec_RC \
26346     hardcode_libdir_flag_spec_ld_RC \
26347     hardcode_libdir_separator_RC \
26348     hardcode_automatic_RC \
26349     module_cmds_RC \
26350     module_expsym_cmds_RC \
26351     lt_cv_prog_compiler_c_o_RC \
26352     exclude_expsyms_RC \
26353     include_expsyms_RC; do
26354
26355     case $var in
26356     old_archive_cmds_RC | \
26357     old_archive_from_new_cmds_RC | \
26358     archive_cmds_RC | \
26359     archive_expsym_cmds_RC | \
26360     module_cmds_RC | \
26361     module_expsym_cmds_RC | \
26362     old_archive_from_expsyms_cmds_RC | \
26363     export_symbols_cmds_RC | \
26364     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26365     postinstall_cmds | postuninstall_cmds | \
26366     old_postinstall_cmds | old_postuninstall_cmds | \
26367     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26368       # Double-quote double-evaled strings.
26369       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26370       ;;
26371     *)
26372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26373       ;;
26374     esac
26375   done
26376
26377   case $lt_echo in
26378   *'\$0 --fallback-echo"')
26379     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26380     ;;
26381   esac
26382
26383 cfgfile="$ofile"
26384
26385   cat <<__EOF__ >> "$cfgfile"
26386 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26387
26388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26389
26390 # Shell to use when invoking shell scripts.
26391 SHELL=$lt_SHELL
26392
26393 # Whether or not to build shared libraries.
26394 build_libtool_libs=$enable_shared
26395
26396 # Whether or not to build static libraries.
26397 build_old_libs=$enable_static
26398
26399 # Whether or not to add -lc for building shared libraries.
26400 build_libtool_need_lc=$archive_cmds_need_lc_RC
26401
26402 # Whether or not to disallow shared libs when runtime libs are static
26403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26404
26405 # Whether or not to optimize for fast installation.
26406 fast_install=$enable_fast_install
26407
26408 # The host system.
26409 host_alias=$host_alias
26410 host=$host
26411 host_os=$host_os
26412
26413 # The build system.
26414 build_alias=$build_alias
26415 build=$build
26416 build_os=$build_os
26417
26418 # An echo program that does not interpret backslashes.
26419 echo=$lt_echo
26420
26421 # The archiver.
26422 AR=$lt_AR
26423 AR_FLAGS=$lt_AR_FLAGS
26424
26425 # A C compiler.
26426 LTCC=$lt_LTCC
26427
26428 # LTCC compiler flags.
26429 LTCFLAGS=$lt_LTCFLAGS
26430
26431 # A language-specific compiler.
26432 CC=$lt_compiler_RC
26433
26434 # Is the compiler the GNU C compiler?
26435 with_gcc=$GCC_RC
26436
26437 # An ERE matcher.
26438 EGREP=$lt_EGREP
26439
26440 # The linker used to build libraries.
26441 LD=$lt_LD_RC
26442
26443 # Whether we need hard or soft links.
26444 LN_S=$lt_LN_S
26445
26446 # A BSD-compatible nm program.
26447 NM=$lt_NM
26448
26449 # A symbol stripping program
26450 STRIP=$lt_STRIP
26451
26452 # Used to examine libraries when file_magic_cmd begins "file"
26453 MAGIC_CMD=$MAGIC_CMD
26454
26455 # Used on cygwin: DLL creation program.
26456 DLLTOOL="$DLLTOOL"
26457
26458 # Used on cygwin: object dumper.
26459 OBJDUMP="$OBJDUMP"
26460
26461 # Used on cygwin: assembler.
26462 AS="$AS"
26463
26464 # The name of the directory that contains temporary libtool files.
26465 objdir=$objdir
26466
26467 # How to create reloadable object files.
26468 reload_flag=$lt_reload_flag
26469 reload_cmds=$lt_reload_cmds
26470
26471 # How to pass a linker flag through the compiler.
26472 wl=$lt_lt_prog_compiler_wl_RC
26473
26474 # Object file suffix (normally "o").
26475 objext="$ac_objext"
26476
26477 # Old archive suffix (normally "a").
26478 libext="$libext"
26479
26480 # Shared library suffix (normally ".so").
26481 shrext_cmds='$shrext_cmds'
26482
26483 # Executable file suffix (normally "").
26484 exeext="$exeext"
26485
26486 # Additional compiler flags for building library objects.
26487 pic_flag=$lt_lt_prog_compiler_pic_RC
26488 pic_mode=$pic_mode
26489
26490 # What is the maximum length of a command?
26491 max_cmd_len=$lt_cv_sys_max_cmd_len
26492
26493 # Does compiler simultaneously support -c and -o options?
26494 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26495
26496 # Must we lock files when doing compilation?
26497 need_locks=$lt_need_locks
26498
26499 # Do we need the lib prefix for modules?
26500 need_lib_prefix=$need_lib_prefix
26501
26502 # Do we need a version for libraries?
26503 need_version=$need_version
26504
26505 # Whether dlopen is supported.
26506 dlopen_support=$enable_dlopen
26507
26508 # Whether dlopen of programs is supported.
26509 dlopen_self=$enable_dlopen_self
26510
26511 # Whether dlopen of statically linked programs is supported.
26512 dlopen_self_static=$enable_dlopen_self_static
26513
26514 # Compiler flag to prevent dynamic linking.
26515 link_static_flag=$lt_lt_prog_compiler_static_RC
26516
26517 # Compiler flag to turn off builtin functions.
26518 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26519
26520 # Compiler flag to allow reflexive dlopens.
26521 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26522
26523 # Compiler flag to generate shared objects directly from archives.
26524 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26525
26526 # Compiler flag to generate thread-safe objects.
26527 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26528
26529 # Library versioning type.
26530 version_type=$version_type
26531
26532 # Format of library name prefix.
26533 libname_spec=$lt_libname_spec
26534
26535 # List of archive names.  First name is the real one, the rest are links.
26536 # The last name is the one that the linker finds with -lNAME.
26537 library_names_spec=$lt_library_names_spec
26538
26539 # The coded name of the library, if different from the real name.
26540 soname_spec=$lt_soname_spec
26541
26542 # Commands used to build and install an old-style archive.
26543 RANLIB=$lt_RANLIB
26544 old_archive_cmds=$lt_old_archive_cmds_RC
26545 old_postinstall_cmds=$lt_old_postinstall_cmds
26546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26547
26548 # Create an old-style archive from a shared archive.
26549 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26550
26551 # Create a temporary old-style archive to link instead of a shared archive.
26552 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26553
26554 # Commands used to build and install a shared archive.
26555 archive_cmds=$lt_archive_cmds_RC
26556 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26557 postinstall_cmds=$lt_postinstall_cmds
26558 postuninstall_cmds=$lt_postuninstall_cmds
26559
26560 # Commands used to build a loadable module (assumed same as above if empty)
26561 module_cmds=$lt_module_cmds_RC
26562 module_expsym_cmds=$lt_module_expsym_cmds_RC
26563
26564 # Commands to strip libraries.
26565 old_striplib=$lt_old_striplib
26566 striplib=$lt_striplib
26567
26568 # Dependencies to place before the objects being linked to create a
26569 # shared library.
26570 predep_objects=$lt_predep_objects_RC
26571
26572 # Dependencies to place after the objects being linked to create a
26573 # shared library.
26574 postdep_objects=$lt_postdep_objects_RC
26575
26576 # Dependencies to place before the objects being linked to create a
26577 # shared library.
26578 predeps=$lt_predeps_RC
26579
26580 # Dependencies to place after the objects being linked to create a
26581 # shared library.
26582 postdeps=$lt_postdeps_RC
26583
26584 # The library search path used internally by the compiler when linking
26585 # a shared library.
26586 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26587
26588 # Method to check whether dependent libraries are shared objects.
26589 deplibs_check_method=$lt_deplibs_check_method
26590
26591 # Command to use when deplibs_check_method == file_magic.
26592 file_magic_cmd=$lt_file_magic_cmd
26593
26594 # Flag that allows shared libraries with undefined symbols to be built.
26595 allow_undefined_flag=$lt_allow_undefined_flag_RC
26596
26597 # Flag that forces no undefined symbols.
26598 no_undefined_flag=$lt_no_undefined_flag_RC
26599
26600 # Commands used to finish a libtool library installation in a directory.
26601 finish_cmds=$lt_finish_cmds
26602
26603 # Same as above, but a single script fragment to be evaled but not shown.
26604 finish_eval=$lt_finish_eval
26605
26606 # Take the output of nm and produce a listing of raw symbols and C names.
26607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26608
26609 # Transform the output of nm in a proper C declaration
26610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26611
26612 # Transform the output of nm in a C name address pair
26613 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26614
26615 # This is the shared library runtime path variable.
26616 runpath_var=$runpath_var
26617
26618 # This is the shared library path variable.
26619 shlibpath_var=$shlibpath_var
26620
26621 # Is shlibpath searched before the hard-coded library search path?
26622 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26623
26624 # How to hardcode a shared library path into an executable.
26625 hardcode_action=$hardcode_action_RC
26626
26627 # Whether we should hardcode library paths into libraries.
26628 hardcode_into_libs=$hardcode_into_libs
26629
26630 # Flag to hardcode \$libdir into a binary during linking.
26631 # This must work even if \$libdir does not exist.
26632 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26633
26634 # If ld is used when linking, flag to hardcode \$libdir into
26635 # a binary during linking. This must work even if \$libdir does
26636 # not exist.
26637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26638
26639 # Whether we need a single -rpath flag with a separated argument.
26640 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26641
26642 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26643 # resulting binary.
26644 hardcode_direct=$hardcode_direct_RC
26645
26646 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26647 # resulting binary.
26648 hardcode_minus_L=$hardcode_minus_L_RC
26649
26650 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26651 # the resulting binary.
26652 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26653
26654 # Set to yes if building a shared library automatically hardcodes DIR into the library
26655 # and all subsequent libraries and executables linked against it.
26656 hardcode_automatic=$hardcode_automatic_RC
26657
26658 # Variables whose values should be saved in libtool wrapper scripts and
26659 # restored at relink time.
26660 variables_saved_for_relink="$variables_saved_for_relink"
26661
26662 # Whether libtool must link a program against all its dependency libraries.
26663 link_all_deplibs=$link_all_deplibs_RC
26664
26665 # Compile-time system search path for libraries
26666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26667
26668 # Run-time system search path for libraries
26669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26670
26671 # Fix the shell variable \$srcfile for the compiler.
26672 fix_srcfile_path="$fix_srcfile_path_RC"
26673
26674 # Set to yes if exported symbols are required.
26675 always_export_symbols=$always_export_symbols_RC
26676
26677 # The commands to list exported symbols.
26678 export_symbols_cmds=$lt_export_symbols_cmds_RC
26679
26680 # The commands to extract the exported symbol list from a shared archive.
26681 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26682
26683 # Symbols that should not be listed in the preloaded symbols.
26684 exclude_expsyms=$lt_exclude_expsyms_RC
26685
26686 # Symbols that must always be exported.
26687 include_expsyms=$lt_include_expsyms_RC
26688
26689 # ### END LIBTOOL TAG CONFIG: $tagname
26690
26691 __EOF__
26692
26693
26694 else
26695   # If there is no Makefile yet, we rely on a make rule to execute
26696   # `config.status --recheck' to rerun these tests and create the
26697   # libtool script then.
26698   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26699   if test -f "$ltmain_in"; then
26700     test -f Makefile && make "$ltmain"
26701   fi
26702 fi
26703
26704
26705 ac_ext=c
26706 ac_cpp='$CPP $CPPFLAGS'
26707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26710
26711 CC="$lt_save_CC"
26712
26713         ;;
26714
26715       *)
26716         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26717 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26718    { (exit 1); exit 1; }; }
26719         ;;
26720       esac
26721
26722       # Append the new tag name to the list of available tags.
26723       if test -n "$tagname" ; then
26724       available_tags="$available_tags $tagname"
26725     fi
26726     fi
26727   done
26728   IFS="$lt_save_ifs"
26729
26730   # Now substitute the updated list of available tags.
26731   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26732     mv "${ofile}T" "$ofile"
26733     chmod +x "$ofile"
26734   else
26735     rm -f "${ofile}T"
26736     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26737 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26738    { (exit 1); exit 1; }; }
26739   fi
26740 fi
26741
26742
26743
26744 # This can be used to rebuild libtool when needed
26745 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26746
26747 # Always use our own libtool.
26748 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26749
26750 # Prevent multiple expansion
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774         { echo "$as_me:$LINENO: checking which vserver-rootdir is to use" >&5
26775 echo $ECHO_N "checking which vserver-rootdir is to use... $ECHO_C" >&6; }
26776
26777 # Check whether --with-vrootdir was given.
26778 if test "${with_vrootdir+set}" = set; then
26779   withval=$with_vrootdir; case "$withval" in
26780                         yes|no) { { echo "$as_me:$LINENO: error: '$withval' is not a valid value for vrootdir" >&5
26781 echo "$as_me: error: '$withval' is not a valid value for vrootdir" >&2;}
26782    { (exit 1); exit 1; }; };;
26783                         *)      ensc_uv_path_vrootdir=$withval;;
26784                      esac
26785 else
26786   ensc_uv_path_vrootdir=/vservers
26787 fi
26788
26789         { echo "$as_me:$LINENO: result: $ensc_uv_path_vrootdir" >&5
26790 echo "${ECHO_T}$ensc_uv_path_vrootdir" >&6; }
26791
26792         if test x"vserverdir" != x; then
26793                 vserverdir=$ensc_uv_path_vrootdir
26794
26795         fi
26796
26797
26798         for ac_prog in svn2cl
26799 do
26800   # Extract the first word of "$ac_prog", so it can be a program name with args.
26801 set dummy $ac_prog; ac_word=$2
26802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26804 if test "${ac_cv_prog_SVN2CL+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807   if test -n "$SVN2CL"; then
26808   ac_cv_prog_SVN2CL="$SVN2CL" # Let the user override the test.
26809 else
26810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26811 for as_dir in $PATH
26812 do
26813   IFS=$as_save_IFS
26814   test -z "$as_dir" && as_dir=.
26815   for ac_exec_ext in '' $ac_executable_extensions; do
26816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26817     ac_cv_prog_SVN2CL="$ac_prog"
26818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26819     break 2
26820   fi
26821 done
26822 done
26823 IFS=$as_save_IFS
26824
26825 fi
26826 fi
26827 SVN2CL=$ac_cv_prog_SVN2CL
26828 if test -n "$SVN2CL"; then
26829   { echo "$as_me:$LINENO: result: $SVN2CL" >&5
26830 echo "${ECHO_T}$SVN2CL" >&6; }
26831 else
26832   { echo "$as_me:$LINENO: result: no" >&5
26833 echo "${ECHO_T}no" >&6; }
26834 fi
26835
26836
26837   test -n "$SVN2CL" && break
26838 done
26839
26840          if test x"$SVN2CL" != x; then
26841   HAVE_SVN2CL_TRUE=
26842   HAVE_SVN2CL_FALSE='#'
26843 else
26844   HAVE_SVN2CL_TRUE='#'
26845   HAVE_SVN2CL_FALSE=
26846 fi
26847
26848
26849
26850
26851 { echo "$as_me:$LINENO: checking whether to use internal kernel headers" >&5
26852 echo $ECHO_N "checking whether to use internal kernel headers... $ECHO_C" >&6; }
26853 # Check whether --enable-internal-headers was given.
26854 if test "${enable_internal_headers+set}" = set; then
26855   enableval=$enable_internal_headers; case "$enableval" in
26856                   (yes|no) ;;
26857                   (*)      { { echo "$as_me:$LINENO: error: '$i' is not a supported value for '--disable-internal-headers'" >&5
26858 echo "$as_me: error: '$i' is not a supported value for '--disable-internal-headers'" >&2;}
26859    { (exit 1); exit 1; }; };;
26860                esac
26861 else
26862   enable_internal_headers=yes
26863 fi
26864
26865
26866  if test x"$enable_internal_headers" = xyes; then
26867   ENSC_ENABLE_INTERNAL_HEADERS_TRUE=
26868   ENSC_ENABLE_INTERNAL_HEADERS_FALSE='#'
26869 else
26870   ENSC_ENABLE_INTERNAL_HEADERS_TRUE='#'
26871   ENSC_ENABLE_INTERNAL_HEADERS_FALSE=
26872 fi
26873
26874 { echo "$as_me:$LINENO: result: $enable_internal_headers" >&5
26875 echo "${ECHO_T}$enable_internal_headers" >&6; }
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904 { echo "$as_me:$LINENO: checking for supported APIs" >&5
26905 echo $ECHO_N "checking for supported APIs... $ECHO_C" >&6; }
26906 # Check whether --enable-apis was given.
26907 if test "${enable_apis+set}" = set; then
26908   enableval=$enable_apis;
26909 else
26910   enable_apis=v13,net,v21,v22,v23,netv2
26911 fi
26912
26913
26914 test x"$enable_apis" != xALL      || enable_apis='legacy,compat,v11,fscompat,v13obs,v13,net,v21,v22,v23,netv2'
26915 test x"$enable_apis" != xNOLEGACY || enable_apis='compat,v11,fscompat,v13,net,v21,v22,v23,netv2'
26916 enable_api_oldproc=
26917 enable_api_olduts=
26918 old_IFS=$IFS
26919 IFS=,;
26920
26921 for i in $enable_apis; do
26922         case "$i" in
26923                 (compat)        cat >>confdefs.h <<\_ACEOF
26924 #define VC_ENABLE_API_COMPAT 1
26925 _ACEOF
26926
26927                                 enable_api_oldproc=${enable_api_oldproc:-1}
26928                                 enable_api_olduts=${enable_api_olduts:-1}
26929                                 ;;
26930                 (legacy)        cat >>confdefs.h <<\_ACEOF
26931 #define VC_ENABLE_API_LEGACY 1
26932 _ACEOF
26933
26934                                 enable_api_oldproc=${enable_api_oldproc:-1}
26935                                 enable_api_olduts=${enable_api_olduts:-1}
26936                                 ;;
26937                 (v11)           cat >>confdefs.h <<\_ACEOF
26938 #define VC_ENABLE_API_V11 1
26939 _ACEOF
26940
26941                                 enable_api_oldproc=${enable_api_oldproc:-1}
26942                                 enable_api_olduts=${enable_api_olduts:-1}
26943                                 ;;
26944                 (fscompat)      cat >>confdefs.h <<\_ACEOF
26945 #define VC_ENABLE_API_FSCOMPAT 1
26946 _ACEOF
26947 ;;
26948                 (v13obs)        cat >>confdefs.h <<\_ACEOF
26949 #define VC_ENABLE_API_V13OBS 1
26950 _ACEOF
26951
26952                                 cat >>confdefs.h <<\_ACEOF
26953 #define VC_ENABLE_API_V13 1
26954 _ACEOF
26955 ;;
26956                 (v13)           cat >>confdefs.h <<\_ACEOF
26957 #define VC_ENABLE_API_V13 1
26958 _ACEOF
26959 ;;
26960                 (net)           cat >>confdefs.h <<\_ACEOF
26961 #define VC_ENABLE_API_NET 1
26962 _ACEOF
26963 ;;
26964                 (v21)           cat >>confdefs.h <<\_ACEOF
26965 #define VC_ENABLE_API_V21 1
26966 _ACEOF
26967 ;;
26968                 (v22)           cat >>confdefs.h <<\_ACEOF
26969 #define VC_ENABLE_API_V22 1
26970 _ACEOF
26971 ;;
26972                 (v23)           cat >>confdefs.h <<\_ACEOF
26973 #define VC_ENABLE_API_V23 1
26974 _ACEOF
26975 ;;
26976                 (netv2)         cat >>confdefs.h <<\_ACEOF
26977 #define VC_ENABLE_API_NETV2 1
26978 _ACEOF
26979 ;;
26980                 (oldproc)       enable_api_oldproc=2;;
26981                 (olduts)        enable_api_olduts=2;;
26982                 (*)             { { echo "$as_me:$LINENO: error: '$i' is not a supported API" >&5
26983 echo "$as_me: error: '$i' is not a supported API" >&2;}
26984    { (exit 1); exit 1; }; };;
26985         esac
26986 done
26987 IFS=$old_IFS
26988 if test x"$enable_api_oldproc" != x; then
26989         cat >>confdefs.h <<\_ACEOF
26990 #define VC_ENABLE_API_OLDPROC 1
26991 _ACEOF
26992
26993         test x"$enable_api_oldproc" != x2 && enable_apis="$enable_apis,oldproc"
26994 fi
26995 if test x"$enable_api_olduts" != x; then
26996         cat >>confdefs.h <<\_ACEOF
26997 #define VC_ENABLE_API_OLDUTS 1
26998 _ACEOF
26999
27000         test x"$enable_api_olduts" != x2 && enable_apis="$enable_apis,olduts"
27001 fi
27002 { echo "$as_me:$LINENO: result: $enable_apis" >&5
27003 echo "${ECHO_T}$enable_apis" >&6; }
27004
27005
27006
27007
27008     ac_ext=cpp
27009 ac_cpp='$CXXCPP $CPPFLAGS'
27010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27013
27014     { echo "$as_me:$LINENO: checking for ext2fs-headers" >&5
27015 echo $ECHO_N "checking for ext2fs-headers... $ECHO_C" >&6; }
27016 if test "${ensc_cv_test_ext2fs_header+set}" = set; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019
27020         cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h.  */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h.  */
27026 #include <ext2fs/ext2_fs.h>
27027                                           int main() { return 0; }
27028 _ACEOF
27029 rm -f conftest.$ac_objext
27030 if { (ac_try="$ac_compile"
27031 case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_compile") 2>conftest.er1
27037   ac_status=$?
27038   grep -v '^ *+' conftest.er1 >conftest.err
27039   rm -f conftest.er1
27040   cat conftest.err >&5
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); } && {
27043          test -z "$ac_cxx_werror_flag" ||
27044          test ! -s conftest.err
27045        } && test -s conftest.$ac_objext; then
27046   ensc_cv_test_ext2fs_header=e2fsprogs
27047 else
27048   echo "$as_me: failed program was:" >&5
27049 sed 's/^/| /' conftest.$ac_ext >&5
27050
27051
27052         cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058 #include <linux/ext2_fs.h>
27059                                           int main() { return 0; }
27060 _ACEOF
27061 rm -f conftest.$ac_objext
27062 if { (ac_try="$ac_compile"
27063 case "(($ac_try" in
27064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27065   *) ac_try_echo=$ac_try;;
27066 esac
27067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27068   (eval "$ac_compile") 2>conftest.er1
27069   ac_status=$?
27070   grep -v '^ *+' conftest.er1 >conftest.err
27071   rm -f conftest.er1
27072   cat conftest.err >&5
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); } && {
27075          test -z "$ac_cxx_werror_flag" ||
27076          test ! -s conftest.err
27077        } && test -s conftest.$ac_objext; then
27078   ensc_cv_test_ext2fs_header=kernel
27079 else
27080   echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083
27084         ensc_cv_test_ext2fs_header=none
27085 fi
27086
27087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 fi
27089
27090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27091 fi
27092 { echo "$as_me:$LINENO: result: $ensc_cv_test_ext2fs_header" >&5
27093 echo "${ECHO_T}$ensc_cv_test_ext2fs_header" >&6; }
27094
27095     case x"$ensc_cv_test_ext2fs_header" in
27096         (xe2fsprogs)
27097                 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27098   { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27099 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27100 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27101   echo $ECHO_N "(cached) $ECHO_C" >&6
27102 fi
27103 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27104 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27105 else
27106   # Is the header compilable?
27107 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h usability" >&5
27108 echo $ECHO_N "checking ext2fs/ext2_fs.h usability... $ECHO_C" >&6; }
27109 cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h.  */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h.  */
27115 $ac_includes_default
27116 #include <ext2fs/ext2_fs.h>
27117 _ACEOF
27118 rm -f conftest.$ac_objext
27119 if { (ac_try="$ac_compile"
27120 case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_compile") 2>conftest.er1
27126   ac_status=$?
27127   grep -v '^ *+' conftest.er1 >conftest.err
27128   rm -f conftest.er1
27129   cat conftest.err >&5
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); } && {
27132          test -z "$ac_cxx_werror_flag" ||
27133          test ! -s conftest.err
27134        } && test -s conftest.$ac_objext; then
27135   ac_header_compiler=yes
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140         ac_header_compiler=no
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27145 echo "${ECHO_T}$ac_header_compiler" >&6; }
27146
27147 # Is the header present?
27148 { echo "$as_me:$LINENO: checking ext2fs/ext2_fs.h presence" >&5
27149 echo $ECHO_N "checking ext2fs/ext2_fs.h presence... $ECHO_C" >&6; }
27150 cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h.  */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h.  */
27156 #include <ext2fs/ext2_fs.h>
27157 _ACEOF
27158 if { (ac_try="$ac_cpp conftest.$ac_ext"
27159 case "(($ac_try" in
27160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161   *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } >/dev/null && {
27171          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27172          test ! -s conftest.err
27173        }; then
27174   ac_header_preproc=yes
27175 else
27176   echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179   ac_header_preproc=no
27180 fi
27181
27182 rm -f conftest.err conftest.$ac_ext
27183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27184 echo "${ECHO_T}$ac_header_preproc" >&6; }
27185
27186 # So?  What about this header?
27187 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27188   yes:no: )
27189     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27190 echo "$as_me: WARNING: ext2fs/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27191     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&5
27192 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the compiler's result" >&2;}
27193     ac_header_preproc=yes
27194     ;;
27195   no:yes:* )
27196     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&5
27197 echo "$as_me: WARNING: ext2fs/ext2_fs.h: present but cannot be compiled" >&2;}
27198     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&5
27199 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27200     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&5
27201 echo "$as_me: WARNING: ext2fs/ext2_fs.h: see the Autoconf documentation" >&2;}
27202     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27203 echo "$as_me: WARNING: ext2fs/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27204     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&5
27205 echo "$as_me: WARNING: ext2fs/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27206     { echo "$as_me:$LINENO: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&5
27207 echo "$as_me: WARNING: ext2fs/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27208     ( cat <<\_ASBOX
27209 ## --------------------------------------------- ##
27210 ## Report this to vserver@list.linux-vserver.org ##
27211 ## --------------------------------------------- ##
27212 _ASBOX
27213      ) | sed "s/^/$as_me: WARNING:     /" >&2
27214     ;;
27215 esac
27216 { echo "$as_me:$LINENO: checking for ext2fs/ext2_fs.h" >&5
27217 echo $ECHO_N "checking for ext2fs/ext2_fs.h... $ECHO_C" >&6; }
27218 if test "${ac_cv_header_ext2fs_ext2_fs_h+set}" = set; then
27219   echo $ECHO_N "(cached) $ECHO_C" >&6
27220 else
27221   ac_cv_header_ext2fs_ext2_fs_h=$ac_header_preproc
27222 fi
27223 { echo "$as_me:$LINENO: result: $ac_cv_header_ext2fs_ext2_fs_h" >&5
27224 echo "${ECHO_T}$ac_cv_header_ext2fs_ext2_fs_h" >&6; }
27225
27226 fi
27227 if test $ac_cv_header_ext2fs_ext2_fs_h = yes; then
27228
27229 cat >>confdefs.h <<\_ACEOF
27230 #define ENSC_HAVE_EXT2FS_EXT2_FS_H 1
27231 _ACEOF
27232
27233 else
27234   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27235 See \`config.log' for more details." >&5
27236 echo "$as_me: error: unexpected error while checkin for <ext2fs/ext2_fs.h>
27237 See \`config.log' for more details." >&2;}
27238    { (exit 1); exit 1; }; }
27239 fi
27240
27241
27242                 ;;
27243         (xkernel)
27244                 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27245   { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27246 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27247 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 fi
27250 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27251 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27252 else
27253   # Is the header compilable?
27254 { echo "$as_me:$LINENO: checking linux/ext2_fs.h usability" >&5
27255 echo $ECHO_N "checking linux/ext2_fs.h usability... $ECHO_C" >&6; }
27256 cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h.  */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h.  */
27262 $ac_includes_default
27263 #include <linux/ext2_fs.h>
27264 _ACEOF
27265 rm -f conftest.$ac_objext
27266 if { (ac_try="$ac_compile"
27267 case "(($ac_try" in
27268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269   *) ac_try_echo=$ac_try;;
27270 esac
27271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272   (eval "$ac_compile") 2>conftest.er1
27273   ac_status=$?
27274   grep -v '^ *+' conftest.er1 >conftest.err
27275   rm -f conftest.er1
27276   cat conftest.err >&5
27277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278   (exit $ac_status); } && {
27279          test -z "$ac_cxx_werror_flag" ||
27280          test ! -s conftest.err
27281        } && test -s conftest.$ac_objext; then
27282   ac_header_compiler=yes
27283 else
27284   echo "$as_me: failed program was:" >&5
27285 sed 's/^/| /' conftest.$ac_ext >&5
27286
27287         ac_header_compiler=no
27288 fi
27289
27290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27292 echo "${ECHO_T}$ac_header_compiler" >&6; }
27293
27294 # Is the header present?
27295 { echo "$as_me:$LINENO: checking linux/ext2_fs.h presence" >&5
27296 echo $ECHO_N "checking linux/ext2_fs.h presence... $ECHO_C" >&6; }
27297 cat >conftest.$ac_ext <<_ACEOF
27298 /* confdefs.h.  */
27299 _ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h.  */
27303 #include <linux/ext2_fs.h>
27304 _ACEOF
27305 if { (ac_try="$ac_cpp conftest.$ac_ext"
27306 case "(($ac_try" in
27307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308   *) ac_try_echo=$ac_try;;
27309 esac
27310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } >/dev/null && {
27318          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27319          test ! -s conftest.err
27320        }; then
27321   ac_header_preproc=yes
27322 else
27323   echo "$as_me: failed program was:" >&5
27324 sed 's/^/| /' conftest.$ac_ext >&5
27325
27326   ac_header_preproc=no
27327 fi
27328
27329 rm -f conftest.err conftest.$ac_ext
27330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27331 echo "${ECHO_T}$ac_header_preproc" >&6; }
27332
27333 # So?  What about this header?
27334 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27335   yes:no: )
27336     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
27337 echo "$as_me: WARNING: linux/ext2_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27338     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&5
27339 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the compiler's result" >&2;}
27340     ac_header_preproc=yes
27341     ;;
27342   no:yes:* )
27343     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&5
27344 echo "$as_me: WARNING: linux/ext2_fs.h: present but cannot be compiled" >&2;}
27345     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&5
27346 echo "$as_me: WARNING: linux/ext2_fs.h:     check for missing prerequisite headers?" >&2;}
27347     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&5
27348 echo "$as_me: WARNING: linux/ext2_fs.h: see the Autoconf documentation" >&2;}
27349     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
27350 echo "$as_me: WARNING: linux/ext2_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27351     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&5
27352 echo "$as_me: WARNING: linux/ext2_fs.h: proceeding with the preprocessor's result" >&2;}
27353     { echo "$as_me:$LINENO: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&5
27354 echo "$as_me: WARNING: linux/ext2_fs.h: in the future, the compiler will take precedence" >&2;}
27355     ( cat <<\_ASBOX
27356 ## --------------------------------------------- ##
27357 ## Report this to vserver@list.linux-vserver.org ##
27358 ## --------------------------------------------- ##
27359 _ASBOX
27360      ) | sed "s/^/$as_me: WARNING:     /" >&2
27361     ;;
27362 esac
27363 { echo "$as_me:$LINENO: checking for linux/ext2_fs.h" >&5
27364 echo $ECHO_N "checking for linux/ext2_fs.h... $ECHO_C" >&6; }
27365 if test "${ac_cv_header_linux_ext2_fs_h+set}" = set; then
27366   echo $ECHO_N "(cached) $ECHO_C" >&6
27367 else
27368   ac_cv_header_linux_ext2_fs_h=$ac_header_preproc
27369 fi
27370 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ext2_fs_h" >&5
27371 echo "${ECHO_T}$ac_cv_header_linux_ext2_fs_h" >&6; }
27372
27373 fi
27374 if test $ac_cv_header_linux_ext2_fs_h = yes; then
27375
27376 cat >>confdefs.h <<\_ACEOF
27377 #define ENSC_HAVE_LINUX_EXT2_FS_H 1
27378 _ACEOF
27379
27380 else
27381   { { echo "$as_me:$LINENO: error: unexpected error while checkin for <linux/ext2_fs.h>
27382 See \`config.log' for more details." >&5
27383 echo "$as_me: error: unexpected error while checkin for <linux/ext2_fs.h>
27384 See \`config.log' for more details." >&2;}
27385    { (exit 1); exit 1; }; }
27386 fi
27387
27388
27389                 ;;
27390         (*)
27391                 { { echo "$as_me:$LINENO: error:
27392 ext2fs headers were not found, or they are not usable. This can have
27393 the following reasons:
27394
27395 * you have neither the e2fsprogs nor the kernel headers installed
27396
27397 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27398   and you do not have e2fsprogs headers installed; please try to install
27399   - e2fsprogs-devel (for Red Hat), or
27400   - lib*ext2fs2-devel (for Mandriva), or
27401   - e2fslibs-dev (for Debian)
27402   in this case.
27403
27404 * kernel headers are broken and your e2fsprogs headers are too old;
27405   until version 1.27 (inclusive), they are using reserved C++ keywords
27406
27407 * kernel headers are broken and your e2fsprogs headers are too new;
27408   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27409   C++, for details and a solution see
27410   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27411
27412
27413 In the latter two cases you have the following options:
27414 * fix the headers manually, or
27415 * install a stable version of e2fsprogs (e.g. 1.34), or
27416 * use good kernel headers (from linux 2.4.x)
27417
27418 See \`config.log' for more details." >&5
27419 echo "$as_me: error:
27420 ext2fs headers were not found, or they are not usable. This can have
27421 the following reasons:
27422
27423 * you have neither the e2fsprogs nor the kernel headers installed
27424
27425 * kernel headers are broken (e.g. these of linux 2.6 are known to be)
27426   and you do not have e2fsprogs headers installed; please try to install
27427   - e2fsprogs-devel (for Red Hat), or
27428   - lib*ext2fs2-devel (for Mandriva), or
27429   - e2fslibs-dev (for Debian)
27430   in this case.
27431
27432 * kernel headers are broken and your e2fsprogs headers are too old;
27433   until version 1.27 (inclusive), they are using reserved C++ keywords
27434
27435 * kernel headers are broken and your e2fsprogs headers are too new;
27436   recent (January 2004) BK snapshots of e2fsprogs are unusable for
27437   C++, for details and a solution see
27438   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112448
27439
27440
27441 In the latter two cases you have the following options:
27442 * fix the headers manually, or
27443 * install a stable version of e2fsprogs (e.g. 1.34), or
27444 * use good kernel headers (from linux 2.4.x)
27445
27446 See \`config.log' for more details." >&2;}
27447    { (exit 1); exit 1; }; }
27448                 ;;
27449     esac
27450     ac_ext=c
27451 ac_cpp='$CPP $CPPFLAGS'
27452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27455
27456
27457
27458 for ac_func in vserver
27459 do
27460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27464   echo $ECHO_N "(cached) $ECHO_C" >&6
27465 else
27466   cat >conftest.$ac_ext <<_ACEOF
27467 /* confdefs.h.  */
27468 _ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h.  */
27472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27474 #define $ac_func innocuous_$ac_func
27475
27476 /* System header to define __stub macros and hopefully few prototypes,
27477     which can conflict with char $ac_func (); below.
27478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27479     <limits.h> exists even on freestanding compilers.  */
27480
27481 #ifdef __STDC__
27482 # include <limits.h>
27483 #else
27484 # include <assert.h>
27485 #endif
27486
27487 #undef $ac_func
27488
27489 /* Override any GCC internal prototype to avoid an error.
27490    Use char because int might match the return type of a GCC
27491    builtin and then its argument prototype would still apply.  */
27492 #ifdef __cplusplus
27493 extern "C"
27494 #endif
27495 char $ac_func ();
27496 /* The GNU C library defines this for functions which it implements
27497     to always fail with ENOSYS.  Some functions are actually named
27498     something starting with __ and the normal name is an alias.  */
27499 #if defined __stub_$ac_func || defined __stub___$ac_func
27500 choke me
27501 #endif
27502
27503 int
27504 main ()
27505 {
27506 return $ac_func ();
27507   ;
27508   return 0;
27509 }
27510 _ACEOF
27511 rm -f conftest.$ac_objext conftest$ac_exeext
27512 if { (ac_try="$ac_link"
27513 case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518   (eval "$ac_link") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } && {
27525          test -z "$ac_c_werror_flag" ||
27526          test ! -s conftest.err
27527        } && test -s conftest$ac_exeext &&
27528        $as_test_x conftest$ac_exeext; then
27529   eval "$as_ac_var=yes"
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27533
27534         eval "$as_ac_var=no"
27535 fi
27536
27537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27538       conftest$ac_exeext conftest.$ac_ext
27539 fi
27540 ac_res=`eval echo '${'$as_ac_var'}'`
27541                { echo "$as_me:$LINENO: result: $ac_res" >&5
27542 echo "${ECHO_T}$ac_res" >&6; }
27543 if test `eval echo '${'$as_ac_var'}'` = yes; then
27544   cat >>confdefs.h <<_ACEOF
27545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27546 _ACEOF
27547
27548 fi
27549 done
27550
27551 { echo "$as_me:$LINENO: checking whether MS_MOVE is declared" >&5
27552 echo $ECHO_N "checking whether MS_MOVE is declared... $ECHO_C" >&6; }
27553 if test "${ac_cv_have_decl_MS_MOVE+set}" = set; then
27554   echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556   cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562 #include <linux/fs.h>
27563
27564 int
27565 main ()
27566 {
27567 #ifndef MS_MOVE
27568   (void) MS_MOVE;
27569 #endif
27570
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 rm -f conftest.$ac_objext
27576 if { (ac_try="$ac_compile"
27577 case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_compile") 2>conftest.er1
27583   ac_status=$?
27584   grep -v '^ *+' conftest.er1 >conftest.err
27585   rm -f conftest.er1
27586   cat conftest.err >&5
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); } && {
27589          test -z "$ac_c_werror_flag" ||
27590          test ! -s conftest.err
27591        } && test -s conftest.$ac_objext; then
27592   ac_cv_have_decl_MS_MOVE=yes
27593 else
27594   echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27596
27597         ac_cv_have_decl_MS_MOVE=no
27598 fi
27599
27600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27601 fi
27602 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_MS_MOVE" >&5
27603 echo "${ECHO_T}$ac_cv_have_decl_MS_MOVE" >&6; }
27604 if test $ac_cv_have_decl_MS_MOVE = yes; then
27605
27606 cat >>confdefs.h <<_ACEOF
27607 #define HAVE_DECL_MS_MOVE 1
27608 _ACEOF
27609
27610
27611 else
27612   cat >>confdefs.h <<_ACEOF
27613 #define HAVE_DECL_MS_MOVE 0
27614 _ACEOF
27615
27616
27617 fi
27618
27619
27620 { echo "$as_me:$LINENO: checking for xid_t" >&5
27621 echo $ECHO_N "checking for xid_t... $ECHO_C" >&6; }
27622 if test "${ac_cv_type_xid_t+set}" = set; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631 #include <sys/types.h>
27632
27633 typedef xid_t ac__type_new_;
27634 int
27635 main ()
27636 {
27637 if ((ac__type_new_ *) 0)
27638   return 0;
27639 if (sizeof (ac__type_new_))
27640   return 0;
27641   ;
27642   return 0;
27643 }
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (ac_try="$ac_compile"
27647 case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652   (eval "$ac_compile") 2>conftest.er1
27653   ac_status=$?
27654   grep -v '^ *+' conftest.er1 >conftest.err
27655   rm -f conftest.er1
27656   cat conftest.err >&5
27657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } && {
27659          test -z "$ac_c_werror_flag" ||
27660          test ! -s conftest.err
27661        } && test -s conftest.$ac_objext; then
27662   ac_cv_type_xid_t=yes
27663 else
27664   echo "$as_me: failed program was:" >&5
27665 sed 's/^/| /' conftest.$ac_ext >&5
27666
27667         ac_cv_type_xid_t=no
27668 fi
27669
27670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27671 fi
27672 { echo "$as_me:$LINENO: result: $ac_cv_type_xid_t" >&5
27673 echo "${ECHO_T}$ac_cv_type_xid_t" >&6; }
27674 if test $ac_cv_type_xid_t = yes; then
27675
27676 cat >>confdefs.h <<_ACEOF
27677 #define HAVE_XID_T 1
27678 _ACEOF
27679
27680
27681 fi
27682
27683 { echo "$as_me:$LINENO: checking for nid_t" >&5
27684 echo $ECHO_N "checking for nid_t... $ECHO_C" >&6; }
27685 if test "${ac_cv_type_nid_t+set}" = set; then
27686   echo $ECHO_N "(cached) $ECHO_C" >&6
27687 else
27688   cat >conftest.$ac_ext <<_ACEOF
27689 /* confdefs.h.  */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h.  */
27694 #include <sys/types.h>
27695
27696 typedef nid_t ac__type_new_;
27697 int
27698 main ()
27699 {
27700 if ((ac__type_new_ *) 0)
27701   return 0;
27702 if (sizeof (ac__type_new_))
27703   return 0;
27704   ;
27705   return 0;
27706 }
27707 _ACEOF
27708 rm -f conftest.$ac_objext
27709 if { (ac_try="$ac_compile"
27710 case "(($ac_try" in
27711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27712   *) ac_try_echo=$ac_try;;
27713 esac
27714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27715   (eval "$ac_compile") 2>conftest.er1
27716   ac_status=$?
27717   grep -v '^ *+' conftest.er1 >conftest.err
27718   rm -f conftest.er1
27719   cat conftest.err >&5
27720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721   (exit $ac_status); } && {
27722          test -z "$ac_c_werror_flag" ||
27723          test ! -s conftest.err
27724        } && test -s conftest.$ac_objext; then
27725   ac_cv_type_nid_t=yes
27726 else
27727   echo "$as_me: failed program was:" >&5
27728 sed 's/^/| /' conftest.$ac_ext >&5
27729
27730         ac_cv_type_nid_t=no
27731 fi
27732
27733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27734 fi
27735 { echo "$as_me:$LINENO: result: $ac_cv_type_nid_t" >&5
27736 echo "${ECHO_T}$ac_cv_type_nid_t" >&6; }
27737 if test $ac_cv_type_nid_t = yes; then
27738
27739 cat >>confdefs.h <<_ACEOF
27740 #define HAVE_NID_T 1
27741 _ACEOF
27742
27743
27744 fi
27745
27746 { echo "$as_me:$LINENO: checking for tag_t" >&5
27747 echo $ECHO_N "checking for tag_t... $ECHO_C" >&6; }
27748 if test "${ac_cv_type_tag_t+set}" = set; then
27749   echo $ECHO_N "(cached) $ECHO_C" >&6
27750 else
27751   cat >conftest.$ac_ext <<_ACEOF
27752 /* confdefs.h.  */
27753 _ACEOF
27754 cat confdefs.h >>conftest.$ac_ext
27755 cat >>conftest.$ac_ext <<_ACEOF
27756 /* end confdefs.h.  */
27757 #include <sys/types.h>
27758
27759 typedef tag_t ac__type_new_;
27760 int
27761 main ()
27762 {
27763 if ((ac__type_new_ *) 0)
27764   return 0;
27765 if (sizeof (ac__type_new_))
27766   return 0;
27767   ;
27768   return 0;
27769 }
27770 _ACEOF
27771 rm -f conftest.$ac_objext
27772 if { (ac_try="$ac_compile"
27773 case "(($ac_try" in
27774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775   *) ac_try_echo=$ac_try;;
27776 esac
27777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778   (eval "$ac_compile") 2>conftest.er1
27779   ac_status=$?
27780   grep -v '^ *+' conftest.er1 >conftest.err
27781   rm -f conftest.er1
27782   cat conftest.err >&5
27783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784   (exit $ac_status); } && {
27785          test -z "$ac_c_werror_flag" ||
27786          test ! -s conftest.err
27787        } && test -s conftest.$ac_objext; then
27788   ac_cv_type_tag_t=yes
27789 else
27790   echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27792
27793         ac_cv_type_tag_t=no
27794 fi
27795
27796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797 fi
27798 { echo "$as_me:$LINENO: result: $ac_cv_type_tag_t" >&5
27799 echo "${ECHO_T}$ac_cv_type_tag_t" >&6; }
27800 if test $ac_cv_type_tag_t = yes; then
27801
27802 cat >>confdefs.h <<_ACEOF
27803 #define HAVE_TAG_T 1
27804 _ACEOF
27805
27806
27807 fi
27808
27809
27810
27811 for ac_header in sys/capability.h
27812 do
27813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27815   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 fi
27820 ac_res=`eval echo '${'$as_ac_Header'}'`
27821                { echo "$as_me:$LINENO: result: $ac_res" >&5
27822 echo "${ECHO_T}$ac_res" >&6; }
27823 else
27824   # Is the header compilable?
27825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27827 cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 $ac_includes_default
27834 #include <$ac_header>
27835 _ACEOF
27836 rm -f conftest.$ac_objext
27837 if { (ac_try="$ac_compile"
27838 case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27843   (eval "$ac_compile") 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } && {
27850          test -z "$ac_c_werror_flag" ||
27851          test ! -s conftest.err
27852        } && test -s conftest.$ac_objext; then
27853   ac_header_compiler=yes
27854 else
27855   echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858         ac_header_compiler=no
27859 fi
27860
27861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27863 echo "${ECHO_T}$ac_header_compiler" >&6; }
27864
27865 # Is the header present?
27866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27868 cat >conftest.$ac_ext <<_ACEOF
27869 /* confdefs.h.  */
27870 _ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h.  */
27874 #include <$ac_header>
27875 _ACEOF
27876 if { (ac_try="$ac_cpp conftest.$ac_ext"
27877 case "(($ac_try" in
27878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879   *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27883   ac_status=$?
27884   grep -v '^ *+' conftest.er1 >conftest.err
27885   rm -f conftest.er1
27886   cat conftest.err >&5
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); } >/dev/null && {
27889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27890          test ! -s conftest.err
27891        }; then
27892   ac_header_preproc=yes
27893 else
27894   echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27896
27897   ac_header_preproc=no
27898 fi
27899
27900 rm -f conftest.err conftest.$ac_ext
27901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27902 echo "${ECHO_T}$ac_header_preproc" >&6; }
27903
27904 # So?  What about this header?
27905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27906   yes:no: )
27907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27911     ac_header_preproc=yes
27912     ;;
27913   no:yes:* )
27914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27926     ( cat <<\_ASBOX
27927 ## --------------------------------------------- ##
27928 ## Report this to vserver@list.linux-vserver.org ##
27929 ## --------------------------------------------- ##
27930 _ASBOX
27931      ) | sed "s/^/$as_me: WARNING:     /" >&2
27932     ;;
27933 esac
27934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27937   echo $ECHO_N "(cached) $ECHO_C" >&6
27938 else
27939   eval "$as_ac_Header=\$ac_header_preproc"
27940 fi
27941 ac_res=`eval echo '${'$as_ac_Header'}'`
27942                { echo "$as_me:$LINENO: result: $ac_res" >&5
27943 echo "${ECHO_T}$ac_res" >&6; }
27944
27945 fi
27946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27947   cat >>confdefs.h <<_ACEOF
27948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27949 _ACEOF
27950
27951 fi
27952
27953 done
27954
27955
27956 if test x"$ensc_have_dietlibc" = xno; then
27957         { echo "$as_me:$LINENO: checking for openpty" >&5
27958 echo $ECHO_N "checking for openpty... $ECHO_C" >&6; }
27959 if test "${ac_cv_func_openpty+set}" = set; then
27960   echo $ECHO_N "(cached) $ECHO_C" >&6
27961 else
27962   cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 /* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
27969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27970 #define openpty innocuous_openpty
27971
27972 /* System header to define __stub macros and hopefully few prototypes,
27973     which can conflict with char openpty (); below.
27974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27975     <limits.h> exists even on freestanding compilers.  */
27976
27977 #ifdef __STDC__
27978 # include <limits.h>
27979 #else
27980 # include <assert.h>
27981 #endif
27982
27983 #undef openpty
27984
27985 /* Override any GCC internal prototype to avoid an error.
27986    Use char because int might match the return type of a GCC
27987    builtin and then its argument prototype would still apply.  */
27988 #ifdef __cplusplus
27989 extern "C"
27990 #endif
27991 char openpty ();
27992 /* The GNU C library defines this for functions which it implements
27993     to always fail with ENOSYS.  Some functions are actually named
27994     something starting with __ and the normal name is an alias.  */
27995 #if defined __stub_openpty || defined __stub___openpty
27996 choke me
27997 #endif
27998
27999 int
28000 main ()
28001 {
28002 return openpty ();
28003   ;
28004   return 0;
28005 }
28006 _ACEOF
28007 rm -f conftest.$ac_objext conftest$ac_exeext
28008 if { (ac_try="$ac_link"
28009 case "(($ac_try" in
28010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011   *) ac_try_echo=$ac_try;;
28012 esac
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014   (eval "$ac_link") 2>conftest.er1
28015   ac_status=$?
28016   grep -v '^ *+' conftest.er1 >conftest.err
28017   rm -f conftest.er1
28018   cat conftest.err >&5
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); } && {
28021          test -z "$ac_c_werror_flag" ||
28022          test ! -s conftest.err
28023        } && test -s conftest$ac_exeext &&
28024        $as_test_x conftest$ac_exeext; then
28025   ac_cv_func_openpty=yes
28026 else
28027   echo "$as_me: failed program was:" >&5
28028 sed 's/^/| /' conftest.$ac_ext >&5
28029
28030         ac_cv_func_openpty=no
28031 fi
28032
28033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28034       conftest$ac_exeext conftest.$ac_ext
28035 fi
28036 { echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
28037 echo "${ECHO_T}$ac_cv_func_openpty" >&6; }
28038 if test $ac_cv_func_openpty = yes; then
28039   :
28040 else
28041
28042 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
28043 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
28044 if test "${ac_cv_lib_util_openpty+set}" = set; then
28045   echo $ECHO_N "(cached) $ECHO_C" >&6
28046 else
28047   ac_check_lib_save_LIBS=$LIBS
28048 LIBS="-lutil  $LIBS"
28049 cat >conftest.$ac_ext <<_ACEOF
28050 /* confdefs.h.  */
28051 _ACEOF
28052 cat confdefs.h >>conftest.$ac_ext
28053 cat >>conftest.$ac_ext <<_ACEOF
28054 /* end confdefs.h.  */
28055
28056 /* Override any GCC internal prototype to avoid an error.
28057    Use char because int might match the return type of a GCC
28058    builtin and then its argument prototype would still apply.  */
28059 #ifdef __cplusplus
28060 extern "C"
28061 #endif
28062 char openpty ();
28063 int
28064 main ()
28065 {
28066 return openpty ();
28067   ;
28068   return 0;
28069 }
28070 _ACEOF
28071 rm -f conftest.$ac_objext conftest$ac_exeext
28072 if { (ac_try="$ac_link"
28073 case "(($ac_try" in
28074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075   *) ac_try_echo=$ac_try;;
28076 esac
28077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078   (eval "$ac_link") 2>conftest.er1
28079   ac_status=$?
28080   grep -v '^ *+' conftest.er1 >conftest.err
28081   rm -f conftest.er1
28082   cat conftest.err >&5
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); } && {
28085          test -z "$ac_c_werror_flag" ||
28086          test ! -s conftest.err
28087        } && test -s conftest$ac_exeext &&
28088        $as_test_x conftest$ac_exeext; then
28089   ac_cv_lib_util_openpty=yes
28090 else
28091   echo "$as_me: failed program was:" >&5
28092 sed 's/^/| /' conftest.$ac_ext >&5
28093
28094         ac_cv_lib_util_openpty=no
28095 fi
28096
28097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28098       conftest$ac_exeext conftest.$ac_ext
28099 LIBS=$ac_check_lib_save_LIBS
28100 fi
28101 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
28102 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
28103 if test $ac_cv_lib_util_openpty = yes; then
28104   cat >>confdefs.h <<_ACEOF
28105 #define HAVE_LIBUTIL 1
28106 _ACEOF
28107
28108   LIBS="-lutil $LIBS"
28109
28110 else
28111   { { echo "$as_me:$LINENO: error:
28112 ****
28113 **** openpty could not be found
28114 ****" >&5
28115 echo "$as_me: error:
28116 ****
28117 **** openpty could not be found
28118 ****" >&2;}
28119    { (exit 1); exit 1; }; }
28120 fi
28121
28122 fi
28123
28124 fi
28125
28126
28127 if test x"$ensc_cv_c99_c99compiler" = xyes; then
28128         ensc_have_beecrypt=yes
28129
28130         if test x"$ensc_have_beecrypt" = xyes; then
28131                 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28132   { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28133 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28134 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28135   echo $ECHO_N "(cached) $ECHO_C" >&6
28136 fi
28137 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28138 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28139 else
28140   # Is the header compilable?
28141 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h usability" >&5
28142 echo $ECHO_N "checking beecrypt/beecrypt.h usability... $ECHO_C" >&6; }
28143 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h.  */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h.  */
28149 $ac_includes_default
28150 #include <beecrypt/beecrypt.h>
28151 _ACEOF
28152 rm -f conftest.$ac_objext
28153 if { (ac_try="$ac_compile"
28154 case "(($ac_try" in
28155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156   *) ac_try_echo=$ac_try;;
28157 esac
28158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159   (eval "$ac_compile") 2>conftest.er1
28160   ac_status=$?
28161   grep -v '^ *+' conftest.er1 >conftest.err
28162   rm -f conftest.er1
28163   cat conftest.err >&5
28164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165   (exit $ac_status); } && {
28166          test -z "$ac_c_werror_flag" ||
28167          test ! -s conftest.err
28168        } && test -s conftest.$ac_objext; then
28169   ac_header_compiler=yes
28170 else
28171   echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28173
28174         ac_header_compiler=no
28175 fi
28176
28177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28179 echo "${ECHO_T}$ac_header_compiler" >&6; }
28180
28181 # Is the header present?
28182 { echo "$as_me:$LINENO: checking beecrypt/beecrypt.h presence" >&5
28183 echo $ECHO_N "checking beecrypt/beecrypt.h presence... $ECHO_C" >&6; }
28184 cat >conftest.$ac_ext <<_ACEOF
28185 /* confdefs.h.  */
28186 _ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h.  */
28190 #include <beecrypt/beecrypt.h>
28191 _ACEOF
28192 if { (ac_try="$ac_cpp conftest.$ac_ext"
28193 case "(($ac_try" in
28194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195   *) ac_try_echo=$ac_try;;
28196 esac
28197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28199   ac_status=$?
28200   grep -v '^ *+' conftest.er1 >conftest.err
28201   rm -f conftest.er1
28202   cat conftest.err >&5
28203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204   (exit $ac_status); } >/dev/null && {
28205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28206          test ! -s conftest.err
28207        }; then
28208   ac_header_preproc=yes
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213   ac_header_preproc=no
28214 fi
28215
28216 rm -f conftest.err conftest.$ac_ext
28217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28218 echo "${ECHO_T}$ac_header_preproc" >&6; }
28219
28220 # So?  What about this header?
28221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28222   yes:no: )
28223     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&5
28224 echo "$as_me: WARNING: beecrypt/beecrypt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28225     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&5
28226 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the compiler's result" >&2;}
28227     ac_header_preproc=yes
28228     ;;
28229   no:yes:* )
28230     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&5
28231 echo "$as_me: WARNING: beecrypt/beecrypt.h: present but cannot be compiled" >&2;}
28232     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&5
28233 echo "$as_me: WARNING: beecrypt/beecrypt.h:     check for missing prerequisite headers?" >&2;}
28234     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&5
28235 echo "$as_me: WARNING: beecrypt/beecrypt.h: see the Autoconf documentation" >&2;}
28236     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&5
28237 echo "$as_me: WARNING: beecrypt/beecrypt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28238     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&5
28239 echo "$as_me: WARNING: beecrypt/beecrypt.h: proceeding with the preprocessor's result" >&2;}
28240     { echo "$as_me:$LINENO: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&5
28241 echo "$as_me: WARNING: beecrypt/beecrypt.h: in the future, the compiler will take precedence" >&2;}
28242     ( cat <<\_ASBOX
28243 ## --------------------------------------------- ##
28244 ## Report this to vserver@list.linux-vserver.org ##
28245 ## --------------------------------------------- ##
28246 _ASBOX
28247      ) | sed "s/^/$as_me: WARNING:     /" >&2
28248     ;;
28249 esac
28250 { echo "$as_me:$LINENO: checking for beecrypt/beecrypt.h" >&5
28251 echo $ECHO_N "checking for beecrypt/beecrypt.h... $ECHO_C" >&6; }
28252 if test "${ac_cv_header_beecrypt_beecrypt_h+set}" = set; then
28253   echo $ECHO_N "(cached) $ECHO_C" >&6
28254 else
28255   ac_cv_header_beecrypt_beecrypt_h=$ac_header_preproc
28256 fi
28257 { echo "$as_me:$LINENO: result: $ac_cv_header_beecrypt_beecrypt_h" >&5
28258 echo "${ECHO_T}$ac_cv_header_beecrypt_beecrypt_h" >&6; }
28259
28260 fi
28261 if test $ac_cv_header_beecrypt_beecrypt_h = yes; then
28262    :
28263 else
28264    ensc_have_beecrypt=no
28265 fi
28266
28267
28268         fi
28269
28270         if test x"$ensc_have_beecrypt" = xyes; then
28271                 { echo "$as_me:$LINENO: checking for hashFunctionContextInit in -lbeecrypt" >&5
28272 echo $ECHO_N "checking for hashFunctionContextInit in -lbeecrypt... $ECHO_C" >&6; }
28273 if test "${ac_cv_lib_beecrypt_hashFunctionContextInit+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276   ac_check_lib_save_LIBS=$LIBS
28277 LIBS="-lbeecrypt  $LIBS"
28278 cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284
28285 /* Override any GCC internal prototype to avoid an error.
28286    Use char because int might match the return type of a GCC
28287    builtin and then its argument prototype would still apply.  */
28288 #ifdef __cplusplus
28289 extern "C"
28290 #endif
28291 char hashFunctionContextInit ();
28292 int
28293 main ()
28294 {
28295 return hashFunctionContextInit ();
28296   ;
28297   return 0;
28298 }
28299 _ACEOF
28300 rm -f conftest.$ac_objext conftest$ac_exeext
28301 if { (ac_try="$ac_link"
28302 case "(($ac_try" in
28303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304   *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307   (eval "$ac_link") 2>conftest.er1
28308   ac_status=$?
28309   grep -v '^ *+' conftest.er1 >conftest.err
28310   rm -f conftest.er1
28311   cat conftest.err >&5
28312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313   (exit $ac_status); } && {
28314          test -z "$ac_c_werror_flag" ||
28315          test ! -s conftest.err
28316        } && test -s conftest$ac_exeext &&
28317        $as_test_x conftest$ac_exeext; then
28318   ac_cv_lib_beecrypt_hashFunctionContextInit=yes
28319 else
28320   echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.$ac_ext >&5
28322
28323         ac_cv_lib_beecrypt_hashFunctionContextInit=no
28324 fi
28325
28326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28327       conftest$ac_exeext conftest.$ac_ext
28328 LIBS=$ac_check_lib_save_LIBS
28329 fi
28330 { echo "$as_me:$LINENO: result: $ac_cv_lib_beecrypt_hashFunctionContextInit" >&5
28331 echo "${ECHO_T}$ac_cv_lib_beecrypt_hashFunctionContextInit" >&6; }
28332 if test $ac_cv_lib_beecrypt_hashFunctionContextInit = yes; then
28333    :
28334 else
28335    ensc_have_beecrypt=no
28336 fi
28337
28338         fi
28339
28340         if test x"$ensc_have_beecrypt" != xyes; then
28341                 { echo "$as_me:$LINENO: WARNING:
28342 ****
28343 **** 'beecrypt' could not be found;
28344 **** this will disable the build of 'vhashify'
28345 ****" >&5
28346 echo "$as_me: WARNING:
28347 ****
28348 **** 'beecrypt' could not be found;
28349 **** this will disable the build of 'vhashify'
28350 ****" >&2;}
28351         fi
28352 else
28353         ensc_have_beecrypt=no
28354 fi
28355
28356  if test x"$ensc_have_beecrypt" = xyes; then
28357   ENSC_HAVE_BEECRYPT_TRUE=
28358   ENSC_HAVE_BEECRYPT_FALSE='#'
28359 else
28360   ENSC_HAVE_BEECRYPT_TRUE='#'
28361   ENSC_HAVE_BEECRYPT_FALSE=
28362 fi
28363
28364  if false; then
28365   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE=
28366   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE='#'
28367 else
28368   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE='#'
28369   ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE=
28370 fi
28371
28372
28373
28374 ensc_have_libnl=yes
28375 LIBNL_ROOT=`readlink -f ../libnl*/`
28376 if test -d "$LIBNL_ROOT"; then
28377         CFLAGS="$CFLAGS -I ${LIBNL_ROOT}/include"
28378         LDFLAGS="$LDFLAGS -L${LIBNL_ROOT}/lib"
28379 fi
28380
28381 if test x"$ensc_have_libnl" = xyes; then
28382
28383
28384 for ac_header in asm/types.h stdint.h
28385 do
28386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28391   echo $ECHO_N "(cached) $ECHO_C" >&6
28392 fi
28393 ac_res=`eval echo '${'$as_ac_Header'}'`
28394                { echo "$as_me:$LINENO: result: $ac_res" >&5
28395 echo "${ECHO_T}$ac_res" >&6; }
28396 else
28397   # Is the header compilable?
28398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28400 cat >conftest.$ac_ext <<_ACEOF
28401 /* confdefs.h.  */
28402 _ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h.  */
28406 $ac_includes_default
28407 #include <$ac_header>
28408 _ACEOF
28409 rm -f conftest.$ac_objext
28410 if { (ac_try="$ac_compile"
28411 case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_compile") 2>conftest.er1
28417   ac_status=$?
28418   grep -v '^ *+' conftest.er1 >conftest.err
28419   rm -f conftest.er1
28420   cat conftest.err >&5
28421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422   (exit $ac_status); } && {
28423          test -z "$ac_c_werror_flag" ||
28424          test ! -s conftest.err
28425        } && test -s conftest.$ac_objext; then
28426   ac_header_compiler=yes
28427 else
28428   echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28430
28431         ac_header_compiler=no
28432 fi
28433
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28436 echo "${ECHO_T}$ac_header_compiler" >&6; }
28437
28438 # Is the header present?
28439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28441 cat >conftest.$ac_ext <<_ACEOF
28442 /* confdefs.h.  */
28443 _ACEOF
28444 cat confdefs.h >>conftest.$ac_ext
28445 cat >>conftest.$ac_ext <<_ACEOF
28446 /* end confdefs.h.  */
28447 #include <$ac_header>
28448 _ACEOF
28449 if { (ac_try="$ac_cpp conftest.$ac_ext"
28450 case "(($ac_try" in
28451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452   *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } >/dev/null && {
28462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28463          test ! -s conftest.err
28464        }; then
28465   ac_header_preproc=yes
28466 else
28467   echo "$as_me: failed program was:" >&5
28468 sed 's/^/| /' conftest.$ac_ext >&5
28469
28470   ac_header_preproc=no
28471 fi
28472
28473 rm -f conftest.err conftest.$ac_ext
28474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28475 echo "${ECHO_T}$ac_header_preproc" >&6; }
28476
28477 # So?  What about this header?
28478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28479   yes:no: )
28480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28484     ac_header_preproc=yes
28485     ;;
28486   no:yes:* )
28487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28499     ( cat <<\_ASBOX
28500 ## --------------------------------------------- ##
28501 ## Report this to vserver@list.linux-vserver.org ##
28502 ## --------------------------------------------- ##
28503 _ASBOX
28504      ) | sed "s/^/$as_me: WARNING:     /" >&2
28505     ;;
28506 esac
28507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28510   echo $ECHO_N "(cached) $ECHO_C" >&6
28511 else
28512   eval "$as_ac_Header=\$ac_header_preproc"
28513 fi
28514 ac_res=`eval echo '${'$as_ac_Header'}'`
28515                { echo "$as_me:$LINENO: result: $ac_res" >&5
28516 echo "${ECHO_T}$ac_res" >&6; }
28517
28518 fi
28519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28520   cat >>confdefs.h <<_ACEOF
28521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28522 _ACEOF
28523   :
28524 else
28525    ensc_have_libnl=no
28526 fi
28527
28528 done
28529
28530         { echo "$as_me:$LINENO: checking for __s64" >&5
28531 echo $ECHO_N "checking for __s64... $ECHO_C" >&6; }
28532 if test "${ac_cv_type___s64+set}" = set; then
28533   echo $ECHO_N "(cached) $ECHO_C" >&6
28534 else
28535   cat >conftest.$ac_ext <<_ACEOF
28536 /* confdefs.h.  */
28537 _ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h.  */
28541 $ac_includes_default
28542 #ifdef HAVE_ASM_TYPES_H
28543 #  include <asm/types.h>
28544 #endif
28545
28546 typedef __s64 ac__type_new_;
28547 int
28548 main ()
28549 {
28550 if ((ac__type_new_ *) 0)
28551   return 0;
28552 if (sizeof (ac__type_new_))
28553   return 0;
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_compile") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } && {
28572          test -z "$ac_c_werror_flag" ||
28573          test ! -s conftest.err
28574        } && test -s conftest.$ac_objext; then
28575   ac_cv_type___s64=yes
28576 else
28577   echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580         ac_cv_type___s64=no
28581 fi
28582
28583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28584 fi
28585 { echo "$as_me:$LINENO: result: $ac_cv_type___s64" >&5
28586 echo "${ECHO_T}$ac_cv_type___s64" >&6; }
28587 if test $ac_cv_type___s64 = yes; then
28588
28589 cat >>confdefs.h <<_ACEOF
28590 #define HAVE___S64 1
28591 _ACEOF
28592
28593  :
28594 else
28595
28596 cat >>confdefs.h <<_ACEOF
28597 #define __s64 int64_t
28598 _ACEOF
28599
28600 fi
28601
28602         { echo "$as_me:$LINENO: checking for __u64" >&5
28603 echo $ECHO_N "checking for __u64... $ECHO_C" >&6; }
28604 if test "${ac_cv_type___u64+set}" = set; then
28605   echo $ECHO_N "(cached) $ECHO_C" >&6
28606 else
28607   cat >conftest.$ac_ext <<_ACEOF
28608 /* confdefs.h.  */
28609 _ACEOF
28610 cat confdefs.h >>conftest.$ac_ext
28611 cat >>conftest.$ac_ext <<_ACEOF
28612 /* end confdefs.h.  */
28613 $ac_includes_default
28614 #ifdef HAVE_ASM_TYPES_H
28615 #  include <asm/types.h>
28616 #endif
28617
28618 typedef __u64 ac__type_new_;
28619 int
28620 main ()
28621 {
28622 if ((ac__type_new_ *) 0)
28623   return 0;
28624 if (sizeof (ac__type_new_))
28625   return 0;
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 rm -f conftest.$ac_objext
28631 if { (ac_try="$ac_compile"
28632 case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28637   (eval "$ac_compile") 2>conftest.er1
28638   ac_status=$?
28639   grep -v '^ *+' conftest.er1 >conftest.err
28640   rm -f conftest.er1
28641   cat conftest.err >&5
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); } && {
28644          test -z "$ac_c_werror_flag" ||
28645          test ! -s conftest.err
28646        } && test -s conftest.$ac_objext; then
28647   ac_cv_type___u64=yes
28648 else
28649   echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652         ac_cv_type___u64=no
28653 fi
28654
28655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28656 fi
28657 { echo "$as_me:$LINENO: result: $ac_cv_type___u64" >&5
28658 echo "${ECHO_T}$ac_cv_type___u64" >&6; }
28659 if test $ac_cv_type___u64 = yes; then
28660
28661 cat >>confdefs.h <<_ACEOF
28662 #define HAVE___U64 1
28663 _ACEOF
28664
28665  :
28666 else
28667
28668 cat >>confdefs.h <<_ACEOF
28669 #define __u64 uint64_t
28670 _ACEOF
28671
28672 fi
28673
28674 fi
28675
28676 if test x"$ensc_have_libnl" = xyes; then
28677
28678
28679 for ac_header in netlink/netlink.h netlink/route/addr.h
28680 do
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28685   echo $ECHO_N "(cached) $ECHO_C" >&6
28686 else
28687   cat >conftest.$ac_ext <<_ACEOF
28688 /* confdefs.h.  */
28689 _ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h.  */
28693 $ac_includes_default
28694 #ifdef HAVE_ASM_TYPES_H
28695 #  include <asm/types.h>
28696 #endif
28697
28698
28699 #include <$ac_header>
28700 _ACEOF
28701 rm -f conftest.$ac_objext
28702 if { (ac_try="$ac_compile"
28703 case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708   (eval "$ac_compile") 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } && {
28715          test -z "$ac_c_werror_flag" ||
28716          test ! -s conftest.err
28717        } && test -s conftest.$ac_objext; then
28718   eval "$as_ac_Header=yes"
28719 else
28720   echo "$as_me: failed program was:" >&5
28721 sed 's/^/| /' conftest.$ac_ext >&5
28722
28723         eval "$as_ac_Header=no"
28724 fi
28725
28726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28727 fi
28728 ac_res=`eval echo '${'$as_ac_Header'}'`
28729                { echo "$as_me:$LINENO: result: $ac_res" >&5
28730 echo "${ECHO_T}$ac_res" >&6; }
28731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28732   cat >>confdefs.h <<_ACEOF
28733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28734 _ACEOF
28735   :
28736 else
28737    ensc_have_libnl=no
28738 fi
28739
28740 done
28741
28742 fi
28743
28744 if test x"$ensc_have_libnl" = xyes; then
28745         { echo "$as_me:$LINENO: checking for nlmsg_get_src in -lnl" >&5
28746 echo $ECHO_N "checking for nlmsg_get_src in -lnl... $ECHO_C" >&6; }
28747 if test "${ac_cv_lib_nl_nlmsg_get_src+set}" = set; then
28748   echo $ECHO_N "(cached) $ECHO_C" >&6
28749 else
28750   ac_check_lib_save_LIBS=$LIBS
28751 LIBS="-lnl  $LIBS"
28752 cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h.  */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h.  */
28758
28759 /* Override any GCC internal prototype to avoid an error.
28760    Use char because int might match the return type of a GCC
28761    builtin and then its argument prototype would still apply.  */
28762 #ifdef __cplusplus
28763 extern "C"
28764 #endif
28765 char nlmsg_get_src ();
28766 int
28767 main ()
28768 {
28769 return nlmsg_get_src ();
28770   ;
28771   return 0;
28772 }
28773 _ACEOF
28774 rm -f conftest.$ac_objext conftest$ac_exeext
28775 if { (ac_try="$ac_link"
28776 case "(($ac_try" in
28777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778   *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781   (eval "$ac_link") 2>conftest.er1
28782   ac_status=$?
28783   grep -v '^ *+' conftest.er1 >conftest.err
28784   rm -f conftest.er1
28785   cat conftest.err >&5
28786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); } && {
28788          test -z "$ac_c_werror_flag" ||
28789          test ! -s conftest.err
28790        } && test -s conftest$ac_exeext &&
28791        $as_test_x conftest$ac_exeext; then
28792   ac_cv_lib_nl_nlmsg_get_src=yes
28793 else
28794   echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28796
28797         ac_cv_lib_nl_nlmsg_get_src=no
28798 fi
28799
28800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28801       conftest$ac_exeext conftest.$ac_ext
28802 LIBS=$ac_check_lib_save_LIBS
28803 fi
28804 { echo "$as_me:$LINENO: result: $ac_cv_lib_nl_nlmsg_get_src" >&5
28805 echo "${ECHO_T}$ac_cv_lib_nl_nlmsg_get_src" >&6; }
28806 if test $ac_cv_lib_nl_nlmsg_get_src = yes; then
28807    :
28808 else
28809    ensc_have_libnl=no
28810 fi
28811
28812 fi
28813
28814 if test x"$ensc_have_libnl" != xyes; then
28815         { echo "$as_me:$LINENO: WARNING:
28816 ****
28817 **** 'libnl' could not be found;
28818 **** this will disable the build of 'vip6-autod'
28819 ****" >&5
28820 echo "$as_me: WARNING:
28821 ****
28822 **** 'libnl' could not be found;
28823 **** this will disable the build of 'vip6-autod'
28824 ****" >&2;}
28825 fi
28826
28827  if test x"$ensc_have_libnl" = xyes; then
28828   ENSC_HAVE_LIBNL_TRUE=
28829   ENSC_HAVE_LIBNL_FALSE='#'
28830 else
28831   ENSC_HAVE_LIBNL_TRUE='#'
28832   ENSC_HAVE_LIBNL_FALSE=
28833 fi
28834
28835
28836
28837
28838 { echo "$as_me:$LINENO: checking for python includes" >&5
28839 echo $ECHO_N "checking for python includes... $ECHO_C" >&6; }
28840 PYTHON_INCLUDES=`python-config --includes 2>/dev/null`
28841 if test x"$PYTHON_INCLUDES" = x; then
28842         python_inc_plat=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc(1)"`
28843         python_inc=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc()"`
28844         if test x"$python_inc_plat" != x; then
28845                 PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc_plat"
28846         fi
28847         if test x"$python_inc" != x; then
28848                 PYTHON_INCLUDES="$PYTHON_INCLUDES -I$python_inc"
28849         fi
28850 fi
28851 { echo "$as_me:$LINENO: result: $PYTHON_INCLUDES" >&5
28852 echo "${ECHO_T}$PYTHON_INCLUDES" >&6; }
28853
28854
28855
28856 { echo "$as_me:$LINENO: checking for host initscripts" >&5
28857 echo $ECHO_N "checking for host initscripts... $ECHO_C" >&6; }
28858
28859 # Check whether --with-initscripts was given.
28860 if test "${with_initscripts+set}" = set; then
28861   withval=$with_initscripts;
28862         case "$withval" in
28863         gentoo) ensc_with_init=gentoo;;
28864         sysv)   ensc_with_init=sysv;;
28865         *)      { { echo "$as_me:$LINENO: error: invalid initscripts value, only gentoo and sysv are supported" >&5
28866 echo "$as_me: error: invalid initscripts value, only gentoo and sysv are supported" >&2;}
28867    { (exit 1); exit 1; }; };;
28868         esac
28869
28870 else
28871
28872         if test -e /etc/gentoo-release; then
28873                 ensc_with_init=gentoo
28874         else
28875                 ensc_with_init=sysv
28876         fi
28877
28878 fi
28879
28880 { echo "$as_me:$LINENO: result: $ensc_with_init" >&5
28881 echo "${ECHO_T}$ensc_with_init" >&6; }
28882  if test x"$ensc_with_init" = xgentoo; then
28883   HAVE_GENTOO_INIT_TRUE=
28884   HAVE_GENTOO_INIT_FALSE='#'
28885 else
28886   HAVE_GENTOO_INIT_TRUE='#'
28887   HAVE_GENTOO_INIT_FALSE=
28888 fi
28889
28890  if test x"$ensc_with_init" = xsysv; then
28891   HAVE_SYSV_INIT_TRUE=
28892   HAVE_SYSV_INIT_FALSE='#'
28893 else
28894   HAVE_SYSV_INIT_TRUE='#'
28895   HAVE_SYSV_INIT_FALSE=
28896 fi
28897
28898
28899
28900
28901 cat >>confdefs.h <<\_ACEOF
28902 #define UTMP_GID 22
28903 _ACEOF
28904
28905
28906 if false; then
28907
28908 cat >>confdefs.h <<\_ACEOF
28909 #define HAVE_GROWING_STACK 1
28910 _ACEOF
28911
28912 fi
28913
28914
28915 cat >>confdefs.h <<\_ACEOF
28916 #define _FILE_OFFSET_BITS 64
28917 _ACEOF
28918
28919
28920 ensc_cxx_affected=" (affected: vbuild, vcheck)"
28921 ensc_c99_affected=" (affected: vunify, vcopy, vhashify, vdlimit)"
28922 ensc_diet_msg=" (you have been warned)"
28923 ensc_diet_version_msg=" ($ensc_version_dietlibc)"
28924 ensc_diet_compat_msg=" (using -lcompat)"
28925 test x"$ensc_cv_cxx_cxxcompiler"    = xno || ensc_cxx_affected=
28926 test x"$ensc_cv_c99_c99compiler"    = xno || ensc_c99_affected=
28927 test x"$ensc_have_dietlibc"         = xno || ensc_diet_msg=
28928 test x"$ensc_version_dietlibc"     != x   || ensc_diet_version_msg=
28929 test x"$ensc_have_dietlibc$ensc_cv_c_dietlibc_compat" = xyesyes || ensc_diet_compat_msg=
28930
28931
28932
28933
28934
28935 ac_config_files="$ac_config_files util-vserver.spec Makefile distrib/Makefile lib/apidoc/Doxyfile python/Makefile"
28936
28937 cat >confcache <<\_ACEOF
28938 # This file is a shell script that caches the results of configure
28939 # tests run on this system so they can be shared between configure
28940 # scripts and configure runs, see configure's option --config-cache.
28941 # It is not useful on other systems.  If it contains results you don't
28942 # want to keep, you may remove or edit it.
28943 #
28944 # config.status only pays attention to the cache file if you give it
28945 # the --recheck option to rerun configure.
28946 #
28947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28949 # following values.
28950
28951 _ACEOF
28952
28953 # The following way of writing the cache mishandles newlines in values,
28954 # but we know of no workaround that is simple, portable, and efficient.
28955 # So, we kill variables containing newlines.
28956 # Ultrix sh set writes to stderr and can't be redirected directly,
28957 # and sets the high bit in the cache file unless we assign to the vars.
28958 (
28959   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28960     eval ac_val=\$$ac_var
28961     case $ac_val in #(
28962     *${as_nl}*)
28963       case $ac_var in #(
28964       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28966       esac
28967       case $ac_var in #(
28968       _ | IFS | as_nl) ;; #(
28969       *) $as_unset $ac_var ;;
28970       esac ;;
28971     esac
28972   done
28973
28974   (set) 2>&1 |
28975     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28976     *${as_nl}ac_space=\ *)
28977       # `set' does not quote correctly, so add quotes (double-quote
28978       # substitution turns \\\\ into \\, and sed turns \\ into \).
28979       sed -n \
28980         "s/'/'\\\\''/g;
28981           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28982       ;; #(
28983     *)
28984       # `set' quotes correctly as required by POSIX, so do not add quotes.
28985       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28986       ;;
28987     esac |
28988     sort
28989 ) |
28990   sed '
28991      /^ac_cv_env_/b end
28992      t clear
28993      :clear
28994      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28995      t end
28996      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28997      :end' >>confcache
28998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28999   if test -w "$cache_file"; then
29000     test "x$cache_file" != "x/dev/null" &&
29001       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29002 echo "$as_me: updating cache $cache_file" >&6;}
29003     cat confcache >$cache_file
29004   else
29005     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29006 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29007   fi
29008 fi
29009 rm -f confcache
29010
29011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29012 # Let make expand exec_prefix.
29013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29014
29015 DEFS=-DHAVE_CONFIG_H
29016
29017 ac_libobjs=
29018 ac_ltlibobjs=
29019 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29020   # 1. Remove the extension, and $U if already installed.
29021   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29022   ac_i=`echo "$ac_i" | sed "$ac_script"`
29023   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29024   #    will be set to the directory where LIBOBJS objects are built.
29025   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29026   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29027 done
29028 LIBOBJS=$ac_libobjs
29029
29030 LTLIBOBJS=$ac_ltlibobjs
29031
29032
29033 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29034   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29035 Usually this means the macro was only invoked conditionally." >&5
29036 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29037 Usually this means the macro was only invoked conditionally." >&2;}
29038    { (exit 1); exit 1; }; }
29039 fi
29040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29041   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29042 Usually this means the macro was only invoked conditionally." >&5
29043 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29044 Usually this means the macro was only invoked conditionally." >&2;}
29045    { (exit 1); exit 1; }; }
29046 fi
29047 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29048   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29049 Usually this means the macro was only invoked conditionally." >&5
29050 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29051 Usually this means the macro was only invoked conditionally." >&2;}
29052    { (exit 1); exit 1; }; }
29053 fi
29054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29055   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29056 Usually this means the macro was only invoked conditionally." >&5
29057 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29058 Usually this means the macro was only invoked conditionally." >&2;}
29059    { (exit 1); exit 1; }; }
29060 fi
29061 if test -z "${ENSC_HAVE_CXX_COMPILER_TRUE}" && test -z "${ENSC_HAVE_CXX_COMPILER_FALSE}"; then
29062   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
29063 Usually this means the macro was only invoked conditionally." >&5
29064 echo "$as_me: error: conditional \"ENSC_HAVE_CXX_COMPILER\" was never defined.
29065 Usually this means the macro was only invoked conditionally." >&2;}
29066    { (exit 1); exit 1; }; }
29067 fi
29068 if test -z "${ENSC_HAVE_C99_COMPILER_TRUE}" && test -z "${ENSC_HAVE_C99_COMPILER_FALSE}"; then
29069   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
29070 Usually this means the macro was only invoked conditionally." >&5
29071 echo "$as_me: error: conditional \"ENSC_HAVE_C99_COMPILER\" was never defined.
29072 Usually this means the macro was only invoked conditionally." >&2;}
29073    { (exit 1); exit 1; }; }
29074 fi
29075 if test -z "${HAVE_XSLTP_TRUE}" && test -z "${HAVE_XSLTP_FALSE}"; then
29076   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTP\" was never defined.
29077 Usually this means the macro was only invoked conditionally." >&5
29078 echo "$as_me: error: conditional \"HAVE_XSLTP\" was never defined.
29079 Usually this means the macro was only invoked conditionally." >&2;}
29080    { (exit 1); exit 1; }; }
29081 fi
29082 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
29083   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
29084 Usually this means the macro was only invoked conditionally." >&5
29085 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
29086 Usually this means the macro was only invoked conditionally." >&2;}
29087    { (exit 1); exit 1; }; }
29088 fi
29089 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29090   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29091 Usually this means the macro was only invoked conditionally." >&5
29092 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29093 Usually this means the macro was only invoked conditionally." >&2;}
29094    { (exit 1); exit 1; }; }
29095 fi
29096 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29097   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29098 Usually this means the macro was only invoked conditionally." >&5
29099 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29100 Usually this means the macro was only invoked conditionally." >&2;}
29101    { (exit 1); exit 1; }; }
29102 fi
29103 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29104   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29105 Usually this means the macro was only invoked conditionally." >&5
29106 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29107 Usually this means the macro was only invoked conditionally." >&2;}
29108    { (exit 1); exit 1; }; }
29109 fi
29110 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29111   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29112 Usually this means the macro was only invoked conditionally." >&5
29113 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29114 Usually this means the macro was only invoked conditionally." >&2;}
29115    { (exit 1); exit 1; }; }
29116 fi
29117 if test -z "${USE_DIETLIBC_TRUE}" && test -z "${USE_DIETLIBC_FALSE}"; then
29118   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC\" was never defined.
29119 Usually this means the macro was only invoked conditionally." >&5
29120 echo "$as_me: error: conditional \"USE_DIETLIBC\" was never defined.
29121 Usually this means the macro was only invoked conditionally." >&2;}
29122    { (exit 1); exit 1; }; }
29123 fi
29124 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
29125   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29126 Usually this means the macro was only invoked conditionally." >&5
29127 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29128 Usually this means the macro was only invoked conditionally." >&2;}
29129    { (exit 1); exit 1; }; }
29130 fi
29131 if test -z "${USE_DIETLIBC_COMPAT_TRUE}" && test -z "${USE_DIETLIBC_COMPAT_FALSE}"; then
29132   { { echo "$as_me:$LINENO: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29133 Usually this means the macro was only invoked conditionally." >&5
29134 echo "$as_me: error: conditional \"USE_DIETLIBC_COMPAT\" was never defined.
29135 Usually this means the macro was only invoked conditionally." >&2;}
29136    { (exit 1); exit 1; }; }
29137 fi
29138 if test -z "${ENSC_USE_DIETLIBC_TRUE}" && test -z "${ENSC_USE_DIETLIBC_FALSE}"; then
29139   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
29140 Usually this means the macro was only invoked conditionally." >&5
29141 echo "$as_me: error: conditional \"ENSC_USE_DIETLIBC\" was never defined.
29142 Usually this means the macro was only invoked conditionally." >&2;}
29143    { (exit 1); exit 1; }; }
29144 fi
29145 if test -z "${ENSC_USE_GLIBC_TRUE}" && test -z "${ENSC_USE_GLIBC_FALSE}"; then
29146   { { echo "$as_me:$LINENO: error: conditional \"ENSC_USE_GLIBC\" was never defined.
29147 Usually this means the macro was only invoked conditionally." >&5
29148 echo "$as_me: error: conditional \"ENSC_USE_GLIBC\" was never defined.
29149 Usually this means the macro was only invoked conditionally." >&2;}
29150    { (exit 1); exit 1; }; }
29151 fi
29152 if test -z "${HAVE_SVN2CL_TRUE}" && test -z "${HAVE_SVN2CL_FALSE}"; then
29153   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SVN2CL\" was never defined.
29154 Usually this means the macro was only invoked conditionally." >&5
29155 echo "$as_me: error: conditional \"HAVE_SVN2CL\" was never defined.
29156 Usually this means the macro was only invoked conditionally." >&2;}
29157    { (exit 1); exit 1; }; }
29158 fi
29159 if test -z "${ENSC_ENABLE_INTERNAL_HEADERS_TRUE}" && test -z "${ENSC_ENABLE_INTERNAL_HEADERS_FALSE}"; then
29160   { { echo "$as_me:$LINENO: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
29161 Usually this means the macro was only invoked conditionally." >&5
29162 echo "$as_me: error: conditional \"ENSC_ENABLE_INTERNAL_HEADERS\" was never defined.
29163 Usually this means the macro was only invoked conditionally." >&2;}
29164    { (exit 1); exit 1; }; }
29165 fi
29166 if test -z "${ENSC_HAVE_BEECRYPT_TRUE}" && test -z "${ENSC_HAVE_BEECRYPT_FALSE}"; then
29167   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
29168 Usually this means the macro was only invoked conditionally." >&5
29169 echo "$as_me: error: conditional \"ENSC_HAVE_BEECRYPT\" was never defined.
29170 Usually this means the macro was only invoked conditionally." >&2;}
29171    { (exit 1); exit 1; }; }
29172 fi
29173 if test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE}" && test -z "${ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE}"; then
29174   { { echo "$as_me:$LINENO: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
29175 Usually this means the macro was only invoked conditionally." >&5
29176 echo "$as_me: error: conditional \"ENSC_CAN_BEECRYPT_WITH_DIETLIBC\" was never defined.
29177 Usually this means the macro was only invoked conditionally." >&2;}
29178    { (exit 1); exit 1; }; }
29179 fi
29180 if test -z "${ENSC_HAVE_LIBNL_TRUE}" && test -z "${ENSC_HAVE_LIBNL_FALSE}"; then
29181   { { echo "$as_me:$LINENO: error: conditional \"ENSC_HAVE_LIBNL\" was never defined.
29182 Usually this means the macro was only invoked conditionally." >&5
29183 echo "$as_me: error: conditional \"ENSC_HAVE_LIBNL\" was never defined.
29184 Usually this means the macro was only invoked conditionally." >&2;}
29185    { (exit 1); exit 1; }; }
29186 fi
29187 if test -z "${HAVE_GENTOO_INIT_TRUE}" && test -z "${HAVE_GENTOO_INIT_FALSE}"; then
29188   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29189 Usually this means the macro was only invoked conditionally." >&5
29190 echo "$as_me: error: conditional \"HAVE_GENTOO_INIT\" was never defined.
29191 Usually this means the macro was only invoked conditionally." >&2;}
29192    { (exit 1); exit 1; }; }
29193 fi
29194 if test -z "${HAVE_SYSV_INIT_TRUE}" && test -z "${HAVE_SYSV_INIT_FALSE}"; then
29195   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29196 Usually this means the macro was only invoked conditionally." >&5
29197 echo "$as_me: error: conditional \"HAVE_SYSV_INIT\" was never defined.
29198 Usually this means the macro was only invoked conditionally." >&2;}
29199    { (exit 1); exit 1; }; }
29200 fi
29201
29202                         FEATURES_TXT="\
29203 Features:
29204                        CC: $CC, $($CC   --version | sed -e '1p;d')
29205                       CXX: $CXX, $($CXX --version | sed -e '1p;d')
29206                  CPPFLAGS: '$CPPFLAGS'
29207                    CFLAGS: '$CFLAGS'
29208                  CXXFLAGS: '$CXXFLAGS'
29209                build/host: $build/$host
29210              Use dietlibc: $ensc_have_dietlibc$ensc_diet_version_msg$ensc_diet_msg$ensc_diet_compat_msg
29211        Build C++ programs: $ensc_cv_cxx_cxxcompiler$ensc_cxx_affected
29212        Build C99 programs: $ensc_cv_c99_c99compiler$ensc_c99_affected
29213            Available APIs: $enable_apis
29214             ext2fs Source: $ensc_cv_test_ext2fs_header
29215     syscall(2) invocation: $with_syscall
29216       vserver(2) syscall#: $ensc_cv_value_syscall_vserver
29217
29218 Paths:
29219                    prefix: $prefix
29220         sysconf-Directory: $sysconfdir
29221             cfg-Directory: $sysconfdir/vservers
29222          initrd-Directory: $initrddir
29223        pkgstate-Directory: $localstatedir/run/vservers
29224           vserver-Rootdir: $vserverdir
29225 "
29226                         echo "$FEATURES_TXT" >FEATURES.txt
29227
29228
29229 : ${CONFIG_STATUS=./config.status}
29230 ac_clean_files_save=$ac_clean_files
29231 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29232 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29233 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29234 cat >$CONFIG_STATUS <<_ACEOF
29235 #! $SHELL
29236 # Generated by $as_me.
29237 # Run this file to recreate the current configuration.
29238 # Compiler output produced by configure, useful for debugging
29239 # configure, is in config.log if it exists.
29240
29241 debug=false
29242 ac_cs_recheck=false
29243 ac_cs_silent=false
29244 SHELL=\${CONFIG_SHELL-$SHELL}
29245 _ACEOF
29246
29247 cat >>$CONFIG_STATUS <<\_ACEOF
29248 ## --------------------- ##
29249 ## M4sh Initialization.  ##
29250 ## --------------------- ##
29251
29252 # Be more Bourne compatible
29253 DUALCASE=1; export DUALCASE # for MKS sh
29254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29255   emulate sh
29256   NULLCMD=:
29257   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29258   # is contrary to our usage.  Disable this feature.
29259   alias -g '${1+"$@"}'='"$@"'
29260   setopt NO_GLOB_SUBST
29261 else
29262   case `(set -o) 2>/dev/null` in
29263   *posix*) set -o posix ;;
29264 esac
29265
29266 fi
29267
29268
29269
29270
29271 # PATH needs CR
29272 # Avoid depending upon Character Ranges.
29273 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29274 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29275 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29276 as_cr_digits='0123456789'
29277 as_cr_alnum=$as_cr_Letters$as_cr_digits
29278
29279 # The user is always right.
29280 if test "${PATH_SEPARATOR+set}" != set; then
29281   echo "#! /bin/sh" >conf$$.sh
29282   echo  "exit 0"   >>conf$$.sh
29283   chmod +x conf$$.sh
29284   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29285     PATH_SEPARATOR=';'
29286   else
29287     PATH_SEPARATOR=:
29288   fi
29289   rm -f conf$$.sh
29290 fi
29291
29292 # Support unset when possible.
29293 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29294   as_unset=unset
29295 else
29296   as_unset=false
29297 fi
29298
29299
29300 # IFS
29301 # We need space, tab and new line, in precisely that order.  Quoting is
29302 # there to prevent editors from complaining about space-tab.
29303 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29304 # splitting by setting IFS to empty value.)
29305 as_nl='
29306 '
29307 IFS=" ""        $as_nl"
29308
29309 # Find who we are.  Look in the path if we contain no directory separator.
29310 case $0 in
29311   *[\\/]* ) as_myself=$0 ;;
29312   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29313 for as_dir in $PATH
29314 do
29315   IFS=$as_save_IFS
29316   test -z "$as_dir" && as_dir=.
29317   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29318 done
29319 IFS=$as_save_IFS
29320
29321      ;;
29322 esac
29323 # We did not find ourselves, most probably we were run as `sh COMMAND'
29324 # in which case we are not to be found in the path.
29325 if test "x$as_myself" = x; then
29326   as_myself=$0
29327 fi
29328 if test ! -f "$as_myself"; then
29329   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29330   { (exit 1); exit 1; }
29331 fi
29332
29333 # Work around bugs in pre-3.0 UWIN ksh.
29334 for as_var in ENV MAIL MAILPATH
29335 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29336 done
29337 PS1='$ '
29338 PS2='> '
29339 PS4='+ '
29340
29341 # NLS nuisances.
29342 for as_var in \
29343   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29344   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29345   LC_TELEPHONE LC_TIME
29346 do
29347   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29348     eval $as_var=C; export $as_var
29349   else
29350     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29351   fi
29352 done
29353
29354 # Required to use basename.
29355 if expr a : '\(a\)' >/dev/null 2>&1 &&
29356    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29357   as_expr=expr
29358 else
29359   as_expr=false
29360 fi
29361
29362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29363   as_basename=basename
29364 else
29365   as_basename=false
29366 fi
29367
29368
29369 # Name of the executable.
29370 as_me=`$as_basename -- "$0" ||
29371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29372          X"$0" : 'X\(//\)$' \| \
29373          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29374 echo X/"$0" |
29375     sed '/^.*\/\([^/][^/]*\)\/*$/{
29376             s//\1/
29377             q
29378           }
29379           /^X\/\(\/\/\)$/{
29380             s//\1/
29381             q
29382           }
29383           /^X\/\(\/\).*/{
29384             s//\1/
29385             q
29386           }
29387           s/.*/./; q'`
29388
29389 # CDPATH.
29390 $as_unset CDPATH
29391
29392
29393
29394   as_lineno_1=$LINENO
29395   as_lineno_2=$LINENO
29396   test "x$as_lineno_1" != "x$as_lineno_2" &&
29397   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29398
29399   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29400   # uniformly replaced by the line number.  The first 'sed' inserts a
29401   # line-number line after each line using $LINENO; the second 'sed'
29402   # does the real work.  The second script uses 'N' to pair each
29403   # line-number line with the line containing $LINENO, and appends
29404   # trailing '-' during substitution so that $LINENO is not a special
29405   # case at line end.
29406   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29407   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29408   # E. McMahon (1931-1989) for sed's syntax.  :-)
29409   sed -n '
29410     p
29411     /[$]LINENO/=
29412   ' <$as_myself |
29413     sed '
29414       s/[$]LINENO.*/&-/
29415       t lineno
29416       b
29417       :lineno
29418       N
29419       :loop
29420       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29421       t loop
29422       s/-\n.*//
29423     ' >$as_me.lineno &&
29424   chmod +x "$as_me.lineno" ||
29425     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29426    { (exit 1); exit 1; }; }
29427
29428   # Don't try to exec as it changes $[0], causing all sort of problems
29429   # (the dirname of $[0] is not the place where we might find the
29430   # original and so on.  Autoconf is especially sensitive to this).
29431   . "./$as_me.lineno"
29432   # Exit status is that of the last command.
29433   exit
29434 }
29435
29436
29437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29438   as_dirname=dirname
29439 else
29440   as_dirname=false
29441 fi
29442
29443 ECHO_C= ECHO_N= ECHO_T=
29444 case `echo -n x` in
29445 -n*)
29446   case `echo 'x\c'` in
29447   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29448   *)   ECHO_C='\c';;
29449   esac;;
29450 *)
29451   ECHO_N='-n';;
29452 esac
29453
29454 if expr a : '\(a\)' >/dev/null 2>&1 &&
29455    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29456   as_expr=expr
29457 else
29458   as_expr=false
29459 fi
29460
29461 rm -f conf$$ conf$$.exe conf$$.file
29462 if test -d conf$$.dir; then
29463   rm -f conf$$.dir/conf$$.file
29464 else
29465   rm -f conf$$.dir
29466   mkdir conf$$.dir
29467 fi
29468 echo >conf$$.file
29469 if ln -s conf$$.file conf$$ 2>/dev/null; then
29470   as_ln_s='ln -s'
29471   # ... but there are two gotchas:
29472   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29473   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29474   # In both cases, we have to default to `cp -p'.
29475   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29476     as_ln_s='cp -p'
29477 elif ln conf$$.file conf$$ 2>/dev/null; then
29478   as_ln_s=ln
29479 else
29480   as_ln_s='cp -p'
29481 fi
29482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29483 rmdir conf$$.dir 2>/dev/null
29484
29485 if mkdir -p . 2>/dev/null; then
29486   as_mkdir_p=:
29487 else
29488   test -d ./-p && rmdir ./-p
29489   as_mkdir_p=false
29490 fi
29491
29492 if test -x / >/dev/null 2>&1; then
29493   as_test_x='test -x'
29494 else
29495   if ls -dL / >/dev/null 2>&1; then
29496     as_ls_L_option=L
29497   else
29498     as_ls_L_option=
29499   fi
29500   as_test_x='
29501     eval sh -c '\''
29502       if test -d "$1"; then
29503         test -d "$1/.";
29504       else
29505         case $1 in
29506         -*)set "./$1";;
29507         esac;
29508         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29509         ???[sx]*):;;*)false;;esac;fi
29510     '\'' sh
29511   '
29512 fi
29513 as_executable_p=$as_test_x
29514
29515 # Sed expression to map a string onto a valid CPP name.
29516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29517
29518 # Sed expression to map a string onto a valid variable name.
29519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29520
29521
29522 exec 6>&1
29523
29524 # Save the log message, to keep $[0] and so on meaningful, and to
29525 # report actual input values of CONFIG_FILES etc. instead of their
29526 # values after options handling.
29527 ac_log="
29528 This file was extended by util-vserver $as_me 0.30.214, which was
29529 generated by GNU Autoconf 2.61.  Invocation command line was
29530
29531   CONFIG_FILES    = $CONFIG_FILES
29532   CONFIG_HEADERS  = $CONFIG_HEADERS
29533   CONFIG_LINKS    = $CONFIG_LINKS
29534   CONFIG_COMMANDS = $CONFIG_COMMANDS
29535   $ $0 $@
29536
29537 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29538 "
29539
29540 _ACEOF
29541
29542 cat >>$CONFIG_STATUS <<_ACEOF
29543 # Files that config.status was made for.
29544 config_files="$ac_config_files"
29545 config_headers="$ac_config_headers"
29546 config_commands="$ac_config_commands"
29547
29548 _ACEOF
29549
29550 cat >>$CONFIG_STATUS <<\_ACEOF
29551 ac_cs_usage="\
29552 \`$as_me' instantiates files from templates according to the
29553 current configuration.
29554
29555 Usage: $0 [OPTIONS] [FILE]...
29556
29557   -h, --help       print this help, then exit
29558   -V, --version    print version number and configuration settings, then exit
29559   -q, --quiet      do not print progress messages
29560   -d, --debug      don't remove temporary files
29561       --recheck    update $as_me by reconfiguring in the same conditions
29562   --file=FILE[:TEMPLATE]
29563                    instantiate the configuration file FILE
29564   --header=FILE[:TEMPLATE]
29565                    instantiate the configuration header FILE
29566
29567 Configuration files:
29568 $config_files
29569
29570 Configuration headers:
29571 $config_headers
29572
29573 Configuration commands:
29574 $config_commands
29575
29576 Report bugs to <bug-autoconf@gnu.org>."
29577
29578 _ACEOF
29579 cat >>$CONFIG_STATUS <<_ACEOF
29580 ac_cs_version="\\
29581 util-vserver config.status 0.30.214
29582 configured by $0, generated by GNU Autoconf 2.61,
29583   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29584
29585 Copyright (C) 2006 Free Software Foundation, Inc.
29586 This config.status script is free software; the Free Software Foundation
29587 gives unlimited permission to copy, distribute and modify it."
29588
29589 ac_pwd='$ac_pwd'
29590 srcdir='$srcdir'
29591 INSTALL='$INSTALL'
29592 MKDIR_P='$MKDIR_P'
29593 _ACEOF
29594
29595 cat >>$CONFIG_STATUS <<\_ACEOF
29596 # If no file are specified by the user, then we need to provide default
29597 # value.  By we need to know if files were specified by the user.
29598 ac_need_defaults=:
29599 while test $# != 0
29600 do
29601   case $1 in
29602   --*=*)
29603     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29604     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29605     ac_shift=:
29606     ;;
29607   *)
29608     ac_option=$1
29609     ac_optarg=$2
29610     ac_shift=shift
29611     ;;
29612   esac
29613
29614   case $ac_option in
29615   # Handling of the options.
29616   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29617     ac_cs_recheck=: ;;
29618   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29619     echo "$ac_cs_version"; exit ;;
29620   --debug | --debu | --deb | --de | --d | -d )
29621     debug=: ;;
29622   --file | --fil | --fi | --f )
29623     $ac_shift
29624     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29625     ac_need_defaults=false;;
29626   --header | --heade | --head | --hea )
29627     $ac_shift
29628     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29629     ac_need_defaults=false;;
29630   --he | --h)
29631     # Conflict between --help and --header
29632     { echo "$as_me: error: ambiguous option: $1
29633 Try \`$0 --help' for more information." >&2
29634    { (exit 1); exit 1; }; };;
29635   --help | --hel | -h )
29636     echo "$ac_cs_usage"; exit ;;
29637   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29638   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29639     ac_cs_silent=: ;;
29640
29641   # This is an error.
29642   -*) { echo "$as_me: error: unrecognized option: $1
29643 Try \`$0 --help' for more information." >&2
29644    { (exit 1); exit 1; }; } ;;
29645
29646   *) ac_config_targets="$ac_config_targets $1"
29647      ac_need_defaults=false ;;
29648
29649   esac
29650   shift
29651 done
29652
29653 ac_configure_extra_args=
29654
29655 if $ac_cs_silent; then
29656   exec 6>/dev/null
29657   ac_configure_extra_args="$ac_configure_extra_args --silent"
29658 fi
29659
29660 _ACEOF
29661 cat >>$CONFIG_STATUS <<_ACEOF
29662 if \$ac_cs_recheck; then
29663   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29664   CONFIG_SHELL=$SHELL
29665   export CONFIG_SHELL
29666   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29667 fi
29668
29669 _ACEOF
29670 cat >>$CONFIG_STATUS <<\_ACEOF
29671 exec 5>>config.log
29672 {
29673   echo
29674   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29675 ## Running $as_me. ##
29676 _ASBOX
29677   echo "$ac_log"
29678 } >&5
29679
29680 _ACEOF
29681 cat >>$CONFIG_STATUS <<_ACEOF
29682 #
29683 # INIT-COMMANDS
29684 #
29685 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29686
29687 _ACEOF
29688
29689 cat >>$CONFIG_STATUS <<\_ACEOF
29690
29691 # Handling of arguments.
29692 for ac_config_target in $ac_config_targets
29693 do
29694   case $ac_config_target in
29695     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29696     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29697     "util-vserver.spec") CONFIG_FILES="$CONFIG_FILES util-vserver.spec" ;;
29698     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29699     "distrib/Makefile") CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
29700     "lib/apidoc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lib/apidoc/Doxyfile" ;;
29701     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
29702
29703   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29704 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29705    { (exit 1); exit 1; }; };;
29706   esac
29707 done
29708
29709
29710 # If the user did not use the arguments to specify the items to instantiate,
29711 # then the envvar interface is used.  Set only those that are not.
29712 # We use the long form for the default assignment because of an extremely
29713 # bizarre bug on SunOS 4.1.3.
29714 if $ac_need_defaults; then
29715   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29716   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29717   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29718 fi
29719
29720 # Have a temporary directory for convenience.  Make it in the build tree
29721 # simply because there is no reason against having it here, and in addition,
29722 # creating and moving files from /tmp can sometimes cause problems.
29723 # Hook for its removal unless debugging.
29724 # Note that there is a small window in which the directory will not be cleaned:
29725 # after its creation but before its name has been assigned to `$tmp'.
29726 $debug ||
29727 {
29728   tmp=
29729   trap 'exit_status=$?
29730   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29731 ' 0
29732   trap '{ (exit 1); exit 1; }' 1 2 13 15
29733 }
29734 # Create a (secure) tmp directory for tmp files.
29735
29736 {
29737   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29738   test -n "$tmp" && test -d "$tmp"
29739 }  ||
29740 {
29741   tmp=./conf$$-$RANDOM
29742   (umask 077 && mkdir "$tmp")
29743 } ||
29744 {
29745    echo "$me: cannot create a temporary directory in ." >&2
29746    { (exit 1); exit 1; }
29747 }
29748
29749 #
29750 # Set up the sed scripts for CONFIG_FILES section.
29751 #
29752
29753 # No need to generate the scripts if there are no CONFIG_FILES.
29754 # This happens for instance when ./config.status config.h
29755 if test -n "$CONFIG_FILES"; then
29756
29757 _ACEOF
29758
29759
29760
29761 ac_delim='%!_!# '
29762 for ac_last_try in false false false false false :; do
29763   cat >conf$$subs.sed <<_ACEOF
29764 SHELL!$SHELL$ac_delim
29765 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29766 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29767 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29768 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29769 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29770 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29771 exec_prefix!$exec_prefix$ac_delim
29772 prefix!$prefix$ac_delim
29773 program_transform_name!$program_transform_name$ac_delim
29774 bindir!$bindir$ac_delim
29775 sbindir!$sbindir$ac_delim
29776 libexecdir!$libexecdir$ac_delim
29777 datarootdir!$datarootdir$ac_delim
29778 datadir!$datadir$ac_delim
29779 sysconfdir!$sysconfdir$ac_delim
29780 sharedstatedir!$sharedstatedir$ac_delim
29781 localstatedir!$localstatedir$ac_delim
29782 includedir!$includedir$ac_delim
29783 oldincludedir!$oldincludedir$ac_delim
29784 docdir!$docdir$ac_delim
29785 infodir!$infodir$ac_delim
29786 htmldir!$htmldir$ac_delim
29787 dvidir!$dvidir$ac_delim
29788 pdfdir!$pdfdir$ac_delim
29789 psdir!$psdir$ac_delim
29790 libdir!$libdir$ac_delim
29791 localedir!$localedir$ac_delim
29792 mandir!$mandir$ac_delim
29793 DEFS!$DEFS$ac_delim
29794 ECHO_C!$ECHO_C$ac_delim
29795 ECHO_N!$ECHO_N$ac_delim
29796 ECHO_T!$ECHO_T$ac_delim
29797 LIBS!$LIBS$ac_delim
29798 build_alias!$build_alias$ac_delim
29799 host_alias!$host_alias$ac_delim
29800 target_alias!$target_alias$ac_delim
29801 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29802 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29803 INSTALL_DATA!$INSTALL_DATA$ac_delim
29804 am__isrc!$am__isrc$ac_delim
29805 CYGPATH_W!$CYGPATH_W$ac_delim
29806 PACKAGE!$PACKAGE$ac_delim
29807 VERSION!$VERSION$ac_delim
29808 ACLOCAL!$ACLOCAL$ac_delim
29809 AUTOCONF!$AUTOCONF$ac_delim
29810 AUTOMAKE!$AUTOMAKE$ac_delim
29811 AUTOHEADER!$AUTOHEADER$ac_delim
29812 MAKEINFO!$MAKEINFO$ac_delim
29813 install_sh!$install_sh$ac_delim
29814 STRIP!$STRIP$ac_delim
29815 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29816 mkdir_p!$mkdir_p$ac_delim
29817 AWK!$AWK$ac_delim
29818 SET_MAKE!$SET_MAKE$ac_delim
29819 am__leading_dot!$am__leading_dot$ac_delim
29820 AMTAR!$AMTAR$ac_delim
29821 am__tar!$am__tar$ac_delim
29822 am__untar!$am__untar$ac_delim
29823 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29824 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29825 MAINT!$MAINT$ac_delim
29826 build!$build$ac_delim
29827 build_cpu!$build_cpu$ac_delim
29828 build_vendor!$build_vendor$ac_delim
29829 build_os!$build_os$ac_delim
29830 host!$host$ac_delim
29831 host_cpu!$host_cpu$ac_delim
29832 host_vendor!$host_vendor$ac_delim
29833 host_os!$host_os$ac_delim
29834 GPG_KEY!$GPG_KEY$ac_delim
29835 CXX!$CXX$ac_delim
29836 CXXFLAGS!$CXXFLAGS$ac_delim
29837 LDFLAGS!$LDFLAGS$ac_delim
29838 CPPFLAGS!$CPPFLAGS$ac_delim
29839 ac_ct_CXX!$ac_ct_CXX$ac_delim
29840 EXEEXT!$EXEEXT$ac_delim
29841 OBJEXT!$OBJEXT$ac_delim
29842 DEPDIR!$DEPDIR$ac_delim
29843 am__include!$am__include$ac_delim
29844 am__quote!$am__quote$ac_delim
29845 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29846 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29847 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29848 CXXDEPMODE!$CXXDEPMODE$ac_delim
29849 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29850 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29851 CC!$CC$ac_delim
29852 CFLAGS!$CFLAGS$ac_delim
29853 ac_ct_CC!$ac_ct_CC$ac_delim
29854 CCDEPMODE!$CCDEPMODE$ac_delim
29855 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29856 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29857 LN_S!$LN_S$ac_delim
29858 PYTHON!$PYTHON$ac_delim
29859 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
29860 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
29861 _ACEOF
29862
29863   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29864     break
29865   elif $ac_last_try; then
29866     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29867 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29868    { (exit 1); exit 1; }; }
29869   else
29870     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29871   fi
29872 done
29873
29874 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29875 if test -n "$ac_eof"; then
29876   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29877   ac_eof=`expr $ac_eof + 1`
29878 fi
29879
29880 cat >>$CONFIG_STATUS <<_ACEOF
29881 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29882 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29883 _ACEOF
29884 sed '
29885 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29886 s/^/s,@/; s/!/@,|#_!!_#|/
29887 :n
29888 t n
29889 s/'"$ac_delim"'$/,g/; t
29890 s/$/\\/; p
29891 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29892 ' >>$CONFIG_STATUS <conf$$subs.sed
29893 rm -f conf$$subs.sed
29894 cat >>$CONFIG_STATUS <<_ACEOF
29895 CEOF$ac_eof
29896 _ACEOF
29897
29898
29899 ac_delim='%!_!# '
29900 for ac_last_try in false false false false false :; do
29901   cat >conf$$subs.sed <<_ACEOF
29902 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
29903 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
29904 pythondir!$pythondir$ac_delim
29905 pkgpythondir!$pkgpythondir$ac_delim
29906 pyexecdir!$pyexecdir$ac_delim
29907 pkgpyexecdir!$pkgpyexecdir$ac_delim
29908 ENSC_HAVE_CXX_COMPILER_TRUE!$ENSC_HAVE_CXX_COMPILER_TRUE$ac_delim
29909 ENSC_HAVE_CXX_COMPILER_FALSE!$ENSC_HAVE_CXX_COMPILER_FALSE$ac_delim
29910 ENSC_HAVE_C99_COMPILER_TRUE!$ENSC_HAVE_C99_COMPILER_TRUE$ac_delim
29911 ENSC_HAVE_C99_COMPILER_FALSE!$ENSC_HAVE_C99_COMPILER_FALSE$ac_delim
29912 ENSC_PATHPROG_SED!$ENSC_PATHPROG_SED$ac_delim
29913 CAT!$CAT$ac_delim
29914 CHOWN!$CHOWN$ac_delim
29915 CMP!$CMP$ac_delim
29916 CP!$CP$ac_delim
29917 DIRNAME!$DIRNAME$ac_delim
29918 EGREP!$EGREP$ac_delim
29919 ENV!$ENV$ac_delim
29920 GREP!$GREP$ac_delim
29921 LN!$LN$ac_delim
29922 MKDIR!$MKDIR$ac_delim
29923 MKFIFO!$MKFIFO$ac_delim
29924 MKTEMP!$MKTEMP$ac_delim
29925 MOUNT!$MOUNT$ac_delim
29926 MV!$MV$ac_delim
29927 NICE!$NICE$ac_delim
29928 PS!$PS$ac_delim
29929 RM!$RM$ac_delim
29930 RMDIR!$RMDIR$ac_delim
29931 SED!$SED$ac_delim
29932 SH!$SH$ac_delim
29933 TAC!$TAC$ac_delim
29934 TAR!$TAR$ac_delim
29935 TOUCH!$TOUCH$ac_delim
29936 TTY!$TTY$ac_delim
29937 UMOUNT!$UMOUNT$ac_delim
29938 WC!$WC$ac_delim
29939 IP!$IP$ac_delim
29940 IPTABLES!$IPTABLES$ac_delim
29941 MODPROBE!$MODPROBE$ac_delim
29942 NAMEIF!$NAMEIF$ac_delim
29943 NOHUP!$NOHUP$ac_delim
29944 RMMOD!$RMMOD$ac_delim
29945 VCONFIG!$VCONFIG$ac_delim
29946 WGET!$WGET$ac_delim
29947 FILE!$FILE$ac_delim
29948 GZIP!$GZIP$ac_delim
29949 BZIP2!$BZIP2$ac_delim
29950 CPIO!$CPIO$ac_delim
29951 RESTORE!$RESTORE$ac_delim
29952 RSYNC!$RSYNC$ac_delim
29953 STRACE!$STRACE$ac_delim
29954 DOXYGEN!$DOXYGEN$ac_delim
29955 XSLTP!$XSLTP$ac_delim
29956 XSLTPROC!$XSLTPROC$ac_delim
29957 HAVE_XSLTP_TRUE!$HAVE_XSLTP_TRUE$ac_delim
29958 HAVE_XSLTP_FALSE!$HAVE_XSLTP_FALSE$ac_delim
29959 HAVE_XSLTPROC_TRUE!$HAVE_XSLTPROC_TRUE$ac_delim
29960 HAVE_XSLTPROC_FALSE!$HAVE_XSLTPROC_FALSE$ac_delim
29961 LIB_DEBUG_CPPFLAGS!$LIB_DEBUG_CPPFLAGS$ac_delim
29962 ENSC_USE_EXPENSIVE_TESTS!$ENSC_USE_EXPENSIVE_TESTS$ac_delim
29963 initrddir!$initrddir$ac_delim
29964 RELEASE_CPPFLAGS!$RELEASE_CPPFLAGS$ac_delim
29965 CPP!$CPP$ac_delim
29966 DIET!$DIET$ac_delim
29967 DIETFLAGS!$DIETFLAGS$ac_delim
29968 USE_DIETLIBC_TRUE!$USE_DIETLIBC_TRUE$ac_delim
29969 USE_DIETLIBC_FALSE!$USE_DIETLIBC_FALSE$ac_delim
29970 USE_DIETLIBC_COMPAT_TRUE!$USE_DIETLIBC_COMPAT_TRUE$ac_delim
29971 USE_DIETLIBC_COMPAT_FALSE!$USE_DIETLIBC_COMPAT_FALSE$ac_delim
29972 ENSC_USE_DIETLIBC_TRUE!$ENSC_USE_DIETLIBC_TRUE$ac_delim
29973 ENSC_USE_DIETLIBC_FALSE!$ENSC_USE_DIETLIBC_FALSE$ac_delim
29974 ENSC_USE_GLIBC_TRUE!$ENSC_USE_GLIBC_TRUE$ac_delim
29975 ENSC_USE_GLIBC_FALSE!$ENSC_USE_GLIBC_FALSE$ac_delim
29976 ECHO!$ECHO$ac_delim
29977 AR!$AR$ac_delim
29978 RANLIB!$RANLIB$ac_delim
29979 CXXCPP!$CXXCPP$ac_delim
29980 F77!$F77$ac_delim
29981 FFLAGS!$FFLAGS$ac_delim
29982 ac_ct_F77!$ac_ct_F77$ac_delim
29983 LIBTOOL!$LIBTOOL$ac_delim
29984 vserverdir!$vserverdir$ac_delim
29985 SVN2CL!$SVN2CL$ac_delim
29986 HAVE_SVN2CL_TRUE!$HAVE_SVN2CL_TRUE$ac_delim
29987 HAVE_SVN2CL_FALSE!$HAVE_SVN2CL_FALSE$ac_delim
29988 ENSC_ENABLE_INTERNAL_HEADERS_TRUE!$ENSC_ENABLE_INTERNAL_HEADERS_TRUE$ac_delim
29989 ENSC_ENABLE_INTERNAL_HEADERS_FALSE!$ENSC_ENABLE_INTERNAL_HEADERS_FALSE$ac_delim
29990 ENSC_HAVE_BEECRYPT_TRUE!$ENSC_HAVE_BEECRYPT_TRUE$ac_delim
29991 ENSC_HAVE_BEECRYPT_FALSE!$ENSC_HAVE_BEECRYPT_FALSE$ac_delim
29992 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_TRUE$ac_delim
29993 ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE!$ENSC_CAN_BEECRYPT_WITH_DIETLIBC_FALSE$ac_delim
29994 ENSC_HAVE_LIBNL_TRUE!$ENSC_HAVE_LIBNL_TRUE$ac_delim
29995 ENSC_HAVE_LIBNL_FALSE!$ENSC_HAVE_LIBNL_FALSE$ac_delim
29996 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
29997 HAVE_GENTOO_INIT_TRUE!$HAVE_GENTOO_INIT_TRUE$ac_delim
29998 HAVE_GENTOO_INIT_FALSE!$HAVE_GENTOO_INIT_FALSE$ac_delim
29999 _ACEOF
30000
30001   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30002     break
30003   elif $ac_last_try; then
30004     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30005 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30006    { (exit 1); exit 1; }; }
30007   else
30008     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30009   fi
30010 done
30011
30012 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30013 if test -n "$ac_eof"; then
30014   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30015   ac_eof=`expr $ac_eof + 1`
30016 fi
30017
30018 cat >>$CONFIG_STATUS <<_ACEOF
30019 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30021 _ACEOF
30022 sed '
30023 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30024 s/^/s,@/; s/!/@,|#_!!_#|/
30025 :n
30026 t n
30027 s/'"$ac_delim"'$/,g/; t
30028 s/$/\\/; p
30029 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30030 ' >>$CONFIG_STATUS <conf$$subs.sed
30031 rm -f conf$$subs.sed
30032 cat >>$CONFIG_STATUS <<_ACEOF
30033 CEOF$ac_eof
30034 _ACEOF
30035
30036
30037 ac_delim='%!_!# '
30038 for ac_last_try in false false false false false :; do
30039   cat >conf$$subs.sed <<_ACEOF
30040 HAVE_SYSV_INIT_TRUE!$HAVE_SYSV_INIT_TRUE$ac_delim
30041 HAVE_SYSV_INIT_FALSE!$HAVE_SYSV_INIT_FALSE$ac_delim
30042 LIBOBJS!$LIBOBJS$ac_delim
30043 LTLIBOBJS!$LTLIBOBJS$ac_delim
30044 _ACEOF
30045
30046   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
30047     break
30048   elif $ac_last_try; then
30049     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30050 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30051    { (exit 1); exit 1; }; }
30052   else
30053     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30054   fi
30055 done
30056
30057 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30058 if test -n "$ac_eof"; then
30059   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30060   ac_eof=`expr $ac_eof + 1`
30061 fi
30062
30063 cat >>$CONFIG_STATUS <<_ACEOF
30064 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30066 _ACEOF
30067 sed '
30068 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30069 s/^/s,@/; s/!/@,|#_!!_#|/
30070 :n
30071 t n
30072 s/'"$ac_delim"'$/,g/; t
30073 s/$/\\/; p
30074 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30075 ' >>$CONFIG_STATUS <conf$$subs.sed
30076 rm -f conf$$subs.sed
30077 cat >>$CONFIG_STATUS <<_ACEOF
30078 :end
30079 s/|#_!!_#|//g
30080 CEOF$ac_eof
30081 _ACEOF
30082
30083
30084 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30085 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30086 # trailing colons and then remove the whole line if VPATH becomes empty
30087 # (actually we leave an empty line to preserve line numbers).
30088 if test "x$srcdir" = x.; then
30089   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30090 s/:*\$(srcdir):*/:/
30091 s/:*\${srcdir}:*/:/
30092 s/:*@srcdir@:*/:/
30093 s/^\([^=]*=[     ]*\):*/\1/
30094 s/:*$//
30095 s/^[^=]*=[       ]*$//
30096 }'
30097 fi
30098
30099 cat >>$CONFIG_STATUS <<\_ACEOF
30100 fi # test -n "$CONFIG_FILES"
30101
30102
30103 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30104 do
30105   case $ac_tag in
30106   :[FHLC]) ac_mode=$ac_tag; continue;;
30107   esac
30108   case $ac_mode$ac_tag in
30109   :[FHL]*:*);;
30110   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30111 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30112    { (exit 1); exit 1; }; };;
30113   :[FH]-) ac_tag=-:-;;
30114   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30115   esac
30116   ac_save_IFS=$IFS
30117   IFS=:
30118   set x $ac_tag
30119   IFS=$ac_save_IFS
30120   shift
30121   ac_file=$1
30122   shift
30123
30124   case $ac_mode in
30125   :L) ac_source=$1;;
30126   :[FH])
30127     ac_file_inputs=
30128     for ac_f
30129     do
30130       case $ac_f in
30131       -) ac_f="$tmp/stdin";;
30132       *) # Look for the file first in the build tree, then in the source tree
30133          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30134          # because $ac_f cannot contain `:'.
30135          test -f "$ac_f" ||
30136            case $ac_f in
30137            [\\/$]*) false;;
30138            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30139            esac ||
30140            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30141 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30142    { (exit 1); exit 1; }; };;
30143       esac
30144       ac_file_inputs="$ac_file_inputs $ac_f"
30145     done
30146
30147     # Let's still pretend it is `configure' which instantiates (i.e., don't
30148     # use $as_me), people would be surprised to read:
30149     #    /* config.h.  Generated by config.status.  */
30150     configure_input="Generated from "`IFS=:
30151           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30152     if test x"$ac_file" != x-; then
30153       configure_input="$ac_file.  $configure_input"
30154       { echo "$as_me:$LINENO: creating $ac_file" >&5
30155 echo "$as_me: creating $ac_file" >&6;}
30156     fi
30157
30158     case $ac_tag in
30159     *:-:* | *:-) cat >"$tmp/stdin";;
30160     esac
30161     ;;
30162   esac
30163
30164   ac_dir=`$as_dirname -- "$ac_file" ||
30165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30166          X"$ac_file" : 'X\(//\)[^/]' \| \
30167          X"$ac_file" : 'X\(//\)$' \| \
30168          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30169 echo X"$ac_file" |
30170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30171             s//\1/
30172             q
30173           }
30174           /^X\(\/\/\)[^/].*/{
30175             s//\1/
30176             q
30177           }
30178           /^X\(\/\/\)$/{
30179             s//\1/
30180             q
30181           }
30182           /^X\(\/\).*/{
30183             s//\1/
30184             q
30185           }
30186           s/.*/./; q'`
30187   { as_dir="$ac_dir"
30188   case $as_dir in #(
30189   -*) as_dir=./$as_dir;;
30190   esac
30191   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30192     as_dirs=
30193     while :; do
30194       case $as_dir in #(
30195       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30196       *) as_qdir=$as_dir;;
30197       esac
30198       as_dirs="'$as_qdir' $as_dirs"
30199       as_dir=`$as_dirname -- "$as_dir" ||
30200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30201          X"$as_dir" : 'X\(//\)[^/]' \| \
30202          X"$as_dir" : 'X\(//\)$' \| \
30203          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30204 echo X"$as_dir" |
30205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30206             s//\1/
30207             q
30208           }
30209           /^X\(\/\/\)[^/].*/{
30210             s//\1/
30211             q
30212           }
30213           /^X\(\/\/\)$/{
30214             s//\1/
30215             q
30216           }
30217           /^X\(\/\).*/{
30218             s//\1/
30219             q
30220           }
30221           s/.*/./; q'`
30222       test -d "$as_dir" && break
30223     done
30224     test -z "$as_dirs" || eval "mkdir $as_dirs"
30225   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30227    { (exit 1); exit 1; }; }; }
30228   ac_builddir=.
30229
30230 case "$ac_dir" in
30231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30232 *)
30233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30234   # A ".." for each directory in $ac_dir_suffix.
30235   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30236   case $ac_top_builddir_sub in
30237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30239   esac ;;
30240 esac
30241 ac_abs_top_builddir=$ac_pwd
30242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30243 # for backward compatibility:
30244 ac_top_builddir=$ac_top_build_prefix
30245
30246 case $srcdir in
30247   .)  # We are building in place.
30248     ac_srcdir=.
30249     ac_top_srcdir=$ac_top_builddir_sub
30250     ac_abs_top_srcdir=$ac_pwd ;;
30251   [\\/]* | ?:[\\/]* )  # Absolute name.
30252     ac_srcdir=$srcdir$ac_dir_suffix;
30253     ac_top_srcdir=$srcdir
30254     ac_abs_top_srcdir=$srcdir ;;
30255   *) # Relative name.
30256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30257     ac_top_srcdir=$ac_top_build_prefix$srcdir
30258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30259 esac
30260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30261
30262
30263   case $ac_mode in
30264   :F)
30265   #
30266   # CONFIG_FILE
30267   #
30268
30269   case $INSTALL in
30270   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30271   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30272   esac
30273   ac_MKDIR_P=$MKDIR_P
30274   case $MKDIR_P in
30275   [\\/$]* | ?:[\\/]* ) ;;
30276   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30277   esac
30278 _ACEOF
30279
30280 cat >>$CONFIG_STATUS <<\_ACEOF
30281 # If the template does not know about datarootdir, expand it.
30282 # FIXME: This hack should be removed a few years after 2.60.
30283 ac_datarootdir_hack=; ac_datarootdir_seen=
30284
30285 case `sed -n '/datarootdir/ {
30286   p
30287   q
30288 }
30289 /@datadir@/p
30290 /@docdir@/p
30291 /@infodir@/p
30292 /@localedir@/p
30293 /@mandir@/p
30294 ' $ac_file_inputs` in
30295 *datarootdir*) ac_datarootdir_seen=yes;;
30296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30297   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30298 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30299 _ACEOF
30300 cat >>$CONFIG_STATUS <<_ACEOF
30301   ac_datarootdir_hack='
30302   s&@datadir@&$datadir&g
30303   s&@docdir@&$docdir&g
30304   s&@infodir@&$infodir&g
30305   s&@localedir@&$localedir&g
30306   s&@mandir@&$mandir&g
30307     s&\\\${datarootdir}&$datarootdir&g' ;;
30308 esac
30309 _ACEOF
30310
30311 # Neutralize VPATH when `$srcdir' = `.'.
30312 # Shell code in configure.ac might set extrasub.
30313 # FIXME: do we really want to maintain this feature?
30314 cat >>$CONFIG_STATUS <<_ACEOF
30315   sed "$ac_vpsub
30316 $extrasub
30317 _ACEOF
30318 cat >>$CONFIG_STATUS <<\_ACEOF
30319 :t
30320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30321 s&@configure_input@&$configure_input&;t t
30322 s&@top_builddir@&$ac_top_builddir_sub&;t t
30323 s&@srcdir@&$ac_srcdir&;t t
30324 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30325 s&@top_srcdir@&$ac_top_srcdir&;t t
30326 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30327 s&@builddir@&$ac_builddir&;t t
30328 s&@abs_builddir@&$ac_abs_builddir&;t t
30329 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30330 s&@INSTALL@&$ac_INSTALL&;t t
30331 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30332 $ac_datarootdir_hack
30333 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30334
30335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30336   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30337   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30338   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30339 which seems to be undefined.  Please make sure it is defined." >&5
30340 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30341 which seems to be undefined.  Please make sure it is defined." >&2;}
30342
30343   rm -f "$tmp/stdin"
30344   case $ac_file in
30345   -) cat "$tmp/out"; rm -f "$tmp/out";;
30346   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30347   esac
30348  ;;
30349   :H)
30350   #
30351   # CONFIG_HEADER
30352   #
30353 _ACEOF
30354
30355 # Transform confdefs.h into a sed script `conftest.defines', that
30356 # substitutes the proper values into config.h.in to produce config.h.
30357 rm -f conftest.defines conftest.tail
30358 # First, append a space to every undef/define line, to ease matching.
30359 echo 's/$/ /' >conftest.defines
30360 # Then, protect against being on the right side of a sed subst, or in
30361 # an unquoted here document, in config.status.  If some macros were
30362 # called several times there might be several #defines for the same
30363 # symbol, which is useless.  But do not sort them, since the last
30364 # AC_DEFINE must be honored.
30365 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30366 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30367 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30368 # PARAMS is the parameter list in the macro definition--in most cases, it's
30369 # just an empty string.
30370 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30371 ac_dB='\\)[      (].*,\\1define\\2'
30372 ac_dC=' '
30373 ac_dD=' ,'
30374
30375 uniq confdefs.h |
30376   sed -n '
30377         t rset
30378         :rset
30379         s/^[     ]*#[    ]*define[       ][      ]*//
30380         t ok
30381         d
30382         :ok
30383         s/[\\&,]/\\&/g
30384         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30385         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30386   ' >>conftest.defines
30387
30388 # Remove the space that was appended to ease matching.
30389 # Then replace #undef with comments.  This is necessary, for
30390 # example, in the case of _POSIX_SOURCE, which is predefined and required
30391 # on some systems where configure will not decide to define it.
30392 # (The regexp can be short, since the line contains either #define or #undef.)
30393 echo 's/ $//
30394 s,^[     #]*u.*,/* & */,' >>conftest.defines
30395
30396 # Break up conftest.defines:
30397 ac_max_sed_lines=50
30398
30399 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30400 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30401 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30402 # et cetera.
30403 ac_in='$ac_file_inputs'
30404 ac_out='"$tmp/out1"'
30405 ac_nxt='"$tmp/out2"'
30406
30407 while :
30408 do
30409   # Write a here document:
30410     cat >>$CONFIG_STATUS <<_ACEOF
30411     # First, check the format of the line:
30412     cat >"\$tmp/defines.sed" <<\\CEOF
30413 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30414 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30415 b
30416 :def
30417 _ACEOF
30418   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30419   echo 'CEOF
30420     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30421   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30422   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30423   grep . conftest.tail >/dev/null || break
30424   rm -f conftest.defines
30425   mv conftest.tail conftest.defines
30426 done
30427 rm -f conftest.defines conftest.tail
30428
30429 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30430 cat >>$CONFIG_STATUS <<\_ACEOF
30431   if test x"$ac_file" != x-; then
30432     echo "/* $configure_input  */" >"$tmp/config.h"
30433     cat "$ac_result" >>"$tmp/config.h"
30434     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30435       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30436 echo "$as_me: $ac_file is unchanged" >&6;}
30437     else
30438       rm -f $ac_file
30439       mv "$tmp/config.h" $ac_file
30440     fi
30441   else
30442     echo "/* $configure_input  */"
30443     cat "$ac_result"
30444   fi
30445   rm -f "$tmp/out12"
30446 # Compute $ac_file's index in $config_headers.
30447 _am_stamp_count=1
30448 for _am_header in $config_headers :; do
30449   case $_am_header in
30450     $ac_file | $ac_file:* )
30451       break ;;
30452     * )
30453       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30454   esac
30455 done
30456 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30457 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30458          X$ac_file : 'X\(//\)[^/]' \| \
30459          X$ac_file : 'X\(//\)$' \| \
30460          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30461 echo X$ac_file |
30462     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30463             s//\1/
30464             q
30465           }
30466           /^X\(\/\/\)[^/].*/{
30467             s//\1/
30468             q
30469           }
30470           /^X\(\/\/\)$/{
30471             s//\1/
30472             q
30473           }
30474           /^X\(\/\).*/{
30475             s//\1/
30476             q
30477           }
30478           s/.*/./; q'`/stamp-h$_am_stamp_count
30479  ;;
30480
30481   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30482 echo "$as_me: executing $ac_file commands" >&6;}
30483  ;;
30484   esac
30485
30486
30487   case $ac_file$ac_mode in
30488     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30489   # Strip MF so we end up with the name of the file.
30490   mf=`echo "$mf" | sed -e 's/:.*$//'`
30491   # Check whether this is an Automake generated Makefile or not.
30492   # We used to match only the files named `Makefile.in', but
30493   # some people rename them; so instead we look at the file content.
30494   # Grep'ing the first line is not enough: some people post-process
30495   # each Makefile.in and add a new line on top of each file to say so.
30496   # Grep'ing the whole file is not good either: AIX grep has a line
30497   # limit of 2048, but all sed's we know have understand at least 4000.
30498   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
30499     dirpart=`$as_dirname -- "$mf" ||
30500 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30501          X"$mf" : 'X\(//\)[^/]' \| \
30502          X"$mf" : 'X\(//\)$' \| \
30503          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30504 echo X"$mf" |
30505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30506             s//\1/
30507             q
30508           }
30509           /^X\(\/\/\)[^/].*/{
30510             s//\1/
30511             q
30512           }
30513           /^X\(\/\/\)$/{
30514             s//\1/
30515             q
30516           }
30517           /^X\(\/\).*/{
30518             s//\1/
30519             q
30520           }
30521           s/.*/./; q'`
30522   else
30523     continue
30524   fi
30525   # Extract the definition of DEPDIR, am__include, and am__quote
30526   # from the Makefile without running `make'.
30527   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30528   test -z "$DEPDIR" && continue
30529   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30530   test -z "am__include" && continue
30531   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30532   # When using ansi2knr, U may be empty or an underscore; expand it
30533   U=`sed -n 's/^U = //p' < "$mf"`
30534   # Find all dependency output files, they are included files with
30535   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30536   # simplest approach to changing $(DEPDIR) to its actual value in the
30537   # expansion.
30538   for file in `sed -n "
30539     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30540        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30541     # Make sure the directory exists.
30542     test -f "$dirpart/$file" && continue
30543     fdir=`$as_dirname -- "$file" ||
30544 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30545          X"$file" : 'X\(//\)[^/]' \| \
30546          X"$file" : 'X\(//\)$' \| \
30547          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30548 echo X"$file" |
30549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30550             s//\1/
30551             q
30552           }
30553           /^X\(\/\/\)[^/].*/{
30554             s//\1/
30555             q
30556           }
30557           /^X\(\/\/\)$/{
30558             s//\1/
30559             q
30560           }
30561           /^X\(\/\).*/{
30562             s//\1/
30563             q
30564           }
30565           s/.*/./; q'`
30566     { as_dir=$dirpart/$fdir
30567   case $as_dir in #(
30568   -*) as_dir=./$as_dir;;
30569   esac
30570   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30571     as_dirs=
30572     while :; do
30573       case $as_dir in #(
30574       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30575       *) as_qdir=$as_dir;;
30576       esac
30577       as_dirs="'$as_qdir' $as_dirs"
30578       as_dir=`$as_dirname -- "$as_dir" ||
30579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30580          X"$as_dir" : 'X\(//\)[^/]' \| \
30581          X"$as_dir" : 'X\(//\)$' \| \
30582          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30583 echo X"$as_dir" |
30584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30585             s//\1/
30586             q
30587           }
30588           /^X\(\/\/\)[^/].*/{
30589             s//\1/
30590             q
30591           }
30592           /^X\(\/\/\)$/{
30593             s//\1/
30594             q
30595           }
30596           /^X\(\/\).*/{
30597             s//\1/
30598             q
30599           }
30600           s/.*/./; q'`
30601       test -d "$as_dir" && break
30602     done
30603     test -z "$as_dirs" || eval "mkdir $as_dirs"
30604   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30605 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30606    { (exit 1); exit 1; }; }; }
30607     # echo "creating $dirpart/$file"
30608     echo '# dummy' > "$dirpart/$file"
30609   done
30610 done
30611  ;;
30612
30613   esac
30614 done # for ac_tag
30615
30616
30617 { (exit 0); exit 0; }
30618 _ACEOF
30619 chmod +x $CONFIG_STATUS
30620 ac_clean_files=$ac_clean_files_save
30621
30622
30623 # configure is writing to config.log, and then calls config.status.
30624 # config.status does its own redirection, appending to config.log.
30625 # Unfortunately, on DOS this fails, as config.log is still kept open
30626 # by configure, so config.status won't be able to write to it; its
30627 # output is simply discarded.  So we exec the FD to /dev/null,
30628 # effectively closing config.log, so it can be properly (re)opened and
30629 # appended to by config.status.  When coming back to configure, we
30630 # need to make the FD available again.
30631 if test "$no_create" != yes; then
30632   ac_cs_success=:
30633   ac_config_status_args=
30634   test "$silent" = yes &&
30635     ac_config_status_args="$ac_config_status_args --quiet"
30636   exec 5>/dev/null
30637   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30638   exec 5>>config.log
30639   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30640   # would make configure fail if this is the last instruction.
30641   $ac_cs_success || { (exit 1); exit 1; }
30642 fi
30643
30644
30645 { echo "$as_me:$LINENO:
30646
30647 $PACKAGE_STRING
30648
30649 $FEATURES_TXT" >&5
30650 echo "$as_me:
30651
30652 $PACKAGE_STRING
30653
30654 $FEATURES_TXT" >&6;}