]> SALOME platform Git repositories - modules/hexablock.git/blob - configure
Salome HOME
First publish of HEXABLOCKcomponant
[modules/hexablock.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Salome6 Project HEXABLOCK module 5.1.2.
4 #
5 # Report bugs to <webmaster.salome@opencascade.com>.
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='Salome6 Project HEXABLOCK module'
730 PACKAGE_TARNAME='SalomeHEXABLOCK'
731 PACKAGE_VERSION='5.1.2'
732 PACKAGE_STRING='Salome6 Project HEXABLOCK module 5.1.2'
733 PACKAGE_BUGREPORT='webmaster.salome@opencascade.com'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
820 INSTALL_PROGRAM
821 INSTALL_SCRIPT
822 INSTALL_DATA
823 am__isrc
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 XVERSION
843 MODULE_NAME
844 ROOT_SRCDIR
845 ROOT_BUILDDIR
846 AR
847 CC
848 CFLAGS
849 LDFLAGS
850 CPPFLAGS
851 ac_ct_CC
852 EXEEXT
853 OBJEXT
854 DEPDIR
855 am__include
856 am__quote
857 AMDEP_TRUE
858 AMDEP_FALSE
859 AMDEPBACKSLASH
860 CCDEPMODE
861 am__fastdepCC_TRUE
862 am__fastdepCC_FALSE
863 GREP
864 EGREP
865 LN_S
866 ECHO
867 RANLIB
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 CXXTMPDPTHFLAGS
881 DEPCC
882 DEPCXX
883 DEPCXXFLAGS
884 C_DEPEND_FLAG
885 CXX_DEPEND_FLAG
886 MACHINE
887 HAVE_SSTREAM
888 LIB_LOCATION_SUFFIX
889 LDEXPDYNFLAGS
890 STDLIB
891 acx_pthread_config
892 PTHREAD_CC
893 PTHREAD_LIBS
894 PTHREAD_CFLAGS
895 PYTHON
896 PYTHON_PREFIX
897 PYTHONHOME
898 PYTHON_VERSION
899 PYTHON_INCLUDES
900 PYTHON_LIBS
901 PYTHON_PLATFORM
902 PYTHON_SITE
903 PYTHON_SITE_PACKAGE
904 PYTHON_SITE_EXEC
905 PYTHON_SITE_INSTALL
906 pythondir
907 PYTHON_EXEC_PREFIX
908 pkgpythondir
909 pyexecdir
910 pkgpyexecdir
911 OGL_INCLUDES
912 OGL_LIBS
913 MOC
914 UIC
915 QRCC
916 LRELEASE
917 QTDIR
918 QT_ROOT
919 QT_INCLUDES
920 QT_MT_INCLUDES
921 QT_ASSISTANT_INCLUDES
922 QT_LIB_DIR
923 QT_CORE_LIBS
924 QT_GUI_LIBS
925 QT_OTHER_LIBS
926 QT_LIBS
927 QT_MT_LIBS
928 QT_ASSISTANT_LIBS
929 QT_VERSION
930 QT_VERSION_ID
931 BOOST_CPPFLAGS
932 BOOST_LIBSUFFIX
933 BOOST_LIBS
934 BOOST_LIB_THREAD
935 BOOST_LIB_SIGNALS
936 BOOST_LIB_SYSTEM
937 BOOST_LIB_REGEX
938 BOOST_PROGRAM_OPTIONS_LIB
939 CAS_CPPFLAGS
940 CAS_CXXFLAGS
941 CAS_KERNEL
942 CAS_MATH
943 CAS_VIEWER
944 CAS_TKTopAlgo
945 CAS_MODELER
946 CAS_OCAF
947 CAS_OCAFVIS
948 CAS_DATAEXCHANGE
949 CAS_LDFLAGS
950 CAS_LDPATH
951 CAS_STDPLUGIN
952 OMNIORB_IDL
953 OMNIORB_ROOT
954 OMNIORB_INCLUDES
955 OMNIORB_CXXFLAGS
956 OMNIORB_LIBS
957 OMNIORB_IDLCXXFLAGS
958 OMNIORB_IDLPYFLAGS
959 OMNIORB_IDL_CLN_H
960 OMNIORB_IDL_CLN_CXX
961 OMNIORB_IDL_CLN_OBJ
962 OMNIORB_IDL_SRV_H
963 OMNIORB_IDL_SRV_CXX
964 OMNIORB_IDL_SRV_OBJ
965 OMNIORB_IDL_TIE_H
966 OMNIORB_IDL_TIE_CXX
967 IDL
968 CORBA_ROOT
969 CORBA_INCLUDES
970 CORBA_CXXFLAGS
971 CORBA_LIBS
972 IDLCXXFLAGS
973 IDLPYFLAGS
974 IDL_CLN_H
975 IDL_CLN_CXX
976 IDL_CLN_OBJ
977 IDL_SRV_H
978 IDL_SRV_CXX
979 IDL_SRV_OBJ
980 CPPUNIT_INCLUDES
981 CPPUNIT_LIBS
982 cppunit_ok
983 CPPUNIT_IS_OK_TRUE
984 CPPUNIT_IS_OK_FALSE
985 TEMP
986 KERNEL_ROOT_DIR
987 KERNEL_SITE_DIR
988 KERNEL_LDFLAGS
989 KERNEL_CXXFLAGS
990 GEOM_ROOT_DIR
991 GEOM_LDFLAGS
992 GEOM_CXXFLAGS
993 GUI_LDFLAGS
994 GUI_CXXFLAGS
995 GUI_ROOT_DIR
996 CORBA_IN_GUI
997 SETX
998 LIBOBJS
999 LTLIBOBJS'
1000 ac_subst_files='CORBA'
1001       ac_precious_vars='build_alias
1002 host_alias
1003 target_alias
1004 CC
1005 CFLAGS
1006 LDFLAGS
1007 LIBS
1008 CPPFLAGS
1009 CPP
1010 CXX
1011 CXXFLAGS
1012 CCC
1013 CXXCPP
1014 F77
1015 FFLAGS'
1016
1017
1018 # Initialize some variables set by options.
1019 ac_init_help=
1020 ac_init_version=false
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1024 exec_prefix=NONE
1025 no_create=
1026 no_recursion=
1027 prefix=NONE
1028 program_prefix=NONE
1029 program_suffix=NONE
1030 program_transform_name=s,x,x,
1031 silent=
1032 site=
1033 srcdir=
1034 verbose=
1035 x_includes=NONE
1036 x_libraries=NONE
1037
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1056 htmldir='${docdir}'
1057 dvidir='${docdir}'
1058 pdfdir='${docdir}'
1059 psdir='${docdir}'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1063
1064 ac_prev=
1065 ac_dashdash=
1066 for ac_option
1067 do
1068   # If the previous option needs an argument, assign it.
1069   if test -n "$ac_prev"; then
1070     eval $ac_prev=\$ac_option
1071     ac_prev=
1072     continue
1073   fi
1074
1075   case $ac_option in
1076   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077   *)    ac_optarg=yes ;;
1078   esac
1079
1080   # Accept the important Cygnus configure options, so we can diagnose typos.
1081
1082   case $ac_dashdash$ac_option in
1083   --)
1084     ac_dashdash=yes ;;
1085
1086   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087     ac_prev=bindir ;;
1088   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089     bindir=$ac_optarg ;;
1090
1091   -build | --build | --buil | --bui | --bu)
1092     ac_prev=build_alias ;;
1093   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094     build_alias=$ac_optarg ;;
1095
1096   -cache-file | --cache-file | --cache-fil | --cache-fi \
1097   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098     ac_prev=cache_file ;;
1099   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101     cache_file=$ac_optarg ;;
1102
1103   --config-cache | -C)
1104     cache_file=config.cache ;;
1105
1106   -datadir | --datadir | --datadi | --datad)
1107     ac_prev=datadir ;;
1108   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109     datadir=$ac_optarg ;;
1110
1111   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112   | --dataroo | --dataro | --datar)
1113     ac_prev=datarootdir ;;
1114   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116     datarootdir=$ac_optarg ;;
1117
1118   -disable-* | --disable-*)
1119     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1123    { (exit 1); exit 1; }; }
1124     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1125     eval enable_$ac_feature=no ;;
1126
1127   -docdir | --docdir | --docdi | --doc | --do)
1128     ac_prev=docdir ;;
1129   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130     docdir=$ac_optarg ;;
1131
1132   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133     ac_prev=dvidir ;;
1134   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135     dvidir=$ac_optarg ;;
1136
1137   -enable-* | --enable-*)
1138     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1142    { (exit 1); exit 1; }; }
1143     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1144     eval enable_$ac_feature=\$ac_optarg ;;
1145
1146   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148   | --exec | --exe | --ex)
1149     ac_prev=exec_prefix ;;
1150   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152   | --exec=* | --exe=* | --ex=*)
1153     exec_prefix=$ac_optarg ;;
1154
1155   -gas | --gas | --ga | --g)
1156     # Obsolete; use --with-gas.
1157     with_gas=yes ;;
1158
1159   -help | --help | --hel | --he | -h)
1160     ac_init_help=long ;;
1161   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162     ac_init_help=recursive ;;
1163   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164     ac_init_help=short ;;
1165
1166   -host | --host | --hos | --ho)
1167     ac_prev=host_alias ;;
1168   -host=* | --host=* | --hos=* | --ho=*)
1169     host_alias=$ac_optarg ;;
1170
1171   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172     ac_prev=htmldir ;;
1173   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174   | --ht=*)
1175     htmldir=$ac_optarg ;;
1176
1177   -includedir | --includedir | --includedi | --included | --include \
1178   | --includ | --inclu | --incl | --inc)
1179     ac_prev=includedir ;;
1180   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181   | --includ=* | --inclu=* | --incl=* | --inc=*)
1182     includedir=$ac_optarg ;;
1183
1184   -infodir | --infodir | --infodi | --infod | --info | --inf)
1185     ac_prev=infodir ;;
1186   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187     infodir=$ac_optarg ;;
1188
1189   -libdir | --libdir | --libdi | --libd)
1190     ac_prev=libdir ;;
1191   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192     libdir=$ac_optarg ;;
1193
1194   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195   | --libexe | --libex | --libe)
1196     ac_prev=libexecdir ;;
1197   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198   | --libexe=* | --libex=* | --libe=*)
1199     libexecdir=$ac_optarg ;;
1200
1201   -localedir | --localedir | --localedi | --localed | --locale)
1202     ac_prev=localedir ;;
1203   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204     localedir=$ac_optarg ;;
1205
1206   -localstatedir | --localstatedir | --localstatedi | --localstated \
1207   | --localstate | --localstat | --localsta | --localst | --locals)
1208     ac_prev=localstatedir ;;
1209   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211     localstatedir=$ac_optarg ;;
1212
1213   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214     ac_prev=mandir ;;
1215   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216     mandir=$ac_optarg ;;
1217
1218   -nfp | --nfp | --nf)
1219     # Obsolete; use --without-fp.
1220     with_fp=no ;;
1221
1222   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223   | --no-cr | --no-c | -n)
1224     no_create=yes ;;
1225
1226   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228     no_recursion=yes ;;
1229
1230   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232   | --oldin | --oldi | --old | --ol | --o)
1233     ac_prev=oldincludedir ;;
1234   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237     oldincludedir=$ac_optarg ;;
1238
1239   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240     ac_prev=prefix ;;
1241   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242     prefix=$ac_optarg ;;
1243
1244   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245   | --program-pre | --program-pr | --program-p)
1246     ac_prev=program_prefix ;;
1247   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249     program_prefix=$ac_optarg ;;
1250
1251   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252   | --program-suf | --program-su | --program-s)
1253     ac_prev=program_suffix ;;
1254   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256     program_suffix=$ac_optarg ;;
1257
1258   -program-transform-name | --program-transform-name \
1259   | --program-transform-nam | --program-transform-na \
1260   | --program-transform-n | --program-transform- \
1261   | --program-transform | --program-transfor \
1262   | --program-transfo | --program-transf \
1263   | --program-trans | --program-tran \
1264   | --progr-tra | --program-tr | --program-t)
1265     ac_prev=program_transform_name ;;
1266   -program-transform-name=* | --program-transform-name=* \
1267   | --program-transform-nam=* | --program-transform-na=* \
1268   | --program-transform-n=* | --program-transform-=* \
1269   | --program-transform=* | --program-transfor=* \
1270   | --program-transfo=* | --program-transf=* \
1271   | --program-trans=* | --program-tran=* \
1272   | --progr-tra=* | --program-tr=* | --program-t=*)
1273     program_transform_name=$ac_optarg ;;
1274
1275   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276     ac_prev=pdfdir ;;
1277   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278     pdfdir=$ac_optarg ;;
1279
1280   -psdir | --psdir | --psdi | --psd | --ps)
1281     ac_prev=psdir ;;
1282   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283     psdir=$ac_optarg ;;
1284
1285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286   | -silent | --silent | --silen | --sile | --sil)
1287     silent=yes ;;
1288
1289   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290     ac_prev=sbindir ;;
1291   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292   | --sbi=* | --sb=*)
1293     sbindir=$ac_optarg ;;
1294
1295   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297   | --sharedst | --shareds | --shared | --share | --shar \
1298   | --sha | --sh)
1299     ac_prev=sharedstatedir ;;
1300   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303   | --sha=* | --sh=*)
1304     sharedstatedir=$ac_optarg ;;
1305
1306   -site | --site | --sit)
1307     ac_prev=site ;;
1308   -site=* | --site=* | --sit=*)
1309     site=$ac_optarg ;;
1310
1311   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312     ac_prev=srcdir ;;
1313   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314     srcdir=$ac_optarg ;;
1315
1316   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317   | --syscon | --sysco | --sysc | --sys | --sy)
1318     ac_prev=sysconfdir ;;
1319   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321     sysconfdir=$ac_optarg ;;
1322
1323   -target | --target | --targe | --targ | --tar | --ta | --t)
1324     ac_prev=target_alias ;;
1325   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326     target_alias=$ac_optarg ;;
1327
1328   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329     verbose=yes ;;
1330
1331   -version | --version | --versio | --versi | --vers | -V)
1332     ac_init_version=: ;;
1333
1334   -with-* | --with-*)
1335     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       { echo "$as_me: error: invalid package name: $ac_package" >&2
1339    { (exit 1); exit 1; }; }
1340     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1341     eval with_$ac_package=\$ac_optarg ;;
1342
1343   -without-* | --without-*)
1344     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       { echo "$as_me: error: invalid package name: $ac_package" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1350     eval with_$ac_package=no ;;
1351
1352   --x)
1353     # Obsolete; use --with-x.
1354     with_x=yes ;;
1355
1356   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357   | --x-incl | --x-inc | --x-in | --x-i)
1358     ac_prev=x_includes ;;
1359   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361     x_includes=$ac_optarg ;;
1362
1363   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365     ac_prev=x_libraries ;;
1366   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368     x_libraries=$ac_optarg ;;
1369
1370   -*) { echo "$as_me: error: unrecognized option: $ac_option
1371 Try \`$0 --help' for more information." >&2
1372    { (exit 1); exit 1; }; }
1373     ;;
1374
1375   *=*)
1376     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1380    { (exit 1); exit 1; }; }
1381     eval $ac_envvar=\$ac_optarg
1382     export $ac_envvar ;;
1383
1384   *)
1385     # FIXME: should be removed in autoconf 3.0.
1386     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390     ;;
1391
1392   esac
1393 done
1394
1395 if test -n "$ac_prev"; then
1396   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397   { echo "$as_me: error: missing argument to $ac_option" >&2
1398    { (exit 1); exit 1; }; }
1399 fi
1400
1401 # Be sure to have absolute directory names.
1402 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403                 datadir sysconfdir sharedstatedir localstatedir includedir \
1404                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405                 libdir localedir mandir
1406 do
1407   eval ac_val=\$$ac_var
1408   case $ac_val in
1409     [\\/$]* | ?:[\\/]* )  continue;;
1410     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411   esac
1412   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1413    { (exit 1); exit 1; }; }
1414 done
1415
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1419 build=$build_alias
1420 host=$host_alias
1421 target=$target_alias
1422
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425   if test "x$build_alias" = x; then
1426     cross_compiling=maybe
1427     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1428     If a cross compiler is detected then cross compile mode will be used." >&2
1429   elif test "x$build_alias" != "x$host_alias"; then
1430     cross_compiling=yes
1431   fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443   { echo "$as_me: error: Working directory cannot be determined" >&2
1444    { (exit 1); exit 1; }; }
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446   { echo "$as_me: error: pwd does not report name of working directory" >&2
1447    { (exit 1); exit 1; }; }
1448
1449
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452   ac_srcdir_defaulted=yes
1453   # Try the directory containing this script, then the parent directory.
1454   ac_confdir=`$as_dirname -- "$0" ||
1455 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456          X"$0" : 'X\(//\)[^/]' \| \
1457          X"$0" : 'X\(//\)$' \| \
1458          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1459 echo X"$0" |
1460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461             s//\1/
1462             q
1463           }
1464           /^X\(\/\/\)[^/].*/{
1465             s//\1/
1466             q
1467           }
1468           /^X\(\/\/\)$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\).*/{
1473             s//\1/
1474             q
1475           }
1476           s/.*/./; q'`
1477   srcdir=$ac_confdir
1478   if test ! -r "$srcdir/$ac_unique_file"; then
1479     srcdir=..
1480   fi
1481 else
1482   ac_srcdir_defaulted=no
1483 fi
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1487    { (exit 1); exit 1; }; }
1488 fi
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 ac_abs_confdir=`(
1491         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1492    { (exit 1); exit 1; }; }
1493         pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496   srcdir=.
1497 fi
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506   eval ac_env_${ac_var}_value=\$${ac_var}
1507   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1510
1511 #
1512 # Report the --help message.
1513 #
1514 if test "$ac_init_help" = "long"; then
1515   # Omit some internal or obsolete options to make the list less imposing.
1516   # This message is too long to be a string in the A/UX 3.1 sh.
1517   cat <<_ACEOF
1518 \`configure' configures Salome6 Project HEXABLOCK module 5.1.2 to adapt to many kinds of systems.
1519
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1521
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE.  See below for descriptions of some of the useful variables.
1524
1525 Defaults for the options are specified in brackets.
1526
1527 Configuration:
1528   -h, --help              display this help and exit
1529       --help=short        display options specific to this package
1530       --help=recursive    display the short help of all the included packages
1531   -V, --version           display version information and exit
1532   -q, --quiet, --silent   do not print \`checking...' messages
1533       --cache-file=FILE   cache test results in FILE [disabled]
1534   -C, --config-cache      alias for \`--cache-file=config.cache'
1535   -n, --no-create         do not create output files
1536       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1537
1538 Installation directories:
1539   --prefix=PREFIX         install architecture-independent files in PREFIX
1540                           [$ac_default_prefix]
1541   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1542                           [PREFIX]
1543
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1548
1549 For better control, use the options below.
1550
1551 Fine tuning of the installation directories:
1552   --bindir=DIR           user executables [EPREFIX/bin]
1553   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1554   --libexecdir=DIR       program executables [EPREFIX/libexec]
1555   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1556   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1557   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1558   --libdir=DIR           object code libraries [EPREFIX/lib]
1559   --includedir=DIR       C header files [PREFIX/include]
1560   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1561   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1562   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1563   --infodir=DIR          info documentation [DATAROOTDIR/info]
1564   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1565   --mandir=DIR           man documentation [DATAROOTDIR/man]
1566   --docdir=DIR           documentation root [DATAROOTDIR/doc/SalomeHEXABLOCK]
1567   --htmldir=DIR          html documentation [DOCDIR]
1568   --dvidir=DIR           dvi documentation [DOCDIR]
1569   --pdfdir=DIR           pdf documentation [DOCDIR]
1570   --psdir=DIR            ps documentation [DOCDIR]
1571 _ACEOF
1572
1573   cat <<\_ACEOF
1574
1575 Program names:
1576   --program-prefix=PREFIX            prepend PREFIX to installed program names
1577   --program-suffix=SUFFIX            append SUFFIX to installed program names
1578   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1579
1580 System types:
1581   --build=BUILD     configure for building on BUILD [guessed]
1582   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1583   --target=TARGET   configure for building compilers for TARGET [HOST]
1584 _ACEOF
1585 fi
1586
1587 if test -n "$ac_init_help"; then
1588   case $ac_init_help in
1589      short | recursive ) echo "Configuration of Salome6 Project HEXABLOCK module 5.1.2:";;
1590    esac
1591   cat <<\_ACEOF
1592
1593 Optional Features:
1594   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1595   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1596   --enable-debug          build with debug and trace information [default=yes]
1597   --enable-production     compile in optimized mode [default=no]
1598   --enable-static[=PKGS]  build static libraries [default=no]
1599   --enable-shared[=PKGS]  build shared libraries [default=yes]
1600   --enable-fast-install[=PKGS]
1601                           optimize for fast installation [default=yes]
1602   --disable-dependency-tracking  speeds up one-time build
1603   --enable-dependency-tracking   do not reject slow dependency extractors
1604   --disable-libtool-lock  avoid locking (might break parallel builds)
1605
1606 Optional Packages:
1607   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1608   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1609   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1610   --with-pic              try to use only PIC/non-PIC objects [default=use
1611                           both]
1612   --with-tags[=TAGS]      include additional configurations [automatic]
1613   --with-python=DIR       root directory path of python installation
1614   --with-python-site=DIR  Use DIR for installing platform independent Python
1615                           site-packages
1616   --with-python-site-exec=DIR
1617                           Use DIR for installing platform dependent Python
1618                           site-packages
1619   --with-opengl=DIR       root directory path of OpenGL installation
1620   --with-qt               Possible usage: "Qt_Install_Path" - prefix to path
1621                           where Qt was installd; "" or "yes" or "auto" - means
1622                           seaching installed Qt product in the system
1623                           (checking $QTDIR and then - standard system paths );
1624                           "no" - not use Qt product (is not supported) By
1625                           default "" option is used)
1626   --with-boost=DIR        root directory path to BOOST library installation
1627   --with-cppunit=DIR      directory path to CPPUNIT installation
1628   --with-cppunit_inc=DIR  directory path to CPPUNIT includes
1629 --with-kernel=DIR  root directory path of KERNEL build or installation
1630   --with-geom=DIR root directory path of GEOM installation
1631 --with-gui=DIR root directory path of SALOME GUI installation
1632
1633 Some influential environment variables:
1634   CC          C compiler command
1635   CFLAGS      C compiler flags
1636   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637               nonstandard directory <lib dir>
1638   LIBS        libraries to pass to the linker, e.g. -l<library>
1639   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1640               you have headers in a nonstandard directory <include dir>
1641   CPP         C preprocessor
1642   CXX         C++ compiler command
1643   CXXFLAGS    C++ compiler flags
1644   CXXCPP      C++ preprocessor
1645   F77         Fortran 77 compiler command
1646   FFLAGS      Fortran 77 compiler flags
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 Report bugs to <webmaster.salome@opencascade.com>.
1652 _ACEOF
1653 ac_status=$?
1654 fi
1655
1656 if test "$ac_init_help" = "recursive"; then
1657   # If there are subdirs, report their specific --help.
1658   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659     test -d "$ac_dir" || continue
1660     ac_builddir=.
1661
1662 case "$ac_dir" in
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *)
1665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1666   # A ".." for each directory in $ac_dir_suffix.
1667   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1668   case $ac_top_builddir_sub in
1669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671   esac ;;
1672 esac
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1677
1678 case $srcdir in
1679   .)  # We are building in place.
1680     ac_srcdir=.
1681     ac_top_srcdir=$ac_top_builddir_sub
1682     ac_abs_top_srcdir=$ac_pwd ;;
1683   [\\/]* | ?:[\\/]* )  # Absolute name.
1684     ac_srcdir=$srcdir$ac_dir_suffix;
1685     ac_top_srcdir=$srcdir
1686     ac_abs_top_srcdir=$srcdir ;;
1687   *) # Relative name.
1688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689     ac_top_srcdir=$ac_top_build_prefix$srcdir
1690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 esac
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693
1694     cd "$ac_dir" || { ac_status=$?; continue; }
1695     # Check for guested configure.
1696     if test -f "$ac_srcdir/configure.gnu"; then
1697       echo &&
1698       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699     elif test -f "$ac_srcdir/configure"; then
1700       echo &&
1701       $SHELL "$ac_srcdir/configure" --help=recursive
1702     else
1703       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704     fi || ac_status=$?
1705     cd "$ac_pwd" || { ac_status=$?; break; }
1706   done
1707 fi
1708
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711   cat <<\_ACEOF
1712 Salome6 Project HEXABLOCK module configure 5.1.2
1713 generated by GNU Autoconf 2.61
1714
1715 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1719 _ACEOF
1720   exit
1721 fi
1722 cat >config.log <<_ACEOF
1723 This file contains any messages produced by compilers while
1724 running configure, to aid debugging if configure makes a mistake.
1725
1726 It was created by Salome6 Project HEXABLOCK module $as_me 5.1.2, which was
1727 generated by GNU Autoconf 2.61.  Invocation command line was
1728
1729   $ $0 $@
1730
1731 _ACEOF
1732 exec 5>>config.log
1733 {
1734 cat <<_ASUNAME
1735 ## --------- ##
1736 ## Platform. ##
1737 ## --------- ##
1738
1739 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744
1745 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1747
1748 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1749 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1750 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1752 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1753 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1754 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1755
1756 _ASUNAME
1757
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   echo "PATH: $as_dir"
1764 done
1765 IFS=$as_save_IFS
1766
1767 } >&5
1768
1769 cat >&5 <<_ACEOF
1770
1771
1772 ## ----------- ##
1773 ## Core tests. ##
1774 ## ----------- ##
1775
1776 _ACEOF
1777
1778
1779 # Keep a trace of the command line.
1780 # Strip out --no-create and --no-recursion so they do not pile up.
1781 # Strip out --silent because we don't want to record it for future runs.
1782 # Also quote any args containing shell meta-characters.
1783 # Make two passes to allow for proper duplicate-argument suppression.
1784 ac_configure_args=
1785 ac_configure_args0=
1786 ac_configure_args1=
1787 ac_must_keep_next=false
1788 for ac_pass in 1 2
1789 do
1790   for ac_arg
1791   do
1792     case $ac_arg in
1793     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795     | -silent | --silent | --silen | --sile | --sil)
1796       continue ;;
1797     *\'*)
1798       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799     esac
1800     case $ac_pass in
1801     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802     2)
1803       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1804       if test $ac_must_keep_next = true; then
1805         ac_must_keep_next=false # Got value, back to normal.
1806       else
1807         case $ac_arg in
1808           *=* | --config-cache | -C | -disable-* | --disable-* \
1809           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811           | -with-* | --with-* | -without-* | --without-* | --x)
1812             case "$ac_configure_args0 " in
1813               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814             esac
1815             ;;
1816           -* ) ac_must_keep_next=true ;;
1817         esac
1818       fi
1819       ac_configure_args="$ac_configure_args '$ac_arg'"
1820       ;;
1821     esac
1822   done
1823 done
1824 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1825 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826
1827 # When interrupted or exit'd, cleanup temporary files, and complete
1828 # config.log.  We remove comments because anyway the quotes in there
1829 # would cause problems or look ugly.
1830 # WARNING: Use '\'' to represent an apostrophe within the trap.
1831 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1832 trap 'exit_status=$?
1833   # Save into config.log some information that might help in debugging.
1834   {
1835     echo
1836
1837     cat <<\_ASBOX
1838 ## ---------------- ##
1839 ## Cache variables. ##
1840 ## ---------------- ##
1841 _ASBOX
1842     echo
1843     # The following way of writing the cache mishandles newlines in values,
1844 (
1845   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846     eval ac_val=\$$ac_var
1847     case $ac_val in #(
1848     *${as_nl}*)
1849       case $ac_var in #(
1850       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1852       esac
1853       case $ac_var in #(
1854       _ | IFS | as_nl) ;; #(
1855       *) $as_unset $ac_var ;;
1856       esac ;;
1857     esac
1858   done
1859   (set) 2>&1 |
1860     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861     *${as_nl}ac_space=\ *)
1862       sed -n \
1863         "s/'\''/'\''\\\\'\'''\''/g;
1864           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865       ;; #(
1866     *)
1867       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1868       ;;
1869     esac |
1870     sort
1871 )
1872     echo
1873
1874     cat <<\_ASBOX
1875 ## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##
1878 _ASBOX
1879     echo
1880     for ac_var in $ac_subst_vars
1881     do
1882       eval ac_val=\$$ac_var
1883       case $ac_val in
1884       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885       esac
1886       echo "$ac_var='\''$ac_val'\''"
1887     done | sort
1888     echo
1889
1890     if test -n "$ac_subst_files"; then
1891       cat <<\_ASBOX
1892 ## ------------------- ##
1893 ## File substitutions. ##
1894 ## ------------------- ##
1895 _ASBOX
1896       echo
1897       for ac_var in $ac_subst_files
1898       do
1899         eval ac_val=\$$ac_var
1900         case $ac_val in
1901         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902         esac
1903         echo "$ac_var='\''$ac_val'\''"
1904       done | sort
1905       echo
1906     fi
1907
1908     if test -s confdefs.h; then
1909       cat <<\_ASBOX
1910 ## ----------- ##
1911 ## confdefs.h. ##
1912 ## ----------- ##
1913 _ASBOX
1914       echo
1915       cat confdefs.h
1916       echo
1917     fi
1918     test "$ac_signal" != 0 &&
1919       echo "$as_me: caught signal $ac_signal"
1920     echo "$as_me: exit $exit_status"
1921   } >&5
1922   rm -f core *.core core.conftest.* &&
1923     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1924     exit $exit_status
1925 ' 0
1926 for ac_signal in 1 2 13 15; do
1927   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928 done
1929 ac_signal=0
1930
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1933
1934 # Predefined preprocessor variables.
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_NAME "$PACKAGE_NAME"
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943 _ACEOF
1944
1945
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1948 _ACEOF
1949
1950
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_STRING "$PACKAGE_STRING"
1953 _ACEOF
1954
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 _ACEOF
1959
1960
1961 # Let the site file select an alternate cache file if it wants to.
1962 # Prefer explicitly selected file to automatically selected ones.
1963 if test -n "$CONFIG_SITE"; then
1964   set x "$CONFIG_SITE"
1965 elif test "x$prefix" != xNONE; then
1966   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1967 else
1968   set x "$ac_default_prefix/share/config.site" \
1969         "$ac_default_prefix/etc/config.site"
1970 fi
1971 shift
1972 for ac_site_file
1973 do
1974   if test -r "$ac_site_file"; then
1975     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1976 echo "$as_me: loading site script $ac_site_file" >&6;}
1977     sed 's/^/| /' "$ac_site_file" >&5
1978     . "$ac_site_file"
1979   fi
1980 done
1981
1982 if test -r "$cache_file"; then
1983   # Some versions of bash will fail to source /dev/null (special
1984   # files actually), so we avoid doing that.
1985   if test -f "$cache_file"; then
1986     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1987 echo "$as_me: loading cache $cache_file" >&6;}
1988     case $cache_file in
1989       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990       *)                      . "./$cache_file";;
1991     esac
1992   fi
1993 else
1994   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1995 echo "$as_me: creating cache $cache_file" >&6;}
1996   >$cache_file
1997 fi
1998
1999 # Check that the precious variables saved in the cache have kept the same
2000 # value.
2001 ac_cache_corrupted=false
2002 for ac_var in $ac_precious_vars; do
2003   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2004   eval ac_new_set=\$ac_env_${ac_var}_set
2005   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2006   eval ac_new_val=\$ac_env_${ac_var}_value
2007   case $ac_old_set,$ac_new_set in
2008     set,)
2009       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2010 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2011       ac_cache_corrupted=: ;;
2012     ,set)
2013       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2014 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2015       ac_cache_corrupted=: ;;
2016     ,);;
2017     *)
2018       if test "x$ac_old_val" != "x$ac_new_val"; then
2019         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2022 echo "$as_me:   former value:  $ac_old_val" >&2;}
2023         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2024 echo "$as_me:   current value: $ac_new_val" >&2;}
2025         ac_cache_corrupted=:
2026       fi;;
2027   esac
2028   # Pass precious variables to config.status.
2029   if test "$ac_new_set" = set; then
2030     case $ac_new_val in
2031     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032     *) ac_arg=$ac_var=$ac_new_val ;;
2033     esac
2034     case " $ac_configure_args " in
2035       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2036       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2037     esac
2038   fi
2039 done
2040 if $ac_cache_corrupted; then
2041   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2042 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2044 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2045    { (exit 1); exit 1; }; }
2046 fi
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072 ac_ext=c
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077
2078
2079 ac_aux_dir=
2080 for ac_dir in adm_local/unix/config_files "$srcdir"/adm_local/unix/config_files; do
2081   if test -f "$ac_dir/install-sh"; then
2082     ac_aux_dir=$ac_dir
2083     ac_install_sh="$ac_aux_dir/install-sh -c"
2084     break
2085   elif test -f "$ac_dir/install.sh"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/install.sh -c"
2088     break
2089   elif test -f "$ac_dir/shtool"; then
2090     ac_aux_dir=$ac_dir
2091     ac_install_sh="$ac_aux_dir/shtool install -c"
2092     break
2093   fi
2094 done
2095 if test -z "$ac_aux_dir"; then
2096   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&5
2097 echo "$as_me: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&2;}
2098    { (exit 1); exit 1; }; }
2099 fi
2100
2101 # These three variables are undocumented and unsupported,
2102 # and are intended to be withdrawn in a future Autoconf release.
2103 # They can cause serious problems if a builder's source tree is in a directory
2104 # whose full name contains unusual characters.
2105 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2106 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2107 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2108
2109
2110 # Make sure we can run config.sub.
2111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2112   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2113 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2114    { (exit 1); exit 1; }; }
2115
2116 { echo "$as_me:$LINENO: checking build system type" >&5
2117 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2118 if test "${ac_cv_build+set}" = set; then
2119   echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121   ac_build_alias=$build_alias
2122 test "x$ac_build_alias" = x &&
2123   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2124 test "x$ac_build_alias" = x &&
2125   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2126 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2127    { (exit 1); exit 1; }; }
2128 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2129   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2131    { (exit 1); exit 1; }; }
2132
2133 fi
2134 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2135 echo "${ECHO_T}$ac_cv_build" >&6; }
2136 case $ac_cv_build in
2137 *-*-*) ;;
2138 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2139 echo "$as_me: error: invalid value of canonical build" >&2;}
2140    { (exit 1); exit 1; }; };;
2141 esac
2142 build=$ac_cv_build
2143 ac_save_IFS=$IFS; IFS='-'
2144 set x $ac_cv_build
2145 shift
2146 build_cpu=$1
2147 build_vendor=$2
2148 shift; shift
2149 # Remember, the first character of IFS is used to create $*,
2150 # except with old shells:
2151 build_os=$*
2152 IFS=$ac_save_IFS
2153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2154
2155
2156 { echo "$as_me:$LINENO: checking host system type" >&5
2157 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2158 if test "${ac_cv_host+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   if test "x$host_alias" = x; then
2162   ac_cv_host=$ac_cv_build
2163 else
2164   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2165     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2166 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170 fi
2171 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2172 echo "${ECHO_T}$ac_cv_host" >&6; }
2173 case $ac_cv_host in
2174 *-*-*) ;;
2175 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2176 echo "$as_me: error: invalid value of canonical host" >&2;}
2177    { (exit 1); exit 1; }; };;
2178 esac
2179 host=$ac_cv_host
2180 ac_save_IFS=$IFS; IFS='-'
2181 set x $ac_cv_host
2182 shift
2183 host_cpu=$1
2184 host_vendor=$2
2185 shift; shift
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2188 host_os=$*
2189 IFS=$ac_save_IFS
2190 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2191
2192
2193 { echo "$as_me:$LINENO: checking target system type" >&5
2194 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2195 if test "${ac_cv_target+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test "x$target_alias" = x; then
2199   ac_cv_target=$ac_cv_host
2200 else
2201   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2202     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2203 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2204    { (exit 1); exit 1; }; }
2205 fi
2206
2207 fi
2208 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2209 echo "${ECHO_T}$ac_cv_target" >&6; }
2210 case $ac_cv_target in
2211 *-*-*) ;;
2212 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2213 echo "$as_me: error: invalid value of canonical target" >&2;}
2214    { (exit 1); exit 1; }; };;
2215 esac
2216 target=$ac_cv_target
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_target
2219 shift
2220 target_cpu=$1
2221 target_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 target_os=$*
2226 IFS=$ac_save_IFS
2227 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2228
2229
2230 # The aliases save the names the user supplied, while $host etc.
2231 # will get canonicalized.
2232 test -n "$target_alias" &&
2233   test "$program_prefix$program_suffix$program_transform_name" = \
2234     NONENONEs,x,x, &&
2235   program_prefix=${target_alias}-
2236 am__api_version='1.10'
2237
2238 # Find a good install program.  We prefer a C program (faster),
2239 # so one script is as good as another.  But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2244 # AIX /bin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2253 if test -z "$INSTALL"; then
2254 if test "${ac_cv_path_install+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   # Account for people who put trailing slashes in PATH elements.
2263 case $as_dir/ in
2264   ./ | .// | /cC/* | \
2265   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2267   /usr/ucb/* ) ;;
2268   *)
2269     # OSF1 and SCO ODT 3.0 have their own names for install.
2270     # Don't use installbsd from OSF since it installs stuff as root
2271     # by default.
2272     for ac_prog in ginstall scoinst install; do
2273       for ac_exec_ext in '' $ac_executable_extensions; do
2274         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2275           if test $ac_prog = install &&
2276             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277             # AIX install.  It has an incompatible calling convention.
2278             :
2279           elif test $ac_prog = install &&
2280             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281             # program-specific install script used by HP pwplus--don't use.
2282             :
2283           else
2284             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2285             break 3
2286           fi
2287         fi
2288       done
2289     done
2290     ;;
2291 esac
2292 done
2293 IFS=$as_save_IFS
2294
2295
2296 fi
2297   if test "${ac_cv_path_install+set}" = set; then
2298     INSTALL=$ac_cv_path_install
2299   else
2300     # As a last resort, use the slow shell script.  Don't cache a
2301     # value for INSTALL within a source directory, because that will
2302     # break other packages using the cache if that directory is
2303     # removed, or if the value is a relative name.
2304     INSTALL=$ac_install_sh
2305   fi
2306 fi
2307 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2308 echo "${ECHO_T}$INSTALL" >&6; }
2309
2310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311 # It thinks the first close brace ends the variable substitution.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2313
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2315
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2317
2318 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2319 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2320 # Just in case
2321 sleep 1
2322 echo timestamp > conftest.file
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments.  Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2327 # directory).
2328 if (
2329    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2330    if test "$*" = "X"; then
2331       # -L didn't work.
2332       set X `ls -t $srcdir/configure conftest.file`
2333    fi
2334    rm -f conftest.file
2335    if test "$*" != "X $srcdir/configure conftest.file" \
2336       && test "$*" != "X conftest.file $srcdir/configure"; then
2337
2338       # If neither matched, then we have a broken ls.  This can happen
2339       # if, for instance, CONFIG_SHELL is bash and it inherits a
2340       # broken ls alias from the environment.  This has actually
2341       # happened.  Such a system could not be considered "sane".
2342       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2343 alias in your environment" >&5
2344 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2345 alias in your environment" >&2;}
2346    { (exit 1); exit 1; }; }
2347    fi
2348
2349    test "$2" = conftest.file
2350    )
2351 then
2352    # Ok.
2353    :
2354 else
2355    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2356 Check your system clock" >&5
2357 echo "$as_me: error: newly created file is older than distributed files!
2358 Check your system clock" >&2;}
2359    { (exit 1); exit 1; }; }
2360 fi
2361 { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2363 test "$program_prefix" != NONE &&
2364   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2365 # Use a double $ so make ignores it.
2366 test "$program_suffix" != NONE &&
2367   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2368 # Double any \ or $.  echo might interpret backslashes.
2369 # By default was `s,x,x', remove it if useless.
2370 cat <<\_ACEOF >conftest.sed
2371 s/[\\$]/&&/g;s/;s,x,x,$//
2372 _ACEOF
2373 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2374 rm -f conftest.sed
2375
2376 # expand $ac_aux_dir to an absolute path
2377 am_aux_dir=`cd $ac_aux_dir && pwd`
2378
2379 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2380 # Use eval to expand $SHELL
2381 if eval "$MISSING --run true"; then
2382   am_missing_run="$MISSING --run "
2383 else
2384   am_missing_run=
2385   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2386 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2387 fi
2388
2389 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2390 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2391 if test -z "$MKDIR_P"; then
2392   if test "${ac_cv_path_mkdir+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_prog in mkdir gmkdir; do
2401          for ac_exec_ext in '' $ac_executable_extensions; do
2402            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2403            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2404              'mkdir (GNU coreutils) '* | \
2405              'mkdir (coreutils) '* | \
2406              'mkdir (fileutils) '4.1*)
2407                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2408                break 3;;
2409            esac
2410          done
2411        done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416
2417   if test "${ac_cv_path_mkdir+set}" = set; then
2418     MKDIR_P="$ac_cv_path_mkdir -p"
2419   else
2420     # As a last resort, use the slow shell script.  Don't cache a
2421     # value for MKDIR_P within a source directory, because that will
2422     # break other packages using the cache if that directory is
2423     # removed, or if the value is a relative name.
2424     test -d ./--version && rmdir ./--version
2425     MKDIR_P="$ac_install_sh -d"
2426   fi
2427 fi
2428 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2429 echo "${ECHO_T}$MKDIR_P" >&6; }
2430
2431 mkdir_p="$MKDIR_P"
2432 case $mkdir_p in
2433   [\\/$]* | ?:[\\/]*) ;;
2434   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2435 esac
2436
2437 for ac_prog in gawk mawk nawk awk
2438 do
2439   # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_AWK+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$AWK"; then
2447   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456     ac_cv_prog_AWK="$ac_prog"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 AWK=$ac_cv_prog_AWK
2467 if test -n "$AWK"; then
2468   { echo "$as_me:$LINENO: result: $AWK" >&5
2469 echo "${ECHO_T}$AWK" >&6; }
2470 else
2471   { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2473 fi
2474
2475
2476   test -n "$AWK" && break
2477 done
2478
2479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   cat >conftest.make <<\_ACEOF
2486 SHELL = /bin/sh
2487 all:
2488         @echo '@@@%%%=$(MAKE)=@@@%%%'
2489 _ACEOF
2490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2492   *@@@%%%=?*=@@@%%%*)
2493     eval ac_cv_prog_make_${ac_make}_set=yes;;
2494   *)
2495     eval ac_cv_prog_make_${ac_make}_set=no;;
2496 esac
2497 rm -f conftest.make
2498 fi
2499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2500   { echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6; }
2502   SET_MAKE=
2503 else
2504   { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506   SET_MAKE="MAKE=${MAKE-make}"
2507 fi
2508
2509 rm -rf .tst 2>/dev/null
2510 mkdir .tst 2>/dev/null
2511 if test -d .tst; then
2512   am__leading_dot=.
2513 else
2514   am__leading_dot=_
2515 fi
2516 rmdir .tst 2>/dev/null
2517
2518 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2519   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2520   # is not polluted with repeated "-I."
2521   am__isrc=' -I$(srcdir)'
2522   # test to see if srcdir already configured
2523   if test -f $srcdir/config.status; then
2524     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2525 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2526    { (exit 1); exit 1; }; }
2527   fi
2528 fi
2529
2530 # test whether we have cygpath
2531 if test -z "$CYGPATH_W"; then
2532   if (cygpath --version) >/dev/null 2>/dev/null; then
2533     CYGPATH_W='cygpath -w'
2534   else
2535     CYGPATH_W=echo
2536   fi
2537 fi
2538
2539
2540 # Define the identity of the package.
2541  PACKAGE='SalomeHEXABLOCK'
2542  VERSION='5.1.2'
2543
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE "$PACKAGE"
2547 _ACEOF
2548
2549
2550 cat >>confdefs.h <<_ACEOF
2551 #define VERSION "$VERSION"
2552 _ACEOF
2553
2554 # Some tools Automake needs.
2555
2556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2557
2558
2559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2560
2561
2562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2563
2564
2565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2566
2567
2568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2569
2570 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2571
2572 # Installed binaries are usually stripped using `strip' when the user
2573 # run `make install-strip'.  However `strip' might not be the right
2574 # tool to use in cross-compilation environments, therefore Automake
2575 # will honor the `STRIP' environment variable to overrule this program.
2576 if test "$cross_compiling" != no; then
2577   if test -n "$ac_tool_prefix"; then
2578   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}strip; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_STRIP+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   if test -n "$STRIP"; then
2586   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 STRIP=$ac_cv_prog_STRIP
2606 if test -n "$STRIP"; then
2607   { echo "$as_me:$LINENO: result: $STRIP" >&5
2608 echo "${ECHO_T}$STRIP" >&6; }
2609 else
2610   { echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6; }
2612 fi
2613
2614
2615 fi
2616 if test -z "$ac_cv_prog_STRIP"; then
2617   ac_ct_STRIP=$STRIP
2618   # Extract the first word of "strip", so it can be a program name with args.
2619 set dummy strip; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   if test -n "$ac_ct_STRIP"; then
2626   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633   for ac_exec_ext in '' $ac_executable_extensions; do
2634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635     ac_cv_prog_ac_ct_STRIP="strip"
2636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2646 if test -n "$ac_ct_STRIP"; then
2647   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2648 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2649 else
2650   { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2652 fi
2653
2654   if test "x$ac_ct_STRIP" = x; then
2655     STRIP=":"
2656   else
2657     case $cross_compiling:$ac_tool_warned in
2658 yes:)
2659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet.  If you think this
2661 configuration is useful to you, please write to autoconf@gnu.org." >&5
2662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet.  If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665 ac_tool_warned=yes ;;
2666 esac
2667     STRIP=$ac_ct_STRIP
2668   fi
2669 else
2670   STRIP="$ac_cv_prog_STRIP"
2671 fi
2672
2673 fi
2674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675
2676 # We need awk for the "check" target.  The system "awk" is bad on
2677 # some platforms.
2678 # Always define AMTAR for backward compatibility.
2679
2680 AMTAR=${AMTAR-"${am_missing_run}tar"}
2681
2682 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2683
2684
2685
2686
2687
2688
2689 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
2690
2691
2692 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
2693 MODULE_NAME=hexablock
2694
2695
2696
2697 ROOT_BUILDDIR=`pwd`
2698 ROOT_SRCDIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
2699 cd $ROOT_SRCDIR
2700 ROOT_SRCDIR=`pwd`
2701 cd $ROOT_BUILDDIR
2702
2703
2704
2705
2706 echo
2707 echo Source root directory : $ROOT_SRCDIR
2708 echo Build  root directory : $ROOT_BUILDDIR
2709 echo
2710 echo
2711
2712 # Extract the first word of "sh", so it can be a program name with args.
2713 set dummy sh; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_SHELL+set}" = set; then
2717   echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719   if test -n "$SHELL"; then
2720   ac_cv_prog_SHELL="$SHELL" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725   IFS=$as_save_IFS
2726   test -z "$as_dir" && as_dir=.
2727   for ac_exec_ext in '' $ac_executable_extensions; do
2728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729     ac_cv_prog_SHELL=""
2730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2731     break 2
2732   fi
2733 done
2734 done
2735 IFS=$as_save_IFS
2736
2737 fi
2738 fi
2739 SHELL=$ac_cv_prog_SHELL
2740 if test -n "$SHELL"; then
2741   { echo "$as_me:$LINENO: result: $SHELL" >&5
2742 echo "${ECHO_T}$SHELL" >&6; }
2743 else
2744   { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2746 fi
2747
2748
2749
2750
2751 if test -z "$AR"; then
2752    for ac_prog in ar xar
2753 do
2754   # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_AR+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   if test -n "$AR"; then
2762   ac_cv_prog_AR="$AR" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769   for ac_exec_ext in '' $ac_executable_extensions; do
2770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771     ac_cv_prog_AR="$ac_prog"
2772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 AR=$ac_cv_prog_AR
2782 if test -n "$AR"; then
2783   { echo "$as_me:$LINENO: result: $AR" >&5
2784 echo "${ECHO_T}$AR" >&6; }
2785 else
2786   { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2788 fi
2789
2790
2791   test -n "$AR" && break
2792 done
2793 test -n "$AR" || AR=":"
2794
2795 fi
2796
2797
2798 export AR
2799
2800 echo
2801 echo ---------------------------------------------
2802 echo testing make
2803 echo ---------------------------------------------
2804 echo
2805
2806 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2808 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2810   echo $ECHO_N "(cached) $ECHO_C" >&6
2811 else
2812   cat >conftest.make <<\_ACEOF
2813 SHELL = /bin/sh
2814 all:
2815         @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819   *@@@%%%=?*=@@@%%%*)
2820     eval ac_cv_prog_make_${ac_make}_set=yes;;
2821   *)
2822     eval ac_cv_prog_make_${ac_make}_set=no;;
2823 esac
2824 rm -f conftest.make
2825 fi
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827   { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2829   SET_MAKE=
2830 else
2831   { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833   SET_MAKE="MAKE=${MAKE-make}"
2834 fi
2835
2836 # Find a good install program.  We prefer a C program (faster),
2837 # so one script is as good as another.  But avoid the broken or
2838 # incompatible versions:
2839 # SysV /etc/install, /usr/sbin/install
2840 # SunOS /usr/etc/install
2841 # IRIX /sbin/install
2842 # AIX /bin/install
2843 # AmigaOS /C/install, which installs bootblocks on floppy discs
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # OS/2's system install, which has a completely different semantic
2848 # ./install, which can be erroneously created by make from ./install.sh.
2849 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2850 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2851 if test -z "$INSTALL"; then
2852 if test "${ac_cv_path_install+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860   # Account for people who put trailing slashes in PATH elements.
2861 case $as_dir/ in
2862   ./ | .// | /cC/* | \
2863   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2864   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2865   /usr/ucb/* ) ;;
2866   *)
2867     # OSF1 and SCO ODT 3.0 have their own names for install.
2868     # Don't use installbsd from OSF since it installs stuff as root
2869     # by default.
2870     for ac_prog in ginstall scoinst install; do
2871       for ac_exec_ext in '' $ac_executable_extensions; do
2872         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2873           if test $ac_prog = install &&
2874             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875             # AIX install.  It has an incompatible calling convention.
2876             :
2877           elif test $ac_prog = install &&
2878             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879             # program-specific install script used by HP pwplus--don't use.
2880             :
2881           else
2882             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2883             break 3
2884           fi
2885         fi
2886       done
2887     done
2888     ;;
2889 esac
2890 done
2891 IFS=$as_save_IFS
2892
2893
2894 fi
2895   if test "${ac_cv_path_install+set}" = set; then
2896     INSTALL=$ac_cv_path_install
2897   else
2898     # As a last resort, use the slow shell script.  Don't cache a
2899     # value for INSTALL within a source directory, because that will
2900     # break other packages using the cache if that directory is
2901     # removed, or if the value is a relative name.
2902     INSTALL=$ac_install_sh
2903   fi
2904 fi
2905 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2906 echo "${ECHO_T}$INSTALL" >&6; }
2907
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2911
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2913
2914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2915
2916
2917     # Check whether --enable-debug was given.
2918 if test "${enable_debug+set}" = set; then
2919   enableval=$enable_debug;
2920     enable_debug=$enableval
2921
2922 else
2923   enable_debug=yes
2924 fi
2925
2926
2927 if test "X$enable_debug" = "Xyes"; then
2928   CFLAGS="$CFLAGS -g -D_DEBUG_ "
2929   CXXFLAGS="$CXXFLAGS -g -D_DEBUG_ "
2930 fi
2931
2932 # Check whether --enable-production was given.
2933 if test "${enable_production+set}" = set; then
2934   enableval=$enable_production;
2935     enable_production=$enableval
2936
2937 else
2938   enable_production=no
2939 fi
2940
2941
2942
2943   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wparentheses" >&5
2944 echo $ECHO_N "checking wether $CXX accepts -Wparentheses... $ECHO_C" >&6; }
2945   cat > conftest.cxx <<EOF
2946 int main() { return 0; }
2947 EOF
2948   $CXX -Wparentheses conftest.cxx > conftest.log 2>&1
2949   var=`echo -Wparentheses | sed -e "s, .*$,," | sed -e "s,^-,,"`
2950 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2951   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2952     { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2954     eval
2955   else
2956     { echo "$as_me:$LINENO: result: yes" >&5
2957 echo "${ECHO_T}yes" >&6; }
2958     CXXFLAGS="${CXXFLAGS} -Wparentheses"
2959     eval
2960   fi
2961
2962
2963   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wreturn-type" >&5
2964 echo $ECHO_N "checking wether $CXX accepts -Wreturn-type... $ECHO_C" >&6; }
2965   cat > conftest.cxx <<EOF
2966 int main() { return 0; }
2967 EOF
2968   $CXX -Wreturn-type conftest.cxx > conftest.log 2>&1
2969   var=`echo -Wreturn-type | sed -e "s, .*$,," | sed -e "s,^-,,"`
2970 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2971   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2972     { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2974     eval
2975   else
2976     { echo "$as_me:$LINENO: result: yes" >&5
2977 echo "${ECHO_T}yes" >&6; }
2978     CXXFLAGS="${CXXFLAGS} -Wreturn-type"
2979     eval
2980   fi
2981
2982
2983   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wmissing-declarations" >&5
2984 echo $ECHO_N "checking wether $CXX accepts -Wmissing-declarations... $ECHO_C" >&6; }
2985   cat > conftest.cxx <<EOF
2986 int main() { return 0; }
2987 EOF
2988   $CXX -Wmissing-declarations conftest.cxx > conftest.log 2>&1
2989   var=`echo -Wmissing-declarations | sed -e "s, .*$,," | sed -e "s,^-,,"`
2990 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2991   if grep -e $var conftest.log > /dev/null 2>&1 ; then
2992     { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2994     eval
2995   else
2996     { echo "$as_me:$LINENO: result: yes" >&5
2997 echo "${ECHO_T}yes" >&6; }
2998     CXXFLAGS="${CXXFLAGS} -Wmissing-declarations"
2999     eval
3000   fi
3001
3002
3003   { echo "$as_me:$LINENO: checking wether $CXX accepts -fmessage-length=0" >&5
3004 echo $ECHO_N "checking wether $CXX accepts -fmessage-length=0... $ECHO_C" >&6; }
3005   cat > conftest.cxx <<EOF
3006 int main() { return 0; }
3007 EOF
3008   $CXX -fmessage-length=0 conftest.cxx > conftest.log 2>&1
3009   var=`echo -fmessage-length=0 | sed -e "s, .*$,," | sed -e "s,^-,,"`
3010 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3011   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3012     { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3014     eval
3015   else
3016     { echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6; }
3018     CXXFLAGS="${CXXFLAGS} -fmessage-length=0"
3019     eval
3020   fi
3021
3022
3023   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wunused" >&5
3024 echo $ECHO_N "checking wether $CXX accepts -Wunused... $ECHO_C" >&6; }
3025   cat > conftest.cxx <<EOF
3026 int main() { return 0; }
3027 EOF
3028   $CXX -Wunused conftest.cxx > conftest.log 2>&1
3029   var=`echo -Wunused | sed -e "s, .*$,," | sed -e "s,^-,,"`
3030 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3031   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3032     { echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6; }
3034     eval
3035   else
3036     { echo "$as_me:$LINENO: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6; }
3038     CXXFLAGS="${CXXFLAGS} -Wunused"
3039     eval
3040   fi
3041
3042
3043   { echo "$as_me:$LINENO: checking wether $CXX accepts -pipe" >&5
3044 echo $ECHO_N "checking wether $CXX accepts -pipe... $ECHO_C" >&6; }
3045   cat > conftest.cxx <<EOF
3046 int main() { return 0; }
3047 EOF
3048   $CXX -pipe conftest.cxx > conftest.log 2>&1
3049   var=`echo -pipe | sed -e "s, .*$,," | sed -e "s,^-,,"`
3050 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3051   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3052     { echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6; }
3054     eval
3055   else
3056     { echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6; }
3058     CXXFLAGS="${CXXFLAGS} -pipe"
3059     eval
3060   fi
3061
3062
3063 if test "X$enable_production" = "Xyes"; then
3064   CFLAGS="$CFLAGS -O"
3065
3066   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wuninitialized" >&5
3067 echo $ECHO_N "checking wether $CXX accepts -Wuninitialized... $ECHO_C" >&6; }
3068   cat > conftest.cxx <<EOF
3069 int main() { return 0; }
3070 EOF
3071   $CXX -Wuninitialized conftest.cxx > conftest.log 2>&1
3072   var=`echo -Wuninitialized | sed -e "s, .*$,," | sed -e "s,^-,,"`
3073 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3074   if grep -e $var conftest.log > /dev/null 2>&1 ; then
3075     { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3077     eval
3078   else
3079     { echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6; }
3081     CXXFLAGS="${CXXFLAGS} -Wuninitialized"
3082     eval
3083   fi
3084
3085   CXXFLAGS="$CXXFLAGS -O "
3086 else
3087   CFLAGS="$CFLAGS -g"
3088   CXXFLAGS="$CXXFLAGS -g"
3089 fi
3090
3091
3092 echo ---------------------------------------------
3093 echo testing libtool
3094 echo ---------------------------------------------
3095
3096 # Check whether --enable-static was given.
3097 if test "${enable_static+set}" = set; then
3098   enableval=$enable_static; p=${PACKAGE-default}
3099     case $enableval in
3100     yes) enable_static=yes ;;
3101     no) enable_static=no ;;
3102     *)
3103      enable_static=no
3104       # Look at the argument we got.  We use all the common list separators.
3105       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106       for pkg in $enableval; do
3107         IFS="$lt_save_ifs"
3108         if test "X$pkg" = "X$p"; then
3109           enable_static=yes
3110         fi
3111       done
3112       IFS="$lt_save_ifs"
3113       ;;
3114     esac
3115 else
3116   enable_static=no
3117 fi
3118
3119
3120
3121
3122
3123 # Check whether --enable-shared was given.
3124 if test "${enable_shared+set}" = set; then
3125   enableval=$enable_shared; p=${PACKAGE-default}
3126     case $enableval in
3127     yes) enable_shared=yes ;;
3128     no) enable_shared=no ;;
3129     *)
3130       enable_shared=no
3131       # Look at the argument we got.  We use all the common list separators.
3132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3133       for pkg in $enableval; do
3134         IFS="$lt_save_ifs"
3135         if test "X$pkg" = "X$p"; then
3136           enable_shared=yes
3137         fi
3138       done
3139       IFS="$lt_save_ifs"
3140       ;;
3141     esac
3142 else
3143   enable_shared=yes
3144 fi
3145
3146
3147 # Check whether --enable-fast-install was given.
3148 if test "${enable_fast_install+set}" = set; then
3149   enableval=$enable_fast_install; p=${PACKAGE-default}
3150     case $enableval in
3151     yes) enable_fast_install=yes ;;
3152     no) enable_fast_install=no ;;
3153     *)
3154       enable_fast_install=no
3155       # Look at the argument we got.  We use all the common list separators.
3156       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3157       for pkg in $enableval; do
3158         IFS="$lt_save_ifs"
3159         if test "X$pkg" = "X$p"; then
3160           enable_fast_install=yes
3161         fi
3162       done
3163       IFS="$lt_save_ifs"
3164       ;;
3165     esac
3166 else
3167   enable_fast_install=yes
3168 fi
3169
3170
3171 DEPDIR="${am__leading_dot}deps"
3172
3173 ac_config_commands="$ac_config_commands depfiles"
3174
3175
3176 am_make=${MAKE-make}
3177 cat > confinc << 'END'
3178 am__doit:
3179         @echo done
3180 .PHONY: am__doit
3181 END
3182 # If we don't find an include directive, just comment out the code.
3183 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3184 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3185 am__include="#"
3186 am__quote=
3187 _am_result=none
3188 # First try GNU make style include.
3189 echo "include confinc" > confmf
3190 # We grep out `Entering directory' and `Leaving directory'
3191 # messages which can occur if `w' ends up in MAKEFLAGS.
3192 # In particular we don't look at `^make:' because GNU make might
3193 # be invoked under some other name (usually "gmake"), in which
3194 # case it prints its new name instead of `make'.
3195 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3196    am__include=include
3197    am__quote=
3198    _am_result=GNU
3199 fi
3200 # Now try BSD make style include.
3201 if test "$am__include" = "#"; then
3202    echo '.include "confinc"' > confmf
3203    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3204       am__include=.include
3205       am__quote="\""
3206       _am_result=BSD
3207    fi
3208 fi
3209
3210
3211 { echo "$as_me:$LINENO: result: $_am_result" >&5
3212 echo "${ECHO_T}$_am_result" >&6; }
3213 rm -f confinc confmf
3214
3215 # Check whether --enable-dependency-tracking was given.
3216 if test "${enable_dependency_tracking+set}" = set; then
3217   enableval=$enable_dependency_tracking;
3218 fi
3219
3220 if test "x$enable_dependency_tracking" != xno; then
3221   am_depcomp="$ac_aux_dir/depcomp"
3222   AMDEPBACKSLASH='\'
3223 fi
3224  if test "x$enable_dependency_tracking" != xno; then
3225   AMDEP_TRUE=
3226   AMDEP_FALSE='#'
3227 else
3228   AMDEP_TRUE='#'
3229   AMDEP_FALSE=
3230 fi
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 if test -n "$ac_tool_prefix"; then
3239   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_CC+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   if test -n "$CC"; then
3247   ac_cv_prog_CC="$CC" # Let the user override the test.
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252   IFS=$as_save_IFS
3253   test -z "$as_dir" && as_dir=.
3254   for ac_exec_ext in '' $ac_executable_extensions; do
3255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261 done
3262 IFS=$as_save_IFS
3263
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268   { echo "$as_me:$LINENO: result: $CC" >&5
3269 echo "${ECHO_T}$CC" >&6; }
3270 else
3271   { echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6; }
3273 fi
3274
3275
3276 fi
3277 if test -z "$ac_cv_prog_CC"; then
3278   ac_ct_CC=$CC
3279   # Extract the first word of "gcc", so it can be a program name with args.
3280 set dummy gcc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   if test -n "$ac_ct_CC"; then
3287   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   for ac_exec_ext in '' $ac_executable_extensions; do
3295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296     ac_cv_prog_ac_ct_CC="gcc"
3297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298     break 2
3299   fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3309 echo "${ECHO_T}$ac_ct_CC" >&6; }
3310 else
3311   { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315   if test "x$ac_ct_CC" = x; then
3316     CC=""
3317   else
3318     case $cross_compiling:$ac_tool_warned in
3319 yes:)
3320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3321 whose name does not start with the host triplet.  If you think this
3322 configuration is useful to you, please write to autoconf@gnu.org." >&5
3323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet.  If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3326 ac_tool_warned=yes ;;
3327 esac
3328     CC=$ac_ct_CC
3329   fi
3330 else
3331   CC="$ac_cv_prog_CC"
3332 fi
3333
3334 if test -z "$CC"; then
3335           if test -n "$ac_tool_prefix"; then
3336     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}cc; ac_word=$2
3338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then
3341   echo $ECHO_N "(cached) $ECHO_C" >&6
3342 else
3343   if test -n "$CC"; then
3344   ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353     ac_cv_prog_CC="${ac_tool_prefix}cc"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365   { echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6; }
3367 else
3368   { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3370 fi
3371
3372
3373   fi
3374 fi
3375 if test -z "$CC"; then
3376   # Extract the first word of "cc", so it can be a program name with args.
3377 set dummy cc; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$CC"; then
3384   ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386   ac_prog_rejected=no
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395        ac_prog_rejected=yes
3396        continue
3397      fi
3398     ac_cv_prog_CC="cc"
3399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400     break 2
3401   fi
3402 done
3403 done
3404 IFS=$as_save_IFS
3405
3406 if test $ac_prog_rejected = yes; then
3407   # We found a bogon in the path, so make sure we never use it.
3408   set dummy $ac_cv_prog_CC
3409   shift
3410   if test $# != 0; then
3411     # We chose a different compiler from the bogus one.
3412     # However, it has the same basename, so the bogon will be chosen
3413     # first if we set CC to just the basename; use the full file name.
3414     shift
3415     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416   fi
3417 fi
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422   { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3424 else
3425   { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if test -z "$CC"; then
3432   if test -n "$ac_tool_prefix"; then
3433   for ac_prog in cl.exe
3434   do
3435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   if test -n "$CC"; then
3443   ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448   IFS=$as_save_IFS
3449   test -z "$as_dir" && as_dir=.
3450   for ac_exec_ext in '' $ac_executable_extensions; do
3451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454     break 2
3455   fi
3456 done
3457 done
3458 IFS=$as_save_IFS
3459
3460 fi
3461 fi
3462 CC=$ac_cv_prog_CC
3463 if test -n "$CC"; then
3464   { echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6; }
3466 else
3467   { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3469 fi
3470
3471
3472     test -n "$CC" && break
3473   done
3474 fi
3475 if test -z "$CC"; then
3476   ac_ct_CC=$CC
3477   for ac_prog in cl.exe
3478 do
3479   # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3484   echo $ECHO_N "(cached) $ECHO_C" >&6
3485 else
3486   if test -n "$ac_ct_CC"; then
3487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494   for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     ac_cv_prog_ac_ct_CC="$ac_prog"
3497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3509 echo "${ECHO_T}$ac_ct_CC" >&6; }
3510 else
3511   { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3513 fi
3514
3515
3516   test -n "$ac_ct_CC" && break
3517 done
3518
3519   if test "x$ac_ct_CC" = x; then
3520     CC=""
3521   else
3522     case $cross_compiling:$ac_tool_warned in
3523 yes:)
3524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet.  If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&5
3527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet.  If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3530 ac_tool_warned=yes ;;
3531 esac
3532     CC=$ac_ct_CC
3533   fi
3534 fi
3535
3536 fi
3537
3538
3539 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: no acceptable C compiler found in \$PATH
3542 See \`config.log' for more details." >&2;}
3543    { (exit 1); exit 1; }; }
3544
3545 # Provide some information about the compiler.
3546 echo "$as_me:$LINENO: checking for C compiler version" >&5
3547 ac_compiler=`set X $ac_compile; echo $2`
3548 { (ac_try="$ac_compiler --version >&5"
3549 case "(($ac_try" in
3550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551   *) ac_try_echo=$ac_try;;
3552 esac
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554   (eval "$ac_compiler --version >&5") 2>&5
3555   ac_status=$?
3556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557   (exit $ac_status); }
3558 { (ac_try="$ac_compiler -v >&5"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compiler -v >&5") 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); }
3568 { (ac_try="$ac_compiler -V >&5"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_compiler -V >&5") 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }
3578
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585
3586 int
3587 main ()
3588 {
3589
3590   ;
3591   return 0;
3592 }
3593 _ACEOF
3594 ac_clean_files_save=$ac_clean_files
3595 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3596 # Try to create an executable without -o first, disregard a.out.
3597 # It will help us diagnose broken compilers, and finding out an intuition
3598 # of exeext.
3599 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3600 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3601 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602 #
3603 # List of possible output files, starting from the most likely.
3604 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3605 # only as a last resort.  b.out is created by i960 compilers.
3606 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3607 #
3608 # The IRIX 6 linker writes into existing files which may not be
3609 # executable, retaining their permissions.  Remove them first so a
3610 # subsequent execution test works.
3611 ac_rmfiles=
3612 for ac_file in $ac_files
3613 do
3614   case $ac_file in
3615     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3616     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3617   esac
3618 done
3619 rm -f $ac_rmfiles
3620
3621 if { (ac_try="$ac_link_default"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_link_default") 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; then
3631   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3632 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3633 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3634 # so that the user can short-circuit this test for compilers unknown to
3635 # Autoconf.
3636 for ac_file in $ac_files ''
3637 do
3638   test -f "$ac_file" || continue
3639   case $ac_file in
3640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3641         ;;
3642     [ab].out )
3643         # We found the default executable, but exeext='' is most
3644         # certainly right.
3645         break;;
3646     *.* )
3647         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3648         then :; else
3649            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650         fi
3651         # We set ac_cv_exeext here because the later test for it is not
3652         # safe: cross compilers may not add the suffix if given an `-o'
3653         # argument, so we may need to know it at that point already.
3654         # Even if this section looks crufty: it has the advantage of
3655         # actually working.
3656         break;;
3657     * )
3658         break;;
3659   esac
3660 done
3661 test "$ac_cv_exeext" = no && ac_cv_exeext=
3662
3663 else
3664   ac_file=''
3665 fi
3666
3667 { echo "$as_me:$LINENO: result: $ac_file" >&5
3668 echo "${ECHO_T}$ac_file" >&6; }
3669 if test -z "$ac_file"; then
3670   echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3672
3673 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: C compiler cannot create executables
3676 See \`config.log' for more details." >&2;}
3677    { (exit 77); exit 77; }; }
3678 fi
3679
3680 ac_exeext=$ac_cv_exeext
3681
3682 # Check that the compiler produces executables we can run.  If not, either
3683 # the compiler is broken, or we cross compile.
3684 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3687 # If not cross compiling, check that we can run a simple program.
3688 if test "$cross_compiling" != yes; then
3689   if { ac_try='./$ac_file'
3690   { (case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695   (eval "$ac_try") 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; }; then
3699     cross_compiling=no
3700   else
3701     if test "$cross_compiling" = maybe; then
3702         cross_compiling=yes
3703     else
3704         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3705 If you meant to cross compile, use \`--host'.
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details." >&2;}
3710    { (exit 1); exit 1; }; }
3711     fi
3712   fi
3713 fi
3714 { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3716
3717 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 # Check that the compiler produces executables we can run.  If not, either
3720 # the compiler is broken, or we cross compile.
3721 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3722 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3723 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3724 echo "${ECHO_T}$cross_compiling" >&6; }
3725
3726 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3727 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3728 if { (ac_try="$ac_link"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734   (eval "$ac_link") 2>&5
3735   ac_status=$?
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); }; then
3738   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3739 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3740 # work properly (i.e., refer to `conftest.exe'), while it won't with
3741 # `rm'.
3742 for ac_file in conftest.exe conftest conftest.*; do
3743   test -f "$ac_file" || continue
3744   case $ac_file in
3745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3746     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747           break;;
3748     * ) break;;
3749   esac
3750 done
3751 else
3752   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3755 See \`config.log' for more details." >&2;}
3756    { (exit 1); exit 1; }; }
3757 fi
3758
3759 rm -f conftest$ac_cv_exeext
3760 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3761 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3762
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3765 ac_exeext=$EXEEXT
3766 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3767 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3768 if test "${ac_cv_objext+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777
3778 int
3779 main ()
3780 {
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 rm -f conftest.o conftest.obj
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790   *) ac_try_echo=$ac_try;;
3791 esac
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793   (eval "$ac_compile") 2>&5
3794   ac_status=$?
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); }; then
3797   for ac_file in conftest.o conftest.obj conftest.*; do
3798   test -f "$ac_file" || continue;
3799   case $ac_file in
3800     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3801     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3802        break;;
3803   esac
3804 done
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3810 See \`config.log' for more details." >&5
3811 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details." >&2;}
3813    { (exit 1); exit 1; }; }
3814 fi
3815
3816 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3817 fi
3818 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3819 echo "${ECHO_T}$ac_cv_objext" >&6; }
3820 OBJEXT=$ac_cv_objext
3821 ac_objext=$OBJEXT
3822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h.  */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h.  */
3833
3834 int
3835 main ()
3836 {
3837 #ifndef __GNUC__
3838        choke me
3839 #endif
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext
3846 if { (ac_try="$ac_compile"
3847 case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_compile") 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } && {
3859          test -z "$ac_c_werror_flag" ||
3860          test ! -s conftest.err
3861        } && test -s conftest.$ac_objext; then
3862   ac_compiler_gnu=yes
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867         ac_compiler_gnu=no
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3872
3873 fi
3874 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3875 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3876 GCC=`test $ac_compiler_gnu = yes && echo yes`
3877 ac_test_CFLAGS=${CFLAGS+set}
3878 ac_save_CFLAGS=$CFLAGS
3879 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3880 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3881 if test "${ac_cv_prog_cc_g+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   ac_save_c_werror_flag=$ac_c_werror_flag
3885    ac_c_werror_flag=yes
3886    ac_cv_prog_cc_g=no
3887    CFLAGS="-g"
3888    cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_compile") 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } && {
3917          test -z "$ac_c_werror_flag" ||
3918          test ! -s conftest.err
3919        } && test -s conftest.$ac_objext; then
3920   ac_cv_prog_cc_g=yes
3921 else
3922   echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925         CFLAGS=""
3926       cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932
3933 int
3934 main ()
3935 {
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (ac_try="$ac_compile"
3943 case "(($ac_try" in
3944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945   *) ac_try_echo=$ac_try;;
3946 esac
3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3948   (eval "$ac_compile") 2>conftest.er1
3949   ac_status=$?
3950   grep -v '^ *+' conftest.er1 >conftest.err
3951   rm -f conftest.er1
3952   cat conftest.err >&5
3953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } && {
3955          test -z "$ac_c_werror_flag" ||
3956          test ! -s conftest.err
3957        } && test -s conftest.$ac_objext; then
3958   :
3959 else
3960   echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963         ac_c_werror_flag=$ac_save_c_werror_flag
3964          CFLAGS="-g"
3965          cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3982 case "(($ac_try" in
3983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984   *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987   (eval "$ac_compile") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && {
3994          test -z "$ac_c_werror_flag" ||
3995          test ! -s conftest.err
3996        } && test -s conftest.$ac_objext; then
3997   ac_cv_prog_cc_g=yes
3998 else
3999   echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 fi
4007
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012    ac_c_werror_flag=$ac_save_c_werror_flag
4013 fi
4014 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4015 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4016 if test "$ac_test_CFLAGS" = set; then
4017   CFLAGS=$ac_save_CFLAGS
4018 elif test $ac_cv_prog_cc_g = yes; then
4019   if test "$GCC" = yes; then
4020     CFLAGS="-g -O2"
4021   else
4022     CFLAGS="-g"
4023   fi
4024 else
4025   if test "$GCC" = yes; then
4026     CFLAGS="-O2"
4027   else
4028     CFLAGS=
4029   fi
4030 fi
4031 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4032 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4033 if test "${ac_cv_prog_cc_c89+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   ac_cv_prog_cc_c89=no
4037 ac_save_CC=$CC
4038 cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044 #include <stdarg.h>
4045 #include <stdio.h>
4046 #include <sys/types.h>
4047 #include <sys/stat.h>
4048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4049 struct buf { int x; };
4050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4051 static char *e (p, i)
4052      char **p;
4053      int i;
4054 {
4055   return p[i];
4056 }
4057 static char *f (char * (*g) (char **, int), char **p, ...)
4058 {
4059   char *s;
4060   va_list v;
4061   va_start (v,p);
4062   s = g (p, va_arg (v,int));
4063   va_end (v);
4064   return s;
4065 }
4066
4067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4068    function prototypes and stuff, but not '\xHH' hex character constants.
4069    These don't provoke an error unfortunately, instead are silently treated
4070    as 'x'.  The following induces an error, until -std is added to get
4071    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4072    array size at least.  It's necessary to write '\x00'==0 to get something
4073    that's true only with -std.  */
4074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4075
4076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4077    inside strings and character constants.  */
4078 #define FOO(x) 'x'
4079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4080
4081 int test (int i, double x);
4082 struct s1 {int (*f) (int a);};
4083 struct s2 {int (*f) (double a);};
4084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4085 int argc;
4086 char **argv;
4087 int
4088 main ()
4089 {
4090 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4096         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4097 do
4098   CC="$ac_save_CC $ac_arg"
4099   rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106   (eval "$ac_compile") 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } && {
4113          test -z "$ac_c_werror_flag" ||
4114          test ! -s conftest.err
4115        } && test -s conftest.$ac_objext; then
4116   ac_cv_prog_cc_c89=$ac_arg
4117 else
4118   echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4120
4121
4122 fi
4123
4124 rm -f core conftest.err conftest.$ac_objext
4125   test "x$ac_cv_prog_cc_c89" != "xno" && break
4126 done
4127 rm -f conftest.$ac_ext
4128 CC=$ac_save_CC
4129
4130 fi
4131 # AC_CACHE_VAL
4132 case "x$ac_cv_prog_cc_c89" in
4133   x)
4134     { echo "$as_me:$LINENO: result: none needed" >&5
4135 echo "${ECHO_T}none needed" >&6; } ;;
4136   xno)
4137     { echo "$as_me:$LINENO: result: unsupported" >&5
4138 echo "${ECHO_T}unsupported" >&6; } ;;
4139   *)
4140     CC="$CC $ac_cv_prog_cc_c89"
4141     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4142 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4143 esac
4144
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 depcc="$CC"   am_compiler_list=
4153
4154 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160   # We make a subdir and do the tests there.  Otherwise we can end up
4161   # making bogus files that we don't know about and never remove.  For
4162   # instance it was reported that on HP-UX the gcc test will end up
4163   # making a dummy file named `D' -- because `-MD' means `put the output
4164   # in D'.
4165   mkdir conftest.dir
4166   # Copy depcomp to subdir because otherwise we won't find it if we're
4167   # using a relative directory.
4168   cp "$am_depcomp" conftest.dir
4169   cd conftest.dir
4170   # We will build objects and dependencies in a subdirectory because
4171   # it helps to detect inapplicable dependency modes.  For instance
4172   # both Tru64's cc and ICC support -MD to output dependencies as a
4173   # side effect of compilation, but ICC will put the dependencies in
4174   # the current directory while Tru64 will put them in the object
4175   # directory.
4176   mkdir sub
4177
4178   am_cv_CC_dependencies_compiler_type=none
4179   if test "$am_compiler_list" = ""; then
4180      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4181   fi
4182   for depmode in $am_compiler_list; do
4183     # Setup a source with many dependencies, because some compilers
4184     # like to wrap large dependency lists on column 80 (with \), and
4185     # we should not choose a depcomp mode which is confused by this.
4186     #
4187     # We need to recreate these files for each test, as the compiler may
4188     # overwrite some of them when testing with obscure command lines.
4189     # This happens at least with the AIX C compiler.
4190     : > sub/conftest.c
4191     for i in 1 2 3 4 5 6; do
4192       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194       # Solaris 8's {/usr,}/bin/sh.
4195       touch sub/conftst$i.h
4196     done
4197     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
4199     case $depmode in
4200     nosideeffect)
4201       # after this tag, mechanisms are not by side-effect, so they'll
4202       # only be used when explicitly requested
4203       if test "x$enable_dependency_tracking" = xyes; then
4204         continue
4205       else
4206         break
4207       fi
4208       ;;
4209     none) break ;;
4210     esac
4211     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212     # mode.  It turns out that the SunPro C++ compiler does not properly
4213     # handle `-M -o', and we need to detect this.
4214     if depmode=$depmode \
4215        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218          >/dev/null 2>conftest.err &&
4219        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4222        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223       # icc doesn't choke on unknown options, it will just issue warnings
4224       # or remarks (even with -Werror).  So we grep stderr for any message
4225       # that says an option was ignored or not supported.
4226       # When given -MP, icc 7.0 and 7.1 complain thusly:
4227       #   icc: Command line warning: ignoring option '-M'; no argument required
4228       # The diagnosis changed in icc 8.0:
4229       #   icc: Command line remark: option '-MP' not supported
4230       if (grep 'ignoring option' conftest.err ||
4231           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232         am_cv_CC_dependencies_compiler_type=$depmode
4233         break
4234       fi
4235     fi
4236   done
4237
4238   cd ..
4239   rm -rf conftest.dir
4240 else
4241   am_cv_CC_dependencies_compiler_type=none
4242 fi
4243
4244 fi
4245 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4246 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4248
4249  if
4250   test "x$enable_dependency_tracking" != xno \
4251   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4252   am__fastdepCC_TRUE=
4253   am__fastdepCC_FALSE='#'
4254 else
4255   am__fastdepCC_TRUE='#'
4256   am__fastdepCC_FALSE=
4257 fi
4258
4259
4260 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4262 if test "${lt_cv_path_SED+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   # Loop through the user's path and test for sed and gsed.
4266 # Then use that list of sed's as ones to test for truncation.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270   IFS=$as_save_IFS
4271   test -z "$as_dir" && as_dir=.
4272   for lt_ac_prog in sed gsed; do
4273     for ac_exec_ext in '' $ac_executable_extensions; do
4274       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4275         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4276       fi
4277     done
4278   done
4279 done
4280 lt_ac_max=0
4281 lt_ac_count=0
4282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4283 # along with /bin/sed that truncates output.
4284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4285   test ! -f $lt_ac_sed && continue
4286   cat /dev/null > conftest.in
4287   lt_ac_count=0
4288   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4289   # Check for GNU sed and select it if it is found.
4290   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4291     lt_cv_path_SED=$lt_ac_sed
4292     break
4293   fi
4294   while true; do
4295     cat conftest.in conftest.in >conftest.tmp
4296     mv conftest.tmp conftest.in
4297     cp conftest.in conftest.nl
4298     echo >>conftest.nl
4299     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4300     cmp -s conftest.out conftest.nl || break
4301     # 10000 chars as input seems more than enough
4302     test $lt_ac_count -gt 10 && break
4303     lt_ac_count=`expr $lt_ac_count + 1`
4304     if test $lt_ac_count -gt $lt_ac_max; then
4305       lt_ac_max=$lt_ac_count
4306       lt_cv_path_SED=$lt_ac_sed
4307     fi
4308   done
4309 done
4310
4311 fi
4312
4313 SED=$lt_cv_path_SED
4314 { echo "$as_me:$LINENO: result: $SED" >&5
4315 echo "${ECHO_T}$SED" >&6; }
4316
4317 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4318 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4319 if test "${ac_cv_path_GREP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   # Extract the first word of "grep ggrep" to use in msg output
4323 if test -z "$GREP"; then
4324 set dummy grep ggrep; ac_prog_name=$2
4325 if test "${ac_cv_path_GREP+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   ac_path_GREP_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_prog in grep ggrep; do
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4339     # Check for GNU ac_path_GREP and select it if it is found.
4340   # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4342 *GNU*)
4343   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 *)
4345   ac_count=0
4346   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4347   while :
4348   do
4349     cat "conftest.in" "conftest.in" >"conftest.tmp"
4350     mv "conftest.tmp" "conftest.in"
4351     cp "conftest.in" "conftest.nl"
4352     echo 'GREP' >> "conftest.nl"
4353     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355     ac_count=`expr $ac_count + 1`
4356     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357       # Best one so far, save it but keep looking for a better one
4358       ac_cv_path_GREP="$ac_path_GREP"
4359       ac_path_GREP_max=$ac_count
4360     fi
4361     # 10*(2^10) chars as input seems more than enough
4362     test $ac_count -gt 10 && break
4363   done
4364   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 esac
4366
4367
4368     $ac_path_GREP_found && break 3
4369   done
4370 done
4371
4372 done
4373 IFS=$as_save_IFS
4374
4375
4376 fi
4377
4378 GREP="$ac_cv_path_GREP"
4379 if test -z "$GREP"; then
4380   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4381 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4382    { (exit 1); exit 1; }; }
4383 fi
4384
4385 else
4386   ac_cv_path_GREP=$GREP
4387 fi
4388
4389
4390 fi
4391 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4392 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4393  GREP="$ac_cv_path_GREP"
4394
4395
4396 { echo "$as_me:$LINENO: checking for egrep" >&5
4397 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_EGREP+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402    then ac_cv_path_EGREP="$GREP -E"
4403    else
4404      # Extract the first word of "egrep" to use in msg output
4405 if test -z "$EGREP"; then
4406 set dummy egrep; ac_prog_name=$2
4407 if test "${ac_cv_path_EGREP+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   ac_path_EGREP_found=false
4411 # Loop through the user's path and test for each of PROGNAME-LIST
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417   for ac_prog in egrep; do
4418   for ac_exec_ext in '' $ac_executable_extensions; do
4419     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4420     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4421     # Check for GNU ac_path_EGREP and select it if it is found.
4422   # Check for GNU $ac_path_EGREP
4423 case `"$ac_path_EGREP" --version 2>&1` in
4424 *GNU*)
4425   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4426 *)
4427   ac_count=0
4428   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4429   while :
4430   do
4431     cat "conftest.in" "conftest.in" >"conftest.tmp"
4432     mv "conftest.tmp" "conftest.in"
4433     cp "conftest.in" "conftest.nl"
4434     echo 'EGREP' >> "conftest.nl"
4435     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437     ac_count=`expr $ac_count + 1`
4438     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4439       # Best one so far, save it but keep looking for a better one
4440       ac_cv_path_EGREP="$ac_path_EGREP"
4441       ac_path_EGREP_max=$ac_count
4442     fi
4443     # 10*(2^10) chars as input seems more than enough
4444     test $ac_count -gt 10 && break
4445   done
4446   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447 esac
4448
4449
4450     $ac_path_EGREP_found && break 3
4451   done
4452 done
4453
4454 done
4455 IFS=$as_save_IFS
4456
4457
4458 fi
4459
4460 EGREP="$ac_cv_path_EGREP"
4461 if test -z "$EGREP"; then
4462   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4463 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4464    { (exit 1); exit 1; }; }
4465 fi
4466
4467 else
4468   ac_cv_path_EGREP=$EGREP
4469 fi
4470
4471
4472    fi
4473 fi
4474 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4475 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4476  EGREP="$ac_cv_path_EGREP"
4477
4478
4479
4480 # Check whether --with-gnu-ld was given.
4481 if test "${with_gnu_ld+set}" = set; then
4482   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4483 else
4484   with_gnu_ld=no
4485 fi
4486
4487 ac_prog=ld
4488 if test "$GCC" = yes; then
4489   # Check if gcc -print-prog-name=ld gives a path.
4490   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4491 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4492   case $host in
4493   *-*-mingw*)
4494     # gcc leaves a trailing carriage return which upsets mingw
4495     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4496   *)
4497     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4498   esac
4499   case $ac_prog in
4500     # Accept absolute paths.
4501     [\\/]* | ?:[\\/]*)
4502       re_direlt='/[^/][^/]*/\.\./'
4503       # Canonicalize the pathname of ld
4504       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4505       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4506         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4507       done
4508       test -z "$LD" && LD="$ac_prog"
4509       ;;
4510   "")
4511     # If it fails, then pretend we aren't using GCC.
4512     ac_prog=ld
4513     ;;
4514   *)
4515     # If it is relative, then search for the first ld in PATH.
4516     with_gnu_ld=unknown
4517     ;;
4518   esac
4519 elif test "$with_gnu_ld" = yes; then
4520   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4521 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4522 else
4523   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4524 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4525 fi
4526 if test "${lt_cv_path_LD+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   if test -z "$LD"; then
4530   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4531   for ac_dir in $PATH; do
4532     IFS="$lt_save_ifs"
4533     test -z "$ac_dir" && ac_dir=.
4534     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4535       lt_cv_path_LD="$ac_dir/$ac_prog"
4536       # Check to see if the program is GNU ld.  I'd rather use --version,
4537       # but apparently some variants of GNU ld only accept -v.
4538       # Break only if it was the GNU/non-GNU ld that we prefer.
4539       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4540       *GNU* | *'with BFD'*)
4541         test "$with_gnu_ld" != no && break
4542         ;;
4543       *)
4544         test "$with_gnu_ld" != yes && break
4545         ;;
4546       esac
4547     fi
4548   done
4549   IFS="$lt_save_ifs"
4550 else
4551   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4552 fi
4553 fi
4554
4555 LD="$lt_cv_path_LD"
4556 if test -n "$LD"; then
4557   { echo "$as_me:$LINENO: result: $LD" >&5
4558 echo "${ECHO_T}$LD" >&6; }
4559 else
4560   { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4562 fi
4563 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4564 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4565    { (exit 1); exit 1; }; }
4566 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4567 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4568 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4572 case `$LD -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574   lt_cv_prog_gnu_ld=yes
4575   ;;
4576 *)
4577   lt_cv_prog_gnu_ld=no
4578   ;;
4579 esac
4580 fi
4581 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4582 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4583 with_gnu_ld=$lt_cv_prog_gnu_ld
4584
4585
4586 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4587 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4588 if test "${lt_cv_ld_reload_flag+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   lt_cv_ld_reload_flag='-r'
4592 fi
4593 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4594 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4595 reload_flag=$lt_cv_ld_reload_flag
4596 case $reload_flag in
4597 "" | " "*) ;;
4598 *) reload_flag=" $reload_flag" ;;
4599 esac
4600 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4601 case $host_os in
4602   darwin*)
4603     if test "$GCC" = yes; then
4604       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4605     else
4606       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4607     fi
4608     ;;
4609 esac
4610
4611 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4612 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4613 if test "${lt_cv_path_NM+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   if test -n "$NM"; then
4617   # Let the user override the test.
4618   lt_cv_path_NM="$NM"
4619 else
4620   lt_nm_to_check="${ac_tool_prefix}nm"
4621   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4622     lt_nm_to_check="$lt_nm_to_check nm"
4623   fi
4624   for lt_tmp_nm in $lt_nm_to_check; do
4625     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4626     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4627       IFS="$lt_save_ifs"
4628       test -z "$ac_dir" && ac_dir=.
4629       tmp_nm="$ac_dir/$lt_tmp_nm"
4630       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4631         # Check to see if the nm accepts a BSD-compat flag.
4632         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4633         #   nm: unknown option "B" ignored
4634         # Tru64's nm complains that /dev/null is an invalid object file
4635         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4636         */dev/null* | *'Invalid file or object type'*)
4637           lt_cv_path_NM="$tmp_nm -B"
4638           break
4639           ;;
4640         *)
4641           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4642           */dev/null*)
4643             lt_cv_path_NM="$tmp_nm -p"
4644             break
4645             ;;
4646           *)
4647             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4648             continue # so that we can try to find one that supports BSD flags
4649             ;;
4650           esac
4651           ;;
4652         esac
4653       fi
4654     done
4655     IFS="$lt_save_ifs"
4656   done
4657   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4658 fi
4659 fi
4660 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4661 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4662 NM="$lt_cv_path_NM"
4663
4664 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4666 LN_S=$as_ln_s
4667 if test "$LN_S" = "ln -s"; then
4668   { echo "$as_me:$LINENO: result: yes" >&5
4669 echo "${ECHO_T}yes" >&6; }
4670 else
4671   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4672 echo "${ECHO_T}no, using $LN_S" >&6; }
4673 fi
4674
4675 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4676 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4677 if test "${lt_cv_deplibs_check_method+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   lt_cv_file_magic_cmd='$MAGIC_CMD'
4681 lt_cv_file_magic_test_file=
4682 lt_cv_deplibs_check_method='unknown'
4683 # Need to set the preceding variable on all platforms that support
4684 # interlibrary dependencies.
4685 # 'none' -- dependencies not supported.
4686 # `unknown' -- same as none, but documents that we really don't know.
4687 # 'pass_all' -- all dependencies passed with no checks.
4688 # 'test_compile' -- check by making test program.
4689 # 'file_magic [[regex]]' -- check by looking for files in library path
4690 # which responds to the $file_magic_cmd with a given extended regex.
4691 # If you have `file' or equivalent on your system and you're not sure
4692 # whether `pass_all' will *always* work, you probably want this one.
4693
4694 case $host_os in
4695 aix4* | aix5*)
4696   lt_cv_deplibs_check_method=pass_all
4697   ;;
4698
4699 beos*)
4700   lt_cv_deplibs_check_method=pass_all
4701   ;;
4702
4703 bsdi[45]*)
4704   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4705   lt_cv_file_magic_cmd='/usr/bin/file -L'
4706   lt_cv_file_magic_test_file=/shlib/libc.so
4707   ;;
4708
4709 cygwin*)
4710   # func_win32_libid is a shell function defined in ltmain.sh
4711   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4712   lt_cv_file_magic_cmd='func_win32_libid'
4713   ;;
4714
4715 mingw* | pw32*)
4716   # Base MSYS/MinGW do not provide the 'file' command needed by
4717   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4718   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4719   lt_cv_file_magic_cmd='$OBJDUMP -f'
4720   ;;
4721
4722 darwin* | rhapsody*)
4723   lt_cv_deplibs_check_method=pass_all
4724   ;;
4725
4726 freebsd* | kfreebsd*-gnu | dragonfly*)
4727   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4728     case $host_cpu in
4729     i*86 )
4730       # Not sure whether the presence of OpenBSD here was a mistake.
4731       # Let's accept both of them until this is cleared up.
4732       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4733       lt_cv_file_magic_cmd=/usr/bin/file
4734       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4735       ;;
4736     esac
4737   else
4738     lt_cv_deplibs_check_method=pass_all
4739   fi
4740   ;;
4741
4742 gnu*)
4743   lt_cv_deplibs_check_method=pass_all
4744   ;;
4745
4746 hpux10.20* | hpux11*)
4747   lt_cv_file_magic_cmd=/usr/bin/file
4748   case $host_cpu in
4749   ia64*)
4750     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4751     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4752     ;;
4753   hppa*64*)
4754     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]'
4755     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4756     ;;
4757   *)
4758     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4759     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4760     ;;
4761   esac
4762   ;;
4763
4764 interix3*)
4765   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4766   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4767   ;;
4768
4769 irix5* | irix6* | nonstopux*)
4770   case $LD in
4771   *-32|*"-32 ") libmagic=32-bit;;
4772   *-n32|*"-n32 ") libmagic=N32;;
4773   *-64|*"-64 ") libmagic=64-bit;;
4774   *) libmagic=never-match;;
4775   esac
4776   lt_cv_deplibs_check_method=pass_all
4777   ;;
4778
4779 # This must be Linux ELF.
4780 linux*)
4781   lt_cv_deplibs_check_method=pass_all
4782   ;;
4783
4784 netbsd*)
4785   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4787   else
4788     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4789   fi
4790   ;;
4791
4792 newos6*)
4793   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4794   lt_cv_file_magic_cmd=/usr/bin/file
4795   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4796   ;;
4797
4798 nto-qnx*)
4799   lt_cv_deplibs_check_method=unknown
4800   ;;
4801
4802 openbsd*)
4803   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4805   else
4806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4807   fi
4808   ;;
4809
4810 osf3* | osf4* | osf5*)
4811   lt_cv_deplibs_check_method=pass_all
4812   ;;
4813
4814 solaris*)
4815   lt_cv_deplibs_check_method=pass_all
4816   ;;
4817
4818 sysv4 | sysv4.3*)
4819   case $host_vendor in
4820   motorola)
4821     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]'
4822     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4823     ;;
4824   ncr)
4825     lt_cv_deplibs_check_method=pass_all
4826     ;;
4827   sequent)
4828     lt_cv_file_magic_cmd='/bin/file'
4829     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4830     ;;
4831   sni)
4832     lt_cv_file_magic_cmd='/bin/file'
4833     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4834     lt_cv_file_magic_test_file=/lib/libc.so
4835     ;;
4836   siemens)
4837     lt_cv_deplibs_check_method=pass_all
4838     ;;
4839   pc)
4840     lt_cv_deplibs_check_method=pass_all
4841     ;;
4842   esac
4843   ;;
4844
4845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4846   lt_cv_deplibs_check_method=pass_all
4847   ;;
4848 esac
4849
4850 fi
4851 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4853 file_magic_cmd=$lt_cv_file_magic_cmd
4854 deplibs_check_method=$lt_cv_deplibs_check_method
4855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4856
4857
4858
4859
4860 # If no C compiler was specified, use CC.
4861 LTCC=${LTCC-"$CC"}
4862
4863 # If no C compiler flags were specified, use CFLAGS.
4864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4865
4866 # Allow CC to be a program name with arguments.
4867 compiler=$CC
4868
4869
4870 # Check whether --enable-libtool-lock was given.
4871 if test "${enable_libtool_lock+set}" = set; then
4872   enableval=$enable_libtool_lock;
4873 fi
4874
4875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4876
4877 # Some flags need to be propagated to the compiler or linker for good
4878 # libtool support.
4879 case $host in
4880 ia64-*-hpux*)
4881   # Find out which ABI we are using.
4882   echo 'int i;' > conftest.$ac_ext
4883   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884   (eval $ac_compile) 2>&5
4885   ac_status=$?
4886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); }; then
4888     case `/usr/bin/file conftest.$ac_objext` in
4889     *ELF-32*)
4890       HPUX_IA64_MODE="32"
4891       ;;
4892     *ELF-64*)
4893       HPUX_IA64_MODE="64"
4894       ;;
4895     esac
4896   fi
4897   rm -rf conftest*
4898   ;;
4899 *-*-irix6*)
4900   # Find out which ABI we are using.
4901   echo '#line 4901 "configure"' > conftest.$ac_ext
4902   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903   (eval $ac_compile) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; then
4907    if test "$lt_cv_prog_gnu_ld" = yes; then
4908     case `/usr/bin/file conftest.$ac_objext` in
4909     *32-bit*)
4910       LD="${LD-ld} -melf32bsmip"
4911       ;;
4912     *N32*)
4913       LD="${LD-ld} -melf32bmipn32"
4914       ;;
4915     *64-bit*)
4916       LD="${LD-ld} -melf64bmip"
4917       ;;
4918     esac
4919    else
4920     case `/usr/bin/file conftest.$ac_objext` in
4921     *32-bit*)
4922       LD="${LD-ld} -32"
4923       ;;
4924     *N32*)
4925       LD="${LD-ld} -n32"
4926       ;;
4927     *64-bit*)
4928       LD="${LD-ld} -64"
4929       ;;
4930     esac
4931    fi
4932   fi
4933   rm -rf conftest*
4934   ;;
4935
4936 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4937   # Find out which ABI we are using.
4938   echo 'int i;' > conftest.$ac_ext
4939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940   (eval $ac_compile) 2>&5
4941   ac_status=$?
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); }; then
4944     case `/usr/bin/file conftest.o` in
4945     *32-bit*)
4946       case $host in
4947         x86_64-*linux*)
4948           LD="${LD-ld} -m elf_i386"
4949           ;;
4950         ppc64-*linux*|powerpc64-*linux*)
4951           LD="${LD-ld} -m elf32ppclinux"
4952           ;;
4953         s390x-*linux*)
4954           LD="${LD-ld} -m elf_s390"
4955           ;;
4956         sparc64-*linux*)
4957           LD="${LD-ld} -m elf32_sparc"
4958           ;;
4959       esac
4960       ;;
4961     *64-bit*)
4962       case $host in
4963         x86_64-*linux*)
4964           LD="${LD-ld} -m elf_x86_64"
4965           ;;
4966         ppc*-*linux*|powerpc*-*linux*)
4967           LD="${LD-ld} -m elf64ppc"
4968           ;;
4969         s390*-*linux*)
4970           LD="${LD-ld} -m elf64_s390"
4971           ;;
4972         sparc*-*linux*)
4973           LD="${LD-ld} -m elf64_sparc"
4974           ;;
4975       esac
4976       ;;
4977     esac
4978   fi
4979   rm -rf conftest*
4980   ;;
4981
4982 *-*-sco3.2v5*)
4983   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4984   SAVE_CFLAGS="$CFLAGS"
4985   CFLAGS="$CFLAGS -belf"
4986   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4987 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4988 if test "${lt_cv_cc_needs_belf+set}" = set; then
4989   echo $ECHO_N "(cached) $ECHO_C" >&6
4990 else
4991   ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997      cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003
5004 int
5005 main ()
5006 {
5007
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (ac_try="$ac_link"
5014 case "(($ac_try" in
5015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016   *) ac_try_echo=$ac_try;;
5017 esac
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019   (eval "$ac_link") 2>conftest.er1
5020   ac_status=$?
5021   grep -v '^ *+' conftest.er1 >conftest.err
5022   rm -f conftest.er1
5023   cat conftest.err >&5
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); } && {
5026          test -z "$ac_c_werror_flag" ||
5027          test ! -s conftest.err
5028        } && test -s conftest$ac_exeext &&
5029        $as_test_x conftest$ac_exeext; then
5030   lt_cv_cc_needs_belf=yes
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035         lt_cv_cc_needs_belf=no
5036 fi
5037
5038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5039       conftest$ac_exeext conftest.$ac_ext
5040      ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046 fi
5047 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5049   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5050     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5051     CFLAGS="$SAVE_CFLAGS"
5052   fi
5053   ;;
5054 sparc*-*solaris*)
5055   # Find out which ABI we are using.
5056   echo 'int i;' > conftest.$ac_ext
5057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; then
5062     case `/usr/bin/file conftest.o` in
5063     *64-bit*)
5064       case $lt_cv_prog_gnu_ld in
5065       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5066       *)    LD="${LD-ld} -64" ;;
5067       esac
5068       ;;
5069     esac
5070   fi
5071   rm -rf conftest*
5072   ;;
5073
5074
5075 esac
5076
5077 need_locks="$enable_libtool_lock"
5078
5079
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5086 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5087 # On Suns, sometimes $CPP names a directory.
5088 if test -n "$CPP" && test -d "$CPP"; then
5089   CPP=
5090 fi
5091 if test -z "$CPP"; then
5092   if test "${ac_cv_prog_CPP+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095       # Double quotes because CPP needs to be expanded
5096     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5097     do
5098       ac_preproc_ok=false
5099 for ac_c_preproc_warn_flag in '' yes
5100 do
5101   # Use a header file that comes with gcc, so configuring glibc
5102   # with a fresh cross-compiler works.
5103   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104   # <limits.h> exists even on freestanding compilers.
5105   # On the NeXT, cc -E runs the code through the compiler's parser,
5106   # not just through cpp. "Syntax error" is here to catch this case.
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5121 case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5127   ac_status=$?
5128   grep -v '^ *+' conftest.er1 >conftest.err
5129   rm -f conftest.er1
5130   cat conftest.err >&5
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); } >/dev/null && {
5133          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134          test ! -s conftest.err
5135        }; then
5136   :
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   # Broken: fails on valid input.
5142 continue
5143 fi
5144
5145 rm -f conftest.err conftest.$ac_ext
5146
5147   # OK, works on sane cases.  Now check whether nonexistent headers
5148   # can be detected and how.
5149   cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 #include <ac_nonexistent.h>
5156 _ACEOF
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } >/dev/null && {
5170          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171          test ! -s conftest.err
5172        }; then
5173   # Broken: success on invalid input.
5174 continue
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179   # Passes both tests.
5180 ac_preproc_ok=:
5181 break
5182 fi
5183
5184 rm -f conftest.err conftest.$ac_ext
5185
5186 done
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5190   break
5191 fi
5192
5193     done
5194     ac_cv_prog_CPP=$CPP
5195
5196 fi
5197   CPP=$ac_cv_prog_CPP
5198 else
5199   ac_cv_prog_CPP=$CPP
5200 fi
5201 { echo "$as_me:$LINENO: result: $CPP" >&5
5202 echo "${ECHO_T}$CPP" >&6; }
5203 ac_preproc_ok=false
5204 for ac_c_preproc_warn_flag in '' yes
5205 do
5206   # Use a header file that comes with gcc, so configuring glibc
5207   # with a fresh cross-compiler works.
5208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209   # <limits.h> exists even on freestanding compilers.
5210   # On the NeXT, cc -E runs the code through the compiler's parser,
5211   # not just through cpp. "Syntax error" is here to catch this case.
5212   cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h.  */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h.  */
5218 #ifdef __STDC__
5219 # include <limits.h>
5220 #else
5221 # include <assert.h>
5222 #endif
5223                      Syntax error
5224 _ACEOF
5225 if { (ac_try="$ac_cpp conftest.$ac_ext"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } >/dev/null && {
5238          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5239          test ! -s conftest.err
5240        }; then
5241   :
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246   # Broken: fails on valid input.
5247 continue
5248 fi
5249
5250 rm -f conftest.err conftest.$ac_ext
5251
5252   # OK, works on sane cases.  Now check whether nonexistent headers
5253   # can be detected and how.
5254   cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h.  */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h.  */
5260 #include <ac_nonexistent.h>
5261 _ACEOF
5262 if { (ac_try="$ac_cpp conftest.$ac_ext"
5263 case "(($ac_try" in
5264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265   *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5269   ac_status=$?
5270   grep -v '^ *+' conftest.er1 >conftest.err
5271   rm -f conftest.er1
5272   cat conftest.err >&5
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } >/dev/null && {
5275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5276          test ! -s conftest.err
5277        }; then
5278   # Broken: success on invalid input.
5279 continue
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284   # Passes both tests.
5285 ac_preproc_ok=:
5286 break
5287 fi
5288
5289 rm -f conftest.err conftest.$ac_ext
5290
5291 done
5292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5293 rm -f conftest.err conftest.$ac_ext
5294 if $ac_preproc_ok; then
5295   :
5296 else
5297   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5300 See \`config.log' for more details." >&2;}
5301    { (exit 1); exit 1; }; }
5302 fi
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310
5311 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5312 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5313 if test "${ac_cv_header_stdc+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 #include <stdlib.h>
5323 #include <stdarg.h>
5324 #include <string.h>
5325 #include <float.h>
5326
5327 int
5328 main ()
5329 {
5330
5331   ;
5332   return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_compile") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } && {
5349          test -z "$ac_c_werror_flag" ||
5350          test ! -s conftest.err
5351        } && test -s conftest.$ac_objext; then
5352   ac_cv_header_stdc=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357         ac_cv_header_stdc=no
5358 fi
5359
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361
5362 if test $ac_cv_header_stdc = yes; then
5363   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364   cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <string.h>
5371
5372 _ACEOF
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374   $EGREP "memchr" >/dev/null 2>&1; then
5375   :
5376 else
5377   ac_cv_header_stdc=no
5378 fi
5379 rm -f conftest*
5380
5381 fi
5382
5383 if test $ac_cv_header_stdc = yes; then
5384   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385   cat >conftest.$ac_ext <<_ACEOF
5386 /* confdefs.h.  */
5387 _ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h.  */
5391 #include <stdlib.h>
5392
5393 _ACEOF
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395   $EGREP "free" >/dev/null 2>&1; then
5396   :
5397 else
5398   ac_cv_header_stdc=no
5399 fi
5400 rm -f conftest*
5401
5402 fi
5403
5404 if test $ac_cv_header_stdc = yes; then
5405   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406   if test "$cross_compiling" = yes; then
5407   :
5408 else
5409   cat >conftest.$ac_ext <<_ACEOF
5410 /* confdefs.h.  */
5411 _ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h.  */
5415 #include <ctype.h>
5416 #include <stdlib.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422                    (('a' <= (c) && (c) <= 'i') \
5423                      || ('j' <= (c) && (c) <= 'r') \
5424                      || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5427
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5429 int
5430 main ()
5431 {
5432   int i;
5433   for (i = 0; i < 256; i++)
5434     if (XOR (islower (i), ISLOWER (i))
5435         || toupper (i) != TOUPPER (i))
5436       return 2;
5437   return 0;
5438 }
5439 _ACEOF
5440 rm -f conftest$ac_exeext
5441 if { (ac_try="$ac_link"
5442 case "(($ac_try" in
5443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444   *) ac_try_echo=$ac_try;;
5445 esac
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447   (eval "$ac_link") 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5451   { (case "(($ac_try" in
5452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453   *) ac_try_echo=$ac_try;;
5454 esac
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456   (eval "$ac_try") 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   :
5461 else
5462   echo "$as_me: program exited with status $ac_status" >&5
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466 ( exit $ac_status )
5467 ac_cv_header_stdc=no
5468 fi
5469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5470 fi
5471
5472
5473 fi
5474 fi
5475 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5476 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5477 if test $ac_cv_header_stdc = yes; then
5478
5479 cat >>confdefs.h <<\_ACEOF
5480 #define STDC_HEADERS 1
5481 _ACEOF
5482
5483 fi
5484
5485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5496                   inttypes.h stdint.h unistd.h
5497 do
5498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 $ac_includes_default
5511
5512 #include <$ac_header>
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5516 case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_compile") 2>conftest.er1
5522   ac_status=$?
5523   grep -v '^ *+' conftest.er1 >conftest.err
5524   rm -f conftest.er1
5525   cat conftest.err >&5
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); } && {
5528          test -z "$ac_c_werror_flag" ||
5529          test ! -s conftest.err
5530        } && test -s conftest.$ac_objext; then
5531   eval "$as_ac_Header=yes"
5532 else
5533   echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5535
5536         eval "$as_ac_Header=no"
5537 fi
5538
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 ac_res=`eval echo '${'$as_ac_Header'}'`
5542                { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545   cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547 _ACEOF
5548
5549 fi
5550
5551 done
5552
5553
5554
5555 for ac_header in dlfcn.h
5556 do
5557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 fi
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565                { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5567 else
5568   # Is the header compilable?
5569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578 #include <$ac_header>
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_compile") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } && {
5594          test -z "$ac_c_werror_flag" ||
5595          test ! -s conftest.err
5596        } && test -s conftest.$ac_objext; then
5597   ac_header_compiler=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602         ac_header_compiler=no
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5607 echo "${ECHO_T}$ac_header_compiler" >&6; }
5608
5609 # Is the header present?
5610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h.  */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h.  */
5618 #include <$ac_header>
5619 _ACEOF
5620 if { (ac_try="$ac_cpp conftest.$ac_ext"
5621 case "(($ac_try" in
5622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623   *) ac_try_echo=$ac_try;;
5624 esac
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5627   ac_status=$?
5628   grep -v '^ *+' conftest.er1 >conftest.err
5629   rm -f conftest.er1
5630   cat conftest.err >&5
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } >/dev/null && {
5633          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634          test ! -s conftest.err
5635        }; then
5636   ac_header_preproc=yes
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641   ac_header_preproc=no
5642 fi
5643
5644 rm -f conftest.err conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646 echo "${ECHO_T}$ac_header_preproc" >&6; }
5647
5648 # So?  What about this header?
5649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5650   yes:no: )
5651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655     ac_header_preproc=yes
5656     ;;
5657   no:yes:* )
5658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5670     ( cat <<\_ASBOX
5671 ## ----------------------------------------------- ##
5672 ## Report this to webmaster.salome@opencascade.com ##
5673 ## ----------------------------------------------- ##
5674 _ASBOX
5675      ) | sed "s/^/$as_me: WARNING:     /" >&2
5676     ;;
5677 esac
5678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683   eval "$as_ac_Header=\$ac_header_preproc"
5684 fi
5685 ac_res=`eval echo '${'$as_ac_Header'}'`
5686                { echo "$as_me:$LINENO: result: $ac_res" >&5
5687 echo "${ECHO_T}$ac_res" >&6; }
5688
5689 fi
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691   cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693 _ACEOF
5694
5695 fi
5696
5697 done
5698
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 if test -z "$CXX"; then
5705   if test -n "$CCC"; then
5706     CXX=$CCC
5707   else
5708     if test -n "$ac_tool_prefix"; then
5709   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5710   do
5711     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_CXX+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   if test -n "$CXX"; then
5719   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726   for ac_exec_ext in '' $ac_executable_extensions; do
5727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 CXX=$ac_cv_prog_CXX
5739 if test -n "$CXX"; then
5740   { echo "$as_me:$LINENO: result: $CXX" >&5
5741 echo "${ECHO_T}$CXX" >&6; }
5742 else
5743   { echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6; }
5745 fi
5746
5747
5748     test -n "$CXX" && break
5749   done
5750 fi
5751 if test -z "$CXX"; then
5752   ac_ct_CXX=$CXX
5753   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5754 do
5755   # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5760   echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762   if test -n "$ac_ct_CXX"; then
5763   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768   IFS=$as_save_IFS
5769   test -z "$as_dir" && as_dir=.
5770   for ac_exec_ext in '' $ac_executable_extensions; do
5771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772     ac_cv_prog_ac_ct_CXX="$ac_prog"
5773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774     break 2
5775   fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5783 if test -n "$ac_ct_CXX"; then
5784   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5785 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5786 else
5787   { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5789 fi
5790
5791
5792   test -n "$ac_ct_CXX" && break
5793 done
5794
5795   if test "x$ac_ct_CXX" = x; then
5796     CXX="g++"
5797   else
5798     case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801 whose name does not start with the host triplet.  If you think this
5802 configuration is useful to you, please write to autoconf@gnu.org." >&5
5803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5804 whose name does not start with the host triplet.  If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808     CXX=$ac_ct_CXX
5809   fi
5810 fi
5811
5812   fi
5813 fi
5814 # Provide some information about the compiler.
5815 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5816 ac_compiler=`set X $ac_compile; echo $2`
5817 { (ac_try="$ac_compiler --version >&5"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compiler --version >&5") 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }
5827 { (ac_try="$ac_compiler -v >&5"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_compiler -v >&5") 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }
5837 { (ac_try="$ac_compiler -V >&5"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_compiler -V >&5") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }
5847
5848 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5849 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5850 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h.  */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h.  */
5859
5860 int
5861 main ()
5862 {
5863 #ifndef __GNUC__
5864        choke me
5865 #endif
5866
5867   ;
5868   return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875   *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878   (eval "$ac_compile") 2>conftest.er1
5879   ac_status=$?
5880   grep -v '^ *+' conftest.er1 >conftest.err
5881   rm -f conftest.er1
5882   cat conftest.err >&5
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } && {
5885          test -z "$ac_cxx_werror_flag" ||
5886          test ! -s conftest.err
5887        } && test -s conftest.$ac_objext; then
5888   ac_compiler_gnu=yes
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893         ac_compiler_gnu=no
5894 fi
5895
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5898
5899 fi
5900 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5902 GXX=`test $ac_compiler_gnu = yes && echo yes`
5903 ac_test_CXXFLAGS=${CXXFLAGS+set}
5904 ac_save_CXXFLAGS=$CXXFLAGS
5905 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5906 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_cxx_g+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5911    ac_cxx_werror_flag=yes
5912    ac_cv_prog_cxx_g=no
5913    CXXFLAGS="-g"
5914    cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920
5921 int
5922 main ()
5923 {
5924
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5931 case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936   (eval "$ac_compile") 2>conftest.er1
5937   ac_status=$?
5938   grep -v '^ *+' conftest.er1 >conftest.err
5939   rm -f conftest.er1
5940   cat conftest.err >&5
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); } && {
5943          test -z "$ac_cxx_werror_flag" ||
5944          test ! -s conftest.err
5945        } && test -s conftest.$ac_objext; then
5946   ac_cv_prog_cxx_g=yes
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951         CXXFLAGS=""
5952       cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h.  */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h.  */
5958
5959 int
5960 main ()
5961 {
5962
5963   ;
5964   return 0;
5965 }
5966 _ACEOF
5967 rm -f conftest.$ac_objext
5968 if { (ac_try="$ac_compile"
5969 case "(($ac_try" in
5970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971   *) ac_try_echo=$ac_try;;
5972 esac
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974   (eval "$ac_compile") 2>conftest.er1
5975   ac_status=$?
5976   grep -v '^ *+' conftest.er1 >conftest.err
5977   rm -f conftest.er1
5978   cat conftest.err >&5
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } && {
5981          test -z "$ac_cxx_werror_flag" ||
5982          test ! -s conftest.err
5983        } && test -s conftest.$ac_objext; then
5984   :
5985 else
5986   echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5990          CXXFLAGS="-g"
5991          cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997
5998 int
5999 main ()
6000 {
6001
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013   (eval "$ac_compile") 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } && {
6020          test -z "$ac_cxx_werror_flag" ||
6021          test ! -s conftest.err
6022        } && test -s conftest.$ac_objext; then
6023   ac_cv_prog_cxx_g=yes
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028
6029 fi
6030
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 fi
6036
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6039 fi
6040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6041 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6042 if test "$ac_test_CXXFLAGS" = set; then
6043   CXXFLAGS=$ac_save_CXXFLAGS
6044 elif test $ac_cv_prog_cxx_g = yes; then
6045   if test "$GXX" = yes; then
6046     CXXFLAGS="-g -O2"
6047   else
6048     CXXFLAGS="-g"
6049   fi
6050 else
6051   if test "$GXX" = yes; then
6052     CXXFLAGS="-O2"
6053   else
6054     CXXFLAGS=
6055   fi
6056 fi
6057 ac_ext=cpp
6058 ac_cpp='$CXXCPP $CPPFLAGS'
6059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6062
6063 depcc="$CXX"  am_compiler_list=
6064
6065 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6067 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6071   # We make a subdir and do the tests there.  Otherwise we can end up
6072   # making bogus files that we don't know about and never remove.  For
6073   # instance it was reported that on HP-UX the gcc test will end up
6074   # making a dummy file named `D' -- because `-MD' means `put the output
6075   # in D'.
6076   mkdir conftest.dir
6077   # Copy depcomp to subdir because otherwise we won't find it if we're
6078   # using a relative directory.
6079   cp "$am_depcomp" conftest.dir
6080   cd conftest.dir
6081   # We will build objects and dependencies in a subdirectory because
6082   # it helps to detect inapplicable dependency modes.  For instance
6083   # both Tru64's cc and ICC support -MD to output dependencies as a
6084   # side effect of compilation, but ICC will put the dependencies in
6085   # the current directory while Tru64 will put them in the object
6086   # directory.
6087   mkdir sub
6088
6089   am_cv_CXX_dependencies_compiler_type=none
6090   if test "$am_compiler_list" = ""; then
6091      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6092   fi
6093   for depmode in $am_compiler_list; do
6094     # Setup a source with many dependencies, because some compilers
6095     # like to wrap large dependency lists on column 80 (with \), and
6096     # we should not choose a depcomp mode which is confused by this.
6097     #
6098     # We need to recreate these files for each test, as the compiler may
6099     # overwrite some of them when testing with obscure command lines.
6100     # This happens at least with the AIX C compiler.
6101     : > sub/conftest.c
6102     for i in 1 2 3 4 5 6; do
6103       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6104       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6105       # Solaris 8's {/usr,}/bin/sh.
6106       touch sub/conftst$i.h
6107     done
6108     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6109
6110     case $depmode in
6111     nosideeffect)
6112       # after this tag, mechanisms are not by side-effect, so they'll
6113       # only be used when explicitly requested
6114       if test "x$enable_dependency_tracking" = xyes; then
6115         continue
6116       else
6117         break
6118       fi
6119       ;;
6120     none) break ;;
6121     esac
6122     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6123     # mode.  It turns out that the SunPro C++ compiler does not properly
6124     # handle `-M -o', and we need to detect this.
6125     if depmode=$depmode \
6126        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6127        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6128        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6129          >/dev/null 2>conftest.err &&
6130        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6131        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6132        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6133        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6134       # icc doesn't choke on unknown options, it will just issue warnings
6135       # or remarks (even with -Werror).  So we grep stderr for any message
6136       # that says an option was ignored or not supported.
6137       # When given -MP, icc 7.0 and 7.1 complain thusly:
6138       #   icc: Command line warning: ignoring option '-M'; no argument required
6139       # The diagnosis changed in icc 8.0:
6140       #   icc: Command line remark: option '-MP' not supported
6141       if (grep 'ignoring option' conftest.err ||
6142           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6143         am_cv_CXX_dependencies_compiler_type=$depmode
6144         break
6145       fi
6146     fi
6147   done
6148
6149   cd ..
6150   rm -rf conftest.dir
6151 else
6152   am_cv_CXX_dependencies_compiler_type=none
6153 fi
6154
6155 fi
6156 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6157 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6158 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6159
6160  if
6161   test "x$enable_dependency_tracking" != xno \
6162   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6163   am__fastdepCXX_TRUE=
6164   am__fastdepCXX_FALSE='#'
6165 else
6166   am__fastdepCXX_TRUE='#'
6167   am__fastdepCXX_FALSE=
6168 fi
6169
6170
6171
6172
6173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6174     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6175     (test "X$CXX" != "Xg++"))) ; then
6176   ac_ext=cpp
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6182 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6183 if test -z "$CXXCPP"; then
6184   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187       # Double quotes because CXXCPP needs to be expanded
6188     for CXXCPP in "$CXX -E" "/lib/cpp"
6189     do
6190       ac_preproc_ok=false
6191 for ac_cxx_preproc_warn_flag in '' yes
6192 do
6193   # Use a header file that comes with gcc, so configuring glibc
6194   # with a fresh cross-compiler works.
6195   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196   # <limits.h> exists even on freestanding compilers.
6197   # On the NeXT, cc -E runs the code through the compiler's parser,
6198   # not just through cpp. "Syntax error" is here to catch this case.
6199   cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 #ifdef __STDC__
6206 # include <limits.h>
6207 #else
6208 # include <assert.h>
6209 #endif
6210                      Syntax error
6211 _ACEOF
6212 if { (ac_try="$ac_cpp conftest.$ac_ext"
6213 case "(($ac_try" in
6214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215   *) ac_try_echo=$ac_try;;
6216 esac
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6219   ac_status=$?
6220   grep -v '^ *+' conftest.er1 >conftest.err
6221   rm -f conftest.er1
6222   cat conftest.err >&5
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); } >/dev/null && {
6225          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6226          test ! -s conftest.err
6227        }; then
6228   :
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233   # Broken: fails on valid input.
6234 continue
6235 fi
6236
6237 rm -f conftest.err conftest.$ac_ext
6238
6239   # OK, works on sane cases.  Now check whether nonexistent headers
6240   # can be detected and how.
6241   cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h.  */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h.  */
6247 #include <ac_nonexistent.h>
6248 _ACEOF
6249 if { (ac_try="$ac_cpp conftest.$ac_ext"
6250 case "(($ac_try" in
6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252   *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } >/dev/null && {
6262          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6263          test ! -s conftest.err
6264        }; then
6265   # Broken: success on invalid input.
6266 continue
6267 else
6268   echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271   # Passes both tests.
6272 ac_preproc_ok=:
6273 break
6274 fi
6275
6276 rm -f conftest.err conftest.$ac_ext
6277
6278 done
6279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6280 rm -f conftest.err conftest.$ac_ext
6281 if $ac_preproc_ok; then
6282   break
6283 fi
6284
6285     done
6286     ac_cv_prog_CXXCPP=$CXXCPP
6287
6288 fi
6289   CXXCPP=$ac_cv_prog_CXXCPP
6290 else
6291   ac_cv_prog_CXXCPP=$CXXCPP
6292 fi
6293 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6294 echo "${ECHO_T}$CXXCPP" >&6; }
6295 ac_preproc_ok=false
6296 for ac_cxx_preproc_warn_flag in '' yes
6297 do
6298   # Use a header file that comes with gcc, so configuring glibc
6299   # with a fresh cross-compiler works.
6300   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301   # <limits.h> exists even on freestanding compilers.
6302   # On the NeXT, cc -E runs the code through the compiler's parser,
6303   # not just through cpp. "Syntax error" is here to catch this case.
6304   cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h.  */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h.  */
6310 #ifdef __STDC__
6311 # include <limits.h>
6312 #else
6313 # include <assert.h>
6314 #endif
6315                      Syntax error
6316 _ACEOF
6317 if { (ac_try="$ac_cpp conftest.$ac_ext"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6324   ac_status=$?
6325   grep -v '^ *+' conftest.er1 >conftest.err
6326   rm -f conftest.er1
6327   cat conftest.err >&5
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } >/dev/null && {
6330          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6331          test ! -s conftest.err
6332        }; then
6333   :
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338   # Broken: fails on valid input.
6339 continue
6340 fi
6341
6342 rm -f conftest.err conftest.$ac_ext
6343
6344   # OK, works on sane cases.  Now check whether nonexistent headers
6345   # can be detected and how.
6346   cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #include <ac_nonexistent.h>
6353 _ACEOF
6354 if { (ac_try="$ac_cpp conftest.$ac_ext"
6355 case "(($ac_try" in
6356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357   *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6361   ac_status=$?
6362   grep -v '^ *+' conftest.er1 >conftest.err
6363   rm -f conftest.er1
6364   cat conftest.err >&5
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); } >/dev/null && {
6367          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6368          test ! -s conftest.err
6369        }; then
6370   # Broken: success on invalid input.
6371 continue
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376   # Passes both tests.
6377 ac_preproc_ok=:
6378 break
6379 fi
6380
6381 rm -f conftest.err conftest.$ac_ext
6382
6383 done
6384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6385 rm -f conftest.err conftest.$ac_ext
6386 if $ac_preproc_ok; then
6387   :
6388 else
6389   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6390 See \`config.log' for more details." >&5
6391 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6392 See \`config.log' for more details." >&2;}
6393    { (exit 1); exit 1; }; }
6394 fi
6395
6396 ac_ext=cpp
6397 ac_cpp='$CXXCPP $CPPFLAGS'
6398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6401
6402 fi
6403
6404
6405 ac_ext=f
6406 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6407 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6409 if test -n "$ac_tool_prefix"; then
6410   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
6411   do
6412     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_F77+set}" = set; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419   if test -n "$F77"; then
6420   ac_cv_prog_F77="$F77" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 F77=$ac_cv_prog_F77
6440 if test -n "$F77"; then
6441   { echo "$as_me:$LINENO: result: $F77" >&5
6442 echo "${ECHO_T}$F77" >&6; }
6443 else
6444   { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6446 fi
6447
6448
6449     test -n "$F77" && break
6450   done
6451 fi
6452 if test -z "$F77"; then
6453   ac_ct_F77=$F77
6454   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
6455 do
6456   # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   if test -n "$ac_ct_F77"; then
6464   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_ac_ct_F77="$ac_prog"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6484 if test -n "$ac_ct_F77"; then
6485   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6486 echo "${ECHO_T}$ac_ct_F77" >&6; }
6487 else
6488   { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6490 fi
6491
6492
6493   test -n "$ac_ct_F77" && break
6494 done
6495
6496   if test "x$ac_ct_F77" = x; then
6497     F77=""
6498   else
6499     case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6502 whose name does not start with the host triplet.  If you think this
6503 configuration is useful to you, please write to autoconf@gnu.org." >&5
6504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6505 whose name does not start with the host triplet.  If you think this
6506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6507 ac_tool_warned=yes ;;
6508 esac
6509     F77=$ac_ct_F77
6510   fi
6511 fi
6512
6513
6514 # Provide some information about the compiler.
6515 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6516 ac_compiler=`set X $ac_compile; echo $2`
6517 { (ac_try="$ac_compiler --version >&5"
6518 case "(($ac_try" in
6519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520   *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523   (eval "$ac_compiler --version >&5") 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }
6527 { (ac_try="$ac_compiler -v >&5"
6528 case "(($ac_try" in
6529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530   *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533   (eval "$ac_compiler -v >&5") 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }
6537 { (ac_try="$ac_compiler -V >&5"
6538 case "(($ac_try" in
6539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540   *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543   (eval "$ac_compiler -V >&5") 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }
6547 rm -f a.out
6548
6549 # If we don't use `.F' as extension, the preprocessor is not run on the
6550 # input file.  (Note that this only needs to work for GNU compilers.)
6551 ac_save_ext=$ac_ext
6552 ac_ext=F
6553 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6554 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6555 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   cat >conftest.$ac_ext <<_ACEOF
6559       program main
6560 #ifndef __GNUC__
6561        choke me
6562 #endif
6563
6564       end
6565 _ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6568 case "(($ac_try" in
6569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570   *) ac_try_echo=$ac_try;;
6571 esac
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573   (eval "$ac_compile") 2>conftest.er1
6574   ac_status=$?
6575   grep -v '^ *+' conftest.er1 >conftest.err
6576   rm -f conftest.er1
6577   cat conftest.err >&5
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); } && {
6580          test -z "$ac_f77_werror_flag" ||
6581          test ! -s conftest.err
6582        } && test -s conftest.$ac_objext; then
6583   ac_compiler_gnu=yes
6584 else
6585   echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588         ac_compiler_gnu=no
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6593
6594 fi
6595 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6596 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6597 ac_ext=$ac_save_ext
6598 ac_test_FFLAGS=${FFLAGS+set}
6599 ac_save_FFLAGS=$FFLAGS
6600 FFLAGS=
6601 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6602 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6603 if test "${ac_cv_prog_f77_g+set}" = set; then
6604   echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606   FFLAGS=-g
6607 cat >conftest.$ac_ext <<_ACEOF
6608       program main
6609
6610       end
6611 _ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (ac_try="$ac_compile"
6614 case "(($ac_try" in
6615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616   *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619   (eval "$ac_compile") 2>conftest.er1
6620   ac_status=$?
6621   grep -v '^ *+' conftest.er1 >conftest.err
6622   rm -f conftest.er1
6623   cat conftest.err >&5
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); } && {
6626          test -z "$ac_f77_werror_flag" ||
6627          test ! -s conftest.err
6628        } && test -s conftest.$ac_objext; then
6629   ac_cv_prog_f77_g=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634         ac_cv_prog_f77_g=no
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638
6639 fi
6640 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6641 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6642 if test "$ac_test_FFLAGS" = set; then
6643   FFLAGS=$ac_save_FFLAGS
6644 elif test $ac_cv_prog_f77_g = yes; then
6645   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6646     FFLAGS="-g -O2"
6647   else
6648     FFLAGS="-g"
6649   fi
6650 else
6651   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6652     FFLAGS="-O2"
6653   else
6654     FFLAGS=
6655   fi
6656 fi
6657
6658 G77=`test $ac_compiler_gnu = yes && echo yes`
6659 ac_ext=c
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6664
6665
6666
6667 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6668
6669 # find the maximum length of command line arguments
6670 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6671 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6672 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675     i=0
6676   teststring="ABCD"
6677
6678   case $build_os in
6679   msdosdjgpp*)
6680     # On DJGPP, this test can blow up pretty badly due to problems in libc
6681     # (any single argument exceeding 2000 bytes causes a buffer overrun
6682     # during glob expansion).  Even if it were fixed, the result of this
6683     # check would be larger than it should be.
6684     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6685     ;;
6686
6687   gnu*)
6688     # Under GNU Hurd, this test is not required because there is
6689     # no limit to the length of command line arguments.
6690     # Libtool will interpret -1 as no limit whatsoever
6691     lt_cv_sys_max_cmd_len=-1;
6692     ;;
6693
6694   cygwin* | mingw*)
6695     # On Win9x/ME, this test blows up -- it succeeds, but takes
6696     # about 5 minutes as the teststring grows exponentially.
6697     # Worse, since 9x/ME are not pre-emptively multitasking,
6698     # you end up with a "frozen" computer, even though with patience
6699     # the test eventually succeeds (with a max line length of 256k).
6700     # Instead, let's just punt: use the minimum linelength reported by
6701     # all of the supported platforms: 8192 (on NT/2K/XP).
6702     lt_cv_sys_max_cmd_len=8192;
6703     ;;
6704
6705   amigaos*)
6706     # On AmigaOS with pdksh, this test takes hours, literally.
6707     # So we just punt and use a minimum line length of 8192.
6708     lt_cv_sys_max_cmd_len=8192;
6709     ;;
6710
6711   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6712     # This has been around since 386BSD, at least.  Likely further.
6713     if test -x /sbin/sysctl; then
6714       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6715     elif test -x /usr/sbin/sysctl; then
6716       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6717     else
6718       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6719     fi
6720     # And add a safety zone
6721     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6723     ;;
6724
6725   interix*)
6726     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6727     lt_cv_sys_max_cmd_len=196608
6728     ;;
6729
6730   osf*)
6731     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733     # nice to cause kernel panics so lets avoid the loop below.
6734     # First set a reasonable default.
6735     lt_cv_sys_max_cmd_len=16384
6736     #
6737     if test -x /sbin/sysconfig; then
6738       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6740       esac
6741     fi
6742     ;;
6743   sco3.2v5*)
6744     lt_cv_sys_max_cmd_len=102400
6745     ;;
6746   sysv5* | sco5v6* | sysv4.2uw2*)
6747     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748     if test -n "$kargmax"; then
6749       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6750     else
6751       lt_cv_sys_max_cmd_len=32768
6752     fi
6753     ;;
6754   *)
6755     # If test is not a shell built-in, we'll probably end up computing a
6756     # maximum length that is only half of the actual maximum length, but
6757     # we can't tell.
6758     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6759     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6760                = "XX$teststring") >/dev/null 2>&1 &&
6761             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6762             lt_cv_sys_max_cmd_len=$new_result &&
6763             test $i != 17 # 1/2 MB should be enough
6764     do
6765       i=`expr $i + 1`
6766       teststring=$teststring$teststring
6767     done
6768     teststring=
6769     # Add a significant safety factor because C++ compilers can tack on massive
6770     # amounts of additional arguments before passing them to the linker.
6771     # It appears as though 1/2 is a usable value.
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6773     ;;
6774   esac
6775
6776 fi
6777
6778 if test -n $lt_cv_sys_max_cmd_len ; then
6779   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6780 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: none" >&5
6783 echo "${ECHO_T}none" >&6; }
6784 fi
6785
6786
6787
6788
6789 # Check for command to grab the raw symbol name followed by C symbol from nm.
6790 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6791 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6792 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795
6796 # These are sane defaults that work on at least a few old systems.
6797 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6798
6799 # Character class describing NM global symbol codes.
6800 symcode='[BCDEGRST]'
6801
6802 # Regexp to match symbols that can be accessed directly from C.
6803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6804
6805 # Transform an extracted symbol line into a proper C declaration
6806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6807
6808 # Transform an extracted symbol line into symbol name and symbol address
6809 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'"
6810
6811 # Define system-specific variables.
6812 case $host_os in
6813 aix*)
6814   symcode='[BCDT]'
6815   ;;
6816 cygwin* | mingw* | pw32*)
6817   symcode='[ABCDGISTW]'
6818   ;;
6819 hpux*) # Its linker distinguishes data from code symbols
6820   if test "$host_cpu" = ia64; then
6821     symcode='[ABCDEGRST]'
6822   fi
6823   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6824   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'"
6825   ;;
6826 linux*)
6827   if test "$host_cpu" = ia64; then
6828     symcode='[ABCDGIRSTW]'
6829     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6830     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'"
6831   fi
6832   ;;
6833 irix* | nonstopux*)
6834   symcode='[BCDEGRST]'
6835   ;;
6836 osf*)
6837   symcode='[BCDEGQRST]'
6838   ;;
6839 solaris*)
6840   symcode='[BDRT]'
6841   ;;
6842 sco3.2v5*)
6843   symcode='[DT]'
6844   ;;
6845 sysv4.2uw2*)
6846   symcode='[DT]'
6847   ;;
6848 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6849   symcode='[ABDT]'
6850   ;;
6851 sysv4)
6852   symcode='[DFNSTU]'
6853   ;;
6854 esac
6855
6856 # Handle CRLF in mingw tool chain
6857 opt_cr=
6858 case $build_os in
6859 mingw*)
6860   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6861   ;;
6862 esac
6863
6864 # If we're using GNU nm, then use its standard symbol codes.
6865 case `$NM -V 2>&1` in
6866 *GNU* | *'with BFD'*)
6867   symcode='[ABCDGIRSTW]' ;;
6868 esac
6869
6870 # Try without a prefix undercore, then with it.
6871 for ac_symprfx in "" "_"; do
6872
6873   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874   symxfrm="\\1 $ac_symprfx\\2 \\2"
6875
6876   # Write the raw and C identifiers.
6877   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6878
6879   # Check to see that the pipe works correctly.
6880   pipe_works=no
6881
6882   rm -f conftest*
6883   cat > conftest.$ac_ext <<EOF
6884 #ifdef __cplusplus
6885 extern "C" {
6886 #endif
6887 char nm_test_var;
6888 void nm_test_func(){}
6889 #ifdef __cplusplus
6890 }
6891 #endif
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 EOF
6894
6895   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896   (eval $ac_compile) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; then
6900     # Now try to grab the symbols.
6901     nlist=conftest.nm
6902     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && test -s "$nlist"; then
6907       # Try sorting and uniquifying the output.
6908       if sort "$nlist" | uniq > "$nlist"T; then
6909         mv -f "$nlist"T "$nlist"
6910       else
6911         rm -f "$nlist"T
6912       fi
6913
6914       # Make sure that we snagged all the symbols we need.
6915       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917           cat <<EOF > conftest.$ac_ext
6918 #ifdef __cplusplus
6919 extern "C" {
6920 #endif
6921
6922 EOF
6923           # Now generate the symbol file.
6924           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6925
6926           cat <<EOF >> conftest.$ac_ext
6927 #if defined (__STDC__) && __STDC__
6928 # define lt_ptr_t void *
6929 #else
6930 # define lt_ptr_t char *
6931 # define const
6932 #endif
6933
6934 /* The mapping between symbol names and symbols. */
6935 const struct {
6936   const char *name;
6937   lt_ptr_t address;
6938 }
6939 lt_preloaded_symbols[] =
6940 {
6941 EOF
6942           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943           cat <<\EOF >> conftest.$ac_ext
6944   {0, (lt_ptr_t) 0}
6945 };
6946
6947 #ifdef __cplusplus
6948 }
6949 #endif
6950 EOF
6951           # Now try linking the two files.
6952           mv conftest.$ac_objext conftstm.$ac_objext
6953           lt_save_LIBS="$LIBS"
6954           lt_save_CFLAGS="$CFLAGS"
6955           LIBS="conftstm.$ac_objext"
6956           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6962             pipe_works=yes
6963           fi
6964           LIBS="$lt_save_LIBS"
6965           CFLAGS="$lt_save_CFLAGS"
6966         else
6967           echo "cannot find nm_test_func in $nlist" >&5
6968         fi
6969       else
6970         echo "cannot find nm_test_var in $nlist" >&5
6971       fi
6972     else
6973       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6974     fi
6975   else
6976     echo "$progname: failed program was:" >&5
6977     cat conftest.$ac_ext >&5
6978   fi
6979   rm -f conftest* conftst*
6980
6981   # Do not use the global_symbol_pipe unless it works.
6982   if test "$pipe_works" = yes; then
6983     break
6984   else
6985     lt_cv_sys_global_symbol_pipe=
6986   fi
6987 done
6988
6989 fi
6990
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992   lt_cv_sys_global_symbol_to_cdecl=
6993 fi
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995   { echo "$as_me:$LINENO: result: failed" >&5
6996 echo "${ECHO_T}failed" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: ok" >&5
6999 echo "${ECHO_T}ok" >&6; }
7000 fi
7001
7002 { echo "$as_me:$LINENO: checking for objdir" >&5
7003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7004 if test "${lt_cv_objdir+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   rm -f .libs 2>/dev/null
7008 mkdir .libs 2>/dev/null
7009 if test -d .libs; then
7010   lt_cv_objdir=.libs
7011 else
7012   # MS-DOS does not allow filenames that begin with a dot.
7013   lt_cv_objdir=_libs
7014 fi
7015 rmdir .libs 2>/dev/null
7016 fi
7017 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7019 objdir=$lt_cv_objdir
7020
7021
7022
7023
7024
7025 case $host_os in
7026 aix3*)
7027   # AIX sometimes has problems with the GCC collect2 program.  For some
7028   # reason, if we set the COLLECT_NAMES environment variable, the problems
7029   # vanish in a puff of smoke.
7030   if test "X${COLLECT_NAMES+set}" != Xset; then
7031     COLLECT_NAMES=
7032     export COLLECT_NAMES
7033   fi
7034   ;;
7035 esac
7036
7037 # Sed substitution that helps us do robust quoting.  It backslashifies
7038 # metacharacters that are still active within double-quoted strings.
7039 Xsed='sed -e 1s/^X//'
7040 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7041
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7044
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7048
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7051
7052 # Constants:
7053 rm="rm -f"
7054
7055 # Global variables:
7056 default_ofile=libtool
7057 can_build_shared=yes
7058
7059 # All known linkers require a `.a' archive for static linking (except MSVC,
7060 # which needs '.lib').
7061 libext=a
7062 ltmain="$ac_aux_dir/ltmain.sh"
7063 ofile="$default_ofile"
7064 with_gnu_ld="$lt_cv_prog_gnu_ld"
7065
7066 if test -n "$ac_tool_prefix"; then
7067   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}ar; ac_word=$2
7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071 if test "${ac_cv_prog_AR+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   if test -n "$AR"; then
7075   ac_cv_prog_AR="$AR" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084     ac_cv_prog_AR="${ac_tool_prefix}ar"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 AR=$ac_cv_prog_AR
7095 if test -n "$AR"; then
7096   { echo "$as_me:$LINENO: result: $AR" >&5
7097 echo "${ECHO_T}$AR" >&6; }
7098 else
7099   { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_AR"; then
7106   ac_ct_AR=$AR
7107   # Extract the first word of "ar", so it can be a program name with args.
7108 set dummy ar; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$ac_ct_AR"; then
7115   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_ac_ct_AR="ar"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7135 if test -n "$ac_ct_AR"; then
7136   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7137 echo "${ECHO_T}$ac_ct_AR" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143   if test "x$ac_ct_AR" = x; then
7144     AR="false"
7145   else
7146     case $cross_compiling:$ac_tool_warned in
7147 yes:)
7148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7149 whose name does not start with the host triplet.  If you think this
7150 configuration is useful to you, please write to autoconf@gnu.org." >&5
7151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet.  If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7154 ac_tool_warned=yes ;;
7155 esac
7156     AR=$ac_ct_AR
7157   fi
7158 else
7159   AR="$ac_cv_prog_AR"
7160 fi
7161
7162 if test -n "$ac_tool_prefix"; then
7163   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_prog_RANLIB+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   if test -n "$RANLIB"; then
7171   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 RANLIB=$ac_cv_prog_RANLIB
7191 if test -n "$RANLIB"; then
7192   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7193 echo "${ECHO_T}$RANLIB" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 fi
7201 if test -z "$ac_cv_prog_RANLIB"; then
7202   ac_ct_RANLIB=$RANLIB
7203   # Extract the first word of "ranlib", so it can be a program name with args.
7204 set dummy ranlib; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   if test -n "$ac_ct_RANLIB"; then
7211   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218   for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_prog_ac_ct_RANLIB="ranlib"
7221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7231 if test -n "$ac_ct_RANLIB"; then
7232   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7233 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7234 else
7235   { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7237 fi
7238
7239   if test "x$ac_ct_RANLIB" = x; then
7240     RANLIB=":"
7241   else
7242     case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7245 whose name does not start with the host triplet.  If you think this
7246 configuration is useful to you, please write to autoconf@gnu.org." >&5
7247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7248 whose name does not start with the host triplet.  If you think this
7249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252     RANLIB=$ac_ct_RANLIB
7253   fi
7254 else
7255   RANLIB="$ac_cv_prog_RANLIB"
7256 fi
7257
7258 if test -n "$ac_tool_prefix"; then
7259   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}strip; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_STRIP+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   if test -n "$STRIP"; then
7267   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274   for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 STRIP=$ac_cv_prog_STRIP
7287 if test -n "$STRIP"; then
7288   { echo "$as_me:$LINENO: result: $STRIP" >&5
7289 echo "${ECHO_T}$STRIP" >&6; }
7290 else
7291   { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_STRIP"; then
7298   ac_ct_STRIP=$STRIP
7299   # Extract the first word of "strip", so it can be a program name with args.
7300 set dummy strip; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   if test -n "$ac_ct_STRIP"; then
7307   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314   for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_ac_ct_STRIP="strip"
7317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7327 if test -n "$ac_ct_STRIP"; then
7328   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7329 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7333 fi
7334
7335   if test "x$ac_ct_STRIP" = x; then
7336     STRIP=":"
7337   else
7338     case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7341 whose name does not start with the host triplet.  If you think this
7342 configuration is useful to you, please write to autoconf@gnu.org." >&5
7343 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7344 whose name does not start with the host triplet.  If you think this
7345 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348     STRIP=$ac_ct_STRIP
7349   fi
7350 else
7351   STRIP="$ac_cv_prog_STRIP"
7352 fi
7353
7354
7355 old_CC="$CC"
7356 old_CFLAGS="$CFLAGS"
7357
7358 # Set sane defaults for various variables
7359 test -z "$AR" && AR=ar
7360 test -z "$AR_FLAGS" && AR_FLAGS=cru
7361 test -z "$AS" && AS=as
7362 test -z "$CC" && CC=cc
7363 test -z "$LTCC" && LTCC=$CC
7364 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7365 test -z "$DLLTOOL" && DLLTOOL=dlltool
7366 test -z "$LD" && LD=ld
7367 test -z "$LN_S" && LN_S="ln -s"
7368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7369 test -z "$NM" && NM=nm
7370 test -z "$SED" && SED=sed
7371 test -z "$OBJDUMP" && OBJDUMP=objdump
7372 test -z "$RANLIB" && RANLIB=:
7373 test -z "$STRIP" && STRIP=:
7374 test -z "$ac_objext" && ac_objext=o
7375
7376 # Determine commands to create old-style static archives.
7377 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7378 old_postinstall_cmds='chmod 644 $oldlib'
7379 old_postuninstall_cmds=
7380
7381 if test -n "$RANLIB"; then
7382   case $host_os in
7383   openbsd*)
7384     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7385     ;;
7386   *)
7387     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7388     ;;
7389   esac
7390   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7391 fi
7392
7393 for cc_temp in $compiler""; do
7394   case $cc_temp in
7395     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7396     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7397     \-*) ;;
7398     *) break;;
7399   esac
7400 done
7401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7402
7403
7404 # Only perform the check for file, if the check method requires it
7405 case $deplibs_check_method in
7406 file_magic*)
7407   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7408     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7409 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   case $MAGIC_CMD in
7414 [\\/*] |  ?:[\\/]*)
7415   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7416   ;;
7417 *)
7418   lt_save_MAGIC_CMD="$MAGIC_CMD"
7419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421   for ac_dir in $ac_dummy; do
7422     IFS="$lt_save_ifs"
7423     test -z "$ac_dir" && ac_dir=.
7424     if test -f $ac_dir/${ac_tool_prefix}file; then
7425       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7426       if test -n "$file_magic_test_file"; then
7427         case $deplibs_check_method in
7428         "file_magic "*)
7429           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432             $EGREP "$file_magic_regex" > /dev/null; then
7433             :
7434           else
7435             cat <<EOF 1>&2
7436
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such.  This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem.  Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7445
7446 EOF
7447           fi ;;
7448         esac
7449       fi
7450       break
7451     fi
7452   done
7453   IFS="$lt_save_ifs"
7454   MAGIC_CMD="$lt_save_MAGIC_CMD"
7455   ;;
7456 esac
7457 fi
7458
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7462 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7467
7468 if test -z "$lt_cv_path_MAGIC_CMD"; then
7469   if test -n "$ac_tool_prefix"; then
7470     { echo "$as_me:$LINENO: checking for file" >&5
7471 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7472 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   case $MAGIC_CMD in
7476 [\\/*] |  ?:[\\/]*)
7477   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7478   ;;
7479 *)
7480   lt_save_MAGIC_CMD="$MAGIC_CMD"
7481   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7482   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7483   for ac_dir in $ac_dummy; do
7484     IFS="$lt_save_ifs"
7485     test -z "$ac_dir" && ac_dir=.
7486     if test -f $ac_dir/file; then
7487       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7488       if test -n "$file_magic_test_file"; then
7489         case $deplibs_check_method in
7490         "file_magic "*)
7491           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7492           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7494             $EGREP "$file_magic_regex" > /dev/null; then
7495             :
7496           else
7497             cat <<EOF 1>&2
7498
7499 *** Warning: the command libtool uses to detect shared libraries,
7500 *** $file_magic_cmd, produces output that libtool cannot recognize.
7501 *** The result is that libtool may fail to recognize shared libraries
7502 *** as such.  This will affect the creation of libtool libraries that
7503 *** depend on shared libraries, but programs linked with such libtool
7504 *** libraries will work regardless of this problem.  Nevertheless, you
7505 *** may want to report the problem to your system manager and/or to
7506 *** bug-libtool@gnu.org
7507
7508 EOF
7509           fi ;;
7510         esac
7511       fi
7512       break
7513     fi
7514   done
7515   IFS="$lt_save_ifs"
7516   MAGIC_CMD="$lt_save_MAGIC_CMD"
7517   ;;
7518 esac
7519 fi
7520
7521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522 if test -n "$MAGIC_CMD"; then
7523   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7524 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7525 else
7526   { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7528 fi
7529
7530   else
7531     MAGIC_CMD=:
7532   fi
7533 fi
7534
7535   fi
7536   ;;
7537 esac
7538
7539 enable_dlopen=yes
7540 enable_win32_dll=no
7541
7542 # Check whether --enable-libtool-lock was given.
7543 if test "${enable_libtool_lock+set}" = set; then
7544   enableval=$enable_libtool_lock;
7545 fi
7546
7547 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7548
7549
7550 # Check whether --with-pic was given.
7551 if test "${with_pic+set}" = set; then
7552   withval=$with_pic; pic_mode="$withval"
7553 else
7554   pic_mode=default
7555 fi
7556
7557 test -z "$pic_mode" && pic_mode=default
7558
7559 # Use C for the default configuration in the libtool script
7560 tagname=
7561 lt_save_CC="$CC"
7562 ac_ext=c
7563 ac_cpp='$CPP $CPPFLAGS'
7564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567
7568
7569 # Source file extension for C test sources.
7570 ac_ext=c
7571
7572 # Object file extension for compiled C test sources.
7573 objext=o
7574 objext=$objext
7575
7576 # Code to be used in simple compile tests
7577 lt_simple_compile_test_code="int some_variable = 0;\n"
7578
7579 # Code to be used in simple link tests
7580 lt_simple_link_test_code='int main(){return(0);}\n'
7581
7582
7583 # If no C compiler was specified, use CC.
7584 LTCC=${LTCC-"$CC"}
7585
7586 # If no C compiler flags were specified, use CFLAGS.
7587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7588
7589 # Allow CC to be a program name with arguments.
7590 compiler=$CC
7591
7592
7593 # save warnings/boilerplate of simple test code
7594 ac_outfile=conftest.$ac_objext
7595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7597 _lt_compiler_boilerplate=`cat conftest.err`
7598 $rm conftest*
7599
7600 ac_outfile=conftest.$ac_objext
7601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7603 _lt_linker_boilerplate=`cat conftest.err`
7604 $rm conftest*
7605
7606
7607
7608 lt_prog_compiler_no_builtin_flag=
7609
7610 if test "$GCC" = yes; then
7611   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7612
7613
7614 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   lt_cv_prog_compiler_rtti_exceptions=no
7620   ac_outfile=conftest.$ac_objext
7621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622    lt_compiler_flag="-fno-rtti -fno-exceptions"
7623    # Insert the option either (1) after the last *FLAGS variable, or
7624    # (2) before a word containing "conftest.", or (3) at the end.
7625    # Note that $ac_compile itself does not contain backslashes and begins
7626    # with a dollar sign (not a hyphen), so the echo should work correctly.
7627    # The option is referenced via a variable to avoid confusing sed.
7628    lt_compile=`echo "$ac_compile" | $SED \
7629    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631    -e 's:$: $lt_compiler_flag:'`
7632    (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633    (eval "$lt_compile" 2>conftest.err)
7634    ac_status=$?
7635    cat conftest.err >&5
7636    echo "$as_me:7636: \$? = $ac_status" >&5
7637    if (exit $ac_status) && test -s "$ac_outfile"; then
7638      # The compiler can only warn and ignore the option if not recognized
7639      # So say no if there are warnings other than the usual output.
7640      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643        lt_cv_prog_compiler_rtti_exceptions=yes
7644      fi
7645    fi
7646    $rm conftest*
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7651
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7654 else
7655     :
7656 fi
7657
7658 fi
7659
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7663
7664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7666
7667   if test "$GCC" = yes; then
7668     lt_prog_compiler_wl='-Wl,'
7669     lt_prog_compiler_static='-static'
7670
7671     case $host_os in
7672       aix*)
7673       # All AIX code is PIC.
7674       if test "$host_cpu" = ia64; then
7675         # AIX 5 now supports IA64 processor
7676         lt_prog_compiler_static='-Bstatic'
7677       fi
7678       ;;
7679
7680     amigaos*)
7681       # FIXME: we need at least 68020 code to build shared libraries, but
7682       # adding the `-m68020' flag to GCC prevents building anything better,
7683       # like `-m68040'.
7684       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7685       ;;
7686
7687     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688       # PIC is the default for these OSes.
7689       ;;
7690
7691     mingw* | pw32* | os2*)
7692       # This hack is so that the source file can tell whether it is being
7693       # built for inclusion in a dll (and should export symbols for example).
7694       lt_prog_compiler_pic='-DDLL_EXPORT'
7695       ;;
7696
7697     darwin* | rhapsody*)
7698       # PIC is the default on this platform
7699       # Common symbols not allowed in MH_DYLIB files
7700       lt_prog_compiler_pic='-fno-common'
7701       ;;
7702
7703     interix3*)
7704       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7705       # Instead, we relocate shared libraries at runtime.
7706       ;;
7707
7708     msdosdjgpp*)
7709       # Just because we use GCC doesn't mean we suddenly get shared libraries
7710       # on systems that don't support them.
7711       lt_prog_compiler_can_build_shared=no
7712       enable_shared=no
7713       ;;
7714
7715     sysv4*MP*)
7716       if test -d /usr/nec; then
7717         lt_prog_compiler_pic=-Kconform_pic
7718       fi
7719       ;;
7720
7721     hpux*)
7722       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723       # not for PA HP-UX.
7724       case $host_cpu in
7725       hppa*64*|ia64*)
7726         # +Z the default
7727         ;;
7728       *)
7729         lt_prog_compiler_pic='-fPIC'
7730         ;;
7731       esac
7732       ;;
7733
7734     *)
7735       lt_prog_compiler_pic='-fPIC'
7736       ;;
7737     esac
7738   else
7739     # PORTME Check for flag to pass linker flags through the system compiler.
7740     case $host_os in
7741     aix*)
7742       lt_prog_compiler_wl='-Wl,'
7743       if test "$host_cpu" = ia64; then
7744         # AIX 5 now supports IA64 processor
7745         lt_prog_compiler_static='-Bstatic'
7746       else
7747         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7748       fi
7749       ;;
7750       darwin*)
7751         # PIC is the default on this platform
7752         # Common symbols not allowed in MH_DYLIB files
7753        case $cc_basename in
7754          xlc*)
7755          lt_prog_compiler_pic='-qnocommon'
7756          lt_prog_compiler_wl='-Wl,'
7757          ;;
7758        esac
7759        ;;
7760
7761     mingw* | pw32* | os2*)
7762       # This hack is so that the source file can tell whether it is being
7763       # built for inclusion in a dll (and should export symbols for example).
7764       lt_prog_compiler_pic='-DDLL_EXPORT'
7765       ;;
7766
7767     hpux9* | hpux10* | hpux11*)
7768       lt_prog_compiler_wl='-Wl,'
7769       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7770       # not for PA HP-UX.
7771       case $host_cpu in
7772       hppa*64*|ia64*)
7773         # +Z the default
7774         ;;
7775       *)
7776         lt_prog_compiler_pic='+Z'
7777         ;;
7778       esac
7779       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7780       lt_prog_compiler_static='${wl}-a ${wl}archive'
7781       ;;
7782
7783     irix5* | irix6* | nonstopux*)
7784       lt_prog_compiler_wl='-Wl,'
7785       # PIC (with -KPIC) is the default.
7786       lt_prog_compiler_static='-non_shared'
7787       ;;
7788
7789     newsos6)
7790       lt_prog_compiler_pic='-KPIC'
7791       lt_prog_compiler_static='-Bstatic'
7792       ;;
7793
7794     linux*)
7795       case $cc_basename in
7796       icc* | ecc*)
7797         lt_prog_compiler_wl='-Wl,'
7798         lt_prog_compiler_pic='-KPIC'
7799         lt_prog_compiler_static='-static'
7800         ;;
7801       pgcc* | pgf77* | pgf90* | pgf95*)
7802         # Portland Group compilers (*not* the Pentium gcc compiler,
7803         # which looks to be a dead project)
7804         lt_prog_compiler_wl='-Wl,'
7805         lt_prog_compiler_pic='-fpic'
7806         lt_prog_compiler_static='-Bstatic'
7807         ;;
7808       ccc*)
7809         lt_prog_compiler_wl='-Wl,'
7810         # All Alpha code is PIC.
7811         lt_prog_compiler_static='-non_shared'
7812         ;;
7813       esac
7814       ;;
7815
7816     osf3* | osf4* | osf5*)
7817       lt_prog_compiler_wl='-Wl,'
7818       # All OSF/1 code is PIC.
7819       lt_prog_compiler_static='-non_shared'
7820       ;;
7821
7822     solaris*)
7823       lt_prog_compiler_pic='-KPIC'
7824       lt_prog_compiler_static='-Bstatic'
7825       case $cc_basename in
7826       f77* | f90* | f95*)
7827         lt_prog_compiler_wl='-Qoption ld ';;
7828       *)
7829         lt_prog_compiler_wl='-Wl,';;
7830       esac
7831       ;;
7832
7833     sunos4*)
7834       lt_prog_compiler_wl='-Qoption ld '
7835       lt_prog_compiler_pic='-PIC'
7836       lt_prog_compiler_static='-Bstatic'
7837       ;;
7838
7839     sysv4 | sysv4.2uw2* | sysv4.3*)
7840       lt_prog_compiler_wl='-Wl,'
7841       lt_prog_compiler_pic='-KPIC'
7842       lt_prog_compiler_static='-Bstatic'
7843       ;;
7844
7845     sysv4*MP*)
7846       if test -d /usr/nec ;then
7847         lt_prog_compiler_pic='-Kconform_pic'
7848         lt_prog_compiler_static='-Bstatic'
7849       fi
7850       ;;
7851
7852     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_pic='-KPIC'
7855       lt_prog_compiler_static='-Bstatic'
7856       ;;
7857
7858     unicos*)
7859       lt_prog_compiler_wl='-Wl,'
7860       lt_prog_compiler_can_build_shared=no
7861       ;;
7862
7863     uts4*)
7864       lt_prog_compiler_pic='-pic'
7865       lt_prog_compiler_static='-Bstatic'
7866       ;;
7867
7868     *)
7869       lt_prog_compiler_can_build_shared=no
7870       ;;
7871     esac
7872   fi
7873
7874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7875 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7876
7877 #
7878 # Check to make sure the PIC flag actually works.
7879 #
7880 if test -n "$lt_prog_compiler_pic"; then
7881
7882 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7884 if test "${lt_prog_compiler_pic_works+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   lt_prog_compiler_pic_works=no
7888   ac_outfile=conftest.$ac_objext
7889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7890    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7891    # Insert the option either (1) after the last *FLAGS variable, or
7892    # (2) before a word containing "conftest.", or (3) at the end.
7893    # Note that $ac_compile itself does not contain backslashes and begins
7894    # with a dollar sign (not a hyphen), so the echo should work correctly.
7895    # The option is referenced via a variable to avoid confusing sed.
7896    lt_compile=`echo "$ac_compile" | $SED \
7897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899    -e 's:$: $lt_compiler_flag:'`
7900    (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901    (eval "$lt_compile" 2>conftest.err)
7902    ac_status=$?
7903    cat conftest.err >&5
7904    echo "$as_me:7904: \$? = $ac_status" >&5
7905    if (exit $ac_status) && test -s "$ac_outfile"; then
7906      # The compiler can only warn and ignore the option if not recognized
7907      # So say no if there are warnings other than the usual output.
7908      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7909      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7911        lt_prog_compiler_pic_works=yes
7912      fi
7913    fi
7914    $rm conftest*
7915
7916 fi
7917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7918 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7919
7920 if test x"$lt_prog_compiler_pic_works" = xyes; then
7921     case $lt_prog_compiler_pic in
7922      "" | " "*) ;;
7923      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7924      esac
7925 else
7926     lt_prog_compiler_pic=
7927      lt_prog_compiler_can_build_shared=no
7928 fi
7929
7930 fi
7931 case $host_os in
7932   # For platforms which do not support PIC, -DPIC is meaningless:
7933   *djgpp*)
7934     lt_prog_compiler_pic=
7935     ;;
7936   *)
7937     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7938     ;;
7939 esac
7940
7941 #
7942 # Check to make sure the static flag actually works.
7943 #
7944 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7945 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7946 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7947 if test "${lt_prog_compiler_static_works+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   lt_prog_compiler_static_works=no
7951    save_LDFLAGS="$LDFLAGS"
7952    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7953    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7954    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7955      # The linker can only warn and ignore the option if not recognized
7956      # So say no if there are warnings
7957      if test -s conftest.err; then
7958        # Append any errors to the config.log.
7959        cat conftest.err 1>&5
7960        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7961        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7962        if diff conftest.exp conftest.er2 >/dev/null; then
7963          lt_prog_compiler_static_works=yes
7964        fi
7965      else
7966        lt_prog_compiler_static_works=yes
7967      fi
7968    fi
7969    $rm conftest*
7970    LDFLAGS="$save_LDFLAGS"
7971
7972 fi
7973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7974 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7975
7976 if test x"$lt_prog_compiler_static_works" = xyes; then
7977     :
7978 else
7979     lt_prog_compiler_static=
7980 fi
7981
7982
7983 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   lt_cv_prog_compiler_c_o=no
7989    $rm -r conftest 2>/dev/null
7990    mkdir conftest
7991    cd conftest
7992    mkdir out
7993    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7994
7995    lt_compiler_flag="-o out/conftest2.$ac_objext"
7996    # Insert the option either (1) after the last *FLAGS variable, or
7997    # (2) before a word containing "conftest.", or (3) at the end.
7998    # Note that $ac_compile itself does not contain backslashes and begins
7999    # with a dollar sign (not a hyphen), so the echo should work correctly.
8000    lt_compile=`echo "$ac_compile" | $SED \
8001    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003    -e 's:$: $lt_compiler_flag:'`
8004    (eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
8005    (eval "$lt_compile" 2>out/conftest.err)
8006    ac_status=$?
8007    cat out/conftest.err >&5
8008    echo "$as_me:8008: \$? = $ac_status" >&5
8009    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8010    then
8011      # The compiler can only warn and ignore the option if not recognized
8012      # So say no if there are warnings
8013      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8014      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016        lt_cv_prog_compiler_c_o=yes
8017      fi
8018    fi
8019    chmod u+w . 2>&5
8020    $rm conftest*
8021    # SGI C++ compiler will create directory out/ii_files/ for
8022    # template instantiation
8023    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8024    $rm out/* && rmdir out
8025    cd ..
8026    rmdir conftest
8027    $rm conftest*
8028
8029 fi
8030 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8031 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8032
8033
8034 hard_links="nottested"
8035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036   # do not overwrite the value of need_locks provided by the user
8037   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8039   hard_links=yes
8040   $rm conftest*
8041   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8042   touch conftest.a
8043   ln conftest.a conftest.b 2>&5 || hard_links=no
8044   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045   { echo "$as_me:$LINENO: result: $hard_links" >&5
8046 echo "${ECHO_T}$hard_links" >&6; }
8047   if test "$hard_links" = no; then
8048     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8050     need_locks=warn
8051   fi
8052 else
8053   need_locks=no
8054 fi
8055
8056 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8058
8059   runpath_var=
8060   allow_undefined_flag=
8061   enable_shared_with_static_runtimes=no
8062   archive_cmds=
8063   archive_expsym_cmds=
8064   old_archive_From_new_cmds=
8065   old_archive_from_expsyms_cmds=
8066   export_dynamic_flag_spec=
8067   whole_archive_flag_spec=
8068   thread_safe_flag_spec=
8069   hardcode_libdir_flag_spec=
8070   hardcode_libdir_flag_spec_ld=
8071   hardcode_libdir_separator=
8072   hardcode_direct=no
8073   hardcode_minus_L=no
8074   hardcode_shlibpath_var=unsupported
8075   link_all_deplibs=unknown
8076   hardcode_automatic=no
8077   module_cmds=
8078   module_expsym_cmds=
8079   always_export_symbols=no
8080   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081   # include_expsyms should be a list of space-separated symbols to be *always*
8082   # included in the symbol list
8083   include_expsyms=
8084   # exclude_expsyms can be an extended regexp of symbols to exclude
8085   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8086   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8087   # as well as any symbol that contains `d'.
8088   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8089   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8090   # platforms (ab)use it in PIC code, but their linkers get confused if
8091   # the symbol is explicitly referenced.  Since portable code cannot
8092   # rely on this symbol name, it's probably fine to never include it in
8093   # preloaded symbol tables.
8094   extract_expsyms_cmds=
8095   # Just being paranoid about ensuring that cc_basename is set.
8096   for cc_temp in $compiler""; do
8097   case $cc_temp in
8098     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8099     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8100     \-*) ;;
8101     *) break;;
8102   esac
8103 done
8104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8105
8106   case $host_os in
8107   cygwin* | mingw* | pw32*)
8108     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8109     # When not using gcc, we currently assume that we are using
8110     # Microsoft Visual C++.
8111     if test "$GCC" != yes; then
8112       with_gnu_ld=no
8113     fi
8114     ;;
8115   interix*)
8116     # we just hope/assume this is gcc and not c89 (= MSVC++)
8117     with_gnu_ld=yes
8118     ;;
8119   openbsd*)
8120     with_gnu_ld=no
8121     ;;
8122   esac
8123
8124   ld_shlibs=yes
8125   if test "$with_gnu_ld" = yes; then
8126     # If archive_cmds runs LD, not CC, wlarc should be empty
8127     wlarc='${wl}'
8128
8129     # Set some defaults for GNU ld with shared library support. These
8130     # are reset later if shared libraries are not supported. Putting them
8131     # here allows them to be overridden if necessary.
8132     runpath_var=LD_RUN_PATH
8133     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8134     export_dynamic_flag_spec='${wl}--export-dynamic'
8135     # ancient GNU ld didn't support --whole-archive et. al.
8136     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8137         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8138       else
8139         whole_archive_flag_spec=
8140     fi
8141     supports_anon_versioning=no
8142     case `$LD -v 2>/dev/null` in
8143       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8144       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8145       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8146       *\ 2.11.*) ;; # other 2.11 versions
8147       *) supports_anon_versioning=yes ;;
8148     esac
8149
8150     # See if GNU ld supports shared libraries.
8151     case $host_os in
8152     aix3* | aix4* | aix5*)
8153       # On AIX/PPC, the GNU linker is very broken
8154       if test "$host_cpu" != ia64; then
8155         ld_shlibs=no
8156         cat <<EOF 1>&2
8157
8158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8159 *** to be unable to reliably create shared libraries on AIX.
8160 *** Therefore, libtool is disabling shared libraries support.  If you
8161 *** really care for shared libraries, you may want to modify your PATH
8162 *** so that a non-GNU linker is found, and then restart.
8163
8164 EOF
8165       fi
8166       ;;
8167
8168     amigaos*)
8169       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)'
8170       hardcode_libdir_flag_spec='-L$libdir'
8171       hardcode_minus_L=yes
8172
8173       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174       # that the semantics of dynamic libraries on AmigaOS, at least up
8175       # to version 4, is to share data among multiple programs linked
8176       # with the same dynamic library.  Since this doesn't match the
8177       # behavior of shared libraries on other platforms, we can't use
8178       # them.
8179       ld_shlibs=no
8180       ;;
8181
8182     beos*)
8183       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184         allow_undefined_flag=unsupported
8185         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186         # support --undefined.  This deserves some investigation.  FIXME
8187         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188       else
8189         ld_shlibs=no
8190       fi
8191       ;;
8192
8193     cygwin* | mingw* | pw32*)
8194       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195       # as there is no search path for DLLs.
8196       hardcode_libdir_flag_spec='-L$libdir'
8197       allow_undefined_flag=unsupported
8198       always_export_symbols=no
8199       enable_shared_with_static_runtimes=yes
8200       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8201
8202       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8203         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8204         # If the export-symbols file already is a .def file (1st line
8205         # is EXPORTS), use it as is; otherwise, prepend...
8206         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207           cp $export_symbols $output_objdir/$soname.def;
8208         else
8209           echo EXPORTS > $output_objdir/$soname.def;
8210           cat $export_symbols >> $output_objdir/$soname.def;
8211         fi~
8212         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8213       else
8214         ld_shlibs=no
8215       fi
8216       ;;
8217
8218     interix3*)
8219       hardcode_direct=no
8220       hardcode_shlibpath_var=no
8221       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8222       export_dynamic_flag_spec='${wl}-E'
8223       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8224       # Instead, shared libraries are loaded at an image base (0x10000000 by
8225       # default) and relocated if they conflict, which is a slow very memory
8226       # consuming and fragmenting process.  To avoid this, we pick a random,
8227       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8228       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8229       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8230       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'
8231       ;;
8232
8233     linux*)
8234       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235         tmp_addflag=
8236         case $cc_basename,$host_cpu in
8237         pgcc*)                          # Portland Group C compiler
8238           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'
8239           tmp_addflag=' $pic_flag'
8240           ;;
8241         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8242           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'
8243           tmp_addflag=' $pic_flag -Mnomain' ;;
8244         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8245           tmp_addflag=' -i_dynamic' ;;
8246         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8247           tmp_addflag=' -i_dynamic -nofor_main' ;;
8248         ifc* | ifort*)                  # Intel Fortran compiler
8249           tmp_addflag=' -nofor_main' ;;
8250         esac
8251         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8252
8253         if test $supports_anon_versioning = yes; then
8254           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8255   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256   $echo "local: *; };" >> $output_objdir/$libname.ver~
8257           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8258         fi
8259       else
8260         ld_shlibs=no
8261       fi
8262       ;;
8263
8264     netbsd*)
8265       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8266         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8267         wlarc=
8268       else
8269         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8271       fi
8272       ;;
8273
8274     solaris*)
8275       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8276         ld_shlibs=no
8277         cat <<EOF 1>&2
8278
8279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8280 *** create shared libraries on Solaris systems.  Therefore, libtool
8281 *** is disabling shared libraries support.  We urge you to upgrade GNU
8282 *** binutils to release 2.9.1 or newer.  Another option is to modify
8283 *** your PATH or compiler configuration so that the native linker is
8284 *** used, and then restart.
8285
8286 EOF
8287       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8288         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8290       else
8291         ld_shlibs=no
8292       fi
8293       ;;
8294
8295     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8296       case `$LD -v 2>&1` in
8297         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8298         ld_shlibs=no
8299         cat <<_LT_EOF 1>&2
8300
8301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8302 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8303 *** is disabling shared libraries support.  We urge you to upgrade GNU
8304 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8305 *** your PATH or compiler configuration so that the native linker is
8306 *** used, and then restart.
8307
8308 _LT_EOF
8309         ;;
8310         *)
8311           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8313             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8314             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8315           else
8316             ld_shlibs=no
8317           fi
8318         ;;
8319       esac
8320       ;;
8321
8322     sunos4*)
8323       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8324       wlarc=
8325       hardcode_direct=yes
8326       hardcode_shlibpath_var=no
8327       ;;
8328
8329     *)
8330       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8331         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8332         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8333       else
8334         ld_shlibs=no
8335       fi
8336       ;;
8337     esac
8338
8339     if test "$ld_shlibs" = no; then
8340       runpath_var=
8341       hardcode_libdir_flag_spec=
8342       export_dynamic_flag_spec=
8343       whole_archive_flag_spec=
8344     fi
8345   else
8346     # PORTME fill in a description of your system's linker (not GNU ld)
8347     case $host_os in
8348     aix3*)
8349       allow_undefined_flag=unsupported
8350       always_export_symbols=yes
8351       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'
8352       # Note: this linker hardcodes the directories in LIBPATH if there
8353       # are no directories specified by -L.
8354       hardcode_minus_L=yes
8355       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8356         # Neither direct hardcoding nor static linking is supported with a
8357         # broken collect2.
8358         hardcode_direct=unsupported
8359       fi
8360       ;;
8361
8362     aix4* | aix5*)
8363       if test "$host_cpu" = ia64; then
8364         # On IA64, the linker does run time linking by default, so we don't
8365         # have to do anything special.
8366         aix_use_runtimelinking=no
8367         exp_sym_flag='-Bexport'
8368         no_entry_flag=""
8369       else
8370         # If we're using GNU nm, then we don't want the "-C" option.
8371         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8372         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8373           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'
8374         else
8375           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'
8376         fi
8377         aix_use_runtimelinking=no
8378
8379         # Test if we are trying to use run time linking or normal
8380         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8381         # need to do runtime linking.
8382         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8383           for ld_flag in $LDFLAGS; do
8384           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8385             aix_use_runtimelinking=yes
8386             break
8387           fi
8388           done
8389           ;;
8390         esac
8391
8392         exp_sym_flag='-bexport'
8393         no_entry_flag='-bnoentry'
8394       fi
8395
8396       # When large executables or shared objects are built, AIX ld can
8397       # have problems creating the table of contents.  If linking a library
8398       # or program results in "error TOC overflow" add -mminimal-toc to
8399       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8400       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8401
8402       archive_cmds=''
8403       hardcode_direct=yes
8404       hardcode_libdir_separator=':'
8405       link_all_deplibs=yes
8406
8407       if test "$GCC" = yes; then
8408         case $host_os in aix4.[012]|aix4.[012].*)
8409         # We only want to do this on AIX 4.2 and lower, the check
8410         # below for broken collect2 doesn't work under 4.3+
8411           collect2name=`${CC} -print-prog-name=collect2`
8412           if test -f "$collect2name" && \
8413            strings "$collect2name" | grep resolve_lib_name >/dev/null
8414           then
8415           # We have reworked collect2
8416           hardcode_direct=yes
8417           else
8418           # We have old collect2
8419           hardcode_direct=unsupported
8420           # It fails to find uninstalled libraries when the uninstalled
8421           # path is not listed in the libpath.  Setting hardcode_minus_L
8422           # to unsupported forces relinking
8423           hardcode_minus_L=yes
8424           hardcode_libdir_flag_spec='-L$libdir'
8425           hardcode_libdir_separator=
8426           fi
8427           ;;
8428         esac
8429         shared_flag='-shared'
8430         if test "$aix_use_runtimelinking" = yes; then
8431           shared_flag="$shared_flag "'${wl}-G'
8432         fi
8433       else
8434         # not using gcc
8435         if test "$host_cpu" = ia64; then
8436         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437         # chokes on -Wl,-G. The following line is correct:
8438           shared_flag='-G'
8439         else
8440           if test "$aix_use_runtimelinking" = yes; then
8441             shared_flag='${wl}-G'
8442           else
8443             shared_flag='${wl}-bM:SRE'
8444           fi
8445         fi
8446       fi
8447
8448       # It seems that -bexpall does not export symbols beginning with
8449       # underscore (_), so it is better to generate a list of symbols to export.
8450       always_export_symbols=yes
8451       if test "$aix_use_runtimelinking" = yes; then
8452         # Warning - without using the other runtime loading flags (-brtl),
8453         # -berok will link without error, but may produce a broken library.
8454         allow_undefined_flag='-berok'
8455        # Determine the default libpath from the value encoded in an empty executable.
8456        cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 int
8464 main ()
8465 {
8466
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8473 case "(($ac_try" in
8474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475   *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478   (eval "$ac_link") 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } && {
8485          test -z "$ac_c_werror_flag" ||
8486          test ! -s conftest.err
8487        } && test -s conftest$ac_exeext &&
8488        $as_test_x conftest$ac_exeext; then
8489
8490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8491 }'`
8492 # Check for a 64-bit object if we didn't find anything.
8493 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; }
8494 }'`; fi
8495 else
8496   echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8498
8499
8500 fi
8501
8502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8503       conftest$ac_exeext conftest.$ac_ext
8504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505
8506        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507         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"
8508        else
8509         if test "$host_cpu" = ia64; then
8510           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8511           allow_undefined_flag="-z nodefs"
8512           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"
8513         else
8514          # Determine the default libpath from the value encoded in an empty executable.
8515          cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521
8522 int
8523 main ()
8524 {
8525
8526   ;
8527   return 0;
8528 }
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534   *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537   (eval "$ac_link") 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } && {
8544          test -z "$ac_c_werror_flag" ||
8545          test ! -s conftest.err
8546        } && test -s conftest$ac_exeext &&
8547        $as_test_x conftest$ac_exeext; then
8548
8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8550 }'`
8551 # Check for a 64-bit object if we didn't find anything.
8552 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; }
8553 }'`; fi
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8562       conftest$ac_exeext conftest.$ac_ext
8563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8564
8565          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8566           # Warning - without using the other run time loading flags,
8567           # -berok will link without error, but may produce a broken library.
8568           no_undefined_flag=' ${wl}-bernotok'
8569           allow_undefined_flag=' ${wl}-berok'
8570           # Exported symbols can be pulled into shared objects from archives
8571           whole_archive_flag_spec='$convenience'
8572           archive_cmds_need_lc=yes
8573           # This is similar to how AIX traditionally builds its shared libraries.
8574           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'
8575         fi
8576       fi
8577       ;;
8578
8579     amigaos*)
8580       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)'
8581       hardcode_libdir_flag_spec='-L$libdir'
8582       hardcode_minus_L=yes
8583       # see comment about different semantics on the GNU ld section
8584       ld_shlibs=no
8585       ;;
8586
8587     bsdi[45]*)
8588       export_dynamic_flag_spec=-rdynamic
8589       ;;
8590
8591     cygwin* | mingw* | pw32*)
8592       # When not using gcc, we currently assume that we are using
8593       # Microsoft Visual C++.
8594       # hardcode_libdir_flag_spec is actually meaningless, as there is
8595       # no search path for DLLs.
8596       hardcode_libdir_flag_spec=' '
8597       allow_undefined_flag=unsupported
8598       # Tell ltmain to make .lib files, not .a files.
8599       libext=lib
8600       # Tell ltmain to make .dll files, not .so files.
8601       shrext_cmds=".dll"
8602       # FIXME: Setting linknames here is a bad hack.
8603       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8604       # The linker will automatically build a .lib file if we build a DLL.
8605       old_archive_From_new_cmds='true'
8606       # FIXME: Should let the user specify the lib program.
8607       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8608       fix_srcfile_path='`cygpath -w "$srcfile"`'
8609       enable_shared_with_static_runtimes=yes
8610       ;;
8611
8612     darwin* | rhapsody*)
8613       case $host_os in
8614         rhapsody* | darwin1.[012])
8615          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8616          ;;
8617        *) # Darwin 1.3 on
8618          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8619            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8620          else
8621            case ${MACOSX_DEPLOYMENT_TARGET} in
8622              10.[012])
8623                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8624                ;;
8625              10.*)
8626                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8627                ;;
8628            esac
8629          fi
8630          ;;
8631       esac
8632       archive_cmds_need_lc=no
8633       hardcode_direct=no
8634       hardcode_automatic=yes
8635       hardcode_shlibpath_var=unsupported
8636       whole_archive_flag_spec=''
8637       link_all_deplibs=yes
8638     if test "$GCC" = yes ; then
8639         output_verbose_link_cmd='echo'
8640         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8641       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8642       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8643       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}'
8644       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}'
8645     else
8646       case $cc_basename in
8647         xlc*)
8648          output_verbose_link_cmd='echo'
8649          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8650          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8651           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8652          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}'
8653           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}'
8654           ;;
8655        *)
8656          ld_shlibs=no
8657           ;;
8658       esac
8659     fi
8660       ;;
8661
8662     dgux*)
8663       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664       hardcode_libdir_flag_spec='-L$libdir'
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     freebsd1*)
8669       ld_shlibs=no
8670       ;;
8671
8672     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8673     # support.  Future versions do this automatically, but an explicit c++rt0.o
8674     # does not break anything, and helps significantly (at the cost of a little
8675     # extra space).
8676     freebsd2.2*)
8677       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8678       hardcode_libdir_flag_spec='-R$libdir'
8679       hardcode_direct=yes
8680       hardcode_shlibpath_var=no
8681       ;;
8682
8683     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8684     freebsd2*)
8685       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686       hardcode_direct=yes
8687       hardcode_minus_L=yes
8688       hardcode_shlibpath_var=no
8689       ;;
8690
8691     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8692     freebsd* | kfreebsd*-gnu | dragonfly*)
8693       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8694       hardcode_libdir_flag_spec='-R$libdir'
8695       hardcode_direct=yes
8696       hardcode_shlibpath_var=no
8697       ;;
8698
8699     hpux9*)
8700       if test "$GCC" = yes; then
8701         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'
8702       else
8703         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'
8704       fi
8705       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706       hardcode_libdir_separator=:
8707       hardcode_direct=yes
8708
8709       # hardcode_minus_L: Not really in the search PATH,
8710       # but as the default location of the library.
8711       hardcode_minus_L=yes
8712       export_dynamic_flag_spec='${wl}-E'
8713       ;;
8714
8715     hpux10*)
8716       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718       else
8719         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8720       fi
8721       if test "$with_gnu_ld" = no; then
8722         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723         hardcode_libdir_separator=:
8724
8725         hardcode_direct=yes
8726         export_dynamic_flag_spec='${wl}-E'
8727
8728         # hardcode_minus_L: Not really in the search PATH,
8729         # but as the default location of the library.
8730         hardcode_minus_L=yes
8731       fi
8732       ;;
8733
8734     hpux11*)
8735       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8736         case $host_cpu in
8737         hppa*64*)
8738           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8739           ;;
8740         ia64*)
8741           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8742           ;;
8743         *)
8744           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8745           ;;
8746         esac
8747       else
8748         case $host_cpu in
8749         hppa*64*)
8750           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8751           ;;
8752         ia64*)
8753           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8754           ;;
8755         *)
8756           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8757           ;;
8758         esac
8759       fi
8760       if test "$with_gnu_ld" = no; then
8761         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8762         hardcode_libdir_separator=:
8763
8764         case $host_cpu in
8765         hppa*64*|ia64*)
8766           hardcode_libdir_flag_spec_ld='+b $libdir'
8767           hardcode_direct=no
8768           hardcode_shlibpath_var=no
8769           ;;
8770         *)
8771           hardcode_direct=yes
8772           export_dynamic_flag_spec='${wl}-E'
8773
8774           # hardcode_minus_L: Not really in the search PATH,
8775           # but as the default location of the library.
8776           hardcode_minus_L=yes
8777           ;;
8778         esac
8779       fi
8780       ;;
8781
8782     irix5* | irix6* | nonstopux*)
8783       if test "$GCC" = yes; then
8784         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'
8785       else
8786         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'
8787         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8788       fi
8789       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790       hardcode_libdir_separator=:
8791       link_all_deplibs=yes
8792       ;;
8793
8794     netbsd*)
8795       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8796         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8797       else
8798         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8799       fi
8800       hardcode_libdir_flag_spec='-R$libdir'
8801       hardcode_direct=yes
8802       hardcode_shlibpath_var=no
8803       ;;
8804
8805     newsos6)
8806       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8807       hardcode_direct=yes
8808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809       hardcode_libdir_separator=:
8810       hardcode_shlibpath_var=no
8811       ;;
8812
8813     openbsd*)
8814       hardcode_direct=yes
8815       hardcode_shlibpath_var=no
8816       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8817         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8818         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8819         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820         export_dynamic_flag_spec='${wl}-E'
8821       else
8822        case $host_os in
8823          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8824            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8825            hardcode_libdir_flag_spec='-R$libdir'
8826            ;;
8827          *)
8828            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8829            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8830            ;;
8831        esac
8832       fi
8833       ;;
8834
8835     os2*)
8836       hardcode_libdir_flag_spec='-L$libdir'
8837       hardcode_minus_L=yes
8838       allow_undefined_flag=unsupported
8839       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'
8840       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8841       ;;
8842
8843     osf3*)
8844       if test "$GCC" = yes; then
8845         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846         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'
8847       else
8848         allow_undefined_flag=' -expect_unresolved \*'
8849         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'
8850       fi
8851       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852       hardcode_libdir_separator=:
8853       ;;
8854
8855     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8856       if test "$GCC" = yes; then
8857         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858         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'
8859         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860       else
8861         allow_undefined_flag=' -expect_unresolved \*'
8862         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'
8863         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8864         $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'
8865
8866         # Both c and cxx compiler support -rpath directly
8867         hardcode_libdir_flag_spec='-rpath $libdir'
8868       fi
8869       hardcode_libdir_separator=:
8870       ;;
8871
8872     solaris*)
8873       no_undefined_flag=' -z text'
8874       if test "$GCC" = yes; then
8875         wlarc='${wl}'
8876         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8879       else
8880         wlarc=''
8881         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8884       fi
8885       hardcode_libdir_flag_spec='-R$libdir'
8886       hardcode_shlibpath_var=no
8887       case $host_os in
8888       solaris2.[0-5] | solaris2.[0-5].*) ;;
8889       *)
8890         # The compiler driver will combine linker options so we
8891         # cannot just pass the convience library names through
8892         # without $wl, iff we do not link with $LD.
8893         # Luckily, gcc supports the same syntax we need for Sun Studio.
8894         # Supported since Solaris 2.6 (maybe 2.5.1?)
8895         case $wlarc in
8896         '')
8897           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8898         *)
8899           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' ;;
8900         esac ;;
8901       esac
8902       link_all_deplibs=yes
8903       ;;
8904
8905     sunos4*)
8906       if test "x$host_vendor" = xsequent; then
8907         # Use $CC to link under sequent, because it throws in some extra .o
8908         # files that make .init and .fini sections work.
8909         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8910       else
8911         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8912       fi
8913       hardcode_libdir_flag_spec='-L$libdir'
8914       hardcode_direct=yes
8915       hardcode_minus_L=yes
8916       hardcode_shlibpath_var=no
8917       ;;
8918
8919     sysv4)
8920       case $host_vendor in
8921         sni)
8922           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923           hardcode_direct=yes # is this really true???
8924         ;;
8925         siemens)
8926           ## LD is ld it makes a PLAMLIB
8927           ## CC just makes a GrossModule.
8928           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8929           reload_cmds='$CC -r -o $output$reload_objs'
8930           hardcode_direct=no
8931         ;;
8932         motorola)
8933           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8935         ;;
8936       esac
8937       runpath_var='LD_RUN_PATH'
8938       hardcode_shlibpath_var=no
8939       ;;
8940
8941     sysv4.3*)
8942       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943       hardcode_shlibpath_var=no
8944       export_dynamic_flag_spec='-Bexport'
8945       ;;
8946
8947     sysv4*MP*)
8948       if test -d /usr/nec; then
8949         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950         hardcode_shlibpath_var=no
8951         runpath_var=LD_RUN_PATH
8952         hardcode_runpath_var=yes
8953         ld_shlibs=yes
8954       fi
8955       ;;
8956
8957     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8958       no_undefined_flag='${wl}-z,text'
8959       archive_cmds_need_lc=no
8960       hardcode_shlibpath_var=no
8961       runpath_var='LD_RUN_PATH'
8962
8963       if test "$GCC" = yes; then
8964         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8966       else
8967         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969       fi
8970       ;;
8971
8972     sysv5* | sco3.2v5* | sco5v6*)
8973       # Note: We can NOT use -z defs as we might desire, because we do not
8974       # link with -lc, and that would cause any symbols used from libc to
8975       # always be unresolved, which means just about no library would
8976       # ever link correctly.  If we're not using GNU ld we use -z text
8977       # though, which does catch some bad symbols but isn't as heavy-handed
8978       # as -z defs.
8979       no_undefined_flag='${wl}-z,text'
8980       allow_undefined_flag='${wl}-z,nodefs'
8981       archive_cmds_need_lc=no
8982       hardcode_shlibpath_var=no
8983       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8984       hardcode_libdir_separator=':'
8985       link_all_deplibs=yes
8986       export_dynamic_flag_spec='${wl}-Bexport'
8987       runpath_var='LD_RUN_PATH'
8988
8989       if test "$GCC" = yes; then
8990         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992       else
8993         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995       fi
8996       ;;
8997
8998     uts4*)
8999       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000       hardcode_libdir_flag_spec='-L$libdir'
9001       hardcode_shlibpath_var=no
9002       ;;
9003
9004     *)
9005       ld_shlibs=no
9006       ;;
9007     esac
9008   fi
9009
9010 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9011 echo "${ECHO_T}$ld_shlibs" >&6; }
9012 test "$ld_shlibs" = no && can_build_shared=no
9013
9014 #
9015 # Do we need to explicitly link libc?
9016 #
9017 case "x$archive_cmds_need_lc" in
9018 x|xyes)
9019   # Assume -lc should be added
9020   archive_cmds_need_lc=yes
9021
9022   if test "$enable_shared" = yes && test "$GCC" = yes; then
9023     case $archive_cmds in
9024     *'~'*)
9025       # FIXME: we may have to deal with multi-command sequences.
9026       ;;
9027     '$CC '*)
9028       # Test whether the compiler implicitly links with -lc since on some
9029       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9030       # to ld, don't add -lc before -lgcc.
9031       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9033       $rm conftest*
9034       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9035
9036       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037   (eval $ac_compile) 2>&5
9038   ac_status=$?
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } 2>conftest.err; then
9041         soname=conftest
9042         lib=conftest
9043         libobjs=conftest.$ac_objext
9044         deplibs=
9045         wl=$lt_prog_compiler_wl
9046         pic_flag=$lt_prog_compiler_pic
9047         compiler_flags=-v
9048         linker_flags=-v
9049         verstring=
9050         output_objdir=.
9051         libname=conftest
9052         lt_save_allow_undefined_flag=$allow_undefined_flag
9053         allow_undefined_flag=
9054         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9055   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }
9059         then
9060           archive_cmds_need_lc=no
9061         else
9062           archive_cmds_need_lc=yes
9063         fi
9064         allow_undefined_flag=$lt_save_allow_undefined_flag
9065       else
9066         cat conftest.err 1>&5
9067       fi
9068       $rm conftest*
9069       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9070 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9071       ;;
9072     esac
9073   fi
9074   ;;
9075 esac
9076
9077 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9079 library_names_spec=
9080 libname_spec='lib$name'
9081 soname_spec=
9082 shrext_cmds=".so"
9083 postinstall_cmds=
9084 postuninstall_cmds=
9085 finish_cmds=
9086 finish_eval=
9087 shlibpath_var=
9088 shlibpath_overrides_runpath=unknown
9089 version_type=none
9090 dynamic_linker="$host_os ld.so"
9091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9092 if test "$GCC" = yes; then
9093   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9094   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9095     # if the path contains ";" then we assume it to be the separator
9096     # otherwise default to the standard path separator (i.e. ":") - it is
9097     # assumed that no part of a normal pathname contains ";" but that should
9098     # okay in the real world where ";" in dirpaths is itself problematic.
9099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9100   else
9101     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9102   fi
9103 else
9104   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9105 fi
9106 need_lib_prefix=unknown
9107 hardcode_into_libs=no
9108
9109 # when you set need_version to no, make sure it does not cause -set_version
9110 # flags to be left without arguments
9111 need_version=unknown
9112
9113 case $host_os in
9114 aix3*)
9115   version_type=linux
9116   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117   shlibpath_var=LIBPATH
9118
9119   # AIX 3 has no versioning support, so we append a major version to the name.
9120   soname_spec='${libname}${release}${shared_ext}$major'
9121   ;;
9122
9123 aix4* | aix5*)
9124   version_type=linux
9125   need_lib_prefix=no
9126   need_version=no
9127   hardcode_into_libs=yes
9128   if test "$host_cpu" = ia64; then
9129     # AIX 5 supports IA64
9130     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131     shlibpath_var=LD_LIBRARY_PATH
9132   else
9133     # With GCC up to 2.95.x, collect2 would create an import file
9134     # for dependence libraries.  The import file would start with
9135     # the line `#! .'.  This would cause the generated library to
9136     # depend on `.', always an invalid library.  This was fixed in
9137     # development snapshots of GCC prior to 3.0.
9138     case $host_os in
9139       aix4 | aix4.[01] | aix4.[01].*)
9140       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9141            echo ' yes '
9142            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143         :
9144       else
9145         can_build_shared=no
9146       fi
9147       ;;
9148     esac
9149     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150     # soname into executable. Probably we can add versioning support to
9151     # collect2, so additional links can be useful in future.
9152     if test "$aix_use_runtimelinking" = yes; then
9153       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154       # instead of lib<name>.a to let people know that these are not
9155       # typical AIX shared libraries.
9156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157     else
9158       # We preserve .a as extension for shared libraries through AIX4.2
9159       # and later when we are not doing run time linking.
9160       library_names_spec='${libname}${release}.a $libname.a'
9161       soname_spec='${libname}${release}${shared_ext}$major'
9162     fi
9163     shlibpath_var=LIBPATH
9164   fi
9165   ;;
9166
9167 amigaos*)
9168   library_names_spec='$libname.ixlibrary $libname.a'
9169   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170   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'
9171   ;;
9172
9173 beos*)
9174   library_names_spec='${libname}${shared_ext}'
9175   dynamic_linker="$host_os ld.so"
9176   shlibpath_var=LIBRARY_PATH
9177   ;;
9178
9179 bsdi[45]*)
9180   version_type=linux
9181   need_version=no
9182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183   soname_spec='${libname}${release}${shared_ext}$major'
9184   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185   shlibpath_var=LD_LIBRARY_PATH
9186   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188   # the default ld.so.conf also contains /usr/contrib/lib and
9189   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190   # libtool to hard-code these into programs
9191   ;;
9192
9193 cygwin* | mingw* | pw32*)
9194   version_type=windows
9195   shrext_cmds=".dll"
9196   need_version=no
9197   need_lib_prefix=no
9198
9199   case $GCC,$host_os in
9200   yes,cygwin* | yes,mingw* | yes,pw32*)
9201     library_names_spec='$libname.dll.a'
9202     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203     postinstall_cmds='base_file=`basename \${file}`~
9204       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205       dldir=$destdir/`dirname \$dlpath`~
9206       test -d \$dldir || mkdir -p \$dldir~
9207       $install_prog $dir/$dlname \$dldir/$dlname~
9208       chmod a+x \$dldir/$dlname'
9209     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210       dlpath=$dir/\$dldll~
9211        $rm \$dlpath'
9212     shlibpath_overrides_runpath=yes
9213
9214     case $host_os in
9215     cygwin*)
9216       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9219       ;;
9220     mingw*)
9221       # MinGW DLLs use traditional 'lib' prefix
9222       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225         # It is most probably a Windows format PATH printed by
9226         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227         # path with ; separators, and with drive letters. We can handle the
9228         # drive letters (cygwin fileutils understands them), so leave them,
9229         # especially as we might pass files found there to a mingw objdump,
9230         # which wouldn't understand a cygwinified path. Ahh.
9231         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9232       else
9233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9234       fi
9235       ;;
9236     pw32*)
9237       # pw32 DLLs use 'pw' prefix rather than 'lib'
9238       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9239       ;;
9240     esac
9241     ;;
9242
9243   *)
9244     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9245     ;;
9246   esac
9247   dynamic_linker='Win32 ld.exe'
9248   # FIXME: first we should search . and the directory the executable is in
9249   shlibpath_var=PATH
9250   ;;
9251
9252 darwin* | rhapsody*)
9253   dynamic_linker="$host_os dyld"
9254   version_type=darwin
9255   need_lib_prefix=no
9256   need_version=no
9257   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258   soname_spec='${libname}${release}${major}$shared_ext'
9259   shlibpath_overrides_runpath=yes
9260   shlibpath_var=DYLD_LIBRARY_PATH
9261   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9262   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9263   if test "$GCC" = yes; then
9264     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"`
9265   else
9266     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9267   fi
9268   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9269   ;;
9270
9271 dgux*)
9272   version_type=linux
9273   need_lib_prefix=no
9274   need_version=no
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   ;;
9279
9280 freebsd1*)
9281   dynamic_linker=no
9282   ;;
9283
9284 kfreebsd*-gnu)
9285   version_type=linux
9286   need_lib_prefix=no
9287   need_version=no
9288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   shlibpath_var=LD_LIBRARY_PATH
9291   shlibpath_overrides_runpath=no
9292   hardcode_into_libs=yes
9293   dynamic_linker='GNU ld.so'
9294   ;;
9295
9296 freebsd* | dragonfly*)
9297   # DragonFly does not have aout.  When/if they implement a new
9298   # versioning mechanism, adjust this.
9299   if test -x /usr/bin/objformat; then
9300     objformat=`/usr/bin/objformat`
9301   else
9302     case $host_os in
9303     freebsd[123]*) objformat=aout ;;
9304     *) objformat=elf ;;
9305     esac
9306   fi
9307   version_type=freebsd-$objformat
9308   case $version_type in
9309     freebsd-elf*)
9310       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9311       need_version=no
9312       need_lib_prefix=no
9313       ;;
9314     freebsd-*)
9315       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9316       need_version=yes
9317       ;;
9318   esac
9319   shlibpath_var=LD_LIBRARY_PATH
9320   case $host_os in
9321   freebsd2*)
9322     shlibpath_overrides_runpath=yes
9323     ;;
9324   freebsd3.[01]* | freebsdelf3.[01]*)
9325     shlibpath_overrides_runpath=yes
9326     hardcode_into_libs=yes
9327     ;;
9328   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9329   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9330     shlibpath_overrides_runpath=no
9331     hardcode_into_libs=yes
9332     ;;
9333   freebsd*) # from 4.6 on
9334     shlibpath_overrides_runpath=yes
9335     hardcode_into_libs=yes
9336     ;;
9337   esac
9338   ;;
9339
9340 gnu*)
9341   version_type=linux
9342   need_lib_prefix=no
9343   need_version=no
9344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9345   soname_spec='${libname}${release}${shared_ext}$major'
9346   shlibpath_var=LD_LIBRARY_PATH
9347   hardcode_into_libs=yes
9348   ;;
9349
9350 hpux9* | hpux10* | hpux11*)
9351   # Give a soname corresponding to the major version so that dld.sl refuses to
9352   # link against other versions.
9353   version_type=sunos
9354   need_lib_prefix=no
9355   need_version=no
9356   case $host_cpu in
9357   ia64*)
9358     shrext_cmds='.so'
9359     hardcode_into_libs=yes
9360     dynamic_linker="$host_os dld.so"
9361     shlibpath_var=LD_LIBRARY_PATH
9362     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364     soname_spec='${libname}${release}${shared_ext}$major'
9365     if test "X$HPUX_IA64_MODE" = X32; then
9366       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9367     else
9368       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9369     fi
9370     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9371     ;;
9372    hppa*64*)
9373      shrext_cmds='.sl'
9374      hardcode_into_libs=yes
9375      dynamic_linker="$host_os dld.sl"
9376      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9377      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379      soname_spec='${libname}${release}${shared_ext}$major'
9380      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9381      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9382      ;;
9383    *)
9384     shrext_cmds='.sl'
9385     dynamic_linker="$host_os dld.sl"
9386     shlibpath_var=SHLIB_PATH
9387     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389     soname_spec='${libname}${release}${shared_ext}$major'
9390     ;;
9391   esac
9392   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9393   postinstall_cmds='chmod 555 $lib'
9394   ;;
9395
9396 interix3*)
9397   version_type=linux
9398   need_lib_prefix=no
9399   need_version=no
9400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9401   soname_spec='${libname}${release}${shared_ext}$major'
9402   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   shlibpath_overrides_runpath=no
9405   hardcode_into_libs=yes
9406   ;;
9407
9408 irix5* | irix6* | nonstopux*)
9409   case $host_os in
9410     nonstopux*) version_type=nonstopux ;;
9411     *)
9412         if test "$lt_cv_prog_gnu_ld" = yes; then
9413                 version_type=linux
9414         else
9415                 version_type=irix
9416         fi ;;
9417   esac
9418   need_lib_prefix=no
9419   need_version=no
9420   soname_spec='${libname}${release}${shared_ext}$major'
9421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9422   case $host_os in
9423   irix5* | nonstopux*)
9424     libsuff= shlibsuff=
9425     ;;
9426   *)
9427     case $LD in # libtool.m4 will add one of these switches to LD
9428     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9429       libsuff= shlibsuff= libmagic=32-bit;;
9430     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9431       libsuff=32 shlibsuff=N32 libmagic=N32;;
9432     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9433       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9434     *) libsuff= shlibsuff= libmagic=never-match;;
9435     esac
9436     ;;
9437   esac
9438   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9439   shlibpath_overrides_runpath=no
9440   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9441   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9442   hardcode_into_libs=yes
9443   ;;
9444
9445 # No shared lib support for Linux oldld, aout, or coff.
9446 linux*oldld* | linux*aout* | linux*coff*)
9447   dynamic_linker=no
9448   ;;
9449
9450 # This must be Linux ELF.
9451 linux*)
9452   version_type=linux
9453   need_lib_prefix=no
9454   need_version=no
9455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456   soname_spec='${libname}${release}${shared_ext}$major'
9457   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9458   shlibpath_var=LD_LIBRARY_PATH
9459   shlibpath_overrides_runpath=no
9460   # This implies no fast_install, which is unacceptable.
9461   # Some rework will be needed to allow for fast_install
9462   # before this can be enabled.
9463   hardcode_into_libs=yes
9464
9465   # find out which ABI we are using
9466   libsuff=
9467   case "$host_cpu" in
9468   x86_64*|s390x*|powerpc64*)
9469     echo '#line 9469 "configure"' > conftest.$ac_ext
9470     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471   (eval $ac_compile) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; then
9475       case `/usr/bin/file conftest.$ac_objext` in
9476       *64-bit*)
9477         libsuff=64
9478         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9479         ;;
9480       esac
9481     fi
9482     rm -rf conftest*
9483     ;;
9484   esac
9485
9486   # Append ld.so.conf contents to the search path
9487   if test -f /etc/ld.so.conf; then
9488     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9489     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9490   fi
9491
9492   # We used to test for /lib/ld.so.1 and disable shared libraries on
9493   # powerpc, because MkLinux only supported shared libraries with the
9494   # GNU dynamic linker.  Since this was broken with cross compilers,
9495   # most powerpc-linux boxes support dynamic linking these days and
9496   # people can always --disable-shared, the test was removed, and we
9497   # assume the GNU/Linux dynamic linker is in use.
9498   dynamic_linker='GNU/Linux ld.so'
9499   ;;
9500
9501 knetbsd*-gnu)
9502   version_type=linux
9503   need_lib_prefix=no
9504   need_version=no
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506   soname_spec='${libname}${release}${shared_ext}$major'
9507   shlibpath_var=LD_LIBRARY_PATH
9508   shlibpath_overrides_runpath=no
9509   hardcode_into_libs=yes
9510   dynamic_linker='GNU ld.so'
9511   ;;
9512
9513 netbsd*)
9514   version_type=sunos
9515   need_lib_prefix=no
9516   need_version=no
9517   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9519     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9520     dynamic_linker='NetBSD (a.out) ld.so'
9521   else
9522     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9523     soname_spec='${libname}${release}${shared_ext}$major'
9524     dynamic_linker='NetBSD ld.elf_so'
9525   fi
9526   shlibpath_var=LD_LIBRARY_PATH
9527   shlibpath_overrides_runpath=yes
9528   hardcode_into_libs=yes
9529   ;;
9530
9531 newsos6)
9532   version_type=linux
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   shlibpath_var=LD_LIBRARY_PATH
9535   shlibpath_overrides_runpath=yes
9536   ;;
9537
9538 nto-qnx*)
9539   version_type=linux
9540   need_lib_prefix=no
9541   need_version=no
9542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543   soname_spec='${libname}${release}${shared_ext}$major'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   shlibpath_overrides_runpath=yes
9546   ;;
9547
9548 openbsd*)
9549   version_type=sunos
9550   sys_lib_dlsearch_path_spec="/usr/lib"
9551   need_lib_prefix=no
9552   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9553   case $host_os in
9554     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9555     *)                         need_version=no  ;;
9556   esac
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9561     case $host_os in
9562       openbsd2.[89] | openbsd2.[89].*)
9563         shlibpath_overrides_runpath=no
9564         ;;
9565       *)
9566         shlibpath_overrides_runpath=yes
9567         ;;
9568       esac
9569   else
9570     shlibpath_overrides_runpath=yes
9571   fi
9572   ;;
9573
9574 os2*)
9575   libname_spec='$name'
9576   shrext_cmds=".dll"
9577   need_lib_prefix=no
9578   library_names_spec='$libname${shared_ext} $libname.a'
9579   dynamic_linker='OS/2 ld.exe'
9580   shlibpath_var=LIBPATH
9581   ;;
9582
9583 osf3* | osf4* | osf5*)
9584   version_type=osf
9585   need_lib_prefix=no
9586   need_version=no
9587   soname_spec='${libname}${release}${shared_ext}$major'
9588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589   shlibpath_var=LD_LIBRARY_PATH
9590   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9591   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9592   ;;
9593
9594 solaris*)
9595   version_type=linux
9596   need_lib_prefix=no
9597   need_version=no
9598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599   soname_spec='${libname}${release}${shared_ext}$major'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   shlibpath_overrides_runpath=yes
9602   hardcode_into_libs=yes
9603   # ldd complains unless libraries are executable
9604   postinstall_cmds='chmod +x $lib'
9605   ;;
9606
9607 sunos4*)
9608   version_type=sunos
9609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611   shlibpath_var=LD_LIBRARY_PATH
9612   shlibpath_overrides_runpath=yes
9613   if test "$with_gnu_ld" = yes; then
9614     need_lib_prefix=no
9615   fi
9616   need_version=yes
9617   ;;
9618
9619 sysv4 | sysv4.3*)
9620   version_type=linux
9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622   soname_spec='${libname}${release}${shared_ext}$major'
9623   shlibpath_var=LD_LIBRARY_PATH
9624   case $host_vendor in
9625     sni)
9626       shlibpath_overrides_runpath=no
9627       need_lib_prefix=no
9628       export_dynamic_flag_spec='${wl}-Blargedynsym'
9629       runpath_var=LD_RUN_PATH
9630       ;;
9631     siemens)
9632       need_lib_prefix=no
9633       ;;
9634     motorola)
9635       need_lib_prefix=no
9636       need_version=no
9637       shlibpath_overrides_runpath=no
9638       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9639       ;;
9640   esac
9641   ;;
9642
9643 sysv4*MP*)
9644   if test -d /usr/nec ;then
9645     version_type=linux
9646     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9647     soname_spec='$libname${shared_ext}.$major'
9648     shlibpath_var=LD_LIBRARY_PATH
9649   fi
9650   ;;
9651
9652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9653   version_type=freebsd-elf
9654   need_lib_prefix=no
9655   need_version=no
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657   soname_spec='${libname}${release}${shared_ext}$major'
9658   shlibpath_var=LD_LIBRARY_PATH
9659   hardcode_into_libs=yes
9660   if test "$with_gnu_ld" = yes; then
9661     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662     shlibpath_overrides_runpath=no
9663   else
9664     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9665     shlibpath_overrides_runpath=yes
9666     case $host_os in
9667       sco3.2v5*)
9668         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9669         ;;
9670     esac
9671   fi
9672   sys_lib_dlsearch_path_spec='/usr/lib'
9673   ;;
9674
9675 uts4*)
9676   version_type=linux
9677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678   soname_spec='${libname}${release}${shared_ext}$major'
9679   shlibpath_var=LD_LIBRARY_PATH
9680   ;;
9681
9682 *)
9683   dynamic_linker=no
9684   ;;
9685 esac
9686 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9687 echo "${ECHO_T}$dynamic_linker" >&6; }
9688 test "$dynamic_linker" = no && can_build_shared=no
9689
9690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9691 if test "$GCC" = yes; then
9692   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9693 fi
9694
9695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9697 hardcode_action=
9698 if test -n "$hardcode_libdir_flag_spec" || \
9699    test -n "$runpath_var" || \
9700    test "X$hardcode_automatic" = "Xyes" ; then
9701
9702   # We can hardcode non-existant directories.
9703   if test "$hardcode_direct" != no &&
9704      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9705      # have to relink, otherwise we might link with an installed library
9706      # when we should be linking with a yet-to-be-installed one
9707      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9708      test "$hardcode_minus_L" != no; then
9709     # Linking always hardcodes the temporary library directory.
9710     hardcode_action=relink
9711   else
9712     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9713     hardcode_action=immediate
9714   fi
9715 else
9716   # We cannot hardcode anything, or else we can only hardcode existing
9717   # directories.
9718   hardcode_action=unsupported
9719 fi
9720 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9721 echo "${ECHO_T}$hardcode_action" >&6; }
9722
9723 if test "$hardcode_action" = relink; then
9724   # Fast installation is not supported
9725   enable_fast_install=no
9726 elif test "$shlibpath_overrides_runpath" = yes ||
9727      test "$enable_shared" = no; then
9728   # Fast installation is not necessary
9729   enable_fast_install=needless
9730 fi
9731
9732 striplib=
9733 old_striplib=
9734 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9736 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9737   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9738   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9739   { echo "$as_me:$LINENO: result: yes" >&5
9740 echo "${ECHO_T}yes" >&6; }
9741 else
9742 # FIXME - insert some real tests, host_os isn't really good enough
9743   case $host_os in
9744    darwin*)
9745        if test -n "$STRIP" ; then
9746          striplib="$STRIP -x"
9747          { echo "$as_me:$LINENO: result: yes" >&5
9748 echo "${ECHO_T}yes" >&6; }
9749        else
9750   { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9752 fi
9753        ;;
9754    *)
9755   { echo "$as_me:$LINENO: result: no" >&5
9756 echo "${ECHO_T}no" >&6; }
9757     ;;
9758   esac
9759 fi
9760
9761 if test "x$enable_dlopen" != xyes; then
9762   enable_dlopen=unknown
9763   enable_dlopen_self=unknown
9764   enable_dlopen_self_static=unknown
9765 else
9766   lt_cv_dlopen=no
9767   lt_cv_dlopen_libs=
9768
9769   case $host_os in
9770   beos*)
9771     lt_cv_dlopen="load_add_on"
9772     lt_cv_dlopen_libs=
9773     lt_cv_dlopen_self=yes
9774     ;;
9775
9776   mingw* | pw32*)
9777     lt_cv_dlopen="LoadLibrary"
9778     lt_cv_dlopen_libs=
9779    ;;
9780
9781   cygwin*)
9782     lt_cv_dlopen="dlopen"
9783     lt_cv_dlopen_libs=
9784    ;;
9785
9786   darwin*)
9787   # if libdl is installed we need to link against it
9788     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791   echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793   ac_check_lib_save_LIBS=$LIBS
9794 LIBS="-ldl  $LIBS"
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 /* Override any GCC internal prototype to avoid an error.
9803    Use char because int might match the return type of a GCC
9804    builtin and then its argument prototype would still apply.  */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char dlopen ();
9809 int
9810 main ()
9811 {
9812 return dlopen ();
9813   ;
9814   return 0;
9815 }
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } && {
9831          test -z "$ac_c_werror_flag" ||
9832          test ! -s conftest.err
9833        } && test -s conftest$ac_exeext &&
9834        $as_test_x conftest$ac_exeext; then
9835   ac_cv_lib_dl_dlopen=yes
9836 else
9837   echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9839
9840         ac_cv_lib_dl_dlopen=no
9841 fi
9842
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844       conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9846 fi
9847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9849 if test $ac_cv_lib_dl_dlopen = yes; then
9850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9851 else
9852
9853     lt_cv_dlopen="dyld"
9854     lt_cv_dlopen_libs=
9855     lt_cv_dlopen_self=yes
9856
9857 fi
9858
9859    ;;
9860
9861   *)
9862     { echo "$as_me:$LINENO: checking for shl_load" >&5
9863 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9864 if test "${ac_cv_func_shl_load+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9875 #define shl_load innocuous_shl_load
9876
9877 /* System header to define __stub macros and hopefully few prototypes,
9878     which can conflict with char shl_load (); below.
9879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9880     <limits.h> exists even on freestanding compilers.  */
9881
9882 #ifdef __STDC__
9883 # include <limits.h>
9884 #else
9885 # include <assert.h>
9886 #endif
9887
9888 #undef shl_load
9889
9890 /* Override any GCC internal prototype to avoid an error.
9891    Use char because int might match the return type of a GCC
9892    builtin and then its argument prototype would still apply.  */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char shl_load ();
9897 /* The GNU C library defines this for functions which it implements
9898     to always fail with ENOSYS.  Some functions are actually named
9899     something starting with __ and the normal name is an alias.  */
9900 #if defined __stub_shl_load || defined __stub___shl_load
9901 choke me
9902 #endif
9903
9904 int
9905 main ()
9906 {
9907 return shl_load ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9914 case "(($ac_try" in
9915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916   *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919   (eval "$ac_link") 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } && {
9926          test -z "$ac_c_werror_flag" ||
9927          test ! -s conftest.err
9928        } && test -s conftest$ac_exeext &&
9929        $as_test_x conftest$ac_exeext; then
9930   ac_cv_func_shl_load=yes
9931 else
9932   echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935         ac_cv_func_shl_load=no
9936 fi
9937
9938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939       conftest$ac_exeext conftest.$ac_ext
9940 fi
9941 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9943 if test $ac_cv_func_shl_load = yes; then
9944   lt_cv_dlopen="shl_load"
9945 else
9946   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9947 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9948 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9949   echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951   ac_check_lib_save_LIBS=$LIBS
9952 LIBS="-ldld  $LIBS"
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959
9960 /* Override any GCC internal prototype to avoid an error.
9961    Use char because int might match the return type of a GCC
9962    builtin and then its argument prototype would still apply.  */
9963 #ifdef __cplusplus
9964 extern "C"
9965 #endif
9966 char shl_load ();
9967 int
9968 main ()
9969 {
9970 return shl_load ();
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9977 case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_link") 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } && {
9989          test -z "$ac_c_werror_flag" ||
9990          test ! -s conftest.err
9991        } && test -s conftest$ac_exeext &&
9992        $as_test_x conftest$ac_exeext; then
9993   ac_cv_lib_dld_shl_load=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998         ac_cv_lib_dld_shl_load=no
9999 fi
10000
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002       conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10004 fi
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10007 if test $ac_cv_lib_dld_shl_load = yes; then
10008   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10009 else
10010   { echo "$as_me:$LINENO: checking for dlopen" >&5
10011 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10012 if test "${ac_cv_func_dlopen+set}" = set; then
10013   echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015   cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10023 #define dlopen innocuous_dlopen
10024
10025 /* System header to define __stub macros and hopefully few prototypes,
10026     which can conflict with char dlopen (); below.
10027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028     <limits.h> exists even on freestanding compilers.  */
10029
10030 #ifdef __STDC__
10031 # include <limits.h>
10032 #else
10033 # include <assert.h>
10034 #endif
10035
10036 #undef dlopen
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039    Use char because int might match the return type of a GCC
10040    builtin and then its argument prototype would still apply.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char dlopen ();
10045 /* The GNU C library defines this for functions which it implements
10046     to always fail with ENOSYS.  Some functions are actually named
10047     something starting with __ and the normal name is an alias.  */
10048 #if defined __stub_dlopen || defined __stub___dlopen
10049 choke me
10050 #endif
10051
10052 int
10053 main ()
10054 {
10055 return dlopen ();
10056   ;
10057   return 0;
10058 }
10059 _ACEOF
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064   *) ac_try_echo=$ac_try;;
10065 esac
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067   (eval "$ac_link") 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } && {
10074          test -z "$ac_c_werror_flag" ||
10075          test ! -s conftest.err
10076        } && test -s conftest$ac_exeext &&
10077        $as_test_x conftest$ac_exeext; then
10078   ac_cv_func_dlopen=yes
10079 else
10080   echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10082
10083         ac_cv_func_dlopen=no
10084 fi
10085
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087       conftest$ac_exeext conftest.$ac_ext
10088 fi
10089 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10091 if test $ac_cv_func_dlopen = yes; then
10092   lt_cv_dlopen="dlopen"
10093 else
10094   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   ac_check_lib_save_LIBS=$LIBS
10100 LIBS="-ldl  $LIBS"
10101 cat >conftest.$ac_ext <<_ACEOF
10102 /* confdefs.h.  */
10103 _ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h.  */
10107
10108 /* Override any GCC internal prototype to avoid an error.
10109    Use char because int might match the return type of a GCC
10110    builtin and then its argument prototype would still apply.  */
10111 #ifdef __cplusplus
10112 extern "C"
10113 #endif
10114 char dlopen ();
10115 int
10116 main ()
10117 {
10118 return dlopen ();
10119   ;
10120   return 0;
10121 }
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_link") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } && {
10137          test -z "$ac_c_werror_flag" ||
10138          test ! -s conftest.err
10139        } && test -s conftest$ac_exeext &&
10140        $as_test_x conftest$ac_exeext; then
10141   ac_cv_lib_dl_dlopen=yes
10142 else
10143   echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146         ac_cv_lib_dl_dlopen=no
10147 fi
10148
10149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10150       conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10152 fi
10153 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10154 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10155 if test $ac_cv_lib_dl_dlopen = yes; then
10156   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10157 else
10158   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10159 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10161   echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163   ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-lsvld  $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171
10172 /* Override any GCC internal prototype to avoid an error.
10173    Use char because int might match the return type of a GCC
10174    builtin and then its argument prototype would still apply.  */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 char dlopen ();
10179 int
10180 main ()
10181 {
10182 return dlopen ();
10183   ;
10184   return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191   *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194   (eval "$ac_link") 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } && {
10201          test -z "$ac_c_werror_flag" ||
10202          test ! -s conftest.err
10203        } && test -s conftest$ac_exeext &&
10204        $as_test_x conftest$ac_exeext; then
10205   ac_cv_lib_svld_dlopen=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210         ac_cv_lib_svld_dlopen=no
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214       conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10216 fi
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10218 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10219 if test $ac_cv_lib_svld_dlopen = yes; then
10220   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10221 else
10222   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10223 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10224 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227   ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-ldld  $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h.  */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h.  */
10235
10236 /* Override any GCC internal prototype to avoid an error.
10237    Use char because int might match the return type of a GCC
10238    builtin and then its argument prototype would still apply.  */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 char dld_link ();
10243 int
10244 main ()
10245 {
10246 return dld_link ();
10247   ;
10248   return 0;
10249 }
10250 _ACEOF
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258   (eval "$ac_link") 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } && {
10265          test -z "$ac_c_werror_flag" ||
10266          test ! -s conftest.err
10267        } && test -s conftest$ac_exeext &&
10268        $as_test_x conftest$ac_exeext; then
10269   ac_cv_lib_dld_dld_link=yes
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274         ac_cv_lib_dld_dld_link=no
10275 fi
10276
10277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278       conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10280 fi
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10283 if test $ac_cv_lib_dld_dld_link = yes; then
10284   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10285 fi
10286
10287
10288 fi
10289
10290
10291 fi
10292
10293
10294 fi
10295
10296
10297 fi
10298
10299
10300 fi
10301
10302     ;;
10303   esac
10304
10305   if test "x$lt_cv_dlopen" != xno; then
10306     enable_dlopen=yes
10307   else
10308     enable_dlopen=no
10309   fi
10310
10311   case $lt_cv_dlopen in
10312   dlopen)
10313     save_CPPFLAGS="$CPPFLAGS"
10314     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10315
10316     save_LDFLAGS="$LDFLAGS"
10317     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10318
10319     save_LIBS="$LIBS"
10320     LIBS="$lt_cv_dlopen_libs $LIBS"
10321
10322     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10323 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10324 if test "${lt_cv_dlopen_self+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327           if test "$cross_compiling" = yes; then :
10328   lt_cv_dlopen_self=cross
10329 else
10330   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10331   lt_status=$lt_dlunknown
10332   cat > conftest.$ac_ext <<EOF
10333 #line 10333 "configure"
10334 #include "confdefs.h"
10335
10336 #if HAVE_DLFCN_H
10337 #include <dlfcn.h>
10338 #endif
10339
10340 #include <stdio.h>
10341
10342 #ifdef RTLD_GLOBAL
10343 #  define LT_DLGLOBAL           RTLD_GLOBAL
10344 #else
10345 #  ifdef DL_GLOBAL
10346 #    define LT_DLGLOBAL         DL_GLOBAL
10347 #  else
10348 #    define LT_DLGLOBAL         0
10349 #  endif
10350 #endif
10351
10352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10353    find out it does not work in some platform. */
10354 #ifndef LT_DLLAZY_OR_NOW
10355 #  ifdef RTLD_LAZY
10356 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10357 #  else
10358 #    ifdef DL_LAZY
10359 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10360 #    else
10361 #      ifdef RTLD_NOW
10362 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10363 #      else
10364 #        ifdef DL_NOW
10365 #          define LT_DLLAZY_OR_NOW      DL_NOW
10366 #        else
10367 #          define LT_DLLAZY_OR_NOW      0
10368 #        endif
10369 #      endif
10370 #    endif
10371 #  endif
10372 #endif
10373
10374 #ifdef __cplusplus
10375 extern "C" void exit (int);
10376 #endif
10377
10378 void fnord() { int i=42;}
10379 int main ()
10380 {
10381   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382   int status = $lt_dlunknown;
10383
10384   if (self)
10385     {
10386       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10387       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388       /* dlclose (self); */
10389     }
10390   else
10391     puts (dlerror ());
10392
10393     exit (status);
10394 }
10395 EOF
10396   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397   (eval $ac_link) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10401     (./conftest; exit; ) >&5 2>/dev/null
10402     lt_status=$?
10403     case x$lt_status in
10404       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10405       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10406       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10407     esac
10408   else :
10409     # compilation failed
10410     lt_cv_dlopen_self=no
10411   fi
10412 fi
10413 rm -fr conftest*
10414
10415
10416 fi
10417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10418 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10419
10420     if test "x$lt_cv_dlopen_self" = xyes; then
10421       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10422       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10423 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10424 if test "${lt_cv_dlopen_self_static+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427           if test "$cross_compiling" = yes; then :
10428   lt_cv_dlopen_self_static=cross
10429 else
10430   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431   lt_status=$lt_dlunknown
10432   cat > conftest.$ac_ext <<EOF
10433 #line 10433 "configure"
10434 #include "confdefs.h"
10435
10436 #if HAVE_DLFCN_H
10437 #include <dlfcn.h>
10438 #endif
10439
10440 #include <stdio.h>
10441
10442 #ifdef RTLD_GLOBAL
10443 #  define LT_DLGLOBAL           RTLD_GLOBAL
10444 #else
10445 #  ifdef DL_GLOBAL
10446 #    define LT_DLGLOBAL         DL_GLOBAL
10447 #  else
10448 #    define LT_DLGLOBAL         0
10449 #  endif
10450 #endif
10451
10452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453    find out it does not work in some platform. */
10454 #ifndef LT_DLLAZY_OR_NOW
10455 #  ifdef RTLD_LAZY
10456 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10457 #  else
10458 #    ifdef DL_LAZY
10459 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10460 #    else
10461 #      ifdef RTLD_NOW
10462 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10463 #      else
10464 #        ifdef DL_NOW
10465 #          define LT_DLLAZY_OR_NOW      DL_NOW
10466 #        else
10467 #          define LT_DLLAZY_OR_NOW      0
10468 #        endif
10469 #      endif
10470 #    endif
10471 #  endif
10472 #endif
10473
10474 #ifdef __cplusplus
10475 extern "C" void exit (int);
10476 #endif
10477
10478 void fnord() { int i=42;}
10479 int main ()
10480 {
10481   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10482   int status = $lt_dlunknown;
10483
10484   if (self)
10485     {
10486       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10487       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10488       /* dlclose (self); */
10489     }
10490   else
10491     puts (dlerror ());
10492
10493     exit (status);
10494 }
10495 EOF
10496   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497   (eval $ac_link) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10501     (./conftest; exit; ) >&5 2>/dev/null
10502     lt_status=$?
10503     case x$lt_status in
10504       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10505       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10506       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10507     esac
10508   else :
10509     # compilation failed
10510     lt_cv_dlopen_self_static=no
10511   fi
10512 fi
10513 rm -fr conftest*
10514
10515
10516 fi
10517 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10518 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10519     fi
10520
10521     CPPFLAGS="$save_CPPFLAGS"
10522     LDFLAGS="$save_LDFLAGS"
10523     LIBS="$save_LIBS"
10524     ;;
10525   esac
10526
10527   case $lt_cv_dlopen_self in
10528   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10529   *) enable_dlopen_self=unknown ;;
10530   esac
10531
10532   case $lt_cv_dlopen_self_static in
10533   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10534   *) enable_dlopen_self_static=unknown ;;
10535   esac
10536 fi
10537
10538
10539 # Report which library types will actually be built
10540 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10541 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10542 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10543 echo "${ECHO_T}$can_build_shared" >&6; }
10544
10545 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10546 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10547 test "$can_build_shared" = "no" && enable_shared=no
10548
10549 # On AIX, shared libraries and static libraries use the same namespace, and
10550 # are all built from PIC.
10551 case $host_os in
10552 aix3*)
10553   test "$enable_shared" = yes && enable_static=no
10554   if test -n "$RANLIB"; then
10555     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10556     postinstall_cmds='$RANLIB $lib'
10557   fi
10558   ;;
10559
10560 aix4* | aix5*)
10561   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10562     test "$enable_shared" = yes && enable_static=no
10563   fi
10564     ;;
10565 esac
10566 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10567 echo "${ECHO_T}$enable_shared" >&6; }
10568
10569 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10571 # Make sure either enable_shared or enable_static is yes.
10572 test "$enable_shared" = yes || enable_static=yes
10573 { echo "$as_me:$LINENO: result: $enable_static" >&5
10574 echo "${ECHO_T}$enable_static" >&6; }
10575
10576 # The else clause should only fire when bootstrapping the
10577 # libtool distribution, otherwise you forgot to ship ltmain.sh
10578 # with your package, and you will get complaints that there are
10579 # no rules to generate ltmain.sh.
10580 if test -f "$ltmain"; then
10581   # See if we are running on zsh, and set the options which allow our commands through
10582   # without removal of \ escapes.
10583   if test -n "${ZSH_VERSION+set}" ; then
10584     setopt NO_GLOB_SUBST
10585   fi
10586   # Now quote all the things that may contain metacharacters while being
10587   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10588   # variables and quote the copies for generation of the libtool script.
10589   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10590     SED SHELL STRIP \
10591     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10592     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10593     deplibs_check_method reload_flag reload_cmds need_locks \
10594     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10595     lt_cv_sys_global_symbol_to_c_name_address \
10596     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10597     old_postinstall_cmds old_postuninstall_cmds \
10598     compiler \
10599     CC \
10600     LD \
10601     lt_prog_compiler_wl \
10602     lt_prog_compiler_pic \
10603     lt_prog_compiler_static \
10604     lt_prog_compiler_no_builtin_flag \
10605     export_dynamic_flag_spec \
10606     thread_safe_flag_spec \
10607     whole_archive_flag_spec \
10608     enable_shared_with_static_runtimes \
10609     old_archive_cmds \
10610     old_archive_from_new_cmds \
10611     predep_objects \
10612     postdep_objects \
10613     predeps \
10614     postdeps \
10615     compiler_lib_search_path \
10616     archive_cmds \
10617     archive_expsym_cmds \
10618     postinstall_cmds \
10619     postuninstall_cmds \
10620     old_archive_from_expsyms_cmds \
10621     allow_undefined_flag \
10622     no_undefined_flag \
10623     export_symbols_cmds \
10624     hardcode_libdir_flag_spec \
10625     hardcode_libdir_flag_spec_ld \
10626     hardcode_libdir_separator \
10627     hardcode_automatic \
10628     module_cmds \
10629     module_expsym_cmds \
10630     lt_cv_prog_compiler_c_o \
10631     exclude_expsyms \
10632     include_expsyms; do
10633
10634     case $var in
10635     old_archive_cmds | \
10636     old_archive_from_new_cmds | \
10637     archive_cmds | \
10638     archive_expsym_cmds | \
10639     module_cmds | \
10640     module_expsym_cmds | \
10641     old_archive_from_expsyms_cmds | \
10642     export_symbols_cmds | \
10643     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10644     postinstall_cmds | postuninstall_cmds | \
10645     old_postinstall_cmds | old_postuninstall_cmds | \
10646     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10647       # Double-quote double-evaled strings.
10648       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10649       ;;
10650     *)
10651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10652       ;;
10653     esac
10654   done
10655
10656   case $lt_echo in
10657   *'\$0 --fallback-echo"')
10658     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10659     ;;
10660   esac
10661
10662 cfgfile="${ofile}T"
10663   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10664   $rm -f "$cfgfile"
10665   { echo "$as_me:$LINENO: creating $ofile" >&5
10666 echo "$as_me: creating $ofile" >&6;}
10667
10668   cat <<__EOF__ >> "$cfgfile"
10669 #! $SHELL
10670
10671 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10672 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10674 #
10675 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10676 # Free Software Foundation, Inc.
10677 #
10678 # This file is part of GNU Libtool:
10679 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10680 #
10681 # This program is free software; you can redistribute it and/or modify
10682 # it under the terms of the GNU General Public License as published by
10683 # the Free Software Foundation; either version 2 of the License, or
10684 # (at your option) any later version.
10685 #
10686 # This program is distributed in the hope that it will be useful, but
10687 # WITHOUT ANY WARRANTY; without even the implied warranty of
10688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10689 # General Public License for more details.
10690 #
10691 # You should have received a copy of the GNU General Public License
10692 # along with this program; if not, write to the Free Software
10693 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10694 #
10695 # As a special exception to the GNU General Public License, if you
10696 # distribute this file as part of a program that contains a
10697 # configuration script generated by Autoconf, you may include it under
10698 # the same distribution terms that you use for the rest of that program.
10699
10700 # A sed program that does not truncate output.
10701 SED=$lt_SED
10702
10703 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10704 Xsed="$SED -e 1s/^X//"
10705
10706 # The HP-UX ksh and POSIX shell print the target directory to stdout
10707 # if CDPATH is set.
10708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10709
10710 # The names of the tagged configurations supported by this script.
10711 available_tags=
10712
10713 # ### BEGIN LIBTOOL CONFIG
10714
10715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10716
10717 # Shell to use when invoking shell scripts.
10718 SHELL=$lt_SHELL
10719
10720 # Whether or not to build shared libraries.
10721 build_libtool_libs=$enable_shared
10722
10723 # Whether or not to build static libraries.
10724 build_old_libs=$enable_static
10725
10726 # Whether or not to add -lc for building shared libraries.
10727 build_libtool_need_lc=$archive_cmds_need_lc
10728
10729 # Whether or not to disallow shared libs when runtime libs are static
10730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10731
10732 # Whether or not to optimize for fast installation.
10733 fast_install=$enable_fast_install
10734
10735 # The host system.
10736 host_alias=$host_alias
10737 host=$host
10738 host_os=$host_os
10739
10740 # The build system.
10741 build_alias=$build_alias
10742 build=$build
10743 build_os=$build_os
10744
10745 # An echo program that does not interpret backslashes.
10746 echo=$lt_echo
10747
10748 # The archiver.
10749 AR=$lt_AR
10750 AR_FLAGS=$lt_AR_FLAGS
10751
10752 # A C compiler.
10753 LTCC=$lt_LTCC
10754
10755 # LTCC compiler flags.
10756 LTCFLAGS=$lt_LTCFLAGS
10757
10758 # A language-specific compiler.
10759 CC=$lt_compiler
10760
10761 # Is the compiler the GNU C compiler?
10762 with_gcc=$GCC
10763
10764 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10765 gcc_ver=\`gcc -dumpversion\`
10766
10767 # An ERE matcher.
10768 EGREP=$lt_EGREP
10769
10770 # The linker used to build libraries.
10771 LD=$lt_LD
10772
10773 # Whether we need hard or soft links.
10774 LN_S=$lt_LN_S
10775
10776 # A BSD-compatible nm program.
10777 NM=$lt_NM
10778
10779 # A symbol stripping program
10780 STRIP=$lt_STRIP
10781
10782 # Used to examine libraries when file_magic_cmd begins "file"
10783 MAGIC_CMD=$MAGIC_CMD
10784
10785 # Used on cygwin: DLL creation program.
10786 DLLTOOL="$DLLTOOL"
10787
10788 # Used on cygwin: object dumper.
10789 OBJDUMP="$OBJDUMP"
10790
10791 # Used on cygwin: assembler.
10792 AS="$AS"
10793
10794 # The name of the directory that contains temporary libtool files.
10795 objdir=$objdir
10796
10797 # How to create reloadable object files.
10798 reload_flag=$lt_reload_flag
10799 reload_cmds=$lt_reload_cmds
10800
10801 # How to pass a linker flag through the compiler.
10802 wl=$lt_lt_prog_compiler_wl
10803
10804 # Object file suffix (normally "o").
10805 objext="$ac_objext"
10806
10807 # Old archive suffix (normally "a").
10808 libext="$libext"
10809
10810 # Shared library suffix (normally ".so").
10811 shrext_cmds='$shrext_cmds'
10812
10813 # Executable file suffix (normally "").
10814 exeext="$exeext"
10815
10816 # Additional compiler flags for building library objects.
10817 pic_flag=$lt_lt_prog_compiler_pic
10818 pic_mode=$pic_mode
10819
10820 # What is the maximum length of a command?
10821 max_cmd_len=$lt_cv_sys_max_cmd_len
10822
10823 # Does compiler simultaneously support -c and -o options?
10824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10825
10826 # Must we lock files when doing compilation?
10827 need_locks=$lt_need_locks
10828
10829 # Do we need the lib prefix for modules?
10830 need_lib_prefix=$need_lib_prefix
10831
10832 # Do we need a version for libraries?
10833 need_version=$need_version
10834
10835 # Whether dlopen is supported.
10836 dlopen_support=$enable_dlopen
10837
10838 # Whether dlopen of programs is supported.
10839 dlopen_self=$enable_dlopen_self
10840
10841 # Whether dlopen of statically linked programs is supported.
10842 dlopen_self_static=$enable_dlopen_self_static
10843
10844 # Compiler flag to prevent dynamic linking.
10845 link_static_flag=$lt_lt_prog_compiler_static
10846
10847 # Compiler flag to turn off builtin functions.
10848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10849
10850 # Compiler flag to allow reflexive dlopens.
10851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10852
10853 # Compiler flag to generate shared objects directly from archives.
10854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10855
10856 # Compiler flag to generate thread-safe objects.
10857 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10858
10859 # Library versioning type.
10860 version_type=$version_type
10861
10862 # Format of library name prefix.
10863 libname_spec=$lt_libname_spec
10864
10865 # List of archive names.  First name is the real one, the rest are links.
10866 # The last name is the one that the linker finds with -lNAME.
10867 library_names_spec=$lt_library_names_spec
10868
10869 # The coded name of the library, if different from the real name.
10870 soname_spec=$lt_soname_spec
10871
10872 # Commands used to build and install an old-style archive.
10873 RANLIB=$lt_RANLIB
10874 old_archive_cmds=$lt_old_archive_cmds
10875 old_postinstall_cmds=$lt_old_postinstall_cmds
10876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10877
10878 # Create an old-style archive from a shared archive.
10879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10880
10881 # Create a temporary old-style archive to link instead of a shared archive.
10882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10883
10884 # Commands used to build and install a shared archive.
10885 archive_cmds=$lt_archive_cmds
10886 archive_expsym_cmds=$lt_archive_expsym_cmds
10887 postinstall_cmds=$lt_postinstall_cmds
10888 postuninstall_cmds=$lt_postuninstall_cmds
10889
10890 # Commands used to build a loadable module (assumed same as above if empty)
10891 module_cmds=$lt_module_cmds
10892 module_expsym_cmds=$lt_module_expsym_cmds
10893
10894 # Commands to strip libraries.
10895 old_striplib=$lt_old_striplib
10896 striplib=$lt_striplib
10897
10898 # Dependencies to place before the objects being linked to create a
10899 # shared library.
10900 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10901
10902 # Dependencies to place after the objects being linked to create a
10903 # shared library.
10904 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10905
10906 # Dependencies to place before the objects being linked to create a
10907 # shared library.
10908 predeps=$lt_predeps
10909
10910 # Dependencies to place after the objects being linked to create a
10911 # shared library.
10912 postdeps=$lt_postdeps
10913
10914 # The library search path used internally by the compiler when linking
10915 # a shared library.
10916 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10917
10918 # Method to check whether dependent libraries are shared objects.
10919 deplibs_check_method=$lt_deplibs_check_method
10920
10921 # Command to use when deplibs_check_method == file_magic.
10922 file_magic_cmd=$lt_file_magic_cmd
10923
10924 # Flag that allows shared libraries with undefined symbols to be built.
10925 allow_undefined_flag=$lt_allow_undefined_flag
10926
10927 # Flag that forces no undefined symbols.
10928 no_undefined_flag=$lt_no_undefined_flag
10929
10930 # Commands used to finish a libtool library installation in a directory.
10931 finish_cmds=$lt_finish_cmds
10932
10933 # Same as above, but a single script fragment to be evaled but not shown.
10934 finish_eval=$lt_finish_eval
10935
10936 # Take the output of nm and produce a listing of raw symbols and C names.
10937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10938
10939 # Transform the output of nm in a proper C declaration
10940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10941
10942 # Transform the output of nm in a C name address pair
10943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10944
10945 # This is the shared library runtime path variable.
10946 runpath_var=$runpath_var
10947
10948 # This is the shared library path variable.
10949 shlibpath_var=$shlibpath_var
10950
10951 # Is shlibpath searched before the hard-coded library search path?
10952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10953
10954 # How to hardcode a shared library path into an executable.
10955 hardcode_action=$hardcode_action
10956
10957 # Whether we should hardcode library paths into libraries.
10958 hardcode_into_libs=$hardcode_into_libs
10959
10960 # Flag to hardcode \$libdir into a binary during linking.
10961 # This must work even if \$libdir does not exist.
10962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10963
10964 # If ld is used when linking, flag to hardcode \$libdir into
10965 # a binary during linking. This must work even if \$libdir does
10966 # not exist.
10967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10968
10969 # Whether we need a single -rpath flag with a separated argument.
10970 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10971
10972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10973 # resulting binary.
10974 hardcode_direct=$hardcode_direct
10975
10976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10977 # resulting binary.
10978 hardcode_minus_L=$hardcode_minus_L
10979
10980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10981 # the resulting binary.
10982 hardcode_shlibpath_var=$hardcode_shlibpath_var
10983
10984 # Set to yes if building a shared library automatically hardcodes DIR into the library
10985 # and all subsequent libraries and executables linked against it.
10986 hardcode_automatic=$hardcode_automatic
10987
10988 # Variables whose values should be saved in libtool wrapper scripts and
10989 # restored at relink time.
10990 variables_saved_for_relink="$variables_saved_for_relink"
10991
10992 # Whether libtool must link a program against all its dependency libraries.
10993 link_all_deplibs=$link_all_deplibs
10994
10995 # Compile-time system search path for libraries
10996 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10997
10998 # Run-time system search path for libraries
10999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11000
11001 # Fix the shell variable \$srcfile for the compiler.
11002 fix_srcfile_path="$fix_srcfile_path"
11003
11004 # Set to yes if exported symbols are required.
11005 always_export_symbols=$always_export_symbols
11006
11007 # The commands to list exported symbols.
11008 export_symbols_cmds=$lt_export_symbols_cmds
11009
11010 # The commands to extract the exported symbol list from a shared archive.
11011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11012
11013 # Symbols that should not be listed in the preloaded symbols.
11014 exclude_expsyms=$lt_exclude_expsyms
11015
11016 # Symbols that must always be exported.
11017 include_expsyms=$lt_include_expsyms
11018
11019 # ### END LIBTOOL CONFIG
11020
11021 __EOF__
11022
11023
11024   case $host_os in
11025   aix3*)
11026     cat <<\EOF >> "$cfgfile"
11027
11028 # AIX sometimes has problems with the GCC collect2 program.  For some
11029 # reason, if we set the COLLECT_NAMES environment variable, the problems
11030 # vanish in a puff of smoke.
11031 if test "X${COLLECT_NAMES+set}" != Xset; then
11032   COLLECT_NAMES=
11033   export COLLECT_NAMES
11034 fi
11035 EOF
11036     ;;
11037   esac
11038
11039   # We use sed instead of cat because bash on DJGPP gets confused if
11040   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11041   # text mode, it properly converts lines to CR/LF.  This bash problem
11042   # is reportedly fixed, but why not run on old versions too?
11043   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11044
11045   mv -f "$cfgfile" "$ofile" || \
11046     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11047   chmod +x "$ofile"
11048
11049 else
11050   # If there is no Makefile yet, we rely on a make rule to execute
11051   # `config.status --recheck' to rerun these tests and create the
11052   # libtool script then.
11053   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11054   if test -f "$ltmain_in"; then
11055     test -f Makefile && make "$ltmain"
11056   fi
11057 fi
11058
11059
11060 ac_ext=c
11061 ac_cpp='$CPP $CPPFLAGS'
11062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065
11066 CC="$lt_save_CC"
11067
11068
11069 # Check whether --with-tags was given.
11070 if test "${with_tags+set}" = set; then
11071   withval=$with_tags; tagnames="$withval"
11072 fi
11073
11074
11075 if test -f "$ltmain" && test -n "$tagnames"; then
11076   if test ! -f "${ofile}"; then
11077     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11078 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11079   fi
11080
11081   if test -z "$LTCC"; then
11082     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11083     if test -z "$LTCC"; then
11084       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11085 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11086     else
11087       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11088 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11089     fi
11090   fi
11091   if test -z "$LTCFLAGS"; then
11092     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11093   fi
11094
11095   # Extract list of available tagged configurations in $ofile.
11096   # Note that this assumes the entire list is on one line.
11097   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11098
11099   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11100   for tagname in $tagnames; do
11101     IFS="$lt_save_ifs"
11102     # Check whether tagname contains only valid characters
11103     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11104     "") ;;
11105     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11106 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11107    { (exit 1); exit 1; }; }
11108         ;;
11109     esac
11110
11111     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11112     then
11113       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11114 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11115    { (exit 1); exit 1; }; }
11116     fi
11117
11118     # Update the list of available tags.
11119     if test -n "$tagname"; then
11120       echo appending configuration tag \"$tagname\" to $ofile
11121
11122       case $tagname in
11123       CXX)
11124         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11125             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11126             (test "X$CXX" != "Xg++"))) ; then
11127           ac_ext=cpp
11128 ac_cpp='$CXXCPP $CPPFLAGS'
11129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11132
11133
11134
11135
11136 archive_cmds_need_lc_CXX=no
11137 allow_undefined_flag_CXX=
11138 always_export_symbols_CXX=no
11139 archive_expsym_cmds_CXX=
11140 export_dynamic_flag_spec_CXX=
11141 hardcode_direct_CXX=no
11142 hardcode_libdir_flag_spec_CXX=
11143 hardcode_libdir_flag_spec_ld_CXX=
11144 hardcode_libdir_separator_CXX=
11145 hardcode_minus_L_CXX=no
11146 hardcode_shlibpath_var_CXX=unsupported
11147 hardcode_automatic_CXX=no
11148 module_cmds_CXX=
11149 module_expsym_cmds_CXX=
11150 link_all_deplibs_CXX=unknown
11151 old_archive_cmds_CXX=$old_archive_cmds
11152 no_undefined_flag_CXX=
11153 whole_archive_flag_spec_CXX=
11154 enable_shared_with_static_runtimes_CXX=no
11155
11156 # Dependencies to place before and after the object being linked:
11157 predep_objects_CXX=
11158 postdep_objects_CXX=
11159 predeps_CXX=
11160 postdeps_CXX=
11161 compiler_lib_search_path_CXX=
11162
11163 # Source file extension for C++ test sources.
11164 ac_ext=cpp
11165
11166 # Object file extension for compiled C++ test sources.
11167 objext=o
11168 objext_CXX=$objext
11169
11170 # Code to be used in simple compile tests
11171 lt_simple_compile_test_code="int some_variable = 0;\n"
11172
11173 # Code to be used in simple link tests
11174 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11175
11176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11177
11178 # If no C compiler was specified, use CC.
11179 LTCC=${LTCC-"$CC"}
11180
11181 # If no C compiler flags were specified, use CFLAGS.
11182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11183
11184 # Allow CC to be a program name with arguments.
11185 compiler=$CC
11186
11187
11188 # save warnings/boilerplate of simple test code
11189 ac_outfile=conftest.$ac_objext
11190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11192 _lt_compiler_boilerplate=`cat conftest.err`
11193 $rm conftest*
11194
11195 ac_outfile=conftest.$ac_objext
11196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11198 _lt_linker_boilerplate=`cat conftest.err`
11199 $rm conftest*
11200
11201
11202 # Allow CC to be a program name with arguments.
11203 lt_save_CC=$CC
11204 lt_save_LD=$LD
11205 lt_save_GCC=$GCC
11206 GCC=$GXX
11207 lt_save_with_gnu_ld=$with_gnu_ld
11208 lt_save_path_LD=$lt_cv_path_LD
11209 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11210   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11211 else
11212   $as_unset lt_cv_prog_gnu_ld
11213 fi
11214 if test -n "${lt_cv_path_LDCXX+set}"; then
11215   lt_cv_path_LD=$lt_cv_path_LDCXX
11216 else
11217   $as_unset lt_cv_path_LD
11218 fi
11219 test -z "${LDCXX+set}" || LD=$LDCXX
11220 CC=${CXX-"c++"}
11221 compiler=$CC
11222 compiler_CXX=$CC
11223 for cc_temp in $compiler""; do
11224   case $cc_temp in
11225     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11226     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11227     \-*) ;;
11228     *) break;;
11229   esac
11230 done
11231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11232
11233
11234 # We don't want -fno-exception wen compiling C++ code, so set the
11235 # no_builtin_flag separately
11236 if test "$GXX" = yes; then
11237   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11238 else
11239   lt_prog_compiler_no_builtin_flag_CXX=
11240 fi
11241
11242 if test "$GXX" = yes; then
11243   # Set up default GNU C++ configuration
11244
11245
11246 # Check whether --with-gnu-ld was given.
11247 if test "${with_gnu_ld+set}" = set; then
11248   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11249 else
11250   with_gnu_ld=no
11251 fi
11252
11253 ac_prog=ld
11254 if test "$GCC" = yes; then
11255   # Check if gcc -print-prog-name=ld gives a path.
11256   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11258   case $host in
11259   *-*-mingw*)
11260     # gcc leaves a trailing carriage return which upsets mingw
11261     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11262   *)
11263     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11264   esac
11265   case $ac_prog in
11266     # Accept absolute paths.
11267     [\\/]* | ?:[\\/]*)
11268       re_direlt='/[^/][^/]*/\.\./'
11269       # Canonicalize the pathname of ld
11270       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11271       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11272         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11273       done
11274       test -z "$LD" && LD="$ac_prog"
11275       ;;
11276   "")
11277     # If it fails, then pretend we aren't using GCC.
11278     ac_prog=ld
11279     ;;
11280   *)
11281     # If it is relative, then search for the first ld in PATH.
11282     with_gnu_ld=unknown
11283     ;;
11284   esac
11285 elif test "$with_gnu_ld" = yes; then
11286   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11288 else
11289   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11291 fi
11292 if test "${lt_cv_path_LD+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   if test -z "$LD"; then
11296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11297   for ac_dir in $PATH; do
11298     IFS="$lt_save_ifs"
11299     test -z "$ac_dir" && ac_dir=.
11300     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11301       lt_cv_path_LD="$ac_dir/$ac_prog"
11302       # Check to see if the program is GNU ld.  I'd rather use --version,
11303       # but apparently some variants of GNU ld only accept -v.
11304       # Break only if it was the GNU/non-GNU ld that we prefer.
11305       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11306       *GNU* | *'with BFD'*)
11307         test "$with_gnu_ld" != no && break
11308         ;;
11309       *)
11310         test "$with_gnu_ld" != yes && break
11311         ;;
11312       esac
11313     fi
11314   done
11315   IFS="$lt_save_ifs"
11316 else
11317   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11318 fi
11319 fi
11320
11321 LD="$lt_cv_path_LD"
11322 if test -n "$LD"; then
11323   { echo "$as_me:$LINENO: result: $LD" >&5
11324 echo "${ECHO_T}$LD" >&6; }
11325 else
11326   { echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6; }
11328 fi
11329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11331    { (exit 1); exit 1; }; }
11332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11335   echo $ECHO_N "(cached) $ECHO_C" >&6
11336 else
11337   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11338 case `$LD -v 2>&1 </dev/null` in
11339 *GNU* | *'with BFD'*)
11340   lt_cv_prog_gnu_ld=yes
11341   ;;
11342 *)
11343   lt_cv_prog_gnu_ld=no
11344   ;;
11345 esac
11346 fi
11347 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11349 with_gnu_ld=$lt_cv_prog_gnu_ld
11350
11351
11352
11353   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11354   # archiving commands below assume that GNU ld is being used.
11355   if test "$with_gnu_ld" = yes; then
11356     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11357     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'
11358
11359     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11360     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11361
11362     # If archive_cmds runs LD, not CC, wlarc should be empty
11363     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11364     #     investigate it a little bit more. (MM)
11365     wlarc='${wl}'
11366
11367     # ancient GNU ld didn't support --whole-archive et. al.
11368     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11369         grep 'no-whole-archive' > /dev/null; then
11370       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11371     else
11372       whole_archive_flag_spec_CXX=
11373     fi
11374   else
11375     with_gnu_ld=no
11376     wlarc=
11377
11378     # A generic and very simple default shared library creation
11379     # command for GNU C++ for the case where it uses the native
11380     # linker, instead of GNU ld.  If possible, this setting should
11381     # overridden to take advantage of the native linker features on
11382     # the platform it is being used on.
11383     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11384   fi
11385
11386   # Commands to make compiler produce verbose output that lists
11387   # what "hidden" libraries, object files and flags are used when
11388   # linking a shared library.
11389   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11390
11391 else
11392   GXX=no
11393   with_gnu_ld=no
11394   wlarc=
11395 fi
11396
11397 # PORTME: fill in a description of your system's C++ link characteristics
11398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11400 ld_shlibs_CXX=yes
11401 case $host_os in
11402   aix3*)
11403     # FIXME: insert proper C++ library support
11404     ld_shlibs_CXX=no
11405     ;;
11406   aix4* | aix5*)
11407     if test "$host_cpu" = ia64; then
11408       # On IA64, the linker does run time linking by default, so we don't
11409       # have to do anything special.
11410       aix_use_runtimelinking=no
11411       exp_sym_flag='-Bexport'
11412       no_entry_flag=""
11413     else
11414       aix_use_runtimelinking=no
11415
11416       # Test if we are trying to use run time linking or normal
11417       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11418       # need to do runtime linking.
11419       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11420         for ld_flag in $LDFLAGS; do
11421           case $ld_flag in
11422           *-brtl*)
11423             aix_use_runtimelinking=yes
11424             break
11425             ;;
11426           esac
11427         done
11428         ;;
11429       esac
11430
11431       exp_sym_flag='-bexport'
11432       no_entry_flag='-bnoentry'
11433     fi
11434
11435     # When large executables or shared objects are built, AIX ld can
11436     # have problems creating the table of contents.  If linking a library
11437     # or program results in "error TOC overflow" add -mminimal-toc to
11438     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11439     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11440
11441     archive_cmds_CXX=''
11442     hardcode_direct_CXX=yes
11443     hardcode_libdir_separator_CXX=':'
11444     link_all_deplibs_CXX=yes
11445
11446     if test "$GXX" = yes; then
11447       case $host_os in aix4.[012]|aix4.[012].*)
11448       # We only want to do this on AIX 4.2 and lower, the check
11449       # below for broken collect2 doesn't work under 4.3+
11450         collect2name=`${CC} -print-prog-name=collect2`
11451         if test -f "$collect2name" && \
11452            strings "$collect2name" | grep resolve_lib_name >/dev/null
11453         then
11454           # We have reworked collect2
11455           hardcode_direct_CXX=yes
11456         else
11457           # We have old collect2
11458           hardcode_direct_CXX=unsupported
11459           # It fails to find uninstalled libraries when the uninstalled
11460           # path is not listed in the libpath.  Setting hardcode_minus_L
11461           # to unsupported forces relinking
11462           hardcode_minus_L_CXX=yes
11463           hardcode_libdir_flag_spec_CXX='-L$libdir'
11464           hardcode_libdir_separator_CXX=
11465         fi
11466         ;;
11467       esac
11468       shared_flag='-shared'
11469       if test "$aix_use_runtimelinking" = yes; then
11470         shared_flag="$shared_flag "'${wl}-G'
11471       fi
11472     else
11473       # not using gcc
11474       if test "$host_cpu" = ia64; then
11475         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11476         # chokes on -Wl,-G. The following line is correct:
11477         shared_flag='-G'
11478       else
11479         if test "$aix_use_runtimelinking" = yes; then
11480           shared_flag='${wl}-G'
11481         else
11482           shared_flag='${wl}-bM:SRE'
11483         fi
11484       fi
11485     fi
11486
11487     # It seems that -bexpall does not export symbols beginning with
11488     # underscore (_), so it is better to generate a list of symbols to export.
11489     always_export_symbols_CXX=yes
11490     if test "$aix_use_runtimelinking" = yes; then
11491       # Warning - without using the other runtime loading flags (-brtl),
11492       # -berok will link without error, but may produce a broken library.
11493       allow_undefined_flag_CXX='-berok'
11494       # Determine the default libpath from the value encoded in an empty executable.
11495       cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501
11502 int
11503 main ()
11504 {
11505
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (ac_try="$ac_link"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_link") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_cxx_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest$ac_exeext &&
11527        $as_test_x conftest$ac_exeext; then
11528
11529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11530 }'`
11531 # Check for a 64-bit object if we didn't find anything.
11532 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; }
11533 }'`; fi
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538
11539 fi
11540
11541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11542       conftest$ac_exeext conftest.$ac_ext
11543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11544
11545       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11546
11547       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"
11548      else
11549       if test "$host_cpu" = ia64; then
11550         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11551         allow_undefined_flag_CXX="-z nodefs"
11552         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"
11553       else
11554         # Determine the default libpath from the value encoded in an empty executable.
11555         cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h.  */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h.  */
11561
11562 int
11563 main ()
11564 {
11565
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574   *) ac_try_echo=$ac_try;;
11575 esac
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577   (eval "$ac_link") 2>conftest.er1
11578   ac_status=$?
11579   grep -v '^ *+' conftest.er1 >conftest.err
11580   rm -f conftest.er1
11581   cat conftest.err >&5
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } && {
11584          test -z "$ac_cxx_werror_flag" ||
11585          test ! -s conftest.err
11586        } && test -s conftest$ac_exeext &&
11587        $as_test_x conftest$ac_exeext; then
11588
11589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11590 }'`
11591 # Check for a 64-bit object if we didn't find anything.
11592 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; }
11593 }'`; fi
11594 else
11595   echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598
11599 fi
11600
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602       conftest$ac_exeext conftest.$ac_ext
11603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11604
11605         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11606         # Warning - without using the other run time loading flags,
11607         # -berok will link without error, but may produce a broken library.
11608         no_undefined_flag_CXX=' ${wl}-bernotok'
11609         allow_undefined_flag_CXX=' ${wl}-berok'
11610         # Exported symbols can be pulled into shared objects from archives
11611         whole_archive_flag_spec_CXX='$convenience'
11612         archive_cmds_need_lc_CXX=yes
11613         # This is similar to how AIX traditionally builds its shared libraries.
11614         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'
11615       fi
11616     fi
11617     ;;
11618
11619   beos*)
11620     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11621       allow_undefined_flag_CXX=unsupported
11622       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11623       # support --undefined.  This deserves some investigation.  FIXME
11624       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11625     else
11626       ld_shlibs_CXX=no
11627     fi
11628     ;;
11629
11630   chorus*)
11631     case $cc_basename in
11632       *)
11633         # FIXME: insert proper C++ library support
11634         ld_shlibs_CXX=no
11635         ;;
11636     esac
11637     ;;
11638
11639   cygwin* | mingw* | pw32*)
11640     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11641     # as there is no search path for DLLs.
11642     hardcode_libdir_flag_spec_CXX='-L$libdir'
11643     allow_undefined_flag_CXX=unsupported
11644     always_export_symbols_CXX=no
11645     enable_shared_with_static_runtimes_CXX=yes
11646
11647     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11648       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'
11649       # If the export-symbols file already is a .def file (1st line
11650       # is EXPORTS), use it as is; otherwise, prepend...
11651       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11652         cp $export_symbols $output_objdir/$soname.def;
11653       else
11654         echo EXPORTS > $output_objdir/$soname.def;
11655         cat $export_symbols >> $output_objdir/$soname.def;
11656       fi~
11657       $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'
11658     else
11659       ld_shlibs_CXX=no
11660     fi
11661   ;;
11662       darwin* | rhapsody*)
11663         case $host_os in
11664         rhapsody* | darwin1.[012])
11665          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11666          ;;
11667        *) # Darwin 1.3 on
11668          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11669            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11670          else
11671            case ${MACOSX_DEPLOYMENT_TARGET} in
11672              10.[012])
11673                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11674                ;;
11675              10.*)
11676                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11677                ;;
11678            esac
11679          fi
11680          ;;
11681         esac
11682       archive_cmds_need_lc_CXX=no
11683       hardcode_direct_CXX=no
11684       hardcode_automatic_CXX=yes
11685       hardcode_shlibpath_var_CXX=unsupported
11686       whole_archive_flag_spec_CXX=''
11687       link_all_deplibs_CXX=yes
11688
11689     if test "$GXX" = yes ; then
11690       lt_int_apple_cc_single_mod=no
11691       output_verbose_link_cmd='echo'
11692       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11693        lt_int_apple_cc_single_mod=yes
11694       fi
11695       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11696        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11697       else
11698           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'
11699         fi
11700         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11701         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11702           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11703             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}'
11704           else
11705             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}'
11706           fi
11707             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}'
11708       else
11709       case $cc_basename in
11710         xlc*)
11711          output_verbose_link_cmd='echo'
11712           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'
11713           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11714           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11715           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}'
11716           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}'
11717           ;;
11718        *)
11719          ld_shlibs_CXX=no
11720           ;;
11721       esac
11722       fi
11723         ;;
11724
11725   dgux*)
11726     case $cc_basename in
11727       ec++*)
11728         # FIXME: insert proper C++ library support
11729         ld_shlibs_CXX=no
11730         ;;
11731       ghcx*)
11732         # Green Hills C++ Compiler
11733         # FIXME: insert proper C++ library support
11734         ld_shlibs_CXX=no
11735         ;;
11736       *)
11737         # FIXME: insert proper C++ library support
11738         ld_shlibs_CXX=no
11739         ;;
11740     esac
11741     ;;
11742   freebsd[12]*)
11743     # C++ shared libraries reported to be fairly broken before switch to ELF
11744     ld_shlibs_CXX=no
11745     ;;
11746   freebsd-elf*)
11747     archive_cmds_need_lc_CXX=no
11748     ;;
11749   freebsd* | kfreebsd*-gnu | dragonfly*)
11750     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11751     # conventions
11752     ld_shlibs_CXX=yes
11753     ;;
11754   gnu*)
11755     ;;
11756   hpux9*)
11757     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11758     hardcode_libdir_separator_CXX=:
11759     export_dynamic_flag_spec_CXX='${wl}-E'
11760     hardcode_direct_CXX=yes
11761     hardcode_minus_L_CXX=yes # Not in the search PATH,
11762                                 # but as the default
11763                                 # location of the library.
11764
11765     case $cc_basename in
11766     CC*)
11767       # FIXME: insert proper C++ library support
11768       ld_shlibs_CXX=no
11769       ;;
11770     aCC*)
11771       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'
11772       # Commands to make compiler produce verbose output that lists
11773       # what "hidden" libraries, object files and flags are used when
11774       # linking a shared library.
11775       #
11776       # There doesn't appear to be a way to prevent this compiler from
11777       # explicitly linking system object files so we need to strip them
11778       # from the output so that they don't get included in the library
11779       # dependencies.
11780       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'
11781       ;;
11782     *)
11783       if test "$GXX" = yes; then
11784         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'
11785       else
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788       fi
11789       ;;
11790     esac
11791     ;;
11792   hpux10*|hpux11*)
11793     if test $with_gnu_ld = no; then
11794       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11795       hardcode_libdir_separator_CXX=:
11796
11797       case $host_cpu in
11798       hppa*64*|ia64*)
11799         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11800         ;;
11801       *)
11802         export_dynamic_flag_spec_CXX='${wl}-E'
11803         ;;
11804       esac
11805     fi
11806     case $host_cpu in
11807     hppa*64*|ia64*)
11808       hardcode_direct_CXX=no
11809       hardcode_shlibpath_var_CXX=no
11810       ;;
11811     *)
11812       hardcode_direct_CXX=yes
11813       hardcode_minus_L_CXX=yes # Not in the search PATH,
11814                                               # but as the default
11815                                               # location of the library.
11816       ;;
11817     esac
11818
11819     case $cc_basename in
11820       CC*)
11821         # FIXME: insert proper C++ library support
11822         ld_shlibs_CXX=no
11823         ;;
11824       aCC*)
11825         case $host_cpu in
11826         hppa*64*)
11827           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11828           ;;
11829         ia64*)
11830           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11831           ;;
11832         *)
11833           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11834           ;;
11835         esac
11836         # Commands to make compiler produce verbose output that lists
11837         # what "hidden" libraries, object files and flags are used when
11838         # linking a shared library.
11839         #
11840         # There doesn't appear to be a way to prevent this compiler from
11841         # explicitly linking system object files so we need to strip them
11842         # from the output so that they don't get included in the library
11843         # dependencies.
11844         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'
11845         ;;
11846       *)
11847         if test "$GXX" = yes; then
11848           if test $with_gnu_ld = no; then
11849             case $host_cpu in
11850             hppa*64*)
11851               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11852               ;;
11853             ia64*)
11854               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11855               ;;
11856             *)
11857               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'
11858               ;;
11859             esac
11860           fi
11861         else
11862           # FIXME: insert proper C++ library support
11863           ld_shlibs_CXX=no
11864         fi
11865         ;;
11866     esac
11867     ;;
11868   interix3*)
11869     hardcode_direct_CXX=no
11870     hardcode_shlibpath_var_CXX=no
11871     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11872     export_dynamic_flag_spec_CXX='${wl}-E'
11873     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11874     # Instead, shared libraries are loaded at an image base (0x10000000 by
11875     # default) and relocated if they conflict, which is a slow very memory
11876     # consuming and fragmenting process.  To avoid this, we pick a random,
11877     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11878     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11879     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'
11880     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'
11881     ;;
11882   irix5* | irix6*)
11883     case $cc_basename in
11884       CC*)
11885         # SGI C++
11886         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'
11887
11888         # Archives containing C++ object files must be created using
11889         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11890         # necessary to make sure instantiated templates are included
11891         # in the archive.
11892         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11893         ;;
11894       *)
11895         if test "$GXX" = yes; then
11896           if test "$with_gnu_ld" = no; then
11897             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'
11898           else
11899             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'
11900           fi
11901         fi
11902         link_all_deplibs_CXX=yes
11903         ;;
11904     esac
11905     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906     hardcode_libdir_separator_CXX=:
11907     ;;
11908   linux*)
11909     case $cc_basename in
11910       KCC*)
11911         # Kuck and Associates, Inc. (KAI) C++ Compiler
11912
11913         # KCC will only create a shared library if the output file
11914         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915         # to its proper name (with version) after linking.
11916         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'
11917         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'
11918         # Commands to make compiler produce verbose output that lists
11919         # what "hidden" libraries, object files and flags are used when
11920         # linking a shared library.
11921         #
11922         # There doesn't appear to be a way to prevent this compiler from
11923         # explicitly linking system object files so we need to strip them
11924         # from the output so that they don't get included in the library
11925         # dependencies.
11926         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'
11927
11928         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11929         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11930
11931         # Archives containing C++ object files must be created using
11932         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11933         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11934         ;;
11935       icpc*)
11936         # Intel C++
11937         with_gnu_ld=yes
11938         # version 8.0 and above of icpc choke on multiply defined symbols
11939         # if we add $predep_objects and $postdep_objects, however 7.1 and
11940         # earlier do not add the objects themselves.
11941         case `$CC -V 2>&1` in
11942         *"Version 7."*)
11943           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944           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'
11945           ;;
11946         *)  # Version 8.0 or newer
11947           tmp_idyn=
11948           case $host_cpu in
11949             ia64*) tmp_idyn=' -i_dynamic';;
11950           esac
11951           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11952           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'
11953           ;;
11954         esac
11955         archive_cmds_need_lc_CXX=no
11956         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11959         ;;
11960       pgCC*)
11961         # Portland Group C++ compiler
11962         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11963         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'
11964
11965         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11966         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11967         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'
11968         ;;
11969       cxx*)
11970         # Compaq C++
11971         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972         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'
11973
11974         runpath_var=LD_RUN_PATH
11975         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11976         hardcode_libdir_separator_CXX=:
11977
11978         # Commands to make compiler produce verbose output that lists
11979         # what "hidden" libraries, object files and flags are used when
11980         # linking a shared library.
11981         #
11982         # There doesn't appear to be a way to prevent this compiler from
11983         # explicitly linking system object files so we need to strip them
11984         # from the output so that they don't get included in the library
11985         # dependencies.
11986         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'
11987         ;;
11988     esac
11989     ;;
11990   lynxos*)
11991     # FIXME: insert proper C++ library support
11992     ld_shlibs_CXX=no
11993     ;;
11994   m88k*)
11995     # FIXME: insert proper C++ library support
11996     ld_shlibs_CXX=no
11997     ;;
11998   mvs*)
11999     case $cc_basename in
12000       cxx*)
12001         # FIXME: insert proper C++ library support
12002         ld_shlibs_CXX=no
12003         ;;
12004       *)
12005         # FIXME: insert proper C++ library support
12006         ld_shlibs_CXX=no
12007         ;;
12008     esac
12009     ;;
12010   netbsd*)
12011     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12012       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12013       wlarc=
12014       hardcode_libdir_flag_spec_CXX='-R$libdir'
12015       hardcode_direct_CXX=yes
12016       hardcode_shlibpath_var_CXX=no
12017     fi
12018     # Workaround some broken pre-1.5 toolchains
12019     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12020     ;;
12021   openbsd2*)
12022     # C++ shared libraries are fairly broken
12023     ld_shlibs_CXX=no
12024     ;;
12025   openbsd*)
12026     hardcode_direct_CXX=yes
12027     hardcode_shlibpath_var_CXX=no
12028     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12029     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12030     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12031       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12032       export_dynamic_flag_spec_CXX='${wl}-E'
12033       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12034     fi
12035     output_verbose_link_cmd='echo'
12036     ;;
12037   osf3*)
12038     case $cc_basename in
12039       KCC*)
12040         # Kuck and Associates, Inc. (KAI) C++ Compiler
12041
12042         # KCC will only create a shared library if the output file
12043         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12044         # to its proper name (with version) after linking.
12045         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'
12046
12047         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12048         hardcode_libdir_separator_CXX=:
12049
12050         # Archives containing C++ object files must be created using
12051         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12052         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12053
12054         ;;
12055       RCC*)
12056         # Rational C++ 2.4.1
12057         # FIXME: insert proper C++ library support
12058         ld_shlibs_CXX=no
12059         ;;
12060       cxx*)
12061         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12062         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'
12063
12064         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12065         hardcode_libdir_separator_CXX=:
12066
12067         # Commands to make compiler produce verbose output that lists
12068         # what "hidden" libraries, object files and flags are used when
12069         # linking a shared library.
12070         #
12071         # There doesn't appear to be a way to prevent this compiler from
12072         # explicitly linking system object files so we need to strip them
12073         # from the output so that they don't get included in the library
12074         # dependencies.
12075         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'
12076         ;;
12077       *)
12078         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12079           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080           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'
12081
12082           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083           hardcode_libdir_separator_CXX=:
12084
12085           # Commands to make compiler produce verbose output that lists
12086           # what "hidden" libraries, object files and flags are used when
12087           # linking a shared library.
12088           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12089
12090         else
12091           # FIXME: insert proper C++ library support
12092           ld_shlibs_CXX=no
12093         fi
12094         ;;
12095     esac
12096     ;;
12097   osf4* | osf5*)
12098     case $cc_basename in
12099       KCC*)
12100         # Kuck and Associates, Inc. (KAI) C++ Compiler
12101
12102         # KCC will only create a shared library if the output file
12103         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104         # to its proper name (with version) after linking.
12105         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'
12106
12107         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108         hardcode_libdir_separator_CXX=:
12109
12110         # Archives containing C++ object files must be created using
12111         # the KAI C++ compiler.
12112         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12113         ;;
12114       RCC*)
12115         # Rational C++ 2.4.1
12116         # FIXME: insert proper C++ library support
12117         ld_shlibs_CXX=no
12118         ;;
12119       cxx*)
12120         allow_undefined_flag_CXX=' -expect_unresolved \*'
12121         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'
12122         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12123           echo "-hidden">> $lib.exp~
12124           $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~
12125           $rm $lib.exp'
12126
12127         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12128         hardcode_libdir_separator_CXX=:
12129
12130         # Commands to make compiler produce verbose output that lists
12131         # what "hidden" libraries, object files and flags are used when
12132         # linking a shared library.
12133         #
12134         # There doesn't appear to be a way to prevent this compiler from
12135         # explicitly linking system object files so we need to strip them
12136         # from the output so that they don't get included in the library
12137         # dependencies.
12138         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'
12139         ;;
12140       *)
12141         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12142           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143          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'
12144
12145           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146           hardcode_libdir_separator_CXX=:
12147
12148           # Commands to make compiler produce verbose output that lists
12149           # what "hidden" libraries, object files and flags are used when
12150           # linking a shared library.
12151           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12152
12153         else
12154           # FIXME: insert proper C++ library support
12155           ld_shlibs_CXX=no
12156         fi
12157         ;;
12158     esac
12159     ;;
12160   psos*)
12161     # FIXME: insert proper C++ library support
12162     ld_shlibs_CXX=no
12163     ;;
12164   sunos4*)
12165     case $cc_basename in
12166       CC*)
12167         # Sun C++ 4.x
12168         # FIXME: insert proper C++ library support
12169         ld_shlibs_CXX=no
12170         ;;
12171       lcc*)
12172         # Lucid
12173         # FIXME: insert proper C++ library support
12174         ld_shlibs_CXX=no
12175         ;;
12176       *)
12177         # FIXME: insert proper C++ library support
12178         ld_shlibs_CXX=no
12179         ;;
12180     esac
12181     ;;
12182   solaris*)
12183     case $cc_basename in
12184       CC*)
12185         # Sun C++ 4.2, 5.x and Centerline C++
12186         archive_cmds_need_lc_CXX=yes
12187         no_undefined_flag_CXX=' -zdefs'
12188         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12189         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12190         $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'
12191
12192         hardcode_libdir_flag_spec_CXX='-R$libdir'
12193         hardcode_shlibpath_var_CXX=no
12194         case $host_os in
12195           solaris2.[0-5] | solaris2.[0-5].*) ;;
12196           *)
12197             # The C++ compiler is used as linker so we must use $wl
12198             # flag to pass the commands to the underlying system
12199             # linker. We must also pass each convience library through
12200             # to the system linker between allextract/defaultextract.
12201             # The C++ compiler will combine linker options so we
12202             # cannot just pass the convience library names through
12203             # without $wl.
12204             # Supported since Solaris 2.6 (maybe 2.5.1?)
12205             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'
12206             ;;
12207         esac
12208         link_all_deplibs_CXX=yes
12209
12210         output_verbose_link_cmd='echo'
12211
12212         # Archives containing C++ object files must be created using
12213         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12214         # necessary to make sure instantiated templates are included
12215         # in the archive.
12216         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12217         ;;
12218       gcx*)
12219         # Green Hills C++ Compiler
12220         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12221
12222         # The C++ compiler must be used to create the archive.
12223         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12224         ;;
12225       *)
12226         # GNU C++ compiler with Solaris linker
12227         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12228           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12229           if $CC --version | grep -v '^2\.7' > /dev/null; then
12230             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12233
12234             # Commands to make compiler produce verbose output that lists
12235             # what "hidden" libraries, object files and flags are used when
12236             # linking a shared library.
12237             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12238           else
12239             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12240             # platform.
12241             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12242             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12243                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12244
12245             # Commands to make compiler produce verbose output that lists
12246             # what "hidden" libraries, object files and flags are used when
12247             # linking a shared library.
12248             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12249           fi
12250
12251           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12252         fi
12253         ;;
12254     esac
12255     ;;
12256   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12257     no_undefined_flag_CXX='${wl}-z,text'
12258     archive_cmds_need_lc_CXX=no
12259     hardcode_shlibpath_var_CXX=no
12260     runpath_var='LD_RUN_PATH'
12261
12262     case $cc_basename in
12263       CC*)
12264         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12266         ;;
12267       *)
12268         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12269         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12270         ;;
12271     esac
12272     ;;
12273   sysv5* | sco3.2v5* | sco5v6*)
12274     # Note: We can NOT use -z defs as we might desire, because we do not
12275     # link with -lc, and that would cause any symbols used from libc to
12276     # always be unresolved, which means just about no library would
12277     # ever link correctly.  If we're not using GNU ld we use -z text
12278     # though, which does catch some bad symbols but isn't as heavy-handed
12279     # as -z defs.
12280     # For security reasons, it is highly recommended that you always
12281     # use absolute paths for naming shared libraries, and exclude the
12282     # DT_RUNPATH tag from executables and libraries.  But doing so
12283     # requires that you compile everything twice, which is a pain.
12284     # So that behaviour is only enabled if SCOABSPATH is set to a
12285     # non-empty value in the environment.  Most likely only useful for
12286     # creating official distributions of packages.
12287     # This is a hack until libtool officially supports absolute path
12288     # names for shared libraries.
12289     no_undefined_flag_CXX='${wl}-z,text'
12290     allow_undefined_flag_CXX='${wl}-z,nodefs'
12291     archive_cmds_need_lc_CXX=no
12292     hardcode_shlibpath_var_CXX=no
12293     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12294     hardcode_libdir_separator_CXX=':'
12295     link_all_deplibs_CXX=yes
12296     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12297     runpath_var='LD_RUN_PATH'
12298
12299     case $cc_basename in
12300       CC*)
12301         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12302         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12303         ;;
12304       *)
12305         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12306         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12307         ;;
12308     esac
12309     ;;
12310   tandem*)
12311     case $cc_basename in
12312       NCC*)
12313         # NonStop-UX NCC 3.20
12314         # FIXME: insert proper C++ library support
12315         ld_shlibs_CXX=no
12316         ;;
12317       *)
12318         # FIXME: insert proper C++ library support
12319         ld_shlibs_CXX=no
12320         ;;
12321     esac
12322     ;;
12323   vxworks*)
12324     # FIXME: insert proper C++ library support
12325     ld_shlibs_CXX=no
12326     ;;
12327   *)
12328     # FIXME: insert proper C++ library support
12329     ld_shlibs_CXX=no
12330     ;;
12331 esac
12332 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12333 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12334 test "$ld_shlibs_CXX" = no && can_build_shared=no
12335
12336 GCC_CXX="$GXX"
12337 LD_CXX="$LD"
12338
12339
12340 cat > conftest.$ac_ext <<EOF
12341 class Foo
12342 {
12343 public:
12344   Foo (void) { a = 0; }
12345 private:
12346   int a;
12347 };
12348 EOF
12349
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351   (eval $ac_compile) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; then
12355   # Parse the compiler output and extract the necessary
12356   # objects, libraries and library flags.
12357
12358   # Sentinel used to keep track of whether or not we are before
12359   # the conftest object file.
12360   pre_test_object_deps_done=no
12361
12362   # The `*' in the case matches for architectures that use `case' in
12363   # $output_verbose_cmd can trigger glob expansion during the loop
12364   # eval without this substitution.
12365   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12366
12367   for p in `eval $output_verbose_link_cmd`; do
12368     case $p in
12369
12370     -L* | -R* | -l*)
12371        # Some compilers place space between "-{L,R}" and the path.
12372        # Remove the space.
12373        if test $p = "-L" \
12374           || test $p = "-R"; then
12375          prev=$p
12376          continue
12377        else
12378          prev=
12379        fi
12380
12381        if test "$pre_test_object_deps_done" = no; then
12382          case $p in
12383          -L* | -R*)
12384            # Internal compiler library paths should come after those
12385            # provided the user.  The postdeps already come after the
12386            # user supplied libs so there is no need to process them.
12387            if test -z "$compiler_lib_search_path_CXX"; then
12388              compiler_lib_search_path_CXX="${prev}${p}"
12389            else
12390              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12391            fi
12392            ;;
12393          # The "-l" case would never come before the object being
12394          # linked, so don't bother handling this case.
12395          esac
12396        else
12397          if test -z "$postdeps_CXX"; then
12398            postdeps_CXX="${prev}${p}"
12399          else
12400            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12401          fi
12402        fi
12403        ;;
12404
12405     *.$objext)
12406        # This assumes that the test object file only shows up
12407        # once in the compiler output.
12408        if test "$p" = "conftest.$objext"; then
12409          pre_test_object_deps_done=yes
12410          continue
12411        fi
12412
12413        if test "$pre_test_object_deps_done" = no; then
12414          if test -z "$predep_objects_CXX"; then
12415            predep_objects_CXX="$p"
12416          else
12417            predep_objects_CXX="$predep_objects_CXX $p"
12418          fi
12419        else
12420          if test -z "$postdep_objects_CXX"; then
12421            postdep_objects_CXX="$p"
12422          else
12423            postdep_objects_CXX="$postdep_objects_CXX $p"
12424          fi
12425        fi
12426        ;;
12427
12428     *) ;; # Ignore the rest.
12429
12430     esac
12431   done
12432
12433   # Clean up.
12434   rm -f a.out a.exe
12435 else
12436   echo "libtool.m4: error: problem compiling CXX test program"
12437 fi
12438
12439 $rm -f confest.$objext
12440
12441 # PORTME: override above test on systems where it is broken
12442 case $host_os in
12443 interix3*)
12444   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12445   # hack all around it, let's just trust "g++" to DTRT.
12446   predep_objects_CXX=
12447   postdep_objects_CXX=
12448   postdeps_CXX=
12449   ;;
12450
12451 solaris*)
12452   case $cc_basename in
12453   CC*)
12454     # Adding this requires a known-good setup of shared libraries for
12455     # Sun compiler versions before 5.6, else PIC objects from an old
12456     # archive will be linked into the output, leading to subtle bugs.
12457     postdeps_CXX='-lCstd -lCrun'
12458     ;;
12459   esac
12460   ;;
12461 esac
12462
12463
12464 case " $postdeps_CXX " in
12465 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12466 esac
12467
12468 lt_prog_compiler_wl_CXX=
12469 lt_prog_compiler_pic_CXX=
12470 lt_prog_compiler_static_CXX=
12471
12472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12474
12475   # C++ specific cases for pic, static, wl, etc.
12476   if test "$GXX" = yes; then
12477     lt_prog_compiler_wl_CXX='-Wl,'
12478     lt_prog_compiler_static_CXX='-static'
12479
12480     case $host_os in
12481     aix*)
12482       # All AIX code is PIC.
12483       if test "$host_cpu" = ia64; then
12484         # AIX 5 now supports IA64 processor
12485         lt_prog_compiler_static_CXX='-Bstatic'
12486       fi
12487       ;;
12488     amigaos*)
12489       # FIXME: we need at least 68020 code to build shared libraries, but
12490       # adding the `-m68020' flag to GCC prevents building anything better,
12491       # like `-m68040'.
12492       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12493       ;;
12494     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12495       # PIC is the default for these OSes.
12496       ;;
12497     mingw* | os2* | pw32*)
12498       # This hack is so that the source file can tell whether it is being
12499       # built for inclusion in a dll (and should export symbols for example).
12500       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12501       ;;
12502     darwin* | rhapsody*)
12503       # PIC is the default on this platform
12504       # Common symbols not allowed in MH_DYLIB files
12505       lt_prog_compiler_pic_CXX='-fno-common'
12506       ;;
12507     *djgpp*)
12508       # DJGPP does not support shared libraries at all
12509       lt_prog_compiler_pic_CXX=
12510       ;;
12511     interix3*)
12512       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12513       # Instead, we relocate shared libraries at runtime.
12514       ;;
12515     sysv4*MP*)
12516       if test -d /usr/nec; then
12517         lt_prog_compiler_pic_CXX=-Kconform_pic
12518       fi
12519       ;;
12520     hpux*)
12521       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12522       # not for PA HP-UX.
12523       case $host_cpu in
12524       hppa*64*|ia64*)
12525         ;;
12526       *)
12527         lt_prog_compiler_pic_CXX='-fPIC'
12528         ;;
12529       esac
12530       ;;
12531     *)
12532       lt_prog_compiler_pic_CXX='-fPIC'
12533       ;;
12534     esac
12535   else
12536     case $host_os in
12537       aix4* | aix5*)
12538         # All AIX code is PIC.
12539         if test "$host_cpu" = ia64; then
12540           # AIX 5 now supports IA64 processor
12541           lt_prog_compiler_static_CXX='-Bstatic'
12542         else
12543           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12544         fi
12545         ;;
12546       chorus*)
12547         case $cc_basename in
12548         cxch68*)
12549           # Green Hills C++ Compiler
12550           # _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"
12551           ;;
12552         esac
12553         ;;
12554        darwin*)
12555          # PIC is the default on this platform
12556          # Common symbols not allowed in MH_DYLIB files
12557          case $cc_basename in
12558            xlc*)
12559            lt_prog_compiler_pic_CXX='-qnocommon'
12560            lt_prog_compiler_wl_CXX='-Wl,'
12561            ;;
12562          esac
12563        ;;
12564       dgux*)
12565         case $cc_basename in
12566           ec++*)
12567             lt_prog_compiler_pic_CXX='-KPIC'
12568             ;;
12569           ghcx*)
12570             # Green Hills C++ Compiler
12571             lt_prog_compiler_pic_CXX='-pic'
12572             ;;
12573           *)
12574             ;;
12575         esac
12576         ;;
12577       freebsd* | kfreebsd*-gnu | dragonfly*)
12578         # FreeBSD uses GNU C++
12579         ;;
12580       hpux9* | hpux10* | hpux11*)
12581         case $cc_basename in
12582           CC*)
12583             lt_prog_compiler_wl_CXX='-Wl,'
12584             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12585             if test "$host_cpu" != ia64; then
12586               lt_prog_compiler_pic_CXX='+Z'
12587             fi
12588             ;;
12589           aCC*)
12590             lt_prog_compiler_wl_CXX='-Wl,'
12591             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12592             case $host_cpu in
12593             hppa*64*|ia64*)
12594               # +Z the default
12595               ;;
12596             *)
12597               lt_prog_compiler_pic_CXX='+Z'
12598               ;;
12599             esac
12600             ;;
12601           *)
12602             ;;
12603         esac
12604         ;;
12605       interix*)
12606         # This is c89, which is MS Visual C++ (no shared libs)
12607         # Anyone wants to do a port?
12608         ;;
12609       irix5* | irix6* | nonstopux*)
12610         case $cc_basename in
12611           CC*)
12612             lt_prog_compiler_wl_CXX='-Wl,'
12613             lt_prog_compiler_static_CXX='-non_shared'
12614             # CC pic flag -KPIC is the default.
12615             ;;
12616           *)
12617             ;;
12618         esac
12619         ;;
12620       linux*)
12621         case $cc_basename in
12622           KCC*)
12623             # KAI C++ Compiler
12624             lt_prog_compiler_wl_CXX='--backend -Wl,'
12625             lt_prog_compiler_pic_CXX='-fPIC'
12626             ;;
12627           icpc* | ecpc*)
12628             # Intel C++
12629             lt_prog_compiler_wl_CXX='-Wl,'
12630             lt_prog_compiler_pic_CXX='-KPIC'
12631             lt_prog_compiler_static_CXX='-static'
12632             ;;
12633           pgCC*)
12634             # Portland Group C++ compiler.
12635             lt_prog_compiler_wl_CXX='-Wl,'
12636             lt_prog_compiler_pic_CXX='-fpic'
12637             lt_prog_compiler_static_CXX='-Bstatic'
12638             ;;
12639           cxx*)
12640             # Compaq C++
12641             # Make sure the PIC flag is empty.  It appears that all Alpha
12642             # Linux and Compaq Tru64 Unix objects are PIC.
12643             lt_prog_compiler_pic_CXX=
12644             lt_prog_compiler_static_CXX='-non_shared'
12645             ;;
12646           *)
12647             ;;
12648         esac
12649         ;;
12650       lynxos*)
12651         ;;
12652       m88k*)
12653         ;;
12654       mvs*)
12655         case $cc_basename in
12656           cxx*)
12657             lt_prog_compiler_pic_CXX='-W c,exportall'
12658             ;;
12659           *)
12660             ;;
12661         esac
12662         ;;
12663       netbsd*)
12664         ;;
12665       osf3* | osf4* | osf5*)
12666         case $cc_basename in
12667           KCC*)
12668             lt_prog_compiler_wl_CXX='--backend -Wl,'
12669             ;;
12670           RCC*)
12671             # Rational C++ 2.4.1
12672             lt_prog_compiler_pic_CXX='-pic'
12673             ;;
12674           cxx*)
12675             # Digital/Compaq C++
12676             lt_prog_compiler_wl_CXX='-Wl,'
12677             # Make sure the PIC flag is empty.  It appears that all Alpha
12678             # Linux and Compaq Tru64 Unix objects are PIC.
12679             lt_prog_compiler_pic_CXX=
12680             lt_prog_compiler_static_CXX='-non_shared'
12681             ;;
12682           *)
12683             ;;
12684         esac
12685         ;;
12686       psos*)
12687         ;;
12688       solaris*)
12689         case $cc_basename in
12690           CC*)
12691             # Sun C++ 4.2, 5.x and Centerline C++
12692             lt_prog_compiler_pic_CXX='-KPIC'
12693             lt_prog_compiler_static_CXX='-Bstatic'
12694             lt_prog_compiler_wl_CXX='-Qoption ld '
12695             ;;
12696           gcx*)
12697             # Green Hills C++ Compiler
12698             lt_prog_compiler_pic_CXX='-PIC'
12699             ;;
12700           *)
12701             ;;
12702         esac
12703         ;;
12704       sunos4*)
12705         case $cc_basename in
12706           CC*)
12707             # Sun C++ 4.x
12708             lt_prog_compiler_pic_CXX='-pic'
12709             lt_prog_compiler_static_CXX='-Bstatic'
12710             ;;
12711           lcc*)
12712             # Lucid
12713             lt_prog_compiler_pic_CXX='-pic'
12714             ;;
12715           *)
12716             ;;
12717         esac
12718         ;;
12719       tandem*)
12720         case $cc_basename in
12721           NCC*)
12722             # NonStop-UX NCC 3.20
12723             lt_prog_compiler_pic_CXX='-KPIC'
12724             ;;
12725           *)
12726             ;;
12727         esac
12728         ;;
12729       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12730         case $cc_basename in
12731           CC*)
12732             lt_prog_compiler_wl_CXX='-Wl,'
12733             lt_prog_compiler_pic_CXX='-KPIC'
12734             lt_prog_compiler_static_CXX='-Bstatic'
12735             ;;
12736         esac
12737         ;;
12738       vxworks*)
12739         ;;
12740       *)
12741         lt_prog_compiler_can_build_shared_CXX=no
12742         ;;
12743     esac
12744   fi
12745
12746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12747 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12748
12749 #
12750 # Check to make sure the PIC flag actually works.
12751 #
12752 if test -n "$lt_prog_compiler_pic_CXX"; then
12753
12754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12756 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   lt_prog_compiler_pic_works_CXX=no
12760   ac_outfile=conftest.$ac_objext
12761    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12762    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12763    # Insert the option either (1) after the last *FLAGS variable, or
12764    # (2) before a word containing "conftest.", or (3) at the end.
12765    # Note that $ac_compile itself does not contain backslashes and begins
12766    # with a dollar sign (not a hyphen), so the echo should work correctly.
12767    # The option is referenced via a variable to avoid confusing sed.
12768    lt_compile=`echo "$ac_compile" | $SED \
12769    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12770    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771    -e 's:$: $lt_compiler_flag:'`
12772    (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773    (eval "$lt_compile" 2>conftest.err)
12774    ac_status=$?
12775    cat conftest.err >&5
12776    echo "$as_me:12776: \$? = $ac_status" >&5
12777    if (exit $ac_status) && test -s "$ac_outfile"; then
12778      # The compiler can only warn and ignore the option if not recognized
12779      # So say no if there are warnings other than the usual output.
12780      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12781      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12782      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12783        lt_prog_compiler_pic_works_CXX=yes
12784      fi
12785    fi
12786    $rm conftest*
12787
12788 fi
12789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12790 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12791
12792 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12793     case $lt_prog_compiler_pic_CXX in
12794      "" | " "*) ;;
12795      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12796      esac
12797 else
12798     lt_prog_compiler_pic_CXX=
12799      lt_prog_compiler_can_build_shared_CXX=no
12800 fi
12801
12802 fi
12803 case $host_os in
12804   # For platforms which do not support PIC, -DPIC is meaningless:
12805   *djgpp*)
12806     lt_prog_compiler_pic_CXX=
12807     ;;
12808   *)
12809     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12810     ;;
12811 esac
12812
12813 #
12814 # Check to make sure the static flag actually works.
12815 #
12816 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12819 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12820   echo $ECHO_N "(cached) $ECHO_C" >&6
12821 else
12822   lt_prog_compiler_static_works_CXX=no
12823    save_LDFLAGS="$LDFLAGS"
12824    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12825    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12826    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12827      # The linker can only warn and ignore the option if not recognized
12828      # So say no if there are warnings
12829      if test -s conftest.err; then
12830        # Append any errors to the config.log.
12831        cat conftest.err 1>&5
12832        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12833        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12834        if diff conftest.exp conftest.er2 >/dev/null; then
12835          lt_prog_compiler_static_works_CXX=yes
12836        fi
12837      else
12838        lt_prog_compiler_static_works_CXX=yes
12839      fi
12840    fi
12841    $rm conftest*
12842    LDFLAGS="$save_LDFLAGS"
12843
12844 fi
12845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12846 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12847
12848 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12849     :
12850 else
12851     lt_prog_compiler_static_CXX=
12852 fi
12853
12854
12855 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12857 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12858   echo $ECHO_N "(cached) $ECHO_C" >&6
12859 else
12860   lt_cv_prog_compiler_c_o_CXX=no
12861    $rm -r conftest 2>/dev/null
12862    mkdir conftest
12863    cd conftest
12864    mkdir out
12865    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12866
12867    lt_compiler_flag="-o out/conftest2.$ac_objext"
12868    # Insert the option either (1) after the last *FLAGS variable, or
12869    # (2) before a word containing "conftest.", or (3) at the end.
12870    # Note that $ac_compile itself does not contain backslashes and begins
12871    # with a dollar sign (not a hyphen), so the echo should work correctly.
12872    lt_compile=`echo "$ac_compile" | $SED \
12873    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12874    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12875    -e 's:$: $lt_compiler_flag:'`
12876    (eval echo "\"\$as_me:12876: $lt_compile\"" >&5)
12877    (eval "$lt_compile" 2>out/conftest.err)
12878    ac_status=$?
12879    cat out/conftest.err >&5
12880    echo "$as_me:12880: \$? = $ac_status" >&5
12881    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12882    then
12883      # The compiler can only warn and ignore the option if not recognized
12884      # So say no if there are warnings
12885      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12886      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12887      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12888        lt_cv_prog_compiler_c_o_CXX=yes
12889      fi
12890    fi
12891    chmod u+w . 2>&5
12892    $rm conftest*
12893    # SGI C++ compiler will create directory out/ii_files/ for
12894    # template instantiation
12895    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12896    $rm out/* && rmdir out
12897    cd ..
12898    rmdir conftest
12899    $rm conftest*
12900
12901 fi
12902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12904
12905
12906 hard_links="nottested"
12907 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12908   # do not overwrite the value of need_locks provided by the user
12909   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12911   hard_links=yes
12912   $rm conftest*
12913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12914   touch conftest.a
12915   ln conftest.a conftest.b 2>&5 || hard_links=no
12916   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12917   { echo "$as_me:$LINENO: result: $hard_links" >&5
12918 echo "${ECHO_T}$hard_links" >&6; }
12919   if test "$hard_links" = no; then
12920     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12922     need_locks=warn
12923   fi
12924 else
12925   need_locks=no
12926 fi
12927
12928 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12930
12931   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12932   case $host_os in
12933   aix4* | aix5*)
12934     # If we're using GNU nm, then we don't want the "-C" option.
12935     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12936     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12937       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'
12938     else
12939       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'
12940     fi
12941     ;;
12942   pw32*)
12943     export_symbols_cmds_CXX="$ltdll_cmds"
12944   ;;
12945   cygwin* | mingw*)
12946     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'
12947   ;;
12948   *)
12949     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12950   ;;
12951   esac
12952
12953 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12954 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12955 test "$ld_shlibs_CXX" = no && can_build_shared=no
12956
12957 #
12958 # Do we need to explicitly link libc?
12959 #
12960 case "x$archive_cmds_need_lc_CXX" in
12961 x|xyes)
12962   # Assume -lc should be added
12963   archive_cmds_need_lc_CXX=yes
12964
12965   if test "$enable_shared" = yes && test "$GCC" = yes; then
12966     case $archive_cmds_CXX in
12967     *'~'*)
12968       # FIXME: we may have to deal with multi-command sequences.
12969       ;;
12970     '$CC '*)
12971       # Test whether the compiler implicitly links with -lc since on some
12972       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12973       # to ld, don't add -lc before -lgcc.
12974       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12975 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12976       $rm conftest*
12977       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12978
12979       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980   (eval $ac_compile) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } 2>conftest.err; then
12984         soname=conftest
12985         lib=conftest
12986         libobjs=conftest.$ac_objext
12987         deplibs=
12988         wl=$lt_prog_compiler_wl_CXX
12989         pic_flag=$lt_prog_compiler_pic_CXX
12990         compiler_flags=-v
12991         linker_flags=-v
12992         verstring=
12993         output_objdir=.
12994         libname=conftest
12995         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12996         allow_undefined_flag_CXX=
12997         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12998   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12999   ac_status=$?
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); }
13002         then
13003           archive_cmds_need_lc_CXX=no
13004         else
13005           archive_cmds_need_lc_CXX=yes
13006         fi
13007         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13008       else
13009         cat conftest.err 1>&5
13010       fi
13011       $rm conftest*
13012       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13013 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13014       ;;
13015     esac
13016   fi
13017   ;;
13018 esac
13019
13020 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13022 library_names_spec=
13023 libname_spec='lib$name'
13024 soname_spec=
13025 shrext_cmds=".so"
13026 postinstall_cmds=
13027 postuninstall_cmds=
13028 finish_cmds=
13029 finish_eval=
13030 shlibpath_var=
13031 shlibpath_overrides_runpath=unknown
13032 version_type=none
13033 dynamic_linker="$host_os ld.so"
13034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13035 if test "$GCC" = yes; then
13036   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13037   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13038     # if the path contains ";" then we assume it to be the separator
13039     # otherwise default to the standard path separator (i.e. ":") - it is
13040     # assumed that no part of a normal pathname contains ";" but that should
13041     # okay in the real world where ";" in dirpaths is itself problematic.
13042     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13043   else
13044     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13045   fi
13046 else
13047   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13048 fi
13049 need_lib_prefix=unknown
13050 hardcode_into_libs=no
13051
13052 # when you set need_version to no, make sure it does not cause -set_version
13053 # flags to be left without arguments
13054 need_version=unknown
13055
13056 case $host_os in
13057 aix3*)
13058   version_type=linux
13059   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13060   shlibpath_var=LIBPATH
13061
13062   # AIX 3 has no versioning support, so we append a major version to the name.
13063   soname_spec='${libname}${release}${shared_ext}$major'
13064   ;;
13065
13066 aix4* | aix5*)
13067   version_type=linux
13068   need_lib_prefix=no
13069   need_version=no
13070   hardcode_into_libs=yes
13071   if test "$host_cpu" = ia64; then
13072     # AIX 5 supports IA64
13073     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13074     shlibpath_var=LD_LIBRARY_PATH
13075   else
13076     # With GCC up to 2.95.x, collect2 would create an import file
13077     # for dependence libraries.  The import file would start with
13078     # the line `#! .'.  This would cause the generated library to
13079     # depend on `.', always an invalid library.  This was fixed in
13080     # development snapshots of GCC prior to 3.0.
13081     case $host_os in
13082       aix4 | aix4.[01] | aix4.[01].*)
13083       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13084            echo ' yes '
13085            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13086         :
13087       else
13088         can_build_shared=no
13089       fi
13090       ;;
13091     esac
13092     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13093     # soname into executable. Probably we can add versioning support to
13094     # collect2, so additional links can be useful in future.
13095     if test "$aix_use_runtimelinking" = yes; then
13096       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13097       # instead of lib<name>.a to let people know that these are not
13098       # typical AIX shared libraries.
13099       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100     else
13101       # We preserve .a as extension for shared libraries through AIX4.2
13102       # and later when we are not doing run time linking.
13103       library_names_spec='${libname}${release}.a $libname.a'
13104       soname_spec='${libname}${release}${shared_ext}$major'
13105     fi
13106     shlibpath_var=LIBPATH
13107   fi
13108   ;;
13109
13110 amigaos*)
13111   library_names_spec='$libname.ixlibrary $libname.a'
13112   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13113   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'
13114   ;;
13115
13116 beos*)
13117   library_names_spec='${libname}${shared_ext}'
13118   dynamic_linker="$host_os ld.so"
13119   shlibpath_var=LIBRARY_PATH
13120   ;;
13121
13122 bsdi[45]*)
13123   version_type=linux
13124   need_version=no
13125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13126   soname_spec='${libname}${release}${shared_ext}$major'
13127   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13130   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13131   # the default ld.so.conf also contains /usr/contrib/lib and
13132   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13133   # libtool to hard-code these into programs
13134   ;;
13135
13136 cygwin* | mingw* | pw32*)
13137   version_type=windows
13138   shrext_cmds=".dll"
13139   need_version=no
13140   need_lib_prefix=no
13141
13142   case $GCC,$host_os in
13143   yes,cygwin* | yes,mingw* | yes,pw32*)
13144     library_names_spec='$libname.dll.a'
13145     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13146     postinstall_cmds='base_file=`basename \${file}`~
13147       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13148       dldir=$destdir/`dirname \$dlpath`~
13149       test -d \$dldir || mkdir -p \$dldir~
13150       $install_prog $dir/$dlname \$dldir/$dlname~
13151       chmod a+x \$dldir/$dlname'
13152     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13153       dlpath=$dir/\$dldll~
13154        $rm \$dlpath'
13155     shlibpath_overrides_runpath=yes
13156
13157     case $host_os in
13158     cygwin*)
13159       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13160       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13161       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13162       ;;
13163     mingw*)
13164       # MinGW DLLs use traditional 'lib' prefix
13165       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13167       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13168         # It is most probably a Windows format PATH printed by
13169         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13170         # path with ; separators, and with drive letters. We can handle the
13171         # drive letters (cygwin fileutils understands them), so leave them,
13172         # especially as we might pass files found there to a mingw objdump,
13173         # which wouldn't understand a cygwinified path. Ahh.
13174         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13175       else
13176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13177       fi
13178       ;;
13179     pw32*)
13180       # pw32 DLLs use 'pw' prefix rather than 'lib'
13181       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13182       ;;
13183     esac
13184     ;;
13185
13186   *)
13187     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13188     ;;
13189   esac
13190   dynamic_linker='Win32 ld.exe'
13191   # FIXME: first we should search . and the directory the executable is in
13192   shlibpath_var=PATH
13193   ;;
13194
13195 darwin* | rhapsody*)
13196   dynamic_linker="$host_os dyld"
13197   version_type=darwin
13198   need_lib_prefix=no
13199   need_version=no
13200   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13201   soname_spec='${libname}${release}${major}$shared_ext'
13202   shlibpath_overrides_runpath=yes
13203   shlibpath_var=DYLD_LIBRARY_PATH
13204   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13205   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13206   if test "$GCC" = yes; then
13207     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"`
13208   else
13209     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13210   fi
13211   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13212   ;;
13213
13214 dgux*)
13215   version_type=linux
13216   need_lib_prefix=no
13217   need_version=no
13218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13219   soname_spec='${libname}${release}${shared_ext}$major'
13220   shlibpath_var=LD_LIBRARY_PATH
13221   ;;
13222
13223 freebsd1*)
13224   dynamic_linker=no
13225   ;;
13226
13227 kfreebsd*-gnu)
13228   version_type=linux
13229   need_lib_prefix=no
13230   need_version=no
13231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13232   soname_spec='${libname}${release}${shared_ext}$major'
13233   shlibpath_var=LD_LIBRARY_PATH
13234   shlibpath_overrides_runpath=no
13235   hardcode_into_libs=yes
13236   dynamic_linker='GNU ld.so'
13237   ;;
13238
13239 freebsd* | dragonfly*)
13240   # DragonFly does not have aout.  When/if they implement a new
13241   # versioning mechanism, adjust this.
13242   if test -x /usr/bin/objformat; then
13243     objformat=`/usr/bin/objformat`
13244   else
13245     case $host_os in
13246     freebsd[123]*) objformat=aout ;;
13247     *) objformat=elf ;;
13248     esac
13249   fi
13250   version_type=freebsd-$objformat
13251   case $version_type in
13252     freebsd-elf*)
13253       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13254       need_version=no
13255       need_lib_prefix=no
13256       ;;
13257     freebsd-*)
13258       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13259       need_version=yes
13260       ;;
13261   esac
13262   shlibpath_var=LD_LIBRARY_PATH
13263   case $host_os in
13264   freebsd2*)
13265     shlibpath_overrides_runpath=yes
13266     ;;
13267   freebsd3.[01]* | freebsdelf3.[01]*)
13268     shlibpath_overrides_runpath=yes
13269     hardcode_into_libs=yes
13270     ;;
13271   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13272   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13273     shlibpath_overrides_runpath=no
13274     hardcode_into_libs=yes
13275     ;;
13276   freebsd*) # from 4.6 on
13277     shlibpath_overrides_runpath=yes
13278     hardcode_into_libs=yes
13279     ;;
13280   esac
13281   ;;
13282
13283 gnu*)
13284   version_type=linux
13285   need_lib_prefix=no
13286   need_version=no
13287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288   soname_spec='${libname}${release}${shared_ext}$major'
13289   shlibpath_var=LD_LIBRARY_PATH
13290   hardcode_into_libs=yes
13291   ;;
13292
13293 hpux9* | hpux10* | hpux11*)
13294   # Give a soname corresponding to the major version so that dld.sl refuses to
13295   # link against other versions.
13296   version_type=sunos
13297   need_lib_prefix=no
13298   need_version=no
13299   case $host_cpu in
13300   ia64*)
13301     shrext_cmds='.so'
13302     hardcode_into_libs=yes
13303     dynamic_linker="$host_os dld.so"
13304     shlibpath_var=LD_LIBRARY_PATH
13305     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307     soname_spec='${libname}${release}${shared_ext}$major'
13308     if test "X$HPUX_IA64_MODE" = X32; then
13309       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13310     else
13311       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13312     fi
13313     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13314     ;;
13315    hppa*64*)
13316      shrext_cmds='.sl'
13317      hardcode_into_libs=yes
13318      dynamic_linker="$host_os dld.sl"
13319      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13320      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322      soname_spec='${libname}${release}${shared_ext}$major'
13323      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13324      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13325      ;;
13326    *)
13327     shrext_cmds='.sl'
13328     dynamic_linker="$host_os dld.sl"
13329     shlibpath_var=SHLIB_PATH
13330     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332     soname_spec='${libname}${release}${shared_ext}$major'
13333     ;;
13334   esac
13335   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13336   postinstall_cmds='chmod 555 $lib'
13337   ;;
13338
13339 interix3*)
13340   version_type=linux
13341   need_lib_prefix=no
13342   need_version=no
13343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344   soname_spec='${libname}${release}${shared_ext}$major'
13345   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13346   shlibpath_var=LD_LIBRARY_PATH
13347   shlibpath_overrides_runpath=no
13348   hardcode_into_libs=yes
13349   ;;
13350
13351 irix5* | irix6* | nonstopux*)
13352   case $host_os in
13353     nonstopux*) version_type=nonstopux ;;
13354     *)
13355         if test "$lt_cv_prog_gnu_ld" = yes; then
13356                 version_type=linux
13357         else
13358                 version_type=irix
13359         fi ;;
13360   esac
13361   need_lib_prefix=no
13362   need_version=no
13363   soname_spec='${libname}${release}${shared_ext}$major'
13364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13365   case $host_os in
13366   irix5* | nonstopux*)
13367     libsuff= shlibsuff=
13368     ;;
13369   *)
13370     case $LD in # libtool.m4 will add one of these switches to LD
13371     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13372       libsuff= shlibsuff= libmagic=32-bit;;
13373     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13374       libsuff=32 shlibsuff=N32 libmagic=N32;;
13375     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13376       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13377     *) libsuff= shlibsuff= libmagic=never-match;;
13378     esac
13379     ;;
13380   esac
13381   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13382   shlibpath_overrides_runpath=no
13383   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13384   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13385   hardcode_into_libs=yes
13386   ;;
13387
13388 # No shared lib support for Linux oldld, aout, or coff.
13389 linux*oldld* | linux*aout* | linux*coff*)
13390   dynamic_linker=no
13391   ;;
13392
13393 # This must be Linux ELF.
13394 linux*)
13395   version_type=linux
13396   need_lib_prefix=no
13397   need_version=no
13398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13399   soname_spec='${libname}${release}${shared_ext}$major'
13400   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13401   shlibpath_var=LD_LIBRARY_PATH
13402   shlibpath_overrides_runpath=no
13403   # This implies no fast_install, which is unacceptable.
13404   # Some rework will be needed to allow for fast_install
13405   # before this can be enabled.
13406   hardcode_into_libs=yes
13407
13408   # find out which ABI we are using
13409   libsuff=
13410   case "$host_cpu" in
13411   x86_64*|s390x*|powerpc64*)
13412     echo '#line 13412 "configure"' > conftest.$ac_ext
13413     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414   (eval $ac_compile) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; then
13418       case `/usr/bin/file conftest.$ac_objext` in
13419       *64-bit*)
13420         libsuff=64
13421         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13422         ;;
13423       esac
13424     fi
13425     rm -rf conftest*
13426     ;;
13427   esac
13428
13429   # Append ld.so.conf contents to the search path
13430   if test -f /etc/ld.so.conf; then
13431     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13432     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13433   fi
13434
13435   # We used to test for /lib/ld.so.1 and disable shared libraries on
13436   # powerpc, because MkLinux only supported shared libraries with the
13437   # GNU dynamic linker.  Since this was broken with cross compilers,
13438   # most powerpc-linux boxes support dynamic linking these days and
13439   # people can always --disable-shared, the test was removed, and we
13440   # assume the GNU/Linux dynamic linker is in use.
13441   dynamic_linker='GNU/Linux ld.so'
13442   ;;
13443
13444 knetbsd*-gnu)
13445   version_type=linux
13446   need_lib_prefix=no
13447   need_version=no
13448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13449   soname_spec='${libname}${release}${shared_ext}$major'
13450   shlibpath_var=LD_LIBRARY_PATH
13451   shlibpath_overrides_runpath=no
13452   hardcode_into_libs=yes
13453   dynamic_linker='GNU ld.so'
13454   ;;
13455
13456 netbsd*)
13457   version_type=sunos
13458   need_lib_prefix=no
13459   need_version=no
13460   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13461     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463     dynamic_linker='NetBSD (a.out) ld.so'
13464   else
13465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466     soname_spec='${libname}${release}${shared_ext}$major'
13467     dynamic_linker='NetBSD ld.elf_so'
13468   fi
13469   shlibpath_var=LD_LIBRARY_PATH
13470   shlibpath_overrides_runpath=yes
13471   hardcode_into_libs=yes
13472   ;;
13473
13474 newsos6)
13475   version_type=linux
13476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=yes
13479   ;;
13480
13481 nto-qnx*)
13482   version_type=linux
13483   need_lib_prefix=no
13484   need_version=no
13485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486   soname_spec='${libname}${release}${shared_ext}$major'
13487   shlibpath_var=LD_LIBRARY_PATH
13488   shlibpath_overrides_runpath=yes
13489   ;;
13490
13491 openbsd*)
13492   version_type=sunos
13493   sys_lib_dlsearch_path_spec="/usr/lib"
13494   need_lib_prefix=no
13495   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13496   case $host_os in
13497     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13498     *)                         need_version=no  ;;
13499   esac
13500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13501   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13502   shlibpath_var=LD_LIBRARY_PATH
13503   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13504     case $host_os in
13505       openbsd2.[89] | openbsd2.[89].*)
13506         shlibpath_overrides_runpath=no
13507         ;;
13508       *)
13509         shlibpath_overrides_runpath=yes
13510         ;;
13511       esac
13512   else
13513     shlibpath_overrides_runpath=yes
13514   fi
13515   ;;
13516
13517 os2*)
13518   libname_spec='$name'
13519   shrext_cmds=".dll"
13520   need_lib_prefix=no
13521   library_names_spec='$libname${shared_ext} $libname.a'
13522   dynamic_linker='OS/2 ld.exe'
13523   shlibpath_var=LIBPATH
13524   ;;
13525
13526 osf3* | osf4* | osf5*)
13527   version_type=osf
13528   need_lib_prefix=no
13529   need_version=no
13530   soname_spec='${libname}${release}${shared_ext}$major'
13531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532   shlibpath_var=LD_LIBRARY_PATH
13533   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13534   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13535   ;;
13536
13537 solaris*)
13538   version_type=linux
13539   need_lib_prefix=no
13540   need_version=no
13541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542   soname_spec='${libname}${release}${shared_ext}$major'
13543   shlibpath_var=LD_LIBRARY_PATH
13544   shlibpath_overrides_runpath=yes
13545   hardcode_into_libs=yes
13546   # ldd complains unless libraries are executable
13547   postinstall_cmds='chmod +x $lib'
13548   ;;
13549
13550 sunos4*)
13551   version_type=sunos
13552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13554   shlibpath_var=LD_LIBRARY_PATH
13555   shlibpath_overrides_runpath=yes
13556   if test "$with_gnu_ld" = yes; then
13557     need_lib_prefix=no
13558   fi
13559   need_version=yes
13560   ;;
13561
13562 sysv4 | sysv4.3*)
13563   version_type=linux
13564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565   soname_spec='${libname}${release}${shared_ext}$major'
13566   shlibpath_var=LD_LIBRARY_PATH
13567   case $host_vendor in
13568     sni)
13569       shlibpath_overrides_runpath=no
13570       need_lib_prefix=no
13571       export_dynamic_flag_spec='${wl}-Blargedynsym'
13572       runpath_var=LD_RUN_PATH
13573       ;;
13574     siemens)
13575       need_lib_prefix=no
13576       ;;
13577     motorola)
13578       need_lib_prefix=no
13579       need_version=no
13580       shlibpath_overrides_runpath=no
13581       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13582       ;;
13583   esac
13584   ;;
13585
13586 sysv4*MP*)
13587   if test -d /usr/nec ;then
13588     version_type=linux
13589     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13590     soname_spec='$libname${shared_ext}.$major'
13591     shlibpath_var=LD_LIBRARY_PATH
13592   fi
13593   ;;
13594
13595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13596   version_type=freebsd-elf
13597   need_lib_prefix=no
13598   need_version=no
13599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13600   soname_spec='${libname}${release}${shared_ext}$major'
13601   shlibpath_var=LD_LIBRARY_PATH
13602   hardcode_into_libs=yes
13603   if test "$with_gnu_ld" = yes; then
13604     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13605     shlibpath_overrides_runpath=no
13606   else
13607     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13608     shlibpath_overrides_runpath=yes
13609     case $host_os in
13610       sco3.2v5*)
13611         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13612         ;;
13613     esac
13614   fi
13615   sys_lib_dlsearch_path_spec='/usr/lib'
13616   ;;
13617
13618 uts4*)
13619   version_type=linux
13620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621   soname_spec='${libname}${release}${shared_ext}$major'
13622   shlibpath_var=LD_LIBRARY_PATH
13623   ;;
13624
13625 *)
13626   dynamic_linker=no
13627   ;;
13628 esac
13629 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13630 echo "${ECHO_T}$dynamic_linker" >&6; }
13631 test "$dynamic_linker" = no && can_build_shared=no
13632
13633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13634 if test "$GCC" = yes; then
13635   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13636 fi
13637
13638 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13639 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13640 hardcode_action_CXX=
13641 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13642    test -n "$runpath_var_CXX" || \
13643    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13644
13645   # We can hardcode non-existant directories.
13646   if test "$hardcode_direct_CXX" != no &&
13647      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13648      # have to relink, otherwise we might link with an installed library
13649      # when we should be linking with a yet-to-be-installed one
13650      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13651      test "$hardcode_minus_L_CXX" != no; then
13652     # Linking always hardcodes the temporary library directory.
13653     hardcode_action_CXX=relink
13654   else
13655     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13656     hardcode_action_CXX=immediate
13657   fi
13658 else
13659   # We cannot hardcode anything, or else we can only hardcode existing
13660   # directories.
13661   hardcode_action_CXX=unsupported
13662 fi
13663 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13664 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13665
13666 if test "$hardcode_action_CXX" = relink; then
13667   # Fast installation is not supported
13668   enable_fast_install=no
13669 elif test "$shlibpath_overrides_runpath" = yes ||
13670      test "$enable_shared" = no; then
13671   # Fast installation is not necessary
13672   enable_fast_install=needless
13673 fi
13674
13675
13676 # The else clause should only fire when bootstrapping the
13677 # libtool distribution, otherwise you forgot to ship ltmain.sh
13678 # with your package, and you will get complaints that there are
13679 # no rules to generate ltmain.sh.
13680 if test -f "$ltmain"; then
13681   # See if we are running on zsh, and set the options which allow our commands through
13682   # without removal of \ escapes.
13683   if test -n "${ZSH_VERSION+set}" ; then
13684     setopt NO_GLOB_SUBST
13685   fi
13686   # Now quote all the things that may contain metacharacters while being
13687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13688   # variables and quote the copies for generation of the libtool script.
13689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13690     SED SHELL STRIP \
13691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13693     deplibs_check_method reload_flag reload_cmds need_locks \
13694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13695     lt_cv_sys_global_symbol_to_c_name_address \
13696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13697     old_postinstall_cmds old_postuninstall_cmds \
13698     compiler_CXX \
13699     CC_CXX \
13700     LD_CXX \
13701     lt_prog_compiler_wl_CXX \
13702     lt_prog_compiler_pic_CXX \
13703     lt_prog_compiler_static_CXX \
13704     lt_prog_compiler_no_builtin_flag_CXX \
13705     export_dynamic_flag_spec_CXX \
13706     thread_safe_flag_spec_CXX \
13707     whole_archive_flag_spec_CXX \
13708     enable_shared_with_static_runtimes_CXX \
13709     old_archive_cmds_CXX \
13710     old_archive_from_new_cmds_CXX \
13711     predep_objects_CXX \
13712     postdep_objects_CXX \
13713     predeps_CXX \
13714     postdeps_CXX \
13715     compiler_lib_search_path_CXX \
13716     archive_cmds_CXX \
13717     archive_expsym_cmds_CXX \
13718     postinstall_cmds_CXX \
13719     postuninstall_cmds_CXX \
13720     old_archive_from_expsyms_cmds_CXX \
13721     allow_undefined_flag_CXX \
13722     no_undefined_flag_CXX \
13723     export_symbols_cmds_CXX \
13724     hardcode_libdir_flag_spec_CXX \
13725     hardcode_libdir_flag_spec_ld_CXX \
13726     hardcode_libdir_separator_CXX \
13727     hardcode_automatic_CXX \
13728     module_cmds_CXX \
13729     module_expsym_cmds_CXX \
13730     lt_cv_prog_compiler_c_o_CXX \
13731     exclude_expsyms_CXX \
13732     include_expsyms_CXX; do
13733
13734     case $var in
13735     old_archive_cmds_CXX | \
13736     old_archive_from_new_cmds_CXX | \
13737     archive_cmds_CXX | \
13738     archive_expsym_cmds_CXX | \
13739     module_cmds_CXX | \
13740     module_expsym_cmds_CXX | \
13741     old_archive_from_expsyms_cmds_CXX | \
13742     export_symbols_cmds_CXX | \
13743     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13744     postinstall_cmds | postuninstall_cmds | \
13745     old_postinstall_cmds | old_postuninstall_cmds | \
13746     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13747       # Double-quote double-evaled strings.
13748       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13749       ;;
13750     *)
13751       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13752       ;;
13753     esac
13754   done
13755
13756   case $lt_echo in
13757   *'\$0 --fallback-echo"')
13758     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13759     ;;
13760   esac
13761
13762 cfgfile="$ofile"
13763
13764   cat <<__EOF__ >> "$cfgfile"
13765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13766
13767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13768
13769 # Shell to use when invoking shell scripts.
13770 SHELL=$lt_SHELL
13771
13772 # Whether or not to build shared libraries.
13773 build_libtool_libs=$enable_shared
13774
13775 # Whether or not to build static libraries.
13776 build_old_libs=$enable_static
13777
13778 # Whether or not to add -lc for building shared libraries.
13779 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13780
13781 # Whether or not to disallow shared libs when runtime libs are static
13782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13783
13784 # Whether or not to optimize for fast installation.
13785 fast_install=$enable_fast_install
13786
13787 # The host system.
13788 host_alias=$host_alias
13789 host=$host
13790 host_os=$host_os
13791
13792 # The build system.
13793 build_alias=$build_alias
13794 build=$build
13795 build_os=$build_os
13796
13797 # An echo program that does not interpret backslashes.
13798 echo=$lt_echo
13799
13800 # The archiver.
13801 AR=$lt_AR
13802 AR_FLAGS=$lt_AR_FLAGS
13803
13804 # A C compiler.
13805 LTCC=$lt_LTCC
13806
13807 # LTCC compiler flags.
13808 LTCFLAGS=$lt_LTCFLAGS
13809
13810 # A language-specific compiler.
13811 CC=$lt_compiler_CXX
13812
13813 # Is the compiler the GNU C compiler?
13814 with_gcc=$GCC_CXX
13815
13816 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13817 gcc_ver=\`gcc -dumpversion\`
13818
13819 # An ERE matcher.
13820 EGREP=$lt_EGREP
13821
13822 # The linker used to build libraries.
13823 LD=$lt_LD_CXX
13824
13825 # Whether we need hard or soft links.
13826 LN_S=$lt_LN_S
13827
13828 # A BSD-compatible nm program.
13829 NM=$lt_NM
13830
13831 # A symbol stripping program
13832 STRIP=$lt_STRIP
13833
13834 # Used to examine libraries when file_magic_cmd begins "file"
13835 MAGIC_CMD=$MAGIC_CMD
13836
13837 # Used on cygwin: DLL creation program.
13838 DLLTOOL="$DLLTOOL"
13839
13840 # Used on cygwin: object dumper.
13841 OBJDUMP="$OBJDUMP"
13842
13843 # Used on cygwin: assembler.
13844 AS="$AS"
13845
13846 # The name of the directory that contains temporary libtool files.
13847 objdir=$objdir
13848
13849 # How to create reloadable object files.
13850 reload_flag=$lt_reload_flag
13851 reload_cmds=$lt_reload_cmds
13852
13853 # How to pass a linker flag through the compiler.
13854 wl=$lt_lt_prog_compiler_wl_CXX
13855
13856 # Object file suffix (normally "o").
13857 objext="$ac_objext"
13858
13859 # Old archive suffix (normally "a").
13860 libext="$libext"
13861
13862 # Shared library suffix (normally ".so").
13863 shrext_cmds='$shrext_cmds'
13864
13865 # Executable file suffix (normally "").
13866 exeext="$exeext"
13867
13868 # Additional compiler flags for building library objects.
13869 pic_flag=$lt_lt_prog_compiler_pic_CXX
13870 pic_mode=$pic_mode
13871
13872 # What is the maximum length of a command?
13873 max_cmd_len=$lt_cv_sys_max_cmd_len
13874
13875 # Does compiler simultaneously support -c and -o options?
13876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13877
13878 # Must we lock files when doing compilation?
13879 need_locks=$lt_need_locks
13880
13881 # Do we need the lib prefix for modules?
13882 need_lib_prefix=$need_lib_prefix
13883
13884 # Do we need a version for libraries?
13885 need_version=$need_version
13886
13887 # Whether dlopen is supported.
13888 dlopen_support=$enable_dlopen
13889
13890 # Whether dlopen of programs is supported.
13891 dlopen_self=$enable_dlopen_self
13892
13893 # Whether dlopen of statically linked programs is supported.
13894 dlopen_self_static=$enable_dlopen_self_static
13895
13896 # Compiler flag to prevent dynamic linking.
13897 link_static_flag=$lt_lt_prog_compiler_static_CXX
13898
13899 # Compiler flag to turn off builtin functions.
13900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13901
13902 # Compiler flag to allow reflexive dlopens.
13903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13904
13905 # Compiler flag to generate shared objects directly from archives.
13906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13907
13908 # Compiler flag to generate thread-safe objects.
13909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13910
13911 # Library versioning type.
13912 version_type=$version_type
13913
13914 # Format of library name prefix.
13915 libname_spec=$lt_libname_spec
13916
13917 # List of archive names.  First name is the real one, the rest are links.
13918 # The last name is the one that the linker finds with -lNAME.
13919 library_names_spec=$lt_library_names_spec
13920
13921 # The coded name of the library, if different from the real name.
13922 soname_spec=$lt_soname_spec
13923
13924 # Commands used to build and install an old-style archive.
13925 RANLIB=$lt_RANLIB
13926 old_archive_cmds=$lt_old_archive_cmds_CXX
13927 old_postinstall_cmds=$lt_old_postinstall_cmds
13928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13929
13930 # Create an old-style archive from a shared archive.
13931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13932
13933 # Create a temporary old-style archive to link instead of a shared archive.
13934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13935
13936 # Commands used to build and install a shared archive.
13937 archive_cmds=$lt_archive_cmds_CXX
13938 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13939 postinstall_cmds=$lt_postinstall_cmds
13940 postuninstall_cmds=$lt_postuninstall_cmds
13941
13942 # Commands used to build a loadable module (assumed same as above if empty)
13943 module_cmds=$lt_module_cmds_CXX
13944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13945
13946 # Commands to strip libraries.
13947 old_striplib=$lt_old_striplib
13948 striplib=$lt_striplib
13949
13950 # Dependencies to place before the objects being linked to create a
13951 # shared library.
13952 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13953
13954 # Dependencies to place after the objects being linked to create a
13955 # shared library.
13956 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13957
13958 # Dependencies to place before the objects being linked to create a
13959 # shared library.
13960 predeps=$lt_predeps_CXX
13961
13962 # Dependencies to place after the objects being linked to create a
13963 # shared library.
13964 postdeps=$lt_postdeps_CXX
13965
13966 # The library search path used internally by the compiler when linking
13967 # a shared library.
13968 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13969
13970 # Method to check whether dependent libraries are shared objects.
13971 deplibs_check_method=$lt_deplibs_check_method
13972
13973 # Command to use when deplibs_check_method == file_magic.
13974 file_magic_cmd=$lt_file_magic_cmd
13975
13976 # Flag that allows shared libraries with undefined symbols to be built.
13977 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13978
13979 # Flag that forces no undefined symbols.
13980 no_undefined_flag=$lt_no_undefined_flag_CXX
13981
13982 # Commands used to finish a libtool library installation in a directory.
13983 finish_cmds=$lt_finish_cmds
13984
13985 # Same as above, but a single script fragment to be evaled but not shown.
13986 finish_eval=$lt_finish_eval
13987
13988 # Take the output of nm and produce a listing of raw symbols and C names.
13989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13990
13991 # Transform the output of nm in a proper C declaration
13992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13993
13994 # Transform the output of nm in a C name address pair
13995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13996
13997 # This is the shared library runtime path variable.
13998 runpath_var=$runpath_var
13999
14000 # This is the shared library path variable.
14001 shlibpath_var=$shlibpath_var
14002
14003 # Is shlibpath searched before the hard-coded library search path?
14004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14005
14006 # How to hardcode a shared library path into an executable.
14007 hardcode_action=$hardcode_action_CXX
14008
14009 # Whether we should hardcode library paths into libraries.
14010 hardcode_into_libs=$hardcode_into_libs
14011
14012 # Flag to hardcode \$libdir into a binary during linking.
14013 # This must work even if \$libdir does not exist.
14014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14015
14016 # If ld is used when linking, flag to hardcode \$libdir into
14017 # a binary during linking. This must work even if \$libdir does
14018 # not exist.
14019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14020
14021 # Whether we need a single -rpath flag with a separated argument.
14022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14023
14024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14025 # resulting binary.
14026 hardcode_direct=$hardcode_direct_CXX
14027
14028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14029 # resulting binary.
14030 hardcode_minus_L=$hardcode_minus_L_CXX
14031
14032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14033 # the resulting binary.
14034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14035
14036 # Set to yes if building a shared library automatically hardcodes DIR into the library
14037 # and all subsequent libraries and executables linked against it.
14038 hardcode_automatic=$hardcode_automatic_CXX
14039
14040 # Variables whose values should be saved in libtool wrapper scripts and
14041 # restored at relink time.
14042 variables_saved_for_relink="$variables_saved_for_relink"
14043
14044 # Whether libtool must link a program against all its dependency libraries.
14045 link_all_deplibs=$link_all_deplibs_CXX
14046
14047 # Compile-time system search path for libraries
14048 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14049
14050 # Run-time system search path for libraries
14051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14052
14053 # Fix the shell variable \$srcfile for the compiler.
14054 fix_srcfile_path="$fix_srcfile_path_CXX"
14055
14056 # Set to yes if exported symbols are required.
14057 always_export_symbols=$always_export_symbols_CXX
14058
14059 # The commands to list exported symbols.
14060 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14061
14062 # The commands to extract the exported symbol list from a shared archive.
14063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14064
14065 # Symbols that should not be listed in the preloaded symbols.
14066 exclude_expsyms=$lt_exclude_expsyms_CXX
14067
14068 # Symbols that must always be exported.
14069 include_expsyms=$lt_include_expsyms_CXX
14070
14071 # ### END LIBTOOL TAG CONFIG: $tagname
14072
14073 __EOF__
14074
14075
14076 else
14077   # If there is no Makefile yet, we rely on a make rule to execute
14078   # `config.status --recheck' to rerun these tests and create the
14079   # libtool script then.
14080   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14081   if test -f "$ltmain_in"; then
14082     test -f Makefile && make "$ltmain"
14083   fi
14084 fi
14085
14086
14087 ac_ext=c
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14092
14093 CC=$lt_save_CC
14094 LDCXX=$LD
14095 LD=$lt_save_LD
14096 GCC=$lt_save_GCC
14097 with_gnu_ldcxx=$with_gnu_ld
14098 with_gnu_ld=$lt_save_with_gnu_ld
14099 lt_cv_path_LDCXX=$lt_cv_path_LD
14100 lt_cv_path_LD=$lt_save_path_LD
14101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14103
14104         else
14105           tagname=""
14106         fi
14107         ;;
14108
14109       F77)
14110         if test -n "$F77" && test "X$F77" != "Xno"; then
14111
14112 ac_ext=f
14113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14116
14117
14118 archive_cmds_need_lc_F77=no
14119 allow_undefined_flag_F77=
14120 always_export_symbols_F77=no
14121 archive_expsym_cmds_F77=
14122 export_dynamic_flag_spec_F77=
14123 hardcode_direct_F77=no
14124 hardcode_libdir_flag_spec_F77=
14125 hardcode_libdir_flag_spec_ld_F77=
14126 hardcode_libdir_separator_F77=
14127 hardcode_minus_L_F77=no
14128 hardcode_automatic_F77=no
14129 module_cmds_F77=
14130 module_expsym_cmds_F77=
14131 link_all_deplibs_F77=unknown
14132 old_archive_cmds_F77=$old_archive_cmds
14133 no_undefined_flag_F77=
14134 whole_archive_flag_spec_F77=
14135 enable_shared_with_static_runtimes_F77=no
14136
14137 # Source file extension for f77 test sources.
14138 ac_ext=f
14139
14140 # Object file extension for compiled f77 test sources.
14141 objext=o
14142 objext_F77=$objext
14143
14144 # Code to be used in simple compile tests
14145 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14146
14147 # Code to be used in simple link tests
14148 lt_simple_link_test_code="      program t\n      end\n"
14149
14150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14151
14152 # If no C compiler was specified, use CC.
14153 LTCC=${LTCC-"$CC"}
14154
14155 # If no C compiler flags were specified, use CFLAGS.
14156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14157
14158 # Allow CC to be a program name with arguments.
14159 compiler=$CC
14160
14161
14162 # save warnings/boilerplate of simple test code
14163 ac_outfile=conftest.$ac_objext
14164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14166 _lt_compiler_boilerplate=`cat conftest.err`
14167 $rm conftest*
14168
14169 ac_outfile=conftest.$ac_objext
14170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14172 _lt_linker_boilerplate=`cat conftest.err`
14173 $rm conftest*
14174
14175
14176 # Allow CC to be a program name with arguments.
14177 lt_save_CC="$CC"
14178 CC=${F77-"f77"}
14179 compiler=$CC
14180 compiler_F77=$CC
14181 for cc_temp in $compiler""; do
14182   case $cc_temp in
14183     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14184     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14185     \-*) ;;
14186     *) break;;
14187   esac
14188 done
14189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14190
14191
14192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14195 echo "${ECHO_T}$can_build_shared" >&6; }
14196
14197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14199 test "$can_build_shared" = "no" && enable_shared=no
14200
14201 # On AIX, shared libraries and static libraries use the same namespace, and
14202 # are all built from PIC.
14203 case $host_os in
14204 aix3*)
14205   test "$enable_shared" = yes && enable_static=no
14206   if test -n "$RANLIB"; then
14207     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14208     postinstall_cmds='$RANLIB $lib'
14209   fi
14210   ;;
14211 aix4* | aix5*)
14212   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14213     test "$enable_shared" = yes && enable_static=no
14214   fi
14215   ;;
14216 esac
14217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14218 echo "${ECHO_T}$enable_shared" >&6; }
14219
14220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14222 # Make sure either enable_shared or enable_static is yes.
14223 test "$enable_shared" = yes || enable_static=yes
14224 { echo "$as_me:$LINENO: result: $enable_static" >&5
14225 echo "${ECHO_T}$enable_static" >&6; }
14226
14227 GCC_F77="$G77"
14228 LD_F77="$LD"
14229
14230 lt_prog_compiler_wl_F77=
14231 lt_prog_compiler_pic_F77=
14232 lt_prog_compiler_static_F77=
14233
14234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14236
14237   if test "$GCC" = yes; then
14238     lt_prog_compiler_wl_F77='-Wl,'
14239     lt_prog_compiler_static_F77='-static'
14240
14241     case $host_os in
14242       aix*)
14243       # All AIX code is PIC.
14244       if test "$host_cpu" = ia64; then
14245         # AIX 5 now supports IA64 processor
14246         lt_prog_compiler_static_F77='-Bstatic'
14247       fi
14248       ;;
14249
14250     amigaos*)
14251       # FIXME: we need at least 68020 code to build shared libraries, but
14252       # adding the `-m68020' flag to GCC prevents building anything better,
14253       # like `-m68040'.
14254       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14255       ;;
14256
14257     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14258       # PIC is the default for these OSes.
14259       ;;
14260
14261     mingw* | pw32* | os2*)
14262       # This hack is so that the source file can tell whether it is being
14263       # built for inclusion in a dll (and should export symbols for example).
14264       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14265       ;;
14266
14267     darwin* | rhapsody*)
14268       # PIC is the default on this platform
14269       # Common symbols not allowed in MH_DYLIB files
14270       lt_prog_compiler_pic_F77='-fno-common'
14271       ;;
14272
14273     interix3*)
14274       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14275       # Instead, we relocate shared libraries at runtime.
14276       ;;
14277
14278     msdosdjgpp*)
14279       # Just because we use GCC doesn't mean we suddenly get shared libraries
14280       # on systems that don't support them.
14281       lt_prog_compiler_can_build_shared_F77=no
14282       enable_shared=no
14283       ;;
14284
14285     sysv4*MP*)
14286       if test -d /usr/nec; then
14287         lt_prog_compiler_pic_F77=-Kconform_pic
14288       fi
14289       ;;
14290
14291     hpux*)
14292       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14293       # not for PA HP-UX.
14294       case $host_cpu in
14295       hppa*64*|ia64*)
14296         # +Z the default
14297         ;;
14298       *)
14299         lt_prog_compiler_pic_F77='-fPIC'
14300         ;;
14301       esac
14302       ;;
14303
14304     *)
14305       lt_prog_compiler_pic_F77='-fPIC'
14306       ;;
14307     esac
14308   else
14309     # PORTME Check for flag to pass linker flags through the system compiler.
14310     case $host_os in
14311     aix*)
14312       lt_prog_compiler_wl_F77='-Wl,'
14313       if test "$host_cpu" = ia64; then
14314         # AIX 5 now supports IA64 processor
14315         lt_prog_compiler_static_F77='-Bstatic'
14316       else
14317         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14318       fi
14319       ;;
14320       darwin*)
14321         # PIC is the default on this platform
14322         # Common symbols not allowed in MH_DYLIB files
14323        case $cc_basename in
14324          xlc*)
14325          lt_prog_compiler_pic_F77='-qnocommon'
14326          lt_prog_compiler_wl_F77='-Wl,'
14327          ;;
14328        esac
14329        ;;
14330
14331     mingw* | pw32* | os2*)
14332       # This hack is so that the source file can tell whether it is being
14333       # built for inclusion in a dll (and should export symbols for example).
14334       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14335       ;;
14336
14337     hpux9* | hpux10* | hpux11*)
14338       lt_prog_compiler_wl_F77='-Wl,'
14339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14340       # not for PA HP-UX.
14341       case $host_cpu in
14342       hppa*64*|ia64*)
14343         # +Z the default
14344         ;;
14345       *)
14346         lt_prog_compiler_pic_F77='+Z'
14347         ;;
14348       esac
14349       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14350       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14351       ;;
14352
14353     irix5* | irix6* | nonstopux*)
14354       lt_prog_compiler_wl_F77='-Wl,'
14355       # PIC (with -KPIC) is the default.
14356       lt_prog_compiler_static_F77='-non_shared'
14357       ;;
14358
14359     newsos6)
14360       lt_prog_compiler_pic_F77='-KPIC'
14361       lt_prog_compiler_static_F77='-Bstatic'
14362       ;;
14363
14364     linux*)
14365       case $cc_basename in
14366       icc* | ecc*)
14367         lt_prog_compiler_wl_F77='-Wl,'
14368         lt_prog_compiler_pic_F77='-KPIC'
14369         lt_prog_compiler_static_F77='-static'
14370         ;;
14371       pgcc* | pgf77* | pgf90* | pgf95*)
14372         # Portland Group compilers (*not* the Pentium gcc compiler,
14373         # which looks to be a dead project)
14374         lt_prog_compiler_wl_F77='-Wl,'
14375         lt_prog_compiler_pic_F77='-fpic'
14376         lt_prog_compiler_static_F77='-Bstatic'
14377         ;;
14378       ccc*)
14379         lt_prog_compiler_wl_F77='-Wl,'
14380         # All Alpha code is PIC.
14381         lt_prog_compiler_static_F77='-non_shared'
14382         ;;
14383       esac
14384       ;;
14385
14386     osf3* | osf4* | osf5*)
14387       lt_prog_compiler_wl_F77='-Wl,'
14388       # All OSF/1 code is PIC.
14389       lt_prog_compiler_static_F77='-non_shared'
14390       ;;
14391
14392     solaris*)
14393       lt_prog_compiler_pic_F77='-KPIC'
14394       lt_prog_compiler_static_F77='-Bstatic'
14395       case $cc_basename in
14396       f77* | f90* | f95*)
14397         lt_prog_compiler_wl_F77='-Qoption ld ';;
14398       *)
14399         lt_prog_compiler_wl_F77='-Wl,';;
14400       esac
14401       ;;
14402
14403     sunos4*)
14404       lt_prog_compiler_wl_F77='-Qoption ld '
14405       lt_prog_compiler_pic_F77='-PIC'
14406       lt_prog_compiler_static_F77='-Bstatic'
14407       ;;
14408
14409     sysv4 | sysv4.2uw2* | sysv4.3*)
14410       lt_prog_compiler_wl_F77='-Wl,'
14411       lt_prog_compiler_pic_F77='-KPIC'
14412       lt_prog_compiler_static_F77='-Bstatic'
14413       ;;
14414
14415     sysv4*MP*)
14416       if test -d /usr/nec ;then
14417         lt_prog_compiler_pic_F77='-Kconform_pic'
14418         lt_prog_compiler_static_F77='-Bstatic'
14419       fi
14420       ;;
14421
14422     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14423       lt_prog_compiler_wl_F77='-Wl,'
14424       lt_prog_compiler_pic_F77='-KPIC'
14425       lt_prog_compiler_static_F77='-Bstatic'
14426       ;;
14427
14428     unicos*)
14429       lt_prog_compiler_wl_F77='-Wl,'
14430       lt_prog_compiler_can_build_shared_F77=no
14431       ;;
14432
14433     uts4*)
14434       lt_prog_compiler_pic_F77='-pic'
14435       lt_prog_compiler_static_F77='-Bstatic'
14436       ;;
14437
14438     *)
14439       lt_prog_compiler_can_build_shared_F77=no
14440       ;;
14441     esac
14442   fi
14443
14444 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14445 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14446
14447 #
14448 # Check to make sure the PIC flag actually works.
14449 #
14450 if test -n "$lt_prog_compiler_pic_F77"; then
14451
14452 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14453 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14454 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14455   echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457   lt_prog_compiler_pic_works_F77=no
14458   ac_outfile=conftest.$ac_objext
14459    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14460    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14461    # Insert the option either (1) after the last *FLAGS variable, or
14462    # (2) before a word containing "conftest.", or (3) at the end.
14463    # Note that $ac_compile itself does not contain backslashes and begins
14464    # with a dollar sign (not a hyphen), so the echo should work correctly.
14465    # The option is referenced via a variable to avoid confusing sed.
14466    lt_compile=`echo "$ac_compile" | $SED \
14467    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14468    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14469    -e 's:$: $lt_compiler_flag:'`
14470    (eval echo "\"\$as_me:14470: $lt_compile\"" >&5)
14471    (eval "$lt_compile" 2>conftest.err)
14472    ac_status=$?
14473    cat conftest.err >&5
14474    echo "$as_me:14474: \$? = $ac_status" >&5
14475    if (exit $ac_status) && test -s "$ac_outfile"; then
14476      # The compiler can only warn and ignore the option if not recognized
14477      # So say no if there are warnings other than the usual output.
14478      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14479      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14480      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14481        lt_prog_compiler_pic_works_F77=yes
14482      fi
14483    fi
14484    $rm conftest*
14485
14486 fi
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14489
14490 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14491     case $lt_prog_compiler_pic_F77 in
14492      "" | " "*) ;;
14493      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14494      esac
14495 else
14496     lt_prog_compiler_pic_F77=
14497      lt_prog_compiler_can_build_shared_F77=no
14498 fi
14499
14500 fi
14501 case $host_os in
14502   # For platforms which do not support PIC, -DPIC is meaningless:
14503   *djgpp*)
14504     lt_prog_compiler_pic_F77=
14505     ;;
14506   *)
14507     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14508     ;;
14509 esac
14510
14511 #
14512 # Check to make sure the static flag actually works.
14513 #
14514 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14516 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14517 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   lt_prog_compiler_static_works_F77=no
14521    save_LDFLAGS="$LDFLAGS"
14522    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14523    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14524    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14525      # The linker can only warn and ignore the option if not recognized
14526      # So say no if there are warnings
14527      if test -s conftest.err; then
14528        # Append any errors to the config.log.
14529        cat conftest.err 1>&5
14530        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14531        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14532        if diff conftest.exp conftest.er2 >/dev/null; then
14533          lt_prog_compiler_static_works_F77=yes
14534        fi
14535      else
14536        lt_prog_compiler_static_works_F77=yes
14537      fi
14538    fi
14539    $rm conftest*
14540    LDFLAGS="$save_LDFLAGS"
14541
14542 fi
14543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14544 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14545
14546 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14547     :
14548 else
14549     lt_prog_compiler_static_F77=
14550 fi
14551
14552
14553 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14555 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   lt_cv_prog_compiler_c_o_F77=no
14559    $rm -r conftest 2>/dev/null
14560    mkdir conftest
14561    cd conftest
14562    mkdir out
14563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
14565    lt_compiler_flag="-o out/conftest2.$ac_objext"
14566    # Insert the option either (1) after the last *FLAGS variable, or
14567    # (2) before a word containing "conftest.", or (3) at the end.
14568    # Note that $ac_compile itself does not contain backslashes and begins
14569    # with a dollar sign (not a hyphen), so the echo should work correctly.
14570    lt_compile=`echo "$ac_compile" | $SED \
14571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14573    -e 's:$: $lt_compiler_flag:'`
14574    (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
14575    (eval "$lt_compile" 2>out/conftest.err)
14576    ac_status=$?
14577    cat out/conftest.err >&5
14578    echo "$as_me:14578: \$? = $ac_status" >&5
14579    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14580    then
14581      # The compiler can only warn and ignore the option if not recognized
14582      # So say no if there are warnings
14583      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14584      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14585      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14586        lt_cv_prog_compiler_c_o_F77=yes
14587      fi
14588    fi
14589    chmod u+w . 2>&5
14590    $rm conftest*
14591    # SGI C++ compiler will create directory out/ii_files/ for
14592    # template instantiation
14593    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14594    $rm out/* && rmdir out
14595    cd ..
14596    rmdir conftest
14597    $rm conftest*
14598
14599 fi
14600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14602
14603
14604 hard_links="nottested"
14605 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14606   # do not overwrite the value of need_locks provided by the user
14607   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14609   hard_links=yes
14610   $rm conftest*
14611   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14612   touch conftest.a
14613   ln conftest.a conftest.b 2>&5 || hard_links=no
14614   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615   { echo "$as_me:$LINENO: result: $hard_links" >&5
14616 echo "${ECHO_T}$hard_links" >&6; }
14617   if test "$hard_links" = no; then
14618     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14620     need_locks=warn
14621   fi
14622 else
14623   need_locks=no
14624 fi
14625
14626 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14628
14629   runpath_var=
14630   allow_undefined_flag_F77=
14631   enable_shared_with_static_runtimes_F77=no
14632   archive_cmds_F77=
14633   archive_expsym_cmds_F77=
14634   old_archive_From_new_cmds_F77=
14635   old_archive_from_expsyms_cmds_F77=
14636   export_dynamic_flag_spec_F77=
14637   whole_archive_flag_spec_F77=
14638   thread_safe_flag_spec_F77=
14639   hardcode_libdir_flag_spec_F77=
14640   hardcode_libdir_flag_spec_ld_F77=
14641   hardcode_libdir_separator_F77=
14642   hardcode_direct_F77=no
14643   hardcode_minus_L_F77=no
14644   hardcode_shlibpath_var_F77=unsupported
14645   link_all_deplibs_F77=unknown
14646   hardcode_automatic_F77=no
14647   module_cmds_F77=
14648   module_expsym_cmds_F77=
14649   always_export_symbols_F77=no
14650   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14651   # include_expsyms should be a list of space-separated symbols to be *always*
14652   # included in the symbol list
14653   include_expsyms_F77=
14654   # exclude_expsyms can be an extended regexp of symbols to exclude
14655   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14656   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14657   # as well as any symbol that contains `d'.
14658   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14659   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14660   # platforms (ab)use it in PIC code, but their linkers get confused if
14661   # the symbol is explicitly referenced.  Since portable code cannot
14662   # rely on this symbol name, it's probably fine to never include it in
14663   # preloaded symbol tables.
14664   extract_expsyms_cmds=
14665   # Just being paranoid about ensuring that cc_basename is set.
14666   for cc_temp in $compiler""; do
14667   case $cc_temp in
14668     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14669     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14670     \-*) ;;
14671     *) break;;
14672   esac
14673 done
14674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14675
14676   case $host_os in
14677   cygwin* | mingw* | pw32*)
14678     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14679     # When not using gcc, we currently assume that we are using
14680     # Microsoft Visual C++.
14681     if test "$GCC" != yes; then
14682       with_gnu_ld=no
14683     fi
14684     ;;
14685   interix*)
14686     # we just hope/assume this is gcc and not c89 (= MSVC++)
14687     with_gnu_ld=yes
14688     ;;
14689   openbsd*)
14690     with_gnu_ld=no
14691     ;;
14692   esac
14693
14694   ld_shlibs_F77=yes
14695   if test "$with_gnu_ld" = yes; then
14696     # If archive_cmds runs LD, not CC, wlarc should be empty
14697     wlarc='${wl}'
14698
14699     # Set some defaults for GNU ld with shared library support. These
14700     # are reset later if shared libraries are not supported. Putting them
14701     # here allows them to be overridden if necessary.
14702     runpath_var=LD_RUN_PATH
14703     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14704     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14705     # ancient GNU ld didn't support --whole-archive et. al.
14706     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14707         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14708       else
14709         whole_archive_flag_spec_F77=
14710     fi
14711     supports_anon_versioning=no
14712     case `$LD -v 2>/dev/null` in
14713       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14714       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14715       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14716       *\ 2.11.*) ;; # other 2.11 versions
14717       *) supports_anon_versioning=yes ;;
14718     esac
14719
14720     # See if GNU ld supports shared libraries.
14721     case $host_os in
14722     aix3* | aix4* | aix5*)
14723       # On AIX/PPC, the GNU linker is very broken
14724       if test "$host_cpu" != ia64; then
14725         ld_shlibs_F77=no
14726         cat <<EOF 1>&2
14727
14728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14729 *** to be unable to reliably create shared libraries on AIX.
14730 *** Therefore, libtool is disabling shared libraries support.  If you
14731 *** really care for shared libraries, you may want to modify your PATH
14732 *** so that a non-GNU linker is found, and then restart.
14733
14734 EOF
14735       fi
14736       ;;
14737
14738     amigaos*)
14739       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)'
14740       hardcode_libdir_flag_spec_F77='-L$libdir'
14741       hardcode_minus_L_F77=yes
14742
14743       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14744       # that the semantics of dynamic libraries on AmigaOS, at least up
14745       # to version 4, is to share data among multiple programs linked
14746       # with the same dynamic library.  Since this doesn't match the
14747       # behavior of shared libraries on other platforms, we can't use
14748       # them.
14749       ld_shlibs_F77=no
14750       ;;
14751
14752     beos*)
14753       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14754         allow_undefined_flag_F77=unsupported
14755         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14756         # support --undefined.  This deserves some investigation.  FIXME
14757         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758       else
14759         ld_shlibs_F77=no
14760       fi
14761       ;;
14762
14763     cygwin* | mingw* | pw32*)
14764       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14765       # as there is no search path for DLLs.
14766       hardcode_libdir_flag_spec_F77='-L$libdir'
14767       allow_undefined_flag_F77=unsupported
14768       always_export_symbols_F77=no
14769       enable_shared_with_static_runtimes_F77=yes
14770       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14771
14772       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14773         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774         # If the export-symbols file already is a .def file (1st line
14775         # is EXPORTS), use it as is; otherwise, prepend...
14776         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14777           cp $export_symbols $output_objdir/$soname.def;
14778         else
14779           echo EXPORTS > $output_objdir/$soname.def;
14780           cat $export_symbols >> $output_objdir/$soname.def;
14781         fi~
14782         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14783       else
14784         ld_shlibs_F77=no
14785       fi
14786       ;;
14787
14788     interix3*)
14789       hardcode_direct_F77=no
14790       hardcode_shlibpath_var_F77=no
14791       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14792       export_dynamic_flag_spec_F77='${wl}-E'
14793       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14794       # Instead, shared libraries are loaded at an image base (0x10000000 by
14795       # default) and relocated if they conflict, which is a slow very memory
14796       # consuming and fragmenting process.  To avoid this, we pick a random,
14797       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14798       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14799       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'
14800       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'
14801       ;;
14802
14803     linux*)
14804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805         tmp_addflag=
14806         case $cc_basename,$host_cpu in
14807         pgcc*)                          # Portland Group C compiler
14808           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'
14809           tmp_addflag=' $pic_flag'
14810           ;;
14811         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14812           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'
14813           tmp_addflag=' $pic_flag -Mnomain' ;;
14814         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14815           tmp_addflag=' -i_dynamic' ;;
14816         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14817           tmp_addflag=' -i_dynamic -nofor_main' ;;
14818         ifc* | ifort*)                  # Intel Fortran compiler
14819           tmp_addflag=' -nofor_main' ;;
14820         esac
14821         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14822
14823         if test $supports_anon_versioning = yes; then
14824           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14825   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14826   $echo "local: *; };" >> $output_objdir/$libname.ver~
14827           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14828         fi
14829       else
14830         ld_shlibs_F77=no
14831       fi
14832       ;;
14833
14834     netbsd*)
14835       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14836         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14837         wlarc=
14838       else
14839         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14840         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14841       fi
14842       ;;
14843
14844     solaris*)
14845       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14846         ld_shlibs_F77=no
14847         cat <<EOF 1>&2
14848
14849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14850 *** create shared libraries on Solaris systems.  Therefore, libtool
14851 *** is disabling shared libraries support.  We urge you to upgrade GNU
14852 *** binutils to release 2.9.1 or newer.  Another option is to modify
14853 *** your PATH or compiler configuration so that the native linker is
14854 *** used, and then restart.
14855
14856 EOF
14857       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14858         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14860       else
14861         ld_shlibs_F77=no
14862       fi
14863       ;;
14864
14865     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14866       case `$LD -v 2>&1` in
14867         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14868         ld_shlibs_F77=no
14869         cat <<_LT_EOF 1>&2
14870
14871 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14872 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14873 *** is disabling shared libraries support.  We urge you to upgrade GNU
14874 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14875 *** your PATH or compiler configuration so that the native linker is
14876 *** used, and then restart.
14877
14878 _LT_EOF
14879         ;;
14880         *)
14881           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14882             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14883             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14884             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14885           else
14886             ld_shlibs_F77=no
14887           fi
14888         ;;
14889       esac
14890       ;;
14891
14892     sunos4*)
14893       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14894       wlarc=
14895       hardcode_direct_F77=yes
14896       hardcode_shlibpath_var_F77=no
14897       ;;
14898
14899     *)
14900       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14901         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14902         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14903       else
14904         ld_shlibs_F77=no
14905       fi
14906       ;;
14907     esac
14908
14909     if test "$ld_shlibs_F77" = no; then
14910       runpath_var=
14911       hardcode_libdir_flag_spec_F77=
14912       export_dynamic_flag_spec_F77=
14913       whole_archive_flag_spec_F77=
14914     fi
14915   else
14916     # PORTME fill in a description of your system's linker (not GNU ld)
14917     case $host_os in
14918     aix3*)
14919       allow_undefined_flag_F77=unsupported
14920       always_export_symbols_F77=yes
14921       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'
14922       # Note: this linker hardcodes the directories in LIBPATH if there
14923       # are no directories specified by -L.
14924       hardcode_minus_L_F77=yes
14925       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14926         # Neither direct hardcoding nor static linking is supported with a
14927         # broken collect2.
14928         hardcode_direct_F77=unsupported
14929       fi
14930       ;;
14931
14932     aix4* | aix5*)
14933       if test "$host_cpu" = ia64; then
14934         # On IA64, the linker does run time linking by default, so we don't
14935         # have to do anything special.
14936         aix_use_runtimelinking=no
14937         exp_sym_flag='-Bexport'
14938         no_entry_flag=""
14939       else
14940         # If we're using GNU nm, then we don't want the "-C" option.
14941         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14942         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14943           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'
14944         else
14945           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'
14946         fi
14947         aix_use_runtimelinking=no
14948
14949         # Test if we are trying to use run time linking or normal
14950         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14951         # need to do runtime linking.
14952         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14953           for ld_flag in $LDFLAGS; do
14954           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14955             aix_use_runtimelinking=yes
14956             break
14957           fi
14958           done
14959           ;;
14960         esac
14961
14962         exp_sym_flag='-bexport'
14963         no_entry_flag='-bnoentry'
14964       fi
14965
14966       # When large executables or shared objects are built, AIX ld can
14967       # have problems creating the table of contents.  If linking a library
14968       # or program results in "error TOC overflow" add -mminimal-toc to
14969       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14970       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14971
14972       archive_cmds_F77=''
14973       hardcode_direct_F77=yes
14974       hardcode_libdir_separator_F77=':'
14975       link_all_deplibs_F77=yes
14976
14977       if test "$GCC" = yes; then
14978         case $host_os in aix4.[012]|aix4.[012].*)
14979         # We only want to do this on AIX 4.2 and lower, the check
14980         # below for broken collect2 doesn't work under 4.3+
14981           collect2name=`${CC} -print-prog-name=collect2`
14982           if test -f "$collect2name" && \
14983            strings "$collect2name" | grep resolve_lib_name >/dev/null
14984           then
14985           # We have reworked collect2
14986           hardcode_direct_F77=yes
14987           else
14988           # We have old collect2
14989           hardcode_direct_F77=unsupported
14990           # It fails to find uninstalled libraries when the uninstalled
14991           # path is not listed in the libpath.  Setting hardcode_minus_L
14992           # to unsupported forces relinking
14993           hardcode_minus_L_F77=yes
14994           hardcode_libdir_flag_spec_F77='-L$libdir'
14995           hardcode_libdir_separator_F77=
14996           fi
14997           ;;
14998         esac
14999         shared_flag='-shared'
15000         if test "$aix_use_runtimelinking" = yes; then
15001           shared_flag="$shared_flag "'${wl}-G'
15002         fi
15003       else
15004         # not using gcc
15005         if test "$host_cpu" = ia64; then
15006         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15007         # chokes on -Wl,-G. The following line is correct:
15008           shared_flag='-G'
15009         else
15010           if test "$aix_use_runtimelinking" = yes; then
15011             shared_flag='${wl}-G'
15012           else
15013             shared_flag='${wl}-bM:SRE'
15014           fi
15015         fi
15016       fi
15017
15018       # It seems that -bexpall does not export symbols beginning with
15019       # underscore (_), so it is better to generate a list of symbols to export.
15020       always_export_symbols_F77=yes
15021       if test "$aix_use_runtimelinking" = yes; then
15022         # Warning - without using the other runtime loading flags (-brtl),
15023         # -berok will link without error, but may produce a broken library.
15024         allow_undefined_flag_F77='-berok'
15025        # Determine the default libpath from the value encoded in an empty executable.
15026        cat >conftest.$ac_ext <<_ACEOF
15027       program main
15028
15029       end
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_link") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } && {
15045          test -z "$ac_f77_werror_flag" ||
15046          test ! -s conftest.err
15047        } && test -s conftest$ac_exeext &&
15048        $as_test_x conftest$ac_exeext; then
15049
15050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15051 }'`
15052 # Check for a 64-bit object if we didn't find anything.
15053 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; }
15054 }'`; fi
15055 else
15056   echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059
15060 fi
15061
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063       conftest$ac_exeext conftest.$ac_ext
15064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15065
15066        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15067         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"
15068        else
15069         if test "$host_cpu" = ia64; then
15070           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15071           allow_undefined_flag_F77="-z nodefs"
15072           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"
15073         else
15074          # Determine the default libpath from the value encoded in an empty executable.
15075          cat >conftest.$ac_ext <<_ACEOF
15076       program main
15077
15078       end
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (ac_try="$ac_link"
15082 case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_link") 2>conftest.er1
15088   ac_status=$?
15089   grep -v '^ *+' conftest.er1 >conftest.err
15090   rm -f conftest.er1
15091   cat conftest.err >&5
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); } && {
15094          test -z "$ac_f77_werror_flag" ||
15095          test ! -s conftest.err
15096        } && test -s conftest$ac_exeext &&
15097        $as_test_x conftest$ac_exeext; then
15098
15099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15100 }'`
15101 # Check for a 64-bit object if we didn't find anything.
15102 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; }
15103 }'`; fi
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108
15109 fi
15110
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112       conftest$ac_exeext conftest.$ac_ext
15113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15114
15115          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15116           # Warning - without using the other run time loading flags,
15117           # -berok will link without error, but may produce a broken library.
15118           no_undefined_flag_F77=' ${wl}-bernotok'
15119           allow_undefined_flag_F77=' ${wl}-berok'
15120           # Exported symbols can be pulled into shared objects from archives
15121           whole_archive_flag_spec_F77='$convenience'
15122           archive_cmds_need_lc_F77=yes
15123           # This is similar to how AIX traditionally builds its shared libraries.
15124           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'
15125         fi
15126       fi
15127       ;;
15128
15129     amigaos*)
15130       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)'
15131       hardcode_libdir_flag_spec_F77='-L$libdir'
15132       hardcode_minus_L_F77=yes
15133       # see comment about different semantics on the GNU ld section
15134       ld_shlibs_F77=no
15135       ;;
15136
15137     bsdi[45]*)
15138       export_dynamic_flag_spec_F77=-rdynamic
15139       ;;
15140
15141     cygwin* | mingw* | pw32*)
15142       # When not using gcc, we currently assume that we are using
15143       # Microsoft Visual C++.
15144       # hardcode_libdir_flag_spec is actually meaningless, as there is
15145       # no search path for DLLs.
15146       hardcode_libdir_flag_spec_F77=' '
15147       allow_undefined_flag_F77=unsupported
15148       # Tell ltmain to make .lib files, not .a files.
15149       libext=lib
15150       # Tell ltmain to make .dll files, not .so files.
15151       shrext_cmds=".dll"
15152       # FIXME: Setting linknames here is a bad hack.
15153       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15154       # The linker will automatically build a .lib file if we build a DLL.
15155       old_archive_From_new_cmds_F77='true'
15156       # FIXME: Should let the user specify the lib program.
15157       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15158       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15159       enable_shared_with_static_runtimes_F77=yes
15160       ;;
15161
15162     darwin* | rhapsody*)
15163       case $host_os in
15164         rhapsody* | darwin1.[012])
15165          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15166          ;;
15167        *) # Darwin 1.3 on
15168          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15169            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15170          else
15171            case ${MACOSX_DEPLOYMENT_TARGET} in
15172              10.[012])
15173                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15174                ;;
15175              10.*)
15176                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15177                ;;
15178            esac
15179          fi
15180          ;;
15181       esac
15182       archive_cmds_need_lc_F77=no
15183       hardcode_direct_F77=no
15184       hardcode_automatic_F77=yes
15185       hardcode_shlibpath_var_F77=unsupported
15186       whole_archive_flag_spec_F77=''
15187       link_all_deplibs_F77=yes
15188     if test "$GCC" = yes ; then
15189         output_verbose_link_cmd='echo'
15190         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15191       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15192       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15193       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}'
15194       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}'
15195     else
15196       case $cc_basename in
15197         xlc*)
15198          output_verbose_link_cmd='echo'
15199          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15200          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15201           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15202          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}'
15203           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}'
15204           ;;
15205        *)
15206          ld_shlibs_F77=no
15207           ;;
15208       esac
15209     fi
15210       ;;
15211
15212     dgux*)
15213       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15214       hardcode_libdir_flag_spec_F77='-L$libdir'
15215       hardcode_shlibpath_var_F77=no
15216       ;;
15217
15218     freebsd1*)
15219       ld_shlibs_F77=no
15220       ;;
15221
15222     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15223     # support.  Future versions do this automatically, but an explicit c++rt0.o
15224     # does not break anything, and helps significantly (at the cost of a little
15225     # extra space).
15226     freebsd2.2*)
15227       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15228       hardcode_libdir_flag_spec_F77='-R$libdir'
15229       hardcode_direct_F77=yes
15230       hardcode_shlibpath_var_F77=no
15231       ;;
15232
15233     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15234     freebsd2*)
15235       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15236       hardcode_direct_F77=yes
15237       hardcode_minus_L_F77=yes
15238       hardcode_shlibpath_var_F77=no
15239       ;;
15240
15241     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15242     freebsd* | kfreebsd*-gnu | dragonfly*)
15243       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15244       hardcode_libdir_flag_spec_F77='-R$libdir'
15245       hardcode_direct_F77=yes
15246       hardcode_shlibpath_var_F77=no
15247       ;;
15248
15249     hpux9*)
15250       if test "$GCC" = yes; then
15251         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'
15252       else
15253         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'
15254       fi
15255       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15256       hardcode_libdir_separator_F77=:
15257       hardcode_direct_F77=yes
15258
15259       # hardcode_minus_L: Not really in the search PATH,
15260       # but as the default location of the library.
15261       hardcode_minus_L_F77=yes
15262       export_dynamic_flag_spec_F77='${wl}-E'
15263       ;;
15264
15265     hpux10*)
15266       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15267         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15268       else
15269         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15270       fi
15271       if test "$with_gnu_ld" = no; then
15272         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15273         hardcode_libdir_separator_F77=:
15274
15275         hardcode_direct_F77=yes
15276         export_dynamic_flag_spec_F77='${wl}-E'
15277
15278         # hardcode_minus_L: Not really in the search PATH,
15279         # but as the default location of the library.
15280         hardcode_minus_L_F77=yes
15281       fi
15282       ;;
15283
15284     hpux11*)
15285       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15286         case $host_cpu in
15287         hppa*64*)
15288           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15289           ;;
15290         ia64*)
15291           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15292           ;;
15293         *)
15294           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15295           ;;
15296         esac
15297       else
15298         case $host_cpu in
15299         hppa*64*)
15300           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15301           ;;
15302         ia64*)
15303           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15304           ;;
15305         *)
15306           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15307           ;;
15308         esac
15309       fi
15310       if test "$with_gnu_ld" = no; then
15311         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15312         hardcode_libdir_separator_F77=:
15313
15314         case $host_cpu in
15315         hppa*64*|ia64*)
15316           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15317           hardcode_direct_F77=no
15318           hardcode_shlibpath_var_F77=no
15319           ;;
15320         *)
15321           hardcode_direct_F77=yes
15322           export_dynamic_flag_spec_F77='${wl}-E'
15323
15324           # hardcode_minus_L: Not really in the search PATH,
15325           # but as the default location of the library.
15326           hardcode_minus_L_F77=yes
15327           ;;
15328         esac
15329       fi
15330       ;;
15331
15332     irix5* | irix6* | nonstopux*)
15333       if test "$GCC" = yes; then
15334         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'
15335       else
15336         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'
15337         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15338       fi
15339       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15340       hardcode_libdir_separator_F77=:
15341       link_all_deplibs_F77=yes
15342       ;;
15343
15344     netbsd*)
15345       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15346         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15347       else
15348         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15349       fi
15350       hardcode_libdir_flag_spec_F77='-R$libdir'
15351       hardcode_direct_F77=yes
15352       hardcode_shlibpath_var_F77=no
15353       ;;
15354
15355     newsos6)
15356       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357       hardcode_direct_F77=yes
15358       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15359       hardcode_libdir_separator_F77=:
15360       hardcode_shlibpath_var_F77=no
15361       ;;
15362
15363     openbsd*)
15364       hardcode_direct_F77=yes
15365       hardcode_shlibpath_var_F77=no
15366       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15367         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15368         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15369         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15370         export_dynamic_flag_spec_F77='${wl}-E'
15371       else
15372        case $host_os in
15373          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15374            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15375            hardcode_libdir_flag_spec_F77='-R$libdir'
15376            ;;
15377          *)
15378            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15379            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15380            ;;
15381        esac
15382       fi
15383       ;;
15384
15385     os2*)
15386       hardcode_libdir_flag_spec_F77='-L$libdir'
15387       hardcode_minus_L_F77=yes
15388       allow_undefined_flag_F77=unsupported
15389       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'
15390       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15391       ;;
15392
15393     osf3*)
15394       if test "$GCC" = yes; then
15395         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15396         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'
15397       else
15398         allow_undefined_flag_F77=' -expect_unresolved \*'
15399         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'
15400       fi
15401       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15402       hardcode_libdir_separator_F77=:
15403       ;;
15404
15405     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15406       if test "$GCC" = yes; then
15407         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15408         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'
15409         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15410       else
15411         allow_undefined_flag_F77=' -expect_unresolved \*'
15412         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'
15413         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~
15414         $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'
15415
15416         # Both c and cxx compiler support -rpath directly
15417         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15418       fi
15419       hardcode_libdir_separator_F77=:
15420       ;;
15421
15422     solaris*)
15423       no_undefined_flag_F77=' -z text'
15424       if test "$GCC" = yes; then
15425         wlarc='${wl}'
15426         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15428           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15429       else
15430         wlarc=''
15431         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15433         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15434       fi
15435       hardcode_libdir_flag_spec_F77='-R$libdir'
15436       hardcode_shlibpath_var_F77=no
15437       case $host_os in
15438       solaris2.[0-5] | solaris2.[0-5].*) ;;
15439       *)
15440         # The compiler driver will combine linker options so we
15441         # cannot just pass the convience library names through
15442         # without $wl, iff we do not link with $LD.
15443         # Luckily, gcc supports the same syntax we need for Sun Studio.
15444         # Supported since Solaris 2.6 (maybe 2.5.1?)
15445         case $wlarc in
15446         '')
15447           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15448         *)
15449           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' ;;
15450         esac ;;
15451       esac
15452       link_all_deplibs_F77=yes
15453       ;;
15454
15455     sunos4*)
15456       if test "x$host_vendor" = xsequent; then
15457         # Use $CC to link under sequent, because it throws in some extra .o
15458         # files that make .init and .fini sections work.
15459         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15460       else
15461         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15462       fi
15463       hardcode_libdir_flag_spec_F77='-L$libdir'
15464       hardcode_direct_F77=yes
15465       hardcode_minus_L_F77=yes
15466       hardcode_shlibpath_var_F77=no
15467       ;;
15468
15469     sysv4)
15470       case $host_vendor in
15471         sni)
15472           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473           hardcode_direct_F77=yes # is this really true???
15474         ;;
15475         siemens)
15476           ## LD is ld it makes a PLAMLIB
15477           ## CC just makes a GrossModule.
15478           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15479           reload_cmds_F77='$CC -r -o $output$reload_objs'
15480           hardcode_direct_F77=no
15481         ;;
15482         motorola)
15483           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15485         ;;
15486       esac
15487       runpath_var='LD_RUN_PATH'
15488       hardcode_shlibpath_var_F77=no
15489       ;;
15490
15491     sysv4.3*)
15492       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493       hardcode_shlibpath_var_F77=no
15494       export_dynamic_flag_spec_F77='-Bexport'
15495       ;;
15496
15497     sysv4*MP*)
15498       if test -d /usr/nec; then
15499         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500         hardcode_shlibpath_var_F77=no
15501         runpath_var=LD_RUN_PATH
15502         hardcode_runpath_var=yes
15503         ld_shlibs_F77=yes
15504       fi
15505       ;;
15506
15507     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15508       no_undefined_flag_F77='${wl}-z,text'
15509       archive_cmds_need_lc_F77=no
15510       hardcode_shlibpath_var_F77=no
15511       runpath_var='LD_RUN_PATH'
15512
15513       if test "$GCC" = yes; then
15514         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15515         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15516       else
15517         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15518         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15519       fi
15520       ;;
15521
15522     sysv5* | sco3.2v5* | sco5v6*)
15523       # Note: We can NOT use -z defs as we might desire, because we do not
15524       # link with -lc, and that would cause any symbols used from libc to
15525       # always be unresolved, which means just about no library would
15526       # ever link correctly.  If we're not using GNU ld we use -z text
15527       # though, which does catch some bad symbols but isn't as heavy-handed
15528       # as -z defs.
15529       no_undefined_flag_F77='${wl}-z,text'
15530       allow_undefined_flag_F77='${wl}-z,nodefs'
15531       archive_cmds_need_lc_F77=no
15532       hardcode_shlibpath_var_F77=no
15533       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15534       hardcode_libdir_separator_F77=':'
15535       link_all_deplibs_F77=yes
15536       export_dynamic_flag_spec_F77='${wl}-Bexport'
15537       runpath_var='LD_RUN_PATH'
15538
15539       if test "$GCC" = yes; then
15540         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15542       else
15543         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15545       fi
15546       ;;
15547
15548     uts4*)
15549       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550       hardcode_libdir_flag_spec_F77='-L$libdir'
15551       hardcode_shlibpath_var_F77=no
15552       ;;
15553
15554     *)
15555       ld_shlibs_F77=no
15556       ;;
15557     esac
15558   fi
15559
15560 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15561 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15562 test "$ld_shlibs_F77" = no && can_build_shared=no
15563
15564 #
15565 # Do we need to explicitly link libc?
15566 #
15567 case "x$archive_cmds_need_lc_F77" in
15568 x|xyes)
15569   # Assume -lc should be added
15570   archive_cmds_need_lc_F77=yes
15571
15572   if test "$enable_shared" = yes && test "$GCC" = yes; then
15573     case $archive_cmds_F77 in
15574     *'~'*)
15575       # FIXME: we may have to deal with multi-command sequences.
15576       ;;
15577     '$CC '*)
15578       # Test whether the compiler implicitly links with -lc since on some
15579       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15580       # to ld, don't add -lc before -lgcc.
15581       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15583       $rm conftest*
15584       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15585
15586       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587   (eval $ac_compile) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } 2>conftest.err; then
15591         soname=conftest
15592         lib=conftest
15593         libobjs=conftest.$ac_objext
15594         deplibs=
15595         wl=$lt_prog_compiler_wl_F77
15596         pic_flag=$lt_prog_compiler_pic_F77
15597         compiler_flags=-v
15598         linker_flags=-v
15599         verstring=
15600         output_objdir=.
15601         libname=conftest
15602         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15603         allow_undefined_flag_F77=
15604         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15605   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15606   ac_status=$?
15607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608   (exit $ac_status); }
15609         then
15610           archive_cmds_need_lc_F77=no
15611         else
15612           archive_cmds_need_lc_F77=yes
15613         fi
15614         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15615       else
15616         cat conftest.err 1>&5
15617       fi
15618       $rm conftest*
15619       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15620 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15621       ;;
15622     esac
15623   fi
15624   ;;
15625 esac
15626
15627 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15629 library_names_spec=
15630 libname_spec='lib$name'
15631 soname_spec=
15632 shrext_cmds=".so"
15633 postinstall_cmds=
15634 postuninstall_cmds=
15635 finish_cmds=
15636 finish_eval=
15637 shlibpath_var=
15638 shlibpath_overrides_runpath=unknown
15639 version_type=none
15640 dynamic_linker="$host_os ld.so"
15641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15642 if test "$GCC" = yes; then
15643   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15644   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15645     # if the path contains ";" then we assume it to be the separator
15646     # otherwise default to the standard path separator (i.e. ":") - it is
15647     # assumed that no part of a normal pathname contains ";" but that should
15648     # okay in the real world where ";" in dirpaths is itself problematic.
15649     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15650   else
15651     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15652   fi
15653 else
15654   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15655 fi
15656 need_lib_prefix=unknown
15657 hardcode_into_libs=no
15658
15659 # when you set need_version to no, make sure it does not cause -set_version
15660 # flags to be left without arguments
15661 need_version=unknown
15662
15663 case $host_os in
15664 aix3*)
15665   version_type=linux
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15667   shlibpath_var=LIBPATH
15668
15669   # AIX 3 has no versioning support, so we append a major version to the name.
15670   soname_spec='${libname}${release}${shared_ext}$major'
15671   ;;
15672
15673 aix4* | aix5*)
15674   version_type=linux
15675   need_lib_prefix=no
15676   need_version=no
15677   hardcode_into_libs=yes
15678   if test "$host_cpu" = ia64; then
15679     # AIX 5 supports IA64
15680     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15681     shlibpath_var=LD_LIBRARY_PATH
15682   else
15683     # With GCC up to 2.95.x, collect2 would create an import file
15684     # for dependence libraries.  The import file would start with
15685     # the line `#! .'.  This would cause the generated library to
15686     # depend on `.', always an invalid library.  This was fixed in
15687     # development snapshots of GCC prior to 3.0.
15688     case $host_os in
15689       aix4 | aix4.[01] | aix4.[01].*)
15690       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15691            echo ' yes '
15692            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15693         :
15694       else
15695         can_build_shared=no
15696       fi
15697       ;;
15698     esac
15699     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15700     # soname into executable. Probably we can add versioning support to
15701     # collect2, so additional links can be useful in future.
15702     if test "$aix_use_runtimelinking" = yes; then
15703       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15704       # instead of lib<name>.a to let people know that these are not
15705       # typical AIX shared libraries.
15706       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707     else
15708       # We preserve .a as extension for shared libraries through AIX4.2
15709       # and later when we are not doing run time linking.
15710       library_names_spec='${libname}${release}.a $libname.a'
15711       soname_spec='${libname}${release}${shared_ext}$major'
15712     fi
15713     shlibpath_var=LIBPATH
15714   fi
15715   ;;
15716
15717 amigaos*)
15718   library_names_spec='$libname.ixlibrary $libname.a'
15719   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15720   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'
15721   ;;
15722
15723 beos*)
15724   library_names_spec='${libname}${shared_ext}'
15725   dynamic_linker="$host_os ld.so"
15726   shlibpath_var=LIBRARY_PATH
15727   ;;
15728
15729 bsdi[45]*)
15730   version_type=linux
15731   need_version=no
15732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733   soname_spec='${libname}${release}${shared_ext}$major'
15734   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15735   shlibpath_var=LD_LIBRARY_PATH
15736   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15737   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15738   # the default ld.so.conf also contains /usr/contrib/lib and
15739   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15740   # libtool to hard-code these into programs
15741   ;;
15742
15743 cygwin* | mingw* | pw32*)
15744   version_type=windows
15745   shrext_cmds=".dll"
15746   need_version=no
15747   need_lib_prefix=no
15748
15749   case $GCC,$host_os in
15750   yes,cygwin* | yes,mingw* | yes,pw32*)
15751     library_names_spec='$libname.dll.a'
15752     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15753     postinstall_cmds='base_file=`basename \${file}`~
15754       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15755       dldir=$destdir/`dirname \$dlpath`~
15756       test -d \$dldir || mkdir -p \$dldir~
15757       $install_prog $dir/$dlname \$dldir/$dlname~
15758       chmod a+x \$dldir/$dlname'
15759     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15760       dlpath=$dir/\$dldll~
15761        $rm \$dlpath'
15762     shlibpath_overrides_runpath=yes
15763
15764     case $host_os in
15765     cygwin*)
15766       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15767       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15768       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15769       ;;
15770     mingw*)
15771       # MinGW DLLs use traditional 'lib' prefix
15772       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15773       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15774       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15775         # It is most probably a Windows format PATH printed by
15776         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15777         # path with ; separators, and with drive letters. We can handle the
15778         # drive letters (cygwin fileutils understands them), so leave them,
15779         # especially as we might pass files found there to a mingw objdump,
15780         # which wouldn't understand a cygwinified path. Ahh.
15781         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15782       else
15783         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15784       fi
15785       ;;
15786     pw32*)
15787       # pw32 DLLs use 'pw' prefix rather than 'lib'
15788       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15789       ;;
15790     esac
15791     ;;
15792
15793   *)
15794     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15795     ;;
15796   esac
15797   dynamic_linker='Win32 ld.exe'
15798   # FIXME: first we should search . and the directory the executable is in
15799   shlibpath_var=PATH
15800   ;;
15801
15802 darwin* | rhapsody*)
15803   dynamic_linker="$host_os dyld"
15804   version_type=darwin
15805   need_lib_prefix=no
15806   need_version=no
15807   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15808   soname_spec='${libname}${release}${major}$shared_ext'
15809   shlibpath_overrides_runpath=yes
15810   shlibpath_var=DYLD_LIBRARY_PATH
15811   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15812   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15813   if test "$GCC" = yes; then
15814     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"`
15815   else
15816     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15817   fi
15818   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15819   ;;
15820
15821 dgux*)
15822   version_type=linux
15823   need_lib_prefix=no
15824   need_version=no
15825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15826   soname_spec='${libname}${release}${shared_ext}$major'
15827   shlibpath_var=LD_LIBRARY_PATH
15828   ;;
15829
15830 freebsd1*)
15831   dynamic_linker=no
15832   ;;
15833
15834 kfreebsd*-gnu)
15835   version_type=linux
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   shlibpath_overrides_runpath=no
15842   hardcode_into_libs=yes
15843   dynamic_linker='GNU ld.so'
15844   ;;
15845
15846 freebsd* | dragonfly*)
15847   # DragonFly does not have aout.  When/if they implement a new
15848   # versioning mechanism, adjust this.
15849   if test -x /usr/bin/objformat; then
15850     objformat=`/usr/bin/objformat`
15851   else
15852     case $host_os in
15853     freebsd[123]*) objformat=aout ;;
15854     *) objformat=elf ;;
15855     esac
15856   fi
15857   version_type=freebsd-$objformat
15858   case $version_type in
15859     freebsd-elf*)
15860       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15861       need_version=no
15862       need_lib_prefix=no
15863       ;;
15864     freebsd-*)
15865       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15866       need_version=yes
15867       ;;
15868   esac
15869   shlibpath_var=LD_LIBRARY_PATH
15870   case $host_os in
15871   freebsd2*)
15872     shlibpath_overrides_runpath=yes
15873     ;;
15874   freebsd3.[01]* | freebsdelf3.[01]*)
15875     shlibpath_overrides_runpath=yes
15876     hardcode_into_libs=yes
15877     ;;
15878   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15879   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15880     shlibpath_overrides_runpath=no
15881     hardcode_into_libs=yes
15882     ;;
15883   freebsd*) # from 4.6 on
15884     shlibpath_overrides_runpath=yes
15885     hardcode_into_libs=yes
15886     ;;
15887   esac
15888   ;;
15889
15890 gnu*)
15891   version_type=linux
15892   need_lib_prefix=no
15893   need_version=no
15894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15895   soname_spec='${libname}${release}${shared_ext}$major'
15896   shlibpath_var=LD_LIBRARY_PATH
15897   hardcode_into_libs=yes
15898   ;;
15899
15900 hpux9* | hpux10* | hpux11*)
15901   # Give a soname corresponding to the major version so that dld.sl refuses to
15902   # link against other versions.
15903   version_type=sunos
15904   need_lib_prefix=no
15905   need_version=no
15906   case $host_cpu in
15907   ia64*)
15908     shrext_cmds='.so'
15909     hardcode_into_libs=yes
15910     dynamic_linker="$host_os dld.so"
15911     shlibpath_var=LD_LIBRARY_PATH
15912     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15913     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914     soname_spec='${libname}${release}${shared_ext}$major'
15915     if test "X$HPUX_IA64_MODE" = X32; then
15916       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15917     else
15918       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15919     fi
15920     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15921     ;;
15922    hppa*64*)
15923      shrext_cmds='.sl'
15924      hardcode_into_libs=yes
15925      dynamic_linker="$host_os dld.sl"
15926      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15927      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15928      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929      soname_spec='${libname}${release}${shared_ext}$major'
15930      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15931      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15932      ;;
15933    *)
15934     shrext_cmds='.sl'
15935     dynamic_linker="$host_os dld.sl"
15936     shlibpath_var=SHLIB_PATH
15937     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939     soname_spec='${libname}${release}${shared_ext}$major'
15940     ;;
15941   esac
15942   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15943   postinstall_cmds='chmod 555 $lib'
15944   ;;
15945
15946 interix3*)
15947   version_type=linux
15948   need_lib_prefix=no
15949   need_version=no
15950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951   soname_spec='${libname}${release}${shared_ext}$major'
15952   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953   shlibpath_var=LD_LIBRARY_PATH
15954   shlibpath_overrides_runpath=no
15955   hardcode_into_libs=yes
15956   ;;
15957
15958 irix5* | irix6* | nonstopux*)
15959   case $host_os in
15960     nonstopux*) version_type=nonstopux ;;
15961     *)
15962         if test "$lt_cv_prog_gnu_ld" = yes; then
15963                 version_type=linux
15964         else
15965                 version_type=irix
15966         fi ;;
15967   esac
15968   need_lib_prefix=no
15969   need_version=no
15970   soname_spec='${libname}${release}${shared_ext}$major'
15971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15972   case $host_os in
15973   irix5* | nonstopux*)
15974     libsuff= shlibsuff=
15975     ;;
15976   *)
15977     case $LD in # libtool.m4 will add one of these switches to LD
15978     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979       libsuff= shlibsuff= libmagic=32-bit;;
15980     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981       libsuff=32 shlibsuff=N32 libmagic=N32;;
15982     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984     *) libsuff= shlibsuff= libmagic=never-match;;
15985     esac
15986     ;;
15987   esac
15988   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989   shlibpath_overrides_runpath=no
15990   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992   hardcode_into_libs=yes
15993   ;;
15994
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
15997   dynamic_linker=no
15998   ;;
15999
16000 # This must be Linux ELF.
16001 linux*)
16002   version_type=linux
16003   need_lib_prefix=no
16004   need_version=no
16005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006   soname_spec='${libname}${release}${shared_ext}$major'
16007   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008   shlibpath_var=LD_LIBRARY_PATH
16009   shlibpath_overrides_runpath=no
16010   # This implies no fast_install, which is unacceptable.
16011   # Some rework will be needed to allow for fast_install
16012   # before this can be enabled.
16013   hardcode_into_libs=yes
16014
16015   # find out which ABI we are using
16016   libsuff=
16017   case "$host_cpu" in
16018   x86_64*|s390x*|powerpc64*)
16019     echo '#line 16019 "configure"' > conftest.$ac_ext
16020     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021   (eval $ac_compile) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; then
16025       case `/usr/bin/file conftest.$ac_objext` in
16026       *64-bit*)
16027         libsuff=64
16028         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16029         ;;
16030       esac
16031     fi
16032     rm -rf conftest*
16033     ;;
16034   esac
16035
16036   # Append ld.so.conf contents to the search path
16037   if test -f /etc/ld.so.conf; then
16038     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16039     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16040   fi
16041
16042   # We used to test for /lib/ld.so.1 and disable shared libraries on
16043   # powerpc, because MkLinux only supported shared libraries with the
16044   # GNU dynamic linker.  Since this was broken with cross compilers,
16045   # most powerpc-linux boxes support dynamic linking these days and
16046   # people can always --disable-shared, the test was removed, and we
16047   # assume the GNU/Linux dynamic linker is in use.
16048   dynamic_linker='GNU/Linux ld.so'
16049   ;;
16050
16051 knetbsd*-gnu)
16052   version_type=linux
16053   need_lib_prefix=no
16054   need_version=no
16055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056   soname_spec='${libname}${release}${shared_ext}$major'
16057   shlibpath_var=LD_LIBRARY_PATH
16058   shlibpath_overrides_runpath=no
16059   hardcode_into_libs=yes
16060   dynamic_linker='GNU ld.so'
16061   ;;
16062
16063 netbsd*)
16064   version_type=sunos
16065   need_lib_prefix=no
16066   need_version=no
16067   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070     dynamic_linker='NetBSD (a.out) ld.so'
16071   else
16072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073     soname_spec='${libname}${release}${shared_ext}$major'
16074     dynamic_linker='NetBSD ld.elf_so'
16075   fi
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   hardcode_into_libs=yes
16079   ;;
16080
16081 newsos6)
16082   version_type=linux
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084   shlibpath_var=LD_LIBRARY_PATH
16085   shlibpath_overrides_runpath=yes
16086   ;;
16087
16088 nto-qnx*)
16089   version_type=linux
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   shlibpath_overrides_runpath=yes
16096   ;;
16097
16098 openbsd*)
16099   version_type=sunos
16100   sys_lib_dlsearch_path_spec="/usr/lib"
16101   need_lib_prefix=no
16102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16103   case $host_os in
16104     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16105     *)                         need_version=no  ;;
16106   esac
16107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16109   shlibpath_var=LD_LIBRARY_PATH
16110   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16111     case $host_os in
16112       openbsd2.[89] | openbsd2.[89].*)
16113         shlibpath_overrides_runpath=no
16114         ;;
16115       *)
16116         shlibpath_overrides_runpath=yes
16117         ;;
16118       esac
16119   else
16120     shlibpath_overrides_runpath=yes
16121   fi
16122   ;;
16123
16124 os2*)
16125   libname_spec='$name'
16126   shrext_cmds=".dll"
16127   need_lib_prefix=no
16128   library_names_spec='$libname${shared_ext} $libname.a'
16129   dynamic_linker='OS/2 ld.exe'
16130   shlibpath_var=LIBPATH
16131   ;;
16132
16133 osf3* | osf4* | osf5*)
16134   version_type=osf
16135   need_lib_prefix=no
16136   need_version=no
16137   soname_spec='${libname}${release}${shared_ext}$major'
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139   shlibpath_var=LD_LIBRARY_PATH
16140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16142   ;;
16143
16144 solaris*)
16145   version_type=linux
16146   need_lib_prefix=no
16147   need_version=no
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   shlibpath_overrides_runpath=yes
16152   hardcode_into_libs=yes
16153   # ldd complains unless libraries are executable
16154   postinstall_cmds='chmod +x $lib'
16155   ;;
16156
16157 sunos4*)
16158   version_type=sunos
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   shlibpath_overrides_runpath=yes
16163   if test "$with_gnu_ld" = yes; then
16164     need_lib_prefix=no
16165   fi
16166   need_version=yes
16167   ;;
16168
16169 sysv4 | sysv4.3*)
16170   version_type=linux
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   case $host_vendor in
16175     sni)
16176       shlibpath_overrides_runpath=no
16177       need_lib_prefix=no
16178       export_dynamic_flag_spec='${wl}-Blargedynsym'
16179       runpath_var=LD_RUN_PATH
16180       ;;
16181     siemens)
16182       need_lib_prefix=no
16183       ;;
16184     motorola)
16185       need_lib_prefix=no
16186       need_version=no
16187       shlibpath_overrides_runpath=no
16188       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16189       ;;
16190   esac
16191   ;;
16192
16193 sysv4*MP*)
16194   if test -d /usr/nec ;then
16195     version_type=linux
16196     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16197     soname_spec='$libname${shared_ext}.$major'
16198     shlibpath_var=LD_LIBRARY_PATH
16199   fi
16200   ;;
16201
16202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16203   version_type=freebsd-elf
16204   need_lib_prefix=no
16205   need_version=no
16206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16207   soname_spec='${libname}${release}${shared_ext}$major'
16208   shlibpath_var=LD_LIBRARY_PATH
16209   hardcode_into_libs=yes
16210   if test "$with_gnu_ld" = yes; then
16211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16212     shlibpath_overrides_runpath=no
16213   else
16214     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16215     shlibpath_overrides_runpath=yes
16216     case $host_os in
16217       sco3.2v5*)
16218         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16219         ;;
16220     esac
16221   fi
16222   sys_lib_dlsearch_path_spec='/usr/lib'
16223   ;;
16224
16225 uts4*)
16226   version_type=linux
16227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228   soname_spec='${libname}${release}${shared_ext}$major'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   ;;
16231
16232 *)
16233   dynamic_linker=no
16234   ;;
16235 esac
16236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16237 echo "${ECHO_T}$dynamic_linker" >&6; }
16238 test "$dynamic_linker" = no && can_build_shared=no
16239
16240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16241 if test "$GCC" = yes; then
16242   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16243 fi
16244
16245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16247 hardcode_action_F77=
16248 if test -n "$hardcode_libdir_flag_spec_F77" || \
16249    test -n "$runpath_var_F77" || \
16250    test "X$hardcode_automatic_F77" = "Xyes" ; then
16251
16252   # We can hardcode non-existant directories.
16253   if test "$hardcode_direct_F77" != no &&
16254      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16255      # have to relink, otherwise we might link with an installed library
16256      # when we should be linking with a yet-to-be-installed one
16257      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16258      test "$hardcode_minus_L_F77" != no; then
16259     # Linking always hardcodes the temporary library directory.
16260     hardcode_action_F77=relink
16261   else
16262     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16263     hardcode_action_F77=immediate
16264   fi
16265 else
16266   # We cannot hardcode anything, or else we can only hardcode existing
16267   # directories.
16268   hardcode_action_F77=unsupported
16269 fi
16270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16272
16273 if test "$hardcode_action_F77" = relink; then
16274   # Fast installation is not supported
16275   enable_fast_install=no
16276 elif test "$shlibpath_overrides_runpath" = yes ||
16277      test "$enable_shared" = no; then
16278   # Fast installation is not necessary
16279   enable_fast_install=needless
16280 fi
16281
16282
16283 # The else clause should only fire when bootstrapping the
16284 # libtool distribution, otherwise you forgot to ship ltmain.sh
16285 # with your package, and you will get complaints that there are
16286 # no rules to generate ltmain.sh.
16287 if test -f "$ltmain"; then
16288   # See if we are running on zsh, and set the options which allow our commands through
16289   # without removal of \ escapes.
16290   if test -n "${ZSH_VERSION+set}" ; then
16291     setopt NO_GLOB_SUBST
16292   fi
16293   # Now quote all the things that may contain metacharacters while being
16294   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16295   # variables and quote the copies for generation of the libtool script.
16296   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16297     SED SHELL STRIP \
16298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16300     deplibs_check_method reload_flag reload_cmds need_locks \
16301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16302     lt_cv_sys_global_symbol_to_c_name_address \
16303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16304     old_postinstall_cmds old_postuninstall_cmds \
16305     compiler_F77 \
16306     CC_F77 \
16307     LD_F77 \
16308     lt_prog_compiler_wl_F77 \
16309     lt_prog_compiler_pic_F77 \
16310     lt_prog_compiler_static_F77 \
16311     lt_prog_compiler_no_builtin_flag_F77 \
16312     export_dynamic_flag_spec_F77 \
16313     thread_safe_flag_spec_F77 \
16314     whole_archive_flag_spec_F77 \
16315     enable_shared_with_static_runtimes_F77 \
16316     old_archive_cmds_F77 \
16317     old_archive_from_new_cmds_F77 \
16318     predep_objects_F77 \
16319     postdep_objects_F77 \
16320     predeps_F77 \
16321     postdeps_F77 \
16322     compiler_lib_search_path_F77 \
16323     archive_cmds_F77 \
16324     archive_expsym_cmds_F77 \
16325     postinstall_cmds_F77 \
16326     postuninstall_cmds_F77 \
16327     old_archive_from_expsyms_cmds_F77 \
16328     allow_undefined_flag_F77 \
16329     no_undefined_flag_F77 \
16330     export_symbols_cmds_F77 \
16331     hardcode_libdir_flag_spec_F77 \
16332     hardcode_libdir_flag_spec_ld_F77 \
16333     hardcode_libdir_separator_F77 \
16334     hardcode_automatic_F77 \
16335     module_cmds_F77 \
16336     module_expsym_cmds_F77 \
16337     lt_cv_prog_compiler_c_o_F77 \
16338     exclude_expsyms_F77 \
16339     include_expsyms_F77; do
16340
16341     case $var in
16342     old_archive_cmds_F77 | \
16343     old_archive_from_new_cmds_F77 | \
16344     archive_cmds_F77 | \
16345     archive_expsym_cmds_F77 | \
16346     module_cmds_F77 | \
16347     module_expsym_cmds_F77 | \
16348     old_archive_from_expsyms_cmds_F77 | \
16349     export_symbols_cmds_F77 | \
16350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16351     postinstall_cmds | postuninstall_cmds | \
16352     old_postinstall_cmds | old_postuninstall_cmds | \
16353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16354       # Double-quote double-evaled strings.
16355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16356       ;;
16357     *)
16358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16359       ;;
16360     esac
16361   done
16362
16363   case $lt_echo in
16364   *'\$0 --fallback-echo"')
16365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16366     ;;
16367   esac
16368
16369 cfgfile="$ofile"
16370
16371   cat <<__EOF__ >> "$cfgfile"
16372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16373
16374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16375
16376 # Shell to use when invoking shell scripts.
16377 SHELL=$lt_SHELL
16378
16379 # Whether or not to build shared libraries.
16380 build_libtool_libs=$enable_shared
16381
16382 # Whether or not to build static libraries.
16383 build_old_libs=$enable_static
16384
16385 # Whether or not to add -lc for building shared libraries.
16386 build_libtool_need_lc=$archive_cmds_need_lc_F77
16387
16388 # Whether or not to disallow shared libs when runtime libs are static
16389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16390
16391 # Whether or not to optimize for fast installation.
16392 fast_install=$enable_fast_install
16393
16394 # The host system.
16395 host_alias=$host_alias
16396 host=$host
16397 host_os=$host_os
16398
16399 # The build system.
16400 build_alias=$build_alias
16401 build=$build
16402 build_os=$build_os
16403
16404 # An echo program that does not interpret backslashes.
16405 echo=$lt_echo
16406
16407 # The archiver.
16408 AR=$lt_AR
16409 AR_FLAGS=$lt_AR_FLAGS
16410
16411 # A C compiler.
16412 LTCC=$lt_LTCC
16413
16414 # LTCC compiler flags.
16415 LTCFLAGS=$lt_LTCFLAGS
16416
16417 # A language-specific compiler.
16418 CC=$lt_compiler_F77
16419
16420 # Is the compiler the GNU C compiler?
16421 with_gcc=$GCC_F77
16422
16423 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16424 gcc_ver=\`gcc -dumpversion\`
16425
16426 # An ERE matcher.
16427 EGREP=$lt_EGREP
16428
16429 # The linker used to build libraries.
16430 LD=$lt_LD_F77
16431
16432 # Whether we need hard or soft links.
16433 LN_S=$lt_LN_S
16434
16435 # A BSD-compatible nm program.
16436 NM=$lt_NM
16437
16438 # A symbol stripping program
16439 STRIP=$lt_STRIP
16440
16441 # Used to examine libraries when file_magic_cmd begins "file"
16442 MAGIC_CMD=$MAGIC_CMD
16443
16444 # Used on cygwin: DLL creation program.
16445 DLLTOOL="$DLLTOOL"
16446
16447 # Used on cygwin: object dumper.
16448 OBJDUMP="$OBJDUMP"
16449
16450 # Used on cygwin: assembler.
16451 AS="$AS"
16452
16453 # The name of the directory that contains temporary libtool files.
16454 objdir=$objdir
16455
16456 # How to create reloadable object files.
16457 reload_flag=$lt_reload_flag
16458 reload_cmds=$lt_reload_cmds
16459
16460 # How to pass a linker flag through the compiler.
16461 wl=$lt_lt_prog_compiler_wl_F77
16462
16463 # Object file suffix (normally "o").
16464 objext="$ac_objext"
16465
16466 # Old archive suffix (normally "a").
16467 libext="$libext"
16468
16469 # Shared library suffix (normally ".so").
16470 shrext_cmds='$shrext_cmds'
16471
16472 # Executable file suffix (normally "").
16473 exeext="$exeext"
16474
16475 # Additional compiler flags for building library objects.
16476 pic_flag=$lt_lt_prog_compiler_pic_F77
16477 pic_mode=$pic_mode
16478
16479 # What is the maximum length of a command?
16480 max_cmd_len=$lt_cv_sys_max_cmd_len
16481
16482 # Does compiler simultaneously support -c and -o options?
16483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16484
16485 # Must we lock files when doing compilation?
16486 need_locks=$lt_need_locks
16487
16488 # Do we need the lib prefix for modules?
16489 need_lib_prefix=$need_lib_prefix
16490
16491 # Do we need a version for libraries?
16492 need_version=$need_version
16493
16494 # Whether dlopen is supported.
16495 dlopen_support=$enable_dlopen
16496
16497 # Whether dlopen of programs is supported.
16498 dlopen_self=$enable_dlopen_self
16499
16500 # Whether dlopen of statically linked programs is supported.
16501 dlopen_self_static=$enable_dlopen_self_static
16502
16503 # Compiler flag to prevent dynamic linking.
16504 link_static_flag=$lt_lt_prog_compiler_static_F77
16505
16506 # Compiler flag to turn off builtin functions.
16507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16508
16509 # Compiler flag to allow reflexive dlopens.
16510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16511
16512 # Compiler flag to generate shared objects directly from archives.
16513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16514
16515 # Compiler flag to generate thread-safe objects.
16516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16517
16518 # Library versioning type.
16519 version_type=$version_type
16520
16521 # Format of library name prefix.
16522 libname_spec=$lt_libname_spec
16523
16524 # List of archive names.  First name is the real one, the rest are links.
16525 # The last name is the one that the linker finds with -lNAME.
16526 library_names_spec=$lt_library_names_spec
16527
16528 # The coded name of the library, if different from the real name.
16529 soname_spec=$lt_soname_spec
16530
16531 # Commands used to build and install an old-style archive.
16532 RANLIB=$lt_RANLIB
16533 old_archive_cmds=$lt_old_archive_cmds_F77
16534 old_postinstall_cmds=$lt_old_postinstall_cmds
16535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16536
16537 # Create an old-style archive from a shared archive.
16538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16539
16540 # Create a temporary old-style archive to link instead of a shared archive.
16541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16542
16543 # Commands used to build and install a shared archive.
16544 archive_cmds=$lt_archive_cmds_F77
16545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16546 postinstall_cmds=$lt_postinstall_cmds
16547 postuninstall_cmds=$lt_postuninstall_cmds
16548
16549 # Commands used to build a loadable module (assumed same as above if empty)
16550 module_cmds=$lt_module_cmds_F77
16551 module_expsym_cmds=$lt_module_expsym_cmds_F77
16552
16553 # Commands to strip libraries.
16554 old_striplib=$lt_old_striplib
16555 striplib=$lt_striplib
16556
16557 # Dependencies to place before the objects being linked to create a
16558 # shared library.
16559 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16560
16561 # Dependencies to place after the objects being linked to create a
16562 # shared library.
16563 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16564
16565 # Dependencies to place before the objects being linked to create a
16566 # shared library.
16567 predeps=$lt_predeps_F77
16568
16569 # Dependencies to place after the objects being linked to create a
16570 # shared library.
16571 postdeps=$lt_postdeps_F77
16572
16573 # The library search path used internally by the compiler when linking
16574 # a shared library.
16575 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16576
16577 # Method to check whether dependent libraries are shared objects.
16578 deplibs_check_method=$lt_deplibs_check_method
16579
16580 # Command to use when deplibs_check_method == file_magic.
16581 file_magic_cmd=$lt_file_magic_cmd
16582
16583 # Flag that allows shared libraries with undefined symbols to be built.
16584 allow_undefined_flag=$lt_allow_undefined_flag_F77
16585
16586 # Flag that forces no undefined symbols.
16587 no_undefined_flag=$lt_no_undefined_flag_F77
16588
16589 # Commands used to finish a libtool library installation in a directory.
16590 finish_cmds=$lt_finish_cmds
16591
16592 # Same as above, but a single script fragment to be evaled but not shown.
16593 finish_eval=$lt_finish_eval
16594
16595 # Take the output of nm and produce a listing of raw symbols and C names.
16596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16597
16598 # Transform the output of nm in a proper C declaration
16599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16600
16601 # Transform the output of nm in a C name address pair
16602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16603
16604 # This is the shared library runtime path variable.
16605 runpath_var=$runpath_var
16606
16607 # This is the shared library path variable.
16608 shlibpath_var=$shlibpath_var
16609
16610 # Is shlibpath searched before the hard-coded library search path?
16611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16612
16613 # How to hardcode a shared library path into an executable.
16614 hardcode_action=$hardcode_action_F77
16615
16616 # Whether we should hardcode library paths into libraries.
16617 hardcode_into_libs=$hardcode_into_libs
16618
16619 # Flag to hardcode \$libdir into a binary during linking.
16620 # This must work even if \$libdir does not exist.
16621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16622
16623 # If ld is used when linking, flag to hardcode \$libdir into
16624 # a binary during linking. This must work even if \$libdir does
16625 # not exist.
16626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16627
16628 # Whether we need a single -rpath flag with a separated argument.
16629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16630
16631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16632 # resulting binary.
16633 hardcode_direct=$hardcode_direct_F77
16634
16635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16636 # resulting binary.
16637 hardcode_minus_L=$hardcode_minus_L_F77
16638
16639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16640 # the resulting binary.
16641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16642
16643 # Set to yes if building a shared library automatically hardcodes DIR into the library
16644 # and all subsequent libraries and executables linked against it.
16645 hardcode_automatic=$hardcode_automatic_F77
16646
16647 # Variables whose values should be saved in libtool wrapper scripts and
16648 # restored at relink time.
16649 variables_saved_for_relink="$variables_saved_for_relink"
16650
16651 # Whether libtool must link a program against all its dependency libraries.
16652 link_all_deplibs=$link_all_deplibs_F77
16653
16654 # Compile-time system search path for libraries
16655 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16656
16657 # Run-time system search path for libraries
16658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16659
16660 # Fix the shell variable \$srcfile for the compiler.
16661 fix_srcfile_path="$fix_srcfile_path_F77"
16662
16663 # Set to yes if exported symbols are required.
16664 always_export_symbols=$always_export_symbols_F77
16665
16666 # The commands to list exported symbols.
16667 export_symbols_cmds=$lt_export_symbols_cmds_F77
16668
16669 # The commands to extract the exported symbol list from a shared archive.
16670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16671
16672 # Symbols that should not be listed in the preloaded symbols.
16673 exclude_expsyms=$lt_exclude_expsyms_F77
16674
16675 # Symbols that must always be exported.
16676 include_expsyms=$lt_include_expsyms_F77
16677
16678 # ### END LIBTOOL TAG CONFIG: $tagname
16679
16680 __EOF__
16681
16682
16683 else
16684   # If there is no Makefile yet, we rely on a make rule to execute
16685   # `config.status --recheck' to rerun these tests and create the
16686   # libtool script then.
16687   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16688   if test -f "$ltmain_in"; then
16689     test -f Makefile && make "$ltmain"
16690   fi
16691 fi
16692
16693
16694 ac_ext=c
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699
16700 CC="$lt_save_CC"
16701
16702         else
16703           tagname=""
16704         fi
16705         ;;
16706
16707       GCJ)
16708         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16709
16710
16711 # Source file extension for Java test sources.
16712 ac_ext=java
16713
16714 # Object file extension for compiled Java test sources.
16715 objext=o
16716 objext_GCJ=$objext
16717
16718 # Code to be used in simple compile tests
16719 lt_simple_compile_test_code="class foo {}\n"
16720
16721 # Code to be used in simple link tests
16722 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16723
16724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16725
16726 # If no C compiler was specified, use CC.
16727 LTCC=${LTCC-"$CC"}
16728
16729 # If no C compiler flags were specified, use CFLAGS.
16730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16731
16732 # Allow CC to be a program name with arguments.
16733 compiler=$CC
16734
16735
16736 # save warnings/boilerplate of simple test code
16737 ac_outfile=conftest.$ac_objext
16738 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16740 _lt_compiler_boilerplate=`cat conftest.err`
16741 $rm conftest*
16742
16743 ac_outfile=conftest.$ac_objext
16744 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16746 _lt_linker_boilerplate=`cat conftest.err`
16747 $rm conftest*
16748
16749
16750 # Allow CC to be a program name with arguments.
16751 lt_save_CC="$CC"
16752 CC=${GCJ-"gcj"}
16753 compiler=$CC
16754 compiler_GCJ=$CC
16755 for cc_temp in $compiler""; do
16756   case $cc_temp in
16757     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16758     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16759     \-*) ;;
16760     *) break;;
16761   esac
16762 done
16763 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16764
16765 LD_GCJ="$LD"
16766
16767 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16768 archive_cmds_need_lc_GCJ=no
16769
16770 old_archive_cmds_GCJ=$old_archive_cmds
16771
16772
16773 lt_prog_compiler_no_builtin_flag_GCJ=
16774
16775 if test "$GCC" = yes; then
16776   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16777
16778
16779 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16780 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16782   echo $ECHO_N "(cached) $ECHO_C" >&6
16783 else
16784   lt_cv_prog_compiler_rtti_exceptions=no
16785   ac_outfile=conftest.$ac_objext
16786    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16787    lt_compiler_flag="-fno-rtti -fno-exceptions"
16788    # Insert the option either (1) after the last *FLAGS variable, or
16789    # (2) before a word containing "conftest.", or (3) at the end.
16790    # Note that $ac_compile itself does not contain backslashes and begins
16791    # with a dollar sign (not a hyphen), so the echo should work correctly.
16792    # The option is referenced via a variable to avoid confusing sed.
16793    lt_compile=`echo "$ac_compile" | $SED \
16794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796    -e 's:$: $lt_compiler_flag:'`
16797    (eval echo "\"\$as_me:16797: $lt_compile\"" >&5)
16798    (eval "$lt_compile" 2>conftest.err)
16799    ac_status=$?
16800    cat conftest.err >&5
16801    echo "$as_me:16801: \$? = $ac_status" >&5
16802    if (exit $ac_status) && test -s "$ac_outfile"; then
16803      # The compiler can only warn and ignore the option if not recognized
16804      # So say no if there are warnings other than the usual output.
16805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16806      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16807      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16808        lt_cv_prog_compiler_rtti_exceptions=yes
16809      fi
16810    fi
16811    $rm conftest*
16812
16813 fi
16814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16815 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16816
16817 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16818     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16819 else
16820     :
16821 fi
16822
16823 fi
16824
16825 lt_prog_compiler_wl_GCJ=
16826 lt_prog_compiler_pic_GCJ=
16827 lt_prog_compiler_static_GCJ=
16828
16829 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16830 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16831
16832   if test "$GCC" = yes; then
16833     lt_prog_compiler_wl_GCJ='-Wl,'
16834     lt_prog_compiler_static_GCJ='-static'
16835
16836     case $host_os in
16837       aix*)
16838       # All AIX code is PIC.
16839       if test "$host_cpu" = ia64; then
16840         # AIX 5 now supports IA64 processor
16841         lt_prog_compiler_static_GCJ='-Bstatic'
16842       fi
16843       ;;
16844
16845     amigaos*)
16846       # FIXME: we need at least 68020 code to build shared libraries, but
16847       # adding the `-m68020' flag to GCC prevents building anything better,
16848       # like `-m68040'.
16849       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16850       ;;
16851
16852     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16853       # PIC is the default for these OSes.
16854       ;;
16855
16856     mingw* | pw32* | os2*)
16857       # This hack is so that the source file can tell whether it is being
16858       # built for inclusion in a dll (and should export symbols for example).
16859       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16860       ;;
16861
16862     darwin* | rhapsody*)
16863       # PIC is the default on this platform
16864       # Common symbols not allowed in MH_DYLIB files
16865       lt_prog_compiler_pic_GCJ='-fno-common'
16866       ;;
16867
16868     interix3*)
16869       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16870       # Instead, we relocate shared libraries at runtime.
16871       ;;
16872
16873     msdosdjgpp*)
16874       # Just because we use GCC doesn't mean we suddenly get shared libraries
16875       # on systems that don't support them.
16876       lt_prog_compiler_can_build_shared_GCJ=no
16877       enable_shared=no
16878       ;;
16879
16880     sysv4*MP*)
16881       if test -d /usr/nec; then
16882         lt_prog_compiler_pic_GCJ=-Kconform_pic
16883       fi
16884       ;;
16885
16886     hpux*)
16887       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16888       # not for PA HP-UX.
16889       case $host_cpu in
16890       hppa*64*|ia64*)
16891         # +Z the default
16892         ;;
16893       *)
16894         lt_prog_compiler_pic_GCJ='-fPIC'
16895         ;;
16896       esac
16897       ;;
16898
16899     *)
16900       lt_prog_compiler_pic_GCJ='-fPIC'
16901       ;;
16902     esac
16903   else
16904     # PORTME Check for flag to pass linker flags through the system compiler.
16905     case $host_os in
16906     aix*)
16907       lt_prog_compiler_wl_GCJ='-Wl,'
16908       if test "$host_cpu" = ia64; then
16909         # AIX 5 now supports IA64 processor
16910         lt_prog_compiler_static_GCJ='-Bstatic'
16911       else
16912         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16913       fi
16914       ;;
16915       darwin*)
16916         # PIC is the default on this platform
16917         # Common symbols not allowed in MH_DYLIB files
16918        case $cc_basename in
16919          xlc*)
16920          lt_prog_compiler_pic_GCJ='-qnocommon'
16921          lt_prog_compiler_wl_GCJ='-Wl,'
16922          ;;
16923        esac
16924        ;;
16925
16926     mingw* | pw32* | os2*)
16927       # This hack is so that the source file can tell whether it is being
16928       # built for inclusion in a dll (and should export symbols for example).
16929       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16930       ;;
16931
16932     hpux9* | hpux10* | hpux11*)
16933       lt_prog_compiler_wl_GCJ='-Wl,'
16934       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16935       # not for PA HP-UX.
16936       case $host_cpu in
16937       hppa*64*|ia64*)
16938         # +Z the default
16939         ;;
16940       *)
16941         lt_prog_compiler_pic_GCJ='+Z'
16942         ;;
16943       esac
16944       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16945       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16946       ;;
16947
16948     irix5* | irix6* | nonstopux*)
16949       lt_prog_compiler_wl_GCJ='-Wl,'
16950       # PIC (with -KPIC) is the default.
16951       lt_prog_compiler_static_GCJ='-non_shared'
16952       ;;
16953
16954     newsos6)
16955       lt_prog_compiler_pic_GCJ='-KPIC'
16956       lt_prog_compiler_static_GCJ='-Bstatic'
16957       ;;
16958
16959     linux*)
16960       case $cc_basename in
16961       icc* | ecc*)
16962         lt_prog_compiler_wl_GCJ='-Wl,'
16963         lt_prog_compiler_pic_GCJ='-KPIC'
16964         lt_prog_compiler_static_GCJ='-static'
16965         ;;
16966       pgcc* | pgf77* | pgf90* | pgf95*)
16967         # Portland Group compilers (*not* the Pentium gcc compiler,
16968         # which looks to be a dead project)
16969         lt_prog_compiler_wl_GCJ='-Wl,'
16970         lt_prog_compiler_pic_GCJ='-fpic'
16971         lt_prog_compiler_static_GCJ='-Bstatic'
16972         ;;
16973       ccc*)
16974         lt_prog_compiler_wl_GCJ='-Wl,'
16975         # All Alpha code is PIC.
16976         lt_prog_compiler_static_GCJ='-non_shared'
16977         ;;
16978       esac
16979       ;;
16980
16981     osf3* | osf4* | osf5*)
16982       lt_prog_compiler_wl_GCJ='-Wl,'
16983       # All OSF/1 code is PIC.
16984       lt_prog_compiler_static_GCJ='-non_shared'
16985       ;;
16986
16987     solaris*)
16988       lt_prog_compiler_pic_GCJ='-KPIC'
16989       lt_prog_compiler_static_GCJ='-Bstatic'
16990       case $cc_basename in
16991       f77* | f90* | f95*)
16992         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16993       *)
16994         lt_prog_compiler_wl_GCJ='-Wl,';;
16995       esac
16996       ;;
16997
16998     sunos4*)
16999       lt_prog_compiler_wl_GCJ='-Qoption ld '
17000       lt_prog_compiler_pic_GCJ='-PIC'
17001       lt_prog_compiler_static_GCJ='-Bstatic'
17002       ;;
17003
17004     sysv4 | sysv4.2uw2* | sysv4.3*)
17005       lt_prog_compiler_wl_GCJ='-Wl,'
17006       lt_prog_compiler_pic_GCJ='-KPIC'
17007       lt_prog_compiler_static_GCJ='-Bstatic'
17008       ;;
17009
17010     sysv4*MP*)
17011       if test -d /usr/nec ;then
17012         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17013         lt_prog_compiler_static_GCJ='-Bstatic'
17014       fi
17015       ;;
17016
17017     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17018       lt_prog_compiler_wl_GCJ='-Wl,'
17019       lt_prog_compiler_pic_GCJ='-KPIC'
17020       lt_prog_compiler_static_GCJ='-Bstatic'
17021       ;;
17022
17023     unicos*)
17024       lt_prog_compiler_wl_GCJ='-Wl,'
17025       lt_prog_compiler_can_build_shared_GCJ=no
17026       ;;
17027
17028     uts4*)
17029       lt_prog_compiler_pic_GCJ='-pic'
17030       lt_prog_compiler_static_GCJ='-Bstatic'
17031       ;;
17032
17033     *)
17034       lt_prog_compiler_can_build_shared_GCJ=no
17035       ;;
17036     esac
17037   fi
17038
17039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17040 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17041
17042 #
17043 # Check to make sure the PIC flag actually works.
17044 #
17045 if test -n "$lt_prog_compiler_pic_GCJ"; then
17046
17047 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17048 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17049 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   lt_prog_compiler_pic_works_GCJ=no
17053   ac_outfile=conftest.$ac_objext
17054    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17055    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17056    # Insert the option either (1) after the last *FLAGS variable, or
17057    # (2) before a word containing "conftest.", or (3) at the end.
17058    # Note that $ac_compile itself does not contain backslashes and begins
17059    # with a dollar sign (not a hyphen), so the echo should work correctly.
17060    # The option is referenced via a variable to avoid confusing sed.
17061    lt_compile=`echo "$ac_compile" | $SED \
17062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17064    -e 's:$: $lt_compiler_flag:'`
17065    (eval echo "\"\$as_me:17065: $lt_compile\"" >&5)
17066    (eval "$lt_compile" 2>conftest.err)
17067    ac_status=$?
17068    cat conftest.err >&5
17069    echo "$as_me:17069: \$? = $ac_status" >&5
17070    if (exit $ac_status) && test -s "$ac_outfile"; then
17071      # The compiler can only warn and ignore the option if not recognized
17072      # So say no if there are warnings other than the usual output.
17073      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17074      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17075      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17076        lt_prog_compiler_pic_works_GCJ=yes
17077      fi
17078    fi
17079    $rm conftest*
17080
17081 fi
17082 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17083 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17084
17085 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17086     case $lt_prog_compiler_pic_GCJ in
17087      "" | " "*) ;;
17088      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17089      esac
17090 else
17091     lt_prog_compiler_pic_GCJ=
17092      lt_prog_compiler_can_build_shared_GCJ=no
17093 fi
17094
17095 fi
17096 case $host_os in
17097   # For platforms which do not support PIC, -DPIC is meaningless:
17098   *djgpp*)
17099     lt_prog_compiler_pic_GCJ=
17100     ;;
17101   *)
17102     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17103     ;;
17104 esac
17105
17106 #
17107 # Check to make sure the static flag actually works.
17108 #
17109 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17110 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17111 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17112 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17113   echo $ECHO_N "(cached) $ECHO_C" >&6
17114 else
17115   lt_prog_compiler_static_works_GCJ=no
17116    save_LDFLAGS="$LDFLAGS"
17117    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17118    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17119    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17120      # The linker can only warn and ignore the option if not recognized
17121      # So say no if there are warnings
17122      if test -s conftest.err; then
17123        # Append any errors to the config.log.
17124        cat conftest.err 1>&5
17125        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17126        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17127        if diff conftest.exp conftest.er2 >/dev/null; then
17128          lt_prog_compiler_static_works_GCJ=yes
17129        fi
17130      else
17131        lt_prog_compiler_static_works_GCJ=yes
17132      fi
17133    fi
17134    $rm conftest*
17135    LDFLAGS="$save_LDFLAGS"
17136
17137 fi
17138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17139 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17140
17141 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17142     :
17143 else
17144     lt_prog_compiler_static_GCJ=
17145 fi
17146
17147
17148 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17150 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17151   echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153   lt_cv_prog_compiler_c_o_GCJ=no
17154    $rm -r conftest 2>/dev/null
17155    mkdir conftest
17156    cd conftest
17157    mkdir out
17158    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17159
17160    lt_compiler_flag="-o out/conftest2.$ac_objext"
17161    # Insert the option either (1) after the last *FLAGS variable, or
17162    # (2) before a word containing "conftest.", or (3) at the end.
17163    # Note that $ac_compile itself does not contain backslashes and begins
17164    # with a dollar sign (not a hyphen), so the echo should work correctly.
17165    lt_compile=`echo "$ac_compile" | $SED \
17166    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168    -e 's:$: $lt_compiler_flag:'`
17169    (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170    (eval "$lt_compile" 2>out/conftest.err)
17171    ac_status=$?
17172    cat out/conftest.err >&5
17173    echo "$as_me:17173: \$? = $ac_status" >&5
17174    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17175    then
17176      # The compiler can only warn and ignore the option if not recognized
17177      # So say no if there are warnings
17178      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17179      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17180      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17181        lt_cv_prog_compiler_c_o_GCJ=yes
17182      fi
17183    fi
17184    chmod u+w . 2>&5
17185    $rm conftest*
17186    # SGI C++ compiler will create directory out/ii_files/ for
17187    # template instantiation
17188    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17189    $rm out/* && rmdir out
17190    cd ..
17191    rmdir conftest
17192    $rm conftest*
17193
17194 fi
17195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17197
17198
17199 hard_links="nottested"
17200 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17201   # do not overwrite the value of need_locks provided by the user
17202   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17203 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17204   hard_links=yes
17205   $rm conftest*
17206   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17207   touch conftest.a
17208   ln conftest.a conftest.b 2>&5 || hard_links=no
17209   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17210   { echo "$as_me:$LINENO: result: $hard_links" >&5
17211 echo "${ECHO_T}$hard_links" >&6; }
17212   if test "$hard_links" = no; then
17213     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17214 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17215     need_locks=warn
17216   fi
17217 else
17218   need_locks=no
17219 fi
17220
17221 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17223
17224   runpath_var=
17225   allow_undefined_flag_GCJ=
17226   enable_shared_with_static_runtimes_GCJ=no
17227   archive_cmds_GCJ=
17228   archive_expsym_cmds_GCJ=
17229   old_archive_From_new_cmds_GCJ=
17230   old_archive_from_expsyms_cmds_GCJ=
17231   export_dynamic_flag_spec_GCJ=
17232   whole_archive_flag_spec_GCJ=
17233   thread_safe_flag_spec_GCJ=
17234   hardcode_libdir_flag_spec_GCJ=
17235   hardcode_libdir_flag_spec_ld_GCJ=
17236   hardcode_libdir_separator_GCJ=
17237   hardcode_direct_GCJ=no
17238   hardcode_minus_L_GCJ=no
17239   hardcode_shlibpath_var_GCJ=unsupported
17240   link_all_deplibs_GCJ=unknown
17241   hardcode_automatic_GCJ=no
17242   module_cmds_GCJ=
17243   module_expsym_cmds_GCJ=
17244   always_export_symbols_GCJ=no
17245   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17246   # include_expsyms should be a list of space-separated symbols to be *always*
17247   # included in the symbol list
17248   include_expsyms_GCJ=
17249   # exclude_expsyms can be an extended regexp of symbols to exclude
17250   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17251   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17252   # as well as any symbol that contains `d'.
17253   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17254   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17255   # platforms (ab)use it in PIC code, but their linkers get confused if
17256   # the symbol is explicitly referenced.  Since portable code cannot
17257   # rely on this symbol name, it's probably fine to never include it in
17258   # preloaded symbol tables.
17259   extract_expsyms_cmds=
17260   # Just being paranoid about ensuring that cc_basename is set.
17261   for cc_temp in $compiler""; do
17262   case $cc_temp in
17263     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17264     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17265     \-*) ;;
17266     *) break;;
17267   esac
17268 done
17269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17270
17271   case $host_os in
17272   cygwin* | mingw* | pw32*)
17273     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17274     # When not using gcc, we currently assume that we are using
17275     # Microsoft Visual C++.
17276     if test "$GCC" != yes; then
17277       with_gnu_ld=no
17278     fi
17279     ;;
17280   interix*)
17281     # we just hope/assume this is gcc and not c89 (= MSVC++)
17282     with_gnu_ld=yes
17283     ;;
17284   openbsd*)
17285     with_gnu_ld=no
17286     ;;
17287   esac
17288
17289   ld_shlibs_GCJ=yes
17290   if test "$with_gnu_ld" = yes; then
17291     # If archive_cmds runs LD, not CC, wlarc should be empty
17292     wlarc='${wl}'
17293
17294     # Set some defaults for GNU ld with shared library support. These
17295     # are reset later if shared libraries are not supported. Putting them
17296     # here allows them to be overridden if necessary.
17297     runpath_var=LD_RUN_PATH
17298     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17299     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17300     # ancient GNU ld didn't support --whole-archive et. al.
17301     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17302         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17303       else
17304         whole_archive_flag_spec_GCJ=
17305     fi
17306     supports_anon_versioning=no
17307     case `$LD -v 2>/dev/null` in
17308       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17309       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17310       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17311       *\ 2.11.*) ;; # other 2.11 versions
17312       *) supports_anon_versioning=yes ;;
17313     esac
17314
17315     # See if GNU ld supports shared libraries.
17316     case $host_os in
17317     aix3* | aix4* | aix5*)
17318       # On AIX/PPC, the GNU linker is very broken
17319       if test "$host_cpu" != ia64; then
17320         ld_shlibs_GCJ=no
17321         cat <<EOF 1>&2
17322
17323 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17324 *** to be unable to reliably create shared libraries on AIX.
17325 *** Therefore, libtool is disabling shared libraries support.  If you
17326 *** really care for shared libraries, you may want to modify your PATH
17327 *** so that a non-GNU linker is found, and then restart.
17328
17329 EOF
17330       fi
17331       ;;
17332
17333     amigaos*)
17334       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)'
17335       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17336       hardcode_minus_L_GCJ=yes
17337
17338       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17339       # that the semantics of dynamic libraries on AmigaOS, at least up
17340       # to version 4, is to share data among multiple programs linked
17341       # with the same dynamic library.  Since this doesn't match the
17342       # behavior of shared libraries on other platforms, we can't use
17343       # them.
17344       ld_shlibs_GCJ=no
17345       ;;
17346
17347     beos*)
17348       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349         allow_undefined_flag_GCJ=unsupported
17350         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17351         # support --undefined.  This deserves some investigation.  FIXME
17352         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17353       else
17354         ld_shlibs_GCJ=no
17355       fi
17356       ;;
17357
17358     cygwin* | mingw* | pw32*)
17359       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17360       # as there is no search path for DLLs.
17361       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362       allow_undefined_flag_GCJ=unsupported
17363       always_export_symbols_GCJ=no
17364       enable_shared_with_static_runtimes_GCJ=yes
17365       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17366
17367       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17368         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17369         # If the export-symbols file already is a .def file (1st line
17370         # is EXPORTS), use it as is; otherwise, prepend...
17371         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17372           cp $export_symbols $output_objdir/$soname.def;
17373         else
17374           echo EXPORTS > $output_objdir/$soname.def;
17375           cat $export_symbols >> $output_objdir/$soname.def;
17376         fi~
17377         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17378       else
17379         ld_shlibs_GCJ=no
17380       fi
17381       ;;
17382
17383     interix3*)
17384       hardcode_direct_GCJ=no
17385       hardcode_shlibpath_var_GCJ=no
17386       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17387       export_dynamic_flag_spec_GCJ='${wl}-E'
17388       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17389       # Instead, shared libraries are loaded at an image base (0x10000000 by
17390       # default) and relocated if they conflict, which is a slow very memory
17391       # consuming and fragmenting process.  To avoid this, we pick a random,
17392       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17393       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17394       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'
17395       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'
17396       ;;
17397
17398     linux*)
17399       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17400         tmp_addflag=
17401         case $cc_basename,$host_cpu in
17402         pgcc*)                          # Portland Group C compiler
17403           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'
17404           tmp_addflag=' $pic_flag'
17405           ;;
17406         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17407           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'
17408           tmp_addflag=' $pic_flag -Mnomain' ;;
17409         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17410           tmp_addflag=' -i_dynamic' ;;
17411         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17412           tmp_addflag=' -i_dynamic -nofor_main' ;;
17413         ifc* | ifort*)                  # Intel Fortran compiler
17414           tmp_addflag=' -nofor_main' ;;
17415         esac
17416         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17417
17418         if test $supports_anon_versioning = yes; then
17419           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17420   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17421   $echo "local: *; };" >> $output_objdir/$libname.ver~
17422           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17423         fi
17424       else
17425         ld_shlibs_GCJ=no
17426       fi
17427       ;;
17428
17429     netbsd*)
17430       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17431         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17432         wlarc=
17433       else
17434         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17435         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17436       fi
17437       ;;
17438
17439     solaris*)
17440       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17441         ld_shlibs_GCJ=no
17442         cat <<EOF 1>&2
17443
17444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17445 *** create shared libraries on Solaris systems.  Therefore, libtool
17446 *** is disabling shared libraries support.  We urge you to upgrade GNU
17447 *** binutils to release 2.9.1 or newer.  Another option is to modify
17448 *** your PATH or compiler configuration so that the native linker is
17449 *** used, and then restart.
17450
17451 EOF
17452       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17454         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17455       else
17456         ld_shlibs_GCJ=no
17457       fi
17458       ;;
17459
17460     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17461       case `$LD -v 2>&1` in
17462         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17463         ld_shlibs_GCJ=no
17464         cat <<_LT_EOF 1>&2
17465
17466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17467 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17468 *** is disabling shared libraries support.  We urge you to upgrade GNU
17469 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17470 *** your PATH or compiler configuration so that the native linker is
17471 *** used, and then restart.
17472
17473 _LT_EOF
17474         ;;
17475         *)
17476           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17477             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17478             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17479             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17480           else
17481             ld_shlibs_GCJ=no
17482           fi
17483         ;;
17484       esac
17485       ;;
17486
17487     sunos4*)
17488       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17489       wlarc=
17490       hardcode_direct_GCJ=yes
17491       hardcode_shlibpath_var_GCJ=no
17492       ;;
17493
17494     *)
17495       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17496         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17497         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17498       else
17499         ld_shlibs_GCJ=no
17500       fi
17501       ;;
17502     esac
17503
17504     if test "$ld_shlibs_GCJ" = no; then
17505       runpath_var=
17506       hardcode_libdir_flag_spec_GCJ=
17507       export_dynamic_flag_spec_GCJ=
17508       whole_archive_flag_spec_GCJ=
17509     fi
17510   else
17511     # PORTME fill in a description of your system's linker (not GNU ld)
17512     case $host_os in
17513     aix3*)
17514       allow_undefined_flag_GCJ=unsupported
17515       always_export_symbols_GCJ=yes
17516       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'
17517       # Note: this linker hardcodes the directories in LIBPATH if there
17518       # are no directories specified by -L.
17519       hardcode_minus_L_GCJ=yes
17520       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17521         # Neither direct hardcoding nor static linking is supported with a
17522         # broken collect2.
17523         hardcode_direct_GCJ=unsupported
17524       fi
17525       ;;
17526
17527     aix4* | aix5*)
17528       if test "$host_cpu" = ia64; then
17529         # On IA64, the linker does run time linking by default, so we don't
17530         # have to do anything special.
17531         aix_use_runtimelinking=no
17532         exp_sym_flag='-Bexport'
17533         no_entry_flag=""
17534       else
17535         # If we're using GNU nm, then we don't want the "-C" option.
17536         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17537         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17538           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'
17539         else
17540           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'
17541         fi
17542         aix_use_runtimelinking=no
17543
17544         # Test if we are trying to use run time linking or normal
17545         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17546         # need to do runtime linking.
17547         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17548           for ld_flag in $LDFLAGS; do
17549           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17550             aix_use_runtimelinking=yes
17551             break
17552           fi
17553           done
17554           ;;
17555         esac
17556
17557         exp_sym_flag='-bexport'
17558         no_entry_flag='-bnoentry'
17559       fi
17560
17561       # When large executables or shared objects are built, AIX ld can
17562       # have problems creating the table of contents.  If linking a library
17563       # or program results in "error TOC overflow" add -mminimal-toc to
17564       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17565       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17566
17567       archive_cmds_GCJ=''
17568       hardcode_direct_GCJ=yes
17569       hardcode_libdir_separator_GCJ=':'
17570       link_all_deplibs_GCJ=yes
17571
17572       if test "$GCC" = yes; then
17573         case $host_os in aix4.[012]|aix4.[012].*)
17574         # We only want to do this on AIX 4.2 and lower, the check
17575         # below for broken collect2 doesn't work under 4.3+
17576           collect2name=`${CC} -print-prog-name=collect2`
17577           if test -f "$collect2name" && \
17578            strings "$collect2name" | grep resolve_lib_name >/dev/null
17579           then
17580           # We have reworked collect2
17581           hardcode_direct_GCJ=yes
17582           else
17583           # We have old collect2
17584           hardcode_direct_GCJ=unsupported
17585           # It fails to find uninstalled libraries when the uninstalled
17586           # path is not listed in the libpath.  Setting hardcode_minus_L
17587           # to unsupported forces relinking
17588           hardcode_minus_L_GCJ=yes
17589           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17590           hardcode_libdir_separator_GCJ=
17591           fi
17592           ;;
17593         esac
17594         shared_flag='-shared'
17595         if test "$aix_use_runtimelinking" = yes; then
17596           shared_flag="$shared_flag "'${wl}-G'
17597         fi
17598       else
17599         # not using gcc
17600         if test "$host_cpu" = ia64; then
17601         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17602         # chokes on -Wl,-G. The following line is correct:
17603           shared_flag='-G'
17604         else
17605           if test "$aix_use_runtimelinking" = yes; then
17606             shared_flag='${wl}-G'
17607           else
17608             shared_flag='${wl}-bM:SRE'
17609           fi
17610         fi
17611       fi
17612
17613       # It seems that -bexpall does not export symbols beginning with
17614       # underscore (_), so it is better to generate a list of symbols to export.
17615       always_export_symbols_GCJ=yes
17616       if test "$aix_use_runtimelinking" = yes; then
17617         # Warning - without using the other runtime loading flags (-brtl),
17618         # -berok will link without error, but may produce a broken library.
17619         allow_undefined_flag_GCJ='-berok'
17620        # Determine the default libpath from the value encoded in an empty executable.
17621        cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h.  */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h.  */
17627
17628 int
17629 main ()
17630 {
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_link") 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } && {
17650          test -z "$ac_c_werror_flag" ||
17651          test ! -s conftest.err
17652        } && test -s conftest$ac_exeext &&
17653        $as_test_x conftest$ac_exeext; then
17654
17655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17656 }'`
17657 # Check for a 64-bit object if we didn't find anything.
17658 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; }
17659 }'`; fi
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664
17665 fi
17666
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668       conftest$ac_exeext conftest.$ac_ext
17669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17670
17671        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672         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"
17673        else
17674         if test "$host_cpu" = ia64; then
17675           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17676           allow_undefined_flag_GCJ="-z nodefs"
17677           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"
17678         else
17679          # Determine the default libpath from the value encoded in an empty executable.
17680          cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h.  */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h.  */
17686
17687 int
17688 main ()
17689 {
17690
17691   ;
17692   return 0;
17693 }
17694 _ACEOF
17695 rm -f conftest.$ac_objext conftest$ac_exeext
17696 if { (ac_try="$ac_link"
17697 case "(($ac_try" in
17698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699   *) ac_try_echo=$ac_try;;
17700 esac
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702   (eval "$ac_link") 2>conftest.er1
17703   ac_status=$?
17704   grep -v '^ *+' conftest.er1 >conftest.err
17705   rm -f conftest.er1
17706   cat conftest.err >&5
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); } && {
17709          test -z "$ac_c_werror_flag" ||
17710          test ! -s conftest.err
17711        } && test -s conftest$ac_exeext &&
17712        $as_test_x conftest$ac_exeext; then
17713
17714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17715 }'`
17716 # Check for a 64-bit object if we didn't find anything.
17717 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; }
17718 }'`; fi
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723
17724 fi
17725
17726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17727       conftest$ac_exeext conftest.$ac_ext
17728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17729
17730          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17731           # Warning - without using the other run time loading flags,
17732           # -berok will link without error, but may produce a broken library.
17733           no_undefined_flag_GCJ=' ${wl}-bernotok'
17734           allow_undefined_flag_GCJ=' ${wl}-berok'
17735           # Exported symbols can be pulled into shared objects from archives
17736           whole_archive_flag_spec_GCJ='$convenience'
17737           archive_cmds_need_lc_GCJ=yes
17738           # This is similar to how AIX traditionally builds its shared libraries.
17739           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'
17740         fi
17741       fi
17742       ;;
17743
17744     amigaos*)
17745       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)'
17746       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747       hardcode_minus_L_GCJ=yes
17748       # see comment about different semantics on the GNU ld section
17749       ld_shlibs_GCJ=no
17750       ;;
17751
17752     bsdi[45]*)
17753       export_dynamic_flag_spec_GCJ=-rdynamic
17754       ;;
17755
17756     cygwin* | mingw* | pw32*)
17757       # When not using gcc, we currently assume that we are using
17758       # Microsoft Visual C++.
17759       # hardcode_libdir_flag_spec is actually meaningless, as there is
17760       # no search path for DLLs.
17761       hardcode_libdir_flag_spec_GCJ=' '
17762       allow_undefined_flag_GCJ=unsupported
17763       # Tell ltmain to make .lib files, not .a files.
17764       libext=lib
17765       # Tell ltmain to make .dll files, not .so files.
17766       shrext_cmds=".dll"
17767       # FIXME: Setting linknames here is a bad hack.
17768       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17769       # The linker will automatically build a .lib file if we build a DLL.
17770       old_archive_From_new_cmds_GCJ='true'
17771       # FIXME: Should let the user specify the lib program.
17772       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17773       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17774       enable_shared_with_static_runtimes_GCJ=yes
17775       ;;
17776
17777     darwin* | rhapsody*)
17778       case $host_os in
17779         rhapsody* | darwin1.[012])
17780          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17781          ;;
17782        *) # Darwin 1.3 on
17783          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17784            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17785          else
17786            case ${MACOSX_DEPLOYMENT_TARGET} in
17787              10.[012])
17788                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17789                ;;
17790              10.*)
17791                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17792                ;;
17793            esac
17794          fi
17795          ;;
17796       esac
17797       archive_cmds_need_lc_GCJ=no
17798       hardcode_direct_GCJ=no
17799       hardcode_automatic_GCJ=yes
17800       hardcode_shlibpath_var_GCJ=unsupported
17801       whole_archive_flag_spec_GCJ=''
17802       link_all_deplibs_GCJ=yes
17803     if test "$GCC" = yes ; then
17804         output_verbose_link_cmd='echo'
17805         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17806       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17807       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17808       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}'
17809       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}'
17810     else
17811       case $cc_basename in
17812         xlc*)
17813          output_verbose_link_cmd='echo'
17814          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17815          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17816           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17817          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}'
17818           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}'
17819           ;;
17820        *)
17821          ld_shlibs_GCJ=no
17822           ;;
17823       esac
17824     fi
17825       ;;
17826
17827     dgux*)
17828       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17829       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17830       hardcode_shlibpath_var_GCJ=no
17831       ;;
17832
17833     freebsd1*)
17834       ld_shlibs_GCJ=no
17835       ;;
17836
17837     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17838     # support.  Future versions do this automatically, but an explicit c++rt0.o
17839     # does not break anything, and helps significantly (at the cost of a little
17840     # extra space).
17841     freebsd2.2*)
17842       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17843       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17844       hardcode_direct_GCJ=yes
17845       hardcode_shlibpath_var_GCJ=no
17846       ;;
17847
17848     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17849     freebsd2*)
17850       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17851       hardcode_direct_GCJ=yes
17852       hardcode_minus_L_GCJ=yes
17853       hardcode_shlibpath_var_GCJ=no
17854       ;;
17855
17856     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17857     freebsd* | kfreebsd*-gnu | dragonfly*)
17858       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17859       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17860       hardcode_direct_GCJ=yes
17861       hardcode_shlibpath_var_GCJ=no
17862       ;;
17863
17864     hpux9*)
17865       if test "$GCC" = yes; then
17866         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'
17867       else
17868         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'
17869       fi
17870       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17871       hardcode_libdir_separator_GCJ=:
17872       hardcode_direct_GCJ=yes
17873
17874       # hardcode_minus_L: Not really in the search PATH,
17875       # but as the default location of the library.
17876       hardcode_minus_L_GCJ=yes
17877       export_dynamic_flag_spec_GCJ='${wl}-E'
17878       ;;
17879
17880     hpux10*)
17881       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17882         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17883       else
17884         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17885       fi
17886       if test "$with_gnu_ld" = no; then
17887         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17888         hardcode_libdir_separator_GCJ=:
17889
17890         hardcode_direct_GCJ=yes
17891         export_dynamic_flag_spec_GCJ='${wl}-E'
17892
17893         # hardcode_minus_L: Not really in the search PATH,
17894         # but as the default location of the library.
17895         hardcode_minus_L_GCJ=yes
17896       fi
17897       ;;
17898
17899     hpux11*)
17900       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17901         case $host_cpu in
17902         hppa*64*)
17903           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17904           ;;
17905         ia64*)
17906           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17907           ;;
17908         *)
17909           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17910           ;;
17911         esac
17912       else
17913         case $host_cpu in
17914         hppa*64*)
17915           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17916           ;;
17917         ia64*)
17918           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17919           ;;
17920         *)
17921           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17922           ;;
17923         esac
17924       fi
17925       if test "$with_gnu_ld" = no; then
17926         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17927         hardcode_libdir_separator_GCJ=:
17928
17929         case $host_cpu in
17930         hppa*64*|ia64*)
17931           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17932           hardcode_direct_GCJ=no
17933           hardcode_shlibpath_var_GCJ=no
17934           ;;
17935         *)
17936           hardcode_direct_GCJ=yes
17937           export_dynamic_flag_spec_GCJ='${wl}-E'
17938
17939           # hardcode_minus_L: Not really in the search PATH,
17940           # but as the default location of the library.
17941           hardcode_minus_L_GCJ=yes
17942           ;;
17943         esac
17944       fi
17945       ;;
17946
17947     irix5* | irix6* | nonstopux*)
17948       if test "$GCC" = yes; then
17949         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'
17950       else
17951         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'
17952         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17953       fi
17954       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17955       hardcode_libdir_separator_GCJ=:
17956       link_all_deplibs_GCJ=yes
17957       ;;
17958
17959     netbsd*)
17960       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17961         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17962       else
17963         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17964       fi
17965       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17966       hardcode_direct_GCJ=yes
17967       hardcode_shlibpath_var_GCJ=no
17968       ;;
17969
17970     newsos6)
17971       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972       hardcode_direct_GCJ=yes
17973       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17974       hardcode_libdir_separator_GCJ=:
17975       hardcode_shlibpath_var_GCJ=no
17976       ;;
17977
17978     openbsd*)
17979       hardcode_direct_GCJ=yes
17980       hardcode_shlibpath_var_GCJ=no
17981       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17982         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17983         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17984         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17985         export_dynamic_flag_spec_GCJ='${wl}-E'
17986       else
17987        case $host_os in
17988          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17989            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17990            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17991            ;;
17992          *)
17993            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17994            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17995            ;;
17996        esac
17997       fi
17998       ;;
17999
18000     os2*)
18001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002       hardcode_minus_L_GCJ=yes
18003       allow_undefined_flag_GCJ=unsupported
18004       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'
18005       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18006       ;;
18007
18008     osf3*)
18009       if test "$GCC" = yes; then
18010         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18011         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'
18012       else
18013         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18014         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'
18015       fi
18016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18017       hardcode_libdir_separator_GCJ=:
18018       ;;
18019
18020     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18021       if test "$GCC" = yes; then
18022         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18023         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'
18024         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18025       else
18026         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18027         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'
18028         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~
18029         $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'
18030
18031         # Both c and cxx compiler support -rpath directly
18032         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18033       fi
18034       hardcode_libdir_separator_GCJ=:
18035       ;;
18036
18037     solaris*)
18038       no_undefined_flag_GCJ=' -z text'
18039       if test "$GCC" = yes; then
18040         wlarc='${wl}'
18041         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18043           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18044       else
18045         wlarc=''
18046         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18048         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18049       fi
18050       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051       hardcode_shlibpath_var_GCJ=no
18052       case $host_os in
18053       solaris2.[0-5] | solaris2.[0-5].*) ;;
18054       *)
18055         # The compiler driver will combine linker options so we
18056         # cannot just pass the convience library names through
18057         # without $wl, iff we do not link with $LD.
18058         # Luckily, gcc supports the same syntax we need for Sun Studio.
18059         # Supported since Solaris 2.6 (maybe 2.5.1?)
18060         case $wlarc in
18061         '')
18062           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18063         *)
18064           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' ;;
18065         esac ;;
18066       esac
18067       link_all_deplibs_GCJ=yes
18068       ;;
18069
18070     sunos4*)
18071       if test "x$host_vendor" = xsequent; then
18072         # Use $CC to link under sequent, because it throws in some extra .o
18073         # files that make .init and .fini sections work.
18074         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18075       else
18076         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18077       fi
18078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079       hardcode_direct_GCJ=yes
18080       hardcode_minus_L_GCJ=yes
18081       hardcode_shlibpath_var_GCJ=no
18082       ;;
18083
18084     sysv4)
18085       case $host_vendor in
18086         sni)
18087           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088           hardcode_direct_GCJ=yes # is this really true???
18089         ;;
18090         siemens)
18091           ## LD is ld it makes a PLAMLIB
18092           ## CC just makes a GrossModule.
18093           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18094           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18095           hardcode_direct_GCJ=no
18096         ;;
18097         motorola)
18098           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18099           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18100         ;;
18101       esac
18102       runpath_var='LD_RUN_PATH'
18103       hardcode_shlibpath_var_GCJ=no
18104       ;;
18105
18106     sysv4.3*)
18107       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108       hardcode_shlibpath_var_GCJ=no
18109       export_dynamic_flag_spec_GCJ='-Bexport'
18110       ;;
18111
18112     sysv4*MP*)
18113       if test -d /usr/nec; then
18114         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115         hardcode_shlibpath_var_GCJ=no
18116         runpath_var=LD_RUN_PATH
18117         hardcode_runpath_var=yes
18118         ld_shlibs_GCJ=yes
18119       fi
18120       ;;
18121
18122     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18123       no_undefined_flag_GCJ='${wl}-z,text'
18124       archive_cmds_need_lc_GCJ=no
18125       hardcode_shlibpath_var_GCJ=no
18126       runpath_var='LD_RUN_PATH'
18127
18128       if test "$GCC" = yes; then
18129         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18130         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18131       else
18132         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18133         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18134       fi
18135       ;;
18136
18137     sysv5* | sco3.2v5* | sco5v6*)
18138       # Note: We can NOT use -z defs as we might desire, because we do not
18139       # link with -lc, and that would cause any symbols used from libc to
18140       # always be unresolved, which means just about no library would
18141       # ever link correctly.  If we're not using GNU ld we use -z text
18142       # though, which does catch some bad symbols but isn't as heavy-handed
18143       # as -z defs.
18144       no_undefined_flag_GCJ='${wl}-z,text'
18145       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18146       archive_cmds_need_lc_GCJ=no
18147       hardcode_shlibpath_var_GCJ=no
18148       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18149       hardcode_libdir_separator_GCJ=':'
18150       link_all_deplibs_GCJ=yes
18151       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18152       runpath_var='LD_RUN_PATH'
18153
18154       if test "$GCC" = yes; then
18155         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18156         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18157       else
18158         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18160       fi
18161       ;;
18162
18163     uts4*)
18164       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18166       hardcode_shlibpath_var_GCJ=no
18167       ;;
18168
18169     *)
18170       ld_shlibs_GCJ=no
18171       ;;
18172     esac
18173   fi
18174
18175 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18176 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18177 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18178
18179 #
18180 # Do we need to explicitly link libc?
18181 #
18182 case "x$archive_cmds_need_lc_GCJ" in
18183 x|xyes)
18184   # Assume -lc should be added
18185   archive_cmds_need_lc_GCJ=yes
18186
18187   if test "$enable_shared" = yes && test "$GCC" = yes; then
18188     case $archive_cmds_GCJ in
18189     *'~'*)
18190       # FIXME: we may have to deal with multi-command sequences.
18191       ;;
18192     '$CC '*)
18193       # Test whether the compiler implicitly links with -lc since on some
18194       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18195       # to ld, don't add -lc before -lgcc.
18196       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18198       $rm conftest*
18199       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18200
18201       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202   (eval $ac_compile) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); } 2>conftest.err; then
18206         soname=conftest
18207         lib=conftest
18208         libobjs=conftest.$ac_objext
18209         deplibs=
18210         wl=$lt_prog_compiler_wl_GCJ
18211         pic_flag=$lt_prog_compiler_pic_GCJ
18212         compiler_flags=-v
18213         linker_flags=-v
18214         verstring=
18215         output_objdir=.
18216         libname=conftest
18217         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18218         allow_undefined_flag_GCJ=
18219         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18220   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }
18224         then
18225           archive_cmds_need_lc_GCJ=no
18226         else
18227           archive_cmds_need_lc_GCJ=yes
18228         fi
18229         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18230       else
18231         cat conftest.err 1>&5
18232       fi
18233       $rm conftest*
18234       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18235 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18236       ;;
18237     esac
18238   fi
18239   ;;
18240 esac
18241
18242 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18244 library_names_spec=
18245 libname_spec='lib$name'
18246 soname_spec=
18247 shrext_cmds=".so"
18248 postinstall_cmds=
18249 postuninstall_cmds=
18250 finish_cmds=
18251 finish_eval=
18252 shlibpath_var=
18253 shlibpath_overrides_runpath=unknown
18254 version_type=none
18255 dynamic_linker="$host_os ld.so"
18256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18257 if test "$GCC" = yes; then
18258   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18259   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18260     # if the path contains ";" then we assume it to be the separator
18261     # otherwise default to the standard path separator (i.e. ":") - it is
18262     # assumed that no part of a normal pathname contains ";" but that should
18263     # okay in the real world where ";" in dirpaths is itself problematic.
18264     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18265   else
18266     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18267   fi
18268 else
18269   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18270 fi
18271 need_lib_prefix=unknown
18272 hardcode_into_libs=no
18273
18274 # when you set need_version to no, make sure it does not cause -set_version
18275 # flags to be left without arguments
18276 need_version=unknown
18277
18278 case $host_os in
18279 aix3*)
18280   version_type=linux
18281   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18282   shlibpath_var=LIBPATH
18283
18284   # AIX 3 has no versioning support, so we append a major version to the name.
18285   soname_spec='${libname}${release}${shared_ext}$major'
18286   ;;
18287
18288 aix4* | aix5*)
18289   version_type=linux
18290   need_lib_prefix=no
18291   need_version=no
18292   hardcode_into_libs=yes
18293   if test "$host_cpu" = ia64; then
18294     # AIX 5 supports IA64
18295     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18296     shlibpath_var=LD_LIBRARY_PATH
18297   else
18298     # With GCC up to 2.95.x, collect2 would create an import file
18299     # for dependence libraries.  The import file would start with
18300     # the line `#! .'.  This would cause the generated library to
18301     # depend on `.', always an invalid library.  This was fixed in
18302     # development snapshots of GCC prior to 3.0.
18303     case $host_os in
18304       aix4 | aix4.[01] | aix4.[01].*)
18305       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18306            echo ' yes '
18307            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18308         :
18309       else
18310         can_build_shared=no
18311       fi
18312       ;;
18313     esac
18314     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18315     # soname into executable. Probably we can add versioning support to
18316     # collect2, so additional links can be useful in future.
18317     if test "$aix_use_runtimelinking" = yes; then
18318       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18319       # instead of lib<name>.a to let people know that these are not
18320       # typical AIX shared libraries.
18321       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322     else
18323       # We preserve .a as extension for shared libraries through AIX4.2
18324       # and later when we are not doing run time linking.
18325       library_names_spec='${libname}${release}.a $libname.a'
18326       soname_spec='${libname}${release}${shared_ext}$major'
18327     fi
18328     shlibpath_var=LIBPATH
18329   fi
18330   ;;
18331
18332 amigaos*)
18333   library_names_spec='$libname.ixlibrary $libname.a'
18334   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18335   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'
18336   ;;
18337
18338 beos*)
18339   library_names_spec='${libname}${shared_ext}'
18340   dynamic_linker="$host_os ld.so"
18341   shlibpath_var=LIBRARY_PATH
18342   ;;
18343
18344 bsdi[45]*)
18345   version_type=linux
18346   need_version=no
18347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348   soname_spec='${libname}${release}${shared_ext}$major'
18349   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18350   shlibpath_var=LD_LIBRARY_PATH
18351   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18352   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18353   # the default ld.so.conf also contains /usr/contrib/lib and
18354   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18355   # libtool to hard-code these into programs
18356   ;;
18357
18358 cygwin* | mingw* | pw32*)
18359   version_type=windows
18360   shrext_cmds=".dll"
18361   need_version=no
18362   need_lib_prefix=no
18363
18364   case $GCC,$host_os in
18365   yes,cygwin* | yes,mingw* | yes,pw32*)
18366     library_names_spec='$libname.dll.a'
18367     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18368     postinstall_cmds='base_file=`basename \${file}`~
18369       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18370       dldir=$destdir/`dirname \$dlpath`~
18371       test -d \$dldir || mkdir -p \$dldir~
18372       $install_prog $dir/$dlname \$dldir/$dlname~
18373       chmod a+x \$dldir/$dlname'
18374     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18375       dlpath=$dir/\$dldll~
18376        $rm \$dlpath'
18377     shlibpath_overrides_runpath=yes
18378
18379     case $host_os in
18380     cygwin*)
18381       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18382       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18383       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18384       ;;
18385     mingw*)
18386       # MinGW DLLs use traditional 'lib' prefix
18387       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18388       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18389       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18390         # It is most probably a Windows format PATH printed by
18391         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18392         # path with ; separators, and with drive letters. We can handle the
18393         # drive letters (cygwin fileutils understands them), so leave them,
18394         # especially as we might pass files found there to a mingw objdump,
18395         # which wouldn't understand a cygwinified path. Ahh.
18396         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18397       else
18398         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18399       fi
18400       ;;
18401     pw32*)
18402       # pw32 DLLs use 'pw' prefix rather than 'lib'
18403       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18404       ;;
18405     esac
18406     ;;
18407
18408   *)
18409     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18410     ;;
18411   esac
18412   dynamic_linker='Win32 ld.exe'
18413   # FIXME: first we should search . and the directory the executable is in
18414   shlibpath_var=PATH
18415   ;;
18416
18417 darwin* | rhapsody*)
18418   dynamic_linker="$host_os dyld"
18419   version_type=darwin
18420   need_lib_prefix=no
18421   need_version=no
18422   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18423   soname_spec='${libname}${release}${major}$shared_ext'
18424   shlibpath_overrides_runpath=yes
18425   shlibpath_var=DYLD_LIBRARY_PATH
18426   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18427   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18428   if test "$GCC" = yes; then
18429     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"`
18430   else
18431     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18432   fi
18433   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18434   ;;
18435
18436 dgux*)
18437   version_type=linux
18438   need_lib_prefix=no
18439   need_version=no
18440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18441   soname_spec='${libname}${release}${shared_ext}$major'
18442   shlibpath_var=LD_LIBRARY_PATH
18443   ;;
18444
18445 freebsd1*)
18446   dynamic_linker=no
18447   ;;
18448
18449 kfreebsd*-gnu)
18450   version_type=linux
18451   need_lib_prefix=no
18452   need_version=no
18453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18454   soname_spec='${libname}${release}${shared_ext}$major'
18455   shlibpath_var=LD_LIBRARY_PATH
18456   shlibpath_overrides_runpath=no
18457   hardcode_into_libs=yes
18458   dynamic_linker='GNU ld.so'
18459   ;;
18460
18461 freebsd* | dragonfly*)
18462   # DragonFly does not have aout.  When/if they implement a new
18463   # versioning mechanism, adjust this.
18464   if test -x /usr/bin/objformat; then
18465     objformat=`/usr/bin/objformat`
18466   else
18467     case $host_os in
18468     freebsd[123]*) objformat=aout ;;
18469     *) objformat=elf ;;
18470     esac
18471   fi
18472   version_type=freebsd-$objformat
18473   case $version_type in
18474     freebsd-elf*)
18475       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18476       need_version=no
18477       need_lib_prefix=no
18478       ;;
18479     freebsd-*)
18480       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18481       need_version=yes
18482       ;;
18483   esac
18484   shlibpath_var=LD_LIBRARY_PATH
18485   case $host_os in
18486   freebsd2*)
18487     shlibpath_overrides_runpath=yes
18488     ;;
18489   freebsd3.[01]* | freebsdelf3.[01]*)
18490     shlibpath_overrides_runpath=yes
18491     hardcode_into_libs=yes
18492     ;;
18493   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18494   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18495     shlibpath_overrides_runpath=no
18496     hardcode_into_libs=yes
18497     ;;
18498   freebsd*) # from 4.6 on
18499     shlibpath_overrides_runpath=yes
18500     hardcode_into_libs=yes
18501     ;;
18502   esac
18503   ;;
18504
18505 gnu*)
18506   version_type=linux
18507   need_lib_prefix=no
18508   need_version=no
18509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18510   soname_spec='${libname}${release}${shared_ext}$major'
18511   shlibpath_var=LD_LIBRARY_PATH
18512   hardcode_into_libs=yes
18513   ;;
18514
18515 hpux9* | hpux10* | hpux11*)
18516   # Give a soname corresponding to the major version so that dld.sl refuses to
18517   # link against other versions.
18518   version_type=sunos
18519   need_lib_prefix=no
18520   need_version=no
18521   case $host_cpu in
18522   ia64*)
18523     shrext_cmds='.so'
18524     hardcode_into_libs=yes
18525     dynamic_linker="$host_os dld.so"
18526     shlibpath_var=LD_LIBRARY_PATH
18527     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529     soname_spec='${libname}${release}${shared_ext}$major'
18530     if test "X$HPUX_IA64_MODE" = X32; then
18531       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18532     else
18533       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18534     fi
18535     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18536     ;;
18537    hppa*64*)
18538      shrext_cmds='.sl'
18539      hardcode_into_libs=yes
18540      dynamic_linker="$host_os dld.sl"
18541      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18542      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18543      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544      soname_spec='${libname}${release}${shared_ext}$major'
18545      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18546      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18547      ;;
18548    *)
18549     shrext_cmds='.sl'
18550     dynamic_linker="$host_os dld.sl"
18551     shlibpath_var=SHLIB_PATH
18552     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554     soname_spec='${libname}${release}${shared_ext}$major'
18555     ;;
18556   esac
18557   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18558   postinstall_cmds='chmod 555 $lib'
18559   ;;
18560
18561 interix3*)
18562   version_type=linux
18563   need_lib_prefix=no
18564   need_version=no
18565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566   soname_spec='${libname}${release}${shared_ext}$major'
18567   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18568   shlibpath_var=LD_LIBRARY_PATH
18569   shlibpath_overrides_runpath=no
18570   hardcode_into_libs=yes
18571   ;;
18572
18573 irix5* | irix6* | nonstopux*)
18574   case $host_os in
18575     nonstopux*) version_type=nonstopux ;;
18576     *)
18577         if test "$lt_cv_prog_gnu_ld" = yes; then
18578                 version_type=linux
18579         else
18580                 version_type=irix
18581         fi ;;
18582   esac
18583   need_lib_prefix=no
18584   need_version=no
18585   soname_spec='${libname}${release}${shared_ext}$major'
18586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18587   case $host_os in
18588   irix5* | nonstopux*)
18589     libsuff= shlibsuff=
18590     ;;
18591   *)
18592     case $LD in # libtool.m4 will add one of these switches to LD
18593     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18594       libsuff= shlibsuff= libmagic=32-bit;;
18595     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18596       libsuff=32 shlibsuff=N32 libmagic=N32;;
18597     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18598       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18599     *) libsuff= shlibsuff= libmagic=never-match;;
18600     esac
18601     ;;
18602   esac
18603   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18604   shlibpath_overrides_runpath=no
18605   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18606   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18607   hardcode_into_libs=yes
18608   ;;
18609
18610 # No shared lib support for Linux oldld, aout, or coff.
18611 linux*oldld* | linux*aout* | linux*coff*)
18612   dynamic_linker=no
18613   ;;
18614
18615 # This must be Linux ELF.
18616 linux*)
18617   version_type=linux
18618   need_lib_prefix=no
18619   need_version=no
18620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621   soname_spec='${libname}${release}${shared_ext}$major'
18622   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18623   shlibpath_var=LD_LIBRARY_PATH
18624   shlibpath_overrides_runpath=no
18625   # This implies no fast_install, which is unacceptable.
18626   # Some rework will be needed to allow for fast_install
18627   # before this can be enabled.
18628   hardcode_into_libs=yes
18629
18630   # find out which ABI we are using
18631   libsuff=
18632   case "$host_cpu" in
18633   x86_64*|s390x*|powerpc64*)
18634     echo '#line 18634 "configure"' > conftest.$ac_ext
18635     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636   (eval $ac_compile) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; then
18640       case `/usr/bin/file conftest.$ac_objext` in
18641       *64-bit*)
18642         libsuff=64
18643         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18644         ;;
18645       esac
18646     fi
18647     rm -rf conftest*
18648     ;;
18649   esac
18650
18651   # Append ld.so.conf contents to the search path
18652   if test -f /etc/ld.so.conf; then
18653     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18654     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18655   fi
18656
18657   # We used to test for /lib/ld.so.1 and disable shared libraries on
18658   # powerpc, because MkLinux only supported shared libraries with the
18659   # GNU dynamic linker.  Since this was broken with cross compilers,
18660   # most powerpc-linux boxes support dynamic linking these days and
18661   # people can always --disable-shared, the test was removed, and we
18662   # assume the GNU/Linux dynamic linker is in use.
18663   dynamic_linker='GNU/Linux ld.so'
18664   ;;
18665
18666 knetbsd*-gnu)
18667   version_type=linux
18668   need_lib_prefix=no
18669   need_version=no
18670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18671   soname_spec='${libname}${release}${shared_ext}$major'
18672   shlibpath_var=LD_LIBRARY_PATH
18673   shlibpath_overrides_runpath=no
18674   hardcode_into_libs=yes
18675   dynamic_linker='GNU ld.so'
18676   ;;
18677
18678 netbsd*)
18679   version_type=sunos
18680   need_lib_prefix=no
18681   need_version=no
18682   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18684     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18685     dynamic_linker='NetBSD (a.out) ld.so'
18686   else
18687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18688     soname_spec='${libname}${release}${shared_ext}$major'
18689     dynamic_linker='NetBSD ld.elf_so'
18690   fi
18691   shlibpath_var=LD_LIBRARY_PATH
18692   shlibpath_overrides_runpath=yes
18693   hardcode_into_libs=yes
18694   ;;
18695
18696 newsos6)
18697   version_type=linux
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699   shlibpath_var=LD_LIBRARY_PATH
18700   shlibpath_overrides_runpath=yes
18701   ;;
18702
18703 nto-qnx*)
18704   version_type=linux
18705   need_lib_prefix=no
18706   need_version=no
18707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708   soname_spec='${libname}${release}${shared_ext}$major'
18709   shlibpath_var=LD_LIBRARY_PATH
18710   shlibpath_overrides_runpath=yes
18711   ;;
18712
18713 openbsd*)
18714   version_type=sunos
18715   sys_lib_dlsearch_path_spec="/usr/lib"
18716   need_lib_prefix=no
18717   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18718   case $host_os in
18719     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18720     *)                         need_version=no  ;;
18721   esac
18722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18723   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18724   shlibpath_var=LD_LIBRARY_PATH
18725   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18726     case $host_os in
18727       openbsd2.[89] | openbsd2.[89].*)
18728         shlibpath_overrides_runpath=no
18729         ;;
18730       *)
18731         shlibpath_overrides_runpath=yes
18732         ;;
18733       esac
18734   else
18735     shlibpath_overrides_runpath=yes
18736   fi
18737   ;;
18738
18739 os2*)
18740   libname_spec='$name'
18741   shrext_cmds=".dll"
18742   need_lib_prefix=no
18743   library_names_spec='$libname${shared_ext} $libname.a'
18744   dynamic_linker='OS/2 ld.exe'
18745   shlibpath_var=LIBPATH
18746   ;;
18747
18748 osf3* | osf4* | osf5*)
18749   version_type=osf
18750   need_lib_prefix=no
18751   need_version=no
18752   soname_spec='${libname}${release}${shared_ext}$major'
18753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754   shlibpath_var=LD_LIBRARY_PATH
18755   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18756   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18757   ;;
18758
18759 solaris*)
18760   version_type=linux
18761   need_lib_prefix=no
18762   need_version=no
18763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764   soname_spec='${libname}${release}${shared_ext}$major'
18765   shlibpath_var=LD_LIBRARY_PATH
18766   shlibpath_overrides_runpath=yes
18767   hardcode_into_libs=yes
18768   # ldd complains unless libraries are executable
18769   postinstall_cmds='chmod +x $lib'
18770   ;;
18771
18772 sunos4*)
18773   version_type=sunos
18774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18776   shlibpath_var=LD_LIBRARY_PATH
18777   shlibpath_overrides_runpath=yes
18778   if test "$with_gnu_ld" = yes; then
18779     need_lib_prefix=no
18780   fi
18781   need_version=yes
18782   ;;
18783
18784 sysv4 | sysv4.3*)
18785   version_type=linux
18786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787   soname_spec='${libname}${release}${shared_ext}$major'
18788   shlibpath_var=LD_LIBRARY_PATH
18789   case $host_vendor in
18790     sni)
18791       shlibpath_overrides_runpath=no
18792       need_lib_prefix=no
18793       export_dynamic_flag_spec='${wl}-Blargedynsym'
18794       runpath_var=LD_RUN_PATH
18795       ;;
18796     siemens)
18797       need_lib_prefix=no
18798       ;;
18799     motorola)
18800       need_lib_prefix=no
18801       need_version=no
18802       shlibpath_overrides_runpath=no
18803       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18804       ;;
18805   esac
18806   ;;
18807
18808 sysv4*MP*)
18809   if test -d /usr/nec ;then
18810     version_type=linux
18811     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18812     soname_spec='$libname${shared_ext}.$major'
18813     shlibpath_var=LD_LIBRARY_PATH
18814   fi
18815   ;;
18816
18817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18818   version_type=freebsd-elf
18819   need_lib_prefix=no
18820   need_version=no
18821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18822   soname_spec='${libname}${release}${shared_ext}$major'
18823   shlibpath_var=LD_LIBRARY_PATH
18824   hardcode_into_libs=yes
18825   if test "$with_gnu_ld" = yes; then
18826     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18827     shlibpath_overrides_runpath=no
18828   else
18829     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18830     shlibpath_overrides_runpath=yes
18831     case $host_os in
18832       sco3.2v5*)
18833         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18834         ;;
18835     esac
18836   fi
18837   sys_lib_dlsearch_path_spec='/usr/lib'
18838   ;;
18839
18840 uts4*)
18841   version_type=linux
18842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843   soname_spec='${libname}${release}${shared_ext}$major'
18844   shlibpath_var=LD_LIBRARY_PATH
18845   ;;
18846
18847 *)
18848   dynamic_linker=no
18849   ;;
18850 esac
18851 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18852 echo "${ECHO_T}$dynamic_linker" >&6; }
18853 test "$dynamic_linker" = no && can_build_shared=no
18854
18855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18856 if test "$GCC" = yes; then
18857   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18858 fi
18859
18860 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18861 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18862 hardcode_action_GCJ=
18863 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18864    test -n "$runpath_var_GCJ" || \
18865    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18866
18867   # We can hardcode non-existant directories.
18868   if test "$hardcode_direct_GCJ" != no &&
18869      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18870      # have to relink, otherwise we might link with an installed library
18871      # when we should be linking with a yet-to-be-installed one
18872      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18873      test "$hardcode_minus_L_GCJ" != no; then
18874     # Linking always hardcodes the temporary library directory.
18875     hardcode_action_GCJ=relink
18876   else
18877     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18878     hardcode_action_GCJ=immediate
18879   fi
18880 else
18881   # We cannot hardcode anything, or else we can only hardcode existing
18882   # directories.
18883   hardcode_action_GCJ=unsupported
18884 fi
18885 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18886 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18887
18888 if test "$hardcode_action_GCJ" = relink; then
18889   # Fast installation is not supported
18890   enable_fast_install=no
18891 elif test "$shlibpath_overrides_runpath" = yes ||
18892      test "$enable_shared" = no; then
18893   # Fast installation is not necessary
18894   enable_fast_install=needless
18895 fi
18896
18897
18898 # The else clause should only fire when bootstrapping the
18899 # libtool distribution, otherwise you forgot to ship ltmain.sh
18900 # with your package, and you will get complaints that there are
18901 # no rules to generate ltmain.sh.
18902 if test -f "$ltmain"; then
18903   # See if we are running on zsh, and set the options which allow our commands through
18904   # without removal of \ escapes.
18905   if test -n "${ZSH_VERSION+set}" ; then
18906     setopt NO_GLOB_SUBST
18907   fi
18908   # Now quote all the things that may contain metacharacters while being
18909   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18910   # variables and quote the copies for generation of the libtool script.
18911   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18912     SED SHELL STRIP \
18913     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18914     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18915     deplibs_check_method reload_flag reload_cmds need_locks \
18916     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18917     lt_cv_sys_global_symbol_to_c_name_address \
18918     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18919     old_postinstall_cmds old_postuninstall_cmds \
18920     compiler_GCJ \
18921     CC_GCJ \
18922     LD_GCJ \
18923     lt_prog_compiler_wl_GCJ \
18924     lt_prog_compiler_pic_GCJ \
18925     lt_prog_compiler_static_GCJ \
18926     lt_prog_compiler_no_builtin_flag_GCJ \
18927     export_dynamic_flag_spec_GCJ \
18928     thread_safe_flag_spec_GCJ \
18929     whole_archive_flag_spec_GCJ \
18930     enable_shared_with_static_runtimes_GCJ \
18931     old_archive_cmds_GCJ \
18932     old_archive_from_new_cmds_GCJ \
18933     predep_objects_GCJ \
18934     postdep_objects_GCJ \
18935     predeps_GCJ \
18936     postdeps_GCJ \
18937     compiler_lib_search_path_GCJ \
18938     archive_cmds_GCJ \
18939     archive_expsym_cmds_GCJ \
18940     postinstall_cmds_GCJ \
18941     postuninstall_cmds_GCJ \
18942     old_archive_from_expsyms_cmds_GCJ \
18943     allow_undefined_flag_GCJ \
18944     no_undefined_flag_GCJ \
18945     export_symbols_cmds_GCJ \
18946     hardcode_libdir_flag_spec_GCJ \
18947     hardcode_libdir_flag_spec_ld_GCJ \
18948     hardcode_libdir_separator_GCJ \
18949     hardcode_automatic_GCJ \
18950     module_cmds_GCJ \
18951     module_expsym_cmds_GCJ \
18952     lt_cv_prog_compiler_c_o_GCJ \
18953     exclude_expsyms_GCJ \
18954     include_expsyms_GCJ; do
18955
18956     case $var in
18957     old_archive_cmds_GCJ | \
18958     old_archive_from_new_cmds_GCJ | \
18959     archive_cmds_GCJ | \
18960     archive_expsym_cmds_GCJ | \
18961     module_cmds_GCJ | \
18962     module_expsym_cmds_GCJ | \
18963     old_archive_from_expsyms_cmds_GCJ | \
18964     export_symbols_cmds_GCJ | \
18965     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18966     postinstall_cmds | postuninstall_cmds | \
18967     old_postinstall_cmds | old_postuninstall_cmds | \
18968     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18969       # Double-quote double-evaled strings.
18970       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18971       ;;
18972     *)
18973       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18974       ;;
18975     esac
18976   done
18977
18978   case $lt_echo in
18979   *'\$0 --fallback-echo"')
18980     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18981     ;;
18982   esac
18983
18984 cfgfile="$ofile"
18985
18986   cat <<__EOF__ >> "$cfgfile"
18987 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18988
18989 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18990
18991 # Shell to use when invoking shell scripts.
18992 SHELL=$lt_SHELL
18993
18994 # Whether or not to build shared libraries.
18995 build_libtool_libs=$enable_shared
18996
18997 # Whether or not to build static libraries.
18998 build_old_libs=$enable_static
18999
19000 # Whether or not to add -lc for building shared libraries.
19001 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19002
19003 # Whether or not to disallow shared libs when runtime libs are static
19004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19005
19006 # Whether or not to optimize for fast installation.
19007 fast_install=$enable_fast_install
19008
19009 # The host system.
19010 host_alias=$host_alias
19011 host=$host
19012 host_os=$host_os
19013
19014 # The build system.
19015 build_alias=$build_alias
19016 build=$build
19017 build_os=$build_os
19018
19019 # An echo program that does not interpret backslashes.
19020 echo=$lt_echo
19021
19022 # The archiver.
19023 AR=$lt_AR
19024 AR_FLAGS=$lt_AR_FLAGS
19025
19026 # A C compiler.
19027 LTCC=$lt_LTCC
19028
19029 # LTCC compiler flags.
19030 LTCFLAGS=$lt_LTCFLAGS
19031
19032 # A language-specific compiler.
19033 CC=$lt_compiler_GCJ
19034
19035 # Is the compiler the GNU C compiler?
19036 with_gcc=$GCC_GCJ
19037
19038 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19039 gcc_ver=\`gcc -dumpversion\`
19040
19041 # An ERE matcher.
19042 EGREP=$lt_EGREP
19043
19044 # The linker used to build libraries.
19045 LD=$lt_LD_GCJ
19046
19047 # Whether we need hard or soft links.
19048 LN_S=$lt_LN_S
19049
19050 # A BSD-compatible nm program.
19051 NM=$lt_NM
19052
19053 # A symbol stripping program
19054 STRIP=$lt_STRIP
19055
19056 # Used to examine libraries when file_magic_cmd begins "file"
19057 MAGIC_CMD=$MAGIC_CMD
19058
19059 # Used on cygwin: DLL creation program.
19060 DLLTOOL="$DLLTOOL"
19061
19062 # Used on cygwin: object dumper.
19063 OBJDUMP="$OBJDUMP"
19064
19065 # Used on cygwin: assembler.
19066 AS="$AS"
19067
19068 # The name of the directory that contains temporary libtool files.
19069 objdir=$objdir
19070
19071 # How to create reloadable object files.
19072 reload_flag=$lt_reload_flag
19073 reload_cmds=$lt_reload_cmds
19074
19075 # How to pass a linker flag through the compiler.
19076 wl=$lt_lt_prog_compiler_wl_GCJ
19077
19078 # Object file suffix (normally "o").
19079 objext="$ac_objext"
19080
19081 # Old archive suffix (normally "a").
19082 libext="$libext"
19083
19084 # Shared library suffix (normally ".so").
19085 shrext_cmds='$shrext_cmds'
19086
19087 # Executable file suffix (normally "").
19088 exeext="$exeext"
19089
19090 # Additional compiler flags for building library objects.
19091 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19092 pic_mode=$pic_mode
19093
19094 # What is the maximum length of a command?
19095 max_cmd_len=$lt_cv_sys_max_cmd_len
19096
19097 # Does compiler simultaneously support -c and -o options?
19098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19099
19100 # Must we lock files when doing compilation?
19101 need_locks=$lt_need_locks
19102
19103 # Do we need the lib prefix for modules?
19104 need_lib_prefix=$need_lib_prefix
19105
19106 # Do we need a version for libraries?
19107 need_version=$need_version
19108
19109 # Whether dlopen is supported.
19110 dlopen_support=$enable_dlopen
19111
19112 # Whether dlopen of programs is supported.
19113 dlopen_self=$enable_dlopen_self
19114
19115 # Whether dlopen of statically linked programs is supported.
19116 dlopen_self_static=$enable_dlopen_self_static
19117
19118 # Compiler flag to prevent dynamic linking.
19119 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19120
19121 # Compiler flag to turn off builtin functions.
19122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19123
19124 # Compiler flag to allow reflexive dlopens.
19125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19126
19127 # Compiler flag to generate shared objects directly from archives.
19128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19129
19130 # Compiler flag to generate thread-safe objects.
19131 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19132
19133 # Library versioning type.
19134 version_type=$version_type
19135
19136 # Format of library name prefix.
19137 libname_spec=$lt_libname_spec
19138
19139 # List of archive names.  First name is the real one, the rest are links.
19140 # The last name is the one that the linker finds with -lNAME.
19141 library_names_spec=$lt_library_names_spec
19142
19143 # The coded name of the library, if different from the real name.
19144 soname_spec=$lt_soname_spec
19145
19146 # Commands used to build and install an old-style archive.
19147 RANLIB=$lt_RANLIB
19148 old_archive_cmds=$lt_old_archive_cmds_GCJ
19149 old_postinstall_cmds=$lt_old_postinstall_cmds
19150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19151
19152 # Create an old-style archive from a shared archive.
19153 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19154
19155 # Create a temporary old-style archive to link instead of a shared archive.
19156 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19157
19158 # Commands used to build and install a shared archive.
19159 archive_cmds=$lt_archive_cmds_GCJ
19160 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19161 postinstall_cmds=$lt_postinstall_cmds
19162 postuninstall_cmds=$lt_postuninstall_cmds
19163
19164 # Commands used to build a loadable module (assumed same as above if empty)
19165 module_cmds=$lt_module_cmds_GCJ
19166 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19167
19168 # Commands to strip libraries.
19169 old_striplib=$lt_old_striplib
19170 striplib=$lt_striplib
19171
19172 # Dependencies to place before the objects being linked to create a
19173 # shared library.
19174 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19175
19176 # Dependencies to place after the objects being linked to create a
19177 # shared library.
19178 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19179
19180 # Dependencies to place before the objects being linked to create a
19181 # shared library.
19182 predeps=$lt_predeps_GCJ
19183
19184 # Dependencies to place after the objects being linked to create a
19185 # shared library.
19186 postdeps=$lt_postdeps_GCJ
19187
19188 # The library search path used internally by the compiler when linking
19189 # a shared library.
19190 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19191
19192 # Method to check whether dependent libraries are shared objects.
19193 deplibs_check_method=$lt_deplibs_check_method
19194
19195 # Command to use when deplibs_check_method == file_magic.
19196 file_magic_cmd=$lt_file_magic_cmd
19197
19198 # Flag that allows shared libraries with undefined symbols to be built.
19199 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19200
19201 # Flag that forces no undefined symbols.
19202 no_undefined_flag=$lt_no_undefined_flag_GCJ
19203
19204 # Commands used to finish a libtool library installation in a directory.
19205 finish_cmds=$lt_finish_cmds
19206
19207 # Same as above, but a single script fragment to be evaled but not shown.
19208 finish_eval=$lt_finish_eval
19209
19210 # Take the output of nm and produce a listing of raw symbols and C names.
19211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19212
19213 # Transform the output of nm in a proper C declaration
19214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19215
19216 # Transform the output of nm in a C name address pair
19217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19218
19219 # This is the shared library runtime path variable.
19220 runpath_var=$runpath_var
19221
19222 # This is the shared library path variable.
19223 shlibpath_var=$shlibpath_var
19224
19225 # Is shlibpath searched before the hard-coded library search path?
19226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19227
19228 # How to hardcode a shared library path into an executable.
19229 hardcode_action=$hardcode_action_GCJ
19230
19231 # Whether we should hardcode library paths into libraries.
19232 hardcode_into_libs=$hardcode_into_libs
19233
19234 # Flag to hardcode \$libdir into a binary during linking.
19235 # This must work even if \$libdir does not exist.
19236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19237
19238 # If ld is used when linking, flag to hardcode \$libdir into
19239 # a binary during linking. This must work even if \$libdir does
19240 # not exist.
19241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19242
19243 # Whether we need a single -rpath flag with a separated argument.
19244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19245
19246 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19247 # resulting binary.
19248 hardcode_direct=$hardcode_direct_GCJ
19249
19250 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19251 # resulting binary.
19252 hardcode_minus_L=$hardcode_minus_L_GCJ
19253
19254 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19255 # the resulting binary.
19256 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19257
19258 # Set to yes if building a shared library automatically hardcodes DIR into the library
19259 # and all subsequent libraries and executables linked against it.
19260 hardcode_automatic=$hardcode_automatic_GCJ
19261
19262 # Variables whose values should be saved in libtool wrapper scripts and
19263 # restored at relink time.
19264 variables_saved_for_relink="$variables_saved_for_relink"
19265
19266 # Whether libtool must link a program against all its dependency libraries.
19267 link_all_deplibs=$link_all_deplibs_GCJ
19268
19269 # Compile-time system search path for libraries
19270 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19271
19272 # Run-time system search path for libraries
19273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19274
19275 # Fix the shell variable \$srcfile for the compiler.
19276 fix_srcfile_path="$fix_srcfile_path_GCJ"
19277
19278 # Set to yes if exported symbols are required.
19279 always_export_symbols=$always_export_symbols_GCJ
19280
19281 # The commands to list exported symbols.
19282 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19283
19284 # The commands to extract the exported symbol list from a shared archive.
19285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19286
19287 # Symbols that should not be listed in the preloaded symbols.
19288 exclude_expsyms=$lt_exclude_expsyms_GCJ
19289
19290 # Symbols that must always be exported.
19291 include_expsyms=$lt_include_expsyms_GCJ
19292
19293 # ### END LIBTOOL TAG CONFIG: $tagname
19294
19295 __EOF__
19296
19297
19298 else
19299   # If there is no Makefile yet, we rely on a make rule to execute
19300   # `config.status --recheck' to rerun these tests and create the
19301   # libtool script then.
19302   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19303   if test -f "$ltmain_in"; then
19304     test -f Makefile && make "$ltmain"
19305   fi
19306 fi
19307
19308
19309 ac_ext=c
19310 ac_cpp='$CPP $CPPFLAGS'
19311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19314
19315 CC="$lt_save_CC"
19316
19317         else
19318           tagname=""
19319         fi
19320         ;;
19321
19322       RC)
19323
19324
19325 # Source file extension for RC test sources.
19326 ac_ext=rc
19327
19328 # Object file extension for compiled RC test sources.
19329 objext=o
19330 objext_RC=$objext
19331
19332 # Code to be used in simple compile tests
19333 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19334
19335 # Code to be used in simple link tests
19336 lt_simple_link_test_code="$lt_simple_compile_test_code"
19337
19338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19339
19340 # If no C compiler was specified, use CC.
19341 LTCC=${LTCC-"$CC"}
19342
19343 # If no C compiler flags were specified, use CFLAGS.
19344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19345
19346 # Allow CC to be a program name with arguments.
19347 compiler=$CC
19348
19349
19350 # save warnings/boilerplate of simple test code
19351 ac_outfile=conftest.$ac_objext
19352 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19354 _lt_compiler_boilerplate=`cat conftest.err`
19355 $rm conftest*
19356
19357 ac_outfile=conftest.$ac_objext
19358 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19360 _lt_linker_boilerplate=`cat conftest.err`
19361 $rm conftest*
19362
19363
19364 # Allow CC to be a program name with arguments.
19365 lt_save_CC="$CC"
19366 CC=${RC-"windres"}
19367 compiler=$CC
19368 compiler_RC=$CC
19369 for cc_temp in $compiler""; do
19370   case $cc_temp in
19371     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19372     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19373     \-*) ;;
19374     *) break;;
19375   esac
19376 done
19377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19378
19379 lt_cv_prog_compiler_c_o_RC=yes
19380
19381 # The else clause should only fire when bootstrapping the
19382 # libtool distribution, otherwise you forgot to ship ltmain.sh
19383 # with your package, and you will get complaints that there are
19384 # no rules to generate ltmain.sh.
19385 if test -f "$ltmain"; then
19386   # See if we are running on zsh, and set the options which allow our commands through
19387   # without removal of \ escapes.
19388   if test -n "${ZSH_VERSION+set}" ; then
19389     setopt NO_GLOB_SUBST
19390   fi
19391   # Now quote all the things that may contain metacharacters while being
19392   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19393   # variables and quote the copies for generation of the libtool script.
19394   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19395     SED SHELL STRIP \
19396     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19397     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19398     deplibs_check_method reload_flag reload_cmds need_locks \
19399     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19400     lt_cv_sys_global_symbol_to_c_name_address \
19401     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19402     old_postinstall_cmds old_postuninstall_cmds \
19403     compiler_RC \
19404     CC_RC \
19405     LD_RC \
19406     lt_prog_compiler_wl_RC \
19407     lt_prog_compiler_pic_RC \
19408     lt_prog_compiler_static_RC \
19409     lt_prog_compiler_no_builtin_flag_RC \
19410     export_dynamic_flag_spec_RC \
19411     thread_safe_flag_spec_RC \
19412     whole_archive_flag_spec_RC \
19413     enable_shared_with_static_runtimes_RC \
19414     old_archive_cmds_RC \
19415     old_archive_from_new_cmds_RC \
19416     predep_objects_RC \
19417     postdep_objects_RC \
19418     predeps_RC \
19419     postdeps_RC \
19420     compiler_lib_search_path_RC \
19421     archive_cmds_RC \
19422     archive_expsym_cmds_RC \
19423     postinstall_cmds_RC \
19424     postuninstall_cmds_RC \
19425     old_archive_from_expsyms_cmds_RC \
19426     allow_undefined_flag_RC \
19427     no_undefined_flag_RC \
19428     export_symbols_cmds_RC \
19429     hardcode_libdir_flag_spec_RC \
19430     hardcode_libdir_flag_spec_ld_RC \
19431     hardcode_libdir_separator_RC \
19432     hardcode_automatic_RC \
19433     module_cmds_RC \
19434     module_expsym_cmds_RC \
19435     lt_cv_prog_compiler_c_o_RC \
19436     exclude_expsyms_RC \
19437     include_expsyms_RC; do
19438
19439     case $var in
19440     old_archive_cmds_RC | \
19441     old_archive_from_new_cmds_RC | \
19442     archive_cmds_RC | \
19443     archive_expsym_cmds_RC | \
19444     module_cmds_RC | \
19445     module_expsym_cmds_RC | \
19446     old_archive_from_expsyms_cmds_RC | \
19447     export_symbols_cmds_RC | \
19448     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19449     postinstall_cmds | postuninstall_cmds | \
19450     old_postinstall_cmds | old_postuninstall_cmds | \
19451     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19452       # Double-quote double-evaled strings.
19453       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19454       ;;
19455     *)
19456       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19457       ;;
19458     esac
19459   done
19460
19461   case $lt_echo in
19462   *'\$0 --fallback-echo"')
19463     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19464     ;;
19465   esac
19466
19467 cfgfile="$ofile"
19468
19469   cat <<__EOF__ >> "$cfgfile"
19470 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19471
19472 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19473
19474 # Shell to use when invoking shell scripts.
19475 SHELL=$lt_SHELL
19476
19477 # Whether or not to build shared libraries.
19478 build_libtool_libs=$enable_shared
19479
19480 # Whether or not to build static libraries.
19481 build_old_libs=$enable_static
19482
19483 # Whether or not to add -lc for building shared libraries.
19484 build_libtool_need_lc=$archive_cmds_need_lc_RC
19485
19486 # Whether or not to disallow shared libs when runtime libs are static
19487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19488
19489 # Whether or not to optimize for fast installation.
19490 fast_install=$enable_fast_install
19491
19492 # The host system.
19493 host_alias=$host_alias
19494 host=$host
19495 host_os=$host_os
19496
19497 # The build system.
19498 build_alias=$build_alias
19499 build=$build
19500 build_os=$build_os
19501
19502 # An echo program that does not interpret backslashes.
19503 echo=$lt_echo
19504
19505 # The archiver.
19506 AR=$lt_AR
19507 AR_FLAGS=$lt_AR_FLAGS
19508
19509 # A C compiler.
19510 LTCC=$lt_LTCC
19511
19512 # LTCC compiler flags.
19513 LTCFLAGS=$lt_LTCFLAGS
19514
19515 # A language-specific compiler.
19516 CC=$lt_compiler_RC
19517
19518 # Is the compiler the GNU C compiler?
19519 with_gcc=$GCC_RC
19520
19521 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19522 gcc_ver=\`gcc -dumpversion\`
19523
19524 # An ERE matcher.
19525 EGREP=$lt_EGREP
19526
19527 # The linker used to build libraries.
19528 LD=$lt_LD_RC
19529
19530 # Whether we need hard or soft links.
19531 LN_S=$lt_LN_S
19532
19533 # A BSD-compatible nm program.
19534 NM=$lt_NM
19535
19536 # A symbol stripping program
19537 STRIP=$lt_STRIP
19538
19539 # Used to examine libraries when file_magic_cmd begins "file"
19540 MAGIC_CMD=$MAGIC_CMD
19541
19542 # Used on cygwin: DLL creation program.
19543 DLLTOOL="$DLLTOOL"
19544
19545 # Used on cygwin: object dumper.
19546 OBJDUMP="$OBJDUMP"
19547
19548 # Used on cygwin: assembler.
19549 AS="$AS"
19550
19551 # The name of the directory that contains temporary libtool files.
19552 objdir=$objdir
19553
19554 # How to create reloadable object files.
19555 reload_flag=$lt_reload_flag
19556 reload_cmds=$lt_reload_cmds
19557
19558 # How to pass a linker flag through the compiler.
19559 wl=$lt_lt_prog_compiler_wl_RC
19560
19561 # Object file suffix (normally "o").
19562 objext="$ac_objext"
19563
19564 # Old archive suffix (normally "a").
19565 libext="$libext"
19566
19567 # Shared library suffix (normally ".so").
19568 shrext_cmds='$shrext_cmds'
19569
19570 # Executable file suffix (normally "").
19571 exeext="$exeext"
19572
19573 # Additional compiler flags for building library objects.
19574 pic_flag=$lt_lt_prog_compiler_pic_RC
19575 pic_mode=$pic_mode
19576
19577 # What is the maximum length of a command?
19578 max_cmd_len=$lt_cv_sys_max_cmd_len
19579
19580 # Does compiler simultaneously support -c and -o options?
19581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19582
19583 # Must we lock files when doing compilation?
19584 need_locks=$lt_need_locks
19585
19586 # Do we need the lib prefix for modules?
19587 need_lib_prefix=$need_lib_prefix
19588
19589 # Do we need a version for libraries?
19590 need_version=$need_version
19591
19592 # Whether dlopen is supported.
19593 dlopen_support=$enable_dlopen
19594
19595 # Whether dlopen of programs is supported.
19596 dlopen_self=$enable_dlopen_self
19597
19598 # Whether dlopen of statically linked programs is supported.
19599 dlopen_self_static=$enable_dlopen_self_static
19600
19601 # Compiler flag to prevent dynamic linking.
19602 link_static_flag=$lt_lt_prog_compiler_static_RC
19603
19604 # Compiler flag to turn off builtin functions.
19605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19606
19607 # Compiler flag to allow reflexive dlopens.
19608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19609
19610 # Compiler flag to generate shared objects directly from archives.
19611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19612
19613 # Compiler flag to generate thread-safe objects.
19614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19615
19616 # Library versioning type.
19617 version_type=$version_type
19618
19619 # Format of library name prefix.
19620 libname_spec=$lt_libname_spec
19621
19622 # List of archive names.  First name is the real one, the rest are links.
19623 # The last name is the one that the linker finds with -lNAME.
19624 library_names_spec=$lt_library_names_spec
19625
19626 # The coded name of the library, if different from the real name.
19627 soname_spec=$lt_soname_spec
19628
19629 # Commands used to build and install an old-style archive.
19630 RANLIB=$lt_RANLIB
19631 old_archive_cmds=$lt_old_archive_cmds_RC
19632 old_postinstall_cmds=$lt_old_postinstall_cmds
19633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19634
19635 # Create an old-style archive from a shared archive.
19636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19637
19638 # Create a temporary old-style archive to link instead of a shared archive.
19639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19640
19641 # Commands used to build and install a shared archive.
19642 archive_cmds=$lt_archive_cmds_RC
19643 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19644 postinstall_cmds=$lt_postinstall_cmds
19645 postuninstall_cmds=$lt_postuninstall_cmds
19646
19647 # Commands used to build a loadable module (assumed same as above if empty)
19648 module_cmds=$lt_module_cmds_RC
19649 module_expsym_cmds=$lt_module_expsym_cmds_RC
19650
19651 # Commands to strip libraries.
19652 old_striplib=$lt_old_striplib
19653 striplib=$lt_striplib
19654
19655 # Dependencies to place before the objects being linked to create a
19656 # shared library.
19657 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19658
19659 # Dependencies to place after the objects being linked to create a
19660 # shared library.
19661 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19662
19663 # Dependencies to place before the objects being linked to create a
19664 # shared library.
19665 predeps=$lt_predeps_RC
19666
19667 # Dependencies to place after the objects being linked to create a
19668 # shared library.
19669 postdeps=$lt_postdeps_RC
19670
19671 # The library search path used internally by the compiler when linking
19672 # a shared library.
19673 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19674
19675 # Method to check whether dependent libraries are shared objects.
19676 deplibs_check_method=$lt_deplibs_check_method
19677
19678 # Command to use when deplibs_check_method == file_magic.
19679 file_magic_cmd=$lt_file_magic_cmd
19680
19681 # Flag that allows shared libraries with undefined symbols to be built.
19682 allow_undefined_flag=$lt_allow_undefined_flag_RC
19683
19684 # Flag that forces no undefined symbols.
19685 no_undefined_flag=$lt_no_undefined_flag_RC
19686
19687 # Commands used to finish a libtool library installation in a directory.
19688 finish_cmds=$lt_finish_cmds
19689
19690 # Same as above, but a single script fragment to be evaled but not shown.
19691 finish_eval=$lt_finish_eval
19692
19693 # Take the output of nm and produce a listing of raw symbols and C names.
19694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19695
19696 # Transform the output of nm in a proper C declaration
19697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19698
19699 # Transform the output of nm in a C name address pair
19700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19701
19702 # This is the shared library runtime path variable.
19703 runpath_var=$runpath_var
19704
19705 # This is the shared library path variable.
19706 shlibpath_var=$shlibpath_var
19707
19708 # Is shlibpath searched before the hard-coded library search path?
19709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19710
19711 # How to hardcode a shared library path into an executable.
19712 hardcode_action=$hardcode_action_RC
19713
19714 # Whether we should hardcode library paths into libraries.
19715 hardcode_into_libs=$hardcode_into_libs
19716
19717 # Flag to hardcode \$libdir into a binary during linking.
19718 # This must work even if \$libdir does not exist.
19719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19720
19721 # If ld is used when linking, flag to hardcode \$libdir into
19722 # a binary during linking. This must work even if \$libdir does
19723 # not exist.
19724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19725
19726 # Whether we need a single -rpath flag with a separated argument.
19727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19728
19729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19730 # resulting binary.
19731 hardcode_direct=$hardcode_direct_RC
19732
19733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19734 # resulting binary.
19735 hardcode_minus_L=$hardcode_minus_L_RC
19736
19737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19738 # the resulting binary.
19739 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19740
19741 # Set to yes if building a shared library automatically hardcodes DIR into the library
19742 # and all subsequent libraries and executables linked against it.
19743 hardcode_automatic=$hardcode_automatic_RC
19744
19745 # Variables whose values should be saved in libtool wrapper scripts and
19746 # restored at relink time.
19747 variables_saved_for_relink="$variables_saved_for_relink"
19748
19749 # Whether libtool must link a program against all its dependency libraries.
19750 link_all_deplibs=$link_all_deplibs_RC
19751
19752 # Compile-time system search path for libraries
19753 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19754
19755 # Run-time system search path for libraries
19756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19757
19758 # Fix the shell variable \$srcfile for the compiler.
19759 fix_srcfile_path="$fix_srcfile_path_RC"
19760
19761 # Set to yes if exported symbols are required.
19762 always_export_symbols=$always_export_symbols_RC
19763
19764 # The commands to list exported symbols.
19765 export_symbols_cmds=$lt_export_symbols_cmds_RC
19766
19767 # The commands to extract the exported symbol list from a shared archive.
19768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19769
19770 # Symbols that should not be listed in the preloaded symbols.
19771 exclude_expsyms=$lt_exclude_expsyms_RC
19772
19773 # Symbols that must always be exported.
19774 include_expsyms=$lt_include_expsyms_RC
19775
19776 # ### END LIBTOOL TAG CONFIG: $tagname
19777
19778 __EOF__
19779
19780
19781 else
19782   # If there is no Makefile yet, we rely on a make rule to execute
19783   # `config.status --recheck' to rerun these tests and create the
19784   # libtool script then.
19785   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19786   if test -f "$ltmain_in"; then
19787     test -f Makefile && make "$ltmain"
19788   fi
19789 fi
19790
19791
19792 ac_ext=c
19793 ac_cpp='$CPP $CPPFLAGS'
19794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19797
19798 CC="$lt_save_CC"
19799
19800         ;;
19801
19802       *)
19803         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19804 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19805    { (exit 1); exit 1; }; }
19806         ;;
19807       esac
19808
19809       # Append the new tag name to the list of available tags.
19810       if test -n "$tagname" ; then
19811       available_tags="$available_tags $tagname"
19812     fi
19813     fi
19814   done
19815   IFS="$lt_save_ifs"
19816
19817   # Now substitute the updated list of available tags.
19818   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19819     mv "${ofile}T" "$ofile"
19820     chmod +x "$ofile"
19821   else
19822     rm -f "${ofile}T"
19823     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19824 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19825    { (exit 1); exit 1; }; }
19826   fi
19827 fi
19828
19829
19830
19831 # This can be used to rebuild libtool when needed
19832 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19833
19834 # Always use our own libtool.
19835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19836
19837 # Prevent multiple expansion
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859 case "$INSTALL" in
19860    *install-sh*)
19861       INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
19862       ;;
19863 esac
19864
19865 echo
19866 echo ---------------------------------------------
19867 echo testing C/C++
19868 echo ---------------------------------------------
19869 echo
19870
19871 cc_ok=no
19872 ac_ext=cpp
19873 ac_cpp='$CXXCPP $CPPFLAGS'
19874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19877 if test -z "$CXX"; then
19878   if test -n "$CCC"; then
19879     CXX=$CCC
19880   else
19881     if test -n "$ac_tool_prefix"; then
19882   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19883   do
19884     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19888 if test "${ac_cv_prog_CXX+set}" = set; then
19889   echo $ECHO_N "(cached) $ECHO_C" >&6
19890 else
19891   if test -n "$CXX"; then
19892   ac_cv_prog_CXX="$CXX" # Let the user override the test.
19893 else
19894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19895 for as_dir in $PATH
19896 do
19897   IFS=$as_save_IFS
19898   test -z "$as_dir" && as_dir=.
19899   for ac_exec_ext in '' $ac_executable_extensions; do
19900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19901     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19903     break 2
19904   fi
19905 done
19906 done
19907 IFS=$as_save_IFS
19908
19909 fi
19910 fi
19911 CXX=$ac_cv_prog_CXX
19912 if test -n "$CXX"; then
19913   { echo "$as_me:$LINENO: result: $CXX" >&5
19914 echo "${ECHO_T}$CXX" >&6; }
19915 else
19916   { echo "$as_me:$LINENO: result: no" >&5
19917 echo "${ECHO_T}no" >&6; }
19918 fi
19919
19920
19921     test -n "$CXX" && break
19922   done
19923 fi
19924 if test -z "$CXX"; then
19925   ac_ct_CXX=$CXX
19926   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19927 do
19928   # Extract the first word of "$ac_prog", so it can be a program name with args.
19929 set dummy $ac_prog; ac_word=$2
19930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19932 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   if test -n "$ac_ct_CXX"; then
19936   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19937 else
19938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19940 do
19941   IFS=$as_save_IFS
19942   test -z "$as_dir" && as_dir=.
19943   for ac_exec_ext in '' $ac_executable_extensions; do
19944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19945     ac_cv_prog_ac_ct_CXX="$ac_prog"
19946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19947     break 2
19948   fi
19949 done
19950 done
19951 IFS=$as_save_IFS
19952
19953 fi
19954 fi
19955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19956 if test -n "$ac_ct_CXX"; then
19957   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19958 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19959 else
19960   { echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6; }
19962 fi
19963
19964
19965   test -n "$ac_ct_CXX" && break
19966 done
19967
19968   if test "x$ac_ct_CXX" = x; then
19969     CXX="g++"
19970   else
19971     case $cross_compiling:$ac_tool_warned in
19972 yes:)
19973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19974 whose name does not start with the host triplet.  If you think this
19975 configuration is useful to you, please write to autoconf@gnu.org." >&5
19976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19977 whose name does not start with the host triplet.  If you think this
19978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19979 ac_tool_warned=yes ;;
19980 esac
19981     CXX=$ac_ct_CXX
19982   fi
19983 fi
19984
19985   fi
19986 fi
19987 # Provide some information about the compiler.
19988 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19989 ac_compiler=`set X $ac_compile; echo $2`
19990 { (ac_try="$ac_compiler --version >&5"
19991 case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_compiler --version >&5") 2>&5
19997   ac_status=$?
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); }
20000 { (ac_try="$ac_compiler -v >&5"
20001 case "(($ac_try" in
20002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003   *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006   (eval "$ac_compiler -v >&5") 2>&5
20007   ac_status=$?
20008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); }
20010 { (ac_try="$ac_compiler -V >&5"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016   (eval "$ac_compiler -V >&5") 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }
20020
20021 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20022 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20023 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032
20033 int
20034 main ()
20035 {
20036 #ifndef __GNUC__
20037        choke me
20038 #endif
20039
20040   ;
20041   return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (ac_try="$ac_compile"
20046 case "(($ac_try" in
20047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048   *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051   (eval "$ac_compile") 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } && {
20058          test -z "$ac_cxx_werror_flag" ||
20059          test ! -s conftest.err
20060        } && test -s conftest.$ac_objext; then
20061   ac_compiler_gnu=yes
20062 else
20063   echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066         ac_compiler_gnu=no
20067 fi
20068
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20071
20072 fi
20073 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20074 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20075 GXX=`test $ac_compiler_gnu = yes && echo yes`
20076 ac_test_CXXFLAGS=${CXXFLAGS+set}
20077 ac_save_CXXFLAGS=$CXXFLAGS
20078 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20079 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20080 if test "${ac_cv_prog_cxx_g+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20084    ac_cxx_werror_flag=yes
20085    ac_cv_prog_cxx_g=no
20086    CXXFLAGS="-g"
20087    cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093
20094 int
20095 main ()
20096 {
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_cxx_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest.$ac_objext; then
20119   ac_cv_prog_cxx_g=yes
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124         CXXFLAGS=""
20125       cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131
20132 int
20133 main ()
20134 {
20135
20136   ;
20137   return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_compile") 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } && {
20154          test -z "$ac_cxx_werror_flag" ||
20155          test ! -s conftest.err
20156        } && test -s conftest.$ac_objext; then
20157   :
20158 else
20159   echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20163          CXXFLAGS="-g"
20164          cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 int
20172 main ()
20173 {
20174
20175   ;
20176   return 0;
20177 }
20178 _ACEOF
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_compile") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } && {
20193          test -z "$ac_cxx_werror_flag" ||
20194          test ! -s conftest.err
20195        } && test -s conftest.$ac_objext; then
20196   ac_cv_prog_cxx_g=yes
20197 else
20198   echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201
20202 fi
20203
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 fi
20209
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20215 if test "$ac_test_CXXFLAGS" = set; then
20216   CXXFLAGS=$ac_save_CXXFLAGS
20217 elif test $ac_cv_prog_cxx_g = yes; then
20218   if test "$GXX" = yes; then
20219     CXXFLAGS="-g -O2"
20220   else
20221     CXXFLAGS="-g"
20222   fi
20223 else
20224   if test "$GXX" = yes; then
20225     CXXFLAGS="-O2"
20226   else
20227     CXXFLAGS=
20228   fi
20229 fi
20230 ac_ext=c
20231 ac_cpp='$CPP $CPPFLAGS'
20232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20235
20236 depcc="$CXX"  am_compiler_list=
20237
20238 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20239 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20240 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20244   # We make a subdir and do the tests there.  Otherwise we can end up
20245   # making bogus files that we don't know about and never remove.  For
20246   # instance it was reported that on HP-UX the gcc test will end up
20247   # making a dummy file named `D' -- because `-MD' means `put the output
20248   # in D'.
20249   mkdir conftest.dir
20250   # Copy depcomp to subdir because otherwise we won't find it if we're
20251   # using a relative directory.
20252   cp "$am_depcomp" conftest.dir
20253   cd conftest.dir
20254   # We will build objects and dependencies in a subdirectory because
20255   # it helps to detect inapplicable dependency modes.  For instance
20256   # both Tru64's cc and ICC support -MD to output dependencies as a
20257   # side effect of compilation, but ICC will put the dependencies in
20258   # the current directory while Tru64 will put them in the object
20259   # directory.
20260   mkdir sub
20261
20262   am_cv_CXX_dependencies_compiler_type=none
20263   if test "$am_compiler_list" = ""; then
20264      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20265   fi
20266   for depmode in $am_compiler_list; do
20267     # Setup a source with many dependencies, because some compilers
20268     # like to wrap large dependency lists on column 80 (with \), and
20269     # we should not choose a depcomp mode which is confused by this.
20270     #
20271     # We need to recreate these files for each test, as the compiler may
20272     # overwrite some of them when testing with obscure command lines.
20273     # This happens at least with the AIX C compiler.
20274     : > sub/conftest.c
20275     for i in 1 2 3 4 5 6; do
20276       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20277       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20278       # Solaris 8's {/usr,}/bin/sh.
20279       touch sub/conftst$i.h
20280     done
20281     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20282
20283     case $depmode in
20284     nosideeffect)
20285       # after this tag, mechanisms are not by side-effect, so they'll
20286       # only be used when explicitly requested
20287       if test "x$enable_dependency_tracking" = xyes; then
20288         continue
20289       else
20290         break
20291       fi
20292       ;;
20293     none) break ;;
20294     esac
20295     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20296     # mode.  It turns out that the SunPro C++ compiler does not properly
20297     # handle `-M -o', and we need to detect this.
20298     if depmode=$depmode \
20299        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20300        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20301        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20302          >/dev/null 2>conftest.err &&
20303        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20304        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20305        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20306        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20307       # icc doesn't choke on unknown options, it will just issue warnings
20308       # or remarks (even with -Werror).  So we grep stderr for any message
20309       # that says an option was ignored or not supported.
20310       # When given -MP, icc 7.0 and 7.1 complain thusly:
20311       #   icc: Command line warning: ignoring option '-M'; no argument required
20312       # The diagnosis changed in icc 8.0:
20313       #   icc: Command line remark: option '-MP' not supported
20314       if (grep 'ignoring option' conftest.err ||
20315           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20316         am_cv_CXX_dependencies_compiler_type=$depmode
20317         break
20318       fi
20319     fi
20320   done
20321
20322   cd ..
20323   rm -rf conftest.dir
20324 else
20325   am_cv_CXX_dependencies_compiler_type=none
20326 fi
20327
20328 fi
20329 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20330 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20331 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20332
20333  if
20334   test "x$enable_dependency_tracking" != xno \
20335   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20336   am__fastdepCXX_TRUE=
20337   am__fastdepCXX_FALSE='#'
20338 else
20339   am__fastdepCXX_TRUE='#'
20340   am__fastdepCXX_FALSE=
20341 fi
20342
20343
20344
20345
20346   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wparentheses" >&5
20347 echo $ECHO_N "checking wether $CXX accepts -Wparentheses... $ECHO_C" >&6; }
20348   cat > conftest.cxx <<EOF
20349 int main() { return 0; }
20350 EOF
20351   $CXX -Wparentheses conftest.cxx > conftest.log 2>&1
20352   var=`echo -Wparentheses | sed -e "s, .*$,," | sed -e "s,^-,,"`
20353 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20354   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20355     { echo "$as_me:$LINENO: result: no" >&5
20356 echo "${ECHO_T}no" >&6; }
20357     eval
20358   else
20359     { echo "$as_me:$LINENO: result: yes" >&5
20360 echo "${ECHO_T}yes" >&6; }
20361     CXXFLAGS="${CXXFLAGS} -Wparentheses"
20362     eval
20363   fi
20364
20365
20366   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wreturn-type" >&5
20367 echo $ECHO_N "checking wether $CXX accepts -Wreturn-type... $ECHO_C" >&6; }
20368   cat > conftest.cxx <<EOF
20369 int main() { return 0; }
20370 EOF
20371   $CXX -Wreturn-type conftest.cxx > conftest.log 2>&1
20372   var=`echo -Wreturn-type | sed -e "s, .*$,," | sed -e "s,^-,,"`
20373 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20374   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20375     { echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6; }
20377     eval
20378   else
20379     { echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6; }
20381     CXXFLAGS="${CXXFLAGS} -Wreturn-type"
20382     eval
20383   fi
20384
20385
20386   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wmissing-declarations" >&5
20387 echo $ECHO_N "checking wether $CXX accepts -Wmissing-declarations... $ECHO_C" >&6; }
20388   cat > conftest.cxx <<EOF
20389 int main() { return 0; }
20390 EOF
20391   $CXX -Wmissing-declarations conftest.cxx > conftest.log 2>&1
20392   var=`echo -Wmissing-declarations | sed -e "s, .*$,," | sed -e "s,^-,,"`
20393 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20394   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20395     { echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6; }
20397     eval
20398   else
20399     { echo "$as_me:$LINENO: result: yes" >&5
20400 echo "${ECHO_T}yes" >&6; }
20401     CXXFLAGS="${CXXFLAGS} -Wmissing-declarations"
20402     eval
20403   fi
20404
20405
20406   { echo "$as_me:$LINENO: checking wether $CXX accepts -Wunused" >&5
20407 echo $ECHO_N "checking wether $CXX accepts -Wunused... $ECHO_C" >&6; }
20408   cat > conftest.cxx <<EOF
20409 int main() { return 0; }
20410 EOF
20411   $CXX -Wunused conftest.cxx > conftest.log 2>&1
20412   var=`echo -Wunused | sed -e "s, .*$,," | sed -e "s,^-,,"`
20413 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20414   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20415     { echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6; }
20417     eval
20418   else
20419     { echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6; }
20421     CXXFLAGS="${CXXFLAGS} -Wunused"
20422     eval
20423   fi
20424
20425
20426
20427   for opt in -ftemplate-depth-42 "-pending_instantiations 42" ; do
20428
20429   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
20430 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
20431   cat > conftest.cxx <<EOF
20432 int main() { return 0; }
20433 EOF
20434   $CXX $opt conftest.cxx > conftest.log 2>&1
20435   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
20436 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20437   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20438     { echo "$as_me:$LINENO: result: no" >&5
20439 echo "${ECHO_T}no" >&6; }
20440     eval flag=no
20441   else
20442     { echo "$as_me:$LINENO: result: yes" >&5
20443 echo "${ECHO_T}yes" >&6; }
20444     CXXTMPDPTHFLAGS="${CXXTMPDPTHFLAGS} $opt"
20445     eval flag=yes
20446   fi
20447
20448     if test "$flag" = "yes"; then
20449       break
20450     fi
20451
20452   done
20453
20454   { echo "$as_me:$LINENO: checking wether $CXX accepts -tweak" >&5
20455 echo $ECHO_N "checking wether $CXX accepts -tweak... $ECHO_C" >&6; }
20456   cat > conftest.cxx <<EOF
20457 int main() { return 0; }
20458 EOF
20459   $CXX -tweak conftest.cxx > conftest.log 2>&1
20460   var=`echo -tweak | sed -e "s, .*$,," | sed -e "s,^-,,"`
20461 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20462   if grep -e $var conftest.log > /dev/null 2>&1 ; then
20463     { echo "$as_me:$LINENO: result: no" >&5
20464 echo "${ECHO_T}no" >&6; }
20465     eval
20466   else
20467     { echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6; }
20469     CXXFLAGS="${CXXFLAGS} -tweak"
20470     eval
20471   fi
20472
20473
20474
20475  { echo "$as_me:$LINENO: checking which flag for dependency information generation" >&5
20476 echo $ECHO_N "checking which flag for dependency information generation... $ECHO_C" >&6; }
20477
20478  ac_ext=c
20479 ac_cpp='$CPP $CPPFLAGS'
20480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20483
20484  echo "conftest.o: conftest.c" > conftest.verif
20485  echo "int  main() { return 0; }" > conftest.c
20486
20487 f77int="F77INT32"
20488 case  $host_os in
20489    irix5.* | irix6.* | osf4.* | osf5.* | linux*  )
20490
20491         linux64="true"
20492 # porting on intel processor 64 bits
20493         expr "$host_os" : 'linux' >/dev/null && ( test ! x"$host_cpu" = x"x86_64" && test ! x"$host_cpu" = x"ia64" ) && linux64="false"
20494         if test ! x"$linux64" = "xfalse" ; then
20495           echo "$as_me:$LINENO: checking for 64bits integers size in F77/F90" >&5
20496 echo $ECHO_N "checking for 64bits integers size in F77/F90... $ECHO_C" >&6
20497           # Check whether --enable-int64 or --disable-int64 was given.
20498 if test "${enable_int64+set}" = set; then
20499   enableval="$enable_int64"
20500
20501 fi;
20502           case "X-$enable_int64" in
20503             X-no)
20504              echo "$as_me:$LINENO: result: \"disabled\"" >&5
20505 echo "${ECHO_T}\"disabled\"" >&6
20506              SUFFIXES="_32"
20507              ;;
20508             *)
20509              echo "$as_me:$LINENO: result: \"enabled\"" >&5
20510 echo "${ECHO_T}\"enabled\"" >&6
20511              SUFFIXES=""
20512              f77int="F77INT64"
20513              ;;
20514           esac
20515         fi
20516      ;;
20517    *)
20518      ;;
20519 esac
20520
20521 case $host_os in
20522     linux*)
20523 # porting on intel processor 64 bits: if 64 bits processor, by default compilation in 64 bits
20524         if test x"$linux64" = x"true"; then \
20525           MACHINE="PCLINUX64${SUFFIXES}";
20526           CFLAGS=" -D_OCC64 ${CXXFLAGS}";
20527           CXXFLAGS=" -D_OCC64 ${CXXFLAGS}";\
20528         else \
20529           MACHINE=PCLINUX; \
20530         fi
20531         ;;
20532     hpux*)
20533         MACHINE=HP9000
20534         ;;
20535     aix4.*)
20536         MACHINE=RS6000
20537         host_os_novers=aix4.x
20538         ;;
20539     irix5.*)
20540         MACHINE="IRIX64${SUFFIXES}"
20541         host_os_novers=irix5.x
20542         ;;
20543     irix6.*)
20544         MACHINE="IRIX64${SUFFIXES}"
20545         host_os_novers=irix6.x
20546         ;;
20547     osf4.*)
20548         MACHINE="OSF1${SUFFIXES}"
20549         host_os_novers=osf4.x
20550         ;;
20551     osf5.*)
20552         MACHINE="OSF1${SUFFIXES}"
20553          host_os_novers=osf5.x
20554          ;;
20555     solaris2.*)
20556         MACHINE=SUN4SOL2
20557          host_os_novers=solaris2.x
20558          ;;
20559     uxpv*)
20560         MACHINE=VPP5000
20561          ;;
20562     *)
20563         MACHINE=
20564          host_os_novers=$host_os
20565          ;;
20566 esac
20567
20568  case $host_os in
20569    osf*)
20570      DEPCC=gcc
20571      DEPCXX=g++
20572      DEPCXXFLAGS=
20573      DIFFFLAGS="-w"
20574      ;;
20575    *)
20576      DEPCC=${CC-cc}
20577      DEPCXX=${CXX-c++}
20578      DEPCXXFLAGS="\${CXXFLAGS}"
20579      DIFFFLAGS="-b -B"
20580      ;;
20581  esac
20582  C_DEPEND_FLAG=
20583  for ac_C_DEPEND_FLAG in -xM -MM -M ; do
20584
20585     rm -f conftest.d conftest.err
20586     ${DEPCC} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err
20587     if test -f conftest.u ; then
20588        mv conftest.u conftest.d
20589     fi
20590
20591     rm -f conftest
20592     diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20593     if test ! -s conftest ; then
20594        C_DEPEND_FLAG=${ac_C_DEPEND_FLAG}
20595        break
20596     fi
20597  done
20598
20599  rm -f conftest.d conftest.err
20600  ${DEPCC} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err
20601  if test -f conftest.u ; then
20602     mv conftest.u conftest.d
20603  fi
20604  rm -f conftest
20605  diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20606  if test ! -s conftest ; then
20607     C_DEPEND_FLAG=${C_DEPEND_FLAG}" -MG"
20608  fi
20609
20610  rm -f conftest*
20611  if test "x${C_DEPEND_FLAG}" = "x" ; then
20612     echo "cannot determine flag (C language)"
20613     exit
20614  fi
20615
20616  printf " C :  ${DEPCC} ${C_DEPEND_FLAG}"
20617
20618  ac_ext=cpp
20619 ac_cpp='$CXXCPP $CPPFLAGS'
20620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20623
20624  echo "conftest.o: conftest.cxx" > conftest.verif
20625  echo "int  main() { return 0; }" > conftest.cxx
20626
20627  CXX_DEPEND_FLAG=
20628  for ac_CXX_DEPEND_FLAG in -xM -MM -M ; do
20629
20630     rm -f conftest.d conftest.err
20631     ${DEPCXX} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err
20632     if test -f conftest.u ; then
20633        mv conftest.u conftest.d
20634     fi
20635
20636     rm -f conftest
20637     diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20638     if test ! -s conftest ; then
20639        CXX_DEPEND_FLAG=${ac_CXX_DEPEND_FLAG}
20640        break
20641     fi
20642  done
20643
20644  rm -f conftest.d conftest.err
20645  ${DEPCXX} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err
20646  if test -f conftest.u ; then
20647     mv conftest.u conftest.d
20648  fi
20649  rm -f conftest
20650  diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20651  if test ! -s conftest ; then
20652     CXX_DEPEND_FLAG=${CXX_DEPEND_FLAG}" -MG"
20653  fi
20654
20655
20656  rm -f conftest*
20657  if test "x${CXX_DEPEND_FLAG}" = "x" ; then
20658     echo "cannot determine flag (C++ language)"
20659     exit
20660  fi
20661
20662  printf " C++ : ${DEPCXX} ${CXX_DEPEND_FLAG}"
20663  ac_ext=c
20664 ac_cpp='$CPP $CPPFLAGS'
20665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20668
20669
20670  { echo "$as_me:$LINENO: result:  ... done" >&5
20671 echo "${ECHO_T} ... done" >&6; }
20672
20673
20674
20675
20676
20677
20678
20679
20680 # AC_CC_WARNINGS([ansi])
20681 cc_ok=yes
20682
20683
20684 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20685 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20687   echo $ECHO_N "(cached) $ECHO_C" >&6
20688 else
20689   ac_check_lib_save_LIBS=$LIBS
20690 LIBS="-ldl  $LIBS"
20691 cat >conftest.$ac_ext <<_ACEOF
20692 /* confdefs.h.  */
20693 _ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h.  */
20697
20698 /* Override any GCC internal prototype to avoid an error.
20699    Use char because int might match the return type of a GCC
20700    builtin and then its argument prototype would still apply.  */
20701 #ifdef __cplusplus
20702 extern "C"
20703 #endif
20704 char dlopen ();
20705 int
20706 main ()
20707 {
20708 return dlopen ();
20709   ;
20710   return 0;
20711 }
20712 _ACEOF
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717   *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720   (eval "$ac_link") 2>conftest.er1
20721   ac_status=$?
20722   grep -v '^ *+' conftest.er1 >conftest.err
20723   rm -f conftest.er1
20724   cat conftest.err >&5
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); } && {
20727          test -z "$ac_c_werror_flag" ||
20728          test ! -s conftest.err
20729        } && test -s conftest$ac_exeext &&
20730        $as_test_x conftest$ac_exeext; then
20731   ac_cv_lib_dl_dlopen=yes
20732 else
20733   echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736         ac_cv_lib_dl_dlopen=no
20737 fi
20738
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740       conftest$ac_exeext conftest.$ac_ext
20741 LIBS=$ac_check_lib_save_LIBS
20742 fi
20743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20745 if test $ac_cv_lib_dl_dlopen = yes; then
20746   cat >>confdefs.h <<_ACEOF
20747 #define HAVE_LIBDL 1
20748 _ACEOF
20749
20750   LIBS="-ldl $LIBS"
20751
20752 fi
20753
20754
20755
20756 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
20757 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
20758 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
20759   echo $ECHO_N "(cached) $ECHO_C" >&6
20760 else
20761   ac_check_lib_save_LIBS=$LIBS
20762 LIBS="-lrt  $LIBS"
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h.  */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h.  */
20769
20770 /* Override any GCC internal prototype to avoid an error.
20771    Use char because int might match the return type of a GCC
20772    builtin and then its argument prototype would still apply.  */
20773 #ifdef __cplusplus
20774 extern "C"
20775 #endif
20776 char nanosleep ();
20777 int
20778 main ()
20779 {
20780 return nanosleep ();
20781   ;
20782   return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (ac_try="$ac_link"
20787 case "(($ac_try" in
20788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789   *) ac_try_echo=$ac_try;;
20790 esac
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792   (eval "$ac_link") 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } && {
20799          test -z "$ac_c_werror_flag" ||
20800          test ! -s conftest.err
20801        } && test -s conftest$ac_exeext &&
20802        $as_test_x conftest$ac_exeext; then
20803   ac_cv_lib_rt_nanosleep=yes
20804 else
20805   echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20807
20808         ac_cv_lib_rt_nanosleep=no
20809 fi
20810
20811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20812       conftest$ac_exeext conftest.$ac_ext
20813 LIBS=$ac_check_lib_save_LIBS
20814 fi
20815 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
20816 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
20817 if test $ac_cv_lib_rt_nanosleep = yes; then
20818   cat >>confdefs.h <<_ACEOF
20819 #define HAVE_LIBRT 1
20820 _ACEOF
20821
20822   LIBS="-lrt $LIBS"
20823
20824 fi
20825
20826
20827
20828 { echo "$as_me:$LINENO: checking for ceil in -lm" >&5
20829 echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
20830 if test "${ac_cv_lib_m_ceil+set}" = set; then
20831   echo $ECHO_N "(cached) $ECHO_C" >&6
20832 else
20833   ac_check_lib_save_LIBS=$LIBS
20834 LIBS="-lm  $LIBS"
20835 cat >conftest.$ac_ext <<_ACEOF
20836 /* confdefs.h.  */
20837 _ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h.  */
20841
20842 /* Override any GCC internal prototype to avoid an error.
20843    Use char because int might match the return type of a GCC
20844    builtin and then its argument prototype would still apply.  */
20845 #ifdef __cplusplus
20846 extern "C"
20847 #endif
20848 char ceil ();
20849 int
20850 main ()
20851 {
20852 return ceil ();
20853   ;
20854   return 0;
20855 }
20856 _ACEOF
20857 rm -f conftest.$ac_objext conftest$ac_exeext
20858 if { (ac_try="$ac_link"
20859 case "(($ac_try" in
20860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861   *) ac_try_echo=$ac_try;;
20862 esac
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864   (eval "$ac_link") 2>conftest.er1
20865   ac_status=$?
20866   grep -v '^ *+' conftest.er1 >conftest.err
20867   rm -f conftest.er1
20868   cat conftest.err >&5
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); } && {
20871          test -z "$ac_c_werror_flag" ||
20872          test ! -s conftest.err
20873        } && test -s conftest$ac_exeext &&
20874        $as_test_x conftest$ac_exeext; then
20875   ac_cv_lib_m_ceil=yes
20876 else
20877   echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880         ac_cv_lib_m_ceil=no
20881 fi
20882
20883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884       conftest$ac_exeext conftest.$ac_ext
20885 LIBS=$ac_check_lib_save_LIBS
20886 fi
20887 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
20888 echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
20889 if test $ac_cv_lib_m_ceil = yes; then
20890   cat >>confdefs.h <<_ACEOF
20891 #define HAVE_LIBM 1
20892 _ACEOF
20893
20894   LIBS="-lm $LIBS"
20895
20896 fi
20897
20898
20899
20900
20901 { echo "$as_me:$LINENO: checking whether the compiler use std iostream" >&5
20902 echo $ECHO_N "checking whether the compiler use std iostream... $ECHO_C" >&6; }
20903
20904 cat > conftest.cxx <<EOF
20905 #include <iostream>
20906 int main(int argc, char **argv) {std::cout << "Hello" << std::endl; return 0;}
20907 EOF
20908
20909 fUSE_STD_IOSTREAM=no
20910 for ac_CXX_USE_STD_IOSTREAM in "" -D__USE_STD_IOSTREAM ; do
20911   if $CXX ${ac_CXX_USE_STD_IOSTREAM} conftest.cxx > /dev/null 2>&1; then
20912     CPPFLAGS="$CPPFLAGS ${ac_CXX_USE_STD_IOSTREAM}"
20913     if test x${ac_CXX_USE_STD_IOSTREAM} = x; then
20914       { echo "$as_me:$LINENO: result: yes" >&5
20915 echo "${ECHO_T}yes" >&6; }
20916     else
20917       { echo "$as_me:$LINENO: result: ${ac_CXX_USE_STD_IOSTREAM}" >&5
20918 echo "${ECHO_T}${ac_CXX_USE_STD_IOSTREAM}" >&6; }
20919     fi
20920     fUSE_STD_IOSTREAM=yes
20921     break
20922   fi
20923 done
20924 if test $fUSE_STD_IOSTREAM = no; then
20925   { echo "$as_me:$LINENO: result: no" >&5
20926 echo "${ECHO_T}no" >&6; }
20927 fi
20928
20929
20930 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20931 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
20932 if test "${ac_cv_cxx_namespaces+set}" = set; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935
20936  ac_ext=cpp
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20941
20942  cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 namespace Outer { namespace Inner { int i = 0; }}
20949 int
20950 main ()
20951 {
20952 using namespace Outer::Inner; return i;
20953   ;
20954   return 0;
20955 }
20956 _ACEOF
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_compile") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } && {
20971          test -z "$ac_cxx_werror_flag" ||
20972          test ! -s conftest.err
20973        } && test -s conftest.$ac_objext; then
20974   ac_cv_cxx_namespaces=yes
20975 else
20976   echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979         ac_cv_cxx_namespaces=no
20980 fi
20981
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983  ac_ext=c
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988
20989
20990 fi
20991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20992 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
20993 if test "$ac_cv_cxx_namespaces" = yes; then
20994
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_NAMESPACES
20997 _ACEOF
20998
20999 fi
21000
21001
21002   { echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
21003 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6; }
21004 if test "${ac_cv_prog_cxx_have_sstream+set}" = set; then
21005   echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21007   ac_cv_prog_cxx_have_sstream=no
21008
21009
21010     ac_ext=cpp
21011 ac_cpp='$CXXCPP $CPPFLAGS'
21012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21015
21016     cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h.  */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h.  */
21022
21023       #include <sstream>
21024       #ifdef HAVE_NAMESPACES
21025       using namespace std;
21026       #endif
21027
21028 int
21029 main ()
21030 {
21031 stringstream message; message << "Hello"; return 0;
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_compile") 2>conftest.er1
21044   ac_status=$?
21045   grep -v '^ *+' conftest.er1 >conftest.err
21046   rm -f conftest.er1
21047   cat conftest.err >&5
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); } && {
21050          test -z "$ac_cxx_werror_flag" ||
21051          test ! -s conftest.err
21052        } && test -s conftest.$ac_objext; then
21053   ac_cv_prog_cxx_have_sstream=yes
21054 else
21055   echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058         ac_cv_prog_cxx_have_sstream=no
21059 fi
21060
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062     ac_ext=c
21063 ac_cpp='$CPP $CPPFLAGS'
21064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21067
21068
21069 fi
21070 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_have_sstream" >&5
21071 echo "${ECHO_T}$ac_cv_prog_cxx_have_sstream" >&6; }
21072   HAVE_SSTREAM=$ac_cv_prog_cxx_have_sstream
21073
21074
21075
21076
21077
21078
21079   { echo "$as_me:$LINENO: checking for LIB_LOCATION_SUFFIX..." >&5
21080 echo "$as_me: checking for LIB_LOCATION_SUFFIX..." >&6;}
21081   LIB_LOCATION_SUFFIX=""
21082
21083   { echo "$as_me:$LINENO: result: LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&5
21084 echo "${ECHO_T}LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&6; }
21085
21086   for opt in "-Xlinker -export-dynamic" -transitive_link; do
21087
21088   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
21089 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
21090   cat > conftest.cxx <<EOF
21091 int main() { return 0; }
21092 EOF
21093   $CXX $opt conftest.cxx > conftest.log 2>&1
21094   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
21095 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
21096   if grep -e $var conftest.log > /dev/null 2>&1 ; then
21097     { echo "$as_me:$LINENO: result: no" >&5
21098 echo "${ECHO_T}no" >&6; }
21099     eval flag=no
21100   else
21101     { echo "$as_me:$LINENO: result: yes" >&5
21102 echo "${ECHO_T}yes" >&6; }
21103     LDEXPDYNFLAGS="${LDEXPDYNFLAGS} $opt"
21104     eval flag=yes
21105   fi
21106
21107     if test "$flag" = "yes"; then
21108       break
21109     fi
21110   done
21111
21112
21113   for opt in "-Xlinker -enable-new-dtags" ; do
21114
21115   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
21116 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
21117   cat > conftest.cxx <<EOF
21118 int main() { return 0; }
21119 EOF
21120   $CXX $opt conftest.cxx > conftest.log 2>&1
21121   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
21122 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
21123   if grep -e $var conftest.log > /dev/null 2>&1 ; then
21124     { echo "$as_me:$LINENO: result: no" >&5
21125 echo "${ECHO_T}no" >&6; }
21126     eval
21127   else
21128     { echo "$as_me:$LINENO: result: yes" >&5
21129 echo "${ECHO_T}yes" >&6; }
21130     LDFLAGS="${LDFLAGS} $opt"
21131     eval
21132   fi
21133
21134   done
21135
21136
21137   case $host_os in
21138     osf*)
21139       STDLIB="-lcxxstd"
21140       ;;
21141     *)
21142       STDLIB="-lstdc++"
21143       ;;
21144   esac
21145
21146
21147
21148 echo
21149 echo ---------------------------------------------
21150 echo testing threads
21151 echo ---------------------------------------------
21152 echo
21153
21154
21155
21156
21157 ac_ext=c
21158 ac_cpp='$CPP $CPPFLAGS'
21159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162
21163 acx_pthread_ok=no
21164
21165 # We used to check for pthread.h first, but this fails if pthread.h
21166 # requires special compiler flags (e.g. on True64 or Sequent).
21167 # It gets checked for in the link test anyway.
21168
21169 # First of all, check if the user has set any of the PTHREAD_LIBS,
21170 # etcetera environment variables, and if threads linking works using
21171 # them:
21172 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21173         save_CFLAGS="$CFLAGS"
21174         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21175         save_LIBS="$LIBS"
21176         LIBS="$PTHREAD_LIBS $LIBS"
21177         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21178 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
21179         cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h.  */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h.  */
21185
21186 /* Override any GCC internal prototype to avoid an error.
21187    Use char because int might match the return type of a GCC
21188    builtin and then its argument prototype would still apply.  */
21189 #ifdef __cplusplus
21190 extern "C"
21191 #endif
21192 char pthread_join ();
21193 int
21194 main ()
21195 {
21196 return pthread_join ();
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
21203 case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_link") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest$ac_exeext &&
21218        $as_test_x conftest$ac_exeext; then
21219   acx_pthread_ok=yes
21220 else
21221   echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228       conftest$ac_exeext conftest.$ac_ext
21229         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21230 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21231         if test x"$acx_pthread_ok" = xno; then
21232                 PTHREAD_LIBS=""
21233                 PTHREAD_CFLAGS=""
21234         fi
21235         LIBS="$save_LIBS"
21236         CFLAGS="$save_CFLAGS"
21237 fi
21238
21239 # We must check for the threads library under a number of different
21240 # names; the ordering is very important because some systems
21241 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21242 # libraries is broken (non-POSIX).
21243
21244 # Create a list of thread flags to try.  Items starting with a "-" are
21245 # C compiler flags, and other items are library names, except for "none"
21246 # which indicates that we try without any flags at all, and "pthread-config"
21247 # which is a program returning the flags for the Pth emulation library.
21248
21249 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21250
21251 # The ordering *is* (sometimes) important.  Some notes on the
21252 # individual items follow:
21253
21254 # pthreads: AIX (must check this before -lpthread)
21255 # none: in case threads are in libc; should be tried before -Kthread and
21256 #       other compiler flags to prevent continual compiler warnings
21257 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21258 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21259 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21260 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21261 # -pthreads: Solaris/gcc
21262 # -mthreads: Mingw32/gcc, Lynx/gcc
21263 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21264 #      doesn't hurt to check since this sometimes defines pthreads too;
21265 #      also defines -D_REENTRANT)
21266 # pthread: Linux, etcetera
21267 # --thread-safe: KAI C++
21268 # pthread-config: use pthread-config program (for GNU Pth library)
21269
21270 case "${host_cpu}-${host_os}" in
21271         *linux*)
21272
21273         # On linux "none" works, but boost requires -pthread, so, try first "-pthread"
21274 acx_pthread_flags="-pthread pthreads none -Kthread -kthread lthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21275         ;;
21276
21277         *solaris*)
21278
21279         # On Solaris (at least, for some versions), libc contains stubbed
21280         # (non-functional) versions of the pthreads routines, so link-based
21281         # tests will erroneously succeed.  (We need to link with -pthread or
21282         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21283         # a function called by this macro, so we could check for that, but
21284         # who knows whether they'll stub that too in a future libc.)  So,
21285         # we'll just look for -pthreads and -lpthread first:
21286
21287         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21288         ;;
21289 esac
21290
21291 if test x"$acx_pthread_ok" = xno; then
21292 for flag in $acx_pthread_flags; do
21293
21294         case $flag in
21295                 none)
21296                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21297 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
21298                 ;;
21299
21300                 -*)
21301                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21302 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
21303                 PTHREAD_CFLAGS="$flag"
21304                 ;;
21305
21306                 pthread-config)
21307                 # Extract the first word of "pthread-config", so it can be a program name with args.
21308 set dummy pthread-config; ac_word=$2
21309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21311 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21312   echo $ECHO_N "(cached) $ECHO_C" >&6
21313 else
21314   if test -n "$acx_pthread_config"; then
21315   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21316 else
21317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21318 for as_dir in $PATH
21319 do
21320   IFS=$as_save_IFS
21321   test -z "$as_dir" && as_dir=.
21322   for ac_exec_ext in '' $ac_executable_extensions; do
21323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21324     ac_cv_prog_acx_pthread_config="yes"
21325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21326     break 2
21327   fi
21328 done
21329 done
21330 IFS=$as_save_IFS
21331
21332   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21333 fi
21334 fi
21335 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21336 if test -n "$acx_pthread_config"; then
21337   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21338 echo "${ECHO_T}$acx_pthread_config" >&6; }
21339 else
21340   { echo "$as_me:$LINENO: result: no" >&5
21341 echo "${ECHO_T}no" >&6; }
21342 fi
21343
21344
21345                 if test x"$acx_pthread_config" = xno; then continue; fi
21346                 PTHREAD_CFLAGS="`pthread-config --cflags`"
21347                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21348                 ;;
21349
21350                 *)
21351                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21352 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
21353                 PTHREAD_LIBS="-l$flag"
21354                 ;;
21355         esac
21356
21357         save_LIBS="$LIBS"
21358         save_CFLAGS="$CFLAGS"
21359         LIBS="$PTHREAD_LIBS $LIBS"
21360         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21361
21362         # Check for various functions.  We must include pthread.h,
21363         # since some functions may be macros.  (On the Sequent, we
21364         # need a special flag -Kthread to make this header compile.)
21365         # We check for pthread_join because it is in -lpthread on IRIX
21366         # while pthread_create is in libc.  We check for pthread_attr_init
21367         # due to DEC craziness with -lpthreads.  We check for
21368         # pthread_cleanup_push because it is one of the few pthread
21369         # functions on Solaris that doesn't have a non-functional libc stub.
21370         # We try pthread_create on general principles.
21371         cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h.  */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h.  */
21377 #include <pthread.h>
21378 int
21379 main ()
21380 {
21381 pthread_t th; pthread_join(th, 0);
21382                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
21383                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21384   ;
21385   return 0;
21386 }
21387 _ACEOF
21388 rm -f conftest.$ac_objext conftest$ac_exeext
21389 if { (ac_try="$ac_link"
21390 case "(($ac_try" in
21391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392   *) ac_try_echo=$ac_try;;
21393 esac
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395   (eval "$ac_link") 2>conftest.er1
21396   ac_status=$?
21397   grep -v '^ *+' conftest.er1 >conftest.err
21398   rm -f conftest.er1
21399   cat conftest.err >&5
21400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401   (exit $ac_status); } && {
21402          test -z "$ac_c_werror_flag" ||
21403          test ! -s conftest.err
21404        } && test -s conftest$ac_exeext &&
21405        $as_test_x conftest$ac_exeext; then
21406   acx_pthread_ok=yes
21407 else
21408   echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411
21412 fi
21413
21414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21415       conftest$ac_exeext conftest.$ac_ext
21416
21417         LIBS="$save_LIBS"
21418         CFLAGS="$save_CFLAGS"
21419
21420         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21421 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21422         if test "x$acx_pthread_ok" = xyes; then
21423                 break;
21424         fi
21425
21426         PTHREAD_LIBS=""
21427         PTHREAD_CFLAGS=""
21428 done
21429 fi
21430
21431 # Various other checks:
21432 if test "x$acx_pthread_ok" = xyes; then
21433         save_LIBS="$LIBS"
21434         LIBS="$PTHREAD_LIBS $LIBS"
21435         save_CFLAGS="$CFLAGS"
21436         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21437
21438         # Detect AIX lossage: threads are created detached by default
21439         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21440         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21441 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
21442         cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448 #include <pthread.h>
21449 int
21450 main ()
21451 {
21452 int attr=PTHREAD_CREATE_JOINABLE;
21453   ;
21454   return 0;
21455 }
21456 _ACEOF
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (ac_try="$ac_link"
21459 case "(($ac_try" in
21460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461   *) ac_try_echo=$ac_try;;
21462 esac
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464   (eval "$ac_link") 2>conftest.er1
21465   ac_status=$?
21466   grep -v '^ *+' conftest.er1 >conftest.err
21467   rm -f conftest.er1
21468   cat conftest.err >&5
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); } && {
21471          test -z "$ac_c_werror_flag" ||
21472          test ! -s conftest.err
21473        } && test -s conftest$ac_exeext &&
21474        $as_test_x conftest$ac_exeext; then
21475   ok=PTHREAD_CREATE_JOINABLE
21476 else
21477   echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21479
21480         ok=unknown
21481 fi
21482
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484       conftest$ac_exeext conftest.$ac_ext
21485         if test x"$ok" = xunknown; then
21486                 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <pthread.h>
21493 int
21494 main ()
21495 {
21496 int attr=PTHREAD_CREATE_UNDETACHED;
21497   ;
21498   return 0;
21499 }
21500 _ACEOF
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (ac_try="$ac_link"
21503 case "(($ac_try" in
21504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505   *) ac_try_echo=$ac_try;;
21506 esac
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508   (eval "$ac_link") 2>conftest.er1
21509   ac_status=$?
21510   grep -v '^ *+' conftest.er1 >conftest.err
21511   rm -f conftest.er1
21512   cat conftest.err >&5
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); } && {
21515          test -z "$ac_c_werror_flag" ||
21516          test ! -s conftest.err
21517        } && test -s conftest$ac_exeext &&
21518        $as_test_x conftest$ac_exeext; then
21519   ok=PTHREAD_CREATE_UNDETACHED
21520 else
21521   echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524         ok=unknown
21525 fi
21526
21527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21528       conftest$ac_exeext conftest.$ac_ext
21529         fi
21530         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21531
21532 cat >>confdefs.h <<\_ACEOF
21533 #define PTHREAD_CREATE_JOINABLE $ok
21534 _ACEOF
21535
21536         fi
21537         { echo "$as_me:$LINENO: result: ${ok}" >&5
21538 echo "${ECHO_T}${ok}" >&6; }
21539         if test x"$ok" = xunknown; then
21540                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21541 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21542         fi
21543
21544         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21545 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
21546         flag=no
21547         case "${host_cpu}-${host_os}" in
21548                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21549                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21550         esac
21551         { echo "$as_me:$LINENO: result: ${flag}" >&5
21552 echo "${ECHO_T}${flag}" >&6; }
21553         if test "x$flag" != xno; then
21554                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21555         fi
21556
21557         LIBS="$save_LIBS"
21558         CFLAGS="$save_CFLAGS"
21559
21560         # More AIX lossage: must compile with cc_r
21561         # Extract the first word of "cc_r", so it can be a program name with args.
21562 set dummy cc_r; ac_word=$2
21563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21565 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21566   echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568   if test -n "$PTHREAD_CC"; then
21569   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21570 else
21571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21572 for as_dir in $PATH
21573 do
21574   IFS=$as_save_IFS
21575   test -z "$as_dir" && as_dir=.
21576   for ac_exec_ext in '' $ac_executable_extensions; do
21577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21578     ac_cv_prog_PTHREAD_CC="cc_r"
21579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21580     break 2
21581   fi
21582 done
21583 done
21584 IFS=$as_save_IFS
21585
21586   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21587 fi
21588 fi
21589 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21590 if test -n "$PTHREAD_CC"; then
21591   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21592 echo "${ECHO_T}$PTHREAD_CC" >&6; }
21593 else
21594   { echo "$as_me:$LINENO: result: no" >&5
21595 echo "${ECHO_T}no" >&6; }
21596 fi
21597
21598
21599 else
21600         PTHREAD_CC="$CC"
21601 fi
21602
21603
21604
21605
21606
21607 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21608 if test x"$acx_pthread_ok" = xyes; then
21609
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_PTHREAD 1
21612 _ACEOF
21613
21614         :
21615 else
21616         acx_pthread_ok=no
21617
21618 fi
21619 ac_ext=c
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21624
21625
21626
21627
21628
21629 if test x"$enable_pthreads_done" != xyes; then
21630   if test x"$acx_pthread_ok" = xyes; then
21631     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21632     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
21633     LIBS="$LIBS $PTHREAD_LIBS"
21634     threads_ok=yes
21635   else
21636     threads_ok=no
21637   fi
21638   enable_pthreads_done=yes
21639 fi
21640
21641
21642 echo
21643 echo ---------------------------------------------
21644 echo testing python
21645 echo ---------------------------------------------
21646 echo
21647
21648
21649   python_ok=yes
21650
21651
21652 # Check whether --with-python was given.
21653 if test "${with_python+set}" = set; then
21654   withval=$with_python; PYTHON="$withval/bin/python"
21655     { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
21656 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
21657
21658 else
21659
21660     # Extract the first word of "python", so it can be a program name with args.
21661 set dummy python; ac_word=$2
21662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21664 if test "${ac_cv_path_PYTHON+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   case $PYTHON in
21668   [\\/]* | ?:[\\/]*)
21669   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21670   ;;
21671   *)
21672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21674 do
21675   IFS=$as_save_IFS
21676   test -z "$as_dir" && as_dir=.
21677   for ac_exec_ext in '' $ac_executable_extensions; do
21678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21679     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21681     break 2
21682   fi
21683 done
21684 done
21685 IFS=$as_save_IFS
21686
21687   ;;
21688 esac
21689 fi
21690 PYTHON=$ac_cv_path_PYTHON
21691 if test -n "$PYTHON"; then
21692   { echo "$as_me:$LINENO: result: $PYTHON" >&5
21693 echo "${ECHO_T}$PYTHON" >&6; }
21694 else
21695   { echo "$as_me:$LINENO: result: no" >&5
21696 echo "${ECHO_T}no" >&6; }
21697 fi
21698
21699
21700
21701 fi
21702
21703
21704   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
21705 echo "$as_me: checking local Python configuration..." >&6;}
21706
21707
21708   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21709   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21710   PYTHONHOME=$PYTHON_PREFIX
21711
21712
21713
21714
21715     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
21716
21717
21718   PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
21719   if test ! -f "$PY_MAKEFILE"; then
21720      { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
21721 *** missing the development portion of the python installation" >&5
21722 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
21723 *** missing the development portion of the python installation" >&2;}
21724      python_ok=no
21725   fi
21726
21727
21728
21729
21730   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
21731   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
21732   PYTHON_LIB=$PYTHON_LIBS
21733   PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
21734
21735
21736
21737   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
21738
21739
21740
21741 # Check whether --with-python-site was given.
21742 if test "${with_python_site+set}" = set; then
21743   withval=$with_python_site;
21744
21745    PYTHON_SITE="$withval"
21746     python_site_given=yes
21747 else
21748   PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21749     python_site_given=no
21750 fi
21751
21752
21753
21754   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
21755
21756
21757
21758
21759
21760 # Check whether --with-python-site-exec was given.
21761 if test "${with_python_site_exec+set}" = set; then
21762   withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
21763 else
21764   if test "$python_site_given" = yes; then
21765        PYTHON_SITE_EXEC=$PYTHON_SITE
21766      else
21767        PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21768      fi
21769 fi
21770
21771
21772     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
21773
21774
21775
21776   pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
21777
21778
21779  { echo "$as_me:$LINENO: checking if we need libdb" >&5
21780 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
21781  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
21782   if test "x$PY_NEEDOPENDB" != "x"; then
21783      { echo "$as_me:$LINENO: result: yes" >&5
21784 echo "${ECHO_T}yes" >&6; }
21785      { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
21786 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
21787 if test "${ac_cv_lib_db_dbopen+set}" = set; then
21788   echo $ECHO_N "(cached) $ECHO_C" >&6
21789 else
21790   ac_check_lib_save_LIBS=$LIBS
21791 LIBS="-ldb  $LIBS"
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798
21799 /* Override any GCC internal prototype to avoid an error.
21800    Use char because int might match the return type of a GCC
21801    builtin and then its argument prototype would still apply.  */
21802 #ifdef __cplusplus
21803 extern "C"
21804 #endif
21805 char dbopen ();
21806 int
21807 main ()
21808 {
21809 return dbopen ();
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (ac_try="$ac_link"
21816 case "(($ac_try" in
21817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818   *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821   (eval "$ac_link") 2>conftest.er1
21822   ac_status=$?
21823   grep -v '^ *+' conftest.er1 >conftest.err
21824   rm -f conftest.er1
21825   cat conftest.err >&5
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); } && {
21828          test -z "$ac_c_werror_flag" ||
21829          test ! -s conftest.err
21830        } && test -s conftest$ac_exeext &&
21831        $as_test_x conftest$ac_exeext; then
21832   ac_cv_lib_db_dbopen=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837         ac_cv_lib_db_dbopen=no
21838 fi
21839
21840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841       conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21843 fi
21844 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
21845 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
21846 if test $ac_cv_lib_db_dbopen = yes; then
21847   PYTHON_LIBS="$PYTHON_LIBS -ldb"
21848 else
21849   db_ok=no
21850 fi
21851
21852   else
21853      { echo "$as_me:$LINENO: result: no" >&5
21854 echo "${ECHO_T}no" >&6; }
21855   fi
21856
21857  { echo "$as_me:$LINENO: checking if we need libdl" >&5
21858 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
21859   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
21860   if test "x$PY_NEEDOPENDL" != "x"; then
21861      { echo "$as_me:$LINENO: result: yes" >&5
21862 echo "${ECHO_T}yes" >&6; }
21863      { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866   echo $ECHO_N "(cached) $ECHO_C" >&6
21867 else
21868   ac_check_lib_save_LIBS=$LIBS
21869 LIBS="-ldl  $LIBS"
21870 cat >conftest.$ac_ext <<_ACEOF
21871 /* confdefs.h.  */
21872 _ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h.  */
21876
21877 /* Override any GCC internal prototype to avoid an error.
21878    Use char because int might match the return type of a GCC
21879    builtin and then its argument prototype would still apply.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 char dlopen ();
21884 int
21885 main ()
21886 {
21887 return dlopen ();
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896   *) ac_try_echo=$ac_try;;
21897 esac
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899   (eval "$ac_link") 2>conftest.er1
21900   ac_status=$?
21901   grep -v '^ *+' conftest.er1 >conftest.err
21902   rm -f conftest.er1
21903   cat conftest.err >&5
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); } && {
21906          test -z "$ac_c_werror_flag" ||
21907          test ! -s conftest.err
21908        } && test -s conftest$ac_exeext &&
21909        $as_test_x conftest$ac_exeext; then
21910   ac_cv_lib_dl_dlopen=yes
21911 else
21912   echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21914
21915         ac_cv_lib_dl_dlopen=no
21916 fi
21917
21918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21919       conftest$ac_exeext conftest.$ac_ext
21920 LIBS=$ac_check_lib_save_LIBS
21921 fi
21922 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21923 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21924 if test $ac_cv_lib_dl_dlopen = yes; then
21925   PYTHON_LIBS="$PYTHON_LIBS -ldl"
21926 else
21927   dl_ok=no
21928 fi
21929
21930   else
21931      { echo "$as_me:$LINENO: result: no" >&5
21932 echo "${ECHO_T}no" >&6; }
21933   fi
21934
21935  { echo "$as_me:$LINENO: checking if we need libutil" >&5
21936 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
21937   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
21938   if test "x$PY_NEEDOPENPTY" != "x"; then
21939      { echo "$as_me:$LINENO: result: yes" >&5
21940 echo "${ECHO_T}yes" >&6; }
21941      { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
21942 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
21943 if test "${ac_cv_lib_util_openpty+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   ac_check_lib_save_LIBS=$LIBS
21947 LIBS="-lutil  $LIBS"
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954
21955 /* Override any GCC internal prototype to avoid an error.
21956    Use char because int might match the return type of a GCC
21957    builtin and then its argument prototype would still apply.  */
21958 #ifdef __cplusplus
21959 extern "C"
21960 #endif
21961 char openpty ();
21962 int
21963 main ()
21964 {
21965 return openpty ();
21966   ;
21967   return 0;
21968 }
21969 _ACEOF
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_link") 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } && {
21984          test -z "$ac_c_werror_flag" ||
21985          test ! -s conftest.err
21986        } && test -s conftest$ac_exeext &&
21987        $as_test_x conftest$ac_exeext; then
21988   ac_cv_lib_util_openpty=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993         ac_cv_lib_util_openpty=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997       conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
21999 fi
22000 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
22001 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
22002 if test $ac_cv_lib_util_openpty = yes; then
22003   PYTHON_LIBS="$PYTHON_LIBS -lutil"
22004 else
22005   openpty_ok=no
22006 fi
22007
22008   else
22009      { echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6; }
22011   fi
22012
22013  { echo "$as_me:$LINENO: checking if we need tcltk" >&5
22014 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
22015   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
22016   if test "x$PY_NEEDTCLTK" != "x"; then
22017      { echo "$as_me:$LINENO: result: yes" >&5
22018 echo "${ECHO_T}yes" >&6; }
22019      { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
22020 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
22021 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
22022   echo $ECHO_N "(cached) $ECHO_C" >&6
22023 else
22024   ac_check_lib_save_LIBS=$LIBS
22025 LIBS="-ltcl  $LIBS"
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h.  */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h.  */
22032
22033 /* Override any GCC internal prototype to avoid an error.
22034    Use char because int might match the return type of a GCC
22035    builtin and then its argument prototype would still apply.  */
22036 #ifdef __cplusplus
22037 extern "C"
22038 #endif
22039 char Tcl_Init ();
22040 int
22041 main ()
22042 {
22043 return Tcl_Init ();
22044   ;
22045   return 0;
22046 }
22047 _ACEOF
22048 rm -f conftest.$ac_objext conftest$ac_exeext
22049 if { (ac_try="$ac_link"
22050 case "(($ac_try" in
22051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052   *) ac_try_echo=$ac_try;;
22053 esac
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055   (eval "$ac_link") 2>conftest.er1
22056   ac_status=$?
22057   grep -v '^ *+' conftest.er1 >conftest.err
22058   rm -f conftest.er1
22059   cat conftest.err >&5
22060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061   (exit $ac_status); } && {
22062          test -z "$ac_c_werror_flag" ||
22063          test ! -s conftest.err
22064        } && test -s conftest$ac_exeext &&
22065        $as_test_x conftest$ac_exeext; then
22066   ac_cv_lib_tcl_Tcl_Init=yes
22067 else
22068   echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071         ac_cv_lib_tcl_Tcl_Init=no
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22075       conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22077 fi
22078 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
22079 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
22080 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
22081   PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
22082 else
22083   tclinit_ok=no
22084 fi
22085
22086   else
22087      { echo "$as_me:$LINENO: result: no" >&5
22088 echo "${ECHO_T}no" >&6; }
22089   fi
22090
22091   if test "$python_ok" == "yes"; then
22092       { echo "$as_me:$LINENO: result: looks good" >&5
22093 echo "${ECHO_T}looks good" >&6; }
22094   fi
22095
22096
22097
22098
22099
22100
22101         if test -n "$PYTHON"; then
22102       # If the user set $PYTHON, use it and don't search something else.
22103       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
22104 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
22105       prog="import sys, string
22106 # split strings by '.' and convert to numeric.  Append some zeros
22107 # because we need at least 4 digits for the hex conversion.
22108 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
22109 minverhex = 0
22110 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
22111 sys.exit(sys.hexversion < minverhex)"
22112   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22113    ($PYTHON -c "$prog") >&5 2>&5
22114    ac_status=$?
22115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116    (exit $ac_status); }; then
22117   { echo "$as_me:$LINENO: result: yes" >&5
22118 echo "${ECHO_T}yes" >&6; }
22119 else
22120   { { echo "$as_me:$LINENO: error: too old" >&5
22121 echo "$as_me: error: too old" >&2;}
22122    { (exit 1); exit 1; }; }
22123 fi
22124
22125       am_display_PYTHON=$PYTHON
22126     else
22127       # Otherwise, try each interpreter until we find one that satisfies
22128       # VERSION.
22129       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
22130 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
22131 if test "${am_cv_pathless_PYTHON+set}" = set; then
22132   echo $ECHO_N "(cached) $ECHO_C" >&6
22133 else
22134
22135         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
22136           test "$am_cv_pathless_PYTHON" = none && break
22137           prog="import sys, string
22138 # split strings by '.' and convert to numeric.  Append some zeros
22139 # because we need at least 4 digits for the hex conversion.
22140 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
22141 minverhex = 0
22142 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
22143 sys.exit(sys.hexversion < minverhex)"
22144   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22145    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22146    ac_status=$?
22147    echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148    (exit $ac_status); }; then
22149   break
22150 fi
22151
22152         done
22153 fi
22154 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
22155 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
22156       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22157       if test "$am_cv_pathless_PYTHON" = none; then
22158         PYTHON=:
22159       else
22160         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22161 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22164 if test "${ac_cv_path_PYTHON+set}" = set; then
22165   echo $ECHO_N "(cached) $ECHO_C" >&6
22166 else
22167   case $PYTHON in
22168   [\\/]* | ?:[\\/]*)
22169   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22170   ;;
22171   *)
22172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22173 for as_dir in $PATH
22174 do
22175   IFS=$as_save_IFS
22176   test -z "$as_dir" && as_dir=.
22177   for ac_exec_ext in '' $ac_executable_extensions; do
22178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22179     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22181     break 2
22182   fi
22183 done
22184 done
22185 IFS=$as_save_IFS
22186
22187   ;;
22188 esac
22189 fi
22190 PYTHON=$ac_cv_path_PYTHON
22191 if test -n "$PYTHON"; then
22192   { echo "$as_me:$LINENO: result: $PYTHON" >&5
22193 echo "${ECHO_T}$PYTHON" >&6; }
22194 else
22195   { echo "$as_me:$LINENO: result: no" >&5
22196 echo "${ECHO_T}no" >&6; }
22197 fi
22198
22199
22200       fi
22201       am_display_PYTHON=$am_cv_pathless_PYTHON
22202     fi
22203
22204
22205   if test "$PYTHON" = :; then
22206       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
22207 echo "$as_me: error: no suitable Python interpreter found" >&2;}
22208    { (exit 1); exit 1; }; }
22209   else
22210
22211
22212   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
22213 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
22214 if test "${am_cv_python_version+set}" = set; then
22215   echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
22218 fi
22219 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
22220 echo "${ECHO_T}$am_cv_python_version" >&6; }
22221   PYTHON_VERSION=$am_cv_python_version
22222
22223
22224
22225   PYTHON_PREFIX='${prefix}'
22226
22227   PYTHON_EXEC_PREFIX='${exec_prefix}'
22228
22229
22230
22231   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22232 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22233 if test "${am_cv_python_platform+set}" = set; then
22234   echo $ECHO_N "(cached) $ECHO_C" >&6
22235 else
22236   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22237 fi
22238 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22239 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22240   PYTHON_PLATFORM=$am_cv_python_platform
22241
22242
22243
22244
22245                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22246 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22247 if test "${am_cv_python_pythondir+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22251      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22252 fi
22253 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22254 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22255   pythondir=$am_cv_python_pythondir
22256
22257
22258
22259   pkgpythondir=\${pythondir}/$PACKAGE
22260
22261
22262             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22263 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22264 if test "${am_cv_python_pyexecdir+set}" = set; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22268      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22269 fi
22270 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22271 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22272   pyexecdir=$am_cv_python_pyexecdir
22273
22274
22275
22276   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22277
22278
22279
22280   fi
22281
22282
22283
22284 echo
22285 echo ---------------------------------------------
22286 echo testing QT
22287 echo ---------------------------------------------
22288 echo
22289
22290
22291
22292
22293
22294 ac_ext=cpp
22295 ac_cpp='$CXXCPP $CPPFLAGS'
22296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22299
22300
22301
22302 # Check whether --with-opengl was given.
22303 if test "${with_opengl+set}" = set; then
22304   withval=$with_opengl; opengl_dir="$withval"
22305 else
22306   dirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/graphics/OpenGL/lib64 /opt/graphics/OpenGL/lib /usr/openwin/lib64 /usr/openwin/lib /usr/X11R6/lib64 /usr/X11R6/lib"
22307 fi
22308
22309 { echo "$as_me:$LINENO: checking for OpenGL..." >&5
22310 echo "$as_me: checking for OpenGL..." >&6;}
22311 { echo "$as_me:$LINENO: checking for OpenGL headers..." >&5
22312 echo "$as_me: checking for OpenGL headers..." >&6;}
22313
22314 OGL_INCLUDES=""
22315 OGL_LIBS=""
22316
22317 GL_LIB_PATH=""
22318 GLU_LIB_PATH=""
22319
22320 OpenGL_ok=no
22321 OpenGL_libs_ok=no
22322 OpenGL_headers_ok=no
22323
22324 # by default
22325 if test "x${opengl_dir}" != "x" ; then
22326   { echo "$as_me:$LINENO: result: for opengl_dir: $opengl_dir" >&5
22327 echo "${ECHO_T}for opengl_dir: $opengl_dir" >&6; }
22328   as_ac_Header=`echo "ac_cv_header_${opengl_dir}/include/GL/gl.h" | $as_tr_sh`
22329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22330   { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22331 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 fi
22335 ac_res=`eval echo '${'$as_ac_Header'}'`
22336                { echo "$as_me:$LINENO: result: $ac_res" >&5
22337 echo "${ECHO_T}$ac_res" >&6; }
22338 else
22339   # Is the header compilable?
22340 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h usability" >&5
22341 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h usability... $ECHO_C" >&6; }
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 $ac_includes_default
22349 #include <${opengl_dir}/include/GL/gl.h>
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355   *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358   (eval "$ac_compile") 2>conftest.er1
22359   ac_status=$?
22360   grep -v '^ *+' conftest.er1 >conftest.err
22361   rm -f conftest.er1
22362   cat conftest.err >&5
22363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364   (exit $ac_status); } && {
22365          test -z "$ac_cxx_werror_flag" ||
22366          test ! -s conftest.err
22367        } && test -s conftest.$ac_objext; then
22368   ac_header_compiler=yes
22369 else
22370   echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373         ac_header_compiler=no
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22378 echo "${ECHO_T}$ac_header_compiler" >&6; }
22379
22380 # Is the header present?
22381 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h presence" >&5
22382 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h presence... $ECHO_C" >&6; }
22383 cat >conftest.$ac_ext <<_ACEOF
22384 /* confdefs.h.  */
22385 _ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h.  */
22389 #include <${opengl_dir}/include/GL/gl.h>
22390 _ACEOF
22391 if { (ac_try="$ac_cpp conftest.$ac_ext"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } >/dev/null && {
22404          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22405          test ! -s conftest.err
22406        }; then
22407   ac_header_preproc=yes
22408 else
22409   echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412   ac_header_preproc=no
22413 fi
22414
22415 rm -f conftest.err conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22417 echo "${ECHO_T}$ac_header_preproc" >&6; }
22418
22419 # So?  What about this header?
22420 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22421   yes:no: )
22422     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22423 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22424     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&5
22425 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&2;}
22426     ac_header_preproc=yes
22427     ;;
22428   no:yes:* )
22429     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&5
22430 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&2;}
22431     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h:     check for missing prerequisite headers?" >&5
22432 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h:     check for missing prerequisite headers?" >&2;}
22433     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&5
22434 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&2;}
22435     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
22436 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22437     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&5
22438 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&2;}
22439     { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&5
22440 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&2;}
22441     ( cat <<\_ASBOX
22442 ## ----------------------------------------------- ##
22443 ## Report this to webmaster.salome@opencascade.com ##
22444 ## ----------------------------------------------- ##
22445 _ASBOX
22446      ) | sed "s/^/$as_me: WARNING:     /" >&2
22447     ;;
22448 esac
22449 { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22450 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22452   echo $ECHO_N "(cached) $ECHO_C" >&6
22453 else
22454   eval "$as_ac_Header=\$ac_header_preproc"
22455 fi
22456 ac_res=`eval echo '${'$as_ac_Header'}'`
22457                { echo "$as_me:$LINENO: result: $ac_res" >&5
22458 echo "${ECHO_T}$ac_res" >&6; }
22459
22460 fi
22461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22462   OpenGL_headers_ok=yes; OGL_INCLUDES="-I${opengl_dir}/include"
22463 else
22464   OpenGL_headers_ok=no
22465 fi
22466
22467
22468   if test "x${OpenGL_headers_ok}" = "xyes" ; then
22469     { echo "$as_me:$LINENO: checking for default OpenGL library..." >&5
22470 echo "$as_me: checking for default OpenGL library..." >&6;}
22471     if test "x${opengl_dir}" = "x/usr" ; then
22472       OGL_LIBS=""
22473     else
22474       OGL_LIBS="-L${opengl_dir}/lib"
22475     fi
22476     LDFLAGS_old="$LDFLAGS"
22477     LDFLAGS="$LDFLAGS $OGL_LIBS"
22478     { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
22479 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
22480 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   ac_check_lib_save_LIBS=$LIBS
22484 LIBS="-lGL  $LIBS"
22485 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491
22492 /* Override any GCC internal prototype to avoid an error.
22493    Use char because int might match the return type of a GCC
22494    builtin and then its argument prototype would still apply.  */
22495 #ifdef __cplusplus
22496 extern "C"
22497 #endif
22498 char glBegin ();
22499 int
22500 main ()
22501 {
22502 return glBegin ();
22503   ;
22504   return 0;
22505 }
22506 _ACEOF
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (ac_try="$ac_link"
22509 case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_link") 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } && {
22521          test -z "$ac_cxx_werror_flag" ||
22522          test ! -s conftest.err
22523        } && test -s conftest$ac_exeext &&
22524        $as_test_x conftest$ac_exeext; then
22525   ac_cv_lib_GL_glBegin=yes
22526 else
22527   echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22529
22530         ac_cv_lib_GL_glBegin=no
22531 fi
22532
22533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22534       conftest$ac_exeext conftest.$ac_ext
22535 LIBS=$ac_check_lib_save_LIBS
22536 fi
22537 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
22538 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
22539 if test $ac_cv_lib_GL_glBegin = yes; then
22540   OpenGL_libs_ok=yes
22541 else
22542   OpenGL_libs_ok=no
22543 fi
22544
22545     if test "x${OpenGL_libs_ok}" = "xyes" ; then
22546       cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552
22553 int
22554 main ()
22555 {
22556
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_link") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_cxx_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest$ac_exeext &&
22578        $as_test_x conftest$ac_exeext; then
22579   OpenGL_libs_ok=yes ; OpenGL_ok=yes; OGL_LIBS="$OGL_LIBS -lGL"
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584         OpenGL_libs_ok=no
22585 fi
22586
22587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22588       conftest$ac_exeext conftest.$ac_ext
22589     fi
22590     LDFLAGS="$LDFLAGS_old"
22591   fi
22592 fi
22593
22594 if test "x${OpenGL_headers_ok}" = "xno" ; then
22595   if test "${ac_cv_header_GL_gl_h+set}" = set; then
22596   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22597 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22598 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 fi
22601 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22603 else
22604   # Is the header compilable?
22605 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
22606 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
22607 cat >conftest.$ac_ext <<_ACEOF
22608 /* confdefs.h.  */
22609 _ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h.  */
22613 $ac_includes_default
22614 #include <GL/gl.h>
22615 _ACEOF
22616 rm -f conftest.$ac_objext
22617 if { (ac_try="$ac_compile"
22618 case "(($ac_try" in
22619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620   *) ac_try_echo=$ac_try;;
22621 esac
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623   (eval "$ac_compile") 2>conftest.er1
22624   ac_status=$?
22625   grep -v '^ *+' conftest.er1 >conftest.err
22626   rm -f conftest.er1
22627   cat conftest.err >&5
22628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629   (exit $ac_status); } && {
22630          test -z "$ac_cxx_werror_flag" ||
22631          test ! -s conftest.err
22632        } && test -s conftest.$ac_objext; then
22633   ac_header_compiler=yes
22634 else
22635   echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638         ac_header_compiler=no
22639 fi
22640
22641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22643 echo "${ECHO_T}$ac_header_compiler" >&6; }
22644
22645 # Is the header present?
22646 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
22647 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 #include <GL/gl.h>
22655 _ACEOF
22656 if { (ac_try="$ac_cpp conftest.$ac_ext"
22657 case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22663   ac_status=$?
22664   grep -v '^ *+' conftest.er1 >conftest.err
22665   rm -f conftest.er1
22666   cat conftest.err >&5
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); } >/dev/null && {
22669          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22670          test ! -s conftest.err
22671        }; then
22672   ac_header_preproc=yes
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677   ac_header_preproc=no
22678 fi
22679
22680 rm -f conftest.err conftest.$ac_ext
22681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22682 echo "${ECHO_T}$ac_header_preproc" >&6; }
22683
22684 # So?  What about this header?
22685 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22686   yes:no: )
22687     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22688 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22689     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
22690 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
22691     ac_header_preproc=yes
22692     ;;
22693   no:yes:* )
22694     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
22695 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
22696     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
22697 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
22698     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
22699 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
22700     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
22701 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22702     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22703 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
22704     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
22705 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
22706     ( cat <<\_ASBOX
22707 ## ----------------------------------------------- ##
22708 ## Report this to webmaster.salome@opencascade.com ##
22709 ## ----------------------------------------------- ##
22710 _ASBOX
22711      ) | sed "s/^/$as_me: WARNING:     /" >&2
22712     ;;
22713 esac
22714 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22715 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22716 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22717   echo $ECHO_N "(cached) $ECHO_C" >&6
22718 else
22719   ac_cv_header_GL_gl_h=$ac_header_preproc
22720 fi
22721 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22722 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22723
22724 fi
22725 if test $ac_cv_header_GL_gl_h = yes; then
22726   OpenGL_headers_ok=yes
22727 else
22728   OpenGL_headers_ok=no
22729 fi
22730
22731
22732 fi
22733
22734 # under SunOS ?
22735 if test "x${OpenGL_headers_ok}" = "xno" ; then
22736
22737 for ac_header in /usr/openwin/share/include/GL/glxmd.h
22738 do
22739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22741   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22744   echo $ECHO_N "(cached) $ECHO_C" >&6
22745 fi
22746 ac_res=`eval echo '${'$as_ac_Header'}'`
22747                { echo "$as_me:$LINENO: result: $ac_res" >&5
22748 echo "${ECHO_T}$ac_res" >&6; }
22749 else
22750   # Is the header compilable?
22751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22753 cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 $ac_includes_default
22760 #include <$ac_header>
22761 _ACEOF
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766   *) ac_try_echo=$ac_try;;
22767 esac
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769   (eval "$ac_compile") 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } && {
22776          test -z "$ac_cxx_werror_flag" ||
22777          test ! -s conftest.err
22778        } && test -s conftest.$ac_objext; then
22779   ac_header_compiler=yes
22780 else
22781   echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22783
22784         ac_header_compiler=no
22785 fi
22786
22787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22789 echo "${ECHO_T}$ac_header_compiler" >&6; }
22790
22791 # Is the header present?
22792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22794 cat >conftest.$ac_ext <<_ACEOF
22795 /* confdefs.h.  */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h.  */
22800 #include <$ac_header>
22801 _ACEOF
22802 if { (ac_try="$ac_cpp conftest.$ac_ext"
22803 case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22809   ac_status=$?
22810   grep -v '^ *+' conftest.er1 >conftest.err
22811   rm -f conftest.er1
22812   cat conftest.err >&5
22813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814   (exit $ac_status); } >/dev/null && {
22815          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22816          test ! -s conftest.err
22817        }; then
22818   ac_header_preproc=yes
22819 else
22820   echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823   ac_header_preproc=no
22824 fi
22825
22826 rm -f conftest.err conftest.$ac_ext
22827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22828 echo "${ECHO_T}$ac_header_preproc" >&6; }
22829
22830 # So?  What about this header?
22831 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22832   yes:no: )
22833     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22837     ac_header_preproc=yes
22838     ;;
22839   no:yes:* )
22840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22842     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22843 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22844     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22846     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22847 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22850     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22852     ( cat <<\_ASBOX
22853 ## ----------------------------------------------- ##
22854 ## Report this to webmaster.salome@opencascade.com ##
22855 ## ----------------------------------------------- ##
22856 _ASBOX
22857      ) | sed "s/^/$as_me: WARNING:     /" >&2
22858     ;;
22859 esac
22860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22863   echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865   eval "$as_ac_Header=\$ac_header_preproc"
22866 fi
22867 ac_res=`eval echo '${'$as_ac_Header'}'`
22868                { echo "$as_me:$LINENO: result: $ac_res" >&5
22869 echo "${ECHO_T}$ac_res" >&6; }
22870
22871 fi
22872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22873   cat >>confdefs.h <<_ACEOF
22874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22875 _ACEOF
22876  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/openwin/share/include/"
22877 else
22878   OpenGL_headers_ok=no
22879 fi
22880
22881 done
22882
22883 fi
22884
22885 # under IRIX ?
22886 if test "x${OpenGL_headers_ok}" = "xno" ; then
22887
22888 for ac_header in /opt/graphics/OpenGL/include/GL/glxmd.h
22889 do
22890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22892   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 fi
22897 ac_res=`eval echo '${'$as_ac_Header'}'`
22898                { echo "$as_me:$LINENO: result: $ac_res" >&5
22899 echo "${ECHO_T}$ac_res" >&6; }
22900 else
22901   # Is the header compilable?
22902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910 $ac_includes_default
22911 #include <$ac_header>
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_compile") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_cxx_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest.$ac_objext; then
22930   ac_header_compiler=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_header_compiler=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22940 echo "${ECHO_T}$ac_header_compiler" >&6; }
22941
22942 # Is the header present?
22943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22946 /* confdefs.h.  */
22947 _ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h.  */
22951 #include <$ac_header>
22952 _ACEOF
22953 if { (ac_try="$ac_cpp conftest.$ac_ext"
22954 case "(($ac_try" in
22955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956   *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22960   ac_status=$?
22961   grep -v '^ *+' conftest.er1 >conftest.err
22962   rm -f conftest.er1
22963   cat conftest.err >&5
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); } >/dev/null && {
22966          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22967          test ! -s conftest.err
22968        }; then
22969   ac_header_preproc=yes
22970 else
22971   echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22973
22974   ac_header_preproc=no
22975 fi
22976
22977 rm -f conftest.err conftest.$ac_ext
22978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22979 echo "${ECHO_T}$ac_header_preproc" >&6; }
22980
22981 # So?  What about this header?
22982 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22983   yes:no: )
22984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22988     ac_header_preproc=yes
22989     ;;
22990   no:yes:* )
22991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23003     ( cat <<\_ASBOX
23004 ## ----------------------------------------------- ##
23005 ## Report this to webmaster.salome@opencascade.com ##
23006 ## ----------------------------------------------- ##
23007 _ASBOX
23008      ) | sed "s/^/$as_me: WARNING:     /" >&2
23009     ;;
23010 esac
23011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014   echo $ECHO_N "(cached) $ECHO_C" >&6
23015 else
23016   eval "$as_ac_Header=\$ac_header_preproc"
23017 fi
23018 ac_res=`eval echo '${'$as_ac_Header'}'`
23019                { echo "$as_me:$LINENO: result: $ac_res" >&5
23020 echo "${ECHO_T}$ac_res" >&6; }
23021
23022 fi
23023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23024   cat >>confdefs.h <<_ACEOF
23025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23026 _ACEOF
23027  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/opt/graphics/OpenGL/include"
23028 else
23029   OpenGL_headers_ok=no
23030 fi
23031
23032 done
23033
23034 fi
23035
23036 # some linux OpenGL servers hide the includes in /usr/X11R6/include/GL
23037 if test "x${OpenGL_headers_ok}" = "xno" ; then
23038
23039 for ac_header in /usr/X11R6/include/GL/gl.h
23040 do
23041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23046   echo $ECHO_N "(cached) $ECHO_C" >&6
23047 fi
23048 ac_res=`eval echo '${'$as_ac_Header'}'`
23049                { echo "$as_me:$LINENO: result: $ac_res" >&5
23050 echo "${ECHO_T}$ac_res" >&6; }
23051 else
23052   # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061 $ac_includes_default
23062 #include <$ac_header>
23063 _ACEOF
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068   *) ac_try_echo=$ac_try;;
23069 esac
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071   (eval "$ac_compile") 2>conftest.er1
23072   ac_status=$?
23073   grep -v '^ *+' conftest.er1 >conftest.err
23074   rm -f conftest.er1
23075   cat conftest.err >&5
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); } && {
23078          test -z "$ac_cxx_werror_flag" ||
23079          test ! -s conftest.err
23080        } && test -s conftest.$ac_objext; then
23081   ac_header_compiler=yes
23082 else
23083   echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086         ac_header_compiler=no
23087 fi
23088
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23092
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 #include <$ac_header>
23103 _ACEOF
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107   *) ac_try_echo=$ac_try;;
23108 esac
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23111   ac_status=$?
23112   grep -v '^ *+' conftest.er1 >conftest.err
23113   rm -f conftest.er1
23114   cat conftest.err >&5
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } >/dev/null && {
23117          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23118          test ! -s conftest.err
23119        }; then
23120   ac_header_preproc=yes
23121 else
23122   echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125   ac_header_preproc=no
23126 fi
23127
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23131
23132 # So?  What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23134   yes:no: )
23135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23139     ac_header_preproc=yes
23140     ;;
23141   no:yes:* )
23142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23154     ( cat <<\_ASBOX
23155 ## ----------------------------------------------- ##
23156 ## Report this to webmaster.salome@opencascade.com ##
23157 ## ----------------------------------------------- ##
23158 _ASBOX
23159      ) | sed "s/^/$as_me: WARNING:     /" >&2
23160     ;;
23161 esac
23162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165   echo $ECHO_N "(cached) $ECHO_C" >&6
23166 else
23167   eval "$as_ac_Header=\$ac_header_preproc"
23168 fi
23169 ac_res=`eval echo '${'$as_ac_Header'}'`
23170                { echo "$as_me:$LINENO: result: $ac_res" >&5
23171 echo "${ECHO_T}$ac_res" >&6; }
23172
23173 fi
23174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23175   cat >>confdefs.h <<_ACEOF
23176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23177 _ACEOF
23178  OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/X11R6/include"
23179 else
23180   OpenGL_headers_ok=no
23181 fi
23182
23183 done
23184
23185 fi
23186
23187 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23188   { echo "$as_me:$LINENO: checking for OpenGL library..." >&5
23189 echo "$as_me: checking for OpenGL library..." >&6;}
23190   for idir in $dirs; do
23191     if test -r "${idir}/libGL.so"; then
23192       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23193 echo "${ECHO_T}in ${idir}" >&6; }
23194       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23195         GL_LIB_PATH=""
23196       else
23197         GL_LIB_PATH="-L${idir}"
23198       fi
23199       break
23200     fi
23201     # under IRIX ?
23202     if test -r "${idir}/libGL.sl"; then
23203       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23204 echo "${ECHO_T}in ${idir}" >&6; }
23205       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23206         GL_LIB_PATH=""
23207       else
23208         GL_LIB_PATH="-L${idir}"
23209       fi
23210       break
23211     fi
23212   done
23213   LDFLAGS_old="${LDFLAGS}"
23214   LDFLAGS="${LDFLAGS} ${GL_LIB_PATH}"
23215   { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
23216 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
23217 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
23218   echo $ECHO_N "(cached) $ECHO_C" >&6
23219 else
23220   ac_check_lib_save_LIBS=$LIBS
23221 LIBS="-lGL  $LIBS"
23222 cat >conftest.$ac_ext <<_ACEOF
23223 /* confdefs.h.  */
23224 _ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h.  */
23228
23229 /* Override any GCC internal prototype to avoid an error.
23230    Use char because int might match the return type of a GCC
23231    builtin and then its argument prototype would still apply.  */
23232 #ifdef __cplusplus
23233 extern "C"
23234 #endif
23235 char glBegin ();
23236 int
23237 main ()
23238 {
23239 return glBegin ();
23240   ;
23241   return 0;
23242 }
23243 _ACEOF
23244 rm -f conftest.$ac_objext conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248   *) ac_try_echo=$ac_try;;
23249 esac
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251   (eval "$ac_link") 2>conftest.er1
23252   ac_status=$?
23253   grep -v '^ *+' conftest.er1 >conftest.err
23254   rm -f conftest.er1
23255   cat conftest.err >&5
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); } && {
23258          test -z "$ac_cxx_werror_flag" ||
23259          test ! -s conftest.err
23260        } && test -s conftest$ac_exeext &&
23261        $as_test_x conftest$ac_exeext; then
23262   ac_cv_lib_GL_glBegin=yes
23263 else
23264   echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267         ac_cv_lib_GL_glBegin=no
23268 fi
23269
23270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23271       conftest$ac_exeext conftest.$ac_ext
23272 LIBS=$ac_check_lib_save_LIBS
23273 fi
23274 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
23275 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
23276 if test $ac_cv_lib_GL_glBegin = yes; then
23277   OpenGL_libs_ok=yes
23278 else
23279   OpenGL_libs_ok=no
23280 fi
23281
23282   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23283     cat >conftest.$ac_ext <<_ACEOF
23284 /* confdefs.h.  */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h.  */
23289
23290 int
23291 main ()
23292 {
23293
23294   ;
23295   return 0;
23296 }
23297 _ACEOF
23298 rm -f conftest.$ac_objext conftest$ac_exeext
23299 if { (ac_try="$ac_link"
23300 case "(($ac_try" in
23301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302   *) ac_try_echo=$ac_try;;
23303 esac
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305   (eval "$ac_link") 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } && {
23312          test -z "$ac_cxx_werror_flag" ||
23313          test ! -s conftest.err
23314        } && test -s conftest$ac_exeext &&
23315        $as_test_x conftest$ac_exeext; then
23316   OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GL_LIB_PATH} -lGL"
23317 else
23318   echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23320
23321         OpenGL_libs_ok=no
23322 fi
23323
23324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23325       conftest$ac_exeext conftest.$ac_ext
23326   fi
23327   LDFLAGS="$LDFLAGS_old"
23328 fi
23329
23330 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23331   for idir in $dirs; do
23332     if test -r "${idir}/libGLU.so"; then
23333       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23334 echo "${ECHO_T}in ${idir}" >&6; }
23335       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23336         GLU_LIB_PATH=""
23337       else
23338         GLU_LIB_PATH="-L${idir}"
23339       fi
23340       break
23341     fi
23342     # under IRIX ?
23343     if test -r "${idir}/libGLU.sl"; then
23344       { echo "$as_me:$LINENO: result: in ${idir}" >&5
23345 echo "${ECHO_T}in ${idir}" >&6; }
23346       if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23347         GLU_LIB_PATH=""
23348       else
23349         GLU_LIB_PATH="-L${idir}"
23350       fi
23351       break
23352     fi
23353   done
23354
23355   # workaround a problem with libGL library location
23356   for idir in $dirs; do
23357     if test -r "${idir}/libGLU.la"; then
23358       GLU_LA_PATH="${idir}/libGLU.la"
23359       GL_LA_PATH_TO_CHECK=`cat ${GLU_LA_PATH} | awk '{ for(i=1;i<NF;i++){ if(gsub("libGL.la","&",$i)>0) print $i } }'`
23360       if test -z ${GL_LA_PATH_TO_CHECK} || test -r ${GL_LA_PATH_TO_CHECK}; then
23361         # nothing to do
23362         break
23363       fi
23364       for jdir in $dirs; do
23365         if test -r "${jdir}/libGL.la"; then
23366           GL_LA_PATH="${jdir}/libGL.la"
23367           # copy the libGLU.la file and set correct libGL.la path in it
23368           NEW_GLU_LA_PATH=${ROOT_BUILDDIR}
23369           NEW_GLU_LA_FILE="${NEW_GLU_LA_PATH}/libGLU.la"
23370           sed -e "s%${GL_LA_PATH_TO_CHECK}%${GL_LA_PATH}%" ${GLU_LA_PATH} > "${NEW_GLU_LA_FILE}"
23371           chmod -f --reference=${GLU_LA_PATH} "${NEW_GLU_LA_FILE}"
23372           # set a new libGLU.la path
23373           GLU_LIB_PATH="-L${NEW_GLU_LA_PATH}"
23374           # create a simbolic link to libGLU.so
23375           for kdir in $dirs; do
23376             if test -r "${kdir}/libGLU.so"; then
23377               cp -fs "${kdir}/libGLU.so" "${NEW_GLU_LA_PATH}/libGLU.so"
23378               break
23379             fi
23380           done
23381           break
23382         fi
23383       done
23384       break
23385     fi
23386   done
23387
23388   LDFLAGS_old="${LDFLAGS}"
23389   LDFLAGS="${LDFLAGS} ${OGL_LIBS} ${GLU_LIB_PATH}"
23390   { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
23391 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
23392 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
23393   echo $ECHO_N "(cached) $ECHO_C" >&6
23394 else
23395   ac_check_lib_save_LIBS=$LIBS
23396 LIBS="-lGLU  $LIBS"
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403
23404 /* Override any GCC internal prototype to avoid an error.
23405    Use char because int might match the return type of a GCC
23406    builtin and then its argument prototype would still apply.  */
23407 #ifdef __cplusplus
23408 extern "C"
23409 #endif
23410 char gluBeginSurface ();
23411 int
23412 main ()
23413 {
23414 return gluBeginSurface ();
23415   ;
23416   return 0;
23417 }
23418 _ACEOF
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426   (eval "$ac_link") 2>conftest.er1
23427   ac_status=$?
23428   grep -v '^ *+' conftest.er1 >conftest.err
23429   rm -f conftest.er1
23430   cat conftest.err >&5
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } && {
23433          test -z "$ac_cxx_werror_flag" ||
23434          test ! -s conftest.err
23435        } && test -s conftest$ac_exeext &&
23436        $as_test_x conftest$ac_exeext; then
23437   ac_cv_lib_GLU_gluBeginSurface=yes
23438 else
23439   echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23441
23442         ac_cv_lib_GLU_gluBeginSurface=no
23443 fi
23444
23445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23446       conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23448 fi
23449 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
23450 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
23451 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
23452   OpenGL_libs_ok=yes
23453 else
23454   OpenGL_libs_ok=no
23455 fi
23456
23457   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23458     cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464
23465 int
23466 main ()
23467 {
23468
23469   ;
23470   return 0;
23471 }
23472 _ACEOF
23473 rm -f conftest.$ac_objext conftest$ac_exeext
23474 if { (ac_try="$ac_link"
23475 case "(($ac_try" in
23476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477   *) ac_try_echo=$ac_try;;
23478 esac
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480   (eval "$ac_link") 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } && {
23487          test -z "$ac_cxx_werror_flag" ||
23488          test ! -s conftest.err
23489        } && test -s conftest$ac_exeext &&
23490        $as_test_x conftest$ac_exeext; then
23491   OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GLU_LIB_PATH} -lGLU"
23492 else
23493   echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23495
23496         OpenGL_libs_ok=no
23497 fi
23498
23499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500       conftest$ac_exeext conftest.$ac_ext
23501   fi
23502   LDFLAGS="$LDFLAGS_old"
23503 fi
23504
23505 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23506   if test "x${OpenGL_libs_ok}" = "xyes" ; then
23507     OpenGL_ok=yes
23508   fi
23509 fi
23510
23511 { echo "$as_me:$LINENO: result: for OpenGL_headers_ok: $OpenGL_headers_ok" >&5
23512 echo "${ECHO_T}for OpenGL_headers_ok: $OpenGL_headers_ok" >&6; }
23513 { echo "$as_me:$LINENO: result: for OpenGL_libs_ok: $OpenGL_libs_ok" >&5
23514 echo "${ECHO_T}for OpenGL_libs_ok: $OpenGL_libs_ok" >&6; }
23515 { echo "$as_me:$LINENO: result: for OpenGL_ok: $OpenGL_ok" >&5
23516 echo "${ECHO_T}for OpenGL_ok: $OpenGL_ok" >&6; }
23517
23518
23519
23520
23521 ac_ext=c
23522 ac_cpp='$CPP $CPPFLAGS'
23523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23526
23527
23528
23529
23530
23531 # Check whether --with-qt was given.
23532 if test "${with_qt+set}" = set; then
23533   withval=$with_qt; with_qt=$withval
23534 else
23535   with_qt=""
23536 fi
23537
23538
23539
23540
23541
23542 { echo "$as_me:$LINENO: checking for Qt..." >&5
23543 echo "$as_me: checking for Qt..." >&6;}
23544
23545 if test "x$OpenGL_ok" != "xyes" ; then
23546    { echo "$as_me:$LINENO: WARNING: Qt needs OpenGL correct configuration" >&5
23547 echo "$as_me: WARNING: Qt needs OpenGL correct configuration" >&2;}
23548 fi
23549
23550 qt_ok=yes
23551
23552 QTDIR=$(echo $QTDIR | sed 's%/\+$%%')
23553
23554
23555 ac_ext=cpp
23556 ac_cpp='$CXXCPP $CPPFLAGS'
23557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23560
23561
23562 if test -z $with_qt ; then
23563   with_qt=""
23564 fi
23565 if test "x$with_qt" = "xyes" ; then
23566     with_qt=""
23567 fi
23568 if test "x$with_qt" = "xauto" ; then
23569     with_qt=""
23570 fi
23571 if test "x$with_qt" = "xno" ; then
23572     with_qt=""
23573   { echo "$as_me:$LINENO: WARNING: Value no" >&5
23574 echo "$as_me: WARNING: Value no" >&2;}
23575 fi
23576
23577 if test "x$with_qt" != "x" ; then
23578     QTDIR="$with_qt"
23579 elif test "$QTDIR" = "/usr/lib/qt3" ; then
23580     { echo "$as_me:$LINENO: result: current QTDIR is $QTDIR" >&5
23581 echo "${ECHO_T}current QTDIR is $QTDIR" >&6; }
23582     if test -d /usr/lib/qt4 ; then
23583     { echo "$as_me:$LINENO: result: it is strange for a qt4 installation !" >&5
23584 echo "${ECHO_T}it is strange for a qt4 installation !" >&6; }
23585     { echo "$as_me:$LINENO: result: /usr/lib/qt4 is present" >&5
23586 echo "${ECHO_T}/usr/lib/qt4 is present" >&6; }
23587     { echo "$as_me:$LINENO: result: replacing QTDIR by /usr/lib/qt4" >&5
23588 echo "${ECHO_T}replacing QTDIR by /usr/lib/qt4" >&6; }
23589     QTDIR=/usr/lib/qt4
23590   fi
23591 elif test -z $QTDIR ; then
23592   { echo "$as_me:$LINENO: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&5
23593 echo "$as_me: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&2;}
23594   for d in /usr/local/lib/qt4 /usr/lib/qt4 /usr ; do
23595     if test -f ${d}/lib/libQtCore.so ; then
23596       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23597 echo "${ECHO_T}trying ${d}" >&6; }
23598       QTDIR="${d}"
23599       break
23600     elif test -f ${d}/lib64/libQtCore.so ; then
23601       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23602 echo "${ECHO_T}trying ${d}" >&6; }
23603       QTDIR="${d}"
23604       break
23605     elif test -f ${d}/libQtCore.so ; then
23606       { echo "$as_me:$LINENO: result: trying ${d}" >&5
23607 echo "${ECHO_T}trying ${d}" >&6; }
23608       QTDIR="${d}"
23609       break
23610     fi
23611   done
23612 fi
23613
23614 #
23615 # check QTDIR environment variable
23616 #
23617 if test "x$QTDIR" = "x"
23618 then
23619    { echo "$as_me:$LINENO: result: Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&5
23620 echo "${ECHO_T}Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&6; }
23621    qt_ok=no
23622 fi
23623
23624 #
23625 # check Qt version
23626 #
23627 if  test "x$qt_ok" = "xyes"
23628 then
23629    qt_inc_ok=no
23630    QTINC=""
23631    as_ac_File=`echo "ac_cv_file_${QTDIR}/include/qt4/QtCore/qglobal.h" | $as_tr_sh`
23632 { echo "$as_me:$LINENO: checking for ${QTDIR}/include/qt4/QtCore/qglobal.h" >&5
23633 echo $ECHO_N "checking for ${QTDIR}/include/qt4/QtCore/qglobal.h... $ECHO_C" >&6; }
23634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23635   echo $ECHO_N "(cached) $ECHO_C" >&6
23636 else
23637   test "$cross_compiling" = yes &&
23638   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23640    { (exit 1); exit 1; }; }
23641 if test -r "${QTDIR}/include/qt4/QtCore/qglobal.h"; then
23642   eval "$as_ac_File=yes"
23643 else
23644   eval "$as_ac_File=no"
23645 fi
23646 fi
23647 ac_res=`eval echo '${'$as_ac_File'}'`
23648                { echo "$as_me:$LINENO: result: $ac_res" >&5
23649 echo "${ECHO_T}$ac_res" >&6; }
23650 if test `eval echo '${'$as_ac_File'}'` = yes; then
23651   QTINC="/qt4"
23652 else
23653   QTINC=""
23654 fi
23655
23656    if test "x$QTINC" = "x"
23657    then
23658      as_ac_File=`echo "ac_cv_file_${QTDIR}/include${QTINC}/QtCore/qglobal.h" | $as_tr_sh`
23659 { echo "$as_me:$LINENO: checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h" >&5
23660 echo $ECHO_N "checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h... $ECHO_C" >&6; }
23661 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23662   echo $ECHO_N "(cached) $ECHO_C" >&6
23663 else
23664   test "$cross_compiling" = yes &&
23665   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23666 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23667    { (exit 1); exit 1; }; }
23668 if test -r "${QTDIR}/include${QTINC}/QtCore/qglobal.h"; then
23669   eval "$as_ac_File=yes"
23670 else
23671   eval "$as_ac_File=no"
23672 fi
23673 fi
23674 ac_res=`eval echo '${'$as_ac_File'}'`
23675                { echo "$as_me:$LINENO: result: $ac_res" >&5
23676 echo "${ECHO_T}$ac_res" >&6; }
23677 if test `eval echo '${'$as_ac_File'}'` = yes; then
23678   qt_inc_ok=yes
23679 else
23680   qt_inc_ok=no
23681 fi
23682
23683    else
23684      qt_inc_ok=yes
23685    fi
23686    if test "x$qt_inc_ok" = "xyes"
23687    then
23688      { echo "$as_me:$LINENO: checking whether Qt version >= 4.0" >&5
23689 echo $ECHO_N "checking whether Qt version >= 4.0... $ECHO_C" >&6; }
23690      QT_VERSION=`grep "QT_VERSION_STR" ${QTDIR}/include${QTINC}/QtCore/qglobal.h | sed -e 's%^#define QT_VERSION_STR[[:space:]]*\"\([[:digit:]\.]*\)\"%\1%g'`
23691      QT_VERSION_ID=`echo $QT_VERSION | awk -F. '{v=$1*10000+$2*100+$3;print v}'`
23692      if test $QT_VERSION_ID -ge 40000
23693      then
23694        { echo "$as_me:$LINENO: result: yes" >&5
23695 echo "${ECHO_T}yes" >&6; }
23696      else
23697        { echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6; }
23699        qt_ok=no
23700      fi
23701      { echo "$as_me:$LINENO: checking Qt version" >&5
23702 echo $ECHO_N "checking Qt version... $ECHO_C" >&6; }
23703      { echo "$as_me:$LINENO: result: $QT_VERSION" >&5
23704 echo "${ECHO_T}$QT_VERSION" >&6; }
23705    else
23706      qt_ok=no
23707    fi
23708 fi
23709
23710 #
23711 # check moc presence (meta-object compiler)
23712 #
23713 if  test "x$qt_ok" = "xyes"
23714 then
23715   if test -f ${QTDIR}/bin/moc
23716   then
23717     MOC=${QTDIR}/bin/moc
23718   else
23719     # Extract the first word of "moc", so it can be a program name with args.
23720 set dummy moc; ac_word=$2
23721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23723 if test "${ac_cv_path_MOC+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726   case $MOC in
23727   [\\/]* | ?:[\\/]*)
23728   ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
23729   ;;
23730   *)
23731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23732 for as_dir in $PATH
23733 do
23734   IFS=$as_save_IFS
23735   test -z "$as_dir" && as_dir=.
23736   for ac_exec_ext in '' $ac_executable_extensions; do
23737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23738     ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
23739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23740     break 2
23741   fi
23742 done
23743 done
23744 IFS=$as_save_IFS
23745
23746   ;;
23747 esac
23748 fi
23749 MOC=$ac_cv_path_MOC
23750 if test -n "$MOC"; then
23751   { echo "$as_me:$LINENO: result: $MOC" >&5
23752 echo "${ECHO_T}$MOC" >&6; }
23753 else
23754   { echo "$as_me:$LINENO: result: no" >&5
23755 echo "${ECHO_T}no" >&6; }
23756 fi
23757
23758
23759   fi
23760   if test "x$MOC" = "x"
23761   then
23762     qt_ok=no
23763     { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is not in the PATH variable" >&5
23764 echo "${ECHO_T}moc (Qt meta-object compiler) is not in the PATH variable" >&6; }
23765   else
23766     qt_ok=yes
23767     { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is found" >&5
23768 echo "${ECHO_T}moc (Qt meta-object compiler) is found" >&6; }
23769   fi
23770
23771   if test "x$qt_ok" = "xyes"
23772   then
23773         { echo "$as_me:$LINENO: checking cheching equality Qt and moc tool version" >&5
23774 echo $ECHO_N "checking cheching equality Qt and moc tool version... $ECHO_C" >&6; }
23775     MOC_VERSION=`$MOC -v 2>&1 | awk 'BEGIN{FS="[ ()]"};{print $(NF-1)}'`
23776     if test "x$QT_VERSION" = "x$MOC_VERSION"
23777     then
23778       { echo "$as_me:$LINENO: result: yes" >&5
23779 echo "${ECHO_T}yes" >&6; }
23780       qt_ok=yes
23781     else
23782       { echo "$as_me:$LINENO: result: moc tool and Qt product are incompatible $MOC_VERSION" >&5
23783 echo "${ECHO_T}moc tool and Qt product are incompatible $MOC_VERSION" >&6; }
23784       qt_ok=no
23785     fi
23786   fi
23787 fi
23788
23789 #
23790 # check uic presence (user interface compiler)
23791 #
23792 if  test "x$qt_ok" = "xyes"
23793 then
23794   if test -f ${QTDIR}/bin/uic
23795   then
23796     UIC=${QTDIR}/bin/uic
23797   else
23798     # Extract the first word of "uic", so it can be a program name with args.
23799 set dummy uic; ac_word=$2
23800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23802 if test "${ac_cv_path_UIC+set}" = set; then
23803   echo $ECHO_N "(cached) $ECHO_C" >&6
23804 else
23805   case $UIC in
23806   [\\/]* | ?:[\\/]*)
23807   ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
23808   ;;
23809   *)
23810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23811 for as_dir in $PATH
23812 do
23813   IFS=$as_save_IFS
23814   test -z "$as_dir" && as_dir=.
23815   for ac_exec_ext in '' $ac_executable_extensions; do
23816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23817     ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
23818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23819     break 2
23820   fi
23821 done
23822 done
23823 IFS=$as_save_IFS
23824
23825   ;;
23826 esac
23827 fi
23828 UIC=$ac_cv_path_UIC
23829 if test -n "$UIC"; then
23830   { echo "$as_me:$LINENO: result: $UIC" >&5
23831 echo "${ECHO_T}$UIC" >&6; }
23832 else
23833   { echo "$as_me:$LINENO: result: no" >&5
23834 echo "${ECHO_T}no" >&6; }
23835 fi
23836
23837
23838   fi
23839   if test "x$UIC" = "x"
23840   then
23841     qt_ok=no
23842     { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is not in the PATH variable" >&5
23843 echo "${ECHO_T}uic (Qt user interface compiler) is not in the PATH variable" >&6; }
23844   else
23845     qt_ok=yes
23846     { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is found" >&5
23847 echo "${ECHO_T}uic (Qt user interface compiler) is found" >&6; }
23848   fi
23849 fi
23850
23851 #
23852 # check rcc presence (resources compiler)
23853 #
23854 if  test "x$qt_ok" = "xyes"
23855 then
23856   if test -f ${QTDIR}/bin/rcc
23857   then
23858     QRCC=${QTDIR}/bin/rcc
23859   else
23860     # Extract the first word of "rcc", so it can be a program name with args.
23861 set dummy rcc; ac_word=$2
23862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23864 if test "${ac_cv_path_QRCC+set}" = set; then
23865   echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867   case $QRCC in
23868   [\\/]* | ?:[\\/]*)
23869   ac_cv_path_QRCC="$QRCC" # Let the user override the test with a path.
23870   ;;
23871   *)
23872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873 for as_dir in $PATH
23874 do
23875   IFS=$as_save_IFS
23876   test -z "$as_dir" && as_dir=.
23877   for ac_exec_ext in '' $ac_executable_extensions; do
23878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23879     ac_cv_path_QRCC="$as_dir/$ac_word$ac_exec_ext"
23880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23881     break 2
23882   fi
23883 done
23884 done
23885 IFS=$as_save_IFS
23886
23887   ;;
23888 esac
23889 fi
23890 QRCC=$ac_cv_path_QRCC
23891 if test -n "$QRCC"; then
23892   { echo "$as_me:$LINENO: result: $QRCC" >&5
23893 echo "${ECHO_T}$QRCC" >&6; }
23894 else
23895   { echo "$as_me:$LINENO: result: no" >&5
23896 echo "${ECHO_T}no" >&6; }
23897 fi
23898
23899
23900   fi
23901   if test "x$QRCC" = "x"
23902   then
23903     qt_ok=no
23904     { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is not in the PATH variable" >&5
23905 echo "${ECHO_T}rcc (Qt resources compiler) is not in the PATH variable" >&6; }
23906   else
23907     qt_ok=yes
23908     { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is found" >&5
23909 echo "${ECHO_T}rcc (Qt resources compiler) is found" >&6; }
23910   fi
23911
23912   if test "x$qt_ok" = "xyes"
23913   then
23914         { echo "$as_me:$LINENO: checking cheching equality Qt and rcc tool version" >&5
23915 echo $ECHO_N "checking cheching equality Qt and rcc tool version... $ECHO_C" >&6; }
23916     QRCC_VERSION=`$QRCC -v 2>&1 | awk '{print $NF}'`
23917     if test "x$QT_VERSION" = "x$QRCC_VERSION"
23918     then
23919       { echo "$as_me:$LINENO: result: yes" >&5
23920 echo "${ECHO_T}yes" >&6; }
23921       qt_ok=yes
23922     else
23923       { echo "$as_me:$LINENO: result: rcc tool and Qt product are incompatible" >&5
23924 echo "${ECHO_T}rcc tool and Qt product are incompatible" >&6; }
23925       qt_ok=no
23926     fi
23927   fi
23928 fi
23929
23930 #
23931 # check lrelease presence (translation files compiler)
23932 #
23933 if  test "x$qt_ok" = "xyes"
23934 then
23935   if test -f ${QTDIR}/bin/lrelease
23936   then
23937     LRELEASE=${QTDIR}/bin/lrelease
23938   else
23939     # Extract the first word of "lrelease", so it can be a program name with args.
23940 set dummy lrelease; ac_word=$2
23941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23943 if test "${ac_cv_path_LRELEASE+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   case $LRELEASE in
23947   [\\/]* | ?:[\\/]*)
23948   ac_cv_path_LRELEASE="$LRELEASE" # Let the user override the test with a path.
23949   ;;
23950   *)
23951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23952 for as_dir in $PATH
23953 do
23954   IFS=$as_save_IFS
23955   test -z "$as_dir" && as_dir=.
23956   for ac_exec_ext in '' $ac_executable_extensions; do
23957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23958     ac_cv_path_LRELEASE="$as_dir/$ac_word$ac_exec_ext"
23959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23960     break 2
23961   fi
23962 done
23963 done
23964 IFS=$as_save_IFS
23965
23966   ;;
23967 esac
23968 fi
23969 LRELEASE=$ac_cv_path_LRELEASE
23970 if test -n "$LRELEASE"; then
23971   { echo "$as_me:$LINENO: result: $LRELEASE" >&5
23972 echo "${ECHO_T}$LRELEASE" >&6; }
23973 else
23974   { echo "$as_me:$LINENO: result: no" >&5
23975 echo "${ECHO_T}no" >&6; }
23976 fi
23977
23978
23979   fi
23980   if test "x$LRELEASE" = "x"
23981   then
23982     qt_ok=no
23983     { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is not in the PATH variable" >&5
23984 echo "${ECHO_T}lrelease (Qt translation files compiler) is not in the PATH variable" >&6; }
23985   else
23986     qt_ok=yes
23987     { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is found" >&5
23988 echo "${ECHO_T}lrelease (Qt translation files compiler) is found" >&6; }
23989   fi
23990
23991   if test "x$qt_ok" = "xyes"
23992   then
23993         { echo "$as_me:$LINENO: checking equality of Qt and lrelease tool version" >&5
23994 echo $ECHO_N "checking equality of Qt and lrelease tool version... $ECHO_C" >&6; }
23995     LRELEASE_VERSION=`$LRELEASE -version 2>&1 | awk '{print $NF}'`
23996     if test "x$QT_VERSION" = "x$LRELEASE_VERSION"
23997     then
23998       { echo "$as_me:$LINENO: result: yes" >&5
23999 echo "${ECHO_T}yes" >&6; }
24000       qt_ok=yes
24001     else
24002       { echo "$as_me:$LINENO: result: lrelease tool and Qt product are incompatible" >&5
24003 echo "${ECHO_T}lrelease tool and Qt product are incompatible" >&6; }
24004       qt_ok=no
24005     fi
24006   fi
24007 fi
24008
24009 QT_ROOT=$QTDIR
24010
24011 #
24012 # check Qt header files
24013 #
24014 if  test "x$qt_ok" = "xyes"
24015 then
24016   { echo "$as_me:$LINENO: checking include Qt header files..." >&5
24017 echo "$as_me: checking include Qt header files..." >&6;}
24018
24019   CPPFLAGS_old=$CPPFLAGS
24020   CPPFLAGS="$CPPFLAGS -I${QTDIR}/include${QTINC} -I${QTDIR}/include${QTINC}/QtCore"
24021   if test "${ac_cv_header_QObject+set}" = set; then
24022   { echo "$as_me:$LINENO: checking for QObject" >&5
24023 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24024 if test "${ac_cv_header_QObject+set}" = set; then
24025   echo $ECHO_N "(cached) $ECHO_C" >&6
24026 fi
24027 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24028 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24029 else
24030   # Is the header compilable?
24031 { echo "$as_me:$LINENO: checking QObject usability" >&5
24032 echo $ECHO_N "checking QObject usability... $ECHO_C" >&6; }
24033 cat >conftest.$ac_ext <<_ACEOF
24034 /* confdefs.h.  */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h.  */
24039 $ac_includes_default
24040 #include <QObject>
24041 _ACEOF
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049   (eval "$ac_compile") 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } && {
24056          test -z "$ac_cxx_werror_flag" ||
24057          test ! -s conftest.err
24058        } && test -s conftest.$ac_objext; then
24059   ac_header_compiler=yes
24060 else
24061   echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24063
24064         ac_header_compiler=no
24065 fi
24066
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24069 echo "${ECHO_T}$ac_header_compiler" >&6; }
24070
24071 # Is the header present?
24072 { echo "$as_me:$LINENO: checking QObject presence" >&5
24073 echo $ECHO_N "checking QObject presence... $ECHO_C" >&6; }
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h.  */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h.  */
24080 #include <QObject>
24081 _ACEOF
24082 if { (ac_try="$ac_cpp conftest.$ac_ext"
24083 case "(($ac_try" in
24084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085   *) ac_try_echo=$ac_try;;
24086 esac
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24089   ac_status=$?
24090   grep -v '^ *+' conftest.er1 >conftest.err
24091   rm -f conftest.er1
24092   cat conftest.err >&5
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); } >/dev/null && {
24095          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24096          test ! -s conftest.err
24097        }; then
24098   ac_header_preproc=yes
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103   ac_header_preproc=no
24104 fi
24105
24106 rm -f conftest.err conftest.$ac_ext
24107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24108 echo "${ECHO_T}$ac_header_preproc" >&6; }
24109
24110 # So?  What about this header?
24111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24112   yes:no: )
24113     { echo "$as_me:$LINENO: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&5
24114 echo "$as_me: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&2;}
24115     { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the compiler's result" >&5
24116 echo "$as_me: WARNING: QObject: proceeding with the compiler's result" >&2;}
24117     ac_header_preproc=yes
24118     ;;
24119   no:yes:* )
24120     { echo "$as_me:$LINENO: WARNING: QObject: present but cannot be compiled" >&5
24121 echo "$as_me: WARNING: QObject: present but cannot be compiled" >&2;}
24122     { echo "$as_me:$LINENO: WARNING: QObject:     check for missing prerequisite headers?" >&5
24123 echo "$as_me: WARNING: QObject:     check for missing prerequisite headers?" >&2;}
24124     { echo "$as_me:$LINENO: WARNING: QObject: see the Autoconf documentation" >&5
24125 echo "$as_me: WARNING: QObject: see the Autoconf documentation" >&2;}
24126     { echo "$as_me:$LINENO: WARNING: QObject:     section \"Present But Cannot Be Compiled\"" >&5
24127 echo "$as_me: WARNING: QObject:     section \"Present But Cannot Be Compiled\"" >&2;}
24128     { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the preprocessor's result" >&5
24129 echo "$as_me: WARNING: QObject: proceeding with the preprocessor's result" >&2;}
24130     { echo "$as_me:$LINENO: WARNING: QObject: in the future, the compiler will take precedence" >&5
24131 echo "$as_me: WARNING: QObject: in the future, the compiler will take precedence" >&2;}
24132     ( cat <<\_ASBOX
24133 ## ----------------------------------------------- ##
24134 ## Report this to webmaster.salome@opencascade.com ##
24135 ## ----------------------------------------------- ##
24136 _ASBOX
24137      ) | sed "s/^/$as_me: WARNING:     /" >&2
24138     ;;
24139 esac
24140 { echo "$as_me:$LINENO: checking for QObject" >&5
24141 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24142 if test "${ac_cv_header_QObject+set}" = set; then
24143   echo $ECHO_N "(cached) $ECHO_C" >&6
24144 else
24145   ac_cv_header_QObject=$ac_header_preproc
24146 fi
24147 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24148 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24149
24150 fi
24151 if test $ac_cv_header_QObject = yes; then
24152   qt_ok=yes
24153 else
24154   qt_ok=no
24155 fi
24156
24157
24158   CPPFLAGS=$CPPFLAGS_old
24159
24160   if  test "x$qt_ok" = "xno"
24161   then
24162     { echo "$as_me:$LINENO: result: qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&5
24163 echo "${ECHO_T}qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&6; }
24164     { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24165 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24166   else
24167     { echo "$as_me:$LINENO: result: qt header files seem to be OK" >&5
24168 echo "${ECHO_T}qt header files seem to be OK" >&6; }
24169     QT_INCLUDES="-I${QTDIR}/include${QTINC}"
24170     # user header files
24171     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtCore"
24172     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtGui"
24173     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtOpenGL"
24174     QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtXml"
24175     # not used currently header files (uncomment if required)
24176     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtAssistant"
24177     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDBus"
24178     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDesigner"
24179     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtNetwork"
24180     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSql"
24181     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSvg"
24182     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtTest"
24183     #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtUiTools"
24184
24185     QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtAssistant"
24186     QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtNetwork"
24187
24188     # this flag is obsolete with Qt 4
24189     QT_MT_INCLUDES="$QT_INCLUDES"
24190   fi
24191 fi
24192
24193 #
24194 # test Qt libraries
24195 #
24196 if  test "x$qt_ok" = "xyes"
24197 then
24198   { echo "$as_me:$LINENO: checking linking against Qt library" >&5
24199 echo $ECHO_N "checking linking against Qt library... $ECHO_C" >&6; }
24200
24201   CXXFLAGS_old=$CXXFLAGS
24202   CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
24203
24204   LIBS_old=$LIBS
24205   if test "x$QTDIR" = "x/usr" ; then
24206     QT_LIB_DIR=""
24207   elif test -d ${QTDIR}/lib; then
24208     QT_LIB_DIR="-L$QTDIR/lib"
24209   elif test -d ${QTDIR}/lib64; then
24210     QT_LIB_DIR="-L$QTDIR/lib64"
24211   elif test "x$QTDIR" = "x/usr/lib/qt4" ; then
24212     QT_LIB_DIR=""
24213   else
24214     { { echo "$as_me:$LINENO: error: Can't detect of Qt library directory " >&5
24215 echo "$as_me: error: Can't detect of Qt library directory " >&2;}
24216    { (exit 1); exit 1; }; }
24217     qt_ok=no
24218   fi
24219   LIBS="$LIBS $QT_LIB_DIR -lQtCore"
24220
24221   if test "${salome_cv_lib_qt+set}" = set; then
24222   echo $ECHO_N "(cached) $ECHO_C" >&6
24223 else
24224
24225     cat >conftest.$ac_ext <<_ACEOF
24226 /* confdefs.h.  */
24227 _ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h.  */
24231 #include <QCoreApplication>
24232
24233 int
24234 main ()
24235 {
24236 int n;
24237     char **s;
24238     QCoreApplication a(n, s);
24239     a.exec();
24240   ;
24241   return 0;
24242 }
24243 _ACEOF
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248   *) ac_try_echo=$ac_try;;
24249 esac
24250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251   (eval "$ac_link") 2>conftest.er1
24252   ac_status=$?
24253   grep -v '^ *+' conftest.er1 >conftest.err
24254   rm -f conftest.er1
24255   cat conftest.err >&5
24256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); } && {
24258          test -z "$ac_cxx_werror_flag" ||
24259          test ! -s conftest.err
24260        } && test -s conftest$ac_exeext &&
24261        $as_test_x conftest$ac_exeext; then
24262   eval "salome_cv_lib_qt=yes"
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267         eval "salome_cv_lib_qt=no"
24268 fi
24269
24270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24271       conftest$ac_exeext conftest.$ac_ext
24272
24273 fi
24274
24275   qt_ok="$salome_cv_lib_qt"
24276
24277   # BEGIN: for CCRT (installation of qt have only a "lib" directory)
24278   if  test "x$qt_ok" = "xno"
24279   then
24280     QT_LIB_DIR="-L$QTDIR/lib"
24281     LIBS="$LIBS_old $QT_LIB_DIR -lQtCore"
24282
24283     if test "${salome_cv_lib_qt+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286
24287       cat >conftest.$ac_ext <<_ACEOF
24288 /* confdefs.h.  */
24289 _ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h.  */
24293 #include <QCoreApplication>
24294
24295 int
24296 main ()
24297 {
24298 int n;
24299       char **s;
24300       QCoreApplication a(n, s);
24301       a.exec();
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (ac_try="$ac_link"
24308 case "(($ac_try" in
24309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310   *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313   (eval "$ac_link") 2>conftest.er1
24314   ac_status=$?
24315   grep -v '^ *+' conftest.er1 >conftest.err
24316   rm -f conftest.er1
24317   cat conftest.err >&5
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); } && {
24320          test -z "$ac_cxx_werror_flag" ||
24321          test ! -s conftest.err
24322        } && test -s conftest$ac_exeext &&
24323        $as_test_x conftest$ac_exeext; then
24324   eval "salome_cv_lib_qt=yes"
24325 else
24326   echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24328
24329         eval "salome_cv_lib_qt=no"
24330 fi
24331
24332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24333       conftest$ac_exeext conftest.$ac_ext
24334
24335 fi
24336
24337     qt_ok="$salome_cv_lib_qt"
24338   fi
24339   # END: for CCRT
24340
24341   if  test "x$qt_ok" = "xno"
24342   then
24343     { echo "$as_me:$LINENO: result: no" >&5
24344 echo "${ECHO_T}no" >&6; }
24345     { echo "$as_me:$LINENO: result: unable to link with qt library" >&5
24346 echo "${ECHO_T}unable to link with qt library" >&6; }
24347     { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24348 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24349   else
24350     { echo "$as_me:$LINENO: result: yes" >&5
24351 echo "${ECHO_T}yes" >&6; }
24352     # core libs
24353     QT_CORE_LIBS="$QT_LIB_DIR -lQtCore -lQtXml"
24354     # gui libs
24355     QT_GUI_LIBS="$QT_LIB_DIR -lQtGui -lQtOpenGL"
24356     # other libs (currently not used)
24357     QT_OTHER_LIBS="$QT_LIB_DIR"
24358     # other libs (can be used if necessary)
24359     #QT_OTHER_LIBS="$QT_LIB_DIR -lQt3Support -lQtAssistantClient -lQtDesigner -lQtNetwork -lQtSql -lQtSvg -lQtTest -ltQtUiTools"
24360     QT_ASSISTANT_LIBS="$QT_LIB_DIR -lQtAssistantClient -lQtNetwork"
24361     # all libs
24362     QT_LIBS="$QT_CORE_LIBS $QT_GUI_LIBS $QT_OTHER_LIBS"
24363     # this flag is obsolete with Qt 4
24364     QT_MT_LIBS="$QT_LIBS"
24365   fi
24366   LIBS=$LIBS_old
24367   CXXFLAGS=$CXXFLAGS_old
24368 fi
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390 ac_ext=c
24391 ac_cpp='$CPP $CPPFLAGS'
24392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24395
24396
24397 { echo "$as_me:$LINENO: result: for Qt: $qt_ok" >&5
24398 echo "${ECHO_T}for Qt: $qt_ok" >&6; }
24399
24400 # Save cache
24401 cat >confcache <<\_ACEOF
24402 # This file is a shell script that caches the results of configure
24403 # tests run on this system so they can be shared between configure
24404 # scripts and configure runs, see configure's option --config-cache.
24405 # It is not useful on other systems.  If it contains results you don't
24406 # want to keep, you may remove or edit it.
24407 #
24408 # config.status only pays attention to the cache file if you give it
24409 # the --recheck option to rerun configure.
24410 #
24411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24413 # following values.
24414
24415 _ACEOF
24416
24417 # The following way of writing the cache mishandles newlines in values,
24418 # but we know of no workaround that is simple, portable, and efficient.
24419 # So, we kill variables containing newlines.
24420 # Ultrix sh set writes to stderr and can't be redirected directly,
24421 # and sets the high bit in the cache file unless we assign to the vars.
24422 (
24423   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24424     eval ac_val=\$$ac_var
24425     case $ac_val in #(
24426     *${as_nl}*)
24427       case $ac_var in #(
24428       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24429 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24430       esac
24431       case $ac_var in #(
24432       _ | IFS | as_nl) ;; #(
24433       *) $as_unset $ac_var ;;
24434       esac ;;
24435     esac
24436   done
24437
24438   (set) 2>&1 |
24439     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24440     *${as_nl}ac_space=\ *)
24441       # `set' does not quote correctly, so add quotes (double-quote
24442       # substitution turns \\\\ into \\, and sed turns \\ into \).
24443       sed -n \
24444         "s/'/'\\\\''/g;
24445           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24446       ;; #(
24447     *)
24448       # `set' quotes correctly as required by POSIX, so do not add quotes.
24449       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24450       ;;
24451     esac |
24452     sort
24453 ) |
24454   sed '
24455      /^ac_cv_env_/b end
24456      t clear
24457      :clear
24458      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24459      t end
24460      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24461      :end' >>confcache
24462 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24463   if test -w "$cache_file"; then
24464     test "x$cache_file" != "x/dev/null" &&
24465       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24466 echo "$as_me: updating cache $cache_file" >&6;}
24467     cat confcache >$cache_file
24468   else
24469     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24470 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24471   fi
24472 fi
24473 rm -f confcache
24474
24475
24476
24477 echo
24478 echo ---------------------------------------------
24479 echo BOOST Library
24480 echo ---------------------------------------------
24481 echo
24482
24483
24484
24485 { echo "$as_me:$LINENO: checking for BOOST Library..." >&5
24486 echo "$as_me: checking for BOOST Library..." >&6;}
24487
24488
24489
24490 ac_ext=cpp
24491 ac_cpp='$CXXCPP $CPPFLAGS'
24492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24495
24496
24497 BOOST_CPPFLAGS=""
24498 BOOST_LIBSUFFIX="-mt"
24499 BOOST_LIBS=""
24500
24501 { echo "$as_me:$LINENO: checking for BOOST location..." >&5
24502 echo "$as_me: checking for BOOST location..." >&6;}
24503
24504 # Check whether --with-boost was given.
24505 if test "${with_boost+set}" = set; then
24506   withval=$with_boost; BOOSTDIR="$withval"
24507     { echo "$as_me:$LINENO: result: \"select $withval as path to BOOST library\"" >&5
24508 echo "${ECHO_T}\"select $withval as path to BOOST library\"" >&6; }
24509
24510 fi
24511
24512
24513 if test "x${BOOSTDIR}" = "x" ; then
24514   BOOSTDIR="/usr"
24515 fi
24516
24517 { echo "$as_me:$LINENO: result: \$BOOSTDIR = ${BOOSTDIR}" >&5
24518 echo "${ECHO_T}\$BOOSTDIR = ${BOOSTDIR}" >&6; }
24519
24520 CPPFLAGS_old="${CPPFLAGS}"
24521 LIBS_old=$LIBS
24522
24523 if test "x${BOOSTDIR}" != "x" ; then
24524   BOOST_CPPFLAGS="-I${BOOSTDIR}/include"
24525   BOOST_LIBS="-L${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}"
24526 fi
24527
24528 if test "x${BOOSTDIR}" = "x/usr" ; then
24529   BOOST_CPPFLAGS=""
24530   BOOST_LIBS=""
24531 fi
24532
24533 boost_ok=no
24534 boost_headers_ok=no
24535 boost_binaries_ok=no
24536
24537 { echo "$as_me:$LINENO: checking for BOOST headers..." >&5
24538 echo "$as_me: checking for BOOST headers..." >&6;}
24539 CPPFLAGS="${CPPFLAGS_old} ${BOOST_CPPFLAGS}"
24540
24541 boost_include_dir_ok=yes
24542 if test "x${BOOSTDIR}" != "x" ; then
24543   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/include/boost/shared_ptr.hpp" | $as_tr_sh`
24544 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/include/boost/shared_ptr.hpp" >&5
24545 echo $ECHO_N "checking for ${BOOSTDIR}/include/boost/shared_ptr.hpp... $ECHO_C" >&6; }
24546 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24547   echo $ECHO_N "(cached) $ECHO_C" >&6
24548 else
24549   test "$cross_compiling" = yes &&
24550   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24551 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24552    { (exit 1); exit 1; }; }
24553 if test -r "${BOOSTDIR}/include/boost/shared_ptr.hpp"; then
24554   eval "$as_ac_File=yes"
24555 else
24556   eval "$as_ac_File=no"
24557 fi
24558 fi
24559 ac_res=`eval echo '${'$as_ac_File'}'`
24560                { echo "$as_me:$LINENO: result: $ac_res" >&5
24561 echo "${ECHO_T}$ac_res" >&6; }
24562 if test `eval echo '${'$as_ac_File'}'` = yes; then
24563   boost_include_dir_ok=yes
24564 else
24565   boost_include_dir_ok=no
24566 fi
24567
24568 fi
24569
24570 BOOST_PROGRAM_OPTIONS_LIB=no
24571 if test "x${boost_include_dir_ok}" = "xyes" ; then
24572   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/include/boost/program_options.hpp" | $as_tr_sh`
24573 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/include/boost/program_options.hpp" >&5
24574 echo $ECHO_N "checking for ${BOOSTDIR}/include/boost/program_options.hpp... $ECHO_C" >&6; }
24575 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578   test "$cross_compiling" = yes &&
24579   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24580 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24581    { (exit 1); exit 1; }; }
24582 if test -r "${BOOSTDIR}/include/boost/program_options.hpp"; then
24583   eval "$as_ac_File=yes"
24584 else
24585   eval "$as_ac_File=no"
24586 fi
24587 fi
24588 ac_res=`eval echo '${'$as_ac_File'}'`
24589                { echo "$as_me:$LINENO: result: $ac_res" >&5
24590 echo "${ECHO_T}$ac_res" >&6; }
24591 if test `eval echo '${'$as_ac_File'}'` = yes; then
24592   BOOST_PROGRAM_OPTIONS_LIB=yes
24593 else
24594   BOOST_PROGRAM_OPTIONS_LIB=no
24595 fi
24596
24597 fi
24598 { echo "$as_me:$LINENO: result: for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB" >&5
24599 echo "${ECHO_T}for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB" >&6; }
24600
24601 if test "x${boost_include_dir_ok}" = "xyes" ; then
24602   cat >conftest.$ac_ext <<_ACEOF
24603 /* confdefs.h.  */
24604 _ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h.  */
24608 #include <boost/shared_ptr.hpp>
24609 int
24610 main ()
24611 {
24612 boost::shared_ptr<int>(new int)
24613   ;
24614   return 0;
24615 }
24616 _ACEOF
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621   *) ac_try_echo=$ac_try;;
24622 esac
24623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24624   (eval "$ac_compile") 2>conftest.er1
24625   ac_status=$?
24626   grep -v '^ *+' conftest.er1 >conftest.err
24627   rm -f conftest.er1
24628   cat conftest.err >&5
24629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630   (exit $ac_status); } && {
24631          test -z "$ac_cxx_werror_flag" ||
24632          test ! -s conftest.err
24633        } && test -s conftest.$ac_objext; then
24634   boost_headers_ok=yes
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639         boost_headers_ok=no
24640 fi
24641
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24643 fi
24644
24645 if test "x${boost_headers_ok}" = "xno" ; then
24646   BOOST_CPPFLAGS="BOOST_CPPFLAGS_NOT_DEFINED"
24647 else
24648   { echo "$as_me:$LINENO: result: \$BOOST_CPPFLAGS = ${BOOST_CPPFLAGS}" >&5
24649 echo "${ECHO_T}\$BOOST_CPPFLAGS = ${BOOST_CPPFLAGS}" >&6; }
24650 fi
24651 { echo "$as_me:$LINENO: result: for boost headers: $boost_headers_ok" >&5
24652 echo "${ECHO_T}for boost headers: $boost_headers_ok" >&6; }
24653
24654 if test "x${boost_headers_ok}" = "xyes" ; then
24655     { echo "$as_me:$LINENO: checking for BOOST binaries..." >&5
24656 echo "$as_me: checking for BOOST binaries..." >&6;}
24657   boost_lib_dir_ok=yes
24658   if test "x${BOOSTDIR}" != "x" ; then
24659     as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24660 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24661 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24662 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24663   echo $ECHO_N "(cached) $ECHO_C" >&6
24664 else
24665   test "$cross_compiling" = yes &&
24666   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24667 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24668    { (exit 1); exit 1; }; }
24669 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24670   eval "$as_ac_File=yes"
24671 else
24672   eval "$as_ac_File=no"
24673 fi
24674 fi
24675 ac_res=`eval echo '${'$as_ac_File'}'`
24676                { echo "$as_me:$LINENO: result: $ac_res" >&5
24677 echo "${ECHO_T}$ac_res" >&6; }
24678 if test `eval echo '${'$as_ac_File'}'` = yes; then
24679   boost_lib_dir_ok=yes
24680 else
24681   boost_lib_dir_ok=no
24682 fi
24683
24684     if test "x${boost_lib_dir_ok}" = "xno" ; then
24685       BOOST_LIBSUFFIX=""
24686       as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24687 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24688 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24689 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   test "$cross_compiling" = yes &&
24693   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24695    { (exit 1); exit 1; }; }
24696 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24697   eval "$as_ac_File=yes"
24698 else
24699   eval "$as_ac_File=no"
24700 fi
24701 fi
24702 ac_res=`eval echo '${'$as_ac_File'}'`
24703                { echo "$as_me:$LINENO: result: $ac_res" >&5
24704 echo "${ECHO_T}$ac_res" >&6; }
24705 if test `eval echo '${'$as_ac_File'}'` = yes; then
24706   boost_lib_dir_ok=yes
24707 else
24708   boost_lib_dir_ok=no
24709 fi
24710
24711     fi
24712   fi
24713   if test "x${boost_lib_dir_ok}" = "xyes" ; then
24714     LIBS="${LIBS_old} ${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24715     cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h.  */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h.  */
24721 #include <boost/thread/thread.hpp>
24722 int
24723 main ()
24724 {
24725 struct TBody{ void operator()(){} }; boost::thread(TBody())
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext conftest$ac_exeext
24731 if { (ac_try="$ac_link"
24732 case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737   (eval "$ac_link") 2>conftest.er1
24738   ac_status=$?
24739   grep -v '^ *+' conftest.er1 >conftest.err
24740   rm -f conftest.er1
24741   cat conftest.err >&5
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } && {
24744          test -z "$ac_cxx_werror_flag" ||
24745          test ! -s conftest.err
24746        } && test -s conftest$ac_exeext &&
24747        $as_test_x conftest$ac_exeext; then
24748   boost_binaries_ok=yes
24749 else
24750   echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24752
24753         boost_binaries_ok=no
24754 fi
24755
24756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24757       conftest$ac_exeext conftest.$ac_ext
24758     if test "x${boost_binaries_ok}" = "xno" ; then
24759       BOOST_LIBSUFFIX=""
24760       LIBS="${LIBS_old} ${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24761       cat >conftest.$ac_ext <<_ACEOF
24762 /* confdefs.h.  */
24763 _ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h.  */
24767 #include <boost/thread/thread.hpp>
24768 int
24769 main ()
24770 {
24771 struct TBody{ void operator()(){} }; boost::thread(TBody())
24772   ;
24773   return 0;
24774 }
24775 _ACEOF
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (ac_try="$ac_link"
24778 case "(($ac_try" in
24779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780   *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783   (eval "$ac_link") 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } && {
24790          test -z "$ac_cxx_werror_flag" ||
24791          test ! -s conftest.err
24792        } && test -s conftest$ac_exeext &&
24793        $as_test_x conftest$ac_exeext; then
24794   boost_binaries_ok=yes
24795 else
24796   echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799         boost_binaries_ok=no
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24803       conftest$ac_exeext conftest.$ac_ext
24804     fi
24805   fi
24806 fi
24807
24808 if test "x${boost_binaries_ok}" = "xno" ; then
24809   BOOST_LIBS="BOOST_LIBS_NOT_FOUND"
24810   BOOST_LIBSUFFIX="-not-defined"
24811 else
24812   { echo "$as_me:$LINENO: result: \$BOOST_LIBSUFFIX = ${BOOST_LIBSUFFIX}" >&5
24813 echo "${ECHO_T}\$BOOST_LIBSUFFIX = ${BOOST_LIBSUFFIX}" >&6; }
24814   { echo "$as_me:$LINENO: result: \$BOOST_LIBS = ${BOOST_LIBS}" >&5
24815 echo "${ECHO_T}\$BOOST_LIBS = ${BOOST_LIBS}" >&6; }
24816   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24817 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24818 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24819 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24820   echo $ECHO_N "(cached) $ECHO_C" >&6
24821 else
24822   test "$cross_compiling" = yes &&
24823   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24824 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24825    { (exit 1); exit 1; }; }
24826 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24827   eval "$as_ac_File=yes"
24828 else
24829   eval "$as_ac_File=no"
24830 fi
24831 fi
24832 ac_res=`eval echo '${'$as_ac_File'}'`
24833                { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 if test `eval echo '${'$as_ac_File'}'` = yes; then
24836   BOOST_LIB_THREAD="${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24837 else
24838   BOOST_LIB_THREAD=""
24839 fi
24840
24841   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24842 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so" >&5
24843 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24844 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847   test "$cross_compiling" = yes &&
24848   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24849 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24850    { (exit 1); exit 1; }; }
24851 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so"; then
24852   eval "$as_ac_File=yes"
24853 else
24854   eval "$as_ac_File=no"
24855 fi
24856 fi
24857 ac_res=`eval echo '${'$as_ac_File'}'`
24858                { echo "$as_me:$LINENO: result: $ac_res" >&5
24859 echo "${ECHO_T}$ac_res" >&6; }
24860 if test `eval echo '${'$as_ac_File'}'` = yes; then
24861   BOOST_LIB_SIGNALS="${BOOST_LIBS} -lboost_signals${BOOST_LIBSUFFIX}"
24862 else
24863   BOOST_LIB_SIGNALS=""
24864 fi
24865
24866   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24867 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so" >&5
24868 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24869 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24870   echo $ECHO_N "(cached) $ECHO_C" >&6
24871 else
24872   test "$cross_compiling" = yes &&
24873   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24874 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24875    { (exit 1); exit 1; }; }
24876 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so"; then
24877   eval "$as_ac_File=yes"
24878 else
24879   eval "$as_ac_File=no"
24880 fi
24881 fi
24882 ac_res=`eval echo '${'$as_ac_File'}'`
24883                { echo "$as_me:$LINENO: result: $ac_res" >&5
24884 echo "${ECHO_T}$ac_res" >&6; }
24885 if test `eval echo '${'$as_ac_File'}'` = yes; then
24886   BOOST_LIB_SYSTEM="${BOOST_LIBS} -lboost_system${BOOST_LIBSUFFIX}"
24887 else
24888   BOOST_LIB_SYSTEM=""
24889 fi
24890
24891   as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24892 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so" >&5
24893 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24894 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897   test "$cross_compiling" = yes &&
24898   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24899 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24900    { (exit 1); exit 1; }; }
24901 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so"; then
24902   eval "$as_ac_File=yes"
24903 else
24904   eval "$as_ac_File=no"
24905 fi
24906 fi
24907 ac_res=`eval echo '${'$as_ac_File'}'`
24908                { echo "$as_me:$LINENO: result: $ac_res" >&5
24909 echo "${ECHO_T}$ac_res" >&6; }
24910 if test `eval echo '${'$as_ac_File'}'` = yes; then
24911   BOOST_LIB_REGEX="${BOOST_LIBS} -lboost_regex${BOOST_LIBSUFFIX}"
24912 else
24913   BOOST_LIB_REGEX=""
24914 fi
24915
24916 fi
24917 { echo "$as_me:$LINENO: result: for boost binaries: $boost_binaries_ok" >&5
24918 echo "${ECHO_T}for boost binaries: $boost_binaries_ok" >&6; }
24919
24920 CPPFLAGS="${CPPFLAGS_old}"
24921 LIBS="${LIBS_old}"
24922
24923 if test "x${boost_headers_ok}" = "xyes" ; then
24924   if test "x${boost_binaries_ok}" = "xyes" ; then
24925     boost_ok=yes
24926   fi
24927 fi
24928
24929 { echo "$as_me:$LINENO: result: for boost: $boost_ok" >&5
24930 echo "${ECHO_T}for boost: $boost_ok" >&6; }
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941 ac_ext=c
24942 ac_cpp='$CPP $CPPFLAGS'
24943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24946
24947
24948
24949
24950 echo
24951 echo ---------------------------------------------
24952 echo Testing OpenCascade
24953 echo ---------------------------------------------
24954 echo
24955
24956
24957
24958 { echo "$as_me:$LINENO: checking for OpenCascade..." >&5
24959 echo "$as_me: checking for OpenCascade..." >&6;}
24960
24961
24962 ac_ext=cpp
24963 ac_cpp='$CXXCPP $CPPFLAGS'
24964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983 CAS_CPPFLAGS=""
24984 CAS_CXXFLAGS=""
24985 CAS_LDFLAGS=""
24986 occ_ok=no
24987 config_h=no
24988
24989 case $host_os in
24990    linux*)
24991       casdir=Linux
24992       ;;
24993    freebsd*)
24994       casdir=Linux
24995       ;;
24996    irix5.*)
24997       casdir=Linux
24998       ;;
24999    irix6.*)
25000       casdir=Linux
25001       ;;
25002    osf*)
25003       casdir=Linux
25004       ;;
25005    solaris2.*)
25006       casdir=Linux
25007       ;;
25008    *)
25009       casdir=Linux
25010       ;;
25011 esac
25012
25013 { echo "$as_me:$LINENO: checking for OpenCascade directories" >&5
25014 echo $ECHO_N "checking for OpenCascade directories... $ECHO_C" >&6; }
25015
25016 if test -z "$CASROOT"; then
25017   { echo "$as_me:$LINENO: result: CASROOT not defined" >&5
25018 echo "${ECHO_T}CASROOT not defined" >&6; }
25019   for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
25020     if test -f $d/libTKernel.so ; then
25021       { echo "$as_me:$LINENO: result: libTKernel.so detected in $d" >&5
25022 echo "${ECHO_T}libTKernel.so detected in $d" >&6; }
25023       CASROOT=$d
25024       CASROOT=`echo ${CASROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25025       break
25026     fi
25027   done
25028 fi
25029
25030 if test -d ${CASROOT}/${casdir}/lib; then
25031   CAS_LDPATH="-L$CASROOT/$casdir/lib "
25032   { echo "$as_me:$LINENO: result: yes" >&5
25033 echo "${ECHO_T}yes" >&6; }
25034 else
25035   if test -d ${CASROOT}/lib; then
25036     CAS_LDPATH="-L$CASROOT/lib "
25037     { echo "$as_me:$LINENO: result: yes" >&5
25038 echo "${ECHO_T}yes" >&6; }
25039   else
25040     { echo "$as_me:$LINENO: result: no" >&5
25041 echo "${ECHO_T}no" >&6; }
25042   fi
25043 fi
25044
25045
25046 if test -z "$CASROOT"; then
25047   { echo "$as_me:$LINENO: WARNING: You must provide CASROOT variable : see OCC installation manual" >&5
25048 echo "$as_me: WARNING: You must provide CASROOT variable : see OCC installation manual" >&2;}
25049 else
25050   occ_ok=yes
25051   OCC_VERSION_MAJOR=0
25052   OCC_VERSION_MINOR=0
25053   OCC_VERSION_MAINTENANCE=0
25054   ff=$CASROOT/inc/Standard_Version.hxx
25055   if test -f $ff ; then
25056     grep "define OCC_VERSION_MAJOR" $ff > /dev/null
25057     if test $? = 0 ; then
25058       OCC_VERSION_MAJOR=`grep "define OCC_VERSION_MAJOR" $ff | awk '{i=3 ; print $i}'`
25059     fi
25060     grep "define OCC_VERSION_MINOR" $ff > /dev/null
25061     if test $? = 0 ; then
25062       OCC_VERSION_MINOR=`grep "define OCC_VERSION_MINOR" $ff | awk '{i=3 ; print $i}'`
25063     fi
25064     grep "define OCC_VERSION_MAINTENANCE" $ff > /dev/null
25065     if test $? = 0 ; then
25066       OCC_VERSION_MAINTENANCE=`grep "define OCC_VERSION_MAINTENANCE" $ff | awk '{i=3 ; print $i}'`
25067     fi
25068   fi
25069 fi
25070
25071 if test "x$occ_ok" = "xyes"; then
25072
25073   for opt in -funsigned-char -unsigned ; do
25074
25075   { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
25076 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
25077   cat > conftest.cxx <<EOF
25078 int main() { return 0; }
25079 EOF
25080   $CXX $opt conftest.cxx > conftest.log 2>&1
25081   var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
25082 #CCRT  if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
25083   if grep -e $var conftest.log > /dev/null 2>&1 ; then
25084     { echo "$as_me:$LINENO: result: no" >&5
25085 echo "${ECHO_T}no" >&6; }
25086     eval flag=no
25087   else
25088     { echo "$as_me:$LINENO: result: yes" >&5
25089 echo "${ECHO_T}yes" >&6; }
25090     CAS_CXXFLAGS="${CAS_CXXFLAGS} $opt"
25091     eval flag=yes
25092   fi
25093
25094     if test "$flag" = "yes"; then
25095       break
25096     fi
25097   done
25098
25099
25100   CPPFLAGS_old="$CPPFLAGS"
25101 case $host_os in
25102    linux*)
25103       CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H"
25104
25105       OCC_VERSION_STRING="$OCC_VERSION_MAJOR.$OCC_VERSION_MINOR.$OCC_VERSION_MAINTENANCE"
25106       case $OCC_VERSION_STRING in
25107         [0-5].* | 6.0.* | 6.1.0) # catch versions < 6.1.1
25108           CAS_CPPFLAGS="$CAS_CPPFLAGS -DNO_CXX_EXCEPTION"
25109           ;;
25110         *)
25111           CAS_CPPFLAGS="$CAS_CPPFLAGS -DOCC_CONVERT_SIGNALS"
25112           ;;
25113       esac
25114       CAS_CPPFLAGS="$CAS_CPPFLAGS -I$CASROOT/inc"
25115       ;;
25116    osf*)
25117       CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -I$CASROOT/inc"
25118       ;;
25119 esac
25120   CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS"
25121
25122   echo
25123   echo testing config.h
25124
25125   if test "${ac_cv_header_config_h+set}" = set; then
25126   { echo "$as_me:$LINENO: checking for config.h" >&5
25127 echo $ECHO_N "checking for config.h... $ECHO_C" >&6; }
25128 if test "${ac_cv_header_config_h+set}" = set; then
25129   echo $ECHO_N "(cached) $ECHO_C" >&6
25130 fi
25131 { echo "$as_me:$LINENO: result: $ac_cv_header_config_h" >&5
25132 echo "${ECHO_T}$ac_cv_header_config_h" >&6; }
25133 else
25134   # Is the header compilable?
25135 { echo "$as_me:$LINENO: checking config.h usability" >&5
25136 echo $ECHO_N "checking config.h usability... $ECHO_C" >&6; }
25137 cat >conftest.$ac_ext <<_ACEOF
25138 /* confdefs.h.  */
25139 _ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h.  */
25143 $ac_includes_default
25144 #include <config.h>
25145 _ACEOF
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150   *) ac_try_echo=$ac_try;;
25151 esac
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153   (eval "$ac_compile") 2>conftest.er1
25154   ac_status=$?
25155   grep -v '^ *+' conftest.er1 >conftest.err
25156   rm -f conftest.er1
25157   cat conftest.err >&5
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); } && {
25160          test -z "$ac_cxx_werror_flag" ||
25161          test ! -s conftest.err
25162        } && test -s conftest.$ac_objext; then
25163   ac_header_compiler=yes
25164 else
25165   echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25167
25168         ac_header_compiler=no
25169 fi
25170
25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25173 echo "${ECHO_T}$ac_header_compiler" >&6; }
25174
25175 # Is the header present?
25176 { echo "$as_me:$LINENO: checking config.h presence" >&5
25177 echo $ECHO_N "checking config.h presence... $ECHO_C" >&6; }
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h.  */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h.  */
25184 #include <config.h>
25185 _ACEOF
25186 if { (ac_try="$ac_cpp conftest.$ac_ext"
25187 case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25193   ac_status=$?
25194   grep -v '^ *+' conftest.er1 >conftest.err
25195   rm -f conftest.er1
25196   cat conftest.err >&5
25197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198   (exit $ac_status); } >/dev/null && {
25199          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25200          test ! -s conftest.err
25201        }; then
25202   ac_header_preproc=yes
25203 else
25204   echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207   ac_header_preproc=no
25208 fi
25209
25210 rm -f conftest.err conftest.$ac_ext
25211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25212 echo "${ECHO_T}$ac_header_preproc" >&6; }
25213
25214 # So?  What about this header?
25215 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25216   yes:no: )
25217     { echo "$as_me:$LINENO: WARNING: config.h: accepted by the compiler, rejected by the preprocessor!" >&5
25218 echo "$as_me: WARNING: config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25219     { echo "$as_me:$LINENO: WARNING: config.h: proceeding with the compiler's result" >&5
25220 echo "$as_me: WARNING: config.h: proceeding with the compiler's result" >&2;}
25221     ac_header_preproc=yes
25222     ;;
25223   no:yes:* )
25224     { echo "$as_me:$LINENO: WARNING: config.h: present but cannot be compiled" >&5
25225 echo "$as_me: WARNING: config.h: present but cannot be compiled" >&2;}
25226     { echo "$as_me:$LINENO: WARNING: config.h:     check for missing prerequisite headers?" >&5
25227 echo "$as_me: WARNING: config.h:     check for missing prerequisite headers?" >&2;}
25228     { echo "$as_me:$LINENO: WARNING: config.h: see the Autoconf documentation" >&5
25229 echo "$as_me: WARNING: config.h: see the Autoconf documentation" >&2;}
25230     { echo "$as_me:$LINENO: WARNING: config.h:     section \"Present But Cannot Be Compiled\"" >&5
25231 echo "$as_me: WARNING: config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25232     { echo "$as_me:$LINENO: WARNING: config.h: proceeding with the preprocessor's result" >&5
25233 echo "$as_me: WARNING: config.h: proceeding with the preprocessor's result" >&2;}
25234     { echo "$as_me:$LINENO: WARNING: config.h: in the future, the compiler will take precedence" >&5
25235 echo "$as_me: WARNING: config.h: in the future, the compiler will take precedence" >&2;}
25236     ( cat <<\_ASBOX
25237 ## ----------------------------------------------- ##
25238 ## Report this to webmaster.salome@opencascade.com ##
25239 ## ----------------------------------------------- ##
25240 _ASBOX
25241      ) | sed "s/^/$as_me: WARNING:     /" >&2
25242     ;;
25243 esac
25244 { echo "$as_me:$LINENO: checking for config.h" >&5
25245 echo $ECHO_N "checking for config.h... $ECHO_C" >&6; }
25246 if test "${ac_cv_header_config_h+set}" = set; then
25247   echo $ECHO_N "(cached) $ECHO_C" >&6
25248 else
25249   ac_cv_header_config_h=$ac_header_preproc
25250 fi
25251 { echo "$as_me:$LINENO: result: $ac_cv_header_config_h" >&5
25252 echo "${ECHO_T}$ac_cv_header_config_h" >&6; }
25253
25254 fi
25255 if test $ac_cv_header_config_h = yes; then
25256   config_h=yes
25257 else
25258
25259         echo "config.h file not found!"
25260
25261 fi
25262
25263
25264
25265   if test "x$config_h" = xno ; then
25266       { echo "$as_me:$LINENO: WARNING: config.h file not found" >&5
25267 echo "$as_me: WARNING: config.h file not found" >&2;}
25268               else
25269       { echo "$as_me:$LINENO: result: config.h file ok" >&5
25270 echo "${ECHO_T}config.h file ok" >&6; }
25271   fi
25272
25273   if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25274   { echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
25275 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6; }
25276 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25277   echo $ECHO_N "(cached) $ECHO_C" >&6
25278 fi
25279 { echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
25280 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6; }
25281 else
25282   # Is the header compilable?
25283 { echo "$as_me:$LINENO: checking Standard_Type.hxx usability" >&5
25284 echo $ECHO_N "checking Standard_Type.hxx usability... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25286 /* confdefs.h.  */
25287 _ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h.  */
25291 $ac_includes_default
25292 #include <Standard_Type.hxx>
25293 _ACEOF
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298   *) ac_try_echo=$ac_try;;
25299 esac
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301   (eval "$ac_compile") 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } && {
25308          test -z "$ac_cxx_werror_flag" ||
25309          test ! -s conftest.err
25310        } && test -s conftest.$ac_objext; then
25311   ac_header_compiler=yes
25312 else
25313   echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316         ac_header_compiler=no
25317 fi
25318
25319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25321 echo "${ECHO_T}$ac_header_compiler" >&6; }
25322
25323 # Is the header present?
25324 { echo "$as_me:$LINENO: checking Standard_Type.hxx presence" >&5
25325 echo $ECHO_N "checking Standard_Type.hxx presence... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h.  */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h.  */
25332 #include <Standard_Type.hxx>
25333 _ACEOF
25334 if { (ac_try="$ac_cpp conftest.$ac_ext"
25335 case "(($ac_try" in
25336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337   *) ac_try_echo=$ac_try;;
25338 esac
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25341   ac_status=$?
25342   grep -v '^ *+' conftest.er1 >conftest.err
25343   rm -f conftest.er1
25344   cat conftest.err >&5
25345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346   (exit $ac_status); } >/dev/null && {
25347          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25348          test ! -s conftest.err
25349        }; then
25350   ac_header_preproc=yes
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355   ac_header_preproc=no
25356 fi
25357
25358 rm -f conftest.err conftest.$ac_ext
25359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25360 echo "${ECHO_T}$ac_header_preproc" >&6; }
25361
25362 # So?  What about this header?
25363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25364   yes:no: )
25365     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
25366 echo "$as_me: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
25367     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the compiler's result" >&5
25368 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the compiler's result" >&2;}
25369     ac_header_preproc=yes
25370     ;;
25371   no:yes:* )
25372     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: present but cannot be compiled" >&5
25373 echo "$as_me: WARNING: Standard_Type.hxx: present but cannot be compiled" >&2;}
25374     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx:     check for missing prerequisite headers?" >&5
25375 echo "$as_me: WARNING: Standard_Type.hxx:     check for missing prerequisite headers?" >&2;}
25376     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: see the Autoconf documentation" >&5
25377 echo "$as_me: WARNING: Standard_Type.hxx: see the Autoconf documentation" >&2;}
25378     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx:     section \"Present But Cannot Be Compiled\"" >&5
25379 echo "$as_me: WARNING: Standard_Type.hxx:     section \"Present But Cannot Be Compiled\"" >&2;}
25380     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
25381 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;}
25382     { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: in the future, the compiler will take precedence" >&5
25383 echo "$as_me: WARNING: Standard_Type.hxx: in the future, the compiler will take precedence" >&2;}
25384     ( cat <<\_ASBOX
25385 ## ----------------------------------------------- ##
25386 ## Report this to webmaster.salome@opencascade.com ##
25387 ## ----------------------------------------------- ##
25388 _ASBOX
25389      ) | sed "s/^/$as_me: WARNING:     /" >&2
25390     ;;
25391 esac
25392 { echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
25393 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6; }
25394 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25395   echo $ECHO_N "(cached) $ECHO_C" >&6
25396 else
25397   ac_cv_header_Standard_Type_hxx=$ac_header_preproc
25398 fi
25399 { echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
25400 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6; }
25401
25402 fi
25403 if test $ac_cv_header_Standard_Type_hxx = yes; then
25404   occ_ok=yes
25405 else
25406   occ_ok=no
25407 fi
25408
25409
25410
25411 fi
25412
25413 if test "x$occ_ok" = xyes ; then
25414
25415   { echo "$as_me:$LINENO: checking for OpenCascade libraries" >&5
25416 echo $ECHO_N "checking for OpenCascade libraries... $ECHO_C" >&6; }
25417
25418   LIBS_old="$LIBS"
25419   LIBS="$LIBS $CAS_LDPATH -lTKernel"
25420
25421   if test "${salome_cv_lib_occ+set}" = set; then
25422   echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424
25425     cat >conftest.$ac_ext <<_ACEOF
25426 /* confdefs.h.  */
25427 _ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h.  */
25431 #include <TCollection_AsciiString.hxx>
25432
25433 int
25434 main ()
25435 {
25436 TCollection_AsciiString aStr ("toto");
25437     aStr.Capitalize();
25438   ;
25439   return 0;
25440 }
25441 _ACEOF
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (ac_try="$ac_link"
25444 case "(($ac_try" in
25445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446   *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449   (eval "$ac_link") 2>conftest.er1
25450   ac_status=$?
25451   grep -v '^ *+' conftest.er1 >conftest.err
25452   rm -f conftest.er1
25453   cat conftest.err >&5
25454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455   (exit $ac_status); } && {
25456          test -z "$ac_cxx_werror_flag" ||
25457          test ! -s conftest.err
25458        } && test -s conftest$ac_exeext &&
25459        $as_test_x conftest$ac_exeext; then
25460   eval "salome_cv_lib_occ=yes"
25461 else
25462   echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25464
25465         eval "salome_cv_lib_occ=no"
25466 fi
25467
25468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25469       conftest$ac_exeext conftest.$ac_ext
25470
25471 fi
25472
25473   occ_ok="$salome_cv_lib_occ"
25474
25475 fi
25476 CPPFLAGS="$CPPFLAGS_old"
25477 LIBS="$LIBS_old"
25478
25479 if test "x$occ_ok" = xno ; then
25480   { echo "$as_me:$LINENO: result: no" >&5
25481 echo "${ECHO_T}no" >&6; }
25482   { echo "$as_me:$LINENO: WARNING: Opencascade libraries not found" >&5
25483 echo "$as_me: WARNING: Opencascade libraries not found" >&2;}
25484 else
25485   { echo "$as_me:$LINENO: result: yes" >&5
25486 echo "${ECHO_T}yes" >&6; }
25487   CAS_KERNEL="$CAS_LDPATH -lTKernel"
25488   CAS_MATH="$CAS_LDPATH -lTKMath"
25489
25490   if test -f $CASROOT/$casdir/lib/libStdPlugin.so ; then
25491     # this libraries are only for CASCADE 5.2.3
25492     CAS_STDPLUGIN="StdPlugin"
25493   fi
25494
25495   CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKernel -lTKCDF -lTKLCAF -lTKPCAF -lTKStdSchema"
25496   CAS_OCAFVIS="$CAS_LDPATH -lTKCAF -lStdPlugin -lStdLPlugin -lTKPLCAF -lTKPShape -lTKStdLSchema -lTKShapeSchema"
25497
25498   CAS_TKV3d="$CAS_LDPATH -lTKV3d"
25499   CAS_VIEWER="$CAS_TKV3d -lTKService"
25500
25501   CAS_TKBRep="$CAS_LDPATH -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep"
25502
25503   CAS_TKTopAlgo="$CAS_TKBRep -lTKGeomAlgo -lTKTopAlgo"
25504   CAS_TKPrim="$CAS_TKTopAlgo -lTKPrim"
25505
25506   CAS_MODELER="$CAS_TKPrim -lTKBO -lTKBool -lTKHLR -lTKFillet -lTKOffset -lTKFeat"
25507
25508   CAS_DATAEXCHANGE="$CAS_LDPATH -lTKIGES -lTKSTEP"
25509
25510   CAS_LDFLAGS="$CAS_KERNEL $CAS_MATH $CAS_OCAF $CAS_OCAFVIS $CAS_VIEWER $CAS_MODELER $CAS_DATAEXCHANGE"
25511
25512 fi
25513
25514 ac_ext=c
25515 ac_cpp='$CPP $CPPFLAGS'
25516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25519
25520
25521
25522
25523 echo
25524 echo ---------------------------------------------
25525 echo testing omniORB
25526 echo ---------------------------------------------
25527 echo
25528
25529
25530
25531 { echo "$as_me:$LINENO: checking for omniORB..." >&5
25532 echo "$as_me: checking for omniORB..." >&6;}
25533 omniORB_ok=yes
25534
25535 if test "x$PYTHON" = "x"
25536 then
25537
25538   python_ok=yes
25539
25540
25541 # Check whether --with-python was given.
25542 if test "${with_python+set}" = set; then
25543   withval=$with_python; PYTHON="$withval/bin/python"
25544     { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
25545 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
25546
25547 else
25548
25549     # Extract the first word of "python", so it can be a program name with args.
25550 set dummy python; ac_word=$2
25551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25553 if test "${ac_cv_path_PYTHON+set}" = set; then
25554   echo $ECHO_N "(cached) $ECHO_C" >&6
25555 else
25556   case $PYTHON in
25557   [\\/]* | ?:[\\/]*)
25558   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25559   ;;
25560   *)
25561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25562 for as_dir in $PATH
25563 do
25564   IFS=$as_save_IFS
25565   test -z "$as_dir" && as_dir=.
25566   for ac_exec_ext in '' $ac_executable_extensions; do
25567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25568     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
25569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25570     break 2
25571   fi
25572 done
25573 done
25574 IFS=$as_save_IFS
25575
25576   ;;
25577 esac
25578 fi
25579 PYTHON=$ac_cv_path_PYTHON
25580 if test -n "$PYTHON"; then
25581   { echo "$as_me:$LINENO: result: $PYTHON" >&5
25582 echo "${ECHO_T}$PYTHON" >&6; }
25583 else
25584   { echo "$as_me:$LINENO: result: no" >&5
25585 echo "${ECHO_T}no" >&6; }
25586 fi
25587
25588
25589
25590 fi
25591
25592
25593   { echo "$as_me:$LINENO: checking local Python configuration..." >&5
25594 echo "$as_me: checking local Python configuration..." >&6;}
25595
25596
25597   PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25598   PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25599   PYTHONHOME=$PYTHON_PREFIX
25600
25601
25602
25603
25604     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
25605
25606
25607   PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
25608   if test ! -f "$PY_MAKEFILE"; then
25609      { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
25610 *** missing the development portion of the python installation" >&5
25611 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}.  Maybe you are
25612 *** missing the development portion of the python installation" >&2;}
25613      python_ok=no
25614   fi
25615
25616
25617
25618
25619   PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
25620   PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
25621   PYTHON_LIB=$PYTHON_LIBS
25622   PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
25623
25624
25625
25626   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
25627
25628
25629
25630 # Check whether --with-python-site was given.
25631 if test "${with_python_site+set}" = set; then
25632   withval=$with_python_site;
25633
25634    PYTHON_SITE="$withval"
25635     python_site_given=yes
25636 else
25637   PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
25638     python_site_given=no
25639 fi
25640
25641
25642
25643   PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
25644
25645
25646
25647
25648
25649 # Check whether --with-python-site-exec was given.
25650 if test "${with_python_site_exec+set}" = set; then
25651   withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
25652 else
25653   if test "$python_site_given" = yes; then
25654        PYTHON_SITE_EXEC=$PYTHON_SITE
25655      else
25656        PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
25657      fi
25658 fi
25659
25660
25661     PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
25662
25663
25664
25665   pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
25666
25667
25668  { echo "$as_me:$LINENO: checking if we need libdb" >&5
25669 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
25670  PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
25671   if test "x$PY_NEEDOPENDB" != "x"; then
25672      { echo "$as_me:$LINENO: result: yes" >&5
25673 echo "${ECHO_T}yes" >&6; }
25674      { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
25675 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
25676 if test "${ac_cv_lib_db_dbopen+set}" = set; then
25677   echo $ECHO_N "(cached) $ECHO_C" >&6
25678 else
25679   ac_check_lib_save_LIBS=$LIBS
25680 LIBS="-ldb  $LIBS"
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h.  */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h.  */
25687
25688 /* Override any GCC internal prototype to avoid an error.
25689    Use char because int might match the return type of a GCC
25690    builtin and then its argument prototype would still apply.  */
25691 #ifdef __cplusplus
25692 extern "C"
25693 #endif
25694 char dbopen ();
25695 int
25696 main ()
25697 {
25698 return dbopen ();
25699   ;
25700   return 0;
25701 }
25702 _ACEOF
25703 rm -f conftest.$ac_objext conftest$ac_exeext
25704 if { (ac_try="$ac_link"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710   (eval "$ac_link") 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } && {
25717          test -z "$ac_c_werror_flag" ||
25718          test ! -s conftest.err
25719        } && test -s conftest$ac_exeext &&
25720        $as_test_x conftest$ac_exeext; then
25721   ac_cv_lib_db_dbopen=yes
25722 else
25723   echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         ac_cv_lib_db_dbopen=no
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25730       conftest$ac_exeext conftest.$ac_ext
25731 LIBS=$ac_check_lib_save_LIBS
25732 fi
25733 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
25734 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
25735 if test $ac_cv_lib_db_dbopen = yes; then
25736   PYTHON_LIBS="$PYTHON_LIBS -ldb"
25737 else
25738   db_ok=no
25739 fi
25740
25741   else
25742      { echo "$as_me:$LINENO: result: no" >&5
25743 echo "${ECHO_T}no" >&6; }
25744   fi
25745
25746  { echo "$as_me:$LINENO: checking if we need libdl" >&5
25747 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
25748   PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
25749   if test "x$PY_NEEDOPENDL" != "x"; then
25750      { echo "$as_me:$LINENO: result: yes" >&5
25751 echo "${ECHO_T}yes" >&6; }
25752      { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25753 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
25754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25755   echo $ECHO_N "(cached) $ECHO_C" >&6
25756 else
25757   ac_check_lib_save_LIBS=$LIBS
25758 LIBS="-ldl  $LIBS"
25759 cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765
25766 /* Override any GCC internal prototype to avoid an error.
25767    Use char because int might match the return type of a GCC
25768    builtin and then its argument prototype would still apply.  */
25769 #ifdef __cplusplus
25770 extern "C"
25771 #endif
25772 char dlopen ();
25773 int
25774 main ()
25775 {
25776 return dlopen ();
25777   ;
25778   return 0;
25779 }
25780 _ACEOF
25781 rm -f conftest.$ac_objext conftest$ac_exeext
25782 if { (ac_try="$ac_link"
25783 case "(($ac_try" in
25784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785   *) ac_try_echo=$ac_try;;
25786 esac
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788   (eval "$ac_link") 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } && {
25795          test -z "$ac_c_werror_flag" ||
25796          test ! -s conftest.err
25797        } && test -s conftest$ac_exeext &&
25798        $as_test_x conftest$ac_exeext; then
25799   ac_cv_lib_dl_dlopen=yes
25800 else
25801   echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25803
25804         ac_cv_lib_dl_dlopen=no
25805 fi
25806
25807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25808       conftest$ac_exeext conftest.$ac_ext
25809 LIBS=$ac_check_lib_save_LIBS
25810 fi
25811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25812 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
25813 if test $ac_cv_lib_dl_dlopen = yes; then
25814   PYTHON_LIBS="$PYTHON_LIBS -ldl"
25815 else
25816   dl_ok=no
25817 fi
25818
25819   else
25820      { echo "$as_me:$LINENO: result: no" >&5
25821 echo "${ECHO_T}no" >&6; }
25822   fi
25823
25824  { echo "$as_me:$LINENO: checking if we need libutil" >&5
25825 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
25826   PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
25827   if test "x$PY_NEEDOPENPTY" != "x"; then
25828      { echo "$as_me:$LINENO: result: yes" >&5
25829 echo "${ECHO_T}yes" >&6; }
25830      { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
25831 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
25832 if test "${ac_cv_lib_util_openpty+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   ac_check_lib_save_LIBS=$LIBS
25836 LIBS="-lutil  $LIBS"
25837 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843
25844 /* Override any GCC internal prototype to avoid an error.
25845    Use char because int might match the return type of a GCC
25846    builtin and then its argument prototype would still apply.  */
25847 #ifdef __cplusplus
25848 extern "C"
25849 #endif
25850 char openpty ();
25851 int
25852 main ()
25853 {
25854 return openpty ();
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (ac_try="$ac_link"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_link") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && {
25873          test -z "$ac_c_werror_flag" ||
25874          test ! -s conftest.err
25875        } && test -s conftest$ac_exeext &&
25876        $as_test_x conftest$ac_exeext; then
25877   ac_cv_lib_util_openpty=yes
25878 else
25879   echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882         ac_cv_lib_util_openpty=no
25883 fi
25884
25885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25886       conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25888 fi
25889 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
25890 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
25891 if test $ac_cv_lib_util_openpty = yes; then
25892   PYTHON_LIBS="$PYTHON_LIBS -lutil"
25893 else
25894   openpty_ok=no
25895 fi
25896
25897   else
25898      { echo "$as_me:$LINENO: result: no" >&5
25899 echo "${ECHO_T}no" >&6; }
25900   fi
25901
25902  { echo "$as_me:$LINENO: checking if we need tcltk" >&5
25903 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
25904   PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
25905   if test "x$PY_NEEDTCLTK" != "x"; then
25906      { echo "$as_me:$LINENO: result: yes" >&5
25907 echo "${ECHO_T}yes" >&6; }
25908      { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
25909 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
25910 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   ac_check_lib_save_LIBS=$LIBS
25914 LIBS="-ltcl  $LIBS"
25915 cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921
25922 /* Override any GCC internal prototype to avoid an error.
25923    Use char because int might match the return type of a GCC
25924    builtin and then its argument prototype would still apply.  */
25925 #ifdef __cplusplus
25926 extern "C"
25927 #endif
25928 char Tcl_Init ();
25929 int
25930 main ()
25931 {
25932 return Tcl_Init ();
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 rm -f conftest.$ac_objext conftest$ac_exeext
25938 if { (ac_try="$ac_link"
25939 case "(($ac_try" in
25940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941   *) ac_try_echo=$ac_try;;
25942 esac
25943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944   (eval "$ac_link") 2>conftest.er1
25945   ac_status=$?
25946   grep -v '^ *+' conftest.er1 >conftest.err
25947   rm -f conftest.er1
25948   cat conftest.err >&5
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } && {
25951          test -z "$ac_c_werror_flag" ||
25952          test ! -s conftest.err
25953        } && test -s conftest$ac_exeext &&
25954        $as_test_x conftest$ac_exeext; then
25955   ac_cv_lib_tcl_Tcl_Init=yes
25956 else
25957   echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25959
25960         ac_cv_lib_tcl_Tcl_Init=no
25961 fi
25962
25963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25964       conftest$ac_exeext conftest.$ac_ext
25965 LIBS=$ac_check_lib_save_LIBS
25966 fi
25967 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
25968 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
25969 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
25970   PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
25971 else
25972   tclinit_ok=no
25973 fi
25974
25975   else
25976      { echo "$as_me:$LINENO: result: no" >&5
25977 echo "${ECHO_T}no" >&6; }
25978   fi
25979
25980   if test "$python_ok" == "yes"; then
25981       { echo "$as_me:$LINENO: result: looks good" >&5
25982 echo "${ECHO_T}looks good" >&6; }
25983   fi
25984
25985 fi
25986
25987
25988 ac_ext=cpp
25989 ac_cpp='$CXXCPP $CPPFLAGS'
25990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25993
25994
25995 # Extract the first word of "omniidl", so it can be a program name with args.
25996 set dummy omniidl; ac_word=$2
25997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25999 if test "${ac_cv_path_OMNIORB_IDL+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 else
26002   case $OMNIORB_IDL in
26003   [\\/]* | ?:[\\/]*)
26004   ac_cv_path_OMNIORB_IDL="$OMNIORB_IDL" # Let the user override the test with a path.
26005   ;;
26006   *)
26007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26008 for as_dir in $PATH
26009 do
26010   IFS=$as_save_IFS
26011   test -z "$as_dir" && as_dir=.
26012   for ac_exec_ext in '' $ac_executable_extensions; do
26013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26014     ac_cv_path_OMNIORB_IDL="$as_dir/$ac_word$ac_exec_ext"
26015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26016     break 2
26017   fi
26018 done
26019 done
26020 IFS=$as_save_IFS
26021
26022   ;;
26023 esac
26024 fi
26025 OMNIORB_IDL=$ac_cv_path_OMNIORB_IDL
26026 if test -n "$OMNIORB_IDL"; then
26027   { echo "$as_me:$LINENO: result: $OMNIORB_IDL" >&5
26028 echo "${ECHO_T}$OMNIORB_IDL" >&6; }
26029 else
26030   { echo "$as_me:$LINENO: result: no" >&5
26031 echo "${ECHO_T}no" >&6; }
26032 fi
26033
26034
26035 if test "x$OMNIORB_IDL" = "x"
26036 then
26037   omniORB_ok=no
26038   { echo "$as_me:$LINENO: result: omniORB binaries not in PATH variable" >&5
26039 echo "${ECHO_T}omniORB binaries not in PATH variable" >&6; }
26040 else
26041   omniORB_ok=yes
26042 fi
26043
26044 if  test "x$omniORB_ok" = "xyes"
26045 then
26046
26047
26048   OMNIORB_BIN=`echo ${OMNIORB_IDL} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26049   OMNIORB_ROOT=${OMNIORB_BIN}
26050   # one-level up
26051   OMNIORB_ROOT=`echo ${OMNIORB_ROOT}  | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26052   #
26053   #
26054   if test -d $OMNIORB_ROOT/include ; then
26055     # if $OMNIORB_ROOT/include exists, there are a lot of chance that
26056     # this is omniORB4.x installed via configure && make && make install
26057     OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin\$,lib,"`
26058     OMNIORB_VERSION=4
26059   else
26060     # omniORB has been installed old way
26061     OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin/,lib/,"`
26062     # one-level up again
26063     OMNIORB_ROOT=`echo ${OMNIORB_ROOT}  | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26064     if test -d $OMNIORB_ROOT/include/omniORB4 ; then
26065       OMNIORB_VERSION=4
26066     else
26067       OMNIORB_VERSION=3
26068     fi
26069   fi
26070
26071
26072   OMNIORB_INCLUDES="-I$OMNIORB_ROOT/include -I$OMNIORB_ROOT/include/omniORB${OMNIORB_VERSION} -I$OMNIORB_ROOT/include/COS"
26073
26074
26075
26076
26077
26078 if test x"$enable_pthreads_done" != xyes; then
26079   if test x"$acx_pthread_ok" = xyes; then
26080     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26081     CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
26082     LIBS="$LIBS $PTHREAD_LIBS"
26083     threads_ok=yes
26084   else
26085     threads_ok=no
26086   fi
26087   enable_pthreads_done=yes
26088 fi
26089
26090
26091   OMNIORB_CXXFLAGS="-DOMNIORB_VERSION=$OMNIORB_VERSION"
26092   case $build_cpu in
26093     sparc*)
26094       # AC_DEFINE(__sparc__)
26095       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sparc__"
26096       ;;
26097    *86*)
26098       # AC_DEFINE(__x86__)
26099       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__x86__"
26100       ;;
26101   esac
26102   case $build_os in
26103     osf*)
26104       # AC_DEFINE(__osf1__)
26105       __OSVERSION__=5
26106
26107 cat >>confdefs.h <<\_ACEOF
26108 #define __OSVERSION__ 5
26109 _ACEOF
26110
26111       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__osf1__"
26112       ;;
26113     solaris*)
26114       # AC_DEFINE(__sunos__)
26115       __OSVERSION__=5
26116
26117 cat >>confdefs.h <<\_ACEOF
26118 #define __OSVERSION__ 5
26119 _ACEOF
26120
26121       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sunos__"
26122       ;;
26123    linux*)
26124       # AC_DEFINE(__linux__)
26125       __OSVERSION__=2
26126
26127 cat >>confdefs.h <<\_ACEOF
26128 #define __OSVERSION__ 2
26129 _ACEOF
26130
26131       OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__linux__"
26132       ;;
26133   esac
26134
26135
26136   CPPFLAGS_old=$CPPFLAGS
26137   CPPFLAGS="$CPPFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26138
26139   ac_ext=cpp
26140 ac_cpp='$CXXCPP $CPPFLAGS'
26141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26144
26145   if test "${ac_cv_header_CORBA_h+set}" = set; then
26146   { echo "$as_me:$LINENO: checking for CORBA.h" >&5
26147 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
26148 if test "${ac_cv_header_CORBA_h+set}" = set; then
26149   echo $ECHO_N "(cached) $ECHO_C" >&6
26150 fi
26151 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
26152 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
26153 else
26154   # Is the header compilable?
26155 { echo "$as_me:$LINENO: checking CORBA.h usability" >&5
26156 echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6; }
26157 cat >conftest.$ac_ext <<_ACEOF
26158 /* confdefs.h.  */
26159 _ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h.  */
26163 $ac_includes_default
26164 #include <CORBA.h>
26165 _ACEOF
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_compile") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && {
26180          test -z "$ac_cxx_werror_flag" ||
26181          test ! -s conftest.err
26182        } && test -s conftest.$ac_objext; then
26183   ac_header_compiler=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188         ac_header_compiler=no
26189 fi
26190
26191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26193 echo "${ECHO_T}$ac_header_compiler" >&6; }
26194
26195 # Is the header present?
26196 { echo "$as_me:$LINENO: checking CORBA.h presence" >&5
26197 echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6; }
26198 cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204 #include <CORBA.h>
26205 _ACEOF
26206 if { (ac_try="$ac_cpp conftest.$ac_ext"
26207 case "(($ac_try" in
26208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209   *) ac_try_echo=$ac_try;;
26210 esac
26211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26213   ac_status=$?
26214   grep -v '^ *+' conftest.er1 >conftest.err
26215   rm -f conftest.er1
26216   cat conftest.err >&5
26217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218   (exit $ac_status); } >/dev/null && {
26219          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26220          test ! -s conftest.err
26221        }; then
26222   ac_header_preproc=yes
26223 else
26224   echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227   ac_header_preproc=no
26228 fi
26229
26230 rm -f conftest.err conftest.$ac_ext
26231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26232 echo "${ECHO_T}$ac_header_preproc" >&6; }
26233
26234 # So?  What about this header?
26235 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26236   yes:no: )
26237     { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
26238 echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the compiler's result" >&5
26240 echo "$as_me: WARNING: CORBA.h: proceeding with the compiler's result" >&2;}
26241     ac_header_preproc=yes
26242     ;;
26243   no:yes:* )
26244     { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
26245 echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
26246     { echo "$as_me:$LINENO: WARNING: CORBA.h:     check for missing prerequisite headers?" >&5
26247 echo "$as_me: WARNING: CORBA.h:     check for missing prerequisite headers?" >&2;}
26248     { echo "$as_me:$LINENO: WARNING: CORBA.h: see the Autoconf documentation" >&5
26249 echo "$as_me: WARNING: CORBA.h: see the Autoconf documentation" >&2;}
26250     { echo "$as_me:$LINENO: WARNING: CORBA.h:     section \"Present But Cannot Be Compiled\"" >&5
26251 echo "$as_me: WARNING: CORBA.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26252     { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
26253 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;}
26254     { echo "$as_me:$LINENO: WARNING: CORBA.h: in the future, the compiler will take precedence" >&5
26255 echo "$as_me: WARNING: CORBA.h: in the future, the compiler will take precedence" >&2;}
26256     ( cat <<\_ASBOX
26257 ## ----------------------------------------------- ##
26258 ## Report this to webmaster.salome@opencascade.com ##
26259 ## ----------------------------------------------- ##
26260 _ASBOX
26261      ) | sed "s/^/$as_me: WARNING:     /" >&2
26262     ;;
26263 esac
26264 { echo "$as_me:$LINENO: checking for CORBA.h" >&5
26265 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
26266 if test "${ac_cv_header_CORBA_h+set}" = set; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 else
26269   ac_cv_header_CORBA_h=$ac_header_preproc
26270 fi
26271 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
26272 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
26273
26274 fi
26275 if test $ac_cv_header_CORBA_h = yes; then
26276   omniORB_ok="yes"
26277 else
26278   omniORB_ok="no"
26279 fi
26280
26281
26282
26283   CPPFLAGS=$CPPFLAGS_old
26284
26285 fi
26286
26287 if test "x$omniORB_ok" = "xyes"
26288 then
26289   if test "x$OMNIORB_LIB" = "x/usr/lib"
26290   then
26291     OMNIORB_LDFLAGS=""
26292     OMNIORB_RFLAGS=""
26293   else
26294     OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
26295     OMNIORB_RFLAGS="-R$OMNIORB_LIB"
26296   fi
26297
26298   LIBS_old=$LIBS
26299   LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
26300
26301   CXXFLAGS_old=$CXXFLAGS
26302   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26303
26304   { echo "$as_me:$LINENO: checking whether we can link with omnithreads" >&5
26305 echo $ECHO_N "checking whether we can link with omnithreads... $ECHO_C" >&6; }
26306   if test "${salome_cv_lib_omnithreads+set}" = set; then
26307   echo $ECHO_N "(cached) $ECHO_C" >&6
26308 else
26309
26310     cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h.  */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h.  */
26316 #include <omnithread.h>
26317
26318 int
26319 main ()
26320 {
26321 omni_mutex my_mutex
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (ac_try="$ac_link"
26328 case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_link") 2>conftest.er1
26334   ac_status=$?
26335   grep -v '^ *+' conftest.er1 >conftest.err
26336   rm -f conftest.er1
26337   cat conftest.err >&5
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); } && {
26340          test -z "$ac_cxx_werror_flag" ||
26341          test ! -s conftest.err
26342        } && test -s conftest$ac_exeext &&
26343        $as_test_x conftest$ac_exeext; then
26344   eval "salome_cv_lib_omnithreads=yes"
26345 else
26346   echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26348
26349         eval "salome_cv_lib_omnithreads=no"
26350 fi
26351
26352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26353       conftest$ac_exeext conftest.$ac_ext
26354
26355 fi
26356
26357
26358   omniORB_ok="$salome_cv_lib_omnithreads"
26359   if  test "x$omniORB_ok" = "xno"
26360   then
26361     { echo "$as_me:$LINENO: result: omnithreads not found" >&5
26362 echo "${ECHO_T}omnithreads not found" >&6; }
26363   else
26364     { echo "$as_me:$LINENO: result: yes" >&5
26365 echo "${ECHO_T}yes" >&6; }
26366   fi
26367
26368   LIBS=$LIBS_old
26369   CXXFLAGS=$CXXFLAGS_old
26370 fi
26371
26372
26373 if test "x$omniORB_ok" = "xyes"
26374 then
26375
26376   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26377 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26378 if test "${ac_cv_lib_socket_socket+set}" = set; then
26379   echo $ECHO_N "(cached) $ECHO_C" >&6
26380 else
26381   ac_check_lib_save_LIBS=$LIBS
26382 LIBS="-lsocket  $LIBS"
26383 cat >conftest.$ac_ext <<_ACEOF
26384 /* confdefs.h.  */
26385 _ACEOF
26386 cat confdefs.h >>conftest.$ac_ext
26387 cat >>conftest.$ac_ext <<_ACEOF
26388 /* end confdefs.h.  */
26389
26390 /* Override any GCC internal prototype to avoid an error.
26391    Use char because int might match the return type of a GCC
26392    builtin and then its argument prototype would still apply.  */
26393 #ifdef __cplusplus
26394 extern "C"
26395 #endif
26396 char socket ();
26397 int
26398 main ()
26399 {
26400 return socket ();
26401   ;
26402   return 0;
26403 }
26404 _ACEOF
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409   *) ac_try_echo=$ac_try;;
26410 esac
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412   (eval "$ac_link") 2>conftest.er1
26413   ac_status=$?
26414   grep -v '^ *+' conftest.er1 >conftest.err
26415   rm -f conftest.er1
26416   cat conftest.err >&5
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); } && {
26419          test -z "$ac_cxx_werror_flag" ||
26420          test ! -s conftest.err
26421        } && test -s conftest$ac_exeext &&
26422        $as_test_x conftest$ac_exeext; then
26423   ac_cv_lib_socket_socket=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428         ac_cv_lib_socket_socket=no
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432       conftest$ac_exeext conftest.$ac_ext
26433 LIBS=$ac_check_lib_save_LIBS
26434 fi
26435 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26436 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26437 if test $ac_cv_lib_socket_socket = yes; then
26438   LIBS="-lsocket $LIBS"
26439 fi
26440
26441   { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26444   echo $ECHO_N "(cached) $ECHO_C" >&6
26445 else
26446   ac_check_lib_save_LIBS=$LIBS
26447 LIBS="-lnsl  $LIBS"
26448 cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454
26455 /* Override any GCC internal prototype to avoid an error.
26456    Use char because int might match the return type of a GCC
26457    builtin and then its argument prototype would still apply.  */
26458 #ifdef __cplusplus
26459 extern "C"
26460 #endif
26461 char gethostbyname ();
26462 int
26463 main ()
26464 {
26465 return gethostbyname ();
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_link") 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } && {
26484          test -z "$ac_cxx_werror_flag" ||
26485          test ! -s conftest.err
26486        } && test -s conftest$ac_exeext &&
26487        $as_test_x conftest$ac_exeext; then
26488   ac_cv_lib_nsl_gethostbyname=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493         ac_cv_lib_nsl_gethostbyname=no
26494 fi
26495
26496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26497       conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_check_lib_save_LIBS
26499 fi
26500 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26501 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26502 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26503   LIBS="-lnsl $LIBS"
26504 fi
26505
26506
26507   LIBS_old=$LIBS
26508   OMNIORB_LIBS="$OMNIORB_LDFLAGS"
26509   OMNIORB_LIBS="$OMNIORB_LIBS -lomniORB${OMNIORB_VERSION}"
26510   OMNIORB_LIBS="$OMNIORB_LIBS -lomniDynamic${OMNIORB_VERSION}"
26511   OMNIORB_LIBS="$OMNIORB_LIBS -lCOS${OMNIORB_VERSION}"
26512   OMNIORB_LIBS="$OMNIORB_LIBS -lCOSDynamic${OMNIORB_VERSION}"
26513   OMNIORB_LIBS="$OMNIORB_LIBS -lomnithread"
26514   OMNIORB_LIBS="$OMNIORB_LIBS ${OMNIORB_RFLAGS}"
26515   if test $OMNIORB_VERSION = 3 ; then
26516     OMNIORB_LIBS="$OMNIORB_LIBS -ltcpwrapGK"
26517   fi
26518
26519
26520   LIBS="$OMNIORB_LIBS $LIBS"
26521   CXXFLAGS_old=$CXXFLAGS
26522   CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26523
26524   { echo "$as_me:$LINENO: checking whether we can link with omniORB" >&5
26525 echo $ECHO_N "checking whether we can link with omniORB... $ECHO_C" >&6; }
26526   if test "${salome_cv_lib_omniorb+set}" = set; then
26527   echo $ECHO_N "(cached) $ECHO_C" >&6
26528 else
26529
26530     cat >conftest.$ac_ext <<_ACEOF
26531 /* confdefs.h.  */
26532 _ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h.  */
26536 #include <CORBA.h>
26537
26538 int
26539 main ()
26540 {
26541 CORBA::ORB_var orb
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_link") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } && {
26560          test -z "$ac_cxx_werror_flag" ||
26561          test ! -s conftest.err
26562        } && test -s conftest$ac_exeext &&
26563        $as_test_x conftest$ac_exeext; then
26564   eval "salome_cv_lib_omniorb3=yes"
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569         eval "salome_cv_lib_omniorb3=no"
26570 fi
26571
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573       conftest$ac_exeext conftest.$ac_ext
26574
26575 fi
26576
26577   omniORB_ok="$salome_cv_lib_omniorb3"
26578
26579   omniORB_ok=yes
26580   if test "x$omniORB_ok" = "xno"
26581   then
26582     { echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
26583 echo "${ECHO_T}omniORB library linking failed" >&6; }
26584     omniORB_ok=no
26585   else
26586     { echo "$as_me:$LINENO: result: yes" >&5
26587 echo "${ECHO_T}yes" >&6; }
26588   fi
26589   LIBS="$LIBS_old"
26590   CXXFLAGS=$CXXFLAGS_old
26591 fi
26592
26593
26594 if test "x$omniORB_ok" = "xyes"
26595 then
26596
26597   OMNIORB_IDLCXXFLAGS="-Wba -nf -I${OMNIORB_ROOT}/idl"
26598   OMNIORB_IDLPYFLAGS_1='-bpython'
26599   OMNIORB_IDLPYFLAGS_2=" -I${OMNIORB_ROOT}/idl"
26600   OMNIORB_IDLPYFLAGS=${OMNIORB_IDLPYFLAGS_1}${OMNIORB_IDLPYFLAGS_2}
26601
26602
26603
26604
26605   OMNIORB_IDL_CLN_H=.hh
26606   OMNIORB_IDL_CLN_CXX=SK.cc
26607   OMNIORB_IDL_CLN_OBJ=SK.o
26608
26609
26610
26611
26612   OMNIORB_IDL_SRV_H=.hh
26613   OMNIORB_IDL_SRV_CXX=SK.cc
26614   OMNIORB_IDL_SRV_OBJ=SK.o
26615
26616
26617
26618
26619   OMNIORB_IDL_TIE_H=
26620   OMNIORB_IDL_TIE_CXX=
26621
26622
26623
26624
26625 cat >>confdefs.h <<\_ACEOF
26626 #define OMNIORB
26627 _ACEOF
26628
26629
26630   CORBA_HAVE_POA=1
26631
26632 cat >>confdefs.h <<\_ACEOF
26633 #define CORBA_HAVE_POA
26634 _ACEOF
26635
26636
26637   CORBA_ORB_INIT_HAVE_3_ARGS=1
26638
26639 cat >>confdefs.h <<\_ACEOF
26640 #define CORBA_ORB_INIT_HAVE_3_ARGS
26641 _ACEOF
26642
26643   CORBA_ORB_INIT_THIRD_ARG='"omniORB"'
26644
26645 cat >>confdefs.h <<\_ACEOF
26646 #define CORBA_ORB_INIT_THIRD_ARG
26647 _ACEOF
26648
26649
26650 fi
26651
26652 omniORBpy_ok=no
26653 if  test "x$omniORB_ok" = "xyes"
26654 then
26655   { echo "$as_me:$LINENO: checking omniORBpy" >&5
26656 echo $ECHO_N "checking omniORBpy... $ECHO_C" >&6; }
26657   $PYTHON -c "import omniORB" &> /dev/null
26658   if test $? = 0 ; then
26659     { echo "$as_me:$LINENO: result: yes" >&5
26660 echo "${ECHO_T}yes" >&6; }
26661     omniORBpy_ok=yes
26662   else
26663     { echo "$as_me:$LINENO: result: no" >&5
26664 echo "${ECHO_T}no" >&6; }
26665     omniORBpy_ok=no
26666   fi
26667 fi
26668
26669
26670 { echo "$as_me:$LINENO: result: for omniORBpy: $omniORBpy_ok" >&5
26671 echo "${ECHO_T}for omniORBpy: $omniORBpy_ok" >&6; }
26672 { echo "$as_me:$LINENO: result: for omniORB: $omniORB_ok" >&5
26673 echo "${ECHO_T}for omniORB: $omniORB_ok" >&6; }
26674
26675 # Save cache
26676 cat >confcache <<\_ACEOF
26677 # This file is a shell script that caches the results of configure
26678 # tests run on this system so they can be shared between configure
26679 # scripts and configure runs, see configure's option --config-cache.
26680 # It is not useful on other systems.  If it contains results you don't
26681 # want to keep, you may remove or edit it.
26682 #
26683 # config.status only pays attention to the cache file if you give it
26684 # the --recheck option to rerun configure.
26685 #
26686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26688 # following values.
26689
26690 _ACEOF
26691
26692 # The following way of writing the cache mishandles newlines in values,
26693 # but we know of no workaround that is simple, portable, and efficient.
26694 # So, we kill variables containing newlines.
26695 # Ultrix sh set writes to stderr and can't be redirected directly,
26696 # and sets the high bit in the cache file unless we assign to the vars.
26697 (
26698   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26699     eval ac_val=\$$ac_var
26700     case $ac_val in #(
26701     *${as_nl}*)
26702       case $ac_var in #(
26703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26705       esac
26706       case $ac_var in #(
26707       _ | IFS | as_nl) ;; #(
26708       *) $as_unset $ac_var ;;
26709       esac ;;
26710     esac
26711   done
26712
26713   (set) 2>&1 |
26714     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26715     *${as_nl}ac_space=\ *)
26716       # `set' does not quote correctly, so add quotes (double-quote
26717       # substitution turns \\\\ into \\, and sed turns \\ into \).
26718       sed -n \
26719         "s/'/'\\\\''/g;
26720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26721       ;; #(
26722     *)
26723       # `set' quotes correctly as required by POSIX, so do not add quotes.
26724       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26725       ;;
26726     esac |
26727     sort
26728 ) |
26729   sed '
26730      /^ac_cv_env_/b end
26731      t clear
26732      :clear
26733      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26734      t end
26735      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26736      :end' >>confcache
26737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26738   if test -w "$cache_file"; then
26739     test "x$cache_file" != "x/dev/null" &&
26740       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26741 echo "$as_me: updating cache $cache_file" >&6;}
26742     cat confcache >$cache_file
26743   else
26744     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26745 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26746   fi
26747 fi
26748 rm -f confcache
26749
26750
26751 CXXFLAGS_old=$CXXFLAGS
26752 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26753 LIBS_old=$LIBS
26754 LIBS="$LIBS $OMNIORB_LDFLAGS $OMNIORB_LIBS"
26755 { echo "$as_me:$LINENO: checking whether we have double and CORBA::Double compatibility" >&5
26756 echo $ECHO_N "checking whether we have double and CORBA::Double compatibility... $ECHO_C" >&6; }
26757 if test "$cross_compiling" = yes; then
26758   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26759 See \`config.log' for more details." >&5
26760 echo "$as_me: error: cannot run test program while cross compiling
26761 See \`config.log' for more details." >&2;}
26762    { (exit 1); exit 1; }; }
26763 else
26764   cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 #include <stdlib.h>
26771 #include <CORBA.h>
26772 int main ()
26773 {
26774   CORBA::Double *a=new CORBA::Double(2.5);
26775   double c=2.5;
26776   double *b;
26777   b=(double *)a;
26778
26779   if( (c==*b) && (sizeof(double)==sizeof(CORBA::Double)) ){
26780     delete a;
26781     exit(0);
26782   }
26783   else{
26784     delete a;
26785     exit(1);
26786   }
26787 }
26788
26789 _ACEOF
26790 rm -f conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794   *) ac_try_echo=$ac_try;;
26795 esac
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797   (eval "$ac_link") 2>&5
26798   ac_status=$?
26799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26801   { (case "(($ac_try" in
26802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803   *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806   (eval "$ac_try") 2>&5
26807   ac_status=$?
26808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809   (exit $ac_status); }; }; then
26810   DOUBLECOMP="yes"
26811 else
26812   echo "$as_me: program exited with status $ac_status" >&5
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816 ( exit $ac_status )
26817 DOUBLECOMP="no"
26818 fi
26819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26820 fi
26821
26822
26823 if test "$DOUBLECOMP" = yes; then
26824   OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_DOUBLE"
26825   { echo "$as_me:$LINENO: result: yes" >&5
26826 echo "${ECHO_T}yes" >&6; }
26827 else
26828   { echo "$as_me:$LINENO: result: no" >&5
26829 echo "${ECHO_T}no" >&6; }
26830 fi
26831 { echo "$as_me:$LINENO: checking whether we have int and CORBA::Long compatibility" >&5
26832 echo $ECHO_N "checking whether we have int and CORBA::Long compatibility... $ECHO_C" >&6; }
26833 if test "$cross_compiling" = yes; then
26834   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26835 See \`config.log' for more details." >&5
26836 echo "$as_me: error: cannot run test program while cross compiling
26837 See \`config.log' for more details." >&2;}
26838    { (exit 1); exit 1; }; }
26839 else
26840   cat >conftest.$ac_ext <<_ACEOF
26841 /* confdefs.h.  */
26842 _ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h.  */
26846 #include <stdlib.h>
26847 #include <CORBA.h>
26848 int main ()
26849 {
26850   CORBA::Long *a=new CORBA::Long(2);
26851   int c=2;
26852   int *b;
26853   b=(int *)a;
26854
26855   if( (c==*b) && (sizeof(int)==sizeof(CORBA::Long)) )
26856     exit(0);
26857   else
26858     exit(1);
26859 }
26860
26861 _ACEOF
26862 rm -f conftest$ac_exeext
26863 if { (ac_try="$ac_link"
26864 case "(($ac_try" in
26865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866   *) ac_try_echo=$ac_try;;
26867 esac
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869   (eval "$ac_link") 2>&5
26870   ac_status=$?
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26873   { (case "(($ac_try" in
26874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875   *) ac_try_echo=$ac_try;;
26876 esac
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878   (eval "$ac_try") 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; }; then
26882   LONGCOMP="yes"
26883 else
26884   echo "$as_me: program exited with status $ac_status" >&5
26885 echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26887
26888 ( exit $ac_status )
26889 LONGCOMP="no"
26890 fi
26891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26892 fi
26893
26894
26895 if test "$LONGCOMP" = yes; then
26896   OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_LONG"
26897   { echo "$as_me:$LINENO: result: yes" >&5
26898 echo "${ECHO_T}yes" >&6; }
26899 else
26900   { echo "$as_me:$LINENO: result: no" >&5
26901 echo "${ECHO_T}no" >&6; }
26902 fi
26903 CXXFLAGS=$CXXFLAGS_old
26904 LIBS=$LIBS_old
26905
26906 ac_ext=c
26907 ac_cpp='$CPP $CPPFLAGS'
26908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26911
26912
26913
26914
26915
26916
26917 echo
26918 echo ---------------------------------------------
26919 echo default ORB : omniORB
26920 echo ---------------------------------------------
26921 echo
26922
26923 DEFAULT_ORB=omniORB
26924
26925
26926 if test x"$DEFAULT_ORB" = x"omniORB"
26927 then
26928
26929   #  Contient le nom de l'ORB
26930   ORB=omniorb
26931
26932   { echo "$as_me:$LINENO: result: default orb : omniORB" >&5
26933 echo "${ECHO_T}default orb : omniORB" >&6; }
26934   IDL=$OMNIORB_IDL
26935
26936
26937   CORBA_ROOT=$OMNIORB_ROOT
26938   CORBA_INCLUDES=$OMNIORB_INCLUDES
26939   CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
26940   CORBA_LIBS=$OMNIORB_LIBS
26941   IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
26942   IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
26943
26944
26945
26946
26947
26948
26949
26950
26951   IDL_CLN_H=$OMNIORB_IDL_CLN_H
26952   IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
26953   IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
26954
26955
26956
26957
26958
26959   IDL_SRV_H=$OMNIORB_IDL_SRV_H
26960   IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
26961   IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
26962
26963
26964
26965
26966
26967 else
26968     { echo "$as_me:$LINENO: result: $DEFAULT_ORB unknown orb" >&5
26969 echo "${ECHO_T}$DEFAULT_ORB unknown orb" >&6; }
26970
26971 fi
26972
26973
26974
26975
26976 corba=make_$ORB
26977 CORBA=adm_local/unix/$corba
26978
26979
26980
26981 echo
26982 echo ----------------------------------------------
26983 echo testing CPPUNIT only required for unit testing
26984 echo ----------------------------------------------
26985 echo
26986
26987
26988 { echo "$as_me:$LINENO: checking for cppunit..." >&5
26989 echo "$as_me: checking for cppunit..." >&6;}
26990
26991 cppunit_ok=yes
26992
26993
26994
26995 # Check whether --with-cppunit was given.
26996 if test "${with_cppunit+set}" = set; then
26997   withval=$with_cppunit; CPPUNITHOME="$withval"
26998       { echo "$as_me:$LINENO: result: \"select $withval as path to CPPUNIT\"" >&5
26999 echo "${ECHO_T}\"select $withval as path to CPPUNIT\"" >&6; }
27000
27001 fi
27002
27003
27004
27005 # Check whether --with-cppunit_inc was given.
27006 if test "${with_cppunit_inc+set}" = set; then
27007   withval=$with_cppunit_inc; CPPUNIT_INCLUDES="$withval"
27008       { echo "$as_me:$LINENO: result: \"select $withval as path to CPPUNIT includes\"" >&5
27009 echo "${ECHO_T}\"select $withval as path to CPPUNIT includes\"" >&6; }
27010
27011 fi
27012
27013
27014 if test -z "$CPPUNITHOME"; then
27015   { echo "$as_me:$LINENO: result: CPPUNITHOME not defined" >&5
27016 echo "${ECHO_T}CPPUNITHOME not defined" >&6; }
27017   exits_ok=no
27018   if test "x$exits_ok" = "xno"; then
27019      for d in /usr/local /usr ; do
27020         as_ac_File=`echo "ac_cv_file_${d}/lib64/libcppunit.so" | $as_tr_sh`
27021 { echo "$as_me:$LINENO: checking for ${d}/lib64/libcppunit.so" >&5
27022 echo $ECHO_N "checking for ${d}/lib64/libcppunit.so... $ECHO_C" >&6; }
27023 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27024   echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026   test "$cross_compiling" = yes &&
27027   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27028 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27029    { (exit 1); exit 1; }; }
27030 if test -r "${d}/lib64/libcppunit.so"; then
27031   eval "$as_ac_File=yes"
27032 else
27033   eval "$as_ac_File=no"
27034 fi
27035 fi
27036 ac_res=`eval echo '${'$as_ac_File'}'`
27037                { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27039 if test `eval echo '${'$as_ac_File'}'` = yes; then
27040   exits_ok=yes
27041 else
27042   exits_ok=no
27043 fi
27044
27045         if test "x$exits_ok" = "xyes"; then
27046            CPPUNITHOME=$d
27047            { echo "$as_me:$LINENO: result: libcppunit.so detected in $d/lib64" >&5
27048 echo "${ECHO_T}libcppunit.so detected in $d/lib64" >&6; }
27049            break
27050         fi
27051         as_ac_File=`echo "ac_cv_file_${d}/lib/libcppunit.so" | $as_tr_sh`
27052 { echo "$as_me:$LINENO: checking for ${d}/lib/libcppunit.so" >&5
27053 echo $ECHO_N "checking for ${d}/lib/libcppunit.so... $ECHO_C" >&6; }
27054 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27055   echo $ECHO_N "(cached) $ECHO_C" >&6
27056 else
27057   test "$cross_compiling" = yes &&
27058   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27059 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27060    { (exit 1); exit 1; }; }
27061 if test -r "${d}/lib/libcppunit.so"; then
27062   eval "$as_ac_File=yes"
27063 else
27064   eval "$as_ac_File=no"
27065 fi
27066 fi
27067 ac_res=`eval echo '${'$as_ac_File'}'`
27068                { echo "$as_me:$LINENO: result: $ac_res" >&5
27069 echo "${ECHO_T}$ac_res" >&6; }
27070 if test `eval echo '${'$as_ac_File'}'` = yes; then
27071   exits_ok=yes
27072 else
27073   exits_ok=no
27074 fi
27075
27076         if test "x$exits_ok" = "xyes"; then
27077            CPPUNITHOME=$d
27078            { echo "$as_me:$LINENO: result: libcppunit.so detected in $d/lib" >&5
27079 echo "${ECHO_T}libcppunit.so detected in $d/lib" >&6; }
27080            break
27081         fi
27082      done
27083   fi
27084   if test "x$exits_ok" = "xno"; then
27085      for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
27086         if test -f $d/libcppunit.so ; then
27087            { echo "$as_me:$LINENO: result: libcppunit.so detected in $d" >&5
27088 echo "${ECHO_T}libcppunit.so detected in $d" >&6; }
27089            CPPUNITHOME=$d
27090            CPPUNITHOME=`echo ${CPPUNITHOME} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
27091            exits_ok=yes
27092            break
27093         fi
27094      done
27095   fi
27096   if test "x$exits_ok" = "xyes"; then
27097      if test -z "$CPPUNIT_INCLUDES"; then
27098         CPPUNIT_INCLUDES=$CPPUNITHOME"/include"
27099      fi
27100   fi
27101 else
27102   if test -z "$CPPUNIT_INCLUDES"; then
27103      CPPUNIT_INCLUDES="$CPPUNITHOME/include"
27104   fi
27105 fi
27106
27107 if test "x$cppunit_ok" = xno -o ! -d "$CPPUNITHOME" ; then
27108   { echo "$as_me:$LINENO: result: no" >&5
27109 echo "${ECHO_T}no" >&6; }
27110   { echo "$as_me:$LINENO: WARNING: cppunit not found" >&5
27111 echo "$as_me: WARNING: cppunit not found" >&2;}
27112   cppunit_ok=no
27113 else
27114
27115    ac_ext=cpp
27116 ac_cpp='$CXXCPP $CPPFLAGS'
27117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27120
27121    CPPFLAGS_old=$CPPFLAGS
27122    CPPFLAGS="$CPPFLAGS -I$CPPUNIT_INCLUDES"
27123
27124    if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27125   { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
27126 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
27127 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27128   echo $ECHO_N "(cached) $ECHO_C" >&6
27129 fi
27130 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
27131 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
27132 else
27133   # Is the header compilable?
27134 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h usability" >&5
27135 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h usability... $ECHO_C" >&6; }
27136 cat >conftest.$ac_ext <<_ACEOF
27137 /* confdefs.h.  */
27138 _ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h.  */
27142 $ac_includes_default
27143 #include <cppunit/extensions/HelperMacros.h>
27144 _ACEOF
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_compile") 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } && {
27159          test -z "$ac_cxx_werror_flag" ||
27160          test ! -s conftest.err
27161        } && test -s conftest.$ac_objext; then
27162   ac_header_compiler=yes
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167         ac_header_compiler=no
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27172 echo "${ECHO_T}$ac_header_compiler" >&6; }
27173
27174 # Is the header present?
27175 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h presence" >&5
27176 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h presence... $ECHO_C" >&6; }
27177 cat >conftest.$ac_ext <<_ACEOF
27178 /* confdefs.h.  */
27179 _ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h.  */
27183 #include <cppunit/extensions/HelperMacros.h>
27184 _ACEOF
27185 if { (ac_try="$ac_cpp conftest.$ac_ext"
27186 case "(($ac_try" in
27187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188   *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27192   ac_status=$?
27193   grep -v '^ *+' conftest.er1 >conftest.err
27194   rm -f conftest.er1
27195   cat conftest.err >&5
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } >/dev/null && {
27198          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27199          test ! -s conftest.err
27200        }; then
27201   ac_header_preproc=yes
27202 else
27203   echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27205
27206   ac_header_preproc=no
27207 fi
27208
27209 rm -f conftest.err conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27211 echo "${ECHO_T}$ac_header_preproc" >&6; }
27212
27213 # So?  What about this header?
27214 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27215   yes:no: )
27216     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27217 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27218     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&5
27219 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&2;}
27220     ac_header_preproc=yes
27221     ;;
27222   no:yes:* )
27223     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&5
27224 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&2;}
27225     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h:     check for missing prerequisite headers?" >&5
27226 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h:     check for missing prerequisite headers?" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&5
27228 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h:     section \"Present But Cannot Be Compiled\"" >&5
27230 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27231     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&5
27232 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&2;}
27233     { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&5
27234 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&2;}
27235     ( cat <<\_ASBOX
27236 ## ----------------------------------------------- ##
27237 ## Report this to webmaster.salome@opencascade.com ##
27238 ## ----------------------------------------------- ##
27239 _ASBOX
27240      ) | sed "s/^/$as_me: WARNING:     /" >&2
27241     ;;
27242 esac
27243 { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
27244 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
27245 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27246   echo $ECHO_N "(cached) $ECHO_C" >&6
27247 else
27248   ac_cv_header_cppunit_extensions_HelperMacros_h=$ac_header_preproc
27249 fi
27250 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
27251 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
27252
27253 fi
27254 if test $ac_cv_header_cppunit_extensions_HelperMacros_h = yes; then
27255   cppunit_ok=yes
27256 else
27257   cppunit_ok=no
27258 fi
27259
27260
27261
27262    CPPFLAGS=$CPPFLAGS_old
27263
27264    if test "x$cppunit_ok" = xno ; then
27265      { echo "$as_me:$LINENO: result: no" >&5
27266 echo "${ECHO_T}no" >&6; }
27267      { echo "$as_me:$LINENO: WARNING: cppunit not found" >&5
27268 echo "$as_me: WARNING: cppunit not found" >&2;}
27269    else
27270      cppunit_ok=yes
27271    fi
27272
27273   if  test "x$cppunit_ok" = "xno"
27274   then
27275     { echo "$as_me:$LINENO: result: unable to found cppunit headers and library" >&5
27276 echo "${ECHO_T}unable to found cppunit headers and library" >&6; }
27277     { echo "$as_me:$LINENO: result: CPPUNITHOME environment variable may be wrong" >&5
27278 echo "${ECHO_T}CPPUNITHOME environment variable may be wrong" >&6; }
27279   else
27280     if test "x$CPPUNIT_INCLUDES" = "x/usr/include"
27281     then
27282       CPPUNIT_INCLUDES=""
27283     else
27284       CPPUNIT_INCLUDES="-I$CPPUNIT_INCLUDES"
27285     fi
27286     if test "x$CPPUNITHOME" = "x/usr"
27287     then
27288       CPPUNIT_LIBS=" -lcppunit"
27289     else
27290       CPPUNIT_LIBS="-L$CPPUNITHOME/lib -lcppunit"
27291     fi
27292
27293
27294
27295
27296     { echo "$as_me:$LINENO: result: yes" >&5
27297 echo "${ECHO_T}yes" >&6; }
27298   fi
27299 fi
27300
27301  if test x"$cppunit_ok" = xyes; then
27302   CPPUNIT_IS_OK_TRUE=
27303   CPPUNIT_IS_OK_FALSE='#'
27304 else
27305   CPPUNIT_IS_OK_TRUE='#'
27306   CPPUNIT_IS_OK_FALSE=
27307 fi
27308
27309
27310 ac_ext=c
27311 ac_cpp='$CPP $CPPFLAGS'
27312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27315
27316
27317
27318
27319
27320
27321 echo
27322 echo ---------------------------------------------
27323 echo Testing Kernel
27324 echo ---------------------------------------------
27325 echo
27326
27327
27328
27329 { echo "$as_me:$LINENO: checking for Kernel..." >&5
27330 echo "$as_me: checking for Kernel..." >&6;}
27331
27332 Kernel_ok=no
27333
27334 KERNEL_LDFLAGS=""
27335 KERNEL_CXXFLAGS=""
27336
27337
27338 # Check whether --with-kernel was given.
27339 if test "${with_kernel+set}" = set; then
27340   withval=$with_kernel; KERNEL_DIR="$withval"
27341 else
27342   KERNEL_DIR=""
27343 fi
27344
27345
27346 if test "x${KERNEL_DIR}" = "x" ; then
27347   { echo "$as_me:$LINENO: result: for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&5
27348 echo "${ECHO_T}for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&6; }
27349   # no --with-kernel-dir option used
27350   if test "x${KERNEL_ROOT_DIR}" != "x" ; then
27351     # KERNEL_ROOT_DIR environment variable defined
27352     KERNEL_DIR=${KERNEL_ROOT_DIR}
27353   else
27354     # search Kernel binaries in PATH variable
27355     # Extract the first word of "runSalome", so it can be a program name with args.
27356 set dummy runSalome; ac_word=$2
27357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27359 if test "${ac_cv_path_TEMP+set}" = set; then
27360   echo $ECHO_N "(cached) $ECHO_C" >&6
27361 else
27362   case $TEMP in
27363   [\\/]* | ?:[\\/]*)
27364   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27365   ;;
27366   *)
27367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368 for as_dir in $PATH
27369 do
27370   IFS=$as_save_IFS
27371   test -z "$as_dir" && as_dir=.
27372   for ac_exec_ext in '' $ac_executable_extensions; do
27373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27374     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27376     break 2
27377   fi
27378 done
27379 done
27380 IFS=$as_save_IFS
27381
27382   ;;
27383 esac
27384 fi
27385 TEMP=$ac_cv_path_TEMP
27386 if test -n "$TEMP"; then
27387   { echo "$as_me:$LINENO: result: $TEMP" >&5
27388 echo "${ECHO_T}$TEMP" >&6; }
27389 else
27390   { echo "$as_me:$LINENO: result: no" >&5
27391 echo "${ECHO_T}no" >&6; }
27392 fi
27393
27394
27395     if test "x${TEMP}" != "x" ; then
27396       { echo "$as_me:$LINENO: result: runSalome was found at : ${TEMP}" >&5
27397 echo "${ECHO_T}runSalome was found at : ${TEMP}" >&6; }
27398       KERNEL_BIN_DIR=`dirname ${TEMP}`
27399       KERNEL_DIR=`cd ${KERNEL_BIN_DIR}/../..; pwd`
27400     fi
27401   fi
27402 fi
27403
27404 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
27405    { echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
27406 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6; }
27407    Kernel_ok=yes
27408
27409    if test "x${KERNEL_ROOT_DIR}" = "x" ; then
27410       KERNEL_ROOT_DIR=${KERNEL_DIR}
27411    fi
27412
27413    if test "x${KERNEL_SITE_DIR}" = "x" ; then
27414       KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
27415    fi
27416
27417
27418
27419
27420    KERNEL_LDFLAGS=-L${KERNEL_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27421    KERNEL_CXXFLAGS=-I${KERNEL_DIR}/include/salome
27422
27423
27424
27425 else
27426    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
27427 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
27428 fi
27429
27430 { echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
27431 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6; }
27432
27433
27434
27435
27436
27437 echo
27438 echo ---------------------------------------------
27439 echo Testing Geom
27440 echo ---------------------------------------------
27441 echo
27442
27443
27444
27445 { echo "$as_me:$LINENO: checking for Geom..." >&5
27446 echo "$as_me: checking for Geom..." >&6;}
27447
27448 Geom_ok=no
27449
27450 GEOM_LDFLAGS=""
27451 GEOM_CXXFLAGS=""
27452
27453
27454 # Check whether --with-geom was given.
27455 if test "${with_geom+set}" = set; then
27456   withval=$with_geom; GEOM_DIR="$withval"
27457 else
27458   GEOM_DIR=""
27459 fi
27460
27461
27462 if test "x$GEOM_DIR" == "x" ; then
27463
27464 # no --with-geom-dir option used
27465
27466    if test "x$GEOM_ROOT_DIR" != "x" ; then
27467
27468     # GEOM_ROOT_DIR environment variable defined
27469       GEOM_DIR=$GEOM_ROOT_DIR
27470
27471    else
27472
27473     # search Geom binaries in PATH variable
27474       # Extract the first word of "libGEOM_Swig.py", so it can be a program name with args.
27475 set dummy libGEOM_Swig.py; ac_word=$2
27476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27478 if test "${ac_cv_path_TEMP+set}" = set; then
27479   echo $ECHO_N "(cached) $ECHO_C" >&6
27480 else
27481   case $TEMP in
27482   [\\/]* | ?:[\\/]*)
27483   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27484   ;;
27485   *)
27486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27487 for as_dir in $PATH
27488 do
27489   IFS=$as_save_IFS
27490   test -z "$as_dir" && as_dir=.
27491   for ac_exec_ext in '' $ac_executable_extensions; do
27492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27493     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27495     break 2
27496   fi
27497 done
27498 done
27499 IFS=$as_save_IFS
27500
27501   ;;
27502 esac
27503 fi
27504 TEMP=$ac_cv_path_TEMP
27505 if test -n "$TEMP"; then
27506   { echo "$as_me:$LINENO: result: $TEMP" >&5
27507 echo "${ECHO_T}$TEMP" >&6; }
27508 else
27509   { echo "$as_me:$LINENO: result: no" >&5
27510 echo "${ECHO_T}no" >&6; }
27511 fi
27512
27513
27514       if test "x$TEMP" != "x" ; then
27515          GEOM_BIN_DIR=`dirname $TEMP`
27516          GEOM_DIR=`dirname $GEOM_BIN_DIR`
27517       fi
27518
27519    fi
27520 #
27521 fi
27522
27523 if test -f ${GEOM_DIR}/bin/salome/geompy.py ; then
27524    Geom_ok=yes
27525    { echo "$as_me:$LINENO: result: Using Geom module distribution in ${GEOM_DIR}" >&5
27526 echo "${ECHO_T}Using Geom module distribution in ${GEOM_DIR}" >&6; }
27527
27528    if test "x$GEOM_ROOT_DIR" == "x" ; then
27529       GEOM_ROOT_DIR=${GEOM_DIR}
27530    fi
27531
27532
27533    GEOM_LDFLAGS=-L${GEOM_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27534    GEOM_CXXFLAGS=-I${GEOM_DIR}/include/salome
27535
27536
27537
27538
27539 else
27540    { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Geom module distribution\"" >&5
27541 echo "$as_me: WARNING: \"Cannot find compiled Geom module distribution\"" >&2;}
27542 fi
27543
27544 { echo "$as_me:$LINENO: result: for Geom: $Geom_ok" >&5
27545 echo "${ECHO_T}for Geom: $Geom_ok" >&6; }
27546
27547
27548
27549
27550
27551
27552 echo
27553 echo ---------------------------------------------
27554 echo Testing GUI
27555 echo ---------------------------------------------
27556 echo
27557
27558
27559
27560
27561 LightGUI_ok=no
27562 FullGUI_ok=no
27563
27564 GUI_LDFLAGS=""
27565 GUI_CXXFLAGS=""
27566
27567 SALOME_GUI_DIR=""
27568
27569
27570 # Check whether --with-gui was given.
27571 if test "${with_gui+set}" = set; then
27572   withval=$with_gui;
27573 else
27574   with_gui=auto
27575 fi
27576
27577
27578 if test "${with_gui}" = "no"; then
27579   SalomeGUI_need=no
27580 else
27581   # define SALOME_GUI_DIR
27582   if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
27583     SalomeGUI_need="$with_gui"
27584     { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
27585 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
27586     if test "x${GUI_ROOT_DIR}" != "x" ; then
27587       # GUI_ROOT_DIR environment variable defined
27588       SALOME_GUI_DIR=${GUI_ROOT_DIR}
27589     else
27590       # search Salome binaries in PATH variable
27591       # Extract the first word of "SUITApp", so it can be a program name with args.
27592 set dummy SUITApp; ac_word=$2
27593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27595 if test "${ac_cv_path_TEMP+set}" = set; then
27596   echo $ECHO_N "(cached) $ECHO_C" >&6
27597 else
27598   case $TEMP in
27599   [\\/]* | ?:[\\/]*)
27600   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27601   ;;
27602   *)
27603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27604 for as_dir in $PATH
27605 do
27606   IFS=$as_save_IFS
27607   test -z "$as_dir" && as_dir=.
27608   for ac_exec_ext in '' $ac_executable_extensions; do
27609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27610     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27612     break 2
27613   fi
27614 done
27615 done
27616 IFS=$as_save_IFS
27617
27618   ;;
27619 esac
27620 fi
27621 TEMP=$ac_cv_path_TEMP
27622 if test -n "$TEMP"; then
27623   { echo "$as_me:$LINENO: result: $TEMP" >&5
27624 echo "${ECHO_T}$TEMP" >&6; }
27625 else
27626   { echo "$as_me:$LINENO: result: no" >&5
27627 echo "${ECHO_T}no" >&6; }
27628 fi
27629
27630
27631       if test "x${TEMP}" != "x" ; then
27632         { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
27633 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
27634         SALOME_BIN_DIR=`dirname ${TEMP}`
27635         SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
27636       fi
27637     fi
27638   else
27639     # GUI directory defined by user
27640     SalomeGUI_need=yes
27641     SALOME_GUI_DIR="$with_gui"
27642   fi
27643
27644   # check GUI installation
27645   { echo "$as_me:$LINENO: checking for light GUI..." >&5
27646 echo "$as_me: checking for light GUI..." >&6;}
27647   if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
27648     LightGUI_ok=yes
27649     { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
27650 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
27651
27652     GUI_ROOT_DIR=${SALOME_GUI_DIR}
27653
27654     GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27655     GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
27656
27657     { echo "$as_me:$LINENO: checking for full GUI..." >&5
27658 echo "$as_me: checking for full GUI..." >&6;}
27659     if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
27660       FullGUI_ok=yes
27661     fi
27662   else
27663     { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
27664 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
27665   fi
27666   { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
27667 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
27668   { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
27669 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
27670 fi
27671
27672
27673
27674
27675
27676
27677   SalomeGUI_ok=${LightGUI_ok}
27678
27679
27680 echo
27681 echo ---------------------------------------------
27682 echo Testing full GUI
27683 echo ---------------------------------------------
27684 echo
27685
27686
27687
27688
27689 LightGUI_ok=no
27690 FullGUI_ok=no
27691
27692 GUI_LDFLAGS=""
27693 GUI_CXXFLAGS=""
27694
27695 SALOME_GUI_DIR=""
27696
27697
27698 # Check whether --with-gui was given.
27699 if test "${with_gui+set}" = set; then
27700   withval=$with_gui;
27701 else
27702   with_gui=auto
27703 fi
27704
27705
27706 if test "${with_gui}" = "no"; then
27707   SalomeGUI_need=no
27708 else
27709   # define SALOME_GUI_DIR
27710   if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
27711     SalomeGUI_need="$with_gui"
27712     { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
27713 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
27714     if test "x${GUI_ROOT_DIR}" != "x" ; then
27715       # GUI_ROOT_DIR environment variable defined
27716       SALOME_GUI_DIR=${GUI_ROOT_DIR}
27717     else
27718       # search Salome binaries in PATH variable
27719       # Extract the first word of "SUITApp", so it can be a program name with args.
27720 set dummy SUITApp; ac_word=$2
27721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27723 if test "${ac_cv_path_TEMP+set}" = set; then
27724   echo $ECHO_N "(cached) $ECHO_C" >&6
27725 else
27726   case $TEMP in
27727   [\\/]* | ?:[\\/]*)
27728   ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27729   ;;
27730   *)
27731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27732 for as_dir in $PATH
27733 do
27734   IFS=$as_save_IFS
27735   test -z "$as_dir" && as_dir=.
27736   for ac_exec_ext in '' $ac_executable_extensions; do
27737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27738     ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27740     break 2
27741   fi
27742 done
27743 done
27744 IFS=$as_save_IFS
27745
27746   ;;
27747 esac
27748 fi
27749 TEMP=$ac_cv_path_TEMP
27750 if test -n "$TEMP"; then
27751   { echo "$as_me:$LINENO: result: $TEMP" >&5
27752 echo "${ECHO_T}$TEMP" >&6; }
27753 else
27754   { echo "$as_me:$LINENO: result: no" >&5
27755 echo "${ECHO_T}no" >&6; }
27756 fi
27757
27758
27759       if test "x${TEMP}" != "x" ; then
27760         { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
27761 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
27762         SALOME_BIN_DIR=`dirname ${TEMP}`
27763         SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
27764       fi
27765     fi
27766   else
27767     # GUI directory defined by user
27768     SalomeGUI_need=yes
27769     SALOME_GUI_DIR="$with_gui"
27770   fi
27771
27772   # check GUI installation
27773   { echo "$as_me:$LINENO: checking for light GUI..." >&5
27774 echo "$as_me: checking for light GUI..." >&6;}
27775   if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
27776     LightGUI_ok=yes
27777     { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
27778 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
27779
27780     GUI_ROOT_DIR=${SALOME_GUI_DIR}
27781
27782     GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27783     GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
27784
27785     { echo "$as_me:$LINENO: checking for full GUI..." >&5
27786 echo "$as_me: checking for full GUI..." >&6;}
27787     if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
27788       FullGUI_ok=yes
27789     fi
27790   else
27791     { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
27792 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
27793   fi
27794   { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
27795 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
27796   { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
27797 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
27798 fi
27799
27800
27801
27802
27803
27804
27805   CORBA_IN_GUI=${FullGUI_ok}
27806
27807
27808 if test "x${CORBA_IN_GUI}" != "xyes"; then
27809   echo "failed : For configure HEXABLOCK module necessary full GUI !"
27810   exit
27811 fi
27812
27813
27814 echo
27815 echo ---------------------------------------------
27816 echo Summary
27817 echo ---------------------------------------------
27818 echo
27819
27820 echo Configure
27821 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok Kernel_ok SalomeGUI_ok"
27822
27823 for var in $variables
27824 do
27825    printf "   %10s : " `echo \$var | sed -e "s,_ok,,"`
27826    eval echo \$$var
27827 done
27828
27829 echo
27830 echo "Default ORB   : $DEFAULT_ORB"
27831 echo
27832
27833 if test "X$GMAKE" = "Xyes"; then
27834     SETX=":"
27835 else
27836     SETX="set -x"
27837 fi
27838 echo
27839 echo ---------------------------------------------
27840 echo generating Makefiles and configure files
27841 echo ---------------------------------------------
27842 echo
27843
27844 ac_config_commands="$ac_config_commands default-1"
27845
27846
27847 # This list is initiated using autoscan and must be updated manually
27848 # when adding a new file <filename>.in to manage. When you execute
27849 # autoscan, the Makefile list is generated in the output file configure.scan.
27850 #
27851 # This could be helpfull to update de configuration.
27852 ac_config_files="$ac_config_files salome_adm/unix/SALOMEconfig.h adm_local/Makefile adm_local/unix/Makefile adm_local/unix/config_files/Makefile bin/VERSION bin/runAppli bin/Makefile doc/Makefile HEXABLOCK_version.h resources/HEXABLOCKCatalog.xml src/Makefile src/HEXABLOCK/Makefile src/HEXABLOCK_I/Makefile src/HEXABLOCKGUI/Makefile src/TEST_CPP/Makefile src/TEST_PY/Makefile resources/Makefile idl/Makefile Makefile"
27853
27854 cat >confcache <<\_ACEOF
27855 # This file is a shell script that caches the results of configure
27856 # tests run on this system so they can be shared between configure
27857 # scripts and configure runs, see configure's option --config-cache.
27858 # It is not useful on other systems.  If it contains results you don't
27859 # want to keep, you may remove or edit it.
27860 #
27861 # config.status only pays attention to the cache file if you give it
27862 # the --recheck option to rerun configure.
27863 #
27864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27866 # following values.
27867
27868 _ACEOF
27869
27870 # The following way of writing the cache mishandles newlines in values,
27871 # but we know of no workaround that is simple, portable, and efficient.
27872 # So, we kill variables containing newlines.
27873 # Ultrix sh set writes to stderr and can't be redirected directly,
27874 # and sets the high bit in the cache file unless we assign to the vars.
27875 (
27876   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27877     eval ac_val=\$$ac_var
27878     case $ac_val in #(
27879     *${as_nl}*)
27880       case $ac_var in #(
27881       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27882 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27883       esac
27884       case $ac_var in #(
27885       _ | IFS | as_nl) ;; #(
27886       *) $as_unset $ac_var ;;
27887       esac ;;
27888     esac
27889   done
27890
27891   (set) 2>&1 |
27892     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27893     *${as_nl}ac_space=\ *)
27894       # `set' does not quote correctly, so add quotes (double-quote
27895       # substitution turns \\\\ into \\, and sed turns \\ into \).
27896       sed -n \
27897         "s/'/'\\\\''/g;
27898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27899       ;; #(
27900     *)
27901       # `set' quotes correctly as required by POSIX, so do not add quotes.
27902       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27903       ;;
27904     esac |
27905     sort
27906 ) |
27907   sed '
27908      /^ac_cv_env_/b end
27909      t clear
27910      :clear
27911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27912      t end
27913      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27914      :end' >>confcache
27915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27916   if test -w "$cache_file"; then
27917     test "x$cache_file" != "x/dev/null" &&
27918       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27919 echo "$as_me: updating cache $cache_file" >&6;}
27920     cat confcache >$cache_file
27921   else
27922     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27923 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27924   fi
27925 fi
27926 rm -f confcache
27927
27928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27929 # Let make expand exec_prefix.
27930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27931
27932 # Transform confdefs.h into DEFS.
27933 # Protect against shell expansion while executing Makefile rules.
27934 # Protect against Makefile macro expansion.
27935 #
27936 # If the first sed substitution is executed (which looks for macros that
27937 # take arguments), then branch to the quote section.  Otherwise,
27938 # look for a macro that doesn't take arguments.
27939 ac_script='
27940 t clear
27941 :clear
27942 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
27943 t quote
27944 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
27945 t quote
27946 b any
27947 :quote
27948 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
27949 s/\[/\\&/g
27950 s/\]/\\&/g
27951 s/\$/$$/g
27952 H
27953 :any
27954 ${
27955         g
27956         s/^\n//
27957         s/\n/ /g
27958         p
27959 }
27960 '
27961 DEFS=`sed -n "$ac_script" confdefs.h`
27962
27963
27964 ac_libobjs=
27965 ac_ltlibobjs=
27966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27967   # 1. Remove the extension, and $U if already installed.
27968   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27969   ac_i=`echo "$ac_i" | sed "$ac_script"`
27970   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27971   #    will be set to the directory where LIBOBJS objects are built.
27972   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27973   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27974 done
27975 LIBOBJS=$ac_libobjs
27976
27977 LTLIBOBJS=$ac_ltlibobjs
27978
27979
27980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27981   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27982 Usually this means the macro was only invoked conditionally." >&5
27983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27984 Usually this means the macro was only invoked conditionally." >&2;}
27985    { (exit 1); exit 1; }; }
27986 fi
27987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27988   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27989 Usually this means the macro was only invoked conditionally." >&5
27990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27991 Usually this means the macro was only invoked conditionally." >&2;}
27992    { (exit 1); exit 1; }; }
27993 fi
27994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27995   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27996 Usually this means the macro was only invoked conditionally." >&5
27997 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27998 Usually this means the macro was only invoked conditionally." >&2;}
27999    { (exit 1); exit 1; }; }
28000 fi
28001 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28002   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28003 Usually this means the macro was only invoked conditionally." >&5
28004 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28005 Usually this means the macro was only invoked conditionally." >&2;}
28006    { (exit 1); exit 1; }; }
28007 fi
28008 if test -z "${CPPUNIT_IS_OK_TRUE}" && test -z "${CPPUNIT_IS_OK_FALSE}"; then
28009   { { echo "$as_me:$LINENO: error: conditional \"CPPUNIT_IS_OK\" was never defined.
28010 Usually this means the macro was only invoked conditionally." >&5
28011 echo "$as_me: error: conditional \"CPPUNIT_IS_OK\" was never defined.
28012 Usually this means the macro was only invoked conditionally." >&2;}
28013    { (exit 1); exit 1; }; }
28014 fi
28015
28016 : ${CONFIG_STATUS=./config.status}
28017 ac_clean_files_save=$ac_clean_files
28018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28019 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28020 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28021 cat >$CONFIG_STATUS <<_ACEOF
28022 #! $SHELL
28023 # Generated by $as_me.
28024 # Run this file to recreate the current configuration.
28025 # Compiler output produced by configure, useful for debugging
28026 # configure, is in config.log if it exists.
28027
28028 debug=false
28029 ac_cs_recheck=false
28030 ac_cs_silent=false
28031 SHELL=\${CONFIG_SHELL-$SHELL}
28032 _ACEOF
28033
28034 cat >>$CONFIG_STATUS <<\_ACEOF
28035 ## --------------------- ##
28036 ## M4sh Initialization.  ##
28037 ## --------------------- ##
28038
28039 # Be more Bourne compatible
28040 DUALCASE=1; export DUALCASE # for MKS sh
28041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28042   emulate sh
28043   NULLCMD=:
28044   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28045   # is contrary to our usage.  Disable this feature.
28046   alias -g '${1+"$@"}'='"$@"'
28047   setopt NO_GLOB_SUBST
28048 else
28049   case `(set -o) 2>/dev/null` in
28050   *posix*) set -o posix ;;
28051 esac
28052
28053 fi
28054
28055
28056
28057
28058 # PATH needs CR
28059 # Avoid depending upon Character Ranges.
28060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28063 as_cr_digits='0123456789'
28064 as_cr_alnum=$as_cr_Letters$as_cr_digits
28065
28066 # The user is always right.
28067 if test "${PATH_SEPARATOR+set}" != set; then
28068   echo "#! /bin/sh" >conf$$.sh
28069   echo  "exit 0"   >>conf$$.sh
28070   chmod +x conf$$.sh
28071   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28072     PATH_SEPARATOR=';'
28073   else
28074     PATH_SEPARATOR=:
28075   fi
28076   rm -f conf$$.sh
28077 fi
28078
28079 # Support unset when possible.
28080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28081   as_unset=unset
28082 else
28083   as_unset=false
28084 fi
28085
28086
28087 # IFS
28088 # We need space, tab and new line, in precisely that order.  Quoting is
28089 # there to prevent editors from complaining about space-tab.
28090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28091 # splitting by setting IFS to empty value.)
28092 as_nl='
28093 '
28094 IFS=" ""        $as_nl"
28095
28096 # Find who we are.  Look in the path if we contain no directory separator.
28097 case $0 in
28098   *[\\/]* ) as_myself=$0 ;;
28099   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28100 for as_dir in $PATH
28101 do
28102   IFS=$as_save_IFS
28103   test -z "$as_dir" && as_dir=.
28104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28105 done
28106 IFS=$as_save_IFS
28107
28108      ;;
28109 esac
28110 # We did not find ourselves, most probably we were run as `sh COMMAND'
28111 # in which case we are not to be found in the path.
28112 if test "x$as_myself" = x; then
28113   as_myself=$0
28114 fi
28115 if test ! -f "$as_myself"; then
28116   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28117   { (exit 1); exit 1; }
28118 fi
28119
28120 # Work around bugs in pre-3.0 UWIN ksh.
28121 for as_var in ENV MAIL MAILPATH
28122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28123 done
28124 PS1='$ '
28125 PS2='> '
28126 PS4='+ '
28127
28128 # NLS nuisances.
28129 for as_var in \
28130   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28131   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28132   LC_TELEPHONE LC_TIME
28133 do
28134   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28135     eval $as_var=C; export $as_var
28136   else
28137     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28138   fi
28139 done
28140
28141 # Required to use basename.
28142 if expr a : '\(a\)' >/dev/null 2>&1 &&
28143    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28144   as_expr=expr
28145 else
28146   as_expr=false
28147 fi
28148
28149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28150   as_basename=basename
28151 else
28152   as_basename=false
28153 fi
28154
28155
28156 # Name of the executable.
28157 as_me=`$as_basename -- "$0" ||
28158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28159          X"$0" : 'X\(//\)$' \| \
28160          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28161 echo X/"$0" |
28162     sed '/^.*\/\([^/][^/]*\)\/*$/{
28163             s//\1/
28164             q
28165           }
28166           /^X\/\(\/\/\)$/{
28167             s//\1/
28168             q
28169           }
28170           /^X\/\(\/\).*/{
28171             s//\1/
28172             q
28173           }
28174           s/.*/./; q'`
28175
28176 # CDPATH.
28177 $as_unset CDPATH
28178
28179
28180
28181   as_lineno_1=$LINENO
28182   as_lineno_2=$LINENO
28183   test "x$as_lineno_1" != "x$as_lineno_2" &&
28184   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28185
28186   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28187   # uniformly replaced by the line number.  The first 'sed' inserts a
28188   # line-number line after each line using $LINENO; the second 'sed'
28189   # does the real work.  The second script uses 'N' to pair each
28190   # line-number line with the line containing $LINENO, and appends
28191   # trailing '-' during substitution so that $LINENO is not a special
28192   # case at line end.
28193   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28194   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28195   # E. McMahon (1931-1989) for sed's syntax.  :-)
28196   sed -n '
28197     p
28198     /[$]LINENO/=
28199   ' <$as_myself |
28200     sed '
28201       s/[$]LINENO.*/&-/
28202       t lineno
28203       b
28204       :lineno
28205       N
28206       :loop
28207       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28208       t loop
28209       s/-\n.*//
28210     ' >$as_me.lineno &&
28211   chmod +x "$as_me.lineno" ||
28212     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28213    { (exit 1); exit 1; }; }
28214
28215   # Don't try to exec as it changes $[0], causing all sort of problems
28216   # (the dirname of $[0] is not the place where we might find the
28217   # original and so on.  Autoconf is especially sensitive to this).
28218   . "./$as_me.lineno"
28219   # Exit status is that of the last command.
28220   exit
28221 }
28222
28223
28224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28225   as_dirname=dirname
28226 else
28227   as_dirname=false
28228 fi
28229
28230 ECHO_C= ECHO_N= ECHO_T=
28231 case `echo -n x` in
28232 -n*)
28233   case `echo 'x\c'` in
28234   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28235   *)   ECHO_C='\c';;
28236   esac;;
28237 *)
28238   ECHO_N='-n';;
28239 esac
28240
28241 if expr a : '\(a\)' >/dev/null 2>&1 &&
28242    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28243   as_expr=expr
28244 else
28245   as_expr=false
28246 fi
28247
28248 rm -f conf$$ conf$$.exe conf$$.file
28249 if test -d conf$$.dir; then
28250   rm -f conf$$.dir/conf$$.file
28251 else
28252   rm -f conf$$.dir
28253   mkdir conf$$.dir
28254 fi
28255 echo >conf$$.file
28256 if ln -s conf$$.file conf$$ 2>/dev/null; then
28257   as_ln_s='ln -s'
28258   # ... but there are two gotchas:
28259   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28260   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28261   # In both cases, we have to default to `cp -p'.
28262   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28263     as_ln_s='cp -p'
28264 elif ln conf$$.file conf$$ 2>/dev/null; then
28265   as_ln_s=ln
28266 else
28267   as_ln_s='cp -p'
28268 fi
28269 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28270 rmdir conf$$.dir 2>/dev/null
28271
28272 if mkdir -p . 2>/dev/null; then
28273   as_mkdir_p=:
28274 else
28275   test -d ./-p && rmdir ./-p
28276   as_mkdir_p=false
28277 fi
28278
28279 if test -x / >/dev/null 2>&1; then
28280   as_test_x='test -x'
28281 else
28282   if ls -dL / >/dev/null 2>&1; then
28283     as_ls_L_option=L
28284   else
28285     as_ls_L_option=
28286   fi
28287   as_test_x='
28288     eval sh -c '\''
28289       if test -d "$1"; then
28290         test -d "$1/.";
28291       else
28292         case $1 in
28293         -*)set "./$1";;
28294         esac;
28295         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28296         ???[sx]*):;;*)false;;esac;fi
28297     '\'' sh
28298   '
28299 fi
28300 as_executable_p=$as_test_x
28301
28302 # Sed expression to map a string onto a valid CPP name.
28303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28304
28305 # Sed expression to map a string onto a valid variable name.
28306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28307
28308
28309 exec 6>&1
28310
28311 # Save the log message, to keep $[0] and so on meaningful, and to
28312 # report actual input values of CONFIG_FILES etc. instead of their
28313 # values after options handling.
28314 ac_log="
28315 This file was extended by Salome6 Project HEXABLOCK module $as_me 5.1.2, which was
28316 generated by GNU Autoconf 2.61.  Invocation command line was
28317
28318   CONFIG_FILES    = $CONFIG_FILES
28319   CONFIG_HEADERS  = $CONFIG_HEADERS
28320   CONFIG_LINKS    = $CONFIG_LINKS
28321   CONFIG_COMMANDS = $CONFIG_COMMANDS
28322   $ $0 $@
28323
28324 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28325 "
28326
28327 _ACEOF
28328
28329 cat >>$CONFIG_STATUS <<_ACEOF
28330 # Files that config.status was made for.
28331 config_files="$ac_config_files"
28332 config_commands="$ac_config_commands"
28333
28334 _ACEOF
28335
28336 cat >>$CONFIG_STATUS <<\_ACEOF
28337 ac_cs_usage="\
28338 \`$as_me' instantiates files from templates according to the
28339 current configuration.
28340
28341 Usage: $0 [OPTIONS] [FILE]...
28342
28343   -h, --help       print this help, then exit
28344   -V, --version    print version number and configuration settings, then exit
28345   -q, --quiet      do not print progress messages
28346   -d, --debug      don't remove temporary files
28347       --recheck    update $as_me by reconfiguring in the same conditions
28348   --file=FILE[:TEMPLATE]
28349                    instantiate the configuration file FILE
28350
28351 Configuration files:
28352 $config_files
28353
28354 Configuration commands:
28355 $config_commands
28356
28357 Report bugs to <bug-autoconf@gnu.org>."
28358
28359 _ACEOF
28360 cat >>$CONFIG_STATUS <<_ACEOF
28361 ac_cs_version="\\
28362 Salome6 Project HEXABLOCK module config.status 5.1.2
28363 configured by $0, generated by GNU Autoconf 2.61,
28364   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28365
28366 Copyright (C) 2006 Free Software Foundation, Inc.
28367 This config.status script is free software; the Free Software Foundation
28368 gives unlimited permission to copy, distribute and modify it."
28369
28370 ac_pwd='$ac_pwd'
28371 srcdir='$srcdir'
28372 INSTALL='$INSTALL'
28373 MKDIR_P='$MKDIR_P'
28374 _ACEOF
28375
28376 cat >>$CONFIG_STATUS <<\_ACEOF
28377 # If no file are specified by the user, then we need to provide default
28378 # value.  By we need to know if files were specified by the user.
28379 ac_need_defaults=:
28380 while test $# != 0
28381 do
28382   case $1 in
28383   --*=*)
28384     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28385     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28386     ac_shift=:
28387     ;;
28388   *)
28389     ac_option=$1
28390     ac_optarg=$2
28391     ac_shift=shift
28392     ;;
28393   esac
28394
28395   case $ac_option in
28396   # Handling of the options.
28397   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28398     ac_cs_recheck=: ;;
28399   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28400     echo "$ac_cs_version"; exit ;;
28401   --debug | --debu | --deb | --de | --d | -d )
28402     debug=: ;;
28403   --file | --fil | --fi | --f )
28404     $ac_shift
28405     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28406     ac_need_defaults=false;;
28407   --he | --h |  --help | --hel | -h )
28408     echo "$ac_cs_usage"; exit ;;
28409   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28410   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28411     ac_cs_silent=: ;;
28412
28413   # This is an error.
28414   -*) { echo "$as_me: error: unrecognized option: $1
28415 Try \`$0 --help' for more information." >&2
28416    { (exit 1); exit 1; }; } ;;
28417
28418   *) ac_config_targets="$ac_config_targets $1"
28419      ac_need_defaults=false ;;
28420
28421   esac
28422   shift
28423 done
28424
28425 ac_configure_extra_args=
28426
28427 if $ac_cs_silent; then
28428   exec 6>/dev/null
28429   ac_configure_extra_args="$ac_configure_extra_args --silent"
28430 fi
28431
28432 _ACEOF
28433 cat >>$CONFIG_STATUS <<_ACEOF
28434 if \$ac_cs_recheck; then
28435   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28436   CONFIG_SHELL=$SHELL
28437   export CONFIG_SHELL
28438   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28439 fi
28440
28441 _ACEOF
28442 cat >>$CONFIG_STATUS <<\_ACEOF
28443 exec 5>>config.log
28444 {
28445   echo
28446   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28447 ## Running $as_me. ##
28448 _ASBOX
28449   echo "$ac_log"
28450 } >&5
28451
28452 _ACEOF
28453 cat >>$CONFIG_STATUS <<_ACEOF
28454 #
28455 # INIT-COMMANDS
28456 #
28457 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28458
28459
28460 _ACEOF
28461
28462 cat >>$CONFIG_STATUS <<\_ACEOF
28463
28464 # Handling of arguments.
28465 for ac_config_target in $ac_config_targets
28466 do
28467   case $ac_config_target in
28468     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28469     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28470     "salome_adm/unix/SALOMEconfig.h") CONFIG_FILES="$CONFIG_FILES salome_adm/unix/SALOMEconfig.h" ;;
28471     "adm_local/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/Makefile" ;;
28472     "adm_local/unix/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/Makefile" ;;
28473     "adm_local/unix/config_files/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/config_files/Makefile" ;;
28474     "bin/VERSION") CONFIG_FILES="$CONFIG_FILES bin/VERSION" ;;
28475     "bin/runAppli") CONFIG_FILES="$CONFIG_FILES bin/runAppli" ;;
28476     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
28477     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28478     "HEXABLOCK_version.h") CONFIG_FILES="$CONFIG_FILES HEXABLOCK_version.h" ;;
28479     "resources/HEXABLOCKCatalog.xml") CONFIG_FILES="$CONFIG_FILES resources/HEXABLOCKCatalog.xml" ;;
28480     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28481     "src/HEXABLOCK/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCK/Makefile" ;;
28482     "src/HEXABLOCK_I/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCK_I/Makefile" ;;
28483     "src/HEXABLOCKGUI/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCKGUI/Makefile" ;;
28484     "src/TEST_CPP/Makefile") CONFIG_FILES="$CONFIG_FILES src/TEST_CPP/Makefile" ;;
28485     "src/TEST_PY/Makefile") CONFIG_FILES="$CONFIG_FILES src/TEST_PY/Makefile" ;;
28486     "resources/Makefile") CONFIG_FILES="$CONFIG_FILES resources/Makefile" ;;
28487     "idl/Makefile") CONFIG_FILES="$CONFIG_FILES idl/Makefile" ;;
28488     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28489
28490   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28492    { (exit 1); exit 1; }; };;
28493   esac
28494 done
28495
28496
28497 # If the user did not use the arguments to specify the items to instantiate,
28498 # then the envvar interface is used.  Set only those that are not.
28499 # We use the long form for the default assignment because of an extremely
28500 # bizarre bug on SunOS 4.1.3.
28501 if $ac_need_defaults; then
28502   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28503   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28504 fi
28505
28506 # Have a temporary directory for convenience.  Make it in the build tree
28507 # simply because there is no reason against having it here, and in addition,
28508 # creating and moving files from /tmp can sometimes cause problems.
28509 # Hook for its removal unless debugging.
28510 # Note that there is a small window in which the directory will not be cleaned:
28511 # after its creation but before its name has been assigned to `$tmp'.
28512 $debug ||
28513 {
28514   tmp=
28515   trap 'exit_status=$?
28516   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28517 ' 0
28518   trap '{ (exit 1); exit 1; }' 1 2 13 15
28519 }
28520 # Create a (secure) tmp directory for tmp files.
28521
28522 {
28523   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28524   test -n "$tmp" && test -d "$tmp"
28525 }  ||
28526 {
28527   tmp=./conf$$-$RANDOM
28528   (umask 077 && mkdir "$tmp")
28529 } ||
28530 {
28531    echo "$me: cannot create a temporary directory in ." >&2
28532    { (exit 1); exit 1; }
28533 }
28534
28535 #
28536 # Set up the sed scripts for CONFIG_FILES section.
28537 #
28538
28539 # No need to generate the scripts if there are no CONFIG_FILES.
28540 # This happens for instance when ./config.status config.h
28541 if test -n "$CONFIG_FILES"; then
28542
28543 _ACEOF
28544
28545 # Create sed commands to just substitute file output variables.
28546
28547 # Remaining file output variables are in a fragment that also has non-file
28548 # output varibles.
28549
28550
28551
28552 ac_delim='%!_!# '
28553 for ac_last_try in false false false false false :; do
28554   cat >conf$$subs.sed <<_ACEOF
28555 SHELL!$SHELL$ac_delim
28556 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28557 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28558 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28559 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28560 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28561 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28562 exec_prefix!$exec_prefix$ac_delim
28563 prefix!$prefix$ac_delim
28564 program_transform_name!$program_transform_name$ac_delim
28565 bindir!$bindir$ac_delim
28566 sbindir!$sbindir$ac_delim
28567 libexecdir!$libexecdir$ac_delim
28568 datarootdir!$datarootdir$ac_delim
28569 datadir!$datadir$ac_delim
28570 sysconfdir!$sysconfdir$ac_delim
28571 sharedstatedir!$sharedstatedir$ac_delim
28572 localstatedir!$localstatedir$ac_delim
28573 includedir!$includedir$ac_delim
28574 oldincludedir!$oldincludedir$ac_delim
28575 docdir!$docdir$ac_delim
28576 infodir!$infodir$ac_delim
28577 htmldir!$htmldir$ac_delim
28578 dvidir!$dvidir$ac_delim
28579 pdfdir!$pdfdir$ac_delim
28580 psdir!$psdir$ac_delim
28581 libdir!$libdir$ac_delim
28582 localedir!$localedir$ac_delim
28583 mandir!$mandir$ac_delim
28584 DEFS!$DEFS$ac_delim
28585 ECHO_C!$ECHO_C$ac_delim
28586 ECHO_N!$ECHO_N$ac_delim
28587 ECHO_T!$ECHO_T$ac_delim
28588 LIBS!$LIBS$ac_delim
28589 build_alias!$build_alias$ac_delim
28590 host_alias!$host_alias$ac_delim
28591 target_alias!$target_alias$ac_delim
28592 build!$build$ac_delim
28593 build_cpu!$build_cpu$ac_delim
28594 build_vendor!$build_vendor$ac_delim
28595 build_os!$build_os$ac_delim
28596 host!$host$ac_delim
28597 host_cpu!$host_cpu$ac_delim
28598 host_vendor!$host_vendor$ac_delim
28599 host_os!$host_os$ac_delim
28600 target!$target$ac_delim
28601 target_cpu!$target_cpu$ac_delim
28602 target_vendor!$target_vendor$ac_delim
28603 target_os!$target_os$ac_delim
28604 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28605 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28606 INSTALL_DATA!$INSTALL_DATA$ac_delim
28607 am__isrc!$am__isrc$ac_delim
28608 CYGPATH_W!$CYGPATH_W$ac_delim
28609 PACKAGE!$PACKAGE$ac_delim
28610 VERSION!$VERSION$ac_delim
28611 ACLOCAL!$ACLOCAL$ac_delim
28612 AUTOCONF!$AUTOCONF$ac_delim
28613 AUTOMAKE!$AUTOMAKE$ac_delim
28614 AUTOHEADER!$AUTOHEADER$ac_delim
28615 MAKEINFO!$MAKEINFO$ac_delim
28616 install_sh!$install_sh$ac_delim
28617 STRIP!$STRIP$ac_delim
28618 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28619 mkdir_p!$mkdir_p$ac_delim
28620 AWK!$AWK$ac_delim
28621 SET_MAKE!$SET_MAKE$ac_delim
28622 am__leading_dot!$am__leading_dot$ac_delim
28623 AMTAR!$AMTAR$ac_delim
28624 am__tar!$am__tar$ac_delim
28625 am__untar!$am__untar$ac_delim
28626 XVERSION!$XVERSION$ac_delim
28627 MODULE_NAME!$MODULE_NAME$ac_delim
28628 ROOT_SRCDIR!$ROOT_SRCDIR$ac_delim
28629 ROOT_BUILDDIR!$ROOT_BUILDDIR$ac_delim
28630 AR!$AR$ac_delim
28631 CC!$CC$ac_delim
28632 CFLAGS!$CFLAGS$ac_delim
28633 LDFLAGS!$LDFLAGS$ac_delim
28634 CPPFLAGS!$CPPFLAGS$ac_delim
28635 ac_ct_CC!$ac_ct_CC$ac_delim
28636 EXEEXT!$EXEEXT$ac_delim
28637 OBJEXT!$OBJEXT$ac_delim
28638 DEPDIR!$DEPDIR$ac_delim
28639 am__include!$am__include$ac_delim
28640 am__quote!$am__quote$ac_delim
28641 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28642 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28643 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28644 CCDEPMODE!$CCDEPMODE$ac_delim
28645 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28646 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28647 GREP!$GREP$ac_delim
28648 EGREP!$EGREP$ac_delim
28649 _ACEOF
28650
28651   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
28652     break
28653   elif $ac_last_try; then
28654     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28656    { (exit 1); exit 1; }; }
28657   else
28658     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28659   fi
28660 done
28661
28662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28663 if test -n "$ac_eof"; then
28664   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28665   ac_eof=`expr $ac_eof + 1`
28666 fi
28667
28668 cat >>$CONFIG_STATUS <<_ACEOF
28669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28671 /^[      ]*@CORBA@[      ]*$/{
28672 r $CORBA
28673 d
28674 }
28675 _ACEOF
28676 sed '
28677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28678 s/^/s,@/; s/!/@,|#_!!_#|/
28679 :n
28680 t n
28681 s/'"$ac_delim"'$/,g/; t
28682 s/$/\\/; p
28683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28684 ' >>$CONFIG_STATUS <conf$$subs.sed
28685 rm -f conf$$subs.sed
28686 cat >>$CONFIG_STATUS <<_ACEOF
28687 CEOF$ac_eof
28688 _ACEOF
28689
28690
28691 ac_delim='%!_!# '
28692 for ac_last_try in false false false false false :; do
28693   cat >conf$$subs.sed <<_ACEOF
28694 LN_S!$LN_S$ac_delim
28695 ECHO!$ECHO$ac_delim
28696 RANLIB!$RANLIB$ac_delim
28697 CPP!$CPP$ac_delim
28698 CXX!$CXX$ac_delim
28699 CXXFLAGS!$CXXFLAGS$ac_delim
28700 ac_ct_CXX!$ac_ct_CXX$ac_delim
28701 CXXDEPMODE!$CXXDEPMODE$ac_delim
28702 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28703 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28704 CXXCPP!$CXXCPP$ac_delim
28705 F77!$F77$ac_delim
28706 FFLAGS!$FFLAGS$ac_delim
28707 ac_ct_F77!$ac_ct_F77$ac_delim
28708 LIBTOOL!$LIBTOOL$ac_delim
28709 CXXTMPDPTHFLAGS!$CXXTMPDPTHFLAGS$ac_delim
28710 DEPCC!$DEPCC$ac_delim
28711 DEPCXX!$DEPCXX$ac_delim
28712 DEPCXXFLAGS!$DEPCXXFLAGS$ac_delim
28713 C_DEPEND_FLAG!$C_DEPEND_FLAG$ac_delim
28714 CXX_DEPEND_FLAG!$CXX_DEPEND_FLAG$ac_delim
28715 MACHINE!$MACHINE$ac_delim
28716 HAVE_SSTREAM!$HAVE_SSTREAM$ac_delim
28717 LIB_LOCATION_SUFFIX!$LIB_LOCATION_SUFFIX$ac_delim
28718 LDEXPDYNFLAGS!$LDEXPDYNFLAGS$ac_delim
28719 STDLIB!$STDLIB$ac_delim
28720 acx_pthread_config!$acx_pthread_config$ac_delim
28721 PTHREAD_CC!$PTHREAD_CC$ac_delim
28722 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28723 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28724 PYTHON!$PYTHON$ac_delim
28725 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
28726 PYTHONHOME!$PYTHONHOME$ac_delim
28727 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
28728 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
28729 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
28730 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
28731 PYTHON_SITE!$PYTHON_SITE$ac_delim
28732 PYTHON_SITE_PACKAGE!$PYTHON_SITE_PACKAGE$ac_delim
28733 PYTHON_SITE_EXEC!$PYTHON_SITE_EXEC$ac_delim
28734 PYTHON_SITE_INSTALL!$PYTHON_SITE_INSTALL$ac_delim
28735 pythondir!$pythondir$ac_delim
28736 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
28737 pkgpythondir!$pkgpythondir$ac_delim
28738 pyexecdir!$pyexecdir$ac_delim
28739 pkgpyexecdir!$pkgpyexecdir$ac_delim
28740 OGL_INCLUDES!$OGL_INCLUDES$ac_delim
28741 OGL_LIBS!$OGL_LIBS$ac_delim
28742 MOC!$MOC$ac_delim
28743 UIC!$UIC$ac_delim
28744 QRCC!$QRCC$ac_delim
28745 LRELEASE!$LRELEASE$ac_delim
28746 QTDIR!$QTDIR$ac_delim
28747 QT_ROOT!$QT_ROOT$ac_delim
28748 QT_INCLUDES!$QT_INCLUDES$ac_delim
28749 QT_MT_INCLUDES!$QT_MT_INCLUDES$ac_delim
28750 QT_ASSISTANT_INCLUDES!$QT_ASSISTANT_INCLUDES$ac_delim
28751 QT_LIB_DIR!$QT_LIB_DIR$ac_delim
28752 QT_CORE_LIBS!$QT_CORE_LIBS$ac_delim
28753 QT_GUI_LIBS!$QT_GUI_LIBS$ac_delim
28754 QT_OTHER_LIBS!$QT_OTHER_LIBS$ac_delim
28755 QT_LIBS!$QT_LIBS$ac_delim
28756 QT_MT_LIBS!$QT_MT_LIBS$ac_delim
28757 QT_ASSISTANT_LIBS!$QT_ASSISTANT_LIBS$ac_delim
28758 QT_VERSION!$QT_VERSION$ac_delim
28759 QT_VERSION_ID!$QT_VERSION_ID$ac_delim
28760 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
28761 BOOST_LIBSUFFIX!$BOOST_LIBSUFFIX$ac_delim
28762 BOOST_LIBS!$BOOST_LIBS$ac_delim
28763 BOOST_LIB_THREAD!$BOOST_LIB_THREAD$ac_delim
28764 BOOST_LIB_SIGNALS!$BOOST_LIB_SIGNALS$ac_delim
28765 BOOST_LIB_SYSTEM!$BOOST_LIB_SYSTEM$ac_delim
28766 BOOST_LIB_REGEX!$BOOST_LIB_REGEX$ac_delim
28767 BOOST_PROGRAM_OPTIONS_LIB!$BOOST_PROGRAM_OPTIONS_LIB$ac_delim
28768 CAS_CPPFLAGS!$CAS_CPPFLAGS$ac_delim
28769 CAS_CXXFLAGS!$CAS_CXXFLAGS$ac_delim
28770 CAS_KERNEL!$CAS_KERNEL$ac_delim
28771 CAS_MATH!$CAS_MATH$ac_delim
28772 CAS_VIEWER!$CAS_VIEWER$ac_delim
28773 CAS_TKTopAlgo!$CAS_TKTopAlgo$ac_delim
28774 CAS_MODELER!$CAS_MODELER$ac_delim
28775 CAS_OCAF!$CAS_OCAF$ac_delim
28776 CAS_OCAFVIS!$CAS_OCAFVIS$ac_delim
28777 CAS_DATAEXCHANGE!$CAS_DATAEXCHANGE$ac_delim
28778 CAS_LDFLAGS!$CAS_LDFLAGS$ac_delim
28779 CAS_LDPATH!$CAS_LDPATH$ac_delim
28780 CAS_STDPLUGIN!$CAS_STDPLUGIN$ac_delim
28781 OMNIORB_IDL!$OMNIORB_IDL$ac_delim
28782 OMNIORB_ROOT!$OMNIORB_ROOT$ac_delim
28783 OMNIORB_INCLUDES!$OMNIORB_INCLUDES$ac_delim
28784 OMNIORB_CXXFLAGS!$OMNIORB_CXXFLAGS$ac_delim
28785 OMNIORB_LIBS!$OMNIORB_LIBS$ac_delim
28786 OMNIORB_IDLCXXFLAGS!$OMNIORB_IDLCXXFLAGS$ac_delim
28787 OMNIORB_IDLPYFLAGS!$OMNIORB_IDLPYFLAGS$ac_delim
28788 OMNIORB_IDL_CLN_H!$OMNIORB_IDL_CLN_H$ac_delim
28789 OMNIORB_IDL_CLN_CXX!$OMNIORB_IDL_CLN_CXX$ac_delim
28790 OMNIORB_IDL_CLN_OBJ!$OMNIORB_IDL_CLN_OBJ$ac_delim
28791 _ACEOF
28792
28793   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28794     break
28795   elif $ac_last_try; then
28796     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28797 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28798    { (exit 1); exit 1; }; }
28799   else
28800     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28801   fi
28802 done
28803
28804 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28805 if test -n "$ac_eof"; then
28806   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28807   ac_eof=`expr $ac_eof + 1`
28808 fi
28809
28810 cat >>$CONFIG_STATUS <<_ACEOF
28811 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28813 _ACEOF
28814 sed '
28815 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28816 s/^/s,@/; s/!/@,|#_!!_#|/
28817 :n
28818 t n
28819 s/'"$ac_delim"'$/,g/; t
28820 s/$/\\/; p
28821 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28822 ' >>$CONFIG_STATUS <conf$$subs.sed
28823 rm -f conf$$subs.sed
28824 cat >>$CONFIG_STATUS <<_ACEOF
28825 CEOF$ac_eof
28826 _ACEOF
28827
28828
28829 ac_delim='%!_!# '
28830 for ac_last_try in false false false false false :; do
28831   cat >conf$$subs.sed <<_ACEOF
28832 OMNIORB_IDL_SRV_H!$OMNIORB_IDL_SRV_H$ac_delim
28833 OMNIORB_IDL_SRV_CXX!$OMNIORB_IDL_SRV_CXX$ac_delim
28834 OMNIORB_IDL_SRV_OBJ!$OMNIORB_IDL_SRV_OBJ$ac_delim
28835 OMNIORB_IDL_TIE_H!$OMNIORB_IDL_TIE_H$ac_delim
28836 OMNIORB_IDL_TIE_CXX!$OMNIORB_IDL_TIE_CXX$ac_delim
28837 IDL!$IDL$ac_delim
28838 CORBA_ROOT!$CORBA_ROOT$ac_delim
28839 CORBA_INCLUDES!$CORBA_INCLUDES$ac_delim
28840 CORBA_CXXFLAGS!$CORBA_CXXFLAGS$ac_delim
28841 CORBA_LIBS!$CORBA_LIBS$ac_delim
28842 IDLCXXFLAGS!$IDLCXXFLAGS$ac_delim
28843 IDLPYFLAGS!$IDLPYFLAGS$ac_delim
28844 IDL_CLN_H!$IDL_CLN_H$ac_delim
28845 IDL_CLN_CXX!$IDL_CLN_CXX$ac_delim
28846 IDL_CLN_OBJ!$IDL_CLN_OBJ$ac_delim
28847 IDL_SRV_H!$IDL_SRV_H$ac_delim
28848 IDL_SRV_CXX!$IDL_SRV_CXX$ac_delim
28849 IDL_SRV_OBJ!$IDL_SRV_OBJ$ac_delim
28850 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
28851 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
28852 cppunit_ok!$cppunit_ok$ac_delim
28853 CPPUNIT_IS_OK_TRUE!$CPPUNIT_IS_OK_TRUE$ac_delim
28854 CPPUNIT_IS_OK_FALSE!$CPPUNIT_IS_OK_FALSE$ac_delim
28855 TEMP!$TEMP$ac_delim
28856 KERNEL_ROOT_DIR!$KERNEL_ROOT_DIR$ac_delim
28857 KERNEL_SITE_DIR!$KERNEL_SITE_DIR$ac_delim
28858 KERNEL_LDFLAGS!$KERNEL_LDFLAGS$ac_delim
28859 KERNEL_CXXFLAGS!$KERNEL_CXXFLAGS$ac_delim
28860 GEOM_ROOT_DIR!$GEOM_ROOT_DIR$ac_delim
28861 GEOM_LDFLAGS!$GEOM_LDFLAGS$ac_delim
28862 GEOM_CXXFLAGS!$GEOM_CXXFLAGS$ac_delim
28863 GUI_LDFLAGS!$GUI_LDFLAGS$ac_delim
28864 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
28865 GUI_ROOT_DIR!$GUI_ROOT_DIR$ac_delim
28866 CORBA_IN_GUI!$CORBA_IN_GUI$ac_delim
28867 SETX!$SETX$ac_delim
28868 LIBOBJS!$LIBOBJS$ac_delim
28869 LTLIBOBJS!$LTLIBOBJS$ac_delim
28870 _ACEOF
28871
28872   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
28873     break
28874   elif $ac_last_try; then
28875     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28877    { (exit 1); exit 1; }; }
28878   else
28879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28880   fi
28881 done
28882
28883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28884 if test -n "$ac_eof"; then
28885   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28886   ac_eof=`expr $ac_eof + 1`
28887 fi
28888
28889 cat >>$CONFIG_STATUS <<_ACEOF
28890 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28892 _ACEOF
28893 sed '
28894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28895 s/^/s,@/; s/!/@,|#_!!_#|/
28896 :n
28897 t n
28898 s/'"$ac_delim"'$/,g/; t
28899 s/$/\\/; p
28900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28901 ' >>$CONFIG_STATUS <conf$$subs.sed
28902 rm -f conf$$subs.sed
28903 cat >>$CONFIG_STATUS <<_ACEOF
28904 :end
28905 s/|#_!!_#|//g
28906 CEOF$ac_eof
28907 _ACEOF
28908
28909
28910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28912 # trailing colons and then remove the whole line if VPATH becomes empty
28913 # (actually we leave an empty line to preserve line numbers).
28914 if test "x$srcdir" = x.; then
28915   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28916 s/:*\$(srcdir):*/:/
28917 s/:*\${srcdir}:*/:/
28918 s/:*@srcdir@:*/:/
28919 s/^\([^=]*=[     ]*\):*/\1/
28920 s/:*$//
28921 s/^[^=]*=[       ]*$//
28922 }'
28923 fi
28924
28925 cat >>$CONFIG_STATUS <<\_ACEOF
28926 fi # test -n "$CONFIG_FILES"
28927
28928
28929 for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
28930 do
28931   case $ac_tag in
28932   :[FHLC]) ac_mode=$ac_tag; continue;;
28933   esac
28934   case $ac_mode$ac_tag in
28935   :[FHL]*:*);;
28936   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28937 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28938    { (exit 1); exit 1; }; };;
28939   :[FH]-) ac_tag=-:-;;
28940   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28941   esac
28942   ac_save_IFS=$IFS
28943   IFS=:
28944   set x $ac_tag
28945   IFS=$ac_save_IFS
28946   shift
28947   ac_file=$1
28948   shift
28949
28950   case $ac_mode in
28951   :L) ac_source=$1;;
28952   :[FH])
28953     ac_file_inputs=
28954     for ac_f
28955     do
28956       case $ac_f in
28957       -) ac_f="$tmp/stdin";;
28958       *) # Look for the file first in the build tree, then in the source tree
28959          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28960          # because $ac_f cannot contain `:'.
28961          test -f "$ac_f" ||
28962            case $ac_f in
28963            [\\/$]*) false;;
28964            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28965            esac ||
28966            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28967 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28968    { (exit 1); exit 1; }; };;
28969       esac
28970       ac_file_inputs="$ac_file_inputs $ac_f"
28971     done
28972
28973     # Let's still pretend it is `configure' which instantiates (i.e., don't
28974     # use $as_me), people would be surprised to read:
28975     #    /* config.h.  Generated by config.status.  */
28976     configure_input="Generated from "`IFS=:
28977           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28978     if test x"$ac_file" != x-; then
28979       configure_input="$ac_file.  $configure_input"
28980       { echo "$as_me:$LINENO: creating $ac_file" >&5
28981 echo "$as_me: creating $ac_file" >&6;}
28982     fi
28983
28984     case $ac_tag in
28985     *:-:* | *:-) cat >"$tmp/stdin";;
28986     esac
28987     ;;
28988   esac
28989
28990   ac_dir=`$as_dirname -- "$ac_file" ||
28991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28992          X"$ac_file" : 'X\(//\)[^/]' \| \
28993          X"$ac_file" : 'X\(//\)$' \| \
28994          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28995 echo X"$ac_file" |
28996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28997             s//\1/
28998             q
28999           }
29000           /^X\(\/\/\)[^/].*/{
29001             s//\1/
29002             q
29003           }
29004           /^X\(\/\/\)$/{
29005             s//\1/
29006             q
29007           }
29008           /^X\(\/\).*/{
29009             s//\1/
29010             q
29011           }
29012           s/.*/./; q'`
29013   { as_dir="$ac_dir"
29014   case $as_dir in #(
29015   -*) as_dir=./$as_dir;;
29016   esac
29017   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29018     as_dirs=
29019     while :; do
29020       case $as_dir in #(
29021       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29022       *) as_qdir=$as_dir;;
29023       esac
29024       as_dirs="'$as_qdir' $as_dirs"
29025       as_dir=`$as_dirname -- "$as_dir" ||
29026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29027          X"$as_dir" : 'X\(//\)[^/]' \| \
29028          X"$as_dir" : 'X\(//\)$' \| \
29029          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29030 echo X"$as_dir" |
29031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29032             s//\1/
29033             q
29034           }
29035           /^X\(\/\/\)[^/].*/{
29036             s//\1/
29037             q
29038           }
29039           /^X\(\/\/\)$/{
29040             s//\1/
29041             q
29042           }
29043           /^X\(\/\).*/{
29044             s//\1/
29045             q
29046           }
29047           s/.*/./; q'`
29048       test -d "$as_dir" && break
29049     done
29050     test -z "$as_dirs" || eval "mkdir $as_dirs"
29051   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29052 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29053    { (exit 1); exit 1; }; }; }
29054   ac_builddir=.
29055
29056 case "$ac_dir" in
29057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29058 *)
29059   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29060   # A ".." for each directory in $ac_dir_suffix.
29061   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29062   case $ac_top_builddir_sub in
29063   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29064   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29065   esac ;;
29066 esac
29067 ac_abs_top_builddir=$ac_pwd
29068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29069 # for backward compatibility:
29070 ac_top_builddir=$ac_top_build_prefix
29071
29072 case $srcdir in
29073   .)  # We are building in place.
29074     ac_srcdir=.
29075     ac_top_srcdir=$ac_top_builddir_sub
29076     ac_abs_top_srcdir=$ac_pwd ;;
29077   [\\/]* | ?:[\\/]* )  # Absolute name.
29078     ac_srcdir=$srcdir$ac_dir_suffix;
29079     ac_top_srcdir=$srcdir
29080     ac_abs_top_srcdir=$srcdir ;;
29081   *) # Relative name.
29082     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29083     ac_top_srcdir=$ac_top_build_prefix$srcdir
29084     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29085 esac
29086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29087
29088
29089   case $ac_mode in
29090   :F)
29091   #
29092   # CONFIG_FILE
29093   #
29094
29095   case $INSTALL in
29096   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29097   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29098   esac
29099   ac_MKDIR_P=$MKDIR_P
29100   case $MKDIR_P in
29101   [\\/$]* | ?:[\\/]* ) ;;
29102   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29103   esac
29104 _ACEOF
29105
29106 cat >>$CONFIG_STATUS <<\_ACEOF
29107 # If the template does not know about datarootdir, expand it.
29108 # FIXME: This hack should be removed a few years after 2.60.
29109 ac_datarootdir_hack=; ac_datarootdir_seen=
29110
29111 case `sed -n '/datarootdir/ {
29112   p
29113   q
29114 }
29115 /@datadir@/p
29116 /@docdir@/p
29117 /@infodir@/p
29118 /@localedir@/p
29119 /@mandir@/p
29120 ' $ac_file_inputs` in
29121 *datarootdir*) ac_datarootdir_seen=yes;;
29122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29123   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29124 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29125 _ACEOF
29126 cat >>$CONFIG_STATUS <<_ACEOF
29127   ac_datarootdir_hack='
29128   s&@datadir@&$datadir&g
29129   s&@docdir@&$docdir&g
29130   s&@infodir@&$infodir&g
29131   s&@localedir@&$localedir&g
29132   s&@mandir@&$mandir&g
29133     s&\\\${datarootdir}&$datarootdir&g' ;;
29134 esac
29135 _ACEOF
29136
29137 # Neutralize VPATH when `$srcdir' = `.'.
29138 # Shell code in configure.ac might set extrasub.
29139 # FIXME: do we really want to maintain this feature?
29140 cat >>$CONFIG_STATUS <<_ACEOF
29141   sed "$ac_vpsub
29142 $extrasub
29143 _ACEOF
29144 cat >>$CONFIG_STATUS <<\_ACEOF
29145 :t
29146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29147 s&@configure_input@&$configure_input&;t t
29148 s&@top_builddir@&$ac_top_builddir_sub&;t t
29149 s&@srcdir@&$ac_srcdir&;t t
29150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29151 s&@top_srcdir@&$ac_top_srcdir&;t t
29152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29153 s&@builddir@&$ac_builddir&;t t
29154 s&@abs_builddir@&$ac_abs_builddir&;t t
29155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29156 s&@INSTALL@&$ac_INSTALL&;t t
29157 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29158 $ac_datarootdir_hack
29159 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
29160
29161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29162   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29163   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29164   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29165 which seems to be undefined.  Please make sure it is defined." >&5
29166 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29167 which seems to be undefined.  Please make sure it is defined." >&2;}
29168
29169   rm -f "$tmp/stdin"
29170   case $ac_file in
29171   -) cat "$tmp/out"; rm -f "$tmp/out";;
29172   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29173   esac
29174  ;;
29175
29176
29177   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29178 echo "$as_me: executing $ac_file commands" >&6;}
29179  ;;
29180   esac
29181
29182
29183   case $ac_file$ac_mode in
29184     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29185   # Strip MF so we end up with the name of the file.
29186   mf=`echo "$mf" | sed -e 's/:.*$//'`
29187   # Check whether this is an Automake generated Makefile or not.
29188   # We used to match only the files named `Makefile.in', but
29189   # some people rename them; so instead we look at the file content.
29190   # Grep'ing the first line is not enough: some people post-process
29191   # each Makefile.in and add a new line on top of each file to say so.
29192   # Grep'ing the whole file is not good either: AIX grep has a line
29193   # limit of 2048, but all sed's we know have understand at least 4000.
29194   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
29195     dirpart=`$as_dirname -- "$mf" ||
29196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29197          X"$mf" : 'X\(//\)[^/]' \| \
29198          X"$mf" : 'X\(//\)$' \| \
29199          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29200 echo X"$mf" |
29201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29202             s//\1/
29203             q
29204           }
29205           /^X\(\/\/\)[^/].*/{
29206             s//\1/
29207             q
29208           }
29209           /^X\(\/\/\)$/{
29210             s//\1/
29211             q
29212           }
29213           /^X\(\/\).*/{
29214             s//\1/
29215             q
29216           }
29217           s/.*/./; q'`
29218   else
29219     continue
29220   fi
29221   # Extract the definition of DEPDIR, am__include, and am__quote
29222   # from the Makefile without running `make'.
29223   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29224   test -z "$DEPDIR" && continue
29225   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29226   test -z "am__include" && continue
29227   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29228   # When using ansi2knr, U may be empty or an underscore; expand it
29229   U=`sed -n 's/^U = //p' < "$mf"`
29230   # Find all dependency output files, they are included files with
29231   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29232   # simplest approach to changing $(DEPDIR) to its actual value in the
29233   # expansion.
29234   for file in `sed -n "
29235     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29236        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29237     # Make sure the directory exists.
29238     test -f "$dirpart/$file" && continue
29239     fdir=`$as_dirname -- "$file" ||
29240 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29241          X"$file" : 'X\(//\)[^/]' \| \
29242          X"$file" : 'X\(//\)$' \| \
29243          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29244 echo X"$file" |
29245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29246             s//\1/
29247             q
29248           }
29249           /^X\(\/\/\)[^/].*/{
29250             s//\1/
29251             q
29252           }
29253           /^X\(\/\/\)$/{
29254             s//\1/
29255             q
29256           }
29257           /^X\(\/\).*/{
29258             s//\1/
29259             q
29260           }
29261           s/.*/./; q'`
29262     { as_dir=$dirpart/$fdir
29263   case $as_dir in #(
29264   -*) as_dir=./$as_dir;;
29265   esac
29266   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29267     as_dirs=
29268     while :; do
29269       case $as_dir in #(
29270       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29271       *) as_qdir=$as_dir;;
29272       esac
29273       as_dirs="'$as_qdir' $as_dirs"
29274       as_dir=`$as_dirname -- "$as_dir" ||
29275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29276          X"$as_dir" : 'X\(//\)[^/]' \| \
29277          X"$as_dir" : 'X\(//\)$' \| \
29278          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29279 echo X"$as_dir" |
29280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29281             s//\1/
29282             q
29283           }
29284           /^X\(\/\/\)[^/].*/{
29285             s//\1/
29286             q
29287           }
29288           /^X\(\/\/\)$/{
29289             s//\1/
29290             q
29291           }
29292           /^X\(\/\).*/{
29293             s//\1/
29294             q
29295           }
29296           s/.*/./; q'`
29297       test -d "$as_dir" && break
29298     done
29299     test -z "$as_dirs" || eval "mkdir $as_dirs"
29300   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29301 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29302    { (exit 1); exit 1; }; }; }
29303     # echo "creating $dirpart/$file"
29304     echo '# dummy' > "$dirpart/$file"
29305   done
29306 done
29307  ;;
29308     "default-1":C)  \
29309       chmod +x ./bin/*; \
29310  ;;
29311
29312   esac
29313 done # for ac_tag
29314
29315
29316 { (exit 0); exit 0; }
29317 _ACEOF
29318 chmod +x $CONFIG_STATUS
29319 ac_clean_files=$ac_clean_files_save
29320
29321
29322 # configure is writing to config.log, and then calls config.status.
29323 # config.status does its own redirection, appending to config.log.
29324 # Unfortunately, on DOS this fails, as config.log is still kept open
29325 # by configure, so config.status won't be able to write to it; its
29326 # output is simply discarded.  So we exec the FD to /dev/null,
29327 # effectively closing config.log, so it can be properly (re)opened and
29328 # appended to by config.status.  When coming back to configure, we
29329 # need to make the FD available again.
29330 if test "$no_create" != yes; then
29331   ac_cs_success=:
29332   ac_config_status_args=
29333   test "$silent" = yes &&
29334     ac_config_status_args="$ac_config_status_args --quiet"
29335   exec 5>/dev/null
29336   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29337   exec 5>>config.log
29338   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29339   # would make configure fail if this is the last instruction.
29340   $ac_cs_success || { (exit 1); exit 1; }
29341 fi
29342