root/branches/licq/licq/configure

Revision 17, 89.3 kB (checked in by dwalker, 9 years ago)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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:
14ac_help="$ac_help
15  --enable-socks5         enable SOCKS5 firewall support"
16ac_help="$ac_help
17  --with-socks5-inc=PATH  include path for SOCKS5 headers"
18ac_help="$ac_help
19  --with-socks5-lib=PATH  library path for SOCKS5 libraries"
20
21# Initialize some variables set by options.
22# The variables have the same names as the options, with
23# dashes changed to underlines.
24build=NONE
25cache_file=./config.cache
26exec_prefix=NONE
27host=NONE
28no_create=
29nonopt=NONE
30no_recursion=
31prefix=NONE
32program_prefix=NONE
33program_suffix=NONE
34program_transform_name=s,x,x,
35silent=
36site=
37srcdir=
38target=NONE
39verbose=
40x_includes=NONE
41x_libraries=NONE
42bindir='${exec_prefix}/bin'
43sbindir='${exec_prefix}/sbin'
44libexecdir='${exec_prefix}/libexec'
45datadir='${prefix}/share'
46sysconfdir='${prefix}/etc'
47sharedstatedir='${prefix}/com'
48localstatedir='${prefix}/var'
49libdir='${exec_prefix}/lib'
50includedir='${prefix}/include'
51oldincludedir='/usr/include'
52infodir='${prefix}/info'
53mandir='${prefix}/man'
54
55# Initialize some other variables.
56subdirs=
57MFLAGS= MAKEFLAGS=
58SHELL=${CONFIG_SHELL-/bin/sh}
59# Maximum number of lines to put in a shell here document.
60ac_max_here_lines=12
61
62ac_prev=
63for ac_option
64do
65
66  # If the previous option needs an argument, assign it.
67  if test -n "$ac_prev"; then
68    eval "$ac_prev=\$ac_option"
69    ac_prev=
70    continue
71  fi
72
73  case "$ac_option" in
74  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75  *) ac_optarg= ;;
76  esac
77
78  # Accept the important Cygnus configure options, so we can diagnose typos.
79
80  case "$ac_option" in
81
82  -bindir | --bindir | --bindi | --bind | --bin | --bi)
83    ac_prev=bindir ;;
84  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85    bindir="$ac_optarg" ;;
86
87  -build | --build | --buil | --bui | --bu)
88    ac_prev=build ;;
89  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90    build="$ac_optarg" ;;
91
92  -cache-file | --cache-file | --cache-fil | --cache-fi \
93  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94    ac_prev=cache_file ;;
95  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97    cache_file="$ac_optarg" ;;
98
99  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100    ac_prev=datadir ;;
101  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102  | --da=*)
103    datadir="$ac_optarg" ;;
104
105  -disable-* | --disable-*)
106    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107    # Reject names that are not valid shell variable names.
108    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
110    fi
111    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112    eval "enable_${ac_feature}=no" ;;
113
114  -enable-* | --enable-*)
115    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116    # Reject names that are not valid shell variable names.
117    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119    fi
120    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121    case "$ac_option" in
122      *=*) ;;
123      *) ac_optarg=yes ;;
124    esac
125    eval "enable_${ac_feature}='$ac_optarg'" ;;
126
127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129  | --exec | --exe | --ex)
130    ac_prev=exec_prefix ;;
131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133  | --exec=* | --exe=* | --ex=*)
134    exec_prefix="$ac_optarg" ;;
135
136  -gas | --gas | --ga | --g)
137    # Obsolete; use --with-gas.
138    with_gas=yes ;;
139
140  -help | --help | --hel | --he)
141    # Omit some internal or obsolete options to make the list less imposing.
142    # This message is too long to be a string in the A/UX 3.1 sh.
143    cat << EOF
144Usage: configure [options] [host]
145Options: [defaults in brackets after descriptions]
146Configuration:
147  --cache-file=FILE       cache test results in FILE
148  --help                  print this message
149  --no-create             do not create output files
150  --quiet, --silent       do not print \`checking...' messages
151  --version               print the version of autoconf that created configure
152Directory and file names:
153  --prefix=PREFIX         install architecture-independent files in PREFIX
154                          [$ac_default_prefix]
155  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
156                          [same as prefix]
157  --bindir=DIR            user executables in DIR [EPREFIX/bin]
158  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
159  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
160  --datadir=DIR           read-only architecture-independent data in DIR
161                          [PREFIX/share]
162  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
163  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
164                          [PREFIX/com]
165  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
166  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
167  --includedir=DIR        C header files in DIR [PREFIX/include]
168  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
169  --infodir=DIR           info documentation in DIR [PREFIX/info]
170  --mandir=DIR            man documentation in DIR [PREFIX/man]
171  --srcdir=DIR            find the sources in DIR [configure dir or ..]
172  --program-prefix=PREFIX prepend PREFIX to installed program names
173  --program-suffix=SUFFIX append SUFFIX to installed program names
174  --program-transform-name=PROGRAM
175                          run sed PROGRAM on installed program names
176EOF
177    cat << EOF
178Host type:
179  --build=BUILD           configure for building on BUILD [BUILD=HOST]
180  --host=HOST             configure for HOST [guessed]
181  --target=TARGET         configure for TARGET [TARGET=HOST]
182Features and packages:
183  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
184  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
185  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
186  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
187  --x-includes=DIR        X include files are in DIR
188  --x-libraries=DIR       X library files are in DIR
189EOF
190    if test -n "$ac_help"; then
191      echo "--enable and --with options recognized:$ac_help"
192    fi
193    exit 0 ;;
194
195  -host | --host | --hos | --ho)
196    ac_prev=host ;;
197  -host=* | --host=* | --hos=* | --ho=*)
198    host="$ac_optarg" ;;
199
200  -includedir | --includedir | --includedi | --included | --include \
201  | --includ | --inclu | --incl | --inc)
202    ac_prev=includedir ;;
203  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204  | --includ=* | --inclu=* | --incl=* | --inc=*)
205    includedir="$ac_optarg" ;;
206
207  -infodir | --infodir | --infodi | --infod | --info | --inf)
208    ac_prev=infodir ;;
209  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210    infodir="$ac_optarg" ;;
211
212  -libdir | --libdir | --libdi | --libd)
213    ac_prev=libdir ;;
214  -libdir=* | --libdir=* | --libdi=* | --libd=*)
215    libdir="$ac_optarg" ;;
216
217  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218  | --libexe | --libex | --libe)
219    ac_prev=libexecdir ;;
220  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221  | --libexe=* | --libex=* | --libe=*)
222    libexecdir="$ac_optarg" ;;
223
224  -localstatedir | --localstatedir | --localstatedi | --localstated \
225  | --localstate | --localstat | --localsta | --localst \
226  | --locals | --local | --loca | --loc | --lo)
227    ac_prev=localstatedir ;;
228  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231    localstatedir="$ac_optarg" ;;
232
233  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234    ac_prev=mandir ;;
235  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236    mandir="$ac_optarg" ;;
237
238  -nfp | --nfp | --nf)
239    # Obsolete; use --without-fp.
240    with_fp=no ;;
241
242  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243  | --no-cr | --no-c)
244    no_create=yes ;;
245
246  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248    no_recursion=yes ;;
249
250  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252  | --oldin | --oldi | --old | --ol | --o)
253    ac_prev=oldincludedir ;;
254  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257    oldincludedir="$ac_optarg" ;;
258
259  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260    ac_prev=prefix ;;
261  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262    prefix="$ac_optarg" ;;
263
264  -program-prefix | --program-prefix | --program-prefi | --program-pref \
265  | --program-pre | --program-pr | --program-p)
266    ac_prev=program_prefix ;;
267  -program-prefix=* | --program-prefix=* | --program-prefi=* \
268  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269    program_prefix="$ac_optarg" ;;
270
271  -program-suffix | --program-suffix | --program-suffi | --program-suff \
272  | --program-suf | --program-su | --program-s)
273    ac_prev=program_suffix ;;
274  -program-suffix=* | --program-suffix=* | --program-suffi=* \
275  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276    program_suffix="$ac_optarg" ;;
277
278  -program-transform-name | --program-transform-name \
279  | --program-transform-nam | --program-transform-na \
280  | --program-transform-n | --program-transform- \
281  | --program-transform | --program-transfor \
282  | --program-transfo | --program-transf \
283  | --program-trans | --program-tran \
284  | --progr-tra | --program-tr | --program-t)
285    ac_prev=program_transform_name ;;
286  -program-transform-name=* | --program-transform-name=* \
287  | --program-transform-nam=* | --program-transform-na=* \
288  | --program-transform-n=* | --program-transform-=* \
289  | --program-transform=* | --program-transfor=* \
290  | --program-transfo=* | --program-transf=* \
291  | --program-trans=* | --program-tran=* \
292  | --progr-tra=* | --program-tr=* | --program-t=*)
293    program_transform_name="$ac_optarg" ;;
294
295  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296  | -silent | --silent | --silen | --sile | --sil)
297    silent=yes ;;
298
299  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300    ac_prev=sbindir ;;
301  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302  | --sbi=* | --sb=*)
303    sbindir="$ac_optarg" ;;
304
305  -sharedstatedir | --sharedstatedir | --sharedstatedi \
306  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307  | --sharedst | --shareds | --shared | --share | --shar \
308  | --sha | --sh)
309    ac_prev=sharedstatedir ;;
310  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313  | --sha=* | --sh=*)
314    sharedstatedir="$ac_optarg" ;;
315
316  -site | --site | --sit)
317    ac_prev=site ;;
318  -site=* | --site=* | --sit=*)
319    site="$ac_optarg" ;;
320
321  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322    ac_prev=srcdir ;;
323  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324    srcdir="$ac_optarg" ;;
325
326  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327  | --syscon | --sysco | --sysc | --sys | --sy)
328    ac_prev=sysconfdir ;;
329  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331    sysconfdir="$ac_optarg" ;;
332
333  -target | --target | --targe | --targ | --tar | --ta | --t)
334    ac_prev=target ;;
335  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336    target="$ac_optarg" ;;
337
338  -v | -verbose | --verbose | --verbos | --verbo | --verb)
339    verbose=yes ;;
340
341  -version | --version | --versio | --versi | --vers)
342    echo "configure generated by autoconf version 2.13"
343    exit 0 ;;
344
345  -with-* | --with-*)
346    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347    # Reject names that are not valid shell variable names.
348    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
350    fi
351    ac_package=`echo $ac_package| sed 's/-/_/g'`
352    case "$ac_option" in
353      *=*) ;;
354      *) ac_optarg=yes ;;
355    esac
356    eval "with_${ac_package}='$ac_optarg'" ;;
357
358  -without-* | --without-*)
359    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360    # Reject names that are not valid shell variable names.
361    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363    fi
364    ac_package=`echo $ac_package| sed 's/-/_/g'`
365    eval "with_${ac_package}=no" ;;
366
367  --x)
368    # Obsolete; use --with-x.
369    with_x=yes ;;
370
371  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372  | --x-incl | --x-inc | --x-in | --x-i)
373    ac_prev=x_includes ;;
374  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376    x_includes="$ac_optarg" ;;
377
378  -x-libraries | --x-libraries | --x-librarie | --x-librari \
379  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380    ac_prev=x_libraries ;;
381  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383    x_libraries="$ac_optarg" ;;
384
385  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386    ;;
387
388  *)
389    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390      echo "configure: warning: $ac_option: invalid host type" 1>&2
391    fi
392    if test "x$nonopt" != xNONE; then
393      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
394    fi
395    nonopt="$ac_option"
396    ;;
397
398  esac
399done
400
401if test -n "$ac_prev"; then
402  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403fi
404
405trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
406
407# File descriptor usage:
408# 0 standard input
409# 1 file creation
410# 2 errors and warnings
411# 3 some systems may open it to /dev/tty
412# 4 used on the Kubota Titan
413# 6 checking for... messages and results
414# 5 compiler messages saved in config.log
415if test "$silent" = yes; then
416  exec 6>/dev/null
417else
418  exec 6>&1
419fi
420exec 5>./config.log
421
422echo "\
423This file contains any messages produced by compilers while
424running configure, to aid debugging if configure makes a mistake.
425" 1>&5
426
427# Strip out --no-create and --no-recursion so they do not pile up.
428# Also quote any args containing shell metacharacters.
429ac_configure_args=
430for ac_arg
431do
432  case "$ac_arg" in
433  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434  | --no-cr | --no-c) ;;
435  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440  esac
441done
442
443# NLS nuisances.
444# Only set these to C if already set.  These must not be set unconditionally
445# because not all systems understand e.g. LANG=C (notably SCO).
446# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447# Non-C LC_CTYPE values break the ctype check.
448if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
449if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
452
453# confdefs.h avoids OS command line length limits that DEFS can exceed.
454rm -rf conftest* confdefs.h
455# AIX cpp loses on an empty file, so make sure it contains at least a newline.
456echo > confdefs.h
457
458# A filename unique to this package, relative to the directory that
459# configure is in, which we can look for to find out if srcdir is correct.
460ac_unique_file=src/licq.h
461
462# Find the source files, if location was not specified.
463if test -z "$srcdir"; then
464  ac_srcdir_defaulted=yes
465  # Try the directory containing this script, then its parent.
466  ac_prog=$0
467  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469  srcdir=$ac_confdir
470  if test ! -r $srcdir/$ac_unique_file; then
471    srcdir=..
472  fi
473else
474  ac_srcdir_defaulted=no
475fi
476if test ! -r $srcdir/$ac_unique_file; then
477  if test "$ac_srcdir_defaulted" = yes; then
478    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479  else
480    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481  fi
482fi
483srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
484
485# Prefer explicitly selected file to automatically selected ones.
486if test -z "$CONFIG_SITE"; then
487  if test "x$prefix" != xNONE; then
488    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489  else
490    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
491  fi
492fi
493for ac_site_file in $CONFIG_SITE; do
494  if test -r "$ac_site_file"; then
495    echo "loading site script $ac_site_file"
496    . "$ac_site_file"
497  fi
498done
499
500if test -r "$cache_file"; then
501  echo "loading cache $cache_file"
502  . $cache_file
503else
504  echo "creating cache $cache_file"
505  > $cache_file
506fi
507
508ac_ext=c
509# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510ac_cpp='$CPP $CPPFLAGS'
511ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513cross_compiling=$ac_cv_prog_cc_cross
514
515ac_exeext=
516ac_objext=o
517if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520    ac_n= ac_c='
521' ac_t='    '
522  else
523    ac_n=-n ac_c= ac_t=
524  fi
525else
526  ac_n= ac_c='\c' ac_t=
527fi
528
529
530
531
532PACKAGE=Licq
533VERSION=0.70h
534INT_VERSION=708
535
536cat >> confdefs.h <<EOF
537#define PACKAGE "$PACKAGE"
538EOF
539
540cat >> confdefs.h <<EOF
541#define VERSION "$VERSION"
542EOF
543
544cat >> confdefs.h <<EOF
545#define INT_VERSION $INT_VERSION
546EOF
547
548
549
550
551
552ac_aux_dir=
553for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554  if 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  elif test -f $ac_dir/install.sh; then
559    ac_aux_dir=$ac_dir
560    ac_install_sh="$ac_aux_dir/install.sh -c"
561    break
562  fi
563done
564if test -z "$ac_aux_dir"; then
565  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
566fi
567ac_config_guess=$ac_aux_dir/config.guess
568ac_config_sub=$ac_aux_dir/config.sub
569ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
570
571
572# Do some error checking and defaulting for the host and target type.
573# The inputs are:
574#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
575#
576# The rules are:
577# 1. You are not allowed to specify --host, --target, and nonopt at the
578#    same time.
579# 2. Host defaults to nonopt.
580# 3. If nonopt is not specified, then host defaults to the current host,
581#    as determined by config.guess.
582# 4. Target and build default to nonopt.
583# 5. If nonopt is not specified, then target and build default to host.
584
585# The aliases save the names the user supplied, while $host etc.
586# will get canonicalized.
587case $host---$target---$nonopt in
588NONE---*---* | *---NONE---* | *---*---NONE) ;;
589*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
590esac
591
592
593# Make sure we can run config.sub.
594if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
595else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
596fi
597
598echo $ac_n "checking host system type""... $ac_c" 1>&6
599echo "configure:600: checking host system type" >&5
600
601host_alias=$host
602case "$host_alias" in
603NONE)
604  case $nonopt in
605  NONE)
606    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
607    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608    fi ;;
609  *) host_alias=$nonopt ;;
610  esac ;;
611esac
612
613host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
614host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
615host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
616host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
617echo "$ac_t""$host" 1>&6
618
619echo $ac_n "checking target system type""... $ac_c" 1>&6
620echo "configure:621: checking target system type" >&5
621
622target_alias=$target
623case "$target_alias" in
624NONE)
625  case $nonopt in
626  NONE) target_alias=$host_alias ;;
627  *) target_alias=$nonopt ;;
628  esac ;;
629esac
630
631target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
632target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
633target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
634target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
635echo "$ac_t""$target" 1>&6
636
637echo $ac_n "checking build system type""... $ac_c" 1>&6
638echo "configure:639: checking build system type" >&5
639
640build_alias=$build
641case "$build_alias" in
642NONE)
643  case $nonopt in
644  NONE) build_alias=$host_alias ;;
645  *) build_alias=$nonopt ;;
646  esac ;;
647esac
648
649build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
650build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
651build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
652build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
653echo "$ac_t""$build" 1>&6
654
655test "$host_alias" != "$target_alias" &&
656  test "$program_prefix$program_suffix$program_transform_name" = \
657    NONENONEs,x,x, &&
658  program_prefix=${target_alias}-
659
660case "$host" in
661    *-*-openbsd*)
662        CFLAGS="$CFLAGS -pthread"
663        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
664        CXXFLAGS="$CXXFLAGS -pthread"
665        echo "Setting OpenBSD compilation options"
666        ;;
667    *-*-freebsd*)
668        CFLAGS="$CFLAGS -pthread"
669        CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
670        CXXFLAGS="$CXXFLAGS -pthread"
671        echo "Setting FreeBSD compilation options"
672        ;;
673    *-*-solaris*)
674        CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DPIC -fPIC"
675        CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
676        echo "Setting Solaris compilation options"
677        ;;
678    *-*-linux*)
679        CPPFLAGS="$CPPFLAGS -fPIC -DPIC"
680        CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
681        echo "Setting Linux compilation options"
682        ;;
683    *)
684        echo "Licq may not compile on this system. Good luck :-)"
685        ;;
686esac
687
688# Extract the first word of "gcc", so it can be a program name with args.
689set dummy gcc; ac_word=$2
690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691echo "configure:692: checking for $ac_word" >&5
692if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693  echo $ac_n "(cached) $ac_c" 1>&6
694else
695  if test -n "$CC"; then
696  ac_cv_prog_CC="$CC" # Let the user override the test.
697else
698  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
699  ac_dummy="$PATH"
700  for ac_dir in $ac_dummy; do
701    test -z "$ac_dir" && ac_dir=.
702    if test -f $ac_dir/$ac_word; then
703      ac_cv_prog_CC="gcc"
704      break
705    fi
706  done
707  IFS="$ac_save_ifs"
708fi
709fi
710CC="$ac_cv_prog_CC"
711if test -n "$CC"; then
712  echo "$ac_t""$CC" 1>&6
713else
714  echo "$ac_t""no" 1>&6
715fi
716
717if test -z "$CC"; then
718  # Extract the first word of "cc", so it can be a program name with args.
719set dummy cc; ac_word=$2
720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
721echo "configure:722: checking for $ac_word" >&5
722if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
723  echo $ac_n "(cached) $ac_c" 1>&6
724else
725  if test -n "$CC"; then
726  ac_cv_prog_CC="$CC" # Let the user override the test.
727else
728  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
729  ac_prog_rejected=no
730  ac_dummy="$PATH"
731  for ac_dir in $ac_dummy; do
732    test -z "$ac_dir" && ac_dir=.
733    if test -f $ac_dir/$ac_word; then
734      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
735        ac_prog_rejected=yes
736    continue
737      fi
738      ac_cv_prog_CC="cc"
739      break
740    fi
741  done
742  IFS="$ac_save_ifs"
743if test $ac_prog_rejected = yes; then
744  # We found a bogon in the path, so make sure we never use it.
745  set dummy $ac_cv_prog_CC
746  shift
747  if test $# -gt 0; then
748    # We chose a different compiler from the bogus one.
749    # However, it has the same basename, so the bogon will be chosen
750    # first if we set CC to just the basename; use the full file name.
751    shift
752    set dummy "$ac_dir/$ac_word" "$@"
753    shift
754    ac_cv_prog_CC="$@"
755  fi
756fi
757fi
758fi
759CC="$ac_cv_prog_CC"
760if test -n "$CC"; then
761  echo "$ac_t""$CC" 1>&6
762else
763  echo "$ac_t""no" 1>&6
764fi
765
766  if test -z "$CC"; then
767    case "`uname -s`" in
768    *win32* | *WIN32*)
769      # Extract the first word of "cl", so it can be a program name with args.
770set dummy cl; ac_word=$2
771echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772echo "configure:773: checking for $ac_word" >&5
773if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
774  echo $ac_n "(cached) $ac_c" 1>&6
775else
776  if test -n "$CC"; then
777  ac_cv_prog_CC="$CC" # Let the user override the test.
778else
779  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
780  ac_dummy="$PATH"
781  for ac_dir in $ac_dummy; do
782    test -z "$ac_dir" && ac_dir=.
783    if test -f $ac_dir/$ac_word; then
784      ac_cv_prog_CC="cl"
785      break
786    fi
787  done
788  IFS="$ac_save_ifs"
789fi
790fi
791CC="$ac_cv_prog_CC"
792if test -n "$CC"; then
793  echo "$ac_t""$CC" 1>&6
794else
795  echo "$ac_t""no" 1>&6
796fi
797 ;;
798    esac
799  fi
800  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
801fi
802
803echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
804echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
805
806ac_ext=c
807# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
808ac_cpp='$CPP $CPPFLAGS'
809ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
810ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
811cross_compiling=$ac_cv_prog_cc_cross
812
813cat > conftest.$ac_ext << EOF
814
815#line 816 "configure"
816#include "confdefs.h"
817
818main(){return(0);}
819EOF
820if { (eval echo configure:821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
821  ac_cv_prog_cc_works=yes
822  # If we can't run a trivial program, we are probably using a cross compiler.
823  if (./conftest; exit) 2>/dev/null; then
824    ac_cv_prog_cc_cross=no
825  else
826    ac_cv_prog_cc_cross=yes
827  fi
828else
829  echo "configure: failed program was:" >&5
830  cat conftest.$ac_ext >&5
831  ac_cv_prog_cc_works=no
832fi
833rm -fr conftest*
834ac_ext=c
835# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
836ac_cpp='$CPP $CPPFLAGS'
837ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
838ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
839cross_compiling=$ac_cv_prog_cc_cross
840
841echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
842if test $ac_cv_prog_cc_works = no; then
843  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
844fi
845echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
846echo "configure:847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
847echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
848cross_compiling=$ac_cv_prog_cc_cross
849
850echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
851echo "configure:852: checking whether we are using GNU C" >&5
852if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
853  echo $ac_n "(cached) $ac_c" 1>&6
854else
855  cat > conftest.c <<EOF
856#ifdef __GNUC__
857  yes;
858#endif
859EOF
860if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
861  ac_cv_prog_gcc=yes
862else
863  ac_cv_prog_gcc=no
864fi
865fi
866
867echo "$ac_t""$ac_cv_prog_gcc" 1>&6
868
869if test $ac_cv_prog_gcc = yes; then
870  GCC=yes
871else
872  GCC=
873fi
874
875ac_test_CFLAGS="${CFLAGS+set}"
876ac_save_CFLAGS="$CFLAGS"
877CFLAGS=
878echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
879echo "configure:880: checking whether ${CC-cc} accepts -g" >&5
880if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
881  echo $ac_n "(cached) $ac_c" 1>&6
882else
883  echo 'void f(){}' > conftest.c
884if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
885  ac_cv_prog_cc_g=yes
886else
887  ac_cv_prog_cc_g=no
888fi
889rm -f conftest*
890
891fi
892
893echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
894if test "$ac_test_CFLAGS" = set; then
895  CFLAGS="$ac_save_CFLAGS"
896elif test $ac_cv_prog_cc_g = yes; then
897  if test "$GCC" = yes; then
898    CFLAGS="-g -O2"
899  else
900    CFLAGS="-g"
901  fi
902else
903  if test "$GCC" = yes; then
904    CFLAGS="-O2"
905  else
906    CFLAGS=
907  fi
908fi
909
910echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
911echo "configure:912: checking how to run the C preprocessor" >&5
912# On Suns, sometimes $CPP names a directory.
913if test -n "$CPP" && test -d "$CPP"; then
914  CPP=
915fi
916if test -z "$CPP"; then
917if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
918  echo $ac_n "(cached) $ac_c" 1>&6
919else
920    # This must be in double quotes, not single quotes, because CPP may get
921  # substituted into the Makefile and "${CC-cc}" will confuse make.
922  CPP="${CC-cc} -E"
923  # On the NeXT, cc -E runs the code through the compiler's parser,
924  # not just through cpp.
925  cat > conftest.$ac_ext <<EOF
926#line 927 "configure"
927#include "confdefs.h"
928#include <assert.h>
929Syntax Error
930EOF
931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932{ (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
934if test -z "$ac_err"; then
935  :
936else
937  echo "$ac_err" >&5
938  echo "configure: failed program was:" >&5
939  cat conftest.$ac_ext >&5
940  rm -rf conftest*
941  CPP="${CC-cc} -E -traditional-cpp"
942  cat > conftest.$ac_ext <<EOF
943#line 944 "configure"
944#include "confdefs.h"
945#include <assert.h>
946Syntax Error
947EOF
948ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
949{ (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
950ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
951if test -z "$ac_err"; then
952  :
953else
954  echo "$ac_err" >&5
955  echo "configure: failed program was:" >&5
956  cat conftest.$ac_ext >&5
957  rm -rf conftest*
958  CPP="${CC-cc} -nologo -E"
959  cat > conftest.$ac_ext <<EOF
960#line 961 "configure"
961#include "confdefs.h"
962#include <assert.h>
963Syntax Error
964EOF
965ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
966{ (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
967ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
968if test -z "$ac_err"; then
969  :
970else
971  echo "$ac_err" >&5
972  echo "configure: failed program was:" >&5
973  cat conftest.$ac_ext >&5
974  rm -rf conftest*
975  CPP=/lib/cpp
976fi
977rm -f conftest*
978fi
979rm -f conftest*
980fi
981rm -f conftest*
982  ac_cv_prog_CPP="$CPP"
983fi
984  CPP="$ac_cv_prog_CPP"
985else
986  ac_cv_prog_CPP="$CPP"
987fi
988echo "$ac_t""$CPP" 1>&6
989
990for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
991do
992# Extract the first word of "$ac_prog", so it can be a program name with args.
993set dummy $ac_prog; ac_word=$2
994echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995echo "configure:996: checking for $ac_word" >&5
996if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
997  echo $ac_n "(cached) $ac_c" 1>&6
998else
999  if test -n "$CXX"; then
1000  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1001else
1002  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1003  ac_dummy="$PATH"
1004  for ac_dir in $ac_dummy; do
1005    test -z "$ac_dir" && ac_dir=.
1006    if test -f $ac_dir/$ac_word; then
1007      ac_cv_prog_CXX="$ac_prog"
1008      break
1009    fi
1010  done
1011  IFS="$ac_save_ifs"
1012fi
1013fi
1014CXX="$ac_cv_prog_CXX"
1015if test -n "$CXX"; then
1016  echo "$ac_t""$CXX" 1>&6
1017else
1018  echo "$ac_t""no" 1>&6
1019fi
1020
1021test -n "$CXX" && break
1022done
1023test -n "$CXX" || CXX="gcc"
1024
1025
1026echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1027echo "configure:1028: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1028
1029ac_ext=C
1030# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1031ac_cpp='$CXXCPP $CPPFLAGS'
1032ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1033ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1034cross_compiling=$ac_cv_prog_cxx_cross
1035
1036cat > conftest.$ac_ext << EOF
1037
1038#line 1039 "configure"
1039#include "confdefs.h"
1040
1041int main(){return(0);}
1042EOF
1043if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1044  ac_cv_prog_cxx_works=yes
1045  # If we can't run a trivial program, we are probably using a cross compiler.
1046  if (./conftest; exit) 2>/dev/null; then
1047    ac_cv_prog_cxx_cross=no
1048  else
1049    ac_cv_prog_cxx_cross=yes
1050  fi
1051else
1052  echo "configure: failed program was:" >&5
1053  cat conftest.$ac_ext >&5
1054  ac_cv_prog_cxx_works=no
1055fi
1056rm -fr conftest*
1057ac_ext=c
1058# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1059ac_cpp='$CPP $CPPFLAGS'
1060ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1061ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1062cross_compiling=$ac_cv_prog_cc_cross
1063
1064echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1065if test $ac_cv_prog_cxx_works = no; then
1066  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1067fi
1068echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1069echo "configure:1070: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1070echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1071cross_compiling=$ac_cv_prog_cxx_cross
1072
1073echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1074echo "configure:1075: checking whether we are using GNU C++" >&5
1075if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1076  echo $ac_n "(cached) $ac_c" 1>&6
1077else
1078  cat > conftest.C <<EOF
1079#ifdef __GNUC__
1080  yes;
1081#endif
1082EOF
1083if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1084  ac_cv_prog_gxx=yes
1085else
1086  ac_cv_prog_gxx=no
1087fi
1088fi
1089
1090echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1091
1092if test $ac_cv_prog_gxx = yes; then
1093  GXX=yes
1094else
1095  GXX=
1096fi
1097
1098ac_test_CXXFLAGS="${CXXFLAGS+set}"
1099ac_save_CXXFLAGS="$CXXFLAGS"
1100CXXFLAGS=
1101echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1102echo "configure:1103: checking whether ${CXX-g++} accepts -g" >&5
1103if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1104  echo $ac_n "(cached) $ac_c" 1>&6
1105else
1106  echo 'void f(){}' > conftest.cc
1107if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1108  ac_cv_prog_cxx_g=yes
1109else
1110  ac_cv_prog_cxx_g=no
1111fi
1112rm -f conftest*
1113
1114fi
1115
1116echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1117if test "$ac_test_CXXFLAGS" = set; then
1118  CXXFLAGS="$ac_save_CXXFLAGS"
1119elif test $ac_cv_prog_cxx_g = yes; then
1120  if test "$GXX" = yes; then
1121    CXXFLAGS="-g -O2"
1122  else
1123    CXXFLAGS="-g"
1124  fi
1125else
1126  if test "$GXX" = yes; then
1127    CXXFLAGS="-O2"
1128  else
1129    CXXFLAGS=
1130  fi
1131fi
1132
1133echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1134echo "configure:1135: checking how to run the C++ preprocessor" >&5
1135if test -z "$CXXCPP"; then
1136if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1137  echo $ac_n "(cached) $ac_c" 1>&6
1138else
1139  ac_ext=C
1140# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1141ac_cpp='$CXXCPP $CPPFLAGS'
1142ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1143ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1144cross_compiling=$ac_cv_prog_cxx_cross
1145  CXXCPP="${CXX-g++} -E"
1146  cat > conftest.$ac_ext <<EOF
1147#line 1148 "configure"
1148#include "confdefs.h"
1149#include <stdlib.h>
1150EOF
1151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1152{ (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1154if test -z "$ac_err"; then
1155  :
1156else
1157  echo "$ac_err" >&5
1158  echo "configure: failed program was:" >&5
1159  cat conftest.$ac_ext >&5
1160  rm -rf conftest*
1161  CXXCPP=/lib/cpp
1162fi
1163rm -f conftest*
1164  ac_cv_prog_CXXCPP="$CXXCPP"
1165ac_ext=c
1166# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167ac_cpp='$CPP $CPPFLAGS'
1168ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170cross_compiling=$ac_cv_prog_cc_cross
1171fi
1172fi
1173CXXCPP="$ac_cv_prog_CXXCPP"
1174echo "$ac_t""$CXXCPP" 1>&6
1175
1176echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1177echo "configure:1178: checking whether ${MAKE-make} sets \${MAKE}" >&5
1178set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1179if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1180  echo $ac_n "(cached) $ac_c" 1>&6
1181else
1182  cat > conftestmake <<\EOF
1183all:
1184    @echo 'ac_maketemp="${MAKE}"'
1185EOF
1186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1187eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1188if test -n "$ac_maketemp"; then
1189  eval ac_cv_prog_make_${ac_make}_set=yes
1190else
1191  eval ac_cv_prog_make_${ac_make}_set=no
1192fi
1193rm -f conftestmake
1194fi
1195if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1196  echo "$ac_t""yes" 1>&6
1197  SET_MAKE=
1198else
1199  echo "$ac_t""no" 1>&6
1200  SET_MAKE="MAKE=${MAKE-make}"
1201fi
1202
1203# Find a good install program.  We prefer a C program (faster),
1204# so one script is as good as another.  But avoid the broken or
1205# incompatible versions:
1206# SysV /etc/install, /usr/sbin/install
1207# SunOS /usr/etc/install
1208# IRIX /sbin/install
1209# AIX /bin/install
1210# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1211# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1212# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1213# ./install, which can be erroneously created by make from ./install.sh.
1214echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1215echo "configure:1216: checking for a BSD compatible install" >&5
1216if test -z "$INSTALL"; then
1217if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1218  echo $ac_n "(cached) $ac_c" 1>&6
1219else
1220    IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
1221  for ac_dir in $PATH; do
1222    # Account for people who put trailing slashes in PATH elements.
1223    case "$ac_dir/" in
1224    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/s