root/juggler/branches/2.2/modules/tweek/configure.ac

Revision 20711, 47.5 kB (checked in by patrick, 1 year ago)

More version number updates. These a minor (and probably unnoticed by everyone
but me), but I can't let them slip by.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 # ************** <auto-copyright.pl BEGIN do not edit this line> **************
2 #
3 # VR Juggler is (C) Copyright 1998-2007 by Iowa State University
4 #
5 # Original Authors:
6 #   Allen Bierbaum, Christopher Just,
7 #   Patrick Hartling, Kevin Meinert,
8 #   Carolina Cruz-Neira, Albert Baker
9 #
10 # This library is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU Library General Public
12 # License as published by the Free Software Foundation; either
13 # version 2 of the License, or (at your option) any later version.
14 #
15 # This library is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 # Library General Public License for more details.
19 #
20 # You should have received a copy of the GNU Library General Public
21 # License along with this library; if not, write to the
22 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 # Boston, MA 02111-1307, USA.
24 #
25 # ************** <auto-copyright.pl END do not edit this line> ****************
26
27 # -----------------------------------------------------------------------------
28 # Base configure.in for Tweek.
29 # -----------------------------------------------------------------------------
30 # This file is "compiled" by GNU autoconf to generate the configure script
31 # that is actually run.
32 # -----------------------------------------------------------------------------
33
34 AC_INIT([Tweek], [1.2], [vrjuggler-devel@lists.sourceforge.net])
35 AC_CONFIG_HEADERS([tweek/tweekDefines.h])
36 AC_PREREQ([2.53])
37 AC_COPYRIGHT([VR Juggler is (C) Copyright 1998-2007 by Iowa State University])
38 AC_CONFIG_SRCDIR([tweek/tweekConfig.h])
39 AC_REVISION($Revision$)
40 AC_CONFIG_AUX_DIR([../../share/config])
41 DPP_PREREQ([2.1.2])
42 DPP_INIT
43
44 DPP_GEN_RECONFIG
45
46 # -----------------------------------------------------------------------------
47 # Command-line arguments (--enable-option, --with-pkg=package_name).
48 # -----------------------------------------------------------------------------
49
50 # ------------------------------------------------------ #
51 # --enable-feature[=arg] and --disable-feature arguments #
52 # ------------------------------------------------------ #
53
54 DPP_STD_CPP(yes)
55
56 #AC_ARG_ENABLE(jdk-orb,
57 #              [  --enable-jdk-orb        Use Java IDL (requires JDK 1.4) [default=no]],
58 #              _enable_jdk_orb="$enable_val", _enable_jdk_orb='no')
59
60 AC_ARG_ENABLE(extensions,
61               [  --enable-extensions     Build in Tweek extensions       [default=yes]],
62               use_tweek_extensions="$enableval", use_tweek_extensions='yes')
63
64 # Enable versioning by default
65 AC_ARG_ENABLE([versioning],
66               [  --disable-versioning    Disable all versioning capabilities],
67               [ENABLE_VERSIONING="$enableval"], [ENABLE_VERSIONING='yes'])
68
69 # -------------------------------------------- #
70 # --with-pkg[=arg] and --without-pkg arguments #
71 # -------------------------------------------- #
72
73 # Override the C compiler that configure would otherwise find itself.
74 AC_ARG_WITH(cc, [  --with-cc=<PATH>        Alternate C compiler ],
75             _alt_cc="$withval", _alt_cc='none')
76
77 # Override the C++ compiler that configure would otherwise find itself.
78 AC_ARG_WITH(cxx, [  --with-cxx=<PATH>       Alternate C++ compiler ],
79             _alt_cxx="$withval", _alt_cxx='none')
80
81 AC_ARG_WITH(cxx-orb,
82             [  --with-cxx-orb=<NAME>   Name of C++ ORB to use          [default=omniORB4]
83                           Allowed values are:
84                             omniORB4, TAO],
85             cxx_orb_name="$withval", cxx_orb_name='omniORB4')
86
87 AC_ARG_WITH(cxx-orb-root,
88             [  --with-cxx-orb-root=<PATH>                              [default=/usr]
89                           Root directory of C++ ORB
90                           installation],
91             cxx_orb_root="$withval", cxx_orb_root='/usr')
92
93 AC_ARG_WITH(cxx-orb-bin,
94             [  --with-cxx-orb-bin=<PATH>                               [default=/usr/bin]
95                           Path to C++ ORB executables],
96             cxx_orb_bin_dir="$withval", cxx_orb_bin_dir='none')
97
98 AC_ARG_WITH(cxx-orb-lib,
99             [  --with-cxx-orb-lib=<PATH>                               [default=/usr/lib]
100                           Path to C++ ORB libraries],
101             cxx_orb_lib_dir="$withval", cxx_orb_lib_dir='none')
102
103 AC_ARG_WITH(python,
104             [  --with-python=<PATH>    Path to Python installation     [No default]],
105             python_root="$withval", python_root='none')
106
107 AC_ARG_WITH(python-orb,
108             [  --with-python-orb=<NAME> Name of Python ORB to use      [default=omniORBpy]
109                           Allowed values are:
110                             omniORBpy],
111             python_orb_name="$withval", python_orb_name='omniORBpy')
112
113 AC_ARG_WITH(python-orb-root,
114             [  --with-python-orb-root=<PATH>                           [default=/usr]
115                           Root directory of Python ORB
116                           installation],
117             python_orb_root="$withval", python_orb_root='/usr')
118
119 AC_ARG_WITH(python-orb-bin,
120             [  --with-python-orb-bin=<PATH>                            [default=/usr/bin]
121                           Path to Python ORB executables],
122             python_orb_bin_dir="$withval", python_orb_bin_dir='none')
123
124 AC_ARG_WITH(python-orb-lib,
125             [  --with-python-orb-lib=<PATH>                            [default=/usr/lib/pythonX.Y/site-packages]
126                           Path to Python ORB package],
127             python_orb_lib_dir="$withval", python_orb_lib_dir='none')
128
129 AC_ARG_WITH(java-orb,
130             [  --with-java-orb=<NAME>  Name of Java ORB to use         [default=JDK]
131                           Allowed values are:
132                             JDK, OpenORB, JacORB],
133             java_orb_name="$withval", java_orb_name='JDK')
134
135 AC_ARG_WITH(java-orb-jar,
136             [  --with-java-orb-jar=<PATH>
137                           Path to Java ORB JAR file(s)],
138             JAVA_ORB_JAR="$withval", JAVA_ORB_JAR='none')
139
140 AC_ARG_WITH(idl-java,
141             [  --with-idl-java=<PATH>  Path to Java IDL compiler ],
142             _idl_java="$withval", _idl_java='no')
143
144 AC_ARG_WITH(junit, [  --with-junit=<PATH>     Path to JUnit JAR file(s) ],
145             JUNIT_JAR="$withval", JUNIT_JAR='none')
146
147 DPP_ABI_SETUP
148
149 # -----------------------------------------------------------------------------
150 # System-dependent stuff.
151 # -----------------------------------------------------------------------------
152
153 # Define macros and helpers useful when working in a Win32/DOS-based
154 # environment.
155 DPP_WIN32_SETUP
156 DPP_SYSTEM_SETUP
157
158 # Templates for Autoheader.
159 AH_TEMPLATE([__OSVERSION__],
160             [Define to the major number of the target operating system.])
161 AH_TEMPLATE([__alpha__], [Define to 1 if building on the Alpha architecture.])
162 AH_TEMPLATE([__hppa__], [Define to 1 if building on HP PA-RISC architecture.])
163 AH_TEMPLATE([__mips__], [Define to 1 if building on MIPS architecture.])
164 AH_TEMPLATE([__powerpc__], [Define to 1 if building on PowerPC architecture.])
165 AH_TEMPLATE([__sparc__], [Define to 1 if building on the SPARC architecture.])
166 AH_TEMPLATE([__x86__], [Define to 1 if building on Intel x86 architecture.])
167 AH_TEMPLATE([__ia64__],
168             [Define to 1 if building on Intel Itanium architecture.])
169
170 # Depending on the target operating system, set various command options and
171 # such.
172 case $target_os in
173    # IBM RS/6000 running AIX.
174    aix4*)
175       AC_DEFINE(__aix__, 1, [Define to 1 if building on AIX.])
176       AC_DEFINE(__powerpc__)
177       AC_DEFINE(__OSVERSION__, 4)
178       EXTRA_DEFS="$EXTRA_DEFS -D__aix__ -D__powerpc__ -D__OSVERSION__=4"
179       ;;
180    # i386-class machine running Windows {98,NT} with Cygnus GNU-Win32.
181    cygwin)
182       AC_DEFINE(__WIN32__, 1, [Define to 1 if building on a Win32 platform.])
183       AC_DEFINE(__x86__)
184       EXTRA_DEFS="$EXTRA_DEFS -D__WIN32__ -D__x86__"
185
186       if test "x$PLATFORM" = "xWinNT" ; then
187          AC_DEFINE(__NT__, 1, [Define only on Windows NT/2000/XP.])
188          EXTRA_DEFS="$EXTRA_DEFS -D__NT__"
189
190          _sys_name=`uname -s`
191          case "${_sys_name}" in
192             *NT-4*)
193                AC_DEFINE(__OSVERSION__, 4)
194                EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=4"
195                ;;
196             *NT-5*)
197                AC_DEFINE(__OSVERSION__, 5)
198                EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=5"
199                ;;
200          esac
201       fi
202       ;;
203    # Darwin (aka MacOS X).
204    darwin*)
205       AC_DEFINE(__darwin__, 1, [Define to 1 if building on Darwin/Mac OS X.])
206       EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=1 -D__darwin__"
207
208       case $target_cpu in
209          powerpc)
210             AC_DEFINE(__powerpc__)
211             EXTRA_DEFS="$EXTRA_DEFS -D__powerpc__"
212             ;;
213          *86)
214             AC_DEFINE(__x86__)
215             EXTRA_DEFS="$EXTRA_DEFS -D__x86__"
216             ;;
217       esac
218       ;;
219    # A machine running FreeBSD or DragonFlyBSD.
220    freebsd*|dragonfly*)
221       AC_DEFINE(__freebsd__, 1,
222                 [Define to 1 if building on FreeBSD or DragonFly.])
223       EXTRA_DEFS="$EXTRA_DEFS -D__freebsd__"
224
225       case $target_cpu in
226          *86)
227             AC_DEFINE(__x86__)
228             EXTRA_DEFS="$EXTRA_DEFS -D__x86__"
229             ;;
230          ia64)
231             AC_DEFINE(__ia64__)
232             EXTRA_DEFS="$EXTRA_DEFS -D__ia64__"
233             ;;
234          alpha)
235             AC_DEFINE(__alpha__)
236             EXTRA_DEFS="$EXTRA_DEFS -D__alpha__"
237             ;;
238          sparc)
239             AC_DEFINE(__sparc__)
240             EXTRA_DEFS="$EXTRA_DEFS -D__sparc__"
241             ;;
242       esac
243
244       changequote(<<, >>)
245       # This will match $target_os of the form freebsdX.Y... or dragonflyX.Y...
246       tweek_bsd_ver=`echo $target_os | sed -e 's/^.*[dy]\([1-9][0-9]*\)\..*/\1/'`
247       changequote([, ])
248       AC_DEFINE_UNQUOTED(__OSVERSION__, $tweek_bsd_ver)
249       EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=$tweek_bsd_ver"
250
251       ;;
252    # HP PA-RISC machine running HP-UX.20.
253    hpux*)
254       AC_DEFINE(__hpux__, 1, [Define to 1 if building on HP-UX.])
255       AC_DEFINE(__hppa__)
256       EXTRA_DEFS="$EXTRA_DEFS -D__hpux__ -D__hppa__"
257
258       case $target_os in
259          # HP-UX 10.20.
260          hpux10.20)
261             AC_DEFINE(__OSVERSION__, 10)
262             EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=10"
263          ;;
264          # HP-UX 11.
265          hpux11*)
266             AC_DEFINE(__OSVERSION__, 11)
267             EXTRA_DEFS="$EXTRA_DEFS -D__OSVERSION__=11"
268          ;;
269       esac
270
271       ;;
272    # SGI running IRIX 6.*.
273    irix6*)
274       AC_DEFINE(__irix__, 1, [Define to 1 if building on IRIX.])
275       AC_DEFINE(__mips__)
276       AC_DEFINE(__OSVERSION__, 6)
277       EXTRA_DEFS="$EXTRA_DEFS -D__irix__ -D__mips__ -D__OSVERSION__=6"
278       ;;
279    # A machine running Linux.
280    linux*)
281       AC_DEFINE(__linux__, 1, [Define to 1 if building on Linux.])
282       AC_DEFINE(__OSVERSION__, 2)
283       EXTRA_DEFS="$EXTRA_DEFS -D__linux__ -D__OSVERSION__=2"
284
285       case $target_cpu in
286          *86)
287             AC_DEFINE(__x86__)
288             EXTRA_DEFS="$EXTRA_DEFS -D__x86__"
289             ;;
290          ia64)
291             AC_DEFINE(__ia64__)
292             EXTRA_DEFS="$EXTRA_DEFS -D__ia64__"
293             ;;
294          alpha)
295             AC_DEFINE(__alpha__)
296             EXTRA_DEFS="$EXTRA_DEFS -D__alpha__"
297             ;;
298          sparc)
299             AC_DEFINE(__sparc__)
300             EXTRA_DEFS="$EXTRA_DEFS -D__sparc__"
301             ;;
302          mips)
303             AC_DEFINE(__mips__)
304             EXTRA_DEFS="$EXTRA_DEFS -D__mips__"
305             ;;
306       esac
307       ;;
308    # DEC Alpha running Digital UNIX 4.x.
309    osf4*)
310       AC_DEFINE(__osf1__, 1,
311                 [Define to 1 if building on OSF1/Digital UNIX/TRU64.])
312       AC_DEFINE(__alpha__)
313       AC_DEFINE(__OSVERSION__, 4)
314       EXTRA_DEFS="$EXTRA_DEFS -D__osf1__ -D__alpha__ -D__OSVERSION__=4"
315       ;;
316    # A machine running Solaris 2.x (aka SunOS 5.x).
317    solaris2*)
318       AC_DEFINE(__sunos__, 1, [Define if building on SunOS/Solaris.])
319       AC_DEFINE(__OSVERSION__, 5)
320       EXTRA_DEFS="$EXTRA_DEFS -D__sunos__ -D__OSVERSION__=5"
321
322       case $target_cpu in
323          *86)
324             AC_DEFINE(__x86__)
325             EXTRA_DEFS="$EXTRA_DEFS -D__x86__"
326             ;;
327          sparc)
328             AC_DEFINE(__sparc__)
329             EXTRA_DEFS="$EXTRA_DEFS -D__sparc__"
330             ;;
331       esac
332       ;;
333 esac
334
335 # -----------------------------------------------------------------------------
336 # Path setup.
337 # -----------------------------------------------------------------------------
338
339 # $srcdir is the root directory of the juggler source tree.  To get a value
340 # for $TWEEKROOT_ABS, we cd there and save the value of running pwd.  Then
341 # return to the directory where configure is being run ($topdir).
342 cd "$srcdir"
343 UNIX_TWEEKROOT_ABS=`pwd`
344
345 cd "$UNIX_TWEEKROOT_ABS/../.."
346 UNIX_JUGGLERROOT_ABS=`pwd`
347 cd "$topdir"
348
349 if test "x$CYGPATH" != "xno" ; then
350    TWEEKROOT_ABS=`dospath -p "$UNIX_TWEEKROOT_ABS"`
351    JUGGLERROOT_ABS=`dospath -p "$UNIX_JUGGLERROOT_ABS"`
352 else
353    TWEEKROOT_ABS="$UNIX_TWEEKROOT_ABS"
354    JUGGLERROOT_ABS="$UNIX_JUGGLERROOT_ABS"
355 fi
356
357 # -----------------------------------------------------------------------------
358 # Checks for programs.
359 # -----------------------------------------------------------------------------
360 VJ_COMPILER_SETUP
361 VJ_PROG_CC_PROF_FLAG(yes)
362 VJ_PROG_CXX_PROF_FLAG(yes)
363 DPP_CC_PTHREAD_ARG
364 DPP_CC_PTHREADS_ARG
365 DPP_GET_PTHREAD_LIB
366
367 if test "x$DPP_USING_MSVCCC" = "xyes" ; then
368    AR='$(CXX) /link /lib'
369    LD='$(CXX) /link /dll'
370 fi
371
372 # Ensure that the C++ compiler we've found is capable of compiling the newer
373 # newer C++ features that we need.
374 DPP_CXX_NAMESPACE(AC_MSG_ERROR(*** Tweek requires C++ namesapce support ***))
375 DPP_CXX_EXCEPTIONS(AC_MSG_ERROR(*** Tweek requires C++ exception support ***))
376 DPP_CXX_HAVE_STD
377
378 # Ensure that a version of Perl greater than or equal to 5.004 is available.
379 DPP_PERL_VER([5.004], , , [AC_MSG_ERROR([*** Perl is required ***])])
380 AC_CHECK_PROG([MTREE_CMD], [mtree], [mtree], [\$(PERL) \$(scriptdir)/mtree.pl])
381 DPP_HAVE_GNU_MAKE([3.78], ,
382    [AC_MSG_ERROR([*** The build system requires GNU make 3.78 or newer ***])])
383 DPP_BASIC_PROGS([$PLATFORM], [$OS_TYPE])
384 DPP_PROG_INSTALL
385 VJ_LINKER_SETUP
386
387 BUILD_JAVA='Y'
388
389 # Check for the JDK.
390 DPP_PATH_JAVA( , [tweek_have_java='Y'],
391               [tweek_have_java='N'
392                BUILD_JAVA='N'])
393
394 if test "x$tweek_have_java" = "xY" ; then
395    DPP_JDK_VERSION([$JDK_HOME], [1.4], ,
396       [ BUILD_JAVA='N'
397         AC_MSG_WARN([*** JDK 1.4 or newer required for Tweek Java API ***])
398       ])
399
400    DPP_CHECK_JNI([$JDK_HOME], [BUILD_JNI='Y'],
401       [BUILD_JNI='N'
402        AC_MSG_WARN([*** NOTE: Not building JNI extensions to Tweek Java API ***])
403       ])
404
405    # If we are building the Tweek Java code, we should try to enable building
406    # the Java test suite too.
407    if test "x$BUILD_JAVA" = "xY" ; then
408       DPP_CHECK_JAVA_STATIC_METHOD(junit.framework.Assert, assertTrue(true), ,
409          BUILD_JAVA_TEST_SUITE='Y',
410          [ AC_MSG_WARN([*** JUnit required for Tweek Java test suite ***])
411            BUILD_JAVA_TEST_SUITE='N' ],
412          $JUNIT_JAR)
413    fi
414 fi
415
416 ANT="JAVA_HOME=\"$JDK_HOME\" \"$UNIX_JUGGLERROOT_ABS/external/ant/bin/ant\" --noconfig"
417
418 if test "x$python_root" != "xnone" ; then
419    python_bin_dir="$python_root/bin"
420
421    if test "x$OS_TYPE" = "xWin32" ; then
422       python_bin_dir_unix=`unixpath "$python_bin_dir"`
423       python_search_path="${python_bin_dir_unix}:${PATH}"
424    else
425       python_search_path="${python_bin_dir}:${PATH}"
426    fi
427 else
428    python_search_path="$PATH"
429 fi
430
431 AC_PATH_PROG(PYTHON, python, no, [$python_search_path])
432 AC_PATH_PROG(PYUIC, pyuic, no)
433
434 if test "x$PYTHON" = "xno" ; then
435    AC_MSG_WARN([*** Python is required to use the Python GUI ***])
436    BUILD_PYTHON_IDL='N'
437    BUILD_PYTHON_GUI='N'
438 elif test "x$PYUIC" = "xno" ; then
439    AC_MSG_WARN([*** pyuic is required to build Python GUI ***])
440    BUILD_PYTHON_IDL='Y'
441    BUILD_PYTHON_GUI='N'
442 else
443    BUILD_PYTHON_IDL='Y'
444    BUILD_PYTHON_GUI='Y'
445 fi
446
447 # -----------------------------------------------------------------------------
448 # Checks for libraries.
449 # -----------------------------------------------------------------------------
450 MIN_VPR_VERSION='1.1.35'
451 VPR_PATH([$MIN_VPR_VERSION], [BUILD_CXX='Y'],
452          [AC_MSG_WARN([*** VPR required for Tweek C++ API ***])
453           BUILD_CXX='N'])
454
455 AH_TEMPLATE([TWEEK_INCLUDE_CORBA_H],
456    [Define to include the main CORBA header file -- for example: <omniORB4/CORBA.h>])
457 AH_TEMPLATE([TWEEK_ORB_VER_STRING],
458    [Define to an ORB identifier string used to initialized the ORB -- for example: "omniORB4"])
459
460 # Find omniORB.  This one is a beast.
461 setup_omniORB_cxx ( )
462 {
463    OMNI_VER="$1"
464
465    if test "x$cxx_orb_bin_dir" = "xnone" ; then
466       OMNI_BIN_DIR="$cxx_orb_root/bin"
467    else
468       OMNI_BIN_DIR="$cxx_orb_bin_dir"
469    fi
470
471    if test "x$cxx_orb_lib_dir" = "xnone" ; then
472       OMNI_LIB_DIR="$cxx_orb_root/lib"
473    else
474       OMNI_LIB_DIR="$cxx_orb_lib_dir"
475    fi
476
477    tweek_omni_lib="omniORB$OMNI_VER"
478
479    tweek_save_CPPFLAGS="$CPPFLAGS"
480
481    if test "x$cxx_orb_root" != "x/usr" ; then
482       CPPFLAGS="$CPPFLAGS -I$cxx_orb_root/include"
483    fi
484
485    DPP_LANG_SAVE
486    DPP_LANG_CPLUSPLUS
487
488    AC_CHECK_HEADER(omniORB$OMNI_VER/CORBA.h, ,
489       [AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
490        BUILD_CXX='N'])
491
492    DPP_LANG_RESTORE
493
494    CPPFLAGS="$tweek_save_CPPFLAGS"
495
496    if test "x$BUILD_CXX" != "xN" ; then
497       tweek_save_LDFLAGS="$LDFLAGS"
498       tweek_save_LIBS="$LIBS"
499
500       if test "x$OMNI_LIB_DIR" != "x/usr/lib" ; then
501          LDFLAGS="$LDFLAGS -L$OMNI_LIB_DIR"
502       fi
503
504       if test "x$OS_TYPE" = "xWin32" ; then
505          # XXX: This is utterly pathetic.  What I really want is a way to get
506          # the full omniORB version number and use it to figure out these file
507          # names.
508          orb_rt_file=`ls $OMNI_LIB_DIR/omniORB*_rt.lib`
509          thread_rt_file=`ls $OMNI_LIB_DIR/omnithread*_rt.lib`
510          dynamic_rt_file=`ls $OMNI_LIB_DIR/omniDynamic*_rt.lib`
511
512          # XXX: More hackery.  This strips off the path to the .lib files
513          # along with the .lib extension.  This is needed so that our wrapper
514          # around MSVC++ can translate the -l<libname> argument correctly.
515          orb_rt=`basename $orb_rt_file | sed -e 's/.lib$//'`
516          thread_rt=`basename $thread_rt_file | sed -e 's/.lib$//'`
517          dynamic_rt=`basename $dynamic_rt_file | sed -e 's/.lib$//'`
518
519          omni_win32_libs="-l$orb_rt -l$thread_rt -l$dynamic_rt -lws2_32 -ladvapi32"
520          changequote(<<, >>)
521          omni_win32_link_args=`echo $omni_win32_libs | sed -e 's/-l\([^ ][^ ]*\)/\1.lib/g'`
522          changequote([, ])
523          LIBS="$LIBS $omni_win32_libs"
524       else
525          LIBS="$LIBS -l$tweek_omni_lib -lomnithread"
526       fi
527
528       # This is done to deal with omniORB 4.0.0 not compiling out of the box
529       # on IRIX.
530       if test "x$OMNI_VER" = "x4" -a "x$PLATFORM" = "xIRIX" ; then
531          DPP_LANG_SAVE
532          DPP_LANG_CPLUSPLUS
533
534          tweek_save_CPPFLAGS="$CPPFLAGS"
535          CPPFLAGS="$CPPFLAGS -I$cxx_orb_root/include $EXTRA_DEFS"
536
537          AC_CACHE_CHECK([whether OMNI_REQUIRES_FQ_BASE_CTOR is defined],
538             [tweek_cv_IRIX_ctor_defined],
539             [AC_TRY_COMPILE([#include <omniORB$OMNI_VER/CORBA.h>],
540                [
541 #ifndef OMNI_REQUIRES_FQ_BASE_CTOR
542    crash
543 #endif
544 ],
545                [tweek_cv_IRIX_ctor_defined='yes'],
546                [tweek_cv_IRIX_ctor_defined='no'])])
547
548          CPPFLAGS="$tweek_save_CPPFLAGS"
549
550          DPP_LANG_RESTORE
551
552          # If OMNI_REQUIRES_FQ_BASE_CTOR is not defined, then we have to add
553          # it manually.
554          if test "x$tweek_cv_IRIX_ctor_defined" = "xno" ; then
555             EXTRA_DEFS="$EXTRA_DEFS -DOMNI_REQUIRES_FQ_BASE_CTOR"
556          fi
557       fi
558
559       DPP_LANG_SAVE
560       DPP_LANG_CPLUSPLUS
561
562       tweek_save_CPPFLAGS="$CPPFLAGS"
563       tweek_save_CFLAGS="$CFLAGS"
564
565       CPPFLAGS="$CPPFLAGS -I$cxx_orb_root/include $EXTRA_DEFS"
566       CFLAGS="$CFLAGS $ABI_FLAGS"
567       LDFLAGS="$LDFLAGS $PTHREAD_ARG $ABI_FLAGS"
568
569       AC_CACHE_CHECK([for CORBA::ORB_init in -l$tweek_omni_lib],
570          [tweek_cv_CORBA__ORB_init_in_omniORB],
571          [AC_TRY_LINK([
572 #include <omniORB$OMNI_VER/CORBA.h>
573
574 int omni_main_i(int argc, char** const argv)
575 {
576    CORBA::ORB_init(argc, argv, "omniORB$OMNI_VER");
577    return 0;
578 }],
579                      [omni_main_i(0, NULL);],
580                      [ tweek_cv_CORBA__ORB_init_in_omniORB='yes'
581                        rm -rf ./ii_files ],
582                      [tweek_cv_CORBA__ORB_init_in_omniORB='no'])])
583
584       # We're done testing things now, so we can restore the original flags.
585       CFLAGS="$tweek_save_CFLAGS"
586       CPPFLAGS="$tweek_save_CPPFLAGS"
587       LDFLAGS="$tweek_save_LDFLAGS"
588       LIBS="$tweek_save_LIBS"
589
590       DPP_LANG_RESTORE
591
592       if test "x$OS_TYPE" = "xWin32" ; then
593          CXX_ORB_BIN_DIR=`unixpath "$OMNI_BIN_DIR"`
594          CXX_ORB_LIB_DIR=`unixpath "$OMNI_LIB_DIR"`
595          omniidl_search_path="${CXX_ORB_BIN_DIR}:${PATH}"
596       else
597          CXX_ORB_BIN_DIR="$OMNI_BIN_DIR"
598          CXX_ORB_LIB_DIR="$OMNI_LIB_DIR"
599          omniidl_search_path="${OMNI_BIN_DIR}:${PATH}"
600       fi
601
602       AC_PATH_PROG(CXX_IDL, omniidl, no, [$omniidl_search_path])
603
604       if test "x$CXX_IDL" = "xno" ; then
605          AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
606          BUILD_CXX='N'
607       else
608          CXX_IDL_CMD="$CXX_IDL"
609          CXX_IDL_OPTS='-bcxx -Wbh=.h,s=.cpp'
610          CXX_IDL_GENDIR_OPT='-C'
611          CXX_IDL_INCFLAG='-I'
612
613          IDL_SERVER_EXT=''
614          IDL_SERVER_TMPL_EXT=''
615          IDL_CLIENT_EXT=''
616
617          if test "x$tweek_cv_CORBA__ORB_init_in_omniORB" = "xyes" ; then
618             BUILD_CXX='Y'
619
620             CXX_ORB_DEPS="omniORB$OMNI_VER omnithread3 omniDynamic$OMNI_VER"
621
622             if test "x$cxx_orb_root" != "x/usr" ; then
623                CXX_ORB_INCLUDES="-I$cxx_orb_root/include"
624             fi
625
626             CXX_ORB_LIB="-l$tweek_omni_lib -lomnithread -lomniDynamic$OMNI_VER"
627             CXX_ORB_LDFLAGS="-L$OMNI_LIB_DIR"
628
629             CXX_ORB_LIB_MSVCCC="$omni_win32_libs"
630             CXX_ORB_LDFLAGS_MSVCCC="-L$OMNI_LIB_DIR"
631
632             CXX_ORB_LIB_LINK_EXE="$omni_win32_link_args"
633             CXX_ORB_LDFLAGS_LINK_EXE="/libpath:$OMNI_LIB_DIR"
634
635             AC_DEFINE_UNQUOTED([TWEEK_USE_OMNIORB], ,
636                [Define if using omniORB as the C++ CORBA implementation.])
637             AC_DEFINE_UNQUOTED(OMNIORB_VER, $OMNI_VER,
638                [If using omniORB, define to the major version number (3, 4, etc.).])
639             AC_DEFINE_UNQUOTED([TWEEK_INCLUDE_CORBA_H],
640                [<omniORB$OMNI_VER/CORBA.h>])
641             AC_DEFINE_UNQUOTED([TWEEK_ORB_VER_STRING], "omniORB$OMNI_VER")
642          else
643             AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
644             BUILD_CXX='N'
645          fi
646       fi
647    fi
648 }
649
650 # Find TAO.
651 setup_TAO ( )
652 {
653    # Handle the case when $TAO_ROOT is set.  ($ACE_ROOT will probably be
654    # set, too.)  This is a little tricky because $TAO_ROOT could refer to a
655    # TAO installation or to the ACE+TAO source/build tree.
656    if test "x$TAO_ROOT" != "x" -a "x$TAO_ROOT" != "x$cxx_orb_root" ; then
657       cxx_orb_root="$TAO_ROOT"
658       TAO_BIN_DIR="$cxx_orb_root/bin"
659
660       if test -d "$TAO_ROOT/include" ; then
661          tao_includes="-I$TAO_ROOT/include"
662       else
663          tao_includes="-I$TAO_ROOT -I$TAO_ROOT/orbsvcs"
664       fi
665
666       if test "x$ACE_ROOT" != "x" -a "x$TAO_ROOT" != "x$ACE_ROOT" ; then
667          if test -d "$ACE_ROOT/include/ace" ; then
668             tao_includes="-I$ACE_ROOT/include"
669          else
670             tao_extra_includes="-I$ACE_ROOT"
671          fi
672       fi
673
674       if test "x$ACE_ROOT" != "x" ; then
675          TAO_BIN_DIR="$ACE_ROOT/bin"
676          TAO_LIB_DIR="$ACE_ROOT/lib"
677       else
678          TAO_BIN_DIR="$TAO_ROOT/bin"
679          TAO_LIB_DIR="$TAO_ROOT/lib"
680       fi
681    else
682       if test "x$cxx_orb_bin_dir" = "xnone" ; then
683          TAO_BIN_DIR="$cxx_orb_root/bin"
684       else
685          TAO_BIN_DIR="$cxx_orb_bin_dir"
686       fi
687
688       if test "x$cxx_orb_lib_dir" = "xnone" ; then
689          TAO_LIB_DIR="$cxx_orb_root/lib"
690       else
691          TAO_LIB_DIR="$cxx_orb_lib_dir"
692       fi
693
694       tao_includes="-I$TAO_ROOT/include"
695    fi
696
697    tweek_save_CPPFLAGS="$CPPFLAGS"
698    CPPFLAGS="$CPPFLAGS $tao_extra_includes"
699
700    if test "x$cxx_orb_root" != "x/usr" ; then
701       CPPFLAGS="$CPPFLAGS $tao_includes"
702    fi
703
704    DPP_LANG_SAVE
705    DPP_LANG_CPLUSPLUS
706
707    AC_CHECK_HEADER(tao/corba.h, ,
708       [AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
709        BUILD_CXX='N'])
710
711    DPP_LANG_RESTORE
712
713    CPPFLAGS="$tweek_save_CPPFLAGS"
714
715    if test "x$BUILD_CXX" != "xN" ; then
716       tweek_save_LDFLAGS="$LDFLAGS"
717       tweek_save_LIBS="$LIBS"
718
719       if test "x$TAO_LIB_DIR" != "x/usr/lib" ; then
720          LDFLAGS="$LDFLAGS -L$TAO_LIB_DIR"
721       fi
722
723       LIBS="$LIBS -lTAO -lACE"
724
725       DPP_LANG_SAVE
726       DPP_LANG_CPLUSPLUS
727
728       tweek_save_CPPFLAGS="$CPPFLAGS"
729       tweek_save_CFLAGS="$CFLAGS"
730
731       CPPFLAGS="$CPPFLAGS $tao_extra_includes $tao_includes $EXTRA_DEFS"
732       CFLAGS="$CFLAGS $ABI_FLAGS"
733       LDFLAGS="$LDFLAGS $PTHREAD_ARG $ABI_FLAGS"
734
735       AC_CACHE_CHECK([for CORBA::ORB_init in -lTAO],
736          [tweek_cv_CORBA__ORB_init_in_TAO],
737          [AC_TRY_LINK([
738 #include <tao/corba.h>
739
740 int tao_main_i(int argc, char** const argv)
741 {
742    CORBA::ORB_init(argc, argv, "TAO");
743    return 0;
744 }],
745                      [omni_main_i(0, NULL);],
746                      [ tweek_cv_CORBA__ORB_init_in_TAO='yes'
747                        rm -rf ./ii_files ],
748                      [tweek_cv_CORBA__ORB_init_in_TAO='no'])])
749
750       # We're done testing things now, so we can restore the original flags.
751       CFLAGS="$tweek_save_CFLAGS"
752       CPPFLAGS="$tweek_save_CPPFLAGS"
753       LDFLAGS="$tweek_save_LDFLAGS"
754       LIBS="$tweek_save_LIBS"
755
756       DPP_LANG_RESTORE
757
758       CXX_ORB_BIN_DIR="$TAO_BIN_DIR"
759       CXX_ORB_LIB_DIR="$TAO_LIB_DIR"
760       tao_idl_search_path="${TAO_BIN_DIR}:${PATH}"
761
762       AC_PATH_PROG(CXX_IDL, tao_idl, no, [$tao_idl_search_path])
763
764       if test "x$CXX_IDL" = "xno" ; then
765          AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
766          BUILD_CXX='N'
767       else
768          CXX_IDL_CMD='tao_idl'
769          CXX_IDL_OPTS='-hs .h -ss .cpp'
770          CXX_IDL_GENDIR_OPT='-o '
771          CXX_IDL_INCFLAG='-I'
772
773          IDL_SERVER_EXT=''
774          IDL_SERVER_TMPL_EXT='S_T'
775          IDL_CLIENT_EXT='C'
776
777          if test "x$tweek_cv_CORBA__ORB_init_in_TAO" = "xyes" ; then
778             BUILD_CXX='Y'
779
780             if test "x$cxx_orb_root" != "x/usr" ; then
781                CXX_ORB_INCLUDES="$tao_extra_includes $tao_includes"
782             fi
783
784             CXX_ORB_LIB="-lTAO -lTAO_PortableServer -lTAO_CosNaming -lACE"
785             CXX_ORB_LDFLAGS="-L$TAO_LIB_DIR"
786
787             AC_DEFINE_UNQUOTED([TWEEK_USE_TAO], ,
788                [Define if using TAO as the C++ CORBA implementation.])
789             AC_DEFINE_UNQUOTED([TWEEK_INCLUDE_CORBA_H], [<tao/corba.h>])
790             AC_DEFINE_UNQUOTED([TWEEK_ORB_VER_STRING], "TAO")
791          else
792             AC_MSG_WARN([*** $cxx_orb_name required for Tweek C++ API ***])
793             BUILD_CXX='N'
794          fi
795       fi
796    fi
797 }
798
799 # Find omniPython.
800 setup_omniORB_python ( )
801 {
802 #   OMNI_PY_VER="$1"
803
804    if test "x$python_orb_bin_dir" = "xnone" ; then
805       OMNI_PY_BIN_DIR="$python_orb_root/bin"
806    else
807       OMNI_PY_BIN_DIR="$python_orb_bin_dir"
808    fi
809
810    if test "x$OS_TYPE" = "xWin32" ; then
811       OMNI_PY_BIN_DIR_UNIX=`unixpath "$OMNI_PY_BIN_DIR"`
812       omniidl_search_path="${OMNI_PY_BIN_DIR_UNIX}:${PATH}"
813    else
814       omniidl_search_path="${OMNI_PY_BIN_DIR}:${PATH}"
815    fi
816
817    AC_PATH_PROG(PYTHON_IDL, omniidl, no, [$omniidl_search_path])
818
819    if test "x$PYTHON_IDL" = "xno" ; then
820       AC_MSG_WARN([*** $python_orb_name required for Tweek Python API ***])
821       BUILD_PYTHON_IDL='N'
822       BUILD_PYTHON_GUI='N'
823    else
824       PYTHON_ORB_MODULE='omniORB'
825       PYTHON_IDL_OPTS='-bpython'
826       PYTHON_IDL_GENDIR_OPT='-C'
827       PYTHON_IDL_INCFLAG='-I'
828
829       AC_MSG_CHECKING([for omniidl Python backend])
830       if ! (eval $PYTHON_IDL $PYTHON_IDL_OPTS -u >/dev/null 2>&1) 2>&1 ; then
831          AC_MSG_RESULT([no])
832          AC_MSG_WARN([*** $python_orb_name required for Tweek Python API ***])
833          BUILD_PYTHON_IDL='N'
834          BUILD_PYTHON_GUI='N'
835       else
836          AC_MSG_RESULT([yes])
837          BUILD_PYTHON_IDL='Y'
838       fi
839    fi
840 }
841
842 setup_fnorb ( )
843 {
844    if test "x$python_orb_bin_dir" = "xnone" ; then
845       FNORB_BIN_DIR="$python_orb_root/bin"
846    else
847       FNORB_BIN_DIR="$python_orb_bin_dir"
848    fi
849
850    if test "x$python_orb_lib_dir" = "xnone" ; then
851       FNORB_LIB_DIR="$python_orb_root/lib/python$PYTHON_VER/site-packages"
852    else
853       FNORB_LIB_DIR="$python_orb_lib_dir"
854    fi
855
856    if test "x$OS_TYPE" = "xWin32" ; then
857       FNORB_BIN_DIR_UNIX=`unixpath "$FNORB_BIN_DIR"`
858       fnidl_search_path="${FNORB_BIN_DIR_UNIX}:${PATH}"
859    else
860       fnidl_search_path="${FNORB_BIN_DIR}:${PATH}"
861    fi
862
863    AC_PATH_PROG(PYTHON_IDL, fnidl, no, [$fnidl_search_path])
864    
865    if test "x$PYTHON_IDL" = "xno" ; then
866       AC_MSG_WARN([*** $python_orb_name required for Tweek Python API ***])
867       BUILD_PYTHON_IDL='N'
868       BUILD_PYTHON_GUI='N'
869    else
870       fnidl_works='N'
871       AC_MSG_CHECKING([for $PYTHON_IDL usability])
872       if ! (eval $PYTHON_IDL --help >/dev/null 2>&1) 2>&1 ; then
873          PYTHON_IDL="PYTHONPATH=$FNORB_LIB_DIR $PYTHON_IDL"
874
875          if ! (eval $PYTHON_IDL --help >/dev/null 2>&1) 2>&1 ; then
876             AC_MSG_RESULT([no])
877             AC_MSG_WARN([*** $python_orb_name required for Tweek Python API ***])
878          else
879             AC_MSG_RESULT([yes])
880             fnidl_works='Y'
881          fi
882       else
883          AC_MSG_RESULT([yes])
884          fnidl_works='Y'
885       fi
886
887       if test "x$fnidl_works" = "xY" ; then
888          PYTHON_ORB_MODULE='Fnorb.orb'
889          PYTHON_IDL_OPTS='--poa-skel'
890          PYTHON_IDL_GENDIR_OPT='--directory='
891          PYTHON_IDL_INCFLAG='-I'
892          BUILD_PYTHON_IDL='Y'
893       fi
894    fi
895 }
896
897 setup_PyORBit ( )
898 {
899    min_pyorbit_version='2.0.0'
900    AC_MSG_CHECKING([for PyORBit version >= $min_pyorbit_version])
901
902    # First test to see if PyORBit is even available.
903    if ! (eval "$PYTHON -c \"import ORBit, CORBA\"" >/dev/null 2>&1) 2>&1 ; then
904       # PyORBit is not available, so we won't try to build the PyQt GUI.
905       AC_MSG_RESULT([no])
906       AC_MSG_WARN([*** PyORBit is required for Tweek Python API ***])
907       BUILD_PYTHON_GUI='N'
908
909    # If PyORBit is available, then we can test its version.
910    else
911       # The Python code here causes frustrating sh syntactic issues relating
912       # to when strings are resolved.
913 #      pyorbit_version=`$PYTHON -c '"import ORBit; print '.'.join([str(x) for x in ORBit.__version__])"'`
914       pyorbit_version=`$PYTHON -c "import ORBit; print ORBit.__version__" | sed -e 's/, /./g' -e 's/(\(.*\))/\1/'`
915       DPP_VERSION_CHECK([$pyorbit_version], [$min_pyorbit_version],
916                         [AC_MSG_RESULT([yes])],
917                         [AC_MSG_RESULT([no])
918                          BUILD_PYTHON_GUI='N'])
919
920       PYTHON_ORB_MODULE='ORBit'
921    fi
922
923    # This is always going to be 'N' because PyORBit performs IDL compilation
924    # dynamically.  In other words, there is nothing to build.
925    BUILD_PYTHON_IDL='N'
926 }
927
928 # omniORB requires pthreads, and that conflicts with IRIX SPROC threads.
929 if test "x$VPR_SUBSYSTEM" = "xSPROC" ; then
930    case $cxx_orb_name in
931       omniORB*|TAO)
932          AC_MSG_WARN([*** Tweek C++ API will not run with SPROC threads ***])
933          BUILD_CXX='N'
934          ;;
935    esac
936 fi
937
938 # --------------------
939 # Find the C++ ORB.
940 # --------------------
941 if test "x$BUILD_CXX" != "xN" ; then
942    tweeksave_CPPFLAGS="$CPPFLAGS"
943    tweeksave_LDFLAGS="$LDFLAGS"
944    tweeksave_LIBS="$LIBS"
945
946    case $cxx_orb_name in
947       omniORB4)
948          setup_omniORB_cxx 4
949          ;;
950       TAO)
951          setup_TAO
952          ;;
953       *)
954          AC_MSG_ERROR([Unsupported C++ ORB $cxx_orb_name!])
955          ;;
956    esac
957
958    CPPFLAGS="$tweeksave_CPPFLAGS"
959    LDFLAGS="$tweeksave_LDFLAGS"
960    LIBS="$tweeksave_LIBS"
961 fi
962
963 # --------------------
964 # Find the Java ORB.
965 # --------------------
966 if test "x${_idl_java}" = "xno" ; then
967    jacorb_dir='$(JUGGLERROOT_ABS)/external/JacORB'
968    JAVA_IDL="JAVA_HOME=\"$JDK_HOME\" JACORB_PATH=\"$jacorb_dir\" \"$jacorb_dir/idl\""
969
970    java_idl_name='JacORB'
971
972    app_jacorb_dir='$(TWEEK_BASE_DIR)/bin'
973    APP_JAVA_IDL="JAVA_HOME=$\"JDK_HOME\" JACORB_PATH=\"$app_jacorb_dir\" \"$app_jacorb_dir/idl\""
974    APP_JAVA_IDL_INST="JAVA_HOME=\"$JDK_HOME\" JACORB_PATH=\"\$(TWEEK_BASE_DIR)/bin\" \"\$(TWEEK_BASE_DIR)/bin/idl\""
975
976    config_jacorb_dir='$prefix/bin'
977
978    # JAVA_HOME is not set the way that JACORB_PATH is set because we do not
979    # know what version of the JDK/JRE the user will have installed, nor do we
980    # know where it will be installed.
981    config_java_idl="JACORB_PATH=\"$config_jacorb_dir\" \"$config_jacorb_dir/idl\""
982 else
983    # XXX: Need to support more than one IDL compiler for Java by recognizing
984    # the name of the compiler and defining options for it below.  Blah.
985    if test "x${_idl_java}" != "x" ; then
986       case ${_idl_java} in
987          # Absolute path to IDL-to_Java compiler.
988          /*)
989             AC_MSG_CHECKING([execute bit on ${_idl_java}])
990
991             if test -x "${_idl_java}" ; then
992                JAVA_IDL="${_idl_java}"
993                AC_MSG_RESULT(yes)
994             else
995                AC_MSG_RESULT(no)
996             fi
997             ;;
998          *)
999             AC_CHECK_PROG(JAVA_IDL, [${_idl_java}], [${_idl_java}], 'no')
1000             ;;
1001       esac
1002
1003       java_idl_name="$JAVA_IDL"
1004       APP_JAVA_IDL="$JAVA_IDL"
1005       APP_JAVA_IDL_INST="$JAVA_IDL"
1006       config_java_idl="$JAVA_IDL"
1007    else
1008       JAVA_IDL='no'
1009    fi
1010 fi
1011
1012 if test "x$JAVA_IDL" = "xno" ; then
1013    BUILD_JAVA='N'
1014    AC_MSG_WARN(*** Cannot perform IDL-to-Java conversion ***)
1015 else
1016    case $java_idl_name in
1017       JacORB)
1018          JAVA_IDL_NAME="JacORB"
1019          JAVA_IDL_OPTS=''
1020          JAVA_IDL_GENDIR_OPT='-d '
1021          JAVA_IDL_INCFLAG='-I'
1022          JAVA_IDL_CLIENT_OPTS='-noskel'
1023          JAVA_IDL_SERVER_OPTS=''
1024          ;;
1025       *idlj)
1026          JAVA_IDL_NAME="IDLJ"
1027          JAVA_IDL_OPTS=''
1028          JAVA_IDL_GENDIR_OPT='-td '
1029          JAVA_IDL_INCFLAG='-i '
1030          JAVA_IDL_CLIENT_OPTS='-fclient'
1031          JAVA_IDL_SERVER_OPTS='-fallTIE'
1032          ;;
1033       *)
1034          JAVA_IDL_NAME="Unknown"
1035          AC_MSG_WARN([*** WARNING: Unknown IDL-to-Java compiler $java_idl_name **])
1036          ;;
1037    esac
1038 fi
1039
1040 case $java_orb_name in
1041    JDK)
1042       # If we are going to use Java IDL, we have to have JDK 1.4 or newer so
1043       # that we get an ORB that supports INS.
1044       DPP_JDK_VERSION([$JDK_HOME], [1.4], ,
1045          [AC_MSG_ERROR([*** JDK 1.4 or newer required for Java IDL use ***])])
1046       ;;
1047    *)
1048       if test "x$JAVA_ORB_JAR" != "xnone" ; then
1049          DPP_CHECK_JAVA_STATIC_METHOD([org.omg.CORBA.ORB],
1050             [init()], ,
1051             [ ORB_CLASS_PROP='org.openorb.CORBA.ORB'
1052               ORB_SINGLETON_CLASS_PROP='org.openorb.CORBA.ORBSingleton'
1053             ],
1054             [ AC_MSG_WARN([*** $java_orb_name required for Tweek GUI execution ***])
1055               BUILD_JAVA='N'
1056             ],
1057             [$JAVA_ORB_JAR])
1058       else
1059          AC_MSG_WARN([*** $java_orb_name required for Tweek Java API ***])
1060          BUILD_JAVA='N'
1061       fi
1062       ;;
1063 esac
1064
1065 # Check if we want to build the Tweek extensions
1066 BUILD_EXTENSIONS='N'
1067 if test "x$use_tweek_extensions" != "xno" -a "x$BUILD_JAVA" = "xY" ; then
1068    BUILD_EXTENSIONS='Y'
1069 fi
1070
1071 # --------------------
1072 # Find the Python ORB.
1073 # --------------------
1074 if test "x$BUILD_PYTHON_IDL" !