(file) Return to configure CVS log (file) (dir) Up to [RizwankCVS] / testProject / source / src

   1 rizwank 1.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-cc(=CC)	  use system's native compiler (or compiler CC)"
  16             ac_help="$ac_help
  17               --enable-debug	  enable debugging"
  18             ac_help="$ac_help
  19               --with-media(=MEDIA)	  use output media Letter (MEDIA), default is A4"
  20             ac_help="$ac_help
  21               --with-spooler=SPOOLER  set the printer spooler command"
  22 rizwank 1.1 ac_help="$ac_help
  23               --with-queue-param=PARAM  specify the printer spooler queue parameter"
  24             ac_help="$ac_help
  25               --with-ps-level=LEVEL   set the PostScript language level to LEVEL"
  26             ac_help="$ac_help
  27               --disable-nls           do not use Native Language Support"
  28             ac_help="$ac_help
  29               --with-included-gettext use the GNU gettext library included here"
  30             ac_help="$ac_help
  31               --with-catgets          use catgets functions if available"
  32             
  33             # Initialize some variables set by options.
  34             # The variables have the same names as the options, with
  35             # dashes changed to underlines.
  36             build=NONE
  37             cache_file=./config.cache
  38             exec_prefix=NONE
  39             host=NONE
  40             no_create=
  41             nonopt=NONE
  42             no_recursion=
  43 rizwank 1.1 prefix=NONE
  44             program_prefix=NONE
  45             program_suffix=NONE
  46             program_transform_name=s,x,x,
  47             silent=
  48             site=
  49             srcdir=
  50             target=NONE
  51             verbose=
  52             x_includes=NONE
  53             x_libraries=NONE
  54             bindir='${exec_prefix}/bin'
  55             sbindir='${exec_prefix}/sbin'
  56             libexecdir='${exec_prefix}/libexec'
  57             datadir='${prefix}/share'
  58             sysconfdir='${prefix}/etc'
  59             sharedstatedir='${prefix}/com'
  60             localstatedir='${prefix}/var'
  61             libdir='${exec_prefix}/lib'
  62             includedir='${prefix}/include'
  63             oldincludedir='/usr/include'
  64 rizwank 1.1 infodir='${prefix}/info'
  65             mandir='${prefix}/man'
  66             
  67             # Initialize some other variables.
  68             subdirs=
  69             MFLAGS= MAKEFLAGS=
  70             SHELL=${CONFIG_SHELL-/bin/sh}
  71             # Maximum number of lines to put in a shell here document.
  72             ac_max_here_lines=12
  73             
  74             ac_prev=
  75             for ac_option
  76             do
  77             
  78               # If the previous option needs an argument, assign it.
  79               if test -n "$ac_prev"; then
  80                 eval "$ac_prev=\$ac_option"
  81                 ac_prev=
  82                 continue
  83               fi
  84             
  85 rizwank 1.1   case "$ac_option" in
  86               -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  87               *) ac_optarg= ;;
  88               esac
  89             
  90               # Accept the important Cygnus configure options, so we can diagnose typos.
  91             
  92               case "$ac_option" in
  93             
  94               -bindir | --bindir | --bindi | --bind | --bin | --bi)
  95                 ac_prev=bindir ;;
  96               -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  97                 bindir="$ac_optarg" ;;
  98             
  99               -build | --build | --buil | --bui | --bu)
 100                 ac_prev=build ;;
 101               -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 102                 build="$ac_optarg" ;;
 103             
 104               -cache-file | --cache-file | --cache-fil | --cache-fi \
 105               | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 106 rizwank 1.1     ac_prev=cache_file ;;
 107               -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 108               | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 109                 cache_file="$ac_optarg" ;;
 110             
 111               -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 112                 ac_prev=datadir ;;
 113               -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 114               | --da=*)
 115                 datadir="$ac_optarg" ;;
 116             
 117               -disable-* | --disable-*)
 118                 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 119                 # Reject names that are not valid shell variable names.
 120                 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 121                   { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 122                 fi
 123                 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 124                 eval "enable_${ac_feature}=no" ;;
 125             
 126               -enable-* | --enable-*)
 127 rizwank 1.1     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 128                 # Reject names that are not valid shell variable names.
 129                 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 130                   { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 131                 fi
 132                 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 133                 case "$ac_option" in
 134                   *=*) ;;
 135                   *) ac_optarg=yes ;;
 136                 esac
 137                 eval "enable_${ac_feature}='$ac_optarg'" ;;
 138             
 139               -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 140               | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 141               | --exec | --exe | --ex)
 142                 ac_prev=exec_prefix ;;
 143               -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 144               | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 145               | --exec=* | --exe=* | --ex=*)
 146                 exec_prefix="$ac_optarg" ;;
 147             
 148 rizwank 1.1   -gas | --gas | --ga | --g)
 149                 # Obsolete; use --with-gas.
 150                 with_gas=yes ;;
 151             
 152               -help | --help | --hel | --he)
 153                 # Omit some internal or obsolete options to make the list less imposing.
 154                 # This message is too long to be a string in the A/UX 3.1 sh.
 155                 cat << EOF
 156             Usage: configure [options] [host]
 157             Options: [defaults in brackets after descriptions]
 158             Configuration:
 159               --cache-file=FILE       cache test results in FILE
 160               --help                  print this message
 161               --no-create             do not create output files
 162               --quiet, --silent       do not print \`checking...' messages
 163               --version               print the version of autoconf that created configure
 164             Directory and file names:
 165               --prefix=PREFIX         install architecture-independent files in PREFIX
 166                                       [$ac_default_prefix]
 167               --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 168                                       [same as prefix]
 169 rizwank 1.1   --bindir=DIR            user executables in DIR [EPREFIX/bin]
 170               --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 171               --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 172               --datadir=DIR           read-only architecture-independent data in DIR
 173                                       [PREFIX/share]
 174               --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 175               --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 176                                       [PREFIX/com]
 177               --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 178               --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 179               --includedir=DIR        C header files in DIR [PREFIX/include]
 180               --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 181               --infodir=DIR           info documentation in DIR [PREFIX/info]
 182               --mandir=DIR            man documentation in DIR [PREFIX/man]
 183               --srcdir=DIR            find the sources in DIR [configure dir or ..]
 184               --program-prefix=PREFIX prepend PREFIX to installed program names
 185               --program-suffix=SUFFIX append SUFFIX to installed program names
 186               --program-transform-name=PROGRAM
 187                                       run sed PROGRAM on installed program names
 188             EOF
 189                 cat << EOF
 190 rizwank 1.1 Host type:
 191               --build=BUILD           configure for building on BUILD [BUILD=HOST]
 192               --host=HOST             configure for HOST [guessed]
 193               --target=TARGET         configure for TARGET [TARGET=HOST]
 194             Features and packages:
 195               --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 196               --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 197               --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 198               --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 199               --x-includes=DIR        X include files are in DIR
 200               --x-libraries=DIR       X library files are in DIR
 201             EOF
 202                 if test -n "$ac_help"; then
 203                   echo "--enable and --with options recognized:$ac_help"
 204                 fi
 205                 exit 0 ;;
 206             
 207               -host | --host | --hos | --ho)
 208                 ac_prev=host ;;
 209               -host=* | --host=* | --hos=* | --ho=*)
 210                 host="$ac_optarg" ;;
 211 rizwank 1.1 
 212               -includedir | --includedir | --includedi | --included | --include \
 213               | --includ | --inclu | --incl | --inc)
 214                 ac_prev=includedir ;;
 215               -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 216               | --includ=* | --inclu=* | --incl=* | --inc=*)
 217                 includedir="$ac_optarg" ;;
 218             
 219               -infodir | --infodir | --infodi | --infod | --info | --inf)
 220                 ac_prev=infodir ;;
 221               -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 222                 infodir="$ac_optarg" ;;
 223             
 224               -libdir | --libdir | --libdi | --libd)
 225                 ac_prev=libdir ;;
 226               -libdir=* | --libdir=* | --libdi=* | --libd=*)
 227                 libdir="$ac_optarg" ;;
 228             
 229               -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 230               | --libexe | --libex | --libe)
 231                 ac_prev=libexecdir ;;
 232 rizwank 1.1   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 233               | --libexe=* | --libex=* | --libe=*)
 234                 libexecdir="$ac_optarg" ;;
 235             
 236               -localstatedir | --localstatedir | --localstatedi | --localstated \
 237               | --localstate | --localstat | --localsta | --localst \
 238               | --locals | --local | --loca | --loc | --lo)
 239                 ac_prev=localstatedir ;;
 240               -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 241               | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 242               | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 243                 localstatedir="$ac_optarg" ;;
 244             
 245               -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 246                 ac_prev=mandir ;;
 247               -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 248                 mandir="$ac_optarg" ;;
 249             
 250               -nfp | --nfp | --nf)
 251                 # Obsolete; use --without-fp.
 252                 with_fp=no ;;
 253 rizwank 1.1 
 254               -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 255               | --no-cr | --no-c)
 256                 no_create=yes ;;
 257             
 258               -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 259               | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 260                 no_recursion=yes ;;
 261             
 262               -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 263               | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 264               | --oldin | --oldi | --old | --ol | --o)
 265                 ac_prev=oldincludedir ;;
 266               -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 267               | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 268               | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 269                 oldincludedir="$ac_optarg" ;;
 270             
 271               -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 272                 ac_prev=prefix ;;
 273               -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 274 rizwank 1.1     prefix="$ac_optarg" ;;
 275             
 276               -program-prefix | --program-prefix | --program-prefi | --program-pref \
 277               | --program-pre | --program-pr | --program-p)
 278                 ac_prev=program_prefix ;;
 279               -program-prefix=* | --program-prefix=* | --program-prefi=* \
 280               | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 281                 program_prefix="$ac_optarg" ;;
 282             
 283               -program-suffix | --program-suffix | --program-suffi | --program-suff \
 284               | --program-suf | --program-su | --program-s)
 285                 ac_prev=program_suffix ;;
 286               -program-suffix=* | --program-suffix=* | --program-suffi=* \
 287               | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 288                 program_suffix="$ac_optarg" ;;
 289             
 290               -program-transform-name | --program-transform-name \
 291               | --program-transform-nam | --program-transform-na \
 292               | --program-transform-n | --program-transform- \
 293               | --program-transform | --program-transfor \
 294               | --program-transfo | --program-transf \
 295 rizwank 1.1   | --program-trans | --program-tran \
 296               | --progr-tra | --program-tr | --program-t)
 297                 ac_prev=program_transform_name ;;
 298               -program-transform-name=* | --program-transform-name=* \
 299               | --program-transform-nam=* | --program-transform-na=* \
 300               | --program-transform-n=* | --program-transform-=* \
 301               | --program-transform=* | --program-transfor=* \
 302               | --program-transfo=* | --program-transf=* \
 303               | --program-trans=* | --program-tran=* \
 304               | --progr-tra=* | --program-tr=* | --program-t=*)
 305                 program_transform_name="$ac_optarg" ;;
 306             
 307               -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 308               | -silent | --silent | --silen | --sile | --sil)
 309                 silent=yes ;;
 310             
 311               -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 312                 ac_prev=sbindir ;;
 313               -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 314               | --sbi=* | --sb=*)
 315                 sbindir="$ac_optarg" ;;
 316 rizwank 1.1 
 317               -sharedstatedir | --sharedstatedir | --sharedstatedi \
 318               | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 319               | --sharedst | --shareds | --shared | --share | --shar \
 320               | --sha | --sh)
 321                 ac_prev=sharedstatedir ;;
 322               -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 323               | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 324               | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 325               | --sha=* | --sh=*)
 326                 sharedstatedir="$ac_optarg" ;;
 327             
 328               -site | --site | --sit)
 329                 ac_prev=site ;;
 330               -site=* | --site=* | --sit=*)
 331                 site="$ac_optarg" ;;
 332             
 333               -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 334                 ac_prev=srcdir ;;
 335               -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 336                 srcdir="$ac_optarg" ;;
 337 rizwank 1.1 
 338               -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 339               | --syscon | --sysco | --sysc | --sys | --sy)
 340                 ac_prev=sysconfdir ;;
 341               -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 342               | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 343                 sysconfdir="$ac_optarg" ;;
 344             
 345               -target | --target | --targe | --targ | --tar | --ta | --t)
 346                 ac_prev=target ;;
 347               -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 348                 target="$ac_optarg" ;;
 349             
 350               -v | -verbose | --verbose | --verbos | --verbo | --verb)
 351                 verbose=yes ;;
 352             
 353               -version | --version | --versio | --versi | --vers)
 354                 echo "configure generated by autoconf version 2.13"
 355                 exit 0 ;;
 356             
 357               -with-* | --with-*)
 358 rizwank 1.1     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 359                 # Reject names that are not valid shell variable names.
 360                 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 361                   { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 362                 fi
 363                 ac_package=`echo $ac_package| sed 's/-/_/g'`
 364                 case "$ac_option" in
 365                   *=*) ;;
 366                   *) ac_optarg=yes ;;
 367                 esac
 368                 eval "with_${ac_package}='$ac_optarg'" ;;
 369             
 370               -without-* | --without-*)
 371                 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 372                 # Reject names that are not valid shell variable names.
 373                 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 374                   { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 375                 fi
 376                 ac_package=`echo $ac_package| sed 's/-/_/g'`
 377                 eval "with_${ac_package}=no" ;;
 378             
 379 rizwank 1.1   --x)
 380                 # Obsolete; use --with-x.
 381                 with_x=yes ;;
 382             
 383               -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 384               | --x-incl | --x-inc | --x-in | --x-i)
 385                 ac_prev=x_includes ;;
 386               -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 387               | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 388                 x_includes="$ac_optarg" ;;
 389             
 390               -x-libraries | --x-libraries | --x-librarie | --x-librari \
 391               | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 392                 ac_prev=x_libraries ;;
 393               -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 394               | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 395                 x_libraries="$ac_optarg" ;;
 396             
 397               -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 398                 ;;
 399             
 400 rizwank 1.1   *)
 401                 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 402                   echo "configure: warning: $ac_option: invalid host type" 1>&2
 403                 fi
 404                 if test "x$nonopt" != xNONE; then
 405                   { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 406                 fi
 407                 nonopt="$ac_option"
 408                 ;;
 409             
 410               esac
 411             done
 412             
 413             if test -n "$ac_prev"; then
 414               { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 415             fi
 416             
 417             trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 418             
 419             # File descriptor usage:
 420             # 0 standard input
 421 rizwank 1.1 # 1 file creation
 422             # 2 errors and warnings
 423             # 3 some systems may open it to /dev/tty
 424             # 4 used on the Kubota Titan
 425             # 6 checking for... messages and results
 426             # 5 compiler messages saved in config.log
 427             if test "$silent" = yes; then
 428               exec 6>/dev/null
 429             else
 430               exec 6>&1
 431             fi
 432             exec 5>./config.log
 433             
 434             echo "\
 435             This file contains any messages produced by compilers while
 436             running configure, to aid debugging if configure makes a mistake.
 437             " 1>&5
 438             
 439             # Strip out --no-create and --no-recursion so they do not pile up.
 440             # Also quote any args containing shell metacharacters.
 441             ac_configure_args=
 442 rizwank 1.1 for ac_arg
 443             do
 444               case "$ac_arg" in
 445               -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 446               | --no-cr | --no-c) ;;
 447               -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 448               | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 449               *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 450               ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 451               *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 452               esac
 453             done
 454             
 455             # NLS nuisances.
 456             # Only set these to C if already set.  These must not be set unconditionally
 457             # because not all systems understand e.g. LANG=C (notably SCO).
 458             # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 459             # Non-C LC_CTYPE values break the ctype check.
 460             if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 461             if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 462             if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 463 rizwank 1.1 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 464             
 465             # confdefs.h avoids OS command line length limits that DEFS can exceed.
 466             rm -rf conftest* confdefs.h
 467             # AIX cpp loses on an empty file, so make sure it contains at least a newline.
 468             echo > confdefs.h
 469             
 470             # A filename unique to this package, relative to the directory that
 471             # configure is in, which we can look for to find out if srcdir is correct.
 472             ac_unique_file=src/gsint.h
 473             
 474             # Find the source files, if location was not specified.
 475             if test -z "$srcdir"; then
 476               ac_srcdir_defaulted=yes
 477               # Try the directory containing this script, then its parent.
 478               ac_prog=$0
 479               ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 480               test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 481               srcdir=$ac_confdir
 482               if test ! -r $srcdir/$ac_unique_file; then
 483                 srcdir=..
 484 rizwank 1.1   fi
 485             else
 486               ac_srcdir_defaulted=no
 487             fi
 488             if test ! -r $srcdir/$ac_unique_file; then
 489               if test "$ac_srcdir_defaulted" = yes; then
 490                 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 491               else
 492                 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 493               fi
 494             fi
 495             srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 496             
 497             # Prefer explicitly selected file to automatically selected ones.
 498             if test -z "$CONFIG_SITE"; then
 499               if test "x$prefix" != xNONE; then
 500                 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 501               else
 502                 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 503               fi
 504             fi
 505 rizwank 1.1 for ac_site_file in $CONFIG_SITE; do
 506               if test -r "$ac_site_file"; then
 507                 echo "loading site script $ac_site_file"
 508                 . "$ac_site_file"
 509               fi
 510             done
 511             
 512             if test -r "$cache_file"; then
 513               echo "loading cache $cache_file"
 514               . $cache_file
 515             else
 516               echo "creating cache $cache_file"
 517               > $cache_file
 518             fi
 519             
 520             ac_ext=c
 521             # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 522             ac_cpp='$CPP $CPPFLAGS'
 523             ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 524             ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 525             cross_compiling=$ac_cv_prog_cc_cross
 526 rizwank 1.1 
 527             ac_exeext=
 528             ac_objext=o
 529             if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 530               # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 531               if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 532                 ac_n= ac_c='
 533             ' ac_t='	'
 534               else
 535                 ac_n=-n ac_c= ac_t=
 536               fi
 537             else
 538               ac_n= ac_c='\c' ac_t=
 539             fi
 540             
 541             
 542             ac_aux_dir=
 543             for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 544               if test -f $ac_dir/install-sh; then
 545                 ac_aux_dir=$ac_dir
 546                 ac_install_sh="$ac_aux_dir/install-sh -c"
 547 rizwank 1.1     break
 548               elif test -f $ac_dir/install.sh; then
 549                 ac_aux_dir=$ac_dir
 550                 ac_install_sh="$ac_aux_dir/install.sh -c"
 551                 break
 552               fi
 553             done
 554             if test -z "$ac_aux_dir"; then
 555               { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 556             fi
 557             ac_config_guess=$ac_aux_dir/config.guess
 558             ac_config_sub=$ac_aux_dir/config.sub
 559             ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 560             
 561             # Find a good install program.  We prefer a C program (faster),
 562             # so one script is as good as another.  But avoid the broken or
 563             # incompatible versions:
 564             # SysV /etc/install, /usr/sbin/install
 565             # SunOS /usr/etc/install
 566             # IRIX /sbin/install
 567             # AIX /bin/install
 568 rizwank 1.1 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 569             # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 570             # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 571             # ./install, which can be erroneously created by make from ./install.sh.
 572             echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 573             echo "configure:574: checking for a BSD compatible install" >&5
 574             if test -z "$INSTALL"; then
 575             if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 576               echo $ac_n "(cached) $ac_c" 1>&6
 577             else
 578                 IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
 579               for ac_dir in $PATH; do
 580                 # Account for people who put trailing slashes in PATH elements.
 581                 case "$ac_dir/" in
 582                 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 583                 *)
 584                   # OSF1 and SCO ODT 3.0 have their own names for install.
 585                   # Don't use installbsd from OSF since it installs stuff as root
 586                   # by default.
 587                   for ac_prog in ginstall scoinst install; do
 588                     if test -f $ac_dir/$ac_prog; then
 589 rizwank 1.1 	  if test $ac_prog = install &&
 590                         grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 591             	    # AIX install.  It has an incompatible calling convention.
 592             	    :
 593             	  else
 594             	    ac_cv_path_install="$ac_dir/$ac_prog -c"
 595             	    break 2
 596             	  fi
 597             	fi
 598                   done
 599                   ;;
 600                 esac
 601               done
 602               IFS="$ac_save_IFS"
 603             
 604             fi
 605               if test "${ac_cv_path_install+set}" = set; then
 606                 INSTALL="$ac_cv_path_install"
 607               else
 608                 # As a last resort, use the slow shell script.  We don't cache a
 609                 # path for INSTALL within a source directory, because that will
 610 rizwank 1.1     # break other packages using the cache if that directory is
 611                 # removed, or if the path is relative.
 612                 INSTALL="$ac_install_sh"
 613               fi
 614             fi
 615             echo "$ac_t""$INSTALL" 1>&6
 616             
 617             # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 618             # It thinks the first close brace ends the variable substitution.
 619             test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 620             
 621             test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 622             
 623             test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 624             
 625             echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 626             echo "configure:627: checking whether build environment is sane" >&5
 627             # Just in case
 628             sleep 1
 629             echo timestamp > conftestfile
 630             # Do `set' in a subshell so we don't clobber the current shell's
 631 rizwank 1.1 # arguments.  Must try -L first in case configure is actually a
 632             # symlink; some systems play weird games with the mod time of symlinks
 633             # (eg FreeBSD returns the mod time of the symlink's containing
 634             # directory).
 635             if (
 636                set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 637                if test "$*" = "X"; then
 638                   # -L didn't work.
 639                   set X `ls -t $srcdir/configure conftestfile`
 640                fi
 641                if test "$*" != "X $srcdir/configure conftestfile" \
 642                   && test "$*" != "X conftestfile $srcdir/configure"; then
 643             
 644                   # If neither matched, then we have a broken ls.  This can happen
 645                   # if, for instance, CONFIG_SHELL is bash and it inherits a
 646                   # broken ls alias from the environment.  This has actually
 647                   # happened.  Such a system could not be considered "sane".
 648                   { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 649             alias in your environment" 1>&2; exit 1; }
 650                fi
 651             
 652 rizwank 1.1    test "$2" = conftestfile
 653                )
 654             then
 655                # Ok.
 656                :
 657             else
 658                { echo "configure: error: newly created file is older than distributed files!
 659             Check your system clock" 1>&2; exit 1; }
 660             fi
 661             rm -f conftest*
 662             echo "$ac_t""yes" 1>&6
 663             if test "$program_transform_name" = s,x,x,; then
 664               program_transform_name=
 665             else
 666               # Double any \ or $.  echo might interpret backslashes.
 667               cat <<\EOF_SED > conftestsed
 668             s,\\,\\\\,g; s,\$,$$,g
 669             EOF_SED
 670               program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 671               rm -f conftestsed
 672             fi
 673 rizwank 1.1 test "$program_prefix" != NONE &&
 674               program_transform_name="s,^,${program_prefix},; $program_transform_name"
 675             # Use a double $ so make ignores it.
 676             test "$program_suffix" != NONE &&
 677               program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 678             
 679             # sed with no file args requires a program.
 680             test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 681             
 682             echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 683             echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
 684             set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 685             if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 686               echo $ac_n "(cached) $ac_c" 1>&6
 687             else
 688               cat > conftestmake <<\EOF
 689             all:
 690             	@echo 'ac_maketemp="${MAKE}"'
 691             EOF
 692             # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 693             eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 694 rizwank 1.1 if test -n "$ac_maketemp"; then
 695               eval ac_cv_prog_make_${ac_make}_set=yes
 696             else
 697               eval ac_cv_prog_make_${ac_make}_set=no
 698             fi
 699             rm -f conftestmake
 700             fi
 701             if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 702               echo "$ac_t""yes" 1>&6
 703               SET_MAKE=
 704             else
 705               echo "$ac_t""no" 1>&6
 706               SET_MAKE="MAKE=${MAKE-make}"
 707             fi
 708             
 709             
 710             PACKAGE=enscript
 711             
 712             VERSION=1.6.3
 713             
 714             if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 715 rizwank 1.1   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 716             fi
 717             cat >> confdefs.h <<EOF
 718             #define PACKAGE "$PACKAGE"
 719             EOF
 720             
 721             cat >> confdefs.h <<EOF
 722             #define VERSION "$VERSION"
 723             EOF
 724             
 725             
 726             
 727             missing_dir=`cd $ac_aux_dir && pwd`
 728             echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 729             echo "configure:730: checking for working aclocal" >&5
 730             # Run test in a subshell; some versions of sh will print an error if
 731             # an executable is not found, even if stderr is redirected.
 732             # Redirect stdin to placate older versions of autoconf.  Sigh.
 733             if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 734                ACLOCAL=aclocal
 735                echo "$ac_t""found" 1>&6
 736 rizwank 1.1 else
 737                ACLOCAL="$missing_dir/missing aclocal"
 738                echo "$ac_t""missing" 1>&6
 739             fi
 740             
 741             echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 742             echo "configure:743: checking for working autoconf" >&5
 743             # Run test in a subshell; some versions of sh will print an error if
 744             # an executable is not found, even if stderr is redirected.
 745             # Redirect stdin to placate older versions of autoconf.  Sigh.
 746             if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 747                AUTOCONF=autoconf
 748                echo "$ac_t""found" 1>&6
 749             else
 750                AUTOCONF="$missing_dir/missing autoconf"
 751                echo "$ac_t""missing" 1>&6
 752             fi
 753             
 754             echo $ac_n "checking for working automake""... $ac_c" 1>&6
 755             echo "configure:756: checking for working automake" >&5
 756             # Run test in a subshell; some versions of sh will print an error if
 757 rizwank 1.1 # an executable is not found, even if stderr is redirected.
 758             # Redirect stdin to placate older versions of autoconf.  Sigh.
 759             if (automake --version) < /dev/null > /dev/null 2>&1; then
 760                AUTOMAKE=automake
 761                echo "$ac_t""found" 1>&6
 762             else
 763                AUTOMAKE="$missing_dir/missing automake"
 764                echo "$ac_t""missing" 1>&6
 765             fi
 766             
 767             echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 768             echo "configure:769: checking for working autoheader" >&5
 769             # Run test in a subshell; some versions of sh will print an error if
 770             # an executable is not found, even if stderr is redirected.
 771             # Redirect stdin to placate older versions of autoconf.  Sigh.
 772             if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 773                AUTOHEADER=autoheader
 774                echo "$ac_t""found" 1>&6
 775             else
 776                AUTOHEADER="$missing_dir/missing autoheader"
 777                echo "$ac_t""missing" 1>&6
 778 rizwank 1.1 fi
 779             
 780             echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 781             echo "configure:782: checking for working makeinfo" >&5
 782             # Run test in a subshell; some versions of sh will print an error if
 783             # an executable is not found, even if stderr is redirected.
 784             # Redirect stdin to placate older versions of autoconf.  Sigh.
 785             if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 786                MAKEINFO=makeinfo
 787                echo "$ac_t""found" 1>&6
 788             else
 789                MAKEINFO="$missing_dir/missing makeinfo"
 790                echo "$ac_t""missing" 1>&6
 791             fi
 792             
 793             
 794             
 795             
 796             
 797             
 798             # From configure.in Revision: 1.59 
 799 rizwank 1.1 
 800             # Find a good install program.  We prefer a C program (faster),
 801             # so one script is as good as another.  But avoid the broken or
 802             # incompatible versions:
 803             # SysV /etc/install, /usr/sbin/install
 804             # SunOS /usr/etc/install
 805             # IRIX /sbin/install
 806             # AIX /bin/install
 807             # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 808             # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 809             # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 810             # ./install, which can be erroneously created by make from ./install.sh.
 811             echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 812             echo "configure:813: checking for a BSD compatible install" >&5
 813             if test -z "$INSTALL"; then
 814             if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 815               echo $ac_n "(cached) $ac_c" 1>&6
 816             else
 817                 IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
 818               for ac_dir in $PATH; do
 819                 # Account for people who put trailing slashes in PATH elements.
 820 rizwank 1.1     case "$ac_dir/" in
 821                 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 822                 *)
 823                   # OSF1 and SCO ODT 3.0 have their own names for install.
 824                   # Don't use installbsd from OSF since it installs stuff as root
 825                   # by default.
 826                   for ac_prog in ginstall scoinst install; do
 827                     if test -f $ac_dir/$ac_prog; then
 828             	  if test $ac_prog = install &&
 829                         grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 830             	    # AIX install.  It has an incompatible calling convention.
 831             	    :
 832             	  else
 833             	    ac_cv_path_install="$ac_dir/$ac_prog -c"
 834             	    break 2
 835             	  fi
 836             	fi
 837                   done
 838                   ;;
 839                 esac
 840               done
 841 rizwank 1.1   IFS="$ac_save_IFS"
 842             
 843             fi
 844               if test "${ac_cv_path_install+set}" = set; then
 845                 INSTALL="$ac_cv_path_install"
 846               else
 847                 # As a last resort, use the slow shell script.  We don't cache a
 848                 # path for INSTALL within a source directory, because that will
 849                 # break other packages using the cache if that directory is
 850                 # removed, or if the path is relative.
 851                 INSTALL="$ac_install_sh"
 852               fi
 853             fi
 854             echo "$ac_t""$INSTALL" 1>&6
 855             
 856             # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 857             # It thinks the first close brace ends the variable substitution.
 858             test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 859             
 860             test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 861             
 862 rizwank 1.1 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 863             
 864             
 865             # Check whether --with-cc or --without-cc was given.
 866             if test "${with_cc+set}" = set; then
 867               withval="$with_cc"
 868               if test "X$withval" != "Xno"; then
 869                 if test "X$withval" = "Xyes"; then
 870                   CC='cc'
 871                 else
 872                   CC=$withval
 873                 fi
 874                 CFLAGS="$CFLAGS -I/usr/local/include"
 875                 LDFLAGS="$LDFLAGS -L/usr/local/lib"
 876                 echo "using compiler CC=$CC"
 877               fi
 878             
 879             fi
 880             
 881             
 882             if test "X$CC" = "X"; then
 883 rizwank 1.1   # Extract the first word of "gcc", so it can be a program name with args.
 884             set dummy gcc; ac_word=$2
 885             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 886             echo "configure:887: checking for $ac_word" >&5
 887             if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 888               echo $ac_n "(cached) $ac_c" 1>&6
 889             else
 890               if test -n "$CC"; then
 891               ac_cv_prog_CC="$CC" # Let the user override the test.
 892             else
 893               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 894               ac_dummy="$PATH"
 895               for ac_dir in $ac_dummy; do
 896                 test -z "$ac_dir" && ac_dir=.
 897                 if test -f $ac_dir/$ac_word; then
 898                   ac_cv_prog_CC="gcc"
 899                   break
 900                 fi
 901               done
 902               IFS="$ac_save_ifs"
 903             fi
 904 rizwank 1.1 fi
 905             CC="$ac_cv_prog_CC"
 906             if test -n "$CC"; then
 907               echo "$ac_t""$CC" 1>&6
 908             else
 909               echo "$ac_t""no" 1>&6
 910             fi
 911             
 912             if test -z "$CC"; then
 913               # Extract the first word of "cc", so it can be a program name with args.
 914             set dummy cc; ac_word=$2
 915             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 916             echo "configure:917: checking for $ac_word" >&5
 917             if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 918               echo $ac_n "(cached) $ac_c" 1>&6
 919             else
 920               if test -n "$CC"; then
 921               ac_cv_prog_CC="$CC" # Let the user override the test.
 922             else
 923               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 924               ac_prog_rejected=no
 925 rizwank 1.1   ac_dummy="$PATH"
 926               for ac_dir in $ac_dummy; do
 927                 test -z "$ac_dir" && ac_dir=.
 928                 if test -f $ac_dir/$ac_word; then
 929                   if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 930                     ac_prog_rejected=yes
 931             	continue
 932                   fi
 933                   ac_cv_prog_CC="cc"
 934                   break
 935                 fi
 936               done
 937               IFS="$ac_save_ifs"
 938             if test $ac_prog_rejected = yes; then
 939               # We found a bogon in the path, so make sure we never use it.
 940               set dummy $ac_cv_prog_CC
 941               shift
 942               if test $# -gt 0; then
 943                 # We chose a different compiler from the bogus one.
 944                 # However, it has the same basename, so the bogon will be chosen
 945                 # first if we set CC to just the basename; use the full file name.
 946 rizwank 1.1     shift
 947                 set dummy "$ac_dir/$ac_word" "$@"
 948                 shift
 949                 ac_cv_prog_CC="$@"
 950               fi
 951             fi
 952             fi
 953             fi
 954             CC="$ac_cv_prog_CC"
 955             if test -n "$CC"; then
 956               echo "$ac_t""$CC" 1>&6
 957             else
 958               echo "$ac_t""no" 1>&6
 959             fi
 960             
 961               if test -z "$CC"; then
 962                 case "`uname -s`" in
 963                 *win32* | *WIN32*)
 964                   # Extract the first word of "cl", so it can be a program name with args.
 965             set dummy cl; ac_word=$2
 966             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 967 rizwank 1.1 echo "configure:968: checking for $ac_word" >&5
 968             if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 969               echo $ac_n "(cached) $ac_c" 1>&6
 970             else
 971               if test -n "$CC"; then
 972               ac_cv_prog_CC="$CC" # Let the user override the test.
 973             else
 974               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 975               ac_dummy="$PATH"
 976               for ac_dir in $ac_dummy; do
 977                 test -z "$ac_dir" && ac_dir=.
 978                 if test -f $ac_dir/$ac_word; then
 979                   ac_cv_prog_CC="cl"
 980                   break
 981                 fi
 982               done
 983               IFS="$ac_save_ifs"
 984             fi
 985             fi
 986             CC="$ac_cv_prog_CC"
 987             if test -n "$CC"; then
 988 rizwank 1.1   echo "$ac_t""$CC" 1>&6
 989             else
 990               echo "$ac_t""no" 1>&6
 991             fi
 992              ;;
 993                 esac
 994               fi
 995               test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 996             fi
 997             
 998             echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 999             echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1000             
