1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Rexx/Wrapper "".
4#
5# Report bugs to <mark@rexx.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='Rexx/Wrapper'
271PACKAGE_TARNAME='RexxWrapper'
272PACKAGE_VERSION='""'
273PACKAGE_STRING='Rexx/Wrapper ""'
274PACKAGE_BUGREPORT='mark@rexx.org'
275
276ac_default_prefix=/usr
277ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VER VER_DOT VER_DATE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os regina_config CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT rexxtrans_config oorexx_config REXX_TARGET REXX_INCLUDES rexxtrans_lib_name REXX_LIBS INTERPRETER REXXEXE RPMTOPDIR LIBOBJS LTLIBOBJS'
278ac_subst_files=''
279
280# Initialize some variables set by options.
281ac_init_help=
282ac_init_version=false
283# The variables have the same names as the options, with
284# dashes changed to underlines.
285cache_file=/dev/null
286exec_prefix=NONE
287no_create=
288no_recursion=
289prefix=NONE
290program_prefix=NONE
291program_suffix=NONE
292program_transform_name=s,x,x,
293silent=
294site=
295srcdir=
296verbose=
297x_includes=NONE
298x_libraries=NONE
299
300# Installation directory options.
301# These are left unexpanded so users can "make install exec_prefix=/foo"
302# and all the variables that are supposed to be based on exec_prefix
303# by default will actually change.
304# Use braces instead of parens because sh, perl, etc. also accept them.
305bindir='${exec_prefix}/bin'
306sbindir='${exec_prefix}/sbin'
307libexecdir='${exec_prefix}/libexec'
308datadir='${prefix}/share'
309sysconfdir='${prefix}/etc'
310sharedstatedir='${prefix}/com'
311localstatedir='${prefix}/var'
312libdir='${exec_prefix}/lib'
313includedir='${prefix}/include'
314oldincludedir='/usr/include'
315infodir='${prefix}/info'
316mandir='${prefix}/man'
317
318ac_prev=
319for ac_option
320do
321  # If the previous option needs an argument, assign it.
322  if test -n "$ac_prev"; then
323    eval "$ac_prev=\$ac_option"
324    ac_prev=
325    continue
326  fi
327
328  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329
330  # Accept the important Cygnus configure options, so we can diagnose typos.
331
332  case $ac_option in
333
334  -bindir | --bindir | --bindi | --bind | --bin | --bi)
335    ac_prev=bindir ;;
336  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337    bindir=$ac_optarg ;;
338
339  -build | --build | --buil | --bui | --bu)
340    ac_prev=build_alias ;;
341  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
342    build_alias=$ac_optarg ;;
343
344  -cache-file | --cache-file | --cache-fil | --cache-fi \
345  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
346    ac_prev=cache_file ;;
347  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
348  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
349    cache_file=$ac_optarg ;;
350
351  --config-cache | -C)
352    cache_file=config.cache ;;
353
354  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355    ac_prev=datadir ;;
356  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357  | --da=*)
358    datadir=$ac_optarg ;;
359
360  -disable-* | --disable-*)
361    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
362    # Reject names that are not valid shell variable names.
363    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365   { (exit 1); exit 1; }; }
366    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367    eval "enable_$ac_feature=no" ;;
368
369  -enable-* | --enable-*)
370    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
371    # Reject names that are not valid shell variable names.
372    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
373      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
374   { (exit 1); exit 1; }; }
375    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376    case $ac_option in
377      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378      *) ac_optarg=yes ;;
379    esac
380    eval "enable_$ac_feature='$ac_optarg'" ;;
381
382  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384  | --exec | --exe | --ex)
385    ac_prev=exec_prefix ;;
386  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388  | --exec=* | --exe=* | --ex=*)
389    exec_prefix=$ac_optarg ;;
390
391  -gas | --gas | --ga | --g)
392    # Obsolete; use --with-gas.
393    with_gas=yes ;;
394
395  -help | --help | --hel | --he | -h)
396    ac_init_help=long ;;
397  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
398    ac_init_help=recursive ;;
399  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
400    ac_init_help=short ;;
401
402  -host | --host | --hos | --ho)
403    ac_prev=host_alias ;;
404  -host=* | --host=* | --hos=* | --ho=*)
405    host_alias=$ac_optarg ;;
406
407  -includedir | --includedir | --includedi | --included | --include \
408  | --includ | --inclu | --incl | --inc)
409    ac_prev=includedir ;;
410  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
411  | --includ=* | --inclu=* | --incl=* | --inc=*)
412    includedir=$ac_optarg ;;
413
414  -infodir | --infodir | --infodi | --infod | --info | --inf)
415    ac_prev=infodir ;;
416  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
417    infodir=$ac_optarg ;;
418
419  -libdir | --libdir | --libdi | --libd)
420    ac_prev=libdir ;;
421  -libdir=* | --libdir=* | --libdi=* | --libd=*)
422    libdir=$ac_optarg ;;
423
424  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
425  | --libexe | --libex | --libe)
426    ac_prev=libexecdir ;;
427  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
428  | --libexe=* | --libex=* | --libe=*)
429    libexecdir=$ac_optarg ;;
430
431  -localstatedir | --localstatedir | --localstatedi | --localstated \
432  | --localstate | --localstat | --localsta | --localst \
433  | --locals | --local | --loca | --loc | --lo)
434    ac_prev=localstatedir ;;
435  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
436  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
437  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
438    localstatedir=$ac_optarg ;;
439
440  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441    ac_prev=mandir ;;
442  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
443    mandir=$ac_optarg ;;
444
445  -nfp | --nfp | --nf)
446    # Obsolete; use --without-fp.
447    with_fp=no ;;
448
449  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450  | --no-cr | --no-c | -n)
451    no_create=yes ;;
452
453  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455    no_recursion=yes ;;
456
457  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
458  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
459  | --oldin | --oldi | --old | --ol | --o)
460    ac_prev=oldincludedir ;;
461  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
462  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
463  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
464    oldincludedir=$ac_optarg ;;
465
466  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467    ac_prev=prefix ;;
468  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469    prefix=$ac_optarg ;;
470
471  -program-prefix | --program-prefix | --program-prefi | --program-pref \
472  | --program-pre | --program-pr | --program-p)
473    ac_prev=program_prefix ;;
474  -program-prefix=* | --program-prefix=* | --program-prefi=* \
475  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
476    program_prefix=$ac_optarg ;;
477
478  -program-suffix | --program-suffix | --program-suffi | --program-suff \
479  | --program-suf | --program-su | --program-s)
480    ac_prev=program_suffix ;;
481  -program-suffix=* | --program-suffix=* | --program-suffi=* \
482  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
483    program_suffix=$ac_optarg ;;
484
485  -program-transform-name | --program-transform-name \
486  | --program-transform-nam | --program-transform-na \
487  | --program-transform-n | --program-transform- \
488  | --program-transform | --program-transfor \
489  | --program-transfo | --program-transf \
490  | --program-trans | --program-tran \
491  | --progr-tra | --program-tr | --program-t)
492    ac_prev=program_transform_name ;;
493  -program-transform-name=* | --program-transform-name=* \
494  | --program-transform-nam=* | --program-transform-na=* \
495  | --program-transform-n=* | --program-transform-=* \
496  | --program-transform=* | --program-transfor=* \
497  | --program-transfo=* | --program-transf=* \
498  | --program-trans=* | --program-tran=* \
499  | --progr-tra=* | --program-tr=* | --program-t=*)
500    program_transform_name=$ac_optarg ;;
501
502  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
503  | -silent | --silent | --silen | --sile | --sil)
504    silent=yes ;;
505
506  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507    ac_prev=sbindir ;;
508  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509  | --sbi=* | --sb=*)
510    sbindir=$ac_optarg ;;
511
512  -sharedstatedir | --sharedstatedir | --sharedstatedi \
513  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
514  | --sharedst | --shareds | --shared | --share | --shar \
515  | --sha | --sh)
516    ac_prev=sharedstatedir ;;
517  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
518  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
519  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520  | --sha=* | --sh=*)
521    sharedstatedir=$ac_optarg ;;
522
523  -site | --site | --sit)
524    ac_prev=site ;;
525  -site=* | --site=* | --sit=*)
526    site=$ac_optarg ;;
527
528  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529    ac_prev=srcdir ;;
530  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531    srcdir=$ac_optarg ;;
532
533  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
534  | --syscon | --sysco | --sysc | --sys | --sy)
535    ac_prev=sysconfdir ;;
536  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
537  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
538    sysconfdir=$ac_optarg ;;
539
540  -target | --target | --targe | --targ | --tar | --ta | --t)
541    ac_prev=target_alias ;;
542  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
543    target_alias=$ac_optarg ;;
544
545  -v | -verbose | --verbose | --verbos | --verbo | --verb)
546    verbose=yes ;;
547
548  -version | --version | --versio | --versi | --vers | -V)
549    ac_init_version=: ;;
550
551  -with-* | --with-*)
552    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid package name: $ac_package" >&2
556   { (exit 1); exit 1; }; }
557    ac_package=`echo $ac_package| sed 's/-/_/g'`
558    case $ac_option in
559      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560      *) ac_optarg=yes ;;
561    esac
562    eval "with_$ac_package='$ac_optarg'" ;;
563
564  -without-* | --without-*)
565    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
566    # Reject names that are not valid shell variable names.
567    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568      { echo "$as_me: error: invalid package name: $ac_package" >&2
569   { (exit 1); exit 1; }; }
570    ac_package=`echo $ac_package | sed 's/-/_/g'`
571    eval "with_$ac_package=no" ;;
572
573  --x)
574    # Obsolete; use --with-x.
575    with_x=yes ;;
576
577  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
578  | --x-incl | --x-inc | --x-in | --x-i)
579    ac_prev=x_includes ;;
580  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
581  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
582    x_includes=$ac_optarg ;;
583
584  -x-libraries | --x-libraries | --x-librarie | --x-librari \
585  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
586    ac_prev=x_libraries ;;
587  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
588  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
589    x_libraries=$ac_optarg ;;
590
591  -*) { echo "$as_me: error: unrecognized option: $ac_option
592Try \`$0 --help' for more information." >&2
593   { (exit 1); exit 1; }; }
594    ;;
595
596  *=*)
597    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
598    # Reject names that are not valid shell variable names.
599    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
600      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
601   { (exit 1); exit 1; }; }
602    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
603    eval "$ac_envvar='$ac_optarg'"
604    export $ac_envvar ;;
605
606  *)
607    # FIXME: should be removed in autoconf 3.0.
608    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
609    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
610      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
611    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612    ;;
613
614  esac
615done
616
617if test -n "$ac_prev"; then
618  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
619  { echo "$as_me: error: missing argument to $ac_option" >&2
620   { (exit 1); exit 1; }; }
621fi
622
623# Be sure to have absolute paths.
624for ac_var in exec_prefix prefix
625do
626  eval ac_val=$`echo $ac_var`
627  case $ac_val in
628    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
629    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
630   { (exit 1); exit 1; }; };;
631  esac
632done
633
634# Be sure to have absolute paths.
635for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
636	      localstatedir libdir includedir oldincludedir infodir mandir
637do
638  eval ac_val=$`echo $ac_var`
639  case $ac_val in
640    [\\/$]* | ?:[\\/]* ) ;;
641    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
642   { (exit 1); exit 1; }; };;
643  esac
644done
645
646# There might be people who depend on the old broken behavior: `$host'
647# used to hold the argument of --host etc.
648# FIXME: To remove some day.
649build=$build_alias
650host=$host_alias
651target=$target_alias
652
653# FIXME: To remove some day.
654if test "x$host_alias" != x; then
655  if test "x$build_alias" = x; then
656    cross_compiling=maybe
657    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
658    If a cross compiler is detected then cross compile mode will be used." >&2
659  elif test "x$build_alias" != "x$host_alias"; then
660    cross_compiling=yes
661  fi
662fi
663
664ac_tool_prefix=
665test -n "$host_alias" && ac_tool_prefix=$host_alias-
666
667test "$silent" = yes && exec 6>/dev/null
668
669
670# Find the source files, if location was not specified.
671if test -z "$srcdir"; then
672  ac_srcdir_defaulted=yes
673  # Try the directory containing this script, then its parent.
674  ac_confdir=`(dirname "$0") 2>/dev/null ||
675$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
676	 X"$0" : 'X\(//\)[^/]' \| \
677	 X"$0" : 'X\(//\)$' \| \
678	 X"$0" : 'X\(/\)' \| \
679	 .     : '\(.\)' 2>/dev/null ||
680echo X"$0" |
681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
682  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
683  	  /^X\(\/\/\)$/{ s//\1/; q; }
684  	  /^X\(\/\).*/{ s//\1/; q; }
685  	  s/.*/./; q'`
686  srcdir=$ac_confdir
687  if test ! -r $srcdir/$ac_unique_file; then
688    srcdir=..
689  fi
690else
691  ac_srcdir_defaulted=no
692fi
693if test ! -r $srcdir/$ac_unique_file; then
694  if test "$ac_srcdir_defaulted" = yes; then
695    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
696   { (exit 1); exit 1; }; }
697  else
698    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
699   { (exit 1); exit 1; }; }
700  fi
701fi
702(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
703  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
704   { (exit 1); exit 1; }; }
705srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
706ac_env_build_alias_set=${build_alias+set}
707ac_env_build_alias_value=$build_alias
708ac_cv_env_build_alias_set=${build_alias+set}
709ac_cv_env_build_alias_value=$build_alias
710ac_env_host_alias_set=${host_alias+set}
711ac_env_host_alias_value=$host_alias
712ac_cv_env_host_alias_set=${host_alias+set}
713ac_cv_env_host_alias_value=$host_alias
714ac_env_target_alias_set=${target_alias+set}
715ac_env_target_alias_value=$target_alias
716ac_cv_env_target_alias_set=${target_alias+set}
717ac_cv_env_target_alias_value=$target_alias
718ac_env_CC_set=${CC+set}
719ac_env_CC_value=$CC
720ac_cv_env_CC_set=${CC+set}
721ac_cv_env_CC_value=$CC
722ac_env_CFLAGS_set=${CFLAGS+set}
723ac_env_CFLAGS_value=$CFLAGS
724ac_cv_env_CFLAGS_set=${CFLAGS+set}
725ac_cv_env_CFLAGS_value=$CFLAGS
726ac_env_LDFLAGS_set=${LDFLAGS+set}
727ac_env_LDFLAGS_value=$LDFLAGS
728ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
729ac_cv_env_LDFLAGS_value=$LDFLAGS
730ac_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_env_CPPFLAGS_value=$CPPFLAGS
732ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
733ac_cv_env_CPPFLAGS_value=$CPPFLAGS
734
735#
736# Report the --help message.
737#
738if test "$ac_init_help" = "long"; then
739  # Omit some internal or obsolete options to make the list less imposing.
740  # This message is too long to be a string in the A/UX 3.1 sh.
741  cat <<_ACEOF
742\`configure' configures Rexx/Wrapper "" to adapt to many kinds of systems.
743
744Usage: $0 [OPTION]... [VAR=VALUE]...
745
746To assign environment variables (e.g., CC, CFLAGS...), specify them as
747VAR=VALUE.  See below for descriptions of some of the useful variables.
748
749Defaults for the options are specified in brackets.
750
751Configuration:
752  -h, --help              display this help and exit
753      --help=short        display options specific to this package
754      --help=recursive    display the short help of all the included packages
755  -V, --version           display version information and exit
756  -q, --quiet, --silent   do not print \`checking...' messages
757      --cache-file=FILE   cache test results in FILE [disabled]
758  -C, --config-cache      alias for \`--cache-file=config.cache'
759  -n, --no-create         do not create output files
760      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
761
762_ACEOF
763
764  cat <<_ACEOF
765Installation directories:
766  --prefix=PREFIX         install architecture-independent files in PREFIX
767			  [$ac_default_prefix]
768  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
769			  [PREFIX]
770
771By default, \`make install' will install all the files in
772\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
773an installation prefix other than \`$ac_default_prefix' using \`--prefix',
774for instance \`--prefix=\$HOME'.
775
776For better control, use the options below.
777
778Fine tuning of the installation directories:
779  --bindir=DIR           user executables [EPREFIX/bin]
780  --sbindir=DIR          system admin executables [EPREFIX/sbin]
781  --libexecdir=DIR       program executables [EPREFIX/libexec]
782  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
783  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
784  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
785  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
786  --libdir=DIR           object code libraries [EPREFIX/lib]
787  --includedir=DIR       C header files [PREFIX/include]
788  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
789  --infodir=DIR          info documentation [PREFIX/info]
790  --mandir=DIR           man documentation [PREFIX/man]
791_ACEOF
792
793  cat <<\_ACEOF
794
795System types:
796  --build=BUILD     configure for building on BUILD [guessed]
797  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
798  --target=TARGET   configure for building compilers for TARGET [HOST]
799_ACEOF
800fi
801
802if test -n "$ac_init_help"; then
803  case $ac_init_help in
804     short | recursive ) echo "Configuration of Rexx/Wrapper "":";;
805   esac
806  cat <<\_ACEOF
807
808Optional Packages:
809  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
810  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
811  --with-rexx=int         specify Rexx interpeter (rexxtrans|regina|rexximc|oorexx|objrexx|unirexx|rexx6000)
812  --with-rexxincdir=DIR   specify where REXX header file is
813  --with-rexxlibdir=DIR   specify where REXX library file is
814
815Some influential environment variables:
816  CC          C compiler command
817  CFLAGS      C compiler flags
818  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
819              nonstandard directory <lib dir>
820  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
821              headers in a nonstandard directory <include dir>
822
823Use these variables to override the choices made by `configure' or to help
824it to find libraries and programs with nonstandard names/locations.
825
826Report bugs to <mark@rexx.org>.
827_ACEOF
828fi
829
830if test "$ac_init_help" = "recursive"; then
831  # If there are subdirs, report their specific --help.
832  ac_popdir=`pwd`
833  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
834    test -d $ac_dir || continue
835    ac_builddir=.
836
837if test "$ac_dir" != .; then
838  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
839  # A "../" for each directory in $ac_dir_suffix.
840  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
841else
842  ac_dir_suffix= ac_top_builddir=
843fi
844
845case $srcdir in
846  .)  # No --srcdir option.  We are building in place.
847    ac_srcdir=.
848    if test -z "$ac_top_builddir"; then
849       ac_top_srcdir=.
850    else
851       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
852    fi ;;
853  [\\/]* | ?:[\\/]* )  # Absolute path.
854    ac_srcdir=$srcdir$ac_dir_suffix;
855    ac_top_srcdir=$srcdir ;;
856  *) # Relative path.
857    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
858    ac_top_srcdir=$ac_top_builddir$srcdir ;;
859esac
860
861# Do not use `cd foo && pwd` to compute absolute paths, because
862# the directories may not exist.
863case `pwd` in
864.) ac_abs_builddir="$ac_dir";;
865*)
866  case "$ac_dir" in
867  .) ac_abs_builddir=`pwd`;;
868  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
869  *) ac_abs_builddir=`pwd`/"$ac_dir";;
870  esac;;
871esac
872case $ac_abs_builddir in
873.) ac_abs_top_builddir=${ac_top_builddir}.;;
874*)
875  case ${ac_top_builddir}. in
876  .) ac_abs_top_builddir=$ac_abs_builddir;;
877  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
878  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
879  esac;;
880esac
881case $ac_abs_builddir in
882.) ac_abs_srcdir=$ac_srcdir;;
883*)
884  case $ac_srcdir in
885  .) ac_abs_srcdir=$ac_abs_builddir;;
886  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
887  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
888  esac;;
889esac
890case $ac_abs_builddir in
891.) ac_abs_top_srcdir=$ac_top_srcdir;;
892*)
893  case $ac_top_srcdir in
894  .) ac_abs_top_srcdir=$ac_abs_builddir;;
895  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
896  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
897  esac;;
898esac
899
900    cd $ac_dir
901    # Check for guested configure; otherwise get Cygnus style configure.
902    if test -f $ac_srcdir/configure.gnu; then
903      echo
904      $SHELL $ac_srcdir/configure.gnu  --help=recursive
905    elif test -f $ac_srcdir/configure; then
906      echo
907      $SHELL $ac_srcdir/configure  --help=recursive
908    elif test -f $ac_srcdir/configure.ac ||
909	   test -f $ac_srcdir/configure.in; then
910      echo
911      $ac_configure --help
912    else
913      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914    fi
915    cd $ac_popdir
916  done
917fi
918
919test -n "$ac_init_help" && exit 0
920if $ac_init_version; then
921  cat <<\_ACEOF
922Rexx/Wrapper configure ""
923generated by GNU Autoconf 2.59
924
925Copyright (C) 2003 Free Software Foundation, Inc.
926This configure script is free software; the Free Software Foundation
927gives unlimited permission to copy, distribute and modify it.
928_ACEOF
929  exit 0
930fi
931exec 5>config.log
932cat >&5 <<_ACEOF
933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
936It was created by Rexx/Wrapper $as_me "", which was
937generated by GNU Autoconf 2.59.  Invocation command line was
938
939  $ $0 $@
940
941_ACEOF
942{
943cat <<_ASUNAME
944## --------- ##
945## Platform. ##
946## --------- ##
947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
956
957/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
958/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965_ASUNAME
966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970  IFS=$as_save_IFS
971  test -z "$as_dir" && as_dir=.
972  echo "PATH: $as_dir"
973done
974
975} >&5
976
977cat >&5 <<_ACEOF
978
979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
985
986
987# Keep a trace of the command line.
988# Strip out --no-create and --no-recursion so they do not pile up.
989# Strip out --silent because we don't want to record it for future runs.
990# Also quote any args containing shell meta-characters.
991# Make two passes to allow for proper duplicate-argument suppression.
992ac_configure_args=
993ac_configure_args0=
994ac_configure_args1=
995ac_sep=
996ac_must_keep_next=false
997for ac_pass in 1 2
998do
999  for ac_arg
1000  do
1001    case $ac_arg in
1002    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1003    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004    | -silent | --silent | --silen | --sile | --sil)
1005      continue ;;
1006    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008    esac
1009    case $ac_pass in
1010    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1011    2)
1012      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1013      if test $ac_must_keep_next = true; then
1014	ac_must_keep_next=false # Got value, back to normal.
1015      else
1016	case $ac_arg in
1017	  *=* | --config-cache | -C | -disable-* | --disable-* \
1018	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1019	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1020	  | -with-* | --with-* | -without-* | --without-* | --x)
1021	    case "$ac_configure_args0 " in
1022	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1023	    esac
1024	    ;;
1025	  -* ) ac_must_keep_next=true ;;
1026	esac
1027      fi
1028      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1029      # Get rid of the leading space.
1030      ac_sep=" "
1031      ;;
1032    esac
1033  done
1034done
1035$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1036$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1037
1038# When interrupted or exit'd, cleanup temporary files, and complete
1039# config.log.  We remove comments because anyway the quotes in there
1040# would cause problems or look ugly.
1041# WARNING: Be sure not to use single quotes in there, as some shells,
1042# such as our DU 5.0 friend, will then `close' the trap.
1043trap 'exit_status=$?
1044  # Save into config.log some information that might help in debugging.
1045  {
1046    echo
1047
1048    cat <<\_ASBOX
1049## ---------------- ##
1050## Cache variables. ##
1051## ---------------- ##
1052_ASBOX
1053    echo
1054    # The following way of writing the cache mishandles newlines in values,
1055{
1056  (set) 2>&1 |
1057    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1058    *ac_space=\ *)
1059      sed -n \
1060	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1061	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1062      ;;
1063    *)
1064      sed -n \
1065	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1066      ;;
1067    esac;
1068}
1069    echo
1070
1071    cat <<\_ASBOX
1072## ----------------- ##
1073## Output variables. ##
1074## ----------------- ##
1075_ASBOX
1076    echo
1077    for ac_var in $ac_subst_vars
1078    do
1079      eval ac_val=$`echo $ac_var`
1080      echo "$ac_var='"'"'$ac_val'"'"'"
1081    done | sort
1082    echo
1083
1084    if test -n "$ac_subst_files"; then
1085      cat <<\_ASBOX
1086## ------------- ##
1087## Output files. ##
1088## ------------- ##
1089_ASBOX
1090      echo
1091      for ac_var in $ac_subst_files
1092      do
1093	eval ac_val=$`echo $ac_var`
1094	echo "$ac_var='"'"'$ac_val'"'"'"
1095      done | sort
1096      echo
1097    fi
1098
1099    if test -s confdefs.h; then
1100      cat <<\_ASBOX
1101## ----------- ##
1102## confdefs.h. ##
1103## ----------- ##
1104_ASBOX
1105      echo
1106      sed "/^$/d" confdefs.h | sort
1107      echo
1108    fi
1109    test "$ac_signal" != 0 &&
1110      echo "$as_me: caught signal $ac_signal"
1111    echo "$as_me: exit $exit_status"
1112  } >&5
1113  rm -f core *.core &&
1114  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1115    exit $exit_status
1116     ' 0
1117for ac_signal in 1 2 13 15; do
1118  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119done
1120ac_signal=0
1121
1122# confdefs.h avoids OS command line length limits that DEFS can exceed.
1123rm -rf conftest* confdefs.h
1124# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1125echo >confdefs.h
1126
1127# Predefined preprocessor variables.
1128
1129cat >>confdefs.h <<_ACEOF
1130#define PACKAGE_NAME "$PACKAGE_NAME"
1131_ACEOF
1132
1133
1134cat >>confdefs.h <<_ACEOF
1135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136_ACEOF
1137
1138
1139cat >>confdefs.h <<_ACEOF
1140#define PACKAGE_VERSION "$PACKAGE_VERSION"
1141_ACEOF
1142
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_STRING "$PACKAGE_STRING"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151_ACEOF
1152
1153
1154# Let the site file select an alternate cache file if it wants to.
1155# Prefer explicitly selected file to automatically selected ones.
1156if test -z "$CONFIG_SITE"; then
1157  if test "x$prefix" != xNONE; then
1158    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1159  else
1160    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1161  fi
1162fi
1163for ac_site_file in $CONFIG_SITE; do
1164  if test -r "$ac_site_file"; then
1165    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1166echo "$as_me: loading site script $ac_site_file" >&6;}
1167    sed 's/^/| /' "$ac_site_file" >&5
1168    . "$ac_site_file"
1169  fi
1170done
1171
1172if test -r "$cache_file"; then
1173  # Some versions of bash will fail to source /dev/null (special
1174  # files actually), so we avoid doing that.
1175  if test -f "$cache_file"; then
1176    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1177echo "$as_me: loading cache $cache_file" >&6;}
1178    case $cache_file in
1179      [\\/]* | ?:[\\/]* ) . $cache_file;;
1180      *)                      . ./$cache_file;;
1181    esac
1182  fi
1183else
1184  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1185echo "$as_me: creating cache $cache_file" >&6;}
1186  >$cache_file
1187fi
1188
1189# Check that the precious variables saved in the cache have kept the same
1190# value.
1191ac_cache_corrupted=false
1192for ac_var in `(set) 2>&1 |
1193	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1194  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1195  eval ac_new_set=\$ac_env_${ac_var}_set
1196  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1197  eval ac_new_val="\$ac_env_${ac_var}_value"
1198  case $ac_old_set,$ac_new_set in
1199    set,)
1200      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1201echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1202      ac_cache_corrupted=: ;;
1203    ,set)
1204      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1205echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1206      ac_cache_corrupted=: ;;
1207    ,);;
1208    *)
1209      if test "x$ac_old_val" != "x$ac_new_val"; then
1210	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1211echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1212	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1213echo "$as_me:   former value:  $ac_old_val" >&2;}
1214	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1215echo "$as_me:   current value: $ac_new_val" >&2;}
1216	ac_cache_corrupted=:
1217      fi;;
1218  esac
1219  # Pass precious variables to config.status.
1220  if test "$ac_new_set" = set; then
1221    case $ac_new_val in
1222    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1223      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1224    *) ac_arg=$ac_var=$ac_new_val ;;
1225    esac
1226    case " $ac_configure_args " in
1227      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1228      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1229    esac
1230  fi
1231done
1232if $ac_cache_corrupted; then
1233  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1234echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1235  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1236echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1237   { (exit 1); exit 1; }; }
1238fi
1239
1240ac_ext=c
1241ac_cpp='$CPP $CPPFLAGS'
1242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1244ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274MH_PACKAGE="Rexx/Wrapper"
1275
1276. $srcdir/rexxwrapper.ver
1277VER=\"$VER\"
1278VER_DOT=\"$VER_DOT\"
1279VER_DATE=\"$VER_DATE\"
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291# Check whether --with-rexx or --without-rexx was given.
1292if test "${with_rexx+set}" = set; then
1293  withval="$with_rexx"
1294  with_rexx=$withval
1295else
1296  with_rexx=no
1297fi;
1298
1299# Check whether --with-rexxincdir or --without-rexxincdir was given.
1300if test "${with_rexxincdir+set}" = set; then
1301  withval="$with_rexxincdir"
1302  with_rexxincdir=$withval
1303else
1304  with_rexxincdir=no
1305fi;
1306
1307# Check whether --with-rexxlibdir or --without-rexxlibdir was given.
1308if test "${with_rexxlibdir+set}" = set; then
1309  withval="$with_rexxlibdir"
1310  with_rexxlibdir=$withval
1311else
1312  with_rexxlibdir=no
1313fi;
1314ac_aux_dir=
1315for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1316  if test -f $ac_dir/install-sh; then
1317    ac_aux_dir=$ac_dir
1318    ac_install_sh="$ac_aux_dir/install-sh -c"
1319    break
1320  elif test -f $ac_dir/install.sh; then
1321    ac_aux_dir=$ac_dir
1322    ac_install_sh="$ac_aux_dir/install.sh -c"
1323    break
1324  elif test -f $ac_dir/shtool; then
1325    ac_aux_dir=$ac_dir
1326    ac_install_sh="$ac_aux_dir/shtool install -c"
1327    break
1328  fi
1329done
1330if test -z "$ac_aux_dir"; then
1331  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1332echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1333   { (exit 1); exit 1; }; }
1334fi
1335ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1336ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1337ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1338
1339# Make sure we can run config.sub.
1340$ac_config_sub sun4 >/dev/null 2>&1 ||
1341  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1342echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1343   { (exit 1); exit 1; }; }
1344
1345echo "$as_me:$LINENO: checking build system type" >&5
1346echo $ECHO_N "checking build system type... $ECHO_C" >&6
1347if test "${ac_cv_build+set}" = set; then
1348  echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350  ac_cv_build_alias=$build_alias
1351test -z "$ac_cv_build_alias" &&
1352  ac_cv_build_alias=`$ac_config_guess`
1353test -z "$ac_cv_build_alias" &&
1354  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1355echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1356   { (exit 1); exit 1; }; }
1357ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1358  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1359echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1360   { (exit 1); exit 1; }; }
1361
1362fi
1363echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1364echo "${ECHO_T}$ac_cv_build" >&6
1365build=$ac_cv_build
1366build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369
1370
1371echo "$as_me:$LINENO: checking host system type" >&5
1372echo $ECHO_N "checking host system type... $ECHO_C" >&6
1373if test "${ac_cv_host+set}" = set; then
1374  echo $ECHO_N "(cached) $ECHO_C" >&6
1375else
1376  ac_cv_host_alias=$host_alias
1377test -z "$ac_cv_host_alias" &&
1378  ac_cv_host_alias=$ac_cv_build_alias
1379ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1380  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1381echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1382   { (exit 1); exit 1; }; }
1383
1384fi
1385echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1386echo "${ECHO_T}$ac_cv_host" >&6
1387host=$ac_cv_host
1388host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1389host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1390host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1391
1392
1393echo "$as_me:$LINENO: checking target system type" >&5
1394echo $ECHO_N "checking target system type... $ECHO_C" >&6
1395if test "${ac_cv_target+set}" = set; then
1396  echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398  ac_cv_target_alias=$target_alias
1399test "x$ac_cv_target_alias" = "x" &&
1400  ac_cv_target_alias=$ac_cv_host_alias
1401ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1402  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1403echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1404   { (exit 1); exit 1; }; }
1405
1406fi
1407echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1408echo "${ECHO_T}$ac_cv_target" >&6
1409target=$ac_cv_target
1410target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1411target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1412target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1413
1414
1415# The aliases save the names the user supplied, while $host etc.
1416# will get canonicalized.
1417test -n "$target_alias" &&
1418  test "$program_prefix$program_suffix$program_transform_name" = \
1419    NONENONEs,x,x, &&
1420  program_prefix=${target_alias}-
1421ac_ext=c
1422ac_cpp='$CPP $CPPFLAGS'
1423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1425ac_compiler_gnu=$ac_cv_c_compiler_gnu
1426if test -n "$ac_tool_prefix"; then
1427  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1428set dummy ${ac_tool_prefix}gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_CC+set}" = set; then
1432  echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434  if test -n "$CC"; then
1435  ac_cv_prog_CC="$CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440  IFS=$as_save_IFS
1441  test -z "$as_dir" && as_dir=.
1442  for ac_exec_ext in '' $ac_executable_extensions; do
1443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446    break 2
1447  fi
1448done
1449done
1450
1451fi
1452fi
1453CC=$ac_cv_prog_CC
1454if test -n "$CC"; then
1455  echo "$as_me:$LINENO: result: $CC" >&5
1456echo "${ECHO_T}$CC" >&6
1457else
1458  echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462fi
1463if test -z "$ac_cv_prog_CC"; then
1464  ac_ct_CC=$CC
1465  # Extract the first word of "gcc", so it can be a program name with args.
1466set dummy gcc; ac_word=$2
1467echo "$as_me:$LINENO: checking for $ac_word" >&5
1468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1470  echo $ECHO_N "(cached) $ECHO_C" >&6
1471else
1472  if test -n "$ac_ct_CC"; then
1473  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1474else
1475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476for as_dir in $PATH
1477do
1478  IFS=$as_save_IFS
1479  test -z "$as_dir" && as_dir=.
1480  for ac_exec_ext in '' $ac_executable_extensions; do
1481  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482    ac_cv_prog_ac_ct_CC="gcc"
1483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484    break 2
1485  fi
1486done
1487done
1488
1489fi
1490fi
1491ac_ct_CC=$ac_cv_prog_ac_ct_CC
1492if test -n "$ac_ct_CC"; then
1493  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1494echo "${ECHO_T}$ac_ct_CC" >&6
1495else
1496  echo "$as_me:$LINENO: result: no" >&5
1497echo "${ECHO_T}no" >&6
1498fi
1499
1500  CC=$ac_ct_CC
1501else
1502  CC="$ac_cv_prog_CC"
1503fi
1504
1505if test -z "$CC"; then
1506  if test -n "$ac_tool_prefix"; then
1507  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1508set dummy ${ac_tool_prefix}cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_CC+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$CC"; then
1515  ac_cv_prog_CC="$CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520  IFS=$as_save_IFS
1521  test -z "$as_dir" && as_dir=.
1522  for ac_exec_ext in '' $ac_executable_extensions; do
1523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524    ac_cv_prog_CC="${ac_tool_prefix}cc"
1525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526    break 2
1527  fi
1528done
1529done
1530
1531fi
1532fi
1533CC=$ac_cv_prog_CC
1534if test -n "$CC"; then
1535  echo "$as_me:$LINENO: result: $CC" >&5
1536echo "${ECHO_T}$CC" >&6
1537else
1538  echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542fi
1543if test -z "$ac_cv_prog_CC"; then
1544  ac_ct_CC=$CC
1545  # Extract the first word of "cc", so it can be a program name with args.
1546set dummy cc; ac_word=$2
1547echo "$as_me:$LINENO: checking for $ac_word" >&5
1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1550  echo $ECHO_N "(cached) $ECHO_C" >&6
1551else
1552  if test -n "$ac_ct_CC"; then
1553  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1554else
1555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556for as_dir in $PATH
1557do
1558  IFS=$as_save_IFS
1559  test -z "$as_dir" && as_dir=.
1560  for ac_exec_ext in '' $ac_executable_extensions; do
1561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562    ac_cv_prog_ac_ct_CC="cc"
1563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564    break 2
1565  fi
1566done
1567done
1568
1569fi
1570fi
1571ac_ct_CC=$ac_cv_prog_ac_ct_CC
1572if test -n "$ac_ct_CC"; then
1573  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1574echo "${ECHO_T}$ac_ct_CC" >&6
1575else
1576  echo "$as_me:$LINENO: result: no" >&5
1577echo "${ECHO_T}no" >&6
1578fi
1579
1580  CC=$ac_ct_CC
1581else
1582  CC="$ac_cv_prog_CC"
1583fi
1584
1585fi
1586if test -z "$CC"; then
1587  # Extract the first word of "cc", so it can be a program name with args.
1588set dummy cc; ac_word=$2
1589echo "$as_me:$LINENO: checking for $ac_word" >&5
1590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591if test "${ac_cv_prog_CC+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  if test -n "$CC"; then
1595  ac_cv_prog_CC="$CC" # Let the user override the test.
1596else
1597  ac_prog_rejected=no
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601  IFS=$as_save_IFS
1602  test -z "$as_dir" && as_dir=.
1603  for ac_exec_ext in '' $ac_executable_extensions; do
1604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1606       ac_prog_rejected=yes
1607       continue
1608     fi
1609    ac_cv_prog_CC="cc"
1610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611    break 2
1612  fi
1613done
1614done
1615
1616if test $ac_prog_rejected = yes; then
1617  # We found a bogon in the path, so make sure we never use it.
1618  set dummy $ac_cv_prog_CC
1619  shift
1620  if test $# != 0; then
1621    # We chose a different compiler from the bogus one.
1622    # However, it has the same basename, so the bogon will be chosen
1623    # first if we set CC to just the basename; use the full file name.
1624    shift
1625    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1626  fi
1627fi
1628fi
1629fi
1630CC=$ac_cv_prog_CC
1631if test -n "$CC"; then
1632  echo "$as_me:$LINENO: result: $CC" >&5
1633echo "${ECHO_T}$CC" >&6
1634else
1635  echo "$as_me:$LINENO: result: no" >&5
1636echo "${ECHO_T}no" >&6
1637fi
1638
1639fi
1640if test -z "$CC"; then
1641  if test -n "$ac_tool_prefix"; then
1642  for ac_prog in cl
1643  do
1644    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_CC+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$CC"; then
1652  ac_cv_prog_CC="$CC" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668fi
1669fi
1670CC=$ac_cv_prog_CC
1671if test -n "$CC"; then
1672  echo "$as_me:$LINENO: result: $CC" >&5
1673echo "${ECHO_T}$CC" >&6
1674else
1675  echo "$as_me:$LINENO: result: no" >&5
1676echo "${ECHO_T}no" >&6
1677fi
1678
1679    test -n "$CC" && break
1680  done
1681fi
1682if test -z "$CC"; then
1683  ac_ct_CC=$CC
1684  for ac_prog in cl
1685do
1686  # Extract the first word of "$ac_prog", so it can be a program name with args.
1687set dummy $ac_prog; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691  echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693  if test -n "$ac_ct_CC"; then
1694  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  for ac_exec_ext in '' $ac_executable_extensions; do
1702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703    ac_cv_prog_ac_ct_CC="$ac_prog"
1704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705    break 2
1706  fi
1707done
1708done
1709
1710fi
1711fi
1712ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713if test -n "$ac_ct_CC"; then
1714  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715echo "${ECHO_T}$ac_ct_CC" >&6
1716else
1717  echo "$as_me:$LINENO: result: no" >&5
1718echo "${ECHO_T}no" >&6
1719fi
1720
1721  test -n "$ac_ct_CC" && break
1722done
1723
1724  CC=$ac_ct_CC
1725fi
1726
1727fi
1728
1729
1730test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1731See \`config.log' for more details." >&5
1732echo "$as_me: error: no acceptable C compiler found in \$PATH
1733See \`config.log' for more details." >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736# Provide some information about the compiler.
1737echo "$as_me:$LINENO:" \
1738     "checking for C compiler version" >&5
1739ac_compiler=`set X $ac_compile; echo $2`
1740{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1741  (eval $ac_compiler --version </dev/null >&5) 2>&5
1742  ac_status=$?
1743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744  (exit $ac_status); }
1745{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1746  (eval $ac_compiler -v </dev/null >&5) 2>&5
1747  ac_status=$?
1748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749  (exit $ac_status); }
1750{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1751  (eval $ac_compiler -V </dev/null >&5) 2>&5
1752  ac_status=$?
1753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754  (exit $ac_status); }
1755
1756cat >conftest.$ac_ext <<_ACEOF
1757/* confdefs.h.  */
1758_ACEOF
1759cat confdefs.h >>conftest.$ac_ext
1760cat >>conftest.$ac_ext <<_ACEOF
1761/* end confdefs.h.  */
1762
1763int
1764main ()
1765{
1766
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771ac_clean_files_save=$ac_clean_files
1772ac_clean_files="$ac_clean_files a.out a.exe b.out"
1773# Try to create an executable without -o first, disregard a.out.
1774# It will help us diagnose broken compilers, and finding out an intuition
1775# of exeext.
1776echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1777echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1778ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1779if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1780  (eval $ac_link_default) 2>&5
1781  ac_status=$?
1782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783  (exit $ac_status); }; then
1784  # Find the output, starting from the most likely.  This scheme is
1785# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1786# resort.
1787
1788# Be careful to initialize this variable, since it used to be cached.
1789# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1790ac_cv_exeext=
1791# b.out is created by i960 compilers.
1792for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1793do
1794  test -f "$ac_file" || continue
1795  case $ac_file in
1796    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1797	;;
1798    conftest.$ac_ext )
1799	# This is the source file.
1800	;;
1801    [ab].out )
1802	# We found the default executable, but exeext='' is most
1803	# certainly right.
1804	break;;
1805    *.* )
1806	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1807	# FIXME: I believe we export ac_cv_exeext for Libtool,
1808	# but it would be cool to find out if it's true.  Does anybody
1809	# maintain Libtool? --akim.
1810	export ac_cv_exeext
1811	break;;
1812    * )
1813	break;;
1814  esac
1815done
1816else
1817  echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1821See \`config.log' for more details." >&5
1822echo "$as_me: error: C compiler cannot create executables
1823See \`config.log' for more details." >&2;}
1824   { (exit 77); exit 77; }; }
1825fi
1826
1827ac_exeext=$ac_cv_exeext
1828echo "$as_me:$LINENO: result: $ac_file" >&5
1829echo "${ECHO_T}$ac_file" >&6
1830
1831# Check the compiler produces executables we can run.  If not, either
1832# the compiler is broken, or we cross compile.
1833echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1836# If not cross compiling, check that we can run a simple program.
1837if test "$cross_compiling" != yes; then
1838  if { ac_try='./$ac_file'
1839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840  (eval $ac_try) 2>&5
1841  ac_status=$?
1842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843  (exit $ac_status); }; }; then
1844    cross_compiling=no
1845  else
1846    if test "$cross_compiling" = maybe; then
1847	cross_compiling=yes
1848    else
1849	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'.
1851See \`config.log' for more details." >&5
1852echo "$as_me: error: cannot run C compiled programs.
1853If you meant to cross compile, use \`--host'.
1854See \`config.log' for more details." >&2;}
1855   { (exit 1); exit 1; }; }
1856    fi
1857  fi
1858fi
1859echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
1861
1862rm -f a.out a.exe conftest$ac_cv_exeext b.out
1863ac_clean_files=$ac_clean_files_save
1864# Check the compiler produces executables we can run.  If not, either
1865# the compiler is broken, or we cross compile.
1866echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1867echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1868echo "$as_me:$LINENO: result: $cross_compiling" >&5
1869echo "${ECHO_T}$cross_compiling" >&6
1870
1871echo "$as_me:$LINENO: checking for suffix of executables" >&5
1872echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1874  (eval $ac_link) 2>&5
1875  ac_status=$?
1876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877  (exit $ac_status); }; then
1878  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1879# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1880# work properly (i.e., refer to `conftest.exe'), while it won't with
1881# `rm'.
1882for ac_file in conftest.exe conftest conftest.*; do
1883  test -f "$ac_file" || continue
1884  case $ac_file in
1885    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1886    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1887	  export ac_cv_exeext
1888	  break;;
1889    * ) break;;
1890  esac
1891done
1892else
1893  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1896See \`config.log' for more details." >&2;}
1897   { (exit 1); exit 1; }; }
1898fi
1899
1900rm -f conftest$ac_cv_exeext
1901echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1902echo "${ECHO_T}$ac_cv_exeext" >&6
1903
1904rm -f conftest.$ac_ext
1905EXEEXT=$ac_cv_exeext
1906ac_exeext=$EXEEXT
1907echo "$as_me:$LINENO: checking for suffix of object files" >&5
1908echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1909if test "${ac_cv_objext+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  cat >conftest.$ac_ext <<_ACEOF
1913/* confdefs.h.  */
1914_ACEOF
1915cat confdefs.h >>conftest.$ac_ext
1916cat >>conftest.$ac_ext <<_ACEOF
1917/* end confdefs.h.  */
1918
1919int
1920main ()
1921{
1922
1923  ;
1924  return 0;
1925}
1926_ACEOF
1927rm -f conftest.o conftest.obj
1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929  (eval $ac_compile) 2>&5
1930  ac_status=$?
1931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932  (exit $ac_status); }; then
1933  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1934  case $ac_file in
1935    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1936    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1937       break;;
1938  esac
1939done
1940else
1941  echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1945See \`config.log' for more details." >&5
1946echo "$as_me: error: cannot compute suffix of object files: cannot compile
1947See \`config.log' for more details." >&2;}
1948   { (exit 1); exit 1; }; }
1949fi
1950
1951rm -f conftest.$ac_cv_objext conftest.$ac_ext
1952fi
1953echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1954echo "${ECHO_T}$ac_cv_objext" >&6
1955OBJEXT=$ac_cv_objext
1956ac_objext=$OBJEXT
1957echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1958echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1959if test "${ac_cv_c_compiler_gnu+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  cat >conftest.$ac_ext <<_ACEOF
1963/* confdefs.h.  */
1964_ACEOF
1965cat confdefs.h >>conftest.$ac_ext
1966cat >>conftest.$ac_ext <<_ACEOF
1967/* end confdefs.h.  */
1968
1969int
1970main ()
1971{
1972#ifndef __GNUC__
1973       choke me
1974#endif
1975
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980rm -f conftest.$ac_objext
1981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982  (eval $ac_compile) 2>conftest.er1
1983  ac_status=$?
1984  grep -v '^ *+' conftest.er1 >conftest.err
1985  rm -f conftest.er1
1986  cat conftest.err >&5
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); } &&
1989	 { ac_try='test -z "$ac_c_werror_flag"
1990			 || test ! -s conftest.err'
1991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992  (eval $ac_try) 2>&5
1993  ac_status=$?
1994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995  (exit $ac_status); }; } &&
1996	 { ac_try='test -s conftest.$ac_objext'
1997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1998  (eval $ac_try) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }; }; then
2002  ac_compiler_gnu=yes
2003else
2004  echo "$as_me: failed program was:" >&5
2005sed 's/^/| /' conftest.$ac_ext >&5
2006
2007ac_compiler_gnu=no
2008fi
2009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2010ac_cv_c_compiler_gnu=$ac_compiler_gnu
2011
2012fi
2013echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2014echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2015GCC=`test $ac_compiler_gnu = yes && echo yes`
2016ac_test_CFLAGS=${CFLAGS+set}
2017ac_save_CFLAGS=$CFLAGS
2018CFLAGS="-g"
2019echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2020echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2021if test "${ac_cv_prog_cc_g+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  cat >conftest.$ac_ext <<_ACEOF
2025/* confdefs.h.  */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h.  */
2030
2031int
2032main ()
2033{
2034
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039rm -f conftest.$ac_objext
2040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041  (eval $ac_compile) 2>conftest.er1
2042  ac_status=$?
2043  grep -v '^ *+' conftest.er1 >conftest.err
2044  rm -f conftest.er1
2045  cat conftest.err >&5
2046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047  (exit $ac_status); } &&
2048	 { ac_try='test -z "$ac_c_werror_flag"
2049			 || test ! -s conftest.err'
2050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051  (eval $ac_try) 2>&5
2052  ac_status=$?
2053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054  (exit $ac_status); }; } &&
2055	 { ac_try='test -s conftest.$ac_objext'
2056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057  (eval $ac_try) 2>&5
2058  ac_status=$?
2059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060  (exit $ac_status); }; }; then
2061  ac_cv_prog_cc_g=yes
2062else
2063  echo "$as_me: failed program was:" >&5
2064sed 's/^/| /' conftest.$ac_ext >&5
2065
2066ac_cv_prog_cc_g=no
2067fi
2068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2071echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2072if test "$ac_test_CFLAGS" = set; then
2073  CFLAGS=$ac_save_CFLAGS
2074elif test $ac_cv_prog_cc_g = yes; then
2075  if test "$GCC" = yes; then
2076    CFLAGS="-g -O2"
2077  else
2078    CFLAGS="-g"
2079  fi
2080else
2081  if test "$GCC" = yes; then
2082    CFLAGS="-O2"
2083  else
2084    CFLAGS=
2085  fi
2086fi
2087echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2088echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2089if test "${ac_cv_prog_cc_stdc+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  ac_cv_prog_cc_stdc=no
2093ac_save_CC=$CC
2094cat >conftest.$ac_ext <<_ACEOF
2095/* confdefs.h.  */
2096_ACEOF
2097cat confdefs.h >>conftest.$ac_ext
2098cat >>conftest.$ac_ext <<_ACEOF
2099/* end confdefs.h.  */
2100#include <stdarg.h>
2101#include <stdio.h>
2102#include <sys/types.h>
2103#include <sys/stat.h>
2104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2105struct buf { int x; };
2106FILE * (*rcsopen) (struct buf *, struct stat *, int);
2107static char *e (p, i)
2108     char **p;
2109     int i;
2110{
2111  return p[i];
2112}
2113static char *f (char * (*g) (char **, int), char **p, ...)
2114{
2115  char *s;
2116  va_list v;
2117  va_start (v,p);
2118  s = g (p, va_arg (v,int));
2119  va_end (v);
2120  return s;
2121}
2122
2123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2124   function prototypes and stuff, but not '\xHH' hex character constants.
2125   These don't provoke an error unfortunately, instead are silently treated
2126   as 'x'.  The following induces an error, until -std1 is added to get
2127   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2128   array size at least.  It's necessary to write '\x00'==0 to get something
2129   that's true only with -std1.  */
2130int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2131
2132int test (int i, double x);
2133struct s1 {int (*f) (int a);};
2134struct s2 {int (*f) (double a);};
2135int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2136int argc;
2137char **argv;
2138int
2139main ()
2140{
2141return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146# Don't try gcc -ansi; that turns off useful extensions and
2147# breaks some systems' header files.
2148# AIX			-qlanglvl=ansi
2149# Ultrix and OSF/1	-std1
2150# HP-UX 10.20 and later	-Ae
2151# HP-UX older versions	-Aa -D_HPUX_SOURCE
2152# SVR4			-Xc -D__EXTENSIONS__
2153for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2154do
2155  CC="$ac_save_CC $ac_arg"
2156  rm -f conftest.$ac_objext
2157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158  (eval $ac_compile) 2>conftest.er1
2159  ac_status=$?
2160  grep -v '^ *+' conftest.er1 >conftest.err
2161  rm -f conftest.er1
2162  cat conftest.err >&5
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); } &&
2165	 { ac_try='test -z "$ac_c_werror_flag"
2166			 || test ! -s conftest.err'
2167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168  (eval $ac_try) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }; } &&
2172	 { ac_try='test -s conftest.$ac_objext'
2173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174  (eval $ac_try) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }; }; then
2178  ac_cv_prog_cc_stdc=$ac_arg
2179break
2180else
2181  echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184fi
2185rm -f conftest.err conftest.$ac_objext
2186done
2187rm -f conftest.$ac_ext conftest.$ac_objext
2188CC=$ac_save_CC
2189
2190fi
2191
2192case "x$ac_cv_prog_cc_stdc" in
2193  x|xno)
2194    echo "$as_me:$LINENO: result: none needed" >&5
2195echo "${ECHO_T}none needed" >&6 ;;
2196  *)
2197    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2198echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2199    CC="$CC $ac_cv_prog_cc_stdc" ;;
2200esac
2201
2202# Some people use a C++ compiler to compile C.  Since we use `exit',
2203# in C++ we need to declare it.  In case someone uses the same compiler
2204# for both compiling C and C++ we need to have the C++ compiler decide
2205# the declaration of exit, since it's the most demanding environment.
2206cat >conftest.$ac_ext <<_ACEOF
2207#ifndef __cplusplus
2208  choke me
2209#endif
2210_ACEOF
2211rm -f conftest.$ac_objext
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213  (eval $ac_compile) 2>conftest.er1
2214  ac_status=$?
2215  grep -v '^ *+' conftest.er1 >conftest.err
2216  rm -f conftest.er1
2217  cat conftest.err >&5
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); } &&
2220	 { ac_try='test -z "$ac_c_werror_flag"
2221			 || test ! -s conftest.err'
2222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223  (eval $ac_try) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }; } &&
2227	 { ac_try='test -s conftest.$ac_objext'
2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229  (eval $ac_try) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; }; then
2233  for ac_declaration in \
2234   '' \
2235   'extern "C" void std::exit (int) throw (); using std::exit;' \
2236   'extern "C" void std::exit (int); using std::exit;' \
2237   'extern "C" void exit (int) throw ();' \
2238   'extern "C" void exit (int);' \
2239   'void exit (int);'
2240do
2241  cat >conftest.$ac_ext <<_ACEOF
2242/* confdefs.h.  */
2243_ACEOF
2244cat confdefs.h >>conftest.$ac_ext
2245cat >>conftest.$ac_ext <<_ACEOF
2246/* end confdefs.h.  */
2247$ac_declaration
2248#include <stdlib.h>
2249int
2250main ()
2251{
2252exit (42);
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>conftest.er1
2260  ac_status=$?
2261  grep -v '^ *+' conftest.er1 >conftest.err
2262  rm -f conftest.er1
2263  cat conftest.err >&5
2264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265  (exit $ac_status); } &&
2266	 { ac_try='test -z "$ac_c_werror_flag"
2267			 || test ! -s conftest.err'
2268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269  (eval $ac_try) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; } &&
2273	 { ac_try='test -s conftest.$ac_objext'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; }; then
2279  :
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284continue
2285fi
2286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287  cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293$ac_declaration
2294int
2295main ()
2296{
2297exit (42);
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.$ac_objext
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>conftest.er1
2305  ac_status=$?
2306  grep -v '^ *+' conftest.er1 >conftest.err
2307  rm -f conftest.er1
2308  cat conftest.err >&5
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); } &&
2311	 { ac_try='test -z "$ac_c_werror_flag"
2312			 || test ! -s conftest.err'
2313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314  (eval $ac_try) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; } &&
2318	 { ac_try='test -s conftest.$ac_objext'
2319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320  (eval $ac_try) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; }; then
2324  break
2325else
2326  echo "$as_me: failed program was:" >&5
2327sed 's/^/| /' conftest.$ac_ext >&5
2328
2329fi
2330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331done
2332rm -f conftest*
2333if test -n "$ac_declaration"; then
2334  echo '#ifdef __cplusplus' >>confdefs.h
2335  echo $ac_declaration      >>confdefs.h
2336  echo '#endif'             >>confdefs.h
2337fi
2338
2339else
2340  echo "$as_me: failed program was:" >&5
2341sed 's/^/| /' conftest.$ac_ext >&5
2342
2343fi
2344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345ac_ext=c
2346ac_cpp='$CPP $CPPFLAGS'
2347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349ac_compiler_gnu=$ac_cv_c_compiler_gnu
2350
2351
2352
2353
2354extra_rexx_libs=""
2355extra_rexx_defines=""
2356extra_incdirs=""
2357extra_libdirs=""
2358REXX_LIBS=""
2359REXX_INCLUDES=""
2360REXX_VER="unknown"
2361case "$with_rexx" in
2362	regina)               		cat >>confdefs.h <<\_ACEOF
2363#define USE_REGINA 1
2364_ACEOF
2365
2366		# Extract the first word of "regina-config", so it can be a program name with args.
2367set dummy regina-config; ac_word=$2
2368echo "$as_me:$LINENO: checking for $ac_word" >&5
2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370if test "${ac_cv_prog_regina_config+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  if test -n "$regina_config"; then
2374  ac_cv_prog_regina_config="$regina_config" # Let the user override the test.
2375else
2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377for as_dir in $PATH
2378do
2379  IFS=$as_save_IFS
2380  test -z "$as_dir" && as_dir=.
2381  for ac_exec_ext in '' $ac_executable_extensions; do
2382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383    ac_cv_prog_regina_config="yes"
2384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385    break 2
2386  fi
2387done
2388done
2389
2390  test -z "$ac_cv_prog_regina_config" && ac_cv_prog_regina_config="no"
2391fi
2392fi
2393regina_config=$ac_cv_prog_regina_config
2394if test -n "$regina_config"; then
2395  echo "$as_me:$LINENO: result: $regina_config" >&5
2396echo "${ECHO_T}$regina_config" >&6
2397else
2398  echo "$as_me:$LINENO: result: no" >&5
2399echo "${ECHO_T}no" >&6
2400fi
2401
2402		rexx_h="rexxsaa.h"
2403		rexx_l="regina"
2404		REXX_INT="Regina"
2405		REXX_TARGET="Regina"
2406		if test "$ac_cv_prog_regina_config" = yes; then
2407			REXX_INCLUDES=`regina-config --cflags`
2408			numlines=`regina-config --libs$bitflag | wc -l`
2409			if test $numlines -eq 1; then
2410				REXX_LIBS=`regina-config --libs$bitflag`
2411			else
2412				REXX_LIBS=`regina-config --libs`
2413			fi
2414			REXX_INT="Regina (using regina-config)"
2415			REXX_VER=`regina-config --version`
2416		else
2417			case "$target" in
2418				*nto-qnx*)
2419				echo "$as_me:$LINENO: checking for library containing dlopen" >&5
2420echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
2421if test "${ac_cv_search_dlopen+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  ac_func_search_save_LIBS=$LIBS
2425ac_cv_search_dlopen=no
2426cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h.  */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h.  */
2432
2433/* Override any gcc2 internal prototype to avoid an error.  */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437/* We use char because int might match the return type of a gcc2
2438   builtin and then its argument prototype would still apply.  */
2439char dlopen ();
2440int
2441main ()
2442{
2443dlopen ();
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext conftest$ac_exeext
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450  (eval $ac_link) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457	 { ac_try='test -z "$ac_c_werror_flag"
2458			 || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464	 { ac_try='test -s conftest$ac_exeext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  ac_cv_search_dlopen="none required"
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475fi
2476rm -f conftest.err conftest.$ac_objext \
2477      conftest$ac_exeext conftest.$ac_ext
2478if test "$ac_cv_search_dlopen" = no; then
2479  for ac_lib in dl; do
2480    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2481    cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h.  */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h.  */
2487
2488/* Override any gcc2 internal prototype to avoid an error.  */
2489#ifdef __cplusplus
2490extern "C"
2491#endif
2492/* We use char because int might match the return type of a gcc2
2493   builtin and then its argument prototype would still apply.  */
2494char dlopen ();
2495int
2496main ()
2497{
2498dlopen ();
2499  ;
2500  return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext conftest$ac_exeext
2504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2505  (eval $ac_link) 2>conftest.er1
2506  ac_status=$?
2507  grep -v '^ *+' conftest.er1 >conftest.err
2508  rm -f conftest.er1
2509  cat conftest.err >&5
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); } &&
2512	 { ac_try='test -z "$ac_c_werror_flag"
2513			 || test ! -s conftest.err'
2514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515  (eval $ac_try) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; } &&
2519	 { ac_try='test -s conftest$ac_exeext'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; }; then
2525  ac_cv_search_dlopen="-l$ac_lib"
2526break
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531fi
2532rm -f conftest.err conftest.$ac_objext \
2533      conftest$ac_exeext conftest.$ac_ext
2534  done
2535fi
2536LIBS=$ac_func_search_save_LIBS
2537fi
2538echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
2539echo "${ECHO_T}$ac_cv_search_dlopen" >&6
2540if test "$ac_cv_search_dlopen" != no; then
2541  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
2542
2543fi
2544
2545				;;
2546				*qnx*)
2547				;;
2548				*hp-hpux*)
2549				echo "$as_me:$LINENO: checking for library containing shl_load" >&5
2550echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
2551if test "${ac_cv_search_shl_load+set}" = set; then
2552  echo $ECHO_N "(cached) $ECHO_C" >&6
2553else
2554  ac_func_search_save_LIBS=$LIBS
2555ac_cv_search_shl_load=no
2556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h.  */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h.  */
2562
2563/* Override any gcc2 internal prototype to avoid an error.  */
2564#ifdef __cplusplus
2565extern "C"
2566#endif
2567/* We use char because int might match the return type of a gcc2
2568   builtin and then its argument prototype would still apply.  */
2569char shl_load ();
2570int
2571main ()
2572{
2573shl_load ();
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext conftest$ac_exeext
2579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580  (eval $ac_link) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest$ac_exeext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_search_shl_load="none required"
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605fi
2606rm -f conftest.err conftest.$ac_objext \
2607      conftest$ac_exeext conftest.$ac_ext
2608if test "$ac_cv_search_shl_load" = no; then
2609  for ac_lib in dld; do
2610    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2611    cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617
2618/* Override any gcc2 internal prototype to avoid an error.  */
2619#ifdef __cplusplus
2620extern "C"
2621#endif
2622/* We use char because int might match the return type of a gcc2
2623   builtin and then its argument prototype would still apply.  */
2624char shl_load ();
2625int
2626main ()
2627{
2628shl_load ();
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext conftest$ac_exeext
2634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635  (eval $ac_link) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642	 { ac_try='test -z "$ac_c_werror_flag"
2643			 || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649	 { ac_try='test -s conftest$ac_exeext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  ac_cv_search_shl_load="-l$ac_lib"
2656break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext \
2663      conftest$ac_exeext conftest.$ac_ext
2664  done
2665fi
2666LIBS=$ac_func_search_save_LIBS
2667fi
2668echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
2669echo "${ECHO_T}$ac_cv_search_shl_load" >&6
2670if test "$ac_cv_search_shl_load" != no; then
2671  test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
2672
2673fi
2674
2675				;;
2676				*)
2677			echo "$as_me:$LINENO: checking for library containing dlopen" >&5
2678echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
2679if test "${ac_cv_search_dlopen+set}" = set; then
2680  echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682  ac_func_search_save_LIBS=$LIBS
2683ac_cv_search_dlopen=no
2684cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690
2691/* Override any gcc2 internal prototype to avoid an error.  */
2692#ifdef __cplusplus
2693extern "C"
2694#endif
2695/* We use char because int might match the return type of a gcc2
2696   builtin and then its argument prototype would still apply.  */
2697char dlopen ();
2698int
2699main ()
2700{
2701dlopen ();
2702  ;
2703  return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext conftest$ac_exeext
2707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708  (eval $ac_link) 2>conftest.er1
2709  ac_status=$?
2710  grep -v '^ *+' conftest.er1 >conftest.err
2711  rm -f conftest.er1
2712  cat conftest.err >&5
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); } &&
2715	 { ac_try='test -z "$ac_c_werror_flag"
2716			 || test ! -s conftest.err'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; } &&
2722	 { ac_try='test -s conftest$ac_exeext'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; }; then
2728  ac_cv_search_dlopen="none required"
2729else
2730  echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext \
2735      conftest$ac_exeext conftest.$ac_ext
2736if test "$ac_cv_search_dlopen" = no; then
2737  for ac_lib in dl; do
2738    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2739    cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h.  */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h.  */
2745
2746/* Override any gcc2 internal prototype to avoid an error.  */
2747#ifdef __cplusplus
2748extern "C"
2749#endif
2750/* We use char because int might match the return type of a gcc2
2751   builtin and then its argument prototype would still apply.  */
2752char dlopen ();
2753int
2754main ()
2755{
2756dlopen ();
2757  ;
2758  return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext conftest$ac_exeext
2762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2763  (eval $ac_link) 2>conftest.er1
2764  ac_status=$?
2765  grep -v '^ *+' conftest.er1 >conftest.err
2766  rm -f conftest.er1
2767  cat conftest.err >&5
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); } &&
2770	 { ac_try='test -z "$ac_c_werror_flag"
2771			 || test ! -s conftest.err'
2772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773  (eval $ac_try) 2>&5
2774  ac_status=$?
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); }; } &&
2777	 { ac_try='test -s conftest$ac_exeext'
2778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779  (eval $ac_try) 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; }; then
2783  ac_cv_search_dlopen="-l$ac_lib"
2784break
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext \
2791      conftest$ac_exeext conftest.$ac_ext
2792  done
2793fi
2794LIBS=$ac_func_search_save_LIBS
2795fi
2796echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
2797echo "${ECHO_T}$ac_cv_search_dlopen" >&6
2798if test "$ac_cv_search_dlopen" != no; then
2799  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
2800
2801fi
2802
2803				;;
2804			esac
2805			echo "$as_me:$LINENO: checking for library containing crypt" >&5
2806echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
2807if test "${ac_cv_search_crypt+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  ac_func_search_save_LIBS=$LIBS
2811ac_cv_search_crypt=no
2812cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h.  */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h.  */
2818
2819/* Override any gcc2 internal prototype to avoid an error.  */
2820#ifdef __cplusplus
2821extern "C"
2822#endif
2823/* We use char because int might match the return type of a gcc2
2824   builtin and then its argument prototype would still apply.  */
2825char crypt ();
2826int
2827main ()
2828{
2829crypt ();
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext conftest$ac_exeext
2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836  (eval $ac_link) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843	 { ac_try='test -z "$ac_c_werror_flag"
2844			 || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850	 { ac_try='test -s conftest$ac_exeext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  ac_cv_search_crypt="none required"
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861fi
2862rm -f conftest.err conftest.$ac_objext \
2863      conftest$ac_exeext conftest.$ac_ext
2864if test "$ac_cv_search_crypt" = no; then
2865  for ac_lib in crypt; do
2866    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2867    cat >conftest.$ac_ext <<_ACEOF
2868/* confdefs.h.  */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h.  */
2873
2874/* Override any gcc2 internal prototype to avoid an error.  */
2875#ifdef __cplusplus
2876extern "C"
2877#endif
2878/* We use char because int might match the return type of a gcc2
2879   builtin and then its argument prototype would still apply.  */
2880char crypt ();
2881int
2882main ()
2883{
2884crypt ();
2885  ;
2886  return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext conftest$ac_exeext
2890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2891  (eval $ac_link) 2>conftest.er1
2892  ac_status=$?
2893  grep -v '^ *+' conftest.er1 >conftest.err
2894  rm -f conftest.er1
2895  cat conftest.err >&5
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); } &&
2898	 { ac_try='test -z "$ac_c_werror_flag"
2899			 || test ! -s conftest.err'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; } &&
2905	 { ac_try='test -s conftest$ac_exeext'
2906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907  (eval $ac_try) 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); }; }; then
2911  ac_cv_search_crypt="-l$ac_lib"
2912break
2913else
2914  echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917fi
2918rm -f conftest.err conftest.$ac_objext \
2919      conftest$ac_exeext conftest.$ac_ext
2920  done
2921fi
2922LIBS=$ac_func_search_save_LIBS
2923fi
2924echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
2925echo "${ECHO_T}$ac_cv_search_crypt" >&6
2926if test "$ac_cv_search_crypt" != no; then
2927  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
2928
2929fi
2930
2931			for ac_prog in flex lex
2932do
2933  # Extract the first word of "$ac_prog", so it can be a program name with args.
2934set dummy $ac_prog; ac_word=$2
2935echo "$as_me:$LINENO: checking for $ac_word" >&5
2936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937if test "${ac_cv_prog_LEX+set}" = set; then
2938  echo $ECHO_N "(cached) $ECHO_C" >&6
2939else
2940  if test -n "$LEX"; then
2941  ac_cv_prog_LEX="$LEX" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948  for ac_exec_ext in '' $ac_executable_extensions; do
2949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950    ac_cv_prog_LEX="$ac_prog"
2951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955done
2956
2957fi
2958fi
2959LEX=$ac_cv_prog_LEX
2960if test -n "$LEX"; then
2961  echo "$as_me:$LINENO: result: $LEX" >&5
2962echo "${ECHO_T}$LEX" >&6
2963else
2964  echo "$as_me:$LINENO: result: no" >&5
2965echo "${ECHO_T}no" >&6
2966fi
2967
2968  test -n "$LEX" && break
2969done
2970test -n "$LEX" || LEX=":"
2971
2972if test -z "$LEXLIB"
2973then
2974  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2975echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2976if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2977  echo $ECHO_N "(cached) $ECHO_C" >&6
2978else
2979  ac_check_lib_save_LIBS=$LIBS
2980LIBS="-lfl  $LIBS"
2981cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987
2988/* Override any gcc2 internal prototype to avoid an error.  */
2989#ifdef __cplusplus
2990extern "C"
2991#endif
2992/* We use char because int might match the return type of a gcc2
2993   builtin and then its argument prototype would still apply.  */
2994char yywrap ();
2995int
2996main ()
2997{
2998yywrap ();
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext conftest$ac_exeext
3004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005  (eval $ac_link) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012	 { ac_try='test -z "$ac_c_werror_flag"
3013			 || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019	 { ac_try='test -s conftest$ac_exeext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  ac_cv_lib_fl_yywrap=yes
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030ac_cv_lib_fl_yywrap=no
3031fi
3032rm -f conftest.err conftest.$ac_objext \
3033      conftest$ac_exeext conftest.$ac_ext
3034LIBS=$ac_check_lib_save_LIBS
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3037echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3038if test $ac_cv_lib_fl_yywrap = yes; then
3039  LEXLIB="-lfl"
3040else
3041  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3042echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3043if test "${ac_cv_lib_l_yywrap+set}" = set; then
3044  echo $ECHO_N "(cached) $ECHO_C" >&6
3045else
3046  ac_check_lib_save_LIBS=$LIBS
3047LIBS="-ll  $LIBS"
3048cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055/* Override any gcc2 internal prototype to avoid an error.  */
3056#ifdef __cplusplus
3057extern "C"
3058#endif
3059/* We use char because int might match the return type of a gcc2
3060   builtin and then its argument prototype would still apply.  */
3061char yywrap ();
3062int
3063main ()
3064{
3065yywrap ();
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext conftest$ac_exeext
3071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072  (eval $ac_link) 2>conftest.er1
3073  ac_status=$?
3074  grep -v '^ *+' conftest.er1 >conftest.err
3075  rm -f conftest.er1
3076  cat conftest.err >&5
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); } &&
3079	 { ac_try='test -z "$ac_c_werror_flag"
3080			 || test ! -s conftest.err'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; } &&
3086	 { ac_try='test -s conftest$ac_exeext'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; }; then
3092  ac_cv_lib_l_yywrap=yes
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097ac_cv_lib_l_yywrap=no
3098fi
3099rm -f conftest.err conftest.$ac_objext \
3100      conftest$ac_exeext conftest.$ac_ext
3101LIBS=$ac_check_lib_save_LIBS
3102fi
3103echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3104echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3105if test $ac_cv_lib_l_yywrap = yes; then
3106  LEXLIB="-ll"
3107fi
3108
3109fi
3110
3111fi
3112
3113if test "x$LEX" != "x:"; then
3114  echo "$as_me:$LINENO: checking lex output file root" >&5
3115echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3116if test "${ac_cv_prog_lex_root+set}" = set; then
3117  echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119  # The minimal lex program is just a single line: %%.  But some broken lexes
3120# (Solaris, I think it was) want two %% lines, so accommodate them.
3121cat >conftest.l <<_ACEOF
3122%%
3123%%
3124_ACEOF
3125{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3126  (eval $LEX conftest.l) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }
3130if test -f lex.yy.c; then
3131  ac_cv_prog_lex_root=lex.yy
3132elif test -f lexyy.c; then
3133  ac_cv_prog_lex_root=lexyy
3134else
3135  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3136echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3137   { (exit 1); exit 1; }; }
3138fi
3139fi
3140echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3141echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3142rm -f conftest.l
3143LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3144
3145echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3146echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3147if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3148  echo $ECHO_N "(cached) $ECHO_C" >&6
3149else
3150  # POSIX says lex can declare yytext either as a pointer or an array; the
3151# default is implementation-dependent. Figure out which it is, since
3152# not all implementations provide the %pointer and %array declarations.
3153ac_cv_prog_lex_yytext_pointer=no
3154echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3155ac_save_LIBS=$LIBS
3156LIBS="$LIBS $LEXLIB"
3157cat >conftest.$ac_ext <<_ACEOF
3158`cat $LEX_OUTPUT_ROOT.c`
3159_ACEOF
3160rm -f conftest.$ac_objext conftest$ac_exeext
3161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3162  (eval $ac_link) 2>conftest.er1
3163  ac_status=$?
3164  grep -v '^ *+' conftest.er1 >conftest.err
3165  rm -f conftest.er1
3166  cat conftest.err >&5
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); } &&
3169	 { ac_try='test -z "$ac_c_werror_flag"
3170			 || test ! -s conftest.err'
3171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172  (eval $ac_try) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; } &&
3176	 { ac_try='test -s conftest$ac_exeext'
3177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178  (eval $ac_try) 2>&5
3179  ac_status=$?
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); }; }; then
3182  ac_cv_prog_lex_yytext_pointer=yes
3183else
3184  echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187fi
3188rm -f conftest.err conftest.$ac_objext \
3189      conftest$ac_exeext conftest.$ac_ext
3190LIBS=$ac_save_LIBS
3191rm -f "${LEX_OUTPUT_ROOT}.c"
3192
3193fi
3194echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3195echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3196if test $ac_cv_prog_lex_yytext_pointer = yes; then
3197
3198cat >>confdefs.h <<\_ACEOF
3199#define YYTEXT_POINTER 1
3200_ACEOF
3201
3202fi
3203
3204fi
3205		fi
3206		case "$target" in
3207			*freebsd*)
3208
3209				REXX_LIBS="`echo ${REXX_LIBS} | sed -e s/-pthread//`"
3210				;;
3211			*)
3212				;;
3213		esac
3214	;;
3215	rexxtrans)            		cat >>confdefs.h <<\_ACEOF
3216#define USE_REXXTRANS 1
3217_ACEOF
3218
3219		# Extract the first word of "rexxtrans-config", so it can be a program name with args.
3220set dummy rexxtrans-config; ac_word=$2
3221echo "$as_me:$LINENO: checking for $ac_word" >&5
3222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223if test "${ac_cv_prog_rexxtrans_config+set}" = set; then
3224  echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226  if test -n "$rexxtrans_config"; then
3227  ac_cv_prog_rexxtrans_config="$rexxtrans_config" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232  IFS=$as_save_IFS
3233  test -z "$as_dir" && as_dir=.
3234  for ac_exec_ext in '' $ac_executable_extensions; do
3235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236    ac_cv_prog_rexxtrans_config="yes"
3237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238    break 2
3239  fi
3240done
3241done
3242
3243  test -z "$ac_cv_prog_rexxtrans_config" && ac_cv_prog_rexxtrans_config="no"
3244fi
3245fi
3246rexxtrans_config=$ac_cv_prog_rexxtrans_config
3247if test -n "$rexxtrans_config"; then
3248  echo "$as_me:$LINENO: result: $rexxtrans_config" >&5
3249echo "${ECHO_T}$rexxtrans_config" >&6
3250else
3251  echo "$as_me:$LINENO: result: no" >&5
3252echo "${ECHO_T}no" >&6
3253fi
3254
3255		rexx_h="rexxtrans.h"
3256		rexx_l="rexxtrans"
3257		REXX_INT="Rexx/Trans"
3258		REXX_TARGET="RexxTrans"
3259		if test "$ac_cv_prog_rexxtrans_config" = yes; then
3260			REXX_INCLUDES=`rexxtrans-config --cflags`
3261			numlines=`rexxtrans-config --libs$bitflag | wc -l`
3262			if test $numlines -eq 1; then
3263				REXX_LIBS=`rexxtrans-config --libs$bitflag`
3264			else
3265				REXX_LIBS=`rexxtrans-config --libs`
3266			fi
3267			REXX_INT="Rexx/Trans (using rexxtrans-config)"
3268			REXX_VER=`rexxtrans-config --version`
3269		else
3270			echo "$as_me:$LINENO: checking for library containing dlopen" >&5
3271echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
3272if test "${ac_cv_search_dlopen+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  ac_func_search_save_LIBS=$LIBS
3276ac_cv_search_dlopen=no
3277cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h.  */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h.  */
3283
3284/* Override any gcc2 internal prototype to avoid an error.  */
3285#ifdef __cplusplus
3286extern "C"
3287#endif
3288/* We use char because int might match the return type of a gcc2
3289   builtin and then its argument prototype would still apply.  */
3290char dlopen ();
3291int
3292main ()
3293{
3294dlopen ();
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext conftest$ac_exeext
3300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3301  (eval $ac_link) 2>conftest.er1
3302  ac_status=$?
3303  grep -v '^ *+' conftest.er1 >conftest.err
3304  rm -f conftest.er1
3305  cat conftest.err >&5
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); } &&
3308	 { ac_try='test -z "$ac_c_werror_flag"
3309			 || test ! -s conftest.err'
3310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311  (eval $ac_try) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }; } &&
3315	 { ac_try='test -s conftest$ac_exeext'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; }; then
3321  ac_cv_search_dlopen="none required"
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326fi
3327rm -f conftest.err conftest.$ac_objext \
3328      conftest$ac_exeext conftest.$ac_ext
3329if test "$ac_cv_search_dlopen" = no; then
3330  for ac_lib in dl; do
3331    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3332    cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338
3339/* Override any gcc2 internal prototype to avoid an error.  */
3340#ifdef __cplusplus
3341extern "C"
3342#endif
3343/* We use char because int might match the return type of a gcc2
3344   builtin and then its argument prototype would still apply.  */
3345char dlopen ();
3346int
3347main ()
3348{
3349dlopen ();
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354rm -f conftest.$ac_objext conftest$ac_exeext
3355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3356  (eval $ac_link) 2>conftest.er1
3357  ac_status=$?
3358  grep -v '^ *+' conftest.er1 >conftest.err
3359  rm -f conftest.er1
3360  cat conftest.err >&5
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); } &&
3363	 { ac_try='test -z "$ac_c_werror_flag"
3364			 || test ! -s conftest.err'
3365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; } &&
3370	 { ac_try='test -s conftest$ac_exeext'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; }; then
3376  ac_cv_search_dlopen="-l$ac_lib"
3377break
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382fi
3383rm -f conftest.err conftest.$ac_objext \
3384      conftest$ac_exeext conftest.$ac_ext
3385  done
3386fi
3387LIBS=$ac_func_search_save_LIBS
3388fi
3389echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
3390echo "${ECHO_T}$ac_cv_search_dlopen" >&6
3391if test "$ac_cv_search_dlopen" != no; then
3392  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
3393
3394fi
3395
3396		fi
3397	;;
3398	objrexx | orexx | objectrexx)              	with_rexx="objrexx"
3399		cat >>confdefs.h <<\_ACEOF
3400#define USE_OREXX 1
3401_ACEOF
3402
3403		rexx_h="rexx.h"
3404		rexx_l="rexxapi"
3405		REXX_INT="Object Rexx"
3406		REXX_TARGET="ObjectRexx"
3407		extra_rexx_libs="-lrexx"
3408		extra_incdirs="/opt/orexx /usr/local/orexx /usr/lpp/orexx/include"
3409		extra_libdirs="/opt/orexx/lib /usr/local/orexx/lib /usr/lpp/orexx/lib"
3410		case "$target" in
3411			*linux*)
3412			extra_rexx_defines="-DLINUX"
3413			;;
3414			*)
3415			;;
3416		esac
3417	echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
3418echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
3419if test "${ac_cv_search_pthread_create+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  ac_func_search_save_LIBS=$LIBS
3423ac_cv_search_pthread_create=no
3424cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h.  */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h.  */
3430
3431/* Override any gcc2 internal prototype to avoid an error.  */
3432#ifdef __cplusplus
3433extern "C"
3434#endif
3435/* We use char because int might match the return type of a gcc2
3436   builtin and then its argument prototype would still apply.  */
3437char pthread_create ();
3438int
3439main ()
3440{
3441pthread_create ();
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446rm -f conftest.$ac_objext conftest$ac_exeext
3447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448  (eval $ac_link) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455	 { ac_try='test -z "$ac_c_werror_flag"
3456			 || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462	 { ac_try='test -s conftest$ac_exeext'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; }; then
3468  ac_cv_search_pthread_create="none required"
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473fi
3474rm -f conftest.err conftest.$ac_objext \
3475      conftest$ac_exeext conftest.$ac_ext
3476if test "$ac_cv_search_pthread_create" = no; then
3477  for ac_lib in pthread pthreads thread; do
3478    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3479    cat >conftest.$ac_ext <<_ACEOF
3480/* confdefs.h.  */
3481_ACEOF
3482cat confdefs.h >>conftest.$ac_ext
3483cat >>conftest.$ac_ext <<_ACEOF
3484/* end confdefs.h.  */
3485
3486/* Override any gcc2 internal prototype to avoid an error.  */
3487#ifdef __cplusplus
3488extern "C"
3489#endif
3490/* We use char because int might match the return type of a gcc2
3491   builtin and then its argument prototype would still apply.  */
3492char pthread_create ();
3493int
3494main ()
3495{
3496pthread_create ();
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503  (eval $ac_link) 2>conftest.er1
3504  ac_status=$?
3505  grep -v '^ *+' conftest.er1 >conftest.err
3506  rm -f conftest.er1
3507  cat conftest.err >&5
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510	 { ac_try='test -z "$ac_c_werror_flag"
3511			 || test ! -s conftest.err'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; } &&
3517	 { ac_try='test -s conftest$ac_exeext'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; }; then
3523  ac_cv_search_pthread_create="-l$ac_lib"
3524break
3525else
3526  echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529fi
3530rm -f conftest.err conftest.$ac_objext \
3531      conftest$ac_exeext conftest.$ac_ext
3532  done
3533fi
3534LIBS=$ac_func_search_save_LIBS
3535fi
3536echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
3537echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
3538if test "$ac_cv_search_pthread_create" != no; then
3539  test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
3540
3541fi
3542
3543	;;
3544	oorexx)              	with_rexx="oorexx"
3545		cat >>confdefs.h <<\_ACEOF
3546#define USE_OOREXX 1
3547_ACEOF
3548 		# Extract the first word of "oorexx-config", so it can be a program name with args.
3549set dummy oorexx-config; ac_word=$2
3550echo "$as_me:$LINENO: checking for $ac_word" >&5
3551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552if test "${ac_cv_prog_oorexx_config+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  if test -n "$oorexx_config"; then
3556  ac_cv_prog_oorexx_config="$oorexx_config" # Let the user override the test.
3557else
3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561  IFS=$as_save_IFS
3562  test -z "$as_dir" && as_dir=.
3563  for ac_exec_ext in '' $ac_executable_extensions; do
3564  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565    ac_cv_prog_oorexx_config="yes"
3566    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567    break 2
3568  fi
3569done
3570done
3571
3572  test -z "$ac_cv_prog_oorexx_config" && ac_cv_prog_oorexx_config="no"
3573fi
3574fi
3575oorexx_config=$ac_cv_prog_oorexx_config
3576if test -n "$oorexx_config"; then
3577  echo "$as_me:$LINENO: result: $oorexx_config" >&5
3578echo "${ECHO_T}$oorexx_config" >&6
3579else
3580  echo "$as_me:$LINENO: result: no" >&5
3581echo "${ECHO_T}no" >&6
3582fi
3583
3584		rexx_h="rexx.h"
3585		rexx_l="rexxapi"
3586		REXX_INT="Open Object Rexx"
3587		REXX_TARGET="ooRexx"
3588		if test "$ac_cv_prog_oorexx_config" = yes; then
3589			REXX_INCLUDES=`oorexx-config --cflags`
3590			REXX_LIBS=`oorexx-config --libs`
3591			REXX_INT="ooRexx (using oorexx-config)"
3592			REXX_VER=`oorexx-config --version`
3593		else
3594			extra_rexx_libs="-lrexx"
3595			extra_incdirs="/usr/local/include/ooRexx /usr/include/ooRexx /opt/ooRexx/include"
3596			extra_libdirs="/usr/local/lib/ooRexx /usr/lib/ooRexx /opt/ooRexx/lib/ooRexx"
3597			case "$target" in
3598				*linux*)
3599				extra_rexx_defines="-DLINUX"
3600				;;
3601				*)
3602				;;
3603			esac
3604		fi
3605	echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
3606echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
3607if test "${ac_cv_search_pthread_create+set}" = set; then
3608  echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610  ac_func_search_save_LIBS=$LIBS
3611ac_cv_search_pthread_create=no
3612cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h.  */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h.  */
3618
3619/* Override any gcc2 internal prototype to avoid an error.  */
3620#ifdef __cplusplus
3621extern "C"
3622#endif
3623/* We use char because int might match the return type of a gcc2
3624   builtin and then its argument prototype would still apply.  */
3625char pthread_create ();
3626int
3627main ()
3628{
3629pthread_create ();
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext conftest$ac_exeext
3635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636  (eval $ac_link) 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643	 { ac_try='test -z "$ac_c_werror_flag"
3644			 || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650	 { ac_try='test -s conftest$ac_exeext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  ac_cv_search_pthread_create="none required"
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661fi
3662rm -f conftest.err conftest.$ac_objext \
3663      conftest$ac_exeext conftest.$ac_ext
3664if test "$ac_cv_search_pthread_create" = no; then
3665  for ac_lib in pthread pthreads thread; do
3666    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3667    cat >conftest.$ac_ext <<_ACEOF
3668/* confdefs.h.  */
3669_ACEOF
3670cat confdefs.h >>conftest.$ac_ext
3671cat >>conftest.$ac_ext <<_ACEOF
3672/* end confdefs.h.  */
3673
3674/* Override any gcc2 internal prototype to avoid an error.  */
3675#ifdef __cplusplus
3676extern "C"
3677#endif
3678/* We use char because int might match the return type of a gcc2
3679   builtin and then its argument prototype would still apply.  */
3680char pthread_create ();
3681int
3682main ()
3683{
3684pthread_create ();
3685  ;
3686  return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext conftest$ac_exeext
3690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3691  (eval $ac_link) 2>conftest.er1
3692  ac_status=$?
3693  grep -v '^ *+' conftest.er1 >conftest.err
3694  rm -f conftest.er1
3695  cat conftest.err >&5
3696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697  (exit $ac_status); } &&
3698	 { ac_try='test -z "$ac_c_werror_flag"
3699			 || test ! -s conftest.err'
3700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701  (eval $ac_try) 2>&5
3702  ac_status=$?
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); }; } &&
3705	 { ac_try='test -s conftest$ac_exeext'
3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707  (eval $ac_try) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }; }; then
3711  ac_cv_search_pthread_create="-l$ac_lib"
3712break
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717fi
3718rm -f conftest.err conftest.$ac_objext \
3719      conftest$ac_exeext conftest.$ac_ext
3720  done
3721fi
3722LIBS=$ac_func_search_save_LIBS
3723fi
3724echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
3725echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
3726if test "$ac_cv_search_pthread_create" != no; then
3727  test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
3728
3729fi
3730
3731	;;
3732	rexximc)              		cat >>confdefs.h <<\_ACEOF
3733#define USE_REXXIMC 1
3734_ACEOF
3735
3736		rexx_h="rexxsaa.h"
3737		rexx_l="rexx"
3738		REXX_INT="REXX/imc"
3739		REXX_TARGET="REXXimc"
3740		echo "$as_me:$LINENO: checking for library containing dlopen" >&5
3741echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
3742if test "${ac_cv_search_dlopen+set}" = set; then
3743  echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745  ac_func_search_save_LIBS=$LIBS
3746ac_cv_search_dlopen=no
3747cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h.  */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h.  */
3753
3754/* Override any gcc2 internal prototype to avoid an error.  */
3755#ifdef __cplusplus
3756extern "C"
3757#endif
3758/* We use char because int might match the return type of a gcc2
3759   builtin and then its argument prototype would still apply.  */
3760char dlopen ();
3761int
3762main ()
3763{
3764dlopen ();
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769rm -f conftest.$ac_objext conftest$ac_exeext
3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771  (eval $ac_link) 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } &&
3778	 { ac_try='test -z "$ac_c_werror_flag"
3779			 || test ! -s conftest.err'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; } &&
3785	 { ac_try='test -s conftest$ac_exeext'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; }; then
3791  ac_cv_search_dlopen="none required"
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796fi
3797rm -f conftest.err conftest.$ac_objext \
3798      conftest$ac_exeext conftest.$ac_ext
3799if test "$ac_cv_search_dlopen" = no; then
3800  for ac_lib in dl; do
3801    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3802    cat >conftest.$ac_ext <<_ACEOF
3803/* confdefs.h.  */
3804_ACEOF
3805cat confdefs.h >>conftest.$ac_ext
3806cat >>conftest.$ac_ext <<_ACEOF
3807/* end confdefs.h.  */
3808
3809/* Override any gcc2 internal prototype to avoid an error.  */
3810#ifdef __cplusplus
3811extern "C"
3812#endif
3813/* We use char because int might match the return type of a gcc2
3814   builtin and then its argument prototype would still apply.  */
3815char dlopen ();
3816int
3817main ()
3818{
3819dlopen ();
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826  (eval $ac_link) 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833	 { ac_try='test -z "$ac_c_werror_flag"
3834			 || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840	 { ac_try='test -s conftest$ac_exeext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  ac_cv_search_dlopen="-l$ac_lib"
3847break
3848else
3849  echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852fi
3853rm -f conftest.err conftest.$ac_objext \
3854      conftest$ac_exeext conftest.$ac_ext
3855  done
3856fi
3857LIBS=$ac_func_search_save_LIBS
3858fi
3859echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
3860echo "${ECHO_T}$ac_cv_search_dlopen" >&6
3861if test "$ac_cv_search_dlopen" != no; then
3862  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
3863
3864fi
3865
3866	;;
3867	rexx6000)             		if test "$with_rexx6000" = yes ; then
3868		case "$target" in
3869			*aix*)
3870				;;
3871			*)
3872					{ { echo "$as_me:$LINENO: error: REXX/6000 support only available on AIX; cannot configure" >&5
3873echo "$as_me: error: REXX/6000 support only available on AIX; cannot configure" >&2;}
3874   { (exit 1); exit 1; }; }
3875					;;
3876		esac
3877	fi
3878		cat >>confdefs.h <<\_ACEOF
3879#define USE_REXX6000 1
3880_ACEOF
3881
3882		rexx_h="rexxtype.h"
3883		rexx_l="rexx"
3884		REXX_INT="REXX/6000"
3885		REXX_TARGET="REXX6000"
3886	;;
3887	unirexx)              		cat >>confdefs.h <<\_ACEOF
3888#define USE_UNIREXX 1
3889_ACEOF
3890
3891		rexx_h="rexxsaa.h"
3892		rexx_l="rx"
3893		REXX_INT="uni-REXX"
3894		REXX_TARGET="uni-REXX"
3895		echo "$as_me:$LINENO: checking for library containing dlopen" >&5
3896echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
3897if test "${ac_cv_search_dlopen+set}" = set; then
3898  echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900  ac_func_search_save_LIBS=$LIBS
3901ac_cv_search_dlopen=no
3902cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h.  */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h.  */
3908
3909/* Override any gcc2 internal prototype to avoid an error.  */
3910#ifdef __cplusplus
3911extern "C"
3912#endif
3913/* We use char because int might match the return type of a gcc2
3914   builtin and then its argument prototype would still apply.  */
3915char dlopen ();
3916int
3917main ()
3918{
3919dlopen ();
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext conftest$ac_exeext
3925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926  (eval $ac_link) 2>conftest.er1
3927  ac_status=$?
3928  grep -v '^ *+' conftest.er1 >conftest.err
3929  rm -f conftest.er1
3930  cat conftest.err >&5
3931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932  (exit $ac_status); } &&
3933	 { ac_try='test -z "$ac_c_werror_flag"
3934			 || test ! -s conftest.err'
3935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936  (eval $ac_try) 2>&5
3937  ac_status=$?
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); }; } &&
3940	 { ac_try='test -s conftest$ac_exeext'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; }; then
3946  ac_cv_search_dlopen="none required"
3947else
3948  echo "$as_me: failed program was:" >&5
3949sed 's/^/| /' conftest.$ac_ext >&5
3950
3951fi
3952rm -f conftest.err conftest.$ac_objext \
3953      conftest$ac_exeext conftest.$ac_ext
3954if test "$ac_cv_search_dlopen" = no; then
3955  for ac_lib in dl; do
3956    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3957    cat >conftest.$ac_ext <<_ACEOF
3958/* confdefs.h.  */
3959_ACEOF
3960cat confdefs.h >>conftest.$ac_ext
3961cat >>conftest.$ac_ext <<_ACEOF
3962/* end confdefs.h.  */
3963
3964/* Override any gcc2 internal prototype to avoid an error.  */
3965#ifdef __cplusplus
3966extern "C"
3967#endif
3968/* We use char because int might match the return type of a gcc2
3969   builtin and then its argument prototype would still apply.  */
3970char dlopen ();
3971int
3972main ()
3973{
3974dlopen ();
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981  (eval $ac_link) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988	 { ac_try='test -z "$ac_c_werror_flag"
3989			 || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995	 { ac_try='test -s conftest$ac_exeext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  ac_cv_search_dlopen="-l$ac_lib"
4002break
4003else
4004  echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007fi
4008rm -f conftest.err conftest.$ac_objext \
4009      conftest$ac_exeext conftest.$ac_ext
4010  done
4011fi
4012LIBS=$ac_func_search_save_LIBS
4013fi
4014echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
4015echo "${ECHO_T}$ac_cv_search_dlopen" >&6
4016if test "$ac_cv_search_dlopen" != no; then
4017  test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
4018
4019fi
4020
4021	;;
4022	none)                 		cat >>confdefs.h <<\_ACEOF
4023#define NOREXX 1
4024_ACEOF
4025
4026		rexx_h=""
4027		rexx_l=""
4028		REXX_INT="No Rexx Support"
4029		REXX_TARGET=""
4030	;;
4031	*)
4032		{ { echo "$as_me:$LINENO: error: No Rexx interpreter specified with --with-rexx=int : must be one of: regina rexximc oorexx objrexx unirexx rexx6000 rexxtrans none" >&5
4033echo "$as_me: error: No Rexx interpreter specified with --with-rexx=int : must be one of: regina rexximc oorexx objrexx unirexx rexx6000 rexxtrans none" >&2;}
4034   { (exit 1); exit 1; }; }
4035	;;
4036esac
4037
4038
4039
4040if test "xx$rexx_h" != "xx" -a "x$REXX_INCLUDES" = "x"; then
4041	echo "$as_me:$LINENO: checking for location of Rexx header file: $rexx_h" >&5
4042echo $ECHO_N "checking for location of Rexx header file: $rexx_h... $ECHO_C" >&6
4043	mh_rexx_inc_dir=""
4044	mh_inc_dirs="\
4045	    ${REXXINCDIR}             \
4046	    ${extra_incdirs}          \
4047	    ${HOME}/include           \
4048	    ${HOME}/${MACHTYPE}/include     \
4049	    /usr/local/include        \
4050	    /usr/contrib/include      \
4051	    /opt/include              \
4052	    /opt/sfw/include          \
4053	    /sw/include               \
4054	    /usr/include              \
4055	    /usr/unsupported/include"
4056	if test "$with_rexxincdir" != no ; then
4057		mh_inc_dirs="$with_rexxincdir $mh_inc_dirs"
4058	fi
4059	for ac_dir in $mh_inc_dirs ; do
4060	  if test -r $ac_dir/$rexx_h; then
4061	    mh_rexx_inc_dir=$ac_dir
4062	    break
4063	  fi
4064	done
4065	if test "x$mh_rexx_inc_dir" != "x" ; then
4066		REXX_INCLUDES="-I$mh_rexx_inc_dir $extra_rexx_defines"
4067		echo "$as_me:$LINENO: result: found in $mh_rexx_inc_dir" >&5
4068echo "${ECHO_T}found in $mh_rexx_inc_dir" >&6
4069	else
4070		{ { echo "$as_me:$LINENO: error: Cannot find Rexx header file: $rexx_h; cannot configure" >&5
4071echo "$as_me: error: Cannot find Rexx header file: $rexx_h; cannot configure" >&2;}
4072   { (exit 1); exit 1; }; }
4073	fi
4074fi
4075
4076
4077if test "xx$rexx_h" != "xx" -a "x$REXX_LIBS" = "x"; then
4078	echo "$as_me:$LINENO: checking for location of Rexx library file: $rexx_l" >&5
4079echo $ECHO_N "checking for location of Rexx library file: $rexx_l... $ECHO_C" >&6
4080	mh_rexx_lib_dir=""
4081	mh_lib_dirs="\
4082	    ${REXXLIBDIR}             \
4083	    ${extra_libdirs}          \
4084	    ${HOME}/lib64             \
4085	    ${HOME}/lib32             \
4086	    ${HOME}/lib               \
4087	    ${HOME}/${MACHTYPE}/lib64 \
4088	    ${HOME}/${MACHTYPE}/lib32 \
4089	    ${HOME}/${MACHTYPE}/lib   \
4090	    /usr/local/lib64          \
4091	    /usr/local/lib32          \
4092	    /usr/local/lib            \
4093	    /usr/contrib/lib          \
4094	    /opt/lib64                \
4095	    /opt/lib32                \
4096	    /opt/lib                  \
4097	    /opt/sfw/lib              \
4098	    /sw/lib                   \
4099	    /usr/lib64                \
4100	    /usr/lib32                \
4101	    /usr/lib                  \
4102	    /usr/unsupported/lib"
4103	if test "$with_rexxlibdir" != no ; then
4104		mh_lib_dirs="$with_rexxlibdir $mh_lib_dirs"
4105	fi
4106	for ac_dir in $mh_lib_dirs ; do
4107		for mh_ext in lib${rexx_l}.a lib${rexx_l}.so lib${rexx_l}.sl ${rexx_l}.lib lib${rexx_l}.dylib; do
4108		  if test -r $ac_dir/$mh_ext; then
4109		     mh_rexx_lib_dir=$ac_dir
4110		   break 2
4111		  fi
4112		done
4113	done
4114	if test "x$mh_rexx_lib_dir" != "x" ; then
4115		REXX_LIBS="-L$mh_rexx_lib_dir -l$rexx_l $extra_rexx_libs"
4116		echo "$as_me:$LINENO: result: found in $mh_rexx_lib_dir" >&5
4117echo "${ECHO_T}found in $mh_rexx_lib_dir" >&6
4118
4119	else
4120		{ { echo "$as_me:$LINENO: error: Cannot find Rexx library file: $rexx_l; cannot configure" >&5
4121echo "$as_me: error: Cannot find Rexx library file: $rexx_l; cannot configure" >&2;}
4122   { (exit 1); exit 1; }; }
4123	fi
4124fi
4125
4126
4127
4128
4129INTERPRETER=$with_rexx
4130
4131
4132# Extract the first word of "rexx ", so it can be a program name with args.
4133set dummy rexx ; ac_word=$2
4134echo "$as_me:$LINENO: checking for $ac_word" >&5
4135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136if test "${ac_cv_path_REXXEXE+set}" = set; then
4137  echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139  case $REXXEXE in
4140  [\\/]* | ?:[\\/]*)
4141  ac_cv_path_REXXEXE="$REXXEXE" # Let the user override the test with a path.
4142  ;;
4143  *)
4144  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145for as_dir in $PATH
4146do
4147  IFS=$as_save_IFS
4148  test -z "$as_dir" && as_dir=.
4149  for ac_exec_ext in '' $ac_executable_extensions; do
4150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151    ac_cv_path_REXXEXE="$as_dir/$ac_word$ac_exec_ext"
4152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153    break 2
4154  fi
4155done
4156done
4157
4158  ;;
4159esac
4160fi
4161REXXEXE=$ac_cv_path_REXXEXE
4162
4163if test -n "$REXXEXE"; then
4164  echo "$as_me:$LINENO: result: $REXXEXE" >&5
4165echo "${ECHO_T}$REXXEXE" >&6
4166else
4167  echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169fi
4170
4171if test "$REXXEXE" = no; then
4172	{ { echo "$as_me:$LINENO: error: Cannot find a Rexx interpreter executable in PATH; cannot configure" >&5
4173echo "$as_me: error: Cannot find a Rexx interpreter executable in PATH; cannot configure" >&2;}
4174   { (exit 1); exit 1; }; }
4175fi
4176
4177
4178echo "$as_me:$LINENO: checking where rpms are built" >&5
4179echo $ECHO_N "checking where rpms are built... $ECHO_C" >&6
4180mh_found_rpm="not found"
4181for mh_path in /usr/src/rpm /usr/src/redhat; do
4182   find $mh_path/SOURCES -type d 1>&5 2>&5
4183   if test $? -eq 0 ; then
4184      mh_found_rpm="$mh_path"
4185      break
4186   fi
4187done
4188RPMTOPDIR="$mh_found_rpm"
4189
4190echo "$as_me:$LINENO: result: $mh_found_rpm" >&5
4191echo "${ECHO_T}$mh_found_rpm" >&6
4192
4193
4194                    ac_config_files="$ac_config_files Makefile rexxwrapper-config"
4195cat >confcache <<\_ACEOF
4196# This file is a shell script that caches the results of configure
4197# tests run on this system so they can be shared between configure
4198# scripts and configure runs, see configure's option --config-cache.
4199# It is not useful on other systems.  If it contains results you don't
4200# want to keep, you may remove or edit it.
4201#
4202# config.status only pays attention to the cache file if you give it
4203# the --recheck option to rerun configure.
4204#
4205# `ac_cv_env_foo' variables (set or unset) will be overridden when
4206# loading this file, other *unset* `ac_cv_foo' will be assigned the
4207# following values.
4208
4209_ACEOF
4210
4211# The following way of writing the cache mishandles newlines in values,
4212# but we know of no workaround that is simple, portable, and efficient.
4213# So, don't put newlines in cache variables' values.
4214# Ultrix sh set writes to stderr and can't be redirected directly,
4215# and sets the high bit in the cache file unless we assign to the vars.
4216{
4217  (set) 2>&1 |
4218    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4219    *ac_space=\ *)
4220      # `set' does not quote correctly, so add quotes (double-quote
4221      # substitution turns \\\\ into \\, and sed turns \\ into \).
4222      sed -n \
4223	"s/'/'\\\\''/g;
4224	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4225      ;;
4226    *)
4227      # `set' quotes correctly as required by POSIX, so do not add quotes.
4228      sed -n \
4229	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4230      ;;
4231    esac;
4232} |
4233  sed '
4234     t clear
4235     : clear
4236     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4237     t end
4238     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4239     : end' >>confcache
4240if diff $cache_file confcache >/dev/null 2>&1; then :; else
4241  if test -w $cache_file; then
4242    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4243    cat confcache >$cache_file
4244  else
4245    echo "not updating unwritable cache $cache_file"
4246  fi
4247fi
4248rm -f confcache
4249
4250test "x$prefix" = xNONE && prefix=$ac_default_prefix
4251# Let make expand exec_prefix.
4252test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4253
4254# VPATH may cause trouble with some makes, so we remove $(srcdir),
4255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4256# trailing colons and then remove the whole line if VPATH becomes empty
4257# (actually we leave an empty line to preserve line numbers).
4258if test "x$srcdir" = x.; then
4259  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4260s/:*\$(srcdir):*/:/;
4261s/:*\${srcdir}:*/:/;
4262s/:*@srcdir@:*/:/;
4263s/^\([^=]*=[	 ]*\):*/\1/;
4264s/:*$//;
4265s/^[^=]*=[	 ]*$//;
4266}'
4267fi
4268
4269# Transform confdefs.h into DEFS.
4270# Protect against shell expansion while executing Makefile rules.
4271# Protect against Makefile macro expansion.
4272#
4273# If the first sed substitution is executed (which looks for macros that
4274# take arguments), then we branch to the quote section.  Otherwise,
4275# look for a macro that doesn't take arguments.
4276cat >confdef2opt.sed <<\_ACEOF
4277t clear
4278: clear
4279s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
4280t quote
4281s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
4282t quote
4283d
4284: quote
4285s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
4286s,\[,\\&,g
4287s,\],\\&,g
4288s,\$,$$,g
4289p
4290_ACEOF
4291# We use echo to avoid assuming a particular line-breaking character.
4292# The extra dot is to prevent the shell from consuming trailing
4293# line-breaks from the sub-command output.  A line-break within
4294# single-quotes doesn't work because, if this script is created in a
4295# platform that uses two characters for line-breaks (e.g., DOS), tr
4296# would break.
4297ac_LF_and_DOT=`echo; echo .`
4298DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4299rm -f confdef2opt.sed
4300
4301
4302ac_libobjs=
4303ac_ltlibobjs=
4304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4305  # 1. Remove the extension, and $U if already installed.
4306  ac_i=`echo "$ac_i" |
4307	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4308  # 2. Add them.
4309  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4310  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4311done
4312LIBOBJS=$ac_libobjs
4313
4314LTLIBOBJS=$ac_ltlibobjs
4315
4316
4317
4318: ${CONFIG_STATUS=./config.status}
4319ac_clean_files_save=$ac_clean_files
4320ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4321{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4322echo "$as_me: creating $CONFIG_STATUS" >&6;}
4323cat >$CONFIG_STATUS <<_ACEOF
4324#! $SHELL
4325# Generated by $as_me.
4326# Run this file to recreate the current configuration.
4327# Compiler output produced by configure, useful for debugging
4328# configure, is in config.log if it exists.
4329
4330debug=false
4331ac_cs_recheck=false
4332ac_cs_silent=false
4333SHELL=\${CONFIG_SHELL-$SHELL}
4334_ACEOF
4335
4336cat >>$CONFIG_STATUS <<\_ACEOF
4337## --------------------- ##
4338## M4sh Initialization.  ##
4339## --------------------- ##
4340
4341# Be Bourne compatible
4342if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4343  emulate sh
4344  NULLCMD=:
4345  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4346  # is contrary to our usage.  Disable this feature.
4347  alias -g '${1+"$@"}'='"$@"'
4348elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4349  set -o posix
4350fi
4351DUALCASE=1; export DUALCASE # for MKS sh
4352
4353# Support unset when possible.
4354if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4355  as_unset=unset
4356else
4357  as_unset=false
4358fi
4359
4360
4361# Work around bugs in pre-3.0 UWIN ksh.
4362$as_unset ENV MAIL MAILPATH
4363PS1='$ '
4364PS2='> '
4365PS4='+ '
4366
4367# NLS nuisances.
4368for as_var in \
4369  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4370  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4371  LC_TELEPHONE LC_TIME
4372do
4373  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4374    eval $as_var=C; export $as_var
4375  else
4376    $as_unset $as_var
4377  fi
4378done
4379
4380# Required to use basename.
4381if expr a : '\(a\)' >/dev/null 2>&1; then
4382  as_expr=expr
4383else
4384  as_expr=false
4385fi
4386
4387if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4388  as_basename=basename
4389else
4390  as_basename=false
4391fi
4392
4393
4394# Name of the executable.
4395as_me=`$as_basename "$0" ||
4396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4397	 X"$0" : 'X\(//\)$' \| \
4398	 X"$0" : 'X\(/\)$' \| \
4399	 .     : '\(.\)' 2>/dev/null ||
4400echo X/"$0" |
4401    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4402  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4403  	  /^X\/\(\/\).*/{ s//\1/; q; }
4404  	  s/.*/./; q'`
4405
4406
4407# PATH needs CR, and LINENO needs CR and PATH.
4408# Avoid depending upon Character Ranges.
4409as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4410as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4411as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4412as_cr_digits='0123456789'
4413as_cr_alnum=$as_cr_Letters$as_cr_digits
4414
4415# The user is always right.
4416if test "${PATH_SEPARATOR+set}" != set; then
4417  echo "#! /bin/sh" >conf$$.sh
4418  echo  "exit 0"   >>conf$$.sh
4419  chmod +x conf$$.sh
4420  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4421    PATH_SEPARATOR=';'
4422  else
4423    PATH_SEPARATOR=:
4424  fi
4425  rm -f conf$$.sh
4426fi
4427
4428
4429  as_lineno_1=$LINENO
4430  as_lineno_2=$LINENO
4431  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4432  test "x$as_lineno_1" != "x$as_lineno_2" &&
4433  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4434  # Find who we are.  Look in the path if we contain no path at all
4435  # relative or not.
4436  case $0 in
4437    *[\\/]* ) as_myself=$0 ;;
4438    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441  IFS=$as_save_IFS
4442  test -z "$as_dir" && as_dir=.
4443  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4444done
4445
4446       ;;
4447  esac
4448  # We did not find ourselves, most probably we were run as `sh COMMAND'
4449  # in which case we are not to be found in the path.
4450  if test "x$as_myself" = x; then
4451    as_myself=$0
4452  fi
4453  if test ! -f "$as_myself"; then
4454    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4455echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4456   { (exit 1); exit 1; }; }
4457  fi
4458  case $CONFIG_SHELL in
4459  '')
4460    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4462do
4463  IFS=$as_save_IFS
4464  test -z "$as_dir" && as_dir=.
4465  for as_base in sh bash ksh sh5; do
4466	 case $as_dir in
4467	 /*)
4468	   if ("$as_dir/$as_base" -c '
4469  as_lineno_1=$LINENO
4470  as_lineno_2=$LINENO
4471  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4472  test "x$as_lineno_1" != "x$as_lineno_2" &&
4473  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4474	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4475	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4476	     CONFIG_SHELL=$as_dir/$as_base
4477	     export CONFIG_SHELL
4478	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4479	   fi;;
4480	 esac
4481       done
4482done
4483;;
4484  esac
4485
4486  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4487  # uniformly replaced by the line number.  The first 'sed' inserts a
4488  # line-number line before each line; the second 'sed' does the real
4489  # work.  The second script uses 'N' to pair each line-number line
4490  # with the numbered line, and appends trailing '-' during
4491  # substitution so that $LINENO is not a special case at line end.
4492  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4493  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4494  sed '=' <$as_myself |
4495    sed '
4496      N
4497      s,$,-,
4498      : loop
4499      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4500      t loop
4501      s,-$,,
4502      s,^['$as_cr_digits']*\n,,
4503    ' >$as_me.lineno &&
4504  chmod +x $as_me.lineno ||
4505    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4506echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4507   { (exit 1); exit 1; }; }
4508
4509  # Don't try to exec as it changes $[0], causing all sort of problems
4510  # (the dirname of $[0] is not the place where we might find the
4511  # original and so on.  Autoconf is especially sensible to this).
4512  . ./$as_me.lineno
4513  # Exit status is that of the last command.
4514  exit
4515}
4516
4517
4518case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4519  *c*,-n*) ECHO_N= ECHO_C='
4520' ECHO_T='	' ;;
4521  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4522  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4523esac
4524
4525if expr a : '\(a\)' >/dev/null 2>&1; then
4526  as_expr=expr
4527else
4528  as_expr=false
4529fi
4530
4531rm -f conf$$ conf$$.exe conf$$.file
4532echo >conf$$.file
4533if ln -s conf$$.file conf$$ 2>/dev/null; then
4534  # We could just check for DJGPP; but this test a) works b) is more generic
4535  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4536  if test -f conf$$.exe; then
4537    # Don't use ln at all; we don't have any links
4538    as_ln_s='cp -p'
4539  else
4540    as_ln_s='ln -s'
4541  fi
4542elif ln conf$$.file conf$$ 2>/dev/null; then
4543  as_ln_s=ln
4544else
4545  as_ln_s='cp -p'
4546fi
4547rm -f conf$$ conf$$.exe conf$$.file
4548
4549if mkdir -p . 2>/dev/null; then
4550  as_mkdir_p=:
4551else
4552  test -d ./-p && rmdir ./-p
4553  as_mkdir_p=false
4554fi
4555
4556as_executable_p="test -f"
4557
4558# Sed expression to map a string onto a valid CPP name.
4559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4560
4561# Sed expression to map a string onto a valid variable name.
4562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4563
4564
4565# IFS
4566# We need space, tab and new line, in precisely that order.
4567as_nl='
4568'
4569IFS=" 	$as_nl"
4570
4571# CDPATH.
4572$as_unset CDPATH
4573
4574exec 6>&1
4575
4576# Open the log real soon, to keep \$[0] and so on meaningful, and to
4577# report actual input values of CONFIG_FILES etc. instead of their
4578# values after options handling.  Logging --version etc. is OK.
4579exec 5>>config.log
4580{
4581  echo
4582  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4583## Running $as_me. ##
4584_ASBOX
4585} >&5
4586cat >&5 <<_CSEOF
4587
4588This file was extended by Rexx/Wrapper $as_me "", which was
4589generated by GNU Autoconf 2.59.  Invocation command line was
4590
4591  CONFIG_FILES    = $CONFIG_FILES
4592  CONFIG_HEADERS  = $CONFIG_HEADERS
4593  CONFIG_LINKS    = $CONFIG_LINKS
4594  CONFIG_COMMANDS = $CONFIG_COMMANDS
4595  $ $0 $@
4596
4597_CSEOF
4598echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4599echo >&5
4600_ACEOF
4601
4602# Files that config.status was made for.
4603if test -n "$ac_config_files"; then
4604  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4605fi
4606
4607if test -n "$ac_config_headers"; then
4608  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4609fi
4610
4611if test -n "$ac_config_links"; then
4612  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4613fi
4614
4615if test -n "$ac_config_commands"; then
4616  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4617fi
4618
4619cat >>$CONFIG_STATUS <<\_ACEOF
4620
4621ac_cs_usage="\
4622\`$as_me' instantiates files from templates according to the
4623current configuration.
4624
4625Usage: $0 [OPTIONS] [FILE]...
4626
4627  -h, --help       print this help, then exit
4628  -V, --version    print version number, then exit
4629  -q, --quiet      do not print progress messages
4630  -d, --debug      don't remove temporary files
4631      --recheck    update $as_me by reconfiguring in the same conditions
4632  --file=FILE[:TEMPLATE]
4633		   instantiate the configuration file FILE
4634
4635Configuration files:
4636$config_files
4637
4638Report bugs to <bug-autoconf@gnu.org>."
4639_ACEOF
4640
4641cat >>$CONFIG_STATUS <<_ACEOF
4642ac_cs_version="\\
4643Rexx/Wrapper config.status ""
4644configured by $0, generated by GNU Autoconf 2.59,
4645  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4646
4647Copyright (C) 2003 Free Software Foundation, Inc.
4648This config.status script is free software; the Free Software Foundation
4649gives unlimited permission to copy, distribute and modify it."
4650srcdir=$srcdir
4651_ACEOF
4652
4653cat >>$CONFIG_STATUS <<\_ACEOF
4654# If no file are specified by the user, then we need to provide default
4655# value.  By we need to know if files were specified by the user.
4656ac_need_defaults=:
4657while test $# != 0
4658do
4659  case $1 in
4660  --*=*)
4661    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4662    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4663    ac_shift=:
4664    ;;
4665  -*)
4666    ac_option=$1
4667    ac_optarg=$2
4668    ac_shift=shift
4669    ;;
4670  *) # This is not an option, so the user has probably given explicit
4671     # arguments.
4672     ac_option=$1
4673     ac_need_defaults=false;;
4674  esac
4675
4676  case $ac_option in
4677  # Handling of the options.
4678_ACEOF
4679cat >>$CONFIG_STATUS <<\_ACEOF
4680  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4681    ac_cs_recheck=: ;;
4682  --version | --vers* | -V )
4683    echo "$ac_cs_version"; exit 0 ;;
4684  --he | --h)
4685    # Conflict between --help and --header
4686    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4687Try \`$0 --help' for more information." >&5
4688echo "$as_me: error: ambiguous option: $1
4689Try \`$0 --help' for more information." >&2;}
4690   { (exit 1); exit 1; }; };;
4691  --help | --hel | -h )
4692    echo "$ac_cs_usage"; exit 0 ;;
4693  --debug | --d* | -d )
4694    debug=: ;;
4695  --file | --fil | --fi | --f )
4696    $ac_shift
4697    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4698    ac_need_defaults=false;;
4699  --header | --heade | --head | --hea )
4700    $ac_shift
4701    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4702    ac_need_defaults=false;;
4703  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4704  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4705    ac_cs_silent=: ;;
4706
4707  # This is an error.
4708  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4709Try \`$0 --help' for more information." >&5
4710echo "$as_me: error: unrecognized option: $1
4711Try \`$0 --help' for more information." >&2;}
4712   { (exit 1); exit 1; }; } ;;
4713
4714  *) ac_config_targets="$ac_config_targets $1" ;;
4715
4716  esac
4717  shift
4718done
4719
4720ac_configure_extra_args=
4721
4722if $ac_cs_silent; then
4723  exec 6>/dev/null
4724  ac_configure_extra_args="$ac_configure_extra_args --silent"
4725fi
4726
4727_ACEOF
4728cat >>$CONFIG_STATUS <<_ACEOF
4729if \$ac_cs_recheck; then
4730  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4731  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4732fi
4733
4734_ACEOF
4735
4736
4737
4738
4739
4740cat >>$CONFIG_STATUS <<\_ACEOF
4741for ac_config_target in $ac_config_targets
4742do
4743  case "$ac_config_target" in
4744  # Handling of arguments.
4745  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4746  "rexxwrapper-config" ) CONFIG_FILES="$CONFIG_FILES rexxwrapper-config" ;;
4747  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4748echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4749   { (exit 1); exit 1; }; };;
4750  esac
4751done
4752
4753# If the user did not use the arguments to specify the items to instantiate,
4754# then the envvar interface is used.  Set only those that are not.
4755# We use the long form for the default assignment because of an extremely
4756# bizarre bug on SunOS 4.1.3.
4757if $ac_need_defaults; then
4758  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4759fi
4760
4761# Have a temporary directory for convenience.  Make it in the build tree
4762# simply because there is no reason to put it here, and in addition,
4763# creating and moving files from /tmp can sometimes cause problems.
4764# Create a temporary directory, and hook for its removal unless debugging.
4765$debug ||
4766{
4767  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4768  trap '{ (exit 1); exit 1; }' 1 2 13 15
4769}
4770
4771# Create a (secure) tmp directory for tmp files.
4772
4773{
4774  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4775  test -n "$tmp" && test -d "$tmp"
4776}  ||
4777{
4778  tmp=./confstat$$-$RANDOM
4779  (umask 077 && mkdir $tmp)
4780} ||
4781{
4782   echo "$me: cannot create a temporary directory in ." >&2
4783   { (exit 1); exit 1; }
4784}
4785
4786_ACEOF
4787
4788cat >>$CONFIG_STATUS <<_ACEOF
4789
4790#
4791# CONFIG_FILES section.
4792#
4793
4794# No need to generate the scripts if there are no CONFIG_FILES.
4795# This happens for instance when ./config.status config.h
4796if test -n "\$CONFIG_FILES"; then
4797  # Protect against being on the right side of a sed subst in config.status.
4798  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4799   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4800s,@SHELL@,$SHELL,;t t
4801s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4802s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4803s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4804s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4805s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4806s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4807s,@exec_prefix@,$exec_prefix,;t t
4808s,@prefix@,$prefix,;t t
4809s,@program_transform_name@,$program_transform_name,;t t
4810s,@bindir@,$bindir,;t t
4811s,@sbindir@,$sbindir,;t t
4812s,@libexecdir@,$libexecdir,;t t
4813s,@datadir@,$datadir,;t t
4814s,@sysconfdir@,$sysconfdir,;t t
4815s,@sharedstatedir@,$sharedstatedir,;t t
4816s,@localstatedir@,$localstatedir,;t t
4817s,@libdir@,$libdir,;t t
4818s,@includedir@,$includedir,;t t
4819s,@oldincludedir@,$oldincludedir,;t t
4820s,@infodir@,$infodir,;t t
4821s,@mandir@,$mandir,;t t
4822s,@build_alias@,$build_alias,;t t
4823s,@host_alias@,$host_alias,;t t
4824s,@target_alias@,$target_alias,;t t
4825s,@DEFS@,$DEFS,;t t
4826s,@ECHO_C@,$ECHO_C,;t t
4827s,@ECHO_N@,$ECHO_N,;t t
4828s,@ECHO_T@,$ECHO_T,;t t
4829s,@LIBS@,$LIBS,;t t
4830s,@VER@,$VER,;t t
4831s,@VER_DOT@,$VER_DOT,;t t
4832s,@VER_DATE@,$VER_DATE,;t t
4833s,@build@,$build,;t t
4834s,@build_cpu@,$build_cpu,;t t
4835s,@build_vendor@,$build_vendor,;t t
4836s,@build_os@,$build_os,;t t
4837s,@host@,$host,;t t
4838s,@host_cpu@,$host_cpu,;t t
4839s,@host_vendor@,$host_vendor,;t t
4840s,@host_os@,$host_os,;t t
4841s,@target@,$target,;t t
4842s,@target_cpu@,$target_cpu,;t t
4843s,@target_vendor@,$target_vendor,;t t
4844s,@target_os@,$target_os,;t t
4845s,@regina_config@,$regina_config,;t t
4846s,@CC@,$CC,;t t
4847s,@CFLAGS@,$CFLAGS,;t t
4848s,@LDFLAGS@,$LDFLAGS,;t t
4849s,@CPPFLAGS@,$CPPFLAGS,;t t
4850s,@ac_ct_CC@,$ac_ct_CC,;t t
4851s,@EXEEXT@,$EXEEXT,;t t
4852s,@OBJEXT@,$OBJEXT,;t t
4853s,@LEX@,$LEX,;t t
4854s,@LEXLIB@,$LEXLIB,;t t
4855s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4856s,@rexxtrans_config@,$rexxtrans_config,;t t
4857s,@oorexx_config@,$oorexx_config,;t t
4858s,@REXX_TARGET@,$REXX_TARGET,;t t
4859s,@REXX_INCLUDES@,$REXX_INCLUDES,;t t
4860s,@rexxtrans_lib_name@,$rexxtrans_lib_name,;t t
4861s,@REXX_LIBS@,$REXX_LIBS,;t t
4862s,@INTERPRETER@,$INTERPRETER,;t t
4863s,@REXXEXE@,$REXXEXE,;t t
4864s,@RPMTOPDIR@,$RPMTOPDIR,;t t
4865s,@LIBOBJS@,$LIBOBJS,;t t
4866s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4867CEOF
4868
4869_ACEOF
4870
4871  cat >>$CONFIG_STATUS <<\_ACEOF
4872  # Split the substitutions into bite-sized pieces for seds with
4873  # small command number limits, like on Digital OSF/1 and HP-UX.
4874  ac_max_sed_lines=48
4875  ac_sed_frag=1 # Number of current file.
4876  ac_beg=1 # First line for current file.
4877  ac_end=$ac_max_sed_lines # Line after last line for current file.
4878  ac_more_lines=:
4879  ac_sed_cmds=
4880  while $ac_more_lines; do
4881    if test $ac_beg -gt 1; then
4882      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4883    else
4884      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4885    fi
4886    if test ! -s $tmp/subs.frag; then
4887      ac_more_lines=false
4888    else
4889      # The purpose of the label and of the branching condition is to
4890      # speed up the sed processing (if there are no `@' at all, there
4891      # is no need to browse any of the substitutions).
4892      # These are the two extra sed commands mentioned above.
4893      (echo ':t
4894  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4895      if test -z "$ac_sed_cmds"; then
4896	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4897      else
4898	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4899      fi
4900      ac_sed_frag=`expr $ac_sed_frag + 1`
4901      ac_beg=$ac_end
4902      ac_end=`expr $ac_end + $ac_max_sed_lines`
4903    fi
4904  done
4905  if test -z "$ac_sed_cmds"; then
4906    ac_sed_cmds=cat
4907  fi
4908fi # test -n "$CONFIG_FILES"
4909
4910_ACEOF
4911cat >>$CONFIG_STATUS <<\_ACEOF
4912for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4913  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4914  case $ac_file in
4915  - | *:- | *:-:* ) # input from stdin
4916	cat >$tmp/stdin
4917	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4918	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4919  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4920	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4921  * )   ac_file_in=$ac_file.in ;;
4922  esac
4923
4924  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4925  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4927	 X"$ac_file" : 'X\(//\)[^/]' \| \
4928	 X"$ac_file" : 'X\(//\)$' \| \
4929	 X"$ac_file" : 'X\(/\)' \| \
4930	 .     : '\(.\)' 2>/dev/null ||
4931echo X"$ac_file" |
4932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4933  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4934  	  /^X\(\/\/\)$/{ s//\1/; q; }
4935  	  /^X\(\/\).*/{ s//\1/; q; }
4936  	  s/.*/./; q'`
4937  { if $as_mkdir_p; then
4938    mkdir -p "$ac_dir"
4939  else
4940    as_dir="$ac_dir"
4941    as_dirs=
4942    while test ! -d "$as_dir"; do
4943      as_dirs="$as_dir $as_dirs"
4944      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4945$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4946	 X"$as_dir" : 'X\(//\)[^/]' \| \
4947	 X"$as_dir" : 'X\(//\)$' \| \
4948	 X"$as_dir" : 'X\(/\)' \| \
4949	 .     : '\(.\)' 2>/dev/null ||
4950echo X"$as_dir" |
4951    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4952  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4953  	  /^X\(\/\/\)$/{ s//\1/; q; }
4954  	  /^X\(\/\).*/{ s//\1/; q; }
4955  	  s/.*/./; q'`
4956    done
4957    test ! -n "$as_dirs" || mkdir $as_dirs
4958  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4959echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4960   { (exit 1); exit 1; }; }; }
4961
4962  ac_builddir=.
4963
4964if test "$ac_dir" != .; then
4965  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4966  # A "../" for each directory in $ac_dir_suffix.
4967  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4968else
4969  ac_dir_suffix= ac_top_builddir=
4970fi
4971
4972case $srcdir in
4973  .)  # No --srcdir option.  We are building in place.
4974    ac_srcdir=.
4975    if test -z "$ac_top_builddir"; then
4976       ac_top_srcdir=.
4977    else
4978       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4979    fi ;;
4980  [\\/]* | ?:[\\/]* )  # Absolute path.
4981    ac_srcdir=$srcdir$ac_dir_suffix;
4982    ac_top_srcdir=$srcdir ;;
4983  *) # Relative path.
4984    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4985    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4986esac
4987
4988# Do not use `cd foo && pwd` to compute absolute paths, because
4989# the directories may not exist.
4990case `pwd` in
4991.) ac_abs_builddir="$ac_dir";;
4992*)
4993  case "$ac_dir" in
4994  .) ac_abs_builddir=`pwd`;;
4995  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4996  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4997  esac;;
4998esac
4999case $ac_abs_builddir in
5000.) ac_abs_top_builddir=${ac_top_builddir}.;;
5001*)
5002  case ${ac_top_builddir}. in
5003  .) ac_abs_top_builddir=$ac_abs_builddir;;
5004  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5005  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5006  esac;;
5007esac
5008case $ac_abs_builddir in
5009.) ac_abs_srcdir=$ac_srcdir;;
5010*)
5011  case $ac_srcdir in
5012  .) ac_abs_srcdir=$ac_abs_builddir;;
5013  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5014  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5015  esac;;
5016esac
5017case $ac_abs_builddir in
5018.) ac_abs_top_srcdir=$ac_top_srcdir;;
5019*)
5020  case $ac_top_srcdir in
5021  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5022  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5023  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5024  esac;;
5025esac
5026
5027
5028
5029  if test x"$ac_file" != x-; then
5030    { echo "$as_me:$LINENO: creating $ac_file" >&5
5031echo "$as_me: creating $ac_file" >&6;}
5032    rm -f "$ac_file"
5033  fi
5034  # Let's still pretend it is `configure' which instantiates (i.e., don't
5035  # use $as_me), people would be surprised to read:
5036  #    /* config.h.  Generated by config.status.  */
5037  if test x"$ac_file" = x-; then
5038    configure_input=
5039  else
5040    configure_input="$ac_file.  "
5041  fi
5042  configure_input=$configure_input"Generated from `echo $ac_file_in |
5043				     sed 's,.*/,,'` by configure."
5044
5045  # First look for the input files in the build tree, otherwise in the
5046  # src tree.
5047  ac_file_inputs=`IFS=:
5048    for f in $ac_file_in; do
5049      case $f in
5050      -) echo $tmp/stdin ;;
5051      [\\/$]*)
5052	 # Absolute (can't be DOS-style, as IFS=:)
5053	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5054echo "$as_me: error: cannot find input file: $f" >&2;}
5055   { (exit 1); exit 1; }; }
5056	 echo "$f";;
5057      *) # Relative
5058	 if test -f "$f"; then
5059	   # Build tree
5060	   echo "$f"
5061	 elif test -f "$srcdir/$f"; then
5062	   # Source tree
5063	   echo "$srcdir/$f"
5064	 else
5065	   # /dev/null tree
5066	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5067echo "$as_me: error: cannot find input file: $f" >&2;}
5068   { (exit 1); exit 1; }; }
5069	 fi;;
5070      esac
5071    done` || { (exit 1); exit 1; }
5072_ACEOF
5073cat >>$CONFIG_STATUS <<_ACEOF
5074  sed "$ac_vpsub
5075$extrasub
5076_ACEOF
5077cat >>$CONFIG_STATUS <<\_ACEOF
5078:t
5079/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5080s,@configure_input@,$configure_input,;t t
5081s,@srcdir@,$ac_srcdir,;t t
5082s,@abs_srcdir@,$ac_abs_srcdir,;t t
5083s,@top_srcdir@,$ac_top_srcdir,;t t
5084s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5085s,@builddir@,$ac_builddir,;t t
5086s,@abs_builddir@,$ac_abs_builddir,;t t
5087s,@top_builddir@,$ac_top_builddir,;t t
5088s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5089" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5090  rm -f $tmp/stdin
5091  if test x"$ac_file" != x-; then
5092    mv $tmp/out $ac_file
5093  else
5094    cat $tmp/out
5095    rm -f $tmp/out
5096  fi
5097
5098done
5099_ACEOF
5100
5101cat >>$CONFIG_STATUS <<\_ACEOF
5102
5103{ (exit 0); exit 0; }
5104_ACEOF
5105chmod +x $CONFIG_STATUS
5106ac_clean_files=$ac_clean_files_save
5107
5108
5109# configure is writing to config.log, and then calls config.status.
5110# config.status does its own redirection, appending to config.log.
5111# Unfortunately, on DOS this fails, as config.log is still kept open
5112# by configure, so config.status won't be able to write to it; its
5113# output is simply discarded.  So we exec the FD to /dev/null,
5114# effectively closing config.log, so it can be properly (re)opened and
5115# appended to by config.status.  When coming back to configure, we
5116# need to make the FD available again.
5117if test "$no_create" != yes; then
5118  ac_cs_success=:
5119  ac_config_status_args=
5120  test "$silent" = yes &&
5121    ac_config_status_args="$ac_config_status_args --quiet"
5122  exec 5>/dev/null
5123  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5124  exec 5>>config.log
5125  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5126  # would make configure fail if this is the last instruction.
5127  $ac_cs_success || { (exit 1); exit 1; }
5128fi
5129
5130
5131chmod 755 rexxwrapper-config
5132