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