2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CXX_set=${CXX+set}
752 ac_env_CXX_value=$CXX
753 ac_cv_env_CXX_set=${CXX+set}
754 ac_cv_env_CXX_value=$CXX
755 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756 ac_env_CXXFLAGS_value=$CXXFLAGS
757 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759 ac_env_CXXCPP_set=${CXXCPP+set}
760 ac_env_CXXCPP_value=$CXXCPP
761 ac_cv_env_CXXCPP_set=${CXXCPP+set}
762 ac_cv_env_CXXCPP_value=$CXXCPP
763 ac_env_CPP_set=${CPP+set}
764 ac_env_CPP_value=$CPP
765 ac_cv_env_CPP_set=${CPP+set}
766 ac_cv_env_CPP_value=$CPP
769 # Report the --help message.
771 if test "$ac_init_help" = "long"; then
772 # Omit some internal or obsolete options to make the list less imposing.
773 # This message is too long to be a string in the A/UX 3.1 sh.
775 \`configure' configures this package to adapt to many kinds of systems.
777 Usage: $0 [OPTION]... [VAR=VALUE]...
779 To assign environment variables (e.g., CC, CFLAGS...), specify them as
780 VAR=VALUE. See below for descriptions of some of the useful variables.
782 Defaults for the options are specified in brackets.
785 -h, --help display this help and exit
786 --help=short display options specific to this package
787 --help=recursive display the short help of all the included packages
788 -V, --version display version information and exit
789 -q, --quiet, --silent do not print \`checking...' messages
790 --cache-file=FILE cache test results in FILE [disabled]
791 -C, --config-cache alias for \`--cache-file=config.cache'
792 -n, --no-create do not create output files
793 --srcdir=DIR find the sources in DIR [configure dir or \`..']
798 Installation directories:
799 --prefix=PREFIX install architecture-independent files in PREFIX
801 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 By default, \`make install' will install all the files in
805 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
806 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
807 for instance \`--prefix=\$HOME'.
809 For better control, use the options below.
811 Fine tuning of the installation directories:
812 --bindir=DIR user executables [EPREFIX/bin]
813 --sbindir=DIR system admin executables [EPREFIX/sbin]
814 --libexecdir=DIR program executables [EPREFIX/libexec]
815 --datadir=DIR read-only architecture-independent data [PREFIX/share]
816 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
817 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
818 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
819 --libdir=DIR object code libraries [EPREFIX/lib]
820 --includedir=DIR C header files [PREFIX/include]
821 --oldincludedir=DIR C header files for non-gcc [/usr/include]
822 --infodir=DIR info documentation [PREFIX/info]
823 --mandir=DIR man documentation [PREFIX/man]
829 --x-includes=DIR X include files are in DIR
830 --x-libraries=DIR X library files are in DIR
833 --build=BUILD configure for building on BUILD [guessed]
834 --host=HOST cross-compile to build programs to run on HOST [BUILD]
835 --target=TARGET configure for building compilers for TARGET [HOST]
839 if test -n "$ac_init_help"; then
844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
846 --enable-debug=PKGS build without debug information default=yes
847 --enable-production=PKGS build without debug information default=no
848 --enable-static=PKGS build static libraries default=no
849 --enable-shared=PKGS build shared libraries default=yes
850 --enable-fast-install=PKGS optimize for fast installation default=yes
851 --disable-libtool-lock avoid locking (might break parallel builds)
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-gnu-ld assume the C compiler uses GNU ld default=no
857 --with-mpich=DIR root directory path of MPICH installation
858 --with-python=DIR root directory path of python installation
859 --with-python-site=DIR Use DIR for installing platform independent
861 --with-python-site-exec=DIR Use DIR for installing platform dependent
863 --with-swig=EXEC swig executable
864 --with-opengl=DIR root directory path of OpenGL installation
865 --with-x use the X Window System
866 --with-hdf5=DIR root directory path to hdf5 installation
867 --with-med2=DIR root directory path to med2 installation
868 --with-kernel=DIR root directory path of KERNEL build or installation
869 --with-geom=DIR root directory path of GEOM installation
870 --with-smesh=DIR root directory path of SMESH installation
871 --with-ghs3d=DIR root directory path of GHS33D installation
873 Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CXX C++ compiler command
881 CXXFLAGS C++ compiler flags
882 CXXCPP C++ preprocessor
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 ac_dir_suffix= ac_top_builddir=
907 .) # No --srcdir option. We are building in place.
909 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
960 This file contains any messages produced by compilers while
961 running configure, to aid debugging if configure makes a mistake.
963 It was created by $as_me, which was
964 generated by GNU Autoconf 2.53. Invocation command line was
975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
987 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 test -z "$as_dir" && as_dir=.
1014 # Keep a trace of the command line.
1015 # Strip out --no-create and --no-recursion so they do not pile up.
1016 # Also quote any args containing shell meta-characters.
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n ) continue ;;
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1028 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1030 case " $ac_configure_args " in
1031 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1032 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035 # Get rid of the leading space.
1038 # When interrupted or exit'd, cleanup temporary files, and complete
1039 # config.log. We remove comments because anyway the quotes in there
1040 # would cause problems or look ugly.
1041 # WARNING: Be sure not to use single quotes in there, as some shells,
1042 # such as our DU 5.0 friend, will then `close' the trap.
1043 trap 'exit_status=$?
1044 # Save into config.log some information that might help in debugging.
1048 ## ---------------- ##
1049 ## Cache variables. ##
1050 ## ---------------- ##
1053 # The following way of writing the cache mishandles newlines in values,
1056 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1059 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1069 if test -s confdefs.h; then
1076 sed "/^$/d" confdefs.h
1079 test "$ac_signal" != 0 &&
1080 echo "$as_me: caught signal $ac_signal"
1081 echo "$as_me: exit $exit_status"
1083 rm -f core core.* *.core &&
1084 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1087 for ac_signal in 1 2 13 15; do
1088 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1093 rm -rf conftest* confdefs.h
1094 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1097 # Predefined preprocessor variables.
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_NAME "$PACKAGE_NAME"
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_STRING "$PACKAGE_STRING"
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1124 # Let the site file select an alternate cache file if it wants to.
1125 # Prefer explicitly selected file to automatically selected ones.
1126 if test -z "$CONFIG_SITE"; then
1127 if test "x$prefix" != xNONE; then
1128 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1130 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1133 for ac_site_file in $CONFIG_SITE; do
1134 if test -r "$ac_site_file"; then
1135 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136 echo "$as_me: loading site script $ac_site_file" >&6;}
1137 sed 's/^/| /' "$ac_site_file" >&5
1142 if test -r "$cache_file"; then
1143 # Some versions of bash will fail to source /dev/null (special
1144 # files actually), so we avoid doing that.
1145 if test -f "$cache_file"; then
1146 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147 echo "$as_me: loading cache $cache_file" >&6;}
1149 [\\/]* | ?:[\\/]* ) . $cache_file;;
1150 *) . ./$cache_file;;
1154 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155 echo "$as_me: creating cache $cache_file" >&6;}
1159 # Check that the precious variables saved in the cache have kept the same
1161 ac_cache_corrupted=false
1162 for ac_var in `(set) 2>&1 |
1163 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165 eval ac_new_set=\$ac_env_${ac_var}_set
1166 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167 eval ac_new_val="\$ac_env_${ac_var}_value"
1168 case $ac_old_set,$ac_new_set in
1170 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172 ac_cache_corrupted=: ;;
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1179 if test "x$ac_old_val" != "x$ac_new_val"; then
1180 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1183 echo "$as_me: former value: $ac_old_val" >&2;}
1184 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1185 echo "$as_me: current value: $ac_new_val" >&2;}
1186 ac_cache_corrupted=:
1189 # Pass precious variables to config.status.
1190 if test "$ac_new_set" = set; then
1192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194 *) ac_arg=$ac_var=$ac_new_val ;;
1196 case " $ac_configure_args " in
1197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1198 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1202 if $ac_cache_corrupted; then
1203 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207 { (exit 1); exit 1; }; }
1211 ac_cpp='$CPP $CPPFLAGS'
1212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1234 for ac_dir in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files; do
1235 if test -f $ac_dir/install-sh; then
1237 ac_install_sh="$ac_aux_dir/install-sh -c"
1239 elif test -f $ac_dir/install.sh; then
1241 ac_install_sh="$ac_aux_dir/install.sh -c"
1243 elif test -f $ac_dir/shtool; then
1245 ac_install_sh="$ac_aux_dir/shtool install -c"
1249 if test -z "$ac_aux_dir"; then
1250 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files" >&5
1251 echo "$as_me: error: cannot find install-sh or install.sh in ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files $srcdir/${KERNEL_ROOT_DIR}/salome_adm/unix/config_files" >&2;}
1252 { (exit 1); exit 1; }; }
1254 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1255 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1256 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1258 # Make sure we can run config.sub.
1259 $ac_config_sub sun4 >/dev/null 2>&1 ||
1260 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1262 { (exit 1); exit 1; }; }
1264 echo "$as_me:$LINENO: checking build system type" >&5
1265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1266 if test "${ac_cv_build+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1269 ac_cv_build_alias=$build_alias
1270 test -z "$ac_cv_build_alias" &&
1271 ac_cv_build_alias=`$ac_config_guess`
1272 test -z "$ac_cv_build_alias" &&
1273 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1275 { (exit 1); exit 1; }; }
1276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1277 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1279 { (exit 1); exit 1; }; }
1282 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1283 echo "${ECHO_T}$ac_cv_build" >&6
1285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1290 echo "$as_me:$LINENO: checking host system type" >&5
1291 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1292 if test "${ac_cv_host+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 ac_cv_host_alias=$host_alias
1296 test -z "$ac_cv_host_alias" &&
1297 ac_cv_host_alias=$ac_cv_build_alias
1298 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1299 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1300 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1301 { (exit 1); exit 1; }; }
1304 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1305 echo "${ECHO_T}$ac_cv_host" >&6
1307 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1308 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1309 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 ROOT_SRCDIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
1330 echo Source root directory : $ROOT_SRCDIR
1331 echo Build root directory : $ROOT_BUILDDIR
1335 if test -z "$AR"; then
1336 for ac_prog in ar xar
1338 # Extract the first word of "$ac_prog", so it can be a program name with args.
1339 set dummy $ac_prog; ac_word=$2
1340 echo "$as_me:$LINENO: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_AR+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 if test -n "$AR"; then
1346 ac_cv_prog_AR="$AR" # Let the user override the test.
1348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 test -z "$as_dir" && as_dir=.
1353 for ac_exec_ext in '' $ac_executable_extensions; do
1354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1355 ac_cv_prog_AR="$ac_prog"
1356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1365 if test -n "$AR"; then
1366 echo "$as_me:$LINENO: result: $AR" >&5
1367 echo "${ECHO_T}$AR" >&6
1369 echo "$as_me:$LINENO: result: no" >&5
1370 echo "${ECHO_T}no" >&6
1373 test -n "$AR" && break
1375 test -n "$AR" || AR=":"
1383 echo ---------------------------------------------
1385 echo ---------------------------------------------
1388 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1389 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1390 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1391 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 cat >conftest.make <<\_ACEOF
1396 @echo 'ac_maketemp="${MAKE}"'
1398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1399 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1400 if test -n "$ac_maketemp"; then
1401 eval ac_cv_prog_make_${ac_make}_set=yes
1403 eval ac_cv_prog_make_${ac_make}_set=no
1407 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1408 echo "$as_me:$LINENO: result: yes" >&5
1409 echo "${ECHO_T}yes" >&6
1412 echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1414 SET_MAKE="MAKE=${MAKE-make}"
1417 # Find a good install program. We prefer a C program (faster),
1418 # so one script is as good as another. But avoid the broken or
1419 # incompatible versions:
1420 # SysV /etc/install, /usr/sbin/install
1421 # SunOS /usr/etc/install
1422 # IRIX /sbin/install
1424 # AmigaOS /C/install, which installs bootblocks on floppy discs
1425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1428 # ./install, which can be erroneously created by make from ./install.sh.
1429 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1430 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1431 if test -z "$INSTALL"; then
1432 if test "${ac_cv_path_install+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 # Account for people who put trailing slashes in PATH elements.
1442 ./ | .// | /cC/* | \
1443 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1446 # OSF1 and SCO ODT 3.0 have their own names for install.
1447 # Don't use installbsd from OSF since it installs stuff as root
1449 for ac_prog in ginstall scoinst install; do
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1452 if test $ac_prog = install &&
1453 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454 # AIX install. It has an incompatible calling convention.
1456 elif test $ac_prog = install &&
1457 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1458 # program-specific install script used by HP pwplus--don't use.
1461 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1473 if test "${ac_cv_path_install+set}" = set; then
1474 INSTALL=$ac_cv_path_install
1476 # As a last resort, use the slow shell script. We don't cache a
1477 # path for INSTALL within a source directory, because that will
1478 # break other packages using the cache if that directory is
1479 # removed, or if the path is relative.
1480 INSTALL=$ac_install_sh
1483 echo "$as_me:$LINENO: result: $INSTALL" >&5
1484 echo "${ECHO_T}$INSTALL" >&6
1486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1487 # It thinks the first close brace ends the variable substitution.
1488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1495 # Check whether --enable-debug or --disable-debug was given.
1496 if test "${enable_debug+set}" = set; then
1497 enableval="$enable_debug"
1498 p=${PACKAGE-default}
1499 case "$enableval" in
1500 yes) enable_debug=yes ;;
1501 no) enable_debug=no ;;
1504 # Look at the argument we got. We use all the common list separators.
1505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1506 for pkg in $enableval; do
1507 if test "X$pkg" = "X$p"; then
1517 if test "X$enable_debug" = "Xyes"; then
1518 CFLAGS="$CFLAGS -g -D_DEBUG_ "
1519 CXXFLAGS="$CXXFLAGS -g -D_DEBUG_ -Wno-deprecated "
1522 # Check whether --enable-production or --disable-production was given.
1523 if test "${enable_production+set}" = set; then
1524 enableval="$enable_production"
1525 p=${PACKAGE-default}
1526 case "$enableval" in
1527 yes) enable_production=yes ;;
1528 no) enable_production=no ;;
1530 enable_production=no
1531 # Look at the argument we got. We use all the common list separators.
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1533 for pkg in $enableval; do
1534 if test "X$pkg" = "X$p"; then
1535 enable_production=yes
1542 enable_production=no
1544 if test "X$enable_production" = "Xyes"; then
1546 CXXFLAGS="$CXXFLAGS -O -Wno-deprecated "
1550 echo ---------------------------------------------
1551 echo testing libtool
1552 echo ---------------------------------------------
1554 # Check whether --enable-static or --disable-static was given.
1555 if test "${enable_static+set}" = set; then
1556 enableval="$enable_static"
1557 p=${PACKAGE-default}
1558 case "$enableval" in
1559 yes) enable_static=yes ;;
1560 no) enable_static=no ;;
1563 # Look at the argument we got. We use all the common list separators.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1565 for pkg in $enableval; do
1566 if test "X$pkg" = "X$p"; then
1578 # Check whether --enable-shared or --disable-shared was given.
1579 if test "${enable_shared+set}" = set; then
1580 enableval="$enable_shared"
1581 p=${PACKAGE-default}
1582 case "$enableval" in
1583 yes) enable_shared=yes ;;
1584 no) enable_shared=no ;;
1587 # Look at the argument we got. We use all the common list separators.
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1589 for pkg in $enableval; do
1590 if test "X$pkg" = "X$p"; then
1600 # Check whether --enable-fast-install or --disable-fast-install was given.
1601 if test "${enable_fast_install+set}" = set; then
1602 enableval="$enable_fast_install"
1603 p=${PACKAGE-default}
1604 case "$enableval" in
1605 yes) enable_fast_install=yes ;;
1606 no) enable_fast_install=no ;;
1608 enable_fast_install=no
1609 # Look at the argument we got. We use all the common list separators.
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1611 for pkg in $enableval; do
1612 if test "X$pkg" = "X$p"; then
1613 enable_fast_install=yes
1620 enable_fast_install=yes
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1625 echo "$as_me:$LINENO: checking for $ac_word" >&5
1626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627 if test "${ac_cv_prog_RANLIB+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 if test -n "$RANLIB"; then
1631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 RANLIB=$ac_cv_prog_RANLIB
1650 if test -n "$RANLIB"; then
1651 echo "$as_me:$LINENO: result: $RANLIB" >&5
1652 echo "${ECHO_T}$RANLIB" >&6
1654 echo "$as_me:$LINENO: result: no" >&5
1655 echo "${ECHO_T}no" >&6
1659 if test -z "$ac_cv_prog_RANLIB"; then
1660 ac_ct_RANLIB=$RANLIB
1661 # Extract the first word of "ranlib", so it can be a program name with args.
1662 set dummy ranlib; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$ac_ct_RANLIB"; then
1669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_ac_ct_RANLIB="ranlib"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1689 if test -n "$ac_ct_RANLIB"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1691 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1697 RANLIB=$ac_ct_RANLIB
1699 RANLIB="$ac_cv_prog_RANLIB"
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$CC"; then
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1744 if test -z "$ac_cv_prog_CC"; then
1746 # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1786 if test -z "$CC"; then
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_CC="${ac_tool_prefix}cc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$ac_cv_prog_CC"; then
1826 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1867 if test -z "$CC"; then
1868 # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887 ac_prog_rejected=yes
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 if test $ac_prog_rejected = yes; then
1898 # We found a bogon in the path, so make sure we never use it.
1899 set dummy $ac_cv_prog_CC
1901 if test $# != 0; then
1902 # We chose a different compiler from the bogus one.
1903 # However, it has the same basename, so the bogon will be chosen
1904 # first if we set CC to just the basename; use the full file name.
1906 set dummy "$as_dir/$ac_word" ${1+"$@"}
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$CC"; then
1924 if test -n "$ac_tool_prefix"; then
1927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1929 echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC="$CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 if test -n "$CC"; then
1955 echo "$as_me:$LINENO: result: $CC" >&5
1956 echo "${ECHO_T}$CC" >&6
1958 echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1962 test -n "$CC" && break
1965 if test -z "$CC"; then
1969 # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$ac_ct_CC"; then
1977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_ac_ct_CC="$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1996 if test -n "$ac_ct_CC"; then
1997 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1998 echo "${ECHO_T}$ac_ct_CC" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2004 test -n "$ac_ct_CC" && break
2013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2014 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2015 { (exit 1); exit 1; }; }
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019 "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022 (eval $ac_compiler --version </dev/null >&5) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027 (eval $ac_compiler -v </dev/null >&5) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032 (eval $ac_compiler -V </dev/null >&5) 2>&5
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line $LINENO "configure"
2039 #include "confdefs.h"
2041 #ifdef F77_DUMMY_MAIN
2045 int F77_DUMMY_MAIN() { return 1; }
2055 ac_clean_files_save=$ac_clean_files
2056 ac_clean_files="$ac_clean_files a.out a.exe"
2057 # Try to create an executable without -o first, disregard a.out.
2058 # It will help us diagnose broken compilers, and finding out an intuition
2060 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2061 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2062 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064 (eval $ac_link_default) 2>&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; then
2068 # Find the output, starting from the most likely. This scheme is
2069 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2072 # Be careful to initialize this variable, since it used to be cached.
2073 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2075 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2076 ls a.out conftest 2>/dev/null;
2077 ls a.* conftest.* 2>/dev/null`; do
2079 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2080 a.out ) # We found the default executable, but exeext='' is most
2083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2094 echo "$as_me: error: C compiler cannot create executables" >&2;}
2095 { (exit 77); exit 77; }; }
2098 ac_exeext=$ac_cv_exeext
2099 echo "$as_me:$LINENO: result: $ac_file" >&5
2100 echo "${ECHO_T}$ac_file" >&6
2102 # Check the compiler produces executables we can run. If not, either
2103 # the compiler is broken, or we cross compile.
2104 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2105 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2106 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107 # If not cross compiling, check that we can run a simple program.
2108 if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2117 if test "$cross_compiling" = maybe; then
2120 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2121 If you meant to cross compile, use \`--host'." >&5
2122 echo "$as_me: error: cannot run C compiled programs.
2123 If you meant to cross compile, use \`--host'." >&2;}
2124 { (exit 1); exit 1; }; }
2128 echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2131 rm -f a.out a.exe conftest$ac_cv_exeext
2132 ac_clean_files=$ac_clean_files_save
2133 # Check the compiler produces executables we can run. If not, either
2134 # the compiler is broken, or we cross compile.
2135 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138 echo "${ECHO_T}$cross_compiling" >&6
2140 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143 (eval $ac_link) 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; then
2147 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2149 # work properly (i.e., refer to `conftest.exe'), while it won't with
2151 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2153 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2154 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2162 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2163 { (exit 1); exit 1; }; }
2166 rm -f conftest$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2168 echo "${ECHO_T}$ac_cv_exeext" >&6
2170 rm -f conftest.$ac_ext
2171 EXEEXT=$ac_cv_exeext
2173 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2174 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2175 if test "${ac_cv_objext+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 cat >conftest.$ac_ext <<_ACEOF
2179 #line $LINENO "configure"
2180 #include "confdefs.h"
2182 #ifdef F77_DUMMY_MAIN
2186 int F77_DUMMY_MAIN() { return 1; }
2196 rm -f conftest.o conftest.obj
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198 (eval $ac_compile) 2>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; then
2202 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2205 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210 echo "$as_me: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2213 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2214 { (exit 1); exit 1; }; }
2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2219 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2220 echo "${ECHO_T}$ac_cv_objext" >&6
2221 OBJEXT=$ac_cv_objext
2223 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2225 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line $LINENO "configure"
2230 #include "confdefs.h"
2232 #ifdef F77_DUMMY_MAIN
2236 int F77_DUMMY_MAIN() { return 1; }
2249 rm -f conftest.$ac_objext
2250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2251 (eval $ac_compile) 2>&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); } &&
2255 { ac_try='test -s conftest.$ac_objext'
2256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2263 echo "$as_me: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2267 rm -f conftest.$ac_objext conftest.$ac_ext
2268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2271 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2273 GCC=`test $ac_compiler_gnu = yes && echo yes`
2274 ac_test_CFLAGS=${CFLAGS+set}
2275 ac_save_CFLAGS=$CFLAGS
2277 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2278 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2279 if test "${ac_cv_prog_cc_g+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 #include "confdefs.h"
2286 #ifdef F77_DUMMY_MAIN
2290 int F77_DUMMY_MAIN() { return 1; }
2300 rm -f conftest.$ac_objext
2301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302 (eval $ac_compile) 2>&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -s conftest.$ac_objext'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; }; then
2314 echo "$as_me: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2318 rm -f conftest.$ac_objext conftest.$ac_ext
2320 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2321 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2322 if test "$ac_test_CFLAGS" = set; then
2323 CFLAGS=$ac_save_CFLAGS
2324 elif test $ac_cv_prog_cc_g = yes; then
2325 if test "$GCC" = yes; then
2331 if test "$GCC" = yes; then
2337 # Some people use a C++ compiler to compile C. Since we use `exit',
2338 # in C++ we need to declare it. In case someone uses the same compiler
2339 # for both compiling C and C++ we need to have the C++ compiler decide
2340 # the declaration of exit, since it's the most demanding environment.
2341 cat >conftest.$ac_ext <<_ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 for ac_declaration in \
2360 '#include <stdlib.h>' \
2361 'extern "C" void std::exit (int) throw (); using std::exit;' \
2362 'extern "C" void std::exit (int); using std::exit;' \
2363 'extern "C" void exit (int) throw ();' \
2364 'extern "C" void exit (int);' \
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #line $LINENO "configure"
2369 #include "confdefs.h"
2372 #ifdef F77_DUMMY_MAIN
2376 int F77_DUMMY_MAIN() { return 1; }
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2404 rm -f conftest.$ac_objext conftest.$ac_ext
2405 cat >conftest.$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2409 #ifdef F77_DUMMY_MAIN
2413 int F77_DUMMY_MAIN() { return 1; }
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425 (eval $ac_compile) 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 rm -f conftest.$ac_objext conftest.$ac_ext
2443 if test -n "$ac_declaration"; then
2444 echo '#ifdef __cplusplus' >>confdefs.h
2445 echo $ac_declaration >>confdefs.h
2446 echo '#endif' >>confdefs.h
2450 echo "$as_me: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 rm -f conftest.$ac_objext conftest.$ac_ext
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2462 if test "${with_gnu_ld+set}" = set; then
2463 withval="$with_gnu_ld"
2464 test "$withval" = no || with_gnu_ld=yes
2469 if test "$ac_cv_c_compiler_gnu" = yes; then
2470 # Check if gcc -print-prog-name=ld gives a path.
2471 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2472 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2473 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2475 # Accept absolute paths.
2476 [\\/]* | [A-Za-z]:[\\/]*)
2477 re_direlt='/[^/][^/]*/\.\./'
2478 # Canonicalize the path of ld
2479 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2481 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2483 test -z "$LD" && LD="$ac_prog"
2486 # If it fails, then pretend we aren't using GCC.
2490 # If it is relative, then search for the first ld in PATH.
2494 elif test "$with_gnu_ld" = yes; then
2495 echo "$as_me:$LINENO: checking for GNU ld" >&5
2496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2498 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2501 if test "${ac_cv_path_LD+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -z "$LD"; then
2505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2506 for ac_dir in $PATH; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2509 ac_cv_path_LD="$ac_dir/$ac_prog"
2510 # Check to see if the program is GNU ld. I'd rather use --version,
2511 # but apparently some GNU ld's only accept -v.
2512 # Break only if it was the GNU/non-GNU ld that we prefer.
2513 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2514 test "$with_gnu_ld" != no && break
2516 test "$with_gnu_ld" != yes && break
2522 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2527 if test -n "$LD"; then
2528 echo "$as_me:$LINENO: result: $LD" >&5
2529 echo "${ECHO_T}$LD" >&6
2531 echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2536 { (exit 1); exit 1; }; }
2537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2539 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2543 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2544 ac_cv_prog_gnu_ld=yes
2546 ac_cv_prog_gnu_ld=no
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2550 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2553 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2554 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2555 if test "${ac_cv_path_NM+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$NM"; then
2559 # Let the user override the test.
2562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2563 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2564 test -z "$ac_dir" && ac_dir=.
2565 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2566 # Check to see if the nm accepts a BSD-compat flag.
2567 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2568 # nm: unknown option "B" ignored
2569 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2570 ac_cv_path_NM="$ac_dir/nm -B"
2572 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2573 ac_cv_path_NM="$ac_dir/nm -p"
2576 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2577 continue # so that we can try to find one that supports BSD flags
2582 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2587 echo "$as_me:$LINENO: result: $NM" >&5
2588 echo "${ECHO_T}$NM" >&6
2590 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2591 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2593 if test "$LN_S" = "ln -s"; then
2594 echo "$as_me:$LINENO: result: yes" >&5
2595 echo "${ECHO_T}yes" >&6
2597 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2598 echo "${ECHO_T}no, using $LN_S" >&6
2604 NONE) lt_target="$host" ;;
2605 *) lt_target="$target" ;;
2608 # Check for any special flags to pass to ltconfig.
2610 # the following will cause an existing older ltconfig to fail, so
2611 # we ignore this at the expense of the cache file... Checking this
2612 # will just take longer ... bummer!
2613 #libtool_flags="--cache-file=$cache_file"
2615 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2616 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2617 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2618 test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc"
2619 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2622 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2623 if test "${enable_libtool_lock+set}" = set; then
2624 enableval="$enable_libtool_lock"
2627 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2628 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2630 # Some flags need to be propagated to the compiler or linker for good
2632 case "$lt_target" in
2634 # Find out which ABI we are using.
2635 echo '#line 2635 "configure"' > conftest.$ac_ext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; then
2641 case "`/usr/bin/file conftest.o`" in
2657 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2658 SAVE_CFLAGS="$CFLAGS"
2659 CFLAGS="$CFLAGS -belf"
2660 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2661 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2662 if test "${lt_cv_cc_needs_belf+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #line $LINENO "configure"
2667 #include "confdefs.h"
2669 #ifdef F77_DUMMY_MAIN
2673 int F77_DUMMY_MAIN() { return 1; }
2683 rm -f conftest.$ac_objext conftest$ac_exeext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685 (eval $ac_link) 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } &&
2689 { ac_try='test -s conftest$ac_exeext'
2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }; }; then
2695 lt_cv_cc_needs_belf=yes
2697 echo "$as_me: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 lt_cv_cc_needs_belf=no
2701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2703 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2704 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2705 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2706 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2707 CFLAGS="$SAVE_CFLAGS"
2715 # Save cache, so that ltconfig can load it
2716 cat >confcache <<\_ACEOF
2717 # This file is a shell script that caches the results of configure
2718 # tests run on this system so they can be shared between configure
2719 # scripts and configure runs, see configure's option --config-cache.
2720 # It is not useful on other systems. If it contains results you don't
2721 # want to keep, you may remove or edit it.
2723 # config.status only pays attention to the cache file if you give it
2724 # the --recheck option to rerun configure.
2726 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2732 # The following way of writing the cache mishandles newlines in values,
2733 # but we know of no workaround that is simple, portable, and efficient.
2734 # So, don't put newlines in cache variables' values.
2735 # Ultrix sh set writes to stderr and can't be redirected directly,
2736 # and sets the high bit in the cache file unless we assign to the vars.
2739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2741 # `set' does not quote correctly, so add quotes (double-quote
2742 # substitution turns \\\\ into \\, and sed turns \\ into \).
2745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2748 # `set' quotes correctly as required by POSIX, so do not add quotes.
2750 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2759 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2761 if cmp -s $cache_file confcache; then :; else
2762 if test -w $cache_file; then
2763 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2764 cat confcache >$cache_file
2766 echo "not updating unwritable cache $cache_file"
2771 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2772 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2773 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2774 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2775 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2776 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2777 $libtool_flags $ac_aux_dir/ltmain.sh $lt_target \
2778 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
2779 echo "$as_me: error: libtool configure failed" >&2;}
2780 { (exit 1); exit 1; }; }
2782 # Reload cache, that may have been modified by ltconfig
2783 if test -r "$cache_file"; then
2784 # Some versions of bash will fail to source /dev/null (special
2785 # files actually), so we avoid doing that.
2786 if test -f "$cache_file"; then
2787 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2788 echo "$as_me: loading cache $cache_file" >&6;}
2790 [\\/]* | ?:[\\/]* ) . $cache_file;;
2791 *) . ./$cache_file;;
2795 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2796 echo "$as_me: creating cache $cache_file" >&6;}
2801 # This can be used to rebuild libtool when needed
2802 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2804 # Always use our own libtool.
2805 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2807 # Redirect the config.log output again, so that the ltconfig log is not
2808 # clobbered by the next message.
2809 exec 5>>./config.log
2814 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
2819 echo ---------------------------------------------
2821 echo ---------------------------------------------
2826 ac_cpp='$CXXCPP $CPPFLAGS'
2827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2830 if test -n "$ac_tool_prefix"; then
2831 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_CXX+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 if test -n "$CXX"; then
2841 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 if test -n "$CXX"; then
2861 echo "$as_me:$LINENO: result: $CXX" >&5
2862 echo "${ECHO_T}$CXX" >&6
2864 echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2868 test -n "$CXX" && break
2871 if test -z "$CXX"; then
2873 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2875 # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 if test -n "$ac_ct_CXX"; then
2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CXX="$ac_prog"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2902 if test -n "$ac_ct_CXX"; then
2903 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2904 echo "${ECHO_T}$ac_ct_CXX" >&6
2906 echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 test -n "$ac_ct_CXX" && break
2912 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2918 # Provide some information about the compiler.
2919 echo "$as_me:$LINENO:" \
2920 "checking for C++ compiler version" >&5
2921 ac_compiler=`set X $ac_compile; echo $2`
2922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2923 (eval $ac_compiler --version </dev/null >&5) 2>&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }
2927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2928 (eval $ac_compiler -v </dev/null >&5) 2>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }
2932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2933 (eval $ac_compiler -V </dev/null >&5) 2>&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }
2938 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2939 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2940 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line $LINENO "configure"
2945 #include "confdefs.h"
2947 #ifdef F77_DUMMY_MAIN
2951 int F77_DUMMY_MAIN() { return 1; }
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2978 echo "$as_me: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2982 rm -f conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2992 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2994 if test "${ac_cv_prog_cxx_g+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 cat >conftest.$ac_ext <<_ACEOF
2998 #line $LINENO "configure"
2999 #include "confdefs.h"
3001 #ifdef F77_DUMMY_MAIN
3005 int F77_DUMMY_MAIN() { return 1; }
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3027 ac_cv_prog_cxx_g=yes
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3033 rm -f conftest.$ac_objext conftest.$ac_ext
3035 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3036 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3037 if test "$ac_test_CXXFLAGS" = set; then
3038 CXXFLAGS=$ac_save_CXXFLAGS
3039 elif test $ac_cv_prog_cxx_g = yes; then
3040 if test "$GXX" = yes; then
3046 if test "$GXX" = yes; then
3052 for ac_declaration in \
3054 '#include <stdlib.h>' \
3055 'extern "C" void std::exit (int) throw (); using std::exit;' \
3056 'extern "C" void std::exit (int); using std::exit;' \
3057 'extern "C" void exit (int) throw ();' \
3058 'extern "C" void exit (int);' \
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line $LINENO "configure"
3063 #include "confdefs.h"
3066 #ifdef F77_DUMMY_MAIN
3070 int F77_DUMMY_MAIN() { return 1; }
3080 rm -f conftest.$ac_objext
3081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082 (eval $ac_compile) 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3094 echo "$as_me: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3098 rm -f conftest.$ac_objext conftest.$ac_ext
3099 cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 #include "confdefs.h"
3103 #ifdef F77_DUMMY_MAIN
3107 int F77_DUMMY_MAIN() { return 1; }
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3131 echo "$as_me: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 rm -f conftest.$ac_objext conftest.$ac_ext
3137 if test -n "$ac_declaration"; then
3138 echo '#ifdef __cplusplus' >>confdefs.h
3139 echo $ac_declaration >>confdefs.h
3140 echo '#endif' >>confdefs.h
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 echo "$as_me:$LINENO: checking which flag for dependency information generation" >&5
3150 echo $ECHO_N "checking which flag for dependency information generation... $ECHO_C" >&6
3151 if test "${ac_cv_depend_flag+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 echo "conftest.o: conftest.c" > conftest.verif
3163 echo "int main() { return 0; }" > conftest.c
3166 for ac_C_DEPEND_FLAG in -xM -MM -M ; do
3168 rm -f conftest.d conftest.err
3169 ${CC-cc} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err
3170 if test -f conftest.u ; then
3171 mv conftest.u conftest.d
3175 diff -b -B conftest.d conftest.verif > conftest
3176 if test ! -s conftest ; then
3177 C_DEPEND_FLAG=${ac_C_DEPEND_FLAG}
3182 rm -f conftest.d conftest.err
3183 ${CC-cc} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err
3184 if test -f conftest.u ; then
3185 mv conftest.u conftest.d
3188 diff -b -B conftest.d conftest.verif > conftest
3189 if test ! -s conftest ; then
3190 C_DEPEND_FLAG=${C_DEPEND_FLAG}" -MG"
3194 if test "x${C_DEPEND_FLAG}" = "x" ; then
3195 echo "cannot determine flag (C language)"
3199 echo -n " C : " ${C_DEPEND_FLAG}
3202 ac_cpp='$CXXCPP $CPPFLAGS'
3203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3207 echo "conftest.o: conftest.cxx" > conftest.verif
3208 echo "int main() { return 0; }" > conftest.cxx
3211 for ac_CXX_DEPEND_FLAG in -xM -MM -M ; do
3213 rm -f conftest.d conftest.err
3214 ${CXX-c++} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err
3215 if test -f conftest.u ; then
3216 mv conftest.u conftest.d
3220 diff -b -B conftest.d conftest.verif > conftest
3221 if test ! -s conftest ; then
3222 CXX_DEPEND_FLAG=${ac_CXX_DEPEND_FLAG}
3227 rm -f conftest.d conftest.err
3228 ${CXX-c++} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err
3229 if test -f conftest.u ; then
3230 mv conftest.u conftest.d
3233 diff -b -B conftest.d conftest.verif > conftest
3234 if test ! -s conftest ; then
3235 CXX_DEPEND_FLAG=${CXX_DEPEND_FLAG}" -MG"
3240 if test "x${CXX_DEPEND_FLAG}" = "x" ; then
3241 echo "cannot determine flag (C++ language)"
3245 echo -n " C++ : " ${CXX_DEPEND_FLAG}
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 echo "$as_me:$LINENO: result: $ac_cv_depend_flag" >&5
3258 echo "${ECHO_T}$ac_cv_depend_flag" >&6
3260 # AC_CC_WARNINGS([ansi])
3264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 ac_check_lib_save_LIBS=$LIBS
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line $LINENO "configure"
3273 #include "confdefs.h"
3275 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3282 #ifdef F77_DUMMY_MAIN
3286 int F77_DUMMY_MAIN() { return 1; }
3296 rm -f conftest.$ac_objext conftest$ac_exeext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298 (eval $ac_link) 2>&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 ac_cv_lib_dl_dlopen=yes
3310 echo "$as_me: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 ac_cv_lib_dl_dlopen=no
3314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3315 LIBS=$ac_check_lib_save_LIBS
3317 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3319 if test $ac_cv_lib_dl_dlopen = yes; then
3320 cat >>confdefs.h <<_ACEOF
3321 #define HAVE_LIBDL 1
3330 echo "$as_me:$LINENO: checking for ceil in -lm" >&5
3331 echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
3332 if test "${ac_cv_lib_m_ceil+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_check_lib_save_LIBS=$LIBS
3337 cat >conftest.$ac_ext <<_ACEOF
3338 #line $LINENO "configure"
3339 #include "confdefs.h"
3341 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3348 #ifdef F77_DUMMY_MAIN
3352 int F77_DUMMY_MAIN() { return 1; }
3362 rm -f conftest.$ac_objext conftest$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 ac_cv_lib_m_ceil=yes
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3381 LIBS=$ac_check_lib_save_LIBS
3383 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
3384 echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
3385 if test $ac_cv_lib_m_ceil = yes; then
3386 cat >>confdefs.h <<_ACEOF
3397 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
3398 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
3399 if test "${ac_cv_cxx_namespaces+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 ac_cpp='$CXXCPP $CPPFLAGS'
3406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 #include "confdefs.h"
3413 namespace Outer { namespace Inner { int i = 0; }}
3414 #ifdef F77_DUMMY_MAIN
3418 int F77_DUMMY_MAIN() { return 1; }
3423 using namespace Outer::Inner; return i;
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 ac_cv_cxx_namespaces=yes
3442 echo "$as_me: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 ac_cv_cxx_namespaces=no
3446 rm -f conftest.$ac_objext conftest.$ac_ext
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
3456 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
3457 if test "$ac_cv_cxx_namespaces" = yes; then
3459 cat >>confdefs.h <<\_ACEOF
3460 #define HAVE_NAMESPACES
3465 echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
3466 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
3467 if test "${HAVE_SSTREAM+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_cpp='$CXXCPP $CPPFLAGS'
3475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3479 cat >conftest.$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3481 #include "confdefs.h"
3483 #ifdef HAVE_NAMESPACES
3484 using namespace std;
3486 #ifdef F77_DUMMY_MAIN
3490 int F77_DUMMY_MAIN() { return 1; }
3495 stringstream message; message << "Hello"; return 0;
3500 rm -f conftest.$ac_objext
3501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3502 (eval $ac_compile) 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3514 echo "$as_me: failed program was:" >&5
3515 cat conftest.$ac_ext >&5
3518 rm -f conftest.$ac_objext conftest.$ac_ext
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 echo "$as_me:$LINENO: result: $HAVE_SSTREAM" >&5
3528 echo "${ECHO_T}$HAVE_SSTREAM" >&6
3533 echo ---------------------------------------------
3535 echo ---------------------------------------------
3539 ac_cpp='$CXXCPP $CPPFLAGS'
3540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3543 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3544 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3545 if test -z "$CXXCPP"; then
3546 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 # Double quotes because CXXCPP needs to be expanded
3550 for CXXCPP in "$CXX -E" "/lib/cpp"
3553 for ac_cxx_preproc_warn_flag in '' yes
3555 # Use a header file that comes with gcc, so configuring glibc
3556 # with a fresh cross-compiler works.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.$ac_ext <<_ACEOF
3560 #line $LINENO "configure"
3561 #include "confdefs.h"
3565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3568 egrep -v '^ *\+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_cxx_preproc_warn_flag
3581 if test -z "$ac_cpp_err"; then
3584 echo "$as_me: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3589 rm -f conftest.err conftest.$ac_ext
3591 # OK, works on sane cases. Now check whether non-existent headers
3592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 #include "confdefs.h"
3596 #include <ac_nonexistent.h>
3598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3601 egrep -v '^ *\+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_cxx_preproc_warn_flag
3614 if test -z "$ac_cpp_err"; then
3615 # Broken: success on invalid input.
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 # Passes both tests.
3624 rm -f conftest.err conftest.$ac_ext
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3634 ac_cv_prog_CXXCPP=$CXXCPP
3637 CXXCPP=$ac_cv_prog_CXXCPP
3639 ac_cv_prog_CXXCPP=$CXXCPP
3641 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3642 echo "${ECHO_T}$CXXCPP" >&6
3644 for ac_cxx_preproc_warn_flag in '' yes
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 #include "confdefs.h"
3656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3659 egrep -v '^ *\+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_cxx_preproc_warn_flag
3672 if test -z "$ac_cpp_err"; then
3675 echo "$as_me: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3677 # Broken: fails on valid input.
3680 rm -f conftest.err conftest.$ac_ext
3682 # OK, works on sane cases. Now check whether non-existent headers
3683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 #line $LINENO "configure"
3686 #include "confdefs.h"
3687 #include <ac_nonexistent.h>
3689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3692 egrep -v '^ *\+' conftest.er1 >conftest.err
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } >/dev/null; then
3697 if test -s conftest.err; then
3698 ac_cpp_err=$ac_cxx_preproc_warn_flag
3705 if test -z "$ac_cpp_err"; then
3706 # Broken: success on invalid input.
3709 echo "$as_me: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 # Passes both tests.
3715 rm -f conftest.err conftest.$ac_ext
3718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3719 rm -f conftest.err conftest.$ac_ext
3720 if $ac_preproc_ok; then
3723 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3724 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3725 { (exit 1); exit 1; }; }
3729 ac_cpp='$CXXCPP $CPPFLAGS'
3730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3735 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3737 if test "${ac_cv_header_stdc+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 cat >conftest.$ac_ext <<_ACEOF
3741 #line $LINENO "configure"
3742 #include "confdefs.h"
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752 egrep -v '^ *\+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev/null; then
3757 if test -s conftest.err; then
3758 ac_cpp_err=$ac_cxx_preproc_warn_flag
3765 if test -z "$ac_cpp_err"; then
3766 ac_cv_header_stdc=yes
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 ac_cv_header_stdc=no
3772 rm -f conftest.err conftest.$ac_ext
3774 if test $ac_cv_header_stdc = yes; then
3775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3776 cat >conftest.$ac_ext <<_ACEOF
3777 #line $LINENO "configure"
3778 #include "confdefs.h"
3782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 egrep "memchr" >/dev/null 2>&1; then
3786 ac_cv_header_stdc=no
3792 if test $ac_cv_header_stdc = yes; then
3793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3794 cat >conftest.$ac_ext <<_ACEOF
3795 #line $LINENO "configure"
3796 #include "confdefs.h"
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "free" >/dev/null 2>&1; then
3804 ac_cv_header_stdc=no
3810 if test $ac_cv_header_stdc = yes; then
3811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3812 if test "$cross_compiling" = yes; then
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3819 #if ((' ' & 0x0FF) == 0x020)
3820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3823 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3824 || ('j' <= (c) && (c) <= 'r') \
3825 || ('s' <= (c) && (c) <= 'z'))
3826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3834 for (i = 0; i < 256; i++)
3835 if (XOR (islower (i), ISLOWER (i))
3836 || toupper (i) != TOUPPER (i))
3841 rm -f conftest$ac_exeext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3843 (eval $ac_link) 2>&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3854 echo "$as_me: program exited with status $ac_status" >&5
3855 echo "$as_me: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3858 ac_cv_header_stdc=no
3860 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3864 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3865 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3866 if test $ac_cv_header_stdc = yes; then
3868 cat >>confdefs.h <<\_ACEOF
3869 #define STDC_HEADERS 1
3874 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3885 inttypes.h stdint.h unistd.h
3887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3888 echo "$as_me:$LINENO: checking for $ac_header" >&5
3889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 cat >conftest.$ac_ext <<_ACEOF
3894 #line $LINENO "configure"
3895 #include "confdefs.h"
3896 $ac_includes_default
3898 #include <$ac_header>
3900 rm -f conftest.$ac_objext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3902 (eval $ac_compile) 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 eval "$as_ac_Header=yes"
3914 echo "$as_me: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 eval "$as_ac_Header=no"
3918 rm -f conftest.$ac_objext conftest.$ac_ext
3920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3923 cat >>confdefs.h <<_ACEOF
3924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3934 { echo "$as_me:$LINENO: checking for BOOST Library..." >&5
3935 echo "$as_me: checking for BOOST Library..." >&6;}
3940 ac_cpp='$CXXCPP $CPPFLAGS'
3941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3950 if test -z ${BOOSTDIR}; then
3951 { echo "$as_me:$LINENO: WARNING: You must provide BOOSTDIR variable" >&5
3952 echo "$as_me: WARNING: You must provide BOOSTDIR variable" >&2;}
3954 echo "$as_me:$LINENO: result: \$BOOSTDIR = ${BOOSTDIR}" >&5
3955 echo "${ECHO_T}\$BOOSTDIR = ${BOOSTDIR}" >&6
3956 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp header file..." >&5
3957 echo "$as_me: checking for boost/shared_ptr.hpp header file..." >&6;}
3958 CPPFLAGS_old="${CPPFLAGS}"
3959 BOOST_CPPFLAGS="-ftemplate-depth-32 -I${BOOSTDIR}"
3960 CPPFLAGS="${CPPFLAGS} ${BOOST_CPPFLAGS}"
3962 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
3963 echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
3964 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
3965 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
3969 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
3971 # Is the header compilable?
3972 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
3973 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6
3974 cat >conftest.$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3977 $ac_includes_default
3978 #include <boost/shared_ptr.hpp>
3980 rm -f conftest.$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3992 ac_header_compiler=yes
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3996 ac_header_compiler=no
3998 rm -f conftest.$ac_objext conftest.$ac_ext
3999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4000 echo "${ECHO_T}$ac_header_compiler" >&6
4002 # Is the header present?
4003 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
4004 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6
4005 cat >conftest.$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4007 #include "confdefs.h"
4008 #include <boost/shared_ptr.hpp>
4010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 egrep -v '^ *\+' conftest.er1 >conftest.err
4015 cat conftest.err >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); } >/dev/null; then
4018 if test -s conftest.err; then
4019 ac_cpp_err=$ac_cxx_preproc_warn_flag
4026 if test -z "$ac_cpp_err"; then
4027 ac_header_preproc=yes
4029 echo "$as_me: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4031 ac_header_preproc=no
4033 rm -f conftest.err conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035 echo "${ECHO_T}$ac_header_preproc" >&6
4037 # So? What about this header?
4038 case $ac_header_compiler:$ac_header_preproc in
4040 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
4041 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
4043 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;};;
4045 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
4046 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
4048 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
4050 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;};;
4052 echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
4053 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
4054 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
4059 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
4060 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
4063 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
4071 CPPFLAGS="${CPPFLAGS_old}"
4076 ac_cpp='$CPP $CPPFLAGS'
4077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4091 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4092 # On Suns, sometimes $CPP names a directory.
4093 if test -n "$CPP" && test -d "$CPP"; then
4096 if test -z "$CPP"; then
4097 if test "${ac_cv_prog_CPP+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 # Double quotes because CPP needs to be expanded
4101 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4104 for ac_c_preproc_warn_flag in '' yes
4106 # Use a header file that comes with gcc, so configuring glibc
4107 # with a fresh cross-compiler works.
4108 # On the NeXT, cc -E runs the code through the compiler's parser,
4109 # not just through cpp. "Syntax error" is here to catch this case.
4110 cat >conftest.$ac_ext <<_ACEOF
4111 #line $LINENO "configure"
4112 #include "confdefs.h"
4116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4119 egrep -v '^ *\+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } >/dev/null; then
4124 if test -s conftest.err; then
4125 ac_cpp_err=$ac_c_preproc_warn_flag
4132 if test -z "$ac_cpp_err"; then
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4137 # Broken: fails on valid input.
4140 rm -f conftest.err conftest.$ac_ext
4142 # OK, works on sane cases. Now check whether non-existent headers
4143 # can be detected and how.
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4147 #include <ac_nonexistent.h>
4149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4152 egrep -v '^ *\+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } >/dev/null; then
4157 if test -s conftest.err; then
4158 ac_cpp_err=$ac_c_preproc_warn_flag
4165 if test -z "$ac_cpp_err"; then
4166 # Broken: success on invalid input.
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 # Passes both tests.
4175 rm -f conftest.err conftest.$ac_ext
4178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4179 rm -f conftest.err conftest.$ac_ext
4180 if $ac_preproc_ok; then
4192 echo "$as_me:$LINENO: result: $CPP" >&5
4193 echo "${ECHO_T}$CPP" >&6
4195 for ac_c_preproc_warn_flag in '' yes
4197 # Use a header file that comes with gcc, so configuring glibc
4198 # with a fresh cross-compiler works.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4202 #line $LINENO "configure"
4203 #include "confdefs.h"
4207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4210 egrep -v '^ *\+' conftest.er1 >conftest.err
4212 cat conftest.err >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); } >/dev/null; then
4215 if test -s conftest.err; then
4216 ac_cpp_err=$ac_c_preproc_warn_flag
4223 if test -z "$ac_cpp_err"; then
4226 echo "$as_me: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether non-existent headers
4234 # can be detected and how.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 #include "confdefs.h"
4238 #include <ac_nonexistent.h>
4240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4243 egrep -v '^ *\+' conftest.er1 >conftest.err
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } >/dev/null; then
4248 if test -s conftest.err; then
4249 ac_cpp_err=$ac_c_preproc_warn_flag
4256 if test -z "$ac_cpp_err"; then
4257 # Broken: success on invalid input.
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 # Passes both tests.
4266 rm -f conftest.err conftest.$ac_ext
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4274 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4275 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4276 { (exit 1); exit 1; }; }
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 # Check whether --with-mpich or --without-mpich was given.
4291 if test "${with_mpich+set}" = set; then
4292 withval="$with_mpich"
4300 if test "$WITHMPICH" = yes; then
4303 echo ---------------------------------------------
4305 echo ---------------------------------------------
4309 if test "$MPICH_HOME"; then
4310 MPICH_INCLUDES="-I$MPICH_HOME/include"
4311 MPICH_LIBS="-L$MPICH_HOME/lib"
4314 CPPFLAGS_old="$CPPFLAGS"
4315 CPPFLAGS="$MPICH_INCLUDES $CPPFLAGS"
4316 if test "${ac_cv_header_mpi_h+set}" = set; then
4317 echo "$as_me:$LINENO: checking for mpi.h" >&5
4318 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
4319 if test "${ac_cv_header_mpi_h+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 echo "$as_me:$LINENO: result: $ac_cv_header_mpi_h" >&5
4323 echo "${ECHO_T}$ac_cv_header_mpi_h" >&6
4325 # Is the header compilable?
4326 echo "$as_me:$LINENO: checking mpi.h usability" >&5
4327 echo $ECHO_N "checking mpi.h usability... $ECHO_C" >&6
4328 cat >conftest.$ac_ext <<_ACEOF
4329 #line $LINENO "configure"
4330 #include "confdefs.h"
4331 $ac_includes_default
4334 rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336 (eval $ac_compile) 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_header_compiler=yes
4348 echo "$as_me: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 ac_header_compiler=no
4352 rm -f conftest.$ac_objext conftest.$ac_ext
4353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4354 echo "${ECHO_T}$ac_header_compiler" >&6
4356 # Is the header present?
4357 echo "$as_me:$LINENO: checking mpi.h presence" >&5
4358 echo $ECHO_N "checking mpi.h presence... $ECHO_C" >&6
4359 cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 #include "confdefs.h"
4364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4367 egrep -v '^ *\+' conftest.er1 >conftest.err
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev/null; then
4372 if test -s conftest.err; then
4373 ac_cpp_err=$ac_c_preproc_warn_flag
4380 if test -z "$ac_cpp_err"; then
4381 ac_header_preproc=yes
4383 echo "$as_me: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 ac_header_preproc=no
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4391 # So? What about this header?
4392 case $ac_header_compiler:$ac_header_preproc in
4394 { echo "$as_me:$LINENO: WARNING: mpi.h: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: mpi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: mpi.h: proceeding with the preprocessor's result" >&5
4397 echo "$as_me: WARNING: mpi.h: proceeding with the preprocessor's result" >&2;};;
4399 { echo "$as_me:$LINENO: WARNING: mpi.h: present but cannot be compiled" >&5
4400 echo "$as_me: WARNING: mpi.h: present but cannot be compiled" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: mpi.h: check for missing prerequisite headers?" >&5
4402 echo "$as_me: WARNING: mpi.h: check for missing prerequisite headers?" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: mpi.h: proceeding with the preprocessor's result" >&5
4404 echo "$as_me: WARNING: mpi.h: proceeding with the preprocessor's result" >&2;};;
4406 echo "$as_me:$LINENO: checking for mpi.h" >&5
4407 echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
4408 if test "${ac_cv_header_mpi_h+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_cv_header_mpi_h=$ac_header_preproc
4413 echo "$as_me:$LINENO: result: $ac_cv_header_mpi_h" >&5
4414 echo "${ECHO_T}$ac_cv_header_mpi_h" >&6
4417 if test $ac_cv_header_mpi_h = yes; then
4424 CPPFLAGS="$CPPFLAGS_old"
4426 if test "$WITHMPICH" = "yes";then
4427 LDFLAGS_old="$LDFLAGS"
4428 LDFLAGS="$MPICH_LIBS $LDFLAGS"
4429 echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
4430 echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
4431 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lmpich $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 #include "confdefs.h"
4440 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4447 #ifdef F77_DUMMY_MAIN
4451 int F77_DUMMY_MAIN() { return 1; }
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -s conftest$ac_exeext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_lib_mpich_MPI_Init=yes
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 ac_cv_lib_mpich_MPI_Init=no
4479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480 LIBS=$ac_check_lib_save_LIBS
4482 echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
4483 echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
4484 if test $ac_cv_lib_mpich_MPI_Init = yes; then
4485 echo "$as_me:$LINENO: checking for PMPI_Init in -lpmpich" >&5
4486 echo $ECHO_N "checking for PMPI_Init in -lpmpich... $ECHO_C" >&6
4487 if test "${ac_cv_lib_pmpich_PMPI_Init+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 ac_check_lib_save_LIBS=$LIBS
4491 LIBS="-lpmpich $LIBS"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line $LINENO "configure"
4494 #include "confdefs.h"
4496 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4503 #ifdef F77_DUMMY_MAIN
4507 int F77_DUMMY_MAIN() { return 1; }
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_lib_pmpich_PMPI_Init=yes
4531 echo "$as_me: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 ac_cv_lib_pmpich_PMPI_Init=no
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 LIBS=$ac_check_lib_save_LIBS
4538 echo "$as_me:$LINENO: result: $ac_cv_lib_pmpich_PMPI_Init" >&5
4539 echo "${ECHO_T}$ac_cv_lib_pmpich_PMPI_Init" >&6
4540 if test $ac_cv_lib_pmpich_PMPI_Init = yes; then
4550 LDFLAGS="$LDFLAGS_old"
4553 MPICH_LIBS="$MPICH_LIBS -lpmpich -lmpich"
4563 echo ---------------------------------------------
4564 echo testing LEX \& YACC
4565 echo ---------------------------------------------
4569 for ac_prog in 'bison -y' byacc
4571 # Extract the first word of "$ac_prog", so it can be a program name with args.
4572 set dummy $ac_prog; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_prog_YACC+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test -n "$YACC"; then
4579 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_prog_YACC="$ac_prog"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 YACC=$ac_cv_prog_YACC
4598 if test -n "$YACC"; then
4599 echo "$as_me:$LINENO: result: $YACC" >&5
4600 echo "${ECHO_T}$YACC" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4606 test -n "$YACC" && break
4608 test -n "$YACC" || YACC="yacc"
4610 for ac_prog in flex lex
4612 # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_LEX+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$LEX"; then
4620 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_LEX="$ac_prog"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 if test -n "$LEX"; then
4640 echo "$as_me:$LINENO: result: $LEX" >&5
4641 echo "${ECHO_T}$LEX" >&6
4643 echo "$as_me:$LINENO: result: no" >&5
4644 echo "${ECHO_T}no" >&6
4647 test -n "$LEX" && break
4649 test -n "$LEX" || LEX=":"
4651 if test -z "$LEXLIB"
4653 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4654 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4655 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 ac_check_lib_save_LIBS=$LIBS
4660 cat >conftest.$ac_ext <<_ACEOF
4661 #line $LINENO "configure"
4662 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4671 #ifdef F77_DUMMY_MAIN
4675 int F77_DUMMY_MAIN() { return 1; }
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -s conftest$ac_exeext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 ac_cv_lib_fl_yywrap=yes
4699 echo "$as_me: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 ac_cv_lib_fl_yywrap=no
4703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4704 LIBS=$ac_check_lib_save_LIBS
4706 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4707 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4708 if test $ac_cv_lib_fl_yywrap = yes; then
4711 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4712 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4713 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 ac_check_lib_save_LIBS=$LIBS
4718 cat >conftest.$ac_ext <<_ACEOF
4719 #line $LINENO "configure"
4720 #include "confdefs.h"
4722 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4729 #ifdef F77_DUMMY_MAIN
4733 int F77_DUMMY_MAIN() { return 1; }
4743 rm -f conftest.$ac_objext conftest$ac_exeext
4744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4745 (eval $ac_link) 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try='test -s conftest$ac_exeext'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; }; then
4755 ac_cv_lib_l_yywrap=yes
4757 echo "$as_me: failed program was:" >&5
4758 cat conftest.$ac_ext >&5
4759 ac_cv_lib_l_yywrap=no
4761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4764 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4765 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4766 if test $ac_cv_lib_l_yywrap = yes; then
4774 if test "x$LEX" != "x:"; then
4775 echo "$as_me:$LINENO: checking lex output file root" >&5
4776 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4777 if test "${ac_cv_prog_lex_root+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 # The minimal lex program is just a single line: %%. But some broken lexes
4781 # (Solaris, I think it was) want two %% lines, so accommodate them.
4782 cat >conftest.l <<_ACEOF
4786 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4787 (eval $LEX conftest.l) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }
4791 if test -f lex.yy.c; then
4792 ac_cv_prog_lex_root=lex.yy
4793 elif test -f lexyy.c; then
4794 ac_cv_prog_lex_root=lexyy
4796 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4797 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4798 { (exit 1); exit 1; }; }
4801 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4802 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4804 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4806 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4807 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4808 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 # POSIX says lex can declare yytext either as a pointer or an array; the
4812 # default is implementation-dependent. Figure out which it is, since
4813 # not all implementations provide the %pointer and %array declarations.
4814 ac_cv_prog_lex_yytext_pointer=no
4815 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4817 LIBS="$LIBS $LEXLIB"
4818 cat >conftest.$ac_ext <<_ACEOF
4819 `cat $LEX_OUTPUT_ROOT.c`
4821 rm -f conftest.$ac_objext conftest$ac_exeext
4822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4823 (eval $ac_link) 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
4827 { ac_try='test -s conftest$ac_exeext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_cv_prog_lex_yytext_pointer=yes
4835 echo "$as_me: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4840 rm -f "${LEX_OUTPUT_ROOT}.c"
4843 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4844 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4845 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4847 cat >>confdefs.h <<\_ACEOF
4848 #define YYTEXT_POINTER 1
4857 echo ---------------------------------------------
4859 echo ---------------------------------------------
4864 # Check whether --with-python or --without-python was given.
4865 if test "${with_python+set}" = set; then
4866 withval="$with_python"
4867 PYTHON="$withval/bin/python"
4868 echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
4869 echo "${ECHO_T}\"select python distribution in $withval\"" >&6
4873 # Extract the first word of "python", so it can be a program name with args.
4874 set dummy python; ac_word=$2
4875 echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877 if test "${ac_cv_path_PYTHON+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 PYTHON=$ac_cv_path_PYTHON
4904 if test -n "$PYTHON"; then
4905 echo "$as_me:$LINENO: result: $PYTHON" >&5
4906 echo "${ECHO_T}$PYTHON" >&6
4908 echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4915 { echo "$as_me:$LINENO: checking local Python configuration..." >&5
4916 echo "$as_me: checking local Python configuration..." >&6;}
4917 PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
4918 PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
4919 PYTHONHOME=$PYTHON_PREFIX
4924 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
4927 PY_MAKEFILE=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/Makefile
4928 if test ! -f "$PY_MAKEFILE"; then
4929 { { echo "$as_me:$LINENO: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
4930 *** missing the development portion of the python installation" >&5
4931 echo "$as_me: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
4932 *** missing the development portion of the python installation" >&2;}
4933 { (exit 1); exit 1; }; }
4939 PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
4940 PYTHON_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
4941 PYTHON_LIB=$PYTHON_LIBS
4942 PYTHON_LIBA=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
4946 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
4950 # Check whether --with-python-site or --without-python-site was given.
4951 if test "${with_python_site+set}" = set; then
4952 withval="$with_python_site"
4955 PYTHON_SITE="$withval"
4956 python_site_given=yes
4958 PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
4959 python_site_given=no
4963 PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
4969 # Check whether --with-python-site-exec or --without-python-site-exec was given.
4970 if test "${with_python_site_exec+set}" = set; then
4971 withval="$with_python_site_exec"
4972 PYTHON_SITE_EXEC="$withval"
4974 if test "$python_site_given" = yes; then
4975 PYTHON_SITE_EXEC=$PYTHON_SITE
4977 PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
4981 PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
4985 pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/
4988 echo "$as_me:$LINENO: checking if we need libdb" >&5
4989 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6
4990 PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
4991 if test "x$PY_NEEDOPENDB" != "x"; then
4992 PYTHON_LIBS="$PYTHON_LIBS -ldb"
4993 echo "$as_me:$LINENO: result: yes" >&5
4994 echo "${ECHO_T}yes" >&6
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
5000 echo "$as_me:$LINENO: checking if we need libdl" >&5
5001 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6
5002 PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
5003 if test "x$PY_NEEDOPENDL" != "x"; then
5004 PYTHON_LIBS="$PYTHON_LIBS -ldl"
5005 echo "$as_me:$LINENO: result: yes" >&5
5006 echo "${ECHO_T}yes" >&6
5008 echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6
5012 echo "$as_me:$LINENO: checking if we need libutil" >&5
5013 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6
5014 PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
5015 if test "x$PY_NEEDOPENPTY" != "x"; then
5016 PYTHON_LIBS="$PYTHON_LIBS -lutil"
5017 echo "$as_me:$LINENO: result: yes" >&5
5018 echo "${ECHO_T}yes" >&6
5020 echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6
5024 echo "$as_me:$LINENO: checking if we need tcltk" >&5
5025 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6
5026 PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
5027 if test "x$PY_NEEDTCLTK" != "x"; then
5028 PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
5029 echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6
5032 echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5037 echo "$as_me:$LINENO: result: looks good" >&5
5038 echo "${ECHO_T}looks good" >&6
5043 echo ---------------------------------------------
5045 echo ---------------------------------------------
5053 # Check whether --with-swig or --without-swig was given.
5054 if test "${with_swig+set}" = set; then
5055 withval="$with_swig"
5057 echo "$as_me:$LINENO: result: \"select $withval as swig executable\"" >&5
5058 echo "${ECHO_T}\"select $withval as swig executable\"" >&6
5062 # Extract the first word of "swig", so it can be a program name with args.
5063 set dummy swig; ac_word=$2
5064 echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5066 if test "${ac_cv_path_SWIG+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 SWIG=$ac_cv_path_SWIG
5093 if test -n "$SWIG"; then
5094 echo "$as_me:$LINENO: result: $SWIG" >&5
5095 echo "${ECHO_T}$SWIG" >&6
5097 echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5104 if test "x$SWIG" = "x"
5107 echo "$as_me:$LINENO: result: swig not in PATH variable" >&5
5108 echo "${ECHO_T}swig not in PATH variable" >&6
5111 if test "x$swig_ok" = "xyes"
5113 echo "$as_me:$LINENO: checking python wrapper generation with swig" >&5
5114 echo $ECHO_N "checking python wrapper generation with swig... $ECHO_C" >&6
5115 cat > conftest.h << EOF
5119 $SWIG -module conftest -python conftest.h >/dev/null 2>&1
5120 if test -f conftest_wrap.c
5122 SWIG_FLAGS="-c++ -python -shadow"
5127 echo "$as_me:$LINENO: result: $swig_ok" >&5
5128 echo "${ECHO_T}$swig_ok" >&6
5134 echo "$as_me:$LINENO: result: for swig: $swig_ok" >&5
5135 echo "${ECHO_T}for swig: $swig_ok" >&6
5140 echo ---------------------------------------------
5141 echo testing threads
5142 echo ---------------------------------------------
5145 echo "$as_me:$LINENO: checking target system type" >&5
5146 echo $ECHO_N "checking target system type... $ECHO_C" >&6
5147 if test "${ac_cv_target+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 ac_cv_target_alias=$target_alias
5151 test "x$ac_cv_target_alias" = "x" &&
5152 ac_cv_target_alias=$ac_cv_host_alias
5153 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
5154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
5155 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
5156 { (exit 1); exit 1; }; }
5159 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5160 echo "${ECHO_T}$ac_cv_target" >&6
5161 target=$ac_cv_target
5162 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5163 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5164 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5167 # The aliases save the names the user supplied, while $host etc.
5168 # will get canonicalized.
5169 test -n "$target_alias" &&
5170 test "$program_prefix$program_suffix$program_transform_name" = \
5172 program_prefix=${target_alias}-
5174 if test "${ac_cv_header_pthread_h+set}" = set; then
5175 echo "$as_me:$LINENO: checking for pthread.h" >&5
5176 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5177 if test "${ac_cv_header_pthread_h+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5181 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5183 # Is the header compilable?
5184 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5185 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5186 cat >conftest.$ac_ext <<_ACEOF
5187 #line $LINENO "configure"
5188 #include "confdefs.h"
5189 $ac_includes_default
5190 #include <pthread.h>
5192 rm -f conftest.$ac_objext
5193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5194 (eval $ac_compile) 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
5204 ac_header_compiler=yes
5206 echo "$as_me: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5208 ac_header_compiler=no
5210 rm -f conftest.$ac_objext conftest.$ac_ext
5211 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5212 echo "${ECHO_T}$ac_header_compiler" >&6
5214 # Is the header present?
5215 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5216 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 #include "confdefs.h"
5220 #include <pthread.h>
5222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 egrep -v '^ *\+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev/null; then
5230 if test -s conftest.err; then
5231 ac_cpp_err=$ac_c_preproc_warn_flag
5238 if test -z "$ac_cpp_err"; then
5239 ac_header_preproc=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_header_preproc=no
5245 rm -f conftest.err conftest.$ac_ext
5246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5247 echo "${ECHO_T}$ac_header_preproc" >&6
5249 # So? What about this header?
5250 case $ac_header_compiler:$ac_header_preproc in
5252 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5253 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5254 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5255 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
5257 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5258 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5260 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5262 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
5264 echo "$as_me:$LINENO: checking for pthread.h" >&5
5265 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5266 if test "${ac_cv_header_pthread_h+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_cv_header_pthread_h=$ac_header_preproc
5271 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5272 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5275 if test $ac_cv_header_pthread_h = yes; then
5276 cat >>confdefs.h <<\_ACEOF
5277 #define HAVE_PTHREAD_H 1
5283 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
5284 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
5285 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-lposix4 $LIBS"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5292 #include "confdefs.h"
5294 /* Override any gcc2 internal prototype to avoid an error. */
5298 /* We use char because int might match the return type of a gcc2
5299 builtin and then its argument prototype would still apply. */
5301 #ifdef F77_DUMMY_MAIN
5305 int F77_DUMMY_MAIN() { return 1; }
5315 rm -f conftest.$ac_objext conftest$ac_exeext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5317 (eval $ac_link) 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
5321 { ac_try='test -s conftest$ac_exeext'
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; }; then
5327 ac_cv_lib_posix4_nanosleep=yes
5329 echo "$as_me: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 ac_cv_lib_posix4_nanosleep=no
5333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5336 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
5337 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
5338 if test $ac_cv_lib_posix4_nanosleep = yes; then
5339 LIBS_PTHREADS="-lposix4"
5344 echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
5345 echo $ECHO_N "checking for pthread_mutex_lock in -lpthread... $ECHO_C" >&6
5346 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 ac_check_lib_save_LIBS=$LIBS
5350 LIBS="-lpthread $LIBS"
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 #include "confdefs.h"
5355 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5361 char pthread_mutex_lock ();
5362 #ifdef F77_DUMMY_MAIN
5366 int F77_DUMMY_MAIN() { return 1; }
5371 pthread_mutex_lock ();
5376 rm -f conftest.$ac_objext conftest$ac_exeext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } &&
5382 { ac_try='test -s conftest$ac_exeext'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 ac_cv_lib_pthread_pthread_mutex_lock=yes
5390 echo "$as_me: failed program was:" >&5
5391 cat conftest.$ac_ext >&5
5392 ac_cv_lib_pthread_pthread_mutex_lock=no
5394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5395 LIBS=$ac_check_lib_save_LIBS
5397 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
5398 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_lock" >&6
5399 if test $ac_cv_lib_pthread_pthread_mutex_lock = yes; then
5400 LIBS_PTHREADS="-lpthread $LIBS_PTHREADS"
5403 echo "$as_me:$LINENO: checking parameters for using pthreads" >&5
5404 echo $ECHO_N "checking parameters for using pthreads... $ECHO_C" >&6
5407 CFLAGS_PTHREADS="-pthread"
5408 CXXFLAGS_PTHREADS="-pthread"
5413 echo "$as_me:$LINENO: result: \"flags: $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&5
5414 echo "${ECHO_T}\"flags: $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&6
5420 if test -z "$enable_pthreads_done"
5422 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5423 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5424 LIBS="$LIBS $LIBS_PTHREADS"
5426 enable_pthreads_done=yes
5430 echo ---------------------------------------------
5431 echo testing omniORB
5432 echo ---------------------------------------------
5437 { echo "$as_me:$LINENO: checking for omniORB..." >&5
5438 echo "$as_me: checking for omniORB..." >&6;}
5441 if test "x$PYTHON" = "x"
5445 # Check whether --with-python or --without-python was given.
5446 if test "${with_python+set}" = set; then
5447 withval="$with_python"
5448 PYTHON="$withval/bin/python"
5449 echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
5450 echo "${ECHO_T}\"select python distribution in $withval\"" >&6
5454 # Extract the first word of "python", so it can be a program name with args.
5455 set dummy python; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_PYTHON+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 PYTHON=$ac_cv_path_PYTHON
5485 if test -n "$PYTHON"; then
5486 echo "$as_me:$LINENO: result: $PYTHON" >&5
5487 echo "${ECHO_T}$PYTHON" >&6
5489 echo "$as_me:$LINENO: result: no" >&5
5490 echo "${ECHO_T}no" >&6
5496 { echo "$as_me:$LINENO: checking local Python configuration..." >&5
5497 echo "$as_me: checking local Python configuration..." >&6;}
5498 PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5499 PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5500 PYTHONHOME=$PYTHON_PREFIX
5505 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
5508 PY_MAKEFILE=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/Makefile
5509 if test ! -f "$PY_MAKEFILE"; then
5510 { { echo "$as_me:$LINENO: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
5511 *** missing the development portion of the python installation" >&5
5512 echo "$as_me: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
5513 *** missing the development portion of the python installation" >&2;}
5514 { (exit 1); exit 1; }; }
5520 PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
5521 PYTHON_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
5522 PYTHON_LIB=$PYTHON_LIBS
5523 PYTHON_LIBA=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
5527 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
5531 # Check whether --with-python-site or --without-python-site was given.
5532 if test "${with_python_site+set}" = set; then
5533 withval="$with_python_site"
5536 PYTHON_SITE="$withval"
5537 python_site_given=yes
5539 PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
5540 python_site_given=no
5544 PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
5550 # Check whether --with-python-site-exec or --without-python-site-exec was given.
5551 if test "${with_python_site_exec+set}" = set; then
5552 withval="$with_python_site_exec"
5553 PYTHON_SITE_EXEC="$withval"
5555 if test "$python_site_given" = yes; then
5556 PYTHON_SITE_EXEC=$PYTHON_SITE
5558 PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
5562 PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
5566 pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/
5569 echo "$as_me:$LINENO: checking if we need libdb" >&5
5570 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6
5571 PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
5572 if test "x$PY_NEEDOPENDB" != "x"; then
5573 PYTHON_LIBS="$PYTHON_LIBS -ldb"
5574 echo "$as_me:$LINENO: result: yes" >&5
5575 echo "${ECHO_T}yes" >&6
5577 echo "$as_me:$LINENO: result: no" >&5
5578 echo "${ECHO_T}no" >&6
5581 echo "$as_me:$LINENO: checking if we need libdl" >&5
5582 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6
5583 PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
5584 if test "x$PY_NEEDOPENDL" != "x"; then
5585 PYTHON_LIBS="$PYTHON_LIBS -ldl"
5586 echo "$as_me:$LINENO: result: yes" >&5
5587 echo "${ECHO_T}yes" >&6
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5593 echo "$as_me:$LINENO: checking if we need libutil" >&5
5594 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6
5595 PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
5596 if test "x$PY_NEEDOPENPTY" != "x"; then
5597 PYTHON_LIBS="$PYTHON_LIBS -lutil"
5598 echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5605 echo "$as_me:$LINENO: checking if we need tcltk" >&5
5606 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6
5607 PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
5608 if test "x$PY_NEEDTCLTK" != "x"; then
5609 PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
5610 echo "$as_me:$LINENO: result: yes" >&5
5611 echo "${ECHO_T}yes" >&6
5613 echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5618 echo "$as_me:$LINENO: result: looks good" >&5
5619 echo "${ECHO_T}looks good" >&6
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5631 # Extract the first word of "omniidl", so it can be a program name with args.
5632 set dummy omniidl; ac_word=$2
5633 echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635 if test "${ac_cv_path_OMNIORB_IDL+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 case $OMNIORB_IDL in
5640 ac_cv_path_OMNIORB_IDL="$OMNIORB_IDL" # Let the user override the test with a path.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_path_OMNIORB_IDL="$as_dir/$ac_word$ac_exec_ext"
5651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 OMNIORB_IDL=$ac_cv_path_OMNIORB_IDL
5662 if test -n "$OMNIORB_IDL"; then
5663 echo "$as_me:$LINENO: result: $OMNIORB_IDL" >&5
5664 echo "${ECHO_T}$OMNIORB_IDL" >&6
5666 echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6
5670 if test "xOMNIORB_IDL" = "x"
5673 echo "$as_me:$LINENO: result: omniORB binaries not in PATH variable" >&5
5674 echo "${ECHO_T}omniORB binaries not in PATH variable" >&6
5679 if test "x$omniORB_ok" = "xyes"
5683 OMNIORB_BIN=`echo ${OMNIORB_IDL} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5684 OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin,lib,"`
5686 OMNIORB_ROOT=`echo ${OMNIORB_BIN} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5687 OMNIORB_ROOT=`echo ${OMNIORB_ROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
5690 OMNIORB_INCLUDES="-I$OMNIORB_ROOT/include -I$OMNIORB_ROOT/include/omniORB3 -I$OMNIORB_ROOT/include/COS"
5696 if test -z "$enable_pthreads_done"
5698 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5699 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5700 LIBS="$LIBS $LIBS_PTHREADS"
5702 enable_pthreads_done=yes
5708 cat >>confdefs.h <<\_ACEOF
5712 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sparc__"
5715 cat >>confdefs.h <<\_ACEOF
5719 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__x86__"
5724 cat >>confdefs.h <<\_ACEOF
5729 cat >>confdefs.h <<\_ACEOF
5730 #define __OSVERSION__ 1
5733 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sunos__"
5736 cat >>confdefs.h <<\_ACEOF
5741 cat >>confdefs.h <<\_ACEOF
5742 #define __OSVERSION__ 1
5745 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__linux__"
5750 CPPFLAGS_old=$CPPFLAGS
5751 CPPFLAGS="$CPPFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
5754 ac_cpp='$CXXCPP $CPPFLAGS'
5755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5759 if test "${ac_cv_header_CORBA_h+set}" = set; then
5760 echo "$as_me:$LINENO: checking for CORBA.h" >&5
5761 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
5762 if test "${ac_cv_header_CORBA_h+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
5766 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
5768 # Is the header compilable?
5769 echo "$as_me:$LINENO: checking CORBA.h usability" >&5
5770 echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5773 #include "confdefs.h"
5774 $ac_includes_default
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_header_compiler=yes
5791 echo "$as_me: failed program was:" >&5
5792 cat conftest.$ac_ext >&5
5793 ac_header_compiler=no
5795 rm -f conftest.$ac_objext conftest.$ac_ext
5796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5797 echo "${ECHO_T}$ac_header_compiler" >&6
5799 # Is the header present?
5800 echo "$as_me:$LINENO: checking CORBA.h presence" >&5
5801 echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 #include "confdefs.h"
5807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5810 egrep -v '^ *\+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } >/dev/null; then
5815 if test -s conftest.err; then
5816 ac_cpp_err=$ac_cxx_preproc_warn_flag
5823 if test -z "$ac_cpp_err"; then
5824 ac_header_preproc=yes
5826 echo "$as_me: failed program was:" >&5
5827 cat conftest.$ac_ext >&5
5828 ac_header_preproc=no
5830 rm -f conftest.err conftest.$ac_ext
5831 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5832 echo "${ECHO_T}$ac_header_preproc" >&6
5834 # So? What about this header?
5835 case $ac_header_compiler:$ac_header_preproc in
5837 { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
5838 echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5839 { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
5840 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
5842 { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
5843 echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: CORBA.h: check for missing prerequisite headers?" >&5
5845 echo "$as_me: WARNING: CORBA.h: check for missing prerequisite headers?" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
5847 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
5849 echo "$as_me:$LINENO: checking for CORBA.h" >&5
5850 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
5851 if test "${ac_cv_header_CORBA_h+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_cv_header_CORBA_h=$ac_header_preproc
5856 echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
5857 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
5860 if test $ac_cv_header_CORBA_h = yes; then
5868 CPPFLAGS=$CPPFLAGS_old
5873 if test "x$omniORB_ok" = "xyes"
5875 OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
5878 LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
5880 CXXFLAGS_old=$CXXFLAGS
5881 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
5883 echo "$as_me:$LINENO: checking whether we can link with omnithreads" >&5
5884 echo $ECHO_N "checking whether we can link with omnithreads... $ECHO_C" >&6
5885 if test "${salome_cv_lib_omnithreads+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5891 #include "confdefs.h"
5892 #include <omnithread.h>
5894 #ifdef F77_DUMMY_MAIN
5898 int F77_DUMMY_MAIN() { return 1; }
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 eval "salome_cv_lib_omnithreads=yes"
5922 echo "$as_me: failed program was:" >&5
5923 cat conftest.$ac_ext >&5
5924 eval "salome_cv_lib_omnithreads=no"
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5931 omniORB_ok="$salome_cv_lib_omnithreads"
5932 if test "x$omniORB_ok" = "xno"
5934 echo "$as_me:$LINENO: result: omnithreads not found" >&5
5935 echo "${ECHO_T}omnithreads not found" >&6
5937 echo "$as_me:$LINENO: result: yes" >&5
5938 echo "${ECHO_T}yes" >&6
5942 CXXFLAGS=$CXXFLAGS_old
5946 if test "x$omniORB_ok" = "xyes"
5949 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5950 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5951 if test "${ac_cv_lib_socket_socket+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 ac_check_lib_save_LIBS=$LIBS
5955 LIBS="-lsocket $LIBS"
5956 cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 #include "confdefs.h"
5960 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5967 #ifdef F77_DUMMY_MAIN
5971 int F77_DUMMY_MAIN() { return 1; }
5981 rm -f conftest.$ac_objext conftest$ac_exeext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5983 (eval $ac_link) 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5993 ac_cv_lib_socket_socket=yes
5995 echo "$as_me: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5997 ac_cv_lib_socket_socket=no
5999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6000 LIBS=$ac_check_lib_save_LIBS
6002 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6003 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6004 if test $ac_cv_lib_socket_socket = yes; then
6005 LIBS="-lsocket $LIBS"
6008 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6009 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6010 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_check_lib_save_LIBS=$LIBS
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6019 /* Override any gcc2 internal prototype to avoid an error. */
6023 /* We use char because int might match the return type of a gcc2
6024 builtin and then its argument prototype would still apply. */
6025 char gethostbyname ();
6026 #ifdef F77_DUMMY_MAIN
6030 int F77_DUMMY_MAIN() { return 1; }
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_lib_nsl_gethostbyname=yes
6054 echo "$as_me: failed program was:" >&5
6055 cat conftest.$ac_ext >&5
6056 ac_cv_lib_nsl_gethostbyname=no
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 LIBS=$ac_check_lib_save_LIBS
6061 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6062 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6063 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6069 OMNIORB_LIBS="$OMNIORB_LDFLAGS -lomniORB3 -ltcpwrapGK -lomniDynamic3 -lomnithread -lCOS3 -lCOSDynamic3"
6072 LIBS="$OMNIORB_LIBS $LIBS"
6073 CXXFLAGS_old=$CXXFLAGS
6074 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
6076 echo "$as_me:$LINENO: checking whether we can link with omniORB3" >&5
6077 echo $ECHO_N "checking whether we can link with omniORB3... $ECHO_C" >&6
6078 if test "${salome_cv_lib_omniorb3+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line $LINENO "configure"
6084 #include "confdefs.h"
6087 #ifdef F77_DUMMY_MAIN
6091 int F77_DUMMY_MAIN() { return 1; }
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest$ac_exeext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 eval "salome_cv_lib_omniorb3=yes"
6115 echo "$as_me: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 eval "salome_cv_lib_omniorb3=no"
6119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 omniORB_ok="$salome_cv_lib_omniorb3"
6126 if test "x$omniORB_ok" = "xno"
6128 echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
6129 echo "${ECHO_T}omniORB library linking failed" >&6
6132 echo "$as_me:$LINENO: result: yes" >&5
6133 echo "${ECHO_T}yes" >&6
6136 CXXFLAGS=$CXXFLAGS_old
6140 if test "x$omniORB_ok" = "xyes"
6143 OMNIORB_IDLCXXFLAGS="-I$OMNIORB_ROOT/idl"
6144 OMNIORB_IDLPYFLAGS="-bpython -I$OMNIORB_ROOT/idl"
6148 OMNIORB_IDL_CLN_H=.hh
6149 OMNIORB_IDL_CLN_CXX=SK.cc
6150 OMNIORB_IDL_CLN_OBJ=SK.o
6155 OMNIORB_IDL_SRV_H=.hh
6156 OMNIORB_IDL_SRV_CXX=SK.cc
6157 OMNIORB_IDL_SRV_OBJ=SK.o
6163 OMNIORB_IDL_TIE_CXX=
6167 cat >>confdefs.h <<\_ACEOF
6173 cat >>confdefs.h <<\_ACEOF
6174 #define CORBA_HAVE_POA 1
6178 CORBA_ORB_INIT_HAVE_3_ARGS=1
6179 cat >>confdefs.h <<\_ACEOF
6180 #define CORBA_ORB_INIT_HAVE_3_ARGS 1
6183 CORBA_ORB_INIT_THIRD_ARG='"omniORB3"'
6184 cat >>confdefs.h <<\_ACEOF
6185 #define CORBA_ORB_INIT_THIRD_ARG "omniORB3"
6192 if test "x$omniORB_ok" = "xyes"
6194 echo "$as_me:$LINENO: checking omniORBpy (CORBA.py file available)" >&5
6195 echo $ECHO_N "checking omniORBpy (CORBA.py file available)... $ECHO_C" >&6
6196 if test -f ${OMNIORB_ROOT}/lib/python/CORBA.py
6199 PYTHONPATH=${OMNIORB_ROOT}/lib/python:${OMNIORB_LIB}:${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}:${PYTHONPATH}
6201 echo "$as_me:$LINENO: result: yes" >&5
6202 echo "${ECHO_T}yes" >&6
6207 ac_cpp='$CPP $CPPFLAGS'
6208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 echo "$as_me:$LINENO: result: for omniORBpy: $omniORBpy_ok" >&5
6214 echo "${ECHO_T}for omniORBpy: $omniORBpy_ok" >&6
6215 echo "$as_me:$LINENO: result: for omniORB: $omniORB_ok" >&5
6216 echo "${ECHO_T}for omniORB: $omniORB_ok" >&6
6219 cat >confcache <<\_ACEOF
6220 # This file is a shell script that caches the results of configure
6221 # tests run on this system so they can be shared between configure
6222 # scripts and configure runs, see configure's option --config-cache.
6223 # It is not useful on other systems. If it contains results you don't
6224 # want to keep, you may remove or edit it.
6226 # config.status only pays attention to the cache file if you give it
6227 # the --recheck option to rerun configure.
6229 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6235 # The following way of writing the cache mishandles newlines in values,
6236 # but we know of no workaround that is simple, portable, and efficient.
6237 # So, don't put newlines in cache variables' values.
6238 # Ultrix sh set writes to stderr and can't be redirected directly,
6239 # and sets the high bit in the cache file unless we assign to the vars.
6242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6244 # `set' does not quote correctly, so add quotes (double-quote
6245 # substitution turns \\\\ into \\, and sed turns \\ into \).
6248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6251 # `set' quotes correctly as required by POSIX, so do not add quotes.
6253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6264 if cmp -s $cache_file confcache; then :; else
6265 if test -w $cache_file; then
6266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6267 cat confcache >$cache_file
6269 echo "not updating unwritable cache $cache_file"
6279 echo ---------------------------------------------
6280 echo default ORB : omniORB
6281 echo ---------------------------------------------
6287 if test x"$DEFAULT_ORB" = x"omniORB"
6290 # Contient le nom de l'ORB
6293 echo "$as_me:$LINENO: result: default orb : omniORB" >&5
6294 echo "${ECHO_T}default orb : omniORB" >&6
6298 CORBA_ROOT=$OMNIORB_ROOT
6299 CORBA_INCLUDES=$OMNIORB_INCLUDES
6300 CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
6301 CORBA_LIBS=$OMNIORB_LIBS
6302 IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
6303 IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
6312 IDL_CLN_H=$OMNIORB_IDL_CLN_H
6313 IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
6314 IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
6320 IDL_SRV_H=$OMNIORB_IDL_SRV_H
6321 IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
6322 IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
6329 echo "$as_me:$LINENO: result: $DEFAULT_ORB unknown orb" >&5
6330 echo "${ECHO_T}$DEFAULT_ORB unknown orb" >&6
6338 CORBA=adm_local/unix/$corba
6341 echo ---------------------------------------------
6343 echo ---------------------------------------------
6348 # Check whether --with-opengl or --without-opengl was given.
6349 if test "${with_opengl+set}" = set; then
6350 withval="$with_opengl"
6352 opengl_dir="$withval"
6357 dirs="/usr/lib /usr/local/lib /opt/graphics/OpenGL/lib /usr/openwin/lib /usr/X11R6/lib"
6360 { echo "$as_me:$LINENO: checking for OpenGL..." >&5
6361 echo "$as_me: checking for OpenGL..." >&6;}
6374 if test "x$local_opengl" = "xyes" ; then
6375 if test -f "${opengl_dir}/include/GL/gl.h" ; then
6377 OGL_INCLUDES="-I${opengl_dir}/include"
6378 OGL_LIBS="-L${opengl_dir}/lib"
6379 echo "$as_me:$LINENO: result: select OpenGL distribution in ${opengl_dir}" >&5
6380 echo "${ECHO_T}select OpenGL distribution in ${opengl_dir}" >&6
6382 echo "$as_me:$LINENO: result: no gl.h header file in ${opengl_dir}/include/GL" >&5
6383 echo "${ECHO_T}no gl.h header file in ${opengl_dir}/include/GL" >&6
6387 if test "x$OpenGL_ok" = "xno"
6390 for ac_header in GL/gl.h
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo "$as_me:$LINENO: checking for $ac_header" >&5
6395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6402 # Is the header compilable?
6403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line $LINENO "configure"
6407 #include "confdefs.h"
6408 $ac_includes_default
6409 #include <$ac_header>
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_header_compiler=yes
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 ac_header_compiler=no
6429 rm -f conftest.$ac_objext conftest.$ac_ext
6430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6431 echo "${ECHO_T}$ac_header_compiler" >&6
6433 # Is the header present?
6434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line $LINENO "configure"
6438 #include "confdefs.h"
6439 #include <$ac_header>
6441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6444 egrep -v '^ *\+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } >/dev/null; then
6449 if test -s conftest.err; then
6450 ac_cpp_err=$ac_c_preproc_warn_flag
6457 if test -z "$ac_cpp_err"; then
6458 ac_header_preproc=yes
6460 echo "$as_me: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6462 ac_header_preproc=no
6464 rm -f conftest.err conftest.$ac_ext
6465 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6466 echo "${ECHO_T}$ac_header_preproc" >&6
6468 # So? What about this header?
6469 case $ac_header_compiler:$ac_header_preproc in
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6483 echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 eval "$as_ac_Header=$ac_header_preproc"
6490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495 cat >>confdefs.h <<_ACEOF
6496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505 if test "x$OpenGL_ok" = "xno"
6509 for ac_header in /usr/openwin/share/include/GL/glxmd.h
6511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513 echo "$as_me:$LINENO: checking for $ac_header" >&5
6514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521 # Is the header compilable?
6522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527 $ac_includes_default
6528 #include <$ac_header>
6530 rm -f conftest.$ac_objext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6532 (eval $ac_compile) 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 ac_header_compiler=yes
6544 echo "$as_me: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6546 ac_header_compiler=no
6548 rm -f conftest.$ac_objext conftest.$ac_ext
6549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6550 echo "${ECHO_T}$ac_header_compiler" >&6
6552 # Is the header present?
6553 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6556 #line $LINENO "configure"
6557 #include "confdefs.h"
6558 #include <$ac_header>
6560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6563 egrep -v '^ *\+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } >/dev/null; then
6568 if test -s conftest.err; then
6569 ac_cpp_err=$ac_c_preproc_warn_flag
6576 if test -z "$ac_cpp_err"; then
6577 ac_header_preproc=yes
6579 echo "$as_me: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6581 ac_header_preproc=no
6583 rm -f conftest.err conftest.$ac_ext
6584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6585 echo "${ECHO_T}$ac_header_preproc" >&6
6587 # So? What about this header?
6588 case $ac_header_compiler:$ac_header_preproc in
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6602 echo "$as_me:$LINENO: checking for $ac_header" >&5
6603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 eval "$as_ac_Header=$ac_header_preproc"
6609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h <<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6618 OGL_INCLUDES="-I/usr/openwin/share/include/"
6625 if test "x$OpenGL_ok" = "xno"
6629 for ac_header in /opt/graphics/OpenGL/include/GL/glxmd.h
6631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6633 echo "$as_me:$LINENO: checking for $ac_header" >&5
6634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6641 # Is the header compilable?
6642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line $LINENO "configure"
6646 #include "confdefs.h"
6647 $ac_includes_default
6648 #include <$ac_header>
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } &&
6656 { ac_try='test -s conftest.$ac_objext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_header_compiler=yes
6664 echo "$as_me: failed program was:" >&5
6665 cat conftest.$ac_ext >&5
6666 ac_header_compiler=no
6668 rm -f conftest.$ac_objext conftest.$ac_ext
6669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6670 echo "${ECHO_T}$ac_header_compiler" >&6
6672 # Is the header present?
6673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6675 cat >conftest.$ac_ext <<_ACEOF
6676 #line $LINENO "configure"
6677 #include "confdefs.h"
6678 #include <$ac_header>
6680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6683 egrep -v '^ *\+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } >/dev/null; then
6688 if test -s conftest.err; then
6689 ac_cpp_err=$ac_c_preproc_warn_flag
6696 if test -z "$ac_cpp_err"; then
6697 ac_header_preproc=yes
6699 echo "$as_me: failed program was:" >&5
6700 cat conftest.$ac_ext >&5
6701 ac_header_preproc=no
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc in
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6722 echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 eval "$as_ac_Header=$ac_header_preproc"
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6738 OGL_INCLUDES="-I/opt/graphics/OpenGL/include"
6744 if test "x$OpenGL_ok" = "xno"
6746 # some linux OpenGL servers hide the includes in /usr/X11R6/include/GL
6748 for ac_header in /usr/X11R6/include/GL/gl.h
6750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6752 echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6760 # Is the header compilable?
6761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6763 cat >conftest.$ac_ext <<_ACEOF
6764 #line $LINENO "configure"
6765 #include "confdefs.h"
6766 $ac_includes_default
6767 #include <$ac_header>
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_header_compiler=yes
6783 echo "$as_me: failed program was:" >&5
6784 cat conftest.$ac_ext >&5
6785 ac_header_compiler=no
6787 rm -f conftest.$ac_objext conftest.$ac_ext
6788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6789 echo "${ECHO_T}$ac_header_compiler" >&6
6791 # Is the header present?
6792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6794 cat >conftest.$ac_ext <<_ACEOF
6795 #line $LINENO "configure"
6796 #include "confdefs.h"
6797 #include <$ac_header>
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802 egrep -v '^ *\+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } >/dev/null; then
6807 if test -s conftest.err; then
6808 ac_cpp_err=$ac_c_preproc_warn_flag
6815 if test -z "$ac_cpp_err"; then
6816 ac_header_preproc=yes
6818 echo "$as_me: failed program was:" >&5
6819 cat conftest.$ac_ext >&5
6820 ac_header_preproc=no
6822 rm -f conftest.err conftest.$ac_ext
6823 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824 echo "${ECHO_T}$ac_header_preproc" >&6
6826 # So? What about this header?
6827 case $ac_header_compiler:$ac_header_preproc in
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6841 echo "$as_me:$LINENO: checking for $ac_header" >&5
6842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 eval "$as_ac_Header=$ac_header_preproc"
6848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6849 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6853 cat >>confdefs.h <<_ACEOF
6854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6857 OGL_INCLUDES="-I/usr/X11R6/include"
6864 if test "x$OpenGL_ok" = "xyes"
6866 { echo "$as_me:$LINENO: checking for OpenGL library..." >&5
6867 echo "$as_me: checking for OpenGL library..." >&6;}
6870 if test -r "$i/libGL.so"; then
6875 if test -r "$i/libGL.sl"; then
6880 LDFLAGS_old="$LDFLAGS"
6881 LDFLAGS="$LDFLAGS $OGL_LIBS"
6882 echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
6883 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
6884 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_check_lib_save_LIBS=$LIBS
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6893 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6900 #ifdef F77_DUMMY_MAIN
6904 int F77_DUMMY_MAIN() { return 1; }
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_lib_GL_glBegin=yes
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_GL_glBegin=no
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
6936 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
6937 if test $ac_cv_lib_GL_glBegin = yes; then
6943 LDFLAGS="$LDFLAGS_old"
6946 if test "x$OpenGL_ok" = "xyes" ; then
6947 OGL_LIBS="$OGL_LIBS -lGL"
6952 LDFLAGS_old="$LDFLAGS"
6953 LDFLAGS="$LDFLAGS $OGL_LIBS"
6954 echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
6955 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6
6956 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 ac_check_lib_save_LIBS=$LIBS
6961 cat >conftest.$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */
6969 /* We use char because int might match the return type of a gcc2
6970 builtin and then its argument prototype would still apply. */
6971 char gluBeginSurface ();
6972 #ifdef F77_DUMMY_MAIN
6976 int F77_DUMMY_MAIN() { return 1; }
6986 rm -f conftest.$ac_objext conftest$ac_exeext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6988 (eval $ac_link) 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -s conftest$ac_exeext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_lib_GLU_gluBeginSurface=yes
7000 echo "$as_me: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7002 ac_cv_lib_GLU_gluBeginSurface=no
7004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005 LIBS=$ac_check_lib_save_LIBS
7007 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
7008 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6
7009 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
7015 LDFLAGS="$LDFLAGS_old"
7017 if test "x$OpenGLU_ok" = "xyes" ; then
7018 OGL_LIBS="$OGL_LIBS -lGLU"
7022 cat >confcache <<\_ACEOF
7023 # This file is a shell script that caches the results of configure
7024 # tests run on this system so they can be shared between configure
7025 # scripts and configure runs, see configure's option --config-cache.
7026 # It is not useful on other systems. If it contains results you don't
7027 # want to keep, you may remove or edit it.
7029 # config.status only pays attention to the cache file if you give it
7030 # the --recheck option to rerun configure.
7032 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7038 # The following way of writing the cache mishandles newlines in values,
7039 # but we know of no workaround that is simple, portable, and efficient.
7040 # So, don't put newlines in cache variables' values.
7041 # Ultrix sh set writes to stderr and can't be redirected directly,
7042 # and sets the high bit in the cache file unless we assign to the vars.
7045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7047 # `set' does not quote correctly, so add quotes (double-quote
7048 # substitution turns \\\\ into \\, and sed turns \\ into \).
7051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7054 # `set' quotes correctly as required by POSIX, so do not add quotes.
7056 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7065 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7067 if cmp -s $cache_file confcache; then :; else
7068 if test -w $cache_file; then
7069 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7070 cat confcache >$cache_file
7072 echo "not updating unwritable cache $cache_file"
7080 echo ---------------------------------------------
7082 echo ---------------------------------------------
7087 { echo "$as_me:$LINENO: checking for QT..." >&5
7088 echo "$as_me: checking for QT..." >&6;}
7094 ac_cpp='$CXXCPP $CPPFLAGS'
7095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7100 if test "x$QTDIR" = "x"
7102 echo "$as_me:$LINENO: result: please define QTDIR variable" >&5
7103 echo "${ECHO_T}please define QTDIR variable" >&6
7107 if test "x$qt_ok" = "xyes"
7109 if test -f ${QTDIR}/bin/moc
7111 MOC=${QTDIR}/bin/moc
7113 # Extract the first word of "moc", so it can be a program name with args.
7114 set dummy moc; ac_word=$2
7115 echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7117 if test "${ac_cv_path_MOC+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 if test -n "$MOC"; then
7145 echo "$as_me:$LINENO: result: $MOC" >&5
7146 echo "${ECHO_T}$MOC" >&6
7148 echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6
7153 if test "x$MOC" = "x"
7156 echo "$as_me:$LINENO: result: moc qt-compiler not in PATH variable" >&5
7157 echo "${ECHO_T}moc qt-compiler not in PATH variable" >&6
7160 echo "$as_me:$LINENO: result: moc found" >&5
7161 echo "${ECHO_T}moc found" >&6
7165 if test "x$qt_ok" = "xyes"
7167 if test -f ${QTDIR}/bin/uic
7169 UIC=${QTDIR}/bin/uic
7171 # Extract the first word of "uic", so it can be a program name with args.
7172 set dummy uic; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_path_UIC+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 if test -n "$UIC"; then
7203 echo "$as_me:$LINENO: result: $UIC" >&5
7204 echo "${ECHO_T}$UIC" >&6
7206 echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6
7211 if test "x$UIC" = "x"
7214 echo "$as_me:$LINENO: result: uic qt-interface compiler not in PATH variable" >&5
7215 echo "${ECHO_T}uic qt-interface compiler not in PATH variable" >&6
7218 echo "$as_me:$LINENO: result: uic found" >&5
7219 echo "${ECHO_T}uic found" >&6
7226 if test "x$qt_ok" = "xyes"
7228 echo "$as_me:$LINENO: checking include of qt headers" >&5
7229 echo $ECHO_N "checking include of qt headers... $ECHO_C" >&6
7231 CPPFLAGS_old=$CPPFLAGS
7232 CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
7235 ac_cpp='$CXXCPP $CPPFLAGS'
7236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7240 if test "${ac_cv_header_qaction_h+set}" = set; then
7241 echo "$as_me:$LINENO: checking for qaction.h" >&5
7242 echo $ECHO_N "checking for qaction.h... $ECHO_C" >&6
7243 if test "${ac_cv_header_qaction_h+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 echo "$as_me:$LINENO: result: $ac_cv_header_qaction_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_qaction_h" >&6
7249 # Is the header compilable?
7250 echo "$as_me:$LINENO: checking qaction.h usability" >&5
7251 echo $ECHO_N "checking qaction.h usability... $ECHO_C" >&6
7252 cat >conftest.$ac_ext <<_ACEOF
7253 #line $LINENO "configure"
7254 #include "confdefs.h"
7255 $ac_includes_default
7256 #include <qaction.h>
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_header_compiler=yes
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7274 ac_header_compiler=no
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking qaction.h presence" >&5
7282 echo $ECHO_N "checking qaction.h presence... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7285 #include "confdefs.h"
7286 #include <qaction.h>
7288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7291 egrep -v '^ *\+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } >/dev/null; then
7296 if test -s conftest.err; then
7297 ac_cpp_err=$ac_cxx_preproc_warn_flag
7304 if test -z "$ac_cpp_err"; then
7305 ac_header_preproc=yes
7307 echo "$as_me: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7309 ac_header_preproc=no
7311 rm -f conftest.err conftest.$ac_ext
7312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7313 echo "${ECHO_T}$ac_header_preproc" >&6
7315 # So? What about this header?
7316 case $ac_header_compiler:$ac_header_preproc in
7318 { echo "$as_me:$LINENO: WARNING: qaction.h: accepted by the compiler, rejected by the preprocessor!" >&5
7319 echo "$as_me: WARNING: qaction.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7320 { echo "$as_me:$LINENO: WARNING: qaction.h: proceeding with the preprocessor's result" >&5
7321 echo "$as_me: WARNING: qaction.h: proceeding with the preprocessor's result" >&2;};;
7323 { echo "$as_me:$LINENO: WARNING: qaction.h: present but cannot be compiled" >&5
7324 echo "$as_me: WARNING: qaction.h: present but cannot be compiled" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: qaction.h: check for missing prerequisite headers?" >&5
7326 echo "$as_me: WARNING: qaction.h: check for missing prerequisite headers?" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: qaction.h: proceeding with the preprocessor's result" >&5
7328 echo "$as_me: WARNING: qaction.h: proceeding with the preprocessor's result" >&2;};;
7330 echo "$as_me:$LINENO: checking for qaction.h" >&5
7331 echo $ECHO_N "checking for qaction.h... $ECHO_C" >&6
7332 if test "${ac_cv_header_qaction_h+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_header_qaction_h=$ac_header_preproc
7337 echo "$as_me:$LINENO: result: $ac_cv_header_qaction_h" >&5
7338 echo "${ECHO_T}$ac_cv_header_qaction_h" >&6
7341 if test $ac_cv_header_qaction_h = yes; then
7349 CPPFLAGS=$CPPFLAGS_old
7351 if test "x$qt_ok" = "xno"
7353 echo "$as_me:$LINENO: result: qt headers not found" >&5
7354 echo "${ECHO_T}qt headers not found" >&6
7355 echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong" >&5
7356 echo "${ECHO_T}QTDIR environment variable may be wrong" >&6
7358 echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360 QT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
7361 QT_MT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
7365 if test "x$qt_ok" = "xyes"
7367 echo "$as_me:$LINENO: checking linking qt library" >&5
7368 echo $ECHO_N "checking linking qt library... $ECHO_C" >&6
7370 LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
7372 CXXFLAGS_old=$CXXFLAGS
7373 CXXFLAGS="$CXXFLAGS -I$QTDIR/include"
7375 if test "${salome_cv_lib_qt+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 #include "confdefs.h"
7382 #include <qapplication.h>
7384 #ifdef F77_DUMMY_MAIN
7388 int F77_DUMMY_MAIN() { return 1; }
7395 QApplication a(n, s);
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 eval "salome_cv_lib_qt=yes"
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 eval "salome_cv_lib_qt=no"
7419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7423 qt_ok="$salome_cv_lib_qt"
7425 if test "x$qt_ok" = "xno"
7427 echo "$as_me:$LINENO: result: unable to link with qt library" >&5
7428 echo "${ECHO_T}unable to link with qt library" >&6
7429 echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong" >&5
7430 echo "${ECHO_T}QTDIR environment variable may be wrong" >&6
7432 echo "$as_me:$LINENO: result: yes" >&5
7433 echo "${ECHO_T}yes" >&6
7434 QT_LIBS="-L$QTDIR/lib -lqt-mt"
7435 QT_MT_LIBS="-L$QTDIR/lib -lqt-mt"
7439 CXXFLAGS=$CXXFLAGS_old
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7458 echo "$as_me:$LINENO: result: for qt: $qt_ok" >&5
7459 echo "${ECHO_T}for qt: $qt_ok" >&6
7462 cat >confcache <<\_ACEOF
7463 # This file is a shell script that caches the results of configure
7464 # tests run on this system so they can be shared between configure
7465 # scripts and configure runs, see configure's option --config-cache.
7466 # It is not useful on other systems. If it contains results you don't
7467 # want to keep, you may remove or edit it.
7469 # config.status only pays attention to the cache file if you give it
7470 # the --recheck option to rerun configure.
7472 # `ac_cv_env_foo' variables (set or unset) will be overriden when
7473 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7478 # The following way of writing the cache mishandles newlines in values,
7479 # but we know of no workaround that is simple, portable, and efficient.
7480 # So, don't put newlines in cache variables' values.
7481 # Ultrix sh set writes to stderr and can't be redirected directly,
7482 # and sets the high bit in the cache file unless we assign to the vars.
7485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7487 # `set' does not quote correctly, so add quotes (double-quote
7488 # substitution turns \\\\ into \\, and sed turns \\ into \).
7491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7494 # `set' quotes correctly as required by POSIX, so do not add quotes.
7496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7507 if cmp -s $cache_file confcache; then :; else
7508 if test -w $cache_file; then
7509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7510 cat confcache >$cache_file
7512 echo "not updating unwritable cache $cache_file"
7520 echo ---------------------------------------------
7522 echo ---------------------------------------------
7527 { echo "$as_me:$LINENO: checking for VTK..." >&5
7528 echo "$as_me: checking for VTK..." >&6;}
7533 ac_cpp='$CXXCPP $CPPFLAGS'
7534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7549 echo "$as_me:$LINENO: checking for X" >&5
7550 echo $ECHO_N "checking for X... $ECHO_C" >&6
7553 # Check whether --with-x or --without-x was given.
7554 if test "${with_x+set}" = set; then
7558 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7559 if test "x$with_x" = xno; then
7560 # The user explicitly disabled X.
7563 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7564 # Both variables are already set.
7567 if test "${ac_cv_have_x+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 # One or both of the vars are not set, and there is no cached value.
7571 ac_x_includes=no ac_x_libraries=no
7573 if mkdir conftest.dir; then
7575 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7576 cat >Imakefile <<'_ACEOF'
7578 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7580 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7581 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7582 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7583 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7584 for ac_extension in a so sl; do
7585 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7586 test -f $ac_im_libdir/libX11.$ac_extension; then
7587 ac_im_usrlibdir=$ac_im_libdir; break
7590 # Screen out bogus values from the imake configuration. They are
7591 # bogus both because they are the default anyway, and because
7592 # using them would break gcc on systems where it needs fixed includes.
7593 case $ac_im_incroot in
7595 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7597 case $ac_im_usrlibdir in
7599 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7606 # Standard set of common directories for X headers.
7607 # Check X11 before X11Rn because it is often a symlink to the current release.
7619 /usr/local/X11/include
7620 /usr/local/X11R6/include
7621 /usr/local/X11R5/include
7622 /usr/local/X11R4/include
7624 /usr/local/include/X11
7625 /usr/local/include/X11R6
7626 /usr/local/include/X11R5
7627 /usr/local/include/X11R4
7631 /usr/XFree86/include/X11
7635 /usr/unsupported/include
7637 /usr/local/x11r5/include
7638 /usr/lpp/Xamples/include
7640 /usr/openwin/include
7641 /usr/openwin/share/include'
7643 if test "$ac_x_includes" = no; then
7644 # Guess where to find include files, by looking for Intrinsic.h.
7645 # First, try using that file with no special directory specified.
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line $LINENO "configure"
7648 #include "confdefs.h"
7649 #include <X11/Intrinsic.h>
7651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654 egrep -v '^ *\+' conftest.er1 >conftest.err
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } >/dev/null; then
7659 if test -s conftest.err; then
7660 ac_cpp_err=$ac_cxx_preproc_warn_flag
7667 if test -z "$ac_cpp_err"; then
7668 # We can compile using X headers with no special include directory.
7671 echo "$as_me: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 for ac_dir in $ac_x_header_dirs; do
7674 if test -r "$ac_dir/X11/Intrinsic.h"; then
7675 ac_x_includes=$ac_dir
7680 rm -f conftest.err conftest.$ac_ext
7681 fi # $ac_x_includes = no
7683 if test "$ac_x_libraries" = no; then
7684 # Check for the libraries.
7685 # See if we find them without any special options.
7686 # Don't add to $LIBS permanently.
7689 cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 #include <X11/Intrinsic.h>
7693 #ifdef F77_DUMMY_MAIN
7697 int F77_DUMMY_MAIN() { return 1; }
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; }; then
7720 # We can link X programs with no special library path.
7723 echo "$as_me: failed program was:" >&5
7724 cat conftest.$ac_ext >&5
7726 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7728 # Don't even attempt the hair of trying to link an X program!
7729 for ac_extension in a so sl; do
7730 if test -r $ac_dir/libXt.$ac_extension; then
7731 ac_x_libraries=$ac_dir
7737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7738 fi # $ac_x_libraries = no
7740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7741 # Didn't find X anywhere. Cache the known absence of X.
7742 ac_cv_have_x="have_x=no"
7744 # Record where we found X for the cache.
7745 ac_cv_have_x="have_x=yes \
7746 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7751 eval "$ac_cv_have_x"
7754 if test "$have_x" != yes; then
7755 echo "$as_me:$LINENO: result: $have_x" >&5
7756 echo "${ECHO_T}$have_x" >&6
7759 # If each of the values was on the command line, it overrides each guess.
7760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7762 # Update the cache value to reflect the command line values.
7763 ac_cv_have_x="have_x=yes \
7764 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7765 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7770 if test "x$OpenGL_ok" != "xyes"
7772 { echo "$as_me:$LINENO: WARNING: vtk needs OpenGL correct configuration" >&5
7773 echo "$as_me: WARNING: vtk needs OpenGL correct configuration" >&2;}
7777 LOCAL_INCLUDES="$OGL_INCLUDES"
7778 LOCAL_LIBS="-lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid $OGL_LIBS -L$x_libraries -lX11 -lXt"
7779 TRY_LINK_LIBS="-lvtkCommon $OGL_LIBS -L$x_libraries -lX11 -lXt"
7783 { echo "$as_me:$LINENO: WARNING: undefined VTKHOME variable which specify where vtk was compiled" >&5
7784 echo "$as_me: WARNING: undefined VTKHOME variable which specify where vtk was compiled" >&2;}
7786 LOCAL_INCLUDES="-I$VTKHOME/include/vtk $LOCAL_INCLUDES"
7787 LOCAL_LIBS="-L$VTKHOME/lib/vtk $LOCAL_LIBS"
7788 TRY_LINK_LIBS="-L$VTKHOME/lib/vtk $TRY_LINK_LIBS"
7791 CPPFLAGS_old="$CPPFLAGS"
7792 CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES -Wno-deprecated"
7794 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7795 echo "$as_me:$LINENO: checking for vtkPlane.h" >&5
7796 echo $ECHO_N "checking for vtkPlane.h... $ECHO_C" >&6
7797 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 echo "$as_me:$LINENO: result: $ac_cv_header_vtkPlane_h" >&5
7801 echo "${ECHO_T}$ac_cv_header_vtkPlane_h" >&6
7803 # Is the header compilable?
7804 echo "$as_me:$LINENO: checking vtkPlane.h usability" >&5
7805 echo $ECHO_N "checking vtkPlane.h usability... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7807 #line $LINENO "configure"
7808 #include "confdefs.h"
7809 $ac_includes_default
7810 #include <vtkPlane.h>
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } &&
7818 { ac_try='test -s conftest.$ac_objext'
7819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); }; }; then
7824 ac_header_compiler=yes
7826 echo "$as_me: failed program was:" >&5
7827 cat conftest.$ac_ext >&5
7828 ac_header_compiler=no
7830 rm -f conftest.$ac_objext conftest.$ac_ext
7831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7832 echo "${ECHO_T}$ac_header_compiler" >&6
7834 # Is the header present?
7835 echo "$as_me:$LINENO: checking vtkPlane.h presence" >&5
7836 echo $ECHO_N "checking vtkPlane.h presence... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7840 #include <vtkPlane.h>
7842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7845 egrep -v '^ *\+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } >/dev/null; then
7850 if test -s conftest.err; then
7851 ac_cpp_err=$ac_cxx_preproc_warn_flag
7858 if test -z "$ac_cpp_err"; then
7859 ac_header_preproc=yes
7861 echo "$as_me: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7863 ac_header_preproc=no
7865 rm -f conftest.err conftest.$ac_ext
7866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7867 echo "${ECHO_T}$ac_header_preproc" >&6
7869 # So? What about this header?
7870 case $ac_header_compiler:$ac_header_preproc in
7872 { echo "$as_me:$LINENO: WARNING: vtkPlane.h: accepted by the compiler, rejected by the preprocessor!" >&5
7873 echo "$as_me: WARNING: vtkPlane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&5
7875 echo "$as_me: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&2;};;
7877 { echo "$as_me:$LINENO: WARNING: vtkPlane.h: present but cannot be compiled" >&5
7878 echo "$as_me: WARNING: vtkPlane.h: present but cannot be compiled" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: vtkPlane.h: check for missing prerequisite headers?" >&5
7880 echo "$as_me: WARNING: vtkPlane.h: check for missing prerequisite headers?" >&2;}
7881 { echo "$as_me:$LINENO: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&5
7882 echo "$as_me: WARNING: vtkPlane.h: proceeding with the preprocessor's result" >&2;};;
7884 echo "$as_me:$LINENO: checking for vtkPlane.h" >&5
7885 echo $ECHO_N "checking for vtkPlane.h... $ECHO_C" >&6
7886 if test "${ac_cv_header_vtkPlane_h+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_cv_header_vtkPlane_h=$ac_header_preproc
7891 echo "$as_me:$LINENO: result: $ac_cv_header_vtkPlane_h" >&5
7892 echo "${ECHO_T}$ac_cv_header_vtkPlane_h" >&6
7895 if test $ac_cv_header_vtkPlane_h = yes; then
7903 CPPFLAGS="$CPPFLAGS_old"
7905 if test "x$vtk_ok" = "xyes"
7907 VTK_INCLUDES="$LOCAL_INCLUDES"
7910 echo "$as_me:$LINENO: checking linking VTK library" >&5
7911 echo $ECHO_N "checking linking VTK library... $ECHO_C" >&6
7914 # LIBS="$LIBS $TRY_LINK_LIBS"
7915 LIBS="$LIBS $LOCAL_LIBS"
7916 CPPFLAGS_old="$CPPFLAGS"
7917 CPPFLAGS="$CPPFLAGS $VTK_INCLUDES -Wno-deprecated"
7920 if test "${salome_cv_lib_vtk+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 #line $LINENO "configure"
7926 #include "confdefs.h"
7927 #include "vtkPlane.h"
7929 #ifdef F77_DUMMY_MAIN
7933 int F77_DUMMY_MAIN() { return 1; }
7938 vtkPlane *p = vtkPlane::New();
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945 (eval $ac_link) 2>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try='test -s conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 eval "salome_cv_lib_vtk=yes"
7957 echo "$as_me: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 eval "salome_cv_lib_vtk=no"
7961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7965 vtk_ok="$salome_cv_lib_vtk"
7967 CPPFLAGS="$CPPFLAGS_old"
7971 if test "x$vtk_ok" = "xno"
7973 echo "$as_me:$LINENO: result: \"no\"" >&5
7974 echo "${ECHO_T}\"no\"" >&6
7975 { echo "$as_me:$LINENO: WARNING: unable to link with vtk library" >&5
7976 echo "$as_me: WARNING: unable to link with vtk library" >&2;}
7978 echo "$as_me:$LINENO: result: \"yes\"" >&5
7979 echo "${ECHO_T}\"yes\"" >&6
7980 VTK_LIBS="$LOCAL_LIBS"
7981 VTK_MT_LIBS="$LOCAL_LIBS"
7984 echo "$as_me:$LINENO: result: \"for vtk: $vtk_ok\"" >&5
7985 echo "${ECHO_T}\"for vtk: $vtk_ok\"" >&6
7988 ac_cpp='$CPP $CPPFLAGS'
7989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995 cat >confcache <<\_ACEOF
7996 # This file is a shell script that caches the results of configure
7997 # tests run on this system so they can be shared between configure
7998 # scripts and configure runs, see configure's option --config-cache.
7999 # It is not useful on other systems. If it contains results you don't
8000 # want to keep, you may remove or edit it.
8002 # config.status only pays attention to the cache file if you give it
8003 # the --recheck option to rerun configure.
8005 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8011 # The following way of writing the cache mishandles newlines in values,
8012 # but we know of no workaround that is simple, portable, and efficient.
8013 # So, don't put newlines in cache variables' values.
8014 # Ultrix sh set writes to stderr and can't be redirected directly,
8015 # and sets the high bit in the cache file unless we assign to the vars.
8018 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8020 # `set' does not quote correctly, so add quotes (double-quote
8021 # substitution turns \\\\ into \\, and sed turns \\ into \).
8024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8027 # `set' quotes correctly as required by POSIX, so do not add quotes.
8029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8038 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8040 if cmp -s $cache_file confcache; then :; else
8041 if test -w $cache_file; then
8042 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8043 cat confcache >$cache_file
8045 echo "not updating unwritable cache $cache_file"
8053 echo ---------------------------------------------
8055 echo ---------------------------------------------
8060 { echo "$as_me:$LINENO: checking for HDF5..." >&5
8061 echo "$as_me: checking for HDF5..." >&6;}
8064 # Check whether --with-hdf5 or --without-hdf5 was given.
8065 if test "${with_hdf5+set}" = set; then
8066 withval="$with_hdf5"
8068 echo "$as_me:$LINENO: result: \"select $withval as path to hdf5\"" >&5
8069 echo "${ECHO_T}\"select $withval as path to hdf5\"" >&6
8086 if test -z $HDF5HOME
8088 { echo "$as_me:$LINENO: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&5
8089 echo "$as_me: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&2;}
8091 LOCAL_INCLUDES="-I$HDF5HOME/include"
8092 LOCAL_LIBS="-L$HDF5HOME/lib"
8096 CPPFLAGS_old="$CPPFLAGS"
8097 CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES"
8098 if test "${ac_cv_header_hdf5_h+set}" = set; then
8099 echo "$as_me:$LINENO: checking for hdf5.h" >&5
8100 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8101 if test "${ac_cv_header_hdf5_h+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8105 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8107 # Is the header compilable?
8108 echo "$as_me:$LINENO: checking hdf5.h usability" >&5
8109 echo $ECHO_N "checking hdf5.h usability... $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8112 #include "confdefs.h"
8113 $ac_includes_default
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -s conftest.$ac_objext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_header_compiler=yes
8130 echo "$as_me: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8132 ac_header_compiler=no
8134 rm -f conftest.$ac_objext conftest.$ac_ext
8135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8136 echo "${ECHO_T}$ac_header_compiler" >&6
8138 # Is the header present?
8139 echo "$as_me:$LINENO: checking hdf5.h presence" >&5
8140 echo $ECHO_N "checking hdf5.h presence... $ECHO_C" >&6
8141 cat >conftest.$ac_ext <<_ACEOF
8142 #line $LINENO "configure"
8143 #include "confdefs.h"
8146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8149 egrep -v '^ *\+' conftest.er1 >conftest.err
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } >/dev/null; then
8154 if test -s conftest.err; then
8155 ac_cpp_err=$ac_c_preproc_warn_flag
8162 if test -z "$ac_cpp_err"; then
8163 ac_header_preproc=yes
8165 echo "$as_me: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8167 ac_header_preproc=no
8169 rm -f conftest.err conftest.$ac_ext
8170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8171 echo "${ECHO_T}$ac_header_preproc" >&6
8173 # So? What about this header?
8174 case $ac_header_compiler:$ac_header_preproc in
8176 { echo "$as_me:$LINENO: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8177 echo "$as_me: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8179 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8181 { echo "$as_me:$LINENO: WARNING: hdf5.h: present but cannot be compiled" >&5
8182 echo "$as_me: WARNING: hdf5.h: present but cannot be compiled" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: hdf5.h: check for missing prerequisite headers?" >&5
8184 echo "$as_me: WARNING: hdf5.h: check for missing prerequisite headers?" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8188 echo "$as_me:$LINENO: checking for hdf5.h" >&5
8189 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8190 if test "${ac_cv_header_hdf5_h+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 ac_cv_header_hdf5_h=$ac_header_preproc
8195 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8196 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8199 if test $ac_cv_header_hdf5_h = yes; then
8206 CPPFLAGS="$CPPFLAGS_old"
8209 if test "x$hdf5_ok" = "xyes"
8214 LIBS="$LIBS $LOCAL_LIBS"
8215 echo "$as_me:$LINENO: checking for H5open in -lhdf5" >&5
8216 echo $ECHO_N "checking for H5open in -lhdf5... $ECHO_C" >&6
8217 if test "${ac_cv_lib_hdf5_H5open+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 ac_check_lib_save_LIBS=$LIBS
8222 cat >conftest.$ac_ext <<_ACEOF
8223 #line $LINENO "configure"
8224 #include "confdefs.h"
8226 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8233 #ifdef F77_DUMMY_MAIN
8237 int F77_DUMMY_MAIN() { return 1; }
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 ac_cv_lib_hdf5_H5open=yes
8261 echo "$as_me: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 ac_cv_lib_hdf5_H5open=no
8265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8266 LIBS=$ac_check_lib_save_LIBS
8268 echo "$as_me:$LINENO: result: $ac_cv_lib_hdf5_H5open" >&5
8269 echo "${ECHO_T}$ac_cv_lib_hdf5_H5open" >&6
8270 if test $ac_cv_lib_hdf5_H5open = yes; then
8280 if test "x$hdf5_ok" = "xyes"
8282 HDF5_INCLUDES="$LOCAL_INCLUDES"
8283 HDF5_LIBS="$LOCAL_LIBS -lhdf5"
8284 HDF5_MT_LIBS="$LOCAL_LIBS -lhdf5"
8287 echo "$as_me:$LINENO: result: for hdf5: $hdf5_ok" >&5
8288 echo "${ECHO_T}for hdf5: $hdf5_ok" >&6
8293 echo ---------------------------------------------
8295 echo ---------------------------------------------
8300 { echo "$as_me:$LINENO: checking for MED2..." >&5
8301 echo "$as_me: checking for MED2..." >&6;}
8304 # Check whether --with-med2 or --without-med2 was given.
8305 if test "${with_med2+set}" = set; then
8306 withval="$with_med2"
8308 echo "$as_me:$LINENO: result: \"select $withval as path to med2\"" >&5
8309 echo "${ECHO_T}\"select $withval as path to med2\"" >&6
8323 LOCAL_INCLUDES="$HDF5_INCLUDES"
8324 LOCAL_LIBS="-lmed $HDF5_LIBS"
8326 if test -z $MED2HOME
8328 { echo "$as_me:$LINENO: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&5
8329 echo "$as_me: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&2;}
8331 LOCAL_INCLUDES="$LOCAL_INCLUDES -I$MED2HOME/include"
8332 LOCAL_LIBS="-L$MED2HOME/lib $LOCAL_LIBS"
8336 CPPFLAGS_old="$CPPFLAGS"
8337 CPPFLAGS="$CPPFLAGS -DPCLINUX $LOCAL_INCLUDES"
8338 if test "${ac_cv_header_med_h+set}" = set; then
8339 echo "$as_me:$LINENO: checking for med.h" >&5
8340 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8341 if test "${ac_cv_header_med_h+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8345 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8347 # Is the header compilable?
8348 echo "$as_me:$LINENO: checking med.h usability" >&5
8349 echo $ECHO_N "checking med.h usability... $ECHO_C" >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8351 #line $LINENO "configure"
8352 #include "confdefs.h"
8353 $ac_includes_default
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_header_compiler=yes
8370 echo "$as_me: failed program was:" >&5
8371 cat conftest.$ac_ext >&5
8372 ac_header_compiler=no
8374 rm -f conftest.$ac_objext conftest.$ac_ext
8375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8376 echo "${ECHO_T}$ac_header_compiler" >&6
8378 # Is the header present?
8379 echo "$as_me:$LINENO: checking med.h presence" >&5
8380 echo $ECHO_N "checking med.h presence... $ECHO_C" >&6
8381 cat >conftest.$ac_ext <<_ACEOF
8382 #line $LINENO "configure"
8383 #include "confdefs.h"
8386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8389 egrep -v '^ *\+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } >/dev/null; then
8394 if test -s conftest.err; then
8395 ac_cpp_err=$ac_c_preproc_warn_flag
8402 if test -z "$ac_cpp_err"; then
8403 ac_header_preproc=yes
8405 echo "$as_me: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8407 ac_header_preproc=no
8409 rm -f conftest.err conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8411 echo "${ECHO_T}$ac_header_preproc" >&6
8413 # So? What about this header?
8414 case $ac_header_compiler:$ac_header_preproc in
8416 { echo "$as_me:$LINENO: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&5
8417 echo "$as_me: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8419 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8421 { echo "$as_me:$LINENO: WARNING: med.h: present but cannot be compiled" >&5
8422 echo "$as_me: WARNING: med.h: present but cannot be compiled" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: med.h: check for missing prerequisite headers?" >&5
8424 echo "$as_me: WARNING: med.h: check for missing prerequisite headers?" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8426 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8428 echo "$as_me:$LINENO: checking for med.h" >&5
8429 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8430 if test "${ac_cv_header_med_h+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_cv_header_med_h=$ac_header_preproc
8435 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8436 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8439 if test $ac_cv_header_med_h = yes; then
8446 CPPFLAGS="$CPPFLAGS_old"
8448 if test "x$med2_ok" = "xyes"
8453 LIBS="$LIBS $LOCAL_LIBS"
8454 echo "$as_me:$LINENO: checking for MEDouvrir in -lmed" >&5
8455 echo $ECHO_N "checking for MEDouvrir in -lmed... $ECHO_C" >&6
8456 if test "${ac_cv_lib_med_MEDouvrir+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 ac_check_lib_save_LIBS=$LIBS
8461 cat >conftest.$ac_ext <<_ACEOF
8462 #line $LINENO "configure"
8463 #include "confdefs.h"
8465 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8472 #ifdef F77_DUMMY_MAIN
8476 int F77_DUMMY_MAIN() { return 1; }
8486 rm -f conftest.$ac_objext conftest$ac_exeext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8488 (eval $ac_link) 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -s conftest$ac_exeext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_lib_med_MEDouvrir=yes
8500 echo "$as_me: failed program was:" >&5
8501 cat conftest.$ac_ext >&5
8502 ac_cv_lib_med_MEDouvrir=no
8504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_med_MEDouvrir" >&5
8508 echo "${ECHO_T}$ac_cv_lib_med_MEDouvrir" >&6
8509 if test $ac_cv_lib_med_MEDouvrir = yes; then
8519 if test "x$med2_ok" = "xyes"
8521 MED2_INCLUDES="-DPCLINUX $LOCAL_INCLUDES"
8522 MED2_LIBS="$LOCAL_LIBS"
8523 MED2_MT_LIBS="$LOCAL_LIBS"
8526 echo "$as_me:$LINENO: result: for med2: $med2_ok" >&5
8527 echo "${ECHO_T}for med2: $med2_ok" >&6
8532 echo ---------------------------------------------
8533 echo Testing OpenCascade
8534 echo ---------------------------------------------
8539 { echo "$as_me:$LINENO: checking for OpenCascade..." >&5
8540 echo "$as_me: checking for OpenCascade..." >&6;}
8545 ac_cpp='$CXXCPP $CPPFLAGS'
8546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8591 if test -z $CASROOT; then
8592 { echo "$as_me:$LINENO: WARNING: You must provide CASROOT variable : see OCC installation manual" >&5
8593 echo "$as_me: WARNING: You must provide CASROOT variable : see OCC installation manual" >&2;}
8597 ff=$CASROOT/inc/Standard_Version.hxx
8598 if test -f $ff ; then
8599 grep "define OCC_VERSION_MAJOR" $ff > /dev/null
8600 if test $? = 0 ; then
8601 OCC_VERSION_MAJOR=`grep "define OCC_VERSION_MAJOR" $ff | awk '{i=3 ; print $i}'`
8606 if test "x$occ_ok" = "xyes"; then
8609 CPPFLAGS_old="$CPPFLAGS"
8610 CPPFLAGS="$CPPFLAGS -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -Wno-deprecated -DHAVE_WOK_CONFIG_H"
8611 CXXFLAGS_old="$CXXFLAGS"
8612 CXXFLAGS="$CXXFLAGS -funsigned-char"
8614 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8615 echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
8616 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6
8617 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
8621 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6
8623 # Is the header compilable?
8624 echo "$as_me:$LINENO: checking Standard_Type.hxx usability" >&5
8625 echo $ECHO_N "checking Standard_Type.hxx usability... $ECHO_C" >&6
8626 cat >conftest.$ac_ext <<_ACEOF
8627 #line $LINENO "configure"
8628 #include "confdefs.h"
8629 $ac_includes_default
8630 #include <Standard_Type.hxx>
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -s conftest.$ac_objext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_header_compiler=yes
8646 echo "$as_me: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8648 ac_header_compiler=no
8650 rm -f conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking Standard_Type.hxx presence" >&5
8656 echo $ECHO_N "checking Standard_Type.hxx presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8658 #line $LINENO "configure"
8659 #include "confdefs.h"
8660 #include <Standard_Type.hxx>
8662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8665 egrep -v '^ *\+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } >/dev/null; then
8670 if test -s conftest.err; then
8671 ac_cpp_err=$ac_cxx_preproc_warn_flag
8678 if test -z "$ac_cpp_err"; then
8679 ac_header_preproc=yes
8681 echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 ac_header_preproc=no
8685 rm -f conftest.err conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8687 echo "${ECHO_T}$ac_header_preproc" >&6
8689 # So? What about this header?
8690 case $ac_header_compiler:$ac_header_preproc in
8692 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
8693 echo "$as_me: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
8694 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
8695 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;};;
8697 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: Standard_Type.hxx: present but cannot be compiled" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;};;
8704 echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
8705 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6
8706 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 ac_cv_header_Standard_Type_hxx=$ac_header_preproc
8711 echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
8712 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6
8715 if test $ac_cv_header_Standard_Type_hxx = yes; then
8723 CPPFLAGS="$CPPFLAGS_old"
8724 CXXFLAGS="$CXXFLAGS_old"
8727 if test "x$occ_ok" = xyes ; then
8729 CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DLIN -DLINTEL -DCSFDB -DNO_CXX_EXCEPTION -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -I$CASROOT/inc -DHAVE_WOK_CONFIG_H"
8730 CAS_CXXFLAGS="-funsigned-char"
8732 echo "$as_me:$LINENO: checking for OpenCascade libraries" >&5
8733 echo $ECHO_N "checking for OpenCascade libraries... $ECHO_C" >&6
8735 CPPFLAGS_old="$CPPFLAGS"
8736 CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS -Wno-deprecated"
8737 CXXFLAGS_old="$CXXFLAGS"
8738 CXXFLAGS="$CXXFLAGS $CAS_CXXFLAGS"
8740 LIBS="$LIBS -L$CASROOT/$casdir/lib -lTKernel"
8741 if test "${salome_cv_lib_occ+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.$ac_ext <<_ACEOF
8746 #line $LINENO "configure"
8747 #include "confdefs.h"
8748 using namespace std;
8749 #include <Standard_Type.hxx>
8751 #ifdef F77_DUMMY_MAIN
8755 int F77_DUMMY_MAIN() { return 1; }
8761 const Standard_CString aName="toto";
8762 Standard_Type myST(aName) ;
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 eval "salome_cv_lib_occ=yes"
8782 echo "$as_me: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 eval "salome_cv_lib_occ=no"
8786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 occ_ok="$salome_cv_lib_occ"
8792 CPPFLAGS="$CPPFLAGS_old"
8793 CXXFLAGS="$CXXFLAGS_old"
8797 if test "x$occ_ok" = xno ; then
8798 echo "$as_me:$LINENO: result: no" >&5
8799 echo "${ECHO_T}no" >&6
8800 { echo "$as_me:$LINENO: WARNING: Opencascade libraries not found" >&5
8801 echo "$as_me: WARNING: Opencascade libraries not found" >&2;}
8803 echo "$as_me:$LINENO: result: yes" >&5
8804 echo "${ECHO_T}yes" >&6
8805 CAS_LDPATH="-L$CASROOT/$casdir/lib "
8806 CAS_KERNEL="$CAS_LDPATH -lTKernel -lTKMath"
8807 CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKCAF -lFWOSPlugin -lTKPShape -lTKPCAF -lTKStdSchema -lTKShapeSchema -lPAppStdPlugin -lTKPAppStd -lTKCDF"
8808 CAS_VIEWER="$CAS_LDPATH -lTKOpenGl -lTKV3d -lTKService"
8809 # CAS_MODELER="-L$CASROOT/$casdir/lib -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKFeat -lTKOffset"
8810 CAS_MODELER="$CAS_LDPATH -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep -lTKGeomAlgo -lTKTopAlgo -lTKPrim -lTKBool -lTKHLR -lTKFillet -lTKOffset"
8811 CAS_DATAEXCHANGE="$CAS_LDPATH -lTKXSBase -lTKIGES -lTKSTEP -lTKShHealing -lTKShHealingStd"
8812 CAS_LDFLAGS="$CAS_KERNEL $CAS_OCAF $CAS_VIEWER $CAS_MODELER $CAS_DATAEXCHANGE"
8818 ac_cpp='$CPP $CPPFLAGS'
8819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827 echo ---------------------------------------------
8828 echo Testing html generators
8829 echo ---------------------------------------------
8834 #AC_CHECKING(for html generators)
8835 { echo "$as_me:$LINENO: checking for doxygen..." >&5
8836 echo "$as_me: checking for doxygen..." >&6;}
8841 # Extract the first word of "doxygen", so it can be a program name with args.
8842 set dummy doxygen; ac_word=$2
8843 echo "$as_me:$LINENO: checking for $ac_word" >&5
8844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8845 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8870 DOXYGEN=$ac_cv_path_DOXYGEN
8872 if test -n "$DOXYGEN"; then
8873 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8874 echo "${ECHO_T}$DOXYGEN" >&6
8876 echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6
8881 if test "x$DOXYGEN" = "x"
8884 echo "$as_me:$LINENO: result: no" >&5
8885 echo "${ECHO_T}no" >&6
8886 { echo "$as_me:$LINENO: WARNING: doxygen not found" >&5
8887 echo "$as_me: WARNING: doxygen not found" >&2;}
8889 echo "$as_me:$LINENO: result: yes" >&5
8890 echo "${ECHO_T}yes" >&6
8893 { echo "$as_me:$LINENO: checking for graphviz..." >&5
8894 echo "$as_me: checking for graphviz..." >&6;}
8899 # Extract the first word of "dot", so it can be a program name with args.
8900 set dummy dot; ac_word=$2
8901 echo "$as_me:$LINENO: checking for $ac_word" >&5
8902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903 if test "${ac_cv_path_DOT+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8918 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 if test -n "$DOT"; then
8931 echo "$as_me:$LINENO: result: $DOT" >&5
8932 echo "${ECHO_T}$DOT" >&6
8934 echo "$as_me:$LINENO: result: no" >&5
8935 echo "${ECHO_T}no" >&6
8939 if test "x$DOT" = "x" ; then
8941 echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8943 { echo "$as_me:$LINENO: WARNING: graphviz not found" >&5
8944 echo "$as_me: WARNING: graphviz not found" >&2;}
8946 echo "$as_me:$LINENO: result: yes" >&5
8947 echo "${ECHO_T}yes" >&6
8953 echo ---------------------------------------------
8955 echo ---------------------------------------------
8960 { echo "$as_me:$LINENO: checking for Kernel..." >&5
8961 echo "$as_me: checking for Kernel..." >&6;}
8966 # Check whether --with-kernel or --without-kernel was given.
8967 if test "${with_kernel+set}" = set; then
8968 withval="$with_kernel"
8969 KERNEL_DIR="$withval"
8974 if test "x$KERNEL_DIR" == "x" ; then
8976 # no --with-kernel-dir option used
8978 if test "x$KERNEL_ROOT_DIR" != "x" ; then
8980 # KERNEL_ROOT_DIR environment variable defined
8981 KERNEL_DIR=$KERNEL_ROOT_DIR
8985 # search Kernel binaries in PATH variable
8986 # Extract the first word of "runSalome", so it can be a program name with args.
8987 set dummy runSalome; ac_word=$2
8988 echo "$as_me:$LINENO: checking for $ac_word" >&5
8989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8990 if test "${ac_cv_path_TEMP+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8995 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 test -z "$as_dir" && as_dir=.
9003 for ac_exec_ext in '' $ac_executable_extensions; do
9004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9005 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9015 TEMP=$ac_cv_path_TEMP
9017 if test -n "$TEMP"; then
9018 echo "$as_me:$LINENO: result: $TEMP" >&5
9019 echo "${ECHO_T}$TEMP" >&6
9021 echo "$as_me:$LINENO: result: no" >&5
9022 echo "${ECHO_T}no" >&6
9025 if test "x$TEMP" != "x" ; then
9026 KERNEL_BIN_DIR=`dirname $TEMP`
9027 KERNEL_DIR=`dirname $KERNEL_BIN_DIR`
9034 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
9036 echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
9037 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6
9039 if test "x$KERNEL_ROOT_DIR" == "x" ; then
9040 KERNEL_ROOT_DIR=${KERNEL_DIR}
9042 if test "x$KERNEL_SITE_DIR" == "x" ; then
9043 KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
9049 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
9050 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
9053 echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
9054 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6
9059 echo ---------------------------------------------
9061 echo ---------------------------------------------
9066 { echo "$as_me:$LINENO: checking for Geom..." >&5
9067 echo "$as_me: checking for Geom..." >&6;}
9072 # Check whether --with-geom or --without-geom was given.
9073 if test "${with_geom+set}" = set; then
9074 withval="$with_geom"
9080 if test "x$GEOM_DIR" == "x" ; then
9082 # no --with-geom-dir option used
9084 if test "x$GEOM_ROOT_DIR" != "x" ; then
9086 # GEOM_ROOT_DIR environment variable defined
9087 GEOM_DIR=$GEOM_ROOT_DIR
9091 # search Geom binaries in PATH variable
9092 # Extract the first word of "libGEOM_Swig.py", so it can be a program name with args.
9093 set dummy libGEOM_Swig.py; ac_word=$2
9094 echo "$as_me:$LINENO: checking for $ac_word" >&5
9095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9096 if test "${ac_cv_path_TEMP+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
9104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 test -z "$as_dir" && as_dir=.
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9111 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 TEMP=$ac_cv_path_TEMP
9123 if test -n "$TEMP"; then
9124 echo "$as_me:$LINENO: result: $TEMP" >&5
9125 echo "${ECHO_T}$TEMP" >&6
9127 echo "$as_me:$LINENO: result: no" >&5
9128 echo "${ECHO_T}no" >&6
9131 if test "x$TEMP" != "x" ; then
9132 GEOM_BIN_DIR=`dirname $TEMP`
9133 GEOM_DIR=`dirname $GEOM_BIN_DIR`
9140 if test -f ${GEOM_DIR}/bin/salome/libGEOM_Swig.py ; then
9142 echo "$as_me:$LINENO: result: Using Geom module distribution in ${GEOM_DIR}" >&5
9143 echo "${ECHO_T}Using Geom module distribution in ${GEOM_DIR}" >&6
9145 if test "x$GEOM_ROOT_DIR" == "x" ; then
9146 GEOM_ROOT_DIR=${GEOM_DIR}
9151 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Geom module distribution\"" >&5
9152 echo "$as_me: WARNING: \"Cannot find compiled Geom module distribution\"" >&2;}
9155 echo "$as_me:$LINENO: result: for Geom: $Geom_ok" >&5
9156 echo "${ECHO_T}for Geom: $Geom_ok" >&6
9161 # echo ---------------------------------------------
9163 # echo ---------------------------------------------
9169 # echo ---------------------------------------------
9170 # echo Testing Netgen
9171 # echo ---------------------------------------------
9177 echo ---------------------------------------------
9179 echo ---------------------------------------------
9184 { echo "$as_me:$LINENO: checking for SMesh..." >&5
9185 echo "$as_me: checking for SMesh..." >&6;}
9190 # Check whether --with-smesh or --without-smesh was given.
9191 if test "${with_smesh+set}" = set; then
9192 withval="$with_smesh"
9193 SMESH_DIR="$withval"
9198 if test "x$SMESH_DIR" == "x" ; then
9200 # no --with-smesh option used
9202 if test "x$SMESH_ROOT_DIR" != "x" ; then
9204 # SMESH_ROOT_DIR environment variable defined
9205 SMESH_DIR=$SMESH_ROOT_DIR
9209 # search SMESH binaries in PATH variable
9210 # Extract the first word of "libSMESH_Swig.py", so it can be a program name with args.
9211 set dummy libSMESH_Swig.py; ac_word=$2
9212 echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9214 if test "${ac_cv_path_TEMP+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9229 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
9230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9239 TEMP=$ac_cv_path_TEMP
9241 if test -n "$TEMP"; then
9242 echo "$as_me:$LINENO: result: $TEMP" >&5
9243 echo "${ECHO_T}$TEMP" >&6
9245 echo "$as_me:$LINENO: result: no" >&5
9246 echo "${ECHO_T}no" >&6
9249 if test "x$TEMP" != "x" ; then
9250 SMESH_BIN_DIR=`dirname $TEMP`
9251 SMESH_DIR=`dirname $SMESH_BIN_DIR`
9258 if test -f ${SMESH_DIR}/bin/salome/libSMESH_Swig.py ; then
9260 echo "$as_me:$LINENO: result: Using SMesh module distribution in ${SMESH_DIR}" >&5
9261 echo "${ECHO_T}Using SMesh module distribution in ${SMESH_DIR}" >&6
9263 if test "x$SMESH_ROOT_DIR" == "x" ; then
9264 SMESH_ROOT_DIR=${SMESH_DIR}
9269 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SMesh module distribution\"" >&5
9270 echo "$as_me: WARNING: \"Cannot find compiled SMesh module distribution\"" >&2;}
9273 echo "$as_me:$LINENO: result: for SMesh: $SMesh_ok" >&5
9274 echo "${ECHO_T}for SMesh: $SMesh_ok" >&6
9279 echo ---------------------------------------------
9281 echo ---------------------------------------------
9287 { echo "$as_me:$LINENO: checking for GHS3D executable..." >&5
9288 echo "$as_me: checking for GHS3D executable..." >&6;}
9294 # Check whether --with-ghs3d or --without-ghs3d was given.
9295 if test "${with_ghs3d+set}" = set; then
9296 withval="$with_ghs3d"
9303 GHS3D_HOME="/dn05/salome/GHS3D/"
9304 GHS3D="/misc/dn05/salome/GHS3D/ghs3d3.1-1/bin/Linux/ghs3dV3.1-1"
9306 #if test "x$GHS3D_HOME" == "x" ; then
9308 # if test "x$GHS3DHOME" != "x" ; then
9310 # # GHS3DHOME environment variable defined
9311 # GHS3D_HOME=$GHS3DHOME
9317 if test "x$GHS3D_ok" == xno ; then
9318 echo "$as_me:$LINENO: result: no" >&5
9319 echo "${ECHO_T}no" >&6
9320 { echo "$as_me:$LINENO: WARNING: GHS3D libraries not found or not properly installed" >&5
9321 echo "$as_me: WARNING: GHS3D libraries not found or not properly installed" >&2;}
9323 echo "$as_me:$LINENO: result: yes" >&5
9324 echo "${ECHO_T}yes" >&6
9331 echo ---------------------------------------------
9333 echo ---------------------------------------------
9337 variables="cc_ok boost_ok threads_ok omniORB_ok occ_ok doxygen_ok Kernel_ok Geom_ok SMesh_ok GHS3D_ok"
9339 for var in $variables
9341 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
9346 echo "Default ORB : $DEFAULT_ORB"
9350 COMMENCE=adm_local/unix/make_commence
9351 CONCLUDE=salome_adm/unix/make_conclude
9352 MODULE=salome_adm/unix/make_module
9354 DEPEND=salome_adm/unix/depend
9356 if test "X$GMAKE" = "Xyes"; then
9362 # make other build directories
9364 salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources #idl
9366 # if test ! -d $rep ; then
9373 echo ---------------------------------------------
9374 echo copying resource files, shell scripts, and
9376 echo ---------------------------------------------
9381 #for i in `find $ROOT_SRCDIR -name 'resources' -print`
9383 # local_res=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9384 # local_res_dir=`echo $local_res | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
9385 # mkdir -p $local_res_dir
9393 #mkdir -p bin/salome
9395 #for i in $ROOT_SRCDIR/bin/*
9397 # local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9398 # case "$local_bin" in
9400 # ./bin/CVS | ./bin/salome) ;;
9401 # *) /usr/bin/install -C $i .; echo $local_bin ;;
9406 ENVSCRIPT=salome_adm/unix/envScript
9410 #for i in `find $ROOT_SRCDIR -name "*.xml" -print`
9413 # echo `echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
9419 echo ---------------------------------------------
9420 echo generating Makefiles and configure files
9421 echo ---------------------------------------------
9424 ac_config_commands="$ac_config_commands default-1"
9427 ## do not delete this line
9429 ln -fs ${KERNEL_ROOT_DIR}/salome_adm ${ROOT_SRCDIR}/salome_adm
9431 ac_config_files="$ac_config_files ./salome_adm/unix/SALOMEconfig.h ./salome_adm/unix/F77config.h ./salome_adm/unix/sstream ./salome_adm/unix/depend ./adm_local/unix/make_omniorb ./salome_adm/unix/envScript ./adm_local/unix/make_commence ./salome_adm/unix/make_conclude ./salome_adm/unix/make_module ./Makefile ./idl/Makefile ./src/Makefile"
9432 cat >confcache <<\_ACEOF
9433 # This file is a shell script that caches the results of configure
9434 # tests run on this system so they can be shared between configure
9435 # scripts and configure runs, see configure's option --config-cache.
9436 # It is not useful on other systems. If it contains results you don't
9437 # want to keep, you may remove or edit it.
9439 # config.status only pays attention to the cache file if you give it
9440 # the --recheck option to rerun configure.
9442 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9443 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9448 # The following way of writing the cache mishandles newlines in values,
9449 # but we know of no workaround that is simple, portable, and efficient.
9450 # So, don't put newlines in cache variables' values.
9451 # Ultrix sh set writes to stderr and can't be redirected directly,
9452 # and sets the high bit in the cache file unless we assign to the vars.
9455 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9457 # `set' does not quote correctly, so add quotes (double-quote
9458 # substitution turns \\\\ into \\, and sed turns \\ into \).
9461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9464 # `set' quotes correctly as required by POSIX, so do not add quotes.
9466 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9475 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9477 if cmp -s $cache_file confcache; then :; else
9478 if test -w $cache_file; then
9479 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9480 cat confcache >$cache_file
9482 echo "not updating unwritable cache $cache_file"
9487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9488 # Let make expand exec_prefix.
9489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9493 # trailing colons and then remove the whole line if VPATH becomes empty
9494 # (actually we leave an empty line to preserve line numbers).
9495 if test "x$srcdir" = x.; then
9496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9497 s/:*\$(srcdir):*/:/;
9498 s/:*\${srcdir}:*/:/;
9500 s/^\([^=]*=[ ]*\):*/\1/;
9506 # Transform confdefs.h into DEFS.
9507 # Protect against shell expansion while executing Makefile rules.
9508 # Protect against Makefile macro expansion.
9510 # If the first sed substitution is executed (which looks for macros that
9511 # take arguments), then we branch to the quote section. Otherwise,
9512 # look for a macro that doesn't take arguments.
9513 cat >confdef2opt.sed <<\_ACEOF
9516 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9518 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9522 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9528 # We use echo to avoid assuming a particular line-breaking character.
9529 # The extra dot is to prevent the shell from consuming trailing
9530 # line-breaks from the sub-command output. A line-break within
9531 # single-quotes doesn't work because, if this script is created in a
9532 # platform that uses two characters for line-breaks (e.g., DOS), tr
9534 ac_LF_and_DOT=`echo; echo .`
9535 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9536 rm -f confdef2opt.sed
9540 : ${CONFIG_STATUS=./config.status}
9541 ac_clean_files_save=$ac_clean_files
9542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9545 cat >$CONFIG_STATUS <<_ACEOF
9547 # Generated by $as_me.
9548 # Run this file to recreate the current configuration.
9549 # Compiler output produced by configure, useful for debugging
9550 # configure, is in config.log if it exists.
9553 SHELL=\${CONFIG_SHELL-$SHELL}
9556 cat >>$CONFIG_STATUS <<\_ACEOF
9558 ## --------------------- ##
9559 ## M4sh Initialization. ##
9560 ## --------------------- ##
9562 # Be Bourne compatible
9563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9566 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9571 # Support unset when possible.
9572 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9578 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9579 { $as_unset LANG || test "${LANG+set}" != set; } ||
9580 { LANG=C; export LANG; }
9581 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9582 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9583 { LC_ALL=C; export LC_ALL; }
9584 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9585 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9586 { LC_TIME=C; export LC_TIME; }
9587 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9588 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9589 { LC_CTYPE=C; export LC_CTYPE; }
9590 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9591 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9592 { LANGUAGE=C; export LANGUAGE; }
9593 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9594 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9595 { LC_COLLATE=C; export LC_COLLATE; }
9596 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9597 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9598 { LC_NUMERIC=C; export LC_NUMERIC; }
9599 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9600 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9601 { LC_MESSAGES=C; export LC_MESSAGES; }
9604 # Name of the executable.
9605 as_me=`(basename "$0") 2>/dev/null ||
9606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9607 X"$0" : 'X\(//\)$' \| \
9608 X"$0" : 'X\(/\)$' \| \
9609 . : '\(.\)' 2>/dev/null ||
9611 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9612 /^X\/\(\/\/\)$/{ s//\1/; q; }
9613 /^X\/\(\/\).*/{ s//\1/; q; }
9616 # PATH needs CR, and LINENO needs CR and PATH.
9617 # Avoid depending upon Character Ranges.
9618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9621 as_cr_digits='0123456789'
9622 as_cr_alnum=$as_cr_Letters$as_cr_digits
9624 # The user is always right.
9625 if test "${PATH_SEPARATOR+set}" != set; then
9626 echo "#! /bin/sh" >conftest.sh
9627 echo "exit 0" >>conftest.sh
9628 chmod +x conftest.sh
9629 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9640 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9641 test "x$as_lineno_1" != "x$as_lineno_2" &&
9642 test "x$as_lineno_3" = "x$as_lineno_2" || {
9643 # Find who we are. Look in the path if we contain no path at all
9646 *[\\/]* ) as_myself=$0 ;;
9647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir=.
9652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9657 # We did not find ourselves, most probably we were run as `sh COMMAND'
9658 # in which case we are not to be found in the path.
9659 if test "x$as_myself" = x; then
9662 if test ! -f "$as_myself"; then
9663 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9664 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9665 { (exit 1); exit 1; }; }
9667 case $CONFIG_SHELL in
9669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9673 test -z "$as_dir" && as_dir=.
9674 for as_base in sh bash ksh sh5; do
9677 if ("$as_dir/$as_base" -c '
9680 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9681 test "x$as_lineno_1" != "x$as_lineno_2" &&
9682 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9683 CONFIG_SHELL=$as_dir/$as_base
9685 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9693 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9694 # uniformly replaced by the line number. The first 'sed' inserts a
9695 # line-number line before each line; the second 'sed' does the real
9696 # work. The second script uses 'N' to pair each line-number line
9697 # with the numbered line, and appends trailing '-' during
9698 # substitution so that $LINENO is not a special case at line end.
9699 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9700 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9701 sed '=' <$as_myself |
9706 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9709 s,^['$as_cr_digits']*\n,,
9711 chmod +x $as_me.lineno ||
9712 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9713 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9714 { (exit 1); exit 1; }; }
9716 # Don't try to exec as it changes $[0], causing all sort of problems
9717 # (the dirname of $[0] is not the place where we might find the
9718 # original and so on. Autoconf is especially sensible to this).
9720 # Exit status is that of the last command.
9725 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9726 *c*,-n*) ECHO_N= ECHO_C='
9728 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9729 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9732 if expr a : '\(a\)' >/dev/null 2>&1; then
9738 rm -f conf$$ conf$$.exe conf$$.file
9740 if ln -s conf$$.file conf$$ 2>/dev/null; then
9741 # We could just check for DJGPP; but this test a) works b) is more generic
9742 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9743 if test -f conf$$.exe; then
9744 # Don't use ln at all; we don't have any links
9749 elif ln conf$$.file conf$$ 2>/dev/null; then
9754 rm -f conf$$ conf$$.exe conf$$.file
9756 as_executable_p="test -f"
9758 # Sed expression to map a string onto a valid CPP name.
9759 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9761 # Sed expression to map a string onto a valid variable name.
9762 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9766 # We need space, tab and new line, in precisely that order.
9772 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9776 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9777 # report actual input values of CONFIG_FILES etc. instead of their
9778 # values after options handling. Logging --version etc. is OK.
9782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9783 ## Running $as_me. ##
9788 This file was extended by $as_me, which was
9789 generated by GNU Autoconf 2.53. Invocation command line was
9791 CONFIG_FILES = $CONFIG_FILES
9792 CONFIG_HEADERS = $CONFIG_HEADERS
9793 CONFIG_LINKS = $CONFIG_LINKS
9794 CONFIG_COMMANDS = $CONFIG_COMMANDS
9798 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9802 # Files that config.status was made for.
9803 if test -n "$ac_config_files"; then
9804 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9807 if test -n "$ac_config_headers"; then
9808 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9811 if test -n "$ac_config_links"; then
9812 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9815 if test -n "$ac_config_commands"; then
9816 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9819 cat >>$CONFIG_STATUS <<\_ACEOF
9822 \`$as_me' instantiates files from templates according to the
9823 current configuration.
9825 Usage: $0 [OPTIONS] [FILE]...
9827 -h, --help print this help, then exit
9828 -V, --version print version number, then exit
9829 -d, --debug don't remove temporary files
9830 --recheck update $as_me by reconfiguring in the same conditions
9831 --file=FILE[:TEMPLATE]
9832 instantiate the configuration file FILE
9834 Configuration files:
9837 Configuration commands:
9840 Report bugs to <bug-autoconf@gnu.org>."
9843 cat >>$CONFIG_STATUS <<_ACEOF
9846 configured by $0, generated by GNU Autoconf 2.53,
9847 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9849 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9850 Free Software Foundation, Inc.
9851 This config.status script is free software; the Free Software Foundation
9852 gives unlimited permission to copy, distribute and modify it."
9857 cat >>$CONFIG_STATUS <<\_ACEOF
9858 # If no file are specified by the user, then we need to provide default
9859 # value. By we need to know if files were specified by the user.
9865 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9866 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9868 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9872 *) # This is not an option, so the user has probably given explicit
9874 ac_need_defaults=false;;
9878 # Handling of the options.
9880 cat >>$CONFIG_STATUS <<_ACEOF
9881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9882 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9883 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9885 cat >>$CONFIG_STATUS <<\_ACEOF
9886 --version | --vers* | -V )
9887 echo "$ac_cs_version"; exit 0 ;;
9889 # Conflict between --help and --header
9890 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9891 Try \`$0 --help' for more information." >&5
9892 echo "$as_me: error: ambiguous option: $1
9893 Try \`$0 --help' for more information." >&2;}
9894 { (exit 1); exit 1; }; };;
9895 --help | --hel | -h )
9896 echo "$ac_cs_usage"; exit 0 ;;
9897 --debug | --d* | -d )
9899 --file | --fil | --fi | --f )
9901 CONFIG_FILES="$CONFIG_FILES $1"
9902 ac_need_defaults=false;;
9903 --header | --heade | --head | --hea )
9905 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9906 ac_need_defaults=false;;
9909 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9910 Try \`$0 --help' for more information." >&5
9911 echo "$as_me: error: unrecognized option: $1
9912 Try \`$0 --help' for more information." >&2;}
9913 { (exit 1); exit 1; }; } ;;
9915 *) ac_config_targets="$ac_config_targets $1" ;;
9923 cat >>$CONFIG_STATUS <<_ACEOF
9925 # INIT-COMMANDS section.
9934 cat >>$CONFIG_STATUS <<\_ACEOF
9935 for ac_config_target in $ac_config_targets
9937 case "$ac_config_target" in
9938 # Handling of arguments.
9939 "./salome_adm/unix/SALOMEconfig.h" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/SALOMEconfig.h" ;;
9940 "./salome_adm/unix/F77config.h" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/F77config.h" ;;
9941 "./salome_adm/unix/sstream" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/sstream" ;;
9942 "./salome_adm/unix/depend" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/depend" ;;
9943 "./adm_local/unix/make_omniorb" ) CONFIG_FILES="$CONFIG_FILES ./adm_local/unix/make_omniorb" ;;
9944 "./salome_adm/unix/envScript" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/envScript" ;;
9945 "./adm_local/unix/make_commence" ) CONFIG_FILES="$CONFIG_FILES ./adm_local/unix/make_commence" ;;
9946 "./salome_adm/unix/make_conclude" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/make_conclude" ;;
9947 "./salome_adm/unix/make_module" ) CONFIG_FILES="$CONFIG_FILES ./salome_adm/unix/make_module" ;;
9948 "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
9949 "./idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./idl/Makefile" ;;
9950 "./src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/Makefile" ;;
9951 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9952 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9953 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9954 { (exit 1); exit 1; }; };;
9958 # If the user did not use the arguments to specify the items to instantiate,
9959 # then the envvar interface is used. Set only those that are not.
9960 # We use the long form for the default assignment because of an extremely
9961 # bizarre bug on SunOS 4.1.3.
9962 if $ac_need_defaults; then
9963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9964 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9967 # Create a temporary directory, and hook for its removal unless debugging.
9970 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9971 trap '{ (exit 1); exit 1; }' 1 2 13 15
9974 # Create a (secure) tmp directory for tmp files.
9977 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9978 test -n "$tmp" && test -d "$tmp"
9981 tmp=$TMPDIR/cs$$-$RANDOM
9982 (umask 077 && mkdir $tmp)
9985 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9986 { (exit 1); exit 1; }
9991 cat >>$CONFIG_STATUS <<_ACEOF
9994 # CONFIG_FILES section.
9997 # No need to generate the scripts if there are no CONFIG_FILES.
9998 # This happens for instance when ./config.status config.h
9999 if test -n "\$CONFIG_FILES"; then
10000 # Protect against being on the right side of a sed subst in config.status.
10001 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10002 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10003 s,@SHELL@,$SHELL,;t t
10004 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10005 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10006 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10007 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10008 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10009 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10010 s,@exec_prefix@,$exec_prefix,;t t
10011 s,@prefix@,$prefix,;t t
10012 s,@program_transform_name@,$program_transform_name,;t t
10013 s,@bindir@,$bindir,;t t
10014 s,@sbindir@,$sbindir,;t t
10015 s,@libexecdir@,$libexecdir,;t t
10016 s,@datadir@,$datadir,;t t
10017 s,@sysconfdir@,$sysconfdir,;t t
10018 s,@sharedstatedir@,$sharedstatedir,;t t
10019 s,@localstatedir@,$localstatedir,;t t
10020 s,@libdir@,$libdir,;t t
10021 s,@includedir@,$includedir,;t t
10022 s,@oldincludedir@,$oldincludedir,;t t
10023 s,@infodir@,$infodir,;t t
10024 s,@mandir@,$mandir,;t t
10025 s,@build_alias@,$build_alias,;t t
10026 s,@host_alias@,$host_alias,;t t
10027 s,@target_alias@,$target_alias,;t t
10028 s,@DEFS@,$DEFS,;t t
10029 s,@ECHO_C@,$ECHO_C,;t t
10030 s,@ECHO_N@,$ECHO_N,;t t
10031 s,@ECHO_T@,$ECHO_T,;t t
10032 s,@LIBS@,$LIBS,;t t
10033 s,@build@,$build,;t t
10034 s,@build_cpu@,$build_cpu,;t t
10035 s,@build_vendor@,$build_vendor,;t t
10036 s,@build_os@,$build_os,;t t
10037 s,@host@,$host,;t t
10038 s,@host_cpu@,$host_cpu,;t t
10039 s,@host_vendor@,$host_vendor,;t t
10040 s,@host_os@,$host_os,;t t
10041 s,@PACKAGE@,$PACKAGE,;t t
10042 s,@VERSION@,$VERSION,;t t
10043 s,@ROOT_SRCDIR@,$ROOT_SRCDIR,;t t
10044 s,@ROOT_BUILDDIR@,$ROOT_BUILDDIR,;t t
10046 s,@SET_MAKE@,$SET_MAKE,;t t
10047 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10048 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10049 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10050 s,@RANLIB@,$RANLIB,;t t
10051 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10053 s,@CFLAGS@,$CFLAGS,;t t
10054 s,@LDFLAGS@,$LDFLAGS,;t t
10055 s,@CPPFLAGS@,$CPPFLAGS,;t t
10056 s,@ac_ct_CC@,$ac_ct_CC,;t t
10057 s,@EXEEXT@,$EXEEXT,;t t
10058 s,@OBJEXT@,$OBJEXT,;t t
10059 s,@LN_S@,$LN_S,;t t
10060 s,@LIBTOOL@,$LIBTOOL,;t t
10062 s,@CXXFLAGS@,$CXXFLAGS,;t t
10063 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10064 s,@C_DEPEND_FLAG@,$C_DEPEND_FLAG,;t t
10065 s,@CXX_DEPEND_FLAG@,$CXX_DEPEND_FLAG,;t t
10066 s,@HAVE_SSTREAM@,$HAVE_SSTREAM,;t t
10067 s,@BOOST_CPPFLAGS@,$BOOST_CPPFLAGS,;t t
10068 s,@CXXCPP@,$CXXCPP,;t t
10070 s,@MPICH_INCLUDES@,$MPICH_INCLUDES,;t t
10071 s,@MPICH_LIBS@,$MPICH_LIBS,;t t
10072 s,@WITHMPICH@,$WITHMPICH,;t t
10073 s,@YACC@,$YACC,;t t
10075 s,@LEXLIB@,$LEXLIB,;t t
10076 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10077 s,@PYTHON@,$PYTHON,;t t
10078 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
10079 s,@PYTHONHOME@,$PYTHONHOME,;t t
10080 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
10081 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
10082 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
10083 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
10084 s,@PYTHON_SITE@,$PYTHON_SITE,;t t
10085 s,@PYTHON_SITE_PACKAGE@,$PYTHON_SITE_PACKAGE,;t t
10086 s,@PYTHON_SITE_EXEC@,$PYTHON_SITE_EXEC,;t t
10087 s,@PYTHON_SITE_INSTALL@,$PYTHON_SITE_INSTALL,;t t
10088 s,@pythondir@,$pythondir,;t t
10089 s,@SWIG@,$SWIG,;t t
10090 s,@SWIG_FLAGS@,$SWIG_FLAGS,;t t
10091 s,@target@,$target,;t t
10092 s,@target_cpu@,$target_cpu,;t t
10093 s,@target_vendor@,$target_vendor,;t t
10094 s,@target_os@,$target_os,;t t
10095 s,@OMNIORB_IDL@,$OMNIORB_IDL,;t t
10096 s,@OMNIORB_ROOT@,$OMNIORB_ROOT,;t t
10097 s,@OMNIORB_INCLUDES@,$OMNIORB_INCLUDES,;t t
10098 s,@OMNIORB_CXXFLAGS@,$OMNIORB_CXXFLAGS,;t t
10099 s,@OMNIORB_LIBS@,$OMNIORB_LIBS,;t t
10100 s,@OMNIORB_IDLCXXFLAGS@,$OMNIORB_IDLCXXFLAGS,;t t
10101 s,@OMNIORB_IDLPYFLAGS@,$OMNIORB_IDLPYFLAGS,;t t
10102 s,@OMNIORB_IDL_CLN_H@,$OMNIORB_IDL_CLN_H,;t t
10103 s,@OMNIORB_IDL_CLN_CXX@,$OMNIORB_IDL_CLN_CXX,;t t
10104 s,@OMNIORB_IDL_CLN_OBJ@,$OMNIORB_IDL_CLN_OBJ,;t t
10105 s,@OMNIORB_IDL_SRV_H@,$OMNIORB_IDL_SRV_H,;t t
10106 s,@OMNIORB_IDL_SRV_CXX@,$OMNIORB_IDL_SRV_CXX,;t t
10107 s,@OMNIORB_IDL_SRV_OBJ@,$OMNIORB_IDL_SRV_OBJ,;t t
10108 s,@OMNIORB_IDL_TIE_H@,$OMNIORB_IDL_TIE_H,;t t
10109 s,@OMNIORB_IDL_TIE_CXX@,$OMNIORB_IDL_TIE_CXX,;t t
10110 s,@PYTHONPATH@,$PYTHONPATH,;t t
10112 s,@CORBA_ROOT@,$CORBA_ROOT,;t t
10113 s,@CORBA_INCLUDES@,$CORBA_INCLUDES,;t t
10114 s,@CORBA_CXXFLAGS@,$CORBA_CXXFLAGS,;t t
10115 s,@CORBA_LIBS@,$CORBA_LIBS,;t t
10116 s,@IDLCXXFLAGS@,$IDLCXXFLAGS,;t t
10117 s,@IDLPYFLAGS@,$IDLPYFLAGS,;t t
10118 s,@IDL_CLN_H@,$IDL_CLN_H,;t t
10119 s,@IDL_CLN_CXX@,$IDL_CLN_CXX,;t t
10120 s,@IDL_CLN_OBJ@,$IDL_CLN_OBJ,;t t
10121 s,@IDL_SRV_H@,$IDL_SRV_H,;t t
10122 s,@IDL_SRV_CXX@,$IDL_SRV_CXX,;t t
10123 s,@IDL_SRV_OBJ@,$IDL_SRV_OBJ,;t t
10126 s,@OGL_INCLUDES@,$OGL_INCLUDES,;t t
10127 s,@OGL_LIBS@,$OGL_LIBS,;t t
10130 s,@QTDIR@,$QTDIR,;t t
10131 s,@QT_ROOT@,$QT_ROOT,;t t
10132 s,@QT_INCLUDES@,$QT_INCLUDES,;t t
10133 s,@QT_LIBS@,$QT_LIBS,;t t
10134 s,@QT_MT_LIBS@,$QT_MT_LIBS,;t t
10135 s,@VTK_INCLUDES@,$VTK_INCLUDES,;t t
10136 s,@VTK_LIBS@,$VTK_LIBS,;t t
10137 s,@VTKPY_MODULES@,$VTKPY_MODULES,;t t
10138 s,@HDF5_INCLUDES@,$HDF5_INCLUDES,;t t
10139 s,@HDF5_LIBS@,$HDF5_LIBS,;t t
10140 s,@HDF5_MT_LIBS@,$HDF5_MT_LIBS,;t t
10141 s,@MED2_INCLUDES@,$MED2_INCLUDES,;t t
10142 s,@MED2_LIBS@,$MED2_LIBS,;t t
10143 s,@MED2_MT_LIBS@,$MED2_MT_LIBS,;t t
10144 s,@CAS_CPPFLAGS@,$CAS_CPPFLAGS,;t t
10145 s,@CAS_CXXFLAGS@,$CAS_CXXFLAGS,;t t
10146 s,@CAS_KERNEL@,$CAS_KERNEL,;t t
10147 s,@CAS_VIEWER@,$CAS_VIEWER,;t t
10148 s,@CAS_MODELER@,$CAS_MODELER,;t t
10149 s,@CAS_OCAF@,$CAS_OCAF,;t t
10150 s,@CAS_DATAEXCHANGE@,$CAS_DATAEXCHANGE,;t t
10151 s,@CAS_LDFLAGS@,$CAS_LDFLAGS,;t t
10152 s,@CAS_LDPATH@,$CAS_LDPATH,;t t
10153 s,@DOXYGEN@,$DOXYGEN,;t t
10155 s,@TEMP@,$TEMP,;t t
10156 s,@KERNEL_ROOT_DIR@,$KERNEL_ROOT_DIR,;t t
10157 s,@KERNEL_SITE_DIR@,$KERNEL_SITE_DIR,;t t
10158 s,@GEOM_ROOT_DIR@,$GEOM_ROOT_DIR,;t t
10159 s,@SMESH_ROOT_DIR@,$SMESH_ROOT_DIR,;t t
10160 /@COMMENCE@/r $COMMENCE
10162 /@CONCLUDE@/r $CONCLUDE
10164 /@MODULE@/r $MODULE
10166 /@DEPEND@/r $DEPEND
10168 s,@SETX@,$SETX,;t t
10169 /@ENVSCRIPT@/r $ENVSCRIPT
10170 s,@ENVSCRIPT@,,;t t
10175 cat >>$CONFIG_STATUS <<\_ACEOF
10176 # Split the substitutions into bite-sized pieces for seds with
10177 # small command number limits, like on Digital OSF/1 and HP-UX.
10178 ac_max_sed_lines=48
10179 ac_sed_frag=1 # Number of current file.
10180 ac_beg=1 # First line for current file.
10181 ac_end=$ac_max_sed_lines # Line after last line for current file.
10184 while $ac_more_lines; do
10185 if test $ac_beg -gt 1; then
10186 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10188 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10190 if test ! -s $tmp/subs.frag; then
10191 ac_more_lines=false
10193 # The purpose of the label and of the branching condition is to
10194 # speed up the sed processing (if there are no `@' at all, there
10195 # is no need to browse any of the substitutions).
10196 # These are the two extra sed commands mentioned above.
10198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10199 if test -z "$ac_sed_cmds"; then
10200 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10202 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10204 ac_sed_frag=`expr $ac_sed_frag + 1`
10206 ac_end=`expr $ac_end + $ac_max_sed_lines`
10209 if test -z "$ac_sed_cmds"; then
10212 fi # test -n "$CONFIG_FILES"
10215 cat >>$CONFIG_STATUS <<\_ACEOF
10216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10219 - | *:- | *:-:* ) # input from stdin
10221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10225 * ) ac_file_in=$ac_file.in ;;
10228 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10231 X"$ac_file" : 'X\(//\)[^/]' \| \
10232 X"$ac_file" : 'X\(//\)$' \| \
10233 X"$ac_file" : 'X\(/\)' \| \
10234 . : '\(.\)' 2>/dev/null ||
10236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10238 /^X\(\/\/\)$/{ s//\1/; q; }
10239 /^X\(\/\).*/{ s//\1/; q; }
10241 { case "$ac_dir" in
10242 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10246 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10247 case $as_mkdir_dir in
10248 # Skip DOS drivespec
10249 ?:) as_incr_dir=$as_mkdir_dir ;;
10251 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10252 test -d "$as_incr_dir" ||
10253 mkdir "$as_incr_dir" ||
10254 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10255 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10256 { (exit 1); exit 1; }; }
10263 if test "$ac_dir" != .; then
10264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10265 # A "../" for each directory in $ac_dir_suffix.
10266 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10268 ac_dir_suffix= ac_top_builddir=
10272 .) # No --srcdir option. We are building in place.
10274 if test -z "$ac_top_builddir"; then
10277 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10279 [\\/]* | ?:[\\/]* ) # Absolute path.
10280 ac_srcdir=$srcdir$ac_dir_suffix;
10281 ac_top_srcdir=$srcdir ;;
10282 *) # Relative path.
10283 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10284 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10286 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10288 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10289 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10290 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10291 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10296 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10299 if test x"$ac_file" != x-; then
10300 { echo "$as_me:$LINENO: creating $ac_file" >&5
10301 echo "$as_me: creating $ac_file" >&6;}
10304 # Let's still pretend it is `configure' which instantiates (i.e., don't
10305 # use $as_me), people would be surprised to read:
10306 # /* config.h. Generated by config.status. */
10307 if test x"$ac_file" = x-; then
10310 configure_input="$ac_file. "
10312 configure_input=$configure_input"Generated from `echo $ac_file_in |
10313 sed 's,.*/,,'` by configure."
10315 # First look for the input files in the build tree, otherwise in the
10317 ac_file_inputs=`IFS=:
10318 for f in $ac_file_in; do
10320 -) echo $tmp/stdin ;;
10322 # Absolute (can't be DOS-style, as IFS=:)
10323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10324 echo "$as_me: error: cannot find input file: $f" >&2;}
10325 { (exit 1); exit 1; }; }
10328 if test -f "$f"; then
10331 elif test -f "$srcdir/$f"; then
10336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10337 echo "$as_me: error: cannot find input file: $f" >&2;}
10338 { (exit 1); exit 1; }; }
10341 done` || { (exit 1); exit 1; }
10343 cat >>$CONFIG_STATUS <<_ACEOF
10347 cat >>$CONFIG_STATUS <<\_ACEOF
10349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10350 s,@configure_input@,$configure_input,;t t
10351 s,@srcdir@,$ac_srcdir,;t t
10352 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10353 s,@top_srcdir@,$ac_top_srcdir,;t t
10354 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10355 s,@builddir@,$ac_builddir,;t t
10356 s,@abs_builddir@,$ac_abs_builddir,;t t
10357 s,@top_builddir@,$ac_top_builddir,;t t
10358 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10359 s,@INSTALL@,$ac_INSTALL,;t t
10360 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10362 if test x"$ac_file" != x-; then
10363 mv $tmp/out $ac_file
10371 cat >>$CONFIG_STATUS <<\_ACEOF
10374 # CONFIG_COMMANDS section.
10376 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10377 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10378 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10379 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10380 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10381 X"$ac_dest" : 'X\(//\)[^/]' \| \
10382 X"$ac_dest" : 'X\(//\)$' \| \
10383 X"$ac_dest" : 'X\(/\)' \| \
10384 . : '\(.\)' 2>/dev/null ||
10386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10388 /^X\(\/\/\)$/{ s//\1/; q; }
10389 /^X\(\/\).*/{ s//\1/; q; }
10393 if test "$ac_dir" != .; then
10394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10395 # A "../" for each directory in $ac_dir_suffix.
10396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10398 ac_dir_suffix= ac_top_builddir=
10402 .) # No --srcdir option. We are building in place.
10404 if test -z "$ac_top_builddir"; then
10407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10409 [\\/]* | ?:[\\/]* ) # Absolute path.
10410 ac_srcdir=$srcdir$ac_dir_suffix;
10411 ac_top_srcdir=$srcdir ;;
10412 *) # Relative path.
10413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10416 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10418 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10419 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10420 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10421 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10424 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10425 echo "$as_me: executing $ac_dest commands" >&6;}
10434 cat >>$CONFIG_STATUS <<\_ACEOF
10436 { (exit 0); exit 0; }
10438 chmod +x $CONFIG_STATUS
10439 ac_clean_files=$ac_clean_files_save
10442 # configure is writing to config.log, and then calls config.status.
10443 # config.status does its own redirection, appending to config.log.
10444 # Unfortunately, on DOS this fails, as config.log is still kept open
10445 # by configure, so config.status won't be able to write to it; its
10446 # output is simply discarded. So we exec the FD to /dev/null,
10447 # effectively closing config.log, so it can be properly (re)opened and
10448 # appended to by config.status. When coming back to configure, we
10449 # need to make the FD available again.
10450 if test "$no_create" != yes; then
10453 $SHELL $CONFIG_STATUS || ac_cs_success=false
10455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10456 # would make configure fail if this is the last instruction.
10457 $ac_cs_success || { (exit 1); exit 1; }