1#! /bin/sh
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19IEEE_CFLAGS=""
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46# Guess values for system-dependent variables and create Makefiles.
47# Generated automatically using autoconf version 2.13
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_default_prefix="/usr/local"
58if test -f "/usr/include/slang.h"; then
59ac_default_prefix="/usr"
60fi
61
62ac_help="$ac_help
63  --enable-warnings       turn on GCC compiler warnings"
64
65# Initialize some variables set by options.
66# The variables have the same names as the options, with
67# dashes changed to underlines.
68build=NONE
69cache_file=./config.cache
70exec_prefix=NONE
71host=NONE
72no_create=
73nonopt=NONE
74no_recursion=
75prefix=NONE
76program_prefix=NONE
77program_suffix=NONE
78program_transform_name=s,x,x,
79silent=
80site=
81srcdir=
82target=NONE
83verbose=
84x_includes=NONE
85x_libraries=NONE
86bindir='${exec_prefix}/bin'
87sbindir='${exec_prefix}/sbin'
88libexecdir='${exec_prefix}/libexec'
89datadir='${prefix}/share'
90sysconfdir='${prefix}/etc'
91sharedstatedir='${prefix}/com'
92localstatedir='${prefix}/var'
93libdir='${exec_prefix}/lib'
94includedir='${prefix}/include'
95oldincludedir='/usr/include'
96infodir='${prefix}/info'
97mandir='${prefix}/man'
98
99# Initialize some other variables.
100subdirs=
101MFLAGS= MAKEFLAGS=
102SHELL=${CONFIG_SHELL-/bin/sh}
103# Maximum number of lines to put in a shell here document.
104ac_max_here_lines=12
105
106ac_prev=
107for ac_option
108do
109
110  # If the previous option needs an argument, assign it.
111  if test -n "$ac_prev"; then
112    eval "$ac_prev=\$ac_option"
113    ac_prev=
114    continue
115  fi
116
117  case "$ac_option" in
118  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119  *) ac_optarg= ;;
120  esac
121
122  # Accept the important Cygnus configure options, so we can diagnose typos.
123
124  case "$ac_option" in
125
126  -bindir | --bindir | --bindi | --bind | --bin | --bi)
127    ac_prev=bindir ;;
128  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
129    bindir="$ac_optarg" ;;
130
131  -build | --build | --buil | --bui | --bu)
132    ac_prev=build ;;
133  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
134    build="$ac_optarg" ;;
135
136  -cache-file | --cache-file | --cache-fil | --cache-fi \
137  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
138    ac_prev=cache_file ;;
139  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
140  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
141    cache_file="$ac_optarg" ;;
142
143  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
144    ac_prev=datadir ;;
145  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
146  | --da=*)
147    datadir="$ac_optarg" ;;
148
149  -disable-* | --disable-*)
150    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
151    # Reject names that are not valid shell variable names.
152    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
153      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154    fi
155    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
156    eval "enable_${ac_feature}=no" ;;
157
158  -enable-* | --enable-*)
159    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
160    # Reject names that are not valid shell variable names.
161    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
162      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163    fi
164    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165    case "$ac_option" in
166      *=*) ;;
167      *) ac_optarg=yes ;;
168    esac
169    eval "enable_${ac_feature}='$ac_optarg'" ;;
170
171  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
172  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
173  | --exec | --exe | --ex)
174    ac_prev=exec_prefix ;;
175  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
176  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
177  | --exec=* | --exe=* | --ex=*)
178    exec_prefix="$ac_optarg" ;;
179
180  -gas | --gas | --ga | --g)
181    # Obsolete; use --with-gas.
182    with_gas=yes ;;
183
184  -help | --help | --hel | --he)
185    # Omit some internal or obsolete options to make the list less imposing.
186    # This message is too long to be a string in the A/UX 3.1 sh.
187    cat << EOF
188Usage: configure [options] [host]
189Options: [defaults in brackets after descriptions]
190Configuration:
191  --cache-file=FILE       cache test results in FILE
192  --help                  print this message
193  --no-create             do not create output files
194  --quiet, --silent       do not print \`checking...' messages
195  --version               print the version of autoconf that created configure
196Directory and file names:
197  --prefix=PREFIX         install architecture-independent files in PREFIX
198                          [$ac_default_prefix]
199  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
200                          [same as prefix]
201  --bindir=DIR            user executables in DIR [EPREFIX/bin]
202  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
203  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
204  --datadir=DIR           read-only architecture-independent data in DIR
205                          [PREFIX/share]
206  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
207  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
208                          [PREFIX/com]
209  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
210  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
211  --includedir=DIR        C header files in DIR [PREFIX/include]
212  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
213  --infodir=DIR           info documentation in DIR [PREFIX/info]
214  --mandir=DIR            man documentation in DIR [PREFIX/man]
215  --srcdir=DIR            find the sources in DIR [configure dir or ..]
216  --program-prefix=PREFIX prepend PREFIX to installed program names
217  --program-suffix=SUFFIX append SUFFIX to installed program names
218  --program-transform-name=PROGRAM
219                          run sed PROGRAM on installed program names
220EOF
221    cat << EOF
222Host type:
223  --build=BUILD           configure for building on BUILD [BUILD=HOST]
224  --host=HOST             configure for HOST [guessed]
225  --target=TARGET         configure for TARGET [TARGET=HOST]
226Features and packages:
227  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
228  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
229  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
230  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
231  --x-includes=DIR        X include files are in DIR
232  --x-libraries=DIR       X library files are in DIR
233EOF
234    if test -n "$ac_help"; then
235      echo "--enable and --with options recognized:$ac_help"
236    fi
237    exit 0 ;;
238
239  -host | --host | --hos | --ho)
240    ac_prev=host ;;
241  -host=* | --host=* | --hos=* | --ho=*)
242    host="$ac_optarg" ;;
243
244  -includedir | --includedir | --includedi | --included | --include \
245  | --includ | --inclu | --incl | --inc)
246    ac_prev=includedir ;;
247  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248  | --includ=* | --inclu=* | --incl=* | --inc=*)
249    includedir="$ac_optarg" ;;
250
251  -infodir | --infodir | --infodi | --infod | --info | --inf)
252    ac_prev=infodir ;;
253  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254    infodir="$ac_optarg" ;;
255
256  -libdir | --libdir | --libdi | --libd)
257    ac_prev=libdir ;;
258  -libdir=* | --libdir=* | --libdi=* | --libd=*)
259    libdir="$ac_optarg" ;;
260
261  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262  | --libexe | --libex | --libe)
263    ac_prev=libexecdir ;;
264  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265  | --libexe=* | --libex=* | --libe=*)
266    libexecdir="$ac_optarg" ;;
267
268  -localstatedir | --localstatedir | --localstatedi | --localstated \
269  | --localstate | --localstat | --localsta | --localst \
270  | --locals | --local | --loca | --loc | --lo)
271    ac_prev=localstatedir ;;
272  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275    localstatedir="$ac_optarg" ;;
276
277  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278    ac_prev=mandir ;;
279  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
280    mandir="$ac_optarg" ;;
281
282  -nfp | --nfp | --nf)
283    # Obsolete; use --without-fp.
284    with_fp=no ;;
285
286  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287  | --no-cr | --no-c)
288    no_create=yes ;;
289
290  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
292    no_recursion=yes ;;
293
294  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296  | --oldin | --oldi | --old | --ol | --o)
297    ac_prev=oldincludedir ;;
298  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301    oldincludedir="$ac_optarg" ;;
302
303  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304    ac_prev=prefix ;;
305  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
306    prefix="$ac_optarg" ;;
307
308  -program-prefix | --program-prefix | --program-prefi | --program-pref \
309  | --program-pre | --program-pr | --program-p)
310    ac_prev=program_prefix ;;
311  -program-prefix=* | --program-prefix=* | --program-prefi=* \
312  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313    program_prefix="$ac_optarg" ;;
314
315  -program-suffix | --program-suffix | --program-suffi | --program-suff \
316  | --program-suf | --program-su | --program-s)
317    ac_prev=program_suffix ;;
318  -program-suffix=* | --program-suffix=* | --program-suffi=* \
319  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320    program_suffix="$ac_optarg" ;;
321
322  -program-transform-name | --program-transform-name \
323  | --program-transform-nam | --program-transform-na \
324  | --program-transform-n | --program-transform- \
325  | --program-transform | --program-transfor \
326  | --program-transfo | --program-transf \
327  | --program-trans | --program-tran \
328  | --progr-tra | --program-tr | --program-t)
329    ac_prev=program_transform_name ;;
330  -program-transform-name=* | --program-transform-name=* \
331  | --program-transform-nam=* | --program-transform-na=* \
332  | --program-transform-n=* | --program-transform-=* \
333  | --program-transform=* | --program-transfor=* \
334  | --program-transfo=* | --program-transf=* \
335  | --program-trans=* | --program-tran=* \
336  | --progr-tra=* | --program-tr=* | --program-t=*)
337    program_transform_name="$ac_optarg" ;;
338
339  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340  | -silent | --silent | --silen | --sile | --sil)
341    silent=yes ;;
342
343  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344    ac_prev=sbindir ;;
345  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346  | --sbi=* | --sb=*)
347    sbindir="$ac_optarg" ;;
348
349  -sharedstatedir | --sharedstatedir | --sharedstatedi \
350  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351  | --sharedst | --shareds | --shared | --share | --shar \
352  | --sha | --sh)
353    ac_prev=sharedstatedir ;;
354  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357  | --sha=* | --sh=*)
358    sharedstatedir="$ac_optarg" ;;
359
360  -site | --site | --sit)
361    ac_prev=site ;;
362  -site=* | --site=* | --sit=*)
363    site="$ac_optarg" ;;
364
365  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366    ac_prev=srcdir ;;
367  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
368    srcdir="$ac_optarg" ;;
369
370  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371  | --syscon | --sysco | --sysc | --sys | --sy)
372    ac_prev=sysconfdir ;;
373  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375    sysconfdir="$ac_optarg" ;;
376
377  -target | --target | --targe | --targ | --tar | --ta | --t)
378    ac_prev=target ;;
379  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380    target="$ac_optarg" ;;
381
382  -v | -verbose | --verbose | --verbos | --verbo | --verb)
383    verbose=yes ;;
384
385  -version | --version | --versio | --versi | --vers)
386    echo "configure generated by autoconf version 2.13"
387    exit 0 ;;
388
389  -with-* | --with-*)
390    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
391    # Reject names that are not valid shell variable names.
392    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
393      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394    fi
395    ac_package=`echo $ac_package| sed 's/-/_/g'`
396    case "$ac_option" in
397      *=*) ;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "with_${ac_package}='$ac_optarg'" ;;
401
402  -without-* | --without-*)
403    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
404    # Reject names that are not valid shell variable names.
405    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
406      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407    fi
408    ac_package=`echo $ac_package| sed 's/-/_/g'`
409    eval "with_${ac_package}=no" ;;
410
411  --x)
412    # Obsolete; use --with-x.
413    with_x=yes ;;
414
415  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
416  | --x-incl | --x-inc | --x-in | --x-i)
417    ac_prev=x_includes ;;
418  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
419  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
420    x_includes="$ac_optarg" ;;
421
422  -x-libraries | --x-libraries | --x-librarie | --x-librari \
423  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
424    ac_prev=x_libraries ;;
425  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
426  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
427    x_libraries="$ac_optarg" ;;
428
429  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430    ;;
431
432  *)
433    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
434      echo "configure: warning: $ac_option: invalid host type" 1>&2
435    fi
436    if test "x$nonopt" != xNONE; then
437      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438    fi
439    nonopt="$ac_option"
440    ;;
441
442  esac
443done
444
445if test -n "$ac_prev"; then
446  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447fi
448
449trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450
451# File descriptor usage:
452# 0 standard input
453# 1 file creation
454# 2 errors and warnings
455# 3 some systems may open it to /dev/tty
456# 4 used on the Kubota Titan
457# 6 checking for... messages and results
458# 5 compiler messages saved in config.log
459if test "$silent" = yes; then
460  exec 6>/dev/null
461else
462  exec 6>&1
463fi
464exec 5>./config.log
465
466echo "\
467This file contains any messages produced by compilers while
468running configure, to aid debugging if configure makes a mistake.
469" 1>&5
470
471# Strip out --no-create and --no-recursion so they do not pile up.
472# Also quote any args containing shell metacharacters.
473ac_configure_args=
474for ac_arg
475do
476  case "$ac_arg" in
477  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
478  | --no-cr | --no-c) ;;
479  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
480  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
481  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
482  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
483  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
484  esac
485done
486
487# NLS nuisances.
488# Only set these to C if already set.  These must not be set unconditionally
489# because not all systems understand e.g. LANG=C (notably SCO).
490# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
491# Non-C LC_CTYPE values break the ctype check.
492if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
493if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
494if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
495if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
496
497# confdefs.h avoids OS command line length limits that DEFS can exceed.
498rm -rf conftest* confdefs.h
499# AIX cpp loses on an empty file, so make sure it contains at least a newline.
500echo > confdefs.h
501
502# A filename unique to this package, relative to the directory that
503# configure is in, which we can look for to find out if srcdir is correct.
504ac_unique_file=src/slang.c
505
506# Find the source files, if location was not specified.
507if test -z "$srcdir"; then
508  ac_srcdir_defaulted=yes
509  # Try the directory containing this script, then its parent.
510  ac_prog=$0
511  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
512  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513  srcdir=$ac_confdir
514  if test ! -r $srcdir/$ac_unique_file; then
515    srcdir=..
516  fi
517else
518  ac_srcdir_defaulted=no
519fi
520if test ! -r $srcdir/$ac_unique_file; then
521  if test "$ac_srcdir_defaulted" = yes; then
522    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523  else
524    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525  fi
526fi
527srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528
529# Prefer explicitly selected file to automatically selected ones.
530if test -z "$CONFIG_SITE"; then
531  if test "x$prefix" != xNONE; then
532    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533  else
534    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535  fi
536fi
537for ac_site_file in $CONFIG_SITE; do
538  if test -r "$ac_site_file"; then
539    echo "loading site script $ac_site_file"
540    . "$ac_site_file"
541  fi
542done
543
544if test -r "$cache_file"; then
545  echo "loading cache $cache_file"
546  . $cache_file
547else
548  echo "creating cache $cache_file"
549  > $cache_file
550fi
551
552ac_ext=c
553# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554ac_cpp='$CPP $CPPFLAGS'
555ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557cross_compiling=$ac_cv_prog_cc_cross
558
559ac_exeext=
560ac_objext=o
561if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
564    ac_n= ac_c='
565' ac_t='	'
566  else
567    ac_n=-n ac_c= ac_t=
568  fi
569else
570  ac_n= ac_c='\c' ac_t=
571fi
572
573
574#AC_PREFIX_DEFAULT($MY_PREFIX_DEAULT)
575
576# Installation location
577
578
579ac_aux_dir=
580for ac_dir in autoconf $srcdir/autoconf; do
581  if test -f $ac_dir/install-sh; then
582    ac_aux_dir=$ac_dir
583    ac_install_sh="$ac_aux_dir/install-sh -c"
584    break
585  elif test -f $ac_dir/install.sh; then
586    ac_aux_dir=$ac_dir
587    ac_install_sh="$ac_aux_dir/install.sh -c"
588    break
589  fi
590done
591if test -z "$ac_aux_dir"; then
592  { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
593fi
594ac_config_guess=$ac_aux_dir/config.guess
595ac_config_sub=$ac_aux_dir/config.sub
596ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
597
598
599# Make sure we can run config.sub.
600if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
601else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
602fi
603
604echo $ac_n "checking host system type""... $ac_c" 1>&6
605echo "configure:606: checking host system type" >&5
606
607host_alias=$host
608case "$host_alias" in
609NONE)
610  case $nonopt in
611  NONE)
612    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
613    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
614    fi ;;
615  *) host_alias=$nonopt ;;
616  esac ;;
617esac
618
619host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
620host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623echo "$ac_t""$host" 1>&6
624
625
626
627#These variable are initialized by JD init function
628CONFIG_DIR=`pwd`
629cd $srcdir
630if test "`pwd`" != "$CONFIG_DIR"
631then
632  { echo "configure: error: "This software does not support configuring from another directory.   See the INSTALL file"" 1>&2; exit 1; }
633fi
634# Note: these will differ if one is a symbolic link
635if test -f /usr/bin/dirname; then
636  JD_Above_Dir=`dirname $CONFIG_DIR`
637else
638# system is a loser
639  JD_Above_Dir=`cd ..;pwd`
640fi
641JD_Above_Dir2=`cd ..;pwd`
642
643
644# Extract the first word of "gcc", so it can be a program name with args.
645set dummy gcc; ac_word=$2
646echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
647echo "configure:648: checking for $ac_word" >&5
648if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649  echo $ac_n "(cached) $ac_c" 1>&6
650else
651  if test -n "$CC"; then
652  ac_cv_prog_CC="$CC" # Let the user override the test.
653else
654  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
655  ac_dummy="$PATH"
656  for ac_dir in $ac_dummy; do
657    test -z "$ac_dir" && ac_dir=.
658    if test -f $ac_dir/$ac_word; then
659      ac_cv_prog_CC="gcc"
660      break
661    fi
662  done
663  IFS="$ac_save_ifs"
664fi
665fi
666CC="$ac_cv_prog_CC"
667if test -n "$CC"; then
668  echo "$ac_t""$CC" 1>&6
669else
670  echo "$ac_t""no" 1>&6
671fi
672
673if test -z "$CC"; then
674  # Extract the first word of "cc", so it can be a program name with args.
675set dummy cc; ac_word=$2
676echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677echo "configure:678: checking for $ac_word" >&5
678if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679  echo $ac_n "(cached) $ac_c" 1>&6
680else
681  if test -n "$CC"; then
682  ac_cv_prog_CC="$CC" # Let the user override the test.
683else
684  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
685  ac_prog_rejected=no
686  ac_dummy="$PATH"
687  for ac_dir in $ac_dummy; do
688    test -z "$ac_dir" && ac_dir=.
689    if test -f $ac_dir/$ac_word; then
690      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
691        ac_prog_rejected=yes
692	continue
693      fi
694      ac_cv_prog_CC="cc"
695      break
696    fi
697  done
698  IFS="$ac_save_ifs"
699if test $ac_prog_rejected = yes; then
700  # We found a bogon in the path, so make sure we never use it.
701  set dummy $ac_cv_prog_CC
702  shift
703  if test $# -gt 0; then
704    # We chose a different compiler from the bogus one.
705    # However, it has the same basename, so the bogon will be chosen
706    # first if we set CC to just the basename; use the full file name.
707    shift
708    set dummy "$ac_dir/$ac_word" "$@"
709    shift
710    ac_cv_prog_CC="$@"
711  fi
712fi
713fi
714fi
715CC="$ac_cv_prog_CC"
716if test -n "$CC"; then
717  echo "$ac_t""$CC" 1>&6
718else
719  echo "$ac_t""no" 1>&6
720fi
721
722  if test -z "$CC"; then
723    case "`uname -s`" in
724    *win32* | *WIN32*)
725      # Extract the first word of "cl", so it can be a program name with args.
726set dummy cl; ac_word=$2
727echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
728echo "configure:729: checking for $ac_word" >&5
729if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
730  echo $ac_n "(cached) $ac_c" 1>&6
731else
732  if test -n "$CC"; then
733  ac_cv_prog_CC="$CC" # Let the user override the test.
734else
735  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
736  ac_dummy="$PATH"
737  for ac_dir in $ac_dummy; do
738    test -z "$ac_dir" && ac_dir=.
739    if test -f $ac_dir/$ac_word; then
740      ac_cv_prog_CC="cl"
741      break
742    fi
743  done
744  IFS="$ac_save_ifs"
745fi
746fi
747CC="$ac_cv_prog_CC"
748if test -n "$CC"; then
749  echo "$ac_t""$CC" 1>&6
750else
751  echo "$ac_t""no" 1>&6
752fi
753 ;;
754    esac
755  fi
756  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757fi
758
759echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
760echo "configure:761: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761
762ac_ext=c
763# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
764ac_cpp='$CPP $CPPFLAGS'
765ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
766ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
767cross_compiling=$ac_cv_prog_cc_cross
768
769cat > conftest.$ac_ext << EOF
770
771#line 772 "configure"
772#include "confdefs.h"
773
774main(){return(0);}
775EOF
776if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
777  ac_cv_prog_cc_works=yes
778  # If we can't run a trivial program, we are probably using a cross compiler.
779  if (./conftest; exit) 2>/dev/null; then
780    ac_cv_prog_cc_cross=no
781  else
782    ac_cv_prog_cc_cross=yes
783  fi
784else
785  echo "configure: failed program was:" >&5
786  cat conftest.$ac_ext >&5
787  ac_cv_prog_cc_works=no
788fi
789rm -fr conftest*
790ac_ext=c
791# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
792ac_cpp='$CPP $CPPFLAGS'
793ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
794ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
795cross_compiling=$ac_cv_prog_cc_cross
796
797echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
798if test $ac_cv_prog_cc_works = no; then
799  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
800fi
801echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
802echo "configure:803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
803echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
804cross_compiling=$ac_cv_prog_cc_cross
805
806echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
807echo "configure:808: checking whether we are using GNU C" >&5
808if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
809  echo $ac_n "(cached) $ac_c" 1>&6
810else
811  cat > conftest.c <<EOF
812#ifdef __GNUC__
813  yes;
814#endif
815EOF
816if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
817  ac_cv_prog_gcc=yes
818else
819  ac_cv_prog_gcc=no
820fi
821fi
822
823echo "$ac_t""$ac_cv_prog_gcc" 1>&6
824
825if test $ac_cv_prog_gcc = yes; then
826  GCC=yes
827else
828  GCC=
829fi
830
831ac_test_CFLAGS="${CFLAGS+set}"
832ac_save_CFLAGS="$CFLAGS"
833CFLAGS=
834echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
835echo "configure:836: checking whether ${CC-cc} accepts -g" >&5
836if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
837  echo $ac_n "(cached) $ac_c" 1>&6
838else
839  echo 'void f(){}' > conftest.c
840if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
841  ac_cv_prog_cc_g=yes
842else
843  ac_cv_prog_cc_g=no
844fi
845rm -f conftest*
846
847fi
848
849echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
850if test "$ac_test_CFLAGS" = set; then
851  CFLAGS="$ac_save_CFLAGS"
852elif test $ac_cv_prog_cc_g = yes; then
853  if test "$GCC" = yes; then
854    CFLAGS="-g -O2"
855  else
856    CFLAGS="-g"
857  fi
858else
859  if test "$GCC" = yes; then
860    CFLAGS="-O2"
861  else
862    CFLAGS=
863  fi
864fi
865
866echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
867echo "configure:868: checking how to run the C preprocessor" >&5
868# On Suns, sometimes $CPP names a directory.
869if test -n "$CPP" && test -d "$CPP"; then
870  CPP=
871fi
872if test -z "$CPP"; then
873if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
874  echo $ac_n "(cached) $ac_c" 1>&6
875else
876    # This must be in double quotes, not single quotes, because CPP may get
877  # substituted into the Makefile and "${CC-cc}" will confuse make.
878  CPP="${CC-cc} -E"
879  # On the NeXT, cc -E runs the code through the compiler's parser,
880  # not just through cpp.
881  cat > conftest.$ac_ext <<EOF
882#line 883 "configure"
883#include "confdefs.h"
884#include <assert.h>
885Syntax Error
886EOF
887ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888{ (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890if test -z "$ac_err"; then
891  :
892else
893  echo "$ac_err" >&5
894  echo "configure: failed program was:" >&5
895  cat conftest.$ac_ext >&5
896  rm -rf conftest*
897  CPP="${CC-cc} -E -traditional-cpp"
898  cat > conftest.$ac_ext <<EOF
899#line 900 "configure"
900#include "confdefs.h"
901#include <assert.h>
902Syntax Error
903EOF
904ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
905{ (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
906ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
907if test -z "$ac_err"; then
908  :
909else
910  echo "$ac_err" >&5
911  echo "configure: failed program was:" >&5
912  cat conftest.$ac_ext >&5
913  rm -rf conftest*
914  CPP="${CC-cc} -nologo -E"
915  cat > conftest.$ac_ext <<EOF
916#line 917 "configure"
917#include "confdefs.h"
918#include <assert.h>
919Syntax Error
920EOF
921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922{ (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924if test -z "$ac_err"; then
925  :
926else
927  echo "$ac_err" >&5
928  echo "configure: failed program was:" >&5
929  cat conftest.$ac_ext >&5
930  rm -rf conftest*
931  CPP=/lib/cpp
932fi
933rm -f conftest*
934fi
935rm -f conftest*
936fi
937rm -f conftest*
938  ac_cv_prog_CPP="$CPP"
939fi
940  CPP="$ac_cv_prog_CPP"
941else
942  ac_cv_prog_CPP="$CPP"
943fi
944echo "$ac_t""$CPP" 1>&6
945
946if test $ac_cv_prog_gcc = yes; then
947    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
948echo "configure:949: checking whether ${CC-cc} needs -traditional" >&5
949if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
950  echo $ac_n "(cached) $ac_c" 1>&6
951else
952    ac_pattern="Autoconf.*'x'"
953  cat > conftest.$ac_ext <<EOF
954#line 955 "configure"
955#include "confdefs.h"
956#include <sgtty.h>
957Autoconf TIOCGETP
958EOF
959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
960  egrep "$ac_pattern" >/dev/null 2>&1; then
961  rm -rf conftest*
962  ac_cv_prog_gcc_traditional=yes
963else
964  rm -rf conftest*
965  ac_cv_prog_gcc_traditional=no
966fi
967rm -f conftest*
968
969
970  if test $ac_cv_prog_gcc_traditional = no; then
971    cat > conftest.$ac_ext <<EOF
972#line 973 "configure"
973#include "confdefs.h"
974#include <termio.h>
975Autoconf TCGETA
976EOF
977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
978  egrep "$ac_pattern" >/dev/null 2>&1; then
979  rm -rf conftest*
980  ac_cv_prog_gcc_traditional=yes
981fi
982rm -f conftest*
983
984  fi
985fi
986
987echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
988  if test $ac_cv_prog_gcc_traditional = yes; then
989    CC="$CC -traditional"
990  fi
991fi
992
993echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
994echo "configure:995: checking for POSIXized ISC" >&5
995if test -d /etc/conf/kconfig.d &&
996  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
997then
998  echo "$ac_t""yes" 1>&6
999  ISC=yes # If later tests want to check for ISC.
1000  cat >> confdefs.h <<\EOF
1001#define _POSIX_SOURCE 1
1002EOF
1003
1004  if test "$GCC" = yes; then
1005    CC="$CC -posix"
1006  else
1007    CC="$CC -Xp"
1008  fi
1009else
1010  echo "$ac_t""no" 1>&6
1011  ISC=
1012fi
1013
1014echo $ac_n "checking for AIX""... $ac_c" 1>&6
1015echo "configure:1016: checking for AIX" >&5
1016cat > conftest.$ac_ext <<EOF
1017#line 1018 "configure"
1018#include "confdefs.h"
1019#ifdef _AIX
1020  yes
1021#endif
1022
1023EOF
1024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1025  egrep "yes" >/dev/null 2>&1; then
1026  rm -rf conftest*
1027  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1028#define _ALL_SOURCE 1
1029EOF
1030
1031else
1032  rm -rf conftest*
1033  echo "$ac_t""no" 1>&6
1034fi
1035rm -f conftest*
1036
1037
1038
1039cat > conftest.$ac_ext <<EOF
1040#line 1041 "configure"
1041#include "confdefs.h"
1042#ifdef hpux
1043  yes
1044#endif
1045
1046EOF
1047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1048  egrep "yes" >/dev/null 2>&1; then
1049  rm -rf conftest*
1050
1051cat >> confdefs.h <<\EOF
1052#define _HPUX_SOURCE 1
1053EOF
1054
1055if test "$CC" = cc; then CC="cc -Ae"; fi
1056
1057fi
1058rm -f conftest*
1059echo $ac_n "checking C compiler that understands ANSI prototypes""... $ac_c" 1>&6
1060echo "configure:1061: checking C compiler that understands ANSI prototypes" >&5
1061cat > conftest.$ac_ext <<EOF
1062#line 1063 "configure"
1063#include "confdefs.h"
1064 
1065int main() {
1066
1067 extern int silly (int);
1068; return 0; }
1069EOF
1070if { (eval echo configure:1071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1071  rm -rf conftest*
1072
1073 echo "$ac_t""$CC looks ok.  Good." 1>&6
1074else
1075  echo "configure: failed program was:" >&5
1076  cat conftest.$ac_ext >&5
1077  rm -rf conftest*
1078
1079 echo "$ac_t""$CC is not a good enough compiler" 1>&6
1080 { echo "configure: error: Set env variable CC to your ANSI compiler and rerun configure." 1>&2; exit 1; }
1081
1082fi
1083rm -f conftest*
1084
1085echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1086echo "configure:1087: checking whether ${MAKE-make} sets \${MAKE}" >&5
1087set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1088if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1089  echo $ac_n "(cached) $ac_c" 1>&6
1090else
1091  cat > conftestmake <<\EOF
1092all:
1093	@echo 'ac_maketemp="${MAKE}"'
1094EOF
1095# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1096eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1097if test -n "$ac_maketemp"; then
1098  eval ac_cv_prog_make_${ac_make}_set=yes
1099else
1100  eval ac_cv_prog_make_${ac_make}_set=no
1101fi
1102rm -f conftestmake
1103fi
1104if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1105  echo "$ac_t""yes" 1>&6
1106  SET_MAKE=
1107else
1108  echo "$ac_t""no" 1>&6
1109  SET_MAKE="MAKE=${MAKE-make}"
1110fi
1111
1112# Extract the first word of "ranlib", so it can be a program name with args.
1113set dummy ranlib; ac_word=$2
1114echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1115echo "configure:1116: checking for $ac_word" >&5
1116if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1117  echo $ac_n "(cached) $ac_c" 1>&6
1118else
1119  if test -n "$RANLIB"; then
1120  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1121else
1122  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1123  ac_dummy="$PATH"
1124  for ac_dir in $ac_dummy; do
1125    test -z "$ac_dir" && ac_dir=.
1126    if test -f $ac_dir/$ac_word; then
1127      ac_cv_prog_RANLIB="ranlib"
1128      break
1129    fi
1130  done
1131  IFS="$ac_save_ifs"
1132  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1133fi
1134fi
1135RANLIB="$ac_cv_prog_RANLIB"
1136if test -n "$RANLIB"; then
1137  echo "$ac_t""$RANLIB" 1>&6
1138else
1139  echo "$ac_t""no" 1>&6
1140fi
1141
1142# Find a good install program.  We prefer a C program (faster),
1143# so one script is as good as another.  But avoid the broken or
1144# incompatible versions:
1145# SysV /etc/install, /usr/sbin/install
1146# SunOS /usr/etc/install
1147# IRIX /sbin/install
1148# AIX /bin/install
1149# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1150# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1151# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1152# ./install, which can be erroneously created by make from ./install.sh.
1153echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1154echo "configure:1155: checking for a BSD compatible install" >&5
1155if test -z "$INSTALL"; then
1156if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1157  echo $ac_n "(cached) $ac_c" 1>&6
1158else
1159    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1160  for ac_dir in $PATH; do
1161    # Account for people who put trailing slashes in PATH elements.
1162    case "$ac_dir/" in
1163    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1164    *)
1165      # OSF1 and SCO ODT 3.0 have their own names for install.
1166      # Don't use installbsd from OSF since it installs stuff as root
1167      # by default.
1168      for ac_prog in ginstall scoinst install; do
1169        if test -f $ac_dir/$ac_prog; then
1170	  if test $ac_prog = install &&
1171            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1172	    # AIX install.  It has an incompatible calling convention.
1173	    :
1174	  else
1175	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1176	    break 2
1177	  fi
1178	fi
1179      done
1180      ;;
1181    esac
1182  done
1183  IFS="$ac_save_IFS"
1184
1185fi
1186  if test "${ac_cv_path_install+set}" = set; then
1187    INSTALL="$ac_cv_path_install"
1188  else
1189    # As a last resort, use the slow shell script.  We don't cache a
1190    # path for INSTALL within a source directory, because that will
1191    # break other packages using the cache if that directory is
1192    # removed, or if the path is relative.
1193    INSTALL="$ac_install_sh"
1194  fi
1195fi
1196echo "$ac_t""$INSTALL" 1>&6
1197
1198# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1199# It thinks the first close brace ends the variable substitution.
1200test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1201
1202test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1203
1204test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1205
1206
1207#Check these header since they cause trouble
1208for ac_hdr in \
1209stdlib.h \
1210unistd.h \
1211memory.h \
1212termios.h \
1213malloc.h \
1214locale.h \
1215fcntl.h \
1216sys/fcntl.h \
1217sys/types.h \
1218sys/wait.h \
1219sys/utsname.h \
1220sys/times.h \
1221
1222do
1223ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1224echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1225echo "configure:1226: checking for $ac_hdr" >&5
1226if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1227  echo $ac_n "(cached) $ac_c" 1>&6
1228else
1229  cat > conftest.$ac_ext <<EOF
1230#line 1231 "configure"
1231#include "confdefs.h"
1232#include <$ac_hdr>
1233EOF
1234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235{ (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237if test -z "$ac_err"; then
1238  rm -rf conftest*
1239  eval "ac_cv_header_$ac_safe=yes"
1240else
1241  echo "$ac_err" >&5
1242  echo "configure: failed program was:" >&5
1243  cat conftest.$ac_ext >&5
1244  rm -rf conftest*
1245  eval "ac_cv_header_$ac_safe=no"
1246fi
1247rm -f conftest*
1248fi
1249if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1250  echo "$ac_t""yes" 1>&6
1251    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1252  cat >> confdefs.h <<EOF
1253#define $ac_tr_hdr 1
1254EOF
1255
1256else
1257  echo "$ac_t""no" 1>&6
1258fi
1259done
1260
1261
1262echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1263echo "configure:1264: checking for ANSI C header files" >&5
1264if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1265  echo $ac_n "(cached) $ac_c" 1>&6
1266else
1267  cat > conftest.$ac_ext <<EOF
1268#line 1269 "configure"
1269#include "confdefs.h"
1270#include <stdlib.h>
1271#include <stdarg.h>
1272#include <string.h>
1273#include <float.h>
1274EOF
1275ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276{ (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278if test -z "$ac_err"; then
1279  rm -rf conftest*
1280  ac_cv_header_stdc=yes
1281else
1282  echo "$ac_err" >&5
1283  echo "configure: failed program was:" >&5
1284  cat conftest.$ac_ext >&5
1285  rm -rf conftest*
1286  ac_cv_header_stdc=no
1287fi
1288rm -f conftest*
1289
1290if test $ac_cv_header_stdc = yes; then
1291  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1292cat > conftest.$ac_ext <<EOF
1293#line 1294 "configure"
1294#include "confdefs.h"
1295#include <string.h>
1296EOF
1297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1298  egrep "memchr" >/dev/null 2>&1; then
1299  :
1300else
1301  rm -rf conftest*
1302  ac_cv_header_stdc=no
1303fi
1304rm -f conftest*
1305
1306fi
1307
1308if test $ac_cv_header_stdc = yes; then
1309  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1310cat > conftest.$ac_ext <<EOF
1311#line 1312 "configure"
1312#include "confdefs.h"
1313#include <stdlib.h>
1314EOF
1315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1316  egrep "free" >/dev/null 2>&1; then
1317  :
1318else
1319  rm -rf conftest*
1320  ac_cv_header_stdc=no
1321fi
1322rm -f conftest*
1323
1324fi
1325
1326if test $ac_cv_header_stdc = yes; then
1327  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1328if test "$cross_compiling" = yes; then
1329  :
1330else
1331  cat > conftest.$ac_ext <<EOF
1332#line 1333 "configure"
1333#include "confdefs.h"
1334#include <ctype.h>
1335#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1336#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1337#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1338int main () { int i; for (i = 0; i < 256; i++)
1339if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1340exit (0); }
1341
1342EOF
1343if { (eval echo configure:1344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1344then
1345  :
1346else
1347  echo "configure: failed program was:" >&5
1348  cat conftest.$ac_ext >&5
1349  rm -fr conftest*
1350  ac_cv_header_stdc=no
1351fi
1352rm -fr conftest*
1353fi
1354
1355fi
1356fi
1357
1358echo "$ac_t""$ac_cv_header_stdc" 1>&6
1359if test $ac_cv_header_stdc = yes; then
1360  cat >> confdefs.h <<\EOF
1361#define STDC_HEADERS 1
1362EOF
1363
1364fi
1365
1366echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1367echo "configure:1368: checking for mode_t" >&5
1368if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1369  echo $ac_n "(cached) $ac_c" 1>&6
1370else
1371  cat > conftest.$ac_ext <<EOF
1372#line 1373 "configure"
1373#include "confdefs.h"
1374#include <sys/types.h>
1375#if STDC_HEADERS
1376#include <stdlib.h>
1377#include <stddef.h>
1378#endif
1379EOF
1380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1381  egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1382  rm -rf conftest*
1383  ac_cv_type_mode_t=yes
1384else
1385  rm -rf conftest*
1386  ac_cv_type_mode_t=no
1387fi
1388rm -f conftest*
1389
1390fi
1391echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1392if test $ac_cv_type_mode_t = no; then
1393  cat >> confdefs.h <<\EOF
1394#define mode_t int
1395EOF
1396
1397fi
1398
1399echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1400echo "configure:1401: checking for pid_t" >&5
1401if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1402  echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404  cat > conftest.$ac_ext <<EOF
1405#line 1406 "configure"
1406#include "confdefs.h"
1407#include <sys/types.h>
1408#if STDC_HEADERS
1409#include <stdlib.h>
1410#include <stddef.h>
1411#endif
1412EOF
1413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1414  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1415  rm -rf conftest*
1416  ac_cv_type_pid_t=yes
1417else
1418  rm -rf conftest*
1419  ac_cv_type_pid_t=no
1420fi
1421rm -f conftest*
1422
1423fi
1424echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1425if test $ac_cv_type_pid_t = no; then
1426  cat >> confdefs.h <<\EOF
1427#define pid_t int
1428EOF
1429
1430fi
1431
1432echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1433echo "configure:1434: checking for uid_t in sys/types.h" >&5
1434if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
1435  echo $ac_n "(cached) $ac_c" 1>&6
1436else
1437  cat > conftest.$ac_ext <<EOF
1438#line 1439 "configure"
1439#include "confdefs.h"
1440#include <sys/types.h>
1441EOF
1442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443  egrep "uid_t" >/dev/null 2>&1; then
1444  rm -rf conftest*
1445  ac_cv_type_uid_t=yes
1446else
1447  rm -rf conftest*
1448  ac_cv_type_uid_t=no
1449fi
1450rm -f conftest*
1451
1452fi
1453
1454echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1455if test $ac_cv_type_uid_t = no; then
1456  cat >> confdefs.h <<\EOF
1457#define uid_t int
1458EOF
1459
1460  cat >> confdefs.h <<\EOF
1461#define gid_t int
1462EOF
1463
1464fi
1465
1466
1467ac_header_dirent=no
1468for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1469do
1470ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1471echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1472echo "configure:1473: checking for $ac_hdr that defines DIR" >&5
1473if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1474  echo $ac_n "(cached) $ac_c" 1>&6
1475else
1476  cat > conftest.$ac_ext <<EOF
1477#line 1478 "configure"
1478#include "confdefs.h"
1479#include <sys/types.h>
1480#include <$ac_hdr>
1481int main() {
1482DIR *dirp = 0;
1483; return 0; }
1484EOF
1485if { (eval echo configure:1486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1486  rm -rf conftest*
1487  eval "ac_cv_header_dirent_$ac_safe=yes"
1488else
1489  echo "configure: failed program was:" >&5
1490  cat conftest.$ac_ext >&5
1491  rm -rf conftest*
1492  eval "ac_cv_header_dirent_$ac_safe=no"
1493fi
1494rm -f conftest*
1495fi
1496if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1497  echo "$ac_t""yes" 1>&6
1498    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1499  cat >> confdefs.h <<EOF
1500#define $ac_tr_hdr 1
1501EOF
1502 ac_header_dirent=$ac_hdr; break
1503else
1504  echo "$ac_t""no" 1>&6
1505fi
1506done
1507# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1508if test $ac_header_dirent = dirent.h; then
1509echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1510echo "configure:1511: checking for opendir in -ldir" >&5
1511ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513  echo $ac_n "(cached) $ac_c" 1>&6
1514else
1515  ac_save_LIBS="$LIBS"
1516LIBS="-ldir  $LIBS"
1517cat > conftest.$ac_ext <<EOF
1518#line 1519 "configure"
1519#include "confdefs.h"
1520/* Override any gcc2 internal prototype to avoid an error.  */
1521/* We use char because int might match the return type of a gcc2
1522    builtin and then its argument prototype would still apply.  */
1523char opendir();
1524
1525int main() {
1526opendir()
1527; return 0; }
1528EOF
1529if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1530  rm -rf conftest*
1531  eval "ac_cv_lib_$ac_lib_var=yes"
1532else
1533  echo "configure: failed program was:" >&5
1534  cat conftest.$ac_ext >&5
1535  rm -rf conftest*
1536  eval "ac_cv_lib_$ac_lib_var=no"
1537fi
1538rm -f conftest*
1539LIBS="$ac_save_LIBS"
1540
1541fi
1542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543  echo "$ac_t""yes" 1>&6
1544  LIBS="$LIBS -ldir"
1545else
1546  echo "$ac_t""no" 1>&6
1547fi
1548
1549else
1550echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1551echo "configure:1552: checking for opendir in -lx" >&5
1552ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1553if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1554  echo $ac_n "(cached) $ac_c" 1>&6
1555else
1556  ac_save_LIBS="$LIBS"
1557LIBS="-lx  $LIBS"
1558cat > conftest.$ac_ext <<EOF
1559#line 1560 "configure"
1560#include "confdefs.h"
1561/* Override any gcc2 internal prototype to avoid an error.  */
1562/* We use char because int might match the return type of a gcc2
1563    builtin and then its argument prototype would still apply.  */
1564char opendir();
1565
1566int main() {
1567opendir()
1568; return 0; }
1569EOF
1570if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1571  rm -rf conftest*
1572  eval "ac_cv_lib_$ac_lib_var=yes"
1573else
1574  echo "configure: failed program was:" >&5
1575  cat conftest.$ac_ext >&5
1576  rm -rf conftest*
1577  eval "ac_cv_lib_$ac_lib_var=no"
1578fi
1579rm -f conftest*
1580LIBS="$ac_save_LIBS"
1581
1582fi
1583if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584  echo "$ac_t""yes" 1>&6
1585  LIBS="$LIBS -lx"
1586else
1587  echo "$ac_t""no" 1>&6
1588fi
1589
1590fi
1591
1592
1593for ac_func in \
1594memset \
1595memcpy \
1596putenv \
1597getcwd \
1598setlocale \
1599tcgetattr \
1600tcsetattr \
1601cfgetospeed \
1602sigaction \
1603sigemptyset \
1604sigprocmask \
1605sigaddset \
1606vfscanf \
1607lstat readlink \
1608kill \
1609snprintf vsnprintf \
1610getppid getegid geteuid getgid setgid setpgid setuid \
1611chown popen mkfifo \
1612atexit on_exit umask uname \
1613times gmtime \
1614
1615do
1616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1617echo "configure:1618: checking for $ac_func" >&5
1618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1619  echo $ac_n "(cached) $ac_c" 1>&6
1620else
1621  cat > conftest.$ac_ext <<EOF
1622#line 1623 "configure"
1623#include "confdefs.h"
1624/* System header to define __stub macros and hopefully few prototypes,
1625    which can conflict with char $ac_func(); below.  */
1626#include <assert.h>
1627/* Override any gcc2 internal prototype to avoid an error.  */
1628/* We use char because int might match the return type of a gcc2
1629    builtin and then its argument prototype would still apply.  */
1630char $ac_func();
1631
1632int main() {
1633
1634/* The GNU C library defines this for functions which it implements
1635    to always fail with ENOSYS.  Some functions are actually named
1636    something starting with __ and the normal name is an alias.  */
1637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1638choke me
1639#else
1640$ac_func();
1641#endif
1642
1643; return 0; }
1644EOF
1645if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1646  rm -rf conftest*
1647  eval "ac_cv_func_$ac_func=yes"
1648else
1649  echo "configure: failed program was:" >&5
1650  cat conftest.$ac_ext >&5
1651  rm -rf conftest*
1652  eval "ac_cv_func_$ac_func=no"
1653fi
1654rm -f conftest*
1655fi
1656
1657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1658  echo "$ac_t""yes" 1>&6
1659    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1660  cat >> confdefs.h <<EOF
1661#define $ac_tr_func 1
1662EOF
1663
1664else
1665  echo "$ac_t""no" 1>&6
1666fi
1667done
1668
1669
1670echo $ac_n "checking for acosh in -lm""... $ac_c" 1>&6
1671echo "configure:1672: checking for acosh in -lm" >&5
1672ac_lib_var=`echo m'_'acosh | sed 'y%./+-%__p_%'`
1673if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1674  echo $ac_n "(cached) $ac_c" 1>&6
1675else
1676  ac_save_LIBS="$LIBS"
1677LIBS="-lm  $LIBS"
1678cat > conftest.$ac_ext <<EOF
1679#line 1680 "configure"
1680#include "confdefs.h"
1681/* Override any gcc2 internal prototype to avoid an error.  */
1682/* We use char because int might match the return type of a gcc2
1683    builtin and then its argument prototype would still apply.  */
1684char acosh();
1685
1686int main() {
1687acosh()
1688; return 0; }
1689EOF
1690if { (eval echo configure:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1691  rm -rf conftest*
1692  eval "ac_cv_lib_$ac_lib_var=yes"
1693else
1694  echo "configure: failed program was:" >&5
1695  cat conftest.$ac_ext >&5
1696  rm -rf conftest*
1697  eval "ac_cv_lib_$ac_lib_var=no"
1698fi
1699rm -f conftest*
1700LIBS="$ac_save_LIBS"
1701
1702fi
1703if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1704  echo "$ac_t""yes" 1>&6
1705  cat >> confdefs.h <<\EOF
1706#define HAVE_ACOSH 1
1707EOF
1708
1709else
1710  echo "$ac_t""no" 1>&6
1711fi
1712
1713echo $ac_n "checking for asinh in -lm""... $ac_c" 1>&6
1714echo "configure:1715: checking for asinh in -lm" >&5
1715ac_lib_var=`echo m'_'asinh | sed 'y%./+-%__p_%'`
1716if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1717  echo $ac_n "(cached) $ac_c" 1>&6
1718else
1719  ac_save_LIBS="$LIBS"
1720LIBS="-lm  $LIBS"
1721cat > conftest.$ac_ext <<EOF
1722#line 1723 "configure"
1723#include "confdefs.h"
1724/* Override any gcc2 internal prototype to avoid an error.  */
1725/* We use char because int might match the return type of a gcc2
1726    builtin and then its argument prototype would still apply.  */
1727char asinh();
1728
1729int main() {
1730asinh()
1731; return 0; }
1732EOF
1733if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734  rm -rf conftest*
1735  eval "ac_cv_lib_$ac_lib_var=yes"
1736else
1737  echo "configure: failed program was:" >&5
1738  cat conftest.$ac_ext >&5
1739  rm -rf conftest*
1740  eval "ac_cv_lib_$ac_lib_var=no"
1741fi
1742rm -f conftest*
1743LIBS="$ac_save_LIBS"
1744
1745fi
1746if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1747  echo "$ac_t""yes" 1>&6
1748  cat >> confdefs.h <<\EOF
1749#define HAVE_ASINH 1
1750EOF
1751
1752else
1753  echo "$ac_t""no" 1>&6
1754fi
1755
1756echo $ac_n "checking for atanh in -lm""... $ac_c" 1>&6
1757echo "configure:1758: checking for atanh in -lm" >&5
1758ac_lib_var=`echo m'_'atanh | sed 'y%./+-%__p_%'`
1759if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1760  echo $ac_n "(cached) $ac_c" 1>&6
1761else
1762  ac_save_LIBS="$LIBS"
1763LIBS="-lm  $LIBS"
1764cat > conftest.$ac_ext <<EOF
1765#line 1766 "configure"
1766#include "confdefs.h"
1767/* Override any gcc2 internal prototype to avoid an error.  */
1768/* We use char because int might match the return type of a gcc2
1769    builtin and then its argument prototype would still apply.  */
1770char atanh();
1771
1772int main() {
1773atanh()
1774; return 0; }
1775EOF
1776if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1777  rm -rf conftest*
1778  eval "ac_cv_lib_$ac_lib_var=yes"
1779else
1780  echo "configure: failed program was:" >&5
1781  cat conftest.$ac_ext >&5
1782  rm -rf conftest*
1783  eval "ac_cv_lib_$ac_lib_var=no"
1784fi
1785rm -f conftest*
1786LIBS="$ac_save_LIBS"
1787
1788fi
1789if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1790  echo "$ac_t""yes" 1>&6
1791  cat >> confdefs.h <<\EOF
1792#define HAVE_ATANH 1
1793EOF
1794
1795else
1796  echo "$ac_t""no" 1>&6
1797fi
1798
1799
1800
1801DYNAMIC_LINK_LIB=""
1802ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
1803echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
1804echo "configure:1805: checking for dlfcn.h" >&5
1805if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1806  echo $ac_n "(cached) $ac_c" 1>&6
1807else
1808  cat > conftest.$ac_ext <<EOF
1809#line 1810 "configure"
1810#include "confdefs.h"
1811#include <dlfcn.h>
1812EOF
1813ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814{ (eval echo configure:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1815ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1816if test -z "$ac_err"; then
1817  rm -rf conftest*
1818  eval "ac_cv_header_$ac_safe=yes"
1819else
1820  echo "$ac_err" >&5
1821  echo "configure: failed program was:" >&5
1822  cat conftest.$ac_ext >&5
1823  rm -rf conftest*
1824  eval "ac_cv_header_$ac_safe=no"
1825fi
1826rm -f conftest*
1827fi
1828if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1829  echo "$ac_t""yes" 1>&6
1830
1831  cat >> confdefs.h <<\EOF
1832#define HAVE_DLFCN_H 1
1833EOF
1834
1835  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1836echo "configure:1837: checking for dlopen" >&5
1837ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1838if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1839  echo $ac_n "(cached) $ac_c" 1>&6
1840else
1841  ac_save_LIBS="$LIBS"
1842LIBS="-ldl  $LIBS"
1843cat > conftest.$ac_ext <<EOF
1844#line 1845 "configure"
1845#include "confdefs.h"
1846/* Override any gcc2 internal prototype to avoid an error.  */
1847/* We use char because int might match the return type of a gcc2
1848    builtin and then its argument prototype would still apply.  */
1849char dlopen();
1850
1851int main() {
1852dlopen()
1853; return 0; }
1854EOF
1855if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856  rm -rf conftest*
1857  eval "ac_cv_lib_$ac_lib_var=yes"
1858else
1859  echo "configure: failed program was:" >&5
1860  cat conftest.$ac_ext >&5
1861  rm -rf conftest*
1862  eval "ac_cv_lib_$ac_lib_var=no"
1863fi
1864rm -f conftest*
1865LIBS="$ac_save_LIBS"
1866
1867fi
1868if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1869  echo "$ac_t""yes" 1>&6
1870
1871    DYNAMIC_LINK_LIB=""
1872    cat >> confdefs.h <<\EOF
1873#define HAVE_DLOPEN 1
1874EOF
1875
1876
1877else
1878  echo "$ac_t""no" 1>&6
1879
1880    echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1881echo "configure:1882: checking for dlopen" >&5
1882if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
1883  echo $ac_n "(cached) $ac_c" 1>&6
1884else
1885  cat > conftest.$ac_ext <<EOF
1886#line 1887 "configure"
1887#include "confdefs.h"
1888/* System header to define __stub macros and hopefully few prototypes,
1889    which can conflict with char dlopen(); below.  */
1890#include <assert.h>
1891/* Override any gcc2 internal prototype to avoid an error.  */
1892/* We use char because int might match the return type of a gcc2
1893    builtin and then its argument prototype would still apply.  */
1894char dlopen();
1895
1896int main() {
1897
1898/* The GNU C library defines this for functions which it implements
1899    to always fail with ENOSYS.  Some functions are actually named
1900    something starting with __ and the normal name is an alias.  */
1901#if defined (__stub_dlopen) || defined (__stub___dlopen)
1902choke me
1903#else
1904dlopen();
1905#endif
1906
1907; return 0; }
1908EOF
1909if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1910  rm -rf conftest*
1911  eval "ac_cv_func_dlopen=yes"
1912else
1913  echo "configure: failed program was:" >&5
1914  cat conftest.$ac_ext >&5
1915  rm -rf conftest*
1916  eval "ac_cv_func_dlopen=no"
1917fi
1918rm -f conftest*
1919fi
1920
1921if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
1922  echo "$ac_t""yes" 1>&6
1923  cat >> confdefs.h <<\EOF
1924#define HAVE_DLOPEN 1
1925EOF
1926
1927else
1928  echo "$ac_t""no" 1>&6
1929fi
1930
1931    if test "$ac_cv_func_dlopen" != yes
1932    then
1933      echo "configure: warning: cannot perform dynamic linking" 1>&2
1934    fi
1935
1936fi
1937
1938else
1939  echo "$ac_t""no" 1>&6
1940fi
1941
1942
1943
1944ELFLIB="lib\$(THIS_LIB).so"
1945ELFLIB_MAJOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
1946ELFLIB_MAJOR_MINOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)"
1947
1948case "$host_os" in
1949  *linux* )
1950    DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic"
1951    ELF_CC="gcc"
1952    ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC"
1953    ELF_LINK="gcc -shared -Wl,-soname#"
1954    ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)"
1955    ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
1956    CC_SHARED="gcc \$(CFLAGS) -shared -fPIC"
1957    ;;
1958  *solaris* )
1959    if test "$GCC" = yes
1960    then
1961      DYNAMIC_LINK_FLAGS=""
1962      ELF_CC="gcc"
1963      ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC"
1964      ELF_LINK="gcc -shared -Wl,-ztext -Wl,-h#"
1965      ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)"
1966      ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
1967      CC_SHARED="gcc \$(CFLAGS) -G -fPIC"
1968    else
1969      DYNAMIC_LINK_FLAGS=""
1970      ELF_CC="cc"
1971      ELF_CFLAGS="-K pic"
1972      ELF_LINK="cc -G -h#"
1973      ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)"
1974      ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
1975      CC_SHARED="cc \$(CFLAGS) -G -K pic"
1976    fi
1977    ;;
1978   # osr5 or unixware7 with current or late autoconf
1979  *sco3.2v5* | *unixware-5* | *sco-sysv5uw7*)
1980     if test "$GCC" = yes
1981     then
1982       DYNAMIC_LINK_FLAGS=""
1983       ELF_CC="gcc"
1984       ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC"
1985       ELF_LINK="gcc -shared -Wl,-h#"
1986       ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)"
1987       ELF_DEP_LIBS=
1988       CC_SHARED="gcc \$(CFLAGS) -G -fPIC"
1989     else
1990       DYNAMIC_LINK_FLAGS=""
1991       ELF_CC="cc"
1992       ELF_CFLAGS="-K pic"
1993       # ELF_LINK="ld -G -z text -h#"
1994       ELF_LINK="cc -G -z text -h#"
1995       ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)"
1996       ELF_DEP_LIBS=
1997       CC_SHARED="cc \$(CFLAGS) -G -K pic"
1998     fi
1999     ;;
2000  *irix6.5* )
2001     echo "Note: ELF compiler for host_os=$host_os may not be correct"
2002     echo "double-check: 'mode_t', 'pid_t' may be wrong!"
2003     if test "$GCC" = yes
2004     then
2005       # not tested
2006       DYNAMIC_LINK_FLAGS=""
2007       ELF_CC="gcc"
2008       ELF_CFLAGS="-O2 -fno-strength-reduce -fPIC"
2009       ELF_LINK="gcc -shared -Wl,-h#"
2010       ELF_LINK_CMD="\$(ELF_LINK),\$(ELFLIB_MAJOR)"
2011       ELF_DEP_LIBS=
2012       CC_SHARED="gcc \$(CFLAGS) -shared -fPIC"
2013     else
2014       DYNAMIC_LINK_FLAGS=""
2015       ELF_CC="cc"
2016       ELF_CFLAGS="-K pic"     # default anyhow
2017       ELF_LINK="cc -shared -o #"
2018       ELF_LINK_CMD="\$(ELF_LINK)\$(ELFLIB_MAJOR)"
2019       ELF_DEP_LIBS=
2020       CC_SHARED="cc \$(CFLAGS) -shared -K pic"
2021     fi
2022     ;;
2023  *darwin* )
2024     DYNAMIC_LINK_FLAGS=""
2025     ELF_CC="cc"
2026     ELF_CFLAGS="$CFLAGS -O2 -fno-strength-reduce -fno-common"
2027     ELF_LINK="cc -dynamiclib"
2028     ELF_LINK_CMD="\$(ELF_LINK) -install_name \$(install_lib_dir)/\$(ELFLIB_MAJOR) -compatibility_version \$(ELF_MAJOR_VERSION) -current_version \$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)"
2029     ELF_DEP_LIBS="$LDFLAGS \$(DL_LIB)"
2030     CC_SHARED="cc -bundle -flat_namespace -undefined suppress \$(CFLAGS) -fno-common"
2031     ELFLIB="lib$(THIS_LIB).dylib"
2032     ELFLIB_MAJOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).dylib"
2033     ELFLIB_MAJOR_MINOR="lib$(THIS_LIB).$(ELF_MAJOR_VERSION).$(ELF_MINOR_VERSION).dylib"
2034     ;;
2035  *freebsd*  | *dragonfly* )
2036       ELF_CC="\$(CC)"
2037       ELF_CFLAGS="\$(CFLAGS) -fPIC"
2038       ELF_LINK="\$(CC) -shared -Wl,-soname,\$(ELFLIB_MAJOR)"
2039       ELF_LINK_CMD="\$(ELF_LINK)"
2040     ;;
2041  * )
2042    echo "Note: ELF compiler for host_os=$host_os may be wrong"
2043    ELF_CC="$CC"
2044    ELF_CFLAGS="$CFLAGS -fPIC"
2045    ELF_LINK="$CC -shared"
2046    ELF_LINK_CMD="\$(ELF_LINK)"
2047    ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
2048    CC_SHARED="$CC $CFLAGS -shared -fPIC"
2049esac
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063case "$host_cpu" in
2064  *alpha* )
2065    if test "$GCC" = yes
2066    then
2067      IEEE_CFLAGS="-mieee"
2068    else
2069      IEEE_CFLAGS="-ieee_with_no_inexact"
2070    fi
2071    ;;
2072  * )
2073    IEEE_CFLAGS=""
2074esac
2075
2076
2077ELF_CFLAGS="$ELF_CFLAGS $IEEE_CFLAGS"
2078CFLAGS="$CFLAGS $IEEE_CFLAGS"
2079
2080
2081if test "X$libdir" != "X"
2082then
2083  if test "X$RPATH" = "X"
2084  then
2085
2086case "$host_os" in
2087  *linux*|*solaris* )
2088    if test "X$GCC" = Xyes
2089    then
2090      if test "X$ac_R_nospace" = "Xno"
2091      then
2092        RPATH="-Wl,-R,"
2093      else
2094        RPATH="-Wl,-R"
2095      fi
2096    else
2097      if test "X$ac_R_nospace" = "Xno"
2098      then
2099        RPATH="-R "
2100      else
2101	RPATH="-R"
2102      fi
2103    fi
2104  ;;
2105  *osf*)
2106    if test "X$GCC" = Xyes
2107    then
2108      RPATH="-Wl,-rpath,"
2109    else
2110      RPATH="-rpath "
2111    fi
2112  ;;
2113esac
2114
2115    if test "X$RPATH" != "X"
2116    then
2117      RPATH="$RPATH$libdir"
2118    fi
2119  else
2120    RPATH="$RPATH:$libdir"
2121  fi
2122fi
2123
2124
2125echo $ac_n "checking size of short""... $ac_c" 1>&6
2126echo "configure:2121: checking size of short" >&5
2127if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2128  echo $ac_n "(cached) $ac_c" 1>&6
2129else
2130  if test "$cross_compiling" = yes; then
2131  ac_cv_sizeof_short=2
2132else
2133  cat > conftest.$ac_ext <<EOF
2134#line 2129 "configure"
2135#include "confdefs.h"
2136#include <stdio.h>
2137main()
2138{
2139  FILE *f=fopen("conftestval", "w");
2140  if (!f) exit(1);
2141  fprintf(f, "%d\n", sizeof(short));
2142  exit(0);
2143}
2144EOF
2145if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2146then
2147  ac_cv_sizeof_short=`cat conftestval`
2148else
2149  echo "configure: failed program was:" >&5
2150  cat conftest.$ac_ext >&5
2151  rm -fr conftest*
2152  ac_cv_sizeof_short=0
2153fi
2154rm -fr conftest*
2155fi
2156
2157fi
2158echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2159cat >> confdefs.h <<EOF
2160#define SIZEOF_SHORT $ac_cv_sizeof_short
2161EOF
2162
2163
2164echo $ac_n "checking size of int""... $ac_c" 1>&6
2165echo "configure:2160: checking size of int" >&5
2166if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2167  echo $ac_n "(cached) $ac_c" 1>&6
2168else
2169  if test "$cross_compiling" = yes; then
2170  ac_cv_sizeof_int=4
2171else
2172  cat > conftest.$ac_ext <<EOF
2173#line 2168 "configure"
2174#include "confdefs.h"
2175#include <stdio.h>
2176main()
2177{
2178  FILE *f=fopen("conftestval", "w");
2179  if (!f) exit(1);
2180  fprintf(f, "%d\n", sizeof(int));
2181  exit(0);
2182}
2183EOF
2184if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2185then
2186  ac_cv_sizeof_int=`cat conftestval`
2187else
2188  echo "configure: failed program was:" >&5
2189  cat conftest.$ac_ext >&5
2190  rm -fr conftest*
2191  ac_cv_sizeof_int=0
2192fi
2193rm -fr conftest*
2194fi
2195
2196fi
2197echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2198cat >> confdefs.h <<EOF
2199#define SIZEOF_INT $ac_cv_sizeof_int
2200EOF
2201
2202
2203echo $ac_n "checking size of long""... $ac_c" 1>&6
2204echo "configure:2199: checking size of long" >&5
2205if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2206  echo $ac_n "(cached) $ac_c" 1>&6
2207else
2208  if test "$cross_compiling" = yes; then
2209  ac_cv_sizeof_long=4
2210else
2211  cat > conftest.$ac_ext <<EOF
2212#line 2207 "configure"
2213#include "confdefs.h"
2214#include <stdio.h>
2215main()
2216{
2217  FILE *f=fopen("conftestval", "w");
2218  if (!f) exit(1);
2219  fprintf(f, "%d\n", sizeof(long));
2220  exit(0);
2221}
2222EOF
2223if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2224then
2225  ac_cv_sizeof_long=`cat conftestval`
2226else
2227  echo "configure: failed program was:" >&5
2228  cat conftest.$ac_ext >&5
2229  rm -fr conftest*
2230  ac_cv_sizeof_long=0
2231fi
2232rm -fr conftest*
2233fi
2234
2235fi
2236echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2237cat >> confdefs.h <<EOF
2238#define SIZEOF_LONG $ac_cv_sizeof_long
2239EOF
2240
2241
2242echo $ac_n "checking size of float""... $ac_c" 1>&6
2243echo "configure:2238: checking size of float" >&5
2244if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2245  echo $ac_n "(cached) $ac_c" 1>&6
2246else
2247  if test "$cross_compiling" = yes; then
2248  ac_cv_sizeof_float=4
2249else
2250  cat > conftest.$ac_ext <<EOF
2251#line 2246 "configure"
2252#include "confdefs.h"
2253#include <stdio.h>
2254main()
2255{
2256  FILE *f=fopen("conftestval", "w");
2257  if (!f) exit(1);
2258  fprintf(f, "%d\n", sizeof(float));
2259  exit(0);
2260}
2261EOF
2262if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2263then
2264  ac_cv_sizeof_float=`cat conftestval`
2265else
2266  echo "configure: failed program was:" >&5
2267  cat conftest.$ac_ext >&5
2268  rm -fr conftest*
2269  ac_cv_sizeof_float=0
2270fi
2271rm -fr conftest*
2272fi
2273
2274fi
2275echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2276cat >> confdefs.h <<EOF
2277#define SIZEOF_FLOAT $ac_cv_sizeof_float
2278EOF
2279
2280
2281echo $ac_n "checking size of double""... $ac_c" 1>&6
2282echo "configure:2277: checking size of double" >&5
2283if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2284  echo $ac_n "(cached) $ac_c" 1>&6
2285else
2286  if test "$cross_compiling" = yes; then
2287  ac_cv_sizeof_double=8
2288else
2289  cat > conftest.$ac_ext <<EOF
2290#line 2285 "configure"
2291#include "confdefs.h"
2292#include <stdio.h>
2293main()
2294{
2295  FILE *f=fopen("conftestval", "w");
2296  if (!f) exit(1);
2297  fprintf(f, "%d\n", sizeof(double));
2298  exit(0);
2299}
2300EOF
2301if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2302then
2303  ac_cv_sizeof_double=`cat conftestval`
2304else
2305  echo "configure: failed program was:" >&5
2306  cat conftest.$ac_ext >&5
2307  rm -fr conftest*
2308  ac_cv_sizeof_double=0
2309fi
2310rm -fr conftest*
2311fi
2312
2313fi
2314echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2315cat >> confdefs.h <<EOF
2316#define SIZEOF_DOUBLE $ac_cv_sizeof_double
2317EOF
2318
2319
2320
2321
2322echo $ac_n "checking for Terminfo""... $ac_c" 1>&6
2323echo "configure:2318: checking for Terminfo" >&5
2324MISC_TERMINFO_DIRS="$FINKPREFIX/share/terminfo"
2325if test ! -d $MISC_TERMINFO_DIRS
2326then
2327   MISC_TERMINFO_DIRS=""
2328fi
2329
2330JD_Terminfo_Dirs="/usr/lib/terminfo \
2331                 /usr/share/terminfo \
2332                 /usr/share/lib/terminfo \
2333		 /usr/local/lib/terminfo \
2334		 $MISC_TERMINFO_DIRS"
2335
2336TERMCAP=-ltermcap
2337
2338for terminfo_dir in $JD_Terminfo_Dirs
2339do
2340   if test -d $terminfo_dir
2341   then
2342      echo "$ac_t""yes" 1>&6
2343      TERMCAP=""
2344      break
2345   fi
2346done
2347if test "$TERMCAP"; then
2348  echo "$ac_t""no" 1>&6
2349  cat >> confdefs.h <<\EOF
2350#define USE_TERMCAP 1
2351EOF
2352
2353fi
2354
2355
2356# Check whether --enable-warnings or --disable-warnings was given.
2357if test "${enable_warnings+set}" = set; then
2358  enableval="$enable_warnings"
2359  gcc_warnings=$enableval
2360fi
2361
2362if test -n "$GCC"
2363then
2364  CFLAGS="$CFLAGS -fno-strength-reduce"
2365  if test -n "$gcc_warnings"
2366  then
2367    CFLAGS="$CFLAGS -Wall -W -pedantic -Winline -Wmissing-prototypes \
2368 -Wnested-externs -Wpointer-arith -Wcast-align -Wshadow -Wstrict-prototypes"
2369    # Now trim excess whitespace
2370    CFLAGS=`echo $CFLAGS`
2371  fi
2372fi
2373
2374
2375
2376#---------------------------------------------------------------------------
2377# Set the source directory and object directory.   The makefile assumes an
2378# abcolute path name.  This is because src/Makefile cds to OBJDIR and compiles
2379# the src file which is in SRCDIR
2380#---------------------------------------------------------------------------
2381SRCDIR=$CONFIG_DIR
2382if test "src" != "."
2383then
2384  if test -z "src"
2385  then
2386    SRCDIR=$SRCDIR/src
2387  else
2388    SRCDIR=$SRCDIR/src
2389  fi
2390fi
2391
2392OBJDIR=$SRCDIR/"$ARCH"objs
2393ELFDIR=$SRCDIR/elf"$ARCH"objs
2394
2395
2396
2397 PROGRAM_HFILES=""
2398 PROGRAM_OFILES=""
2399 PROGRAM_CFILES=""
2400 PROGRAM_OBJECTS=""
2401 PROGRAM_ELFOBJECTS=""
2402 PROGRAM_OBJECT_RULES=""
2403 PROGRAM_ELF_ORULES=""
2404 if test -z "src/modules.unx"
2405 then
2406   Program_Modules=""
2407 else
2408   comment_re="^#"
2409   Program_Modules=`grep -v '$comment_re' src/modules.unx | awk '{print $1}'`
2410   Program_H_Modules=`grep -v '$comment_re' src/modules.unx | awk '{print $2}'`
2411   for program_module in $Program_H_Modules; do
2412     PROGRAM_HFILES="$PROGRAM_HFILES $program_module"
2413   done
2414 fi
2415 for program_module in $Program_Modules; do
2416   PROGRAM_OFILES="$PROGRAM_OFILES $program_module.o"
2417   PROGRAM_CFILES="$PROGRAM_CFILES $program_module.c"
2418   PROGRAM_OBJECTS="$PROGRAM_OBJECTS \$(OBJDIR)/$program_module.o"
2419   PROGRAM_ELFOBJECTS="$PROGRAM_ELFOBJECTS \$(ELFDIR)/$program_module.o"
2420 done
2421
2422
2423 for program_module in $Program_Modules; do
2424
2425PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
2426\$(OBJDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$("$program_module"_O_DEP)
2427	cd \$(OBJDIR); \$(COMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
2428"
2429
2430
2431PROGRAM_ELF_ORULES="$PROGRAM_ELF_ORULES
2432\$(ELFDIR)/$program_module.o : \$(SRCDIR)/$program_module.c \$(DOT_O_DEPS) \$("$program_module"_O_DEP)
2433	cd \$(ELFDIR); \$(ELFCOMPILE_CMD) \$("$program_module"_C_FLAGS) \$(SRCDIR)/$program_module.c
2434"
2435
2436 done
2437
2438
2439echo $ac_n "checking SLANG_VERSION""... $ac_c" 1>&6
2440echo "configure:2435: checking SLANG_VERSION" >&5
2441slang_major_version=2
2442slang_minor_version=5
2443slang_version="$slang_major_version.$slang_minor_version"
2444echo "$ac_t""$slang_version" 1>&6
2445
2446
2447
2448
2449
2450
2451subdirs="demo"
2452
2453
2454trap '' 1 2 15
2455cat > confcache <<\EOF
2456# This file is a shell script that caches the results of configure
2457# tests run on this system so they can be shared between configure
2458# scripts and configure runs.  It is not useful on other systems.
2459# If it contains results you don't want to keep, you may remove or edit it.
2460#
2461# By default, configure uses ./config.cache as the cache file,
2462# creating it if it does not exist already.  You can give configure
2463# the --cache-file=FILE option to use a different cache file; that is
2464# what configure does when it calls configure scripts in
2465# subdirectories, so they share the cache.
2466# Giving --cache-file=/dev/null disables caching, for debugging configure.
2467# config.status only pays attention to the cache file if you give it the
2468# --recheck option to rerun configure.
2469#
2470EOF
2471# The following way of writing the cache mishandles newlines in values,
2472# but we know of no workaround that is simple, portable, and efficient.
2473# So, don't put newlines in cache variables' values.
2474# Ultrix sh set writes to stderr and can't be redirected directly,
2475# and sets the high bit in the cache file unless we assign to the vars.
2476(set) 2>&1 |
2477  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2478  *ac_space=\ *)
2479    # `set' does not quote correctly, so add quotes (double-quote substitution
2480    # turns \\\\ into \\, and sed turns \\ into \).
2481    sed -n \
2482      -e "s/'/'\\\\''/g" \
2483      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2484    ;;
2485  *)
2486    # `set' quotes correctly as required by POSIX, so do not add quotes.
2487    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2488    ;;
2489  esac >> confcache
2490if cmp -s $cache_file confcache; then
2491  :
2492else
2493  if test -w $cache_file; then
2494    echo "updating cache $cache_file"
2495    cat confcache > $cache_file
2496  else
2497    echo "not updating unwritable cache $cache_file"
2498  fi
2499fi
2500rm -f confcache
2501
2502trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2503
2504test "x$prefix" = xNONE && prefix=$ac_default_prefix
2505# Let make expand exec_prefix.
2506test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2507
2508# Any assignment to VPATH causes Sun make to only execute
2509# the first set of double-colon rules, so remove it if not needed.
2510# If there is a colon in the path, we need to keep it.
2511if test "x$srcdir" = x.; then
2512  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2513fi
2514
2515trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2516
2517DEFS=-DHAVE_CONFIG_H
2518
2519# Without the "./", some shells look in PATH for config.status.
2520: ${CONFIG_STATUS=./config.status}
2521
2522echo creating $CONFIG_STATUS
2523rm -f $CONFIG_STATUS
2524cat > $CONFIG_STATUS <<EOF
2525#! /bin/sh
2526# Generated automatically by configure.
2527# Run this file to recreate the current configuration.
2528# This directory was configured as follows,
2529# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2530#
2531# $0 $ac_configure_args
2532#
2533# Compiler output produced by configure, useful for debugging
2534# configure, is in ./config.log if it exists.
2535
2536ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2537for ac_option
2538do
2539  case "\$ac_option" in
2540  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2541    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2542    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2543  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2544    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2545    exit 0 ;;
2546  -help | --help | --hel | --he | --h)
2547    echo "\$ac_cs_usage"; exit 0 ;;
2548  *) echo "\$ac_cs_usage"; exit 1 ;;
2549  esac
2550done
2551
2552ac_given_srcdir=$srcdir
2553ac_given_INSTALL="$INSTALL"
2554
2555trap 'rm -fr `echo "Makefile:autoconf/Makefile.in src/Makefile slsh/Makefile modules/Makefile src/sysconf.h:src/config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2556EOF
2557cat >> $CONFIG_STATUS <<EOF
2558
2559# Protect against being on the right side of a sed subst in config.status.
2560sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2561 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2562$ac_vpsub
2563$extrasub
2564s%@RPATH@%$RPATH%g
2565s%@SHELL@%$SHELL%g
2566s%@CFLAGS@%$CFLAGS%g
2567s%@CPPFLAGS@%$CPPFLAGS%g
2568s%@CXXFLAGS@%$CXXFLAGS%g
2569s%@FFLAGS@%$FFLAGS%g
2570s%@DEFS@%$DEFS%g
2571s%@LDFLAGS@%$LDFLAGS%g
2572s%@LIBS@%$LIBS%g
2573s%@exec_prefix@%$exec_prefix%g
2574s%@prefix@%$prefix%g
2575s%@program_transform_name@%$program_transform_name%g
2576s%@bindir@%$bindir%g
2577s%@sbindir@%$sbindir%g
2578s%@libexecdir@%$libexecdir%g
2579s%@datadir@%$datadir%g
2580s%@sysconfdir@%$sysconfdir%g
2581s%@sharedstatedir@%$sharedstatedir%g
2582s%@localstatedir@%$localstatedir%g
2583s%@libdir@%$libdir%g
2584s%@includedir@%$includedir%g
2585s%@oldincludedir@%$oldincludedir%g
2586s%@infodir@%$infodir%g
2587s%@mandir@%$mandir%g
2588s%@host@%$host%g
2589s%@host_alias@%$host_alias%g
2590s%@host_cpu@%$host_cpu%g
2591s%@host_vendor@%$host_vendor%g
2592s%@host_os@%$host_os%g
2593s%@CONFIG_DIR@%$CONFIG_DIR%g
2594s%@CC@%$CC%g
2595s%@CPP@%$CPP%g
2596s%@SET_MAKE@%$SET_MAKE%g
2597s%@RANLIB@%$RANLIB%g
2598s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2599s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2600s%@INSTALL_DATA@%$INSTALL_DATA%g
2601s%@DYNAMIC_LINK_LIB@%$DYNAMIC_LINK_LIB%g
2602s%@ELF_CC@%$ELF_CC%g
2603s%@ELF_CFLAGS@%$ELF_CFLAGS%g
2604s%@ELF_LINK@%$ELF_LINK%g
2605s%@ELF_LINK_CMD@%$ELF_LINK_CMD%g
2606s%@ELF_DEP_LIBS@%$ELF_DEP_LIBS%g
2607s%@DYNAMIC_LINK_FLAGS@%$DYNAMIC_LINK_FLAGS%g
2608s%@CC_SHARED@%$CC_SHARED%g
2609s%@ELFLIB@%$ELFLIB%g
2610s%@ELFLIB_MAJOR@%$ELFLIB_MAJOR%g
2611s%@ELFLIB_MAJOR_MINOR@%$ELFLIB_MAJOR_MINOR%g
2612s%@TERMCAP@%$TERMCAP%g
2613s%@MISC_TERMINFO_DIRS@%$MISC_TERMINFO_DIRS%g
2614s%@SRCDIR@%$SRCDIR%g
2615s%@OBJDIR@%$OBJDIR%g
2616s%@ELFDIR@%$ELFDIR%g
2617s%@PROGRAM_OFILES@%$PROGRAM_OFILES%g
2618s%@PROGRAM_CFILES@%$PROGRAM_CFILES%g
2619s%@PROGRAM_HFILES@%$PROGRAM_HFILES%g
2620s%@PROGRAM_OBJECTS@%$PROGRAM_OBJECTS%g
2621s%@PROGRAM_ELFOBJECTS@%$PROGRAM_ELFOBJECTS%g
2622s%@slang_major_version@%$slang_major_version%g
2623s%@slang_minor_version@%$slang_minor_version%g
2624s%@slang_version@%$slang_version%g
2625s%@subdirs@%$subdirs%g
2626
2627CEOF
2628EOF
2629
2630cat >> $CONFIG_STATUS <<\EOF
2631
2632# Split the substitutions into bite-sized pieces for seds with
2633# small command number limits, like on Digital OSF/1 and HP-UX.
2634ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2635ac_file=1 # Number of current file.
2636ac_beg=1 # First line for current file.
2637ac_end=$ac_max_sed_cmds # Line after last line for current file.
2638ac_more_lines=:
2639ac_sed_cmds=""
2640while $ac_more_lines; do
2641  if test $ac_beg -gt 1; then
2642    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2643  else
2644    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2645  fi
2646  if test ! -s conftest.s$ac_file; then
2647    ac_more_lines=false
2648    rm -f conftest.s$ac_file
2649  else
2650    if test -z "$ac_sed_cmds"; then
2651      ac_sed_cmds="sed -f conftest.s$ac_file"
2652    else
2653      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2654    fi
2655    ac_file=`expr $ac_file + 1`
2656    ac_beg=$ac_end
2657    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2658  fi
2659done
2660if test -z "$ac_sed_cmds"; then
2661  ac_sed_cmds=cat
2662fi
2663EOF
2664
2665cat >> $CONFIG_STATUS <<EOF
2666
2667CONFIG_FILES=\${CONFIG_FILES-"Makefile:autoconf/Makefile.in src/Makefile slsh/Makefile modules/Makefile"}
2668EOF
2669cat >> $CONFIG_STATUS <<\EOF
2670for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2671  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2672  case "$ac_file" in
2673  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2674       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2675  *) ac_file_in="${ac_file}.in" ;;
2676  esac
2677
2678  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2679
2680  # Remove last slash and all that follows it.  Not all systems have dirname.
2681  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2682  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2683    # The file is in a subdirectory.
2684    test ! -d "$ac_dir" && mkdir "$ac_dir"
2685    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2686    # A "../" for each directory in $ac_dir_suffix.
2687    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2688  else
2689    ac_dir_suffix= ac_dots=
2690  fi
2691
2692  case "$ac_given_srcdir" in
2693  .)  srcdir=.
2694      if test -z "$ac_dots"; then top_srcdir=.
2695      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2696  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2697  *) # Relative path.
2698    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2699    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2700  esac
2701
2702  case "$ac_given_INSTALL" in
2703  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2704  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2705  esac
2706
2707  echo creating "$ac_file"
2708  rm -f "$ac_file"
2709  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2710  case "$ac_file" in
2711  *Makefile*) ac_comsub="1i\\
2712# $configure_input" ;;
2713  *) ac_comsub= ;;
2714  esac
2715
2716  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2717  sed -e "$ac_comsub
2718s%@configure_input@%$configure_input%g
2719s%@srcdir@%$srcdir%g
2720s%@top_srcdir@%$top_srcdir%g
2721s%@INSTALL@%$INSTALL%g
2722" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2723fi; done
2724rm -f conftest.s*
2725
2726# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2727# NAME is the cpp macro being defined and VALUE is the value it is being given.
2728#
2729# ac_d sets the value in "#define NAME VALUE" lines.
2730ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2731ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2732ac_dC='\3'
2733ac_dD='%g'
2734# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2735ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2736ac_uB='\([ 	]\)%\1#\2define\3'
2737ac_uC=' '
2738ac_uD='\4%g'
2739# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2740ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2741ac_eB='$%\1#\2define\3'
2742ac_eC=' '
2743ac_eD='%g'
2744
2745if test "${CONFIG_HEADERS+set}" != set; then
2746EOF
2747cat >> $CONFIG_STATUS <<EOF
2748  CONFIG_HEADERS="src/sysconf.h:src/config.hin"
2749EOF
2750cat >> $CONFIG_STATUS <<\EOF
2751fi
2752for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2753  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2754  case "$ac_file" in
2755  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2756       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2757  *) ac_file_in="${ac_file}.in" ;;
2758  esac
2759
2760  echo creating $ac_file
2761
2762  rm -f conftest.frag conftest.in conftest.out
2763  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2764  cat $ac_file_inputs > conftest.in
2765
2766EOF
2767
2768# Transform confdefs.h into a sed script conftest.vals that substitutes
2769# the proper values into config.h.in to produce config.h.  And first:
2770# Protect against being on the right side of a sed subst in config.status.
2771# Protect against being in an unquoted here document in config.status.
2772rm -f conftest.vals
2773cat > conftest.hdr <<\EOF
2774s/[\\&%]/\\&/g
2775s%[\\$`]%\\&%g
2776s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2777s%ac_d%ac_u%gp
2778s%ac_u%ac_e%gp
2779EOF
2780sed -n -f conftest.hdr confdefs.h > conftest.vals
2781rm -f conftest.hdr
2782
2783# This sed command replaces #undef with comments.  This is necessary, for
2784# example, in the case of _POSIX_SOURCE, which is predefined and required
2785# on some systems where configure will not decide to define it.
2786cat >> conftest.vals <<\EOF
2787s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2788EOF
2789
2790# Break up conftest.vals because some shells have a limit on
2791# the size of here documents, and old seds have small limits too.
2792
2793rm -f conftest.tail
2794while :
2795do
2796  ac_lines=`grep -c . conftest.vals`
2797  # grep -c gives empty output for an empty file on some AIX systems.
2798  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2799  # Write a limited-size here document to conftest.frag.
2800  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2801  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2802  echo 'CEOF
2803  sed -f conftest.frag conftest.in > conftest.out
2804  rm -f conftest.in
2805  mv conftest.out conftest.in
2806' >> $CONFIG_STATUS
2807  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2808  rm -f conftest.vals
2809  mv conftest.tail conftest.vals
2810done
2811rm -f conftest.vals
2812
2813cat >> $CONFIG_STATUS <<\EOF
2814  rm -f conftest.frag conftest.h
2815  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2816  cat conftest.in >> conftest.h
2817  rm -f conftest.in
2818  if cmp -s $ac_file conftest.h 2>/dev/null; then
2819    echo "$ac_file is unchanged"
2820    rm -f conftest.h
2821  else
2822    # Remove last slash and all that follows it.  Not all systems have dirname.
2823      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2824      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2825      # The file is in a subdirectory.
2826      test ! -d "$ac_dir" && mkdir "$ac_dir"
2827    fi
2828    rm -f $ac_file
2829    mv conftest.h $ac_file
2830  fi
2831fi; done
2832
2833EOF
2834cat >> $CONFIG_STATUS <<EOF
2835
2836EOF
2837cat >> $CONFIG_STATUS <<\EOF
2838
2839exit 0
2840EOF
2841chmod +x $CONFIG_STATUS
2842rm -fr confdefs* $ac_clean_files
2843test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2844
2845if test "$no_recursion" != yes; then
2846
2847  # Remove --cache-file and --srcdir arguments so they do not pile up.
2848  ac_sub_configure_args=
2849  ac_prev=
2850  for ac_arg in $ac_configure_args; do
2851    if test -n "$ac_prev"; then
2852      ac_prev=
2853      continue
2854    fi
2855    case "$ac_arg" in
2856    -cache-file | --cache-file | --cache-fil | --cache-fi \
2857    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2858      ac_prev=cache_file ;;
2859    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2860    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2861      ;;
2862    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2863      ac_prev=srcdir ;;
2864    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2865      ;;
2866    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2867    esac
2868  done
2869
2870  for ac_config_dir in demo; do
2871
2872    # Do not complain, so a configure script can configure whichever
2873    # parts of a large source tree are present.
2874    if test ! -d $srcdir/$ac_config_dir; then
2875      continue
2876    fi
2877
2878    echo configuring in $ac_config_dir
2879
2880    case "$srcdir" in
2881    .) ;;
2882    *)
2883      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2884      else
2885        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2886      fi
2887      ;;
2888    esac
2889
2890    ac_popdir=`pwd`
2891    cd $ac_config_dir
2892
2893      # A "../" for each directory in /$ac_config_dir.
2894      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2895
2896    case "$srcdir" in
2897    .) # No --srcdir option.  We are building in place.
2898      ac_sub_srcdir=$srcdir ;;
2899    /*) # Absolute path.
2900      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2901    *) # Relative path.
2902      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2903    esac
2904
2905    # Check for guested configure; otherwise get Cygnus style configure.
2906    if test -f $ac_sub_srcdir/configure; then
2907      ac_sub_configure=$ac_sub_srcdir/configure
2908    elif test -f $ac_sub_srcdir/configure.in; then
2909      ac_sub_configure=$ac_configure
2910    else
2911      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2912      ac_sub_configure=
2913    fi
2914
2915    # The recursion is here.
2916    if test -n "$ac_sub_configure"; then
2917
2918      # Make the cache file name correct relative to the subdirectory.
2919      case "$cache_file" in
2920      /*) ac_sub_cache_file=$cache_file ;;
2921      *) # Relative path.
2922        ac_sub_cache_file="$ac_dots$cache_file" ;;
2923      esac
2924  case "$ac_given_INSTALL" in
2925        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2926        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2927        esac
2928
2929      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2930      # The eval makes quoting arguments work.
2931      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2932      then :
2933      else
2934        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2935      fi
2936    fi
2937
2938    cd $ac_popdir
2939  done
2940fi
2941
2942
2943
2944PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
2945calc : \$(OBJDIR)/calc
2946	@echo calc created in \$(OBJDIR)
2947\$(OBJDIR)/calc : \$(OBJDIR)/calc.o \$("calc"_DEPS) \$(EXECDEPS)
2948	\$(CC) -o \$(OBJDIR)/calc \$(LDFLAGS) \$(OBJDIR)/calc.o \$("calc"_LIBS) \$(EXECLIBS)
2949\$(OBJDIR)/calc.o : \$(SRCDIR)/calc.c \$(DOT_O_DEPS) \$("calc"_O_DEP)
2950	cd \$(OBJDIR); \$(COMPILE_CMD) \$("calc"_INC) \$(EXECINC) \$(SRCDIR)/calc.c
2951"
2952
2953
2954PROGRAM_OBJECT_RULES="$PROGRAM_OBJECT_RULES
2955untic : \$(OBJDIR)/untic
2956	@echo untic created in \$(OBJDIR)
2957\$(OBJDIR)/untic : \$(OBJDIR)/untic.o \$("untic"_DEPS) \$(EXECDEPS)
2958	\$(CC) -o \$(OBJDIR)/untic \$(LDFLAGS) \$(OBJDIR)/untic.o \$("untic"_LIBS) \$(EXECLIBS)
2959\$(OBJDIR)/untic.o : \$(SRCDIR)/untic.c \$(DOT_O_DEPS) \$("untic"_O_DEP)
2960	cd \$(OBJDIR); \$(COMPILE_CMD) \$("untic"_INC) \$(EXECINC) \$(SRCDIR)/untic.c
2961"
2962
2963
2964 echo "$PROGRAM_OBJECT_RULES" >> src/Makefile
2965
2966
2967 echo "$PROGRAM_ELF_ORULES" >> src/Makefile
2968
2969
2970echo ""
2971echo "Configuration complete.  You may need to edit src/Makefile."
2972echo "You are compiling SLANG with the following compiler configuration:"
2973echo "       CC =" "$CC"
2974echo "   CFLAGS =" "$CFLAGS"
2975echo "  LDFLAGS =" "$LDFLAGS $DYNAMIC_LINK_FLAGS"
2976echo ""
2977echo "   ELF_CC =" "$ELF_CC"
2978echo " ELF_LINK =" "$ELF_LINK"
2979echo "ELF_CFLAGS=" "$ELF_CFLAGS"
2980echo ""
2981echo "                  prefix:" "$prefix"
2982echo "             exec_prefix:" "$exec_prefix"
2983echo "    Installation Lib Dir:" "$libdir"
2984echo "Installation Include Dir:" "$includedir"
2985echo ""
2986echo "See also src/sl-feat.h for various features."
2987echo "Type 'make' to build normal library."
2988echo "On ELF systems, type 'make elf' to create ELF shared library."
2989