Home | History | Annotate | Line # | Download | only in dist
configure revision 1.1
      1  1.1  tsutsui #! /bin/sh
      2  1.1  tsutsui 
      3  1.1  tsutsui # Guess values for system-dependent variables and create Makefiles.
      4  1.1  tsutsui # Generated automatically using autoconf version 2.12 
      5  1.1  tsutsui # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
      6  1.1  tsutsui #
      7  1.1  tsutsui # This configure script is free software; the Free Software Foundation
      8  1.1  tsutsui # gives unlimited permission to copy, distribute and modify it.
      9  1.1  tsutsui 
     10  1.1  tsutsui # Defaults:
     11  1.1  tsutsui ac_help=
     12  1.1  tsutsui ac_default_prefix=/usr/local
     13  1.1  tsutsui # Any additions from configure.in:
     14  1.1  tsutsui 
     15  1.1  tsutsui # Initialize some variables set by options.
     16  1.1  tsutsui # The variables have the same names as the options, with
     17  1.1  tsutsui # dashes changed to underlines.
     18  1.1  tsutsui build=NONE
     19  1.1  tsutsui cache_file=./config.cache
     20  1.1  tsutsui exec_prefix=NONE
     21  1.1  tsutsui host=NONE
     22  1.1  tsutsui no_create=
     23  1.1  tsutsui nonopt=NONE
     24  1.1  tsutsui no_recursion=
     25  1.1  tsutsui prefix=NONE
     26  1.1  tsutsui program_prefix=NONE
     27  1.1  tsutsui program_suffix=NONE
     28  1.1  tsutsui program_transform_name=s,x,x,
     29  1.1  tsutsui silent=
     30  1.1  tsutsui site=
     31  1.1  tsutsui srcdir=
     32  1.1  tsutsui target=NONE
     33  1.1  tsutsui verbose=
     34  1.1  tsutsui x_includes=NONE
     35  1.1  tsutsui x_libraries=NONE
     36  1.1  tsutsui bindir='${exec_prefix}/bin'
     37  1.1  tsutsui sbindir='${exec_prefix}/sbin'
     38  1.1  tsutsui libexecdir='${exec_prefix}/libexec'
     39  1.1  tsutsui datadir='${prefix}/share'
     40  1.1  tsutsui sysconfdir='${prefix}/etc'
     41  1.1  tsutsui sharedstatedir='${prefix}/com'
     42  1.1  tsutsui localstatedir='${prefix}/var'
     43  1.1  tsutsui libdir='${exec_prefix}/lib'
     44  1.1  tsutsui includedir='${prefix}/include'
     45  1.1  tsutsui oldincludedir='/usr/include'
     46  1.1  tsutsui infodir='${prefix}/info'
     47  1.1  tsutsui mandir='${prefix}/man'
     48  1.1  tsutsui 
     49  1.1  tsutsui # Initialize some other variables.
     50  1.1  tsutsui subdirs=
     51  1.1  tsutsui MFLAGS= MAKEFLAGS=
     52  1.1  tsutsui # Maximum number of lines to put in a shell here document.
     53  1.1  tsutsui ac_max_here_lines=12
     54  1.1  tsutsui 
     55  1.1  tsutsui ac_prev=
     56  1.1  tsutsui for ac_option
     57  1.1  tsutsui do
     58  1.1  tsutsui 
     59  1.1  tsutsui   # If the previous option needs an argument, assign it.
     60  1.1  tsutsui   if test -n "$ac_prev"; then
     61  1.1  tsutsui     eval "$ac_prev=\$ac_option"
     62  1.1  tsutsui     ac_prev=
     63  1.1  tsutsui     continue
     64  1.1  tsutsui   fi
     65  1.1  tsutsui 
     66  1.1  tsutsui   case "$ac_option" in
     67  1.1  tsutsui   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
     68  1.1  tsutsui   *) ac_optarg= ;;
     69  1.1  tsutsui   esac
     70  1.1  tsutsui 
     71  1.1  tsutsui   # Accept the important Cygnus configure options, so we can diagnose typos.
     72  1.1  tsutsui 
     73  1.1  tsutsui   case "$ac_option" in
     74  1.1  tsutsui 
     75  1.1  tsutsui   -bindir | --bindir | --bindi | --bind | --bin | --bi)
     76  1.1  tsutsui     ac_prev=bindir ;;
     77  1.1  tsutsui   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
     78  1.1  tsutsui     bindir="$ac_optarg" ;;
     79  1.1  tsutsui 
     80  1.1  tsutsui   -build | --build | --buil | --bui | --bu)
     81  1.1  tsutsui     ac_prev=build ;;
     82  1.1  tsutsui   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
     83  1.1  tsutsui     build="$ac_optarg" ;;
     84  1.1  tsutsui 
     85  1.1  tsutsui   -cache-file | --cache-file | --cache-fil | --cache-fi \
     86  1.1  tsutsui   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
     87  1.1  tsutsui     ac_prev=cache_file ;;
     88  1.1  tsutsui   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
     89  1.1  tsutsui   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
     90  1.1  tsutsui     cache_file="$ac_optarg" ;;
     91  1.1  tsutsui 
     92  1.1  tsutsui   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
     93  1.1  tsutsui     ac_prev=datadir ;;
     94  1.1  tsutsui   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
     95  1.1  tsutsui   | --da=*)
     96  1.1  tsutsui     datadir="$ac_optarg" ;;
     97  1.1  tsutsui 
     98  1.1  tsutsui   -disable-* | --disable-*)
     99  1.1  tsutsui     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    100  1.1  tsutsui     # Reject names that are not valid shell variable names.
    101  1.1  tsutsui     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
    102  1.1  tsutsui       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    103  1.1  tsutsui     fi
    104  1.1  tsutsui     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    105  1.1  tsutsui     eval "enable_${ac_feature}=no" ;;
    106  1.1  tsutsui 
    107  1.1  tsutsui   -enable-* | --enable-*)
    108  1.1  tsutsui     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    109  1.1  tsutsui     # Reject names that are not valid shell variable names.
    110  1.1  tsutsui     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
    111  1.1  tsutsui       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    112  1.1  tsutsui     fi
    113  1.1  tsutsui     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    114  1.1  tsutsui     case "$ac_option" in
    115  1.1  tsutsui       *=*) ;;
    116  1.1  tsutsui       *) ac_optarg=yes ;;
    117  1.1  tsutsui     esac
    118  1.1  tsutsui     eval "enable_${ac_feature}='$ac_optarg'" ;;
    119  1.1  tsutsui 
    120  1.1  tsutsui   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    121  1.1  tsutsui   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    122  1.1  tsutsui   | --exec | --exe | --ex)
    123  1.1  tsutsui     ac_prev=exec_prefix ;;
    124  1.1  tsutsui   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    125  1.1  tsutsui   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    126  1.1  tsutsui   | --exec=* | --exe=* | --ex=*)
    127  1.1  tsutsui     exec_prefix="$ac_optarg" ;;
    128  1.1  tsutsui 
    129  1.1  tsutsui   -gas | --gas | --ga | --g)
    130  1.1  tsutsui     # Obsolete; use --with-gas.
    131  1.1  tsutsui     with_gas=yes ;;
    132  1.1  tsutsui 
    133  1.1  tsutsui   -help | --help | --hel | --he)
    134  1.1  tsutsui     # Omit some internal or obsolete options to make the list less imposing.
    135  1.1  tsutsui     # This message is too long to be a string in the A/UX 3.1 sh.
    136  1.1  tsutsui     cat << EOF
    137  1.1  tsutsui Usage: configure [options] [host]
    138  1.1  tsutsui Options: [defaults in brackets after descriptions]
    139  1.1  tsutsui Configuration:
    140  1.1  tsutsui   --cache-file=FILE       cache test results in FILE
    141  1.1  tsutsui   --help                  print this message
    142  1.1  tsutsui   --no-create             do not create output files
    143  1.1  tsutsui   --quiet, --silent       do not print \`checking...' messages
    144  1.1  tsutsui   --version               print the version of autoconf that created configure
    145  1.1  tsutsui Directory and file names:
    146  1.1  tsutsui   --prefix=PREFIX         install architecture-independent files in PREFIX
    147  1.1  tsutsui                           [$ac_default_prefix]
    148  1.1  tsutsui   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    149  1.1  tsutsui                           [same as prefix]
    150  1.1  tsutsui   --bindir=DIR            user executables in DIR [EPREFIX/bin]
    151  1.1  tsutsui   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
    152  1.1  tsutsui   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
    153  1.1  tsutsui   --datadir=DIR           read-only architecture-independent data in DIR
    154  1.1  tsutsui                           [PREFIX/share]
    155  1.1  tsutsui   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
    156  1.1  tsutsui   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
    157  1.1  tsutsui                           [PREFIX/com]
    158  1.1  tsutsui   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
    159  1.1  tsutsui   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
    160  1.1  tsutsui   --includedir=DIR        C header files in DIR [PREFIX/include]
    161  1.1  tsutsui   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
    162  1.1  tsutsui   --infodir=DIR           info documentation in DIR [PREFIX/info]
    163  1.1  tsutsui   --mandir=DIR            man documentation in DIR [PREFIX/man]
    164  1.1  tsutsui   --srcdir=DIR            find the sources in DIR [configure dir or ..]
    165  1.1  tsutsui   --program-prefix=PREFIX prepend PREFIX to installed program names
    166  1.1  tsutsui   --program-suffix=SUFFIX append SUFFIX to installed program names
    167  1.1  tsutsui   --program-transform-name=PROGRAM
    168  1.1  tsutsui                           run sed PROGRAM on installed program names
    169  1.1  tsutsui EOF
    170  1.1  tsutsui     cat << EOF
    171  1.1  tsutsui Host type:
    172  1.1  tsutsui   --build=BUILD           configure for building on BUILD [BUILD=HOST]
    173  1.1  tsutsui   --host=HOST             configure for HOST [guessed]
    174  1.1  tsutsui   --target=TARGET         configure for TARGET [TARGET=HOST]
    175  1.1  tsutsui Features and packages:
    176  1.1  tsutsui   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    177  1.1  tsutsui   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    178  1.1  tsutsui   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    179  1.1  tsutsui   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    180  1.1  tsutsui   --x-includes=DIR        X include files are in DIR
    181  1.1  tsutsui   --x-libraries=DIR       X library files are in DIR
    182  1.1  tsutsui EOF
    183  1.1  tsutsui     if test -n "$ac_help"; then
    184  1.1  tsutsui       echo "--enable and --with options recognized:$ac_help"
    185  1.1  tsutsui     fi
    186  1.1  tsutsui     exit 0 ;;
    187  1.1  tsutsui 
    188  1.1  tsutsui   -host | --host | --hos | --ho)
    189  1.1  tsutsui     ac_prev=host ;;
    190  1.1  tsutsui   -host=* | --host=* | --hos=* | --ho=*)
    191  1.1  tsutsui     host="$ac_optarg" ;;
    192  1.1  tsutsui 
    193  1.1  tsutsui   -includedir | --includedir | --includedi | --included | --include \
    194  1.1  tsutsui   | --includ | --inclu | --incl | --inc)
    195  1.1  tsutsui     ac_prev=includedir ;;
    196  1.1  tsutsui   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    197  1.1  tsutsui   | --includ=* | --inclu=* | --incl=* | --inc=*)
    198  1.1  tsutsui     includedir="$ac_optarg" ;;
    199  1.1  tsutsui 
    200  1.1  tsutsui   -infodir | --infodir | --infodi | --infod | --info | --inf)
    201  1.1  tsutsui     ac_prev=infodir ;;
    202  1.1  tsutsui   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    203  1.1  tsutsui     infodir="$ac_optarg" ;;
    204  1.1  tsutsui 
    205  1.1  tsutsui   -libdir | --libdir | --libdi | --libd)
    206  1.1  tsutsui     ac_prev=libdir ;;
    207  1.1  tsutsui   -libdir=* | --libdir=* | --libdi=* | --libd=*)
    208  1.1  tsutsui     libdir="$ac_optarg" ;;
    209  1.1  tsutsui 
    210  1.1  tsutsui   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
    211  1.1  tsutsui   | --libexe | --libex | --libe)
    212  1.1  tsutsui     ac_prev=libexecdir ;;
    213  1.1  tsutsui   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
    214  1.1  tsutsui   | --libexe=* | --libex=* | --libe=*)
    215  1.1  tsutsui     libexecdir="$ac_optarg" ;;
    216  1.1  tsutsui 
    217  1.1  tsutsui   -localstatedir | --localstatedir | --localstatedi | --localstated \
    218  1.1  tsutsui   | --localstate | --localstat | --localsta | --localst \
    219  1.1  tsutsui   | --locals | --local | --loca | --loc | --lo)
    220  1.1  tsutsui     ac_prev=localstatedir ;;
    221  1.1  tsutsui   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
    222  1.1  tsutsui   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
    223  1.1  tsutsui   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    224  1.1  tsutsui     localstatedir="$ac_optarg" ;;
    225  1.1  tsutsui 
    226  1.1  tsutsui   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    227  1.1  tsutsui     ac_prev=mandir ;;
    228  1.1  tsutsui   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    229  1.1  tsutsui     mandir="$ac_optarg" ;;
    230  1.1  tsutsui 
    231  1.1  tsutsui   -nfp | --nfp | --nf)
    232  1.1  tsutsui     # Obsolete; use --without-fp.
    233  1.1  tsutsui     with_fp=no ;;
    234  1.1  tsutsui 
    235  1.1  tsutsui   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    236  1.1  tsutsui   | --no-cr | --no-c)
    237  1.1  tsutsui     no_create=yes ;;
    238  1.1  tsutsui 
    239  1.1  tsutsui   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    240  1.1  tsutsui   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    241  1.1  tsutsui     no_recursion=yes ;;
    242  1.1  tsutsui 
    243  1.1  tsutsui   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
    244  1.1  tsutsui   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
    245  1.1  tsutsui   | --oldin | --oldi | --old | --ol | --o)
    246  1.1  tsutsui     ac_prev=oldincludedir ;;
    247  1.1  tsutsui   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
    248  1.1  tsutsui   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
    249  1.1  tsutsui   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    250  1.1  tsutsui     oldincludedir="$ac_optarg" ;;
    251  1.1  tsutsui 
    252  1.1  tsutsui   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    253  1.1  tsutsui     ac_prev=prefix ;;
    254  1.1  tsutsui   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    255  1.1  tsutsui     prefix="$ac_optarg" ;;
    256  1.1  tsutsui 
    257  1.1  tsutsui   -program-prefix | --program-prefix | --program-prefi | --program-pref \
    258  1.1  tsutsui   | --program-pre | --program-pr | --program-p)
    259  1.1  tsutsui     ac_prev=program_prefix ;;
    260  1.1  tsutsui   -program-prefix=* | --program-prefix=* | --program-prefi=* \
    261  1.1  tsutsui   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    262  1.1  tsutsui     program_prefix="$ac_optarg" ;;
    263  1.1  tsutsui 
    264  1.1  tsutsui   -program-suffix | --program-suffix | --program-suffi | --program-suff \
    265  1.1  tsutsui   | --program-suf | --program-su | --program-s)
    266  1.1  tsutsui     ac_prev=program_suffix ;;
    267  1.1  tsutsui   -program-suffix=* | --program-suffix=* | --program-suffi=* \
    268  1.1  tsutsui   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    269  1.1  tsutsui     program_suffix="$ac_optarg" ;;
    270  1.1  tsutsui 
    271  1.1  tsutsui   -program-transform-name | --program-transform-name \
    272  1.1  tsutsui   | --program-transform-nam | --program-transform-na \
    273  1.1  tsutsui   | --program-transform-n | --program-transform- \
    274  1.1  tsutsui   | --program-transform | --program-transfor \
    275  1.1  tsutsui   | --program-transfo | --program-transf \
    276  1.1  tsutsui   | --program-trans | --program-tran \
    277  1.1  tsutsui   | --progr-tra | --program-tr | --program-t)
    278  1.1  tsutsui     ac_prev=program_transform_name ;;
    279  1.1  tsutsui   -program-transform-name=* | --program-transform-name=* \
    280  1.1  tsutsui   | --program-transform-nam=* | --program-transform-na=* \
    281  1.1  tsutsui   | --program-transform-n=* | --program-transform-=* \
    282  1.1  tsutsui   | --program-transform=* | --program-transfor=* \
    283  1.1  tsutsui   | --program-transfo=* | --program-transf=* \
    284  1.1  tsutsui   | --program-trans=* | --program-tran=* \
    285  1.1  tsutsui   | --progr-tra=* | --program-tr=* | --program-t=*)
    286  1.1  tsutsui     program_transform_name="$ac_optarg" ;;
    287  1.1  tsutsui 
    288  1.1  tsutsui   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    289  1.1  tsutsui   | -silent | --silent | --silen | --sile | --sil)
    290  1.1  tsutsui     silent=yes ;;
    291  1.1  tsutsui 
    292  1.1  tsutsui   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    293  1.1  tsutsui     ac_prev=sbindir ;;
    294  1.1  tsutsui   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
    295  1.1  tsutsui   | --sbi=* | --sb=*)
    296  1.1  tsutsui     sbindir="$ac_optarg" ;;
    297  1.1  tsutsui 
    298  1.1  tsutsui   -sharedstatedir | --sharedstatedir | --sharedstatedi \
    299  1.1  tsutsui   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
    300  1.1  tsutsui   | --sharedst | --shareds | --shared | --share | --shar \
    301  1.1  tsutsui   | --sha | --sh)
    302  1.1  tsutsui     ac_prev=sharedstatedir ;;
    303  1.1  tsutsui   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
    304  1.1  tsutsui   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
    305  1.1  tsutsui   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
    306  1.1  tsutsui   | --sha=* | --sh=*)
    307  1.1  tsutsui     sharedstatedir="$ac_optarg" ;;
    308  1.1  tsutsui 
    309  1.1  tsutsui   -site | --site | --sit)
    310  1.1  tsutsui     ac_prev=site ;;
    311  1.1  tsutsui   -site=* | --site=* | --sit=*)
    312  1.1  tsutsui     site="$ac_optarg" ;;
    313  1.1  tsutsui 
    314  1.1  tsutsui   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    315  1.1  tsutsui     ac_prev=srcdir ;;
    316  1.1  tsutsui   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    317  1.1  tsutsui     srcdir="$ac_optarg" ;;
    318  1.1  tsutsui 
    319  1.1  tsutsui   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
    320  1.1  tsutsui   | --syscon | --sysco | --sysc | --sys | --sy)
    321  1.1  tsutsui     ac_prev=sysconfdir ;;
    322  1.1  tsutsui   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
    323  1.1  tsutsui   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    324  1.1  tsutsui     sysconfdir="$ac_optarg" ;;
    325  1.1  tsutsui 
    326  1.1  tsutsui   -target | --target | --targe | --targ | --tar | --ta | --t)
    327  1.1  tsutsui     ac_prev=target ;;
    328  1.1  tsutsui   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    329  1.1  tsutsui     target="$ac_optarg" ;;
    330  1.1  tsutsui 
    331  1.1  tsutsui   -v | -verbose | --verbose | --verbos | --verbo | --verb)
    332  1.1  tsutsui     verbose=yes ;;
    333  1.1  tsutsui 
    334  1.1  tsutsui   -version | --version | --versio | --versi | --vers)
    335  1.1  tsutsui     echo "configure generated by autoconf version 2.12"
    336  1.1  tsutsui     exit 0 ;;
    337  1.1  tsutsui 
    338  1.1  tsutsui   -with-* | --with-*)
    339  1.1  tsutsui     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    340  1.1  tsutsui     # Reject names that are not valid shell variable names.
    341  1.1  tsutsui     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
    342  1.1  tsutsui       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    343  1.1  tsutsui     fi
    344  1.1  tsutsui     ac_package=`echo $ac_package| sed 's/-/_/g'`
    345  1.1  tsutsui     case "$ac_option" in
    346  1.1  tsutsui       *=*) ;;
    347  1.1  tsutsui       *) ac_optarg=yes ;;
    348  1.1  tsutsui     esac
    349  1.1  tsutsui     eval "with_${ac_package}='$ac_optarg'" ;;
    350  1.1  tsutsui 
    351  1.1  tsutsui   -without-* | --without-*)
    352  1.1  tsutsui     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    353  1.1  tsutsui     # Reject names that are not valid shell variable names.
    354  1.1  tsutsui     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
    355  1.1  tsutsui       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    356  1.1  tsutsui     fi
    357  1.1  tsutsui     ac_package=`echo $ac_package| sed 's/-/_/g'`
    358  1.1  tsutsui     eval "with_${ac_package}=no" ;;
    359  1.1  tsutsui 
    360  1.1  tsutsui   --x)
    361  1.1  tsutsui     # Obsolete; use --with-x.
    362  1.1  tsutsui     with_x=yes ;;
    363  1.1  tsutsui 
    364  1.1  tsutsui   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
    365  1.1  tsutsui   | --x-incl | --x-inc | --x-in | --x-i)
    366  1.1  tsutsui     ac_prev=x_includes ;;
    367  1.1  tsutsui   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
    368  1.1  tsutsui   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    369  1.1  tsutsui     x_includes="$ac_optarg" ;;
    370  1.1  tsutsui 
    371  1.1  tsutsui   -x-libraries | --x-libraries | --x-librarie | --x-librari \
    372  1.1  tsutsui   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    373  1.1  tsutsui     ac_prev=x_libraries ;;
    374  1.1  tsutsui   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
    375  1.1  tsutsui   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    376  1.1  tsutsui     x_libraries="$ac_optarg" ;;
    377  1.1  tsutsui 
    378  1.1  tsutsui   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    379  1.1  tsutsui     ;;
    380  1.1  tsutsui 
    381  1.1  tsutsui   *)
    382  1.1  tsutsui     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
    383  1.1  tsutsui       echo "configure: warning: $ac_option: invalid host type" 1>&2
    384  1.1  tsutsui     fi
    385  1.1  tsutsui     if test "x$nonopt" != xNONE; then
    386  1.1  tsutsui       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    387  1.1  tsutsui     fi
    388  1.1  tsutsui     nonopt="$ac_option"
    389  1.1  tsutsui     ;;
    390  1.1  tsutsui 
    391  1.1  tsutsui   esac
    392  1.1  tsutsui done
    393  1.1  tsutsui 
    394  1.1  tsutsui if test -n "$ac_prev"; then
    395  1.1  tsutsui   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
    396  1.1  tsutsui fi
    397  1.1  tsutsui 
    398  1.1  tsutsui trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
    399  1.1  tsutsui 
    400  1.1  tsutsui # File descriptor usage:
    401  1.1  tsutsui # 0 standard input
    402  1.1  tsutsui # 1 file creation
    403  1.1  tsutsui # 2 errors and warnings
    404  1.1  tsutsui # 3 some systems may open it to /dev/tty
    405  1.1  tsutsui # 4 used on the Kubota Titan
    406  1.1  tsutsui # 6 checking for... messages and results
    407  1.1  tsutsui # 5 compiler messages saved in config.log
    408  1.1  tsutsui if test "$silent" = yes; then
    409  1.1  tsutsui   exec 6>/dev/null
    410  1.1  tsutsui else
    411  1.1  tsutsui   exec 6>&1
    412  1.1  tsutsui fi
    413  1.1  tsutsui exec 5>./config.log
    414  1.1  tsutsui 
    415  1.1  tsutsui echo "\
    416  1.1  tsutsui This file contains any messages produced by compilers while
    417  1.1  tsutsui running configure, to aid debugging if configure makes a mistake.
    418  1.1  tsutsui " 1>&5
    419  1.1  tsutsui 
    420  1.1  tsutsui # Strip out --no-create and --no-recursion so they do not pile up.
    421  1.1  tsutsui # Also quote any args containing shell metacharacters.
    422  1.1  tsutsui ac_configure_args=
    423  1.1  tsutsui for ac_arg
    424  1.1  tsutsui do
    425  1.1  tsutsui   case "$ac_arg" in
    426  1.1  tsutsui   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
    427  1.1  tsutsui   | --no-cr | --no-c) ;;
    428  1.1  tsutsui   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
    429  1.1  tsutsui   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
    430  1.1  tsutsui   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    431  1.1  tsutsui   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    432  1.1  tsutsui   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
    433  1.1  tsutsui   esac
    434  1.1  tsutsui done
    435  1.1  tsutsui 
    436  1.1  tsutsui # NLS nuisances.
    437  1.1  tsutsui # Only set these to C if already set.  These must not be set unconditionally
    438  1.1  tsutsui # because not all systems understand e.g. LANG=C (notably SCO).
    439  1.1  tsutsui # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
    440  1.1  tsutsui # Non-C LC_CTYPE values break the ctype check.
    441  1.1  tsutsui if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    442  1.1  tsutsui if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    443  1.1  tsutsui if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
    444  1.1  tsutsui if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    445  1.1  tsutsui 
    446  1.1  tsutsui # confdefs.h avoids OS command line length limits that DEFS can exceed.
    447  1.1  tsutsui rm -rf conftest* confdefs.h
    448  1.1  tsutsui # AIX cpp loses on an empty file, so make sure it contains at least a newline.
    449  1.1  tsutsui echo > confdefs.h
    450  1.1  tsutsui 
    451  1.1  tsutsui # A filename unique to this package, relative to the directory that
    452  1.1  tsutsui # configure is in, which we can look for to find out if srcdir is correct.
    453  1.1  tsutsui ac_unique_file=mkisofs.c
    454  1.1  tsutsui 
    455  1.1  tsutsui # Find the source files, if location was not specified.
    456  1.1  tsutsui if test -z "$srcdir"; then
    457  1.1  tsutsui   ac_srcdir_defaulted=yes
    458  1.1  tsutsui   # Try the directory containing this script, then its parent.
    459  1.1  tsutsui   ac_prog=$0
    460  1.1  tsutsui   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
    461  1.1  tsutsui   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
    462  1.1  tsutsui   srcdir=$ac_confdir
    463  1.1  tsutsui   if test ! -r $srcdir/$ac_unique_file; then
    464  1.1  tsutsui     srcdir=..
    465  1.1  tsutsui   fi
    466  1.1  tsutsui else
    467  1.1  tsutsui   ac_srcdir_defaulted=no
    468  1.1  tsutsui fi
    469  1.1  tsutsui if test ! -r $srcdir/$ac_unique_file; then
    470  1.1  tsutsui   if test "$ac_srcdir_defaulted" = yes; then
    471  1.1  tsutsui     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
    472  1.1  tsutsui   else
    473  1.1  tsutsui     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
    474  1.1  tsutsui   fi
    475  1.1  tsutsui fi
    476  1.1  tsutsui srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
    477  1.1  tsutsui 
    478  1.1  tsutsui # Prefer explicitly selected file to automatically selected ones.
    479  1.1  tsutsui if test -z "$CONFIG_SITE"; then
    480  1.1  tsutsui   if test "x$prefix" != xNONE; then
    481  1.1  tsutsui     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
    482  1.1  tsutsui   else
    483  1.1  tsutsui     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
    484  1.1  tsutsui   fi
    485  1.1  tsutsui fi
    486  1.1  tsutsui for ac_site_file in $CONFIG_SITE; do
    487  1.1  tsutsui   if test -r "$ac_site_file"; then
    488  1.1  tsutsui     echo "loading site script $ac_site_file"
    489  1.1  tsutsui     . "$ac_site_file"
    490  1.1  tsutsui   fi
    491  1.1  tsutsui done
    492  1.1  tsutsui 
    493  1.1  tsutsui if test -r "$cache_file"; then
    494  1.1  tsutsui   echo "loading cache $cache_file"
    495  1.1  tsutsui   . $cache_file
    496  1.1  tsutsui else
    497  1.1  tsutsui   echo "creating cache $cache_file"
    498  1.1  tsutsui   > $cache_file
    499  1.1  tsutsui fi
    500  1.1  tsutsui 
    501  1.1  tsutsui ac_ext=c
    502  1.1  tsutsui # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    503  1.1  tsutsui ac_cpp='$CPP $CPPFLAGS'
    504  1.1  tsutsui ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    505  1.1  tsutsui ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    506  1.1  tsutsui cross_compiling=$ac_cv_prog_cc_cross
    507  1.1  tsutsui 
    508  1.1  tsutsui if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    509  1.1  tsutsui   # Stardent Vistra SVR4 grep lacks -e, says ghazi (at] caip.rutgers.edu.
    510  1.1  tsutsui   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    511  1.1  tsutsui     ac_n= ac_c='
    512  1.1  tsutsui ' ac_t='	'
    513  1.1  tsutsui   else
    514  1.1  tsutsui     ac_n=-n ac_c= ac_t=
    515  1.1  tsutsui   fi
    516  1.1  tsutsui else
    517  1.1  tsutsui   ac_n= ac_c='\c' ac_t=
    518  1.1  tsutsui fi
    519  1.1  tsutsui 
    520  1.1  tsutsui 
    521  1.1  tsutsui 
    522  1.1  tsutsui # Extract the first word of "gcc", so it can be a program name with args.
    523  1.1  tsutsui set dummy gcc; ac_word=$2
    524  1.1  tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    525  1.1  tsutsui echo "configure:526: checking for $ac_word" >&5
    526  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    527  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    528  1.1  tsutsui else
    529  1.1  tsutsui   if test -n "$CC"; then
    530  1.1  tsutsui   ac_cv_prog_CC="$CC" # Let the user override the test.
    531  1.1  tsutsui else
    532  1.1  tsutsui   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    533  1.1  tsutsui   for ac_dir in $PATH; do
    534  1.1  tsutsui     test -z "$ac_dir" && ac_dir=.
    535  1.1  tsutsui     if test -f $ac_dir/$ac_word; then
    536  1.1  tsutsui       ac_cv_prog_CC="gcc"
    537  1.1  tsutsui       break
    538  1.1  tsutsui     fi
    539  1.1  tsutsui   done
    540  1.1  tsutsui   IFS="$ac_save_ifs"
    541  1.1  tsutsui fi
    542  1.1  tsutsui fi
    543  1.1  tsutsui CC="$ac_cv_prog_CC"
    544  1.1  tsutsui if test -n "$CC"; then
    545  1.1  tsutsui   echo "$ac_t""$CC" 1>&6
    546  1.1  tsutsui else
    547  1.1  tsutsui   echo "$ac_t""no" 1>&6
    548  1.1  tsutsui fi
    549  1.1  tsutsui 
    550  1.1  tsutsui if test -z "$CC"; then
    551  1.1  tsutsui   # Extract the first word of "cc", so it can be a program name with args.
    552  1.1  tsutsui set dummy cc; ac_word=$2
    553  1.1  tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    554  1.1  tsutsui echo "configure:555: checking for $ac_word" >&5
    555  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    556  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    557  1.1  tsutsui else
    558  1.1  tsutsui   if test -n "$CC"; then
    559  1.1  tsutsui   ac_cv_prog_CC="$CC" # Let the user override the test.
    560  1.1  tsutsui else
    561  1.1  tsutsui   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    562  1.1  tsutsui   ac_prog_rejected=no
    563  1.1  tsutsui   for ac_dir in $PATH; do
    564  1.1  tsutsui     test -z "$ac_dir" && ac_dir=.
    565  1.1  tsutsui     if test -f $ac_dir/$ac_word; then
    566  1.1  tsutsui       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
    567  1.1  tsutsui         ac_prog_rejected=yes
    568  1.1  tsutsui 	continue
    569  1.1  tsutsui       fi
    570  1.1  tsutsui       ac_cv_prog_CC="cc"
    571  1.1  tsutsui       break
    572  1.1  tsutsui     fi
    573  1.1  tsutsui   done
    574  1.1  tsutsui   IFS="$ac_save_ifs"
    575  1.1  tsutsui if test $ac_prog_rejected = yes; then
    576  1.1  tsutsui   # We found a bogon in the path, so make sure we never use it.
    577  1.1  tsutsui   set dummy $ac_cv_prog_CC
    578  1.1  tsutsui   shift
    579  1.1  tsutsui   if test $# -gt 0; then
    580  1.1  tsutsui     # We chose a different compiler from the bogus one.
    581  1.1  tsutsui     # However, it has the same basename, so the bogon will be chosen
    582  1.1  tsutsui     # first if we set CC to just the basename; use the full file name.
    583  1.1  tsutsui     shift
    584  1.1  tsutsui     set dummy "$ac_dir/$ac_word" "$@"
    585  1.1  tsutsui     shift
    586  1.1  tsutsui     ac_cv_prog_CC="$@"
    587  1.1  tsutsui   fi
    588  1.1  tsutsui fi
    589  1.1  tsutsui fi
    590  1.1  tsutsui fi
    591  1.1  tsutsui CC="$ac_cv_prog_CC"
    592  1.1  tsutsui if test -n "$CC"; then
    593  1.1  tsutsui   echo "$ac_t""$CC" 1>&6
    594  1.1  tsutsui else
    595  1.1  tsutsui   echo "$ac_t""no" 1>&6
    596  1.1  tsutsui fi
    597  1.1  tsutsui 
    598  1.1  tsutsui   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
    599  1.1  tsutsui fi
    600  1.1  tsutsui 
    601  1.1  tsutsui echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
    602  1.1  tsutsui echo "configure:603: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
    603  1.1  tsutsui 
    604  1.1  tsutsui ac_ext=c
    605  1.1  tsutsui # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
    606  1.1  tsutsui ac_cpp='$CPP $CPPFLAGS'
    607  1.1  tsutsui ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    608  1.1  tsutsui ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
    609  1.1  tsutsui cross_compiling=$ac_cv_prog_cc_cross
    610  1.1  tsutsui 
    611  1.1  tsutsui cat > conftest.$ac_ext <<EOF
    612  1.1  tsutsui #line 613 "configure"
    613  1.1  tsutsui #include "confdefs.h"
    614  1.1  tsutsui main(){return(0);}
    615  1.1  tsutsui EOF
    616  1.1  tsutsui if { (eval echo configure:617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    617  1.1  tsutsui   ac_cv_prog_cc_works=yes
    618  1.1  tsutsui   # If we can't run a trivial program, we are probably using a cross compiler.
    619  1.1  tsutsui   if (./conftest; exit) 2>/dev/null; then
    620  1.1  tsutsui     ac_cv_prog_cc_cross=no
    621  1.1  tsutsui   else
    622  1.1  tsutsui     ac_cv_prog_cc_cross=yes
    623  1.1  tsutsui   fi
    624  1.1  tsutsui else
    625  1.1  tsutsui   echo "configure: failed program was:" >&5
    626  1.1  tsutsui   cat conftest.$ac_ext >&5
    627  1.1  tsutsui   ac_cv_prog_cc_works=no
    628  1.1  tsutsui fi
    629  1.1  tsutsui rm -fr conftest*
    630  1.1  tsutsui 
    631  1.1  tsutsui echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
    632  1.1  tsutsui if test $ac_cv_prog_cc_works = no; then
    633  1.1  tsutsui   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
    634  1.1  tsutsui fi
    635  1.1  tsutsui echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
    636  1.1  tsutsui echo "configure:637: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
    637  1.1  tsutsui echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
    638  1.1  tsutsui cross_compiling=$ac_cv_prog_cc_cross
    639  1.1  tsutsui 
    640  1.1  tsutsui echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
    641  1.1  tsutsui echo "configure:642: checking whether we are using GNU C" >&5
    642  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    643  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    644  1.1  tsutsui else
    645  1.1  tsutsui   cat > conftest.c <<EOF
    646  1.1  tsutsui #ifdef __GNUC__
    647  1.1  tsutsui   yes;
    648  1.1  tsutsui #endif
    649  1.1  tsutsui EOF
    650  1.1  tsutsui if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    651  1.1  tsutsui   ac_cv_prog_gcc=yes
    652  1.1  tsutsui else
    653  1.1  tsutsui   ac_cv_prog_gcc=no
    654  1.1  tsutsui fi
    655  1.1  tsutsui fi
    656  1.1  tsutsui 
    657  1.1  tsutsui echo "$ac_t""$ac_cv_prog_gcc" 1>&6
    658  1.1  tsutsui 
    659  1.1  tsutsui if test $ac_cv_prog_gcc = yes; then
    660  1.1  tsutsui   GCC=yes
    661  1.1  tsutsui   ac_test_CFLAGS="${CFLAGS+set}"
    662  1.1  tsutsui   ac_save_CFLAGS="$CFLAGS"
    663  1.1  tsutsui   CFLAGS=
    664  1.1  tsutsui   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    665  1.1  tsutsui echo "configure:666: checking whether ${CC-cc} accepts -g" >&5
    666  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    667  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    668  1.1  tsutsui else
    669  1.1  tsutsui   echo 'void f(){}' > conftest.c
    670  1.1  tsutsui if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    671  1.1  tsutsui   ac_cv_prog_cc_g=yes
    672  1.1  tsutsui else
    673  1.1  tsutsui   ac_cv_prog_cc_g=no
    674  1.1  tsutsui fi
    675  1.1  tsutsui rm -f conftest*
    676  1.1  tsutsui 
    677  1.1  tsutsui fi
    678  1.1  tsutsui 
    679  1.1  tsutsui echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
    680  1.1  tsutsui   if test "$ac_test_CFLAGS" = set; then
    681  1.1  tsutsui     CFLAGS="$ac_save_CFLAGS"
    682  1.1  tsutsui   elif test $ac_cv_prog_cc_g = yes; then
    683  1.1  tsutsui     CFLAGS="-g -O2"
    684  1.1  tsutsui   else
    685  1.1  tsutsui     CFLAGS="-O2"
    686  1.1  tsutsui   fi
    687  1.1  tsutsui else
    688  1.1  tsutsui   GCC=
    689  1.1  tsutsui   test "${CFLAGS+set}" = set || CFLAGS="-g"
    690  1.1  tsutsui fi
    691  1.1  tsutsui 
    692  1.1  tsutsui echo $ac_n "checking for working const""... $ac_c" 1>&6
    693  1.1  tsutsui echo "configure:694: checking for working const" >&5
    694  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    695  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    696  1.1  tsutsui else
    697  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    698  1.1  tsutsui #line 699 "configure"
    699  1.1  tsutsui #include "confdefs.h"
    700  1.1  tsutsui 
    701  1.1  tsutsui int main() {
    702  1.1  tsutsui 
    703  1.1  tsutsui /* Ultrix mips cc rejects this.  */
    704  1.1  tsutsui typedef int charset[2]; const charset x;
    705  1.1  tsutsui /* SunOS 4.1.1 cc rejects this.  */
    706  1.1  tsutsui char const *const *ccp;
    707  1.1  tsutsui char **p;
    708  1.1  tsutsui /* NEC SVR4.0.2 mips cc rejects this.  */
    709  1.1  tsutsui struct point {int x, y;};
    710  1.1  tsutsui static struct point const zero = {0,0};
    711  1.1  tsutsui /* AIX XL C 1.02.0.0 rejects this.
    712  1.1  tsutsui    It does not let you subtract one const X* pointer from another in an arm
    713  1.1  tsutsui    of an if-expression whose if-part is not a constant expression */
    714  1.1  tsutsui const char *g = "string";
    715  1.1  tsutsui ccp = &g + (g ? g-g : 0);
    716  1.1  tsutsui /* HPUX 7.0 cc rejects these. */
    717  1.1  tsutsui ++ccp;
    718  1.1  tsutsui p = (char**) ccp;
    719  1.1  tsutsui ccp = (char const *const *) p;
    720  1.1  tsutsui { /* SCO 3.2v4 cc rejects this.  */
    721  1.1  tsutsui   char *t;
    722  1.1  tsutsui   char const *s = 0 ? (char *) 0 : (char const *) 0;
    723  1.1  tsutsui 
    724  1.1  tsutsui   *t++ = 0;
    725  1.1  tsutsui }
    726  1.1  tsutsui { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
    727  1.1  tsutsui   int x[] = {25, 17};
    728  1.1  tsutsui   const int *foo = &x[0];
    729  1.1  tsutsui   ++foo;
    730  1.1  tsutsui }
    731  1.1  tsutsui { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
    732  1.1  tsutsui   typedef const int *iptr;
    733  1.1  tsutsui   iptr p = 0;
    734  1.1  tsutsui   ++p;
    735  1.1  tsutsui }
    736  1.1  tsutsui { /* AIX XL C 1.02.0.0 rejects this saying
    737  1.1  tsutsui      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
    738  1.1  tsutsui   struct s { int j; const int *ap[3]; };
    739  1.1  tsutsui   struct s *b; b->j = 5;
    740  1.1  tsutsui }
    741  1.1  tsutsui { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
    742  1.1  tsutsui   const int foo = 10;
    743  1.1  tsutsui }
    744  1.1  tsutsui 
    745  1.1  tsutsui ; return 0; }
    746  1.1  tsutsui EOF
    747  1.1  tsutsui if { (eval echo configure:748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    748  1.1  tsutsui   rm -rf conftest*
    749  1.1  tsutsui   ac_cv_c_const=yes
    750  1.1  tsutsui else
    751  1.1  tsutsui   echo "configure: failed program was:" >&5
    752  1.1  tsutsui   cat conftest.$ac_ext >&5
    753  1.1  tsutsui   rm -rf conftest*
    754  1.1  tsutsui   ac_cv_c_const=no
    755  1.1  tsutsui fi
    756  1.1  tsutsui rm -f conftest*
    757  1.1  tsutsui fi
    758  1.1  tsutsui 
    759  1.1  tsutsui echo "$ac_t""$ac_cv_c_const" 1>&6
    760  1.1  tsutsui if test $ac_cv_c_const = no; then
    761  1.1  tsutsui   cat >> confdefs.h <<\EOF
    762  1.1  tsutsui #define const 
    763  1.1  tsutsui EOF
    764  1.1  tsutsui 
    765  1.1  tsutsui fi
    766  1.1  tsutsui 
    767  1.1  tsutsui echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
    768  1.1  tsutsui echo "configure:769: checking how to run the C preprocessor" >&5
    769  1.1  tsutsui # On Suns, sometimes $CPP names a directory.
    770  1.1  tsutsui if test -n "$CPP" && test -d "$CPP"; then
    771  1.1  tsutsui   CPP=
    772  1.1  tsutsui fi
    773  1.1  tsutsui if test -z "$CPP"; then
    774  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
    775  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    776  1.1  tsutsui else
    777  1.1  tsutsui     # This must be in double quotes, not single quotes, because CPP may get
    778  1.1  tsutsui   # substituted into the Makefile and "${CC-cc}" will confuse make.
    779  1.1  tsutsui   CPP="${CC-cc} -E"
    780  1.1  tsutsui   # On the NeXT, cc -E runs the code through the compiler's parser,
    781  1.1  tsutsui   # not just through cpp.
    782  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    783  1.1  tsutsui #line 784 "configure"
    784  1.1  tsutsui #include "confdefs.h"
    785  1.1  tsutsui #include <assert.h>
    786  1.1  tsutsui Syntax Error
    787  1.1  tsutsui EOF
    788  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    789  1.1  tsutsui { (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    790  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
    791  1.1  tsutsui if test -z "$ac_err"; then
    792  1.1  tsutsui   :
    793  1.1  tsutsui else
    794  1.1  tsutsui   echo "$ac_err" >&5
    795  1.1  tsutsui   echo "configure: failed program was:" >&5
    796  1.1  tsutsui   cat conftest.$ac_ext >&5
    797  1.1  tsutsui   rm -rf conftest*
    798  1.1  tsutsui   CPP="${CC-cc} -E -traditional-cpp"
    799  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    800  1.1  tsutsui #line 801 "configure"
    801  1.1  tsutsui #include "confdefs.h"
    802  1.1  tsutsui #include <assert.h>
    803  1.1  tsutsui Syntax Error
    804  1.1  tsutsui EOF
    805  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    806  1.1  tsutsui { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    807  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
    808  1.1  tsutsui if test -z "$ac_err"; then
    809  1.1  tsutsui   :
    810  1.1  tsutsui else
    811  1.1  tsutsui   echo "$ac_err" >&5
    812  1.1  tsutsui   echo "configure: failed program was:" >&5
    813  1.1  tsutsui   cat conftest.$ac_ext >&5
    814  1.1  tsutsui   rm -rf conftest*
    815  1.1  tsutsui   CPP=/lib/cpp
    816  1.1  tsutsui fi
    817  1.1  tsutsui rm -f conftest*
    818  1.1  tsutsui fi
    819  1.1  tsutsui rm -f conftest*
    820  1.1  tsutsui   ac_cv_prog_CPP="$CPP"
    821  1.1  tsutsui fi
    822  1.1  tsutsui   CPP="$ac_cv_prog_CPP"
    823  1.1  tsutsui else
    824  1.1  tsutsui   ac_cv_prog_CPP="$CPP"
    825  1.1  tsutsui fi
    826  1.1  tsutsui echo "$ac_t""$CPP" 1>&6
    827  1.1  tsutsui 
    828  1.1  tsutsui echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
    829  1.1  tsutsui echo "configure:830: checking whether sys/types.h defines makedev" >&5
    830  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
    831  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    832  1.1  tsutsui else
    833  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    834  1.1  tsutsui #line 835 "configure"
    835  1.1  tsutsui #include "confdefs.h"
    836  1.1  tsutsui #include <sys/types.h>
    837  1.1  tsutsui int main() {
    838  1.1  tsutsui return makedev(0, 0);
    839  1.1  tsutsui ; return 0; }
    840  1.1  tsutsui EOF
    841  1.1  tsutsui if { (eval echo configure:842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    842  1.1  tsutsui   rm -rf conftest*
    843  1.1  tsutsui   ac_cv_header_sys_types_h_makedev=yes
    844  1.1  tsutsui else
    845  1.1  tsutsui   echo "configure: failed program was:" >&5
    846  1.1  tsutsui   cat conftest.$ac_ext >&5
    847  1.1  tsutsui   rm -rf conftest*
    848  1.1  tsutsui   ac_cv_header_sys_types_h_makedev=no
    849  1.1  tsutsui fi
    850  1.1  tsutsui rm -f conftest*
    851  1.1  tsutsui 
    852  1.1  tsutsui fi
    853  1.1  tsutsui 
    854  1.1  tsutsui echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
    855  1.1  tsutsui 
    856  1.1  tsutsui if test $ac_cv_header_sys_types_h_makedev = no; then
    857  1.1  tsutsui ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
    858  1.1  tsutsui echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
    859  1.1  tsutsui echo "configure:860: checking for sys/mkdev.h" >&5
    860  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    861  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    862  1.1  tsutsui else
    863  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    864  1.1  tsutsui #line 865 "configure"
    865  1.1  tsutsui #include "confdefs.h"
    866  1.1  tsutsui #include <sys/mkdev.h>
    867  1.1  tsutsui EOF
    868  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    869  1.1  tsutsui { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    870  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
    871  1.1  tsutsui if test -z "$ac_err"; then
    872  1.1  tsutsui   rm -rf conftest*
    873  1.1  tsutsui   eval "ac_cv_header_$ac_safe=yes"
    874  1.1  tsutsui else
    875  1.1  tsutsui   echo "$ac_err" >&5
    876  1.1  tsutsui   echo "configure: failed program was:" >&5
    877  1.1  tsutsui   cat conftest.$ac_ext >&5
    878  1.1  tsutsui   rm -rf conftest*
    879  1.1  tsutsui   eval "ac_cv_header_$ac_safe=no"
    880  1.1  tsutsui fi
    881  1.1  tsutsui rm -f conftest*
    882  1.1  tsutsui fi
    883  1.1  tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    884  1.1  tsutsui   echo "$ac_t""yes" 1>&6
    885  1.1  tsutsui   cat >> confdefs.h <<\EOF
    886  1.1  tsutsui #define MAJOR_IN_MKDEV 1
    887  1.1  tsutsui EOF
    888  1.1  tsutsui 
    889  1.1  tsutsui else
    890  1.1  tsutsui   echo "$ac_t""no" 1>&6
    891  1.1  tsutsui fi
    892  1.1  tsutsui 
    893  1.1  tsutsui 
    894  1.1  tsutsui   if test $ac_cv_header_sys_mkdev_h = no; then
    895  1.1  tsutsui ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
    896  1.1  tsutsui echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
    897  1.1  tsutsui echo "configure:898: checking for sys/sysmacros.h" >&5
    898  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    899  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    900  1.1  tsutsui else
    901  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    902  1.1  tsutsui #line 903 "configure"
    903  1.1  tsutsui #include "confdefs.h"
    904  1.1  tsutsui #include <sys/sysmacros.h>
    905  1.1  tsutsui EOF
    906  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    907  1.1  tsutsui { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    908  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
    909  1.1  tsutsui if test -z "$ac_err"; then
    910  1.1  tsutsui   rm -rf conftest*
    911  1.1  tsutsui   eval "ac_cv_header_$ac_safe=yes"
    912  1.1  tsutsui else
    913  1.1  tsutsui   echo "$ac_err" >&5
    914  1.1  tsutsui   echo "configure: failed program was:" >&5
    915  1.1  tsutsui   cat conftest.$ac_ext >&5
    916  1.1  tsutsui   rm -rf conftest*
    917  1.1  tsutsui   eval "ac_cv_header_$ac_safe=no"
    918  1.1  tsutsui fi
    919  1.1  tsutsui rm -f conftest*
    920  1.1  tsutsui fi
    921  1.1  tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    922  1.1  tsutsui   echo "$ac_t""yes" 1>&6
    923  1.1  tsutsui   cat >> confdefs.h <<\EOF
    924  1.1  tsutsui #define MAJOR_IN_SYSMACROS 1
    925  1.1  tsutsui EOF
    926  1.1  tsutsui 
    927  1.1  tsutsui else
    928  1.1  tsutsui   echo "$ac_t""no" 1>&6
    929  1.1  tsutsui fi
    930  1.1  tsutsui 
    931  1.1  tsutsui   fi
    932  1.1  tsutsui fi
    933  1.1  tsutsui 
    934  1.1  tsutsui ac_header_dirent=no
    935  1.1  tsutsui for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
    936  1.1  tsutsui do
    937  1.1  tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    938  1.1  tsutsui echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
    939  1.1  tsutsui echo "configure:940: checking for $ac_hdr that defines DIR" >&5
    940  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    941  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    942  1.1  tsutsui else
    943  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
    944  1.1  tsutsui #line 945 "configure"
    945  1.1  tsutsui #include "confdefs.h"
    946  1.1  tsutsui #include <sys/types.h>
    947  1.1  tsutsui #include <$ac_hdr>
    948  1.1  tsutsui int main() {
    949  1.1  tsutsui DIR *dirp = 0;
    950  1.1  tsutsui ; return 0; }
    951  1.1  tsutsui EOF
    952  1.1  tsutsui if { (eval echo configure:953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    953  1.1  tsutsui   rm -rf conftest*
    954  1.1  tsutsui   eval "ac_cv_header_dirent_$ac_safe=yes"
    955  1.1  tsutsui else
    956  1.1  tsutsui   echo "configure: failed program was:" >&5
    957  1.1  tsutsui   cat conftest.$ac_ext >&5
    958  1.1  tsutsui   rm -rf conftest*
    959  1.1  tsutsui   eval "ac_cv_header_dirent_$ac_safe=no"
    960  1.1  tsutsui fi
    961  1.1  tsutsui rm -f conftest*
    962  1.1  tsutsui fi
    963  1.1  tsutsui if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    964  1.1  tsutsui   echo "$ac_t""yes" 1>&6
    965  1.1  tsutsui     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    966  1.1  tsutsui   cat >> confdefs.h <<EOF
    967  1.1  tsutsui #define $ac_tr_hdr 1
    968  1.1  tsutsui EOF
    969  1.1  tsutsui  ac_header_dirent=$ac_hdr; break
    970  1.1  tsutsui else
    971  1.1  tsutsui   echo "$ac_t""no" 1>&6
    972  1.1  tsutsui fi
    973  1.1  tsutsui done
    974  1.1  tsutsui # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
    975  1.1  tsutsui if test $ac_header_dirent = dirent.h; then
    976  1.1  tsutsui echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
    977  1.1  tsutsui echo "configure:978: checking for opendir in -ldir" >&5
    978  1.1  tsutsui ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
    979  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    980  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
    981  1.1  tsutsui else
    982  1.1  tsutsui   ac_save_LIBS="$LIBS"
    983  1.1  tsutsui LIBS="-ldir  $LIBS"
    984  1.1  tsutsui cat > conftest.$ac_ext <<EOF
    985  1.1  tsutsui #line 986 "configure"
    986  1.1  tsutsui #include "confdefs.h"
    987  1.1  tsutsui /* Override any gcc2 internal prototype to avoid an error.  */
    988  1.1  tsutsui /* We use char because int might match the return type of a gcc2
    989  1.1  tsutsui     builtin and then its argument prototype would still apply.  */
    990  1.1  tsutsui char opendir();
    991  1.1  tsutsui 
    992  1.1  tsutsui int main() {
    993  1.1  tsutsui opendir()
    994  1.1  tsutsui ; return 0; }
    995  1.1  tsutsui EOF
    996  1.1  tsutsui if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    997  1.1  tsutsui   rm -rf conftest*
    998  1.1  tsutsui   eval "ac_cv_lib_$ac_lib_var=yes"
    999  1.1  tsutsui else
   1000  1.1  tsutsui   echo "configure: failed program was:" >&5
   1001  1.1  tsutsui   cat conftest.$ac_ext >&5
   1002  1.1  tsutsui   rm -rf conftest*
   1003  1.1  tsutsui   eval "ac_cv_lib_$ac_lib_var=no"
   1004  1.1  tsutsui fi
   1005  1.1  tsutsui rm -f conftest*
   1006  1.1  tsutsui LIBS="$ac_save_LIBS"
   1007  1.1  tsutsui 
   1008  1.1  tsutsui fi
   1009  1.1  tsutsui if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   1010  1.1  tsutsui   echo "$ac_t""yes" 1>&6
   1011  1.1  tsutsui   LIBS="$LIBS -ldir"
   1012  1.1  tsutsui else
   1013  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1014  1.1  tsutsui fi
   1015  1.1  tsutsui 
   1016  1.1  tsutsui else
   1017  1.1  tsutsui echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
   1018  1.1  tsutsui echo "configure:1019: checking for opendir in -lx" >&5
   1019  1.1  tsutsui ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
   1020  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   1021  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1022  1.1  tsutsui else
   1023  1.1  tsutsui   ac_save_LIBS="$LIBS"
   1024  1.1  tsutsui LIBS="-lx  $LIBS"
   1025  1.1  tsutsui cat > conftest.$ac_ext <<EOF
   1026  1.1  tsutsui #line 1027 "configure"
   1027  1.1  tsutsui #include "confdefs.h"
   1028  1.1  tsutsui /* Override any gcc2 internal prototype to avoid an error.  */
   1029  1.1  tsutsui /* We use char because int might match the return type of a gcc2
   1030  1.1  tsutsui     builtin and then its argument prototype would still apply.  */
   1031  1.1  tsutsui char opendir();
   1032  1.1  tsutsui 
   1033  1.1  tsutsui int main() {
   1034  1.1  tsutsui opendir()
   1035  1.1  tsutsui ; return 0; }
   1036  1.1  tsutsui EOF
   1037  1.1  tsutsui if { (eval echo configure:1038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   1038  1.1  tsutsui   rm -rf conftest*
   1039  1.1  tsutsui   eval "ac_cv_lib_$ac_lib_var=yes"
   1040  1.1  tsutsui else
   1041  1.1  tsutsui   echo "configure: failed program was:" >&5
   1042  1.1  tsutsui   cat conftest.$ac_ext >&5
   1043  1.1  tsutsui   rm -rf conftest*
   1044  1.1  tsutsui   eval "ac_cv_lib_$ac_lib_var=no"
   1045  1.1  tsutsui fi
   1046  1.1  tsutsui rm -f conftest*
   1047  1.1  tsutsui LIBS="$ac_save_LIBS"
   1048  1.1  tsutsui 
   1049  1.1  tsutsui fi
   1050  1.1  tsutsui if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   1051  1.1  tsutsui   echo "$ac_t""yes" 1>&6
   1052  1.1  tsutsui   LIBS="$LIBS -lx"
   1053  1.1  tsutsui else
   1054  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1055  1.1  tsutsui fi
   1056  1.1  tsutsui 
   1057  1.1  tsutsui fi
   1058  1.1  tsutsui 
   1059  1.1  tsutsui if test -z "$ac_header_dirent"; then
   1060  1.1  tsutsui   cat >> confdefs.h <<\EOF
   1061  1.1  tsutsui #define NODIR 1
   1062  1.1  tsutsui EOF
   1063  1.1  tsutsui 
   1064  1.1  tsutsui fi
   1065  1.1  tsutsui for ac_func in memmove sbrk strdup
   1066  1.1  tsutsui do
   1067  1.1  tsutsui echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
   1068  1.1  tsutsui echo "configure:1069: checking for $ac_func" >&5
   1069  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   1070  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1071  1.1  tsutsui else
   1072  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
   1073  1.1  tsutsui #line 1074 "configure"
   1074  1.1  tsutsui #include "confdefs.h"
   1075  1.1  tsutsui /* System header to define __stub macros and hopefully few prototypes,
   1076  1.1  tsutsui     which can conflict with char $ac_func(); below.  */
   1077  1.1  tsutsui #include <assert.h>
   1078  1.1  tsutsui /* Override any gcc2 internal prototype to avoid an error.  */
   1079  1.1  tsutsui /* We use char because int might match the return type of a gcc2
   1080  1.1  tsutsui     builtin and then its argument prototype would still apply.  */
   1081  1.1  tsutsui char $ac_func();
   1082  1.1  tsutsui 
   1083  1.1  tsutsui int main() {
   1084  1.1  tsutsui 
   1085  1.1  tsutsui /* The GNU C library defines this for functions which it implements
   1086  1.1  tsutsui     to always fail with ENOSYS.  Some functions are actually named
   1087  1.1  tsutsui     something starting with __ and the normal name is an alias.  */
   1088  1.1  tsutsui #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
   1089  1.1  tsutsui choke me
   1090  1.1  tsutsui #else
   1091  1.1  tsutsui $ac_func();
   1092  1.1  tsutsui #endif
   1093  1.1  tsutsui 
   1094  1.1  tsutsui ; return 0; }
   1095  1.1  tsutsui EOF
   1096  1.1  tsutsui if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   1097  1.1  tsutsui   rm -rf conftest*
   1098  1.1  tsutsui   eval "ac_cv_func_$ac_func=yes"
   1099  1.1  tsutsui else
   1100  1.1  tsutsui   echo "configure: failed program was:" >&5
   1101  1.1  tsutsui   cat conftest.$ac_ext >&5
   1102  1.1  tsutsui   rm -rf conftest*
   1103  1.1  tsutsui   eval "ac_cv_func_$ac_func=no"
   1104  1.1  tsutsui fi
   1105  1.1  tsutsui rm -f conftest*
   1106  1.1  tsutsui fi
   1107  1.1  tsutsui 
   1108  1.1  tsutsui if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
   1109  1.1  tsutsui   echo "$ac_t""yes" 1>&6
   1110  1.1  tsutsui     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
   1111  1.1  tsutsui   cat >> confdefs.h <<EOF
   1112  1.1  tsutsui #define $ac_tr_func 1
   1113  1.1  tsutsui EOF
   1114  1.1  tsutsui  
   1115  1.1  tsutsui else
   1116  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1117  1.1  tsutsui fi
   1118  1.1  tsutsui done
   1119  1.1  tsutsui 
   1120  1.1  tsutsui for ac_hdr in sys/mkdev.h sys/sysmacros.h malloc.h termios.h sys/types.h
   1121  1.1  tsutsui do
   1122  1.1  tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
   1123  1.1  tsutsui echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
   1124  1.1  tsutsui echo "configure:1125: checking for $ac_hdr" >&5
   1125  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   1126  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1127  1.1  tsutsui else
   1128  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
   1129  1.1  tsutsui #line 1130 "configure"
   1130  1.1  tsutsui #include "confdefs.h"
   1131  1.1  tsutsui #include <$ac_hdr>
   1132  1.1  tsutsui EOF
   1133  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   1134  1.1  tsutsui { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   1135  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
   1136  1.1  tsutsui if test -z "$ac_err"; then
   1137  1.1  tsutsui   rm -rf conftest*
   1138  1.1  tsutsui   eval "ac_cv_header_$ac_safe=yes"
   1139  1.1  tsutsui else
   1140  1.1  tsutsui   echo "$ac_err" >&5
   1141  1.1  tsutsui   echo "configure: failed program was:" >&5
   1142  1.1  tsutsui   cat conftest.$ac_ext >&5
   1143  1.1  tsutsui   rm -rf conftest*
   1144  1.1  tsutsui   eval "ac_cv_header_$ac_safe=no"
   1145  1.1  tsutsui fi
   1146  1.1  tsutsui rm -f conftest*
   1147  1.1  tsutsui fi
   1148  1.1  tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   1149  1.1  tsutsui   echo "$ac_t""yes" 1>&6
   1150  1.1  tsutsui     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
   1151  1.1  tsutsui   cat >> confdefs.h <<EOF
   1152  1.1  tsutsui #define $ac_tr_hdr 1
   1153  1.1  tsutsui EOF
   1154  1.1  tsutsui  
   1155  1.1  tsutsui else
   1156  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1157  1.1  tsutsui fi
   1158  1.1  tsutsui done
   1159  1.1  tsutsui 
   1160  1.1  tsutsui for ac_hdr in unistd.h string.h strings.h sys/stat.h sys/fcntl.h
   1161  1.1  tsutsui do
   1162  1.1  tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
   1163  1.1  tsutsui echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
   1164  1.1  tsutsui echo "configure:1165: checking for $ac_hdr" >&5
   1165  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   1166  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1167  1.1  tsutsui else
   1168  1.1  tsutsui   cat > conftest.$ac_ext <<EOF
   1169  1.1  tsutsui #line 1170 "configure"
   1170  1.1  tsutsui #include "confdefs.h"
   1171  1.1  tsutsui #include <$ac_hdr>
   1172  1.1  tsutsui EOF
   1173  1.1  tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   1174  1.1  tsutsui { (eval echo configure:1175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   1175  1.1  tsutsui ac_err=`grep -v '^ *+' conftest.out`
   1176  1.1  tsutsui if test -z "$ac_err"; then
   1177  1.1  tsutsui   rm -rf conftest*
   1178  1.1  tsutsui   eval "ac_cv_header_$ac_safe=yes"
   1179  1.1  tsutsui else
   1180  1.1  tsutsui   echo "$ac_err" >&5
   1181  1.1  tsutsui   echo "configure: failed program was:" >&5
   1182  1.1  tsutsui   cat conftest.$ac_ext >&5
   1183  1.1  tsutsui   rm -rf conftest*
   1184  1.1  tsutsui   eval "ac_cv_header_$ac_safe=no"
   1185  1.1  tsutsui fi
   1186  1.1  tsutsui rm -f conftest*
   1187  1.1  tsutsui fi
   1188  1.1  tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   1189  1.1  tsutsui   echo "$ac_t""yes" 1>&6
   1190  1.1  tsutsui     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
   1191  1.1  tsutsui   cat >> confdefs.h <<EOF
   1192  1.1  tsutsui #define $ac_tr_hdr 1
   1193  1.1  tsutsui EOF
   1194  1.1  tsutsui  
   1195  1.1  tsutsui else
   1196  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1197  1.1  tsutsui fi
   1198  1.1  tsutsui done
   1199  1.1  tsutsui 
   1200  1.1  tsutsui ac_aux_dir=
   1201  1.1  tsutsui for ac_dir in ${GNUSYSTEM_AUX_DIR} $srcdir $srcdir/.. $srcdir/../..; do
   1202  1.1  tsutsui   if test -f $ac_dir/install-sh; then
   1203  1.1  tsutsui     ac_aux_dir=$ac_dir
   1204  1.1  tsutsui     ac_install_sh="$ac_aux_dir/install-sh -c"
   1205  1.1  tsutsui     break
   1206  1.1  tsutsui   elif test -f $ac_dir/install.sh; then
   1207  1.1  tsutsui     ac_aux_dir=$ac_dir
   1208  1.1  tsutsui     ac_install_sh="$ac_aux_dir/install.sh -c"
   1209  1.1  tsutsui     break
   1210  1.1  tsutsui   fi
   1211  1.1  tsutsui done
   1212  1.1  tsutsui if test -z "$ac_aux_dir"; then
   1213  1.1  tsutsui   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
   1214  1.1  tsutsui fi
   1215  1.1  tsutsui ac_config_guess=$ac_aux_dir/config.guess
   1216  1.1  tsutsui ac_config_sub=$ac_aux_dir/config.sub
   1217  1.1  tsutsui ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
   1218  1.1  tsutsui 
   1219  1.1  tsutsui # Find a good install program.  We prefer a C program (faster),
   1220  1.1  tsutsui # so one script is as good as another.  But avoid the broken or
   1221  1.1  tsutsui # incompatible versions:
   1222  1.1  tsutsui # SysV /etc/install, /usr/sbin/install
   1223  1.1  tsutsui # SunOS /usr/etc/install
   1224  1.1  tsutsui # IRIX /sbin/install
   1225  1.1  tsutsui # AIX /bin/install
   1226  1.1  tsutsui # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   1227  1.1  tsutsui # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   1228  1.1  tsutsui # ./install, which can be erroneously created by make from ./install.sh.
   1229  1.1  tsutsui echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
   1230  1.1  tsutsui echo "configure:1231: checking for a BSD compatible install" >&5
   1231  1.1  tsutsui if test -z "$INSTALL"; then
   1232  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   1233  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1234  1.1  tsutsui else
   1235  1.1  tsutsui     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
   1236  1.1  tsutsui   for ac_dir in $PATH; do
   1237  1.1  tsutsui     # Account for people who put trailing slashes in PATH elements.
   1238  1.1  tsutsui     case "$ac_dir/" in
   1239  1.1  tsutsui     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
   1240  1.1  tsutsui     *)
   1241  1.1  tsutsui       # OSF1 and SCO ODT 3.0 have their own names for install.
   1242  1.1  tsutsui       for ac_prog in ginstall installbsd scoinst install; do
   1243  1.1  tsutsui         if test -f $ac_dir/$ac_prog; then
   1244  1.1  tsutsui 	  if test $ac_prog = install &&
   1245  1.1  tsutsui             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
   1246  1.1  tsutsui 	    # AIX install.  It has an incompatible calling convention.
   1247  1.1  tsutsui 	    # OSF/1 installbsd also uses dspmsg, but is usable.
   1248  1.1  tsutsui 	    :
   1249  1.1  tsutsui 	  else
   1250  1.1  tsutsui 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
   1251  1.1  tsutsui 	    break 2
   1252  1.1  tsutsui 	  fi
   1253  1.1  tsutsui 	fi
   1254  1.1  tsutsui       done
   1255  1.1  tsutsui       ;;
   1256  1.1  tsutsui     esac
   1257  1.1  tsutsui   done
   1258  1.1  tsutsui   IFS="$ac_save_IFS"
   1259  1.1  tsutsui 
   1260  1.1  tsutsui fi
   1261  1.1  tsutsui   if test "${ac_cv_path_install+set}" = set; then
   1262  1.1  tsutsui     INSTALL="$ac_cv_path_install"
   1263  1.1  tsutsui   else
   1264  1.1  tsutsui     # As a last resort, use the slow shell script.  We don't cache a
   1265  1.1  tsutsui     # path for INSTALL within a source directory, because that will
   1266  1.1  tsutsui     # break other packages using the cache if that directory is
   1267  1.1  tsutsui     # removed, or if the path is relative.
   1268  1.1  tsutsui     INSTALL="$ac_install_sh"
   1269  1.1  tsutsui   fi
   1270  1.1  tsutsui fi
   1271  1.1  tsutsui echo "$ac_t""$INSTALL" 1>&6
   1272  1.1  tsutsui 
   1273  1.1  tsutsui # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   1274  1.1  tsutsui # It thinks the first close brace ends the variable substitution.
   1275  1.1  tsutsui test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   1276  1.1  tsutsui 
   1277  1.1  tsutsui test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   1278  1.1  tsutsui 
   1279  1.1  tsutsui # Extract the first word of "ranlib", so it can be a program name with args.
   1280  1.1  tsutsui set dummy ranlib; ac_word=$2
   1281  1.1  tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1282  1.1  tsutsui echo "configure:1283: checking for $ac_word" >&5
   1283  1.1  tsutsui if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
   1284  1.1  tsutsui   echo $ac_n "(cached) $ac_c" 1>&6
   1285  1.1  tsutsui else
   1286  1.1  tsutsui   if test -n "$RANLIB"; then
   1287  1.1  tsutsui   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   1288  1.1  tsutsui else
   1289  1.1  tsutsui   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   1290  1.1  tsutsui   for ac_dir in $PATH; do
   1291  1.1  tsutsui     test -z "$ac_dir" && ac_dir=.
   1292  1.1  tsutsui     if test -f $ac_dir/$ac_word; then
   1293  1.1  tsutsui       ac_cv_prog_RANLIB="ranlib"
   1294  1.1  tsutsui       break
   1295  1.1  tsutsui     fi
   1296  1.1  tsutsui   done
   1297  1.1  tsutsui   IFS="$ac_save_ifs"
   1298  1.1  tsutsui   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
   1299  1.1  tsutsui fi
   1300  1.1  tsutsui fi
   1301  1.1  tsutsui RANLIB="$ac_cv_prog_RANLIB"
   1302  1.1  tsutsui if test -n "$RANLIB"; then
   1303  1.1  tsutsui   echo "$ac_t""$RANLIB" 1>&6
   1304  1.1  tsutsui else
   1305  1.1  tsutsui   echo "$ac_t""no" 1>&6
   1306  1.1  tsutsui fi
   1307  1.1  tsutsui 
   1308  1.1  tsutsui trap '' 1 2 15
   1309  1.1  tsutsui cat > confcache <<\EOF
   1310  1.1  tsutsui # This file is a shell script that caches the results of configure
   1311  1.1  tsutsui # tests run on this system so they can be shared between configure
   1312  1.1  tsutsui # scripts and configure runs.  It is not useful on other systems.
   1313  1.1  tsutsui # If it contains results you don't want to keep, you may remove or edit it.
   1314  1.1  tsutsui #
   1315  1.1  tsutsui # By default, configure uses ./config.cache as the cache file,
   1316  1.1  tsutsui # creating it if it does not exist already.  You can give configure
   1317  1.1  tsutsui # the --cache-file=FILE option to use a different cache file; that is
   1318  1.1  tsutsui # what configure does when it calls configure scripts in
   1319  1.1  tsutsui # subdirectories, so they share the cache.
   1320  1.1  tsutsui # Giving --cache-file=/dev/null disables caching, for debugging configure.
   1321  1.1  tsutsui # config.status only pays attention to the cache file if you give it the
   1322  1.1  tsutsui # --recheck option to rerun configure.
   1323  1.1  tsutsui #
   1324  1.1  tsutsui EOF
   1325  1.1  tsutsui # The following way of writing the cache mishandles newlines in values,
   1326  1.1  tsutsui # but we know of no workaround that is simple, portable, and efficient.
   1327  1.1  tsutsui # So, don't put newlines in cache variables' values.
   1328  1.1  tsutsui # Ultrix sh set writes to stderr and can't be redirected directly,
   1329  1.1  tsutsui # and sets the high bit in the cache file unless we assign to the vars.
   1330  1.1  tsutsui (set) 2>&1 |
   1331  1.1  tsutsui   case `(ac_space=' '; set) 2>&1` in
   1332  1.1  tsutsui   *ac_space=\ *)
   1333  1.1  tsutsui     # `set' does not quote correctly, so add quotes (double-quote substitution
   1334  1.1  tsutsui     # turns \\\\ into \\, and sed turns \\ into \).
   1335  1.1  tsutsui     sed -n \
   1336  1.1  tsutsui       -e "s/'/'\\\\''/g" \
   1337  1.1  tsutsui       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
   1338  1.1  tsutsui     ;;
   1339  1.1  tsutsui   *)
   1340  1.1  tsutsui     # `set' quotes correctly as required by POSIX, so do not add quotes.
   1341  1.1  tsutsui     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
   1342  1.1  tsutsui     ;;
   1343  1.1  tsutsui   esac >> confcache
   1344  1.1  tsutsui if cmp -s $cache_file confcache; then
   1345  1.1  tsutsui   :
   1346  1.1  tsutsui else
   1347  1.1  tsutsui   if test -w $cache_file; then
   1348  1.1  tsutsui     echo "updating cache $cache_file"
   1349  1.1  tsutsui     cat confcache > $cache_file
   1350  1.1  tsutsui   else
   1351  1.1  tsutsui     echo "not updating unwritable cache $cache_file"
   1352  1.1  tsutsui   fi
   1353  1.1  tsutsui fi
   1354  1.1  tsutsui rm -f confcache
   1355  1.1  tsutsui 
   1356  1.1  tsutsui trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
   1357  1.1  tsutsui 
   1358  1.1  tsutsui test "x$prefix" = xNONE && prefix=$ac_default_prefix
   1359  1.1  tsutsui # Let make expand exec_prefix.
   1360  1.1  tsutsui test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   1361  1.1  tsutsui 
   1362  1.1  tsutsui # Any assignment to VPATH causes Sun make to only execute
   1363  1.1  tsutsui # the first set of double-colon rules, so remove it if not needed.
   1364  1.1  tsutsui # If there is a colon in the path, we need to keep it.
   1365  1.1  tsutsui if test "x$srcdir" = x.; then
   1366  1.1  tsutsui   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
   1367  1.1  tsutsui fi
   1368  1.1  tsutsui 
   1369  1.1  tsutsui trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
   1370  1.1  tsutsui 
   1371  1.1  tsutsui DEFS=-DHAVE_CONFIG_H
   1372  1.1  tsutsui 
   1373  1.1  tsutsui # Without the "./", some shells look in PATH for config.status.
   1374  1.1  tsutsui : ${CONFIG_STATUS=./config.status}
   1375  1.1  tsutsui 
   1376  1.1  tsutsui echo creating $CONFIG_STATUS
   1377  1.1  tsutsui rm -f $CONFIG_STATUS
   1378  1.1  tsutsui cat > $CONFIG_STATUS <<EOF
   1379  1.1  tsutsui #! /bin/sh
   1380  1.1  tsutsui # Generated automatically by configure.
   1381  1.1  tsutsui # Run this file to recreate the current configuration.
   1382  1.1  tsutsui # This directory was configured as follows,
   1383  1.1  tsutsui # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   1384  1.1  tsutsui #
   1385  1.1  tsutsui # $0 $ac_configure_args
   1386  1.1  tsutsui #
   1387  1.1  tsutsui # Compiler output produced by configure, useful for debugging
   1388  1.1  tsutsui # configure, is in ./config.log if it exists.
   1389  1.1  tsutsui 
   1390  1.1  tsutsui ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
   1391  1.1  tsutsui for ac_option
   1392  1.1  tsutsui do
   1393  1.1  tsutsui   case "\$ac_option" in
   1394  1.1  tsutsui   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   1395  1.1  tsutsui     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
   1396  1.1  tsutsui     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
   1397  1.1  tsutsui   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
   1398  1.1  tsutsui     echo "$CONFIG_STATUS generated by autoconf version 2.12"
   1399  1.1  tsutsui     exit 0 ;;
   1400  1.1  tsutsui   -help | --help | --hel | --he | --h)
   1401  1.1  tsutsui     echo "\$ac_cs_usage"; exit 0 ;;
   1402  1.1  tsutsui   *) echo "\$ac_cs_usage"; exit 1 ;;
   1403  1.1  tsutsui   esac
   1404  1.1  tsutsui done
   1405  1.1  tsutsui 
   1406  1.1  tsutsui ac_given_srcdir=$srcdir
   1407  1.1  tsutsui ac_given_INSTALL="$INSTALL"
   1408  1.1  tsutsui 
   1409  1.1  tsutsui trap 'rm -fr `echo "Makefile diag/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
   1410  1.1  tsutsui EOF
   1411  1.1  tsutsui cat >> $CONFIG_STATUS <<EOF
   1412  1.1  tsutsui 
   1413  1.1  tsutsui # Protect against being on the right side of a sed subst in config.status.
   1414  1.1  tsutsui sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
   1415  1.1  tsutsui  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
   1416  1.1  tsutsui $ac_vpsub
   1417  1.1  tsutsui $extrasub
   1418  1.1  tsutsui s%@CFLAGS@%$CFLAGS%g
   1419  1.1  tsutsui s%@CPPFLAGS@%$CPPFLAGS%g
   1420  1.1  tsutsui s%@CXXFLAGS@%$CXXFLAGS%g
   1421  1.1  tsutsui s%@DEFS@%$DEFS%g
   1422  1.1  tsutsui s%@LDFLAGS@%$LDFLAGS%g
   1423  1.1  tsutsui s%@LIBS@%$LIBS%g
   1424  1.1  tsutsui s%@exec_prefix@%$exec_prefix%g
   1425  1.1  tsutsui s%@prefix@%$prefix%g
   1426  1.1  tsutsui s%@program_transform_name@%$program_transform_name%g
   1427  1.1  tsutsui s%@bindir@%$bindir%g
   1428  1.1  tsutsui s%@sbindir@%$sbindir%g
   1429  1.1  tsutsui s%@libexecdir@%$libexecdir%g
   1430  1.1  tsutsui s%@datadir@%$datadir%g
   1431  1.1  tsutsui s%@sysconfdir@%$sysconfdir%g
   1432  1.1  tsutsui s%@sharedstatedir@%$sharedstatedir%g
   1433  1.1  tsutsui s%@localstatedir@%$localstatedir%g
   1434  1.1  tsutsui s%@libdir@%$libdir%g
   1435  1.1  tsutsui s%@includedir@%$includedir%g
   1436  1.1  tsutsui s%@oldincludedir@%$oldincludedir%g
   1437  1.1  tsutsui s%@infodir@%$infodir%g
   1438  1.1  tsutsui s%@mandir@%$mandir%g
   1439  1.1  tsutsui s%@CC@%$CC%g
   1440  1.1  tsutsui s%@CPP@%$CPP%g
   1441  1.1  tsutsui s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
   1442  1.1  tsutsui s%@INSTALL_DATA@%$INSTALL_DATA%g
   1443  1.1  tsutsui s%@RANLIB@%$RANLIB%g
   1444  1.1  tsutsui 
   1445  1.1  tsutsui CEOF
   1446  1.1  tsutsui EOF
   1447  1.1  tsutsui 
   1448  1.1  tsutsui cat >> $CONFIG_STATUS <<\EOF
   1449  1.1  tsutsui 
   1450  1.1  tsutsui # Split the substitutions into bite-sized pieces for seds with
   1451  1.1  tsutsui # small command number limits, like on Digital OSF/1 and HP-UX.
   1452  1.1  tsutsui ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
   1453  1.1  tsutsui ac_file=1 # Number of current file.
   1454  1.1  tsutsui ac_beg=1 # First line for current file.
   1455  1.1  tsutsui ac_end=$ac_max_sed_cmds # Line after last line for current file.
   1456  1.1  tsutsui ac_more_lines=:
   1457  1.1  tsutsui ac_sed_cmds=""
   1458  1.1  tsutsui while $ac_more_lines; do
   1459  1.1  tsutsui   if test $ac_beg -gt 1; then
   1460  1.1  tsutsui     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
   1461  1.1  tsutsui   else
   1462  1.1  tsutsui     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
   1463  1.1  tsutsui   fi
   1464  1.1  tsutsui   if test ! -s conftest.s$ac_file; then
   1465  1.1  tsutsui     ac_more_lines=false
   1466  1.1  tsutsui     rm -f conftest.s$ac_file
   1467  1.1  tsutsui   else
   1468  1.1  tsutsui     if test -z "$ac_sed_cmds"; then
   1469  1.1  tsutsui       ac_sed_cmds="sed -f conftest.s$ac_file"
   1470  1.1  tsutsui     else
   1471  1.1  tsutsui       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
   1472  1.1  tsutsui     fi
   1473  1.1  tsutsui     ac_file=`expr $ac_file + 1`
   1474  1.1  tsutsui     ac_beg=$ac_end
   1475  1.1  tsutsui     ac_end=`expr $ac_end + $ac_max_sed_cmds`
   1476  1.1  tsutsui   fi
   1477  1.1  tsutsui done
   1478  1.1  tsutsui if test -z "$ac_sed_cmds"; then
   1479  1.1  tsutsui   ac_sed_cmds=cat
   1480  1.1  tsutsui fi
   1481  1.1  tsutsui EOF
   1482  1.1  tsutsui 
   1483  1.1  tsutsui cat >> $CONFIG_STATUS <<EOF
   1484  1.1  tsutsui 
   1485  1.1  tsutsui CONFIG_FILES=\${CONFIG_FILES-"Makefile diag/Makefile"}
   1486  1.1  tsutsui EOF
   1487  1.1  tsutsui cat >> $CONFIG_STATUS <<\EOF
   1488  1.1  tsutsui for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
   1489  1.1  tsutsui   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   1490  1.1  tsutsui   case "$ac_file" in
   1491  1.1  tsutsui   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
   1492  1.1  tsutsui        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
   1493  1.1  tsutsui   *) ac_file_in="${ac_file}.in" ;;
   1494  1.1  tsutsui   esac
   1495  1.1  tsutsui 
   1496  1.1  tsutsui   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
   1497  1.1  tsutsui 
   1498  1.1  tsutsui   # Remove last slash and all that follows it.  Not all systems have dirname.
   1499  1.1  tsutsui   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
   1500  1.1  tsutsui   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   1501  1.1  tsutsui     # The file is in a subdirectory.
   1502  1.1  tsutsui     test ! -d "$ac_dir" && mkdir "$ac_dir"
   1503  1.1  tsutsui     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
   1504  1.1  tsutsui     # A "../" for each directory in $ac_dir_suffix.
   1505  1.1  tsutsui     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
   1506  1.1  tsutsui   else
   1507  1.1  tsutsui     ac_dir_suffix= ac_dots=
   1508  1.1  tsutsui   fi
   1509  1.1  tsutsui 
   1510  1.1  tsutsui   case "$ac_given_srcdir" in
   1511  1.1  tsutsui   .)  srcdir=.
   1512  1.1  tsutsui       if test -z "$ac_dots"; then top_srcdir=.
   1513  1.1  tsutsui       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
   1514  1.1  tsutsui   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
   1515  1.1  tsutsui   *) # Relative path.
   1516  1.1  tsutsui     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
   1517  1.1  tsutsui     top_srcdir="$ac_dots$ac_given_srcdir" ;;
   1518  1.1  tsutsui   esac
   1519  1.1  tsutsui 
   1520  1.1  tsutsui   case "$ac_given_INSTALL" in
   1521  1.1  tsutsui   [/$]*) INSTALL="$ac_given_INSTALL" ;;
   1522  1.1  tsutsui   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
   1523  1.1  tsutsui   esac
   1524  1.1  tsutsui 
   1525  1.1  tsutsui   echo creating "$ac_file"
   1526  1.1  tsutsui   rm -f "$ac_file"
   1527  1.1  tsutsui   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
   1528  1.1  tsutsui   case "$ac_file" in
   1529  1.1  tsutsui   *Makefile*) ac_comsub="1i\\
   1530  1.1  tsutsui # $configure_input" ;;
   1531  1.1  tsutsui   *) ac_comsub= ;;
   1532  1.1  tsutsui   esac
   1533  1.1  tsutsui 
   1534  1.1  tsutsui   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
   1535  1.1  tsutsui   sed -e "$ac_comsub
   1536  1.1  tsutsui s%@configure_input@%$configure_input%g
   1537  1.1  tsutsui s%@srcdir@%$srcdir%g
   1538  1.1  tsutsui s%@top_srcdir@%$top_srcdir%g
   1539  1.1  tsutsui s%@INSTALL@%$INSTALL%g
   1540  1.1  tsutsui " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
   1541  1.1  tsutsui fi; done
   1542  1.1  tsutsui rm -f conftest.s*
   1543  1.1  tsutsui 
   1544  1.1  tsutsui # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
   1545  1.1  tsutsui # NAME is the cpp macro being defined and VALUE is the value it is being given.
   1546  1.1  tsutsui #
   1547  1.1  tsutsui # ac_d sets the value in "#define NAME VALUE" lines.
   1548  1.1  tsutsui ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
   1549  1.1  tsutsui ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
   1550  1.1  tsutsui ac_dC='\3'
   1551  1.1  tsutsui ac_dD='%g'
   1552  1.1  tsutsui # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
   1553  1.1  tsutsui ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   1554  1.1  tsutsui ac_uB='\([ 	]\)%\1#\2define\3'
   1555  1.1  tsutsui ac_uC=' '
   1556  1.1  tsutsui ac_uD='\4%g'
   1557  1.1  tsutsui # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
   1558  1.1  tsutsui ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
   1559  1.1  tsutsui ac_eB='$%\1#\2define\3'
   1560  1.1  tsutsui ac_eC=' '
   1561  1.1  tsutsui ac_eD='%g'
   1562  1.1  tsutsui 
   1563  1.1  tsutsui if test "${CONFIG_HEADERS+set}" != set; then
   1564  1.1  tsutsui EOF
   1565  1.1  tsutsui cat >> $CONFIG_STATUS <<EOF
   1566  1.1  tsutsui   CONFIG_HEADERS="config.h"
   1567  1.1  tsutsui EOF
   1568  1.1  tsutsui cat >> $CONFIG_STATUS <<\EOF
   1569  1.1  tsutsui fi
   1570  1.1  tsutsui for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
   1571  1.1  tsutsui   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
   1572  1.1  tsutsui   case "$ac_file" in
   1573  1.1  tsutsui   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
   1574  1.1  tsutsui        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
   1575  1.1  tsutsui   *) ac_file_in="${ac_file}.in" ;;
   1576  1.1  tsutsui   esac
   1577  1.1  tsutsui 
   1578  1.1  tsutsui   echo creating $ac_file
   1579  1.1  tsutsui 
   1580  1.1  tsutsui   rm -f conftest.frag conftest.in conftest.out
   1581  1.1  tsutsui   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
   1582  1.1  tsutsui   cat $ac_file_inputs > conftest.in
   1583  1.1  tsutsui 
   1584  1.1  tsutsui EOF
   1585  1.1  tsutsui 
   1586  1.1  tsutsui # Transform confdefs.h into a sed script conftest.vals that substitutes
   1587  1.1  tsutsui # the proper values into config.h.in to produce config.h.  And first:
   1588  1.1  tsutsui # Protect against being on the right side of a sed subst in config.status.
   1589  1.1  tsutsui # Protect against being in an unquoted here document in config.status.
   1590  1.1  tsutsui rm -f conftest.vals
   1591  1.1  tsutsui cat > conftest.hdr <<\EOF
   1592  1.1  tsutsui s/[\\&%]/\\&/g
   1593  1.1  tsutsui s%[\\$`]%\\&%g
   1594  1.1  tsutsui s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
   1595  1.1  tsutsui s%ac_d%ac_u%gp
   1596  1.1  tsutsui s%ac_u%ac_e%gp
   1597  1.1  tsutsui EOF
   1598  1.1  tsutsui sed -n -f conftest.hdr confdefs.h > conftest.vals
   1599  1.1  tsutsui rm -f conftest.hdr
   1600  1.1  tsutsui 
   1601  1.1  tsutsui # This sed command replaces #undef with comments.  This is necessary, for
   1602  1.1  tsutsui # example, in the case of _POSIX_SOURCE, which is predefined and required
   1603  1.1  tsutsui # on some systems where configure will not decide to define it.
   1604  1.1  tsutsui cat >> conftest.vals <<\EOF
   1605  1.1  tsutsui s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
   1606  1.1  tsutsui EOF
   1607  1.1  tsutsui 
   1608  1.1  tsutsui # Break up conftest.vals because some shells have a limit on
   1609  1.1  tsutsui # the size of here documents, and old seds have small limits too.
   1610  1.1  tsutsui 
   1611  1.1  tsutsui rm -f conftest.tail
   1612  1.1  tsutsui while :
   1613  1.1  tsutsui do
   1614  1.1  tsutsui   ac_lines=`grep -c . conftest.vals`
   1615  1.1  tsutsui   # grep -c gives empty output for an empty file on some AIX systems.
   1616  1.1  tsutsui   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
   1617  1.1  tsutsui   # Write a limited-size here document to conftest.frag.
   1618  1.1  tsutsui   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
   1619  1.1  tsutsui   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
   1620  1.1  tsutsui   echo 'CEOF
   1621  1.1  tsutsui   sed -f conftest.frag conftest.in > conftest.out
   1622  1.1  tsutsui   rm -f conftest.in
   1623  1.1  tsutsui   mv conftest.out conftest.in
   1624  1.1  tsutsui ' >> $CONFIG_STATUS
   1625  1.1  tsutsui   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
   1626  1.1  tsutsui   rm -f conftest.vals
   1627  1.1  tsutsui   mv conftest.tail conftest.vals
   1628  1.1  tsutsui done
   1629  1.1  tsutsui rm -f conftest.vals
   1630  1.1  tsutsui 
   1631  1.1  tsutsui cat >> $CONFIG_STATUS <<\EOF
   1632  1.1  tsutsui   rm -f conftest.frag conftest.h
   1633  1.1  tsutsui   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
   1634  1.1  tsutsui   cat conftest.in >> conftest.h
   1635  1.1  tsutsui   rm -f conftest.in
   1636  1.1  tsutsui   if cmp -s $ac_file conftest.h 2>/dev/null; then
   1637  1.1  tsutsui     echo "$ac_file is unchanged"
   1638  1.1  tsutsui     rm -f conftest.h
   1639  1.1  tsutsui   else
   1640  1.1  tsutsui     # Remove last slash and all that follows it.  Not all systems have dirname.
   1641  1.1  tsutsui       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
   1642  1.1  tsutsui       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
   1643  1.1  tsutsui       # The file is in a subdirectory.
   1644  1.1  tsutsui       test ! -d "$ac_dir" && mkdir "$ac_dir"
   1645  1.1  tsutsui     fi
   1646  1.1  tsutsui     rm -f $ac_file
   1647  1.1  tsutsui     mv conftest.h $ac_file
   1648  1.1  tsutsui   fi
   1649  1.1  tsutsui fi; done
   1650  1.1  tsutsui 
   1651  1.1  tsutsui EOF
   1652  1.1  tsutsui cat >> $CONFIG_STATUS <<EOF
   1653  1.1  tsutsui 
   1654  1.1  tsutsui EOF
   1655  1.1  tsutsui cat >> $CONFIG_STATUS <<\EOF
   1656  1.1  tsutsui 
   1657  1.1  tsutsui exit 0
   1658  1.1  tsutsui EOF
   1659  1.1  tsutsui chmod +x $CONFIG_STATUS
   1660  1.1  tsutsui rm -fr confdefs* $ac_clean_files
   1661  1.1  tsutsui test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
   1662  1.1  tsutsui 
   1663