home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / rexxtk12.zip / configure < prev    next >
Text File  |  2001-07-22  |  97KB  |  3,473 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-dist             specify this just to build a distribution"
  16. ac_help="$ac_help
  17.   --with-rexx=int         specify Rexx interpeter (rexxtrans|regina|rexximc|objrexx|unirexx|rexx6000)"
  18. ac_help="$ac_help
  19.   --with-rexxincdir=DIR   specify where REXX header file is"
  20. ac_help="$ac_help
  21.   --with-rexxlibdir=DIR   specify where REXX library file is"
  22. ac_help="$ac_help
  23.   --with-tkincdir=DIR     specify where Tcl/Tk header files are"
  24. ac_help="$ac_help
  25.   --with-tklibdir=DIR     specify where Tcl/Tk library files are"
  26. ac_help="$ac_help
  27.   --enable-debug          turn on debugging"
  28. ac_help="$ac_help
  29.   --enable-purify         link with Purify (TM)"
  30. ac_help="$ac_help
  31.   --with-dlfcnincdir      location of dlfcn.h (AIX only)"
  32. ac_help="$ac_help
  33.   --with-dlfcnlibdir      location of libdl.a (AIX only)"
  34.  
  35. # Initialize some variables set by options.
  36. # The variables have the same names as the options, with
  37. # dashes changed to underlines.
  38. build=NONE
  39. cache_file=./config.cache
  40. exec_prefix=NONE
  41. host=NONE
  42. no_create=
  43. nonopt=NONE
  44. no_recursion=
  45. prefix=NONE
  46. program_prefix=NONE
  47. program_suffix=NONE
  48. program_transform_name=s,x,x,
  49. silent=
  50. site=
  51. srcdir=
  52. target=NONE
  53. verbose=
  54. x_includes=NONE
  55. x_libraries=NONE
  56. bindir='${exec_prefix}/bin'
  57. sbindir='${exec_prefix}/sbin'
  58. libexecdir='${exec_prefix}/libexec'
  59. datadir='${prefix}/share'
  60. sysconfdir='${prefix}/etc'
  61. sharedstatedir='${prefix}/com'
  62. localstatedir='${prefix}/var'
  63. libdir='${exec_prefix}/lib'
  64. includedir='${prefix}/include'
  65. oldincludedir='/usr/include'
  66. infodir='${prefix}/info'
  67. mandir='${prefix}/man'
  68.  
  69. # Initialize some other variables.
  70. subdirs=
  71. MFLAGS= MAKEFLAGS=
  72. SHELL=${CONFIG_SHELL-/bin/sh}
  73. # Maximum number of lines to put in a shell here document.
  74. ac_max_here_lines=12
  75.  
  76. ac_prev=
  77. for ac_option
  78. do
  79.  
  80.   # If the previous option needs an argument, assign it.
  81.   if test -n "$ac_prev"; then
  82.     eval "$ac_prev=\$ac_option"
  83.     ac_prev=
  84.     continue
  85.   fi
  86.  
  87.   case "$ac_option" in
  88.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  89.   *) ac_optarg= ;;
  90.   esac
  91.  
  92.   # Accept the important Cygnus configure options, so we can diagnose typos.
  93.  
  94.   case "$ac_option" in
  95.  
  96.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  97.     ac_prev=bindir ;;
  98.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  99.     bindir="$ac_optarg" ;;
  100.  
  101.   -build | --build | --buil | --bui | --bu)
  102.     ac_prev=build ;;
  103.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  104.     build="$ac_optarg" ;;
  105.  
  106.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  107.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  108.     ac_prev=cache_file ;;
  109.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  110.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  111.     cache_file="$ac_optarg" ;;
  112.  
  113.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  114.     ac_prev=datadir ;;
  115.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  116.   | --da=*)
  117.     datadir="$ac_optarg" ;;
  118.  
  119.   -disable-* | --disable-*)
  120.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  121.     # Reject names that are not valid shell variable names.
  122.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  123.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  124.     fi
  125.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  126.     eval "enable_${ac_feature}=no" ;;
  127.  
  128.   -enable-* | --enable-*)
  129.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  130.     # Reject names that are not valid shell variable names.
  131.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  132.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  133.     fi
  134.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  135.     case "$ac_option" in
  136.       *=*) ;;
  137.       *) ac_optarg=yes ;;
  138.     esac
  139.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  140.  
  141.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  142.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  143.   | --exec | --exe | --ex)
  144.     ac_prev=exec_prefix ;;
  145.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  146.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  147.   | --exec=* | --exe=* | --ex=*)
  148.     exec_prefix="$ac_optarg" ;;
  149.  
  150.   -gas | --gas | --ga | --g)
  151.     # Obsolete; use --with-gas.
  152.     with_gas=yes ;;
  153.  
  154.   -help | --help | --hel | --he)
  155.     # Omit some internal or obsolete options to make the list less imposing.
  156.     # This message is too long to be a string in the A/UX 3.1 sh.
  157.     cat << EOF
  158. Usage: configure [options] [host]
  159. Options: [defaults in brackets after descriptions]
  160. Configuration:
  161.   --cache-file=FILE       cache test results in FILE
  162.   --help                  print this message
  163.   --no-create             do not create output files
  164.   --quiet, --silent       do not print \`checking...' messages
  165.   --version               print the version of autoconf that created configure
  166. Directory and file names:
  167.   --prefix=PREFIX         install architecture-independent files in PREFIX
  168.                           [$ac_default_prefix]
  169.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  170.                           [same as prefix]
  171.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  172.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  173.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  174.   --datadir=DIR           read-only architecture-independent data in DIR
  175.                           [PREFIX/share]
  176.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  177.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  178.                           [PREFIX/com]
  179.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  180.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  181.   --includedir=DIR        C header files in DIR [PREFIX/include]
  182.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  183.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  184.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  185.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  186.   --program-prefix=PREFIX prepend PREFIX to installed program names
  187.   --program-suffix=SUFFIX append SUFFIX to installed program names
  188.   --program-transform-name=PROGRAM
  189.                           run sed PROGRAM on installed program names
  190. EOF
  191.     cat << EOF
  192. Host type:
  193.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  194.   --host=HOST             configure for HOST [guessed]
  195.   --target=TARGET         configure for TARGET [TARGET=HOST]
  196. Features and packages:
  197.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  198.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  199.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  200.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  201.   --x-includes=DIR        X include files are in DIR
  202.   --x-libraries=DIR       X library files are in DIR
  203. EOF
  204.     if test -n "$ac_help"; then
  205.       echo "--enable and --with options recognized:$ac_help"
  206.     fi
  207.     exit 0 ;;
  208.  
  209.   -host | --host | --hos | --ho)
  210.     ac_prev=host ;;
  211.   -host=* | --host=* | --hos=* | --ho=*)
  212.     host="$ac_optarg" ;;
  213.  
  214.   -includedir | --includedir | --includedi | --included | --include \
  215.   | --includ | --inclu | --incl | --inc)
  216.     ac_prev=includedir ;;
  217.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  218.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  219.     includedir="$ac_optarg" ;;
  220.  
  221.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  222.     ac_prev=infodir ;;
  223.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  224.     infodir="$ac_optarg" ;;
  225.  
  226.   -libdir | --libdir | --libdi | --libd)
  227.     ac_prev=libdir ;;
  228.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  229.     libdir="$ac_optarg" ;;
  230.  
  231.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  232.   | --libexe | --libex | --libe)
  233.     ac_prev=libexecdir ;;
  234.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  235.   | --libexe=* | --libex=* | --libe=*)
  236.     libexecdir="$ac_optarg" ;;
  237.  
  238.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  239.   | --localstate | --localstat | --localsta | --localst \
  240.   | --locals | --local | --loca | --loc | --lo)
  241.     ac_prev=localstatedir ;;
  242.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  243.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  244.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  245.     localstatedir="$ac_optarg" ;;
  246.  
  247.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  248.     ac_prev=mandir ;;
  249.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  250.     mandir="$ac_optarg" ;;
  251.  
  252.   -nfp | --nfp | --nf)
  253.     # Obsolete; use --without-fp.
  254.     with_fp=no ;;
  255.  
  256.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  257.   | --no-cr | --no-c)
  258.     no_create=yes ;;
  259.  
  260.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  261.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  262.     no_recursion=yes ;;
  263.  
  264.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  265.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  266.   | --oldin | --oldi | --old | --ol | --o)
  267.     ac_prev=oldincludedir ;;
  268.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  269.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  270.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  271.     oldincludedir="$ac_optarg" ;;
  272.  
  273.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  274.     ac_prev=prefix ;;
  275.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  276.     prefix="$ac_optarg" ;;
  277.  
  278.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  279.   | --program-pre | --program-pr | --program-p)
  280.     ac_prev=program_prefix ;;
  281.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  282.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  283.     program_prefix="$ac_optarg" ;;
  284.  
  285.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  286.   | --program-suf | --program-su | --program-s)
  287.     ac_prev=program_suffix ;;
  288.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  289.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  290.     program_suffix="$ac_optarg" ;;
  291.  
  292.   -program-transform-name | --program-transform-name \
  293.   | --program-transform-nam | --program-transform-na \
  294.   | --program-transform-n | --program-transform- \
  295.   | --program-transform | --program-transfor \
  296.   | --program-transfo | --program-transf \
  297.   | --program-trans | --program-tran \
  298.   | --progr-tra | --program-tr | --program-t)
  299.     ac_prev=program_transform_name ;;
  300.   -program-transform-name=* | --program-transform-name=* \
  301.   | --program-transform-nam=* | --program-transform-na=* \
  302.   | --program-transform-n=* | --program-transform-=* \
  303.   | --program-transform=* | --program-transfor=* \
  304.   | --program-transfo=* | --program-transf=* \
  305.   | --program-trans=* | --program-tran=* \
  306.   | --progr-tra=* | --program-tr=* | --program-t=*)
  307.     program_transform_name="$ac_optarg" ;;
  308.  
  309.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  310.   | -silent | --silent | --silen | --sile | --sil)
  311.     silent=yes ;;
  312.  
  313.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  314.     ac_prev=sbindir ;;
  315.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  316.   | --sbi=* | --sb=*)
  317.     sbindir="$ac_optarg" ;;
  318.  
  319.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  320.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  321.   | --sharedst | --shareds | --shared | --share | --shar \
  322.   | --sha | --sh)
  323.     ac_prev=sharedstatedir ;;
  324.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  325.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  326.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  327.   | --sha=* | --sh=*)
  328.     sharedstatedir="$ac_optarg" ;;
  329.  
  330.   -site | --site | --sit)
  331.     ac_prev=site ;;
  332.   -site=* | --site=* | --sit=*)
  333.     site="$ac_optarg" ;;
  334.  
  335.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  336.     ac_prev=srcdir ;;
  337.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  338.     srcdir="$ac_optarg" ;;
  339.  
  340.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  341.   | --syscon | --sysco | --sysc | --sys | --sy)
  342.     ac_prev=sysconfdir ;;
  343.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  344.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  345.     sysconfdir="$ac_optarg" ;;
  346.  
  347.   -target | --target | --targe | --targ | --tar | --ta | --t)
  348.     ac_prev=target ;;
  349.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  350.     target="$ac_optarg" ;;
  351.  
  352.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  353.     verbose=yes ;;
  354.  
  355.   -version | --version | --versio | --versi | --vers)
  356.     echo "configure generated by autoconf version 2.13"
  357.     exit 0 ;;
  358.  
  359.   -with-* | --with-*)
  360.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  361.     # Reject names that are not valid shell variable names.
  362.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  363.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  364.     fi
  365.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  366.     case "$ac_option" in
  367.       *=*) ;;
  368.       *) ac_optarg=yes ;;
  369.     esac
  370.     eval "with_${ac_package}='$ac_optarg'" ;;
  371.  
  372.   -without-* | --without-*)
  373.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  374.     # Reject names that are not valid shell variable names.
  375.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  376.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  377.     fi
  378.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  379.     eval "with_${ac_package}=no" ;;
  380.  
  381.   --x)
  382.     # Obsolete; use --with-x.
  383.     with_x=yes ;;
  384.  
  385.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  386.   | --x-incl | --x-inc | --x-in | --x-i)
  387.     ac_prev=x_includes ;;
  388.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  389.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  390.     x_includes="$ac_optarg" ;;
  391.  
  392.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  393.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  394.     ac_prev=x_libraries ;;
  395.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  396.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  397.     x_libraries="$ac_optarg" ;;
  398.  
  399.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  400.     ;;
  401.  
  402.   *)
  403.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  404.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  405.     fi
  406.     if test "x$nonopt" != xNONE; then
  407.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  408.     fi
  409.     nonopt="$ac_option"
  410.     ;;
  411.  
  412.   esac
  413. done
  414.  
  415. if test -n "$ac_prev"; then
  416.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  417. fi
  418.  
  419. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  420.  
  421. # File descriptor usage:
  422. # 0 standard input
  423. # 1 file creation
  424. # 2 errors and warnings
  425. # 3 some systems may open it to /dev/tty
  426. # 4 used on the Kubota Titan
  427. # 6 checking for... messages and results
  428. # 5 compiler messages saved in config.log
  429. if test "$silent" = yes; then
  430.   exec 6>/dev/null
  431. else
  432.   exec 6>&1
  433. fi
  434. exec 5>./config.log
  435.  
  436. echo "\
  437. This file contains any messages produced by compilers while
  438. running configure, to aid debugging if configure makes a mistake.
  439. " 1>&5
  440.  
  441. # Strip out --no-create and --no-recursion so they do not pile up.
  442. # Also quote any args containing shell metacharacters.
  443. ac_configure_args=
  444. for ac_arg
  445. do
  446.   case "$ac_arg" in
  447.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  448.   | --no-cr | --no-c) ;;
  449.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  450.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  451.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  452.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  453.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  454.   esac
  455. done
  456.  
  457. # NLS nuisances.
  458. # Only set these to C if already set.  These must not be set unconditionally
  459. # because not all systems understand e.g. LANG=C (notably SCO).
  460. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  461. # Non-C LC_CTYPE values break the ctype check.
  462. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  463. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  464. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  465. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  466.  
  467. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  468. rm -rf conftest* confdefs.h
  469. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  470. echo > confdefs.h
  471.  
  472. # A filename unique to this package, relative to the directory that
  473. # configure is in, which we can look for to find out if srcdir is correct.
  474. ac_unique_file=rexxtk.c
  475.  
  476. # Find the source files, if location was not specified.
  477. if test -z "$srcdir"; then
  478.   ac_srcdir_defaulted=yes
  479.   # Try the directory containing this script, then its parent.
  480.   ac_prog=$0
  481.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  482.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  483.   srcdir=$ac_confdir
  484.   if test ! -r $srcdir/$ac_unique_file; then
  485.     srcdir=..
  486.   fi
  487. else
  488.   ac_srcdir_defaulted=no
  489. fi
  490. if test ! -r $srcdir/$ac_unique_file; then
  491.   if test "$ac_srcdir_defaulted" = yes; then
  492.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  493.   else
  494.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  495.   fi
  496. fi
  497. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  498.  
  499. # Prefer explicitly selected file to automatically selected ones.
  500. if test -z "$CONFIG_SITE"; then
  501.   if test "x$prefix" != xNONE; then
  502.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  503.   else
  504.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  505.   fi
  506. fi
  507. for ac_site_file in $CONFIG_SITE; do
  508.   if test -r "$ac_site_file"; then
  509.     echo "loading site script $ac_site_file"
  510.     . "$ac_site_file"
  511.   fi
  512. done
  513.  
  514. if test -r "$cache_file"; then
  515.   echo "loading cache $cache_file"
  516.   . $cache_file
  517. else
  518.   echo "creating cache $cache_file"
  519.   > $cache_file
  520. fi
  521.  
  522. ac_ext=c
  523. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  524. ac_cpp='$CPP $CPPFLAGS'
  525. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  526. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  527. cross_compiling=$ac_cv_prog_cc_cross
  528.  
  529. ac_exeext=
  530. ac_objext=o
  531. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  532.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  533.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  534.     ac_n= ac_c='
  535. ' ac_t='    '
  536.   else
  537.     ac_n=-n ac_c= ac_t=
  538.   fi
  539. else
  540.   ac_n= ac_c='\c' ac_t=
  541. fi
  542.  
  543.  
  544.  
  545. # Check whether --with-dist or --without-dist was given.
  546. if test "${with_dist+set}" = set; then
  547.   withval="$with_dist"
  548.   with_dist=$withval
  549. else
  550.   with_dist=no
  551. fi
  552.  
  553. if test "$with_dist" != no; then
  554. #    SET_MAKE=""
  555. #    AC_SUBST(SET_MAKE)
  556. #    AC_OUTPUT(Makefile)
  557. #    exit
  558.     mymakefile="Makefile"
  559. else
  560.  
  561.  
  562. CC_LIST="gcc acc cc c89"
  563.  
  564. mh_sysv_incdir=""
  565. mh_sysv_libdir=""
  566. all_words="$CC_LIST"
  567. ac_dir=""
  568. echo $ac_n "checking for one of the following C compilers: $all_words""... $ac_c" 1>&6
  569. echo "configure:570: checking for one of the following C compilers: $all_words" >&5
  570. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  571.   echo $ac_n "(cached) $ac_c" 1>&6
  572. else
  573.   
  574. if test -n "$CC"; then
  575.   ac_cv_prog_CC="$CC" # Let the user override the test.
  576. else
  577.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  578.   for mh_cc in $all_words; do
  579.     for ac_dir in $PATH; do
  580.       test -z "$ac_dir" && ac_dir=.
  581.       if test -f $ac_dir/$mh_cc; then
  582.         ac_cv_prog_CC="$mh_cc"
  583.         if test "$ac_dir" = "/usr/5bin"; then
  584.           mh_sysv_incdir="/usr/5include"
  585.           mh_sysv_libdir="/usr/5lib"
  586.         fi
  587.         break 2
  588.       fi
  589.     done
  590.   done
  591.   IFS="$ac_save_ifs"
  592.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  593. fi
  594. CC="$ac_cv_prog_CC"
  595.  
  596. fi
  597.  
  598.  
  599. if test "$ac_dir" = ""; then
  600.    echo "$ac_t""using $ac_cv_prog_CC specified in CC env variable" 1>&6
  601. else
  602.    echo "$ac_t""using $ac_dir/$ac_cv_prog_CC" 1>&6
  603. fi
  604.  
  605.  
  606.  
  607. # Extract the first word of "gcc", so it can be a program name with args.
  608. set dummy gcc; ac_word=$2
  609. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  610. echo "configure:611: checking for $ac_word" >&5
  611. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  612.   echo $ac_n "(cached) $ac_c" 1>&6
  613. else
  614.   if test -n "$CC"; then
  615.   ac_cv_prog_CC="$CC" # Let the user override the test.
  616. else
  617.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  618.   ac_dummy="$PATH"
  619.   for ac_dir in $ac_dummy; do
  620.     test -z "$ac_dir" && ac_dir=.
  621.     if test -f $ac_dir/$ac_word; then
  622.       ac_cv_prog_CC="gcc"
  623.       break
  624.     fi
  625.   done
  626.   IFS="$ac_save_ifs"
  627. fi
  628. fi
  629. CC="$ac_cv_prog_CC"
  630. if test -n "$CC"; then
  631.   echo "$ac_t""$CC" 1>&6
  632. else
  633.   echo "$ac_t""no" 1>&6
  634. fi
  635.  
  636. if test -z "$CC"; then
  637.   # Extract the first word of "cc", so it can be a program name with args.
  638. set dummy cc; ac_word=$2
  639. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  640. echo "configure:641: checking for $ac_word" >&5
  641. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  642.   echo $ac_n "(cached) $ac_c" 1>&6
  643. else
  644.   if test -n "$CC"; then
  645.   ac_cv_prog_CC="$CC" # Let the user override the test.
  646. else
  647.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  648.   ac_prog_rejected=no
  649.   ac_dummy="$PATH"
  650.   for ac_dir in $ac_dummy; do
  651.     test -z "$ac_dir" && ac_dir=.
  652.     if test -f $ac_dir/$ac_word; then
  653.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  654.         ac_prog_rejected=yes
  655.     continue
  656.       fi
  657.       ac_cv_prog_CC="cc"
  658.       break
  659.     fi
  660.   done
  661.   IFS="$ac_save_ifs"
  662. if test $ac_prog_rejected = yes; then
  663.   # We found a bogon in the path, so make sure we never use it.
  664.   set dummy $ac_cv_prog_CC
  665.   shift
  666.   if test $# -gt 0; then
  667.     # We chose a different compiler from the bogus one.
  668.     # However, it has the same basename, so the bogon will be chosen
  669.     # first if we set CC to just the basename; use the full file name.
  670.     shift
  671.     set dummy "$ac_dir/$ac_word" "$@"
  672.     shift
  673.     ac_cv_prog_CC="$@"
  674.   fi
  675. fi
  676. fi
  677. fi
  678. CC="$ac_cv_prog_CC"
  679. if test -n "$CC"; then
  680.   echo "$ac_t""$CC" 1>&6
  681. else
  682.   echo "$ac_t""no" 1>&6
  683. fi
  684.  
  685.   if test -z "$CC"; then
  686.     case "`uname -s`" in
  687.     *win32* | *WIN32*)
  688.       # Extract the first word of "cl", so it can be a program name with args.
  689. set dummy cl; ac_word=$2
  690. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  691. echo "configure:692: checking for $ac_word" >&5
  692. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  693.   echo $ac_n "(cached) $ac_c" 1>&6
  694. else
  695.   if test -n "$CC"; then
  696.   ac_cv_prog_CC="$CC" # Let the user override the test.
  697. else
  698.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  699.   ac_dummy="$PATH"
  700.   for ac_dir in $ac_dummy; do
  701.     test -z "$ac_dir" && ac_dir=.
  702.     if test -f $ac_dir/$ac_word; then
  703.       ac_cv_prog_CC="cl"
  704.       break
  705.     fi
  706.   done
  707.   IFS="$ac_save_ifs"
  708. fi
  709. fi
  710. CC="$ac_cv_prog_CC"
  711. if test -n "$CC"; then
  712.   echo "$ac_t""$CC" 1>&6
  713. else
  714.   echo "$ac_t""no" 1>&6
  715. fi
  716.  ;;
  717.     esac
  718.   fi
  719.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  720. fi
  721.  
  722. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  723. echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  724.  
  725. ac_ext=c
  726. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  727. ac_cpp='$CPP $CPPFLAGS'
  728. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  729. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  730. cross_compiling=$ac_cv_prog_cc_cross
  731.  
  732. cat > conftest.$ac_ext << EOF
  733.  
  734. #line 735 "configure"
  735. #include "confdefs.h"
  736.  
  737. main(){return(0);}
  738. EOF
  739. if { (eval echo configure:740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  740.   ac_cv_prog_cc_works=yes
  741.   # If we can't run a trivial program, we are probably using a cross compiler.
  742.   if (./conftest; exit) 2>/dev/null; then
  743.     ac_cv_prog_cc_cross=no
  744.   else
  745.     ac_cv_prog_cc_cross=yes
  746.   fi
  747. else
  748.   echo "configure: failed program was:" >&5
  749.   cat conftest.$ac_ext >&5
  750.   ac_cv_prog_cc_works=no
  751. fi
  752. rm -fr conftest*
  753. ac_ext=c
  754. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  755. ac_cpp='$CPP $CPPFLAGS'
  756. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  757. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  758. cross_compiling=$ac_cv_prog_cc_cross
  759.  
  760. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  761. if test $ac_cv_prog_cc_works = no; then
  762.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  763. fi
  764. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  765. echo "configure:766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  766. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  767. cross_compiling=$ac_cv_prog_cc_cross
  768.  
  769. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  770. echo "configure:771: checking whether we are using GNU C" >&5
  771. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  772.   echo $ac_n "(cached) $ac_c" 1>&6
  773. else
  774.   cat > conftest.c <<EOF
  775. #ifdef __GNUC__
  776.   yes;
  777. #endif
  778. EOF
  779. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  780.   ac_cv_prog_gcc=yes
  781. else
  782.   ac_cv_prog_gcc=no
  783. fi
  784. fi
  785.  
  786. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  787.  
  788. if test $ac_cv_prog_gcc = yes; then
  789.   GCC=yes
  790. else
  791.   GCC=
  792. fi
  793.  
  794. ac_test_CFLAGS="${CFLAGS+set}"
  795. ac_save_CFLAGS="$CFLAGS"
  796. CFLAGS=
  797. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  798. echo "configure:799: checking whether ${CC-cc} accepts -g" >&5
  799. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  800.   echo $ac_n "(cached) $ac_c" 1>&6
  801. else
  802.   echo 'void f(){}' > conftest.c
  803. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  804.   ac_cv_prog_cc_g=yes
  805. else
  806.   ac_cv_prog_cc_g=no
  807. fi
  808. rm -f conftest*
  809.  
  810. fi
  811.  
  812. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  813. if test "$ac_test_CFLAGS" = set; then
  814.   CFLAGS="$ac_save_CFLAGS"
  815. elif test $ac_cv_prog_cc_g = yes; then
  816.   if test "$GCC" = yes; then
  817.     CFLAGS="-g -O2"
  818.   else
  819.     CFLAGS="-g"
  820.   fi
  821. else
  822.   if test "$GCC" = yes; then
  823.     CFLAGS="-O2"
  824.   else
  825.     CFLAGS=
  826.   fi
  827. fi
  828.  
  829. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  830. echo "configure:831: checking for POSIXized ISC" >&5
  831. if test -d /etc/conf/kconfig.d &&
  832.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  833. then
  834.   echo "$ac_t""yes" 1>&6
  835.   ISC=yes # If later tests want to check for ISC.
  836.   cat >> confdefs.h <<\EOF
  837. #define _POSIX_SOURCE 1
  838. EOF
  839.  
  840.   if test "$GCC" = yes; then
  841.     CC="$CC -posix"
  842.   else
  843.     CC="$CC -Xp"
  844.   fi
  845. else
  846.   echo "$ac_t""no" 1>&6
  847.   ISC=
  848. fi
  849.  
  850.  
  851. ac_aux_dir=
  852. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  853.   if test -f $ac_dir/install-sh; then
  854.     ac_aux_dir=$ac_dir
  855.     ac_install_sh="$ac_aux_dir/install-sh -c"
  856.     break
  857.   elif test -f $ac_dir/install.sh; then
  858.     ac_aux_dir=$ac_dir
  859.     ac_install_sh="$ac_aux_dir/install.sh -c"
  860.     break
  861.   fi
  862. done
  863. if test -z "$ac_aux_dir"; then
  864.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  865. fi
  866. ac_config_guess=$ac_aux_dir/config.guess
  867. ac_config_sub=$ac_aux_dir/config.sub
  868. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  869.  
  870.  
  871. # Do some error checking and defaulting for the host and target type.
  872. # The inputs are:
  873. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  874. #
  875. # The rules are:
  876. # 1. You are not allowed to specify --host, --target, and nonopt at the
  877. #    same time.
  878. # 2. Host defaults to nonopt.
  879. # 3. If nonopt is not specified, then host defaults to the current host,
  880. #    as determined by config.guess.
  881. # 4. Target and build default to nonopt.
  882. # 5. If nonopt is not specified, then target and build default to host.
  883.  
  884. # The aliases save the names the user supplied, while $host etc.
  885. # will get canonicalized.
  886. case $host---$target---$nonopt in
  887. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  888. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  889. esac
  890.  
  891.  
  892. # Make sure we can run config.sub.
  893. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  894. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  895. fi
  896.  
  897. echo $ac_n "checking host system type""... $ac_c" 1>&6
  898. echo "configure:899: checking host system type" >&5
  899.  
  900. host_alias=$host
  901. case "$host_alias" in
  902. NONE)
  903.   case $nonopt in
  904.   NONE)
  905.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  906.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  907.     fi ;;
  908.   *) host_alias=$nonopt ;;
  909.   esac ;;
  910. esac
  911.  
  912. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  913. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  914. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  915. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  916. echo "$ac_t""$host" 1>&6
  917.  
  918. echo $ac_n "checking target system type""... $ac_c" 1>&6
  919. echo "configure:920: checking target system type" >&5
  920.  
  921. target_alias=$target
  922. case "$target_alias" in
  923. NONE)
  924.   case $nonopt in
  925.   NONE) target_alias=$host_alias ;;
  926.   *) target_alias=$nonopt ;;
  927.   esac ;;
  928. esac
  929.  
  930. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  931. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  932. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  933. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  934. echo "$ac_t""$target" 1>&6
  935.  
  936. echo $ac_n "checking build system type""... $ac_c" 1>&6
  937. echo "configure:938: checking build system type" >&5
  938.  
  939. build_alias=$build
  940. case "$build_alias" in
  941. NONE)
  942.   case $nonopt in
  943.   NONE) build_alias=$host_alias ;;
  944.   *) build_alias=$nonopt ;;
  945.   esac ;;
  946. esac
  947.  
  948. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  949. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  950. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  951. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  952. echo "$ac_t""$build" 1>&6
  953.  
  954. test "$host_alias" != "$target_alias" &&
  955.   test "$program_prefix$program_suffix$program_transform_name" = \
  956.     NONENONEs,x,x, &&
  957.   program_prefix=${target_alias}-
  958.  
  959. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  960. echo "configure:961: checking how to run the C preprocessor" >&5
  961. # On Suns, sometimes $CPP names a directory.
  962. if test -n "$CPP" && test -d "$CPP"; then
  963.   CPP=
  964. fi
  965. if test -z "$CPP"; then
  966. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  967.   echo $ac_n "(cached) $ac_c" 1>&6
  968. else
  969.     # This must be in double quotes, not single quotes, because CPP may get
  970.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  971.   CPP="${CC-cc} -E"
  972.   # On the NeXT, cc -E runs the code through the compiler's parser,
  973.   # not just through cpp.
  974.   cat > conftest.$ac_ext <<EOF
  975. #line 976 "configure"
  976. #include "confdefs.h"
  977. #include <assert.h>
  978. Syntax Error
  979. EOF
  980. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  981. { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  982. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  983. if test -z "$ac_err"; then
  984.   :
  985. else
  986.   echo "$ac_err" >&5
  987.   echo "configure: failed program was:" >&5
  988.   cat conftest.$ac_ext >&5
  989.   rm -rf conftest*
  990.   CPP="${CC-cc} -E -traditional-cpp"
  991.   cat > conftest.$ac_ext <<EOF
  992. #line 993 "configure"
  993. #include "confdefs.h"
  994. #include <assert.h>
  995. Syntax Error
  996. EOF
  997. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  998. { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  999. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1000. if test -z "$ac_err"; then
  1001.   :
  1002. else
  1003.   echo "$ac_err" >&5
  1004.   echo "configure: failed program was:" >&5
  1005.   cat conftest.$ac_ext >&5
  1006.   rm -rf conftest*
  1007.   CPP="${CC-cc} -nologo -E"
  1008.   cat > conftest.$ac_ext <<EOF
  1009. #line 1010 "configure"
  1010. #include "confdefs.h"
  1011. #include <assert.h>
  1012. Syntax Error
  1013. EOF
  1014. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1015. { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1016. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1017. if test -z "$ac_err"; then
  1018.   :
  1019. else
  1020.   echo "$ac_err" >&5
  1021.   echo "configure: failed program was:" >&5
  1022.   cat conftest.$ac_ext >&5
  1023.   rm -rf conftest*
  1024.   CPP=/lib/cpp
  1025. fi
  1026. rm -f conftest*
  1027. fi
  1028. rm -f conftest*
  1029. fi
  1030. rm -f conftest*
  1031.   ac_cv_prog_CPP="$CPP"
  1032. fi
  1033.   CPP="$ac_cv_prog_CPP"
  1034. else
  1035.   ac_cv_prog_CPP="$CPP"
  1036. fi
  1037. echo "$ac_t""$CPP" 1>&6
  1038.  
  1039. if test $ac_cv_prog_gcc = yes; then
  1040.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  1041. echo "configure:1042: checking whether ${CC-cc} needs -traditional" >&5
  1042. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  1043.   echo $ac_n "(cached) $ac_c" 1>&6
  1044. else
  1045.     ac_pattern="Autoconf.*'x'"
  1046.   cat > conftest.$ac_ext <<EOF
  1047. #line 1048 "configure"
  1048. #include "confdefs.h"
  1049. #include <sgtty.h>
  1050. Autoconf TIOCGETP
  1051. EOF
  1052. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1053.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1054.   rm -rf conftest*
  1055.   ac_cv_prog_gcc_traditional=yes
  1056. else
  1057.   rm -rf conftest*
  1058.   ac_cv_prog_gcc_traditional=no
  1059. fi
  1060. rm -f conftest*
  1061.  
  1062.  
  1063.   if test $ac_cv_prog_gcc_traditional = no; then
  1064.     cat > conftest.$ac_ext <<EOF
  1065. #line 1066 "configure"
  1066. #include "confdefs.h"
  1067. #include <termio.h>
  1068. Autoconf TCGETA
  1069. EOF
  1070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1071.   egrep "$ac_pattern" >/dev/null 2>&1; then
  1072.   rm -rf conftest*
  1073.   ac_cv_prog_gcc_traditional=yes
  1074. fi
  1075. rm -f conftest*
  1076.  
  1077.   fi
  1078. fi
  1079.  
  1080. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  1081.   if test $ac_cv_prog_gcc_traditional = yes; then
  1082.     CC="$CC -traditional"
  1083.   fi
  1084. fi
  1085.  
  1086.  
  1087.  
  1088. mymakefile="Makefile"
  1089. on_qnx=no
  1090. on_beos=no
  1091. case "$target" in
  1092.     *hp-hpux*) 
  1093.         SYS_DEFS="-D_HPUX_SOURCE"
  1094.         ;;
  1095.     *ibm-aix*)
  1096.         SYS_DEFS="-D_ALL_SOURCE"
  1097.         mymakefile="Makefile.aix"
  1098.         ;;
  1099.     *dec-osf4*)
  1100.         cat >> confdefs.h <<\EOF
  1101. #define HAVE_BROKEN_SYS_ACL_H 1
  1102. EOF
  1103.  
  1104.         ;;
  1105.     *dec-osf*)
  1106.         ;;
  1107.     *sequent-dynix*)
  1108.         ;;
  1109.     *solaris*)
  1110.         ;;
  1111.     sparc*sunos*)
  1112.         ;;
  1113.     *linux*)
  1114.         ;;
  1115.     *nto-qnx*)
  1116.         ;;
  1117.     *qnx*)
  1118.         on_qnx=yes
  1119.         SYS_DEFS="-Q"
  1120.         ;;
  1121.     *beos*)
  1122.         on_beos=yes
  1123.         ;;
  1124. esac
  1125.  
  1126.  
  1127. # Check whether --with-rexx or --without-rexx was given.
  1128. if test "${with_rexx+set}" = set; then
  1129.   withval="$with_rexx"
  1130.   with_rexx=$withval
  1131. else
  1132.   with_rexx=no
  1133. fi
  1134.  
  1135. # Check whether --with-rexxincdir or --without-rexxincdir was given.
  1136. if test "${with_rexxincdir+set}" = set; then
  1137.   withval="$with_rexxincdir"
  1138.   with_rexxincdir=$withval
  1139. else
  1140.   with_rexxincdir=no
  1141. fi
  1142.  
  1143. # Check whether --with-rexxlibdir or --without-rexxlibdir was given.
  1144. if test "${with_rexxlibdir+set}" = set; then
  1145.   withval="$with_rexxlibdir"
  1146.   with_rexxlibdir=$withval
  1147. else
  1148.   with_rexxlibdir=no
  1149. fi
  1150.  
  1151.  
  1152.  
  1153. extra_rexx_libs=""
  1154. extra_rexx_defines=""
  1155. orexx_incdirs=""
  1156. orexx_libdirs=""
  1157. case "$with_rexx" in
  1158.     regina)                       cat >> confdefs.h <<\EOF
  1159. #define USE_REGINA 1
  1160. EOF
  1161.  
  1162.         rexx_h="rexxsaa.h"
  1163.         rexx_l="regina"
  1164.         REXX_INT="Regina"
  1165.         REXX_TARGET="Regina"
  1166.         case "$target" in
  1167.             *nto-qnx*)
  1168.             
  1169. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  1170. echo "configure:1171: checking for library containing dlopen" >&5
  1171. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  1172.   echo $ac_n "(cached) $ac_c" 1>&6
  1173. else
  1174.   ac_func_search_save_LIBS="$LIBS"
  1175. ac_cv_search_dlopen="no"
  1176. cat > conftest.$ac_ext <<EOF
  1177. #line 1178 "configure"
  1178. #include "confdefs.h"
  1179. /* Override any gcc2 internal prototype to avoid an error.  */
  1180. /* We use char because int might match the return type of a gcc2
  1181.     builtin and then its argument prototype would still apply.  */
  1182. char dlopen();
  1183.  
  1184. int main() {
  1185. dlopen()
  1186. ; return 0; }
  1187. EOF
  1188. if { (eval echo configure:1189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1189.   rm -rf conftest*
  1190.   ac_cv_search_dlopen="none required"
  1191. else
  1192.   echo "configure: failed program was:" >&5
  1193.   cat conftest.$ac_ext >&5
  1194. fi
  1195. rm -f conftest*
  1196. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  1197. LIBS="-l$i  $ac_func_search_save_LIBS"
  1198. cat > conftest.$ac_ext <<EOF
  1199. #line 1200 "configure"
  1200. #include "confdefs.h"
  1201. /* Override any gcc2 internal prototype to avoid an error.  */
  1202. /* We use char because int might match the return type of a gcc2
  1203.     builtin and then its argument prototype would still apply.  */
  1204. char dlopen();
  1205.  
  1206. int main() {
  1207. dlopen()
  1208. ; return 0; }
  1209. EOF
  1210. if { (eval echo configure:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1211.   rm -rf conftest*
  1212.   ac_cv_search_dlopen="-l$i"
  1213. break
  1214. else
  1215.   echo "configure: failed program was:" >&5
  1216.   cat conftest.$ac_ext >&5
  1217. fi
  1218. rm -f conftest*
  1219. done
  1220. LIBS="$ac_func_search_save_LIBS"
  1221. fi
  1222.  
  1223. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  1224. if test "$ac_cv_search_dlopen" != "no"; then
  1225.   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  1226.   
  1227. else :
  1228.   
  1229. fi
  1230.             ;;
  1231.             *qnx*)
  1232.             ;;
  1233.             *hp-hpux*)
  1234.             
  1235. echo $ac_n "checking for library containing shl_load""... $ac_c" 1>&6
  1236. echo "configure:1237: checking for library containing shl_load" >&5
  1237. if eval "test \"`echo '$''{'ac_cv_search_shl_load'+set}'`\" = set"; then
  1238.   echo $ac_n "(cached) $ac_c" 1>&6
  1239. else
  1240.   ac_func_search_save_LIBS="$LIBS"
  1241. ac_cv_search_shl_load="no"
  1242. cat > conftest.$ac_ext <<EOF
  1243. #line 1244 "configure"
  1244. #include "confdefs.h"
  1245. /* Override any gcc2 internal prototype to avoid an error.  */
  1246. /* We use char because int might match the return type of a gcc2
  1247.     builtin and then its argument prototype would still apply.  */
  1248. char shl_load();
  1249.  
  1250. int main() {
  1251. shl_load()
  1252. ; return 0; }
  1253. EOF
  1254. if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1255.   rm -rf conftest*
  1256.   ac_cv_search_shl_load="none required"
  1257. else
  1258.   echo "configure: failed program was:" >&5
  1259.   cat conftest.$ac_ext >&5
  1260. fi
  1261. rm -f conftest*
  1262. test "$ac_cv_search_shl_load" = "no" && for i in dld; do
  1263. LIBS="-l$i  $ac_func_search_save_LIBS"
  1264. cat > conftest.$ac_ext <<EOF
  1265. #line 1266 "configure"
  1266. #include "confdefs.h"
  1267. /* Override any gcc2 internal prototype to avoid an error.  */
  1268. /* We use char because int might match the return type of a gcc2
  1269.     builtin and then its argument prototype would still apply.  */
  1270. char shl_load();
  1271.  
  1272. int main() {
  1273. shl_load()
  1274. ; return 0; }
  1275. EOF
  1276. if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1277.   rm -rf conftest*
  1278.   ac_cv_search_shl_load="-l$i"
  1279. break
  1280. else
  1281.   echo "configure: failed program was:" >&5
  1282.   cat conftest.$ac_ext >&5
  1283. fi
  1284. rm -f conftest*
  1285. done
  1286. LIBS="$ac_func_search_save_LIBS"
  1287. fi
  1288.  
  1289. echo "$ac_t""$ac_cv_search_shl_load" 1>&6
  1290. if test "$ac_cv_search_shl_load" != "no"; then
  1291.   test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
  1292.   
  1293. else :
  1294.   
  1295. fi
  1296.             ;;
  1297.             *)
  1298.         
  1299. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  1300. echo "configure:1301: checking for library containing dlopen" >&5
  1301. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  1302.   echo $ac_n "(cached) $ac_c" 1>&6
  1303. else
  1304.   ac_func_search_save_LIBS="$LIBS"
  1305. ac_cv_search_dlopen="no"
  1306. cat > conftest.$ac_ext <<EOF
  1307. #line 1308 "configure"
  1308. #include "confdefs.h"
  1309. /* Override any gcc2 internal prototype to avoid an error.  */
  1310. /* We use char because int might match the return type of a gcc2
  1311.     builtin and then its argument prototype would still apply.  */
  1312. char dlopen();
  1313.  
  1314. int main() {
  1315. dlopen()
  1316. ; return 0; }
  1317. EOF
  1318. if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1319.   rm -rf conftest*
  1320.   ac_cv_search_dlopen="none required"
  1321. else
  1322.   echo "configure: failed program was:" >&5
  1323.   cat conftest.$ac_ext >&5
  1324. fi
  1325. rm -f conftest*
  1326. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  1327. LIBS="-l$i  $ac_func_search_save_LIBS"
  1328. cat > conftest.$ac_ext <<EOF
  1329. #line 1330 "configure"
  1330. #include "confdefs.h"
  1331. /* Override any gcc2 internal prototype to avoid an error.  */
  1332. /* We use char because int might match the return type of a gcc2
  1333.     builtin and then its argument prototype would still apply.  */
  1334. char dlopen();
  1335.  
  1336. int main() {
  1337. dlopen()
  1338. ; return 0; }
  1339. EOF
  1340. if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1341.   rm -rf conftest*
  1342.   ac_cv_search_dlopen="-l$i"
  1343. break
  1344. else
  1345.   echo "configure: failed program was:" >&5
  1346.   cat conftest.$ac_ext >&5
  1347. fi
  1348. rm -f conftest*
  1349. done
  1350. LIBS="$ac_func_search_save_LIBS"
  1351. fi
  1352.  
  1353. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  1354. if test "$ac_cv_search_dlopen" != "no"; then
  1355.   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  1356.   
  1357. else :
  1358.   
  1359. fi
  1360.             ;;
  1361.         esac
  1362.         
  1363. echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
  1364. echo "configure:1365: checking for library containing crypt" >&5
  1365. if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
  1366.   echo $ac_n "(cached) $ac_c" 1>&6
  1367. else
  1368.   ac_func_search_save_LIBS="$LIBS"
  1369. ac_cv_search_crypt="no"
  1370. cat > conftest.$ac_ext <<EOF
  1371. #line 1372 "configure"
  1372. #include "confdefs.h"
  1373. /* Override any gcc2 internal prototype to avoid an error.  */
  1374. /* We use char because int might match the return type of a gcc2
  1375.     builtin and then its argument prototype would still apply.  */
  1376. char crypt();
  1377.  
  1378. int main() {
  1379. crypt()
  1380. ; return 0; }
  1381. EOF
  1382. if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1383.   rm -rf conftest*
  1384.   ac_cv_search_crypt="none required"
  1385. else
  1386.   echo "configure: failed program was:" >&5
  1387.   cat conftest.$ac_ext >&5
  1388. fi
  1389. rm -f conftest*
  1390. test "$ac_cv_search_crypt" = "no" && for i in crypt; do
  1391. LIBS="-l$i  $ac_func_search_save_LIBS"
  1392. cat > conftest.$ac_ext <<EOF
  1393. #line 1394 "configure"
  1394. #include "confdefs.h"
  1395. /* Override any gcc2 internal prototype to avoid an error.  */
  1396. /* We use char because int might match the return type of a gcc2
  1397.     builtin and then its argument prototype would still apply.  */
  1398. char crypt();
  1399.  
  1400. int main() {
  1401. crypt()
  1402. ; return 0; }
  1403. EOF
  1404. if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1405.   rm -rf conftest*
  1406.   ac_cv_search_crypt="-l$i"
  1407. break
  1408. else
  1409.   echo "configure: failed program was:" >&5
  1410.   cat conftest.$ac_ext >&5
  1411. fi
  1412. rm -f conftest*
  1413. done
  1414. LIBS="$ac_func_search_save_LIBS"
  1415. fi
  1416.  
  1417. echo "$ac_t""$ac_cv_search_crypt" 1>&6
  1418. if test "$ac_cv_search_crypt" != "no"; then
  1419.   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
  1420.   
  1421. else :
  1422.   
  1423. fi
  1424.         # Extract the first word of "flex", so it can be a program name with args.
  1425. set dummy flex; ac_word=$2
  1426. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1427. echo "configure:1428: checking for $ac_word" >&5
  1428. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  1429.   echo $ac_n "(cached) $ac_c" 1>&6
  1430. else
  1431.   if test -n "$LEX"; then
  1432.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1433. else
  1434.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1435.   ac_dummy="$PATH"
  1436.   for ac_dir in $ac_dummy; do
  1437.     test -z "$ac_dir" && ac_dir=.
  1438.     if test -f $ac_dir/$ac_word; then
  1439.       ac_cv_prog_LEX="flex"
  1440.       break
  1441.     fi
  1442.   done
  1443.   IFS="$ac_save_ifs"
  1444.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1445. fi
  1446. fi
  1447. LEX="$ac_cv_prog_LEX"
  1448. if test -n "$LEX"; then
  1449.   echo "$ac_t""$LEX" 1>&6
  1450. else
  1451.   echo "$ac_t""no" 1>&6
  1452. fi
  1453.  
  1454. if test -z "$LEXLIB"
  1455. then
  1456.   case "$LEX" in
  1457.   flex*) ac_lib=fl ;;
  1458.   *) ac_lib=l ;;
  1459.   esac
  1460.   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  1461. echo "configure:1462: checking for yywrap in -l$ac_lib" >&5
  1462. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  1463. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1464.   echo $ac_n "(cached) $ac_c" 1>&6
  1465. else
  1466.   ac_save_LIBS="$LIBS"
  1467. LIBS="-l$ac_lib  $LIBS"
  1468. cat > conftest.$ac_ext <<EOF
  1469. #line 1470 "configure"
  1470. #include "confdefs.h"
  1471. /* Override any gcc2 internal prototype to avoid an error.  */
  1472. /* We use char because int might match the return type of a gcc2
  1473.     builtin and then its argument prototype would still apply.  */
  1474. char yywrap();
  1475.  
  1476. int main() {
  1477. yywrap()
  1478. ; return 0; }
  1479. EOF
  1480. if { (eval echo configure:1481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1481.   rm -rf conftest*
  1482.   eval "ac_cv_lib_$ac_lib_var=yes"
  1483. else
  1484.   echo "configure: failed program was:" >&5
  1485.   cat conftest.$ac_ext >&5
  1486.   rm -rf conftest*
  1487.   eval "ac_cv_lib_$ac_lib_var=no"
  1488. fi
  1489. rm -f conftest*
  1490. LIBS="$ac_save_LIBS"
  1491.  
  1492. fi
  1493. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1494.   echo "$ac_t""yes" 1>&6
  1495.   LEXLIB="-l$ac_lib"
  1496. else
  1497.   echo "$ac_t""no" 1>&6
  1498. fi
  1499.  
  1500. fi
  1501.  
  1502.     ;;
  1503.     objrexx)                      cat >> confdefs.h <<\EOF
  1504. #define USE_OREXX 1
  1505. EOF
  1506.  
  1507.         rexx_h="rexx.h"
  1508.         rexx_l="rexxapi"
  1509.         REXX_INT="Object Rexx"
  1510.         REXX_TARGET="ObjectRexx"
  1511.         extra_rexx_libs="-lrexx"
  1512.         orexx_incdirs="/opt/orexx /usr/local/orexx"
  1513.         orexx_libdirs="/opt/orexx/lib /usr/local/orexx/lib"
  1514.         case "$target" in
  1515.             *linux*)
  1516.             extra_rexx_defines="-DLINUX"
  1517.             ;;
  1518.             *)
  1519.             ;;
  1520.         esac
  1521.     
  1522. echo $ac_n "checking for library containing pthread_create""... $ac_c" 1>&6
  1523. echo "configure:1524: checking for library containing pthread_create" >&5
  1524. if eval "test \"`echo '$''{'ac_cv_search_pthread_create'+set}'`\" = set"; then
  1525.   echo $ac_n "(cached) $ac_c" 1>&6
  1526. else
  1527.   ac_func_search_save_LIBS="$LIBS"
  1528. ac_cv_search_pthread_create="no"
  1529. cat > conftest.$ac_ext <<EOF
  1530. #line 1531 "configure"
  1531. #include "confdefs.h"
  1532. /* Override any gcc2 internal prototype to avoid an error.  */
  1533. /* We use char because int might match the return type of a gcc2
  1534.     builtin and then its argument prototype would still apply.  */
  1535. char pthread_create();
  1536.  
  1537. int main() {
  1538. pthread_create()
  1539. ; return 0; }
  1540. EOF
  1541. if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1542.   rm -rf conftest*
  1543.   ac_cv_search_pthread_create="none required"
  1544. else
  1545.   echo "configure: failed program was:" >&5
  1546.   cat conftest.$ac_ext >&5
  1547. fi
  1548. rm -f conftest*
  1549. test "$ac_cv_search_pthread_create" = "no" && for i in pthread pthreads thread; do
  1550. LIBS="-l$i  $ac_func_search_save_LIBS"
  1551. cat > conftest.$ac_ext <<EOF
  1552. #line 1553 "configure"
  1553. #include "confdefs.h"
  1554. /* Override any gcc2 internal prototype to avoid an error.  */
  1555. /* We use char because int might match the return type of a gcc2
  1556.     builtin and then its argument prototype would still apply.  */
  1557. char pthread_create();
  1558.  
  1559. int main() {
  1560. pthread_create()
  1561. ; return 0; }
  1562. EOF
  1563. if { (eval echo configure:1564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1564.   rm -rf conftest*
  1565.   ac_cv_search_pthread_create="-l$i"
  1566. break
  1567. else
  1568.   echo "configure: failed program was:" >&5
  1569.   cat conftest.$ac_ext >&5
  1570. fi
  1571. rm -f conftest*
  1572. done
  1573. LIBS="$ac_func_search_save_LIBS"
  1574. fi
  1575.  
  1576. echo "$ac_t""$ac_cv_search_pthread_create" 1>&6
  1577. if test "$ac_cv_search_pthread_create" != "no"; then
  1578.   test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
  1579.   
  1580. else :
  1581.   
  1582. fi
  1583.     ;;
  1584.     rexximc)                      cat >> confdefs.h <<\EOF
  1585. #define USE_REXXIMC 1
  1586. EOF
  1587.  
  1588.         rexx_h="rexxsaa.h"
  1589.         rexx_l="rexx"
  1590.         REXX_INT="REXX/imc"
  1591.         REXX_TARGET="REXXimc"
  1592.         
  1593. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  1594. echo "configure:1595: checking for library containing dlopen" >&5
  1595. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  1596.   echo $ac_n "(cached) $ac_c" 1>&6
  1597. else
  1598.   ac_func_search_save_LIBS="$LIBS"
  1599. ac_cv_search_dlopen="no"
  1600. cat > conftest.$ac_ext <<EOF
  1601. #line 1602 "configure"
  1602. #include "confdefs.h"
  1603. /* Override any gcc2 internal prototype to avoid an error.  */
  1604. /* We use char because int might match the return type of a gcc2
  1605.     builtin and then its argument prototype would still apply.  */
  1606. char dlopen();
  1607.  
  1608. int main() {
  1609. dlopen()
  1610. ; return 0; }
  1611. EOF
  1612. if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1613.   rm -rf conftest*
  1614.   ac_cv_search_dlopen="none required"
  1615. else
  1616.   echo "configure: failed program was:" >&5
  1617.   cat conftest.$ac_ext >&5
  1618. fi
  1619. rm -f conftest*
  1620. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  1621. LIBS="-l$i  $ac_func_search_save_LIBS"
  1622. cat > conftest.$ac_ext <<EOF
  1623. #line 1624 "configure"
  1624. #include "confdefs.h"
  1625. /* Override any gcc2 internal prototype to avoid an error.  */
  1626. /* We use char because int might match the return type of a gcc2
  1627.     builtin and then its argument prototype would still apply.  */
  1628. char dlopen();
  1629.  
  1630. int main() {
  1631. dlopen()
  1632. ; return 0; }
  1633. EOF
  1634. if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1635.   rm -rf conftest*
  1636.   ac_cv_search_dlopen="-l$i"
  1637. break
  1638. else
  1639.   echo "configure: failed program was:" >&5
  1640.   cat conftest.$ac_ext >&5
  1641. fi
  1642. rm -f conftest*
  1643. done
  1644. LIBS="$ac_func_search_save_LIBS"
  1645. fi
  1646.  
  1647. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  1648. if test "$ac_cv_search_dlopen" != "no"; then
  1649.   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  1650.   
  1651. else :
  1652.   
  1653. fi
  1654.     ;;
  1655.     rexx6000)                     if test "$with_rexx6000" = yes ; then
  1656.         case "$target" in
  1657.             *aix*)
  1658.                 ;;
  1659.             *)
  1660.                     { echo "configure: error: REXX/6000 support only available on AIX; cannot configure" 1>&2; exit 1; }
  1661.                     ;;
  1662.         esac
  1663.     fi
  1664.         cat >> confdefs.h <<\EOF
  1665. #define USE_REXX6000 1
  1666. EOF
  1667.  
  1668.         rexx_h="rexxtype.h"
  1669.         rexx_l="rexx"
  1670.         REXX_INT="REXX/6000"
  1671.         REXX_TARGET="REXX6000"
  1672.     ;;
  1673.     unirexx)                      cat >> confdefs.h <<\EOF
  1674. #define USE_UNIREXX 1
  1675. EOF
  1676.  
  1677.         rexx_h="rexxsaa.h"
  1678.         rexx_l="rx"
  1679.         REXX_INT="uni-REXX"
  1680.         REXX_TARGET="uni-REXX"
  1681.         
  1682. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  1683. echo "configure:1684: checking for library containing dlopen" >&5
  1684. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  1685.   echo $ac_n "(cached) $ac_c" 1>&6
  1686. else
  1687.   ac_func_search_save_LIBS="$LIBS"
  1688. ac_cv_search_dlopen="no"
  1689. cat > conftest.$ac_ext <<EOF
  1690. #line 1691 "configure"
  1691. #include "confdefs.h"
  1692. /* Override any gcc2 internal prototype to avoid an error.  */
  1693. /* We use char because int might match the return type of a gcc2
  1694.     builtin and then its argument prototype would still apply.  */
  1695. char dlopen();
  1696.  
  1697. int main() {
  1698. dlopen()
  1699. ; return 0; }
  1700. EOF
  1701. if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1702.   rm -rf conftest*
  1703.   ac_cv_search_dlopen="none required"
  1704. else
  1705.   echo "configure: failed program was:" >&5
  1706.   cat conftest.$ac_ext >&5
  1707. fi
  1708. rm -f conftest*
  1709. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  1710. LIBS="-l$i  $ac_func_search_save_LIBS"
  1711. cat > conftest.$ac_ext <<EOF
  1712. #line 1713 "configure"
  1713. #include "confdefs.h"
  1714. /* Override any gcc2 internal prototype to avoid an error.  */
  1715. /* We use char because int might match the return type of a gcc2
  1716.     builtin and then its argument prototype would still apply.  */
  1717. char dlopen();
  1718.  
  1719. int main() {
  1720. dlopen()
  1721. ; return 0; }
  1722. EOF
  1723. if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1724.   rm -rf conftest*
  1725.   ac_cv_search_dlopen="-l$i"
  1726. break
  1727. else
  1728.   echo "configure: failed program was:" >&5
  1729.   cat conftest.$ac_ext >&5
  1730. fi
  1731. rm -f conftest*
  1732. done
  1733. LIBS="$ac_func_search_save_LIBS"
  1734. fi
  1735.  
  1736. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  1737. if test "$ac_cv_search_dlopen" != "no"; then
  1738.   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  1739.   
  1740. else :
  1741.   
  1742. fi
  1743.     ;;
  1744.     rexxtrans)                    cat >> confdefs.h <<\EOF
  1745. #define USE_REXXTRANS 1
  1746. EOF
  1747.  
  1748.         rexx_h="rexxtrans.h"
  1749.         rexx_l="rexxtrans"
  1750.         REXX_INT="Rexx/Trans"
  1751.         REXX_TARGET="RexxTrans"
  1752.         
  1753. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  1754. echo "configure:1755: checking for library containing dlopen" >&5
  1755. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  1756.   echo $ac_n "(cached) $ac_c" 1>&6
  1757. else
  1758.   ac_func_search_save_LIBS="$LIBS"
  1759. ac_cv_search_dlopen="no"
  1760. cat > conftest.$ac_ext <<EOF
  1761. #line 1762 "configure"
  1762. #include "confdefs.h"
  1763. /* Override any gcc2 internal prototype to avoid an error.  */
  1764. /* We use char because int might match the return type of a gcc2
  1765.     builtin and then its argument prototype would still apply.  */
  1766. char dlopen();
  1767.  
  1768. int main() {
  1769. dlopen()
  1770. ; return 0; }
  1771. EOF
  1772. if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1773.   rm -rf conftest*
  1774.   ac_cv_search_dlopen="none required"
  1775. else
  1776.   echo "configure: failed program was:" >&5
  1777.   cat conftest.$ac_ext >&5
  1778. fi
  1779. rm -f conftest*
  1780. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  1781. LIBS="-l$i  $ac_func_search_save_LIBS"
  1782. cat > conftest.$ac_ext <<EOF
  1783. #line 1784 "configure"
  1784. #include "confdefs.h"
  1785. /* Override any gcc2 internal prototype to avoid an error.  */
  1786. /* We use char because int might match the return type of a gcc2
  1787.     builtin and then its argument prototype would still apply.  */
  1788. char dlopen();
  1789.  
  1790. int main() {
  1791. dlopen()
  1792. ; return 0; }
  1793. EOF
  1794. if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1795.   rm -rf conftest*
  1796.   ac_cv_search_dlopen="-l$i"
  1797. break
  1798. else
  1799.   echo "configure: failed program was:" >&5
  1800.   cat conftest.$ac_ext >&5
  1801. fi
  1802. rm -f conftest*
  1803. done
  1804. LIBS="$ac_func_search_save_LIBS"
  1805. fi
  1806.  
  1807. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  1808. if test "$ac_cv_search_dlopen" != "no"; then
  1809.   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  1810.   
  1811. else :
  1812.   
  1813. fi
  1814.     ;;
  1815.     none)                         cat >> confdefs.h <<\EOF
  1816. #define NOREXX 1
  1817. EOF
  1818.  
  1819.         rexx_h=""
  1820.         rexx_l=""
  1821.         REXX_INT="No Rexx Support"
  1822.         REXX_TARGET=""
  1823.     ;;
  1824.     *)
  1825.         { echo "configure: error: No Rexx interpreter specified with --with-rexx=int : must be one of: regina rexximc objrexx unirexx rexx6000 rexxtrans none" 1>&2; exit 1; }
  1826.     ;;
  1827. esac
  1828.  
  1829.  
  1830. if test "xx$rexx_h" = "xx" ; then
  1831.     REXX_LIBS=""
  1832.     REXX_INCLUDES=""
  1833.     
  1834.     
  1835. else
  1836.     echo $ac_n "checking for location of Rexx header file: $rexx_h""... $ac_c" 1>&6
  1837. echo "configure:1838: checking for location of Rexx header file: $rexx_h" >&5
  1838.     mh_rexx_inc_dir=""
  1839.     mh_inc_dirs="\
  1840.         ${REXXINCDIR}             \
  1841.         ${orexx_incdirs}          \
  1842.         ${HOME}/include           \
  1843.         /usr/local/include        \
  1844.         /usr/contrib/include      \
  1845.         /opt/include              \
  1846.         /usr/include              \
  1847.         /usr/unsupported/include"
  1848.     if test "$with_rexxincdir" != no ; then
  1849.         mh_inc_dirs="$with_rexxincdir $mh_inc_dirs"
  1850.     fi
  1851.     for ac_dir in $mh_inc_dirs ; do
  1852.       if test -r $ac_dir/$rexx_h; then
  1853.         mh_rexx_inc_dir=$ac_dir
  1854.         break
  1855.       fi
  1856.     done
  1857.     if test "x$mh_rexx_inc_dir" != "x" ; then
  1858.         REXX_INCLUDES="-I$mh_rexx_inc_dir $extra_rexx_defines"
  1859.         echo "$ac_t""found in $mh_rexx_inc_dir" 1>&6
  1860.         
  1861.     else
  1862.         { echo "configure: error: Cannot find Rexx header file: $rexx_h; cannot configure" 1>&2; exit 1; }
  1863.     fi
  1864.     echo $ac_n "checking for location of Rexx library file: $rexx_l""... $ac_c" 1>&6
  1865. echo "configure:1866: checking for location of Rexx library file: $rexx_l" >&5
  1866.     mh_rexx_lib_dir=""
  1867.     mh_lib_dirs="\
  1868.         ${REXXLIBDIR}             \
  1869.         ${orexx_libdirs}          \
  1870.         ${HOME}/lib               \
  1871.         /usr/local/lib            \
  1872.         /usr/contrib/lib          \
  1873.         /opt/lib                  \
  1874.         /usr/lib                  \
  1875.         /usr/unsupported/lib"
  1876.     if test "$with_rexxlibdir" != no ; then
  1877.         mh_lib_dirs="$with_rexxlibdir $mh_lib_dirs"
  1878.     fi
  1879.     for ac_dir in $mh_lib_dirs ; do
  1880.         for mh_ext in lib${rexx_l}.a lib${rexx_l}.so lib${rexx_l}.sl ${rexx_l}.lib; do
  1881.           if test -r $ac_dir/$mh_ext; then
  1882.              mh_rexx_lib_dir=$ac_dir
  1883.           if test "$with_rexxtrans" = yes; then
  1884.              rexxtrans_lib_name="$ac_dir/$mh_ext"
  1885.           else
  1886.              rexxtrans_lib_name="."
  1887.           fi
  1888.              break 2
  1889.           fi
  1890.         done
  1891.     done
  1892.     if test "x$mh_rexx_lib_dir" != "x" ; then
  1893.         REXX_LIBS="-L$mh_rexx_lib_dir -l$rexx_l $extra_rexx_libs"
  1894.         echo "$ac_t""found in $mh_rexx_lib_dir" 1>&6
  1895.         
  1896.         
  1897.     else
  1898.         { echo "configure: error: Cannot find Rexx library file: $rexx_l; cannot configure" 1>&2; exit 1; }
  1899.     fi
  1900. fi
  1901.  
  1902.  
  1903.  
  1904. # Check whether --with-tkincdir or --without-tkincdir was given.
  1905. if test "${with_tkincdir+set}" = set; then
  1906.   withval="$with_tkincdir"
  1907.   with_tkincdir=$withval
  1908. else
  1909.   with_tkincdir=no
  1910. fi
  1911.  
  1912. if test "$with_tkincdir" = no; then
  1913.     TKINCDIR=""
  1914. else
  1915.     TKINCDIR="-I$with_tkincdir"
  1916. fi
  1917.  
  1918.  
  1919. # Check whether --with-tklibdir or --without-tklibdir was given.
  1920. if test "${with_tklibdir+set}" = set; then
  1921.   withval="$with_tklibdir"
  1922.   with_tklibdir=$withval
  1923. else
  1924.   with_tklibdir=no
  1925. fi
  1926.  
  1927. if test "$with_tklibdir" = no; then
  1928.     TKLIBDIR=""
  1929. else
  1930.     TKLIBDIR="-L$with_tklibdir"
  1931. fi
  1932.  
  1933.  
  1934. MH_LIBS_TO_CHECK="m s socket nls"
  1935.  
  1936. MH_EXTRA_LIBS=''
  1937. for mh_lib in ${MH_LIBS_TO_CHECK}; do
  1938.     if test "$on_qnx" = yes; then
  1939.         echo $ac_n "checking for library -l${mh_lib}""... $ac_c" 1>&6
  1940. echo "configure:1941: checking for library -l${mh_lib}" >&5
  1941.         if test -r /usr/lib/${mh_lib}3r.lib; then
  1942.             echo "$ac_t""found" 1>&6
  1943.             MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
  1944.         else
  1945.         echo "$ac_t""not found" 1>&6
  1946.         fi
  1947.     else
  1948.         echo $ac_n "checking for main in -l$mh_lib""... $ac_c" 1>&6
  1949. echo "configure:1950: checking for main in -l$mh_lib" >&5
  1950. ac_lib_var=`echo $mh_lib'_'main | sed 'y%./+-%__p_%'`
  1951. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1952.   echo $ac_n "(cached) $ac_c" 1>&6
  1953. else
  1954.   ac_save_LIBS="$LIBS"
  1955. LIBS="-l$mh_lib  $LIBS"
  1956. cat > conftest.$ac_ext <<EOF
  1957. #line 1958 "configure"
  1958. #include "confdefs.h"
  1959.  
  1960. int main() {
  1961. main()
  1962. ; return 0; }
  1963. EOF
  1964. if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1965.   rm -rf conftest*
  1966.   eval "ac_cv_lib_$ac_lib_var=yes"
  1967. else
  1968.   echo "configure: failed program was:" >&5
  1969.   cat conftest.$ac_ext >&5
  1970.   rm -rf conftest*
  1971.   eval "ac_cv_lib_$ac_lib_var=no"
  1972. fi
  1973. rm -f conftest*
  1974. LIBS="$ac_save_LIBS"
  1975.  
  1976. fi
  1977. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1978.   echo "$ac_t""yes" 1>&6
  1979.   mh_lib_found=yes
  1980. else
  1981.   echo "$ac_t""no" 1>&6
  1982. mh_lib_found=no
  1983. fi
  1984.  
  1985.         if test "$mh_lib_found" = yes; then
  1986.             MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -l${mh_lib}"
  1987.         fi
  1988.     fi
  1989. done
  1990.  
  1991. MH_XLIBS=""
  1992. MH_XINC_DIR=""
  1993.  
  1994. mh_solaris_flag=no
  1995. mh_hpux9_flag=no
  1996.  
  1997. case "$target" in
  1998.     *solaris*)
  1999.         mh_solaris_flag=yes
  2000.         ;;
  2001.     *pc-sco*)
  2002.         extra_x_libs="Xext"
  2003.         ;;
  2004.     sparc*sunos*)
  2005.         extra_x_libs="Xext"
  2006.         if test "$ac_cv_prog_CC" = "gcc" ; then
  2007.             extra_ld_flags="-Wl,-Bstatic"
  2008.             extra_ld_flags2="-Wl,-Bdynamic"
  2009.         else
  2010.             extra_ld_flags="-Bstatic"
  2011.             extra_ld_flags2="-Bdynamic"
  2012.         fi
  2013.         ;;
  2014.     *hpux9*)
  2015.         mh_hpux9_flag=yes
  2016.         ;;
  2017. esac
  2018.  
  2019. echo $ac_n "checking for location of X libraries""... $ac_c" 1>&6
  2020. echo "configure:2021: checking for location of X libraries" >&5
  2021. if test "$with_xaw3d" = yes; then
  2022.     MH_X11_LIBS="Xaw3d Xmu Xt X11"
  2023. else
  2024.     MH_X11_LIBS="Xaw Xmu Xt X11"
  2025. fi
  2026. MH_X11R6_LIBS="SM ICE Xext"
  2027. mh_x11r6=no
  2028. mh_lib_dirs="\
  2029.     $HOME/lib             \
  2030.     /tmp/lib              \
  2031.     /usr/X11R6/lib        \
  2032.     /usr/lib/X11R6        \
  2033.     /usr/local/X11R6/lib  \
  2034.     /usr/local/lib/X11R6  \
  2035.  
  2036.     /usr/X11R5/lib        \
  2037.     /usr/lib/X11R5        \
  2038.     /usr/local/X11R5/lib  \
  2039.     /usr/local/lib/X11R5  \
  2040.     /usr/local/x11r5/lib  \
  2041.  
  2042.     /usr/X11R4/lib        \
  2043.     /usr/lib/X11R4        \
  2044.     /usr/local/X11R4/lib  \
  2045.     /usr/local/lib/X11R4  \
  2046.                           \
  2047.     /usr/X11/lib          \
  2048.     /usr/lib/X11          \
  2049.     /usr/local/X11/lib    \
  2050.     /usr/local/lib/X11    \
  2051.                           \
  2052.     /usr/X386/lib         \
  2053.     /usr/x386/lib         \
  2054.     /usr/XFree86/lib/X11  \
  2055.                           \
  2056.     /usr/lib              \
  2057.     /usr/local/lib        \
  2058.     /usr/unsupported/lib  \
  2059.     /usr/athena/lib       \
  2060.     /usr/lpp/Xamples/lib  \
  2061.                           \
  2062.     /usr/openwin/lib      \
  2063.     /usr/openwin/share/lib"
  2064. if test "x$x_libraries" != xNONE ; then
  2065.     mh_lib_dirs="$x_libraries $mh_lib_dirs"
  2066. fi
  2067.  
  2068. for ac_dir in $mh_lib_dirs ; do
  2069.     for mh_xsm in libSM.a libSM.so libSM.sl; do
  2070.       if test -r $ac_dir/$mh_xsm; then
  2071.         mh_x11r6=yes
  2072.         break 2
  2073.       fi
  2074.     done
  2075. done
  2076.  
  2077. if test "$mh_x11r6" = yes ; then
  2078.     mh_libs="$MH_X11_LIBS $MH_X11R6_LIBS"
  2079. else
  2080.     mh_libs="$MH_X11_LIBS $extra_x_libs"
  2081. fi
  2082.  
  2083. mh_prev_dir=""
  2084. mh_where_found=""
  2085. mh_where_found_dirs=""
  2086. mh_solaris_path=""
  2087. for mh_lib in $mh_libs; do
  2088.   mh_lib_found=no
  2089.   for ac_dir in $mh_lib_dirs ; do
  2090.     for mh_ext in a so sl; do
  2091.       if test -r $ac_dir/lib$mh_lib.$mh_ext; then
  2092.         if test "x$mh_prev_dir" != "x$ac_dir" ; then
  2093.           if test "x$mh_prev_dir" = "x" ; then
  2094.              mh_where_found="$mh_where_found found in $ac_dir"
  2095.           else
  2096.              mh_where_found="$mh_where_found and in $ac_dir"
  2097.           fi
  2098.           mh_prev_dir=$ac_dir
  2099.           mh_where_found_dirs="$mh_where_found_dirs $ac_dir"
  2100.           MH_XLIBS="$MH_XLIBS -L$ac_dir"
  2101.           mh_solaris_path="${mh_solaris_path}:$ac_dir"
  2102.         fi
  2103.         MH_XLIBS="$MH_XLIBS -l$mh_lib"
  2104.         mh_lib_found=yes
  2105.         break 2
  2106.       fi
  2107.     done
  2108.   done
  2109.   if test "$mh_lib_found" = no; then
  2110.     { echo "configure: error: Cannot find required X library; lib$mh_lib. XCurses cannot be configured" 1>&2; exit 1; }
  2111.   fi
  2112. done
  2113. echo "$ac_t""$mh_where_found" 1>&6
  2114. mh_solaris_path=`echo $mh_solaris_path | sed 's/^://'`
  2115. if test "$mh_solaris_flag" = yes ; then
  2116.     MH_XLIBS="-R$mh_solaris_path $extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
  2117. else
  2118.     MH_XLIBS="$extra_ld_flags $MH_XLIBS $extra_libs $extra_ld_flags2"
  2119. fi
  2120. if test "$mh_hpux9_flag" = yes ; then
  2121.   grep -q XtSetLanguageProc $mh_x11_dir/Intrinsic.h
  2122.   if test $? -eq 0 ; then
  2123.     mh_found_xtshellstrings=no
  2124.     for mh_acdir in $mh_where_found_dirs ; do
  2125.       for mh_xaw in `ls $mh_acdir/libXaw.*` ; do
  2126.         nm $mh_xaw | grep XtShellStrings | grep -qv extern
  2127.         if test $? -eq 0 ; then
  2128.           mh_found_xtshellstrings=yes
  2129.         fi
  2130.       done
  2131.     done
  2132.     if test "$mh_found_xtshellstrings" = no ; then
  2133.       echo "configure: warning: The X11 development environment has not been installed correctly." 1>&2
  2134.       echo "configure: warning: The header file; Intrinsic.h" 1>&2
  2135.       echo "configure: warning: Set library; libXaw is for X11R4.  This is a common problem with" 1>&2
  2136.       echo "configure: warning: HP-UX 9.x." 1>&2
  2137.       echo "configure: warning: A set of required X11R5 library files can be obtained from the" 1>&2
  2138.       echo "configure: warning: anonymous ftp sites listed on the PDCurses WWW home page:" 1>&2
  2139.       echo "configure: warning: http://www.lightlink.com/hessling/" 1>&2
  2140.       echo "configure: warning: The file is called HPUX-9.x-libXaw-libXmu.tar.Z" 1>&2
  2141.       { echo "configure: error: X11 installation incomplete; cannot continue" 1>&2; exit 1; }
  2142.     fi
  2143.   fi
  2144. fi
  2145.     
  2146.  
  2147.  
  2148.  
  2149.  
  2150. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  2151. echo "configure:2152: checking whether ln -s works" >&5
  2152. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  2153.   echo $ac_n "(cached) $ac_c" 1>&6
  2154. else
  2155.   rm -f conftestdata
  2156. if ln -s X conftestdata 2>/dev/null
  2157. then
  2158.   rm -f conftestdata
  2159.   ac_cv_prog_LN_S="ln -s"
  2160. else
  2161.   ac_cv_prog_LN_S=ln
  2162. fi
  2163. fi
  2164. LN_S="$ac_cv_prog_LN_S"
  2165. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  2166.   echo "$ac_t""yes" 1>&6
  2167. else
  2168.   echo "$ac_t""no" 1>&6
  2169. fi
  2170.  
  2171. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  2172. echo "configure:2173: checking whether ${MAKE-make} sets \${MAKE}" >&5
  2173. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  2174. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  2175.   echo $ac_n "(cached) $ac_c" 1>&6
  2176. else
  2177.   cat > conftestmake <<\EOF
  2178. all:
  2179.     @echo 'ac_maketemp="${MAKE}"'
  2180. EOF
  2181. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2182. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  2183. if test -n "$ac_maketemp"; then
  2184.   eval ac_cv_prog_make_${ac_make}_set=yes
  2185. else
  2186.   eval ac_cv_prog_make_${ac_make}_set=no
  2187. fi
  2188. rm -f conftestmake
  2189. fi
  2190. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2191.   echo "$ac_t""yes" 1>&6
  2192.   SET_MAKE=
  2193. else
  2194.   echo "$ac_t""no" 1>&6
  2195.   SET_MAKE="MAKE=${MAKE-make}"
  2196. fi
  2197.  
  2198.  
  2199. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  2200. echo "configure:2201: checking for ANSI C header files" >&5
  2201. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  2202.   echo $ac_n "(cached) $ac_c" 1>&6
  2203. else
  2204.   cat > conftest.$ac_ext <<EOF
  2205. #line 2206 "configure"
  2206. #include "confdefs.h"
  2207. #include <stdlib.h>
  2208. #include <stdarg.h>
  2209. #include <string.h>
  2210. #include <float.h>
  2211. EOF
  2212. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2213. { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2214. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2215. if test -z "$ac_err"; then
  2216.   rm -rf conftest*
  2217.   ac_cv_header_stdc=yes
  2218. else
  2219.   echo "$ac_err" >&5
  2220.   echo "configure: failed program was:" >&5
  2221.   cat conftest.$ac_ext >&5
  2222.   rm -rf conftest*
  2223.   ac_cv_header_stdc=no
  2224. fi
  2225. rm -f conftest*
  2226.  
  2227. if test $ac_cv_header_stdc = yes; then
  2228.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2229. cat > conftest.$ac_ext <<EOF
  2230. #line 2231 "configure"
  2231. #include "confdefs.h"
  2232. #include <string.h>
  2233. EOF
  2234. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2235.   egrep "memchr" >/dev/null 2>&1; then
  2236.   :
  2237. else
  2238.   rm -rf conftest*
  2239.   ac_cv_header_stdc=no
  2240. fi
  2241. rm -f conftest*
  2242.  
  2243. fi
  2244.  
  2245. if test $ac_cv_header_stdc = yes; then
  2246.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2247. cat > conftest.$ac_ext <<EOF
  2248. #line 2249 "configure"
  2249. #include "confdefs.h"
  2250. #include <stdlib.h>
  2251. EOF
  2252. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2253.   egrep "free" >/dev/null 2>&1; then
  2254.   :
  2255. else
  2256.   rm -rf conftest*
  2257.   ac_cv_header_stdc=no
  2258. fi
  2259. rm -f conftest*
  2260.  
  2261. fi
  2262.  
  2263. if test $ac_cv_header_stdc = yes; then
  2264.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2265. if test "$cross_compiling" = yes; then
  2266.   :
  2267. else
  2268.   cat > conftest.$ac_ext <<EOF
  2269. #line 2270 "configure"
  2270. #include "confdefs.h"
  2271. #include <ctype.h>
  2272. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2273. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2274. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2275. int main () { int i; for (i = 0; i < 256; i++)
  2276. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  2277. exit (0); }
  2278.  
  2279. EOF
  2280. if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2281. then
  2282.   :
  2283. else
  2284.   echo "configure: failed program was:" >&5
  2285.   cat conftest.$ac_ext >&5
  2286.   rm -fr conftest*
  2287.   ac_cv_header_stdc=no
  2288. fi
  2289. rm -fr conftest*
  2290. fi
  2291.  
  2292. fi
  2293. fi
  2294.  
  2295. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  2296. if test $ac_cv_header_stdc = yes; then
  2297.   cat >> confdefs.h <<\EOF
  2298. #define STDC_HEADERS 1
  2299. EOF
  2300.  
  2301. fi
  2302.  
  2303. for ac_hdr in \
  2304.     ctype.h \
  2305.     assert.h \
  2306.     sys/types.h \
  2307.     sys/mode.h \
  2308.     sys/stat.h \
  2309.     sys/file.h \
  2310.     sys/wait.h \
  2311.     unistd.h \
  2312.     dirent.h \
  2313.     errno.h \
  2314.     stdlib.h \
  2315.     memory.h \
  2316.     fcntl.h \
  2317.     string.h \
  2318.     stdarg.h \
  2319.     stat.h \
  2320.     time.h \
  2321.     dlfcn.h \
  2322.     dl.h \
  2323.     
  2324. do
  2325. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  2326. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  2327. echo "configure:2328: checking for $ac_hdr" >&5
  2328. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2329.   echo $ac_n "(cached) $ac_c" 1>&6
  2330. else
  2331.   cat > conftest.$ac_ext <<EOF
  2332. #line 2333 "configure"
  2333. #include "confdefs.h"
  2334. #include <$ac_hdr>
  2335. EOF
  2336. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2337. { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2338. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2339. if test -z "$ac_err"; then
  2340.   rm -rf conftest*
  2341.   eval "ac_cv_header_$ac_safe=yes"
  2342. else
  2343.   echo "$ac_err" >&5
  2344.   echo "configure: failed program was:" >&5
  2345.   cat conftest.$ac_ext >&5
  2346.   rm -rf conftest*
  2347.   eval "ac_cv_header_$ac_safe=no"
  2348. fi
  2349. rm -f conftest*
  2350. fi
  2351. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2352.   echo "$ac_t""yes" 1>&6
  2353.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  2354.   cat >> confdefs.h <<EOF
  2355. #define $ac_tr_hdr 1
  2356. EOF
  2357.  
  2358. else
  2359.   echo "$ac_t""no" 1>&6
  2360. fi
  2361. done
  2362.  
  2363.  
  2364.  
  2365. echo $ac_n "checking if compiler supports ANSI prototypes""... $ac_c" 1>&6
  2366. echo "configure:2367: checking if compiler supports ANSI prototypes" >&5
  2367. ac_compile='$ac_cv_prog_CC conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
  2368. cat > conftest.$ac_ext <<EOF
  2369. #line 2370 "configure"
  2370. #include "confdefs.h"
  2371. #include <stdio.h>
  2372. int main() {
  2373. extern int xxx(int, char *);
  2374. ; return 0; }
  2375. EOF
  2376. if { (eval echo configure:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2377.   rm -rf conftest*
  2378.   mh_have_proto=yes; cat >> confdefs.h <<\EOF
  2379. #define HAVE_PROTO 1
  2380. EOF
  2381.  
  2382. else
  2383.   echo "configure: failed program was:" >&5
  2384.   cat conftest.$ac_ext >&5
  2385.   rm -rf conftest*
  2386.   mh_have_proto=no 
  2387. fi
  2388. rm -f conftest*
  2389. echo "$ac_t""$mh_have_proto" 1>&6
  2390.  
  2391.  
  2392. echo $ac_n "checking for working const""... $ac_c" 1>&6
  2393. echo "configure:2394: checking for working const" >&5
  2394. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  2395.   echo $ac_n "(cached) $ac_c" 1>&6
  2396. else
  2397.   cat > conftest.$ac_ext <<EOF
  2398. #line 2399 "configure"
  2399. #include "confdefs.h"
  2400.  
  2401. int main() {
  2402.  
  2403. /* Ultrix mips cc rejects this.  */
  2404. typedef int charset[2]; const charset x;
  2405. /* SunOS 4.1.1 cc rejects this.  */
  2406. char const *const *ccp;
  2407. char **p;
  2408. /* NEC SVR4.0.2 mips cc rejects this.  */
  2409. struct point {int x, y;};
  2410. static struct point const zero = {0,0};
  2411. /* AIX XL C 1.02.0.0 rejects this.
  2412.    It does not let you subtract one const X* pointer from another in an arm
  2413.    of an if-expression whose if-part is not a constant expression */
  2414. const char *g = "string";
  2415. ccp = &g + (g ? g-g : 0);
  2416. /* HPUX 7.0 cc rejects these. */
  2417. ++ccp;
  2418. p = (char**) ccp;
  2419. ccp = (char const *const *) p;
  2420. { /* SCO 3.2v4 cc rejects this.  */
  2421.   char *t;
  2422.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  2423.  
  2424.   *t++ = 0;
  2425. }
  2426. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  2427.   int x[] = {25, 17};
  2428.   const int *foo = &x[0];
  2429.   ++foo;
  2430. }
  2431. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2432.   typedef const int *iptr;
  2433.   iptr p = 0;
  2434.   ++p;
  2435. }
  2436. { /* AIX XL C 1.02.0.0 rejects this saying
  2437.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2438.   struct s { int j; const int *ap[3]; };
  2439.   struct s *b; b->j = 5;
  2440. }
  2441. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2442.   const int foo = 10;
  2443. }
  2444.  
  2445. ; return 0; }
  2446. EOF
  2447. if { (eval echo configure:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2448.   rm -rf conftest*
  2449.   ac_cv_c_const=yes
  2450. else
  2451.   echo "configure: failed program was:" >&5
  2452.   cat conftest.$ac_ext >&5
  2453.   rm -rf conftest*
  2454.   ac_cv_c_const=no
  2455. fi
  2456. rm -f conftest*
  2457. fi
  2458.  
  2459. echo "$ac_t""$ac_cv_c_const" 1>&6
  2460. if test $ac_cv_c_const = no; then
  2461.   cat >> confdefs.h <<\EOF
  2462. #define const 
  2463. EOF
  2464.  
  2465. fi
  2466.  
  2467. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2468. echo "configure:2469: checking for size_t" >&5
  2469. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2470.   echo $ac_n "(cached) $ac_c" 1>&6
  2471. else
  2472.   cat > conftest.$ac_ext <<EOF
  2473. #line 2474 "configure"
  2474. #include "confdefs.h"
  2475. #include <sys/types.h>
  2476. #if STDC_HEADERS
  2477. #include <stdlib.h>
  2478. #include <stddef.h>
  2479. #endif
  2480. EOF
  2481. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2482.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  2483.   rm -rf conftest*
  2484.   ac_cv_type_size_t=yes
  2485. else
  2486.   rm -rf conftest*
  2487.   ac_cv_type_size_t=no
  2488. fi
  2489. rm -f conftest*
  2490.  
  2491. fi
  2492. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2493. if test $ac_cv_type_size_t = no; then
  2494.   cat >> confdefs.h <<\EOF
  2495. #define size_t unsigned
  2496. EOF
  2497.  
  2498. fi
  2499.  
  2500. echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  2501. echo "configure:2502: checking whether time.h and sys/time.h may both be included" >&5
  2502. if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  2503.   echo $ac_n "(cached) $ac_c" 1>&6
  2504. else
  2505.   cat > conftest.$ac_ext <<EOF
  2506. #line 2507 "configure"
  2507. #include "confdefs.h"
  2508. #include <sys/types.h>
  2509. #include <sys/time.h>
  2510. #include <time.h>
  2511. int main() {
  2512. struct tm *tp;
  2513. ; return 0; }
  2514. EOF
  2515. if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2516.   rm -rf conftest*
  2517.   ac_cv_header_time=yes
  2518. else
  2519.   echo "configure: failed program was:" >&5
  2520.   cat conftest.$ac_ext >&5
  2521.   rm -rf conftest*
  2522.   ac_cv_header_time=no
  2523. fi
  2524. rm -f conftest*
  2525. fi
  2526.  
  2527. echo "$ac_t""$ac_cv_header_time" 1>&6
  2528. if test $ac_cv_header_time = yes; then
  2529.   cat >> confdefs.h <<\EOF
  2530. #define TIME_WITH_SYS_TIME 1
  2531. EOF
  2532.  
  2533. fi
  2534.  
  2535. echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  2536. echo "configure:2537: checking whether struct tm is in sys/time.h or time.h" >&5
  2537. if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  2538.   echo $ac_n "(cached) $ac_c" 1>&6
  2539. else
  2540.   cat > conftest.$ac_ext <<EOF
  2541. #line 2542 "configure"
  2542. #include "confdefs.h"
  2543. #include <sys/types.h>
  2544. #include <time.h>
  2545. int main() {
  2546. struct tm *tp; tp->tm_sec;
  2547. ; return 0; }
  2548. EOF
  2549. if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2550.   rm -rf conftest*
  2551.   ac_cv_struct_tm=time.h
  2552. else
  2553.   echo "configure: failed program was:" >&5
  2554.   cat conftest.$ac_ext >&5
  2555.   rm -rf conftest*
  2556.   ac_cv_struct_tm=sys/time.h
  2557. fi
  2558. rm -f conftest*
  2559. fi
  2560.  
  2561. echo "$ac_t""$ac_cv_struct_tm" 1>&6
  2562. if test $ac_cv_struct_tm = sys/time.h; then
  2563.   cat >> confdefs.h <<\EOF
  2564. #define TM_IN_SYS_TIME 1
  2565. EOF
  2566.  
  2567. fi
  2568.  
  2569.  
  2570. echo $ac_n "checking whether $CC understand -c and -o together""... $ac_c" 1>&6
  2571. echo "configure:2572: checking whether $CC understand -c and -o together" >&5
  2572. set dummy $CC; ac_cc="`echo $2 |
  2573.                sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
  2574. if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
  2575.   echo $ac_n "(cached) $ac_c" 1>&6
  2576. else
  2577.   echo 'foo(){}' > conftest.c
  2578. # We do the test twice because some compilers refuse to overwrite an
  2579. # existing .o file with -o, though they will create one.
  2580. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  2581. ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
  2582. if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:2583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  2583. then
  2584.   ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
  2585.   if { (eval echo configure:__oline__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.ooo && { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
  2586.   then
  2587.     eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  2588.   fi
  2589. fi
  2590. rm -f conftest*
  2591.  
  2592. fi
  2593. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  2594.     O2SHO=""
  2595.     O2SAVE=""
  2596.     SAVE2O=""
  2597.     CC2O="-o $"'@'
  2598.     echo "$ac_t""yes" 1>&6
  2599. else
  2600.     O2SHO="-mv \`basename "$'@'" .sho\`.o "$'@'
  2601.     O2SAVE="-mv \`basename "$'@'" .sho\`.o \`basename "$'@'" .sho\`.o.save"
  2602.     SAVE2O="-mv \`basename "$'@'" .sho\`.o.save \`basename "$'@'" .sho\`.o"
  2603.     CC2O=""
  2604.     echo "$ac_t""no" 1>&6
  2605. fi
  2606.  
  2607.  
  2608. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2609. echo "configure:2610: checking for 8-bit clean memcmp" >&5
  2610. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  2611.   echo $ac_n "(cached) $ac_c" 1>&6
  2612. else
  2613.   if test "$cross_compiling" = yes; then
  2614.   ac_cv_func_memcmp_clean=no
  2615. else
  2616.   cat > conftest.$ac_ext <<EOF
  2617. #line 2618 "configure"
  2618. #include "confdefs.h"
  2619.  
  2620. main()
  2621. {
  2622.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2623.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2624. }
  2625.  
  2626. EOF
  2627. if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  2628. then
  2629.   ac_cv_func_memcmp_clean=yes
  2630. else
  2631.   echo "configure: failed program was:" >&5
  2632.   cat conftest.$ac_ext >&5
  2633.   rm -fr conftest*
  2634.   ac_cv_func_memcmp_clean=no
  2635. fi
  2636. rm -fr conftest*
  2637. fi
  2638.  
  2639. fi
  2640.  
  2641. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  2642. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  2643.  
  2644. for ac_func in getopt strerror
  2645. do
  2646. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2647. echo "configure:2648: checking for $ac_func" >&5
  2648. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2649.   echo $ac_n "(cached) $ac_c" 1>&6
  2650. else
  2651.   cat > conftest.$ac_ext <<EOF
  2652. #line 2653 "configure"
  2653. #include "confdefs.h"
  2654. /* System header to define __stub macros and hopefully few prototypes,
  2655.     which can conflict with char $ac_func(); below.  */
  2656. #include <assert.h>
  2657. /* Override any gcc2 internal prototype to avoid an error.  */
  2658. /* We use char because int might match the return type of a gcc2
  2659.     builtin and then its argument prototype would still apply.  */
  2660. char $ac_func();
  2661.  
  2662. int main() {
  2663.  
  2664. /* The GNU C library defines this for functions which it implements
  2665.     to always fail with ENOSYS.  Some functions are actually named
  2666.     something starting with __ and the normal name is an alias.  */
  2667. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2668. choke me
  2669. #else
  2670. $ac_func();
  2671. #endif
  2672.  
  2673. ; return 0; }
  2674. EOF
  2675. if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2676.   rm -rf conftest*
  2677.   eval "ac_cv_func_$ac_func=yes"
  2678. else
  2679.   echo "configure: failed program was:" >&5
  2680.   cat conftest.$ac_ext >&5
  2681.   rm -rf conftest*
  2682.   eval "ac_cv_func_$ac_func=no"
  2683. fi
  2684. rm -f conftest*
  2685. fi
  2686.  
  2687. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2688.   echo "$ac_t""yes" 1>&6
  2689.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  2690.   cat >> confdefs.h <<EOF
  2691. #define $ac_tr_func 1
  2692. EOF
  2693.  
  2694. else
  2695.   echo "$ac_t""no" 1>&6
  2696. fi
  2697. done
  2698.  
  2699. if test "$ac_cv_func_getopt_func" = no; then
  2700.     GETOPT="getopt.o"
  2701.     
  2702. fi
  2703.  
  2704. # Check whether --enable-debug or --disable-debug was given.
  2705. if test "${enable_debug+set}" = set; then
  2706.   enableval="$enable_debug"
  2707.   with_debug=$enableval
  2708. else
  2709.   with_debug=no
  2710. fi
  2711.  
  2712. cflags_g="`echo $CFLAGS | grep -c '\-g'`"
  2713. cflags_O="`echo $CFLAGS | grep -c '\-O'`"
  2714.  
  2715. DEBUG=""
  2716. DEBUGGING=""
  2717. if test "$with_debug" = yes; then
  2718.     DEBUG="-g"
  2719.     DEBUGGING="-DDEBUG"
  2720.     if test "$cflags_g" = "0"; then
  2721.         CFLAGS="${CFLAGS} -g"
  2722.     fi
  2723.     if test "$cflags_O" != "0"; then
  2724.         CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
  2725.     fi
  2726. else
  2727.     if test "$cflags_O" = "0"; then
  2728.         CFLAGS="${CFLAGS} -O"
  2729.     fi
  2730.     if test "$cflags_g" != "0"; then
  2731.         CFLAGS="`echo ${CFLAGS} | sed -e s/-g//`"
  2732.     fi
  2733. fi
  2734.  
  2735.  
  2736.  
  2737. # Check whether --enable-purify or --disable-purify was given.
  2738. if test "${enable_purify+set}" = set; then
  2739.   enableval="$enable_purify"
  2740.   with_purify=$enableval
  2741. else
  2742.   with_purify=no
  2743. fi
  2744.  
  2745. if test "$with_purify" = yes; then
  2746.     PURIFY="purify"
  2747. else
  2748.     PURIFY=""
  2749. fi
  2750.  
  2751.  
  2752.  
  2753. # Check whether --with-dlfcnincdir or --without-dlfcnincdir was given.
  2754. if test "${with_dlfcnincdir+set}" = set; then
  2755.   withval="$with_dlfcnincdir"
  2756.   with_dlfcnincdir=$withval
  2757. else
  2758.   with_dlfcnincdir=no
  2759. fi
  2760.  
  2761. if test "$with_dlfcnincdir" = no; then
  2762.     DLFCNINCDIR=""
  2763. else
  2764.     DLFCNINCDIR="-I$with_dlfcnincdir"
  2765.     HAVE_DLFCN_H="1"
  2766.     cat >> confdefs.h <<\EOF
  2767. #define HAVE_DLFCN_H 1
  2768. EOF
  2769.  
  2770. fi
  2771.  
  2772.  
  2773. # Check whether --with-dlfcnlibdir or --without-dlfcnlibdir was given.
  2774. if test "${with_dlfcnlibdir+set}" = set; then
  2775.   withval="$with_dlfcnlibdir"
  2776.   with_dlfcnlibdir=$withval
  2777. else
  2778.   with_dlfcnlibdir=no
  2779. fi
  2780.  
  2781. if test "$with_dlfcnlibdir" = no; then
  2782.     DLFCNLIBDIR=""
  2783. else
  2784.     DLFCNLIBDIR="-L$with_dlfcnlibdir -ldl"
  2785. fi
  2786.  
  2787.  
  2788.  
  2789. cat >> confdefs.h <<\EOF
  2790. #define UNIX 1
  2791. EOF
  2792.  
  2793.  
  2794.  
  2795. OSAVE=".o.save"
  2796. OBJ="o"
  2797. EXE=""
  2798. GETOPT=""
  2799. STATIC_LDFLAGS=""
  2800. DYNAMIC_LDFLAGS=""
  2801. AIX_DYN="no"
  2802. BEOS_DYN="no"
  2803. SHLFILE="rexxtk rexxtktree rexxtkcombobox rexxtkmclistbox rexxtknotebook"
  2804. SHLFILES="rexxtk rexxtktree rexxtkcombobox rexxtkmclistbox rexxtknotebook"
  2805. RXPACKEXPORTS=""
  2806. BASE_INSTALL="installbase"
  2807. BASE_BINARY="binarybase"
  2808. SHLPRE="lib"
  2809. SHLPST=".so"
  2810. LD_RXLIB1=""
  2811.  
  2812.  
  2813. case "$target" in
  2814.     *hp-hpux*)
  2815.         SYS_DEFS="-D_HPUX_SOURCE"
  2816.         EEXTRA="-Wl,-E"
  2817.         LD_RXLIB1="ld -b -q -n"
  2818.         SHLPST=".sl"
  2819.         DYNAMIC_LDFLAGS="-Wl,+s"
  2820.         ;;
  2821.     *ibm-aix*)
  2822.         if test "$with_rexx6000" = yes; then
  2823.             mh_entry="-eInitFunc"
  2824.         else
  2825.             mh_entry="-bnoentry"
  2826.         fi
  2827.         SYS_DEFS="-D_ALL_SOURCE -DAIX"
  2828.         AIX_DYN="yes"
  2829.         DYN_COMP="-DDYNAMIC"
  2830.         STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
  2831.         LD_RXLIB1="ld $mh_entry -bM:SRE"
  2832.         SHLPST=".a"
  2833.         RXPACKEXPORTS="-bE:$SHLFILE.exp"
  2834.         RXPACKEXP="$SHLFILE.exp"
  2835.         ;;
  2836.     *dec-osf*)
  2837.         if test "$ac_cv_prog_CC" = "gcc"; then
  2838.             SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
  2839.         else
  2840.             SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
  2841.         fi
  2842.         LD_RXLIB1="ld -shared"
  2843.         ;;
  2844.     *sequent-dynix*)
  2845.         LD_RXLIB1="ld -G"
  2846.         ;;
  2847.     *solaris*)
  2848.         LD_RXLIB1="ld -G"
  2849.         ;;
  2850.     *esix*)
  2851.         LD_RXLIB1="ld -G"
  2852.         ;;
  2853.     *dgux*)
  2854.         LD_RXLIB1="ld -G"
  2855.         ;;
  2856.     sparc*sunos*)
  2857.         SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
  2858.         LD_RXLIB1="ld"
  2859.         ;;
  2860.     *linux*)
  2861.         LD_RXLIB1="${CC} -shared"
  2862.         ;;
  2863.     *freebsd*)
  2864.         LD_RXLIB1="ld -Bdynamic -Bshareable"
  2865.         ;;
  2866.     *nto-qnx*)
  2867.         LD_RXLIB1="${CC} -shared"
  2868.         ;;
  2869.     *beos*)
  2870.         LD_RXLIB1="${CC} -Wl,-shared -nostart -Xlinker -soname=\$(@)"
  2871.         BEOS_DYN="yes"
  2872.         BASE_INSTALL="beosinstall"
  2873.         BASE_BINARY="beosbinary"
  2874.         ;;
  2875.     *qnx*)
  2876.         LIBPRE=""
  2877.         LIBPST=".lib"
  2878.         SHLPRE=""
  2879.         SHLPST=""
  2880.         DYN_COMP="-Q"   # force no check for dynamic loading
  2881.         SHLFILE=""
  2882.         EEXTRA="-mf -N0x20000 -Q"
  2883.         ;;
  2884.     *cygwin)
  2885.         LIBPRE=""
  2886.         SHLPRE=""
  2887.         DYN_COMP="-DDYNAMIC"
  2888.         LIBPST=".a"
  2889.         SHLPST=".dll"
  2890.         EXE=".exe"
  2891.         ;;
  2892.     *)
  2893.         ;;
  2894. esac
  2895.  
  2896. if test "$DYN_COMP" = ""; then
  2897. echo $ac_n "checking compiler flags for a dynamic object""... $ac_c" 1>&6
  2898. echo "configure:2899: checking compiler flags for a dynamic object" >&5
  2899.  
  2900. cat > conftest.$ac_ext <<EOF
  2901. #line 2902 "configure"
  2902. int a=0
  2903. EOF
  2904.  
  2905.     DYN_COMP=""
  2906.     mh_cv_stop=no
  2907.     save_cflags="$CFLAGS"
  2908.     mh_cv_flags="-fPIC -KPIC +Z"
  2909.     for a in $mh_cv_flags; do
  2910.         CFLAGS="-c $a"
  2911.  
  2912.         mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
  2913.         if { (eval echo configure:2914: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; }; then
  2914.             DYN_COMP=""
  2915.         else
  2916.             slash="\\"
  2917.             mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
  2918.             if test "$mh_dyncomp" = "0"; then
  2919.                 DYN_COMP="$a -DDYNAMIC"
  2920.                 echo "$ac_t""$a" 1>&6
  2921.                 break
  2922.             else
  2923.                 DYN_COMP=""
  2924.             fi
  2925.         fi
  2926.     done
  2927.     if test "$DYN_COMP" = ""; then
  2928.         echo "$ac_t""none of $mh_cv_flags supported" 1>&6
  2929.     fi
  2930.     if test "$LD_RXLIB1" = ""; then
  2931.         
  2932. mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
  2933. cat > conftest.$ac_ext <<EOF
  2934. #line 2935 "configure"
  2935. int foo()
  2936. {
  2937. return(0);
  2938. }
  2939. EOF
  2940. if { (eval echo configure:2941: \"$mh_compile\") 1>&5; (eval $mh_compile) 2>&5; } && test -s conftest.o; then
  2941.     mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
  2942. #    mh_dyn_link='${CC} -Wl,-shared -o conftest.rxlib conftest.o -lc 1>&AC_FD_CC'
  2943.     if { (eval echo configure:2944: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then
  2944.         LD_RXLIB1="ld -shared"
  2945. #        LD_RXLIB1="${CC} -Wl,-shared"
  2946.         LD_RXLIB2="${REXX_LIBS}"
  2947.         SHLPRE="lib"
  2948.         SHLPST=".so"
  2949.         RXLIBLEN="6"
  2950.     else
  2951.         mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
  2952. #        mh_dyn_link='${CC} -Wl,-G -o conftest.rxlib conftest.o 1>&AC_FD_CC'
  2953.         if { (eval echo configure:2954: \"$mh_dyn_link\") 1>&5; (eval $mh_dyn_link) 2>&5; } && test -s conftest.rxlib; then
  2954.             LD_RXLIB1="ld -G"
  2955. #            LD_RXLIB1="${CC} -Wl,-G"
  2956.             LD_RXLIB2="${REXX_LIBS}"
  2957.             SHLPRE="lib"
  2958.             SHLPST=".so"
  2959.             RXLIBLEN="6"
  2960.         else
  2961.             LD_RXLIB1=""
  2962.             LD_RXLIB2=""
  2963.             SHLPRE=""
  2964.             SHLPST=""
  2965.             RXLIBLEN="0"
  2966.         fi
  2967.     fi
  2968. fi
  2969. rm -f conftest*
  2970.  
  2971.     fi
  2972.     CFLAGS=$save_cflags
  2973.     rm -f conftest.*
  2974. fi
  2975.  
  2976. if test "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes"; then
  2977.     if test "$with_rexx" = "rexxtrans" -o "$with_rexx" = "regina" -o  "$with_rexx" = "objrexx" -o "$with_rexx" = "rexx6000"; then
  2978.         SHL_TARGETS=""
  2979.         for a in $SHLFILES
  2980.         do
  2981.             SHL_TARGETS="${SHL_TARGETS} ${SHLPRE}${a}${SHLPST}"
  2982.         done
  2983.     else
  2984.         SHL_TARGETS=""
  2985.     fi
  2986. else
  2987.     SHL_TARGETS=""
  2988. fi
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996.  
  2997.  
  2998.  
  2999.  
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005.  
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013.  
  3014.  
  3015. thisdir="`pwd`"
  3016.  
  3017. fi
  3018.  
  3019. trap '' 1 2 15
  3020. cat > confcache <<\EOF
  3021. # This file is a shell script that caches the results of configure
  3022. # tests run on this system so they can be shared between configure
  3023. # scripts and configure runs.  It is not useful on other systems.
  3024. # If it contains results you don't want to keep, you may remove or edit it.
  3025. #
  3026. # By default, configure uses ./config.cache as the cache file,
  3027. # creating it if it does not exist already.  You can give configure
  3028. # the --cache-file=FILE option to use a different cache file; that is
  3029. # what configure does when it calls configure scripts in
  3030. # subdirectories, so they share the cache.
  3031. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3032. # config.status only pays attention to the cache file if you give it the
  3033. # --recheck option to rerun configure.
  3034. #
  3035. EOF
  3036. # The following way of writing the cache mishandles newlines in values,
  3037. # but we know of no workaround that is simple, portable, and efficient.
  3038. # So, don't put newlines in cache variables' values.
  3039. # Ultrix sh set writes to stderr and can't be redirected directly,
  3040. # and sets the high bit in the cache file unless we assign to the vars.
  3041. (set) 2>&1 |
  3042.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3043.   *ac_space=\ *)
  3044.     # `set' does not quote correctly, so add quotes (double-quote substitution
  3045.     # turns \\\\ into \\, and sed turns \\ into \).
  3046.     sed -n \
  3047.       -e "s/'/'\\\\''/g" \
  3048.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  3049.     ;;
  3050.   *)
  3051.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  3052.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  3053.     ;;
  3054.   esac >> confcache
  3055. if cmp -s $cache_file confcache; then
  3056.   :
  3057. else
  3058.   if test -w $cache_file; then
  3059.     echo "updating cache $cache_file"
  3060.     cat confcache > $cache_file
  3061.   else
  3062.     echo "not updating unwritable cache $cache_file"
  3063.   fi
  3064. fi
  3065. rm -f confcache
  3066.  
  3067. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3068.  
  3069. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3070. # Let make expand exec_prefix.
  3071. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3072.  
  3073. # Any assignment to VPATH causes Sun make to only execute
  3074. # the first set of double-colon rules, so remove it if not needed.
  3075. # If there is a colon in the path, we need to keep it.
  3076. if test "x$srcdir" = x.; then
  3077.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3078. fi
  3079.  
  3080. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3081.  
  3082. DEFS=-DHAVE_CONFIG_H
  3083.  
  3084. # Without the "./", some shells look in PATH for config.status.
  3085. : ${CONFIG_STATUS=./config.status}
  3086.  
  3087. echo creating $CONFIG_STATUS
  3088. rm -f $CONFIG_STATUS
  3089. cat > $CONFIG_STATUS <<EOF
  3090. #! /bin/sh
  3091. # Generated automatically by configure.
  3092. # Run this file to recreate the current configuration.
  3093. # This directory was configured as follows,
  3094. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3095. #
  3096. # $0 $ac_configure_args
  3097. #
  3098. # Compiler output produced by configure, useful for debugging
  3099. # configure, is in ./config.log if it exists.
  3100.  
  3101. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3102. for ac_option
  3103. do
  3104.   case "\$ac_option" in
  3105.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3106.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3107.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3108.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3109.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  3110.     exit 0 ;;
  3111.   -help | --help | --hel | --he | --h)
  3112.     echo "\$ac_cs_usage"; exit 0 ;;
  3113.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3114.   esac
  3115. done
  3116.  
  3117. ac_given_srcdir=$srcdir
  3118.  
  3119. trap 'rm -fr `echo "$mymakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3120. EOF
  3121. cat >> $CONFIG_STATUS <<EOF
  3122.  
  3123. # Protect against being on the right side of a sed subst in config.status.
  3124. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  3125.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  3126. $ac_vpsub
  3127. $extrasub
  3128. s%@SHELL@%$SHELL%g
  3129. s%@CFLAGS@%$CFLAGS%g
  3130. s%@CPPFLAGS@%$CPPFLAGS%g
  3131. s%@CXXFLAGS@%$CXXFLAGS%g
  3132. s%@FFLAGS@%$FFLAGS%g
  3133. s%@DEFS@%$DEFS%g
  3134. s%@LDFLAGS@%$LDFLAGS%g
  3135. s%@LIBS@%$LIBS%g
  3136. s%@exec_prefix@%$exec_prefix%g
  3137. s%@prefix@%$prefix%g
  3138. s%@program_transform_name@%$program_transform_name%g
  3139. s%@bindir@%$bindir%g
  3140. s%@sbindir@%$sbindir%g
  3141. s%@libexecdir@%$libexecdir%g
  3142. s%@datadir@%$datadir%g
  3143. s%@sysconfdir@%$sysconfdir%g
  3144. s%@sharedstatedir@%$sharedstatedir%g
  3145. s%@localstatedir@%$localstatedir%g
  3146. s%@libdir@%$libdir%g
  3147. s%@includedir@%$includedir%g
  3148. s%@oldincludedir@%$oldincludedir%g
  3149. s%@infodir@%$infodir%g
  3150. s%@mandir@%$mandir%g
  3151. s%@CC@%$CC%g
  3152. s%@host@%$host%g
  3153. s%@host_alias@%$host_alias%g
  3154. s%@host_cpu@%$host_cpu%g
  3155. s%@host_vendor@%$host_vendor%g
  3156. s%@host_os@%$host_os%g
  3157. s%@target@%$target%g
  3158. s%@target_alias@%$target_alias%g
  3159. s%@target_cpu@%$target_cpu%g
  3160. s%@target_vendor@%$target_vendor%g
  3161. s%@target_os@%$target_os%g
  3162. s%@build@%$build%g
  3163. s%@build_alias@%$build_alias%g
  3164. s%@build_cpu@%$build_cpu%g
  3165. s%@build_vendor@%$build_vendor%g
  3166. s%@build_os@%$build_os%g
  3167. s%@CPP@%$CPP%g
  3168. s%@SYS_DEFS@%$SYS_DEFS%g
  3169. s%@LEX@%$LEX%g
  3170. s%@LEXLIB@%$LEXLIB%g
  3171. s%@REXX_INCLUDES@%$REXX_INCLUDES%g
  3172. s%@REXX_LIBS@%$REXX_LIBS%g
  3173. s%@rexxtrans_lib_name@%$rexxtrans_lib_name%g
  3174. s%@REXX_TARGET@%$REXX_TARGET%g
  3175. s%@TKINCDIR@%$TKINCDIR%g
  3176. s%@TKLIBDIR@%$TKLIBDIR%g
  3177. s%@MH_XLIBS@%$MH_XLIBS%g
  3178. s%@MH_EXTRA_LIBS@%$MH_EXTRA_LIBS%g
  3179. s%@LN_S@%$LN_S%g
  3180. s%@SET_MAKE@%$SET_MAKE%g
  3181. s%@LIBOBJS@%$LIBOBJS%g
  3182. s%@GETOPT@%$GETOPT%g
  3183. s%@DEBUG@%$DEBUG%g
  3184. s%@DEBUGGING@%$DEBUGGING%g
  3185. s%@PURIFY@%$PURIFY%g
  3186. s%@DLFCNINCDIR@%$DLFCNINCDIR%g
  3187. s%@DLFCNLIBDIR@%$DLFCNLIBDIR%g
  3188. s%@EEXTRA@%$EEXTRA%g
  3189. s%@CEXTRA@%$CEXTRA%g
  3190. s%@OSAVE@%$OSAVE%g
  3191. s%@OBJ@%$OBJ%g
  3192. s%@EXE@%$EXE%g
  3193. s%@DYN_COMP@%$DYN_COMP%g
  3194. s%@SHLIBS@%$SHLIBS%g
  3195. s%@LD_RXLIB1@%$LD_RXLIB1%g
  3196. s%@SHLPRE@%$SHLPRE%g
  3197. s%@SHLPST@%$SHLPST%g
  3198. s%@DYNAMIC_LDFLAGS@%$DYNAMIC_LDFLAGS%g
  3199. s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g
  3200. s%@SHL_TARGETS@%$SHL_TARGETS%g
  3201. s%@O2SAVE@%$O2SAVE%g
  3202. s%@O2SHO@%$O2SHO%g
  3203. s%@CC2O@%$CC2O%g
  3204. s%@BASE_INSTALL@%$BASE_INSTALL%g
  3205. s%@BASE_BINARY@%$BASE_BINARY%g
  3206. s%@SAVE2O@%$SAVE2O%g
  3207. s%@RXPACKEXPORTS@%$RXPACKEXPORTS%g
  3208. s%@RXPACKEXP@%$RXPACKEXP%g
  3209. s%@thisdir@%$thisdir%g
  3210. s%@$target@%$$target%g
  3211.  
  3212. CEOF
  3213. EOF
  3214.  
  3215. cat >> $CONFIG_STATUS <<\EOF
  3216.  
  3217. # Split the substitutions into bite-sized pieces for seds with
  3218. # small command number limits, like on Digital OSF/1 and HP-UX.
  3219. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  3220. ac_file=1 # Number of current file.
  3221. ac_beg=1 # First line for current file.
  3222. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  3223. ac_more_lines=:
  3224. ac_sed_cmds=""
  3225. while $ac_more_lines; do
  3226.   if test $ac_beg -gt 1; then
  3227.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  3228.   else
  3229.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  3230.   fi
  3231.   if test ! -s conftest.s$ac_file; then
  3232.     ac_more_lines=false
  3233.     rm -f conftest.s$ac_file
  3234.   else
  3235.     if test -z "$ac_sed_cmds"; then
  3236.       ac_sed_cmds="sed -f conftest.s$ac_file"
  3237.     else
  3238.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  3239.     fi
  3240.     ac_file=`expr $ac_file + 1`
  3241.     ac_beg=$ac_end
  3242.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  3243.   fi
  3244. done
  3245. if test -z "$ac_sed_cmds"; then
  3246.   ac_sed_cmds=cat
  3247. fi
  3248. EOF
  3249.  
  3250. cat >> $CONFIG_STATUS <<EOF
  3251.  
  3252. CONFIG_FILES=\${CONFIG_FILES-"$mymakefile"}
  3253. EOF
  3254. cat >> $CONFIG_STATUS <<\EOF
  3255. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3256.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3257.   case "$ac_file" in
  3258.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3259.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3260.   *) ac_file_in="${ac_file}.in" ;;
  3261.   esac
  3262.  
  3263.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  3264.  
  3265.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3266.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3267.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3268.     # The file is in a subdirectory.
  3269.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3270.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3271.     # A "../" for each directory in $ac_dir_suffix.
  3272.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3273.   else
  3274.     ac_dir_suffix= ac_dots=
  3275.   fi
  3276.  
  3277.   case "$ac_given_srcdir" in
  3278.   .)  srcdir=.
  3279.       if test -z "$ac_dots"; then top_srcdir=.
  3280.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3281.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3282.   *) # Relative path.
  3283.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3284.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3285.   esac
  3286.  
  3287.  
  3288.   echo creating "$ac_file"
  3289.   rm -f "$ac_file"
  3290.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3291.   case "$ac_file" in
  3292.   *Makefile*) ac_comsub="1i\\
  3293. # $configure_input" ;;
  3294.   *) ac_comsub= ;;
  3295.   esac
  3296.  
  3297.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3298.   sed -e "$ac_comsub
  3299. s%@configure_input@%$configure_input%g
  3300. s%@srcdir@%$srcdir%g
  3301. s%@top_srcdir@%$top_srcdir%g
  3302. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  3303. fi; done
  3304. rm -f conftest.s*
  3305.  
  3306. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3307. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3308. #
  3309. # ac_d sets the value in "#define NAME VALUE" lines.
  3310. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3311. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3312. ac_dC='\3'
  3313. ac_dD='%g'
  3314. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3315. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3316. ac_uB='\([     ]\)%\1#\2define\3'
  3317. ac_uC=' '
  3318. ac_uD='\4%g'
  3319. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3320. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3321. ac_eB='$%\1#\2define\3'
  3322. ac_eC=' '
  3323. ac_eD='%g'
  3324.  
  3325. if test "${CONFIG_HEADERS+set}" != set; then
  3326. EOF
  3327. cat >> $CONFIG_STATUS <<EOF
  3328.   CONFIG_HEADERS="config.h"
  3329. EOF
  3330. cat >> $CONFIG_STATUS <<\EOF
  3331. fi
  3332. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3333.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3334.   case "$ac_file" in
  3335.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  3336.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3337.   *) ac_file_in="${ac_file}.in" ;;
  3338.   esac
  3339.  
  3340.   echo creating $ac_file
  3341.  
  3342.   rm -f conftest.frag conftest.in conftest.out
  3343.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  3344.   cat $ac_file_inputs > conftest.in
  3345.  
  3346. EOF
  3347.  
  3348. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3349. # the proper values into config.h.in to produce config.h.  And first:
  3350. # Protect against being on the right side of a sed subst in config.status.
  3351. # Protect against being in an unquoted here document in config.status.
  3352. rm -f conftest.vals
  3353. cat > conftest.hdr <<\EOF
  3354. s/[\\&%]/\\&/g
  3355. s%[\\$`]%\\&%g
  3356. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3357. s%ac_d%ac_u%gp
  3358. s%ac_u%ac_e%gp
  3359. EOF
  3360. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3361. rm -f conftest.hdr
  3362.  
  3363. # This sed command replaces #undef with comments.  This is necessary, for
  3364. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3365. # on some systems where configure will not decide to define it.
  3366. cat >> conftest.vals <<\EOF
  3367. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3368. EOF
  3369.  
  3370. # Break up conftest.vals because some shells have a limit on
  3371. # the size of here documents, and old seds have small limits too.
  3372.  
  3373. rm -f conftest.tail
  3374. while :
  3375. do
  3376.   ac_lines=`grep -c . conftest.vals`
  3377.   # grep -c gives empty output for an empty file on some AIX systems.
  3378.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3379.   # Write a limited-size here document to conftest.frag.
  3380.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  3381.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  3382.   echo 'CEOF
  3383.   sed -f conftest.frag conftest.in > conftest.out
  3384.   rm -f conftest.in
  3385.   mv conftest.out conftest.in
  3386. ' >> $CONFIG_STATUS
  3387.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  3388.   rm -f conftest.vals
  3389.   mv conftest.tail conftest.vals
  3390. done
  3391. rm -f conftest.vals
  3392.  
  3393. cat >> $CONFIG_STATUS <<\EOF
  3394.   rm -f conftest.frag conftest.h
  3395.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3396.   cat conftest.in >> conftest.h
  3397.   rm -f conftest.in
  3398.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3399.     echo "$ac_file is unchanged"
  3400.     rm -f conftest.h
  3401.   else
  3402.     # Remove last slash and all that follows it.  Not all systems have dirname.
  3403.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3404.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3405.       # The file is in a subdirectory.
  3406.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  3407.     fi
  3408.     rm -f $ac_file
  3409.     mv conftest.h $ac_file
  3410.   fi
  3411. fi; done
  3412.  
  3413. EOF
  3414. cat >> $CONFIG_STATUS <<EOF
  3415.  
  3416. EOF
  3417. cat >> $CONFIG_STATUS <<\EOF
  3418.  
  3419. exit 0
  3420. EOF
  3421. chmod +x $CONFIG_STATUS
  3422. rm -fr confdefs* $ac_clean_files
  3423. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  3424.  
  3425.  
  3426. case "$target" in
  3427.     *ibm-aix*)
  3428.         mv Makefile.aix Makefile
  3429.         echo "$ac_t""renaming Makefile.aix to Makefile" 1>&6
  3430.         ;;
  3431.     *)
  3432.         ;;
  3433. esac
  3434.  
  3435. echo
  3436. echo "Rexx/Tk has now been configured with the following options:"
  3437. echo
  3438. echo "                 Rexx Interpreter: $REXX_INT"
  3439. if test "$with_rexxincdir" != no ; then
  3440. echo "                  rexx headers in: $with_rexxincdir"
  3441. else
  3442. echo "                  rexx headers in: $mh_rexx_inc_dir"
  3443. fi
  3444. if test "$with_rexxlibdir" != no ; then
  3445. echo "                rexx libraries in: $with_rexxlibdir"
  3446. else
  3447. echo "                rexx libraries in: $mh_rexx_lib_dir"
  3448. fi
  3449. if test "$with_tkincdir" != no ; then
  3450. echo "                Tcl/Tk headers in: $with_tkincdir"
  3451. fi
  3452. if test "$with_tklibdir" != no ; then
  3453. echo "              Tcl/Tk libraries in: $with_tklibdir"
  3454. fi
  3455. myopts=""
  3456. if test "$with_debug" = yes ; then
  3457.     myopts="$myopts DEBUG"
  3458. fi
  3459. if test "$with_purify" = yes ; then
  3460.     myopts="$myopts PURIFY"
  3461. fi
  3462. if test "$with_hpux_portable" = yes ; then
  3463.     myopts="$myopts HPUX-PORTABLE"
  3464. fi
  3465. if test "$exec_prefix" = '${prefix}' ; then
  3466.     macro_dir="$prefix"
  3467. else
  3468.     macro_dir="$exec_prefix"
  3469. fi
  3470. echo "                    Build options: $myopts"
  3471. echo "     Rexx/Tk will be installed in: $macro_dir/lib"
  3472. echo
  3473.