1001             ac_ext=c
1002             # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003             ac_cpp='$CPP $CPPFLAGS'
1004             ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005             ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006             cross_compiling=$ac_cv_prog_cc_cross
1007             
1008             cat > conftest.$ac_ext << EOF
1009 rizwank 1.1 
1010             #line 1011 "configure"
1011             #include "confdefs.h"
1012             
1013             main(){return(0);}
1014             EOF
1015             if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1016               ac_cv_prog_cc_works=yes
1017               # If we can't run a trivial program, we are probably using a cross compiler.
1018               if (./conftest; exit) 2>/dev/null; then
1019                 ac_cv_prog_cc_cross=no
1020               else
1021                 ac_cv_prog_cc_cross=yes
1022               fi
1023             else
1024               echo "configure: failed program was:" >&5
1025               cat conftest.$ac_ext >&5
1026               ac_cv_prog_cc_works=no
1027             fi
1028             rm -fr conftest*
1029             ac_ext=c
1030 rizwank 1.1 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1031             ac_cpp='$CPP $CPPFLAGS'
1032             ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1033             ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1034             cross_compiling=$ac_cv_prog_cc_cross
1035             
1036             echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1037             if test $ac_cv_prog_cc_works = no; then
1038               { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1039             fi
1040             echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1041             echo "configure:1042: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1042             echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1043             cross_compiling=$ac_cv_prog_cc_cross
1044             
1045             echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1046             echo "configure:1047: checking whether we are using GNU C" >&5
1047             if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1048               echo $ac_n "(cached) $ac_c" 1>&6
1049             else
1050               cat > conftest.c <<EOF
1051 rizwank 1.1 #ifdef __GNUC__
1052               yes;
1053             #endif
1054             EOF
1055             if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1056               ac_cv_prog_gcc=yes
1057             else
1058               ac_cv_prog_gcc=no
1059             fi
1060             fi
1061             
1062             echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1063             
1064             if test $ac_cv_prog_gcc = yes; then
1065               GCC=yes
1066             else
1067               GCC=
1068             fi
1069             
1070             ac_test_CFLAGS="${CFLAGS+set}"
1071             ac_save_CFLAGS="$CFLAGS"
1072 rizwank 1.1 CFLAGS=
1073             echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1074             echo "configure:1075: checking whether ${CC-cc} accepts -g" >&5
1075             if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1076               echo $ac_n "(cached) $ac_c" 1>&6
1077             else
1078               echo 'void f(){}' > conftest.c
1079             if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1080               ac_cv_prog_cc_g=yes
1081             else
1082               ac_cv_prog_cc_g=no
1083             fi
1084             rm -f conftest*
1085             
1086             fi
1087             
1088             echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1089             if test "$ac_test_CFLAGS" = set; then
1090               CFLAGS="$ac_save_CFLAGS"
1091             elif test $ac_cv_prog_cc_g = yes; then
1092               if test "$GCC" = yes; then
1093 rizwank 1.1     CFLAGS="-g -O2"
1094               else
1095                 CFLAGS="-g"
1096               fi
1097             else
1098               if test "$GCC" = yes; then
1099                 CFLAGS="-O2"
1100               else
1101                 CFLAGS=
1102               fi
1103             fi
1104             
1105             fi
1106             
1107             echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1108             echo "configure:1109: checking for POSIXized ISC" >&5
1109             if test -d /etc/conf/kconfig.d &&
1110               grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1111             then
1112               echo "$ac_t""yes" 1>&6
1113               ISC=yes # If later tests want to check for ISC.
1114 rizwank 1.1   cat >> confdefs.h <<\EOF
1115             #define _POSIX_SOURCE 1
1116             EOF
1117             
1118               if test "$GCC" = yes; then
1119                 CC="$CC -posix"
1120               else
1121                 CC="$CC -Xp"
1122               fi
1123             else
1124               echo "$ac_t""no" 1>&6
1125               ISC=
1126             fi
1127             
1128             
1129             
1130             
1131             echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1132             echo "configure:1133: checking for ${CC-cc} option to accept ANSI C" >&5
1133             if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1134               echo $ac_n "(cached) $ac_c" 1>&6
1135 rizwank 1.1 else
1136               am_cv_prog_cc_stdc=no
1137             ac_save_CC="$CC"
1138             # Don't try gcc -ansi; that turns off useful extensions and
1139             # breaks some systems' header files.
1140             # AIX			-qlanglvl=ansi
1141             # Ultrix and OSF/1	-std1
1142             # HP-UX			-Aa -D_HPUX_SOURCE
1143             # SVR4			-Xc -D__EXTENSIONS__
1144             for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1145             do
1146               CC="$ac_save_CC $ac_arg"
1147               cat > conftest.$ac_ext <<EOF
1148             #line 1149 "configure"
1149             #include "confdefs.h"
1150             #include <stdarg.h>
1151             #include <stdio.h>
1152             #include <sys/types.h>
1153             #include <sys/stat.h>
1154             /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1155             struct buf { int x; };
1156 rizwank 1.1 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1157             static char *e (p, i)
1158                  char **p;
1159                  int i;
1160             {
1161               return p[i];
1162             }
1163             static char *f (char * (*g) (char **, int), char **p, ...)
1164             {
1165               char *s;
1166               va_list v;
1167               va_start (v,p);
1168               s = g (p, va_arg (v,int));
1169               va_end (v);
1170               return s;
1171             }
1172             int test (int i, double x);
1173             struct s1 {int (*f) (int a);};
1174             struct s2 {int (*f) (double a);};
1175             int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1176             int argc;
1177 rizwank 1.1 char **argv;
1178             
1179             int main() {
1180             
1181             return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1182             
1183             ; return 0; }
1184             EOF
1185             if { (eval echo configure:1186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1186               rm -rf conftest*
1187               am_cv_prog_cc_stdc="$ac_arg"; break
1188             else
1189               echo "configure: failed program was:" >&5
1190               cat conftest.$ac_ext >&5
1191             fi
1192             rm -f conftest*
1193             done
1194             CC="$ac_save_CC"
1195             
1196             fi
1197             
1198 rizwank 1.1 if test -z "$am_cv_prog_cc_stdc"; then
1199               echo "$ac_t""none needed" 1>&6
1200             else
1201               echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1202             fi
1203             case "x$am_cv_prog_cc_stdc" in
1204               x|xno) ;;
1205               *) CC="$CC $am_cv_prog_cc_stdc" ;;
1206             esac
1207             
1208             echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1209             echo "configure:1210: checking how to run the C preprocessor" >&5
1210             # On Suns, sometimes $CPP names a directory.
1211             if test -n "$CPP" && test -d "$CPP"; then
1212               CPP=
1213             fi
1214             if test -z "$CPP"; then
1215             if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1216               echo $ac_n "(cached) $ac_c" 1>&6
1217             else
1218                 # This must be in double quotes, not single quotes, because CPP may get
1219 rizwank 1.1   # substituted into the Makefile and "${CC-cc}" will confuse make.
1220               CPP="${CC-cc} -E"
1221               # On the NeXT, cc -E runs the code through the compiler's parser,
1222               # not just through cpp.
1223               cat > conftest.$ac_ext <<EOF
1224             #line 1225 "configure"
1225             #include "confdefs.h"
1226             #include <assert.h>
1227             Syntax Error
1228             EOF
1229             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1230             { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1231             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1232             if test -z "$ac_err"; then
1233               :
1234             else
1235               echo "$ac_err" >&5
1236               echo "configure: failed program was:" >&5
1237               cat conftest.$ac_ext >&5
1238               rm -rf conftest*
1239               CPP="${CC-cc} -E -traditional-cpp"
1240 rizwank 1.1   cat > conftest.$ac_ext <<EOF
1241             #line 1242 "configure"
1242             #include "confdefs.h"
1243             #include <assert.h>
1244             Syntax Error
1245             EOF
1246             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1247             { (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1248             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1249             if test -z "$ac_err"; then
1250               :
1251             else
1252               echo "$ac_err" >&5
1253               echo "configure: failed program was:" >&5
1254               cat conftest.$ac_ext >&5
1255               rm -rf conftest*
1256               CPP="${CC-cc} -nologo -E"
1257               cat > conftest.$ac_ext <<EOF
1258             #line 1259 "configure"
1259             #include "confdefs.h"
1260             #include <assert.h>
1261 rizwank 1.1 Syntax Error
1262             EOF
1263             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1264             { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1265             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1266             if test -z "$ac_err"; then
1267               :
1268             else
1269               echo "$ac_err" >&5
1270               echo "configure: failed program was:" >&5
1271               cat conftest.$ac_ext >&5
1272               rm -rf conftest*
1273               CPP=/lib/cpp
1274             fi
1275             rm -f conftest*
1276             fi
1277             rm -f conftest*
1278             fi
1279             rm -f conftest*
1280               ac_cv_prog_CPP="$CPP"
1281             fi
1282 rizwank 1.1   CPP="$ac_cv_prog_CPP"
1283             else
1284               ac_cv_prog_CPP="$CPP"
1285             fi
1286             echo "$ac_t""$CPP" 1>&6
1287             
1288             
1289             
1290             echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1291             echo "configure:1292: checking for function prototypes" >&5
1292             if test "$am_cv_prog_cc_stdc" != no; then
1293               echo "$ac_t""yes" 1>&6
1294               cat >> confdefs.h <<\EOF
1295             #define PROTOTYPES 1
1296             EOF
1297             
1298               U= ANSI2KNR=
1299             else
1300               echo "$ac_t""no" 1>&6
1301               U=_ ANSI2KNR=./ansi2knr
1302               # Ensure some checks needed by ansi2knr itself.
1303 rizwank 1.1   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1304             echo "configure:1305: checking for ANSI C header files" >&5
1305             if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1306               echo $ac_n "(cached) $ac_c" 1>&6
1307             else
1308               cat > conftest.$ac_ext <<EOF
1309             #line 1310 "configure"
1310             #include "confdefs.h"
1311             #include <stdlib.h>
1312             #include <stdarg.h>
1313             #include <string.h>
1314             #include <float.h>
1315             EOF
1316             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1317             { (eval echo configure:1318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1318             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1319             if test -z "$ac_err"; then
1320               rm -rf conftest*
1321               ac_cv_header_stdc=yes
1322             else
1323               echo "$ac_err" >&5
1324 rizwank 1.1   echo "configure: failed program was:" >&5
1325               cat conftest.$ac_ext >&5
1326               rm -rf conftest*
1327               ac_cv_header_stdc=no
1328             fi
1329             rm -f conftest*
1330             
1331             if test $ac_cv_header_stdc = yes; then
1332               # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1333             cat > conftest.$ac_ext <<EOF
1334             #line 1335 "configure"
1335             #include "confdefs.h"
1336             #include <string.h>
1337             EOF
1338             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1339               egrep "memchr" >/dev/null 2>&1; then
1340               :
1341             else
1342               rm -rf conftest*
1343               ac_cv_header_stdc=no
1344             fi
1345 rizwank 1.1 rm -f conftest*
1346             
1347             fi
1348             
1349             if test $ac_cv_header_stdc = yes; then
1350               # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1351             cat > conftest.$ac_ext <<EOF
1352             #line 1353 "configure"
1353             #include "confdefs.h"
1354             #include <stdlib.h>
1355             EOF
1356             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1357               egrep "free" >/dev/null 2>&1; then
1358               :
1359             else
1360               rm -rf conftest*
1361               ac_cv_header_stdc=no
1362             fi
1363             rm -f conftest*
1364             
1365             fi
1366 rizwank 1.1 
1367             if test $ac_cv_header_stdc = yes; then
1368               # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1369             if test "$cross_compiling" = yes; then
1370               :
1371             else
1372               cat > conftest.$ac_ext <<EOF
1373             #line 1374 "configure"
1374             #include "confdefs.h"
1375             #include <ctype.h>
1376             #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1377             #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1378             #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1379             int main () { int i; for (i = 0; i < 256; i++)
1380             if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1381             exit (0); }
1382             
1383             EOF
1384             if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1385             then
1386               :
1387 rizwank 1.1 else
1388               echo "configure: failed program was:" >&5
1389               cat conftest.$ac_ext >&5
1390               rm -fr conftest*
1391               ac_cv_header_stdc=no
1392             fi
1393             rm -fr conftest*
1394             fi
1395             
1396             fi
1397             fi
1398             
1399             echo "$ac_t""$ac_cv_header_stdc" 1>&6
1400             if test $ac_cv_header_stdc = yes; then
1401               cat >> confdefs.h <<\EOF
1402             #define STDC_HEADERS 1
1403             EOF
1404             
1405             fi
1406             
1407               for ac_hdr in string.h
1408 rizwank 1.1 do
1409             ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1410             echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1411             echo "configure:1412: checking for $ac_hdr" >&5
1412             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1413               echo $ac_n "(cached) $ac_c" 1>&6
1414             else
1415               cat > conftest.$ac_ext <<EOF
1416             #line 1417 "configure"
1417             #include "confdefs.h"
1418             #include <$ac_hdr>
1419             EOF
1420             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1421             { (eval echo configure:1422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1422             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1423             if test -z "$ac_err"; then
1424               rm -rf conftest*
1425               eval "ac_cv_header_$ac_safe=yes"
1426             else
1427               echo "$ac_err" >&5
1428               echo "configure: failed program was:" >&5
1429 rizwank 1.1   cat conftest.$ac_ext >&5
1430               rm -rf conftest*
1431               eval "ac_cv_header_$ac_safe=no"
1432             fi
1433             rm -f conftest*
1434             fi
1435             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1436               echo "$ac_t""yes" 1>&6
1437                 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1438               cat >> confdefs.h <<EOF
1439             #define $ac_tr_hdr 1
1440             EOF
1441              
1442             else
1443               echo "$ac_t""no" 1>&6
1444             fi
1445             done
1446             
1447             fi
1448             
1449             
1450 rizwank 1.1 echo $ac_n "checking for working const""... $ac_c" 1>&6
1451             echo "configure:1452: checking for working const" >&5
1452             if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1453               echo $ac_n "(cached) $ac_c" 1>&6
1454             else
1455               cat > conftest.$ac_ext <<EOF
1456             #line 1457 "configure"
1457             #include "confdefs.h"
1458             
1459             int main() {
1460             
1461             /* Ultrix mips cc rejects this.  */
1462             typedef int charset[2]; const charset x;
1463             /* SunOS 4.1.1 cc rejects this.  */
1464             char const *const *ccp;
1465             char **p;
1466             /* NEC SVR4.0.2 mips cc rejects this.  */
1467             struct point {int x, y;};
1468             static struct point const zero = {0,0};
1469             /* AIX XL C 1.02.0.0 rejects this.
1470                It does not let you subtract one const X* pointer from another in an arm
1471 rizwank 1.1    of an if-expression whose if-part is not a constant expression */
1472             const char *g = "string";
1473             ccp = &g + (g ? g-g : 0);
1474             /* HPUX 7.0 cc rejects these. */
1475             ++ccp;
1476             p = (char**) ccp;
1477             ccp = (char const *const *) p;
1478             { /* SCO 3.2v4 cc rejects this.  */
1479               char *t;
1480               char const *s = 0 ? (char *) 0 : (char const *) 0;
1481             
1482               *t++ = 0;
1483             }
1484             { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1485               int x[] = {25, 17};
1486               const int *foo = &x[0];
1487               ++foo;
1488             }
1489             { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1490               typedef const int *iptr;
1491               iptr p = 0;
1492 rizwank 1.1   ++p;
1493             }
1494             { /* AIX XL C 1.02.0.0 rejects this saying
1495                  "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1496               struct s { int j; const int *ap[3]; };
1497               struct s *b; b->j = 5;
1498             }
1499             { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1500               const int foo = 10;
1501             }
1502             
1503             ; return 0; }
1504             EOF
1505             if { (eval echo configure:1506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1506               rm -rf conftest*
1507               ac_cv_c_const=yes
1508             else
1509               echo "configure: failed program was:" >&5
1510               cat conftest.$ac_ext >&5
1511               rm -rf conftest*
1512               ac_cv_c_const=no
1513 rizwank 1.1 fi
1514             rm -f conftest*
1515             fi
1516             
1517             echo "$ac_t""$ac_cv_c_const" 1>&6
1518             if test $ac_cv_c_const = no; then
1519               cat >> confdefs.h <<\EOF
1520             #define const 
1521             EOF
1522             
1523             fi
1524             
1525             # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1526             # for constant arguments.  Useless!
1527             echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1528             echo "configure:1529: checking for working alloca.h" >&5
1529             if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1530               echo $ac_n "(cached) $ac_c" 1>&6
1531             else
1532               cat > conftest.$ac_ext <<EOF
1533             #line 1534 "configure"
1534 rizwank 1.1 #include "confdefs.h"
1535             #include <alloca.h>
1536             int main() {
1537             char *p = alloca(2 * sizeof(int));
1538             ; return 0; }
1539             EOF
1540             if { (eval echo configure:1541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1541               rm -rf conftest*
1542               ac_cv_header_alloca_h=yes
1543             else
1544               echo "configure: failed program was:" >&5
1545               cat conftest.$ac_ext >&5
1546               rm -rf conftest*
1547               ac_cv_header_alloca_h=no
1548             fi
1549             rm -f conftest*
1550             fi
1551             
1552             echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1553             if test $ac_cv_header_alloca_h = yes; then
1554               cat >> confdefs.h <<\EOF
1555 rizwank 1.1 #define HAVE_ALLOCA_H 1
1556             EOF
1557             
1558             fi
1559             
1560             echo $ac_n "checking for alloca""... $ac_c" 1>&6
1561             echo "configure:1562: checking for alloca" >&5
1562             if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1563               echo $ac_n "(cached) $ac_c" 1>&6
1564             else
1565               cat > conftest.$ac_ext <<EOF
1566             #line 1567 "configure"
1567             #include "confdefs.h"
1568             
1569             #ifdef __GNUC__
1570             # define alloca __builtin_alloca
1571             #else
1572             # ifdef _MSC_VER
1573             #  include <malloc.h>
1574             #  define alloca _alloca
1575             # else
1576 rizwank 1.1 #  if HAVE_ALLOCA_H
1577             #   include <alloca.h>
1578             #  else
1579             #   ifdef _AIX
1580              #pragma alloca
1581             #   else
1582             #    ifndef alloca /* predefined by HP cc +Olibcalls */
1583             char *alloca ();
1584             #    endif
1585             #   endif
1586             #  endif
1587             # endif
1588             #endif
1589             
1590             int main() {
1591             char *p = (char *) alloca(1);
1592             ; return 0; }
1593             EOF
1594             if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1595               rm -rf conftest*
1596               ac_cv_func_alloca_works=yes
1597 rizwank 1.1 else
1598               echo "configure: failed program was:" >&5
1599               cat conftest.$ac_ext >&5
1600               rm -rf conftest*
1601               ac_cv_func_alloca_works=no
1602             fi
1603             rm -f conftest*
1604             fi
1605             
1606             echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1607             if test $ac_cv_func_alloca_works = yes; then
1608               cat >> confdefs.h <<\EOF
1609             #define HAVE_ALLOCA 1
1610             EOF
1611             
1612             fi
1613             
1614             if test $ac_cv_func_alloca_works = no; then
1615               # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1616               # that cause trouble.  Some versions do not even contain alloca or
1617               # contain a buggy version.  If you still want to use their alloca,
1618 rizwank 1.1   # use ar to extract alloca.o from them instead of compiling alloca.c.
1619               ALLOCA=alloca.${ac_objext}
1620               cat >> confdefs.h <<\EOF
1621             #define C_ALLOCA 1
1622             EOF
1623             
1624             
1625             echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1626             echo "configure:1627: checking whether alloca needs Cray hooks" >&5
1627             if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1628               echo $ac_n "(cached) $ac_c" 1>&6
1629             else
1630               cat > conftest.$ac_ext <<EOF
1631             #line 1632 "configure"
1632             #include "confdefs.h"
1633             #if defined(CRAY) && ! defined(CRAY2)
1634             webecray
1635             #else
1636             wenotbecray
1637             #endif
1638             
1639 rizwank 1.1 EOF
1640             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1641               egrep "webecray" >/dev/null 2>&1; then
1642               rm -rf conftest*
1643               ac_cv_os_cray=yes
1644             else
1645               rm -rf conftest*
1646               ac_cv_os_cray=no
1647             fi
1648             rm -f conftest*
1649             
1650             fi
1651             
1652             echo "$ac_t""$ac_cv_os_cray" 1>&6
1653             if test $ac_cv_os_cray = yes; then
1654             for ac_func in _getb67 GETB67 getb67; do
1655               echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1656             echo "configure:1657: checking for $ac_func" >&5
1657             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1658               echo $ac_n "(cached) $ac_c" 1>&6
1659             else
1660 rizwank 1.1   cat > conftest.$ac_ext <<EOF
1661             #line 1662 "configure"
1662             #include "confdefs.h"
1663             /* System header to define __stub macros and hopefully few prototypes,
1664                 which can conflict with char $ac_func(); below.  */
1665             #include <assert.h>
1666             /* Override any gcc2 internal prototype to avoid an error.  */
1667             /* We use char because int might match the return type of a gcc2
1668                 builtin and then its argument prototype would still apply.  */
1669             char $ac_func();
1670             
1671             int main() {
1672             
1673             /* The GNU C library defines this for functions which it implements
1674                 to always fail with ENOSYS.  Some functions are actually named
1675                 something starting with __ and the normal name is an alias.  */
1676             #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1677             choke me
1678             #else
1679             $ac_func();
1680             #endif
1681 rizwank 1.1 
1682             ; return 0; }
1683             EOF
1684             if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1685               rm -rf conftest*
1686               eval "ac_cv_func_$ac_func=yes"
1687             else
1688               echo "configure: failed program was:" >&5
1689               cat conftest.$ac_ext >&5
1690               rm -rf conftest*
1691               eval "ac_cv_func_$ac_func=no"
1692             fi
1693             rm -f conftest*
1694             fi
1695             
1696             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1697               echo "$ac_t""yes" 1>&6
1698               cat >> confdefs.h <<EOF
1699             #define CRAY_STACKSEG_END $ac_func
1700             EOF
1701             
1702 rizwank 1.1   break
1703             else
1704               echo "$ac_t""no" 1>&6
1705             fi
1706             
1707             done
1708             fi
1709             
1710             echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1711             echo "configure:1712: checking stack direction for C alloca" >&5
1712             if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1713               echo $ac_n "(cached) $ac_c" 1>&6
1714             else
1715               if test "$cross_compiling" = yes; then
1716               ac_cv_c_stack_direction=0
1717             else
1718               cat > conftest.$ac_ext <<EOF
1719             #line 1720 "configure"
1720             #include "confdefs.h"
1721             find_stack_direction ()
1722             {
1723 rizwank 1.1   static char *addr = 0;
1724               auto char dummy;
1725               if (addr == 0)
1726                 {
1727                   addr = &dummy;
1728                   return find_stack_direction ();
1729                 }
1730               else
1731                 return (&dummy > addr) ? 1 : -1;
1732             }
1733             main ()
1734             {
1735               exit (find_stack_direction() < 0);
1736             }
1737             EOF
1738             if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1739             then
1740               ac_cv_c_stack_direction=1
1741             else
1742               echo "configure: failed program was:" >&5
1743               cat conftest.$ac_ext >&5
1744 rizwank 1.1   rm -fr conftest*
1745               ac_cv_c_stack_direction=-1
1746             fi
1747             rm -fr conftest*
1748             fi
1749             
1750             fi
1751             
1752             echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1753             cat >> confdefs.h <<EOF
1754             #define STACK_DIRECTION $ac_cv_c_stack_direction
1755             EOF
1756             
1757             fi
1758             
1759             
1760             echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1761             echo "configure:1762: checking for ANSI C header files" >&5
1762             if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1763               echo $ac_n "(cached) $ac_c" 1>&6
1764             else
1765 rizwank 1.1   cat > conftest.$ac_ext <<EOF
1766             #line 1767 "configure"
1767             #include "confdefs.h"
1768             #include <stdlib.h>
1769             #include <stdarg.h>
1770             #include <string.h>
1771             #include <float.h>
1772             EOF
1773             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1774             { (eval echo configure:1775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1775             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1776             if test -z "$ac_err"; then
1777               rm -rf conftest*
1778               ac_cv_header_stdc=yes
1779             else
1780               echo "$ac_err" >&5
1781               echo "configure: failed program was:" >&5
1782               cat conftest.$ac_ext >&5
1783               rm -rf conftest*
1784               ac_cv_header_stdc=no
1785             fi
1786 rizwank 1.1 rm -f conftest*
1787             
1788             if test $ac_cv_header_stdc = yes; then
1789               # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1790             cat > conftest.$ac_ext <<EOF
1791             #line 1792 "configure"
1792             #include "confdefs.h"
1793             #include <string.h>
1794             EOF
1795             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1796               egrep "memchr" >/dev/null 2>&1; then
1797               :
1798             else
1799               rm -rf conftest*
1800               ac_cv_header_stdc=no
1801             fi
1802             rm -f conftest*
1803             
1804             fi
1805             
1806             if test $ac_cv_header_stdc = yes; then
1807 rizwank 1.1   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1808             cat > conftest.$ac_ext <<EOF
1809             #line 1810 "configure"
1810             #include "confdefs.h"
1811             #include <stdlib.h>
1812             EOF
1813             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1814               egrep "free" >/dev/null 2>&1; then
1815               :
1816             else
1817               rm -rf conftest*
1818               ac_cv_header_stdc=no
1819             fi
1820             rm -f conftest*
1821             
1822             fi
1823             
1824             if test $ac_cv_header_stdc = yes; then
1825               # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1826             if test "$cross_compiling" = yes; then
1827               :
1828 rizwank 1.1 else
1829               cat > conftest.$ac_ext <<EOF
1830             #line 1831 "configure"
1831             #include "confdefs.h"
1832             #include <ctype.h>
1833             #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1834             #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1835             #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1836             int main () { int i; for (i = 0; i < 256; i++)
1837             if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1838             exit (0); }
1839             
1840             EOF
1841             if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1842             then
1843               :
1844             else
1845               echo "configure: failed program was:" >&5
1846               cat conftest.$ac_ext >&5
1847               rm -fr conftest*
1848               ac_cv_header_stdc=no
1849 rizwank 1.1 fi
1850             rm -fr conftest*
1851             fi
1852             
1853             fi
1854             fi
1855             
1856             echo "$ac_t""$ac_cv_header_stdc" 1>&6
1857             if test $ac_cv_header_stdc = yes; then
1858               cat >> confdefs.h <<\EOF
1859             #define STDC_HEADERS 1
1860             EOF
1861             
1862             fi
1863             
1864             for ac_hdr in string.h stdlib.h unistd.h stdarg.h math.h pwd.h
1865             do
1866             ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1867             echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1868             echo "configure:1869: checking for $ac_hdr" >&5
1869             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1870 rizwank 1.1   echo $ac_n "(cached) $ac_c" 1>&6
1871             else
1872               cat > conftest.$ac_ext <<EOF
1873             #line 1874 "configure"
1874             #include "confdefs.h"
1875             #include <$ac_hdr>
1876             EOF
1877             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1878             { (eval echo configure:1879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1879             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1880             if test -z "$ac_err"; then
1881               rm -rf conftest*
1882               eval "ac_cv_header_$ac_safe=yes"
1883             else
1884               echo "$ac_err" >&5
1885               echo "configure: failed program was:" >&5
1886               cat conftest.$ac_ext >&5
1887               rm -rf conftest*
1888               eval "ac_cv_header_$ac_safe=no"
1889             fi
1890             rm -f conftest*
1891 rizwank 1.1 fi
1892             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1893               echo "$ac_t""yes" 1>&6
1894                 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1895               cat >> confdefs.h <<EOF
1896             #define $ac_tr_hdr 1
1897             EOF
1898              
1899             else
1900               echo "$ac_t""no" 1>&6
1901             fi
1902             done
1903             
1904             for ac_hdr in sys/types.h sys/stat.h
1905             do
1906             ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1907             echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1908             echo "configure:1909: checking for $ac_hdr" >&5
1909             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1910               echo $ac_n "(cached) $ac_c" 1>&6
1911             else
1912 rizwank 1.1   cat > conftest.$ac_ext <<EOF
1913             #line 1914 "configure"
1914             #include "confdefs.h"
1915             #include <$ac_hdr>
1916             EOF
1917             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1918             { (eval echo configure:1919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1919             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1920             if test -z "$ac_err"; then
1921               rm -rf conftest*
1922               eval "ac_cv_header_$ac_safe=yes"
1923             else
1924               echo "$ac_err" >&5
1925               echo "configure: failed program was:" >&5
1926               cat conftest.$ac_ext >&5
1927               rm -rf conftest*
1928               eval "ac_cv_header_$ac_safe=no"
1929             fi
1930             rm -f conftest*
1931             fi
1932             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1933 rizwank 1.1   echo "$ac_t""yes" 1>&6
1934                 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1935               cat >> confdefs.h <<EOF
1936             #define $ac_tr_hdr 1
1937             EOF
1938              
1939             else
1940               echo "$ac_t""no" 1>&6
1941             fi
1942             done
1943             
1944             
1945             for ac_func in strchr
1946             do
1947             echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1948             echo "configure:1949: checking for $ac_func" >&5
1949             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1950               echo $ac_n "(cached) $ac_c" 1>&6
1951             else
1952               cat > conftest.$ac_ext <<EOF
1953             #line 1954 "configure"
1954 rizwank 1.1 #include "confdefs.h"
1955             /* System header to define __stub macros and hopefully few prototypes,
1956                 which can conflict with char $ac_func(); below.  */
1957             #include <assert.h>
1958             /* Override any gcc2 internal prototype to avoid an error.  */
1959             /* We use char because int might match the return type of a gcc2
1960                 builtin and then its argument prototype would still apply.  */
1961             char $ac_func();
1962             
1963             int main() {
1964             
1965             /* The GNU C library defines this for functions which it implements
1966                 to always fail with ENOSYS.  Some functions are actually named
1967                 something starting with __ and the normal name is an alias.  */
1968             #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1969             choke me
1970             #else
1971             $ac_func();
1972             #endif
1973             
1974             ; return 0; }
1975 rizwank 1.1 EOF
1976             if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1977               rm -rf conftest*
1978               eval "ac_cv_func_$ac_func=yes"
1979             else
1980               echo "configure: failed program was:" >&5
1981               cat conftest.$ac_ext >&5
1982               rm -rf conftest*
1983               eval "ac_cv_func_$ac_func=no"
1984             fi
1985             rm -f conftest*
1986             fi
1987             
1988             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1989               echo "$ac_t""yes" 1>&6
1990                 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1991               cat >> confdefs.h <<EOF
1992             #define $ac_tr_func 1
1993             EOF
1994              
1995             else
1996 rizwank 1.1   echo "$ac_t""no" 1>&6
1997             fi
1998             done
1999             
2000             echo $ac_n "checking for strerror""... $ac_c" 1>&6
2001             echo "configure:2002: checking for strerror" >&5
2002             if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
2003               echo $ac_n "(cached) $ac_c" 1>&6
2004             else
2005               cat > conftest.$ac_ext <<EOF
2006             #line 2007 "configure"
2007             #include "confdefs.h"
2008             /* System header to define __stub macros and hopefully few prototypes,
2009                 which can conflict with char strerror(); below.  */
2010             #include <assert.h>
2011             /* Override any gcc2 internal prototype to avoid an error.  */
2012             /* We use char because int might match the return type of a gcc2
2013                 builtin and then its argument prototype would still apply.  */
2014             char strerror();
2015             
2016             int main() {
2017 rizwank 1.1 
2018             /* The GNU C library defines this for functions which it implements
2019                 to always fail with ENOSYS.  Some functions are actually named
2020                 something starting with __ and the normal name is an alias.  */
2021             #if defined (__stub_strerror) || defined (__stub___strerror)
2022             choke me
2023             #else
2024             strerror();
2025             #endif
2026             
2027             ; return 0; }
2028             EOF
2029             if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2030               rm -rf conftest*
2031               eval "ac_cv_func_strerror=yes"
2032             else
2033               echo "configure: failed program was:" >&5
2034               cat conftest.$ac_ext >&5
2035               rm -rf conftest*
2036               eval "ac_cv_func_strerror=no"
2037             fi
2038 rizwank 1.1 rm -f conftest*
2039             fi
2040             
2041             if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
2042               echo "$ac_t""yes" 1>&6
2043               cat >> confdefs.h <<\EOF
2044             #define HAVE_STRERROR 1
2045             EOF
2046             
2047             else
2048               echo "$ac_t""no" 1>&6
2049             
2050               LIBOBJS="$LIBOBJS strerror.o"
2051             
2052             fi
2053             
2054             echo $ac_n "checking for memmove""... $ac_c" 1>&6
2055             echo "configure:2056: checking for memmove" >&5
2056             if eval "test \"`echo '$''{'ac_cv_func_memmove'+set}'`\" = set"; then
2057               echo $ac_n "(cached) $ac_c" 1>&6
2058             else
2059 rizwank 1.1   cat > conftest.$ac_ext <<EOF
2060             #line 2061 "configure"
2061             #include "confdefs.h"
2062             /* System header to define __stub macros and hopefully few prototypes,
2063                 which can conflict with char memmove(); below.  */
2064             #include <assert.h>
2065             /* Override any gcc2 internal prototype to avoid an error.  */
2066             /* We use char because int might match the return type of a gcc2
2067                 builtin and then its argument prototype would still apply.  */
2068             char memmove();
2069             
2070             int main() {
2071             
2072             /* The GNU C library defines this for functions which it implements
2073                 to always fail with ENOSYS.  Some functions are actually named
2074                 something starting with __ and the normal name is an alias.  */
2075             #if defined (__stub_memmove) || defined (__stub___memmove)
2076             choke me
2077             #else
2078             memmove();
2079             #endif
2080 rizwank 1.1 
2081             ; return 0; }
2082             EOF
2083             if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2084               rm -rf conftest*
2085               eval "ac_cv_func_memmove=yes"
2086             else
2087               echo "configure: failed program was:" >&5
2088               cat conftest.$ac_ext >&5
2089               rm -rf conftest*
2090               eval "ac_cv_func_memmove=no"
2091             fi
2092             rm -f conftest*
2093             fi
2094             
2095             if eval "test \"`echo '$ac_cv_func_'memmove`\" = yes"; then
2096               echo "$ac_t""yes" 1>&6
2097               cat >> confdefs.h <<\EOF
2098             #define HAVE_MEMMOVE 1
2099             EOF
2100             
2101 rizwank 1.1 else
2102               echo "$ac_t""no" 1>&6
2103             
2104               LIBOBJS="$LIBOBJS memmove.o"
2105             
2106             fi
2107             
2108             echo $ac_n "checking for memcpy""... $ac_c" 1>&6
2109             echo "configure:2110: checking for memcpy" >&5
2110             if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
2111               echo $ac_n "(cached) $ac_c" 1>&6
2112             else
2113               cat > conftest.$ac_ext <<EOF
2114             #line 2115 "configure"
2115             #include "confdefs.h"
2116             /* System header to define __stub macros and hopefully few prototypes,
2117                 which can conflict with char memcpy(); below.  */
2118             #include <assert.h>
2119             /* Override any gcc2 internal prototype to avoid an error.  */
2120             /* We use char because int might match the return type of a gcc2
2121                 builtin and then its argument prototype would still apply.  */
2122 rizwank 1.1 char memcpy();
2123             
2124             int main() {
2125             
2126             /* The GNU C library defines this for functions which it implements
2127                 to always fail with ENOSYS.  Some functions are actually named
2128                 something starting with __ and the normal name is an alias.  */
2129             #if defined (__stub_memcpy) || defined (__stub___memcpy)
2130             choke me
2131             #else
2132             memcpy();
2133             #endif
2134             
2135             ; return 0; }
2136             EOF
2137             if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2138               rm -rf conftest*
2139               eval "ac_cv_func_memcpy=yes"
2140             else
2141               echo "configure: failed program was:" >&5
2142               cat conftest.$ac_ext >&5
2143 rizwank 1.1   rm -rf conftest*
2144               eval "ac_cv_func_memcpy=no"
2145             fi
2146             rm -f conftest*
2147             fi
2148             
2149             if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
2150               echo "$ac_t""yes" 1>&6
2151               cat >> confdefs.h <<\EOF
2152             #define HAVE_MEMCPY 1
2153             EOF
2154             
2155             else
2156               echo "$ac_t""no" 1>&6
2157             
2158               LIBOBJS="$LIBOBJS memcpy.o"
2159             
2160             fi
2161             
2162             echo $ac_n "checking for strtoul""... $ac_c" 1>&6
2163             echo "configure:2164: checking for strtoul" >&5
2164 rizwank 1.1 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
2165               echo $ac_n "(cached) $ac_c" 1>&6
2166             else
2167               cat > conftest.$ac_ext <<EOF
2168             #line 2169 "configure"
2169             #include "confdefs.h"
2170             /* System header to define __stub macros and hopefully few prototypes,
2171                 which can conflict with char strtoul(); below.  */
2172             #include <assert.h>
2173             /* Override any gcc2 internal prototype to avoid an error.  */
2174             /* We use char because int might match the return type of a gcc2
2175                 builtin and then its argument prototype would still apply.  */
2176             char strtoul();
2177             
2178             int main() {
2179             
2180             /* The GNU C library defines this for functions which it implements
2181                 to always fail with ENOSYS.  Some functions are actually named
2182                 something starting with __ and the normal name is an alias.  */
2183             #if defined (__stub_strtoul) || defined (__stub___strtoul)
2184             choke me
2185 rizwank 1.1 #else
2186             strtoul();
2187             #endif
2188             
2189             ; return 0; }
2190             EOF
2191             if { (eval echo configure:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2192               rm -rf conftest*
2193               eval "ac_cv_func_strtoul=yes"
2194             else
2195               echo "configure: failed program was:" >&5
2196               cat conftest.$ac_ext >&5
2197               rm -rf conftest*
2198               eval "ac_cv_func_strtoul=no"
2199             fi
2200             rm -f conftest*
2201             fi
2202             
2203             if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
2204               echo "$ac_t""yes" 1>&6
2205               cat >> confdefs.h <<\EOF
2206 rizwank 1.1 #define HAVE_STRTOUL 1
2207             EOF
2208             
2209             else
2210               echo "$ac_t""no" 1>&6
2211             
2212               LIBOBJS="$LIBOBJS strtoul.o"
2213             
2214             fi
2215             
2216             
2217             echo $ac_n "checking for getcwd""... $ac_c" 1>&6
2218             echo "configure:2219: checking for getcwd" >&5
2219             if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
2220               echo $ac_n "(cached) $ac_c" 1>&6
2221             else
2222               cat > conftest.$ac_ext <<EOF
2223             #line 2224 "configure"
2224             #include "confdefs.h"
2225             /* System header to define __stub macros and hopefully few prototypes,
2226                 which can conflict with char getcwd(); below.  */
2227 rizwank 1.1 #include <assert.h>
2228             /* Override any gcc2 internal prototype to avoid an error.  */
2229             /* We use char because int might match the return type of a gcc2
2230                 builtin and then its argument prototype would still apply.  */
2231             char getcwd();
2232             
2233             int main() {
2234             
2235             /* The GNU C library defines this for functions which it implements
2236                 to always fail with ENOSYS.  Some functions are actually named
2237                 something starting with __ and the normal name is an alias.  */
2238             #if defined (__stub_getcwd) || defined (__stub___getcwd)
2239             choke me
2240             #else
2241             getcwd();
2242             #endif
2243             
2244             ; return 0; }
2245             EOF
2246             if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247               rm -rf conftest*
2248 rizwank 1.1   eval "ac_cv_func_getcwd=yes"
2249             else
2250               echo "configure: failed program was:" >&5
2251               cat conftest.$ac_ext >&5
2252               rm -rf conftest*
2253               eval "ac_cv_func_getcwd=no"
2254             fi
2255             rm -f conftest*
2256             fi
2257             
2258             if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
2259               echo "$ac_t""yes" 1>&6
2260               cat >> confdefs.h <<\EOF
2261             #define HAVE_GETCWD 1
2262             EOF
2263             
2264             else
2265               echo "$ac_t""no" 1>&6
2266             
2267               echo $ac_n "checking for getwd""... $ac_c" 1>&6
2268             echo "configure:2269: checking for getwd" >&5
2269 rizwank 1.1 if eval "test \"`echo '$''{'ac_cv_func_getwd'+set}'`\" = set"; then
2270               echo $ac_n "(cached) $ac_c" 1>&6
2271             else
2272               cat > conftest.$ac_ext <<EOF
2273             #line 2274 "configure"
2274             #include "confdefs.h"
2275             /* System header to define __stub macros and hopefully few prototypes,
2276                 which can conflict with char getwd(); below.  */
2277             #include <assert.h>
2278             /* Override any gcc2 internal prototype to avoid an error.  */
2279             /* We use char because int might match the return type of a gcc2
2280                 builtin and then its argument prototype would still apply.  */
2281             char getwd();
2282             
2283             int main() {
2284             
2285             /* The GNU C library defines this for functions which it implements
2286                 to always fail with ENOSYS.  Some functions are actually named
2287                 something starting with __ and the normal name is an alias.  */
2288             #if defined (__stub_getwd) || defined (__stub___getwd)
2289             choke me
2290 rizwank 1.1 #else
2291             getwd();
2292             #endif
2293             
2294             ; return 0; }
2295             EOF
2296             if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2297               rm -rf conftest*
2298               eval "ac_cv_func_getwd=yes"
2299             else
2300               echo "configure: failed program was:" >&5
2301               cat conftest.$ac_ext >&5
2302               rm -rf conftest*
2303               eval "ac_cv_func_getwd=no"
2304             fi
2305             rm -f conftest*
2306             fi
2307             
2308             if eval "test \"`echo '$ac_cv_func_'getwd`\" = yes"; then
2309               echo "$ac_t""yes" 1>&6
2310               cat >> confdefs.h <<\EOF
2311 rizwank 1.1 #define HAVE_GETWD 1
2312             EOF
2313             
2314             else
2315               echo "$ac_t""no" 1>&6
2316             fi
2317             
2318             
2319             fi
2320             
2321             
2322             echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2323             echo "configure:2324: checking for vprintf" >&5
2324             if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2325               echo $ac_n "(cached) $ac_c" 1>&6
2326             else
2327               cat > conftest.$ac_ext <<EOF
2328             #line 2329 "configure"
2329             #include "confdefs.h"
2330             /* System header to define __stub macros and hopefully few prototypes,
2331                 which can conflict with char vprintf(); below.  */
2332 rizwank 1.1 #include <assert.h>
2333             /* Override any gcc2 internal prototype to avoid an error.  */
2334             /* We use char because int might match the return type of a gcc2
2335                 builtin and then its argument prototype would still apply.  */
2336             char vprintf();
2337             
2338             int main() {
2339             
2340             /* The GNU C library defines this for functions which it implements
2341                 to always fail with ENOSYS.  Some functions are actually named
2342                 something starting with __ and the normal name is an alias.  */
2343             #if defined (__stub_vprintf) || defined (__stub___vprintf)
2344             choke me
2345             #else
2346             vprintf();
2347             #endif
2348             
2349             ; return 0; }
2350             EOF
2351             if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352               rm -rf conftest*
2353 rizwank 1.1   eval "ac_cv_func_vprintf=yes"
2354             else
2355               echo "configure: failed program was:" >&5
2356               cat conftest.$ac_ext >&5
2357               rm -rf conftest*
2358               eval "ac_cv_func_vprintf=no"
2359             fi
2360             rm -f conftest*
2361             fi
2362             
2363             if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2364               echo "$ac_t""yes" 1>&6
2365               cat >> confdefs.h <<\EOF
2366             #define HAVE_VPRINTF 1
2367             EOF
2368             
2369             else
2370               echo "$ac_t""no" 1>&6
2371             fi
2372             
2373             if test "$ac_cv_func_vprintf" != yes; then
2374 rizwank 1.1 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2375             echo "configure:2376: checking for _doprnt" >&5
2376             if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2377               echo $ac_n "(cached) $ac_c" 1>&6
2378             else
2379               cat > conftest.$ac_ext <<EOF
2380             #line 2381 "configure"
2381             #include "confdefs.h"
2382             /* System header to define __stub macros and hopefully few prototypes,
2383                 which can conflict with char _doprnt(); below.  */
2384             #include <assert.h>
2385             /* Override any gcc2 internal prototype to avoid an error.  */
2386             /* We use char because int might match the return type of a gcc2
2387                 builtin and then its argument prototype would still apply.  */
2388             char _doprnt();
2389             
2390             int main() {
2391             
2392             /* The GNU C library defines this for functions which it implements
2393                 to always fail with ENOSYS.  Some functions are actually named
2394                 something starting with __ and the normal name is an alias.  */
2395 rizwank 1.1 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2396             choke me
2397             #else
2398             _doprnt();
2399             #endif
2400             
2401             ; return 0; }
2402             EOF
2403             if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404               rm -rf conftest*
2405               eval "ac_cv_func__doprnt=yes"
2406             else
2407               echo "configure: failed program was:" >&5
2408               cat conftest.$ac_ext >&5
2409               rm -rf conftest*
2410               eval "ac_cv_func__doprnt=no"
2411             fi
2412             rm -f conftest*
2413             fi
2414             
2415             if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2416 rizwank 1.1   echo "$ac_t""yes" 1>&6
2417               cat >> confdefs.h <<\EOF
2418             #define HAVE_DOPRNT 1
2419             EOF
2420             
2421             else
2422               echo "$ac_t""no" 1>&6
2423             fi
2424             
2425             fi
2426             
2427             
2428             echo $ac_n "checking for main in -lsun""... $ac_c" 1>&6
2429             echo "configure:2430: checking for main in -lsun" >&5
2430             ac_lib_var=`echo sun'_'main | sed 'y%./+-%__p_%'`
2431             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2432               echo $ac_n "(cached) $ac_c" 1>&6
2433             else
2434               ac_save_LIBS="$LIBS"
2435             LIBS="-lsun  $LIBS"
2436             cat > conftest.$ac_ext <<EOF
2437 rizwank 1.1 #line 2438 "configure"
2438             #include "confdefs.h"
2439             
2440             int main() {
2441             main()
2442             ; return 0; }
2443             EOF
2444             if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2445               rm -rf conftest*
2446               eval "ac_cv_lib_$ac_lib_var=yes"
2447             else
2448               echo "configure: failed program was:" >&5
2449               cat conftest.$ac_ext >&5
2450               rm -rf conftest*
2451               eval "ac_cv_lib_$ac_lib_var=no"
2452             fi
2453             rm -f conftest*
2454             LIBS="$ac_save_LIBS"
2455             
2456             fi
2457             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2458 rizwank 1.1   echo "$ac_t""yes" 1>&6
2459                 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2460                 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2461               cat >> confdefs.h <<EOF
2462             #define $ac_tr_lib 1
2463             EOF
2464             
2465               LIBS="-lsun $LIBS"
2466             
2467             else
2468               echo "$ac_t""no" 1>&6
2469             fi
2470             
2471             
2472             echo $ac_n "checking for gethostname""... $ac_c" 1>&6
2473             echo "configure:2474: checking for gethostname" >&5
2474             if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
2475               echo $ac_n "(cached) $ac_c" 1>&6
2476             else
2477               cat > conftest.$ac_ext <<EOF
2478             #line 2479 "configure"
2479 rizwank 1.1 #include "confdefs.h"
2480             /* System header to define __stub macros and hopefully few prototypes,
2481                 which can conflict with char gethostname(); below.  */
2482             #include <assert.h>
2483             /* Override any gcc2 internal prototype to avoid an error.  */
2484             /* We use char because int might match the return type of a gcc2
2485                 builtin and then its argument prototype would still apply.  */
2486             char gethostname();
2487             
2488             int main() {
2489             
2490             /* The GNU C library defines this for functions which it implements
2491                 to always fail with ENOSYS.  Some functions are actually named
2492                 something starting with __ and the normal name is an alias.  */
2493             #if defined (__stub_gethostname) || defined (__stub___gethostname)
2494             choke me
2495             #else
2496             gethostname();
2497             #endif
2498             
2499             ; return 0; }
2500 rizwank 1.1 EOF
2501             if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2502               rm -rf conftest*
2503               eval "ac_cv_func_gethostname=yes"
2504             else
2505               echo "configure: failed program was:" >&5
2506               cat conftest.$ac_ext >&5
2507               rm -rf conftest*
2508               eval "ac_cv_func_gethostname=no"
2509             fi
2510             rm -f conftest*
2511             fi
2512             
2513             if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
2514               echo "$ac_t""yes" 1>&6
2515               :
2516             else
2517               echo "$ac_t""no" 1>&6
2518             
2519               echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
2520             echo "configure:2521: checking for gethostname in -lnsl" >&5
2521 rizwank 1.1 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
2522             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2523               echo $ac_n "(cached) $ac_c" 1>&6
2524             else
2525               ac_save_LIBS="$LIBS"
2526             LIBS="-lnsl  $LIBS"
2527             cat > conftest.$ac_ext <<EOF
2528             #line 2529 "configure"
2529             #include "confdefs.h"
2530             /* Override any gcc2 internal prototype to avoid an error.  */
2531             /* We use char because int might match the return type of a gcc2
2532                 builtin and then its argument prototype would still apply.  */
2533             char gethostname();
2534             
2535             int main() {
2536             gethostname()
2537             ; return 0; }
2538             EOF
2539             if { (eval echo configure:2540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2540               rm -rf conftest*
2541               eval "ac_cv_lib_$ac_lib_var=yes"
2542 rizwank 1.1 else
2543               echo "configure: failed program was:" >&5
2544               cat conftest.$ac_ext >&5
2545               rm -rf conftest*
2546               eval "ac_cv_lib_$ac_lib_var=no"
2547             fi
2548             rm -f conftest*
2549             LIBS="$ac_save_LIBS"
2550             
2551             fi
2552             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2553               echo "$ac_t""yes" 1>&6
2554               LIBS="$LIBS -lnsl"
2555             else
2556               echo "$ac_t""no" 1>&6
2557             
2558                 echo $ac_n "checking for gethostname in -lsocket""... $ac_c" 1>&6
2559             echo "configure:2560: checking for gethostname in -lsocket" >&5
2560             ac_lib_var=`echo socket'_'gethostname | sed 'y%./+-%__p_%'`
2561             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562               echo $ac_n "(cached) $ac_c" 1>&6
2563 rizwank 1.1 else
2564               ac_save_LIBS="$LIBS"
2565             LIBS="-lsocket  $LIBS"
2566             cat > conftest.$ac_ext <<EOF
2567             #line 2568 "configure"
2568             #include "confdefs.h"
2569             /* Override any gcc2 internal prototype to avoid an error.  */
2570             /* We use char because int might match the return type of a gcc2
2571                 builtin and then its argument prototype would still apply.  */
2572             char gethostname();
2573             
2574             int main() {
2575             gethostname()
2576             ; return 0; }
2577             EOF
2578             if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579               rm -rf conftest*
2580               eval "ac_cv_lib_$ac_lib_var=yes"
2581             else
2582               echo "configure: failed program was:" >&5
2583               cat conftest.$ac_ext >&5
2584 rizwank 1.1   rm -rf conftest*
2585               eval "ac_cv_lib_$ac_lib_var=no"
2586             fi
2587             rm -f conftest*
2588             LIBS="$ac_save_LIBS"
2589             
2590             fi
2591             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592               echo "$ac_t""yes" 1>&6
2593                 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2594                 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2595               cat >> confdefs.h <<EOF
2596             #define $ac_tr_lib 1
2597             EOF
2598             
2599               LIBS="-lsocket $LIBS"
2600             
2601             else
2602               echo "$ac_t""no" 1>&6
2603             fi
2604             
2605 rizwank 1.1   
2606             fi
2607             
2608             
2609             fi
2610             
2611             
2612             # Extract the first word of "ranlib", so it can be a program name with args.
2613             set dummy ranlib; ac_word=$2
2614             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2615             echo "configure:2616: checking for $ac_word" >&5
2616             if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2617               echo $ac_n "(cached) $ac_c" 1>&6
2618             else
2619               if test -n "$RANLIB"; then
2620               ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2621             else
2622               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2623               ac_dummy="$PATH"
2624               for ac_dir in $ac_dummy; do
2625                 test -z "$ac_dir" && ac_dir=.
2626 rizwank 1.1     if test -f $ac_dir/$ac_word; then
2627                   ac_cv_prog_RANLIB="ranlib"
2628                   break
2629                 fi
2630               done
2631               IFS="$ac_save_ifs"
2632               test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2633             fi
2634             fi
2635             RANLIB="$ac_cv_prog_RANLIB"
2636             if test -n "$RANLIB"; then
2637               echo "$ac_t""$RANLIB" 1>&6
2638             else
2639               echo "$ac_t""no" 1>&6
2640             fi
2641             
2642             for ac_prog in 'bison -y' byacc
2643             do
2644             # Extract the first word of "$ac_prog", so it can be a program name with args.
2645             set dummy $ac_prog; ac_word=$2
2646             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2647 rizwank 1.1 echo "configure:2648: checking for $ac_word" >&5
2648             if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2649               echo $ac_n "(cached) $ac_c" 1>&6
2650             else
2651               if test -n "$YACC"; then
2652               ac_cv_prog_YACC="$YACC" # Let the user override the test.
2653             else
2654               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2655               ac_dummy="$PATH"
2656               for ac_dir in $ac_dummy; do
2657                 test -z "$ac_dir" && ac_dir=.
2658                 if test -f $ac_dir/$ac_word; then
2659                   ac_cv_prog_YACC="$ac_prog"
2660                   break
2661                 fi
2662               done
2663               IFS="$ac_save_ifs"
2664             fi
2665             fi
2666             YACC="$ac_cv_prog_YACC"
2667             if test -n "$YACC"; then
2668 rizwank 1.1   echo "$ac_t""$YACC" 1>&6
2669             else
2670               echo "$ac_t""no" 1>&6
2671             fi
2672             
2673             test -n "$YACC" && break
2674             done
2675             test -n "$YACC" || YACC="yacc"
2676             
2677             missing_dir=`cd $ac_aux_dir && pwd`
2678             for ac_prog in flex lex
2679             do
2680             # Extract the first word of "$ac_prog", so it can be a program name with args.
2681             set dummy $ac_prog; ac_word=$2
2682             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2683             echo "configure:2684: checking for $ac_word" >&5
2684             if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2685               echo $ac_n "(cached) $ac_c" 1>&6
2686             else
2687               if test -n "$LEX"; then
2688               ac_cv_prog_LEX="$LEX" # Let the user override the test.
2689 rizwank 1.1 else
2690               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2691               ac_dummy="$PATH"
2692               for ac_dir in $ac_dummy; do
2693                 test -z "$ac_dir" && ac_dir=.
2694                 if test -f $ac_dir/$ac_word; then
2695                   ac_cv_prog_LEX="$ac_prog"
2696                   break
2697                 fi
2698               done
2699               IFS="$ac_save_ifs"
2700             fi
2701             fi
2702             LEX="$ac_cv_prog_LEX"
2703             if test -n "$LEX"; then
2704               echo "$ac_t""$LEX" 1>&6
2705             else
2706               echo "$ac_t""no" 1>&6
2707             fi
2708             
2709             test -n "$LEX" && break
2710 rizwank 1.1 done
2711             test -n "$LEX" || LEX=""$missing_dir/missing flex""
2712             
2713             # Extract the first word of "flex", so it can be a program name with args.
2714             set dummy flex; ac_word=$2
2715             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2716             echo "configure:2717: checking for $ac_word" >&5
2717             if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2718               echo $ac_n "(cached) $ac_c" 1>&6
2719             else
2720               if test -n "$LEX"; then
2721               ac_cv_prog_LEX="$LEX" # Let the user override the test.
2722             else
2723               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2724               ac_dummy="$PATH"
2725               for ac_dir in $ac_dummy; do
2726                 test -z "$ac_dir" && ac_dir=.
2727                 if test -f $ac_dir/$ac_word; then
2728                   ac_cv_prog_LEX="flex"
2729                   break
2730                 fi
2731 rizwank 1.1   done
2732               IFS="$ac_save_ifs"
2733               test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
2734             fi
2735             fi
2736             LEX="$ac_cv_prog_LEX"
2737             if test -n "$LEX"; then
2738               echo "$ac_t""$LEX" 1>&6
2739             else
2740               echo "$ac_t""no" 1>&6
2741             fi
2742             
2743             if test -z "$LEXLIB"
2744             then
2745               case "$LEX" in
2746               flex*) ac_lib=fl ;;
2747               *) ac_lib=l ;;
2748               esac
2749               echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2750             echo "configure:2751: checking for yywrap in -l$ac_lib" >&5
2751             ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2752 rizwank 1.1 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2753               echo $ac_n "(cached) $ac_c" 1>&6
2754             else
2755               ac_save_LIBS="$LIBS"
2756             LIBS="-l$ac_lib  $LIBS"
2757             cat > conftest.$ac_ext <<EOF
2758             #line 2759 "configure"
2759             #include "confdefs.h"
2760             /* Override any gcc2 internal prototype to avoid an error.  */
2761             /* We use char because int might match the return type of a gcc2
2762                 builtin and then its argument prototype would still apply.  */
2763             char yywrap();
2764             
2765             int main() {
2766             yywrap()
2767             ; return 0; }
2768             EOF
2769             if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2770               rm -rf conftest*
2771               eval "ac_cv_lib_$ac_lib_var=yes"
2772             else
2773 rizwank 1.1   echo "configure: failed program was:" >&5
2774               cat conftest.$ac_ext >&5
2775               rm -rf conftest*
2776               eval "ac_cv_lib_$ac_lib_var=no"
2777             fi
2778             rm -f conftest*
2779             LIBS="$ac_save_LIBS"
2780             
2781             fi
2782             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2783               echo "$ac_t""yes" 1>&6
2784               LEXLIB="-l$ac_lib"
2785             else
2786               echo "$ac_t""no" 1>&6
2787             fi
2788             
2789             fi
2790             
2791             echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2792             echo "configure:2793: checking lex output file root" >&5
2793             if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2794 rizwank 1.1   echo $ac_n "(cached) $ac_c" 1>&6
2795             else
2796               # The minimal lex program is just a single line: %%.  But some broken lexes
2797             # (Solaris, I think it was) want two %% lines, so accommodate them.
2798             echo '%%
2799             %%' | $LEX
2800             if test -f lex.yy.c; then
2801               ac_cv_prog_lex_root=lex.yy
2802             elif test -f lexyy.c; then
2803               ac_cv_prog_lex_root=lexyy
2804             else
2805               { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2806             fi
2807             fi
2808             
2809             echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2810             LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2811             
2812             echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2813             echo "configure:2814: checking whether yytext is a pointer" >&5
2814             if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2815 rizwank 1.1   echo $ac_n "(cached) $ac_c" 1>&6
2816             else
2817               # POSIX says lex can declare yytext either as a pointer or an array; the
2818             # default is implementation-dependent. Figure out which it is, since
2819             # not all implementations provide the %pointer and %array declarations.
2820             ac_cv_prog_lex_yytext_pointer=no
2821             echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2822             ac_save_LIBS="$LIBS"
2823             LIBS="$LIBS $LEXLIB"
2824             cat > conftest.$ac_ext <<EOF
2825             #line 2826 "configure"
2826             #include "confdefs.h"
2827             `cat $LEX_OUTPUT_ROOT.c`
2828             int main() {
2829             
2830             ; return 0; }
2831             EOF
2832             if { (eval echo configure:2833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2833               rm -rf conftest*
2834               ac_cv_prog_lex_yytext_pointer=yes
2835             else
2836 rizwank 1.1   echo "configure: failed program was:" >&5
2837               cat conftest.$ac_ext >&5
2838             fi
2839             rm -f conftest*
2840             LIBS="$ac_save_LIBS"
2841             rm -f "${LEX_OUTPUT_ROOT}.c"
2842             
2843             fi
2844             
2845             echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2846             if test $ac_cv_prog_lex_yytext_pointer = yes; then
2847               cat >> confdefs.h <<\EOF
2848             #define YYTEXT_POINTER 1
2849             EOF
2850             
2851             fi
2852             
2853             
2854             # Check whether --enable-debug or --disable-debug was given.
2855             if test "${enable_debug+set}" = set; then
2856               enableval="$enable_debug"
2857 rizwank 1.1   
2858               echo enabling debugging
2859               if test -n "$GCC"; then
2860                 CFLAGS="$CFLAGS -Wall"
2861               fi
2862             
2863             fi
2864             
2865             
2866             
2867             # Check whether --with-media or --without-media was given.
2868             if test "${with_media+set}" = set; then
2869               withval="$with_media"
2870               if test "X$withval" != "Xno"; then
2871                 if test "X$withval" = "Xyes"; then
2872                   ac_cv_value_media='Letter'
2873                 else
2874                   ac_cv_value_media=$withval
2875                 fi
2876               else
2877                 ac_cv_value_media=${MEDIA-A4}
2878 rizwank 1.1   fi
2879             else
2880               ac_cv_value_media=${MEDIA-A4}
2881             
2882             fi
2883             
2884             MEDIA=$ac_cv_value_media
2885             
2886             
2887             
2888             # Extract the first word of "lpr", so it can be a program name with args.
2889             set dummy lpr; ac_word=$2
2890             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2891             echo "configure:2892: checking for $ac_word" >&5
2892             if eval "test \"`echo '$''{'ac_cv_prog_SPOOLER'+set}'`\" = set"; then
2893               echo $ac_n "(cached) $ac_c" 1>&6
2894             else
2895               if test -n "$SPOOLER"; then
2896               ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
2897             else
2898               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2899 rizwank 1.1   ac_dummy="$PATH"
2900               for ac_dir in $ac_dummy; do
2901                 test -z "$ac_dir" && ac_dir=.
2902                 if test -f $ac_dir/$ac_word; then
2903                   ac_cv_prog_SPOOLER="lpr"
2904                   break
2905                 fi
2906               done
2907               IFS="$ac_save_ifs"
2908             fi
2909             fi
2910             SPOOLER="$ac_cv_prog_SPOOLER"
2911             if test -n "$SPOOLER"; then
2912               echo "$ac_t""$SPOOLER" 1>&6
2913             else
2914               echo "$ac_t""no" 1>&6
2915             fi
2916             
2917             # Extract the first word of "lp", so it can be a program name with args.
2918             set dummy lp; ac_word=$2
2919             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2920 rizwank 1.1 echo "configure:2921: checking for $ac_word" >&5
2921             if eval "test \"`echo '$''{'ac_cv_prog_SPOOLER'+set}'`\" = set"; then
2922               echo $ac_n "(cached) $ac_c" 1>&6
2923             else
2924               if test -n "$SPOOLER"; then
2925               ac_cv_prog_SPOOLER="$SPOOLER" # Let the user override the test.
2926             else
2927               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2928               ac_dummy="$PATH"
2929               for ac_dir in $ac_dummy; do
2930                 test -z "$ac_dir" && ac_dir=.
2931                 if test -f $ac_dir/$ac_word; then
2932                   ac_cv_prog_SPOOLER="lp"
2933                   break
2934                 fi
2935               done
2936               IFS="$ac_save_ifs"
2937             fi
2938             fi
2939             SPOOLER="$ac_cv_prog_SPOOLER"
2940             if test -n "$SPOOLER"; then
2941 rizwank 1.1   echo "$ac_t""$SPOOLER" 1>&6
2942             else
2943               echo "$ac_t""no" 1>&6
2944             fi
2945             
2946             
2947             # Check whether --with-spooler or --without-spooler was given.
2948             if test "${with_spooler+set}" = set; then
2949               withval="$with_spooler"
2950               if test "X$withval" != "Xno"; then
2951                 SPOOLER=$withval
2952               fi
2953             
2954             fi
2955             
2956             
2957             if test "X$SPOOLER" = "X"; then
2958               SPOOLER=lpr
2959             fi
2960             
2961             QUEUEPARAM="-P"
2962 rizwank 1.1 # Check whether --with-queue-param or --without-queue-param was given.
2963             if test "${with_queue_param+set}" = set; then
2964               withval="$with_queue_param"
2965               if test "X$withval" != "Xno"; then
2966                 QUEUEPARAM=$withval
2967               fi
2968             
2969             fi
2970             
2971             
2972             
2973             PSLEVEL="2"
2974             # Check whether --with-ps-level or --without-ps-level was given.
2975             if test "${with_ps_level+set}" = set; then
2976               withval="$with_ps_level"
2977               if test "X$withval" != "Xno"; then
2978                 PSLEVEL=$withval
2979               fi
2980             
2981             fi
2982             
2983 rizwank 1.1 
2984             
2985             ALL_LINGUAS="de es fi fr nl ru sl"
2986             echo $ac_n "checking for inline""... $ac_c" 1>&6
2987             echo "configure:2988: checking for inline" >&5
2988             if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2989               echo $ac_n "(cached) $ac_c" 1>&6
2990             else
2991               ac_cv_c_inline=no
2992             for ac_kw in inline __inline__ __inline; do
2993               cat > conftest.$ac_ext <<EOF
2994             #line 2995 "configure"
2995             #include "confdefs.h"
2996             
2997             int main() {
2998             } $ac_kw foo() {
2999             ; return 0; }
3000             EOF
3001             if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3002               rm -rf conftest*
3003               ac_cv_c_inline=$ac_kw; break
3004 rizwank 1.1 else
3005               echo "configure: failed program was:" >&5
3006               cat conftest.$ac_ext >&5
3007             fi
3008             rm -f conftest*
3009             done
3010             
3011             fi
3012             
3013             echo "$ac_t""$ac_cv_c_inline" 1>&6
3014             case "$ac_cv_c_inline" in
3015               inline | yes) ;;
3016               no) cat >> confdefs.h <<\EOF
3017             #define inline 
3018             EOF
3019              ;;
3020               *)  cat >> confdefs.h <<EOF
3021             #define inline $ac_cv_c_inline
3022             EOF
3023              ;;
3024             esac
3025 rizwank 1.1 
3026             echo $ac_n "checking for off_t""... $ac_c" 1>&6
3027             echo "configure:3028: checking for off_t" >&5
3028             if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3029               echo $ac_n "(cached) $ac_c" 1>&6
3030             else
3031               cat > conftest.$ac_ext <<EOF
3032             #line 3033 "configure"
3033             #include "confdefs.h"
3034             #include <sys/types.h>
3035             #if STDC_HEADERS
3036             #include <stdlib.h>
3037             #include <stddef.h>
3038             #endif
3039             EOF
3040             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041               egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3042               rm -rf conftest*
3043               ac_cv_type_off_t=yes
3044             else
3045               rm -rf conftest*
3046 rizwank 1.1   ac_cv_type_off_t=no
3047             fi
3048             rm -f conftest*
3049             
3050             fi
3051             echo "$ac_t""$ac_cv_type_off_t" 1>&6
3052             if test $ac_cv_type_off_t = no; then
3053               cat >> confdefs.h <<\EOF
3054             #define off_t long
3055             EOF
3056             
3057             fi
3058             
3059             echo $ac_n "checking for size_t""... $ac_c" 1>&6
3060             echo "configure:3061: checking for size_t" >&5
3061             if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3062               echo $ac_n "(cached) $ac_c" 1>&6
3063             else
3064               cat > conftest.$ac_ext <<EOF
3065             #line 3066 "configure"
3066             #include "confdefs.h"
3067 rizwank 1.1 #include <sys/types.h>
3068             #if STDC_HEADERS
3069             #include <stdlib.h>
3070             #include <stddef.h>
3071             #endif
3072             EOF
3073             if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074               egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3075               rm -rf conftest*
3076               ac_cv_type_size_t=yes
3077             else
3078               rm -rf conftest*
3079               ac_cv_type_size_t=no
3080             fi
3081             rm -f conftest*
3082             
3083             fi
3084             echo "$ac_t""$ac_cv_type_size_t" 1>&6
3085             if test $ac_cv_type_size_t = no; then
3086               cat >> confdefs.h <<\EOF
3087             #define size_t unsigned
3088 rizwank 1.1 EOF
3089             
3090             fi
3091             
3092             for ac_hdr in unistd.h
3093             do
3094             ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3095             echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3096             echo "configure:3097: checking for $ac_hdr" >&5
3097             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3098               echo $ac_n "(cached) $ac_c" 1>&6
3099             else
3100               cat > conftest.$ac_ext <<EOF
3101             #line 3102 "configure"
3102             #include "confdefs.h"
3103             #include <$ac_hdr>
3104             EOF
3105             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3106             { (eval echo configure:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3108             if test -z "$ac_err"; then
3109 rizwank 1.1   rm -rf conftest*
3110               eval "ac_cv_header_$ac_safe=yes"
3111             else
3112               echo "$ac_err" >&5
3113               echo "configure: failed program was:" >&5
3114               cat conftest.$ac_ext >&5
3115               rm -rf conftest*
3116               eval "ac_cv_header_$ac_safe=no"
3117             fi
3118             rm -f conftest*
3119             fi
3120             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3121               echo "$ac_t""yes" 1>&6
3122                 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3123               cat >> confdefs.h <<EOF
3124             #define $ac_tr_hdr 1
3125             EOF
3126              
3127             else
3128               echo "$ac_t""no" 1>&6
3129             fi
3130 rizwank 1.1 done
3131             
3132             for ac_func in getpagesize
3133             do
3134             echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3135             echo "configure:3136: checking for $ac_func" >&5
3136             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3137               echo $ac_n "(cached) $ac_c" 1>&6
3138             else
3139               cat > conftest.$ac_ext <<EOF
3140             #line 3141 "configure"
3141             #include "confdefs.h"
3142             /* System header to define __stub macros and hopefully few prototypes,
3143                 which can conflict with char $ac_func(); below.  */
3144             #include <assert.h>
3145             /* Override any gcc2 internal prototype to avoid an error.  */
3146             /* We use char because int might match the return type of a gcc2
3147                 builtin and then its argument prototype would still apply.  */
3148             char $ac_func();
3149             
3150             int main() {
3151 rizwank 1.1 
3152             /* The GNU C library defines this for functions which it implements
3153                 to always fail with ENOSYS.  Some functions are actually named
3154                 something starting with __ and the normal name is an alias.  */
3155             #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3156             choke me
3157             #else
3158             $ac_func();
3159             #endif
3160             
3161             ; return 0; }
3162             EOF
3163             if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3164               rm -rf conftest*
3165               eval "ac_cv_func_$ac_func=yes"
3166             else
3167               echo "configure: failed program was:" >&5
3168               cat conftest.$ac_ext >&5
3169               rm -rf conftest*
3170               eval "ac_cv_func_$ac_func=no"
3171             fi
3172 rizwank 1.1 rm -f conftest*
3173             fi
3174             
3175             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3176               echo "$ac_t""yes" 1>&6
3177                 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178               cat >> confdefs.h <<EOF
3179             #define $ac_tr_func 1
3180             EOF
3181              
3182             else
3183               echo "$ac_t""no" 1>&6
3184             fi
3185             done
3186             
3187             echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3188             echo "configure:3189: checking for working mmap" >&5
3189             if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3190               echo $ac_n "(cached) $ac_c" 1>&6
3191             else
3192               if test "$cross_compiling" = yes; then
3193 rizwank 1.1   ac_cv_func_mmap_fixed_mapped=no
3194             else
3195               cat > conftest.$ac_ext <<EOF
3196             #line 3197 "configure"
3197             #include "confdefs.h"
3198             
3199             /* Thanks to Mike Haertel and Jim Avera for this test.
3200                Here is a matrix of mmap possibilities:
3201             	mmap private not fixed
3202             	mmap private fixed at somewhere currently unmapped
3203             	mmap private fixed at somewhere already mapped
3204             	mmap shared not fixed
3205             	mmap shared fixed at somewhere currently unmapped
3206             	mmap shared fixed at somewhere already mapped
3207                For private mappings, we should verify that changes cannot be read()
3208                back from the file, nor mmap's back from the file at a different
3209                address.  (There have been systems where private was not correctly
3210                implemented like the infamous i386 svr4.0, and systems where the
3211                VM page cache was not coherent with the filesystem buffer cache
3212                like early versions of FreeBSD and possibly contemporary NetBSD.)
3213                For shared mappings, we should conversely verify that changes get
3214 rizwank 1.1    propogated back to all the places they're supposed to be.
3215             
3216                Grep wants private fixed already mapped.
3217                The main things grep needs to know about mmap are:
3218                * does it exist and is it safe to write into the mmap'd area
3219                * how to use it (BSD variants)  */
3220             #include <sys/types.h>
3221             #include <fcntl.h>
3222             #include <sys/mman.h>
3223             
3224             /* This mess was copied from the GNU getpagesize.h.  */
3225             #ifndef HAVE_GETPAGESIZE
3226             # ifdef HAVE_UNISTD_H
3227             #  include <unistd.h>
3228             # endif
3229             
3230             /* Assume that all systems that can run configure have sys/param.h.  */
3231             # ifndef HAVE_SYS_PARAM_H
3232             #  define HAVE_SYS_PARAM_H 1
3233             # endif
3234             
3235 rizwank 1.1 # ifdef _SC_PAGESIZE
3236             #  define getpagesize() sysconf(_SC_PAGESIZE)
3237             # else /* no _SC_PAGESIZE */
3238             #  ifdef HAVE_SYS_PARAM_H
3239             #   include <sys/param.h>
3240             #   ifdef EXEC_PAGESIZE
3241             #    define getpagesize() EXEC_PAGESIZE
3242             #   else /* no EXEC_PAGESIZE */
3243             #    ifdef NBPG
3244             #     define getpagesize() NBPG * CLSIZE
3245             #     ifndef CLSIZE
3246             #      define CLSIZE 1
3247             #     endif /* no CLSIZE */
3248             #    else /* no NBPG */
3249             #     ifdef NBPC
3250             #      define getpagesize() NBPC
3251             #     else /* no NBPC */
3252             #      ifdef PAGESIZE
3253             #       define getpagesize() PAGESIZE
3254             #      endif /* PAGESIZE */
3255             #     endif /* no NBPC */
3256 rizwank 1.1 #    endif /* no NBPG */
3257             #   endif /* no EXEC_PAGESIZE */
3258             #  else /* no HAVE_SYS_PARAM_H */
3259             #   define getpagesize() 8192	/* punt totally */
3260             #  endif /* no HAVE_SYS_PARAM_H */
3261             # endif /* no _SC_PAGESIZE */
3262             
3263             #endif /* no HAVE_GETPAGESIZE */
3264             
3265             #ifdef __cplusplus
3266             extern "C" { void *malloc(unsigned); }
3267             #else
3268             char *malloc();
3269             #endif
3270             
3271             int
3272             main()
3273             {
3274             	char *data, *data2, *data3;
3275             	int i, pagesize;
3276             	int fd;
3277 rizwank 1.1 
3278             	pagesize = getpagesize();
3279             
3280             	/*
3281             	 * First, make a file with some known garbage in it.
3282             	 */
3283             	data = malloc(pagesize);
3284             	if (!data)
3285             		exit(1);
3286             	for (i = 0; i < pagesize; ++i)
3287             		*(data + i) = rand();
3288             	umask(0);
3289             	fd = creat("conftestmmap", 0600);
3290             	if (fd < 0)
3291             		exit(1);
3292             	if (write(fd, data, pagesize) != pagesize)
3293             		exit(1);
3294             	close(fd);
3295             
3296             	/*
3297             	 * Next, try to mmap the file at a fixed address which
3298 rizwank 1.1 	 * already has something else allocated at it.  If we can,
3299             	 * also make sure that we see the same garbage.
3300             	 */
3301             	fd = open("conftestmmap", O_RDWR);
3302             	if (fd < 0)
3303             		exit(1);
3304             	data2 = malloc(2 * pagesize);
3305             	if (!data2)
3306             		exit(1);
3307             	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3308             	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3309             	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
3310             		exit(1);
3311             	for (i = 0; i < pagesize; ++i)
3312             		if (*(data + i) != *(data2 + i))
3313             			exit(1);
3314             
3315             	/*
3316             	 * Finally, make sure that changes to the mapped area
3317             	 * do not percolate back to the file as seen by read().
3318             	 * (This is a bug on some variants of i386 svr4.0.)
3319 rizwank 1.1 	 */
3320             	for (i = 0; i < pagesize; ++i)
3321             		*(data2 + i) = *(data2 + i) + 1;
3322             	data3 = malloc(pagesize);
3323             	if (!data3)
3324             		exit(1);
3325             	if (read(fd, data3, pagesize) != pagesize)
3326             		exit(1);
3327             	for (i = 0; i < pagesize; ++i)
3328             		if (*(data + i) != *(data3 + i))
3329             			exit(1);
3330             	close(fd);
3331             	unlink("conftestmmap");
3332             	exit(0);
3333             }
3334             
3335             EOF
3336             if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3337             then
3338               ac_cv_func_mmap_fixed_mapped=yes
3339             else
3340 rizwank 1.1   echo "configure: failed program was:" >&5
3341               cat conftest.$ac_ext >&5
3342               rm -fr conftest*
3343               ac_cv_func_mmap_fixed_mapped=no
3344             fi
3345             rm -fr conftest*
3346             fi
3347             
3348             fi
3349             
3350             echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3351             if test $ac_cv_func_mmap_fixed_mapped = yes; then
3352               cat >> confdefs.h <<\EOF
3353             #define HAVE_MMAP 1
3354             EOF
3355             
3356             fi
3357             
3358                                           
3359                for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3360             unistd.h sys/param.h
3361 rizwank 1.1 do
3362             ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3363             echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3364             echo "configure:3365: checking for $ac_hdr" >&5
3365             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3366               echo $ac_n "(cached) $ac_c" 1>&6
3367             else
3368               cat > conftest.$ac_ext <<EOF
3369             #line 3370 "configure"
3370             #include "confdefs.h"
3371             #include <$ac_hdr>
3372             EOF
3373             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3374             { (eval echo configure:3375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3375             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3376             if test -z "$ac_err"; then
3377               rm -rf conftest*
3378               eval "ac_cv_header_$ac_safe=yes"
3379             else
3380               echo "$ac_err" >&5
3381               echo "configure: failed program was:" >&5
3382 rizwank 1.1   cat conftest.$ac_ext >&5
3383               rm -rf conftest*
3384               eval "ac_cv_header_$ac_safe=no"
3385             fi
3386             rm -f conftest*
3387             fi
3388             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3389               echo "$ac_t""yes" 1>&6
3390                 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3391               cat >> confdefs.h <<EOF
3392             #define $ac_tr_hdr 1
3393             EOF
3394              
3395             else
3396               echo "$ac_t""no" 1>&6
3397             fi
3398             done
3399             
3400                for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3401             strdup __argz_count __argz_stringify __argz_next
3402             do
3403 rizwank 1.1 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3404             echo "configure:3405: checking for $ac_func" >&5
3405             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3406               echo $ac_n "(cached) $ac_c" 1>&6
3407             else
3408               cat > conftest.$ac_ext <<EOF
3409             #line 3410 "configure"
3410             #include "confdefs.h"
3411             /* System header to define __stub macros and hopefully few prototypes,
3412                 which can conflict with char $ac_func(); below.  */
3413             #include <assert.h>
3414             /* Override any gcc2 internal prototype to avoid an error.  */
3415             /* We use char because int might match the return type of a gcc2
3416                 builtin and then its argument prototype would still apply.  */
3417             char $ac_func();
3418             
3419             int main() {
3420             
3421             /* The GNU C library defines this for functions which it implements
3422                 to always fail with ENOSYS.  Some functions are actually named
3423                 something starting with __ and the normal name is an alias.  */
3424 rizwank 1.1 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3425             choke me
3426             #else
3427             $ac_func();
3428             #endif
3429             
3430             ; return 0; }
3431             EOF
3432             if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433               rm -rf conftest*
3434               eval "ac_cv_func_$ac_func=yes"
3435             else
3436               echo "configure: failed program was:" >&5
3437               cat conftest.$ac_ext >&5
3438               rm -rf conftest*
3439               eval "ac_cv_func_$ac_func=no"
3440             fi
3441             rm -f conftest*
3442             fi
3443             
3444             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3445 rizwank 1.1   echo "$ac_t""yes" 1>&6
3446                 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3447               cat >> confdefs.h <<EOF
3448             #define $ac_tr_func 1
3449             EOF
3450              
3451             else
3452               echo "$ac_t""no" 1>&6
3453             fi
3454             done
3455             
3456             
3457                if test "${ac_cv_func_stpcpy+set}" != "set"; then
3458                  for ac_func in stpcpy
3459             do
3460             echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461             echo "configure:3462: checking for $ac_func" >&5
3462             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463               echo $ac_n "(cached) $ac_c" 1>&6
3464             else
3465               cat > conftest.$ac_ext <<EOF
3466 rizwank 1.1 #line 3467 "configure"
3467             #include "confdefs.h"
3468             /* System header to define __stub macros and hopefully few prototypes,
3469                 which can conflict with char $ac_func(); below.  */
3470             #include <assert.h>
3471             /* Override any gcc2 internal prototype to avoid an error.  */
3472             /* We use char because int might match the return type of a gcc2
3473                 builtin and then its argument prototype would still apply.  */
3474             char $ac_func();
3475             
3476             int main() {
3477             
3478             /* The GNU C library defines this for functions which it implements
3479                 to always fail with ENOSYS.  Some functions are actually named
3480                 something starting with __ and the normal name is an alias.  */
3481             #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3482             choke me
3483             #else
3484             $ac_func();
3485             #endif
3486             
3487 rizwank 1.1 ; return 0; }
3488             EOF
3489             if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3490               rm -rf conftest*
3491               eval "ac_cv_func_$ac_func=yes"
3492             else
3493               echo "configure: failed program was:" >&5
3494               cat conftest.$ac_ext >&5
3495               rm -rf conftest*
3496               eval "ac_cv_func_$ac_func=no"
3497             fi
3498             rm -f conftest*
3499             fi
3500             
3501             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502               echo "$ac_t""yes" 1>&6
3503                 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504               cat >> confdefs.h <<EOF
3505             #define $ac_tr_func 1
3506             EOF
3507              
3508 rizwank 1.1 else
3509               echo "$ac_t""no" 1>&6
3510             fi
3511             done
3512             
3513                fi
3514                if test "${ac_cv_func_stpcpy}" = "yes"; then
3515                  cat >> confdefs.h <<\EOF
3516             #define HAVE_STPCPY 1
3517             EOF
3518             
3519                fi
3520             
3521                if test $ac_cv_header_locale_h = yes; then
3522                 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3523             echo "configure:3524: checking for LC_MESSAGES" >&5
3524             if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3525               echo $ac_n "(cached) $ac_c" 1>&6
3526             else
3527               cat > conftest.$ac_ext <<EOF
3528             #line 3529 "configure"
3529 rizwank 1.1 #include "confdefs.h"
3530             #include <locale.h>
3531             int main() {
3532             return LC_MESSAGES
3533             ; return 0; }
3534             EOF
3535             if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536               rm -rf conftest*
3537               am_cv_val_LC_MESSAGES=yes
3538             else
3539               echo "configure: failed program was:" >&5
3540               cat conftest.$ac_ext >&5
3541               rm -rf conftest*
3542               am_cv_val_LC_MESSAGES=no
3543             fi
3544             rm -f conftest*
3545             fi
3546             
3547             echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3548                 if test $am_cv_val_LC_MESSAGES = yes; then
3549                   cat >> confdefs.h <<\EOF
3550 rizwank 1.1 #define HAVE_LC_MESSAGES 1
3551             EOF
3552             
3553                 fi
3554               fi
3555                echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3556             echo "configure:3557: checking whether NLS is requested" >&5
3557                     # Check whether --enable-nls or --disable-nls was given.
3558             if test "${enable_nls+set}" = set; then
3559               enableval="$enable_nls"
3560               USE_NLS=$enableval
3561             else
3562               USE_NLS=yes
3563             fi
3564             
3565                 echo "$ac_t""$USE_NLS" 1>&6
3566                 
3567             
3568                 USE_INCLUDED_LIBINTL=no
3569             
3570                     if test "$USE_NLS" = "yes"; then
3571 rizwank 1.1       cat >> confdefs.h <<\EOF
3572             #define ENABLE_NLS 1
3573             EOF
3574             
3575                   echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3576             echo "configure:3577: checking whether included gettext is requested" >&5
3577                   # Check whether --with-included-gettext or --without-included-gettext was given.
3578             if test "${with_included_gettext+set}" = set; then
3579               withval="$with_included_gettext"
3580               nls_cv_force_use_gnu_gettext=$withval
3581             else
3582               nls_cv_force_use_gnu_gettext=no
3583             fi
3584             
3585                   echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3586             
3587                   nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3588                   if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3589                                     		nls_cv_header_intl=
3590             	nls_cv_header_libgt=
3591             	CATOBJEXT=NONE
3592 rizwank 1.1 
3593             	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3594             echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3595             echo "configure:3596: checking for libintl.h" >&5
3596             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3597               echo $ac_n "(cached) $ac_c" 1>&6
3598             else
3599               cat > conftest.$ac_ext <<EOF
3600             #line 3601 "configure"
3601             #include "confdefs.h"
3602             #include <libintl.h>
3603             EOF
3604             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3605             { (eval echo configure:3606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3606             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3607             if test -z "$ac_err"; then
3608               rm -rf conftest*
3609               eval "ac_cv_header_$ac_safe=yes"
3610             else
3611               echo "$ac_err" >&5
3612               echo "configure: failed program was:" >&5
3613 rizwank 1.1   cat conftest.$ac_ext >&5
3614               rm -rf conftest*
3615               eval "ac_cv_header_$ac_safe=no"
3616             fi
3617             rm -f conftest*
3618             fi
3619             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3620               echo "$ac_t""yes" 1>&6
3621               echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3622             echo "configure:3623: checking for gettext in libc" >&5
3623             if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3624               echo $ac_n "(cached) $ac_c" 1>&6
3625             else
3626               cat > conftest.$ac_ext <<EOF
3627             #line 3628 "configure"
3628             #include "confdefs.h"
3629             #include <libintl.h>
3630             int main() {
3631             return (int) gettext ("")
3632             ; return 0; }
3633             EOF
3634 rizwank 1.1 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3635               rm -rf conftest*
3636               gt_cv_func_gettext_libc=yes
3637             else
3638               echo "configure: failed program was:" >&5
3639               cat conftest.$ac_ext >&5
3640               rm -rf conftest*
3641               gt_cv_func_gettext_libc=no
3642             fi
3643             rm -f conftest*
3644             fi
3645             
3646             echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3647             
3648             	   if test "$gt_cv_func_gettext_libc" != "yes"; then
3649             	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3650             echo "configure:3651: checking for bindtextdomain in -lintl" >&5
3651             ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3652             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3653               echo $ac_n "(cached) $ac_c" 1>&6
3654             else
3655 rizwank 1.1   ac_save_LIBS="$LIBS"
3656             LIBS="-lintl  $LIBS"
3657             cat > conftest.$ac_ext <<EOF
3658             #line 3659 "configure"
3659             #include "confdefs.h"
3660             /* Override any gcc2 internal prototype to avoid an error.  */
3661             /* We use char because int might match the return type of a gcc2
3662                 builtin and then its argument prototype would still apply.  */
3663             char bindtextdomain();
3664             
3665             int main() {
3666             bindtextdomain()
3667             ; return 0; }
3668             EOF
3669             if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3670               rm -rf conftest*
3671               eval "ac_cv_lib_$ac_lib_var=yes"
3672             else
3673               echo "configure: failed program was:" >&5
3674               cat conftest.$ac_ext >&5
3675               rm -rf conftest*
3676 rizwank 1.1   eval "ac_cv_lib_$ac_lib_var=no"
3677             fi
3678             rm -f conftest*
3679             LIBS="$ac_save_LIBS"
3680             
3681             fi
3682             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683               echo "$ac_t""yes" 1>&6
3684               echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3685             echo "configure:3686: checking for gettext in libintl" >&5
3686             if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3687               echo $ac_n "(cached) $ac_c" 1>&6
3688             else
3689               echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3690             echo "configure:3691: checking for gettext in -lintl" >&5
3691             ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3692             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3693               echo $ac_n "(cached) $ac_c" 1>&6
3694             else
3695               ac_save_LIBS="$LIBS"
3696             LIBS="-lintl  $LIBS"
3697 rizwank 1.1 cat > conftest.$ac_ext <<EOF
3698             #line 3699 "configure"
3699             #include "confdefs.h"
3700             /* Override any gcc2 internal prototype to avoid an error.  */
3701             /* We use char because int might match the return type of a gcc2
3702                 builtin and then its argument prototype would still apply.  */
3703             char gettext();
3704             
3705             int main() {
3706             gettext()
3707             ; return 0; }
3708             EOF
3709             if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710               rm -rf conftest*
3711               eval "ac_cv_lib_$ac_lib_var=yes"
3712             else
3713               echo "configure: failed program was:" >&5
3714               cat conftest.$ac_ext >&5
3715               rm -rf conftest*
3716               eval "ac_cv_lib_$ac_lib_var=no"
3717             fi
3718 rizwank 1.1 rm -f conftest*
3719             LIBS="$ac_save_LIBS"
3720             
3721             fi
3722             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3723               echo "$ac_t""yes" 1>&6
3724               gt_cv_func_gettext_libintl=yes
3725             else
3726               echo "$ac_t""no" 1>&6
3727             gt_cv_func_gettext_libintl=no
3728             fi
3729             
3730             fi
3731             
3732             echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3733             else
3734               echo "$ac_t""no" 1>&6
3735             fi
3736             
3737             	   fi
3738             
3739 rizwank 1.1 	   if test "$gt_cv_func_gettext_libc" = "yes" \
3740             	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
3741             	      cat >> confdefs.h <<\EOF
3742             #define HAVE_GETTEXT 1
3743             EOF
3744             
3745             	      # Extract the first word of "msgfmt", so it can be a program name with args.
3746             set dummy msgfmt; ac_word=$2
3747             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3748             echo "configure:3749: checking for $ac_word" >&5
3749             if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3750               echo $ac_n "(cached) $ac_c" 1>&6
3751             else
3752               case "$MSGFMT" in
3753               /*)
3754               ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3755               ;;
3756               *)
3757               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3758               for ac_dir in $PATH; do
3759                 test -z "$ac_dir" && ac_dir=.
3760 rizwank 1.1     if test -f $ac_dir/$ac_word; then
3761                   if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3762             	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3763             	break
3764                   fi
3765                 fi
3766               done
3767               IFS="$ac_save_ifs"
3768               test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3769               ;;
3770             esac
3771             fi
3772             MSGFMT="$ac_cv_path_MSGFMT"
3773             if test -n "$MSGFMT"; then
3774               echo "$ac_t""$MSGFMT" 1>&6
3775             else
3776               echo "$ac_t""no" 1>&6
3777             fi
3778             	      if test "$MSGFMT" != "no"; then
3779             		for ac_func in dcgettext
3780             do
3781 rizwank 1.1 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3782             echo "configure:3783: checking for $ac_func" >&5
3783             if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3784               echo $ac_n "(cached) $ac_c" 1>&6
3785             else
3786               cat > conftest.$ac_ext <<EOF
3787             #line 3788 "configure"
3788             #include "confdefs.h"
3789             /* System header to define __stub macros and hopefully few prototypes,
3790                 which can conflict with char $ac_func(); below.  */
3791             #include <assert.h>
3792             /* Override any gcc2 internal prototype to avoid an error.  */
3793             /* We use char because int might match the return type of a gcc2
3794                 builtin and then its argument prototype would still apply.  */
3795             char $ac_func();
3796             
3797             int main() {
3798             
3799             /* The GNU C library defines this for functions which it implements
3800                 to always fail with ENOSYS.  Some functions are actually named
3801                 something starting with __ and the normal name is an alias.  */
3802 rizwank 1.1 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3803             choke me
3804             #else
3805             $ac_func();
3806             #endif
3807             
3808             ; return 0; }
3809             EOF
3810             if { (eval echo configure:3811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3811               rm -rf conftest*
3812               eval "ac_cv_func_$ac_func=yes"
3813             else
3814               echo "configure: failed program was:" >&5
3815               cat conftest.$ac_ext >&5
3816               rm -rf conftest*
3817               eval "ac_cv_func_$ac_func=no"
3818             fi
3819             rm -f conftest*
3820             fi
3821             
3822             if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3823 rizwank 1.1   echo "$ac_t""yes" 1>&6
3824                 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3825               cat >> confdefs.h <<EOF
3826             #define $ac_tr_func 1
3827             EOF
3828              
3829             else
3830               echo "$ac_t""no" 1>&6
3831             fi
3832             done
3833             
3834             		# Extract the first word of "gmsgfmt", so it can be a program name with args.
3835             set dummy gmsgfmt; ac_word=$2
3836             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3837             echo "configure:3838: checking for $ac_word" >&5
3838             if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3839               echo $ac_n "(cached) $ac_c" 1>&6
3840             else
3841               case "$GMSGFMT" in
3842               /*)
3843               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3844 rizwank 1.1   ;;
3845               ?:/*)			 
3846               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3847               ;;
3848               *)
3849               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3850               ac_dummy="$PATH"
3851               for ac_dir in $ac_dummy; do 
3852                 test -z "$ac_dir" && ac_dir=.
3853                 if test -f $ac_dir/$ac_word; then
3854                   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3855                   break
3856                 fi
3857               done
3858               IFS="$ac_save_ifs"
3859               test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3860               ;;
3861             esac
3862             fi
3863             GMSGFMT="$ac_cv_path_GMSGFMT"
3864             if test -n "$GMSGFMT"; then
3865 rizwank 1.1   echo "$ac_t""$GMSGFMT" 1>&6
3866             else
3867               echo "$ac_t""no" 1>&6
3868             fi
3869             
3870             		# Extract the first word of "xgettext", so it can be a program name with args.
3871             set dummy xgettext; ac_word=$2
3872             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3873             echo "configure:3874: checking for $ac_word" >&5
3874             if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3875               echo $ac_n "(cached) $ac_c" 1>&6
3876             else
3877               case "$XGETTEXT" in
3878               /*)
3879               ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3880               ;;
3881               *)
3882               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3883               for ac_dir in $PATH; do
3884                 test -z "$ac_dir" && ac_dir=.
3885                 if test -f $ac_dir/$ac_word; then
3886 rizwank 1.1       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3887             	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3888             	break
3889                   fi
3890                 fi
3891               done
3892               IFS="$ac_save_ifs"
3893               test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3894               ;;
3895             esac
3896             fi
3897             XGETTEXT="$ac_cv_path_XGETTEXT"
3898             if test -n "$XGETTEXT"; then
3899               echo "$ac_t""$XGETTEXT" 1>&6
3900             else
3901               echo "$ac_t""no" 1>&6
3902             fi
3903             
3904             		cat > conftest.$ac_ext <<EOF
3905             #line 3906 "configure"
3906             #include "confdefs.h"
3907 rizwank 1.1 
3908             int main() {
3909             extern int _nl_msg_cat_cntr;
3910             			       return _nl_msg_cat_cntr
3911             ; return 0; }
3912             EOF
3913             if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914               rm -rf conftest*
3915               CATOBJEXT=.gmo
3916             		   DATADIRNAME=share
3917             else
3918               echo "configure: failed program was:" >&5
3919               cat conftest.$ac_ext >&5
3920               rm -rf conftest*
3921               CATOBJEXT=.mo
3922             		   DATADIRNAME=lib
3923             fi
3924             rm -f conftest*
3925             		INSTOBJEXT=.mo
3926             	      fi
3927             	    fi
3928 rizwank 1.1 	
3929             else
3930               echo "$ac_t""no" 1>&6
3931             fi
3932             
3933             
3934                     if test "$CATOBJEXT" = "NONE"; then
3935             	  echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
3936             echo "configure:3937: checking whether catgets can be used" >&5
3937             	  # Check whether --with-catgets or --without-catgets was given.
3938             if test "${with_catgets+set}" = set; then
3939               withval="$with_catgets"
3940               nls_cv_use_catgets=$withval
3941             else
3942               nls_cv_use_catgets=no
3943             fi
3944             
3945             	  echo "$ac_t""$nls_cv_use_catgets" 1>&6
3946             
3947             	  if test "$nls_cv_use_catgets" = "yes"; then
3948             	    	    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
3949 rizwank 1.1 echo "configure:3950: checking for main in -li" >&5
3950             ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
3951             if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3952               echo $ac_n "(cached) $ac_c" 1>&6
3953             else
3954               ac_save_LIBS="$LIBS"
3955             LIBS="-li  $LIBS"
3956             cat > conftest.$ac_ext <<EOF
3957             #line 3958 "configure"
3958             #include "confdefs.h"
3959             
3960             int main() {
3961             main()
3962             ; return 0; }
3963             EOF
3964             if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3965               rm -rf conftest*
3966               eval "ac_cv_lib_$ac_lib_var=yes"
3967             else
3968               echo "configure: failed program was:" >&5
3969               cat conftest.$ac_ext >&5
3970 rizwank 1.1   rm -rf conftest*
3971               eval "ac_cv_lib_$ac_lib_var=no"
3972             fi
3973             rm -f conftest*
3974             LIBS="$ac_save_LIBS"
3975             
3976             fi
3977             if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3978               echo "$ac_t""yes" 1>&6
3979                 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3980                 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3981               cat >> confdefs.h <<EOF
3982             #define $ac_tr_lib 1
3983             EOF
3984             
3985               LIBS="-li $LIBS"
3986             
3987             else
3988               echo "$ac_t""no" 1>&6
3989             fi
3990             
3991 rizwank 1.1 	    echo $ac_n "checking for catgets""... $ac_c" 1>&6
3992             echo "configure:3993: checking for catgets" >&5
3993             if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
3994               echo $ac_n "(cached) $ac_c" 1>&6
3995             else
3996               cat > conftest.$ac_ext <<EOF
3997             #line 3998 "configure"
3998             #include "confdefs.h"
3999             /* System header to define __stub macros and hopefully few prototypes,
4000                 which can conflict with char catgets(); below.  */
4001             #include <assert.h>
4002             /* Override any gcc2 internal prototype to avoid an error.  */
4003             /* We use char because int might match the return type of a gcc2
4004                 builtin and then its argument prototype would still apply.  */
4005             char catgets();
4006             
4007             int main() {
4008             
4009             /* The GNU C library defines this for functions which it implements
4010                 to always fail with ENOSYS.  Some functions are actually named
4011                 something starting with __ and the normal name is an alias.  */
4012 rizwank 1.1 #if defined (__stub_catgets) || defined (__stub___catgets)
4013             choke me
4014             #else
4015             catgets();
4016             #endif
4017             
4018             ; return 0; }
4019             EOF
4020             if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021               rm -rf conftest*
4022               eval "ac_cv_func_catgets=yes"
4023             else
4024               echo "configure: failed program was:" >&5
4025               cat conftest.$ac_ext >&5
4026               rm -rf conftest*
4027               eval "ac_cv_func_catgets=no"
4028             fi
4029             rm -f conftest*
4030             fi
4031             
4032             if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4033 rizwank 1.1   echo "$ac_t""yes" 1>&6
4034               cat >> confdefs.h <<\EOF
4035             #define HAVE_CATGETS 1
4036             EOF
4037             
4038             	       INTLOBJS="\$(CATOBJS)"
4039             	       # Extract the first word of "gencat", so it can be a program name with args.
4040             set dummy gencat; ac_word=$2
4041             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4042             echo "configure:4043: checking for $ac_word" >&5
4043             if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4044               echo $ac_n "(cached) $ac_c" 1>&6
4045             else
4046               case "$GENCAT" in
4047               /*)
4048               ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4049               ;;
4050               ?:/*)			 
4051               ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
4052               ;;
4053               *)
4054 rizwank 1.1   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4055               ac_dummy="$PATH"
4056               for ac_dir in $ac_dummy; do 
4057                 test -z "$ac_dir" && ac_dir=.
4058                 if test -f $ac_dir/$ac_word; then
4059                   ac_cv_path_GENCAT="$ac_dir/$ac_word"
4060                   break
4061                 fi
4062               done
4063               IFS="$ac_save_ifs"
4064               test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4065               ;;
4066             esac
4067             fi
4068             GENCAT="$ac_cv_path_GENCAT"
4069             if test -n "$GENCAT"; then
4070               echo "$ac_t""$GENCAT" 1>&6
4071             else
4072               echo "$ac_t""no" 1>&6
4073             fi
4074             	       if test "$GENCAT" != "no"; then
4075 rizwank 1.1 		 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4076             set dummy gmsgfmt; ac_word=$2
4077             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4078             echo "configure:4079: checking for $ac_word" >&5
4079             if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4080               echo $ac_n "(cached) $ac_c" 1>&6
4081             else
4082               case "$GMSGFMT" in
4083               /*)
4084               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4085               ;;
4086               ?:/*)			 
4087               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4088               ;;
4089               *)
4090               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4091               ac_dummy="$PATH"
4092               for ac_dir in $ac_dummy; do 
4093                 test -z "$ac_dir" && ac_dir=.
4094                 if test -f $ac_dir/$ac_word; then
4095                   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4096 rizwank 1.1       break
4097                 fi
4098               done
4099               IFS="$ac_save_ifs"
4100               test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4101               ;;
4102             esac
4103             fi
4104             GMSGFMT="$ac_cv_path_GMSGFMT"
4105             if test -n "$GMSGFMT"; then
4106               echo "$ac_t""$GMSGFMT" 1>&6
4107             else
4108               echo "$ac_t""no" 1>&6
4109             fi
4110             
4111             		 if test "$GMSGFMT" = "no"; then
4112             		   # Extract the first word of "msgfmt", so it can be a program name with args.
4113             set dummy msgfmt; ac_word=$2
4114             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4115             echo "configure:4116: checking for $ac_word" >&5
4116             if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4117 rizwank 1.1   echo $ac_n "(cached) $ac_c" 1>&6
4118             else
4119               case "$GMSGFMT" in
4120               /*)
4121               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4122               ;;
4123               *)
4124               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4125               for ac_dir in $PATH; do
4126                 test -z "$ac_dir" && ac_dir=.
4127                 if test -f $ac_dir/$ac_word; then
4128                   if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4129             	ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4130             	break
4131                   fi
4132                 fi
4133               done
4134               IFS="$ac_save_ifs"
4135               test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4136               ;;
4137             esac
4138 rizwank 1.1 fi
4139             GMSGFMT="$ac_cv_path_GMSGFMT"
4140             if test -n "$GMSGFMT"; then
4141               echo "$ac_t""$GMSGFMT" 1>&6
4142             else
4143               echo "$ac_t""no" 1>&6
4144             fi
4145             
4146             		 fi
4147             		 # Extract the first word of "xgettext", so it can be a program name with args.
4148             set dummy xgettext; ac_word=$2
4149             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4150             echo "configure:4151: checking for $ac_word" >&5
4151             if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4152               echo $ac_n "(cached) $ac_c" 1>&6
4153             else
4154               case "$XGETTEXT" in
4155               /*)
4156               ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4157               ;;
4158               *)
4159 rizwank 1.1   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4160               for ac_dir in $PATH; do
4161                 test -z "$ac_dir" && ac_dir=.
4162                 if test -f $ac_dir/$ac_word; then
4163                   if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4164             	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4165             	break
4166                   fi
4167                 fi
4168               done
4169               IFS="$ac_save_ifs"
4170               test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4171               ;;
4172             esac
4173             fi
4174             XGETTEXT="$ac_cv_path_XGETTEXT"
4175             if test -n "$XGETTEXT"; then
4176               echo "$ac_t""$XGETTEXT" 1>&6
4177             else
4178               echo "$ac_t""no" 1>&6
4179             fi
4180 rizwank 1.1 
4181             		 USE_INCLUDED_LIBINTL=yes
4182             		 CATOBJEXT=.cat
4183             		 INSTOBJEXT=.cat
4184             		 DATADIRNAME=lib
4185             		 INTLDEPS='$(top_builddir)/intl/libintl.a'
4186             		 INTLLIBS=$INTLDEPS
4187             		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4188             		 nls_cv_header_intl=intl/libintl.h
4189             		 nls_cv_header_libgt=intl/libgettext.h
4190             	       fi
4191             else
4192               echo "$ac_t""no" 1>&6
4193             fi
4194             
4195             	  fi
4196                     fi
4197             
4198                     if test "$CATOBJEXT" = "NONE"; then
4199             	  	  	  nls_cv_use_gnu_gettext=yes
4200                     fi
4201 rizwank 1.1       fi
4202             
4203                   if test "$nls_cv_use_gnu_gettext" = "yes"; then
4204                             INTLOBJS="\$(GETTOBJS)"
4205                     # Extract the first word of "msgfmt", so it can be a program name with args.
4206             set dummy msgfmt; ac_word=$2
4207             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4208             echo "configure:4209: checking for $ac_word" >&5
4209             if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4210               echo $ac_n "(cached) $ac_c" 1>&6
4211             else
4212               case "$MSGFMT" in
4213               /*)
4214               ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4215               ;;
4216               *)
4217               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4218               for ac_dir in $PATH; do
4219                 test -z "$ac_dir" && ac_dir=.
4220                 if test -f $ac_dir/$ac_word; then
4221                   if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4222 rizwank 1.1 	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4223             	break
4224                   fi
4225                 fi
4226               done
4227               IFS="$ac_save_ifs"
4228               test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4229               ;;
4230             esac
4231             fi
4232             MSGFMT="$ac_cv_path_MSGFMT"
4233             if test -n "$MSGFMT"; then
4234               echo "$ac_t""$MSGFMT" 1>&6
4235             else
4236               echo "$ac_t""no" 1>&6
4237             fi
4238             
4239                     # Extract the first word of "gmsgfmt", so it can be a program name with args.
4240             set dummy gmsgfmt; ac_word=$2
4241             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4242             echo "configure:4243: checking for $ac_word" >&5
4243 rizwank 1.1 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4244               echo $ac_n "(cached) $ac_c" 1>&6
4245             else
4246               case "$GMSGFMT" in
4247               /*)
4248               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4249               ;;
4250               ?:/*)			 
4251               ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4252               ;;
4253               *)
4254               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4255               ac_dummy="$PATH"
4256               for ac_dir in $ac_dummy; do 
4257                 test -z "$ac_dir" && ac_dir=.
4258                 if test -f $ac_dir/$ac_word; then
4259                   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4260                   break
4261                 fi
4262               done
4263               IFS="$ac_save_ifs"
4264 rizwank 1.1   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4265               ;;
4266             esac
4267             fi
4268             GMSGFMT="$ac_cv_path_GMSGFMT"
4269             if test -n "$GMSGFMT"; then
4270               echo "$ac_t""$GMSGFMT" 1>&6
4271             else
4272               echo "$ac_t""no" 1>&6
4273             fi
4274             
4275                     # Extract the first word of "xgettext", so it can be a program name with args.
4276             set dummy xgettext; ac_word=$2
4277             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278             echo "configure:4279: checking for $ac_word" >&5
4279             if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4280               echo $ac_n "(cached) $ac_c" 1>&6
4281             else
4282               case "$XGETTEXT" in
4283               /*)
4284               ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4285 rizwank 1.1   ;;
4286               *)
4287               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4288               for ac_dir in $PATH; do
4289                 test -z "$ac_dir" && ac_dir=.
4290                 if test -f $ac_dir/$ac_word; then
4291                   if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4292             	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4293             	break
4294                   fi
4295                 fi
4296               done
4297               IFS="$ac_save_ifs"
4298               test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4299               ;;
4300             esac
4301             fi
4302             XGETTEXT="$ac_cv_path_XGETTEXT"
4303             if test -n "$XGETTEXT"; then
4304               echo "$ac_t""$XGETTEXT" 1>&6
4305             else
4306 rizwank 1.1   echo "$ac_t""no" 1>&6
4307             fi
4308             
4309                     
4310             	USE_INCLUDED_LIBINTL=yes
4311                     CATOBJEXT=.gmo
4312                     INSTOBJEXT=.mo
4313                     DATADIRNAME=share
4314             	INTLDEPS='$(top_builddir)/intl/libintl.a'
4315             	INTLLIBS=$INTLDEPS
4316             	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4317                     nls_cv_header_intl=intl/libintl.h
4318                     nls_cv_header_libgt=intl/libgettext.h
4319                   fi
4320             
4321                         if test "$XGETTEXT" != ":"; then
4322             			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4323             	  : ;
4324             	else
4325             	  echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
4326             	  XGETTEXT=":"
4327 rizwank 1.1 	fi
4328                   fi
4329             
4330                   # We need to process the po/ directory.
4331                   POSUB=po
4332                 else
4333                   DATADIRNAME=share
4334                   nls_cv_header_intl=intl/libintl.h
4335                   nls_cv_header_libgt=intl/libgettext.h
4336                 fi
4337                 
4338                 
4339             
4340             
4341                 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4342                 # because some of the sources are only built for this goal.
4343                 if test "$PACKAGE" = gettext; then
4344                   USE_NLS=yes
4345                   USE_INCLUDED_LIBINTL=yes
4346                 fi
4347             
4348 rizwank 1.1                 for lang in $ALL_LINGUAS; do
4349                   GMOFILES="$GMOFILES $lang.gmo"
4350                   POFILES="$POFILES $lang.po"
4351                 done
4352             
4353                     
4354                 
4355                 
4356                 
4357                 
4358                 
4359                 
4360                 
4361                 
4362                 
4363                 
4364               
4365             
4366                if test "x$CATOBJEXT" != "x"; then
4367                  if test "x$ALL_LINGUAS" = "x"; then
4368                    LINGUAS=
4369 rizwank 1.1      else
4370                    echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4371             echo "configure:4372: checking for catalogs to be installed" >&5
4372                    NEW_LINGUAS=
4373                    for lang in ${LINGUAS=$ALL_LINGUAS}; do
4374                      case "$ALL_LINGUAS" in
4375                       *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4376                      esac
4377                    done
4378                    LINGUAS=$NEW_LINGUAS
4379                    echo "$ac_t""$LINGUAS" 1>&6
4380                  fi
4381             
4382                       if test -n "$LINGUAS"; then
4383                    for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4384                  fi
4385                fi
4386             
4387                         if test $ac_cv_header_locale_h = yes; then
4388                  INCLUDE_LOCALE_H="#include <locale.h>"
4389                else
4390 rizwank 1.1      INCLUDE_LOCALE_H="\
4391             /* The system does not provide the header <locale.h>.  Take care yourself.  */"
4392                fi
4393                
4394             
4395                         test -d intl || mkdir intl
4396                if test "$CATOBJEXT" = ".cat"; then
4397                  ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4398             echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4399             echo "configure:4400: checking for linux/version.h" >&5
4400             if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4401               echo $ac_n "(cached) $ac_c" 1>&6
4402             else
4403               cat > conftest.$ac_ext <<EOF
4404             #line 4405 "configure"
4405             #include "confdefs.h"
4406             #include <linux/version.h>
4407             EOF
4408             ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4409             { (eval echo configure:4410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4410             ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4411 rizwank 1.1 if test -z "$ac_err"; then
4412               rm -rf conftest*
4413               eval "ac_cv_header_$ac_safe=yes"
4414             else
4415               echo "$ac_err" >&5
4416               echo "configure: failed program was:" >&5
4417               cat conftest.$ac_ext >&5
4418               rm -rf conftest*
4419               eval "ac_cv_header_$ac_safe=no"
4420             fi
4421             rm -f conftest*
4422             fi
4423             if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4424               echo "$ac_t""yes" 1>&6
4425               msgformat=linux
4426             else
4427               echo "$ac_t""no" 1>&6
4428             msgformat=xopen
4429             fi
4430             
4431             
4432 rizwank 1.1                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4433                fi
4434                   sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4435                  $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4436             
4437                         if test "$PACKAGE" = "gettext"; then
4438                  GT_NO="#NO#"
4439                  GT_YES=
4440                else
4441                  GT_NO=
4442                  GT_YES="#YES#"
4443                fi
4444                
4445                
4446             
4447                         MKINSTALLDIRS=
4448                if test -n "$ac_aux_dir"; then
4449                  MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4450                fi
4451                if test -z "$MKINSTALLDIRS"; then
4452                  MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4453 rizwank 1.1    fi
4454                
4455             
4456                   l=
4457                
4458             
4459                      test -d po || mkdir po
4460                if test "x$srcdir" != "x."; then
4461                  if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4462                    posrcprefix="$srcdir/"
4463                  else
4464                    posrcprefix="../$srcdir/"
4465                  fi
4466                else
4467                  posrcprefix="../"
4468                fi
4469                rm -f po/POTFILES
4470                sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4471             	< $srcdir/po/POTFILES.in > po/POTFILES
4472               
4473             
4474 rizwank 1.1 cat >> confdefs.h <<EOF
4475             #define PATH_SEPARATOR ':'
4476             EOF
4477             
4478             cat >> confdefs.h <<EOF
4479             #define PATH_SEPARATOR_STR ":"
4480             EOF
4481             
4482             
4483             
4484             
4485             # Extract the first word of "perl", so it can be a program name with args.
4486             set dummy perl; ac_word=$2
4487             echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4488             echo "configure:4489: checking for $ac_word" >&5
4489             if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
4490               echo $ac_n "(cached) $ac_c" 1>&6
4491             else
4492               case "$PERL" in
4493               /*)
4494               ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4495 rizwank 1.1   ;;
4496               ?:/*)			 
4497               ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
4498               ;;
4499               *)
4500               IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
4501               ac_dummy="$PATH"
4502               for ac_dir in $ac_dummy; do 
4503                 test -z "$ac_dir" && ac_dir=.
4504                 if test -f $ac_dir/$ac_word; then
4505                   ac_cv_path_PERL="$ac_dir/$ac_word"
4506                   break
4507                 fi
4508               done
4509               IFS="$ac_save_ifs"
4510               ;;
4511             esac
4512             fi
4513             PERL="$ac_cv_path_PERL"
4514             if test -n "$PERL"; then
4515               echo "$ac_t""$PERL" 1>&6
4516 rizwank 1.1 else
4517               echo "$ac_t""no" 1>&6
4518             fi
4519             
4520             
4521             
4522             
4523             
4524             
4525             
4526             trap '' 1 2 15
4527             cat > confcache <<\EOF
4528             # This file is a shell script that caches the results of configure
4529             # tests run on this system so they can be shared between configure
4530             # scripts and configure runs.  It is not useful on other systems.
4531             # If it contains results you don't want to keep, you may remove or edit it.
4532             #
4533             # By default, configure uses ./config.cache as the cache file,
4534             # creating it if it does not exist already.  You can give configure
4535             # the --cache-file=FILE option to use a different cache file; that is
4536             # what configure does when it calls configure scripts in
4537 rizwank 1.1 # subdirectories, so they share the cache.
4538             # Giving --cache-file=/dev/null disables caching, for debugging configure.
4539             # config.status only pays attention to the cache file if you give it the
4540             # --recheck option to rerun configure.
4541             #
4542             EOF
4543             # The following way of writing the cache mishandles newlines in values,
4544             # but we know of no workaround that is simple, portable, and efficient.
4545             # So, don't put newlines in cache variables' values.
4546             # Ultrix sh set writes to stderr and can't be redirected directly,
4547             # and sets the high bit in the cache file unless we assign to the vars.
4548             (set) 2>&1 |
4549               case `(ac_space=' '; set | grep ac_space) 2>&1` in
4550               *ac_space=\ *)
4551                 # `set' does not quote correctly, so add quotes (double-quote substitution
4552                 # turns \\\\ into \\, and sed turns \\ into \).
4553                 sed -n \
4554                   -e "s/'/'\\\\''/g" \
4555                   -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4556                 ;;
4557               *)
4558 rizwank 1.1     # `set' quotes correctly as required by POSIX, so do not add quotes.
4559                 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4560                 ;;
4561               esac >> confcache
4562             if cmp -s $cache_file confcache; then
4563               :
4564             else
4565               if test -w $cache_file; then
4566                 echo "updating cache $cache_file"
4567                 cat confcache > $cache_file
4568               else
4569                 echo "not updating unwritable cache $cache_file"
4570               fi
4571             fi
4572             rm -f confcache
4573             
4574             trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4575             
4576             test "x$prefix" = xNONE && prefix=$ac_default_prefix
4577             # Let make expand exec_prefix.
4578             test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4579 rizwank 1.1 
4580             # Any assignment to VPATH causes Sun make to only execute
4581             # the first set of double-colon rules, so remove it if not needed.
4582             # If there is a colon in the path, we need to keep it.
4583             if test "x$srcdir" = x.; then
4584               ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
4585             fi
4586             
4587             trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4588             
4589             DEFS=-DHAVE_CONFIG_H
4590             
4591             # Without the "./", some shells look in PATH for config.status.
4592             : ${CONFIG_STATUS=./config.status}
4593             
4594             echo creating $CONFIG_STATUS
4595             rm -f $CONFIG_STATUS
4596             cat > $CONFIG_STATUS <<EOF
4597             #! /bin/sh
4598             # Generated automatically by configure.
4599             # Run this file to recreate the current configuration.
4600 rizwank 1.1 # This directory was configured as follows,
4601             # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4602             #
4603             # $0 $ac_configure_args
4604             #
4605             # Compiler output produced by configure, useful for debugging
4606             # configure, is in ./config.log if it exists.
4607             
4608             ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4609             for ac_option
4610             do
4611               case "\$ac_option" in
4612               -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4613                 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4614                 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4615               -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4616                 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4617                 exit 0 ;;
4618               -help | --help | --hel | --he | --h)
4619                 echo "\$ac_cs_usage"; exit 0 ;;
4620               *) echo "\$ac_cs_usage"; exit 1 ;;
4621 rizwank 1.1   esac
4622             done
4623             
4624             ac_given_srcdir=$srcdir
4625             ac_given_INSTALL="$INSTALL"
4626             
4627             trap 'rm -fr `echo "Makefile \
4628             	compat/Makefile \
4629             	afm/Makefile \
4630             	afmlib/Makefile \
4631             	src/Makefile \
4632             	src/tests/Makefile \
4633             	lib/Makefile \
4634             	scripts/Makefile \
4635             	intl/Makefile \
4636             	po/Makefile.in \
4637             	states/Makefile \
4638             	states/hl/Makefile \
4639             	states/tests/Makefile \
4640             	docs/Makefile \
4641             	w32/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4642 rizwank 1.1 EOF
4643             cat >> $CONFIG_STATUS <<EOF
4644             
4645             # Protect against being on the right side of a sed subst in config.status.
4646             sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4647              s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4648             $ac_vpsub
4649             $extrasub
4650             s%@SHELL@%$SHELL%g
4651             s%@CFLAGS@%$CFLAGS%g
4652             s%@CPPFLAGS@%$CPPFLAGS%g
4653             s%@CXXFLAGS@%$CXXFLAGS%g
4654             s%@FFLAGS@%$FFLAGS%g
4655             s%@DEFS@%$DEFS%g
4656             s%@LDFLAGS@%$LDFLAGS%g
4657             s%@LIBS@%$LIBS%g
4658             s%@exec_prefix@%$exec_prefix%g
4659             s%@prefix@%$prefix%g
4660             s%@program_transform_name@%$program_transform_name%g
4661             s%@bindir@%$bindir%g
4662             s%@sbindir@%$sbindir%g
4663 rizwank 1.1 s%@libexecdir@%$libexecdir%g
4664             s%@datadir@%$datadir%g
4665             s%@sysconfdir@%$sysconfdir%g
4666             s%@sharedstatedir@%$sharedstatedir%g
4667             s%@localstatedir@%$localstatedir%g
4668             s%@libdir@%$libdir%g
4669             s%@includedir@%$includedir%g
4670             s%@oldincludedir@%$oldincludedir%g
4671             s%@infodir@%$infodir%g
4672             s%@mandir@%$mandir%g
4673             s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4674             s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4675             s%@INSTALL_DATA@%$INSTALL_DATA%g
4676             s%@PACKAGE@%$PACKAGE%g
4677             s%@VERSION@%$VERSION%g
4678             s%@ACLOCAL@%$ACLOCAL%g
4679             s%@AUTOCONF@%$AUTOCONF%g
4680             s%@AUTOMAKE@%$AUTOMAKE%g
4681             s%@AUTOHEADER@%$AUTOHEADER%g
4682             s%@MAKEINFO@%$MAKEINFO%g
4683             s%@SET_MAKE@%$SET_MAKE%g
4684 rizwank 1.1 s%@CC@%$CC%g
4685             s%@CPP@%$CPP%g
4686             s%@U@%$U%g
4687             s%@ANSI2KNR@%$ANSI2KNR%g
4688             s%@ALLOCA@%$ALLOCA%g
4689             s%@RANLIB@%$RANLIB%g
4690             s%@YACC@%$YACC%g
4691             s%@LEX@%$LEX%g
4692             s%@LEXLIB@%$LEXLIB%g
4693             s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
4694             s%@MEDIA@%$MEDIA%g
4695             s%@SPOOLER@%$SPOOLER%g
4696             s%@QUEUEPARAM@%$QUEUEPARAM%g
4697             s%@PSLEVEL@%$PSLEVEL%g
4698             s%@USE_NLS@%$USE_NLS%g
4699             s%@MSGFMT@%$MSGFMT%g
4700             s%@GMSGFMT@%$GMSGFMT%g
4701             s%@XGETTEXT@%$XGETTEXT%g
4702             s%@GENCAT@%$GENCAT%g
4703             s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4704             s%@CATALOGS@%$CATALOGS%g
4705 rizwank 1.1 s%@CATOBJEXT@%$CATOBJEXT%g
4706             s%@DATADIRNAME@%$DATADIRNAME%g
4707             s%@GMOFILES@%$GMOFILES%g
4708             s%@INSTOBJEXT@%$INSTOBJEXT%g
4709             s%@INTLDEPS@%$INTLDEPS%g
4710             s%@INTLLIBS@%$INTLLIBS%g
4711             s%@INTLOBJS@%$INTLOBJS%g
4712             s%@POFILES@%$POFILES%g
4713             s%@POSUB@%$POSUB%g
4714             s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4715             s%@GT_NO@%$GT_NO%g
4716             s%@GT_YES@%$GT_YES%g
4717             s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4718             s%@l@%$l%g
4719             s%@PERL@%$PERL%g
4720             s%@LIBOBJS@%$LIBOBJS%g
4721             
4722             CEOF
4723             EOF
4724             
4725             cat >> $CONFIG_STATUS <<\EOF
4726 rizwank 1.1 
4727             # Split the substitutions into bite-sized pieces for seds with
4728             # small command number limits, like on Digital OSF/1 and HP-UX.
4729             ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4730             ac_file=1 # Number of current file.
4731             ac_beg=1 # First line for current file.
4732             ac_end=$ac_max_sed_cmds # Line after last line for current file.
4733             ac_more_lines=:
4734             ac_sed_cmds=""
4735             while $ac_more_lines; do
4736               if test $ac_beg -gt 1; then
4737                 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4738               else
4739                 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4740               fi
4741               if test ! -s conftest.s$ac_file; then
4742                 ac_more_lines=false
4743                 rm -f conftest.s$ac_file
4744               else
4745                 if test -z "$ac_sed_cmds"; then
4746                   ac_sed_cmds="sed -f conftest.s$ac_file"
4747 rizwank 1.1     else
4748                   ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4749                 fi
4750                 ac_file=`expr $ac_file + 1`
4751                 ac_beg=$ac_end
4752                 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4753               fi
4754             done
4755             if test -z "$ac_sed_cmds"; then
4756               ac_sed_cmds=cat
4757             fi
4758             EOF
4759             
4760             cat >> $CONFIG_STATUS <<EOF
4761             
4762             CONFIG_FILES=\${CONFIG_FILES-"Makefile \
4763             	compat/Makefile \
4764             	afm/Makefile \
4765             	afmlib/Makefile \
4766             	src/Makefile \
4767             	src/tests/Makefile \
4768 rizwank 1.1 	lib/Makefile \
4769             	scripts/Makefile \
4770             	intl/Makefile \
4771             	po/Makefile.in \
4772             	states/Makefile \
4773             	states/hl/Makefile \
4774             	states/tests/Makefile \
4775             	docs/Makefile \
4776             	w32/Makefile"}
4777             EOF
4778             cat >> $CONFIG_STATUS <<\EOF
4779             for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4780               # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4781               case "$ac_file" in
4782               *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4783                    ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4784               *) ac_file_in="${ac_file}.in" ;;
4785               esac
4786             
4787               # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4788             
4789 rizwank 1.1   # Remove last slash and all that follows it.  Not all systems have dirname.
4790               ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4791               if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4792                 # The file is in a subdirectory.
4793                 test ! -d "$ac_dir" && mkdir "$ac_dir"
4794                 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4795                 # A "../" for each directory in $ac_dir_suffix.
4796                 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4797               else
4798                 ac_dir_suffix= ac_dots=
4799               fi
4800             
4801               case "$ac_given_srcdir" in
4802               .)  srcdir=.
4803                   if test -z "$ac_dots"; then top_srcdir=.
4804                   else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4805               /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4806               *) # Relative path.
4807                 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4808                 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4809               esac
4810 rizwank 1.1 
4811               case "$ac_given_INSTALL" in
4812               [/$]*) INSTALL="$ac_given_INSTALL" ;;
4813               *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4814               esac
4815             
4816               echo creating "$ac_file"
4817               rm -f "$ac_file"
4818               configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4819               case "$ac_file" in
4820               *Makefile*) ac_comsub="1i\\
4821             # $configure_input" ;;
4822               *) ac_comsub= ;;
4823               esac
4824             
4825               ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4826               sed -e "$ac_comsub
4827             s%@configure_input@%$configure_input%g
4828             s%@srcdir@%$srcdir%g
4829             s%@top_srcdir@%$top_srcdir%g
4830             s%@INSTALL@%$INSTALL%g
4831 rizwank 1.1 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4832             fi; done
4833             rm -f conftest.s*
4834             
4835             # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4836             # NAME is the cpp macro being defined and VALUE is the value it is being given.
4837             #
4838             # ac_d sets the value in "#define NAME VALUE" lines.
4839             ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4840             ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
4841             ac_dC='\3'
4842             ac_dD='%g'
4843             # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4844             ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4845             ac_uB='\([ 	]\)%\1#\2define\3'
4846             ac_uC=' '
4847             ac_uD='\4%g'
4848             # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4849             ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4850             ac_eB='$%\1#\2define\3'
4851             ac_eC=' '
4852 rizwank 1.1 ac_eD='%g'
4853             
4854             if test "${CONFIG_HEADERS+set}" != set; then
4855             EOF
4856             cat >> $CONFIG_STATUS <<EOF
4857               CONFIG_HEADERS="config.h"
4858             EOF
4859             cat >> $CONFIG_STATUS <<\EOF
4860             fi
4861             for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4862               # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4863               case "$ac_file" in
4864               *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4865                    ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4866               *) ac_file_in="${ac_file}.in" ;;
4867               esac
4868             
4869               echo creating $ac_file
4870             
4871               rm -f conftest.frag conftest.in conftest.out
4872               ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4873 rizwank 1.1   cat $ac_file_inputs > conftest.in
4874             
4875             EOF
4876             
4877             # Transform confdefs.h into a sed script conftest.vals that substitutes
4878             # the proper values into config.h.in to produce config.h.  And first:
4879             # Protect against being on the right side of a sed subst in config.status.
4880             # Protect against being in an unquoted here document in config.status.
4881             rm -f conftest.vals
4882             cat > conftest.hdr <<\EOF
4883             s/[\\&%]/\\&/g
4884             s%[\\$`]%\\&%g
4885             s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4886             s%ac_d%ac_u%gp
4887             s%ac_u%ac_e%gp
4888             EOF
4889             sed -n -f conftest.hdr confdefs.h > conftest.vals
4890             rm -f conftest.hdr
4891             
4892             # This sed command replaces #undef with comments.  This is necessary, for
4893             # example, in the case of _POSIX_SOURCE, which is predefined and required
4894 rizwank 1.1 # on some systems where configure will not decide to define it.
4895             cat >> conftest.vals <<\EOF
4896             s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4897             EOF
4898             
4899             # Break up conftest.vals because some shells have a limit on
4900             # the size of here documents, and old seds have small limits too.
4901             
4902             rm -f conftest.tail
4903             while :
4904             do
4905               ac_lines=`grep -c . conftest.vals`
4906               # grep -c gives empty output for an empty file on some AIX systems.
4907               if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4908               # Write a limited-size here document to conftest.frag.
4909               echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4910               sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4911               echo 'CEOF
4912               sed -f conftest.frag conftest.in > conftest.out
4913               rm -f conftest.in
4914               mv conftest.out conftest.in
4915 rizwank 1.1 ' >> $CONFIG_STATUS
4916               sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4917               rm -f conftest.vals
4918               mv conftest.tail conftest.vals
4919             done
4920             rm -f conftest.vals
4921             
4922             cat >> $CONFIG_STATUS <<\EOF
4923               rm -f conftest.frag conftest.h
4924               echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4925               cat conftest.in >> conftest.h
4926               rm -f conftest.in
4927               if cmp -s $ac_file conftest.h 2>/dev/null; then
4928                 echo "$ac_file is unchanged"
4929                 rm -f conftest.h
4930               else
4931                 # Remove last slash and all that follows it.  Not all systems have dirname.
4932                   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4933                   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4934                   # The file is in a subdirectory.
4935                   test ! -d "$ac_dir" && mkdir "$ac_dir"
4936 rizwank 1.1     fi
4937                 rm -f $ac_file
4938                 mv conftest.h $ac_file
4939               fi
4940             fi; done
4941             
4942             EOF
4943             
4944             cat >> $CONFIG_STATUS <<EOF
4945             ac_sources="$nls_cv_header_libgt"
4946             ac_dests="$nls_cv_header_intl"
4947             EOF
4948             
4949             cat >> $CONFIG_STATUS <<\EOF
4950             srcdir=$ac_given_srcdir
4951             while test -n "$ac_sources"; do
4952               set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4953               set $ac_sources; ac_source=$1; shift; ac_sources=$*
4954             
4955               echo "linking $srcdir/$ac_source to $ac_dest"
4956             
4957 rizwank 1.1   if test ! -r $srcdir/$ac_source; then
4958                 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4959               fi
4960               rm -f $ac_dest
4961             
4962               # Make relative symlinks.
4963               # Remove last slash and all that follows it.  Not all systems have dirname.
4964               ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4965               if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4966                 # The dest file is in a subdirectory.
4967                 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4968                 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4969                 # A "../" for each directory in $ac_dest_dir_suffix.
4970                 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4971               else
4972                 ac_dest_dir_suffix= ac_dots=
4973               fi
4974             
4975               case "$srcdir" in
4976               [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4977               *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4978 rizwank 1.1   esac
4979             
4980               # Make a symlink if possible; otherwise try a hard link.
4981               if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4982                 ln $srcdir/$ac_source $ac_dest; then :
4983               else
4984                 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4985               fi
4986             done
4987             EOF
4988             cat >> $CONFIG_STATUS <<EOF
4989             
4990             
4991             
4992             EOF
4993             cat >> $CONFIG_STATUS <<\EOF
4994             test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4995             case "$CONFIG_FILES" in *po/Makefile.in*)
4996                     sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
4997                   esac
4998             sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile
4999 rizwank 1.1 exit 0
5000             EOF
5001             chmod +x $CONFIG_STATUS
5002             rm -fr confdefs* $ac_clean_files
5003             test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5004             
5005             
5006             echo ""
5007             
5008             echo "Enscript is now configured to your system with the following"
5009             echo "user-definable options.  Please, check that they are correct and"
5010             echo "match to your system's properties."
5011             echo ""
5012             echo "Option     Change with configure's option   Current value"
5013             echo "---------------------------------------------------------"
5014             echo "Media      --with-media=MEDIA               $MEDIA"
5015             echo "Spooler    --with-spooler=SPOOLER           $SPOOLER"
5016             echo "PS level   --with-ps-level=LEVEL            $PSLEVEL"
5017             echo "QueueParam --with-queue-param=PARAM         $QUEUEPARAM"
5018             echo ""

Rizwan Kassim
Powered by
ViewCVS 0.9.2