source: trunk/third/libghttp/configure @ 15620

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