1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
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.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
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; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66	 X"$0" : 'X\(//\)$' \| \
67	 X"$0" : 'X\(/\)$' \| \
68	 .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
72  	  /^X\/\(\/\).*/{ s//\1/; q; }
73  	  s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
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
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
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
119    as_myself=$0
120  fi
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; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
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
142	     export CONFIG_SHELL
143	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144	   fi;;
145	 esac
146       done
147done
148;;
149  esac
150
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 |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
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; }; }
172
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).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='	' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if 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
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" 	$as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
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}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="Sked.h"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276#  include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281#  include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292#  include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
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.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341  # If the previous option needs an argument, assign it.
342  if test -n "$ac_prev"; then
343    eval "$ac_prev=\$ac_option"
344    ac_prev=
345    continue
346  fi
347
348  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350  # Accept the important Cygnus configure options, so we can diagnose typos.
351
352  case $ac_option in
353
354  -bindir | --bindir | --bindi | --bind | --bin | --bi)
355    ac_prev=bindir ;;
356  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357    bindir=$ac_optarg ;;
358
359  -build | --build | --buil | --bui | --bu)
360    ac_prev=build_alias ;;
361  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362    build_alias=$ac_optarg ;;
363
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 ;;
370
371  --config-cache | -C)
372    cache_file=config.cache ;;
373
374  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375    ac_prev=datadir ;;
376  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377  | --da=*)
378    datadir=$ac_optarg ;;
379
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" ;;
388
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'`
396    case $ac_option in
397      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "enable_$ac_feature='$ac_optarg'" ;;
401
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 ;;
410
411  -gas | --gas | --ga | --g)
412    # Obsolete; use --with-gas.
413    with_gas=yes ;;
414
415  -help | --help | --hel | --he | -h)
416    ac_init_help=long ;;
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 ;;
421
422  -host | --host | --hos | --ho)
423    ac_prev=host_alias ;;
424  -host=* | --host=* | --hos=* | --ho=*)
425    host_alias=$ac_optarg ;;
426
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 ;;
433
434  -infodir | --infodir | --infodi | --infod | --info | --inf)
435    ac_prev=infodir ;;
436  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437    infodir=$ac_optarg ;;
438
439  -libdir | --libdir | --libdi | --libd)
440    ac_prev=libdir ;;
441  -libdir=* | --libdir=* | --libdi=* | --libd=*)
442    libdir=$ac_optarg ;;
443
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 ;;
450
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 ;;
459
460  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461    ac_prev=mandir ;;
462  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463    mandir=$ac_optarg ;;
464
465  -nfp | --nfp | --nf)
466    # Obsolete; use --without-fp.
467    with_fp=no ;;
468
469  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470  | --no-cr | --no-c | -n)
471    no_create=yes ;;
472
473  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475    no_recursion=yes ;;
476
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 ;;
485
486  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487    ac_prev=prefix ;;
488  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489    prefix=$ac_optarg ;;
490
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 ;;
497
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 ;;
504
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 ;;
521
522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523  | -silent | --silent | --silen | --sile | --sil)
524    silent=yes ;;
525
526  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527    ac_prev=sbindir ;;
528  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529  | --sbi=* | --sb=*)
530    sbindir=$ac_optarg ;;
531
532  -sharedstatedir | --sharedstatedir | --sharedstatedi \
533  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534  | --sharedst | --shareds | --shared | --share | --shar \
535  | --sha | --sh)
536    ac_prev=sharedstatedir ;;
537  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540  | --sha=* | --sh=*)
541    sharedstatedir=$ac_optarg ;;
542
543  -site | --site | --sit)
544    ac_prev=site ;;
545  -site=* | --site=* | --sit=*)
546    site=$ac_optarg ;;
547
548  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549    ac_prev=srcdir ;;
550  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551    srcdir=$ac_optarg ;;
552
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 ;;
559
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 ;;
564
565  -v | -verbose | --verbose | --verbos | --verbo | --verb)
566    verbose=yes ;;
567
568  -version | --version | --versio | --versi | --vers | -V)
569    ac_init_version=: ;;
570
571  -with-* | --with-*)
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'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "with_$ac_package='$ac_optarg'" ;;
583
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" ;;
592
593  --x)
594    # Obsolete; use --with-x.
595    with_x=yes ;;
596
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 ;;
603
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 ;;
610
611  -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613   { (exit 1); exit 1; }; }
614    ;;
615
616  *=*)
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'"
624    export $ac_envvar ;;
625
626  *)
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}
632    ;;
633
634  esac
635done
636
637if 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; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646  eval ac_val=$`echo $ac_var`
647  case $ac_val in
648    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656              localstatedir libdir includedir oldincludedir infodir mandir
657do
658  eval ac_val=$`echo $ac_var`
659  case $ac_val in
660    [\\/$]* | ?:[\\/]* ) ;;
661    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662   { (exit 1); exit 1; }; };;
663  esac
664done
665
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.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if 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
680    cross_compiling=yes
681  fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if 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 ||
700echo X"$0" |
701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703  	  /^X\(\/\/\)$/{ s//\1/; q; }
704  	  /^X\(\/\).*/{ s//\1/; q; }
705  	  s/.*/./; q'`
706  srcdir=$ac_confdir
707  if test ! -r $srcdir/$ac_unique_file; then
708    srcdir=..
709  fi
710else
711  ac_srcdir_defaulted=no
712fi
713if 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; }; }
717  else
718    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719   { (exit 1); exit 1; }; }
720  fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CXX_set=${CXX+set}
752ac_env_CXX_value=$CXX
753ac_cv_env_CXX_set=${CXX+set}
754ac_cv_env_CXX_value=$CXX
755ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756ac_env_CXXFLAGS_value=$CXXFLAGS
757ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759ac_env_CPP_set=${CPP+set}
760ac_env_CPP_value=$CPP
761ac_cv_env_CPP_set=${CPP+set}
762ac_cv_env_CPP_value=$CPP
763ac_env_CXXCPP_set=${CXXCPP+set}
764ac_env_CXXCPP_value=$CXXCPP
765ac_cv_env_CXXCPP_set=${CXXCPP+set}
766ac_cv_env_CXXCPP_value=$CXXCPP
767
768#
769# Report the --help message.
770#
771if 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.
774  cat <<_ACEOF
775\`configure' configures this package to adapt to many kinds of systems.
776
777Usage: $0 [OPTION]... [VAR=VALUE]...
778
779To assign environment variables (e.g., CC, CFLAGS...), specify them as
780VAR=VALUE.  See below for descriptions of some of the useful variables.
781
782Defaults for the options are specified in brackets.
783
784Configuration:
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 \`..']
794
795_ACEOF
796
797  cat <<_ACEOF
798Installation directories:
799  --prefix=PREFIX         install architecture-independent files in PREFIX
800                          [$ac_default_prefix]
801  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
802                          [PREFIX]
803
804By default, \`make install' will install all the files in
805\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
806an installation prefix other than \`$ac_default_prefix' using \`--prefix',
807for instance \`--prefix=\$HOME'.
808
809For better control, use the options below.
810
811Fine 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]
824_ACEOF
825
826  cat <<\_ACEOF
827
828Program names:
829  --program-prefix=PREFIX            prepend PREFIX to installed program names
830  --program-suffix=SUFFIX            append SUFFIX to installed program names
831  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
832
833System types:
834  --build=BUILD     configure for building on BUILD [guessed]
835  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
836  --target=TARGET   configure for building compilers for TARGET [HOST]
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842  cat <<\_ACEOF
843
844Optional Features:
845  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
846  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
847--enable-dprint turns on debug logging
848--enable-debug turns -g on and -O2 off
849--enable-profile turns on -pg
850--enable-ndebug turns on -DNDEBUG
851--enable-urgent turns on -DPoller_URGENT
852--enable-asm turns on -S
853
854Optional Packages:
855  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
856  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857orb: orb used (one of TAO  omniORB  ORBacus, VisiBroker, OrbixE, ORBexpress)
858tao: prefix to TAO installation (default: \$TAO_ROOT)
859omni: prefix to omniORB installation (default: \$OMNI_ROOT)
860orbixe: prefix to Orbix/E installation (default: /usr/local)
861ansicpp: 'yes' if we use Orbix/E for ANSI C++
862orbexpress: prefix to ORBexpress installation (default: /usr/local)
863orbit: prefix to Orbit installation (default: /)
864
865Some influential environment variables:
866  CC          C compiler command
867  CFLAGS      C compiler flags
868  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
869              nonstandard directory <lib dir>
870  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
871              headers in a nonstandard directory <include dir>
872  CXX         C++ compiler command
873  CXXFLAGS    C++ compiler flags
874  CPP         C preprocessor
875  CXXCPP      C++ preprocessor
876
877Use these variables to override the choices made by `configure' or to help
878it to find libraries and programs with nonstandard names/locations.
879
880_ACEOF
881fi
882
883if test "$ac_init_help" = "recursive"; then
884  # If there are subdirs, report their specific --help.
885  ac_popdir=`pwd`
886  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887    test -d $ac_dir || continue
888    ac_builddir=.
889
890if test "$ac_dir" != .; then
891  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892  # A "../" for each directory in $ac_dir_suffix.
893  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
894else
895  ac_dir_suffix= ac_top_builddir=
896fi
897
898case $srcdir in
899  .)  # No --srcdir option.  We are building in place.
900    ac_srcdir=.
901    if test -z "$ac_top_builddir"; then
902       ac_top_srcdir=.
903    else
904       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905    fi ;;
906  [\\/]* | ?:[\\/]* )  # Absolute path.
907    ac_srcdir=$srcdir$ac_dir_suffix;
908    ac_top_srcdir=$srcdir ;;
909  *) # Relative path.
910    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911    ac_top_srcdir=$ac_top_builddir$srcdir ;;
912esac
913# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
914# absolute.
915ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
916ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
917ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
918ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
919
920    cd $ac_dir
921    # Check for guested configure; otherwise get Cygnus style configure.
922    if test -f $ac_srcdir/configure.gnu; then
923      echo
924      $SHELL $ac_srcdir/configure.gnu  --help=recursive
925    elif test -f $ac_srcdir/configure; then
926      echo
927      $SHELL $ac_srcdir/configure  --help=recursive
928    elif test -f $ac_srcdir/configure.ac ||
929           test -f $ac_srcdir/configure.in; then
930      echo
931      $ac_configure --help
932    else
933      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934    fi
935    cd $ac_popdir
936  done
937fi
938
939test -n "$ac_init_help" && exit 0
940if $ac_init_version; then
941  cat <<\_ACEOF
942
943Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
944Free Software Foundation, Inc.
945This configure script is free software; the Free Software Foundation
946gives unlimited permission to copy, distribute and modify it.
947_ACEOF
948  exit 0
949fi
950exec 5>config.log
951cat >&5 <<_ACEOF
952This file contains any messages produced by compilers while
953running configure, to aid debugging if configure makes a mistake.
954
955It was created by $as_me, which was
956generated by GNU Autoconf 2.53.  Invocation command line was
957
958  $ $0 $@
959
960_ACEOF
961{
962cat <<_ASUNAME
963## --------- ##
964## Platform. ##
965## --------- ##
966
967hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
968uname -m = `(uname -m) 2>/dev/null || echo unknown`
969uname -r = `(uname -r) 2>/dev/null || echo unknown`
970uname -s = `(uname -s) 2>/dev/null || echo unknown`
971uname -v = `(uname -v) 2>/dev/null || echo unknown`
972
973/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
974/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
975
976/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
977/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
978/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
979hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
980/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
981/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
982/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
983
984_ASUNAME
985
986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987for as_dir in $PATH
988do
989  IFS=$as_save_IFS
990  test -z "$as_dir" && as_dir=.
991  echo "PATH: $as_dir"
992done
993
994} >&5
995
996cat >&5 <<_ACEOF
997
998
999## ----------- ##
1000## Core tests. ##
1001## ----------- ##
1002
1003_ACEOF
1004
1005
1006# Keep a trace of the command line.
1007# Strip out --no-create and --no-recursion so they do not pile up.
1008# Also quote any args containing shell meta-characters.
1009ac_configure_args=
1010ac_sep=
1011for ac_arg
1012do
1013  case $ac_arg in
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n ) continue ;;
1016  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018    continue ;;
1019  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021  esac
1022  case " $ac_configure_args " in
1023    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1024    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1025       ac_sep=" " ;;
1026  esac
1027  # Get rid of the leading space.
1028done
1029
1030# When interrupted or exit'd, cleanup temporary files, and complete
1031# config.log.  We remove comments because anyway the quotes in there
1032# would cause problems or look ugly.
1033# WARNING: Be sure not to use single quotes in there, as some shells,
1034# such as our DU 5.0 friend, will then `close' the trap.
1035trap 'exit_status=$?
1036  # Save into config.log some information that might help in debugging.
1037  {
1038    echo
1039    cat <<\_ASBOX
1040## ---------------- ##
1041## Cache variables. ##
1042## ---------------- ##
1043_ASBOX
1044    echo
1045    # The following way of writing the cache mishandles newlines in values,
1046{
1047  (set) 2>&1 |
1048    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1049    *ac_space=\ *)
1050      sed -n \
1051        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1052    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1053      ;;
1054    *)
1055      sed -n \
1056        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1057      ;;
1058    esac;
1059}
1060    echo
1061    if test -s confdefs.h; then
1062      cat <<\_ASBOX
1063## ----------- ##
1064## confdefs.h. ##
1065## ----------- ##
1066_ASBOX
1067      echo
1068      sed "/^$/d" confdefs.h
1069      echo
1070    fi
1071    test "$ac_signal" != 0 &&
1072      echo "$as_me: caught signal $ac_signal"
1073    echo "$as_me: exit $exit_status"
1074  } >&5
1075  rm -f core core.* *.core &&
1076  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1077    exit $exit_status
1078     ' 0
1079for ac_signal in 1 2 13 15; do
1080  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1081done
1082ac_signal=0
1083
1084# confdefs.h avoids OS command line length limits that DEFS can exceed.
1085rm -rf conftest* confdefs.h
1086# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1087echo >confdefs.h
1088
1089# Predefined preprocessor variables.
1090
1091cat >>confdefs.h <<_ACEOF
1092#define PACKAGE_NAME "$PACKAGE_NAME"
1093_ACEOF
1094
1095
1096cat >>confdefs.h <<_ACEOF
1097#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1098_ACEOF
1099
1100
1101cat >>confdefs.h <<_ACEOF
1102#define PACKAGE_VERSION "$PACKAGE_VERSION"
1103_ACEOF
1104
1105
1106cat >>confdefs.h <<_ACEOF
1107#define PACKAGE_STRING "$PACKAGE_STRING"
1108_ACEOF
1109
1110
1111cat >>confdefs.h <<_ACEOF
1112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1113_ACEOF
1114
1115
1116# Let the site file select an alternate cache file if it wants to.
1117# Prefer explicitly selected file to automatically selected ones.
1118if test -z "$CONFIG_SITE"; then
1119  if test "x$prefix" != xNONE; then
1120    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1121  else
1122    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1123  fi
1124fi
1125for ac_site_file in $CONFIG_SITE; do
1126  if test -r "$ac_site_file"; then
1127    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1128echo "$as_me: loading site script $ac_site_file" >&6;}
1129    sed 's/^/| /' "$ac_site_file" >&5
1130    . "$ac_site_file"
1131  fi
1132done
1133
1134if test -r "$cache_file"; then
1135  # Some versions of bash will fail to source /dev/null (special
1136  # files actually), so we avoid doing that.
1137  if test -f "$cache_file"; then
1138    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1139echo "$as_me: loading cache $cache_file" >&6;}
1140    case $cache_file in
1141      [\\/]* | ?:[\\/]* ) . $cache_file;;
1142      *)                      . ./$cache_file;;
1143    esac
1144  fi
1145else
1146  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1147echo "$as_me: creating cache $cache_file" >&6;}
1148  >$cache_file
1149fi
1150
1151# Check that the precious variables saved in the cache have kept the same
1152# value.
1153ac_cache_corrupted=false
1154for ac_var in `(set) 2>&1 |
1155               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1156  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1157  eval ac_new_set=\$ac_env_${ac_var}_set
1158  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1159  eval ac_new_val="\$ac_env_${ac_var}_value"
1160  case $ac_old_set,$ac_new_set in
1161    set,)
1162      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1163echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1164      ac_cache_corrupted=: ;;
1165    ,set)
1166      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1167echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1168      ac_cache_corrupted=: ;;
1169    ,);;
1170    *)
1171      if test "x$ac_old_val" != "x$ac_new_val"; then
1172        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1173echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1174        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1175echo "$as_me:   former value:  $ac_old_val" >&2;}
1176        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1177echo "$as_me:   current value: $ac_new_val" >&2;}
1178        ac_cache_corrupted=:
1179      fi;;
1180  esac
1181  # Pass precious variables to config.status.
1182  if test "$ac_new_set" = set; then
1183    case $ac_new_val in
1184    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1185      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1186    *) ac_arg=$ac_var=$ac_new_val ;;
1187    esac
1188    case " $ac_configure_args " in
1189      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1190      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1191    esac
1192  fi
1193done
1194if $ac_cache_corrupted; then
1195  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1196echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1197  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1198echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1199   { (exit 1); exit 1; }; }
1200fi
1201
1202ac_ext=c
1203ac_cpp='$CPP $CPPFLAGS'
1204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1206ac_compiler_gnu=$ac_cv_c_compiler_gnu
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227ac_aux_dir=
1228for ac_dir in config $srcdir/config; do
1229  if test -f $ac_dir/install-sh; then
1230    ac_aux_dir=$ac_dir
1231    ac_install_sh="$ac_aux_dir/install-sh -c"
1232    break
1233  elif test -f $ac_dir/install.sh; then
1234    ac_aux_dir=$ac_dir
1235    ac_install_sh="$ac_aux_dir/install.sh -c"
1236    break
1237  elif test -f $ac_dir/shtool; then
1238    ac_aux_dir=$ac_dir
1239    ac_install_sh="$ac_aux_dir/shtool install -c"
1240    break
1241  fi
1242done
1243if test -z "$ac_aux_dir"; then
1244  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1245echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1246   { (exit 1); exit 1; }; }
1247fi
1248ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1249ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1250ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1251
1252# Make sure we can run config.sub.
1253$ac_config_sub sun4 >/dev/null 2>&1 ||
1254  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1255echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1256   { (exit 1); exit 1; }; }
1257
1258echo "$as_me:$LINENO: checking build system type" >&5
1259echo $ECHO_N "checking build system type... $ECHO_C" >&6
1260if test "${ac_cv_build+set}" = set; then
1261  echo $ECHO_N "(cached) $ECHO_C" >&6
1262else
1263  ac_cv_build_alias=$build_alias
1264test -z "$ac_cv_build_alias" &&
1265  ac_cv_build_alias=`$ac_config_guess`
1266test -z "$ac_cv_build_alias" &&
1267  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1268echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1269   { (exit 1); exit 1; }; }
1270ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1271  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1272echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1273   { (exit 1); exit 1; }; }
1274
1275fi
1276echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1277echo "${ECHO_T}$ac_cv_build" >&6
1278build=$ac_cv_build
1279build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1280build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1281build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1282
1283
1284echo "$as_me:$LINENO: checking host system type" >&5
1285echo $ECHO_N "checking host system type... $ECHO_C" >&6
1286if test "${ac_cv_host+set}" = set; then
1287  echo $ECHO_N "(cached) $ECHO_C" >&6
1288else
1289  ac_cv_host_alias=$host_alias
1290test -z "$ac_cv_host_alias" &&
1291  ac_cv_host_alias=$ac_cv_build_alias
1292ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1293  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1294echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1295   { (exit 1); exit 1; }; }
1296
1297fi
1298echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1299echo "${ECHO_T}$ac_cv_host" >&6
1300host=$ac_cv_host
1301host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1302host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1303host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1304
1305
1306echo "$as_me:$LINENO: checking target system type" >&5
1307echo $ECHO_N "checking target system type... $ECHO_C" >&6
1308if test "${ac_cv_target+set}" = set; then
1309  echo $ECHO_N "(cached) $ECHO_C" >&6
1310else
1311  ac_cv_target_alias=$target_alias
1312test "x$ac_cv_target_alias" = "x" &&
1313  ac_cv_target_alias=$ac_cv_host_alias
1314ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1315  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1316echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1317   { (exit 1); exit 1; }; }
1318
1319fi
1320echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1321echo "${ECHO_T}$ac_cv_target" >&6
1322target=$ac_cv_target
1323target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1324target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1325target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1326
1327
1328# The aliases save the names the user supplied, while $host etc.
1329# will get canonicalized.
1330test -n "$target_alias" &&
1331  test "$program_prefix$program_suffix$program_transform_name" = \
1332    NONENONEs,x,x, &&
1333  program_prefix=${target_alias}-
1334
1335
1336# Find a good install program.  We prefer a C program (faster),
1337# so one script is as good as another.  But avoid the broken or
1338# incompatible versions:
1339# SysV /etc/install, /usr/sbin/install
1340# SunOS /usr/etc/install
1341# IRIX /sbin/install
1342# AIX /bin/install
1343# AmigaOS /C/install, which installs bootblocks on floppy discs
1344# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1345# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1346# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1347# ./install, which can be erroneously created by make from ./install.sh.
1348echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1349echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1350if test -z "$INSTALL"; then
1351if test "${ac_cv_path_install+set}" = set; then
1352  echo $ECHO_N "(cached) $ECHO_C" >&6
1353else
1354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355for as_dir in $PATH
1356do
1357  IFS=$as_save_IFS
1358  test -z "$as_dir" && as_dir=.
1359  # Account for people who put trailing slashes in PATH elements.
1360case $as_dir/ in
1361  ./ | .// | /cC/* | \
1362  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1363  /usr/ucb/* ) ;;
1364  *)
1365    # OSF1 and SCO ODT 3.0 have their own names for install.
1366    # Don't use installbsd from OSF since it installs stuff as root
1367    # by default.
1368    for ac_prog in ginstall scoinst install; do
1369      for ac_exec_ext in '' $ac_executable_extensions; do
1370        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1371          if test $ac_prog = install &&
1372            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1373            # AIX install.  It has an incompatible calling convention.
1374            :
1375          elif test $ac_prog = install &&
1376            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1377            # program-specific install script used by HP pwplus--don't use.
1378            :
1379          else
1380            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1381            break 3
1382          fi
1383        fi
1384      done
1385    done
1386    ;;
1387esac
1388done
1389
1390
1391fi
1392  if test "${ac_cv_path_install+set}" = set; then
1393    INSTALL=$ac_cv_path_install
1394  else
1395    # As a last resort, use the slow shell script.  We don't cache a
1396    # path for INSTALL within a source directory, because that will
1397    # break other packages using the cache if that directory is
1398    # removed, or if the path is relative.
1399    INSTALL=$ac_install_sh
1400  fi
1401fi
1402echo "$as_me:$LINENO: result: $INSTALL" >&5
1403echo "${ECHO_T}$INSTALL" >&6
1404
1405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1406# It thinks the first close brace ends the variable substitution.
1407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1408
1409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1410
1411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1412
1413echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1414echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1415# Just in case
1416sleep 1
1417echo timestamp > conftestfile
1418# Do `set' in a subshell so we don't clobber the current shell's
1419# arguments.  Must try -L first in case configure is actually a
1420# symlink; some systems play weird games with the mod time of symlinks
1421# (eg FreeBSD returns the mod time of the symlink's containing
1422# directory).
1423if (
1424   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1425   if test "$*" = "X"; then
1426      # -L didn't work.
1427      set X `ls -t $srcdir/configure conftestfile`
1428   fi
1429   if test "$*" != "X $srcdir/configure conftestfile" \
1430      && test "$*" != "X conftestfile $srcdir/configure"; then
1431
1432      # If neither matched, then we have a broken ls.  This can happen
1433      # if, for instance, CONFIG_SHELL is bash and it inherits a
1434      # broken ls alias from the environment.  This has actually
1435      # happened.  Such a system could not be considered "sane".
1436      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1437alias in your environment" >&5
1438echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1439alias in your environment" >&2;}
1440   { (exit 1); exit 1; }; }
1441   fi
1442
1443   test "$2" = conftestfile
1444   )
1445then
1446   # Ok.
1447   :
1448else
1449   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1450Check your system clock" >&5
1451echo "$as_me: error: newly created file is older than distributed files!
1452Check your system clock" >&2;}
1453   { (exit 1); exit 1; }; }
1454fi
1455rm -f conftest*
1456echo "$as_me:$LINENO: result: yes" >&5
1457echo "${ECHO_T}yes" >&6
1458test "$program_prefix" != NONE &&
1459  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1460# Use a double $ so make ignores it.
1461test "$program_suffix" != NONE &&
1462  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1463# Double any \ or $.  echo might interpret backslashes.
1464# By default was `s,x,x', remove it if useless.
1465cat <<\_ACEOF >conftest.sed
1466s/[\\$]/&&/g;s/;s,x,x,$//
1467_ACEOF
1468program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1469rm conftest.sed
1470
1471echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1472echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1473set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1474if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1475  echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477  cat >conftest.make <<\_ACEOF
1478all:
1479	@echo 'ac_maketemp="${MAKE}"'
1480_ACEOF
1481# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1482eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1483if test -n "$ac_maketemp"; then
1484  eval ac_cv_prog_make_${ac_make}_set=yes
1485else
1486  eval ac_cv_prog_make_${ac_make}_set=no
1487fi
1488rm -f conftest.make
1489fi
1490if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1491  echo "$as_me:$LINENO: result: yes" >&5
1492echo "${ECHO_T}yes" >&6
1493  SET_MAKE=
1494else
1495  echo "$as_me:$LINENO: result: no" >&5
1496echo "${ECHO_T}no" >&6
1497  SET_MAKE="MAKE=${MAKE-make}"
1498fi
1499
1500
1501PACKAGE=dkftpbench
1502
1503VERSION=0.45
1504
1505if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1506  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1507echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1508   { (exit 1); exit 1; }; }
1509fi
1510
1511cat >>confdefs.h <<_ACEOF
1512#define PACKAGE "$PACKAGE"
1513_ACEOF
1514
1515
1516cat >>confdefs.h <<_ACEOF
1517#define VERSION "$VERSION"
1518_ACEOF
1519
1520
1521
1522missing_dir=`cd $ac_aux_dir && pwd`
1523echo "$as_me:$LINENO: checking for working aclocal" >&5
1524echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1525# Run test in a subshell; some versions of sh will print an error if
1526# an executable is not found, even if stderr is redirected.
1527# Redirect stdin to placate older versions of autoconf.  Sigh.
1528if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1529   ACLOCAL=aclocal
1530   echo "$as_me:$LINENO: result: found" >&5
1531echo "${ECHO_T}found" >&6
1532else
1533   ACLOCAL="$missing_dir/missing aclocal"
1534   echo "$as_me:$LINENO: result: missing" >&5
1535echo "${ECHO_T}missing" >&6
1536fi
1537
1538echo "$as_me:$LINENO: checking for working autoconf" >&5
1539echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1540# Run test in a subshell; some versions of sh will print an error if
1541# an executable is not found, even if stderr is redirected.
1542# Redirect stdin to placate older versions of autoconf.  Sigh.
1543if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1544   AUTOCONF=autoconf
1545   echo "$as_me:$LINENO: result: found" >&5
1546echo "${ECHO_T}found" >&6
1547else
1548   AUTOCONF="$missing_dir/missing autoconf"
1549   echo "$as_me:$LINENO: result: missing" >&5
1550echo "${ECHO_T}missing" >&6
1551fi
1552
1553echo "$as_me:$LINENO: checking for working automake" >&5
1554echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1555# Run test in a subshell; some versions of sh will print an error if
1556# an executable is not found, even if stderr is redirected.
1557# Redirect stdin to placate older versions of autoconf.  Sigh.
1558if (automake --version) < /dev/null > /dev/null 2>&1; then
1559   AUTOMAKE=automake
1560   echo "$as_me:$LINENO: result: found" >&5
1561echo "${ECHO_T}found" >&6
1562else
1563   AUTOMAKE="$missing_dir/missing automake"
1564   echo "$as_me:$LINENO: result: missing" >&5
1565echo "${ECHO_T}missing" >&6
1566fi
1567
1568echo "$as_me:$LINENO: checking for working autoheader" >&5
1569echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1570# Run test in a subshell; some versions of sh will print an error if
1571# an executable is not found, even if stderr is redirected.
1572# Redirect stdin to placate older versions of autoconf.  Sigh.
1573if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1574   AUTOHEADER=autoheader
1575   echo "$as_me:$LINENO: result: found" >&5
1576echo "${ECHO_T}found" >&6
1577else
1578   AUTOHEADER="$missing_dir/missing autoheader"
1579   echo "$as_me:$LINENO: result: missing" >&5
1580echo "${ECHO_T}missing" >&6
1581fi
1582
1583echo "$as_me:$LINENO: checking for working makeinfo" >&5
1584echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1585# Run test in a subshell; some versions of sh will print an error if
1586# an executable is not found, even if stderr is redirected.
1587# Redirect stdin to placate older versions of autoconf.  Sigh.
1588if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1589   MAKEINFO=makeinfo
1590   echo "$as_me:$LINENO: result: found" >&5
1591echo "${ECHO_T}found" >&6
1592else
1593   MAKEINFO="$missing_dir/missing makeinfo"
1594   echo "$as_me:$LINENO: result: missing" >&5
1595echo "${ECHO_T}missing" >&6
1596fi
1597
1598
1599if test -n "$ac_tool_prefix"; then
1600  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1601set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_RANLIB+set}" = set; then
1605  echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607  if test -n "$RANLIB"; then
1608  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1609else
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613  IFS=$as_save_IFS
1614  test -z "$as_dir" && as_dir=.
1615  for ac_exec_ext in '' $ac_executable_extensions; do
1616  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619    break 2
1620  fi
1621done
1622done
1623
1624fi
1625fi
1626RANLIB=$ac_cv_prog_RANLIB
1627if test -n "$RANLIB"; then
1628  echo "$as_me:$LINENO: result: $RANLIB" >&5
1629echo "${ECHO_T}$RANLIB" >&6
1630else
1631  echo "$as_me:$LINENO: result: no" >&5
1632echo "${ECHO_T}no" >&6
1633fi
1634
1635fi
1636if test -z "$ac_cv_prog_RANLIB"; then
1637  ac_ct_RANLIB=$RANLIB
1638  # Extract the first word of "ranlib", so it can be a program name with args.
1639set dummy ranlib; ac_word=$2
1640echo "$as_me:$LINENO: checking for $ac_word" >&5
1641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  if test -n "$ac_ct_RANLIB"; then
1646  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1647else
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  for ac_exec_ext in '' $ac_executable_extensions; do
1654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655    ac_cv_prog_ac_ct_RANLIB="ranlib"
1656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657    break 2
1658  fi
1659done
1660done
1661
1662  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1663fi
1664fi
1665ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1666if test -n "$ac_ct_RANLIB"; then
1667  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1668echo "${ECHO_T}$ac_ct_RANLIB" >&6
1669else
1670  echo "$as_me:$LINENO: result: no" >&5
1671echo "${ECHO_T}no" >&6
1672fi
1673
1674  RANLIB=$ac_ct_RANLIB
1675else
1676  RANLIB="$ac_cv_prog_RANLIB"
1677fi
1678
1679MYCFLAGS="-Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings"
1680# Check whether --enable-dprint or --disable-dprint was given.
1681if test "${enable_dprint+set}" = set; then
1682  enableval="$enable_dprint"
1683  MYCFLAGS="$MYCFLAGS -DUSE_DPRINT"
1684fi;
1685# Check whether --enable-debug or --disable-debug was given.
1686if test "${enable_debug+set}" = set; then
1687  enableval="$enable_debug"
1688  MYCFLAGS="$MYCFLAGS -g"
1689else
1690  MYCFLAGS="$MYCFLAGS -O2"
1691fi;
1692# Check whether --enable-profile or --disable-profile was given.
1693if test "${enable_profile+set}" = set; then
1694  enableval="$enable_profile"
1695  MYCFLAGS="$MYCFLAGS -pg"
1696fi;
1697# Check whether --enable-ndebug or --disable-ndebug was given.
1698if test "${enable_ndebug+set}" = set; then
1699  enableval="$enable_ndebug"
1700  MYCFLAGS="$MYCFLAGS -DNDEBUG"
1701fi;
1702# Check whether --enable-urgent or --disable-urgent was given.
1703if test "${enable_urgent+set}" = set; then
1704  enableval="$enable_urgent"
1705  MYCFLAGS="$MYCFLAGS -DPoller_URGENT"
1706fi;
1707# Check whether --enable-asm or --disable-asm was given.
1708if test "${enable_asm+set}" = set; then
1709  enableval="$enable_asm"
1710  MYCFLAGS="$MYCFLAGS -S"
1711fi;
1712CFLAGS="$CFLAGS $MYCFLAGS"
1713CXXFLAGS="$CXXFLAGS $MYCFLAGS"
1714
1715
1716ac_ext=c
1717ac_cpp='$CPP $CPPFLAGS'
1718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720ac_compiler_gnu=$ac_cv_c_compiler_gnu
1721if test -n "$ac_tool_prefix"; then
1722  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1723set dummy ${ac_tool_prefix}gcc; ac_word=$2
1724echo "$as_me:$LINENO: checking for $ac_word" >&5
1725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726if test "${ac_cv_prog_CC+set}" = set; then
1727  echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729  if test -n "$CC"; then
1730  ac_cv_prog_CC="$CC" # Let the user override the test.
1731else
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735  IFS=$as_save_IFS
1736  test -z "$as_dir" && as_dir=.
1737  for ac_exec_ext in '' $ac_executable_extensions; do
1738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741    break 2
1742  fi
1743done
1744done
1745
1746fi
1747fi
1748CC=$ac_cv_prog_CC
1749if test -n "$CC"; then
1750  echo "$as_me:$LINENO: result: $CC" >&5
1751echo "${ECHO_T}$CC" >&6
1752else
1753  echo "$as_me:$LINENO: result: no" >&5
1754echo "${ECHO_T}no" >&6
1755fi
1756
1757fi
1758if test -z "$ac_cv_prog_CC"; then
1759  ac_ct_CC=$CC
1760  # Extract the first word of "gcc", so it can be a program name with args.
1761set dummy gcc; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1765  echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767  if test -n "$ac_ct_CC"; then
1768  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1769else
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773  IFS=$as_save_IFS
1774  test -z "$as_dir" && as_dir=.
1775  for ac_exec_ext in '' $ac_executable_extensions; do
1776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777    ac_cv_prog_ac_ct_CC="gcc"
1778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779    break 2
1780  fi
1781done
1782done
1783
1784fi
1785fi
1786ac_ct_CC=$ac_cv_prog_ac_ct_CC
1787if test -n "$ac_ct_CC"; then
1788  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1789echo "${ECHO_T}$ac_ct_CC" >&6
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793fi
1794
1795  CC=$ac_ct_CC
1796else
1797  CC="$ac_cv_prog_CC"
1798fi
1799
1800if test -z "$CC"; then
1801  if test -n "$ac_tool_prefix"; then
1802  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1803set dummy ${ac_tool_prefix}cc; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_CC+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$CC"; then
1810  ac_cv_prog_CC="$CC" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_CC="${ac_tool_prefix}cc"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826fi
1827fi
1828CC=$ac_cv_prog_CC
1829if test -n "$CC"; then
1830  echo "$as_me:$LINENO: result: $CC" >&5
1831echo "${ECHO_T}$CC" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837fi
1838if test -z "$ac_cv_prog_CC"; then
1839  ac_ct_CC=$CC
1840  # Extract the first word of "cc", so it can be a program name with args.
1841set dummy cc; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1845  echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847  if test -n "$ac_ct_CC"; then
1848  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849else
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853  IFS=$as_save_IFS
1854  test -z "$as_dir" && as_dir=.
1855  for ac_exec_ext in '' $ac_executable_extensions; do
1856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857    ac_cv_prog_ac_ct_CC="cc"
1858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859    break 2
1860  fi
1861done
1862done
1863
1864fi
1865fi
1866ac_ct_CC=$ac_cv_prog_ac_ct_CC
1867if test -n "$ac_ct_CC"; then
1868  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1869echo "${ECHO_T}$ac_ct_CC" >&6
1870else
1871  echo "$as_me:$LINENO: result: no" >&5
1872echo "${ECHO_T}no" >&6
1873fi
1874
1875  CC=$ac_ct_CC
1876else
1877  CC="$ac_cv_prog_CC"
1878fi
1879
1880fi
1881if test -z "$CC"; then
1882  # Extract the first word of "cc", so it can be a program name with args.
1883set dummy cc; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_CC+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$CC"; then
1890  ac_cv_prog_CC="$CC" # Let the user override the test.
1891else
1892  ac_prog_rejected=no
1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894for as_dir in $PATH
1895do
1896  IFS=$as_save_IFS
1897  test -z "$as_dir" && as_dir=.
1898  for ac_exec_ext in '' $ac_executable_extensions; do
1899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1901       ac_prog_rejected=yes
1902       continue
1903     fi
1904    ac_cv_prog_CC="cc"
1905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906    break 2
1907  fi
1908done
1909done
1910
1911if test $ac_prog_rejected = yes; then
1912  # We found a bogon in the path, so make sure we never use it.
1913  set dummy $ac_cv_prog_CC
1914  shift
1915  if test $# != 0; then
1916    # We chose a different compiler from the bogus one.
1917    # However, it has the same basename, so the bogon will be chosen
1918    # first if we set CC to just the basename; use the full file name.
1919    shift
1920    set dummy "$as_dir/$ac_word" ${1+"$@"}
1921    shift
1922    ac_cv_prog_CC="$@"
1923  fi
1924fi
1925fi
1926fi
1927CC=$ac_cv_prog_CC
1928if test -n "$CC"; then
1929  echo "$as_me:$LINENO: result: $CC" >&5
1930echo "${ECHO_T}$CC" >&6
1931else
1932  echo "$as_me:$LINENO: result: no" >&5
1933echo "${ECHO_T}no" >&6
1934fi
1935
1936fi
1937if test -z "$CC"; then
1938  if test -n "$ac_tool_prefix"; then
1939  for ac_prog in cl
1940  do
1941    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1942set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1943echo "$as_me:$LINENO: checking for $ac_word" >&5
1944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945if test "${ac_cv_prog_CC+set}" = set; then
1946  echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948  if test -n "$CC"; then
1949  ac_cv_prog_CC="$CC" # Let the user override the test.
1950else
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954  IFS=$as_save_IFS
1955  test -z "$as_dir" && as_dir=.
1956  for ac_exec_ext in '' $ac_executable_extensions; do
1957  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960    break 2
1961  fi
1962done
1963done
1964
1965fi
1966fi
1967CC=$ac_cv_prog_CC
1968if test -n "$CC"; then
1969  echo "$as_me:$LINENO: result: $CC" >&5
1970echo "${ECHO_T}$CC" >&6
1971else
1972  echo "$as_me:$LINENO: result: no" >&5
1973echo "${ECHO_T}no" >&6
1974fi
1975
1976    test -n "$CC" && break
1977  done
1978fi
1979if test -z "$CC"; then
1980  ac_ct_CC=$CC
1981  for ac_prog in cl
1982do
1983  # Extract the first word of "$ac_prog", so it can be a program name with args.
1984set dummy $ac_prog; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$ac_ct_CC"; then
1991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    ac_cv_prog_ac_ct_CC="$ac_prog"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007fi
2008fi
2009ac_ct_CC=$ac_cv_prog_ac_ct_CC
2010if test -n "$ac_ct_CC"; then
2011  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2012echo "${ECHO_T}$ac_ct_CC" >&6
2013else
2014  echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018  test -n "$ac_ct_CC" && break
2019done
2020
2021  CC=$ac_ct_CC
2022fi
2023
2024fi
2025
2026
2027test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2028echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2029   { (exit 1); exit 1; }; }
2030
2031# Provide some information about the compiler.
2032echo "$as_me:$LINENO:" \
2033     "checking for C compiler version" >&5
2034ac_compiler=`set X $ac_compile; echo $2`
2035{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2036  (eval $ac_compiler --version </dev/null >&5) 2>&5
2037  ac_status=$?
2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039  (exit $ac_status); }
2040{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2041  (eval $ac_compiler -v </dev/null >&5) 2>&5
2042  ac_status=$?
2043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044  (exit $ac_status); }
2045{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2046  (eval $ac_compiler -V </dev/null >&5) 2>&5
2047  ac_status=$?
2048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049  (exit $ac_status); }
2050
2051cat >conftest.$ac_ext <<_ACEOF
2052#line $LINENO "configure"
2053#include "confdefs.h"
2054
2055#ifdef F77_DUMMY_MAIN
2056#  ifdef __cplusplus
2057     extern "C"
2058#  endif
2059   int F77_DUMMY_MAIN() { return 1; }
2060#endif
2061int
2062main ()
2063{
2064
2065  ;
2066  return 0;
2067}
2068_ACEOF
2069ac_clean_files_save=$ac_clean_files
2070ac_clean_files="$ac_clean_files a.out a.exe"
2071# Try to create an executable without -o first, disregard a.out.
2072# It will help us diagnose broken compilers, and finding out an intuition
2073# of exeext.
2074echo "$as_me:$LINENO: checking for C compiler default output" >&5
2075echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2076ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2077if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2078  (eval $ac_link_default) 2>&5
2079  ac_status=$?
2080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081  (exit $ac_status); }; then
2082  # Find the output, starting from the most likely.  This scheme is
2083# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2084# resort.
2085
2086# Be careful to initialize this variable, since it used to be cached.
2087# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2088ac_cv_exeext=
2089for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2090                ls a.out conftest 2>/dev/null;
2091                ls a.* conftest.* 2>/dev/null`; do
2092  case $ac_file in
2093    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2094    a.out ) # We found the default executable, but exeext='' is most
2095            # certainly right.
2096            break;;
2097    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2099          export ac_cv_exeext
2100          break;;
2101    * ) break;;
2102  esac
2103done
2104else
2105  echo "$as_me: failed program was:" >&5
2106cat conftest.$ac_ext >&5
2107{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2108echo "$as_me: error: C compiler cannot create executables" >&2;}
2109   { (exit 77); exit 77; }; }
2110fi
2111
2112ac_exeext=$ac_cv_exeext
2113echo "$as_me:$LINENO: result: $ac_file" >&5
2114echo "${ECHO_T}$ac_file" >&6
2115
2116# Check the compiler produces executables we can run.  If not, either
2117# the compiler is broken, or we cross compile.
2118echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2119echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2120# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2121# If not cross compiling, check that we can run a simple program.
2122if test "$cross_compiling" != yes; then
2123  if { ac_try='./$ac_file'
2124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125  (eval $ac_try) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }; }; then
2129    cross_compiling=no
2130  else
2131    if test "$cross_compiling" = maybe; then
2132	cross_compiling=yes
2133    else
2134	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2135If you meant to cross compile, use \`--host'." >&5
2136echo "$as_me: error: cannot run C compiled programs.
2137If you meant to cross compile, use \`--host'." >&2;}
2138   { (exit 1); exit 1; }; }
2139    fi
2140  fi
2141fi
2142echo "$as_me:$LINENO: result: yes" >&5
2143echo "${ECHO_T}yes" >&6
2144
2145rm -f a.out a.exe conftest$ac_cv_exeext
2146ac_clean_files=$ac_clean_files_save
2147# Check the compiler produces executables we can run.  If not, either
2148# the compiler is broken, or we cross compile.
2149echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2150echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2151echo "$as_me:$LINENO: result: $cross_compiling" >&5
2152echo "${ECHO_T}$cross_compiling" >&6
2153
2154echo "$as_me:$LINENO: checking for suffix of executables" >&5
2155echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2157  (eval $ac_link) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }; then
2161  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2162# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2163# work properly (i.e., refer to `conftest.exe'), while it won't with
2164# `rm'.
2165for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2166  case $ac_file in
2167    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2168    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169          export ac_cv_exeext
2170          break;;
2171    * ) break;;
2172  esac
2173done
2174else
2175  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2176echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2177   { (exit 1); exit 1; }; }
2178fi
2179
2180rm -f conftest$ac_cv_exeext
2181echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2182echo "${ECHO_T}$ac_cv_exeext" >&6
2183
2184rm -f conftest.$ac_ext
2185EXEEXT=$ac_cv_exeext
2186ac_exeext=$EXEEXT
2187echo "$as_me:$LINENO: checking for suffix of object files" >&5
2188echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2189if test "${ac_cv_objext+set}" = set; then
2190  echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192  cat >conftest.$ac_ext <<_ACEOF
2193#line $LINENO "configure"
2194#include "confdefs.h"
2195
2196#ifdef F77_DUMMY_MAIN
2197#  ifdef __cplusplus
2198     extern "C"
2199#  endif
2200   int F77_DUMMY_MAIN() { return 1; }
2201#endif
2202int
2203main ()
2204{
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210rm -f conftest.o conftest.obj
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212  (eval $ac_compile) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; then
2216  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217  case $ac_file in
2218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2219    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220       break;;
2221  esac
2222done
2223else
2224  echo "$as_me: failed program was:" >&5
2225cat conftest.$ac_ext >&5
2226{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2227echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2228   { (exit 1); exit 1; }; }
2229fi
2230
2231rm -f conftest.$ac_cv_objext conftest.$ac_ext
2232fi
2233echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2234echo "${ECHO_T}$ac_cv_objext" >&6
2235OBJEXT=$ac_cv_objext
2236ac_objext=$OBJEXT
2237echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2238echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2239if test "${ac_cv_c_compiler_gnu+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243#line $LINENO "configure"
2244#include "confdefs.h"
2245
2246#ifdef F77_DUMMY_MAIN
2247#  ifdef __cplusplus
2248     extern "C"
2249#  endif
2250   int F77_DUMMY_MAIN() { return 1; }
2251#endif
2252int
2253main ()
2254{
2255#ifndef __GNUC__
2256       choke me
2257#endif
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265  (eval $ac_compile) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); } &&
2269         { ac_try='test -s conftest.$ac_objext'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275  ac_compiler_gnu=yes
2276else
2277  echo "$as_me: failed program was:" >&5
2278cat conftest.$ac_ext >&5
2279ac_compiler_gnu=no
2280fi
2281rm -f conftest.$ac_objext conftest.$ac_ext
2282ac_cv_c_compiler_gnu=$ac_compiler_gnu
2283
2284fi
2285echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2286echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2287GCC=`test $ac_compiler_gnu = yes && echo yes`
2288ac_test_CFLAGS=${CFLAGS+set}
2289ac_save_CFLAGS=$CFLAGS
2290CFLAGS="-g"
2291echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2292echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2293if test "${ac_cv_prog_cc_g+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  cat >conftest.$ac_ext <<_ACEOF
2297#line $LINENO "configure"
2298#include "confdefs.h"
2299
2300#ifdef F77_DUMMY_MAIN
2301#  ifdef __cplusplus
2302     extern "C"
2303#  endif
2304   int F77_DUMMY_MAIN() { return 1; }
2305#endif
2306int
2307main ()
2308{
2309
2310  ;
2311  return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316  (eval $ac_compile) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -s conftest.$ac_objext'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; }; then
2326  ac_cv_prog_cc_g=yes
2327else
2328  echo "$as_me: failed program was:" >&5
2329cat conftest.$ac_ext >&5
2330ac_cv_prog_cc_g=no
2331fi
2332rm -f conftest.$ac_objext conftest.$ac_ext
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336if test "$ac_test_CFLAGS" = set; then
2337  CFLAGS=$ac_save_CFLAGS
2338elif test $ac_cv_prog_cc_g = yes; then
2339  if test "$GCC" = yes; then
2340    CFLAGS="-g -O2"
2341  else
2342    CFLAGS="-g"
2343  fi
2344else
2345  if test "$GCC" = yes; then
2346    CFLAGS="-O2"
2347  else
2348    CFLAGS=
2349  fi
2350fi
2351# Some people use a C++ compiler to compile C.  Since we use `exit',
2352# in C++ we need to declare it.  In case someone uses the same compiler
2353# for both compiling C and C++ we need to have the C++ compiler decide
2354# the declaration of exit, since it's the most demanding environment.
2355cat >conftest.$ac_ext <<_ACEOF
2356#ifndef __cplusplus
2357  choke me
2358#endif
2359_ACEOF
2360rm -f conftest.$ac_objext
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362  (eval $ac_compile) 2>&5
2363  ac_status=$?
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); } &&
2366         { ac_try='test -s conftest.$ac_objext'
2367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368  (eval $ac_try) 2>&5
2369  ac_status=$?
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); }; }; then
2372  for ac_declaration in \
2373   ''\
2374   '#include <stdlib.h>' \
2375   'extern "C" void std::exit (int) throw (); using std::exit;' \
2376   'extern "C" void std::exit (int); using std::exit;' \
2377   'extern "C" void exit (int) throw ();' \
2378   'extern "C" void exit (int);' \
2379   'void exit (int);'
2380do
2381  cat >conftest.$ac_ext <<_ACEOF
2382#line $LINENO "configure"
2383#include "confdefs.h"
2384#include <stdlib.h>
2385$ac_declaration
2386#ifdef F77_DUMMY_MAIN
2387#  ifdef __cplusplus
2388     extern "C"
2389#  endif
2390   int F77_DUMMY_MAIN() { return 1; }
2391#endif
2392int
2393main ()
2394{
2395exit (42);
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
2401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402  (eval $ac_compile) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  :
2413else
2414  echo "$as_me: failed program was:" >&5
2415cat conftest.$ac_ext >&5
2416continue
2417fi
2418rm -f conftest.$ac_objext conftest.$ac_ext
2419  cat >conftest.$ac_ext <<_ACEOF
2420#line $LINENO "configure"
2421#include "confdefs.h"
2422$ac_declaration
2423#ifdef F77_DUMMY_MAIN
2424#  ifdef __cplusplus
2425     extern "C"
2426#  endif
2427   int F77_DUMMY_MAIN() { return 1; }
2428#endif
2429int
2430main ()
2431{
2432exit (42);
2433  ;
2434  return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439  (eval $ac_compile) 2>&5
2440  ac_status=$?
2441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442  (exit $ac_status); } &&
2443         { ac_try='test -s conftest.$ac_objext'
2444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445  (eval $ac_try) 2>&5
2446  ac_status=$?
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); }; }; then
2449  break
2450else
2451  echo "$as_me: failed program was:" >&5
2452cat conftest.$ac_ext >&5
2453fi
2454rm -f conftest.$ac_objext conftest.$ac_ext
2455done
2456rm -f conftest*
2457if test -n "$ac_declaration"; then
2458  echo '#ifdef __cplusplus' >>confdefs.h
2459  echo $ac_declaration      >>confdefs.h
2460  echo '#endif'             >>confdefs.h
2461fi
2462
2463else
2464  echo "$as_me: failed program was:" >&5
2465cat conftest.$ac_ext >&5
2466fi
2467rm -f conftest.$ac_objext conftest.$ac_ext
2468ac_ext=c
2469ac_cpp='$CPP $CPPFLAGS'
2470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472ac_compiler_gnu=$ac_cv_c_compiler_gnu
2473
2474ac_ext=cc
2475ac_cpp='$CXXCPP $CPPFLAGS'
2476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2479if test -n "$ac_tool_prefix"; then
2480  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2481  do
2482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486if test "${ac_cv_prog_CXX+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  if test -n "$CXX"; then
2490  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504done
2505
2506fi
2507fi
2508CXX=$ac_cv_prog_CXX
2509if test -n "$CXX"; then
2510  echo "$as_me:$LINENO: result: $CXX" >&5
2511echo "${ECHO_T}$CXX" >&6
2512else
2513  echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6
2515fi
2516
2517    test -n "$CXX" && break
2518  done
2519fi
2520if test -z "$CXX"; then
2521  ac_ct_CXX=$CXX
2522  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2523do
2524  # Extract the first word of "$ac_prog", so it can be a program name with args.
2525set dummy $ac_prog; ac_word=$2
2526echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  if test -n "$ac_ct_CXX"; then
2532  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537  IFS=$as_save_IFS
2538  test -z "$as_dir" && as_dir=.
2539  for ac_exec_ext in '' $ac_executable_extensions; do
2540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541    ac_cv_prog_ac_ct_CXX="$ac_prog"
2542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543    break 2
2544  fi
2545done
2546done
2547
2548fi
2549fi
2550ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2551if test -n "$ac_ct_CXX"; then
2552  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2553echo "${ECHO_T}$ac_ct_CXX" >&6
2554else
2555  echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6
2557fi
2558
2559  test -n "$ac_ct_CXX" && break
2560done
2561test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2562
2563  CXX=$ac_ct_CXX
2564fi
2565
2566
2567# Provide some information about the compiler.
2568echo "$as_me:$LINENO:" \
2569     "checking for C++ compiler version" >&5
2570ac_compiler=`set X $ac_compile; echo $2`
2571{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572  (eval $ac_compiler --version </dev/null >&5) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }
2576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577  (eval $ac_compiler -v </dev/null >&5) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }
2581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582  (eval $ac_compiler -V </dev/null >&5) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }
2586
2587echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2588echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2589if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2590  echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592  cat >conftest.$ac_ext <<_ACEOF
2593#line $LINENO "configure"
2594#include "confdefs.h"
2595
2596#ifdef F77_DUMMY_MAIN
2597#  ifdef __cplusplus
2598     extern "C"
2599#  endif
2600   int F77_DUMMY_MAIN() { return 1; }
2601#endif
2602int
2603main ()
2604{
2605#ifndef __GNUC__
2606       choke me
2607#endif
2608
2609  ;
2610  return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615  (eval $ac_compile) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619         { ac_try='test -s conftest.$ac_objext'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  ac_compiler_gnu=yes
2626else
2627  echo "$as_me: failed program was:" >&5
2628cat conftest.$ac_ext >&5
2629ac_compiler_gnu=no
2630fi
2631rm -f conftest.$ac_objext conftest.$ac_ext
2632ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2633
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2636echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2637GXX=`test $ac_compiler_gnu = yes && echo yes`
2638ac_test_CXXFLAGS=${CXXFLAGS+set}
2639ac_save_CXXFLAGS=$CXXFLAGS
2640CXXFLAGS="-g"
2641echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2642echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2643if test "${ac_cv_prog_cxx_g+set}" = set; then
2644  echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646  cat >conftest.$ac_ext <<_ACEOF
2647#line $LINENO "configure"
2648#include "confdefs.h"
2649
2650#ifdef F77_DUMMY_MAIN
2651#  ifdef __cplusplus
2652     extern "C"
2653#  endif
2654   int F77_DUMMY_MAIN() { return 1; }
2655#endif
2656int
2657main ()
2658{
2659
2660  ;
2661  return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666  (eval $ac_compile) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  ac_cv_prog_cxx_g=yes
2677else
2678  echo "$as_me: failed program was:" >&5
2679cat conftest.$ac_ext >&5
2680ac_cv_prog_cxx_g=no
2681fi
2682rm -f conftest.$ac_objext conftest.$ac_ext
2683fi
2684echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2685echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2686if test "$ac_test_CXXFLAGS" = set; then
2687  CXXFLAGS=$ac_save_CXXFLAGS
2688elif test $ac_cv_prog_cxx_g = yes; then
2689  if test "$GXX" = yes; then
2690    CXXFLAGS="-g -O2"
2691  else
2692    CXXFLAGS="-g"
2693  fi
2694else
2695  if test "$GXX" = yes; then
2696    CXXFLAGS="-O2"
2697  else
2698    CXXFLAGS=
2699  fi
2700fi
2701for ac_declaration in \
2702   ''\
2703   '#include <stdlib.h>' \
2704   'extern "C" void std::exit (int) throw (); using std::exit;' \
2705   'extern "C" void std::exit (int); using std::exit;' \
2706   'extern "C" void exit (int) throw ();' \
2707   'extern "C" void exit (int);' \
2708   'void exit (int);'
2709do
2710  cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
2712#include "confdefs.h"
2713#include <stdlib.h>
2714$ac_declaration
2715#ifdef F77_DUMMY_MAIN
2716#  ifdef __cplusplus
2717     extern "C"
2718#  endif
2719   int F77_DUMMY_MAIN() { return 1; }
2720#endif
2721int
2722main ()
2723{
2724exit (42);
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729rm -f conftest.$ac_objext
2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731  (eval $ac_compile) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); } &&
2735         { ac_try='test -s conftest.$ac_objext'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; }; then
2741  :
2742else
2743  echo "$as_me: failed program was:" >&5
2744cat conftest.$ac_ext >&5
2745continue
2746fi
2747rm -f conftest.$ac_objext conftest.$ac_ext
2748  cat >conftest.$ac_ext <<_ACEOF
2749#line $LINENO "configure"
2750#include "confdefs.h"
2751$ac_declaration
2752#ifdef F77_DUMMY_MAIN
2753#  ifdef __cplusplus
2754     extern "C"
2755#  endif
2756   int F77_DUMMY_MAIN() { return 1; }
2757#endif
2758int
2759main ()
2760{
2761exit (42);
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768  (eval $ac_compile) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -s conftest.$ac_objext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  break
2779else
2780  echo "$as_me: failed program was:" >&5
2781cat conftest.$ac_ext >&5
2782fi
2783rm -f conftest.$ac_objext conftest.$ac_ext
2784done
2785rm -f conftest*
2786if test -n "$ac_declaration"; then
2787  echo '#ifdef __cplusplus' >>confdefs.h
2788  echo $ac_declaration      >>confdefs.h
2789  echo '#endif'             >>confdefs.h
2790fi
2791
2792ac_ext=c
2793ac_cpp='$CPP $CPPFLAGS'
2794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797
2798
2799
2800
2801echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2802echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2803if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2804  echo $ECHO_N "(cached) $ECHO_C" >&6
2805else
2806  ac_check_lib_save_LIBS=$LIBS
2807LIBS="-lnsl  $LIBS"
2808cat >conftest.$ac_ext <<_ACEOF
2809#line $LINENO "configure"
2810#include "confdefs.h"
2811
2812/* Override any gcc2 internal prototype to avoid an error.  */
2813#ifdef __cplusplus
2814extern "C"
2815#endif
2816/* We use char because int might match the return type of a gcc2
2817   builtin and then its argument prototype would still apply.  */
2818char gethostbyname ();
2819#ifdef F77_DUMMY_MAIN
2820#  ifdef __cplusplus
2821     extern "C"
2822#  endif
2823   int F77_DUMMY_MAIN() { return 1; }
2824#endif
2825int
2826main ()
2827{
2828gethostbyname ();
2829  ;
2830  return 0;
2831}
2832_ACEOF
2833rm -f conftest.$ac_objext conftest$ac_exeext
2834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2835  (eval $ac_link) 2>&5
2836  ac_status=$?
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); } &&
2839         { ac_try='test -s conftest$ac_exeext'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; }; then
2845  ac_cv_lib_nsl_gethostbyname=yes
2846else
2847  echo "$as_me: failed program was:" >&5
2848cat conftest.$ac_ext >&5
2849ac_cv_lib_nsl_gethostbyname=no
2850fi
2851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2852LIBS=$ac_check_lib_save_LIBS
2853fi
2854echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2855echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2856if test $ac_cv_lib_nsl_gethostbyname = yes; then
2857  cat >>confdefs.h <<_ACEOF
2858#define HAVE_LIBNSL 1
2859_ACEOF
2860
2861  LIBS="-lnsl $LIBS"
2862
2863fi
2864
2865
2866echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
2867echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2868if test "${ac_cv_lib_socket_connect+set}" = set; then
2869  echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871  ac_check_lib_save_LIBS=$LIBS
2872LIBS="-lsocket  $LIBS"
2873cat >conftest.$ac_ext <<_ACEOF
2874#line $LINENO "configure"
2875#include "confdefs.h"
2876
2877/* Override any gcc2 internal prototype to avoid an error.  */
2878#ifdef __cplusplus
2879extern "C"
2880#endif
2881/* We use char because int might match the return type of a gcc2
2882   builtin and then its argument prototype would still apply.  */
2883char connect ();
2884#ifdef F77_DUMMY_MAIN
2885#  ifdef __cplusplus
2886     extern "C"
2887#  endif
2888   int F77_DUMMY_MAIN() { return 1; }
2889#endif
2890int
2891main ()
2892{
2893connect ();
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); } &&
2904         { ac_try='test -s conftest$ac_exeext'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; }; then
2910  ac_cv_lib_socket_connect=yes
2911else
2912  echo "$as_me: failed program was:" >&5
2913cat conftest.$ac_ext >&5
2914ac_cv_lib_socket_connect=no
2915fi
2916rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2917LIBS=$ac_check_lib_save_LIBS
2918fi
2919echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
2920echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2921if test $ac_cv_lib_socket_connect = yes; then
2922  cat >>confdefs.h <<_ACEOF
2923#define HAVE_LIBSOCKET 1
2924_ACEOF
2925
2926  LIBS="-lsocket $LIBS"
2927
2928fi
2929
2930
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2937echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2938# On Suns, sometimes $CPP names a directory.
2939if test -n "$CPP" && test -d "$CPP"; then
2940  CPP=
2941fi
2942if test -z "$CPP"; then
2943  if test "${ac_cv_prog_CPP+set}" = set; then
2944  echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946      # Double quotes because CPP needs to be expanded
2947    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2948    do
2949      ac_preproc_ok=false
2950for ac_c_preproc_warn_flag in '' yes
2951do
2952  # Use a header file that comes with gcc, so configuring glibc
2953  # with a fresh cross-compiler works.
2954  # On the NeXT, cc -E runs the code through the compiler's parser,
2955  # not just through cpp. "Syntax error" is here to catch this case.
2956  cat >conftest.$ac_ext <<_ACEOF
2957#line $LINENO "configure"
2958#include "confdefs.h"
2959#include <assert.h>
2960                     Syntax error
2961_ACEOF
2962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2963  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2964  ac_status=$?
2965  egrep -v '^ *\+' conftest.er1 >conftest.err
2966  rm -f conftest.er1
2967  cat conftest.err >&5
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); } >/dev/null; then
2970  if test -s conftest.err; then
2971    ac_cpp_err=$ac_c_preproc_warn_flag
2972  else
2973    ac_cpp_err=
2974  fi
2975else
2976  ac_cpp_err=yes
2977fi
2978if test -z "$ac_cpp_err"; then
2979  :
2980else
2981  echo "$as_me: failed program was:" >&5
2982  cat conftest.$ac_ext >&5
2983  # Broken: fails on valid input.
2984continue
2985fi
2986rm -f conftest.err conftest.$ac_ext
2987
2988  # OK, works on sane cases.  Now check whether non-existent headers
2989  # can be detected and how.
2990  cat >conftest.$ac_ext <<_ACEOF
2991#line $LINENO "configure"
2992#include "confdefs.h"
2993#include <ac_nonexistent.h>
2994_ACEOF
2995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2997  ac_status=$?
2998  egrep -v '^ *\+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } >/dev/null; then
3003  if test -s conftest.err; then
3004    ac_cpp_err=$ac_c_preproc_warn_flag
3005  else
3006    ac_cpp_err=
3007  fi
3008else
3009  ac_cpp_err=yes
3010fi
3011if test -z "$ac_cpp_err"; then
3012  # Broken: success on invalid input.
3013continue
3014else
3015  echo "$as_me: failed program was:" >&5
3016  cat conftest.$ac_ext >&5
3017  # Passes both tests.
3018ac_preproc_ok=:
3019break
3020fi
3021rm -f conftest.err conftest.$ac_ext
3022
3023done
3024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025rm -f conftest.err conftest.$ac_ext
3026if $ac_preproc_ok; then
3027  break
3028fi
3029
3030    done
3031    ac_cv_prog_CPP=$CPP
3032
3033fi
3034  CPP=$ac_cv_prog_CPP
3035else
3036  ac_cv_prog_CPP=$CPP
3037fi
3038echo "$as_me:$LINENO: result: $CPP" >&5
3039echo "${ECHO_T}$CPP" >&6
3040ac_preproc_ok=false
3041for ac_c_preproc_warn_flag in '' yes
3042do
3043  # Use a header file that comes with gcc, so configuring glibc
3044  # with a fresh cross-compiler works.
3045  # On the NeXT, cc -E runs the code through the compiler's parser,
3046  # not just through cpp. "Syntax error" is here to catch this case.
3047  cat >conftest.$ac_ext <<_ACEOF
3048#line $LINENO "configure"
3049#include "confdefs.h"
3050#include <assert.h>
3051                     Syntax error
3052_ACEOF
3053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3054  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3055  ac_status=$?
3056  egrep -v '^ *\+' conftest.er1 >conftest.err
3057  rm -f conftest.er1
3058  cat conftest.err >&5
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } >/dev/null; then
3061  if test -s conftest.err; then
3062    ac_cpp_err=$ac_c_preproc_warn_flag
3063  else
3064    ac_cpp_err=
3065  fi
3066else
3067  ac_cpp_err=yes
3068fi
3069if test -z "$ac_cpp_err"; then
3070  :
3071else
3072  echo "$as_me: failed program was:" >&5
3073  cat conftest.$ac_ext >&5
3074  # Broken: fails on valid input.
3075continue
3076fi
3077rm -f conftest.err conftest.$ac_ext
3078
3079  # OK, works on sane cases.  Now check whether non-existent headers
3080  # can be detected and how.
3081  cat >conftest.$ac_ext <<_ACEOF
3082#line $LINENO "configure"
3083#include "confdefs.h"
3084#include <ac_nonexistent.h>
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088  ac_status=$?
3089  egrep -v '^ *\+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } >/dev/null; then
3094  if test -s conftest.err; then
3095    ac_cpp_err=$ac_c_preproc_warn_flag
3096  else
3097    ac_cpp_err=
3098  fi
3099else
3100  ac_cpp_err=yes
3101fi
3102if test -z "$ac_cpp_err"; then
3103  # Broken: success on invalid input.
3104continue
3105else
3106  echo "$as_me: failed program was:" >&5
3107  cat conftest.$ac_ext >&5
3108  # Passes both tests.
3109ac_preproc_ok=:
3110break
3111fi
3112rm -f conftest.err conftest.$ac_ext
3113
3114done
3115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116rm -f conftest.err conftest.$ac_ext
3117if $ac_preproc_ok; then
3118  :
3119else
3120  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3121echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3122   { (exit 1); exit 1; }; }
3123fi
3124
3125ac_ext=c
3126ac_cpp='$CPP $CPPFLAGS'
3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131
3132cat >conftest.$ac_ext <<_ACEOF
3133#line $LINENO "configure"
3134#include "confdefs.h"
3135#include <sys/socket.h>
3136
3137_ACEOF
3138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139  egrep "socklen_t" >/dev/null 2>&1; then
3140  :
3141else
3142  cat >>confdefs.h <<\_ACEOF
3143#define socklen_t int
3144_ACEOF
3145
3146fi
3147rm -f conftest*
3148
3149
3150cat >conftest.$ac_ext <<_ACEOF
3151#line $LINENO "configure"
3152#include "confdefs.h"
3153#include <netinet/in.h>
3154
3155_ACEOF
3156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157  egrep "in_addr_t" >/dev/null 2>&1; then
3158  :
3159else
3160  cat >>confdefs.h <<\_ACEOF
3161#define in_addr_t int
3162_ACEOF
3163
3164fi
3165rm -f conftest*
3166
3167
3168cat >conftest.$ac_ext <<_ACEOF
3169#line $LINENO "configure"
3170#include "confdefs.h"
3171
3172/* Override any gcc2 internal prototype to avoid an error.  */
3173#ifdef __cplusplus
3174extern "C"
3175#endif
3176/* We use char because int might match the return type of a gcc2
3177   builtin and then its argument prototype would still apply.  */
3178char inet_aton ();
3179#ifdef F77_DUMMY_MAIN
3180#  ifdef __cplusplus
3181     extern "C"
3182#  endif
3183   int F77_DUMMY_MAIN() { return 1; }
3184#endif
3185int
3186main ()
3187{
3188inet_aton ();
3189  ;
3190  return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext conftest$ac_exeext
3194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195  (eval $ac_link) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -s conftest$ac_exeext'
3200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201  (eval $ac_try) 2>&5
3202  ac_status=$?
3203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204  (exit $ac_status); }; }; then
3205  cat >>confdefs.h <<\_ACEOF
3206#define HAVE_INET_ATON 1
3207_ACEOF
3208
3209else
3210  echo "$as_me: failed program was:" >&5
3211cat conftest.$ac_ext >&5
3212LIBS="$LIBS inet_aton.c"
3213fi
3214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3215
3216
3217for ac_func in kqueue
3218do
3219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3220echo "$as_me:$LINENO: checking for $ac_func" >&5
3221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3222if eval "test \"\${$as_ac_var+set}\" = set"; then
3223  echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225  cat >conftest.$ac_ext <<_ACEOF
3226#line $LINENO "configure"
3227#include "confdefs.h"
3228/* System header to define __stub macros and hopefully few prototypes,
3229    which can conflict with char $ac_func (); below.  */
3230#include <assert.h>
3231/* Override any gcc2 internal prototype to avoid an error.  */
3232#ifdef __cplusplus
3233extern "C"
3234#endif
3235/* We use char because int might match the return type of a gcc2
3236   builtin and then its argument prototype would still apply.  */
3237char $ac_func ();
3238char (*f) ();
3239
3240#ifdef F77_DUMMY_MAIN
3241#  ifdef __cplusplus
3242     extern "C"
3243#  endif
3244   int F77_DUMMY_MAIN() { return 1; }
3245#endif
3246int
3247main ()
3248{
3249/* The GNU C library defines this for functions which it implements
3250    to always fail with ENOSYS.  Some functions are actually named
3251    something starting with __ and the normal name is an alias.  */
3252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3253choke me
3254#else
3255f = $ac_func;
3256#endif
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262rm -f conftest.$ac_objext conftest$ac_exeext
3263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3264  (eval $ac_link) 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); } &&
3268         { ac_try='test -s conftest$ac_exeext'
3269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; }; then
3274  eval "$as_ac_var=yes"
3275else
3276  echo "$as_me: failed program was:" >&5
3277cat conftest.$ac_ext >&5
3278eval "$as_ac_var=no"
3279fi
3280rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3281fi
3282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3284if test `eval echo '${'$as_ac_var'}'` = yes; then
3285  cat >>confdefs.h <<_ACEOF
3286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3287_ACEOF
3288
3289fi
3290done
3291
3292
3293
3294for ac_func in getifaddrs
3295do
3296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3297echo "$as_me:$LINENO: checking for $ac_func" >&5
3298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3299if eval "test \"\${$as_ac_var+set}\" = set"; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  cat >conftest.$ac_ext <<_ACEOF
3303#line $LINENO "configure"
3304#include "confdefs.h"
3305/* System header to define __stub macros and hopefully few prototypes,
3306    which can conflict with char $ac_func (); below.  */
3307#include <assert.h>
3308/* Override any gcc2 internal prototype to avoid an error.  */
3309#ifdef __cplusplus
3310extern "C"
3311#endif
3312/* We use char because int might match the return type of a gcc2
3313   builtin and then its argument prototype would still apply.  */
3314char $ac_func ();
3315char (*f) ();
3316
3317#ifdef F77_DUMMY_MAIN
3318#  ifdef __cplusplus
3319     extern "C"
3320#  endif
3321   int F77_DUMMY_MAIN() { return 1; }
3322#endif
3323int
3324main ()
3325{
3326/* The GNU C library defines this for functions which it implements
3327    to always fail with ENOSYS.  Some functions are actually named
3328    something starting with __ and the normal name is an alias.  */
3329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3330choke me
3331#else
3332f = $ac_func;
3333#endif
3334
3335  ;
3336  return 0;
3337}
3338_ACEOF
3339rm -f conftest.$ac_objext conftest$ac_exeext
3340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341  (eval $ac_link) 2>&5
3342  ac_status=$?
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); } &&
3345         { ac_try='test -s conftest$ac_exeext'
3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347  (eval $ac_try) 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; }; then
3351  eval "$as_ac_var=yes"
3352else
3353  echo "$as_me: failed program was:" >&5
3354cat conftest.$ac_ext >&5
3355eval "$as_ac_var=no"
3356fi
3357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3358fi
3359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3361if test `eval echo '${'$as_ac_var'}'` = yes; then
3362  cat >>confdefs.h <<_ACEOF
3363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3364_ACEOF
3365
3366fi
3367done
3368
3369
3370if test -c /dev/poll; then
3371    cat >>confdefs.h <<\_ACEOF
3372#define HAVE_DEVPOLL 1
3373_ACEOF
3374
3375else
3376    cat >>confdefs.h <<\_ACEOF
3377#define HAVE_DEVPOLL 0
3378_ACEOF
3379
3380fi
3381
3382if test -c /dev/epoll; then
3383    cat >>confdefs.h <<\_ACEOF
3384#define HAVE_DEVEPOLL 1
3385_ACEOF
3386
3387else
3388    cat >>confdefs.h <<\_ACEOF
3389#define HAVE_DEVEPOLL 0
3390_ACEOF
3391
3392fi
3393
3394cat >>confdefs.h <<\_ACEOF
3395#define _GNU_SOURCE 1
3396_ACEOF
3397
3398
3399cat >conftest.$ac_ext <<_ACEOF
3400#line $LINENO "configure"
3401#include "confdefs.h"
3402#define _GNU_SOURCE
3403#include <fcntl.h>
3404#ifdef F_SETSIG
3405 YUP_HAVE_F_SETSIG
3406#endif
3407
3408_ACEOF
3409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410  egrep "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
3411  cat >>confdefs.h <<\_ACEOF
3412#define HAVE_F_SETSIG 1
3413_ACEOF
3414
3415fi
3416rm -f conftest*
3417
3418
3419cat >conftest.$ac_ext <<_ACEOF
3420#line $LINENO "configure"
3421#include "confdefs.h"
3422#define _GNU_SOURCE
3423#include <fcntl.h>
3424#ifdef F_SETAUXFL
3425 YUP_HAVE_F_SETAUXFL
3426#endif
3427
3428_ACEOF
3429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430  egrep "YUP_HAVE_F_SETAUXFL" >/dev/null 2>&1; then
3431  cat >>confdefs.h <<\_ACEOF
3432#define HAVE_F_SETAUXFL 1
3433_ACEOF
3434
3435fi
3436rm -f conftest*
3437
3438
3439ac_ext=cc
3440ac_cpp='$CXXCPP $CPPFLAGS'
3441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3444echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3445echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3446if test -z "$CXXCPP"; then
3447  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3448  echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450      # Double quotes because CXXCPP needs to be expanded
3451    for CXXCPP in "$CXX -E" "/lib/cpp"
3452    do
3453      ac_preproc_ok=false
3454for ac_cxx_preproc_warn_flag in '' yes
3455do
3456  # Use a header file that comes with gcc, so configuring glibc
3457  # with a fresh cross-compiler works.
3458  # On the NeXT, cc -E runs the code through the compiler's parser,
3459  # not just through cpp. "Syntax error" is here to catch this case.
3460  cat >conftest.$ac_ext <<_ACEOF
3461#line $LINENO "configure"
3462#include "confdefs.h"
3463#include <assert.h>
3464                     Syntax error
3465_ACEOF
3466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468  ac_status=$?
3469  egrep -v '^ *\+' conftest.er1 >conftest.err
3470  rm -f conftest.er1
3471  cat conftest.err >&5
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); } >/dev/null; then
3474  if test -s conftest.err; then
3475    ac_cpp_err=$ac_cxx_preproc_warn_flag
3476  else
3477    ac_cpp_err=
3478  fi
3479else
3480  ac_cpp_err=yes
3481fi
3482if test -z "$ac_cpp_err"; then
3483  :
3484else
3485  echo "$as_me: failed program was:" >&5
3486  cat conftest.$ac_ext >&5
3487  # Broken: fails on valid input.
3488continue
3489fi
3490rm -f conftest.err conftest.$ac_ext
3491
3492  # OK, works on sane cases.  Now check whether non-existent headers
3493  # can be detected and how.
3494  cat >conftest.$ac_ext <<_ACEOF
3495#line $LINENO "configure"
3496#include "confdefs.h"
3497#include <ac_nonexistent.h>
3498_ACEOF
3499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3500  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3501  ac_status=$?
3502  egrep -v '^ *\+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } >/dev/null; then
3507  if test -s conftest.err; then
3508    ac_cpp_err=$ac_cxx_preproc_warn_flag
3509  else
3510    ac_cpp_err=
3511  fi
3512else
3513  ac_cpp_err=yes
3514fi
3515if test -z "$ac_cpp_err"; then
3516  # Broken: success on invalid input.
3517continue
3518else
3519  echo "$as_me: failed program was:" >&5
3520  cat conftest.$ac_ext >&5
3521  # Passes both tests.
3522ac_preproc_ok=:
3523break
3524fi
3525rm -f conftest.err conftest.$ac_ext
3526
3527done
3528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529rm -f conftest.err conftest.$ac_ext
3530if $ac_preproc_ok; then
3531  break
3532fi
3533
3534    done
3535    ac_cv_prog_CXXCPP=$CXXCPP
3536
3537fi
3538  CXXCPP=$ac_cv_prog_CXXCPP
3539else
3540  ac_cv_prog_CXXCPP=$CXXCPP
3541fi
3542echo "$as_me:$LINENO: result: $CXXCPP" >&5
3543echo "${ECHO_T}$CXXCPP" >&6
3544ac_preproc_ok=false
3545for ac_cxx_preproc_warn_flag in '' yes
3546do
3547  # Use a header file that comes with gcc, so configuring glibc
3548  # with a fresh cross-compiler works.
3549  # On the NeXT, cc -E runs the code through the compiler's parser,
3550  # not just through cpp. "Syntax error" is here to catch this case.
3551  cat >conftest.$ac_ext <<_ACEOF
3552#line $LINENO "configure"
3553#include "confdefs.h"
3554#include <assert.h>
3555                     Syntax error
3556_ACEOF
3557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3559  ac_status=$?
3560  egrep -v '^ *\+' conftest.er1 >conftest.err
3561  rm -f conftest.er1
3562  cat conftest.err >&5
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); } >/dev/null; then
3565  if test -s conftest.err; then
3566    ac_cpp_err=$ac_cxx_preproc_warn_flag
3567  else
3568    ac_cpp_err=
3569  fi
3570else
3571  ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
3574  :
3575else
3576  echo "$as_me: failed program was:" >&5
3577  cat conftest.$ac_ext >&5
3578  # Broken: fails on valid input.
3579continue
3580fi
3581rm -f conftest.err conftest.$ac_ext
3582
3583  # OK, works on sane cases.  Now check whether non-existent headers
3584  # can be detected and how.
3585  cat >conftest.$ac_ext <<_ACEOF
3586#line $LINENO "configure"
3587#include "confdefs.h"
3588#include <ac_nonexistent.h>
3589_ACEOF
3590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3591  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3592  ac_status=$?
3593  egrep -v '^ *\+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } >/dev/null; then
3598  if test -s conftest.err; then
3599    ac_cpp_err=$ac_cxx_preproc_warn_flag
3600  else
3601    ac_cpp_err=
3602  fi
3603else
3604  ac_cpp_err=yes
3605fi
3606if test -z "$ac_cpp_err"; then
3607  # Broken: success on invalid input.
3608continue
3609else
3610  echo "$as_me: failed program was:" >&5
3611  cat conftest.$ac_ext >&5
3612  # Passes both tests.
3613ac_preproc_ok=:
3614break
3615fi
3616rm -f conftest.err conftest.$ac_ext
3617
3618done
3619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3620rm -f conftest.err conftest.$ac_ext
3621if $ac_preproc_ok; then
3622  :
3623else
3624  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3625echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3626   { (exit 1); exit 1; }; }
3627fi
3628
3629ac_ext=c
3630ac_cpp='$CPP $CPPFLAGS'
3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634
3635
3636echo "$as_me:$LINENO: checking whether using Sun Worckshop C compiler" >&5
3637echo $ECHO_N "checking whether using Sun Worckshop C compiler... $ECHO_C" >&6
3638if test "${rssh_cv_check_sunpro_c+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641
3642
3643 ac_ext=c
3644ac_cpp='$CPP $CPPFLAGS'
3645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648
3649 cat >conftest.$ac_ext <<_ACEOF
3650#line $LINENO "configure"
3651#include "confdefs.h"
3652
3653#ifdef F77_DUMMY_MAIN
3654#  ifdef __cplusplus
3655     extern "C"
3656#  endif
3657   int F77_DUMMY_MAIN() { return 1; }
3658#endif
3659int
3660main ()
3661{
3662#ifndef __SUNPRO_C
3663# include "error: this is not Sun Workshop."
3664#endif
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670rm -f conftest.$ac_objext
3671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672  (eval $ac_compile) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); } &&
3676         { ac_try='test -s conftest.$ac_objext'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; }; then
3682  rssh_cv_check_sunpro_c=yes
3683else
3684  echo "$as_me: failed program was:" >&5
3685cat conftest.$ac_ext >&5
3686rssh_cv_check_sunpro_c=no
3687fi
3688rm -f conftest.$ac_objext conftest.$ac_ext
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695fi
3696echo "$as_me:$LINENO: result: $rssh_cv_check_sunpro_c" >&5
3697echo "${ECHO_T}$rssh_cv_check_sunpro_c" >&6
3698if test ${rssh_cv_check_sunpro_c} = yes
3699then
3700
3701  :
3702else
3703
3704  :
3705fi
3706
3707
3708echo "$as_me:$LINENO: checking whether using Sun Worckshop C++ compiler" >&5
3709echo $ECHO_N "checking whether using Sun Worckshop C++ compiler... $ECHO_C" >&6
3710if test "${rssh_cv_check_sunpro_cc+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713
3714
3715 ac_ext=cc
3716ac_cpp='$CXXCPP $CPPFLAGS'
3717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3720
3721 cat >conftest.$ac_ext <<_ACEOF
3722#line $LINENO "configure"
3723#include "confdefs.h"
3724
3725#ifdef F77_DUMMY_MAIN
3726#  ifdef __cplusplus
3727     extern "C"
3728#  endif
3729   int F77_DUMMY_MAIN() { return 1; }
3730#endif
3731int
3732main ()
3733{
3734#ifndef __SUNPRO_CC
3735# include "error: this is not Sun Workshop."
3736#endif
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext
3743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744  (eval $ac_compile) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } &&
3748         { ac_try='test -s conftest.$ac_objext'
3749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750  (eval $ac_try) 2>&5
3751  ac_status=$?
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); }; }; then
3754  rssh_cv_check_sunpro_cc=yes
3755else
3756  echo "$as_me: failed program was:" >&5
3757cat conftest.$ac_ext >&5
3758rssh_cv_check_sunpro_cc=no
3759fi
3760rm -f conftest.$ac_objext conftest.$ac_ext
3761ac_ext=c
3762ac_cpp='$CPP $CPPFLAGS'
3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766
3767fi
3768echo "$as_me:$LINENO: result: $rssh_cv_check_sunpro_cc" >&5
3769echo "${ECHO_T}$rssh_cv_check_sunpro_cc" >&6
3770if test ${rssh_cv_check_sunpro_cc} = yes
3771then
3772
3773  :
3774else
3775
3776  :
3777fi
3778
3779echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3780echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3781if test "${ac_cv_header_stdc+set}" = set; then
3782  echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784  cat >conftest.$ac_ext <<_ACEOF
3785#line $LINENO "configure"
3786#include "confdefs.h"
3787#include <stdlib.h>
3788#include <stdarg.h>
3789#include <string.h>
3790#include <float.h>
3791
3792_ACEOF
3793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3795  ac_status=$?
3796  egrep -v '^ *\+' conftest.er1 >conftest.err
3797  rm -f conftest.er1
3798  cat conftest.err >&5
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); } >/dev/null; then
3801  if test -s conftest.err; then
3802    ac_cpp_err=$ac_c_preproc_warn_flag
3803  else
3804    ac_cpp_err=
3805  fi
3806else
3807  ac_cpp_err=yes
3808fi
3809if test -z "$ac_cpp_err"; then
3810  ac_cv_header_stdc=yes
3811else
3812  echo "$as_me: failed program was:" >&5
3813  cat conftest.$ac_ext >&5
3814  ac_cv_header_stdc=no
3815fi
3816rm -f conftest.err conftest.$ac_ext
3817
3818if test $ac_cv_header_stdc = yes; then
3819  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3820  cat >conftest.$ac_ext <<_ACEOF
3821#line $LINENO "configure"
3822#include "confdefs.h"
3823#include <string.h>
3824
3825_ACEOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827  egrep "memchr" >/dev/null 2>&1; then
3828  :
3829else
3830  ac_cv_header_stdc=no
3831fi
3832rm -f conftest*
3833
3834fi
3835
3836if test $ac_cv_header_stdc = yes; then
3837  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838  cat >conftest.$ac_ext <<_ACEOF
3839#line $LINENO "configure"
3840#include "confdefs.h"
3841#include <stdlib.h>
3842
3843_ACEOF
3844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845  egrep "free" >/dev/null 2>&1; then
3846  :
3847else
3848  ac_cv_header_stdc=no
3849fi
3850rm -f conftest*
3851
3852fi
3853
3854if test $ac_cv_header_stdc = yes; then
3855  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3856  if test "$cross_compiling" = yes; then
3857  :
3858else
3859  cat >conftest.$ac_ext <<_ACEOF
3860#line $LINENO "configure"
3861#include "confdefs.h"
3862#include <ctype.h>
3863#if ((' ' & 0x0FF) == 0x020)
3864# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3865# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3866#else
3867# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3868                     || ('j' <= (c) && (c) <= 'r') \
3869                     || ('s' <= (c) && (c) <= 'z'))
3870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3871#endif
3872
3873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3874int
3875main ()
3876{
3877  int i;
3878  for (i = 0; i < 256; i++)
3879    if (XOR (islower (i), ISLOWER (i))
3880        || toupper (i) != TOUPPER (i))
3881      exit(2);
3882  exit (0);
3883}
3884_ACEOF
3885rm -f conftest$ac_exeext
3886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3887  (eval $ac_link) 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892  (eval $ac_try) 2>&5
3893  ac_status=$?
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); }; }; then
3896  :
3897else
3898  echo "$as_me: program exited with status $ac_status" >&5
3899echo "$as_me: failed program was:" >&5
3900cat conftest.$ac_ext >&5
3901( exit $ac_status )
3902ac_cv_header_stdc=no
3903fi
3904rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3905fi
3906fi
3907fi
3908echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3909echo "${ECHO_T}$ac_cv_header_stdc" >&6
3910if test $ac_cv_header_stdc = yes; then
3911
3912cat >>confdefs.h <<\_ACEOF
3913#define STDC_HEADERS 1
3914_ACEOF
3915
3916fi
3917
3918# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3929                  inttypes.h stdint.h unistd.h
3930do
3931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3932echo "$as_me:$LINENO: checking for $ac_header" >&5
3933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3934if eval "test \"\${$as_ac_Header+set}\" = set"; then
3935  echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937  cat >conftest.$ac_ext <<_ACEOF
3938#line $LINENO "configure"
3939#include "confdefs.h"
3940$ac_includes_default
3941
3942#include <$ac_header>
3943_ACEOF
3944rm -f conftest.$ac_objext
3945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3946  (eval $ac_compile) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); } &&
3950         { ac_try='test -s conftest.$ac_objext'
3951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952  (eval $ac_try) 2>&5
3953  ac_status=$?
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); }; }; then
3956  eval "$as_ac_Header=yes"
3957else
3958  echo "$as_me: failed program was:" >&5
3959cat conftest.$ac_ext >&5
3960eval "$as_ac_Header=no"
3961fi
3962rm -f conftest.$ac_objext conftest.$ac_ext
3963fi
3964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3966if test `eval echo '${'$as_ac_Header'}'` = yes; then
3967  cat >>confdefs.h <<_ACEOF
3968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3969_ACEOF
3970
3971fi
3972
3973done
3974
3975
3976
3977if test "${ac_cv_header_pthread_h+set}" = set; then
3978  echo "$as_me:$LINENO: checking for pthread.h" >&5
3979echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3980if test "${ac_cv_header_pthread_h+set}" = set; then
3981  echo $ECHO_N "(cached) $ECHO_C" >&6
3982fi
3983echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3984echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3985else
3986  # Is the header compilable?
3987echo "$as_me:$LINENO: checking pthread.h usability" >&5
3988echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3989cat >conftest.$ac_ext <<_ACEOF
3990#line $LINENO "configure"
3991#include "confdefs.h"
3992$ac_includes_default
3993#include <pthread.h>
3994_ACEOF
3995rm -f conftest.$ac_objext
3996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997  (eval $ac_compile) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); } &&
4001         { ac_try='test -s conftest.$ac_objext'
4002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003  (eval $ac_try) 2>&5
4004  ac_status=$?
4005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006  (exit $ac_status); }; }; then
4007  ac_header_compiler=yes
4008else
4009  echo "$as_me: failed program was:" >&5
4010cat conftest.$ac_ext >&5
4011ac_header_compiler=no
4012fi
4013rm -f conftest.$ac_objext conftest.$ac_ext
4014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017# Is the header present?
4018echo "$as_me:$LINENO: checking pthread.h presence" >&5
4019echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
4020cat >conftest.$ac_ext <<_ACEOF
4021#line $LINENO "configure"
4022#include "confdefs.h"
4023#include <pthread.h>
4024_ACEOF
4025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4027  ac_status=$?
4028  egrep -v '^ *\+' conftest.er1 >conftest.err
4029  rm -f conftest.er1
4030  cat conftest.err >&5
4031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032  (exit $ac_status); } >/dev/null; then
4033  if test -s conftest.err; then
4034    ac_cpp_err=$ac_c_preproc_warn_flag
4035  else
4036    ac_cpp_err=
4037  fi
4038else
4039  ac_cpp_err=yes
4040fi
4041if test -z "$ac_cpp_err"; then
4042  ac_header_preproc=yes
4043else
4044  echo "$as_me: failed program was:" >&5
4045  cat conftest.$ac_ext >&5
4046  ac_header_preproc=no
4047fi
4048rm -f conftest.err conftest.$ac_ext
4049echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4050echo "${ECHO_T}$ac_header_preproc" >&6
4051
4052# So?  What about this header?
4053case $ac_header_compiler:$ac_header_preproc in
4054  yes:no )
4055    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
4056echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4057    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
4058echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
4059  no:yes )
4060    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
4061echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
4062    { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
4063echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
4064    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
4065echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
4066esac
4067echo "$as_me:$LINENO: checking for pthread.h" >&5
4068echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4069if test "${ac_cv_header_pthread_h+set}" = set; then
4070  echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072  ac_cv_header_pthread_h=$ac_header_preproc
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4075echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
4076
4077fi
4078if test $ac_cv_header_pthread_h = yes; then
4079  cat >>confdefs.h <<\_ACEOF
4080#define HAVE_PTHREAD_H 1
4081_ACEOF
4082
4083fi
4084
4085
4086echo "$as_me:$LINENO: checking parameters for using pthreads: " >&5
4087echo $ECHO_N "checking parameters for using pthreads: ... $ECHO_C" >&6
4088if test x$rssh_cv_check_sunpro_c = xyes
4089then
4090  CFLAGS_PTHREADS="-mt"
4091fi
4092if test x$rssh_cv_check_sunpro_cc = xyes
4093then
4094  CXXFLAGS_PTHREADS="-mt"
4095fi
4096case $build_os in
4097  freebsd*)
4098    CFLAGS_PTHREADS="-pthread"
4099    CXXFLAGS_PTHREADS="-pthread"
4100    freebsd_pthreads=yes
4101    ;;
4102  *)
4103    freebsd_pthreads=no
4104    ;;
4105esac
4106if test x$freebsd_pthreads = xno
4107then
4108  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4109echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4110if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  ac_check_lib_save_LIBS=$LIBS
4114LIBS="-lpthread  $LIBS"
4115cat >conftest.$ac_ext <<_ACEOF
4116#line $LINENO "configure"
4117#include "confdefs.h"
4118
4119/* Override any gcc2 internal prototype to avoid an error.  */
4120#ifdef __cplusplus
4121extern "C"
4122#endif
4123/* We use char because int might match the return type of a gcc2
4124   builtin and then its argument prototype would still apply.  */
4125char pthread_create ();
4126#ifdef F77_DUMMY_MAIN
4127#  ifdef __cplusplus
4128     extern "C"
4129#  endif
4130   int F77_DUMMY_MAIN() { return 1; }
4131#endif
4132int
4133main ()
4134{
4135pthread_create ();
4136  ;
4137  return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext conftest$ac_exeext
4141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142  (eval $ac_link) 2>&5
4143  ac_status=$?
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146         { ac_try='test -s conftest$ac_exeext'
4147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148  (eval $ac_try) 2>&5
4149  ac_status=$?
4150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151  (exit $ac_status); }; }; then
4152  ac_cv_lib_pthread_pthread_create=yes
4153else
4154  echo "$as_me: failed program was:" >&5
4155cat conftest.$ac_ext >&5
4156ac_cv_lib_pthread_pthread_create=no
4157fi
4158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4159LIBS=$ac_check_lib_save_LIBS
4160fi
4161echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4162echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4163if test $ac_cv_lib_pthread_pthread_create = yes; then
4164  LIBS_PTHREADS="-lpthread"
4165fi
4166
4167fi
4168echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
4169echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
4170if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
4171  echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173  ac_check_lib_save_LIBS=$LIBS
4174LIBS="-lposix4  $LIBS"
4175cat >conftest.$ac_ext <<_ACEOF
4176#line $LINENO "configure"
4177#include "confdefs.h"
4178
4179/* Override any gcc2 internal prototype to avoid an error.  */
4180#ifdef __cplusplus
4181extern "C"
4182#endif
4183/* We use char because int might match the return type of a gcc2
4184   builtin and then its argument prototype would still apply.  */
4185char nanosleep ();
4186#ifdef F77_DUMMY_MAIN
4187#  ifdef __cplusplus
4188     extern "C"
4189#  endif
4190   int F77_DUMMY_MAIN() { return 1; }
4191#endif
4192int
4193main ()
4194{
4195nanosleep ();
4196  ;
4197  return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext conftest$ac_exeext
4201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202  (eval $ac_link) 2>&5
4203  ac_status=$?
4204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205  (exit $ac_status); } &&
4206         { ac_try='test -s conftest$ac_exeext'
4207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208  (eval $ac_try) 2>&5
4209  ac_status=$?
4210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211  (exit $ac_status); }; }; then
4212  ac_cv_lib_posix4_nanosleep=yes
4213else
4214  echo "$as_me: failed program was:" >&5
4215cat conftest.$ac_ext >&5
4216ac_cv_lib_posix4_nanosleep=no
4217fi
4218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4219LIBS=$ac_check_lib_save_LIBS
4220fi
4221echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
4222echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
4223if test $ac_cv_lib_posix4_nanosleep = yes; then
4224  LIBS_PTHREADS="$LIBS_PTHREADS -lposix4"
4225fi
4226
4227echo "$as_me:$LINENO: result: \"flags $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&5
4228echo "${ECHO_T}\"flags $CFLAGS_PTHREADS\;libs: $LIBS_PTHREADS\"" >&6
4229
4230
4231
4232
4233
4234# Check whether --with-orb or --without-orb was given.
4235if test "${with_orb+set}" = set; then
4236  withval="$with_orb"
4237  \
4238            ORB=${with_orb}
4239else
4240  ORB=unknown
4241fi;
4242
4243{ echo "$as_me:$LINENO: checking ORB..." >&5
4244echo "$as_me: checking ORB..." >&6;}
4245
4246if test x$ORB = x
4247then
4248  ORB=unknown
4249fi
4250
4251rssh_know_orb_name=no
4252
4253if test  "$ORB" = "unknown"  -o  "$ORB" = "TAO"
4254then
4255
4256
4257
4258
4259# Check whether --with-tao or --without-tao was given.
4260if test "${with_tao+set}" = set; then
4261  withval="$with_tao"
4262  \
4263            TAO_PREFIX=${with_tao}
4264else
4265  TAO_PREFIX=/usr/local
4266fi;
4267
4268{ echo "$as_me:$LINENO: checking for TAO..." >&5
4269echo "$as_me: checking for TAO..." >&6;}
4270
4271if test "x$TAO_PREFIX" = "xno"
4272then
4273 tao=no
4274else
4275
4276svCXXCPPFLAGS=$CXXCPPFLAGS
4277svCXXFLAGS=$CXXFLAGS
4278svCPPFLAGS=$CPPFLAGS
4279svLIBS=$LIBS
4280svLDFLAGS=$LDFLAGS
4281svRSSH_ROLLBACK=$rssh_rollback
4282rssh_rollback="true"
4283
4284if  test "x$ACE_ROOT" = "x"
4285then
4286  echo "$as_me:$LINENO: result: ACE_ROOT not set" >&5
4287echo "${ECHO_T}ACE_ROOT not set" >&6
4288  tao=no
4289else
4290
4291
4292
4293
4294if test -z "$rssh_enable_pthreads_done"
4295then
4296 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
4297 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
4298 LIBS="$LIBS $LIBS_PTHREADS"
4299fi
4300rssh_enable_pthreads_done=yes
4301
4302rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
4303
4304
4305
4306ac_ext=cc
4307ac_cpp='$CXXCPP $CPPFLAGS'
4308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4311
4312
4313ORB_INCLUDES="-I$ACE_ROOT -I$ACE_ROOT/TAO -I$ACE_ROOT/TAO/orbsvcs"
4314CXXCPPFLAGS="$CXXCPPFLAGS $ORB_INCLUDES"
4315CPPFLAGS="$CPPFLAGS $ORB_INCLUDES"
4316
4317if test "${ac_cv_header_tao_corba_h+set}" = set; then
4318  echo "$as_me:$LINENO: checking for tao/corba.h" >&5
4319echo $ECHO_N "checking for tao/corba.h... $ECHO_C" >&6
4320if test "${ac_cv_header_tao_corba_h+set}" = set; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_header_tao_corba_h" >&5
4324echo "${ECHO_T}$ac_cv_header_tao_corba_h" >&6
4325else
4326  # Is the header compilable?
4327echo "$as_me:$LINENO: checking tao/corba.h usability" >&5
4328echo $ECHO_N "checking tao/corba.h usability... $ECHO_C" >&6
4329cat >conftest.$ac_ext <<_ACEOF
4330#line $LINENO "configure"
4331#include "confdefs.h"
4332$ac_includes_default
4333#include <tao/corba.h>
4334_ACEOF
4335rm -f conftest.$ac_objext
4336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4337  (eval $ac_compile) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); } &&
4341         { ac_try='test -s conftest.$ac_objext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  ac_header_compiler=yes
4348else
4349  echo "$as_me: failed program was:" >&5
4350cat conftest.$ac_ext >&5
4351ac_header_compiler=no
4352fi
4353rm -f conftest.$ac_objext conftest.$ac_ext
4354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4355echo "${ECHO_T}$ac_header_compiler" >&6
4356
4357# Is the header present?
4358echo "$as_me:$LINENO: checking tao/corba.h presence" >&5
4359echo $ECHO_N "checking tao/corba.h presence... $ECHO_C" >&6
4360cat >conftest.$ac_ext <<_ACEOF
4361#line $LINENO "configure"
4362#include "confdefs.h"
4363#include <tao/corba.h>
4364_ACEOF
4365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4366  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4367  ac_status=$?
4368  egrep -v '^ *\+' conftest.er1 >conftest.err
4369  rm -f conftest.er1
4370  cat conftest.err >&5
4371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372  (exit $ac_status); } >/dev/null; then
4373  if test -s conftest.err; then
4374    ac_cpp_err=$ac_cxx_preproc_warn_flag
4375  else
4376    ac_cpp_err=
4377  fi
4378else
4379  ac_cpp_err=yes
4380fi
4381if test -z "$ac_cpp_err"; then
4382  ac_header_preproc=yes
4383else
4384  echo "$as_me: failed program was:" >&5
4385  cat conftest.$ac_ext >&5
4386  ac_header_preproc=no
4387fi
4388rm -f conftest.err conftest.$ac_ext
4389echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4390echo "${ECHO_T}$ac_header_preproc" >&6
4391
4392# So?  What about this header?
4393case $ac_header_compiler:$ac_header_preproc in
4394  yes:no )
4395    { echo "$as_me:$LINENO: WARNING: tao/corba.h: accepted by the compiler, rejected by the preprocessor!" >&5
4396echo "$as_me: WARNING: tao/corba.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4397    { echo "$as_me:$LINENO: WARNING: tao/corba.h: proceeding with the preprocessor's result" >&5
4398echo "$as_me: WARNING: tao/corba.h: proceeding with the preprocessor's result" >&2;};;
4399  no:yes )
4400    { echo "$as_me:$LINENO: WARNING: tao/corba.h: present but cannot be compiled" >&5
4401echo "$as_me: WARNING: tao/corba.h: present but cannot be compiled" >&2;}
4402    { echo "$as_me:$LINENO: WARNING: tao/corba.h: check for missing prerequisite headers?" >&5
4403echo "$as_me: WARNING: tao/corba.h: check for missing prerequisite headers?" >&2;}
4404    { echo "$as_me:$LINENO: WARNING: tao/corba.h: proceeding with the preprocessor's result" >&5
4405echo "$as_me: WARNING: tao/corba.h: proceeding with the preprocessor's result" >&2;};;
4406esac
4407echo "$as_me:$LINENO: checking for tao/corba.h" >&5
4408echo $ECHO_N "checking for tao/corba.h... $ECHO_C" >&6
4409if test "${ac_cv_header_tao_corba_h+set}" = set; then
4410  echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412  ac_cv_header_tao_corba_h=$ac_header_preproc
4413fi
4414echo "$as_me:$LINENO: result: $ac_cv_header_tao_corba_h" >&5
4415echo "${ECHO_T}$ac_cv_header_tao_corba_h" >&6
4416
4417fi
4418if test $ac_cv_header_tao_corba_h = yes; then
4419  tao=yes
4420else
4421  tao=no
4422fi
4423
4424
4425
4426if test "x$tao" = "xyes"
4427then
4428  LDFLAGS="$LDFLAGS -L$ACE_ROOT/ace"
4429#  AC_CHECK_LIB(ACE,main, LIBS="-lACE $LIBS",ace_lib=no,)
4430#  AC_HAVE_LIBRARY(ACE, LIBS="-lACE $LIBS",ace_lib=no,)
4431  echo "$as_me:$LINENO: checking for CORBA::ORB_var orb in -lTAO" >&5
4432echo $ECHO_N "checking for CORBA::ORB_var orb in -lTAO... $ECHO_C" >&6
4433ac_lib_var=`echo TAO'_'include | sed 'y%./+-%__p_%'`
4434if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4435  echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437  yad_check_lib_save_LIBS="$LIBS"
4438LIBS="-lTAO -lACE $LIBS"
4439cat >conftest.$ac_ext <<_ACEOF
4440#line $LINENO "configure"
4441#include "confdefs.h"
4442            #include <tao/corba.h>
4443#ifdef F77_DUMMY_MAIN
4444#  ifdef __cplusplus
4445     extern "C"
4446#  endif
4447   int F77_DUMMY_MAIN() { return 1; }
4448#endif
4449int
4450main ()
4451{
4452CORBA::ORB_var orb
4453  ;
4454  return 0;
4455}
4456_ACEOF
4457rm -f conftest.$ac_objext conftest$ac_exeext
4458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4459  (eval $ac_link) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); } &&
4463         { ac_try='test -s conftest$ac_exeext'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; }; then
4469  eval "ac_cv_lib_$ac_lib_var=yes"
4470else
4471  echo "$as_me: failed program was:" >&5
4472cat conftest.$ac_ext >&5
4473eval "ac_cv_lib_$ac_lib_var=no"
4474fi
4475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4476LIBS="$yad_check_lib_save_LIBS"
4477
4478fi
4479if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480  echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482  LIBS="-lTAO -lACE $LIBS"
4483else
4484  echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486tao_libs=no
4487fi
4488
4489  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4490echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4491if test "${ac_cv_lib_socket_socket+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  ac_check_lib_save_LIBS=$LIBS
4495LIBS="-lsocket  $LIBS"
4496cat >conftest.$ac_ext <<_ACEOF
4497#line $LINENO "configure"
4498#include "confdefs.h"
4499
4500/* Override any gcc2 internal prototype to avoid an error.  */
4501#ifdef __cplusplus
4502extern "C"
4503#endif
4504/* We use char because int might match the return type of a gcc2
4505   builtin and then its argument prototype would still apply.  */
4506char socket ();
4507#ifdef F77_DUMMY_MAIN
4508#  ifdef __cplusplus
4509     extern "C"
4510#  endif
4511   int F77_DUMMY_MAIN() { return 1; }
4512#endif
4513int
4514main ()
4515{
4516socket ();
4517  ;
4518  return 0;
4519}
4520_ACEOF
4521rm -f conftest.$ac_objext conftest$ac_exeext
4522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523  (eval $ac_link) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); } &&
4527         { ac_try='test -s conftest$ac_exeext'
4528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529  (eval $ac_try) 2>&5
4530  ac_status=$?
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); }; }; then
4533  ac_cv_lib_socket_socket=yes
4534else
4535  echo "$as_me: failed program was:" >&5
4536cat conftest.$ac_ext >&5
4537ac_cv_lib_socket_socket=no
4538fi
4539rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4540LIBS=$ac_check_lib_save_LIBS
4541fi
4542echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4543echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4544if test $ac_cv_lib_socket_socket = yes; then
4545  LIBS="-lsocket $LIBS"
4546fi
4547
4548  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4549echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4550if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4551  echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553  ac_check_lib_save_LIBS=$LIBS
4554LIBS="-lnsl  $LIBS"
4555cat >conftest.$ac_ext <<_ACEOF
4556#line $LINENO "configure"
4557#include "confdefs.h"
4558
4559/* Override any gcc2 internal prototype to avoid an error.  */
4560#ifdef __cplusplus
4561extern "C"
4562#endif
4563/* We use char because int might match the return type of a gcc2
4564   builtin and then its argument prototype would still apply.  */
4565char gethostbyname ();
4566#ifdef F77_DUMMY_MAIN
4567#  ifdef __cplusplus
4568     extern "C"
4569#  endif
4570   int F77_DUMMY_MAIN() { return 1; }
4571#endif
4572int
4573main ()
4574{
4575gethostbyname ();
4576  ;
4577  return 0;
4578}
4579_ACEOF
4580rm -f conftest.$ac_objext conftest$ac_exeext
4581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4582  (eval $ac_link) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); } &&
4586         { ac_try='test -s conftest$ac_exeext'
4587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588  (eval $ac_try) 2>&5
4589  ac_status=$?
4590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591  (exit $ac_status); }; }; then
4592  ac_cv_lib_nsl_gethostbyname=yes
4593else
4594  echo "$as_me: failed program was:" >&5
4595cat conftest.$ac_ext >&5
4596ac_cv_lib_nsl_gethostbyname=no
4597fi
4598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4599LIBS=$ac_check_lib_save_LIBS
4600fi
4601echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4602echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4603if test $ac_cv_lib_nsl_gethostbyname = yes; then
4604  LIBS="-lnsl $LIBS"
4605fi
4606
4607  if test "${ac_cv_header_tao_PortableServer_PortableServer_h+set}" = set; then
4608  echo "$as_me:$LINENO: checking for tao/PortableServer/PortableServer.h" >&5
4609echo $ECHO_N "checking for tao/PortableServer/PortableServer.h... $ECHO_C" >&6
4610if test "${ac_cv_header_tao_PortableServer_PortableServer_h+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612fi
4613echo "$as_me:$LINENO: result: $ac_cv_header_tao_PortableServer_PortableServer_h" >&5
4614echo "${ECHO_T}$ac_cv_header_tao_PortableServer_PortableServer_h" >&6
4615else
4616  # Is the header compilable?
4617echo "$as_me:$LINENO: checking tao/PortableServer/PortableServer.h usability" >&5
4618echo $ECHO_N "checking tao/PortableServer/PortableServer.h usability... $ECHO_C" >&6
4619cat >conftest.$ac_ext <<_ACEOF
4620#line $LINENO "configure"
4621#include "confdefs.h"
4622$ac_includes_default
4623#include <tao/PortableServer/PortableServer.h>
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627  (eval $ac_compile) 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } &&
4631         { ac_try='test -s conftest.$ac_objext'
4632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633  (eval $ac_try) 2>&5
4634  ac_status=$?
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); }; }; then
4637  ac_header_compiler=yes
4638else
4639  echo "$as_me: failed program was:" >&5
4640cat conftest.$ac_ext >&5
4641ac_header_compiler=no
4642fi
4643rm -f conftest.$ac_objext conftest.$ac_ext
4644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4645echo "${ECHO_T}$ac_header_compiler" >&6
4646
4647# Is the header present?
4648echo "$as_me:$LINENO: checking tao/PortableServer/PortableServer.h presence" >&5
4649echo $ECHO_N "checking tao/PortableServer/PortableServer.h presence... $ECHO_C" >&6
4650cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
4652#include "confdefs.h"
4653#include <tao/PortableServer/PortableServer.h>
4654_ACEOF
4655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4656  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657  ac_status=$?
4658  egrep -v '^ *\+' conftest.er1 >conftest.err
4659  rm -f conftest.er1
4660  cat conftest.err >&5
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); } >/dev/null; then
4663  if test -s conftest.err; then
4664    ac_cpp_err=$ac_cxx_preproc_warn_flag
4665  else
4666    ac_cpp_err=
4667  fi
4668else
4669  ac_cpp_err=yes
4670fi
4671if test -z "$ac_cpp_err"; then
4672  ac_header_preproc=yes
4673else
4674  echo "$as_me: failed program was:" >&5
4675  cat conftest.$ac_ext >&5
4676  ac_header_preproc=no
4677fi
4678rm -f conftest.err conftest.$ac_ext
4679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4680echo "${ECHO_T}$ac_header_preproc" >&6
4681
4682# So?  What about this header?
4683case $ac_header_compiler:$ac_header_preproc in
4684  yes:no )
4685    { echo "$as_me:$LINENO: WARNING: tao/PortableServer/PortableServer.h: accepted by the compiler, rejected by the preprocessor!" >&5
4686echo "$as_me: WARNING: tao/PortableServer/PortableServer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4687    { echo "$as_me:$LINENO: WARNING: tao/PortableServer/PortableServer.h: proceeding with the preprocessor's result" >&5
4688echo "$as_me: WARNING: tao/PortableServer/PortableServer.h: proceeding with the preprocessor's result" >&2;};;
4689  no:yes )
4690    { echo "$as_me:$LINENO: WARNING: tao/PortableServer/PortableServer.h: present but cannot be compiled" >&5
4691echo "$as_me: WARNING: tao/PortableServer/PortableServer.h: present but cannot be compiled" >&2;}
4692    { echo "$as_me:$LINENO: WARNING: tao/PortableServer/PortableServer.h: check for missing prerequisite headers?" >&5
4693echo "$as_me: WARNING: tao/PortableServer/PortableServer.h: check for missing prerequisite headers?" >&2;}
4694    { echo "$as_me:$LINENO: WARNING: tao/PortableServer/PortableServer.h: proceeding with the preprocessor's result" >&5
4695echo "$as_me: WARNING: tao/PortableServer/PortableServer.h: proceeding with the preprocessor's result" >&2;};;
4696esac
4697echo "$as_me:$LINENO: checking for tao/PortableServer/PortableServer.h" >&5
4698echo $ECHO_N "checking for tao/PortableServer/PortableServer.h... $ECHO_C" >&6
4699if test "${ac_cv_header_tao_PortableServer_PortableServer_h+set}" = set; then
4700  echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702  ac_cv_header_tao_PortableServer_PortableServer_h=$ac_header_preproc
4703fi
4704echo "$as_me:$LINENO: result: $ac_cv_header_tao_PortableServer_PortableServer_h" >&5
4705echo "${ECHO_T}$ac_cv_header_tao_PortableServer_PortableServer_h" >&6
4706
4707fi
4708if test $ac_cv_header_tao_PortableServer_PortableServer_h = yes; then
4709  tao_poahead=yes
4710else
4711  tao_poahead=no
4712fi
4713
4714
4715  if test "x$tao_poahead" = "xyes"
4716  then
4717    cat >>confdefs.h <<\_ACEOF
4718#define TAO_HAVE_PORTABLE_SERVER_H 1
4719_ACEOF
4720
4721    echo "$as_me:$LINENO: checking for PortableServer::ObjectId_var oid = PortableServer::string_to_ObjectId(\"myObj\") in -lTAO_PortableServer" >&5
4722echo $ECHO_N "checking for PortableServer::ObjectId_var oid = PortableServer::string_to_ObjectId(\"myObj\") in -lTAO_PortableServer... $ECHO_C" >&6
4723ac_lib_var=`echo TAO_PortableServer'_'include | sed 'y%./+-%__p_%'`
4724if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  yad_check_lib_save_LIBS="$LIBS"
4728LIBS="-lTAO_PortableServer  $LIBS"
4729cat >conftest.$ac_ext <<_ACEOF
4730#line $LINENO "configure"
4731#include "confdefs.h"
4732            #include <tao/corba.h>
4733#include <tao/PortableServer/PortableServer.h>
4734#ifdef F77_DUMMY_MAIN
4735#  ifdef __cplusplus
4736     extern "C"
4737#  endif
4738   int F77_DUMMY_MAIN() { return 1; }
4739#endif
4740int
4741main ()
4742{
4743PortableServer::ObjectId_var oid = PortableServer::string_to_ObjectId("myObj")
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748rm -f conftest.$ac_objext conftest$ac_exeext
4749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750  (eval $ac_link) 2>&5
4751  ac_status=$?
4752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753  (exit $ac_status); } &&
4754         { ac_try='test -s conftest$ac_exeext'
4755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756  (eval $ac_try) 2>&5
4757  ac_status=$?
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); }; }; then
4760  eval "ac_cv_lib_$ac_lib_var=yes"
4761else
4762  echo "$as_me: failed program was:" >&5
4763cat conftest.$ac_ext >&5
4764eval "ac_cv_lib_$ac_lib_var=no"
4765fi
4766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4767LIBS="$yad_check_lib_save_LIBS"
4768
4769fi
4770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4771  echo "$as_me:$LINENO: result: yes" >&5
4772echo "${ECHO_T}yes" >&6
4773  LIBS="-lTAO_PortableServer $LIBS"
4774else
4775  echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777fi
4778
4779  fi
4780  echo "$as_me:$LINENO: checking for ORBSVCS_Time::zero() in -lTAO_Svc_Utils" >&5
4781echo $ECHO_N "checking for ORBSVCS_Time::zero() in -lTAO_Svc_Utils... $ECHO_C" >&6
4782ac_lib_var=`echo TAO_Svc_Utils'_'include | sed 'y%./+-%__p_%'`
4783if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  yad_check_lib_save_LIBS="$LIBS"
4787LIBS="-lTAO_Svc_Utils  $LIBS"
4788cat >conftest.$ac_ext <<_ACEOF
4789#line $LINENO "configure"
4790#include "confdefs.h"
4791            #include <orbsvcs/Time_Utilities.h>
4792#ifdef F77_DUMMY_MAIN
4793#  ifdef __cplusplus
4794     extern "C"
4795#  endif
4796   int F77_DUMMY_MAIN() { return 1; }
4797#endif
4798int
4799main ()
4800{
4801ORBSVCS_Time::zero()
4802  ;
4803  return 0;
4804}
4805_ACEOF
4806rm -f conftest.$ac_objext conftest$ac_exeext
4807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4808  (eval $ac_link) 2>&5
4809  ac_status=$?
4810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811  (exit $ac_status); } &&
4812         { ac_try='test -s conftest$ac_exeext'
4813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814  (eval $ac_try) 2>&5
4815  ac_status=$?
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); }; }; then
4818  eval "ac_cv_lib_$ac_lib_var=yes"
4819else
4820  echo "$as_me: failed program was:" >&5
4821cat conftest.$ac_ext >&5
4822eval "ac_cv_lib_$ac_lib_var=no"
4823fi
4824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4825LIBS="$yad_check_lib_save_LIBS"
4826
4827fi
4828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4829  echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831  LIBS="-lTAO_Svc_Utils $LIBS"
4832else
4833  echo "$as_me:$LINENO: result: no" >&5
4834echo "${ECHO_T}no" >&6
4835fi
4836
4837  if test "${ac_cv_header_tao_IORTable_IORTable_h+set}" = set; then
4838  echo "$as_me:$LINENO: checking for tao/IORTable/IORTable.h" >&5
4839echo $ECHO_N "checking for tao/IORTable/IORTable.h... $ECHO_C" >&6
4840if test "${ac_cv_header_tao_IORTable_IORTable_h+set}" = set; then
4841  echo $ECHO_N "(cached) $ECHO_C" >&6
4842fi
4843echo "$as_me:$LINENO: result: $ac_cv_header_tao_IORTable_IORTable_h" >&5
4844echo "${ECHO_T}$ac_cv_header_tao_IORTable_IORTable_h" >&6
4845else
4846  # Is the header compilable?
4847echo "$as_me:$LINENO: checking tao/IORTable/IORTable.h usability" >&5
4848echo $ECHO_N "checking tao/IORTable/IORTable.h usability... $ECHO_C" >&6
4849cat >conftest.$ac_ext <<_ACEOF
4850#line $LINENO "configure"
4851#include "confdefs.h"
4852$ac_includes_default
4853#include <tao/IORTable/IORTable.h>
4854_ACEOF
4855rm -f conftest.$ac_objext
4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857  (eval $ac_compile) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); } &&
4861         { ac_try='test -s conftest.$ac_objext'
4862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863  (eval $ac_try) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); }; }; then
4867  ac_header_compiler=yes
4868else
4869  echo "$as_me: failed program was:" >&5
4870cat conftest.$ac_ext >&5
4871ac_header_compiler=no
4872fi
4873rm -f conftest.$ac_objext conftest.$ac_ext
4874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4875echo "${ECHO_T}$ac_header_compiler" >&6
4876
4877# Is the header present?
4878echo "$as_me:$LINENO: checking tao/IORTable/IORTable.h presence" >&5
4879echo $ECHO_N "checking tao/IORTable/IORTable.h presence... $ECHO_C" >&6
4880cat >conftest.$ac_ext <<_ACEOF
4881#line $LINENO "configure"
4882#include "confdefs.h"
4883#include <tao/IORTable/IORTable.h>
4884_ACEOF
4885if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887  ac_status=$?
4888  egrep -v '^ *\+' conftest.er1 >conftest.err
4889  rm -f conftest.er1
4890  cat conftest.err >&5
4891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892  (exit $ac_status); } >/dev/null; then
4893  if test -s conftest.err; then
4894    ac_cpp_err=$ac_cxx_preproc_warn_flag
4895  else
4896    ac_cpp_err=
4897  fi
4898else
4899  ac_cpp_err=yes
4900fi
4901if test -z "$ac_cpp_err"; then
4902  ac_header_preproc=yes
4903else
4904  echo "$as_me: failed program was:" >&5
4905  cat conftest.$ac_ext >&5
4906  ac_header_preproc=no
4907fi
4908rm -f conftest.err conftest.$ac_ext
4909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4910echo "${ECHO_T}$ac_header_preproc" >&6
4911
4912# So?  What about this header?
4913case $ac_header_compiler:$ac_header_preproc in
4914  yes:no )
4915    { echo "$as_me:$LINENO: WARNING: tao/IORTable/IORTable.h: accepted by the compiler, rejected by the preprocessor!" >&5
4916echo "$as_me: WARNING: tao/IORTable/IORTable.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4917    { echo "$as_me:$LINENO: WARNING: tao/IORTable/IORTable.h: proceeding with the preprocessor's result" >&5
4918echo "$as_me: WARNING: tao/IORTable/IORTable.h: proceeding with the preprocessor's result" >&2;};;
4919  no:yes )
4920    { echo "$as_me:$LINENO: WARNING: tao/IORTable/IORTable.h: present but cannot be compiled" >&5
4921echo "$as_me: WARNING: tao/IORTable/IORTable.h: present but cannot be compiled" >&2;}
4922    { echo "$as_me:$LINENO: WARNING: tao/IORTable/IORTable.h: check for missing prerequisite headers?" >&5
4923echo "$as_me: WARNING: tao/IORTable/IORTable.h: check for missing prerequisite headers?" >&2;}
4924    { echo "$as_me:$LINENO: WARNING: tao/IORTable/IORTable.h: proceeding with the preprocessor's result" >&5
4925echo "$as_me: WARNING: tao/IORTable/IORTable.h: proceeding with the preprocessor's result" >&2;};;
4926esac
4927echo "$as_me:$LINENO: checking for tao/IORTable/IORTable.h" >&5
4928echo $ECHO_N "checking for tao/IORTable/IORTable.h... $ECHO_C" >&6
4929if test "${ac_cv_header_tao_IORTable_IORTable_h+set}" = set; then
4930  echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932  ac_cv_header_tao_IORTable_IORTable_h=$ac_header_preproc
4933fi
4934echo "$as_me:$LINENO: result: $ac_cv_header_tao_IORTable_IORTable_h" >&5
4935echo "${ECHO_T}$ac_cv_header_tao_IORTable_IORTable_h" >&6
4936
4937fi
4938if test $ac_cv_header_tao_IORTable_IORTable_h = yes; then
4939  tao_iortable=yes
4940else
4941  tao_iortable=no
4942fi
4943
4944
4945  if test "x$tao_iortable" = "xyes"
4946  then
4947    cat >>confdefs.h <<\_ACEOF
4948#define TAO_HAVE_IORTABLE_ADAPTER 1
4949_ACEOF
4950
4951    echo "$as_me:$LINENO: checking for TAO_IORTable_Initializer::init() in -lTAO_IORTable" >&5
4952echo $ECHO_N "checking for TAO_IORTable_Initializer::init() in -lTAO_IORTable... $ECHO_C" >&6
4953ac_lib_var=`echo TAO_IORTable'_'include | sed 'y%./+-%__p_%'`
4954if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957  yad_check_lib_save_LIBS="$LIBS"
4958LIBS="-lTAO_IORTable  $LIBS"
4959cat >conftest.$ac_ext <<_ACEOF
4960#line $LINENO "configure"
4961#include "confdefs.h"
4962            #include <tao/IORTable/IORTable.h>
4963#ifdef F77_DUMMY_MAIN
4964#  ifdef __cplusplus
4965     extern "C"
4966#  endif
4967   int F77_DUMMY_MAIN() { return 1; }
4968#endif
4969int
4970main ()
4971{
4972TAO_IORTable_Initializer::init()
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext conftest$ac_exeext
4978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979  (eval $ac_link) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } &&
4983         { ac_try='test -s conftest$ac_exeext'
4984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985  (eval $ac_try) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; }; then
4989  eval "ac_cv_lib_$ac_lib_var=yes"
4990else
4991  echo "$as_me: failed program was:" >&5
4992cat conftest.$ac_ext >&5
4993eval "ac_cv_lib_$ac_lib_var=no"
4994fi
4995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996LIBS="$yad_check_lib_save_LIBS"
4997
4998fi
4999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5000  echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002  LIBS="-lTAO_IORTable $LIBS"
5003else
5004  echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006fi
5007
5008  fi
5009  LIBS="$LDFLAGS $LIBS"
5010fi
5011
5012#if test "x$ace_lib" = "xno"
5013#then
5014# tao=no
5015#fi
5016
5017if test "x$tao_libs" = "xno"
5018then
5019 tao=no
5020fi
5021
5022fi
5023
5024if test "x$tao" = "xno"
5025then
5026  CXXCPPFLAGS=$svCXXCPPFLAGS
5027  CPPFLAGS=$svCPPFLAGS
5028  LIBS=$svLIBS
5029  LDFLAGS=$svLDFLAGS
5030  eval "$rssh_rollback"
5031  rssh_rollback=$svRSSH_ROLLBACK
5032else
5033  ORB_PREFIX=$ACE_ROOT
5034
5035
5036  ORB=TAO
5037
5038
5039  IDL=$ACE_ROOT/TAO/TAO_IDL/tao_idl
5040
5041
5042  IDLFLAGS="$IDLFLAGS -I$ACE_ROOT/TAO/orbsvcs/orbsvcs"
5043
5044
5045  ORB_INCLUDE_PREFIX=tao
5046
5047
5048
5049  IDL_CLN_H=C.h
5050  IDL_CLN_H_SUFFIX=C.h
5051  IDL_CLN_H1_SUFFIX=C.i
5052  IDL_CLN_H=$IDL_CLN_H
5053
5054  IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
5055
5056  IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
5057
5058  cat >>confdefs.h <<_ACEOF
5059#define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
5060_ACEOF
5061
5062
5063  IDL_CLN_CPP=C.cpp
5064  IDL_CLN_CPP_SUFFIX=C.cpp
5065  IDL_CLN_CPP=$IDL_CLN_CPP
5066
5067  IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP_SUFFIX
5068
5069  cat >>confdefs.h <<_ACEOF
5070#define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP_SUFFIX
5071_ACEOF
5072
5073
5074  IDL_CLN_O=C.o
5075  IDL_CLN_OBJ_SUFFIX=C.o
5076  IDL_CLN_O=$IDL_CLN_O
5077
5078  IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
5079
5080
5081  IDL_SRV_H=S.h
5082  IDL_SRV_H_SUFFIX=S.h
5083  IDL_SRV_H1_SUFFIX=S.i
5084  IDL_SRV_H=$IDL_SRV_H
5085
5086  IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
5087
5088  IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
5089
5090  cat >>confdefs.h <<_ACEOF
5091#define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
5092_ACEOF
5093
5094
5095  IDL_SRV_CPP=S.cpp
5096  IDL_SRV_CPP_SUFFIX=S.cpp
5097
5098
5099  cat >>confdefs.h <<_ACEOF
5100#define IDL_SRV_CPP_SUFFIX $IDL_SRV_CPP_SUFFIX
5101_ACEOF
5102
5103
5104  IDL_SRV_O=S.o
5105  IDL_SRV_OBJ_SUFFIX=S.o
5106  IDL_SRV_O=$IDL_SRV_O
5107
5108  IDL_SRV_OBJ_SUFFIX=$IDL_SRV_OBJ_SUFFIX
5109
5110
5111  IDL_TIE_H_SUFFIX=S_T.h
5112  IDL_TIE_H1_SUFFIX=S_T.i
5113  IDL_TIE_CPP_SUFFIX=S_T.cpp
5114  IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
5115
5116  IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
5117
5118  IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
5119
5120
5121  CORBA_H='tao/corba.h'
5122  cat >>confdefs.h <<_ACEOF
5123#define CORBA_H <$CORBA_H>
5124_ACEOF
5125
5126
5127  COSNAMING_H='orbsvcs/CosNamingC.h'
5128  cat >>confdefs.h <<_ACEOF
5129#define COSNAMING_H <$COSNAMING_H>
5130_ACEOF
5131
5132
5133  echo "$as_me:$LINENO: checking for CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj) in -lorbsvcs" >&5
5134echo $ECHO_N "checking for CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj) in -lorbsvcs... $ECHO_C" >&6
5135ac_lib_var=`echo orbsvcs'_'include | sed 'y%./+-%__p_%'`
5136if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  yad_check_lib_save_LIBS="$LIBS"
5140LIBS="-lorbsvcs  $LIBS"
5141cat >conftest.$ac_ext <<_ACEOF
5142#line $LINENO "configure"
5143#include "confdefs.h"
5144            #include <$CORBA_H>
5145#include <$COSNAMING_H>
5146#ifdef F77_DUMMY_MAIN
5147#  ifdef __cplusplus
5148     extern "C"
5149#  endif
5150   int F77_DUMMY_MAIN() { return 1; }
5151#endif
5152int
5153main ()
5154{
5155CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj)
5156  ;
5157  return 0;
5158}
5159_ACEOF
5160rm -f conftest.$ac_objext conftest$ac_exeext
5161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162  (eval $ac_link) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); } &&
5166         { ac_try='test -s conftest$ac_exeext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  eval "ac_cv_lib_$ac_lib_var=yes"
5173else
5174  echo "$as_me: failed program was:" >&5
5175cat conftest.$ac_ext >&5
5176eval "ac_cv_lib_$ac_lib_var=no"
5177fi
5178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5179LIBS="$yad_check_lib_save_LIBS"
5180
5181fi
5182if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5183  echo "$as_me:$LINENO: result: yes" >&5
5184echo "${ECHO_T}yes" >&6
5185  have_orbsvcs=yes
5186else
5187  echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189have_orbsvcs=no
5190fi
5191
5192  echo "$as_me:$LINENO: checking for CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj) in -lTAO_CosNaming" >&5
5193echo $ECHO_N "checking for CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj) in -lTAO_CosNaming... $ECHO_C" >&6
5194ac_lib_var=`echo TAO_CosNaming'_'include | sed 'y%./+-%__p_%'`
5195if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5196  echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198  yad_check_lib_save_LIBS="$LIBS"
5199LIBS="-lTAO_CosNaming  $LIBS"
5200cat >conftest.$ac_ext <<_ACEOF
5201#line $LINENO "configure"
5202#include "confdefs.h"
5203            #include <$CORBA_H>
5204#include <$COSNAMING_H>
5205#ifdef F77_DUMMY_MAIN
5206#  ifdef __cplusplus
5207     extern "C"
5208#  endif
5209   int F77_DUMMY_MAIN() { return 1; }
5210#endif
5211int
5212main ()
5213{
5214CORBA::Object_var obj; CosNaming::NamingContext_ptr nc = CosNaming::NamingContext::_narrow(obj)
5215  ;
5216  return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext conftest$ac_exeext
5220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221  (eval $ac_link) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } &&
5225         { ac_try='test -s conftest$ac_exeext'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; }; then
5231  eval "ac_cv_lib_$ac_lib_var=yes"
5232else
5233  echo "$as_me: failed program was:" >&5
5234cat conftest.$ac_ext >&5
5235eval "ac_cv_lib_$ac_lib_var=no"
5236fi
5237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5238LIBS="$yad_check_lib_save_LIBS"
5239
5240fi
5241if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5242  echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6
5244  have_taoCosNaming=yes
5245else
5246  echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248have_taoCosNaming=no
5249fi
5250
5251  if test "$have_orbsvcs" = yes
5252  then
5253    ORB_COSNAMING_LIB="-lorbsvcs"
5254    TAO_VERSION=11
5255  else
5256   if test "$have_taoCosNaming" = yes
5257   then
5258    ORB_COSNAMING_LIB="-lTAO_CosNaming"
5259    TAO_VERSION=12
5260   else
5261    { { echo "$as_me:$LINENO: error: \"found TAO but can not find TAO CosNaming libraries\"" >&5
5262echo "$as_me: error: \"found TAO but can not find TAO CosNaming libraries\"" >&2;}
5263   { (exit 1); exit 1; }; }
5264   fi
5265  fi
5266
5267
5268
5269  HAVE_ORB_IDL=1
5270
5271
5272  CORBA_HAVE_POA=1
5273  cat >>confdefs.h <<_ACEOF
5274#define CORBA_HAVE_POA $CORBA_HAVE_POA
5275_ACEOF
5276
5277
5278  echo "$as_me:$LINENO: checking \"whether TAO support namespaces\"" >&5
5279echo $ECHO_N "checking \"whether TAO support namespaces\"... $ECHO_C" >&6
5280if test "${rssh_cv_tao_corba_namespaces+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  cat >conftest.$ac_ext <<_ACEOF
5284#line $LINENO "configure"
5285#include "confdefs.h"
5286#include <$CORBA_H>
5287
5288#ifdef F77_DUMMY_MAIN
5289#  ifdef __cplusplus
5290     extern "C"
5291#  endif
5292   int F77_DUMMY_MAIN() { return 1; }
5293#endif
5294int
5295main ()
5296{
5297
5298#ifndef ACE_HAS_USING_KEYWORD
5299#error "we have no namespaces"
5300we have no namespaces -- $$$$
5301#else
5302return 0;
5303#endif
5304
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
5310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5311  (eval $ac_compile) 2>&5
5312  ac_status=$?
5313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314  (exit $ac_status); } &&
5315         { ac_try='test -s conftest.$ac_objext'
5316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317  (eval $ac_try) 2>&5
5318  ac_status=$?
5319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320  (exit $ac_status); }; }; then
5321  rssh_cv_tao_corba_namespaces=yes
5322else
5323  echo "$as_me: failed program was:" >&5
5324cat conftest.$ac_ext >&5
5325rssh_cv_tao_corba_namespaces=0
5326fi
5327rm -f conftest.$ac_objext conftest.$ac_ext
5328
5329fi
5330echo "$as_me:$LINENO: result: $rssh_cv_tao_corba_namespaces" >&5
5331echo "${ECHO_T}$rssh_cv_tao_corba_namespaces" >&6
5332
5333  if test "$rssh_cv_tao_corba_namespaces" = "yes"
5334  then
5335    cat >>confdefs.h <<\_ACEOF
5336#define CORBA_MODULE_NAMESPACE_MAPPING 1
5337_ACEOF
5338
5339  else
5340    cat >>confdefs.h <<\_ACEOF
5341#define CORBA_MODULE_CLASS_MAPPING 1
5342_ACEOF
5343
5344  fi
5345
5346  cat >>confdefs.h <<\_ACEOF
5347#define RSSH_TAO 1
5348_ACEOF
5349
5350  cat >>confdefs.h <<\_ACEOF
5351#define CORBA_SYSTEM_EXCEPTION_IS_STREAMLE 1
5352_ACEOF
5353
5354  cat >>confdefs.h <<\_ACEOF
5355#define CORBA_ORB_HAVE_DESTROY 1
5356_ACEOF
5357
5358
5359fi
5360fi
5361
5362ac_ext=c
5363ac_cpp='$CPP $CPPFLAGS'
5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368
5369echo "$as_me:$LINENO: result: for TAO: $tao" >&5
5370echo "${ECHO_T}for TAO: $tao" >&6
5371
5372
5373  rssh_know_orb_name=yes
5374fi
5375if test  "x$ORB" = "xunknown"  -o  "$ORB" = "omniORB"  -o "$ORB" = "omniBroker"
5376then
5377
5378
5379
5380
5381# Check whether --with-omni or --without-omni was given.
5382if test "${with_omni+set}" = set; then
5383  withval="$with_omni"
5384  \
5385            OMNI_PREFIX=${with_omni}
5386else
5387  OMNI_PREFIX=/usr/local
5388fi;
5389
5390{ echo "$as_me:$LINENO: checking for omniORB..." >&5
5391echo "$as_me: checking for omniORB..." >&6;}
5392
5393if test "x$OMNI_ROOT" = "x"
5394then
5395 if test "x$OMNI_PREFIX" = "x"
5396 then
5397   OMNI_ROOT="/usr/local"
5398 else
5399   OMNI_ROOT="$OMNI_PREFIX"
5400 fi
5401fi
5402
5403if  test "x$OMNI_PREFIX" = "xno"
5404then
5405  echo "$as_me:$LINENO: result: omniORB is disabled" >&5
5406echo "${ECHO_T}omniORB is disabled" >&6
5407  omni=no
5408else
5409
5410
5411
5412ac_ext=cc
5413ac_cpp='$CXXCPP $CPPFLAGS'
5414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5417
5418
5419svCXXCPPFLAGS=$CXXCPPFLAGS
5420svCXXFLAGS=$CXXFLAGS
5421svCPPFLAGS=$CPPFLAGS
5422svLIBS=$LIBS
5423svLDFLAGS=$LDFLAGS
5424svRSSH_ROLLBACK=$rssh_rollback
5425rssh_rollback="true"
5426
5427ORB_INCLUDES="-I$OMNI_ROOT/include"
5428CXXCPPFLAGS="$CXXCPPFLAGS -I$OMNI_ROOT/include "
5429CPPFLAGS="$CPPFLAGS -I$OMNI_ROOT/include "
5430
5431
5432
5433
5434if test -z "$rssh_enable_pthreads_done"
5435then
5436 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5437 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5438 LIBS="$LIBS $LIBS_PTHREADS"
5439fi
5440rssh_enable_pthreads_done=yes
5441
5442rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
5443
5444
5445CXXCPPFLAGS="$CXXCPPFLAGS"
5446
5447case $build_cpu in
5448 sparc*)
5449    cat >>confdefs.h <<\_ACEOF
5450#define __sparc__ 1
5451_ACEOF
5452
5453    IDLCXXFLAGS="$IDLCXXFLAGS -D__sparc__"
5454    ;;
5455 "i686"|"i586"|"i486"|"i386")
5456    cat >>confdefs.h <<\_ACEOF
5457#define __x86__ 1
5458_ACEOF
5459
5460    IDLCXXFLAGS="$IDLCXXFLAGS -D__x86__"
5461    ;;
5462esac
5463case $build_os in
5464 solaris*)
5465    cat >>confdefs.h <<\_ACEOF
5466#define __sunos__ 1
5467_ACEOF
5468
5469    IDLCXXFLAGS="$IDLCXXFLAGS -D__sunos__"
5470    __OSVERSION__=5
5471    cat >>confdefs.h <<\_ACEOF
5472#define __OSVERSION__ 1
5473_ACEOF
5474
5475    IDLCXXFLAGS="$IDLCXXFLAGS -D__OSVERSION__=5"
5476    ;;
5477 freebsd*)
5478    cat >>confdefs.h <<\_ACEOF
5479#define __freebsd__ 1
5480_ACEOF
5481
5482    IDLCXXFLAGS="$IDLCXXFLAGS -D__freebsd__"
5483    ;;
5484esac
5485
5486
5487
5488CXXCPPFLAGS="$CXXCPPFLAGS $IDLCXXFLAGS"
5489
5490if test "${ac_cv_header_omniORB3_CORBA_h+set}" = set; then
5491  echo "$as_me:$LINENO: checking for omniORB3/CORBA.h" >&5
5492echo $ECHO_N "checking for omniORB3/CORBA.h... $ECHO_C" >&6
5493if test "${ac_cv_header_omniORB3_CORBA_h+set}" = set; then
5494  echo $ECHO_N "(cached) $ECHO_C" >&6
5495fi
5496echo "$as_me:$LINENO: result: $ac_cv_header_omniORB3_CORBA_h" >&5
5497echo "${ECHO_T}$ac_cv_header_omniORB3_CORBA_h" >&6
5498else
5499  # Is the header compilable?
5500echo "$as_me:$LINENO: checking omniORB3/CORBA.h usability" >&5
5501echo $ECHO_N "checking omniORB3/CORBA.h usability... $ECHO_C" >&6
5502cat >conftest.$ac_ext <<_ACEOF
5503#line $LINENO "configure"
5504#include "confdefs.h"
5505$ac_includes_default
5506#include <omniORB3/CORBA.h>
5507_ACEOF
5508rm -f conftest.$ac_objext
5509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510  (eval $ac_compile) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); } &&
5514         { ac_try='test -s conftest.$ac_objext'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; }; then
5520  ac_header_compiler=yes
5521else
5522  echo "$as_me: failed program was:" >&5
5523cat conftest.$ac_ext >&5
5524ac_header_compiler=no
5525fi
5526rm -f conftest.$ac_objext conftest.$ac_ext
5527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5528echo "${ECHO_T}$ac_header_compiler" >&6
5529
5530# Is the header present?
5531echo "$as_me:$LINENO: checking omniORB3/CORBA.h presence" >&5
5532echo $ECHO_N "checking omniORB3/CORBA.h presence... $ECHO_C" >&6
5533cat >conftest.$ac_ext <<_ACEOF
5534#line $LINENO "configure"
5535#include "confdefs.h"
5536#include <omniORB3/CORBA.h>
5537_ACEOF
5538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5540  ac_status=$?
5541  egrep -v '^ *\+' conftest.er1 >conftest.err
5542  rm -f conftest.er1
5543  cat conftest.err >&5
5544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545  (exit $ac_status); } >/dev/null; then
5546  if test -s conftest.err; then
5547    ac_cpp_err=$ac_cxx_preproc_warn_flag
5548  else
5549    ac_cpp_err=
5550  fi
5551else
5552  ac_cpp_err=yes
5553fi
5554if test -z "$ac_cpp_err"; then
5555  ac_header_preproc=yes
5556else
5557  echo "$as_me: failed program was:" >&5
5558  cat conftest.$ac_ext >&5
5559  ac_header_preproc=no
5560fi
5561rm -f conftest.err conftest.$ac_ext
5562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5563echo "${ECHO_T}$ac_header_preproc" >&6
5564
5565# So?  What about this header?
5566case $ac_header_compiler:$ac_header_preproc in
5567  yes:no )
5568    { echo "$as_me:$LINENO: WARNING: omniORB3/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
5569echo "$as_me: WARNING: omniORB3/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5570    { echo "$as_me:$LINENO: WARNING: omniORB3/CORBA.h: proceeding with the preprocessor's result" >&5
5571echo "$as_me: WARNING: omniORB3/CORBA.h: proceeding with the preprocessor's result" >&2;};;
5572  no:yes )
5573    { echo "$as_me:$LINENO: WARNING: omniORB3/CORBA.h: present but cannot be compiled" >&5
5574echo "$as_me: WARNING: omniORB3/CORBA.h: present but cannot be compiled" >&2;}
5575    { echo "$as_me:$LINENO: WARNING: omniORB3/CORBA.h: check for missing prerequisite headers?" >&5
5576echo "$as_me: WARNING: omniORB3/CORBA.h: check for missing prerequisite headers?" >&2;}
5577    { echo "$as_me:$LINENO: WARNING: omniORB3/CORBA.h: proceeding with the preprocessor's result" >&5
5578echo "$as_me: WARNING: omniORB3/CORBA.h: proceeding with the preprocessor's result" >&2;};;
5579esac
5580echo "$as_me:$LINENO: checking for omniORB3/CORBA.h" >&5
5581echo $ECHO_N "checking for omniORB3/CORBA.h... $ECHO_C" >&6
5582if test "${ac_cv_header_omniORB3_CORBA_h+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  ac_cv_header_omniORB3_CORBA_h=$ac_header_preproc
5586fi
5587echo "$as_me:$LINENO: result: $ac_cv_header_omniORB3_CORBA_h" >&5
5588echo "${ECHO_T}$ac_cv_header_omniORB3_CORBA_h" >&6
5589
5590fi
5591if test $ac_cv_header_omniORB3_CORBA_h = yes; then
5592  omni=yes
5593else
5594  omni=no
5595fi
5596
5597
5598
5599if test "x$omni" = "xyes"
5600then
5601  ORB_LIBDIR="$OMNI_ROOT/lib"
5602  if test ! -r "$ORB_LIBDIR/libomniORB3.so"
5603  then
5604    for i in $OMNI_ROOT/lib/*/lib*.so
5605    do
5606      ORB_LIBDIR=`dirname $i`
5607      break;
5608    done
5609  fi
5610
5611  LIBS="$LIBS -lomnithread"
5612  svLIBS=$LIBS
5613  LIBS="-L$ORB_LIBDIR $LIBS"
5614
5615  echo "$as_me:$LINENO: checking \"are we have omnithreads\"" >&5
5616echo $ECHO_N "checking \"are we have omnithreads\"... $ECHO_C" >&6
5617if test "${rssh_cv_check_omnithreads+set}" = set; then
5618  echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620  rssh_enable_pthreads_done=""
5621
5622
5623
5624if test -z "$rssh_enable_pthreads_done"
5625then
5626 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
5627 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
5628 LIBS="$LIBS $LIBS_PTHREADS"
5629fi
5630rssh_enable_pthreads_done=yes
5631
5632rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
5633
5634
5635
5636    ac_ext=cc
5637ac_cpp='$CXXCPP $CPPFLAGS'
5638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5641
5642    cat >conftest.$ac_ext <<_ACEOF
5643#line $LINENO "configure"
5644#include "confdefs.h"
5645#include <omnithread.h>
5646
5647#ifdef F77_DUMMY_MAIN
5648#  ifdef __cplusplus
5649     extern "C"
5650#  endif
5651   int F77_DUMMY_MAIN() { return 1; }
5652#endif
5653int
5654main ()
5655{
5656omni_mutex my_mutex
5657  ;
5658  return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext conftest$ac_exeext
5662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663  (eval $ac_link) 2>&5
5664  ac_status=$?
5665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666  (exit $ac_status); } &&
5667         { ac_try='test -s conftest$ac_exeext'
5668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669  (eval $ac_try) 2>&5
5670  ac_status=$?
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); }; }; then
5673  rssh_cv_check_omnithreads=yes
5674else
5675  echo "$as_me: failed program was:" >&5
5676cat conftest.$ac_ext >&5
5677rssh_cv_check_omnithreads=no
5678fi
5679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5680    ac_ext=cc
5681ac_cpp='$CXXCPP $CPPFLAGS'
5682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5685
5686
5687fi
5688echo "$as_me:$LINENO: result: $rssh_cv_check_omnithreads" >&5
5689echo "${ECHO_T}$rssh_cv_check_omnithreads" >&6
5690  if  test ! $rssh_cv_check_omnithreads = yes
5691  then
5692    echo "$as_me:$LINENO: result: \"omnithreads not found\"" >&5
5693echo "${ECHO_T}\"omnithreads not found\"" >&6
5694    omni_lib=no
5695  fi
5696  echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5697echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5698if test "${ac_cv_lib_socket_socket+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  ac_check_lib_save_LIBS=$LIBS
5702LIBS="-lsocket  $LIBS"
5703cat >conftest.$ac_ext <<_ACEOF
5704#line $LINENO "configure"
5705#include "confdefs.h"
5706
5707/* Override any gcc2 internal prototype to avoid an error.  */
5708#ifdef __cplusplus
5709extern "C"
5710#endif
5711/* We use char because int might match the return type of a gcc2
5712   builtin and then its argument prototype would still apply.  */
5713char socket ();
5714#ifdef F77_DUMMY_MAIN
5715#  ifdef __cplusplus
5716     extern "C"
5717#  endif
5718   int F77_DUMMY_MAIN() { return 1; }
5719#endif
5720int
5721main ()
5722{
5723socket ();
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext conftest$ac_exeext
5729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730  (eval $ac_link) 2>&5
5731  ac_status=$?
5732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733  (exit $ac_status); } &&
5734         { ac_try='test -s conftest$ac_exeext'
5735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736  (eval $ac_try) 2>&5
5737  ac_status=$?
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); }; }; then
5740  ac_cv_lib_socket_socket=yes
5741else
5742  echo "$as_me: failed program was:" >&5
5743cat conftest.$ac_ext >&5
5744ac_cv_lib_socket_socket=no
5745fi
5746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747LIBS=$ac_check_lib_save_LIBS
5748fi
5749echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5750echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5751if test $ac_cv_lib_socket_socket = yes; then
5752  LIBS="-lsocket $LIBS"
5753fi
5754
5755  echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5756echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5757if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  ac_check_lib_save_LIBS=$LIBS
5761LIBS="-lnsl  $LIBS"
5762cat >conftest.$ac_ext <<_ACEOF
5763#line $LINENO "configure"
5764#include "confdefs.h"
5765
5766/* Override any gcc2 internal prototype to avoid an error.  */
5767#ifdef __cplusplus
5768extern "C"
5769#endif
5770/* We use char because int might match the return type of a gcc2
5771   builtin and then its argument prototype would still apply.  */
5772char gethostbyname ();
5773#ifdef F77_DUMMY_MAIN
5774#  ifdef __cplusplus
5775     extern "C"
5776#  endif
5777   int F77_DUMMY_MAIN() { return 1; }
5778#endif
5779int
5780main ()
5781{
5782gethostbyname ();
5783  ;
5784  return 0;
5785}
5786_ACEOF
5787rm -f conftest.$ac_objext conftest$ac_exeext
5788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789  (eval $ac_link) 2>&5
5790  ac_status=$?
5791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792  (exit $ac_status); } &&
5793         { ac_try='test -s conftest$ac_exeext'
5794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795  (eval $ac_try) 2>&5
5796  ac_status=$?
5797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798  (exit $ac_status); }; }; then
5799  ac_cv_lib_nsl_gethostbyname=yes
5800else
5801  echo "$as_me: failed program was:" >&5
5802cat conftest.$ac_ext >&5
5803ac_cv_lib_nsl_gethostbyname=no
5804fi
5805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5806LIBS=$ac_check_lib_save_LIBS
5807fi
5808echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5809echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5810if test $ac_cv_lib_nsl_gethostbyname = yes; then
5811  LIBS="-lnsl $LIBS"
5812fi
5813
5814
5815  ORB_LDFLAGS="-L$ORB_LIBDIR"
5816  LIBS="$ORB_LDFLAGS -lomniORB3 -ltcpwrapGK -lomniDynamic3 $svLIBS"
5817  echo "$as_me:$LINENO: checking \"whether we can link with omniORB3\"" >&5
5818echo $ECHO_N "checking \"whether we can link with omniORB3\"... $ECHO_C" >&6
5819if test "${rssh_cv_check_omniORBlib+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  cat >conftest.$ac_ext <<_ACEOF
5823#line $LINENO "configure"
5824#include "confdefs.h"
5825#include <omniORB3/CORBA.h>
5826
5827#ifdef F77_DUMMY_MAIN
5828#  ifdef __cplusplus
5829     extern "C"
5830#  endif
5831   int F77_DUMMY_MAIN() { return 1; }
5832#endif
5833int
5834main ()
5835{
5836CORBA::ORB_var orb
5837  ;
5838  return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext conftest$ac_exeext
5842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5843  (eval $ac_link) 2>&5
5844  ac_status=$?
5845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846  (exit $ac_status); } &&
5847         { ac_try='test -s conftest$ac_exeext'
5848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849  (eval $ac_try) 2>&5
5850  ac_status=$?
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); }; }; then
5853  rssh_cv_check_omniORBlib=yes
5854else
5855  echo "$as_me: failed program was:" >&5
5856cat conftest.$ac_ext >&5
5857rssh_cv_check_omniORBlib=no
5858
5859fi
5860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5861
5862fi
5863echo "$as_me:$LINENO: result: $rssh_cv_check_omniORBlib" >&5
5864echo "${ECHO_T}$rssh_cv_check_omniORBlib" >&6
5865
5866  if  test ! $rssh_cv_check_omniORBlib = yes
5867  then
5868    echo "$as_me:$LINENO: result: \"omniORB libs not found\"" >&5
5869echo "${ECHO_T}\"omniORB libs not found\"" >&6
5870    omni_lib=no
5871  fi
5872
5873
5874  ORB_LIBS="$ORB_LDFLAGS -lomniORB3 -lomnithread"
5875fi
5876
5877if test "x$omni_lib" = "xno"
5878then
5879 echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
5880echo "${ECHO_T}omniORB library linking failed" >&6
5881 omni="no"
5882fi
5883
5884fi
5885
5886if test "x$omni" = "x" -o "x$omni" = "xno"
5887then
5888  CXXCPPFLAGS=$svCXXCPPFLAGS
5889  CPPFLAGS=$svCPPFLAGS
5890  LIBS=$svLIBS
5891  LDFLAGS=$svLDFLAGS
5892  ORB=unknown
5893  omni=no
5894  eval "$rssh_rollback"
5895  rssh_rollback=$svRSSH_ROLLBACK
5896else
5897
5898
5899  ORB_PREFIX=$OMNI_ROOT
5900
5901
5902  ORB=omniORB
5903
5904
5905  IDL=omniidl
5906  if test -x $OMNI_ROOT/bin/omniidl
5907  then
5908    IDL=$OMNI_ROOT/bin/omniidl
5909  else
5910    for i in $OMNI_ROOT/bin/*/omniidl
5911    do
5912      if test "$i" != $OMNI_ROOT'/bin/*/omniidl'
5913      then
5914        IDL=$i
5915        break
5916      fi
5917    done
5918  fi
5919
5920  IDLCXX=$IDL
5921
5922
5923  IDLFLAGS="$IDLFLAGS -bcxx -I$OMNI_ROOT/idl"
5924
5925
5926  ORB_INCLUDE_PREFIX=
5927
5928
5929  IDL_H_SUFFIX=.hh
5930
5931  IDL_H1_SUFFIX=no
5932
5933
5934  IDL_CLN_H=.hh
5935  IDL_CLN_H_SUFFIX=.hh
5936  IDL_CLN_H1_SUFFIX=no
5937
5938  IDL_CLN_H=$IDL_CLN_H
5939
5940  IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
5941
5942  IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
5943
5944  cat >>confdefs.h <<_ACEOF
5945#define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
5946_ACEOF
5947
5948
5949  IDL_CLN_CPP=SK.cc
5950  IDL_CLN_CPP_SUFFIX=SK.cc
5951  IDL_CLN_CPP=$IDL_CLN_CPP
5952
5953  IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP_SUFFIX
5954
5955  cat >>confdefs.h <<_ACEOF
5956#define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP
5957_ACEOF
5958
5959
5960  IDL_CLN_O=SK.o
5961  IDL_CLN_OBJ_SUFFIX=SK.o
5962  IDL_CLN_O=$IDL_CLN_O
5963
5964  IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
5965
5966
5967  IDL_SRV_H=.hh
5968  IDL_SRV_H_SUFFIX=.hh
5969  IDL_SRV_H1_SUFFIX=no
5970  IDL_SRV_H=$IDL_SRV_H
5971
5972  IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
5973
5974  IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
5975
5976  cat >>confdefs.h <<_ACEOF
5977#define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
5978_ACEOF
5979
5980
5981  IDL_SRV_CPP=SK.cc
5982  IDL_SRV_CPP_SUFFIX=SK.cc
5983  IDL_SRV_CPP=$IDL_SRV_CPP
5984
5985  IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP_SUFFIX
5986
5987  cat >>confdefs.h <<_ACEOF
5988#define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
5989_ACEOF
5990
5991
5992  IDL_SRV_O=SK.o
5993  IDL_SRV_OBJ_SUFFIX=SK.o
5994  IDL_SRV_O=$IDL_SRV_O
5995
5996  IDL_SRV_OBJ_SUFFIX=$IDL_SRV_OBJ_SUFFIX
5997
5998
5999  IDL_TIE_H_SUFFIX=no
6000  IDL_TIE_H1_SUFFIX=no
6001  IDL_TIE_CPP_SUFFIX=no
6002  IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
6003
6004  IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
6005
6006  IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
6007
6008
6009  CORBA_H='omniORB3/CORBA.h'
6010  cat >>confdefs.h <<_ACEOF
6011#define CORBA_H <$CORBA_H>
6012_ACEOF
6013
6014
6015  COSNAMING_H='omniORB3/Naming.hh'
6016  cat >>confdefs.h <<_ACEOF
6017#define COSNAMING_H <$COSNAMING_H>
6018_ACEOF
6019
6020
6021  ORB_COSNAMING_LIB=
6022
6023
6024
6025  HAVE_ORB_IDL=1
6026
6027
6028  echo "$as_me:$LINENO: checking \"whether CORBA modules mapped to namespaces\"" >&5
6029echo $ECHO_N "checking \"whether CORBA modules mapped to namespaces\"... $ECHO_C" >&6
6030if test "${rssh_cv_corba_namespaces+set}" = set; then
6031  echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033  cat >conftest.$ac_ext <<_ACEOF
6034#line $LINENO "configure"
6035#include "confdefs.h"
6036#include <$CORBA_H>
6037
6038#ifdef F77_DUMMY_MAIN
6039#  ifdef __cplusplus
6040     extern "C"
6041#  endif
6042   int F77_DUMMY_MAIN() { return 1; }
6043#endif
6044int
6045main ()
6046{
6047
6048#ifndef HAS_Cplusplus_Namespace
6049#error "we have no namespaces"
6050we have no namespaces -- $$$$
6051#else
6052return 0;
6053#endif
6054
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059rm -f conftest.$ac_objext
6060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061  (eval $ac_compile) 2>&5
6062  ac_status=$?
6063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064  (exit $ac_status); } &&
6065         { ac_try='test -s conftest.$ac_objext'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; }; then
6071  rssh_cv_corba_namespaces=yes
6072else
6073  echo "$as_me: failed program was:" >&5
6074cat conftest.$ac_ext >&5
6075rssh_cv_corba_namespaces=no
6076fi
6077rm -f conftest.$ac_objext conftest.$ac_ext
6078
6079fi
6080echo "$as_me:$LINENO: result: $rssh_cv_corba_namespaces" >&5
6081echo "${ECHO_T}$rssh_cv_corba_namespaces" >&6
6082
6083  if test "$rssh_cv_corba_namespaces" = "yes"
6084  then
6085    cat >>confdefs.h <<\_ACEOF
6086#define CORBA_MODULE_NAMESPACE_MAPPING 1
6087_ACEOF
6088
6089  else
6090    cat >>confdefs.h <<\_ACEOF
6091#define CORBA_MODULE_CLASS_MAPPING 1
6092_ACEOF
6093
6094  fi
6095
6096  cat >>confdefs.h <<\_ACEOF
6097#define OMNIORB 1
6098_ACEOF
6099
6100
6101  CORBA_HAVE_POA=1
6102  cat >>confdefs.h <<\_ACEOF
6103#define CORBA_HAVE_POA 1
6104_ACEOF
6105
6106
6107  CORBA_ORB_INIT_HAVE_3_ARGS=1
6108  cat >>confdefs.h <<\_ACEOF
6109#define CORBA_ORB_INIT_HAVE_3_ARGS 1
6110_ACEOF
6111
6112  CORBA_ORB_INIT_THIRD_ARG='"omniORB3"'
6113  cat >>confdefs.h <<\_ACEOF
6114#define CORBA_ORB_INIT_THIRD_ARG "omniORB3"
6115_ACEOF
6116
6117  cat >>confdefs.h <<\_ACEOF
6118#define CORBA_ORB_HAVE_DESTROY 1
6119_ACEOF
6120
6121
6122
6123fi
6124
6125ac_ext=c
6126ac_cpp='$CPP $CPPFLAGS'
6127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130
6131
6132echo "$as_me:$LINENO: result: for omniORB: $omni" >&5
6133echo "${ECHO_T}for omniORB: $omni" >&6
6134
6135
6136  rssh_know_orb_name=yes
6137fi
6138if test  "x$ORB" = "xunknown"  -o  "$ORB" = "OrbixE"
6139then
6140
6141
6142{ echo "$as_me:$LINENO: checking for ORBIXE..." >&5
6143echo "$as_me: checking for ORBIXE..." >&6;}
6144
6145orbixe=no
6146
6147
6148# Check whether --with-orbixe or --without-orbixe was given.
6149if test "${with_orbixe+set}" = set; then
6150  withval="$with_orbixe"
6151  \
6152            ORBIXE_PREFIX=${with_orbixe}
6153else
6154  ORBIXE_PREFIX=/usr/local
6155fi;
6156
6157
6158# Check whether --with-ansicpp or --without-ansicpp was given.
6159if test "${with_ansicpp+set}" = set; then
6160  withval="$with_ansicpp"
6161  \
6162            USE_EA=${with_ansicpp}
6163else
6164  USE_EA=no
6165fi;
6166
6167{ echo "$as_me:$LINENO: checking for ORBIXE..." >&5
6168echo "$as_me: checking for ORBIXE..." >&6;}
6169
6170
6171
6172ac_ext=cc
6173ac_cpp='$CXXCPP $CPPFLAGS'
6174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6177
6178
6179if test ! $ORBIXE_PREFIX = no
6180then
6181
6182
6183svCPPFLAGS=$CPPFLAGS
6184svCXXFLAGS=$CXXFLAGS
6185svCXXCPPFLAGS=$CXXCPPFLAGS
6186svLIBS=$LIBS
6187svRSSH_ROLLBACK=$rssh_rollback
6188rssh_rollback=true
6189
6190if test $USE_EA = yes
6191then
6192  ORBIXE_L=a
6193  ORBIXE_BL=A
6194else
6195  ORBIXE_L=e
6196  ORBIXE_BL=E
6197fi
6198ORBIXE_CPP_DIR=$ORBIXE_PREFIX/${ORBIXE_L}cpp
6199ORBIXE_CPP_LIB=obe${ORBIXE_L}_server
6200
6201CXXCPPFLAGS="-I$ORBIXE_PREFIX/c/include $CXXCPPFLAGS"
6202CXXCPPFLAGS="-I$ORBIXE_CPP_DIR/include $CXXCPPFLAGS"
6203CPPFLAGS="-I$ORBIXE_PREFIX/c/include  $CPPFLAGS"
6204CPPFLAGS="-I$ORBIXE_CPP_DIR/include $CPPFLAGS"
6205
6206
6207
6208
6209if test -z "$rssh_enable_pthreads_done"
6210then
6211 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
6212 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
6213 LIBS="$LIBS $LIBS_PTHREADS"
6214fi
6215rssh_enable_pthreads_done=yes
6216
6217rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
6218
6219
6220if test "${ac_cv_header_OBE_CORBA_h+set}" = set; then
6221  echo "$as_me:$LINENO: checking for OBE/CORBA.h" >&5
6222echo $ECHO_N "checking for OBE/CORBA.h... $ECHO_C" >&6
6223if test "${ac_cv_header_OBE_CORBA_h+set}" = set; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225fi
6226echo "$as_me:$LINENO: result: $ac_cv_header_OBE_CORBA_h" >&5
6227echo "${ECHO_T}$ac_cv_header_OBE_CORBA_h" >&6
6228else
6229  # Is the header compilable?
6230echo "$as_me:$LINENO: checking OBE/CORBA.h usability" >&5
6231echo $ECHO_N "checking OBE/CORBA.h usability... $ECHO_C" >&6
6232cat >conftest.$ac_ext <<_ACEOF
6233#line $LINENO "configure"
6234#include "confdefs.h"
6235$ac_includes_default
6236#include <OBE/CORBA.h>
6237_ACEOF
6238rm -f conftest.$ac_objext
6239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6240  (eval $ac_compile) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } &&
6244         { ac_try='test -s conftest.$ac_objext'
6245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246  (eval $ac_try) 2>&5
6247  ac_status=$?
6248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249  (exit $ac_status); }; }; then
6250  ac_header_compiler=yes
6251else
6252  echo "$as_me: failed program was:" >&5
6253cat conftest.$ac_ext >&5
6254ac_header_compiler=no
6255fi
6256rm -f conftest.$ac_objext conftest.$ac_ext
6257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6258echo "${ECHO_T}$ac_header_compiler" >&6
6259
6260# Is the header present?
6261echo "$as_me:$LINENO: checking OBE/CORBA.h presence" >&5
6262echo $ECHO_N "checking OBE/CORBA.h presence... $ECHO_C" >&6
6263cat >conftest.$ac_ext <<_ACEOF
6264#line $LINENO "configure"
6265#include "confdefs.h"
6266#include <OBE/CORBA.h>
6267_ACEOF
6268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270  ac_status=$?
6271  egrep -v '^ *\+' conftest.er1 >conftest.err
6272  rm -f conftest.er1
6273  cat conftest.err >&5
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); } >/dev/null; then
6276  if test -s conftest.err; then
6277    ac_cpp_err=$ac_cxx_preproc_warn_flag
6278  else
6279    ac_cpp_err=
6280  fi
6281else
6282  ac_cpp_err=yes
6283fi
6284if test -z "$ac_cpp_err"; then
6285  ac_header_preproc=yes
6286else
6287  echo "$as_me: failed program was:" >&5
6288  cat conftest.$ac_ext >&5
6289  ac_header_preproc=no
6290fi
6291rm -f conftest.err conftest.$ac_ext
6292echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6293echo "${ECHO_T}$ac_header_preproc" >&6
6294
6295# So?  What about this header?
6296case $ac_header_compiler:$ac_header_preproc in
6297  yes:no )
6298    { echo "$as_me:$LINENO: WARNING: OBE/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
6299echo "$as_me: WARNING: OBE/CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6300    { echo "$as_me:$LINENO: WARNING: OBE/CORBA.h: proceeding with the preprocessor's result" >&5
6301echo "$as_me: WARNING: OBE/CORBA.h: proceeding with the preprocessor's result" >&2;};;
6302  no:yes )
6303    { echo "$as_me:$LINENO: WARNING: OBE/CORBA.h: present but cannot be compiled" >&5
6304echo "$as_me: WARNING: OBE/CORBA.h: present but cannot be compiled" >&2;}
6305    { echo "$as_me:$LINENO: WARNING: OBE/CORBA.h: check for missing prerequisite headers?" >&5
6306echo "$as_me: WARNING: OBE/CORBA.h: check for missing prerequisite headers?" >&2;}
6307    { echo "$as_me:$LINENO: WARNING: OBE/CORBA.h: proceeding with the preprocessor's result" >&5
6308echo "$as_me: WARNING: OBE/CORBA.h: proceeding with the preprocessor's result" >&2;};;
6309esac
6310echo "$as_me:$LINENO: checking for OBE/CORBA.h" >&5
6311echo $ECHO_N "checking for OBE/CORBA.h... $ECHO_C" >&6
6312if test "${ac_cv_header_OBE_CORBA_h+set}" = set; then
6313  echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315  ac_cv_header_OBE_CORBA_h=$ac_header_preproc
6316fi
6317echo "$as_me:$LINENO: result: $ac_cv_header_OBE_CORBA_h" >&5
6318echo "${ECHO_T}$ac_cv_header_OBE_CORBA_h" >&6
6319
6320fi
6321if test $ac_cv_header_OBE_CORBA_h = yes; then
6322  orbixe=yes
6323else
6324  orbixe=no
6325fi
6326
6327
6328else
6329 orbixe=no
6330fi
6331
6332if test "x$orbixe" = xyes
6333then
6334
6335echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6336echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6337if test "${ac_cv_lib_socket_socket+set}" = set; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340  ac_check_lib_save_LIBS=$LIBS
6341LIBS="-lsocket  $LIBS"
6342cat >conftest.$ac_ext <<_ACEOF
6343#line $LINENO "configure"
6344#include "confdefs.h"
6345
6346/* Override any gcc2 internal prototype to avoid an error.  */
6347#ifdef __cplusplus
6348extern "C"
6349#endif
6350/* We use char because int might match the return type of a gcc2
6351   builtin and then its argument prototype would still apply.  */
6352char socket ();
6353#ifdef F77_DUMMY_MAIN
6354#  ifdef __cplusplus
6355     extern "C"
6356#  endif
6357   int F77_DUMMY_MAIN() { return 1; }
6358#endif
6359int
6360main ()
6361{
6362socket ();
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369  (eval $ac_link) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } &&
6373         { ac_try='test -s conftest$ac_exeext'
6374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375  (eval $ac_try) 2>&5
6376  ac_status=$?
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); }; }; then
6379  ac_cv_lib_socket_socket=yes
6380else
6381  echo "$as_me: failed program was:" >&5
6382cat conftest.$ac_ext >&5
6383ac_cv_lib_socket_socket=no
6384fi
6385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386LIBS=$ac_check_lib_save_LIBS
6387fi
6388echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6389echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6390if test $ac_cv_lib_socket_socket = yes; then
6391  LIBS="-lsocket $LIBS"
6392fi
6393
6394echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6395echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6396if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6397  echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399  ac_check_lib_save_LIBS=$LIBS
6400LIBS="-lnsl  $LIBS"
6401cat >conftest.$ac_ext <<_ACEOF
6402#line $LINENO "configure"
6403#include "confdefs.h"
6404
6405/* Override any gcc2 internal prototype to avoid an error.  */
6406#ifdef __cplusplus
6407extern "C"
6408#endif
6409/* We use char because int might match the return type of a gcc2
6410   builtin and then its argument prototype would still apply.  */
6411char gethostbyname ();
6412#ifdef F77_DUMMY_MAIN
6413#  ifdef __cplusplus
6414     extern "C"
6415#  endif
6416   int F77_DUMMY_MAIN() { return 1; }
6417#endif
6418int
6419main ()
6420{
6421gethostbyname ();
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426rm -f conftest.$ac_objext conftest$ac_exeext
6427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6428  (eval $ac_link) 2>&5
6429  ac_status=$?
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); } &&
6432         { ac_try='test -s conftest$ac_exeext'
6433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434  (eval $ac_try) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; }; then
6438  ac_cv_lib_nsl_gethostbyname=yes
6439else
6440  echo "$as_me: failed program was:" >&5
6441cat conftest.$ac_ext >&5
6442ac_cv_lib_nsl_gethostbyname=no
6443fi
6444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445LIBS=$ac_check_lib_save_LIBS
6446fi
6447echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6448echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6449if test $ac_cv_lib_nsl_gethostbyname = yes; then
6450  LIBS="-lnsl $LIBS"
6451fi
6452
6453
6454LIBS="-L$ORBIXE_CPP_DIR/lib -L$ORBIXE_PREFIX/c/lib -l$ORBIXE_CPP_LIB -lJTC$ORBIXE_BL -lobec_server -lJTCC $LIBS"
6455
6456
6457
6458ORB_PREFIX=$ORBIXE_PREFIX
6459
6460
6461ORB=OrbixE
6462
6463
6464
6465IDL=$ORBIXE_PREFIX/bin/cidl
6466IDL=$IDL
6467
6468IDLCXX=$ORBIXE_PREFIX/bin/${ORBIXE_L}eidl
6469IDLCXX=$IDLCXX
6470
6471
6472IDLFLAGS="$IDLFLAGS -I$ORBIXE_PREFIX/idl"
6473
6474
6475ORB_INCLUDE_PREFIX=OBE
6476
6477
6478
6479IDL_CLN_H=.h
6480IDL_CLN_H_SUFFIX=.h
6481IDL_CLN_H1_SUFFIX=no
6482IDL_CLN_H=$IDL_CLN_H
6483
6484IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
6485
6486IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
6487
6488cat >>confdefs.h <<_ACEOF
6489#define IDL_CLN_H $IDL_CLN_H
6490_ACEOF
6491
6492cat >>confdefs.h <<_ACEOF
6493#define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
6494_ACEOF
6495
6496
6497IDL_CLN_CPP=.cpp
6498IDL_CLN_CPP_SUFFIX=.cpp
6499IDL_CLN_CPP=$IDL_CLN_CPP
6500
6501IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP
6502
6503cat >>confdefs.h <<_ACEOF
6504#define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP
6505_ACEOF
6506
6507
6508IDL_CLN_O=.o
6509IDL_CLN_OBJ_SUFFIX=.o
6510IDL_CLN_O=$IDL_CLN_O
6511
6512IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
6513
6514
6515IDL_SRV_H=_skel.h
6516IDL_SRV_H_SUFFIX=_skel.h
6517IDL_SRV_H1_SUFFIX=no
6518IDL_SRV_H=$IDL_SRV_H
6519
6520IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
6521
6522IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
6523
6524cat >>confdefs.h <<_ACEOF
6525#define IDL_SRV_H_SUFFIX $IDL_SRV_H
6526_ACEOF
6527
6528
6529IDL_SRV_CPP=_skel.cpp
6530IDL_SRV_CPP_SUFFIX=_skel.cpp
6531IDL_SRV_CPP=$IDL_SRV_CPP
6532
6533IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP
6534
6535
6536IDL_SRV_O=_skel.o
6537IDL_SRV_OBJ_SUFFIX=_skel.o
6538IDL_SRV_O=$IDL_SRV_O
6539
6540IDL_SRV_OBJ_SUFFIX=$IDL_SRV_O
6541
6542
6543IDL_TIE_H_SUFFIX=_tie_skel.h
6544IDL_TIE_H1_SUFFIX=no
6545IDL_TIE_CPP_SUFFIX=no
6546IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
6547
6548IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
6549
6550IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
6551
6552
6553
6554CORBA_H='OBE/CORBA.h'
6555cat >>confdefs.h <<_ACEOF
6556#define CORBA_H <$CORBA_H>
6557_ACEOF
6558
6559
6560COSNAMING_H='OBE/CosNaming.h'
6561cat >>confdefs.h <<_ACEOF
6562#define COSNAMING_H <$COSNAMING_H>
6563_ACEOF
6564
6565ORB_COSNAMING_LIB="-lCosNamingC -lCosNaming$ORBIXE_BL"
6566
6567
6568cat >>confdefs.h <<\_ACEOF
6569#define CORBA_MODULE_NAMESPACE_MAPPING 1
6570_ACEOF
6571
6572cat >>confdefs.h <<\_ACEOF
6573#define CORBA_HAVE_POA 1
6574_ACEOF
6575
6576HAVE_ORB_IDL=1
6577cat >>confdefs.h <<\_ACEOF
6578#define CORBA_ORB_HAVE_DESTROY 1
6579_ACEOF
6580
6581
6582
6583
6584cat >>confdefs.h <<\_ACEOF
6585#define ORBIXE 1
6586_ACEOF
6587
6588
6589else
6590
6591CPPFLAGS=$svCPPFLAGS
6592CXXCPPFLAGS=$svCXXCPPFLAGS
6593CXXFLAGS=$svCXXFLAGS
6594LIBS=$svLIBS
6595eval "$rssh_rollback"
6596rssh_rollback="$svRSSH_ROLLBACK"
6597
6598fi
6599
6600ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606
6607echo "$as_me:$LINENO: result: OrbixE check result: $orbixe" >&5
6608echo "${ECHO_T}OrbixE check result: $orbixe" >&6
6609
6610
6611  rssh_know_orb_name=yes
6612fi
6613if test  "x$ORB" = "xunknown"  -o  "$ORB" = "ORBexpress"
6614then
6615
6616
6617{ echo "$as_me:$LINENO: checking for ORBEXPRESS..." >&5
6618echo "$as_me: checking for ORBEXPRESS..." >&6;}
6619
6620orbexpress=no
6621
6622
6623# Check whether --with-orbexpress or --without-orbexpress was given.
6624if test "${with_orbexpress+set}" = set; then
6625  withval="$with_orbexpress"
6626  \
6627            ORBEXPRESS_PREFIX=${with_orbexpress}
6628else
6629  ORBEXPRESS_PREFIX=/usr/local
6630fi;
6631
6632{ echo "$as_me:$LINENO: checking for ORBexpress..." >&5
6633echo "$as_me: checking for ORBexpress..." >&6;}
6634
6635
6636
6637ac_ext=cc
6638ac_cpp='$CXXCPP $CPPFLAGS'
6639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6642
6643
6644if test ! $ORBEXPRESS_PREFIX = no
6645then
6646
6647
6648svCPPFLAGS=$CPPFLAGS
6649svCXXFLAGS=$CXXFLAGS
6650svCXXCPPFLAGS=$CXXCPPFLAGS
6651svLIBS=$LIBS
6652svRSSH_ROLLBACK=$rssh_rollback
6653rssh_rollback=true
6654
6655
6656CXXCPPFLAGS="$CXXCPPFLAGS  -I$ORBEXPRESS_PREFIX/include"
6657CPPFLAGS="$CPPFLAGS  -I$ORBEXPRESS_PREFIX/include"
6658
6659if test "${ac_cv_header_CORBA_h+set}" = set; then
6660  echo "$as_me:$LINENO: checking for CORBA.h" >&5
6661echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
6662if test "${ac_cv_header_CORBA_h+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664fi
6665echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
6666echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
6667else
6668  # Is the header compilable?
6669echo "$as_me:$LINENO: checking CORBA.h usability" >&5
6670echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6
6671cat >conftest.$ac_ext <<_ACEOF
6672#line $LINENO "configure"
6673#include "confdefs.h"
6674$ac_includes_default
6675#include <CORBA.h>
6676_ACEOF
6677rm -f conftest.$ac_objext
6678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6679  (eval $ac_compile) 2>&5
6680  ac_status=$?
6681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682  (exit $ac_status); } &&
6683         { ac_try='test -s conftest.$ac_objext'
6684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685  (eval $ac_try) 2>&5
6686  ac_status=$?
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); }; }; then
6689  ac_header_compiler=yes
6690else
6691  echo "$as_me: failed program was:" >&5
6692cat conftest.$ac_ext >&5
6693ac_header_compiler=no
6694fi
6695rm -f conftest.$ac_objext conftest.$ac_ext
6696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6697echo "${ECHO_T}$ac_header_compiler" >&6
6698
6699# Is the header present?
6700echo "$as_me:$LINENO: checking CORBA.h presence" >&5
6701echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6
6702cat >conftest.$ac_ext <<_ACEOF
6703#line $LINENO "configure"
6704#include "confdefs.h"
6705#include <CORBA.h>
6706_ACEOF
6707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709  ac_status=$?
6710  egrep -v '^ *\+' conftest.er1 >conftest.err
6711  rm -f conftest.er1
6712  cat conftest.err >&5
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); } >/dev/null; then
6715  if test -s conftest.err; then
6716    ac_cpp_err=$ac_cxx_preproc_warn_flag
6717  else
6718    ac_cpp_err=
6719  fi
6720else
6721  ac_cpp_err=yes
6722fi
6723if test -z "$ac_cpp_err"; then
6724  ac_header_preproc=yes
6725else
6726  echo "$as_me: failed program was:" >&5
6727  cat conftest.$ac_ext >&5
6728  ac_header_preproc=no
6729fi
6730rm -f conftest.err conftest.$ac_ext
6731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732echo "${ECHO_T}$ac_header_preproc" >&6
6733
6734# So?  What about this header?
6735case $ac_header_compiler:$ac_header_preproc in
6736  yes:no )
6737    { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
6738echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739    { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
6740echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
6741  no:yes )
6742    { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
6743echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
6744    { echo "$as_me:$LINENO: WARNING: CORBA.h: check for missing prerequisite headers?" >&5
6745echo "$as_me: WARNING: CORBA.h: check for missing prerequisite headers?" >&2;}
6746    { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
6747echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;};;
6748esac
6749echo "$as_me:$LINENO: checking for CORBA.h" >&5
6750echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6
6751if test "${ac_cv_header_CORBA_h+set}" = set; then
6752  echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754  ac_cv_header_CORBA_h=$ac_header_preproc
6755fi
6756echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
6757echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6
6758
6759fi
6760if test $ac_cv_header_CORBA_h = yes; then
6761  orbexpress=yes
6762else
6763  orbexpress=no
6764fi
6765
6766
6767else
6768 orbexpress=no
6769fi
6770
6771if test "x$orbexpress" = xyes
6772then
6773
6774echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6775echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
6776if test "${ac_cv_lib_socket_socket+set}" = set; then
6777  echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779  ac_check_lib_save_LIBS=$LIBS
6780LIBS="-lsocket  $LIBS"
6781cat >conftest.$ac_ext <<_ACEOF
6782#line $LINENO "configure"
6783#include "confdefs.h"
6784
6785/* Override any gcc2 internal prototype to avoid an error.  */
6786#ifdef __cplusplus
6787extern "C"
6788#endif
6789/* We use char because int might match the return type of a gcc2
6790   builtin and then its argument prototype would still apply.  */
6791char socket ();
6792#ifdef F77_DUMMY_MAIN
6793#  ifdef __cplusplus
6794     extern "C"
6795#  endif
6796   int F77_DUMMY_MAIN() { return 1; }
6797#endif
6798int
6799main ()
6800{
6801socket ();
6802  ;
6803  return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808  (eval $ac_link) 2>&5
6809  ac_status=$?
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); } &&
6812         { ac_try='test -s conftest$ac_exeext'
6813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814  (eval $ac_try) 2>&5
6815  ac_status=$?
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); }; }; then
6818  ac_cv_lib_socket_socket=yes
6819else
6820  echo "$as_me: failed program was:" >&5
6821cat conftest.$ac_ext >&5
6822ac_cv_lib_socket_socket=no
6823fi
6824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6825LIBS=$ac_check_lib_save_LIBS
6826fi
6827echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6828echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
6829if test $ac_cv_lib_socket_socket = yes; then
6830  LIBS="-lsocket $LIBS"
6831fi
6832
6833echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6834echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6835if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6836  echo $ECHO_N "(cached) $ECHO_C" >&6
6837else
6838  ac_check_lib_save_LIBS=$LIBS
6839LIBS="-lnsl  $LIBS"
6840cat >conftest.$ac_ext <<_ACEOF
6841#line $LINENO "configure"
6842#include "confdefs.h"
6843
6844/* Override any gcc2 internal prototype to avoid an error.  */
6845#ifdef __cplusplus
6846extern "C"
6847#endif
6848/* We use char because int might match the return type of a gcc2
6849   builtin and then its argument prototype would still apply.  */
6850char gethostbyname ();
6851#ifdef F77_DUMMY_MAIN
6852#  ifdef __cplusplus
6853     extern "C"
6854#  endif
6855   int F77_DUMMY_MAIN() { return 1; }
6856#endif
6857int
6858main ()
6859{
6860gethostbyname ();
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext conftest$ac_exeext
6866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867  (eval $ac_link) 2>&5
6868  ac_status=$?
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); } &&
6871         { ac_try='test -s conftest$ac_exeext'
6872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873  (eval $ac_try) 2>&5
6874  ac_status=$?
6875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876  (exit $ac_status); }; }; then
6877  ac_cv_lib_nsl_gethostbyname=yes
6878else
6879  echo "$as_me: failed program was:" >&5
6880cat conftest.$ac_ext >&5
6881ac_cv_lib_nsl_gethostbyname=no
6882fi
6883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6884LIBS=$ac_check_lib_save_LIBS
6885fi
6886echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6887echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6888if test $ac_cv_lib_nsl_gethostbyname = yes; then
6889  LIBS="-lnsl $LIBS"
6890fi
6891
6892
6893LIBS="-L$ORBEXPRESS_PREFIX/lib -lOEbridge -lOEipmc -lOEmirror -lOEorb -lOEtcp $LIBS"
6894
6895
6896
6897ORB_PREFIX=$ORBEXPRESS_PREFIX
6898
6899
6900ORB=ORBexpress
6901
6902
6903
6904IDL=$ORBEXPRESS_PREFIX/../../../../host/x86-linux/bin/idl2cpp
6905IDL=$IDL
6906
6907IDLCXX=$ORBEXPRESS_PREFIX/../../../../host/x86-linux/bin/idl2cpp
6908IDLCXX=$IDLCXX
6909
6910
6911IDLFLAGS="$IDLFLAGS -I$ORBEXPRESS_PREFIX/../../../../idl"
6912
6913
6914ORB_INCLUDE_PREFIX=.
6915
6916
6917
6918IDL_CLN_H=.h
6919IDL_CLN_H_SUFFIX=.h
6920IDL_CLN_H1_SUFFIX=no
6921IDL_CLN_H=$IDL_CLN_H
6922
6923IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
6924
6925IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
6926
6927cat >>confdefs.h <<_ACEOF
6928#define IDL_CLN_H $IDL_CLN_H
6929_ACEOF
6930
6931cat >>confdefs.h <<_ACEOF
6932#define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
6933_ACEOF
6934
6935
6936IDL_CLN_CPP=.cxx
6937IDL_CLN_CPP_SUFFIX=.cxx
6938IDL_CLN_CPP=$IDL_CLN_CPP
6939
6940IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP
6941
6942cat >>confdefs.h <<_ACEOF
6943#define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP
6944_ACEOF
6945
6946
6947IDL_CLN_O=.o
6948IDL_CLN_OBJ_SUFFIX=.o
6949IDL_CLN_O=$IDL_CLN_O
6950
6951IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
6952
6953
6954IDL_SRV_H=_s.h
6955IDL_SRV_H_SUFFIX=_s.h
6956IDL_SRV_H1_SUFFIX=no
6957IDL_SRV_H=$IDL_SRV_H
6958
6959IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
6960
6961IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
6962
6963cat >>confdefs.h <<_ACEOF
6964#define IDL_SRV_H_SUFFIX $IDL_SRV_H
6965_ACEOF
6966
6967
6968IDL_SRV_CPP=_s.cxx
6969IDL_SRV_CPP_SUFFIX=_s.cxx
6970IDL_SRV_CPP=$IDL_SRV_CPP
6971
6972IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP
6973
6974
6975IDL_SRV_O=_s.o
6976IDL_SRV_OBJ_SUFFIX=_s.o
6977IDL_SRV_O=$IDL_SRV_O
6978
6979IDL_SRV_OBJ_SUFFIX=$IDL_SRV_O
6980
6981
6982IDL_TIE_H_SUFFIX=_tie_skel.h
6983IDL_TIE_H1_SUFFIX=no
6984IDL_TIE_CPP_SUFFIX=no
6985IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
6986
6987IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
6988
6989IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
6990
6991
6992
6993CORBA_H='CORBA.h'
6994cat >>confdefs.h <<_ACEOF
6995#define CORBA_H <$CORBA_H>
6996_ACEOF
6997
6998
6999
7000
7001cat >>confdefs.h <<\_ACEOF
7002#define ORBEXPRESS 1
7003_ACEOF
7004
7005
7006else
7007
7008CPPFLAGS=$svCPPFLAGS
7009CXXCPPFLAGS=$svCXXCPPFLAGS
7010CXXFLAGS=$svCXXFLAGS
7011LIBS=$svLIBS
7012eval "$rssh_rollback"
7013rssh_rollback="$svRSSH_ROLLBACK"
7014
7015fi
7016
7017ac_ext=c
7018ac_cpp='$CPP $CPPFLAGS'
7019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7021ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022
7023
7024echo "$as_me:$LINENO: result: ORBexpress check result: $orbexpress" >&5
7025echo "${ECHO_T}ORBexpress check result: $orbexpress" >&6
7026
7027
7028  rssh_know_orb_name=yes
7029fi
7030if test  "x$ORB" = "xunknown"  -o  "$ORB" = "ORBit"
7031then
7032
7033
7034{ echo "$as_me:$LINENO: checking for ORBIT..." >&5
7035echo "$as_me: checking for ORBIT..." >&6;}
7036
7037orbit=no
7038
7039
7040# Check whether --with-orbit or --without-orbit was given.
7041if test "${with_orbit+set}" = set; then
7042  withval="$with_orbit"
7043  \
7044            ORBIT_PREFIX=${with_orbit}
7045else
7046  ORBIT_PREFIX=/
7047fi;
7048
7049{ echo "$as_me:$LINENO: checking for Orbit..." >&5
7050echo "$as_me: checking for Orbit..." >&6;}
7051
7052
7053
7054ac_ext=cc
7055ac_cpp='$CXXCPP $CPPFLAGS'
7056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7059
7060
7061if test ! $ORBIT_PREFIX = no
7062then
7063
7064
7065svCPPFLAGS=$CPPFLAGS
7066svCXXFLAGS=$CXXFLAGS
7067svCXXCPPFLAGS=$CXXCPPFLAGS
7068svLIBS=$LIBS
7069svRSSH_ROLLBACK=$rssh_rollback
7070rssh_rollback=true
7071
7072
7073CXXCPPFLAGS="$CXXCPPFLAGS  -I/usr/include/glib-1.2/  -I/usr/lib/glib/include/ -I$ORBIT_PREFIX/include/orbit-1.0/"
7074CPPFLAGS="$CPPFLAGS  -I/usr/include/glib-1.2/ -I/usr/lib/glib/include/ -I$ORBIT_PREFIX/include/orbit-1.0/"
7075
7076if test "${ac_cv_header_orb_orbitcpp_hh+set}" = set; then
7077  echo "$as_me:$LINENO: checking for orb/orbitcpp.hh" >&5
7078echo $ECHO_N "checking for orb/orbitcpp.hh... $ECHO_C" >&6
7079if test "${ac_cv_header_orb_orbitcpp_hh+set}" = set; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081fi
7082echo "$as_me:$LINENO: result: $ac_cv_header_orb_orbitcpp_hh" >&5
7083echo "${ECHO_T}$ac_cv_header_orb_orbitcpp_hh" >&6
7084else
7085  # Is the header compilable?
7086echo "$as_me:$LINENO: checking orb/orbitcpp.hh usability" >&5
7087echo $ECHO_N "checking orb/orbitcpp.hh usability... $ECHO_C" >&6
7088cat >conftest.$ac_ext <<_ACEOF
7089#line $LINENO "configure"
7090#include "confdefs.h"
7091$ac_includes_default
7092#include <orb/orbitcpp.hh>
7093_ACEOF
7094rm -f conftest.$ac_objext
7095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096  (eval $ac_compile) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); } &&
7100         { ac_try='test -s conftest.$ac_objext'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; }; then
7106  ac_header_compiler=yes
7107else
7108  echo "$as_me: failed program was:" >&5
7109cat conftest.$ac_ext >&5
7110ac_header_compiler=no
7111fi
7112rm -f conftest.$ac_objext conftest.$ac_ext
7113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7114echo "${ECHO_T}$ac_header_compiler" >&6
7115
7116# Is the header present?
7117echo "$as_me:$LINENO: checking orb/orbitcpp.hh presence" >&5
7118echo $ECHO_N "checking orb/orbitcpp.hh presence... $ECHO_C" >&6
7119cat >conftest.$ac_ext <<_ACEOF
7120#line $LINENO "configure"
7121#include "confdefs.h"
7122#include <orb/orbitcpp.hh>
7123_ACEOF
7124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7126  ac_status=$?
7127  egrep -v '^ *\+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } >/dev/null; then
7132  if test -s conftest.err; then
7133    ac_cpp_err=$ac_cxx_preproc_warn_flag
7134  else
7135    ac_cpp_err=
7136  fi
7137else
7138  ac_cpp_err=yes
7139fi
7140if test -z "$ac_cpp_err"; then
7141  ac_header_preproc=yes
7142else
7143  echo "$as_me: failed program was:" >&5
7144  cat conftest.$ac_ext >&5
7145  ac_header_preproc=no
7146fi
7147rm -f conftest.err conftest.$ac_ext
7148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7149echo "${ECHO_T}$ac_header_preproc" >&6
7150
7151# So?  What about this header?
7152case $ac_header_compiler:$ac_header_preproc in
7153  yes:no )
7154    { echo "$as_me:$LINENO: WARNING: orb/orbitcpp.hh: accepted by the compiler, rejected by the preprocessor!" >&5
7155echo "$as_me: WARNING: orb/orbitcpp.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
7156    { echo "$as_me:$LINENO: WARNING: orb/orbitcpp.hh: proceeding with the preprocessor's result" >&5
7157echo "$as_me: WARNING: orb/orbitcpp.hh: proceeding with the preprocessor's result" >&2;};;
7158  no:yes )
7159    { echo "$as_me:$LINENO: WARNING: orb/orbitcpp.hh: present but cannot be compiled" >&5
7160echo "$as_me: WARNING: orb/orbitcpp.hh: present but cannot be compiled" >&2;}
7161    { echo "$as_me:$LINENO: WARNING: orb/orbitcpp.hh: check for missing prerequisite headers?" >&5
7162echo "$as_me: WARNING: orb/orbitcpp.hh: check for missing prerequisite headers?" >&2;}
7163    { echo "$as_me:$LINENO: WARNING: orb/orbitcpp.hh: proceeding with the preprocessor's result" >&5
7164echo "$as_me: WARNING: orb/orbitcpp.hh: proceeding with the preprocessor's result" >&2;};;
7165esac
7166echo "$as_me:$LINENO: checking for orb/orbitcpp.hh" >&5
7167echo $ECHO_N "checking for orb/orbitcpp.hh... $ECHO_C" >&6
7168if test "${ac_cv_header_orb_orbitcpp_hh+set}" = set; then
7169  echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171  ac_cv_header_orb_orbitcpp_hh=$ac_header_preproc
7172fi
7173echo "$as_me:$LINENO: result: $ac_cv_header_orb_orbitcpp_hh" >&5
7174echo "${ECHO_T}$ac_cv_header_orb_orbitcpp_hh" >&6
7175
7176fi
7177if test $ac_cv_header_orb_orbitcpp_hh = yes; then
7178  orbit=yes
7179else
7180  orbit=no
7181fi
7182
7183
7184else
7185 orbit=no
7186fi
7187
7188if test "x$orbit" = xyes
7189then
7190
7191echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7192echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7193if test "${ac_cv_lib_socket_socket+set}" = set; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  ac_check_lib_save_LIBS=$LIBS
7197LIBS="-lsocket  $LIBS"
7198cat >conftest.$ac_ext <<_ACEOF
7199#line $LINENO "configure"
7200#include "confdefs.h"
7201
7202/* Override any gcc2 internal prototype to avoid an error.  */
7203#ifdef __cplusplus
7204extern "C"
7205#endif
7206/* We use char because int might match the return type of a gcc2
7207   builtin and then its argument prototype would still apply.  */
7208char socket ();
7209#ifdef F77_DUMMY_MAIN
7210#  ifdef __cplusplus
7211     extern "C"
7212#  endif
7213   int F77_DUMMY_MAIN() { return 1; }
7214#endif
7215int
7216main ()
7217{
7218socket ();
7219  ;
7220  return 0;
7221}
7222_ACEOF
7223rm -f conftest.$ac_objext conftest$ac_exeext
7224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225  (eval $ac_link) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); } &&
7229         { ac_try='test -s conftest$ac_exeext'
7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231  (eval $ac_try) 2>&5
7232  ac_status=$?
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; }; then
7235  ac_cv_lib_socket_socket=yes
7236else
7237  echo "$as_me: failed program was:" >&5
7238cat conftest.$ac_ext >&5
7239ac_cv_lib_socket_socket=no
7240fi
7241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7242LIBS=$ac_check_lib_save_LIBS
7243fi
7244echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7245echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7246if test $ac_cv_lib_socket_socket = yes; then
7247  LIBS="-lsocket $LIBS"
7248fi
7249
7250echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7251echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7252if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7253  echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255  ac_check_lib_save_LIBS=$LIBS
7256LIBS="-lnsl  $LIBS"
7257cat >conftest.$ac_ext <<_ACEOF
7258#line $LINENO "configure"
7259#include "confdefs.h"
7260
7261/* Override any gcc2 internal prototype to avoid an error.  */
7262#ifdef __cplusplus
7263extern "C"
7264#endif
7265/* We use char because int might match the return type of a gcc2
7266   builtin and then its argument prototype would still apply.  */
7267char gethostbyname ();
7268#ifdef F77_DUMMY_MAIN
7269#  ifdef __cplusplus
7270     extern "C"
7271#  endif
7272   int F77_DUMMY_MAIN() { return 1; }
7273#endif
7274int
7275main ()
7276{
7277gethostbyname ();
7278  ;
7279  return 0;
7280}
7281_ACEOF
7282rm -f conftest.$ac_objext conftest$ac_exeext
7283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7284  (eval $ac_link) 2>&5
7285  ac_status=$?
7286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287  (exit $ac_status); } &&
7288         { ac_try='test -s conftest$ac_exeext'
7289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290  (eval $ac_try) 2>&5
7291  ac_status=$?
7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293  (exit $ac_status); }; }; then
7294  ac_cv_lib_nsl_gethostbyname=yes
7295else
7296  echo "$as_me: failed program was:" >&5
7297cat conftest.$ac_ext >&5
7298ac_cv_lib_nsl_gethostbyname=no
7299fi
7300rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7301LIBS=$ac_check_lib_save_LIBS
7302fi
7303echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7304echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7305if test $ac_cv_lib_nsl_gethostbyname = yes; then
7306  LIBS="-lnsl $LIBS"
7307fi
7308
7309
7310LIBS="-L$ORBIT_PREFIX/lib -lorbitcpp -lORBit -lIIOP -lORBitutil -lglib -lm $LIBS"
7311
7312
7313
7314ORB_PREFIX=$ORBIT_PREFIX
7315
7316
7317ORB=Orbit
7318
7319
7320
7321IDL=$ORBIT_PREFIX/bin/orbit-idl
7322IDL=$IDL
7323
7324IDLCXX=$ORBIT_PREFIX/bin/orbit-idl
7325IDLCXX=$IDLCXX
7326
7327
7328IDLFLAGS="$IDLFLAGS -I$ORBIT_PREFIX/share/idl/orbit-1.0/ --lang=c++"
7329
7330
7331ORB_INCLUDE_PREFIX=orb
7332
7333
7334
7335IDL_CLN_H=-cpp.hh
7336IDL_CLN_H_SUFFIX=-cpp.hh
7337IDL_CLN_H1_SUFFIX=no
7338IDL_CLN_H=$IDL_CLN_H
7339
7340IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
7341
7342IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
7343
7344cat >>confdefs.h <<_ACEOF
7345#define IDL_CLN_H $IDL_CLN_H
7346_ACEOF
7347
7348cat >>confdefs.h <<_ACEOF
7349#define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
7350_ACEOF
7351
7352
7353IDL_CLN_CPP=-cpp.cc
7354IDL_CLN_CPP_SUFFIX=-cpp.cc
7355IDL_CLN_CPP=$IDL_CLN_CPP
7356
7357IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP
7358
7359cat >>confdefs.h <<_ACEOF
7360#define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP
7361_ACEOF
7362
7363
7364IDL_CLN_O=-cpp.o
7365IDL_CLN_OBJ_SUFFIX=-cpp.o
7366IDL_CLN_O=$IDL_CLN_O
7367
7368IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
7369
7370
7371IDL_SRV_H=-cpp.hh
7372IDL_SRV_H_SUFFIX=-cpp.hh
7373IDL_SRV_H1_SUFFIX=no
7374IDL_SRV_H=$IDL_SRV_H
7375
7376IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
7377
7378IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
7379
7380cat >>confdefs.h <<_ACEOF
7381#define IDL_SRV_H $IDL_SRV_H
7382_ACEOF
7383
7384cat >>confdefs.h <<_ACEOF
7385#define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
7386_ACEOF
7387
7388
7389IDL_SRV_CPP=-cpp.cc
7390IDL_SRV_CPP_SUFFIX=-cpp.cc
7391IDL_SRV_CPP=$IDL_SRV_CPP
7392
7393IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP
7394
7395cat >>confdefs.h <<_ACEOF
7396#define IDL_SRV_CPP_SUFFIX $IDL_SRV_CPP
7397_ACEOF
7398
7399
7400IDL_SRV_O=-cpp.o
7401IDL_SRV_OBJ_SUFFIX=-cpp.o
7402IDL_SRV_O=$IDL_SRV_O
7403
7404IDL_SRV_OBJ_SUFFIX=$IDL_SRV_OBJ_SUFFIX
7405
7406
7407
7408CORBA_H='orb/orbitcpp.hh'
7409cat >>confdefs.h <<_ACEOF
7410#define CORBA_H <$CORBA_H>
7411_ACEOF
7412
7413
7414
7415
7416cat >>confdefs.h <<\_ACEOF
7417#define ORBIT 1
7418_ACEOF
7419
7420
7421else
7422
7423CPPFLAGS=$svCPPFLAGS
7424CXXCPPFLAGS=$svCXXCPPFLAGS
7425CXXFLAGS=$svCXXFLAGS
7426LIBS=$svLIBS
7427eval "$rssh_rollback"
7428rssh_rollback="$svRSSH_ROLLBACK"
7429
7430fi
7431
7432ac_ext=c
7433ac_cpp='$CPP $CPPFLAGS'
7434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437
7438
7439echo "$as_me:$LINENO: result: Orbit check result: $orbit" >&5
7440echo "${ECHO_T}Orbit check result: $orbit" >&6
7441
7442
7443  rssh_know_orb_name=yes
7444fi
7445
7446if test "$rssh_know_orb_name" = "no"
7447then
7448  { { echo "$as_me:$LINENO: error: unknown ORB name" >&5
7449echo "$as_me: error: unknown ORB name" >&2;}
7450   { (exit 1); exit 1; }; }
7451fi
7452
7453
7454if test "$ORB" = "xunknown" ; then
7455  { { echo "$as_me:$LINENO: error: no orb found" >&5
7456echo "$as_me: error: no orb found" >&2;}
7457   { (exit 1); exit 1; }; }
7458fi
7459
7460IDL_DEPEND_ORB_FLAGS=""
7461svX=$X
7462X=""
7463X="$X --cln_h_suffix  $IDL_CLN_H_SUFFIX"
7464X="$X --cln_h1_suffix  $IDL_CLN_H1_SUFFIX"
7465X="$X --cln_cpp_suffix    $IDL_CLN_CPP_SUFFIX"
7466X="$X --cln_obj_suffix    $IDL_CLN_OBJ_SUFFIX"
7467X="$X --srv_h_suffix    $IDL_SRV_H_SUFFIX"
7468X="$X --srv_h1_suffix    $IDL_SRV_H1_SUFFIX"
7469X="$X --srv_cpp_suffix    $IDL_SRV_CPP_SUFFIX"
7470X="$X --srv_obj_suffix    $IDL_SRV_OBJ_SUFFIX"
7471X="$X --tie_h_suffix    $IDL_TIE_H_SUFFIX"
7472X="$X --tie_h1_suffix    $IDL_TIE_H1_SUFFIX"
7473X="$X --tie_cpp_suffix    $IDL_TIE_CPP_SUFFIX"
7474
7475IDL_DEPEND_ORB_FLAGS="$X"
7476
7477X=$svX
7478
7479
7480
7481echo "$as_me:$LINENO: result: \"Result for ORB: $ORB\"" >&5
7482echo "${ECHO_T}\"Result for ORB: $ORB\"" >&6
7483
7484
7485
7486ac_config_files="$ac_config_files Makefile"
7487
7488cat >confcache <<\_ACEOF
7489# This file is a shell script that caches the results of configure
7490# tests run on this system so they can be shared between configure
7491# scripts and configure runs, see configure's option --config-cache.
7492# It is not useful on other systems.  If it contains results you don't
7493# want to keep, you may remove or edit it.
7494#
7495# config.status only pays attention to the cache file if you give it
7496# the --recheck option to rerun configure.
7497#
7498# `ac_cv_env_foo' variables (set or unset) will be overriden when
7499# loading this file, other *unset* `ac_cv_foo' will be assigned the
7500# following values.
7501
7502_ACEOF
7503
7504# The following way of writing the cache mishandles newlines in values,
7505# but we know of no workaround that is simple, portable, and efficient.
7506# So, don't put newlines in cache variables' values.
7507# Ultrix sh set writes to stderr and can't be redirected directly,
7508# and sets the high bit in the cache file unless we assign to the vars.
7509{
7510  (set) 2>&1 |
7511    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7512    *ac_space=\ *)
7513      # `set' does not quote correctly, so add quotes (double-quote
7514      # substitution turns \\\\ into \\, and sed turns \\ into \).
7515      sed -n \
7516        "s/'/'\\\\''/g;
7517    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7518      ;;
7519    *)
7520      # `set' quotes correctly as required by POSIX, so do not add quotes.
7521      sed -n \
7522        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7523      ;;
7524    esac;
7525} |
7526  sed '
7527     t clear
7528     : clear
7529     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7530     t end
7531     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7532     : end' >>confcache
7533if cmp -s $cache_file confcache; then :; else
7534  if test -w $cache_file; then
7535    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7536    cat confcache >$cache_file
7537  else
7538    echo "not updating unwritable cache $cache_file"
7539  fi
7540fi
7541rm -f confcache
7542
7543test "x$prefix" = xNONE && prefix=$ac_default_prefix
7544# Let make expand exec_prefix.
7545test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7546
7547# VPATH may cause trouble with some makes, so we remove $(srcdir),
7548# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7549# trailing colons and then remove the whole line if VPATH becomes empty
7550# (actually we leave an empty line to preserve line numbers).
7551if test "x$srcdir" = x.; then
7552  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
7553s/:*\$(srcdir):*/:/;
7554s/:*\${srcdir}:*/:/;
7555s/:*@srcdir@:*/:/;
7556s/^\([^=]*=[ 	]*\):*/\1/;
7557s/:*$//;
7558s/^[^=]*=[ 	]*$//;
7559}'
7560fi
7561
7562# Transform confdefs.h into DEFS.
7563# Protect against shell expansion while executing Makefile rules.
7564# Protect against Makefile macro expansion.
7565#
7566# If the first sed substitution is executed (which looks for macros that
7567# take arguments), then we branch to the quote section.  Otherwise,
7568# look for a macro that doesn't take arguments.
7569cat >confdef2opt.sed <<\_ACEOF
7570t clear
7571: clear
7572s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
7573t quote
7574s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
7575t quote
7576d
7577: quote
7578s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
7579s,\[,\\&,g
7580s,\],\\&,g
7581s,\$,$$,g
7582p
7583_ACEOF
7584# We use echo to avoid assuming a particular line-breaking character.
7585# The extra dot is to prevent the shell from consuming trailing
7586# line-breaks from the sub-command output.  A line-break within
7587# single-quotes doesn't work because, if this script is created in a
7588# platform that uses two characters for line-breaks (e.g., DOS), tr
7589# would break.
7590ac_LF_and_DOT=`echo; echo .`
7591DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
7592rm -f confdef2opt.sed
7593
7594
7595
7596: ${CONFIG_STATUS=./config.status}
7597ac_clean_files_save=$ac_clean_files
7598ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7599{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7600echo "$as_me: creating $CONFIG_STATUS" >&6;}
7601cat >$CONFIG_STATUS <<_ACEOF
7602#! $SHELL
7603# Generated by $as_me.
7604# Run this file to recreate the current configuration.
7605# Compiler output produced by configure, useful for debugging
7606# configure, is in config.log if it exists.
7607
7608debug=false
7609SHELL=\${CONFIG_SHELL-$SHELL}
7610_ACEOF
7611
7612cat >>$CONFIG_STATUS <<\_ACEOF
7613
7614## --------------------- ##
7615## M4sh Initialization.  ##
7616## --------------------- ##
7617
7618# Be Bourne compatible
7619if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7620  emulate sh
7621  NULLCMD=:
7622elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7623  set -o posix
7624fi
7625
7626# NLS nuisances.
7627# Support unset when possible.
7628if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7629  as_unset=unset
7630else
7631  as_unset=false
7632fi
7633
7634(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7635    { $as_unset LANG || test "${LANG+set}" != set; } ||
7636      { LANG=C; export LANG; }
7637(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7638    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7639      { LC_ALL=C; export LC_ALL; }
7640(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7641    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7642      { LC_TIME=C; export LC_TIME; }
7643(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7644    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7645      { LC_CTYPE=C; export LC_CTYPE; }
7646(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7647    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7648      { LANGUAGE=C; export LANGUAGE; }
7649(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7650    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7651      { LC_COLLATE=C; export LC_COLLATE; }
7652(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7653    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7654      { LC_NUMERIC=C; export LC_NUMERIC; }
7655(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7656    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7657      { LC_MESSAGES=C; export LC_MESSAGES; }
7658
7659
7660# Name of the executable.
7661as_me=`(basename "$0") 2>/dev/null ||
7662$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7663	 X"$0" : 'X\(//\)$' \| \
7664	 X"$0" : 'X\(/\)$' \| \
7665	 .     : '\(.\)' 2>/dev/null ||
7666echo X/"$0" |
7667    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7668  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7669  	  /^X\/\(\/\).*/{ s//\1/; q; }
7670  	  s/.*/./; q'`
7671
7672# PATH needs CR, and LINENO needs CR and PATH.
7673# Avoid depending upon Character Ranges.
7674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7677as_cr_digits='0123456789'
7678as_cr_alnum=$as_cr_Letters$as_cr_digits
7679
7680# The user is always right.
7681if test "${PATH_SEPARATOR+set}" != set; then
7682  echo "#! /bin/sh" >conftest.sh
7683  echo  "exit 0"   >>conftest.sh
7684  chmod +x conftest.sh
7685  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
7686    PATH_SEPARATOR=';'
7687  else
7688    PATH_SEPARATOR=:
7689  fi
7690  rm -f conftest.sh
7691fi
7692
7693
7694  as_lineno_1=$LINENO
7695  as_lineno_2=$LINENO
7696  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7697  test "x$as_lineno_1" != "x$as_lineno_2" &&
7698  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7699  # Find who we are.  Look in the path if we contain no path at all
7700  # relative or not.
7701  case $0 in
7702    *[\\/]* ) as_myself=$0 ;;
7703    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704for as_dir in $PATH
7705do
7706  IFS=$as_save_IFS
7707  test -z "$as_dir" && as_dir=.
7708  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7709done
7710
7711       ;;
7712  esac
7713  # We did not find ourselves, most probably we were run as `sh COMMAND'
7714  # in which case we are not to be found in the path.
7715  if test "x$as_myself" = x; then
7716    as_myself=$0
7717  fi
7718  if test ! -f "$as_myself"; then
7719    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7720echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7721   { (exit 1); exit 1; }; }
7722  fi
7723  case $CONFIG_SHELL in
7724  '')
7725    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7727do
7728  IFS=$as_save_IFS
7729  test -z "$as_dir" && as_dir=.
7730  for as_base in sh bash ksh sh5; do
7731	 case $as_dir in
7732	 /*)
7733	   if ("$as_dir/$as_base" -c '
7734  as_lineno_1=$LINENO
7735  as_lineno_2=$LINENO
7736  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7737  test "x$as_lineno_1" != "x$as_lineno_2" &&
7738  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7739	     CONFIG_SHELL=$as_dir/$as_base
7740	     export CONFIG_SHELL
7741	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7742	   fi;;
7743	 esac
7744       done
7745done
7746;;
7747  esac
7748
7749  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7750  # uniformly replaced by the line number.  The first 'sed' inserts a
7751  # line-number line before each line; the second 'sed' does the real
7752  # work.  The second script uses 'N' to pair each line-number line
7753  # with the numbered line, and appends trailing '-' during
7754  # substitution so that $LINENO is not a special case at line end.
7755  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7756  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7757  sed '=' <$as_myself |
7758    sed '
7759      N
7760      s,$,-,
7761      : loop
7762      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7763      t loop
7764      s,-$,,
7765      s,^['$as_cr_digits']*\n,,
7766    ' >$as_me.lineno &&
7767  chmod +x $as_me.lineno ||
7768    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7769echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7770   { (exit 1); exit 1; }; }
7771
7772  # Don't try to exec as it changes $[0], causing all sort of problems
7773  # (the dirname of $[0] is not the place where we might find the
7774  # original and so on.  Autoconf is especially sensible to this).
7775  . ./$as_me.lineno
7776  # Exit status is that of the last command.
7777  exit
7778}
7779
7780
7781case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7782  *c*,-n*) ECHO_N= ECHO_C='
7783' ECHO_T='	' ;;
7784  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7785  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7786esac
7787
7788if expr a : '\(a\)' >/dev/null 2>&1; then
7789  as_expr=expr
7790else
7791  as_expr=false
7792fi
7793
7794rm -f conf$$ conf$$.exe conf$$.file
7795echo >conf$$.file
7796if ln -s conf$$.file conf$$ 2>/dev/null; then
7797  # We could just check for DJGPP; but this test a) works b) is more generic
7798  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7799  if test -f conf$$.exe; then
7800    # Don't use ln at all; we don't have any links
7801    as_ln_s='cp -p'
7802  else
7803    as_ln_s='ln -s'
7804  fi
7805elif ln conf$$.file conf$$ 2>/dev/null; then
7806  as_ln_s=ln
7807else
7808  as_ln_s='cp -p'
7809fi
7810rm -f conf$$ conf$$.exe conf$$.file
7811
7812as_executable_p="test -f"
7813
7814# Sed expression to map a string onto a valid CPP name.
7815as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7816
7817# Sed expression to map a string onto a valid variable name.
7818as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7819
7820
7821# IFS
7822# We need space, tab and new line, in precisely that order.
7823as_nl='
7824'
7825IFS=" 	$as_nl"
7826
7827# CDPATH.
7828$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7829
7830exec 6>&1
7831
7832# Open the log real soon, to keep \$[0] and so on meaningful, and to
7833# report actual input values of CONFIG_FILES etc. instead of their
7834# values after options handling.  Logging --version etc. is OK.
7835exec 5>>config.log
7836{
7837  echo
7838  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7839## Running $as_me. ##
7840_ASBOX
7841} >&5
7842cat >&5 <<_CSEOF
7843
7844This file was extended by $as_me, which was
7845generated by GNU Autoconf 2.53.  Invocation command line was
7846
7847  CONFIG_FILES    = $CONFIG_FILES
7848  CONFIG_HEADERS  = $CONFIG_HEADERS
7849  CONFIG_LINKS    = $CONFIG_LINKS
7850  CONFIG_COMMANDS = $CONFIG_COMMANDS
7851  $ $0 $@
7852
7853_CSEOF
7854echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7855echo >&5
7856_ACEOF
7857
7858# Files that config.status was made for.
7859if test -n "$ac_config_files"; then
7860  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7861fi
7862
7863if test -n "$ac_config_headers"; then
7864  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7865fi
7866
7867if test -n "$ac_config_links"; then
7868  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7869fi
7870
7871if test -n "$ac_config_commands"; then
7872  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7873fi
7874
7875cat >>$CONFIG_STATUS <<\_ACEOF
7876
7877ac_cs_usage="\
7878\`$as_me' instantiates files from templates according to the
7879current configuration.
7880
7881Usage: $0 [OPTIONS] [FILE]...
7882
7883  -h, --help       print this help, then exit
7884  -V, --version    print version number, then exit
7885  -d, --debug      don't remove temporary files
7886      --recheck    update $as_me by reconfiguring in the same conditions
7887  --file=FILE[:TEMPLATE]
7888                   instantiate the configuration file FILE
7889
7890Configuration files:
7891$config_files
7892
7893Report bugs to <bug-autoconf@gnu.org>."
7894_ACEOF
7895
7896cat >>$CONFIG_STATUS <<_ACEOF
7897ac_cs_version="\\
7898config.status
7899configured by $0, generated by GNU Autoconf 2.53,
7900  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7901
7902Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7903Free Software Foundation, Inc.
7904This config.status script is free software; the Free Software Foundation
7905gives unlimited permission to copy, distribute and modify it."
7906srcdir=$srcdir
7907INSTALL="$INSTALL"
7908_ACEOF
7909
7910cat >>$CONFIG_STATUS <<\_ACEOF
7911# If no file are specified by the user, then we need to provide default
7912# value.  By we need to know if files were specified by the user.
7913ac_need_defaults=:
7914while test $# != 0
7915do
7916  case $1 in
7917  --*=*)
7918    ac_option=`expr "x$1" : 'x\([^=]*\)='`
7919    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7920    shift
7921    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7922    shift
7923    ;;
7924  -*);;
7925  *) # This is not an option, so the user has probably given explicit
7926     # arguments.
7927     ac_need_defaults=false;;
7928  esac
7929
7930  case $1 in
7931  # Handling of the options.
7932_ACEOF
7933cat >>$CONFIG_STATUS <<_ACEOF
7934  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7935    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7936    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7937_ACEOF
7938cat >>$CONFIG_STATUS <<\_ACEOF
7939  --version | --vers* | -V )
7940    echo "$ac_cs_version"; exit 0 ;;
7941  --he | --h)
7942    # Conflict between --help and --header
7943    { { echo "$as_me:$LINENO: error: ambiguous option: $1
7944Try \`$0 --help' for more information." >&5
7945echo "$as_me: error: ambiguous option: $1
7946Try \`$0 --help' for more information." >&2;}
7947   { (exit 1); exit 1; }; };;
7948  --help | --hel | -h )
7949    echo "$ac_cs_usage"; exit 0 ;;
7950  --debug | --d* | -d )
7951    debug=: ;;
7952  --file | --fil | --fi | --f )
7953    shift
7954    CONFIG_FILES="$CONFIG_FILES $1"
7955    ac_need_defaults=false;;
7956  --header | --heade | --head | --hea )
7957    shift
7958    CONFIG_HEADERS="$CONFIG_HEADERS $1"
7959    ac_need_defaults=false;;
7960
7961  # This is an error.
7962  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7963Try \`$0 --help' for more information." >&5
7964echo "$as_me: error: unrecognized option: $1
7965Try \`$0 --help' for more information." >&2;}
7966   { (exit 1); exit 1; }; } ;;
7967
7968  *) ac_config_targets="$ac_config_targets $1" ;;
7969
7970  esac
7971  shift
7972done
7973
7974_ACEOF
7975
7976
7977
7978
7979
7980cat >>$CONFIG_STATUS <<\_ACEOF
7981for ac_config_target in $ac_config_targets
7982do
7983  case "$ac_config_target" in
7984  # Handling of arguments.
7985  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7986  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7987echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7988   { (exit 1); exit 1; }; };;
7989  esac
7990done
7991
7992# If the user did not use the arguments to specify the items to instantiate,
7993# then the envvar interface is used.  Set only those that are not.
7994# We use the long form for the default assignment because of an extremely
7995# bizarre bug on SunOS 4.1.3.
7996if $ac_need_defaults; then
7997  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7998fi
7999
8000# Create a temporary directory, and hook for its removal unless debugging.
8001$debug ||
8002{
8003  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8004  trap '{ (exit 1); exit 1; }' 1 2 13 15
8005}
8006
8007# Create a (secure) tmp directory for tmp files.
8008: ${TMPDIR=/tmp}
8009{
8010  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8011  test -n "$tmp" && test -d "$tmp"
8012}  ||
8013{
8014  tmp=$TMPDIR/cs$$-$RANDOM
8015  (umask 077 && mkdir $tmp)
8016} ||
8017{
8018   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8019   { (exit 1); exit 1; }
8020}
8021
8022_ACEOF
8023
8024cat >>$CONFIG_STATUS <<_ACEOF
8025
8026#
8027# CONFIG_FILES section.
8028#
8029
8030# No need to generate the scripts if there are no CONFIG_FILES.
8031# This happens for instance when ./config.status config.h
8032if test -n "\$CONFIG_FILES"; then
8033  # Protect against being on the right side of a sed subst in config.status.
8034  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8035   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8036s,@SHELL@,$SHELL,;t t
8037s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8038s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8039s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8040s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8041s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8042s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8043s,@exec_prefix@,$exec_prefix,;t t
8044s,@prefix@,$prefix,;t t
8045s,@program_transform_name@,$program_transform_name,;t t
8046s,@bindir@,$bindir,;t t
8047s,@sbindir@,$sbindir,;t t
8048s,@libexecdir@,$libexecdir,;t t
8049s,@datadir@,$datadir,;t t
8050s,@sysconfdir@,$sysconfdir,;t t
8051s,@sharedstatedir@,$sharedstatedir,;t t
8052s,@localstatedir@,$localstatedir,;t t
8053s,@libdir@,$libdir,;t t
8054s,@includedir@,$includedir,;t t
8055s,@oldincludedir@,$oldincludedir,;t t
8056s,@infodir@,$infodir,;t t
8057s,@mandir@,$mandir,;t t
8058s,@build_alias@,$build_alias,;t t
8059s,@host_alias@,$host_alias,;t t
8060s,@target_alias@,$target_alias,;t t
8061s,@DEFS@,$DEFS,;t t
8062s,@ECHO_C@,$ECHO_C,;t t
8063s,@ECHO_N@,$ECHO_N,;t t
8064s,@ECHO_T@,$ECHO_T,;t t
8065s,@LIBS@,$LIBS,;t t
8066s,@build@,$build,;t t
8067s,@build_cpu@,$build_cpu,;t t
8068s,@build_vendor@,$build_vendor,;t t
8069s,@build_os@,$build_os,;t t
8070s,@host@,$host,;t t
8071s,@host_cpu@,$host_cpu,;t t
8072s,@host_vendor@,$host_vendor,;t t
8073s,@host_os@,$host_os,;t t
8074s,@target@,$target,;t t
8075s,@target_cpu@,$target_cpu,;t t
8076s,@target_vendor@,$target_vendor,;t t
8077s,@target_os@,$target_os,;t t
8078s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8079s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8080s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8081s,@PACKAGE@,$PACKAGE,;t t
8082s,@VERSION@,$VERSION,;t t
8083s,@ACLOCAL@,$ACLOCAL,;t t
8084s,@AUTOCONF@,$AUTOCONF,;t t
8085s,@AUTOMAKE@,$AUTOMAKE,;t t
8086s,@AUTOHEADER@,$AUTOHEADER,;t t
8087s,@MAKEINFO@,$MAKEINFO,;t t
8088s,@SET_MAKE@,$SET_MAKE,;t t
8089s,@RANLIB@,$RANLIB,;t t
8090s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8091s,@CC@,$CC,;t t
8092s,@CFLAGS@,$CFLAGS,;t t
8093s,@LDFLAGS@,$LDFLAGS,;t t
8094s,@CPPFLAGS@,$CPPFLAGS,;t t
8095s,@ac_ct_CC@,$ac_ct_CC,;t t
8096s,@EXEEXT@,$EXEEXT,;t t
8097s,@OBJEXT@,$OBJEXT,;t t
8098s,@CXX@,$CXX,;t t
8099s,@CXXFLAGS@,$CXXFLAGS,;t t
8100s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8101s,@CPP@,$CPP,;t t
8102s,@CXXCPP@,$CXXCPP,;t t
8103s,@ORB_PREFIX@,$ORB_PREFIX,;t t
8104s,@ORB@,$ORB,;t t
8105s,@IDL@,$IDL,;t t
8106s,@IDLFLAGS@,$IDLFLAGS,;t t
8107s,@ORB_INCLUDE_PREFIX@,$ORB_INCLUDE_PREFIX,;t t
8108s,@IDL_CLN_H@,$IDL_CLN_H,;t t
8109s,@IDL_CLN_H_SUFFIX@,$IDL_CLN_H_SUFFIX,;t t
8110s,@IDL_CLN_H1_SUFFIX@,$IDL_CLN_H1_SUFFIX,;t t
8111s,@IDL_CLN_CPP@,$IDL_CLN_CPP,;t t
8112s,@IDL_CLN_CPP_SUFFIX@,$IDL_CLN_CPP_SUFFIX,;t t
8113s,@IDL_CLN_O@,$IDL_CLN_O,;t t
8114s,@IDL_CLN_OBJ_SUFFIX@,$IDL_CLN_OBJ_SUFFIX,;t t
8115s,@IDL_SRV_H@,$IDL_SRV_H,;t t
8116s,@IDL_SRV_H_SUFFIX@,$IDL_SRV_H_SUFFIX,;t t
8117s,@IDL_SRV_H1_SUFFIX@,$IDL_SRV_H1_SUFFIX,;t t
8118s,@IDL_SRV_CPP@,$IDL_SRV_CPP,;t t
8119s,@IDL_SRV_CPP_SUFFIX@,$IDL_SRV_CPP_SUFFIX,;t t
8120s,@IDL_SRV_O@,$IDL_SRV_O,;t t
8121s,@IDL_SRV_OBJ_SUFFIX@,$IDL_SRV_OBJ_SUFFIX,;t t
8122s,@IDL_TIE_H_SUFFIX@,$IDL_TIE_H_SUFFIX,;t t
8123s,@IDL_TIE_H1_SUFFIX@,$IDL_TIE_H1_SUFFIX,;t t
8124s,@IDL_TIE_CPP_SUFFIX@,$IDL_TIE_CPP_SUFFIX,;t t
8125s,@ORB_COSNAMING_LIB@,$ORB_COSNAMING_LIB,;t t
8126s,@HAVE_ORB_IDL@,$HAVE_ORB_IDL,;t t
8127s,@IDLCXXFLAGS@,$IDLCXXFLAGS,;t t
8128s,@CORBA_INCLUDES@,$CORBA_INCLUDES,;t t
8129s,@IDLCXX@,$IDLCXX,;t t
8130s,@IDL_H_SUFFIX@,$IDL_H_SUFFIX,;t t
8131s,@IDL_H1_SUFFIX@,$IDL_H1_SUFFIX,;t t
8132s,@ORBIXE_PREFIX@,$ORBIXE_PREFIX,;t t
8133s,@ORBEXPRESS_PREFIX@,$ORBEXPRESS_PREFIX,;t t
8134s,@ORBIT_PREFIX@,$ORBIT_PREFIX,;t t
8135s,@IDL_DEPEND_ORB_FLAGS@,$IDL_DEPEND_ORB_FLAGS,;t t
8136s,@ORB_INCLUDE@,$ORB_INCLUDE,;t t
8137CEOF
8138
8139_ACEOF
8140
8141  cat >>$CONFIG_STATUS <<\_ACEOF
8142  # Split the substitutions into bite-sized pieces for seds with
8143  # small command number limits, like on Digital OSF/1 and HP-UX.
8144  ac_max_sed_lines=48
8145  ac_sed_frag=1 # Number of current file.
8146  ac_beg=1 # First line for current file.
8147  ac_end=$ac_max_sed_lines # Line after last line for current file.
8148  ac_more_lines=:
8149  ac_sed_cmds=
8150  while $ac_more_lines; do
8151    if test $ac_beg -gt 1; then
8152      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8153    else
8154      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8155    fi
8156    if test ! -s $tmp/subs.frag; then
8157      ac_more_lines=false
8158    else
8159      # The purpose of the label and of the branching condition is to
8160      # speed up the sed processing (if there are no `@' at all, there
8161      # is no need to browse any of the substitutions).
8162      # These are the two extra sed commands mentioned above.
8163      (echo ':t
8164  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8165      if test -z "$ac_sed_cmds"; then
8166  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8167      else
8168  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8169      fi
8170      ac_sed_frag=`expr $ac_sed_frag + 1`
8171      ac_beg=$ac_end
8172      ac_end=`expr $ac_end + $ac_max_sed_lines`
8173    fi
8174  done
8175  if test -z "$ac_sed_cmds"; then
8176    ac_sed_cmds=cat
8177  fi
8178fi # test -n "$CONFIG_FILES"
8179
8180_ACEOF
8181cat >>$CONFIG_STATUS <<\_ACEOF
8182for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8183  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8184  case $ac_file in
8185  - | *:- | *:-:* ) # input from stdin
8186        cat >$tmp/stdin
8187        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8188        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8189  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8190        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8191  * )   ac_file_in=$ac_file.in ;;
8192  esac
8193
8194  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8195  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8197         X"$ac_file" : 'X\(//\)[^/]' \| \
8198         X"$ac_file" : 'X\(//\)$' \| \
8199         X"$ac_file" : 'X\(/\)' \| \
8200         .     : '\(.\)' 2>/dev/null ||
8201echo X"$ac_file" |
8202    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8203  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8204  	  /^X\(\/\/\)$/{ s//\1/; q; }
8205  	  /^X\(\/\).*/{ s//\1/; q; }
8206  	  s/.*/./; q'`
8207  { case "$ac_dir" in
8208  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8209  *)                      as_incr_dir=.;;
8210esac
8211as_dummy="$ac_dir"
8212for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8213  case $as_mkdir_dir in
8214    # Skip DOS drivespec
8215    ?:) as_incr_dir=$as_mkdir_dir ;;
8216    *)
8217      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8218      test -d "$as_incr_dir" ||
8219        mkdir "$as_incr_dir" ||
8220	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8221echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8222   { (exit 1); exit 1; }; }
8223    ;;
8224  esac
8225done; }
8226
8227  ac_builddir=.
8228
8229if test "$ac_dir" != .; then
8230  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8231  # A "../" for each directory in $ac_dir_suffix.
8232  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8233else
8234  ac_dir_suffix= ac_top_builddir=
8235fi
8236
8237case $srcdir in
8238  .)  # No --srcdir option.  We are building in place.
8239    ac_srcdir=.
8240    if test -z "$ac_top_builddir"; then
8241       ac_top_srcdir=.
8242    else
8243       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8244    fi ;;
8245  [\\/]* | ?:[\\/]* )  # Absolute path.
8246    ac_srcdir=$srcdir$ac_dir_suffix;
8247    ac_top_srcdir=$srcdir ;;
8248  *) # Relative path.
8249    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8250    ac_top_srcdir=$ac_top_builddir$srcdir ;;
8251esac
8252# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8253# absolute.
8254ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8255ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
8256ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8257ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8258
8259
8260  case $INSTALL in
8261  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8262  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8263  esac
8264
8265  if test x"$ac_file" != x-; then
8266    { echo "$as_me:$LINENO: creating $ac_file" >&5
8267echo "$as_me: creating $ac_file" >&6;}
8268    rm -f "$ac_file"
8269  fi
8270  # Let's still pretend it is `configure' which instantiates (i.e., don't
8271  # use $as_me), people would be surprised to read:
8272  #    /* config.h.  Generated by config.status.  */
8273  if test x"$ac_file" = x-; then
8274    configure_input=
8275  else
8276    configure_input="$ac_file.  "
8277  fi
8278  configure_input=$configure_input"Generated from `echo $ac_file_in |
8279                                     sed 's,.*/,,'` by configure."
8280
8281  # First look for the input files in the build tree, otherwise in the
8282  # src tree.
8283  ac_file_inputs=`IFS=:
8284    for f in $ac_file_in; do
8285      case $f in
8286      -) echo $tmp/stdin ;;
8287      [\\/$]*)
8288         # Absolute (can't be DOS-style, as IFS=:)
8289         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8290echo "$as_me: error: cannot find input file: $f" >&2;}
8291   { (exit 1); exit 1; }; }
8292         echo $f;;
8293      *) # Relative
8294         if test -f "$f"; then
8295           # Build tree
8296           echo $f
8297         elif test -f "$srcdir/$f"; then
8298           # Source tree
8299           echo $srcdir/$f
8300         else
8301           # /dev/null tree
8302           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8303echo "$as_me: error: cannot find input file: $f" >&2;}
8304   { (exit 1); exit 1; }; }
8305         fi;;
8306      esac
8307    done` || { (exit 1); exit 1; }
8308_ACEOF
8309cat >>$CONFIG_STATUS <<_ACEOF
8310  sed "$ac_vpsub
8311$extrasub
8312_ACEOF
8313cat >>$CONFIG_STATUS <<\_ACEOF
8314:t
8315/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8316s,@configure_input@,$configure_input,;t t
8317s,@srcdir@,$ac_srcdir,;t t
8318s,@abs_srcdir@,$ac_abs_srcdir,;t t
8319s,@top_srcdir@,$ac_top_srcdir,;t t
8320s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8321s,@builddir@,$ac_builddir,;t t
8322s,@abs_builddir@,$ac_abs_builddir,;t t
8323s,@top_builddir@,$ac_top_builddir,;t t
8324s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8325s,@INSTALL@,$ac_INSTALL,;t t
8326" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8327  rm -f $tmp/stdin
8328  if test x"$ac_file" != x-; then
8329    mv $tmp/out $ac_file
8330  else
8331    cat $tmp/out
8332    rm -f $tmp/out
8333  fi
8334
8335done
8336_ACEOF
8337
8338cat >>$CONFIG_STATUS <<\_ACEOF
8339
8340{ (exit 0); exit 0; }
8341_ACEOF
8342chmod +x $CONFIG_STATUS
8343ac_clean_files=$ac_clean_files_save
8344
8345
8346# configure is writing to config.log, and then calls config.status.
8347# config.status does its own redirection, appending to config.log.
8348# Unfortunately, on DOS this fails, as config.log is still kept open
8349# by configure, so config.status won't be able to write to it; its
8350# output is simply discarded.  So we exec the FD to /dev/null,
8351# effectively closing config.log, so it can be properly (re)opened and
8352# appended to by config.status.  When coming back to configure, we
8353# need to make the FD available again.
8354if test "$no_create" != yes; then
8355  ac_cs_success=:
8356  exec 5>/dev/null
8357  $SHELL $CONFIG_STATUS || ac_cs_success=false
8358  exec 5>>config.log
8359  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8360  # would make configure fail if this is the last instruction.
8361  $ac_cs_success || { (exit 1); exit 1; }
8362fi
8363
8364