blob: 36a197693610d1577a911f9688e296f7f4781fe8 [file] [log] [blame]
Upstreamcc2ee171970-01-12 13:46:40 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libop/op_config.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar RANLIB ac_ct_RANLIB DATE OPROFILE_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LD KSRC KINC kernel_support_TRUE kernel_support_FALSE KVERS OPROFILE_MODULE_ARCH MODINSTALLDIR EXTRA_CFLAGS_MODULE topdir EGREP SIZE_T_TYPE PTRDIFF_T_TYPE CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_INCLUDES QT_LDFLAGS MOC UIC QT_LIB QT_VERSION enable_abi_TRUE enable_abi_FALSE XSLTPROC have_xsltproc_TRUE have_xsltproc_FALSE XML_CATALOG XSLTPROC_FLAGS DOCBOOK_ROOT CAT_ENTRY_START CAT_ENTRY_END LIBERTY_LIBS BFD_LIBS POPT_LIBS have_qt_TRUE have_qt_FALSE OP_CFLAGS OP_CXXFLAGS OP_DOCDIR LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773ac_env_CXX_set=${CXX+set}
774ac_env_CXX_value=$CXX
775ac_cv_env_CXX_set=${CXX+set}
776ac_cv_env_CXX_value=$CXX
777ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_env_CXXFLAGS_value=$CXXFLAGS
779ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
785
786#
787# Report the --help message.
788#
789if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
792 cat <<_ACEOF
793\`configure' configures this package to adapt to many kinds of systems.
794
795Usage: $0 [OPTION]... [VAR=VALUE]...
796
797To assign environment variables (e.g., CC, CFLAGS...), specify them as
798VAR=VALUE. See below for descriptions of some of the useful variables.
799
800Defaults for the options are specified in brackets.
801
802Configuration:
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812
813_ACEOF
814
815 cat <<_ACEOF
816Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX]
821
822By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'.
826
827For better control, use the options below.
828
829Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
842_ACEOF
843
844 cat <<\_ACEOF
845
846Program names:
847 --program-prefix=PREFIX prepend PREFIX to installed program names
848 --program-suffix=SUFFIX append SUFFIX to installed program names
849 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
850
851X features:
852 --x-includes=DIR X include files are in DIR
853 --x-libraries=DIR X library files are in DIR
854_ACEOF
855fi
856
857if test -n "$ac_init_help"; then
858
859 cat <<\_ACEOF
860
861Optional Features:
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-abi enable abi portability code (default is disabled)
867 --enable-pch enable precompiled header (default is disabled)
868 --enable-gcov enable option for gcov coverage testing (default is disabled)
869 --disable-werror disable -Werror flag (default is enabled for non-release)
870 --disable-optimization disable optimization flags (default is enabled)
871
872Optional Packages:
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-binutils=dir Path to binutils installation to use
876 --with-gcc=dir Path to GCC installation to use
877 --with-kernel-support Use 2.6 kernel (no kernel source tree required)
878 --with-linux=dir Path to Linux source tree
879 --with-module-dir=dir Path to module installation directory
880 --with-extra-includes=DIR add extra include paths
881 --with-extra-libs=DIR add extra library paths
882 --with-x use the X Window System
883 --with-qt-dir where the root of Qt is installed
884 --with-qt-includes where the Qt includes are.
885 --with-qt-libraries where the Qt library is installed.
886
887Some influential environment variables:
888 CC C compiler command
889 CFLAGS C compiler flags
890 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
891 nonstandard directory <lib dir>
892 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
893 headers in a nonstandard directory <include dir>
894 CPP C preprocessor
895 CXX C++ compiler command
896 CXXFLAGS C++ compiler flags
897 CXXCPP C++ preprocessor
898
899Use these variables to override the choices made by `configure' or to help
900it to find libraries and programs with nonstandard names/locations.
901
902_ACEOF
903fi
904
905if test "$ac_init_help" = "recursive"; then
906 # If there are subdirs, report their specific --help.
907 ac_popdir=`pwd`
908 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
909 test -d $ac_dir || continue
910 ac_builddir=.
911
912if test "$ac_dir" != .; then
913 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
914 # A "../" for each directory in $ac_dir_suffix.
915 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
916else
917 ac_dir_suffix= ac_top_builddir=
918fi
919
920case $srcdir in
921 .) # No --srcdir option. We are building in place.
922 ac_srcdir=.
923 if test -z "$ac_top_builddir"; then
924 ac_top_srcdir=.
925 else
926 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
927 fi ;;
928 [\\/]* | ?:[\\/]* ) # Absolute path.
929 ac_srcdir=$srcdir$ac_dir_suffix;
930 ac_top_srcdir=$srcdir ;;
931 *) # Relative path.
932 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
933 ac_top_srcdir=$ac_top_builddir$srcdir ;;
934esac
935
936# Do not use `cd foo && pwd` to compute absolute paths, because
937# the directories may not exist.
938case `pwd` in
939.) ac_abs_builddir="$ac_dir";;
940*)
941 case "$ac_dir" in
942 .) ac_abs_builddir=`pwd`;;
943 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
944 *) ac_abs_builddir=`pwd`/"$ac_dir";;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_top_builddir=${ac_top_builddir}.;;
949*)
950 case ${ac_top_builddir}. in
951 .) ac_abs_top_builddir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
953 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_srcdir=$ac_srcdir;;
958*)
959 case $ac_srcdir in
960 .) ac_abs_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
962 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
963 esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_top_srcdir=$ac_top_srcdir;;
967*)
968 case $ac_top_srcdir in
969 .) ac_abs_top_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
971 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
972 esac;;
973esac
974
975 cd $ac_dir
976 # Check for guested configure; otherwise get Cygnus style configure.
977 if test -f $ac_srcdir/configure.gnu; then
978 echo
979 $SHELL $ac_srcdir/configure.gnu --help=recursive
980 elif test -f $ac_srcdir/configure; then
981 echo
982 $SHELL $ac_srcdir/configure --help=recursive
983 elif test -f $ac_srcdir/configure.ac ||
984 test -f $ac_srcdir/configure.in; then
985 echo
986 $ac_configure --help
987 else
988 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
989 fi
990 cd $ac_popdir
991 done
992fi
993
994test -n "$ac_init_help" && exit 0
995if $ac_init_version; then
996 cat <<\_ACEOF
997
998Copyright (C) 2003 Free Software Foundation, Inc.
999This configure script is free software; the Free Software Foundation
1000gives unlimited permission to copy, distribute and modify it.
1001_ACEOF
1002 exit 0
1003fi
1004exec 5>config.log
1005cat >&5 <<_ACEOF
1006This file contains any messages produced by compilers while
1007running configure, to aid debugging if configure makes a mistake.
1008
1009It was created by $as_me, which was
1010generated by GNU Autoconf 2.59. Invocation command line was
1011
1012 $ $0 $@
1013
1014_ACEOF
1015{
1016cat <<_ASUNAME
1017## --------- ##
1018## Platform. ##
1019## --------- ##
1020
1021hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1022uname -m = `(uname -m) 2>/dev/null || echo unknown`
1023uname -r = `(uname -r) 2>/dev/null || echo unknown`
1024uname -s = `(uname -s) 2>/dev/null || echo unknown`
1025uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026
1027/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1028/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029
1030/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1031/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1032/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1033hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1034/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1035/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1036/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1037
1038_ASUNAME
1039
1040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1041for as_dir in $PATH
1042do
1043 IFS=$as_save_IFS
1044 test -z "$as_dir" && as_dir=.
1045 echo "PATH: $as_dir"
1046done
1047
1048} >&5
1049
1050cat >&5 <<_ACEOF
1051
1052
1053## ----------- ##
1054## Core tests. ##
1055## ----------- ##
1056
1057_ACEOF
1058
1059
1060# Keep a trace of the command line.
1061# Strip out --no-create and --no-recursion so they do not pile up.
1062# Strip out --silent because we don't want to record it for future runs.
1063# Also quote any args containing shell meta-characters.
1064# Make two passes to allow for proper duplicate-argument suppression.
1065ac_configure_args=
1066ac_configure_args0=
1067ac_configure_args1=
1068ac_sep=
1069ac_must_keep_next=false
1070for ac_pass in 1 2
1071do
1072 for ac_arg
1073 do
1074 case $ac_arg in
1075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 continue ;;
1079 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1081 esac
1082 case $ac_pass in
1083 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 2)
1085 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1086 if test $ac_must_keep_next = true; then
1087 ac_must_keep_next=false # Got value, back to normal.
1088 else
1089 case $ac_arg in
1090 *=* | --config-cache | -C | -disable-* | --disable-* \
1091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1093 | -with-* | --with-* | -without-* | --without-* | --x)
1094 case "$ac_configure_args0 " in
1095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1096 esac
1097 ;;
1098 -* ) ac_must_keep_next=true ;;
1099 esac
1100 fi
1101 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1102 # Get rid of the leading space.
1103 ac_sep=" "
1104 ;;
1105 esac
1106 done
1107done
1108$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1109$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110
1111# When interrupted or exit'd, cleanup temporary files, and complete
1112# config.log. We remove comments because anyway the quotes in there
1113# would cause problems or look ugly.
1114# WARNING: Be sure not to use single quotes in there, as some shells,
1115# such as our DU 5.0 friend, will then `close' the trap.
1116trap 'exit_status=$?
1117 # Save into config.log some information that might help in debugging.
1118 {
1119 echo
1120
1121 cat <<\_ASBOX
1122## ---------------- ##
1123## Cache variables. ##
1124## ---------------- ##
1125_ASBOX
1126 echo
1127 # The following way of writing the cache mishandles newlines in values,
1128{
1129 (set) 2>&1 |
1130 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1131 *ac_space=\ *)
1132 sed -n \
1133 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1135 ;;
1136 *)
1137 sed -n \
1138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ;;
1140 esac;
1141}
1142 echo
1143
1144 cat <<\_ASBOX
1145## ----------------- ##
1146## Output variables. ##
1147## ----------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_vars
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156
1157 if test -n "$ac_subst_files"; then
1158 cat <<\_ASBOX
1159## ------------- ##
1160## Output files. ##
1161## ------------- ##
1162_ASBOX
1163 echo
1164 for ac_var in $ac_subst_files
1165 do
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1170 fi
1171
1172 if test -s confdefs.h; then
1173 cat <<\_ASBOX
1174## ----------- ##
1175## confdefs.h. ##
1176## ----------- ##
1177_ASBOX
1178 echo
1179 sed "/^$/d" confdefs.h | sort
1180 echo
1181 fi
1182 test "$ac_signal" != 0 &&
1183 echo "$as_me: caught signal $ac_signal"
1184 echo "$as_me: exit $exit_status"
1185 } >&5
1186 rm -f core *.core &&
1187 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1188 exit $exit_status
1189 ' 0
1190for ac_signal in 1 2 13 15; do
1191 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1192done
1193ac_signal=0
1194
1195# confdefs.h avoids OS command line length limits that DEFS can exceed.
1196rm -rf conftest* confdefs.h
1197# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1198echo >confdefs.h
1199
1200# Predefined preprocessor variables.
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_NAME "$PACKAGE_NAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_VERSION "$PACKAGE_VERSION"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_STRING "$PACKAGE_STRING"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1224_ACEOF
1225
1226
1227# Let the site file select an alternate cache file if it wants to.
1228# Prefer explicitly selected file to automatically selected ones.
1229if test -z "$CONFIG_SITE"; then
1230 if test "x$prefix" != xNONE; then
1231 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 else
1233 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1234 fi
1235fi
1236for ac_site_file in $CONFIG_SITE; do
1237 if test -r "$ac_site_file"; then
1238 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1239echo "$as_me: loading site script $ac_site_file" >&6;}
1240 sed 's/^/| /' "$ac_site_file" >&5
1241 . "$ac_site_file"
1242 fi
1243done
1244
1245if test -r "$cache_file"; then
1246 # Some versions of bash will fail to source /dev/null (special
1247 # files actually), so we avoid doing that.
1248 if test -f "$cache_file"; then
1249 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1250echo "$as_me: loading cache $cache_file" >&6;}
1251 case $cache_file in
1252 [\\/]* | ?:[\\/]* ) . $cache_file;;
1253 *) . ./$cache_file;;
1254 esac
1255 fi
1256else
1257 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1258echo "$as_me: creating cache $cache_file" >&6;}
1259 >$cache_file
1260fi
1261
1262# Check that the precious variables saved in the cache have kept the same
1263# value.
1264ac_cache_corrupted=false
1265for ac_var in `(set) 2>&1 |
1266 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1268 eval ac_new_set=\$ac_env_${ac_var}_set
1269 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1270 eval ac_new_val="\$ac_env_${ac_var}_value"
1271 case $ac_old_set,$ac_new_set in
1272 set,)
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1276 ,set)
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1278echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1279 ac_cache_corrupted=: ;;
1280 ,);;
1281 *)
1282 if test "x$ac_old_val" != "x$ac_new_val"; then
1283 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1285 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1286echo "$as_me: former value: $ac_old_val" >&2;}
1287 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1288echo "$as_me: current value: $ac_new_val" >&2;}
1289 ac_cache_corrupted=:
1290 fi;;
1291 esac
1292 # Pass precious variables to config.status.
1293 if test "$ac_new_set" = set; then
1294 case $ac_new_val in
1295 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 *) ac_arg=$ac_var=$ac_new_val ;;
1298 esac
1299 case " $ac_configure_args " in
1300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1301 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1302 esac
1303 fi
1304done
1305if $ac_cache_corrupted; then
1306 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1307echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1308 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1309echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1310 { (exit 1); exit 1; }; }
1311fi
1312
1313ac_ext=c
1314ac_cpp='$CPP $CPPFLAGS'
1315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1317ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337am__api_version="1.9"
1338ac_aux_dir=
1339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358fi
1359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363# Find a good install program. We prefer a C program (faster),
1364# so one script is as good as another. But avoid the broken or
1365# incompatible versions:
1366# SysV /etc/install, /usr/sbin/install
1367# SunOS /usr/etc/install
1368# IRIX /sbin/install
1369# AIX /bin/install
1370# AmigaOS /C/install, which installs bootblocks on floppy discs
1371# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1372# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1373# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1374# OS/2's system install, which has a completely different semantic
1375# ./install, which can be erroneously created by make from ./install.sh.
1376echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1377echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1378if test -z "$INSTALL"; then
1379if test "${ac_cv_path_install+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383for as_dir in $PATH
1384do
1385 IFS=$as_save_IFS
1386 test -z "$as_dir" && as_dir=.
1387 # Account for people who put trailing slashes in PATH elements.
1388case $as_dir/ in
1389 ./ | .// | /cC/* | \
1390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1391 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1392 /usr/ucb/* ) ;;
1393 *)
1394 # OSF1 and SCO ODT 3.0 have their own names for install.
1395 # Don't use installbsd from OSF since it installs stuff as root
1396 # by default.
1397 for ac_prog in ginstall scoinst install; do
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1400 if test $ac_prog = install &&
1401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1402 # AIX install. It has an incompatible calling convention.
1403 :
1404 elif test $ac_prog = install &&
1405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1406 # program-specific install script used by HP pwplus--don't use.
1407 :
1408 else
1409 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1410 break 3
1411 fi
1412 fi
1413 done
1414 done
1415 ;;
1416esac
1417done
1418
1419
1420fi
1421 if test "${ac_cv_path_install+set}" = set; then
1422 INSTALL=$ac_cv_path_install
1423 else
1424 # As a last resort, use the slow shell script. We don't cache a
1425 # path for INSTALL within a source directory, because that will
1426 # break other packages using the cache if that directory is
1427 # removed, or if the path is relative.
1428 INSTALL=$ac_install_sh
1429 fi
1430fi
1431echo "$as_me:$LINENO: result: $INSTALL" >&5
1432echo "${ECHO_T}$INSTALL" >&6
1433
1434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1435# It thinks the first close brace ends the variable substitution.
1436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1437
1438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1439
1440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1441
1442echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1443echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1444# Just in case
1445sleep 1
1446echo timestamp > conftest.file
1447# Do `set' in a subshell so we don't clobber the current shell's
1448# arguments. Must try -L first in case configure is actually a
1449# symlink; some systems play weird games with the mod time of symlinks
1450# (eg FreeBSD returns the mod time of the symlink's containing
1451# directory).
1452if (
1453 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1454 if test "$*" = "X"; then
1455 # -L didn't work.
1456 set X `ls -t $srcdir/configure conftest.file`
1457 fi
1458 rm -f conftest.file
1459 if test "$*" != "X $srcdir/configure conftest.file" \
1460 && test "$*" != "X conftest.file $srcdir/configure"; then
1461
1462 # If neither matched, then we have a broken ls. This can happen
1463 # if, for instance, CONFIG_SHELL is bash and it inherits a
1464 # broken ls alias from the environment. This has actually
1465 # happened. Such a system could not be considered "sane".
1466 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1467alias in your environment" >&5
1468echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1469alias in your environment" >&2;}
1470 { (exit 1); exit 1; }; }
1471 fi
1472
1473 test "$2" = conftest.file
1474 )
1475then
1476 # Ok.
1477 :
1478else
1479 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1480Check your system clock" >&5
1481echo "$as_me: error: newly created file is older than distributed files!
1482Check your system clock" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485echo "$as_me:$LINENO: result: yes" >&5
1486echo "${ECHO_T}yes" >&6
1487test "$program_prefix" != NONE &&
1488 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1489# Use a double $ so make ignores it.
1490test "$program_suffix" != NONE &&
1491 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1492# Double any \ or $. echo might interpret backslashes.
1493# By default was `s,x,x', remove it if useless.
1494cat <<\_ACEOF >conftest.sed
1495s/[\\$]/&&/g;s/;s,x,x,$//
1496_ACEOF
1497program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1498rm conftest.sed
1499
1500# expand $ac_aux_dir to an absolute path
1501am_aux_dir=`cd $ac_aux_dir && pwd`
1502
1503test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1504# Use eval to expand $SHELL
1505if eval "$MISSING --run true"; then
1506 am_missing_run="$MISSING --run "
1507else
1508 am_missing_run=
1509 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1510echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1511fi
1512
1513if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1514 # We used to keeping the `.' as first argument, in order to
1515 # allow $(mkdir_p) to be used without argument. As in
1516 # $(mkdir_p) $(somedir)
1517 # where $(somedir) is conditionally defined. However this is wrong
1518 # for two reasons:
1519 # 1. if the package is installed by a user who cannot write `.'
1520 # make install will fail,
1521 # 2. the above comment should most certainly read
1522 # $(mkdir_p) $(DESTDIR)$(somedir)
1523 # so it does not work when $(somedir) is undefined and
1524 # $(DESTDIR) is not.
1525 # To support the latter case, we have to write
1526 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1527 # so the `.' trick is pointless.
1528 mkdir_p='mkdir -p --'
1529else
1530 # On NextStep and OpenStep, the `mkdir' command does not
1531 # recognize any option. It will interpret all options as
1532 # directories to create, and then abort because `.' already
1533 # exists.
1534 for d in ./-p ./--version;
1535 do
1536 test -d $d && rmdir $d
1537 done
1538 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1539 if test -f "$ac_aux_dir/mkinstalldirs"; then
1540 mkdir_p='$(mkinstalldirs)'
1541 else
1542 mkdir_p='$(install_sh) -d'
1543 fi
1544fi
1545
1546for ac_prog in gawk mawk nawk awk
1547do
1548 # Extract the first word of "$ac_prog", so it can be a program name with args.
1549set dummy $ac_prog; ac_word=$2
1550echo "$as_me:$LINENO: checking for $ac_word" >&5
1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552if test "${ac_cv_prog_AWK+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 if test -n "$AWK"; then
1556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557else
1558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559for as_dir in $PATH
1560do
1561 IFS=$as_save_IFS
1562 test -z "$as_dir" && as_dir=.
1563 for ac_exec_ext in '' $ac_executable_extensions; do
1564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565 ac_cv_prog_AWK="$ac_prog"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1568 fi
1569done
1570done
1571
1572fi
1573fi
1574AWK=$ac_cv_prog_AWK
1575if test -n "$AWK"; then
1576 echo "$as_me:$LINENO: result: $AWK" >&5
1577echo "${ECHO_T}$AWK" >&6
1578else
1579 echo "$as_me:$LINENO: result: no" >&5
1580echo "${ECHO_T}no" >&6
1581fi
1582
1583 test -n "$AWK" && break
1584done
1585
1586echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1587echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1588set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1589if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592 cat >conftest.make <<\_ACEOF
1593all:
1594 @echo 'ac_maketemp="$(MAKE)"'
1595_ACEOF
1596# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1597eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1598if test -n "$ac_maketemp"; then
1599 eval ac_cv_prog_make_${ac_make}_set=yes
1600else
1601 eval ac_cv_prog_make_${ac_make}_set=no
1602fi
1603rm -f conftest.make
1604fi
1605if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1606 echo "$as_me:$LINENO: result: yes" >&5
1607echo "${ECHO_T}yes" >&6
1608 SET_MAKE=
1609else
1610 echo "$as_me:$LINENO: result: no" >&5
1611echo "${ECHO_T}no" >&6
1612 SET_MAKE="MAKE=${MAKE-make}"
1613fi
1614
1615rm -rf .tst 2>/dev/null
1616mkdir .tst 2>/dev/null
1617if test -d .tst; then
1618 am__leading_dot=.
1619else
1620 am__leading_dot=_
1621fi
1622rmdir .tst 2>/dev/null
1623
1624# test to see if srcdir already configured
1625if test "`cd $srcdir && pwd`" != "`pwd`" &&
1626 test -f $srcdir/config.status; then
1627 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1628echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1629 { (exit 1); exit 1; }; }
1630fi
1631
1632# test whether we have cygpath
1633if test -z "$CYGPATH_W"; then
1634 if (cygpath --version) >/dev/null 2>/dev/null; then
1635 CYGPATH_W='cygpath -w'
1636 else
1637 CYGPATH_W=echo
1638 fi
1639fi
1640
1641
1642# Define the identity of the package.
1643 PACKAGE=oprofile
1644 VERSION=0.9.1
1645
1646
1647cat >>confdefs.h <<_ACEOF
1648#define PACKAGE "$PACKAGE"
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define VERSION "$VERSION"
1654_ACEOF
1655
1656# Some tools Automake needs.
1657
1658ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1659
1660
1661AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1662
1663
1664AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1665
1666
1667AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1668
1669
1670MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1671
1672install_sh=${install_sh-"$am_aux_dir/install-sh"}
1673
1674# Installed binaries are usually stripped using `strip' when the user
1675# run `make install-strip'. However `strip' might not be the right
1676# tool to use in cross-compilation environments, therefore Automake
1677# will honor the `STRIP' environment variable to overrule this program.
1678if test "$cross_compiling" != no; then
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1681set dummy ${ac_tool_prefix}strip; ac_word=$2
1682echo "$as_me:$LINENO: checking for $ac_word" >&5
1683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1684if test "${ac_cv_prog_STRIP+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686else
1687 if test -n "$STRIP"; then
1688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1689else
1690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691for as_dir in $PATH
1692do
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1700 fi
1701done
1702done
1703
1704fi
1705fi
1706STRIP=$ac_cv_prog_STRIP
1707if test -n "$STRIP"; then
1708 echo "$as_me:$LINENO: result: $STRIP" >&5
1709echo "${ECHO_T}$STRIP" >&6
1710else
1711 echo "$as_me:$LINENO: result: no" >&5
1712echo "${ECHO_T}no" >&6
1713fi
1714
1715fi
1716if test -z "$ac_cv_prog_STRIP"; then
1717 ac_ct_STRIP=$STRIP
1718 # Extract the first word of "strip", so it can be a program name with args.
1719set dummy strip; ac_word=$2
1720echo "$as_me:$LINENO: checking for $ac_word" >&5
1721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 if test -n "$ac_ct_STRIP"; then
1726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1727else
1728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729for as_dir in $PATH
1730do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_ac_ct_STRIP="strip"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739done
1740done
1741
1742 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1743fi
1744fi
1745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1746if test -n "$ac_ct_STRIP"; then
1747 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1748echo "${ECHO_T}$ac_ct_STRIP" >&6
1749else
1750 echo "$as_me:$LINENO: result: no" >&5
1751echo "${ECHO_T}no" >&6
1752fi
1753
1754 STRIP=$ac_ct_STRIP
1755else
1756 STRIP="$ac_cv_prog_STRIP"
1757fi
1758
1759fi
1760INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1761
1762# We need awk for the "check" target. The system "awk" is bad on
1763# some platforms.
1764# Always define AMTAR for backward compatibility.
1765
1766AMTAR=${AMTAR-"${am_missing_run}tar"}
1767
1768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1769
1770
1771
1772
1773
1774 ac_config_headers="$ac_config_headers config.h"
1775
1776
1777if test -n "$ac_tool_prefix"; then
1778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1780echo "$as_me:$LINENO: checking for $ac_word" >&5
1781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782if test "${ac_cv_prog_RANLIB+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784else
1785 if test -n "$RANLIB"; then
1786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1787else
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 for ac_exec_ext in '' $ac_executable_extensions; do
1794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 break 2
1798 fi
1799done
1800done
1801
1802fi
1803fi
1804RANLIB=$ac_cv_prog_RANLIB
1805if test -n "$RANLIB"; then
1806 echo "$as_me:$LINENO: result: $RANLIB" >&5
1807echo "${ECHO_T}$RANLIB" >&6
1808else
1809 echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813fi
1814if test -z "$ac_cv_prog_RANLIB"; then
1815 ac_ct_RANLIB=$RANLIB
1816 # Extract the first word of "ranlib", so it can be a program name with args.
1817set dummy ranlib; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$ac_ct_RANLIB"; then
1824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_ac_ct_RANLIB="ranlib"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837done
1838done
1839
1840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1841fi
1842fi
1843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1844if test -n "$ac_ct_RANLIB"; then
1845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1846echo "${ECHO_T}$ac_ct_RANLIB" >&6
1847else
1848 echo "$as_me:$LINENO: result: no" >&5
1849echo "${ECHO_T}no" >&6
1850fi
1851
1852 RANLIB=$ac_ct_RANLIB
1853else
1854 RANLIB="$ac_cv_prog_RANLIB"
1855fi
1856
1857
1858DATE="`date '+%a %d %B %Y'`"
1859
1860
1861OPROFILE_DIR=`pwd`
1862
1863
1864# this needs to come before --with-gcc so we link with binutil's version
1865# of libiberty ... sigh
1866
1867# Check whether --with-binutils or --without-binutils was given.
1868if test "${with_binutils+set}" = set; then
1869 withval="$with_binutils"
1870 BINUTILSDIR=$withval
1871fi;
1872
1873if test "$BINUTILSDIR" != ""; then
1874 LD="$BINUTILSDIR/ld"
1875 if test "$CFLAGS" = ""; then
1876 CFLAGS="-g -O2"
1877 fi
1878 if test "$CXXFLAGS" = ""; then
1879 CXXFLAGS="-g -O2"
1880 fi
1881 CFLAGS="$CFLAGS -I $BINUTILSDIR/include"
1882 CXXFLAGS="$CXXFLAGS -I $BINUTILSDIR/include"
1883 LDFLAGS="$LDFLAGS -L $BINUTILSDIR/lib -Xlinker -R -Xlinker $BINUTILSDIR/lib"
1884fi
1885
1886
1887# Check whether --with-gcc or --without-gcc was given.
1888if test "${with_gcc+set}" = set; then
1889 withval="$with_gcc"
1890 GCCDIR=$withval
1891fi;
1892
1893if test "$GCCDIR" != ""; then
1894 CC="$GCCDIR/bin/gcc"
1895 CXX="$GCCDIR/bin/g++"
1896 LDFLAGS="$LDFLAGS -L $GCCDIR/lib -Xlinker -R -Xlinker $GCCDIR/lib"
1897fi
1898
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904if test -n "$ac_tool_prefix"; then
1905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1906set dummy ${ac_tool_prefix}gcc; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_CC+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912 if test -n "$CC"; then
1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 for ac_exec_ext in '' $ac_executable_extensions; do
1921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924 break 2
1925 fi
1926done
1927done
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933 echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6
1935else
1936 echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940fi
1941if test -z "$ac_cv_prog_CC"; then
1942 ac_ct_CC=$CC
1943 # Extract the first word of "gcc", so it can be a program name with args.
1944set dummy gcc; ac_word=$2
1945echo "$as_me:$LINENO: checking for $ac_word" >&5
1946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1949else
1950 if test -n "$ac_ct_CC"; then
1951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1952else
1953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954for as_dir in $PATH
1955do
1956 IFS=$as_save_IFS
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 ac_cv_prog_ac_ct_CC="gcc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
1965done
1966
1967fi
1968fi
1969ac_ct_CC=$ac_cv_prog_ac_ct_CC
1970if test -n "$ac_ct_CC"; then
1971 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1972echo "${ECHO_T}$ac_ct_CC" >&6
1973else
1974 echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978 CC=$ac_ct_CC
1979else
1980 CC="$ac_cv_prog_CC"
1981fi
1982
1983if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1986set dummy ${ac_tool_prefix}cc; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="${ac_tool_prefix}cc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009fi
2010fi
2011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6
2015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
2020fi
2021if test -z "$ac_cv_prog_CC"; then
2022 ac_ct_CC=$CC
2023 # Extract the first word of "cc", so it can be a program name with args.
2024set dummy cc; ac_word=$2
2025echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030 if test -n "$ac_ct_CC"; then
2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_ac_ct_CC="cc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044done
2045done
2046
2047fi
2048fi
2049ac_ct_CC=$ac_cv_prog_ac_ct_CC
2050if test -n "$ac_ct_CC"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2052echo "${ECHO_T}$ac_ct_CC" >&6
2053else
2054 echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
2058 CC=$ac_ct_CC
2059else
2060 CC="$ac_cv_prog_CC"
2061fi
2062
2063fi
2064if test -z "$CC"; then
2065 # Extract the first word of "cc", so it can be a program name with args.
2066set dummy cc; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_CC+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
2072 if test -n "$CC"; then
2073 ac_cv_prog_CC="$CC" # Let the user override the test.
2074else
2075 ac_prog_rejected=no
2076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077for as_dir in $PATH
2078do
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2084 ac_prog_rejected=yes
2085 continue
2086 fi
2087 ac_cv_prog_CC="cc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091done
2092done
2093
2094if test $ac_prog_rejected = yes; then
2095 # We found a bogon in the path, so make sure we never use it.
2096 set dummy $ac_cv_prog_CC
2097 shift
2098 if test $# != 0; then
2099 # We chose a different compiler from the bogus one.
2100 # However, it has the same basename, so the bogon will be chosen
2101 # first if we set CC to just the basename; use the full file name.
2102 shift
2103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2104 fi
2105fi
2106fi
2107fi
2108CC=$ac_cv_prog_CC
2109if test -n "$CC"; then
2110 echo "$as_me:$LINENO: result: $CC" >&5
2111echo "${ECHO_T}$CC" >&6
2112else
2113 echo "$as_me:$LINENO: result: no" >&5
2114echo "${ECHO_T}no" >&6
2115fi
2116
2117fi
2118if test -z "$CC"; then
2119 if test -n "$ac_tool_prefix"; then
2120 for ac_prog in cl
2121 do
2122 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2123set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_CC+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 if test -n "$CC"; then
2130 ac_cv_prog_CC="$CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2142 fi
2143done
2144done
2145
2146fi
2147fi
2148CC=$ac_cv_prog_CC
2149if test -n "$CC"; then
2150 echo "$as_me:$LINENO: result: $CC" >&5
2151echo "${ECHO_T}$CC" >&6
2152else
2153 echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
2156
2157 test -n "$CC" && break
2158 done
2159fi
2160if test -z "$CC"; then
2161 ac_ct_CC=$CC
2162 for ac_prog in cl
2163do
2164 # Extract the first word of "$ac_prog", so it can be a program name with args.
2165set dummy $ac_prog; ac_word=$2
2166echo "$as_me:$LINENO: checking for $ac_word" >&5
2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2168if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171 if test -n "$ac_ct_CC"; then
2172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2173else
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 ac_cv_prog_ac_ct_CC="$ac_prog"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2184 fi
2185done
2186done
2187
2188fi
2189fi
2190ac_ct_CC=$ac_cv_prog_ac_ct_CC
2191if test -n "$ac_ct_CC"; then
2192 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2193echo "${ECHO_T}$ac_ct_CC" >&6
2194else
2195 echo "$as_me:$LINENO: result: no" >&5
2196echo "${ECHO_T}no" >&6
2197fi
2198
2199 test -n "$ac_ct_CC" && break
2200done
2201
2202 CC=$ac_ct_CC
2203fi
2204
2205fi
2206
2207
2208test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&2;}
2212 { (exit 1); exit 1; }; }
2213
2214# Provide some information about the compiler.
2215echo "$as_me:$LINENO:" \
2216 "checking for C compiler version" >&5
2217ac_compiler=`set X $ac_compile; echo $2`
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219 (eval $ac_compiler --version </dev/null >&5) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224 (eval $ac_compiler -v </dev/null >&5) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }
2228{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229 (eval $ac_compiler -V </dev/null >&5) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2233
2234cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h. */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h. */
2240
2241int
2242main ()
2243{
2244
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249ac_clean_files_save=$ac_clean_files
2250ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251# Try to create an executable without -o first, disregard a.out.
2252# It will help us diagnose broken compilers, and finding out an intuition
2253# of exeext.
2254echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258 (eval $ac_link_default) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Find the output, starting from the most likely. This scheme is
2263# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2264# resort.
2265
2266# Be careful to initialize this variable, since it used to be cached.
2267# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2268ac_cv_exeext=
2269# b.out is created by i960 compilers.
2270for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2271do
2272 test -f "$ac_file" || continue
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2275 ;;
2276 conftest.$ac_ext )
2277 # This is the source file.
2278 ;;
2279 [ab].out )
2280 # We found the default executable, but exeext='' is most
2281 # certainly right.
2282 break;;
2283 *.* )
2284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # FIXME: I believe we export ac_cv_exeext for Libtool,
2286 # but it would be cool to find out if it's true. Does anybody
2287 # maintain Libtool? --akim.
2288 export ac_cv_exeext
2289 break;;
2290 * )
2291 break;;
2292 esac
2293done
2294else
2295 echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: C compiler cannot create executables
2301See \`config.log' for more details." >&2;}
2302 { (exit 77); exit 77; }; }
2303fi
2304
2305ac_exeext=$ac_cv_exeext
2306echo "$as_me:$LINENO: result: $ac_file" >&5
2307echo "${ECHO_T}$ac_file" >&6
2308
2309# Check the compiler produces executables we can run. If not, either
2310# the compiler is broken, or we cross compile.
2311echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314# If not cross compiling, check that we can run a simple program.
2315if test "$cross_compiling" != yes; then
2316 if { ac_try='./$ac_file'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2322 cross_compiling=no
2323 else
2324 if test "$cross_compiling" = maybe; then
2325 cross_compiling=yes
2326 else
2327 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328If you meant to cross compile, use \`--host'.
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot run C compiled programs.
2331If you meant to cross compile, use \`--host'.
2332See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2334 fi
2335 fi
2336fi
2337echo "$as_me:$LINENO: result: yes" >&5
2338echo "${ECHO_T}yes" >&6
2339
2340rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341ac_clean_files=$ac_clean_files_save
2342# Check the compiler produces executables we can run. If not, either
2343# the compiler is broken, or we cross compile.
2344echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347echo "${ECHO_T}$cross_compiling" >&6
2348
2349echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352 (eval $ac_link) 2>&5
2353 ac_status=$?
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }; then
2356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2358# work properly (i.e., refer to `conftest.exe'), while it won't with
2359# `rm'.
2360for ac_file in conftest.exe conftest conftest.*; do
2361 test -f "$ac_file" || continue
2362 case $ac_file in
2363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365 export ac_cv_exeext
2366 break;;
2367 * ) break;;
2368 esac
2369done
2370else
2371 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest$ac_cv_exeext
2379echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380echo "${ECHO_T}$ac_cv_exeext" >&6
2381
2382rm -f conftest.$ac_ext
2383EXEEXT=$ac_cv_exeext
2384ac_exeext=$EXEEXT
2385echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387if test "${ac_cv_objext+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390 cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h. */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h. */
2396
2397int
2398main ()
2399{
2400
2401 ;
2402 return 0;
2403}
2404_ACEOF
2405rm -f conftest.o conftest.obj
2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407 (eval $ac_compile) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; then
2411 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2412 case $ac_file in
2413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2415 break;;
2416 esac
2417done
2418else
2419 echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425See \`config.log' for more details." >&2;}
2426 { (exit 1); exit 1; }; }
2427fi
2428
2429rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432echo "${ECHO_T}$ac_cv_objext" >&6
2433OBJEXT=$ac_cv_objext
2434ac_objext=$OBJEXT
2435echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h. */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h. */
2446
2447int
2448main ()
2449{
2450#ifndef __GNUC__
2451 choke me
2452#endif
2453
2454 ;
2455 return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag"
2468 || test ! -s conftest.err'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_compiler_gnu=yes
2481else
2482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_compiler_gnu=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488ac_cv_c_compiler_gnu=$ac_compiler_gnu
2489
2490fi
2491echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2492echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2493GCC=`test $ac_compiler_gnu = yes && echo yes`
2494ac_test_CFLAGS=${CFLAGS+set}
2495ac_save_CFLAGS=$CFLAGS
2496CFLAGS="-g"
2497echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2498echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_g+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h. */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h. */
2508
2509int
2510main ()
2511{
2512
2513 ;
2514 return 0;
2515}
2516_ACEOF
2517rm -f conftest.$ac_objext
2518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2520 ac_status=$?
2521 grep -v '^ *+' conftest.er1 >conftest.err
2522 rm -f conftest.er1
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 (eval $ac_try) 2>&5
2530 ac_status=$?
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 (eval $ac_try) 2>&5
2536 ac_status=$?
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cc_g=yes
2540else
2541 echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544ac_cv_prog_cc_g=no
2545fi
2546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2549echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2550if test "$ac_test_CFLAGS" = set; then
2551 CFLAGS=$ac_save_CFLAGS
2552elif test $ac_cv_prog_cc_g = yes; then
2553 if test "$GCC" = yes; then
2554 CFLAGS="-g -O2"
2555 else
2556 CFLAGS="-g"
2557 fi
2558else
2559 if test "$GCC" = yes; then
2560 CFLAGS="-O2"
2561 else
2562 CFLAGS=
2563 fi
2564fi
2565echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2566echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2567if test "${ac_cv_prog_cc_stdc+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 ac_cv_prog_cc_stdc=no
2571ac_save_CC=$CC
2572cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h. */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h. */
2578#include <stdarg.h>
2579#include <stdio.h>
2580#include <sys/types.h>
2581#include <sys/stat.h>
2582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2583struct buf { int x; };
2584FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585static char *e (p, i)
2586 char **p;
2587 int i;
2588{
2589 return p[i];
2590}
2591static char *f (char * (*g) (char **, int), char **p, ...)
2592{
2593 char *s;
2594 va_list v;
2595 va_start (v,p);
2596 s = g (p, va_arg (v,int));
2597 va_end (v);
2598 return s;
2599}
2600
2601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2602 function prototypes and stuff, but not '\xHH' hex character constants.
2603 These don't provoke an error unfortunately, instead are silently treated
2604 as 'x'. The following induces an error, until -std1 is added to get
2605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2606 array size at least. It's necessary to write '\x00'==0 to get something
2607 that's true only with -std1. */
2608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2609
2610int test (int i, double x);
2611struct s1 {int (*f) (int a);};
2612struct s2 {int (*f) (double a);};
2613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614int argc;
2615char **argv;
2616int
2617main ()
2618{
2619return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624# Don't try gcc -ansi; that turns off useful extensions and
2625# breaks some systems' header files.
2626# AIX -qlanglvl=ansi
2627# Ultrix and OSF/1 -std1
2628# HP-UX 10.20 and later -Ae
2629# HP-UX older versions -Aa -D_HPUX_SOURCE
2630# SVR4 -Xc -D__EXTENSIONS__
2631for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2632do
2633 CC="$ac_save_CC $ac_arg"
2634 rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636 (eval $ac_compile) 2>conftest.er1
2637 ac_status=$?
2638 grep -v '^ *+' conftest.er1 >conftest.err
2639 rm -f conftest.er1
2640 cat conftest.err >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -z "$ac_c_werror_flag"
2644 || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_prog_cc_stdc=$ac_arg
2657break
2658else
2659 echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.err conftest.$ac_objext
2664done
2665rm -f conftest.$ac_ext conftest.$ac_objext
2666CC=$ac_save_CC
2667
2668fi
2669
2670case "x$ac_cv_prog_cc_stdc" in
2671 x|xno)
2672 echo "$as_me:$LINENO: result: none needed" >&5
2673echo "${ECHO_T}none needed" >&6 ;;
2674 *)
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677 CC="$CC $ac_cv_prog_cc_stdc" ;;
2678esac
2679
2680# Some people use a C++ compiler to compile C. Since we use `exit',
2681# in C++ we need to declare it. In case someone uses the same compiler
2682# for both compiling C and C++ we need to have the C++ compiler decide
2683# the declaration of exit, since it's the most demanding environment.
2684cat >conftest.$ac_ext <<_ACEOF
2685#ifndef __cplusplus
2686 choke me
2687#endif
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 for ac_declaration in \
2712 '' \
2713 'extern "C" void std::exit (int) throw (); using std::exit;' \
2714 'extern "C" void std::exit (int); using std::exit;' \
2715 'extern "C" void exit (int) throw ();' \
2716 'extern "C" void exit (int);' \
2717 'void exit (int);'
2718do
2719 cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h. */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h. */
2725$ac_declaration
2726#include <stdlib.h>
2727int
2728main ()
2729{
2730exit (42);
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag"
2745 || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 :
2758else
2759 echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762continue
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765 cat >conftest.$ac_ext <<_ACEOF
2766/* confdefs.h. */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h. */
2771$ac_declaration
2772int
2773main ()
2774{
2775exit (42);
2776 ;
2777 return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 break
2803else
2804 echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807fi
2808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809done
2810rm -f conftest*
2811if test -n "$ac_declaration"; then
2812 echo '#ifdef __cplusplus' >>confdefs.h
2813 echo $ac_declaration >>confdefs.h
2814 echo '#endif' >>confdefs.h
2815fi
2816
2817else
2818 echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828DEPDIR="${am__leading_dot}deps"
2829
2830 ac_config_commands="$ac_config_commands depfiles"
2831
2832
2833am_make=${MAKE-make}
2834cat > confinc << 'END'
2835am__doit:
2836 @echo done
2837.PHONY: am__doit
2838END
2839# If we don't find an include directive, just comment out the code.
2840echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2841echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2842am__include="#"
2843am__quote=
2844_am_result=none
2845# First try GNU make style include.
2846echo "include confinc" > confmf
2847# We grep out `Entering directory' and `Leaving directory'
2848# messages which can occur if `w' ends up in MAKEFLAGS.
2849# In particular we don't look at `^make:' because GNU make might
2850# be invoked under some other name (usually "gmake"), in which
2851# case it prints its new name instead of `make'.
2852if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2853 am__include=include
2854 am__quote=
2855 _am_result=GNU
2856fi
2857# Now try BSD make style include.
2858if test "$am__include" = "#"; then
2859 echo '.include "confinc"' > confmf
2860 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2861 am__include=.include
2862 am__quote="\""
2863 _am_result=BSD
2864 fi
2865fi
2866
2867
2868echo "$as_me:$LINENO: result: $_am_result" >&5
2869echo "${ECHO_T}$_am_result" >&6
2870rm -f confinc confmf
2871
2872# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2873if test "${enable_dependency_tracking+set}" = set; then
2874 enableval="$enable_dependency_tracking"
2875
2876fi;
2877if test "x$enable_dependency_tracking" != xno; then
2878 am_depcomp="$ac_aux_dir/depcomp"
2879 AMDEPBACKSLASH='\'
2880fi
2881
2882
2883if test "x$enable_dependency_tracking" != xno; then
2884 AMDEP_TRUE=
2885 AMDEP_FALSE='#'
2886else
2887 AMDEP_TRUE='#'
2888 AMDEP_FALSE=
2889fi
2890
2891
2892
2893
2894depcc="$CC" am_compiler_list=
2895
2896echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2897echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2898if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2899 echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2902 # We make a subdir and do the tests there. Otherwise we can end up
2903 # making bogus files that we don't know about and never remove. For
2904 # instance it was reported that on HP-UX the gcc test will end up
2905 # making a dummy file named `D' -- because `-MD' means `put the output
2906 # in D'.
2907 mkdir conftest.dir
2908 # Copy depcomp to subdir because otherwise we won't find it if we're
2909 # using a relative directory.
2910 cp "$am_depcomp" conftest.dir
2911 cd conftest.dir
2912 # We will build objects and dependencies in a subdirectory because
2913 # it helps to detect inapplicable dependency modes. For instance
2914 # both Tru64's cc and ICC support -MD to output dependencies as a
2915 # side effect of compilation, but ICC will put the dependencies in
2916 # the current directory while Tru64 will put them in the object
2917 # directory.
2918 mkdir sub
2919
2920 am_cv_CC_dependencies_compiler_type=none
2921 if test "$am_compiler_list" = ""; then
2922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2923 fi
2924 for depmode in $am_compiler_list; do
2925 # Setup a source with many dependencies, because some compilers
2926 # like to wrap large dependency lists on column 80 (with \), and
2927 # we should not choose a depcomp mode which is confused by this.
2928 #
2929 # We need to recreate these files for each test, as the compiler may
2930 # overwrite some of them when testing with obscure command lines.
2931 # This happens at least with the AIX C compiler.
2932 : > sub/conftest.c
2933 for i in 1 2 3 4 5 6; do
2934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2936 # Solaris 8's {/usr,}/bin/sh.
2937 touch sub/conftst$i.h
2938 done
2939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2940
2941 case $depmode in
2942 nosideeffect)
2943 # after this tag, mechanisms are not by side-effect, so they'll
2944 # only be used when explicitly requested
2945 if test "x$enable_dependency_tracking" = xyes; then
2946 continue
2947 else
2948 break
2949 fi
2950 ;;
2951 none) break ;;
2952 esac
2953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2954 # mode. It turns out that the SunPro C++ compiler does not properly
2955 # handle `-M -o', and we need to detect this.
2956 if depmode=$depmode \
2957 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2959 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2960 >/dev/null 2>conftest.err &&
2961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2962 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2964 # icc doesn't choke on unknown options, it will just issue warnings
2965 # or remarks (even with -Werror). So we grep stderr for any message
2966 # that says an option was ignored or not supported.
2967 # When given -MP, icc 7.0 and 7.1 complain thusly:
2968 # icc: Command line warning: ignoring option '-M'; no argument required
2969 # The diagnosis changed in icc 8.0:
2970 # icc: Command line remark: option '-MP' not supported
2971 if (grep 'ignoring option' conftest.err ||
2972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2973 am_cv_CC_dependencies_compiler_type=$depmode
2974 break
2975 fi
2976 fi
2977 done
2978
2979 cd ..
2980 rm -rf conftest.dir
2981else
2982 am_cv_CC_dependencies_compiler_type=none
2983fi
2984
2985fi
2986echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2987echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2988CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2989
2990
2991
2992if
2993 test "x$enable_dependency_tracking" != xno \
2994 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2995 am__fastdepCC_TRUE=
2996 am__fastdepCC_FALSE='#'
2997else
2998 am__fastdepCC_TRUE='#'
2999 am__fastdepCC_FALSE=
3000fi
3001
3002
3003ac_ext=c
3004ac_cpp='$CPP $CPPFLAGS'
3005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3009echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3010# On Suns, sometimes $CPP names a directory.
3011if test -n "$CPP" && test -d "$CPP"; then
3012 CPP=
3013fi
3014if test -z "$CPP"; then
3015 if test "${ac_cv_prog_CPP+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 # Double quotes because CPP needs to be expanded
3019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3020 do
3021 ac_preproc_ok=false
3022for ac_c_preproc_warn_flag in '' yes
3023do
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036#ifdef __STDC__
3037# include <limits.h>
3038#else
3039# include <assert.h>
3040#endif
3041 Syntax error
3042_ACEOF
3043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3056 fi
3057else
3058 ac_cpp_err=yes
3059fi
3060if test -z "$ac_cpp_err"; then
3061 :
3062else
3063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 # Broken: fails on valid input.
3067continue
3068fi
3069rm -f conftest.err conftest.$ac_ext
3070
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079#include <ac_nonexistent.h>
3080_ACEOF
3081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3094 fi
3095else
3096 ac_cpp_err=yes
3097fi
3098if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100continue
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 # Passes both tests.
3106ac_preproc_ok=:
3107break
3108fi
3109rm -f conftest.err conftest.$ac_ext
3110
3111done
3112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113rm -f conftest.err conftest.$ac_ext
3114if $ac_preproc_ok; then
3115 break
3116fi
3117
3118 done
3119 ac_cv_prog_CPP=$CPP
3120
3121fi
3122 CPP=$ac_cv_prog_CPP
3123else
3124 ac_cv_prog_CPP=$CPP
3125fi
3126echo "$as_me:$LINENO: result: $CPP" >&5
3127echo "${ECHO_T}$CPP" >&6
3128ac_preproc_ok=false
3129for ac_c_preproc_warn_flag in '' yes
3130do
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat >conftest.$ac_ext <<_ACEOF
3138/* confdefs.h. */
3139_ACEOF
3140cat confdefs.h >>conftest.$ac_ext
3141cat >>conftest.$ac_ext <<_ACEOF
3142/* end confdefs.h. */
3143#ifdef __STDC__
3144# include <limits.h>
3145#else
3146# include <assert.h>
3147#endif
3148 Syntax error
3149_ACEOF
3150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3152 ac_status=$?
3153 grep -v '^ *+' conftest.er1 >conftest.err
3154 rm -f conftest.er1
3155 cat conftest.err >&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); } >/dev/null; then
3158 if test -s conftest.err; then
3159 ac_cpp_err=$ac_c_preproc_warn_flag
3160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3161 else
3162 ac_cpp_err=
3163 fi
3164else
3165 ac_cpp_err=yes
3166fi
3167if test -z "$ac_cpp_err"; then
3168 :
3169else
3170 echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 # Broken: fails on valid input.
3174continue
3175fi
3176rm -f conftest.err conftest.$ac_ext
3177
3178 # OK, works on sane cases. Now check whether non-existent headers
3179 # can be detected and how.
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186#include <ac_nonexistent.h>
3187_ACEOF
3188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3199 else
3200 ac_cpp_err=
3201 fi
3202else
3203 ac_cpp_err=yes
3204fi
3205if test -z "$ac_cpp_err"; then
3206 # Broken: success on invalid input.
3207continue
3208else
3209 echo "$as_me: failed program was:" >&5
3210sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 # Passes both tests.
3213ac_preproc_ok=:
3214break
3215fi
3216rm -f conftest.err conftest.$ac_ext
3217
3218done
3219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3220rm -f conftest.err conftest.$ac_ext
3221if $ac_preproc_ok; then
3222 :
3223else
3224 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3225See \`config.log' for more details." >&5
3226echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3227See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3229fi
3230
3231ac_ext=c
3232ac_cpp='$CPP $CPPFLAGS'
3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236
3237ac_ext=cc
3238ac_cpp='$CXXCPP $CPPFLAGS'
3239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3242if test -n "$ac_tool_prefix"; then
3243 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3244 do
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3247echo "$as_me:$LINENO: checking for $ac_word" >&5
3248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3249if test "${ac_cv_prog_CXX+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252 if test -n "$CXX"; then
3253 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267done
3268
3269fi
3270fi
3271CXX=$ac_cv_prog_CXX
3272if test -n "$CXX"; then
3273 echo "$as_me:$LINENO: result: $CXX" >&5
3274echo "${ECHO_T}$CXX" >&6
3275else
3276 echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6
3278fi
3279
3280 test -n "$CXX" && break
3281 done
3282fi
3283if test -z "$CXX"; then
3284 ac_ct_CXX=$CXX
3285 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3286do
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288set dummy $ac_prog; ac_word=$2
3289echo "$as_me:$LINENO: checking for $ac_word" >&5
3290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294 if test -n "$ac_ct_CXX"; then
3295 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 ac_cv_prog_ac_ct_CXX="$ac_prog"
3305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308done
3309done
3310
3311fi
3312fi
3313ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3314if test -n "$ac_ct_CXX"; then
3315 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3316echo "${ECHO_T}$ac_ct_CXX" >&6
3317else
3318 echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320fi
3321
3322 test -n "$ac_ct_CXX" && break
3323done
3324test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3325
3326 CXX=$ac_ct_CXX
3327fi
3328
3329
3330# Provide some information about the compiler.
3331echo "$as_me:$LINENO:" \
3332 "checking for C++ compiler version" >&5
3333ac_compiler=`set X $ac_compile; echo $2`
3334{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3335 (eval $ac_compiler --version </dev/null >&5) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3339{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3340 (eval $ac_compiler -v </dev/null >&5) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3344{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3345 (eval $ac_compiler -V </dev/null >&5) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349
3350echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3351echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3352if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_cxx_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_compiler_gnu=yes
3396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_compiler_gnu=no
3401fi
3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3404
3405fi
3406echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3407echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3408GXX=`test $ac_compiler_gnu = yes && echo yes`
3409ac_test_CXXFLAGS=${CXXFLAGS+set}
3410ac_save_CXXFLAGS=$CXXFLAGS
3411CXXFLAGS="-g"
3412echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3413echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3414if test "${ac_cv_prog_cxx_g+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423
3424int
3425main ()
3426{
3427
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_cxx_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 (eval $ac_try) 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_prog_cxx_g=yes
3455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459ac_cv_prog_cxx_g=no
3460fi
3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3464echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3465if test "$ac_test_CXXFLAGS" = set; then
3466 CXXFLAGS=$ac_save_CXXFLAGS
3467elif test $ac_cv_prog_cxx_g = yes; then
3468 if test "$GXX" = yes; then
3469 CXXFLAGS="-g -O2"
3470 else
3471 CXXFLAGS="-g"
3472 fi
3473else
3474 if test "$GXX" = yes; then
3475 CXXFLAGS="-O2"
3476 else
3477 CXXFLAGS=
3478 fi
3479fi
3480for ac_declaration in \
3481 '' \
3482 'extern "C" void std::exit (int) throw (); using std::exit;' \
3483 'extern "C" void std::exit (int); using std::exit;' \
3484 'extern "C" void exit (int) throw ();' \
3485 'extern "C" void exit (int);' \
3486 'void exit (int);'
3487do
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494$ac_declaration
3495#include <stdlib.h>
3496int
3497main ()
3498{
3499exit (42);
3500 ;
3501 return 0;
3502}
3503_ACEOF
3504rm -f conftest.$ac_objext
3505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } &&
3513 { ac_try='test -z "$ac_cxx_werror_flag"
3514 || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest.$ac_objext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 :
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531continue
3532fi
3533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534 cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
3540$ac_declaration
3541int
3542main ()
3543{
3544exit (42);
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551 (eval $ac_compile) 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } &&
3558 { ac_try='test -z "$ac_cxx_werror_flag"
3559 || test ! -s conftest.err'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 (eval $ac_try) 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; } &&
3565 { ac_try='test -s conftest.$ac_objext'
3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 (eval $ac_try) 2>&5
3568 ac_status=$?
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3571 break
3572else
3573 echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576fi
3577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3578done
3579rm -f conftest*
3580if test -n "$ac_declaration"; then
3581 echo '#ifdef __cplusplus' >>confdefs.h
3582 echo $ac_declaration >>confdefs.h
3583 echo '#endif' >>confdefs.h
3584fi
3585
3586ac_ext=c
3587ac_cpp='$CPP $CPPFLAGS'
3588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592depcc="$CXX" am_compiler_list=
3593
3594echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3595echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3596if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3600 # We make a subdir and do the tests there. Otherwise we can end up
3601 # making bogus files that we don't know about and never remove. For
3602 # instance it was reported that on HP-UX the gcc test will end up
3603 # making a dummy file named `D' -- because `-MD' means `put the output
3604 # in D'.
3605 mkdir conftest.dir
3606 # Copy depcomp to subdir because otherwise we won't find it if we're
3607 # using a relative directory.
3608 cp "$am_depcomp" conftest.dir
3609 cd conftest.dir
3610 # We will build objects and dependencies in a subdirectory because
3611 # it helps to detect inapplicable dependency modes. For instance
3612 # both Tru64's cc and ICC support -MD to output dependencies as a
3613 # side effect of compilation, but ICC will put the dependencies in
3614 # the current directory while Tru64 will put them in the object
3615 # directory.
3616 mkdir sub
3617
3618 am_cv_CXX_dependencies_compiler_type=none
3619 if test "$am_compiler_list" = ""; then
3620 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3621 fi
3622 for depmode in $am_compiler_list; do
3623 # Setup a source with many dependencies, because some compilers
3624 # like to wrap large dependency lists on column 80 (with \), and
3625 # we should not choose a depcomp mode which is confused by this.
3626 #
3627 # We need to recreate these files for each test, as the compiler may
3628 # overwrite some of them when testing with obscure command lines.
3629 # This happens at least with the AIX C compiler.
3630 : > sub/conftest.c
3631 for i in 1 2 3 4 5 6; do
3632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3633 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3634 # Solaris 8's {/usr,}/bin/sh.
3635 touch sub/conftst$i.h
3636 done
3637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3638
3639 case $depmode in
3640 nosideeffect)
3641 # after this tag, mechanisms are not by side-effect, so they'll
3642 # only be used when explicitly requested
3643 if test "x$enable_dependency_tracking" = xyes; then
3644 continue
3645 else
3646 break
3647 fi
3648 ;;
3649 none) break ;;
3650 esac
3651 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3652 # mode. It turns out that the SunPro C++ compiler does not properly
3653 # handle `-M -o', and we need to detect this.
3654 if depmode=$depmode \
3655 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3657 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3658 >/dev/null 2>conftest.err &&
3659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3660 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3662 # icc doesn't choke on unknown options, it will just issue warnings
3663 # or remarks (even with -Werror). So we grep stderr for any message
3664 # that says an option was ignored or not supported.
3665 # When given -MP, icc 7.0 and 7.1 complain thusly:
3666 # icc: Command line warning: ignoring option '-M'; no argument required
3667 # The diagnosis changed in icc 8.0:
3668 # icc: Command line remark: option '-MP' not supported
3669 if (grep 'ignoring option' conftest.err ||
3670 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3671 am_cv_CXX_dependencies_compiler_type=$depmode
3672 break
3673 fi
3674 fi
3675 done
3676
3677 cd ..
3678 rm -rf conftest.dir
3679else
3680 am_cv_CXX_dependencies_compiler_type=none
3681fi
3682
3683fi
3684echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3685echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3687
3688
3689
3690if
3691 test "x$enable_dependency_tracking" != xno \
3692 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3693 am__fastdepCXX_TRUE=
3694 am__fastdepCXX_FALSE='#'
3695else
3696 am__fastdepCXX_TRUE='#'
3697 am__fastdepCXX_FALSE=
3698fi
3699
3700
3701# Extract the first word of "ld", so it can be a program name with args.
3702set dummy ld; ac_word=$2
3703echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705if test "${ac_cv_prog_LD+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 if test -n "$LD"; then
3709 ac_cv_prog_LD="$LD" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_LD="ld"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723done
3724
3725fi
3726fi
3727LD=$ac_cv_prog_LD
3728if test -n "$LD"; then
3729 echo "$as_me:$LINENO: result: $LD" >&5
3730echo "${ECHO_T}$LD" >&6
3731else
3732 echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6
3734fi
3735
3736test "$LD" || { { echo "$as_me:$LINENO: error: ld not found" >&5
3737echo "$as_me: error: ld not found" >&2;}
3738 { (exit 1); exit 1; }; }
3739
3740
3741
3742echo "$as_me:$LINENO: checking for kernel OProfile support" >&5
3743echo $ECHO_N "checking for kernel OProfile support... $ECHO_C" >&6
3744
3745# Check whether --with-kernel-support or --without-kernel-support was given.
3746if test "${with_kernel_support+set}" = set; then
3747 withval="$with_kernel_support"
3748 if test "$withval" = "yes"; then
3749 OPROFILE_26=yes
3750fi
3751
3752fi;
3753
3754if test "$OPROFILE_26" != "yes"; then
3755
3756
3757 KSRC=/lib/modules/`uname -r`/build
3758
3759# Check whether --with-linux or --without-linux was given.
3760if test "${with_linux+set}" = set; then
3761 withval="$with_linux"
3762 KSRC=$withval
3763fi;
3764 KINC=$KSRC/include
3765
3766
3767
3768SAVE_CFLAGS=$CFLAGS
3769CFLAGS="-I$KINC -O2 -D__KERNEL__"
3770cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h. */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h. */
3776#include <linux/config.h>
3777int
3778main ()
3779{
3780
3781#ifndef CONFIG_OPROFILE
3782break_me_hard(\\\);
3783#endif
3784
3785 ;
3786 return 0;
3787}
3788_ACEOF
3789rm -f conftest.$ac_objext
3790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791 (eval $ac_compile) 2>conftest.er1
3792 ac_status=$?
3793 grep -v '^ *+' conftest.er1 >conftest.err
3794 rm -f conftest.er1
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } &&
3798 { ac_try='test -z "$ac_c_werror_flag"
3799 || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 OPROFILE_26=yes
3812else
3813 echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816OPROFILE_26=no
3817fi
3818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819CFLAGS=$SAVE_CFLAGS
3820
3821
3822SAVE_CFLAGS=$CFLAGS
3823CFLAGS="-I$KINC -O2 -D__KERNEL__"
3824cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h. */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h. */
3830#include <linux/config.h>
3831int
3832main ()
3833{
3834
3835#ifndef CONFIG_OPROFILE_MODULE
3836break_me_hard(\\\);
3837#endif
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext
3844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 (eval $ac_try) 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 OPROFILE_26=yes
3866else
3867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870OPROFILE_26=$OPROFILE_26
3871fi
3872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873CFLAGS=$SAVE_CFLAGS
3874
3875fi
3876echo "$as_me:$LINENO: result: $OPROFILE_26" >&5
3877echo "${ECHO_T}$OPROFILE_26" >&6
3878
3879
3880
3881if test "$OPROFILE_26" = yes; then
3882 kernel_support_TRUE=
3883 kernel_support_FALSE='#'
3884else
3885 kernel_support_TRUE='#'
3886 kernel_support_FALSE=
3887fi
3888
3889
3890
3891
3892if test "$OPROFILE_26" = "no"; then
3893
3894if test ! -f $KINC/linux/autoconf.h; then
3895 { { echo "$as_me:$LINENO: error: no suitably configured kernel include tree found" >&5
3896echo "$as_me: error: no suitably configured kernel include tree found" >&2;}
3897 { (exit 1); exit 1; }; }
3898fi
3899
3900
3901
3902echo "$as_me:$LINENO: checking for kernel version" >&5
3903echo $ECHO_N "checking for kernel version... $ECHO_C" >&6
3904eval KVERS=`gcc -I$KINC -E -dM $KINC/linux/version.h | grep -w UTS_RELEASE | awk '{print $3}'`
3905echo "$as_me:$LINENO: result: $KVERS" >&5
3906echo "${ECHO_T}$KVERS" >&6
3907case "$KVERS" in
39082.2.*|2.4.*) ;;
3909*) { { echo "$as_me:$LINENO: error: Unsupported kernel version" >&5
3910echo "$as_me: error: Unsupported kernel version" >&2;}
3911 { (exit 1); exit 1; }; }
3912esac
3913
3914echo "$as_me:$LINENO: checking kernel version" >&5
3915echo $ECHO_N "checking kernel version... $ECHO_C" >&6
3916
3917SAVE_CFLAGS=$CFLAGS
3918CFLAGS="-I$KINC -D__KERNEL__ -Werror"
3919cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h. */
3925
3926 #include <linux/version.h>
3927 #include <linux/config.h>
3928
3929int
3930main ()
3931{
3932
3933 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 2, 10)
3934 break_me_hard(\\\);
3935 #endif
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941rm -f conftest.$ac_objext
3942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } &&
3950 { ac_try='test -z "$ac_c_werror_flag"
3951 || test ! -s conftest.err'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; } &&
3957 { ac_try='test -s conftest.$ac_objext'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3963 echo "$as_me:$LINENO: result: ok" >&5
3964echo "${ECHO_T}ok" >&6
3965else
3966 echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969{ { echo "$as_me:$LINENO: error: check html documentation install section" >&5
3970echo "$as_me: error: check html documentation install section" >&2;}
3971 { (exit 1); exit 1; }; }
3972fi
3973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3974CFLAGS=$SAVE_CFLAGS
3975
3976
3977echo "$as_me:$LINENO: checking for $KINC/linux/spinlock.h" >&5
3978echo $ECHO_N "checking for $KINC/linux/spinlock.h... $ECHO_C" >&6
3979if test -f $KINC/linux/spinlock.h; then
3980 EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DHAVE_LINUX_SPINLOCK_HEADER"
3981 echo "$as_me:$LINENO: result: yes" >&5
3982echo "${ECHO_T}yes" >&6
3983else
3984 echo "$as_me:$LINENO: result: no" >&5
3985echo "${ECHO_T}no" >&6
3986fi
3987
3988echo "$as_me:$LINENO: checking for rtc_lock" >&5
3989echo $ECHO_N "checking for rtc_lock... $ECHO_C" >&6
3990gcc -I$KINC -E $KINC/linux/mc146818rtc.h | grep rtc_lock >/dev/null
3991if test "$?" -eq 0; then
3992 EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DRTC_LOCK"
3993 echo "$as_me:$LINENO: result: yes" >&5
3994echo "${ECHO_T}yes" >&6
3995else
3996 echo "$as_me:$LINENO: result: no" >&5
3997echo "${ECHO_T}no" >&6
3998fi
3999
4000arch="unknown"
4001echo "$as_me:$LINENO: checking for x86 architecture" >&5
4002echo $ECHO_N "checking for x86 architecture... $ECHO_C" >&6
4003
4004SAVE_CFLAGS=$CFLAGS
4005CFLAGS="-I$KINC -O2 -D__KERNEL__"
4006cat >conftest.$ac_ext <<_ACEOF
4007/* confdefs.h. */
4008_ACEOF
4009cat confdefs.h >>conftest.$ac_ext
4010cat >>conftest.$ac_ext <<_ACEOF
4011/* end confdefs.h. */
4012#include <linux/config.h>
4013int
4014main ()
4015{
4016
4017#ifndef CONFIG_X86
4018break_me_hard(\\\);
4019#endif
4020
4021 ;
4022 return 0;
4023}
4024_ACEOF
4025rm -f conftest.$ac_objext
4026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4027 (eval $ac_compile) 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } &&
4034 { ac_try='test -z "$ac_c_werror_flag"
4035 || test ! -s conftest.err'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4037 (eval $ac_try) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest.$ac_objext'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 (eval $ac_try) 2>&5
4044 ac_status=$?
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; }; then
4047 x86=1
4048else
4049 echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052x86=0
4053fi
4054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4055CFLAGS=$SAVE_CFLAGS
4056
4057
4058SAVE_CFLAGS=$CFLAGS
4059CFLAGS="-I$KINC -O2 -D__KERNEL__"
4060cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
4066#include <linux/config.h>
4067int
4068main ()
4069{
4070
4071#ifndef CONFIG_X86_WP_WORKS_OK
4072break_me_hard(\\\);
4073#endif
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext
4080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } &&
4088 { ac_try='test -z "$ac_c_werror_flag"
4089 || test ! -s conftest.err'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; } &&
4095 { ac_try='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 x86=1
4102else
4103 echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106x86=$x86
4107fi
4108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4109CFLAGS=$SAVE_CFLAGS
4110
4111x=no
4112test "x$x86" = "x1" && x=yes
4113echo "$as_me:$LINENO: result: $x" >&5
4114echo "${ECHO_T}$x" >&6
4115test "$x86" = 1 && arch="x86"
4116
4117if test "$arch" = "unknown"; then
4118 echo "$as_me:$LINENO: checking for ia64 architecture" >&5
4119echo $ECHO_N "checking for ia64 architecture... $ECHO_C" >&6
4120
4121SAVE_CFLAGS=$CFLAGS
4122CFLAGS="-I$KINC -O2 -D__KERNEL__"
4123cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129#include <linux/config.h>
4130int
4131main ()
4132{
4133
4134#ifndef CONFIG_IA64
4135break_me_hard(\\\);
4136#endif
4137
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142rm -f conftest.$ac_objext
4143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144 (eval $ac_compile) 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag"
4152 || test ! -s conftest.err'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ia64=1
4165else
4166 echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169ia64=0
4170fi
4171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172CFLAGS=$SAVE_CFLAGS
4173
4174 x=no
4175test "x$ia64" = "x1" && x=yes
4176echo "$as_me:$LINENO: result: $x" >&5
4177echo "${ECHO_T}$x" >&6
4178 test "$ia64" = 1 && arch="ia64"
4179fi
4180
4181test "$arch" = "unknown" && { { echo "$as_me:$LINENO: error: Unsupported architecture" >&5
4182echo "$as_me: error: Unsupported architecture" >&2;}
4183 { (exit 1); exit 1; }; }
4184
4185echo "$as_me:$LINENO: checking arch/kernel version combination" >&5
4186echo $ECHO_N "checking arch/kernel version combination... $ECHO_C" >&6
4187case "$arch" in
4188ia64)
4189
4190SAVE_CFLAGS=$CFLAGS
4191CFLAGS="-I$KINC -D__KERNEL__ -Werror"
4192cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h. */
4198
4199 #include <linux/version.h>
4200 #include <linux/config.h>
4201
4202int
4203main ()
4204{
4205
4206 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 18)
4207 break_me_hard(\\\);
4208 #endif
4209
4210 ;
4211 return 0;
4212}
4213_ACEOF
4214rm -f conftest.$ac_objext
4215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -z "$ac_c_werror_flag"
4224 || test ! -s conftest.err'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 (eval $ac_try) 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 echo "$as_me:$LINENO: result: ok" >&5
4237echo "${ECHO_T}ok" >&6
4238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242{ { echo "$as_me:$LINENO: error: unsupported arch/kernel" >&5
4243echo "$as_me: error: unsupported arch/kernel" >&2;}
4244 { (exit 1); exit 1; }; }
4245fi
4246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4247CFLAGS=$SAVE_CFLAGS
4248 ;;
4249*) echo "$as_me:$LINENO: result: ok" >&5
4250echo "${ECHO_T}ok" >&6
4251esac
4252
4253echo "$as_me:$LINENO: checking for preempt patch" >&5
4254echo $ECHO_N "checking for preempt patch... $ECHO_C" >&6
4255
4256SAVE_CFLAGS=$CFLAGS
4257CFLAGS="-I$KINC -O2 -D__KERNEL__"
4258cat >conftest.$ac_ext <<_ACEOF
4259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
4264#include <linux/config.h>
4265int
4266main ()
4267{
4268
4269#ifndef CONFIG_PREEMPT
4270break_me_hard(\\\);
4271#endif
4272
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext
4278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag"
4287 || test ! -s conftest.err'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; }; then
4299 preempt=1
4300else
4301 echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304preempt=0
4305fi
4306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307CFLAGS=$SAVE_CFLAGS
4308
4309x=no
4310test "x$preempt" = "x1" && x=yes
4311echo "$as_me:$LINENO: result: $x" >&5
4312echo "${ECHO_T}$x" >&6
4313test "$preempt" = 0 || { { echo "$as_me:$LINENO: error: unsupported kernel configuration : CONFIG_PREEMPT" >&5
4314echo "$as_me: error: unsupported kernel configuration : CONFIG_PREEMPT" >&2;}
4315 { (exit 1); exit 1; }; }
4316
4317
4318
4319MODINSTALLDIR=/lib/modules/$KVERS
4320
4321OPROFILE_MODULE_ARCH=$arch
4322
4323
4324
4325fi
4326
4327
4328# Check whether --with-module-dir or --without-module-dir was given.
4329if test "${with_module_dir+set}" = set; then
4330 withval="$with_module_dir"
4331 MODINSTALLDIR=$withval
4332fi;
4333
4334
4335
4336echo "$as_me:$LINENO: checking whether malloc attribute is understood" >&5
4337echo $ECHO_N "checking whether malloc attribute is understood... $ECHO_C" >&6
4338SAVE_CFLAGS=$CFLAGS
4339CFLAGS="-Werror $CFLAGS"
4340cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346
4347int
4348main ()
4349{
4350
4351void monkey() __attribute__((malloc));
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext
4358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380echo "${ECHO_T}yes" >&6;
4381cat >>confdefs.h <<\_ACEOF
4382#define MALLOC_ATTRIBUTE_OK 1
4383_ACEOF
4384
4385else
4386 echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391fi
4392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393CFLAGS=$SAVE_CFLAGS
4394
4395
4396
4397echo "$as_me:$LINENO: checking whether __builtin_expect is understood" >&5
4398echo $ECHO_N "checking whether __builtin_expect is understood... $ECHO_C" >&6
4399SAVE_CFLAGS=$CFLAGS
4400CFLAGS="-Werror $CFLAGS"
4401cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407
4408int
4409main ()
4410{
4411
4412int i;
4413if (__builtin_expect(i, 0)) { }
4414
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext conftest$ac_exeext
4420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4421 (eval $ac_link) 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } &&
4428 { ac_try='test -z "$ac_c_werror_flag"
4429 || test ! -s conftest.err'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; } &&
4435 { ac_try='test -s conftest$ac_exeext'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 echo "$as_me:$LINENO: result: yes" >&5
4442echo "${ECHO_T}yes" >&6; EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK"
4443else
4444 echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6;
4449fi
4450rm -f conftest.err conftest.$ac_objext \
4451 conftest$ac_exeext conftest.$ac_ext
4452CFLAGS=$SAVE_CFLAGS
4453
4454
4455
4456
4457
4458topdir=`pwd`
4459
4460
4461
4462
4463# Check whether --with-extra-includes or --without-extra-includes was given.
4464if test "${with_extra_includes+set}" = set; then
4465 withval="$with_extra_includes"
4466 use_extra_includes="$withval"
4467else
4468 use_extra_includes=NO
4469
4470fi;
4471if test -n "$use_extra_includes" && \
4472 test "$use_extra_includes" != "NO"; then
4473 ac_save_ifs=$IFS
4474 IFS=':'
4475 for dir in $use_extra_includes; do
4476 extra_includes="$extra_includes -I$dir"
4477 done
4478 IFS=$ac_save_ifs
4479 CPPFLAGS="$CPPFLAGS $extra_includes"
4480fi
4481
4482
4483# Check whether --with-extra-libs or --without-extra-libs was given.
4484if test "${with_extra_libs+set}" = set; then
4485 withval="$with_extra_libs"
4486 use_extra_libs=$withval
4487else
4488 use_extra_libs=NO
4489
4490fi;
4491if test -n "$use_extra_libs" && \
4492 test "$use_extra_libs" != "NO"; then
4493 ac_save_ifs=$IFS
4494 IFS=':'
4495 for dir in $use_extra_libs; do
4496 extra_libraries="$extra_libraries -L$dir"
4497 done
4498 IFS=$ac_save_ifs
4499 LDFLAGS="$LDFLAGS $extra_libraries"
4500fi
4501
4502
4503
4504ORIG_SAVE_LIBS="$LIBS"
4505
4506
4507
4508for ac_func in sched_setaffinity perfmonctl
4509do
4510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4511echo "$as_me:$LINENO: checking for $ac_func" >&5
4512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4513if eval "test \"\${$as_ac_var+set}\" = set"; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4524#define $ac_func innocuous_$ac_func
4525
4526/* System header to define __stub macros and hopefully few prototypes,
4527 which can conflict with char $ac_func (); below.
4528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 <limits.h> exists even on freestanding compilers. */
4530
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536
4537#undef $ac_func
4538
4539/* Override any gcc2 internal prototype to avoid an error. */
4540#ifdef __cplusplus
4541extern "C"
4542{
4543#endif
4544/* We use char because int might match the return type of a gcc2
4545 builtin and then its argument prototype would still apply. */
4546char $ac_func ();
4547/* The GNU C library defines this for functions which it implements
4548 to always fail with ENOSYS. Some functions are actually named
4549 something starting with __ and the normal name is an alias. */
4550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4551choke me
4552#else
4553char (*f) () = $ac_func;
4554#endif
4555#ifdef __cplusplus
4556}
4557#endif
4558
4559int
4560main ()
4561{
4562return f != $ac_func;
4563 ;
4564 return 0;
4565}
4566_ACEOF
4567rm -f conftest.$ac_objext conftest$ac_exeext
4568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4569 (eval $ac_link) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest$ac_exeext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 eval "$as_ac_var=yes"
4590else
4591 echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594eval "$as_ac_var=no"
4595fi
4596rm -f conftest.err conftest.$ac_objext \
4597 conftest$ac_exeext conftest.$ac_ext
4598fi
4599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4601if test `eval echo '${'$as_ac_var'}'` = yes; then
4602 cat >>confdefs.h <<_ACEOF
4603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4604_ACEOF
4605
4606fi
4607done
4608
4609
4610
4611echo "$as_me:$LINENO: checking for poptGetContext in -lpopt" >&5
4612echo $ECHO_N "checking for poptGetContext in -lpopt... $ECHO_C" >&6
4613if test "${ac_cv_lib_popt_poptGetContext+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 ac_check_lib_save_LIBS=$LIBS
4617LIBS="-lpopt $LIBS"
4618cat >conftest.$ac_ext <<_ACEOF
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
4624
4625/* Override any gcc2 internal prototype to avoid an error. */
4626#ifdef __cplusplus
4627extern "C"
4628#endif
4629/* We use char because int might match the return type of a gcc2
4630 builtin and then its argument prototype would still apply. */
4631char poptGetContext ();
4632int
4633main ()
4634{
4635poptGetContext ();
4636 ;
4637 return 0;
4638}
4639_ACEOF
4640rm -f conftest.$ac_objext conftest$ac_exeext
4641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 (eval $ac_try) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_popt_poptGetContext=yes
4663else
4664 echo "$as_me: failed program was:" >&5
4665sed 's/^/| /' conftest.$ac_ext >&5
4666
4667ac_cv_lib_popt_poptGetContext=no
4668fi
4669rm -f conftest.err conftest.$ac_objext \
4670 conftest$ac_exeext conftest.$ac_ext
4671LIBS=$ac_check_lib_save_LIBS
4672fi
4673echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetContext" >&5
4674echo "${ECHO_T}$ac_cv_lib_popt_poptGetContext" >&6
4675if test $ac_cv_lib_popt_poptGetContext = yes; then
4676 cat >>confdefs.h <<_ACEOF
4677#define HAVE_LIBPOPT 1
4678_ACEOF
4679
4680 LIBS="-lpopt $LIBS"
4681
4682else
4683 { { echo "$as_me:$LINENO: error: popt library not found" >&5
4684echo "$as_me: error: popt library not found" >&2;}
4685 { (exit 1); exit 1; }; }
4686fi
4687
4688
4689
4690echo "$as_me:$LINENO: checking for egrep" >&5
4691echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4692if test "${ac_cv_prog_egrep+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4696 then ac_cv_prog_egrep='grep -E'
4697 else ac_cv_prog_egrep='egrep'
4698 fi
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4701echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4702 EGREP=$ac_cv_prog_egrep
4703
4704
4705echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4706echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4707if test "${ac_cv_header_stdc+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710 cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h. */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h. */
4716#include <stdlib.h>
4717#include <stdarg.h>
4718#include <string.h>
4719#include <float.h>
4720
4721int
4722main ()
4723{
4724
4725 ;
4726 return 0;
4727}
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_c_werror_flag"
4739 || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 ac_cv_header_stdc=yes
4752else
4753 echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756ac_cv_header_stdc=no
4757fi
4758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759
4760if test $ac_cv_header_stdc = yes; then
4761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4762 cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768#include <string.h>
4769
4770_ACEOF
4771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "memchr" >/dev/null 2>&1; then
4773 :
4774else
4775 ac_cv_header_stdc=no
4776fi
4777rm -f conftest*
4778
4779fi
4780
4781if test $ac_cv_header_stdc = yes; then
4782 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4783 cat >conftest.$ac_ext <<_ACEOF
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789#include <stdlib.h>
4790
4791_ACEOF
4792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "free" >/dev/null 2>&1; then
4794 :
4795else
4796 ac_cv_header_stdc=no
4797fi
4798rm -f conftest*
4799
4800fi
4801
4802if test $ac_cv_header_stdc = yes; then
4803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4804 if test "$cross_compiling" = yes; then
4805 :
4806else
4807 cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813#include <ctype.h>
4814#if ((' ' & 0x0FF) == 0x020)
4815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817#else
4818# define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823#endif
4824
4825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826int
4827main ()
4828{
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 exit(2);
4834 exit (0);
4835}
4836_ACEOF
4837rm -f conftest$ac_exeext
4838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4839 (eval $ac_link) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 :
4849else
4850 echo "$as_me: program exited with status $ac_status" >&5
4851echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854( exit $ac_status )
4855ac_cv_header_stdc=no
4856fi
4857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4858fi
4859fi
4860fi
4861echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4862echo "${ECHO_T}$ac_cv_header_stdc" >&6
4863if test $ac_cv_header_stdc = yes; then
4864
4865cat >>confdefs.h <<\_ACEOF
4866#define STDC_HEADERS 1
4867_ACEOF
4868
4869fi
4870
4871# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4882 inttypes.h stdint.h unistd.h
4883do
4884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4885echo "$as_me:$LINENO: checking for $ac_header" >&5
4886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887if eval "test \"\${$as_ac_Header+set}\" = set"; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889else
4890 cat >conftest.$ac_ext <<_ACEOF
4891/* confdefs.h. */
4892_ACEOF
4893cat confdefs.h >>conftest.$ac_ext
4894cat >>conftest.$ac_ext <<_ACEOF
4895/* end confdefs.h. */
4896$ac_includes_default
4897
4898#include <$ac_header>
4899_ACEOF
4900rm -f conftest.$ac_objext
4901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 eval "$as_ac_Header=yes"
4923else
4924 echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927eval "$as_ac_Header=no"
4928fi
4929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930fi
4931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4933if test `eval echo '${'$as_ac_Header'}'` = yes; then
4934 cat >>confdefs.h <<_ACEOF
4935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4936_ACEOF
4937
4938fi
4939
4940done
4941
4942
4943
4944
4945for ac_header in libiberty.h
4946do
4947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4948if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949 echo "$as_me:$LINENO: checking for $ac_header" >&5
4950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4951if eval "test \"\${$as_ac_Header+set}\" = set"; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953fi
4954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4956else
4957 # Is the header compilable?
4958echo "$as_me:$LINENO: checking $ac_header usability" >&5
4959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4960cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h. */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h. */
4966$ac_includes_default
4967#include <$ac_header>
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 ac_header_compiler=yes
4992else
4993 echo "$as_me: failed program was:" >&5
4994sed 's/^/| /' conftest.$ac_ext >&5
4995
4996ac_header_compiler=no
4997fi
4998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5000echo "${ECHO_T}$ac_header_compiler" >&6
5001
5002# Is the header present?
5003echo "$as_me:$LINENO: checking $ac_header presence" >&5
5004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5005cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
5011#include <$ac_header>
5012_ACEOF
5013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null; then
5021 if test -s conftest.err; then
5022 ac_cpp_err=$ac_c_preproc_warn_flag
5023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5024 else
5025 ac_cpp_err=
5026 fi
5027else
5028 ac_cpp_err=yes
5029fi
5030if test -z "$ac_cpp_err"; then
5031 ac_header_preproc=yes
5032else
5033 echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 ac_header_preproc=no
5037fi
5038rm -f conftest.err conftest.$ac_ext
5039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5040echo "${ECHO_T}$ac_header_preproc" >&6
5041
5042# So? What about this header?
5043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5044 yes:no: )
5045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5049 ac_header_preproc=yes
5050 ;;
5051 no:yes:* )
5052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5064 (
5065 cat <<\_ASBOX
5066## ------------------------------------------ ##
5067## Report this to the AC_PACKAGE_NAME lists. ##
5068## ------------------------------------------ ##
5069_ASBOX
5070 ) |
5071 sed "s/^/$as_me: WARNING: /" >&2
5072 ;;
5073esac
5074echo "$as_me:$LINENO: checking for $ac_header" >&5
5075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5076if eval "test \"\${$as_ac_Header+set}\" = set"; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079 eval "$as_ac_Header=\$ac_header_preproc"
5080fi
5081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083
5084fi
5085if test `eval echo '${'$as_ac_Header'}'` = yes; then
5086 cat >>confdefs.h <<_ACEOF
5087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5088_ACEOF
5089
5090fi
5091
5092done
5093
5094
5095echo "$as_me:$LINENO: checking for cplus_demangle in -liberty" >&5
5096echo $ECHO_N "checking for cplus_demangle in -liberty... $ECHO_C" >&6
5097if test "${ac_cv_lib_iberty_cplus_demangle+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 ac_check_lib_save_LIBS=$LIBS
5101LIBS="-liberty $LIBS"
5102cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108
5109/* Override any gcc2 internal prototype to avoid an error. */
5110#ifdef __cplusplus
5111extern "C"
5112#endif
5113/* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5115char cplus_demangle ();
5116int
5117main ()
5118{
5119cplus_demangle ();
5120 ;
5121 return 0;
5122}
5123_ACEOF
5124rm -f conftest.$ac_objext conftest$ac_exeext
5125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5126 (eval $ac_link) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -z "$ac_c_werror_flag"
5134 || test ! -s conftest.err'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 (eval $ac_try) 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_lib_iberty_cplus_demangle=yes
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151ac_cv_lib_iberty_cplus_demangle=no
5152fi
5153rm -f conftest.err conftest.$ac_objext \
5154 conftest$ac_exeext conftest.$ac_ext
5155LIBS=$ac_check_lib_save_LIBS
5156fi
5157echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_cplus_demangle" >&5
5158echo "${ECHO_T}$ac_cv_lib_iberty_cplus_demangle" >&6
5159if test $ac_cv_lib_iberty_cplus_demangle = yes; then
5160 cat >>confdefs.h <<_ACEOF
5161#define HAVE_LIBIBERTY 1
5162_ACEOF
5163
5164 LIBS="-liberty $LIBS"
5165
5166else
5167 { { echo "$as_me:$LINENO: error: liberty library not found" >&5
5168echo "$as_me: error: liberty library not found" >&2;}
5169 { (exit 1); exit 1; }; }
5170fi
5171
5172
5173for ac_func in xcalloc
5174do
5175as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176echo "$as_me:$LINENO: checking for $ac_func" >&5
5177echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189#define $ac_func innocuous_$ac_func
5190
5191/* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196#ifdef __STDC__
5197# include <limits.h>
5198#else
5199# include <assert.h>
5200#endif
5201
5202#undef $ac_func
5203
5204/* Override any gcc2 internal prototype to avoid an error. */
5205#ifdef __cplusplus
5206extern "C"
5207{
5208#endif
5209/* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211char $ac_func ();
5212/* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216choke me
5217#else
5218char (*f) () = $ac_func;
5219#endif
5220#ifdef __cplusplus
5221}
5222#endif
5223
5224int
5225main ()
5226{
5227return f != $ac_func;
5228 ;
5229 return 0;
5230}
5231_ACEOF
5232rm -f conftest.$ac_objext conftest$ac_exeext
5233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255else
5256 echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259eval "$as_ac_var=no"
5260fi
5261rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263fi
5264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269_ACEOF
5270
5271fi
5272done
5273
5274
5275for ac_func in xmemdup
5276do
5277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5278echo "$as_me:$LINENO: checking for $ac_func" >&5
5279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5280if eval "test \"\${$as_ac_var+set}\" = set"; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5291#define $ac_func innocuous_$ac_func
5292
5293/* System header to define __stub macros and hopefully few prototypes,
5294 which can conflict with char $ac_func (); below.
5295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5296 <limits.h> exists even on freestanding compilers. */
5297
5298#ifdef __STDC__
5299# include <limits.h>
5300#else
5301# include <assert.h>
5302#endif
5303
5304#undef $ac_func
5305
5306/* Override any gcc2 internal prototype to avoid an error. */
5307#ifdef __cplusplus
5308extern "C"
5309{
5310#endif
5311/* We use char because int might match the return type of a gcc2
5312 builtin and then its argument prototype would still apply. */
5313char $ac_func ();
5314/* The GNU C library defines this for functions which it implements
5315 to always fail with ENOSYS. Some functions are actually named
5316 something starting with __ and the normal name is an alias. */
5317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5318choke me
5319#else
5320char (*f) () = $ac_func;
5321#endif
5322#ifdef __cplusplus
5323}
5324#endif
5325
5326int
5327main ()
5328{
5329return f != $ac_func;
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext conftest$ac_exeext
5335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>conftest.er1
5337 ac_status=$?
5338 grep -v '^ *+' conftest.er1 >conftest.err
5339 rm -f conftest.er1
5340 cat conftest.err >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -z "$ac_c_werror_flag"
5344 || test ! -s conftest.err'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 eval "$as_ac_var=yes"
5357else
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361eval "$as_ac_var=no"
5362fi
5363rm -f conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365fi
5366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5368if test `eval echo '${'$as_ac_var'}'` = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5371_ACEOF
5372
5373fi
5374done
5375
5376echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5377echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5378if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381 ac_check_lib_save_LIBS=$LIBS
5382LIBS="-ldl $LIBS"
5383cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h. */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h. */
5389
5390/* Override any gcc2 internal prototype to avoid an error. */
5391#ifdef __cplusplus
5392extern "C"
5393#endif
5394/* We use char because int might match the return type of a gcc2
5395 builtin and then its argument prototype would still apply. */
5396char dlopen ();
5397int
5398main ()
5399{
5400dlopen ();
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405rm -f conftest.$ac_objext conftest$ac_exeext
5406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5407 (eval $ac_link) 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -z "$ac_c_werror_flag"
5415 || test ! -s conftest.err'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 (eval $ac_try) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; } &&
5421 { ac_try='test -s conftest$ac_exeext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_cv_lib_dl_dlopen=yes
5428else
5429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432ac_cv_lib_dl_dlopen=no
5433fi
5434rm -f conftest.err conftest.$ac_objext \
5435 conftest$ac_exeext conftest.$ac_ext
5436LIBS=$ac_check_lib_save_LIBS
5437fi
5438echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5439echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5440if test $ac_cv_lib_dl_dlopen = yes; then
5441 LIBS="$LIBS -ldl"; DL_LIB="-ldl"
5442else
5443 DL_LIB=""
5444fi
5445
5446echo "$as_me:$LINENO: checking for main in -lintl" >&5
5447echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
5448if test "${ac_cv_lib_intl_main+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451 ac_check_lib_save_LIBS=$LIBS
5452LIBS="-lintl $LIBS"
5453cat >conftest.$ac_ext <<_ACEOF
5454/* confdefs.h. */
5455_ACEOF
5456cat confdefs.h >>conftest.$ac_ext
5457cat >>conftest.$ac_ext <<_ACEOF
5458/* end confdefs.h. */
5459
5460
5461int
5462main ()
5463{
5464main ();
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext conftest$ac_exeext
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_lib_intl_main=yes
5492else
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496ac_cv_lib_intl_main=no
5497fi
5498rm -f conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500LIBS=$ac_check_lib_save_LIBS
5501fi
5502echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
5503echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
5504if test $ac_cv_lib_intl_main = yes; then
5505 LIBS="$LIBS -lintl"; INTL_LIB="-lintl"
5506else
5507 INTL_LIB=""
5508fi
5509
5510
5511echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
5512echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
5513if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516 ac_check_lib_save_LIBS=$LIBS
5517LIBS="-lbfd $LIBS"
5518cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524
5525/* Override any gcc2 internal prototype to avoid an error. */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529/* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5531char bfd_openr ();
5532int
5533main ()
5534{
5535bfd_openr ();
5536 ;
5537 return 0;
5538}
5539_ACEOF
5540rm -f conftest.$ac_objext conftest$ac_exeext
5541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } &&
5549 { ac_try='test -z "$ac_c_werror_flag"
5550 || test ! -s conftest.err'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_lib_bfd_bfd_openr=yes
5563else
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567ac_cv_lib_bfd_bfd_openr=no
5568fi
5569rm -f conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571LIBS=$ac_check_lib_save_LIBS
5572fi
5573echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
5574echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
5575if test $ac_cv_lib_bfd_bfd_openr = yes; then
5576 cat >>confdefs.h <<_ACEOF
5577#define HAVE_LIBBFD 1
5578_ACEOF
5579
5580 LIBS="-lbfd $LIBS"
5581
5582else
5583 { { echo "$as_me:$LINENO: error: bfd library not found" >&5
5584echo "$as_me: error: bfd library not found" >&2;}
5585 { (exit 1); exit 1; }; }
5586fi
5587
5588
5589# Determine if bfd_get_synthetic_symtab macro is available
5590OS="`uname`"
5591if test "$OS" = "Linux"; then
5592 echo "$as_me:$LINENO: checking whether bfd_get_synthetic_symtab() exists in BFD library" >&5
5593echo $ECHO_N "checking whether bfd_get_synthetic_symtab() exists in BFD library... $ECHO_C" >&6
5594 rm -f test-for-synth
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601#include <bfd.h>
5602int
5603main ()
5604{
5605asymbol * synthsyms; bfd * ibfd = 0;
5606 long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
5607 extern const bfd_target bfd_elf64_powerpc_vec;
5608 extern const bfd_target bfd_elf64_powerpcle_vec;
5609 char * ppc_name = bfd_elf64_powerpc_vec.name;
5610 char * ppcle_name = bfd_elf64_powerpcle_vec.name;
5611 ;
5612 return 0;
5613}
5614
5615_ACEOF
5616 $CC conftest.$ac_ext $LIBS -o test-for-synth > /dev/null 2>&1
5617 if test -f test-for-synth; then
5618 echo "yes"
5619 SYNTHESIZE_SYMBOLS='1'
5620 else
5621 echo "no"
5622 SYNTHESIZE_SYMBOLS='0'
5623 fi
5624
5625cat >>confdefs.h <<_ACEOF
5626#define SYNTHESIZE_SYMBOLS $SYNTHESIZE_SYMBOLS
5627_ACEOF
5628
5629 rm -f test-for-synth*
5630
5631fi
5632
5633
5634
5635# C++ tests
5636
5637ac_ext=cc
5638ac_cpp='$CXXCPP $CPPFLAGS'
5639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5642
5643
5644
5645
5646echo "$as_me:$LINENO: checking popt prototype" >&5
5647echo $ECHO_N "checking popt prototype... $ECHO_C" >&6
5648SAVE_CXXFLAGS=$CXXFLAGS
5649CXXFLAGS="-Werror $CXXFLAGS"
5650cat >conftest.$ac_ext <<_ACEOF
5651/* confdefs.h. */
5652_ACEOF
5653cat confdefs.h >>conftest.$ac_ext
5654cat >>conftest.$ac_ext <<_ACEOF
5655/* end confdefs.h. */
5656#include <popt.h>
5657int
5658main ()
5659{
5660
5661int c; char **v;
5662poptGetContext(0, c, v, 0, 0);
5663
5664 ;
5665 return 0;
5666}
5667_ACEOF
5668rm -f conftest.$ac_objext
5669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670 (eval $ac_compile) 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 echo "$as_me:$LINENO: result: takes char **" >&5
5691echo "${ECHO_T}takes char **" >&6;
5692else
5693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696echo "$as_me:$LINENO: result: takes const char **" >&5
5697echo "${ECHO_T}takes const char **" >&6;
5698cat >>confdefs.h <<\_ACEOF
5699#define CONST_POPT 1
5700_ACEOF
5701
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704CXXFLAGS="$SAVE_CXXFLAGS"
5705
5706
5707
5708echo "$as_me:$LINENO: checking whether to use included sstream" >&5
5709echo $ECHO_N "checking whether to use included sstream... $ECHO_C" >&6
5710cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h. */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h. */
5716#include <sstream>
5717int
5718main ()
5719{
5720
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725rm -f conftest.$ac_objext
5726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5727 (eval $ac_compile) 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -z "$ac_cxx_werror_flag"
5735 || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest.$ac_objext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6;
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="$OP_CXXFLAGS -I\${top_srcdir}/include"
5755fi
5756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757
5758
5759
5760echo "$as_me:$LINENO: checking whether bfd defines bool" >&5
5761echo $ECHO_N "checking whether bfd defines bool... $ECHO_C" >&6
5762cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768#include <bfd.h>
5769int
5770main ()
5771{
5772
5773 ;
5774 return 0;
5775}
5776_ACEOF
5777rm -f conftest.$ac_objext
5778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>conftest.er1
5780 ac_status=$?
5781 grep -v '^ *+' conftest.er1 >conftest.err
5782 rm -f conftest.er1
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -z "$ac_cxx_werror_flag"
5787 || test ! -s conftest.err'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; } &&
5793 { ac_try='test -s conftest.$ac_objext'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; }; then
5799 echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6;
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805echo "$as_me:$LINENO: result: yes" >&5
5806echo "${ECHO_T}yes" >&6;
5807cat >>confdefs.h <<\_ACEOF
5808#define TRUE_FALSE_ALREADY_DEFINED 1
5809_ACEOF
5810
5811fi
5812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813
5814
5815 echo "$as_me:$LINENO: checking type of size_t" >&5
5816echo $ECHO_N "checking type of size_t... $ECHO_C" >&6
5817 for f in "unsigned" "unsigned long"; do
5818
5819
5820
5821ac_ext=c
5822ac_cpp='$CPP $CPPFLAGS'
5823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5825ac_compiler_gnu=$ac_cv_c_compiler_gnu
5826
5827SAVE_CFLAGS=$CFLAGS
5828CFLAGS="-Werror $CFLAGS"
5829
5830cat >conftest.$ac_ext <<_ACEOF
5831/* confdefs.h. */
5832_ACEOF
5833cat confdefs.h >>conftest.$ac_ext
5834cat >>conftest.$ac_ext <<_ACEOF
5835/* end confdefs.h. */
5836
5837 #include <stddef.h>
5838
5839int
5840main ()
5841{
5842
5843 typedef void (*fct1)(size_t);
5844 typedef void (*fct2)($f);
5845 fct1 f1 = 0;
5846 fct2 f2 = 0;
5847 if (f1 == f2) {}
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext
5854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag"
5863 || test ! -s conftest.err'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 SIZE_T_TYPE="$f"
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880SIZE_T_TYPE=""
5881fi
5882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883
5884CFLAGS=$SAVE_CFLAGS
5885ac_ext=cc
5886ac_cpp='$CXXCPP $CPPFLAGS'
5887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890
5891
5892 if test -n "${SIZE_T_TYPE}"; then
5893 break
5894 fi
5895 done
5896 if test -n "${SIZE_T_TYPE}"; then
5897 echo "$as_me:$LINENO: result: ${SIZE_T_TYPE}" >&5
5898echo "${ECHO_T}${SIZE_T_TYPE}" >&6
5899 else
5900 { { echo "$as_me:$LINENO: error: not found" >&5
5901echo "$as_me: error: not found" >&2;}
5902 { (exit 1); exit 1; }; }
5903 fi
5904
5905
5906
5907 echo "$as_me:$LINENO: checking type of ptrdiff_t" >&5
5908echo $ECHO_N "checking type of ptrdiff_t... $ECHO_C" >&6
5909 for f in "int" "long"; do
5910
5911
5912
5913ac_ext=c
5914ac_cpp='$CPP $CPPFLAGS'
5915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919SAVE_CFLAGS=$CFLAGS
5920CFLAGS="-Werror $CFLAGS"
5921
5922cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928
5929 #include <stddef.h>
5930
5931int
5932main ()
5933{
5934
5935 typedef void (*fct1)(ptrdiff_t);
5936 typedef void (*fct2)($f);
5937 fct1 f1 = 0;
5938 fct2 f2 = 0;
5939 if (f1 == f2) {}
5940
5941 ;
5942 return 0;
5943}
5944_ACEOF
5945rm -f conftest.$ac_objext
5946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5947 (eval $ac_compile) 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -z "$ac_c_werror_flag"
5955 || test ! -s conftest.err'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963 (eval $ac_try) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 PTRDIFF_T_TYPE="$f"
5968else
5969 echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972PTRDIFF_T_TYPE=""
5973fi
5974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5975
5976CFLAGS=$SAVE_CFLAGS
5977ac_ext=cc
5978ac_cpp='$CXXCPP $CPPFLAGS'
5979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5982
5983
5984 if test -n "${PTRDIFF_T_TYPE}"; then
5985 break
5986 fi
5987 done
5988 if test -n "${PTRDIFF_T_TYPE}"; then
5989 echo "$as_me:$LINENO: result: ${PTRDIFF_T_TYPE}" >&5
5990echo "${ECHO_T}${PTRDIFF_T_TYPE}" >&6
5991 else
5992 { { echo "$as_me:$LINENO: error: not found" >&5
5993echo "$as_me: error: not found" >&2;}
5994 { (exit 1); exit 1; }; }
5995 fi
5996
5997
5998
5999ac_ext=cc
6000ac_cpp='$CXXCPP $CPPFLAGS'
6001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6004echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6005echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6006if test -z "$CXXCPP"; then
6007 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010 # Double quotes because CXXCPP needs to be expanded
6011 for CXXCPP in "$CXX -E" "/lib/cpp"
6012 do
6013 ac_preproc_ok=false
6014for ac_cxx_preproc_warn_flag in '' yes
6015do
6016 # Use a header file that comes with gcc, so configuring glibc
6017 # with a fresh cross-compiler works.
6018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019 # <limits.h> exists even on freestanding compilers.
6020 # On the NeXT, cc -E runs the code through the compiler's parser,
6021 # not just through cpp. "Syntax error" is here to catch this case.
6022 cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */
6028#ifdef __STDC__
6029# include <limits.h>
6030#else
6031# include <assert.h>
6032#endif
6033 Syntax error
6034_ACEOF
6035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6037 ac_status=$?
6038 grep -v '^ *+' conftest.er1 >conftest.err
6039 rm -f conftest.er1
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } >/dev/null; then
6043 if test -s conftest.err; then
6044 ac_cpp_err=$ac_cxx_preproc_warn_flag
6045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6046 else
6047 ac_cpp_err=
6048 fi
6049else
6050 ac_cpp_err=yes
6051fi
6052if test -z "$ac_cpp_err"; then
6053 :
6054else
6055 echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 # Broken: fails on valid input.
6059continue
6060fi
6061rm -f conftest.err conftest.$ac_ext
6062
6063 # OK, works on sane cases. Now check whether non-existent headers
6064 # can be detected and how.
6065 cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h. */
6071#include <ac_nonexistent.h>
6072_ACEOF
6073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6075 ac_status=$?
6076 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } >/dev/null; then
6081 if test -s conftest.err; then
6082 ac_cpp_err=$ac_cxx_preproc_warn_flag
6083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6084 else
6085 ac_cpp_err=
6086 fi
6087else
6088 ac_cpp_err=yes
6089fi
6090if test -z "$ac_cpp_err"; then
6091 # Broken: success on invalid input.
6092continue
6093else
6094 echo "$as_me: failed program was:" >&5
6095sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 # Passes both tests.
6098ac_preproc_ok=:
6099break
6100fi
6101rm -f conftest.err conftest.$ac_ext
6102
6103done
6104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6105rm -f conftest.err conftest.$ac_ext
6106if $ac_preproc_ok; then
6107 break
6108fi
6109
6110 done
6111 ac_cv_prog_CXXCPP=$CXXCPP
6112
6113fi
6114 CXXCPP=$ac_cv_prog_CXXCPP
6115else
6116 ac_cv_prog_CXXCPP=$CXXCPP
6117fi
6118echo "$as_me:$LINENO: result: $CXXCPP" >&5
6119echo "${ECHO_T}$CXXCPP" >&6
6120ac_preproc_ok=false
6121for ac_cxx_preproc_warn_flag in '' yes
6122do
6123 # Use a header file that comes with gcc, so configuring glibc
6124 # with a fresh cross-compiler works.
6125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6126 # <limits.h> exists even on freestanding compilers.
6127 # On the NeXT, cc -E runs the code through the compiler's parser,
6128 # not just through cpp. "Syntax error" is here to catch this case.
6129 cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
6135#ifdef __STDC__
6136# include <limits.h>
6137#else
6138# include <assert.h>
6139#endif
6140 Syntax error
6141_ACEOF
6142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null; then
6150 if test -s conftest.err; then
6151 ac_cpp_err=$ac_cxx_preproc_warn_flag
6152 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6153 else
6154 ac_cpp_err=
6155 fi
6156else
6157 ac_cpp_err=yes
6158fi
6159if test -z "$ac_cpp_err"; then
6160 :
6161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165 # Broken: fails on valid input.
6166continue
6167fi
6168rm -f conftest.err conftest.$ac_ext
6169
6170 # OK, works on sane cases. Now check whether non-existent headers
6171 # can be detected and how.
6172 cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178#include <ac_nonexistent.h>
6179_ACEOF
6180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null; then
6188 if test -s conftest.err; then
6189 ac_cpp_err=$ac_cxx_preproc_warn_flag
6190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6191 else
6192 ac_cpp_err=
6193 fi
6194else
6195 ac_cpp_err=yes
6196fi
6197if test -z "$ac_cpp_err"; then
6198 # Broken: success on invalid input.
6199continue
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 # Passes both tests.
6205ac_preproc_ok=:
6206break
6207fi
6208rm -f conftest.err conftest.$ac_ext
6209
6210done
6211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6212rm -f conftest.err conftest.$ac_ext
6213if $ac_preproc_ok; then
6214 :
6215else
6216 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6217See \`config.log' for more details." >&5
6218echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6219See \`config.log' for more details." >&2;}
6220 { (exit 1); exit 1; }; }
6221fi
6222
6223ac_ext=cc
6224ac_cpp='$CXXCPP $CPPFLAGS'
6225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6228
6229
6230echo "$as_me:$LINENO: checking for X" >&5
6231echo $ECHO_N "checking for X... $ECHO_C" >&6
6232
6233
6234# Check whether --with-x or --without-x was given.
6235if test "${with_x+set}" = set; then
6236 withval="$with_x"
6237
6238fi;
6239# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6240if test "x$with_x" = xno; then
6241 # The user explicitly disabled X.
6242 have_x=disabled
6243else
6244 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6245 # Both variables are already set.
6246 have_x=yes
6247 else
6248 if test "${ac_cv_have_x+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250else
6251 # One or both of the vars are not set, and there is no cached value.
6252ac_x_includes=no ac_x_libraries=no
6253rm -fr conftest.dir
6254if mkdir conftest.dir; then
6255 cd conftest.dir
6256 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6257 cat >Imakefile <<'_ACEOF'
6258acfindx:
6259 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6260_ACEOF
6261 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6262 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6263 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6264 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6265 for ac_extension in a so sl; do
6266 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6267 test -f $ac_im_libdir/libX11.$ac_extension; then
6268 ac_im_usrlibdir=$ac_im_libdir; break
6269 fi
6270 done
6271 # Screen out bogus values from the imake configuration. They are
6272 # bogus both because they are the default anyway, and because
6273 # using them would break gcc on systems where it needs fixed includes.
6274 case $ac_im_incroot in
6275 /usr/include) ;;
6276 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6277 esac
6278 case $ac_im_usrlibdir in
6279 /usr/lib | /lib) ;;
6280 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6281 esac
6282 fi
6283 cd ..
6284 rm -fr conftest.dir
6285fi
6286
6287# Standard set of common directories for X headers.
6288# Check X11 before X11Rn because it is often a symlink to the current release.
6289ac_x_header_dirs='
6290/usr/X11/include
6291/usr/X11R6/include
6292/usr/X11R5/include
6293/usr/X11R4/include
6294
6295/usr/include/X11
6296/usr/include/X11R6
6297/usr/include/X11R5
6298/usr/include/X11R4
6299
6300/usr/local/X11/include
6301/usr/local/X11R6/include
6302/usr/local/X11R5/include
6303/usr/local/X11R4/include
6304
6305/usr/local/include/X11
6306/usr/local/include/X11R6
6307/usr/local/include/X11R5
6308/usr/local/include/X11R4
6309
6310/usr/X386/include
6311/usr/x386/include
6312/usr/XFree86/include/X11
6313
6314/usr/include
6315/usr/local/include
6316/usr/unsupported/include
6317/usr/athena/include
6318/usr/local/x11r5/include
6319/usr/lpp/Xamples/include
6320
6321/usr/openwin/include
6322/usr/openwin/share/include'
6323
6324if test "$ac_x_includes" = no; then
6325 # Guess where to find include files, by looking for Intrinsic.h.
6326 # First, try using that file with no special directory specified.
6327 cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h. */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h. */
6333#include <X11/Intrinsic.h>
6334_ACEOF
6335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } >/dev/null; then
6343 if test -s conftest.err; then
6344 ac_cpp_err=$ac_cxx_preproc_warn_flag
6345 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6346 else
6347 ac_cpp_err=
6348 fi
6349else
6350 ac_cpp_err=yes
6351fi
6352if test -z "$ac_cpp_err"; then
6353 # We can compile using X headers with no special include directory.
6354ac_x_includes=
6355else
6356 echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359 for ac_dir in $ac_x_header_dirs; do
6360 if test -r "$ac_dir/X11/Intrinsic.h"; then
6361 ac_x_includes=$ac_dir
6362 break
6363 fi
6364done
6365fi
6366rm -f conftest.err conftest.$ac_ext
6367fi # $ac_x_includes = no
6368
6369if test "$ac_x_libraries" = no; then
6370 # Check for the libraries.
6371 # See if we find them without any special options.
6372 # Don't add to $LIBS permanently.
6373 ac_save_LIBS=$LIBS
6374 LIBS="-lXt $LIBS"
6375 cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h. */
6381#include <X11/Intrinsic.h>
6382int
6383main ()
6384{
6385XtMalloc (0)
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext conftest$ac_exeext
6391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392 (eval $ac_link) 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_cxx_werror_flag"
6400 || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest$ac_exeext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 LIBS=$ac_save_LIBS
6413# We can link X programs with no special library path.
6414ac_x_libraries=
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419LIBS=$ac_save_LIBS
6420for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6421do
6422 # Don't even attempt the hair of trying to link an X program!
6423 for ac_extension in a so sl; do
6424 if test -r $ac_dir/libXt.$ac_extension; then
6425 ac_x_libraries=$ac_dir
6426 break 2
6427 fi
6428 done
6429done
6430fi
6431rm -f conftest.err conftest.$ac_objext \
6432 conftest$ac_exeext conftest.$ac_ext
6433fi # $ac_x_libraries = no
6434
6435if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6436 # Didn't find X anywhere. Cache the known absence of X.
6437 ac_cv_have_x="have_x=no"
6438else
6439 # Record where we found X for the cache.
6440 ac_cv_have_x="have_x=yes \
6441 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6442fi
6443fi
6444
6445 fi
6446 eval "$ac_cv_have_x"
6447fi # $with_x != no
6448
6449if test "$have_x" != yes; then
6450 echo "$as_me:$LINENO: result: $have_x" >&5
6451echo "${ECHO_T}$have_x" >&6
6452 no_x=yes
6453else
6454 # If each of the values was on the command line, it overrides each guess.
6455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6457 # Update the cache value to reflect the command line values.
6458 ac_cv_have_x="have_x=yes \
6459 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6460 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6461echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6462fi
6463
6464if test "$no_x" = yes; then
6465 # Not all programs may use this symbol, but it does not hurt to define it.
6466
6467cat >>confdefs.h <<\_ACEOF
6468#define X_DISPLAY_MISSING 1
6469_ACEOF
6470
6471 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6472else
6473 if test -n "$x_includes"; then
6474 X_CFLAGS="$X_CFLAGS -I$x_includes"
6475 fi
6476
6477 # It would also be nice to do this for all -L options, not just this one.
6478 if test -n "$x_libraries"; then
6479 X_LIBS="$X_LIBS -L$x_libraries"
6480 # For Solaris; some versions of Sun CC require a space after -R and
6481 # others require no space. Words are not sufficient . . . .
6482 case `(uname -sr) 2>/dev/null` in
6483 "SunOS 5"*)
6484 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6485echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6486 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6487 cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493
6494int
6495main ()
6496{
6497
6498 ;
6499 return 0;
6500}
6501_ACEOF
6502rm -f conftest.$ac_objext conftest$ac_exeext
6503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6504 (eval $ac_link) 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_cxx_werror_flag"
6512 || test ! -s conftest.err'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6514 (eval $ac_try) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 ac_R_nospace=yes
6525else
6526 echo "$as_me: failed program was:" >&5
6527sed 's/^/| /' conftest.$ac_ext >&5
6528
6529ac_R_nospace=no
6530fi
6531rm -f conftest.err conftest.$ac_objext \
6532 conftest$ac_exeext conftest.$ac_ext
6533 if test $ac_R_nospace = yes; then
6534 echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536 X_LIBS="$X_LIBS -R$x_libraries"
6537 else
6538 LIBS="$ac_xsave_LIBS -R $x_libraries"
6539 cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545
6546int
6547main ()
6548{
6549
6550 ;
6551 return 0;
6552}
6553_ACEOF
6554rm -f conftest.$ac_objext conftest$ac_exeext
6555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6556 (eval $ac_link) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag"
6564 || test ! -s conftest.err'
6565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 (eval $ac_try) 2>&5
6567 ac_status=$?
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }; } &&
6570 { ac_try='test -s conftest$ac_exeext'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 (eval $ac_try) 2>&5
6573 ac_status=$?
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_R_space=yes
6577else
6578 echo "$as_me: failed program was:" >&5
6579sed 's/^/| /' conftest.$ac_ext >&5
6580
6581ac_R_space=no
6582fi
6583rm -f conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test $ac_R_space = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 X_LIBS="$X_LIBS -R $x_libraries"
6589 else
6590 echo "$as_me:$LINENO: result: neither works" >&5
6591echo "${ECHO_T}neither works" >&6
6592 fi
6593 fi
6594 LIBS=$ac_xsave_LIBS
6595 esac
6596 fi
6597
6598 # Check for system-dependent libraries X programs must link with.
6599 # Do this before checking for the system-independent R6 libraries
6600 # (-lICE), since we may need -lsocket or whatever for X linking.
6601
6602 if test "$ISC" = yes; then
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6604 else
6605 # Martyn Johnson says this is needed for Ultrix, if the X
6606 # libraries were built with DECnet support. And Karl Berry says
6607 # the Alpha needs dnet_stub (dnet does not exist).
6608 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6609 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615
6616/* Override any gcc2 internal prototype to avoid an error. */
6617#ifdef __cplusplus
6618extern "C"
6619#endif
6620/* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622char XOpenDisplay ();
6623int
6624main ()
6625{
6626XOpenDisplay ();
6627 ;
6628 return 0;
6629}
6630_ACEOF
6631rm -f conftest.$ac_objext conftest$ac_exeext
6632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>conftest.er1
6634 ac_status=$?
6635 grep -v '^ *+' conftest.er1 >conftest.err
6636 rm -f conftest.er1
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -z "$ac_cxx_werror_flag"
6641 || test ! -s conftest.err'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 :
6654else
6655 echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6659echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6660if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6662else
6663 ac_check_lib_save_LIBS=$LIBS
6664LIBS="-ldnet $LIBS"
6665cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671
6672/* Override any gcc2 internal prototype to avoid an error. */
6673#ifdef __cplusplus
6674extern "C"
6675#endif
6676/* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678char dnet_ntoa ();
6679int
6680main ()
6681{
6682dnet_ntoa ();
6683 ;
6684 return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext conftest$ac_exeext
6688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_cxx_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_cv_lib_dnet_dnet_ntoa=yes
6710else
6711 echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714ac_cv_lib_dnet_dnet_ntoa=no
6715fi
6716rm -f conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6721echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6722if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6723 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6724fi
6725
6726 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6727 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6728echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6729if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732 ac_check_lib_save_LIBS=$LIBS
6733LIBS="-ldnet_stub $LIBS"
6734cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h. */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h. */
6740
6741/* Override any gcc2 internal prototype to avoid an error. */
6742#ifdef __cplusplus
6743extern "C"
6744#endif
6745/* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747char dnet_ntoa ();
6748int
6749main ()
6750{
6751dnet_ntoa ();
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext
6757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6779else
6780 echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783ac_cv_lib_dnet_stub_dnet_ntoa=no
6784fi
6785rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787LIBS=$ac_check_lib_save_LIBS
6788fi
6789echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6790echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6791if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6792 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6793fi
6794
6795 fi
6796fi
6797rm -f conftest.err conftest.$ac_objext \
6798 conftest$ac_exeext conftest.$ac_ext
6799 LIBS="$ac_xsave_LIBS"
6800
6801 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6802 # to get the SysV transport functions.
6803 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6804 # needs -lnsl.
6805 # The nsl library prevents programs from opening the X display
6806 # on Irix 5.2, according to T.E. Dickey.
6807 # The functions gethostbyname, getservbyname, and inet_addr are
6808 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6809 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6810echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6811if test "${ac_cv_func_gethostbyname+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h. */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h. */
6820/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6822#define gethostbyname innocuous_gethostbyname
6823
6824/* System header to define __stub macros and hopefully few prototypes,
6825 which can conflict with char gethostbyname (); below.
6826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 <limits.h> exists even on freestanding compilers. */
6828
6829#ifdef __STDC__
6830# include <limits.h>
6831#else
6832# include <assert.h>
6833#endif
6834
6835#undef gethostbyname
6836
6837/* Override any gcc2 internal prototype to avoid an error. */
6838#ifdef __cplusplus
6839extern "C"
6840{
6841#endif
6842/* We use char because int might match the return type of a gcc2
6843 builtin and then its argument prototype would still apply. */
6844char gethostbyname ();
6845/* The GNU C library defines this for functions which it implements
6846 to always fail with ENOSYS. Some functions are actually named
6847 something starting with __ and the normal name is an alias. */
6848#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6849choke me
6850#else
6851char (*f) () = gethostbyname;
6852#endif
6853#ifdef __cplusplus
6854}
6855#endif
6856
6857int
6858main ()
6859{
6860return f != gethostbyname;
6861 ;
6862 return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext conftest$ac_exeext
6866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6867 (eval $ac_link) 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -z "$ac_cxx_werror_flag"
6875 || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_func_gethostbyname=yes
6888else
6889 echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892ac_cv_func_gethostbyname=no
6893fi
6894rm -f conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896fi
6897echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6898echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6899
6900 if test $ac_cv_func_gethostbyname = no; then
6901 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6902echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6903if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 ac_check_lib_save_LIBS=$LIBS
6907LIBS="-lnsl $LIBS"
6908cat >conftest.$ac_ext <<_ACEOF
6909/* confdefs.h. */
6910_ACEOF
6911cat confdefs.h >>conftest.$ac_ext
6912cat >>conftest.$ac_ext <<_ACEOF
6913/* end confdefs.h. */
6914
6915/* Override any gcc2 internal prototype to avoid an error. */
6916#ifdef __cplusplus
6917extern "C"
6918#endif
6919/* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6921char gethostbyname ();
6922int
6923main ()
6924{
6925gethostbyname ();
6926 ;
6927 return 0;
6928}
6929_ACEOF
6930rm -f conftest.$ac_objext conftest$ac_exeext
6931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -z "$ac_cxx_werror_flag"
6940 || test ! -s conftest.err'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 ac_cv_lib_nsl_gethostbyname=yes
6953else
6954 echo "$as_me: failed program was:" >&5
6955sed 's/^/| /' conftest.$ac_ext >&5
6956
6957ac_cv_lib_nsl_gethostbyname=no
6958fi
6959rm -f conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6961LIBS=$ac_check_lib_save_LIBS
6962fi
6963echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6964echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6965if test $ac_cv_lib_nsl_gethostbyname = yes; then
6966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6967fi
6968
6969 if test $ac_cv_lib_nsl_gethostbyname = no; then
6970 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6971echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6972if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975 ac_check_lib_save_LIBS=$LIBS
6976LIBS="-lbsd $LIBS"
6977cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983
6984/* Override any gcc2 internal prototype to avoid an error. */
6985#ifdef __cplusplus
6986extern "C"
6987#endif
6988/* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6990char gethostbyname ();
6991int
6992main ()
6993{
6994gethostbyname ();
6995 ;
6996 return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext conftest$ac_exeext
7000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -z "$ac_cxx_werror_flag"
7009 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } &&
7015 { ac_try='test -s conftest$ac_exeext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 (eval $ac_try) 2>&5
7018 ac_status=$?
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_lib_bsd_gethostbyname=yes
7022else
7023 echo "$as_me: failed program was:" >&5
7024sed 's/^/| /' conftest.$ac_ext >&5
7025
7026ac_cv_lib_bsd_gethostbyname=no
7027fi
7028rm -f conftest.err conftest.$ac_objext \
7029 conftest$ac_exeext conftest.$ac_ext
7030LIBS=$ac_check_lib_save_LIBS
7031fi
7032echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7033echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7034if test $ac_cv_lib_bsd_gethostbyname = yes; then
7035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7036fi
7037
7038 fi
7039 fi
7040
7041 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7042 # socket/setsockopt and other routines are undefined under SCO ODT
7043 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7044 # on later versions), says Simon Leinen: it contains gethostby*
7045 # variants that don't use the name server (or something). -lsocket
7046 # must be given before -lnsl if both are needed. We assume that
7047 # if connect needs -lnsl, so does gethostbyname.
7048 echo "$as_me:$LINENO: checking for connect" >&5
7049echo $ECHO_N "checking for connect... $ECHO_C" >&6
7050if test "${ac_cv_func_connect+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059/* Define connect to an innocuous variant, in case <limits.h> declares connect.
7060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7061#define connect innocuous_connect
7062
7063/* System header to define __stub macros and hopefully few prototypes,
7064 which can conflict with char connect (); below.
7065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 <limits.h> exists even on freestanding compilers. */
7067
7068#ifdef __STDC__
7069# include <limits.h>
7070#else
7071# include <assert.h>
7072#endif
7073
7074#undef connect
7075
7076/* Override any gcc2 internal prototype to avoid an error. */
7077#ifdef __cplusplus
7078extern "C"
7079{
7080#endif
7081/* We use char because int might match the return type of a gcc2
7082 builtin and then its argument prototype would still apply. */
7083char connect ();
7084/* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087#if defined (__stub_connect) || defined (__stub___connect)
7088choke me
7089#else
7090char (*f) () = connect;
7091#endif
7092#ifdef __cplusplus
7093}
7094#endif
7095
7096int
7097main ()
7098{
7099return f != connect;
7100 ;
7101 return 0;
7102}
7103_ACEOF
7104rm -f conftest.$ac_objext conftest$ac_exeext
7105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106 (eval $ac_link) 2>conftest.er1
7107 ac_status=$?
7108 grep -v '^ *+' conftest.er1 >conftest.err
7109 rm -f conftest.er1
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } &&
7113 { ac_try='test -z "$ac_cxx_werror_flag"
7114 || test ! -s conftest.err'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_func_connect=yes
7127else
7128 echo "$as_me: failed program was:" >&5
7129sed 's/^/| /' conftest.$ac_ext >&5
7130
7131ac_cv_func_connect=no
7132fi
7133rm -f conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135fi
7136echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7137echo "${ECHO_T}$ac_cv_func_connect" >&6
7138
7139 if test $ac_cv_func_connect = no; then
7140 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7141echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7142if test "${ac_cv_lib_socket_connect+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144else
7145 ac_check_lib_save_LIBS=$LIBS
7146LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7147cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153
7154/* Override any gcc2 internal prototype to avoid an error. */
7155#ifdef __cplusplus
7156extern "C"
7157#endif
7158/* We use char because int might match the return type of a gcc2
7159 builtin and then its argument prototype would still apply. */
7160char connect ();
7161int
7162main ()
7163{
7164connect ();
7165 ;
7166 return 0;
7167}
7168_ACEOF
7169rm -f conftest.$ac_objext conftest$ac_exeext
7170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try='test -z "$ac_cxx_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187 (eval $ac_try) 2>&5
7188 ac_status=$?
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 ac_cv_lib_socket_connect=yes
7192else
7193 echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196ac_cv_lib_socket_connect=no
7197fi
7198rm -f conftest.err conftest.$ac_objext \
7199 conftest$ac_exeext conftest.$ac_ext
7200LIBS=$ac_check_lib_save_LIBS
7201fi
7202echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7203echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7204if test $ac_cv_lib_socket_connect = yes; then
7205 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7206fi
7207
7208 fi
7209
7210 # Guillermo Gomez says -lposix is necessary on A/UX.
7211 echo "$as_me:$LINENO: checking for remove" >&5
7212echo $ECHO_N "checking for remove... $ECHO_C" >&6
7213if test "${ac_cv_func_remove+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 cat >conftest.$ac_ext <<_ACEOF
7217/* confdefs.h. */
7218_ACEOF
7219cat confdefs.h >>conftest.$ac_ext
7220cat >>conftest.$ac_ext <<_ACEOF
7221/* end confdefs.h. */
7222/* Define remove to an innocuous variant, in case <limits.h> declares remove.
7223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7224#define remove innocuous_remove
7225
7226/* System header to define __stub macros and hopefully few prototypes,
7227 which can conflict with char remove (); below.
7228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7229 <limits.h> exists even on freestanding compilers. */
7230
7231#ifdef __STDC__
7232# include <limits.h>
7233#else
7234# include <assert.h>
7235#endif
7236
7237#undef remove
7238
7239/* Override any gcc2 internal prototype to avoid an error. */
7240#ifdef __cplusplus
7241extern "C"
7242{
7243#endif
7244/* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7246char remove ();
7247/* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250#if defined (__stub_remove) || defined (__stub___remove)
7251choke me
7252#else
7253char (*f) () = remove;
7254#endif
7255#ifdef __cplusplus
7256}
7257#endif
7258
7259int
7260main ()
7261{
7262return f != remove;
7263 ;
7264 return 0;
7265}
7266_ACEOF
7267rm -f conftest.$ac_objext conftest$ac_exeext
7268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>conftest.er1
7270 ac_status=$?
7271 grep -v '^ *+' conftest.er1 >conftest.err
7272 rm -f conftest.er1
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -z "$ac_cxx_werror_flag"
7277 || test ! -s conftest.err'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; } &&
7283 { ac_try='test -s conftest$ac_exeext'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; }; then
7289 ac_cv_func_remove=yes
7290else
7291 echo "$as_me: failed program was:" >&5
7292sed 's/^/| /' conftest.$ac_ext >&5
7293
7294ac_cv_func_remove=no
7295fi
7296rm -f conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298fi
7299echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7300echo "${ECHO_T}$ac_cv_func_remove" >&6
7301
7302 if test $ac_cv_func_remove = no; then
7303 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7304echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7305if test "${ac_cv_lib_posix_remove+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 ac_check_lib_save_LIBS=$LIBS
7309LIBS="-lposix $LIBS"
7310cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316
7317/* Override any gcc2 internal prototype to avoid an error. */
7318#ifdef __cplusplus
7319extern "C"
7320#endif
7321/* We use char because int might match the return type of a gcc2
7322 builtin and then its argument prototype would still apply. */
7323char remove ();
7324int
7325main ()
7326{
7327remove ();
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332rm -f conftest.$ac_objext conftest$ac_exeext
7333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_cxx_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_cv_lib_posix_remove=yes
7355else
7356 echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359ac_cv_lib_posix_remove=no
7360fi
7361rm -f conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363LIBS=$ac_check_lib_save_LIBS
7364fi
7365echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7366echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7367if test $ac_cv_lib_posix_remove = yes; then
7368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7369fi
7370
7371 fi
7372
7373 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7374 echo "$as_me:$LINENO: checking for shmat" >&5
7375echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7376if test "${ac_cv_func_shmat+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378else
7379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
7385/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7387#define shmat innocuous_shmat
7388
7389/* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char shmat (); below.
7391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7392 <limits.h> exists even on freestanding compilers. */
7393
7394#ifdef __STDC__
7395# include <limits.h>
7396#else
7397# include <assert.h>
7398#endif
7399
7400#undef shmat
7401
7402/* Override any gcc2 internal prototype to avoid an error. */
7403#ifdef __cplusplus
7404extern "C"
7405{
7406#endif
7407/* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */
7409char shmat ();
7410/* The GNU C library defines this for functions which it implements
7411 to always fail with ENOSYS. Some functions are actually named
7412 something starting with __ and the normal name is an alias. */
7413#if defined (__stub_shmat) || defined (__stub___shmat)
7414choke me
7415#else
7416char (*f) () = shmat;
7417#endif
7418#ifdef __cplusplus
7419}
7420#endif
7421
7422int
7423main ()
7424{
7425return f != shmat;
7426 ;
7427 return 0;
7428}
7429_ACEOF
7430rm -f conftest.$ac_objext conftest$ac_exeext
7431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432 (eval $ac_link) 2>conftest.er1
7433 ac_status=$?
7434 grep -v '^ *+' conftest.er1 >conftest.err
7435 rm -f conftest.er1
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } &&
7439 { ac_try='test -z "$ac_cxx_werror_flag"
7440 || test ! -s conftest.err'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7442 (eval $ac_try) 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; } &&
7446 { ac_try='test -s conftest$ac_exeext'
7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 (eval $ac_try) 2>&5
7449 ac_status=$?
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); }; }; then
7452 ac_cv_func_shmat=yes
7453else
7454 echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457ac_cv_func_shmat=no
7458fi
7459rm -f conftest.err conftest.$ac_objext \
7460 conftest$ac_exeext conftest.$ac_ext
7461fi
7462echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7463echo "${ECHO_T}$ac_cv_func_shmat" >&6
7464
7465 if test $ac_cv_func_shmat = no; then
7466 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7467echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7468if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 ac_check_lib_save_LIBS=$LIBS
7472LIBS="-lipc $LIBS"
7473cat >conftest.$ac_ext <<_ACEOF
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
7479
7480/* Override any gcc2 internal prototype to avoid an error. */
7481#ifdef __cplusplus
7482extern "C"
7483#endif
7484/* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486char shmat ();
7487int
7488main ()
7489{
7490shmat ();
7491 ;
7492 return 0;
7493}
7494_ACEOF
7495rm -f conftest.$ac_objext conftest$ac_exeext
7496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>conftest.er1
7498 ac_status=$?
7499 grep -v '^ *+' conftest.er1 >conftest.err
7500 rm -f conftest.er1
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -z "$ac_cxx_werror_flag"
7505 || test ! -s conftest.err'
7506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 (eval $ac_try) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; } &&
7511 { ac_try='test -s conftest$ac_exeext'
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; }; then
7517 ac_cv_lib_ipc_shmat=yes
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522ac_cv_lib_ipc_shmat=no
7523fi
7524rm -f conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526LIBS=$ac_check_lib_save_LIBS
7527fi
7528echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7529echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7530if test $ac_cv_lib_ipc_shmat = yes; then
7531 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7532fi
7533
7534 fi
7535 fi
7536
7537 # Check for libraries that X11R6 Xt/Xaw programs need.
7538 ac_save_LDFLAGS=$LDFLAGS
7539 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7540 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7541 # check for ICE first), but we must link in the order -lSM -lICE or
7542 # we get undefined symbols. So assume we have SM if we have ICE.
7543 # These have to be linked with before -lX11, unlike the other
7544 # libraries we check for below, so use a different variable.
7545 # John Interrante, Karl Berry
7546 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7547echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7548if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 ac_check_lib_save_LIBS=$LIBS
7552LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7553cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
7559
7560/* Override any gcc2 internal prototype to avoid an error. */
7561#ifdef __cplusplus
7562extern "C"
7563#endif
7564/* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566char IceConnectionNumber ();
7567int
7568main ()
7569{
7570IceConnectionNumber ();
7571 ;
7572 return 0;
7573}
7574_ACEOF
7575rm -f conftest.$ac_objext conftest$ac_exeext
7576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -z "$ac_cxx_werror_flag"
7585 || test ! -s conftest.err'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_cv_lib_ICE_IceConnectionNumber=yes
7598else
7599 echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602ac_cv_lib_ICE_IceConnectionNumber=no
7603fi
7604rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
7606LIBS=$ac_check_lib_save_LIBS
7607fi
7608echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7609echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7610if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7611 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7612fi
7613
7614 LDFLAGS=$ac_save_LDFLAGS
7615
7616fi
7617
7618ORIG_X_SAVE_LIBS="$LIBS"
7619LIBS="$X_PRE_LIBS $LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
7620X_LIBS="$LIBS"
7621
7622
7623 FATAL=0
7624
7625
7626# Check whether --with-qt-dir or --without-qt-dir was given.
7627if test "${with_qt_dir+set}" = set; then
7628 withval="$with_qt_dir"
7629 qt_cv_dir=`eval echo "$withval"/`
7630fi;
7631
7632
7633# Check whether --with-qt-includes or --without-qt-includes was given.
7634if test "${with_qt_includes+set}" = set; then
7635 withval="$with_qt_includes"
7636 qt_cv_includes=`eval echo "$withval"`
7637fi;
7638
7639
7640# Check whether --with-qt-libraries or --without-qt-libraries was given.
7641if test "${with_qt_libraries+set}" = set; then
7642 withval="$with_qt_libraries"
7643 qt_cv_libraries=`eval echo "$withval"`
7644fi;
7645
7646 if test -z "$qt_cv_dir"; then
7647 qt_cv_dir=$QTDIR
7648 fi
7649
7650 if test -n "$qt_cv_dir"; then
7651 if test -z "$qt_cv_includes"; then
7652 qt_cv_includes=$qt_cv_dir/include
7653 fi
7654 if test -z "$qt_cv_libraries"; then
7655 qt_cv_libraries=$qt_cv_dir/lib
7656 fi
7657 fi
7658
7659 QT_INCLUDES=
7660 QT_LDFLAGS=
7661 if test -n "$qt_cv_includes"; then
7662 QT_INCLUDES="-isystem $qt_cv_includes"
7663 fi
7664 if test -n "$qt_cv_libraries"; then
7665 QT_LDFLAGS="-L$qt_cv_libraries"
7666 fi
7667
7668
7669
7670
7671
7672 echo "$as_me:$LINENO: checking for moc2" >&5
7673echo $ECHO_N "checking for moc2... $ECHO_C" >&6
7674 if test "${qt_cv_path_moc2+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677
7678 qt_cv_path_moc2="NONE"
7679 if test -n "$ac_moc2"; then
7680 qt_cv_path_moc2="$ac_moc2";
7681 else
7682 dirs="$qt_cv_dir/bin"
7683 qt_save_IFS=$IFS
7684 IFS=':'
7685 for dir in $PATH; do
7686 dirs="$dirs $dir"
7687 done
7688 IFS=$qt_save_IFS
7689
7690 for dir in $dirs; do
7691 if test -x "$dir/moc2"; then
7692 if test -n ""; then
7693 evalstr="$dir/moc2 2>&1 "
7694 if eval $evalstr; then
7695 qt_cv_path_moc2="$dir/moc2"
7696 break
7697 fi
7698 else
7699 qt_cv_path_moc2="$dir/moc2"
7700 break
7701 fi
7702 fi
7703 done
7704 fi
7705
7706fi
7707
7708
7709 if test -z "$qt_cv_path_moc2" || test "$qt_cv_path_moc2" = "NONE"; then
7710 echo "$as_me:$LINENO: result: not found" >&5
7711echo "${ECHO_T}not found" >&6
7712
7713 else
7714 echo "$as_me:$LINENO: result: $qt_cv_path_moc2" >&5
7715echo "${ECHO_T}$qt_cv_path_moc2" >&6
7716 ac_moc2=$qt_cv_path_moc2
7717 fi
7718
7719
7720 echo "$as_me:$LINENO: checking for moc" >&5
7721echo $ECHO_N "checking for moc... $ECHO_C" >&6
7722 if test "${qt_cv_path_moc+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724else
7725
7726 qt_cv_path_moc="NONE"
7727 if test -n "$ac_moc1"; then
7728 qt_cv_path_moc="$ac_moc1";
7729 else
7730 dirs="$qt_cv_dir/bin"
7731 qt_save_IFS=$IFS
7732 IFS=':'
7733 for dir in $PATH; do
7734 dirs="$dirs $dir"
7735 done
7736 IFS=$qt_save_IFS
7737
7738 for dir in $dirs; do
7739 if test -x "$dir/moc"; then
7740 if test -n ""; then
7741 evalstr="$dir/moc 2>&1 "
7742 if eval $evalstr; then
7743 qt_cv_path_moc="$dir/moc"
7744 break
7745 fi
7746 else
7747 qt_cv_path_moc="$dir/moc"
7748 break
7749 fi
7750 fi
7751 done
7752 fi
7753
7754fi
7755
7756
7757 if test -z "$qt_cv_path_moc" || test "$qt_cv_path_moc" = "NONE"; then
7758 echo "$as_me:$LINENO: result: not found" >&5
7759echo "${ECHO_T}not found" >&6
7760
7761 else
7762 echo "$as_me:$LINENO: result: $qt_cv_path_moc" >&5
7763echo "${ECHO_T}$qt_cv_path_moc" >&6
7764 ac_moc1=$qt_cv_path_moc
7765 fi
7766
7767
7768 if test -n "$ac_moc1" -a -n "$ac_moc2"; then
7769 $ac_moc1 -v 2>&1 | grep "Qt 3" >/dev/null
7770 if test "$?" = 0; then
7771 ac_moc=$ac_moc1;
7772 else
7773 ac_moc=$ac_moc2;
7774 fi
7775 else
7776 if test -n "$ac_moc1"; then
7777 ac_moc=$ac_moc1;
7778 else
7779 ac_moc=$ac_moc2;
7780 fi
7781 fi
7782
7783 if test -z "$ac_moc" -a "$FATAL" = 1; then
7784 { { echo "$as_me:$LINENO: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&5
7785echo "$as_me: error: moc binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
7786 { (exit 1); exit 1; }; }
7787 fi
7788
7789 MOC=$ac_moc
7790
7791
7792
7793 echo "$as_me:$LINENO: checking for uic" >&5
7794echo $ECHO_N "checking for uic... $ECHO_C" >&6
7795 if test "${qt_cv_path_uic+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798
7799 qt_cv_path_uic="NONE"
7800 if test -n "$ac_uic"; then
7801 qt_cv_path_uic="$ac_uic";
7802 else
7803 dirs="$qt_cv_dir/bin"
7804 qt_save_IFS=$IFS
7805 IFS=':'
7806 for dir in $PATH; do
7807 dirs="$dirs $dir"
7808 done
7809 IFS=$qt_save_IFS
7810
7811 for dir in $dirs; do
7812 if test -x "$dir/uic"; then
7813 if test -n ""; then
7814 evalstr="$dir/uic 2>&1 "
7815 if eval $evalstr; then
7816 qt_cv_path_uic="$dir/uic"
7817 break
7818 fi
7819 else
7820 qt_cv_path_uic="$dir/uic"
7821 break
7822 fi
7823 fi
7824 done
7825 fi
7826
7827fi
7828
7829
7830 if test -z "$qt_cv_path_uic" || test "$qt_cv_path_uic" = "NONE"; then
7831 echo "$as_me:$LINENO: result: not found" >&5
7832echo "${ECHO_T}not found" >&6
7833
7834 else
7835 echo "$as_me:$LINENO: result: $qt_cv_path_uic" >&5
7836echo "${ECHO_T}$qt_cv_path_uic" >&6
7837 ac_uic=$qt_cv_path_uic
7838 fi
7839
7840 if test -z "$ac_uic" -a "$FATAL" = 1; then
7841 { { echo "$as_me:$LINENO: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&5
7842echo "$as_me: error: uic binary not found in \$PATH or $qt_cv_dir/bin !" >&2;}
7843 { (exit 1); exit 1; }; }
7844 fi
7845
7846 UIC=$ac_uic
7847
7848
7849
7850 echo "$as_me:$LINENO: checking for Qt library name" >&5
7851echo $ECHO_N "checking for Qt library name... $ECHO_C" >&6
7852
7853 if test "${qt_cv_libname+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856
7857 ac_ext=cc
7858ac_cpp='$CXXCPP $CPPFLAGS'
7859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7862
7863 SAVE_CXXFLAGS=$CXXFLAGS
7864 CXXFLAGS="$CXXFLAGS $QT_INCLUDES $QT_LDFLAGS"
7865
7866 for libname in -lqt-mt -lqt3 -lqt2 -lqt;
7867 do
7868
7869 SAVE_LIBS="$LIBS"
7870 LIBS="$LIBS $libname"
7871 cat >conftest.$ac_ext <<_ACEOF
7872/* confdefs.h. */
7873_ACEOF
7874cat confdefs.h >>conftest.$ac_ext
7875cat >>conftest.$ac_ext <<_ACEOF
7876/* end confdefs.h. */
7877
7878 #include <qglobal.h>
7879 #include <qstring.h>
7880
7881int
7882main ()
7883{
7884
7885 QString s("mangle_failure");
7886 #if (QT_VERSION < 221)
7887 break_me_(\\\);
7888 #endif
7889
7890 ;
7891 return 0;
7892}
7893_ACEOF
7894rm -f conftest.$ac_objext conftest$ac_exeext
7895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
7903 { ac_try='test -z "$ac_cxx_werror_flag"
7904 || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 qt_cv_libname=$libname
7917else
7918 echo "$as_me: failed program was:" >&5
7919sed 's/^/| /' conftest.$ac_ext >&5
7920
7921fi
7922rm -f conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LIBS="$SAVE_LIBS"
7925
7926 if test -n "$qt_cv_libname"; then
7927 break;
7928 fi
7929 done
7930
7931 CXXFLAGS=$SAVE_CXXFLAGS
7932
7933fi
7934
7935
7936 if test -z "$qt_cv_libname"; then
7937 echo "$as_me:$LINENO: result: failed" >&5
7938echo "${ECHO_T}failed" >&6
7939 if test "$FATAL" = 1 ; then
7940 { { echo "$as_me:$LINENO: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&5
7941echo "$as_me: error: Cannot compile a simple Qt executable. Check you have the right \$QTDIR !" >&2;}
7942 { (exit 1); exit 1; }; }
7943 fi
7944 else
7945 echo "$as_me:$LINENO: result: $qt_cv_libname" >&5
7946echo "${ECHO_T}$qt_cv_libname" >&6
7947 fi
7948
7949
7950 QT_LIB=$qt_cv_libname;
7951
7952
7953 if test -n "$qt_cv_libname"; then
7954
7955 echo "$as_me:$LINENO: checking Qt version" >&5
7956echo $ECHO_N "checking Qt version... $ECHO_C" >&6
7957if test "${lyx_cv_qtversion+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960
7961 ac_ext=cc
7962ac_cpp='$CXXCPP $CPPFLAGS'
7963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7966
7967 SAVE_CPPFLAGS=$CPPFLAGS
7968 CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
7969
7970 cat > conftest.$ac_ext <<EOF
7971#line 7971 "configure"
7972#include "confdefs.h"
7973#include <qglobal.h>
7974"%%%"QT_VERSION_STR"%%%"
7975EOF
7976 lyx_cv_qtversion=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | \
7977 grep '^"%%%"' 2>/dev/null | \
7978 sed -e 's/"%%%"//g' -e 's/"//g'`
7979 rm -f conftest.$ac_ext
7980 CPPFLAGS=$SAVE_CPPFLAGS
7981
7982fi
7983echo "$as_me:$LINENO: result: $lyx_cv_qtversion" >&5
7984echo "${ECHO_T}$lyx_cv_qtversion" >&6
7985
7986 QT_VERSION=$lyx_cv_qtversion
7987
7988
7989 fi
7990
7991LIBS="$ORIG_X_SAVE_LIBS"
7992
7993# Check whether --enable-abi or --disable-abi was given.
7994if test "${enable_abi+set}" = set; then
7995 enableval="$enable_abi"
7996 enable_abi=$enableval
7997else
7998 enable_abi=no
7999fi;
8000if test "$enable_abi" = yes; then
8001
8002cat >>confdefs.h <<\_ACEOF
8003#define OPROF_ABI 1
8004_ACEOF
8005
8006fi
8007
8008
8009if test "$enable_abi" = yes; then
8010 enable_abi_TRUE=
8011 enable_abi_FALSE='#'
8012else
8013 enable_abi_TRUE='#'
8014 enable_abi_FALSE=
8015fi
8016
8017
8018# Check whether --enable-pch or --disable-pch was given.
8019if test "${enable_pch+set}" = set; then
8020 enableval="$enable_pch"
8021 enable_pch=$enableval
8022else
8023 enable_pch=no
8024fi;
8025if test "$enable_pch" = yes; then
8026
8027echo "$as_me:$LINENO: checking whether ${CXX} support precompiled header" >&5
8028echo $ECHO_N "checking whether ${CXX} support precompiled header... $ECHO_C" >&6
8029
8030
8031ac_ext=cc
8032ac_cpp='$CXXCPP $CPPFLAGS'
8033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8036
8037SAVE_CXXFLAGS=$CXXFLAGS
8038CXXFLAGS=-Winvalid-pch
8039cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
8045
8046int
8047main ()
8048{
8049;
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054rm -f conftest.$ac_objext
8055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -z "$ac_cxx_werror_flag"
8064 || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 echo "$as_me:$LINENO: result: yes" >&5
8077echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -include bits/stdc++.h"
8078else
8079 echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6
8084fi
8085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086CXXFLAGS=$SAVE_CXXFLAGS
8087ac_ext=cc
8088ac_cpp='$CXXCPP $CPPFLAGS'
8089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8092
8093
8094fi
8095
8096
8097# It's just rude to go over the net to build
8098XSLTPROC_FLAGS=--nonet
8099DOCBOOK_ROOT=
8100if test ! -f /etc/xml/catalog; then
8101 for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/;
8102 do
8103 if test -d "$i"; then
8104 DOCBOOK_ROOT=$i
8105 fi
8106 done
8107
8108 # Last resort - try net
8109 if test -z "$DOCBOOK_ROOT"; then
8110 XSLTPROC_FLAGS=
8111 fi
8112else
8113 XML_CATALOG=/etc/xml/catalog
8114 CAT_ENTRY_START='<!--'
8115 CAT_ENTRY_END='-->'
8116fi
8117
8118# Extract the first word of "xsltproc", so it can be a program name with args.
8119set dummy xsltproc; ac_word=$2
8120echo "$as_me:$LINENO: checking for $ac_word" >&5
8121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8122if test "${ac_cv_prog_XSLTPROC+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 if test -n "$XSLTPROC"; then
8126 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135 ac_cv_prog_XSLTPROC="xsltproc"
8136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8138 fi
8139done
8140done
8141
8142fi
8143fi
8144XSLTPROC=$ac_cv_prog_XSLTPROC
8145if test -n "$XSLTPROC"; then
8146 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
8147echo "${ECHO_T}$XSLTPROC" >&6
8148else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151fi
8152
8153XSLTPROC_WORKS=no
8154if test -n "$XSLTPROC"; then
8155 echo "$as_me:$LINENO: checking whether xsltproc works" >&5
8156echo $ECHO_N "checking whether xsltproc works... $ECHO_C" >&6
8157
8158 if test -n "$XML_CATALOG"; then
8159 DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
8160 else
8161 DB_FILE="$DOCBOOK_ROOT/docbook.xsl"
8162 fi
8163
8164 $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
8165<?xml version="1.0" encoding='ISO-8859-1'?>
8166<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
8167<book id="test">
8168</book>
8169END
8170 if test "$?" = 0; then
8171 XSLTPROC_WORKS=yes
8172 fi
8173 echo "$as_me:$LINENO: result: $XSLTPROC_WORKS" >&5
8174echo "${ECHO_T}$XSLTPROC_WORKS" >&6
8175fi
8176
8177
8178if test "$XSLTPROC_WORKS" = "yes"; then
8179 have_xsltproc_TRUE=
8180 have_xsltproc_FALSE='#'
8181else
8182 have_xsltproc_TRUE='#'
8183 have_xsltproc_FALSE=
8184fi
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194LIBS="$ORIG_SAVE_LIBS"
8195LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB"
8196BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB"
8197POPT_LIBS="-lpopt"
8198
8199
8200
8201
8202# do NOT put tests here, they will fail in the case X is not installed !
8203
8204
8205
8206if test -n "$QT_LIB"; then
8207 have_qt_TRUE=
8208 have_qt_FALSE='#'
8209else
8210 have_qt_TRUE='#'
8211 have_qt_FALSE=
8212fi
8213
8214
8215
8216echo "$as_me:$LINENO: checking whether ${CC} -W is understood" >&5
8217echo $ECHO_N "checking whether ${CC} -W is understood... $ECHO_C" >&6
8218
8219
8220ac_ext=c
8221ac_cpp='$CPP $CPPFLAGS'
8222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225
8226SAVE_CFLAGS=$CFLAGS
8227CFLAGS=-W
8228cat >conftest.$ac_ext <<_ACEOF
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
8234
8235int
8236main ()
8237{
8238;
8239 ;
8240 return 0;
8241}
8242_ACEOF
8243rm -f conftest.$ac_objext
8244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag"
8253 || test ! -s conftest.err'
8254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 (eval $ac_try) 2>&5
8256 ac_status=$?
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); }; } &&
8259 { ac_try='test -s conftest.$ac_objext'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 (eval $ac_try) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 echo "$as_me:$LINENO: result: yes" >&5
8266echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -W"
8267else
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
8271echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
8273fi
8274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8275CFLAGS=$SAVE_CFLAGS
8276ac_ext=cc
8277ac_cpp='$CXXCPP $CPPFLAGS'
8278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8281
8282
8283
8284echo "$as_me:$LINENO: checking whether ${CXX} -W is understood" >&5
8285echo $ECHO_N "checking whether ${CXX} -W is understood... $ECHO_C" >&6
8286
8287
8288ac_ext=cc
8289ac_cpp='$CXXCPP $CPPFLAGS'
8290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8293
8294SAVE_CXXFLAGS=$CXXFLAGS
8295CXXFLAGS=-W
8296cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302
8303int
8304main ()
8305{
8306;
8307 ;
8308 return 0;
8309}
8310_ACEOF
8311rm -f conftest.$ac_objext
8312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>conftest.er1
8314 ac_status=$?
8315 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1
8317 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_cxx_werror_flag"
8321 || test ! -s conftest.err'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 (eval $ac_try) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 echo "$as_me:$LINENO: result: yes" >&5
8334echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -W"
8335else
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341fi
8342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343CXXFLAGS=$SAVE_CXXFLAGS
8344ac_ext=cc
8345ac_cpp='$CXXCPP $CPPFLAGS'
8346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8349
8350
8351
8352echo "$as_me:$LINENO: checking whether ${CC} -Wall is understood" >&5
8353echo $ECHO_N "checking whether ${CC} -Wall is understood... $ECHO_C" >&6
8354
8355
8356ac_ext=c
8357ac_cpp='$CPP $CPPFLAGS'
8358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8360ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361
8362SAVE_CFLAGS=$CFLAGS
8363CFLAGS=-Wall
8364cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
8370
8371int
8372main ()
8373{
8374;
8375 ;
8376 return 0;
8377}
8378_ACEOF
8379rm -f conftest.$ac_objext
8380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wall"
8403else
8404 echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407echo "$as_me:$LINENO: result: no" >&5
8408echo "${ECHO_T}no" >&6
8409fi
8410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411CFLAGS=$SAVE_CFLAGS
8412ac_ext=cc
8413ac_cpp='$CXXCPP $CPPFLAGS'
8414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8417
8418
8419
8420echo "$as_me:$LINENO: checking whether ${CXX} -Wall is understood" >&5
8421echo $ECHO_N "checking whether ${CXX} -Wall is understood... $ECHO_C" >&6
8422
8423
8424ac_ext=cc
8425ac_cpp='$CXXCPP $CPPFLAGS'
8426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8429
8430SAVE_CXXFLAGS=$CXXFLAGS
8431CXXFLAGS=-Wall
8432cat >conftest.$ac_ext <<_ACEOF
8433/* confdefs.h. */
8434_ACEOF
8435cat confdefs.h >>conftest.$ac_ext
8436cat >>conftest.$ac_ext <<_ACEOF
8437/* end confdefs.h. */
8438
8439int
8440main ()
8441{
8442;
8443 ;
8444 return 0;
8445}
8446_ACEOF
8447rm -f conftest.$ac_objext
8448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try='test -z "$ac_cxx_werror_flag"
8457 || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest.$ac_objext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 echo "$as_me:$LINENO: result: yes" >&5
8470echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Wall"
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
8475echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
8477fi
8478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8479CXXFLAGS=$SAVE_CXXFLAGS
8480ac_ext=cc
8481ac_cpp='$CXXCPP $CPPFLAGS'
8482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8485
8486
8487
8488echo "$as_me:$LINENO: checking whether ${CC} -fno-common is understood" >&5
8489echo $ECHO_N "checking whether ${CC} -fno-common is understood... $ECHO_C" >&6
8490
8491
8492ac_ext=c
8493ac_cpp='$CPP $CPPFLAGS'
8494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497
8498SAVE_CFLAGS=$CFLAGS
8499CFLAGS=-fno-common
8500cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506
8507int
8508main ()
8509{
8510;
8511 ;
8512 return 0;
8513}
8514_ACEOF
8515rm -f conftest.$ac_objext
8516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag"
8525 || test ! -s conftest.err'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; } &&
8531 { ac_try='test -s conftest.$ac_objext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 echo "$as_me:$LINENO: result: yes" >&5
8538echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fno-common"
8539else
8540 echo "$as_me: failed program was:" >&5
8541sed 's/^/| /' conftest.$ac_ext >&5
8542
8543echo "$as_me:$LINENO: result: no" >&5
8544echo "${ECHO_T}no" >&6
8545fi
8546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547CFLAGS=$SAVE_CFLAGS
8548ac_ext=cc
8549ac_cpp='$CXXCPP $CPPFLAGS'
8550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8553
8554
8555
8556echo "$as_me:$LINENO: checking whether ${CXX} -fno-common is understood" >&5
8557echo $ECHO_N "checking whether ${CXX} -fno-common is understood... $ECHO_C" >&6
8558
8559
8560ac_ext=cc
8561ac_cpp='$CXXCPP $CPPFLAGS'
8562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8565
8566SAVE_CXXFLAGS=$CXXFLAGS
8567CXXFLAGS=-fno-common
8568cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h. */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h. */
8574
8575int
8576main ()
8577{
8578;
8579 ;
8580 return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext
8584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_cxx_werror_flag"
8593 || test ! -s conftest.err'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; } &&
8599 { ac_try='test -s conftest.$ac_objext'
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fno-common"
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611echo "$as_me:$LINENO: result: no" >&5
8612echo "${ECHO_T}no" >&6
8613fi
8614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615CXXFLAGS=$SAVE_CXXFLAGS
8616ac_ext=cc
8617ac_cpp='$CXXCPP $CPPFLAGS'
8618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8621
8622
8623
8624echo "$as_me:$LINENO: checking whether ${CXX} -ftemplate-depth-50 is understood" >&5
8625echo $ECHO_N "checking whether ${CXX} -ftemplate-depth-50 is understood... $ECHO_C" >&6
8626
8627
8628ac_ext=cc
8629ac_cpp='$CXXCPP $CPPFLAGS'
8630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8633
8634SAVE_CXXFLAGS=$CXXFLAGS
8635CXXFLAGS=-ftemplate-depth-50
8636cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
8642
8643int
8644main ()
8645{
8646;
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext
8652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653 (eval $ac_compile) 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_cxx_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest.$ac_objext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669 (eval $ac_try) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8673 echo "$as_me:$LINENO: result: yes" >&5
8674echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftemplate-depth-50"
8675else
8676 echo "$as_me: failed program was:" >&5
8677sed 's/^/| /' conftest.$ac_ext >&5
8678
8679echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
8681fi
8682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683CXXFLAGS=$SAVE_CXXFLAGS
8684ac_ext=cc
8685ac_cpp='$CXXCPP $CPPFLAGS'
8686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8689
8690
8691
8692echo "$as_me:$LINENO: checking whether ${CC} -Wdeclaration-after-statement is understood" >&5
8693echo $ECHO_N "checking whether ${CC} -Wdeclaration-after-statement is understood... $ECHO_C" >&6
8694
8695
8696ac_ext=c
8697ac_cpp='$CPP $CPPFLAGS'
8698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702SAVE_CFLAGS=$CFLAGS
8703CFLAGS=-Wdeclaration-after-statement
8704cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h. */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h. */
8710
8711int
8712main ()
8713{
8714;
8715 ;
8716 return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext
8720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721 (eval $ac_compile) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_c_werror_flag"
8729 || test ! -s conftest.err'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 (eval $ac_try) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; } &&
8735 { ac_try='test -s conftest.$ac_objext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 echo "$as_me:$LINENO: result: yes" >&5
8742echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Wdeclaration-after-statement"
8743else
8744 echo "$as_me: failed program was:" >&5
8745sed 's/^/| /' conftest.$ac_ext >&5
8746
8747echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
8749fi
8750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8751CFLAGS=$SAVE_CFLAGS
8752ac_ext=cc
8753ac_cpp='$CXXCPP $CPPFLAGS'
8754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8757
8758
8759
8760# Check whether --enable-gcov or --disable-gcov was given.
8761if test "${enable_gcov+set}" = set; then
8762 enableval="$enable_gcov"
8763 enable_gcov=$enableval
8764else
8765 enable_gcov=no
8766fi;
8767if test "$enable_gcov" = yes; then
8768
8769echo "$as_me:$LINENO: checking whether ${CC} -fprofile-arcs is understood" >&5
8770echo $ECHO_N "checking whether ${CC} -fprofile-arcs is understood... $ECHO_C" >&6
8771
8772
8773ac_ext=c
8774ac_cpp='$CPP $CPPFLAGS'
8775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8777ac_compiler_gnu=$ac_cv_c_compiler_gnu
8778
8779SAVE_CFLAGS=$CFLAGS
8780CFLAGS=-fprofile-arcs
8781cat >conftest.$ac_ext <<_ACEOF
8782/* confdefs.h. */
8783_ACEOF
8784cat confdefs.h >>conftest.$ac_ext
8785cat >>conftest.$ac_ext <<_ACEOF
8786/* end confdefs.h. */
8787
8788int
8789main ()
8790{
8791;
8792 ;
8793 return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext
8797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8798 (eval $ac_compile) 2>conftest.er1
8799 ac_status=$?
8800 grep -v '^ *+' conftest.er1 >conftest.err
8801 rm -f conftest.er1
8802 cat conftest.err >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -z "$ac_c_werror_flag"
8806 || test ! -s conftest.err'
8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 (eval $ac_try) 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; } &&
8812 { ac_try='test -s conftest.$ac_objext'
8813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 (eval $ac_try) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -fprofile-arcs"
8820else
8821 echo "$as_me: failed program was:" >&5
8822sed 's/^/| /' conftest.$ac_ext >&5
8823
8824echo "$as_me:$LINENO: result: no" >&5
8825echo "${ECHO_T}no" >&6
8826fi
8827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8828CFLAGS=$SAVE_CFLAGS
8829ac_ext=cc
8830ac_cpp='$CXXCPP $CPPFLAGS'
8831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8834
8835
8836
8837echo "$as_me:$LINENO: checking whether ${CXX} -fprofile-arcs is understood" >&5
8838echo $ECHO_N "checking whether ${CXX} -fprofile-arcs is understood... $ECHO_C" >&6
8839
8840
8841ac_ext=cc
8842ac_cpp='$CXXCPP $CPPFLAGS'
8843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8846
8847SAVE_CXXFLAGS=$CXXFLAGS
8848CXXFLAGS=-fprofile-arcs
8849cat >conftest.$ac_ext <<_ACEOF
8850/* confdefs.h. */
8851_ACEOF
8852cat confdefs.h >>conftest.$ac_ext
8853cat >>conftest.$ac_ext <<_ACEOF
8854/* end confdefs.h. */
8855
8856int
8857main ()
8858{
8859;
8860 ;
8861 return 0;
8862}
8863_ACEOF
8864rm -f conftest.$ac_objext
8865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866 (eval $ac_compile) 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } &&
8873 { ac_try='test -z "$ac_cxx_werror_flag"
8874 || test ! -s conftest.err'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 (eval $ac_try) 2>&5
8877 ac_status=$?
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 (eval $ac_try) 2>&5
8883 ac_status=$?
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; }; then
8886 echo "$as_me:$LINENO: result: yes" >&5
8887echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -fprofile-arcs"
8888else
8889 echo "$as_me: failed program was:" >&5
8890sed 's/^/| /' conftest.$ac_ext >&5
8891
8892echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894fi
8895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8896CXXFLAGS=$SAVE_CXXFLAGS
8897ac_ext=cc
8898ac_cpp='$CXXCPP $CPPFLAGS'
8899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8902
8903
8904
8905echo "$as_me:$LINENO: checking whether ${CC} -ftest-coverage is understood" >&5
8906echo $ECHO_N "checking whether ${CC} -ftest-coverage is understood... $ECHO_C" >&6
8907
8908
8909ac_ext=c
8910ac_cpp='$CPP $CPPFLAGS'
8911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915SAVE_CFLAGS=$CFLAGS
8916CFLAGS=-ftest-coverage
8917cat >conftest.$ac_ext <<_ACEOF
8918/* confdefs.h. */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
8922/* end confdefs.h. */
8923
8924int
8925main ()
8926{
8927;
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext
8933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag"
8942 || test ! -s conftest.err'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest.$ac_objext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 echo "$as_me:$LINENO: result: yes" >&5
8955echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -ftest-coverage"
8956else
8957 echo "$as_me: failed program was:" >&5
8958sed 's/^/| /' conftest.$ac_ext >&5
8959
8960echo "$as_me:$LINENO: result: no" >&5
8961echo "${ECHO_T}no" >&6
8962fi
8963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8964CFLAGS=$SAVE_CFLAGS
8965ac_ext=cc
8966ac_cpp='$CXXCPP $CPPFLAGS'
8967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8970
8971
8972
8973echo "$as_me:$LINENO: checking whether ${CXX} -ftest-coverage is understood" >&5
8974echo $ECHO_N "checking whether ${CXX} -ftest-coverage is understood... $ECHO_C" >&6
8975
8976
8977ac_ext=cc
8978ac_cpp='$CXXCPP $CPPFLAGS'
8979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8982
8983SAVE_CXXFLAGS=$CXXFLAGS
8984CXXFLAGS=-ftest-coverage
8985cat >conftest.$ac_ext <<_ACEOF
8986/* confdefs.h. */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h. */
8991
8992int
8993main ()
8994{
8995;
8996 ;
8997 return 0;
8998}
8999_ACEOF
9000rm -f conftest.$ac_objext
9001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002 (eval $ac_compile) 2>conftest.er1
9003 ac_status=$?
9004 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1
9006 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_cxx_werror_flag"
9010 || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest.$ac_objext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -ftest-coverage"
9024else
9025 echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030fi
9031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9032CXXFLAGS=$SAVE_CXXFLAGS
9033ac_ext=cc
9034ac_cpp='$CXXCPP $CPPFLAGS'
9035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9038
9039
9040fi
9041
9042# Check whether --enable-werror or --disable-werror was given.
9043if test "${enable_werror+set}" = set; then
9044 enableval="$enable_werror"
9045 enable_werror=$enableval
9046else
9047 enable_werror=yes
9048fi;
9049if test "$enable_werror" = yes; then
9050 # enable -Werror for non-release versions.
9051 if echo "$VERSION" | grep cvs >/dev/null; then
9052
9053echo "$as_me:$LINENO: checking whether ${CC} -Werror is understood" >&5
9054echo $ECHO_N "checking whether ${CC} -Werror is understood... $ECHO_C" >&6
9055
9056
9057ac_ext=c
9058ac_cpp='$CPP $CPPFLAGS'
9059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061ac_compiler_gnu=$ac_cv_c_compiler_gnu
9062
9063SAVE_CFLAGS=$CFLAGS
9064CFLAGS=-Werror
9065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071
9072int
9073main ()
9074{
9075;
9076 ;
9077 return 0;
9078}
9079_ACEOF
9080rm -f conftest.$ac_objext
9081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9083 ac_status=$?
9084 grep -v '^ *+' conftest.er1 >conftest.err
9085 rm -f conftest.er1
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098 (eval $ac_try) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 echo "$as_me:$LINENO: result: yes" >&5
9103echo "${ECHO_T}yes" >&6; OP_CFLAGS="${OP_CFLAGS} -Werror"
9104else
9105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110fi
9111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112CFLAGS=$SAVE_CFLAGS
9113ac_ext=cc
9114ac_cpp='$CXXCPP $CPPFLAGS'
9115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9118
9119
9120
9121echo "$as_me:$LINENO: checking whether ${CXX} -Werror is understood" >&5
9122echo $ECHO_N "checking whether ${CXX} -Werror is understood... $ECHO_C" >&6
9123
9124
9125ac_ext=cc
9126ac_cpp='$CXXCPP $CPPFLAGS'
9127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9130
9131SAVE_CXXFLAGS=$CXXFLAGS
9132CXXFLAGS=-Werror
9133cat >conftest.$ac_ext <<_ACEOF
9134/* confdefs.h. */
9135_ACEOF
9136cat confdefs.h >>conftest.$ac_ext
9137cat >>conftest.$ac_ext <<_ACEOF
9138/* end confdefs.h. */
9139
9140int
9141main ()
9142{
9143;
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext
9149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150 (eval $ac_compile) 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } &&
9157 { ac_try='test -z "$ac_cxx_werror_flag"
9158 || test ! -s conftest.err'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 (eval $ac_try) 2>&5
9161 ac_status=$?
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; } &&
9164 { ac_try='test -s conftest.$ac_objext'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; }; then
9170 echo "$as_me:$LINENO: result: yes" >&5
9171echo "${ECHO_T}yes" >&6; OP_CXXFLAGS="${OP_CXXFLAGS} -Werror"
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
9176echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
9178fi
9179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9180CXXFLAGS=$SAVE_CXXFLAGS
9181ac_ext=cc
9182ac_cpp='$CXXCPP $CPPFLAGS'
9183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9186
9187
9188 fi
9189fi
9190
9191# Check whether --enable-optimization or --disable-optimization was given.
9192if test "${enable_optimization+set}" = set; then
9193 enableval="$enable_optimization"
9194 enable_optimization=$enableval
9195else
9196 enable_optimisation=yes
9197fi;
9198if test "$enable_optimization" = "no"; then
9199 CFLAGS=`echo $CFLAGS | sed 's/-O2//g'`
9200 CXXFLAGS=`echo $CXXFLAGS | sed 's/-O2//g'`
9201fi
9202
9203
9204
9205
9206# fixups for config.h
9207if test "$prefix" = "NONE"; then
9208 my_op_prefix="$ac_default_prefix"
9209else
9210 my_op_prefix="$prefix"
9211fi
9212my_op_datadir="$my_op_prefix/share"
9213
9214if test "$exec_prefix" = "NONE"; then
9215 my_op_exec_prefix="$my_op_prefix"
9216else
9217 my_op_exec_prefix="$exec_prefix"
9218fi
9219my_op_bindir="$my_op_exec_prefix/bin"
9220
9221OP_DATADIR=`eval echo "$my_op_datadir/$PACKAGE/"`
9222
9223cat >>confdefs.h <<_ACEOF
9224#define OP_DATADIR "$OP_DATADIR"
9225_ACEOF
9226
9227OP_BINDIR=`eval echo "$my_op_bindir/"`
9228
9229cat >>confdefs.h <<_ACEOF
9230#define OP_BINDIR "$OP_BINDIR"
9231_ACEOF
9232
9233OP_DOCDIR=`eval echo "${my_op_prefix}/share/doc/$PACKAGE/"`
9234
9235
9236 ac_config_files="$ac_config_files Makefile m4/Makefile libutil/Makefile libutil/tests/Makefile libutil++/Makefile libutil++/tests/Makefile libop/Makefile libop/tests/Makefile libopt++/Makefile libdb/Makefile libdb/tests/Makefile libabi/Makefile libabi/tests/Makefile libregex/Makefile libregex/tests/Makefile libregex/stl.pat libregex/tests/mangled-name daemon/Makefile daemon/liblegacy/Makefile events/Makefile utils/Makefile doc/Makefile doc/xsl/catalog-1.xml doc/oprofile.1 doc/opcontrol.1 doc/ophelp.1 doc/opreport.1 doc/opannotate.1 doc/opgprof.1 doc/oparchive.1 doc/srcdoc/Doxyfile libpp/Makefile pp/Makefile gui/Makefile gui/ui/Makefile module/Makefile module/x86/Makefile module/ia64/Makefile"
9237cat >confcache <<\_ACEOF
9238# This file is a shell script that caches the results of configure
9239# tests run on this system so they can be shared between configure
9240# scripts and configure runs, see configure's option --config-cache.
9241# It is not useful on other systems. If it contains results you don't
9242# want to keep, you may remove or edit it.
9243#
9244# config.status only pays attention to the cache file if you give it
9245# the --recheck option to rerun configure.
9246#
9247# `ac_cv_env_foo' variables (set or unset) will be overridden when
9248# loading this file, other *unset* `ac_cv_foo' will be assigned the
9249# following values.
9250
9251_ACEOF
9252
9253# The following way of writing the cache mishandles newlines in values,
9254# but we know of no workaround that is simple, portable, and efficient.
9255# So, don't put newlines in cache variables' values.
9256# Ultrix sh set writes to stderr and can't be redirected directly,
9257# and sets the high bit in the cache file unless we assign to the vars.
9258{
9259 (set) 2>&1 |
9260 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9261 *ac_space=\ *)
9262 # `set' does not quote correctly, so add quotes (double-quote
9263 # substitution turns \\\\ into \\, and sed turns \\ into \).
9264 sed -n \
9265 "s/'/'\\\\''/g;
9266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9267 ;;
9268 *)
9269 # `set' quotes correctly as required by POSIX, so do not add quotes.
9270 sed -n \
9271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9272 ;;
9273 esac;
9274} |
9275 sed '
9276 t clear
9277 : clear
9278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9279 t end
9280 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9281 : end' >>confcache
9282if diff $cache_file confcache >/dev/null 2>&1; then :; else
9283 if test -w $cache_file; then
9284 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9285 cat confcache >$cache_file
9286 else
9287 echo "not updating unwritable cache $cache_file"
9288 fi
9289fi
9290rm -f confcache
9291
9292test "x$prefix" = xNONE && prefix=$ac_default_prefix
9293# Let make expand exec_prefix.
9294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9295
9296# VPATH may cause trouble with some makes, so we remove $(srcdir),
9297# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9298# trailing colons and then remove the whole line if VPATH becomes empty
9299# (actually we leave an empty line to preserve line numbers).
9300if test "x$srcdir" = x.; then
9301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9302s/:*\$(srcdir):*/:/;
9303s/:*\${srcdir}:*/:/;
9304s/:*@srcdir@:*/:/;
9305s/^\([^=]*=[ ]*\):*/\1/;
9306s/:*$//;
9307s/^[^=]*=[ ]*$//;
9308}'
9309fi
9310
9311DEFS=-DHAVE_CONFIG_H
9312
9313ac_libobjs=
9314ac_ltlibobjs=
9315for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9316 # 1. Remove the extension, and $U if already installed.
9317 ac_i=`echo "$ac_i" |
9318 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9319 # 2. Add them.
9320 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9321 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9322done
9323LIBOBJS=$ac_libobjs
9324
9325LTLIBOBJS=$ac_ltlibobjs
9326
9327
9328if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9329 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9330Usually this means the macro was only invoked conditionally." >&5
9331echo "$as_me: error: conditional \"AMDEP\" was never defined.
9332Usually this means the macro was only invoked conditionally." >&2;}
9333 { (exit 1); exit 1; }; }
9334fi
9335if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9336 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9337Usually this means the macro was only invoked conditionally." >&5
9338echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9339Usually this means the macro was only invoked conditionally." >&2;}
9340 { (exit 1); exit 1; }; }
9341fi
9342if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9343 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9344Usually this means the macro was only invoked conditionally." >&5
9345echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9346Usually this means the macro was only invoked conditionally." >&2;}
9347 { (exit 1); exit 1; }; }
9348fi
9349if test -z "${kernel_support_TRUE}" && test -z "${kernel_support_FALSE}"; then
9350 { { echo "$as_me:$LINENO: error: conditional \"kernel_support\" was never defined.
9351Usually this means the macro was only invoked conditionally." >&5
9352echo "$as_me: error: conditional \"kernel_support\" was never defined.
9353Usually this means the macro was only invoked conditionally." >&2;}
9354 { (exit 1); exit 1; }; }
9355fi
9356if test -z "${enable_abi_TRUE}" && test -z "${enable_abi_FALSE}"; then
9357 { { echo "$as_me:$LINENO: error: conditional \"enable_abi\" was never defined.
9358Usually this means the macro was only invoked conditionally." >&5
9359echo "$as_me: error: conditional \"enable_abi\" was never defined.
9360Usually this means the macro was only invoked conditionally." >&2;}
9361 { (exit 1); exit 1; }; }
9362fi
9363if test -z "${have_xsltproc_TRUE}" && test -z "${have_xsltproc_FALSE}"; then
9364 { { echo "$as_me:$LINENO: error: conditional \"have_xsltproc\" was never defined.
9365Usually this means the macro was only invoked conditionally." >&5
9366echo "$as_me: error: conditional \"have_xsltproc\" was never defined.
9367Usually this means the macro was only invoked conditionally." >&2;}
9368 { (exit 1); exit 1; }; }
9369fi
9370if test -z "${have_qt_TRUE}" && test -z "${have_qt_FALSE}"; then
9371 { { echo "$as_me:$LINENO: error: conditional \"have_qt\" was never defined.
9372Usually this means the macro was only invoked conditionally." >&5
9373echo "$as_me: error: conditional \"have_qt\" was never defined.
9374Usually this means the macro was only invoked conditionally." >&2;}
9375 { (exit 1); exit 1; }; }
9376fi
9377
9378: ${CONFIG_STATUS=./config.status}
9379ac_clean_files_save=$ac_clean_files
9380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9381{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9382echo "$as_me: creating $CONFIG_STATUS" >&6;}
9383cat >$CONFIG_STATUS <<_ACEOF
9384#! $SHELL
9385# Generated by $as_me.
9386# Run this file to recreate the current configuration.
9387# Compiler output produced by configure, useful for debugging
9388# configure, is in config.log if it exists.
9389
9390debug=false
9391ac_cs_recheck=false
9392ac_cs_silent=false
9393SHELL=\${CONFIG_SHELL-$SHELL}
9394_ACEOF
9395
9396cat >>$CONFIG_STATUS <<\_ACEOF
9397## --------------------- ##
9398## M4sh Initialization. ##
9399## --------------------- ##
9400
9401# Be Bourne compatible
9402if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9403 emulate sh
9404 NULLCMD=:
9405 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9406 # is contrary to our usage. Disable this feature.
9407 alias -g '${1+"$@"}'='"$@"'
9408elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9409 set -o posix
9410fi
9411DUALCASE=1; export DUALCASE # for MKS sh
9412
9413# Support unset when possible.
9414if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9415 as_unset=unset
9416else
9417 as_unset=false
9418fi
9419
9420
9421# Work around bugs in pre-3.0 UWIN ksh.
9422$as_unset ENV MAIL MAILPATH
9423PS1='$ '
9424PS2='> '
9425PS4='+ '
9426
9427# NLS nuisances.
9428for as_var in \
9429 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9430 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9431 LC_TELEPHONE LC_TIME
9432do
9433 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9434 eval $as_var=C; export $as_var
9435 else
9436 $as_unset $as_var
9437 fi
9438done
9439
9440# Required to use basename.
9441if expr a : '\(a\)' >/dev/null 2>&1; then
9442 as_expr=expr
9443else
9444 as_expr=false
9445fi
9446
9447if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9448 as_basename=basename
9449else
9450 as_basename=false
9451fi
9452
9453
9454# Name of the executable.
9455as_me=`$as_basename "$0" ||
9456$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9457 X"$0" : 'X\(//\)$' \| \
9458 X"$0" : 'X\(/\)$' \| \
9459 . : '\(.\)' 2>/dev/null ||
9460echo X/"$0" |
9461 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9462 /^X\/\(\/\/\)$/{ s//\1/; q; }
9463 /^X\/\(\/\).*/{ s//\1/; q; }
9464 s/.*/./; q'`
9465
9466
9467# PATH needs CR, and LINENO needs CR and PATH.
9468# Avoid depending upon Character Ranges.
9469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9472as_cr_digits='0123456789'
9473as_cr_alnum=$as_cr_Letters$as_cr_digits
9474
9475# The user is always right.
9476if test "${PATH_SEPARATOR+set}" != set; then
9477 echo "#! /bin/sh" >conf$$.sh
9478 echo "exit 0" >>conf$$.sh
9479 chmod +x conf$$.sh
9480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9481 PATH_SEPARATOR=';'
9482 else
9483 PATH_SEPARATOR=:
9484 fi
9485 rm -f conf$$.sh
9486fi
9487
9488
9489 as_lineno_1=$LINENO
9490 as_lineno_2=$LINENO
9491 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9492 test "x$as_lineno_1" != "x$as_lineno_2" &&
9493 test "x$as_lineno_3" = "x$as_lineno_2" || {
9494 # Find who we are. Look in the path if we contain no path at all
9495 # relative or not.
9496 case $0 in
9497 *[\\/]* ) as_myself=$0 ;;
9498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499for as_dir in $PATH
9500do
9501 IFS=$as_save_IFS
9502 test -z "$as_dir" && as_dir=.
9503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9504done
9505
9506 ;;
9507 esac
9508 # We did not find ourselves, most probably we were run as `sh COMMAND'
9509 # in which case we are not to be found in the path.
9510 if test "x$as_myself" = x; then
9511 as_myself=$0
9512 fi
9513 if test ! -f "$as_myself"; then
9514 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9515echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9516 { (exit 1); exit 1; }; }
9517 fi
9518 case $CONFIG_SHELL in
9519 '')
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9522do
9523 IFS=$as_save_IFS
9524 test -z "$as_dir" && as_dir=.
9525 for as_base in sh bash ksh sh5; do
9526 case $as_dir in
9527 /*)
9528 if ("$as_dir/$as_base" -c '
9529 as_lineno_1=$LINENO
9530 as_lineno_2=$LINENO
9531 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9532 test "x$as_lineno_1" != "x$as_lineno_2" &&
9533 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9534 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9535 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9536 CONFIG_SHELL=$as_dir/$as_base
9537 export CONFIG_SHELL
9538 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9539 fi;;
9540 esac
9541 done
9542done
9543;;
9544 esac
9545
9546 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9547 # uniformly replaced by the line number. The first 'sed' inserts a
9548 # line-number line before each line; the second 'sed' does the real
9549 # work. The second script uses 'N' to pair each line-number line
9550 # with the numbered line, and appends trailing '-' during
9551 # substitution so that $LINENO is not a special case at line end.
9552 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9553 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9554 sed '=' <$as_myself |
9555 sed '
9556 N
9557 s,$,-,
9558 : loop
9559 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9560 t loop
9561 s,-$,,
9562 s,^['$as_cr_digits']*\n,,
9563 ' >$as_me.lineno &&
9564 chmod +x $as_me.lineno ||
9565 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9566echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9567 { (exit 1); exit 1; }; }
9568
9569 # Don't try to exec as it changes $[0], causing all sort of problems
9570 # (the dirname of $[0] is not the place where we might find the
9571 # original and so on. Autoconf is especially sensible to this).
9572 . ./$as_me.lineno
9573 # Exit status is that of the last command.
9574 exit
9575}
9576
9577
9578case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9579 *c*,-n*) ECHO_N= ECHO_C='
9580' ECHO_T=' ' ;;
9581 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9582 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9583esac
9584
9585if expr a : '\(a\)' >/dev/null 2>&1; then
9586 as_expr=expr
9587else
9588 as_expr=false
9589fi
9590
9591rm -f conf$$ conf$$.exe conf$$.file
9592echo >conf$$.file
9593if ln -s conf$$.file conf$$ 2>/dev/null; then
9594 # We could just check for DJGPP; but this test a) works b) is more generic
9595 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9596 if test -f conf$$.exe; then
9597 # Don't use ln at all; we don't have any links
9598 as_ln_s='cp -p'
9599 else
9600 as_ln_s='ln -s'
9601 fi
9602elif ln conf$$.file conf$$ 2>/dev/null; then
9603 as_ln_s=ln
9604else
9605 as_ln_s='cp -p'
9606fi
9607rm -f conf$$ conf$$.exe conf$$.file
9608
9609if mkdir -p . 2>/dev/null; then
9610 as_mkdir_p=:
9611else
9612 test -d ./-p && rmdir ./-p
9613 as_mkdir_p=false
9614fi
9615
9616as_executable_p="test -f"
9617
9618# Sed expression to map a string onto a valid CPP name.
9619as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9620
9621# Sed expression to map a string onto a valid variable name.
9622as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9623
9624
9625# IFS
9626# We need space, tab and new line, in precisely that order.
9627as_nl='
9628'
9629IFS=" $as_nl"
9630
9631# CDPATH.
9632$as_unset CDPATH
9633
9634exec 6>&1
9635
9636# Open the log real soon, to keep \$[0] and so on meaningful, and to
9637# report actual input values of CONFIG_FILES etc. instead of their
9638# values after options handling. Logging --version etc. is OK.
9639exec 5>>config.log
9640{
9641 echo
9642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9643## Running $as_me. ##
9644_ASBOX
9645} >&5
9646cat >&5 <<_CSEOF
9647
9648This file was extended by $as_me, which was
9649generated by GNU Autoconf 2.59. Invocation command line was
9650
9651 CONFIG_FILES = $CONFIG_FILES
9652 CONFIG_HEADERS = $CONFIG_HEADERS
9653 CONFIG_LINKS = $CONFIG_LINKS
9654 CONFIG_COMMANDS = $CONFIG_COMMANDS
9655 $ $0 $@
9656
9657_CSEOF
9658echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9659echo >&5
9660_ACEOF
9661
9662# Files that config.status was made for.
9663if test -n "$ac_config_files"; then
9664 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9665fi
9666
9667if test -n "$ac_config_headers"; then
9668 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9669fi
9670
9671if test -n "$ac_config_links"; then
9672 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9673fi
9674
9675if test -n "$ac_config_commands"; then
9676 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9677fi
9678
9679cat >>$CONFIG_STATUS <<\_ACEOF
9680
9681ac_cs_usage="\
9682\`$as_me' instantiates files from templates according to the
9683current configuration.
9684
9685Usage: $0 [OPTIONS] [FILE]...
9686
9687 -h, --help print this help, then exit
9688 -V, --version print version number, then exit
9689 -q, --quiet do not print progress messages
9690 -d, --debug don't remove temporary files
9691 --recheck update $as_me by reconfiguring in the same conditions
9692 --file=FILE[:TEMPLATE]
9693 instantiate the configuration file FILE
9694 --header=FILE[:TEMPLATE]
9695 instantiate the configuration header FILE
9696
9697Configuration files:
9698$config_files
9699
9700Configuration headers:
9701$config_headers
9702
9703Configuration commands:
9704$config_commands
9705
9706Report bugs to <bug-autoconf@gnu.org>."
9707_ACEOF
9708
9709cat >>$CONFIG_STATUS <<_ACEOF
9710ac_cs_version="\\
9711config.status
9712configured by $0, generated by GNU Autoconf 2.59,
9713 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9714
9715Copyright (C) 2003 Free Software Foundation, Inc.
9716This config.status script is free software; the Free Software Foundation
9717gives unlimited permission to copy, distribute and modify it."
9718srcdir=$srcdir
9719INSTALL="$INSTALL"
9720_ACEOF
9721
9722cat >>$CONFIG_STATUS <<\_ACEOF
9723# If no file are specified by the user, then we need to provide default
9724# value. By we need to know if files were specified by the user.
9725ac_need_defaults=:
9726while test $# != 0
9727do
9728 case $1 in
9729 --*=*)
9730 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9731 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9732 ac_shift=:
9733 ;;
9734 -*)
9735 ac_option=$1
9736 ac_optarg=$2
9737 ac_shift=shift
9738 ;;
9739 *) # This is not an option, so the user has probably given explicit
9740 # arguments.
9741 ac_option=$1
9742 ac_need_defaults=false;;
9743 esac
9744
9745 case $ac_option in
9746 # Handling of the options.
9747_ACEOF
9748cat >>$CONFIG_STATUS <<\_ACEOF
9749 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9750 ac_cs_recheck=: ;;
9751 --version | --vers* | -V )
9752 echo "$ac_cs_version"; exit 0 ;;
9753 --he | --h)
9754 # Conflict between --help and --header
9755 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9756Try \`$0 --help' for more information." >&5
9757echo "$as_me: error: ambiguous option: $1
9758Try \`$0 --help' for more information." >&2;}
9759 { (exit 1); exit 1; }; };;
9760 --help | --hel | -h )
9761 echo "$ac_cs_usage"; exit 0 ;;
9762 --debug | --d* | -d )
9763 debug=: ;;
9764 --file | --fil | --fi | --f )
9765 $ac_shift
9766 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9767 ac_need_defaults=false;;
9768 --header | --heade | --head | --hea )
9769 $ac_shift
9770 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9771 ac_need_defaults=false;;
9772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9774 ac_cs_silent=: ;;
9775
9776 # This is an error.
9777 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9778Try \`$0 --help' for more information." >&5
9779echo "$as_me: error: unrecognized option: $1
9780Try \`$0 --help' for more information." >&2;}
9781 { (exit 1); exit 1; }; } ;;
9782
9783 *) ac_config_targets="$ac_config_targets $1" ;;
9784
9785 esac
9786 shift
9787done
9788
9789ac_configure_extra_args=
9790
9791if $ac_cs_silent; then
9792 exec 6>/dev/null
9793 ac_configure_extra_args="$ac_configure_extra_args --silent"
9794fi
9795
9796_ACEOF
9797cat >>$CONFIG_STATUS <<_ACEOF
9798if \$ac_cs_recheck; then
9799 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9800 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9801fi
9802
9803_ACEOF
9804
9805cat >>$CONFIG_STATUS <<_ACEOF
9806#
9807# INIT-COMMANDS section.
9808#
9809
9810AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9811
9812_ACEOF
9813
9814
9815
9816cat >>$CONFIG_STATUS <<\_ACEOF
9817for ac_config_target in $ac_config_targets
9818do
9819 case "$ac_config_target" in
9820 # Handling of arguments.
9821 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9822 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
9823 "libutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/Makefile" ;;
9824 "libutil/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil/tests/Makefile" ;;
9825 "libutil++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/Makefile" ;;
9826 "libutil++/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libutil++/tests/Makefile" ;;
9827 "libop/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/Makefile" ;;
9828 "libop/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libop/tests/Makefile" ;;
9829 "libopt++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libopt++/Makefile" ;;
9830 "libdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
9831 "libdb/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libdb/tests/Makefile" ;;
9832 "libabi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/Makefile" ;;
9833 "libabi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libabi/tests/Makefile" ;;
9834 "libregex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/Makefile" ;;
9835 "libregex/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/Makefile" ;;
9836 "libregex/stl.pat" ) CONFIG_FILES="$CONFIG_FILES libregex/stl.pat" ;;
9837 "libregex/tests/mangled-name" ) CONFIG_FILES="$CONFIG_FILES libregex/tests/mangled-name" ;;
9838 "daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;;
9839 "daemon/liblegacy/Makefile" ) CONFIG_FILES="$CONFIG_FILES daemon/liblegacy/Makefile" ;;
9840 "events/Makefile" ) CONFIG_FILES="$CONFIG_FILES events/Makefile" ;;
9841 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
9842 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9843 "doc/xsl/catalog-1.xml" ) CONFIG_FILES="$CONFIG_FILES doc/xsl/catalog-1.xml" ;;
9844 "doc/oprofile.1" ) CONFIG_FILES="$CONFIG_FILES doc/oprofile.1" ;;
9845 "doc/opcontrol.1" ) CONFIG_FILES="$CONFIG_FILES doc/opcontrol.1" ;;
9846 "doc/ophelp.1" ) CONFIG_FILES="$CONFIG_FILES doc/ophelp.1" ;;
9847 "doc/opreport.1" ) CONFIG_FILES="$CONFIG_FILES doc/opreport.1" ;;
9848 "doc/opannotate.1" ) CONFIG_FILES="$CONFIG_FILES doc/opannotate.1" ;;
9849 "doc/opgprof.1" ) CONFIG_FILES="$CONFIG_FILES doc/opgprof.1" ;;
9850 "doc/oparchive.1" ) CONFIG_FILES="$CONFIG_FILES doc/oparchive.1" ;;
9851 "doc/srcdoc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/srcdoc/Doxyfile" ;;
9852 "libpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libpp/Makefile" ;;
9853 "pp/Makefile" ) CONFIG_FILES="$CONFIG_FILES pp/Makefile" ;;
9854 "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
9855 "gui/ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/ui/Makefile" ;;
9856 "module/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
9857 "module/x86/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/x86/Makefile" ;;
9858 "module/ia64/Makefile" ) CONFIG_FILES="$CONFIG_FILES module/ia64/Makefile" ;;
9859 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9860 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9862echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9863 { (exit 1); exit 1; }; };;
9864 esac
9865done
9866
9867# If the user did not use the arguments to specify the items to instantiate,
9868# then the envvar interface is used. Set only those that are not.
9869# We use the long form for the default assignment because of an extremely
9870# bizarre bug on SunOS 4.1.3.
9871if $ac_need_defaults; then
9872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9874 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9875fi
9876
9877# Have a temporary directory for convenience. Make it in the build tree
9878# simply because there is no reason to put it here, and in addition,
9879# creating and moving files from /tmp can sometimes cause problems.
9880# Create a temporary directory, and hook for its removal unless debugging.
9881$debug ||
9882{
9883 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9884 trap '{ (exit 1); exit 1; }' 1 2 13 15
9885}
9886
9887# Create a (secure) tmp directory for tmp files.
9888
9889{
9890 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9891 test -n "$tmp" && test -d "$tmp"
9892} ||
9893{
9894 tmp=./confstat$$-$RANDOM
9895 (umask 077 && mkdir $tmp)
9896} ||
9897{
9898 echo "$me: cannot create a temporary directory in ." >&2
9899 { (exit 1); exit 1; }
9900}
9901
9902_ACEOF
9903
9904cat >>$CONFIG_STATUS <<_ACEOF
9905
9906#
9907# CONFIG_FILES section.
9908#
9909
9910# No need to generate the scripts if there are no CONFIG_FILES.
9911# This happens for instance when ./config.status config.h
9912if test -n "\$CONFIG_FILES"; then
9913 # Protect against being on the right side of a sed subst in config.status.
9914 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9915 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9916s,@SHELL@,$SHELL,;t t
9917s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9918s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9919s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9920s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9921s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9922s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9923s,@exec_prefix@,$exec_prefix,;t t
9924s,@prefix@,$prefix,;t t
9925s,@program_transform_name@,$program_transform_name,;t t
9926s,@bindir@,$bindir,;t t
9927s,@sbindir@,$sbindir,;t t
9928s,@libexecdir@,$libexecdir,;t t
9929s,@datadir@,$datadir,;t t
9930s,@sysconfdir@,$sysconfdir,;t t
9931s,@sharedstatedir@,$sharedstatedir,;t t
9932s,@localstatedir@,$localstatedir,;t t
9933s,@libdir@,$libdir,;t t
9934s,@includedir@,$includedir,;t t
9935s,@oldincludedir@,$oldincludedir,;t t
9936s,@infodir@,$infodir,;t t
9937s,@mandir@,$mandir,;t t
9938s,@build_alias@,$build_alias,;t t
9939s,@host_alias@,$host_alias,;t t
9940s,@target_alias@,$target_alias,;t t
9941s,@DEFS@,$DEFS,;t t
9942s,@ECHO_C@,$ECHO_C,;t t
9943s,@ECHO_N@,$ECHO_N,;t t
9944s,@ECHO_T@,$ECHO_T,;t t
9945s,@LIBS@,$LIBS,;t t
9946s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9947s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9948s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9949s,@CYGPATH_W@,$CYGPATH_W,;t t
9950s,@PACKAGE@,$PACKAGE,;t t
9951s,@VERSION@,$VERSION,;t t
9952s,@ACLOCAL@,$ACLOCAL,;t t
9953s,@AUTOCONF@,$AUTOCONF,;t t
9954s,@AUTOMAKE@,$AUTOMAKE,;t t
9955s,@AUTOHEADER@,$AUTOHEADER,;t t
9956s,@MAKEINFO@,$MAKEINFO,;t t
9957s,@install_sh@,$install_sh,;t t
9958s,@STRIP@,$STRIP,;t t
9959s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9960s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9961s,@mkdir_p@,$mkdir_p,;t t
9962s,@AWK@,$AWK,;t t
9963s,@SET_MAKE@,$SET_MAKE,;t t
9964s,@am__leading_dot@,$am__leading_dot,;t t
9965s,@AMTAR@,$AMTAR,;t t
9966s,@am__tar@,$am__tar,;t t
9967s,@am__untar@,$am__untar,;t t
9968s,@RANLIB@,$RANLIB,;t t
9969s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9970s,@DATE@,$DATE,;t t
9971s,@OPROFILE_DIR@,$OPROFILE_DIR,;t t
9972s,@CC@,$CC,;t t
9973s,@CFLAGS@,$CFLAGS,;t t
9974s,@LDFLAGS@,$LDFLAGS,;t t
9975s,@CPPFLAGS@,$CPPFLAGS,;t t
9976s,@ac_ct_CC@,$ac_ct_CC,;t t
9977s,@EXEEXT@,$EXEEXT,;t t
9978s,@OBJEXT@,$OBJEXT,;t t
9979s,@DEPDIR@,$DEPDIR,;t t
9980s,@am__include@,$am__include,;t t
9981s,@am__quote@,$am__quote,;t t
9982s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9983s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9984s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9985s,@CCDEPMODE@,$CCDEPMODE,;t t
9986s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9987s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9988s,@CPP@,$CPP,;t t
9989s,@CXX@,$CXX,;t t
9990s,@CXXFLAGS@,$CXXFLAGS,;t t
9991s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9992s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9993s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9994s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9995s,@LD@,$LD,;t t
9996s,@KSRC@,$KSRC,;t t
9997s,@KINC@,$KINC,;t t
9998s,@kernel_support_TRUE@,$kernel_support_TRUE,;t t
9999s,@kernel_support_FALSE@,$kernel_support_FALSE,;t t
10000s,@KVERS@,$KVERS,;t t
10001s,@OPROFILE_MODULE_ARCH@,$OPROFILE_MODULE_ARCH,;t t
10002s,@MODINSTALLDIR@,$MODINSTALLDIR,;t t
10003s,@EXTRA_CFLAGS_MODULE@,$EXTRA_CFLAGS_MODULE,;t t
10004s,@topdir@,$topdir,;t t
10005s,@EGREP@,$EGREP,;t t
10006s,@SIZE_T_TYPE@,$SIZE_T_TYPE,;t t
10007s,@PTRDIFF_T_TYPE@,$PTRDIFF_T_TYPE,;t t
10008s,@CXXCPP@,$CXXCPP,;t t
10009s,@X_CFLAGS@,$X_CFLAGS,;t t
10010s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10011s,@X_LIBS@,$X_LIBS,;t t
10012s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10013s,@QT_INCLUDES@,$QT_INCLUDES,;t t
10014s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
10015s,@MOC@,$MOC,;t t
10016s,@UIC@,$UIC,;t t
10017s,@QT_LIB@,$QT_LIB,;t t
10018s,@QT_VERSION@,$QT_VERSION,;t t
10019s,@enable_abi_TRUE@,$enable_abi_TRUE,;t t
10020s,@enable_abi_FALSE@,$enable_abi_FALSE,;t t
10021s,@XSLTPROC@,$XSLTPROC,;t t
10022s,@have_xsltproc_TRUE@,$have_xsltproc_TRUE,;t t
10023s,@have_xsltproc_FALSE@,$have_xsltproc_FALSE,;t t
10024s,@XML_CATALOG@,$XML_CATALOG,;t t
10025s,@XSLTPROC_FLAGS@,$XSLTPROC_FLAGS,;t t
10026s,@DOCBOOK_ROOT@,$DOCBOOK_ROOT,;t t
10027s,@CAT_ENTRY_START@,$CAT_ENTRY_START,;t t
10028s,@CAT_ENTRY_END@,$CAT_ENTRY_END,;t t
10029s,@LIBERTY_LIBS@,$LIBERTY_LIBS,;t t
10030s,@BFD_LIBS@,$BFD_LIBS,;t t
10031s,@POPT_LIBS@,$POPT_LIBS,;t t
10032s,@have_qt_TRUE@,$have_qt_TRUE,;t t
10033s,@have_qt_FALSE@,$have_qt_FALSE,;t t
10034s,@OP_CFLAGS@,$OP_CFLAGS,;t t
10035s,@OP_CXXFLAGS@,$OP_CXXFLAGS,;t t
10036s,@OP_DOCDIR@,$OP_DOCDIR,;t t
10037s,@LIBOBJS@,$LIBOBJS,;t t
10038s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10039CEOF
10040
10041_ACEOF
10042
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044 # Split the substitutions into bite-sized pieces for seds with
10045 # small command number limits, like on Digital OSF/1 and HP-UX.
10046 ac_max_sed_lines=48
10047 ac_sed_frag=1 # Number of current file.
10048 ac_beg=1 # First line for current file.
10049 ac_end=$ac_max_sed_lines # Line after last line for current file.
10050 ac_more_lines=:
10051 ac_sed_cmds=
10052 while $ac_more_lines; do
10053 if test $ac_beg -gt 1; then
10054 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10055 else
10056 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10057 fi
10058 if test ! -s $tmp/subs.frag; then
10059 ac_more_lines=false
10060 else
10061 # The purpose of the label and of the branching condition is to
10062 # speed up the sed processing (if there are no `@' at all, there
10063 # is no need to browse any of the substitutions).
10064 # These are the two extra sed commands mentioned above.
10065 (echo ':t
10066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10067 if test -z "$ac_sed_cmds"; then
10068 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10069 else
10070 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10071 fi
10072 ac_sed_frag=`expr $ac_sed_frag + 1`
10073 ac_beg=$ac_end
10074 ac_end=`expr $ac_end + $ac_max_sed_lines`
10075 fi
10076 done
10077 if test -z "$ac_sed_cmds"; then
10078 ac_sed_cmds=cat
10079 fi
10080fi # test -n "$CONFIG_FILES"
10081
10082_ACEOF
10083cat >>$CONFIG_STATUS <<\_ACEOF
10084for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10086 case $ac_file in
10087 - | *:- | *:-:* ) # input from stdin
10088 cat >$tmp/stdin
10089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10093 * ) ac_file_in=$ac_file.in ;;
10094 esac
10095
10096 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10097 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10098$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10099 X"$ac_file" : 'X\(//\)[^/]' \| \
10100 X"$ac_file" : 'X\(//\)$' \| \
10101 X"$ac_file" : 'X\(/\)' \| \
10102 . : '\(.\)' 2>/dev/null ||
10103echo X"$ac_file" |
10104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10106 /^X\(\/\/\)$/{ s//\1/; q; }
10107 /^X\(\/\).*/{ s//\1/; q; }
10108 s/.*/./; q'`
10109 { if $as_mkdir_p; then
10110 mkdir -p "$ac_dir"
10111 else
10112 as_dir="$ac_dir"
10113 as_dirs=
10114 while test ! -d "$as_dir"; do
10115 as_dirs="$as_dir $as_dirs"
10116 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10118 X"$as_dir" : 'X\(//\)[^/]' \| \
10119 X"$as_dir" : 'X\(//\)$' \| \
10120 X"$as_dir" : 'X\(/\)' \| \
10121 . : '\(.\)' 2>/dev/null ||
10122echo X"$as_dir" |
10123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10125 /^X\(\/\/\)$/{ s//\1/; q; }
10126 /^X\(\/\).*/{ s//\1/; q; }
10127 s/.*/./; q'`
10128 done
10129 test ! -n "$as_dirs" || mkdir $as_dirs
10130 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10131echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10132 { (exit 1); exit 1; }; }; }
10133
10134 ac_builddir=.
10135
10136if test "$ac_dir" != .; then
10137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10138 # A "../" for each directory in $ac_dir_suffix.
10139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10140else
10141 ac_dir_suffix= ac_top_builddir=
10142fi
10143
10144case $srcdir in
10145 .) # No --srcdir option. We are building in place.
10146 ac_srcdir=.
10147 if test -z "$ac_top_builddir"; then
10148 ac_top_srcdir=.
10149 else
10150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10151 fi ;;
10152 [\\/]* | ?:[\\/]* ) # Absolute path.
10153 ac_srcdir=$srcdir$ac_dir_suffix;
10154 ac_top_srcdir=$srcdir ;;
10155 *) # Relative path.
10156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10158esac
10159
10160# Do not use `cd foo && pwd` to compute absolute paths, because
10161# the directories may not exist.
10162case `pwd` in
10163.) ac_abs_builddir="$ac_dir";;
10164*)
10165 case "$ac_dir" in
10166 .) ac_abs_builddir=`pwd`;;
10167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10169 esac;;
10170esac
10171case $ac_abs_builddir in
10172.) ac_abs_top_builddir=${ac_top_builddir}.;;
10173*)
10174 case ${ac_top_builddir}. in
10175 .) ac_abs_top_builddir=$ac_abs_builddir;;
10176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10178 esac;;
10179esac
10180case $ac_abs_builddir in
10181.) ac_abs_srcdir=$ac_srcdir;;
10182*)
10183 case $ac_srcdir in
10184 .) ac_abs_srcdir=$ac_abs_builddir;;
10185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10187 esac;;
10188esac
10189case $ac_abs_builddir in
10190.) ac_abs_top_srcdir=$ac_top_srcdir;;
10191*)
10192 case $ac_top_srcdir in
10193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10196 esac;;
10197esac
10198
10199
10200 case $INSTALL in
10201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10202 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10203 esac
10204
10205 if test x"$ac_file" != x-; then
10206 { echo "$as_me:$LINENO: creating $ac_file" >&5
10207echo "$as_me: creating $ac_file" >&6;}
10208 rm -f "$ac_file"
10209 fi
10210 # Let's still pretend it is `configure' which instantiates (i.e., don't
10211 # use $as_me), people would be surprised to read:
10212 # /* config.h. Generated by config.status. */
10213 if test x"$ac_file" = x-; then
10214 configure_input=
10215 else
10216 configure_input="$ac_file. "
10217 fi
10218 configure_input=$configure_input"Generated from `echo $ac_file_in |
10219 sed 's,.*/,,'` by configure."
10220
10221 # First look for the input files in the build tree, otherwise in the
10222 # src tree.
10223 ac_file_inputs=`IFS=:
10224 for f in $ac_file_in; do
10225 case $f in
10226 -) echo $tmp/stdin ;;
10227 [\\/$]*)
10228 # Absolute (can't be DOS-style, as IFS=:)
10229 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10230echo "$as_me: error: cannot find input file: $f" >&2;}
10231 { (exit 1); exit 1; }; }
10232 echo "$f";;
10233 *) # Relative
10234 if test -f "$f"; then
10235 # Build tree
10236 echo "$f"
10237 elif test -f "$srcdir/$f"; then
10238 # Source tree
10239 echo "$srcdir/$f"
10240 else
10241 # /dev/null tree
10242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10243echo "$as_me: error: cannot find input file: $f" >&2;}
10244 { (exit 1); exit 1; }; }
10245 fi;;
10246 esac
10247 done` || { (exit 1); exit 1; }
10248_ACEOF
10249cat >>$CONFIG_STATUS <<_ACEOF
10250 sed "$ac_vpsub
10251$extrasub
10252_ACEOF
10253cat >>$CONFIG_STATUS <<\_ACEOF
10254:t
10255/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10256s,@configure_input@,$configure_input,;t t
10257s,@srcdir@,$ac_srcdir,;t t
10258s,@abs_srcdir@,$ac_abs_srcdir,;t t
10259s,@top_srcdir@,$ac_top_srcdir,;t t
10260s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10261s,@builddir@,$ac_builddir,;t t
10262s,@abs_builddir@,$ac_abs_builddir,;t t
10263s,@top_builddir@,$ac_top_builddir,;t t
10264s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10265s,@INSTALL@,$ac_INSTALL,;t t
10266" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10267 rm -f $tmp/stdin
10268 if test x"$ac_file" != x-; then
10269 mv $tmp/out $ac_file
10270 else
10271 cat $tmp/out
10272 rm -f $tmp/out
10273 fi
10274
10275done
10276_ACEOF
10277cat >>$CONFIG_STATUS <<\_ACEOF
10278
10279#
10280# CONFIG_HEADER section.
10281#
10282
10283# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10284# NAME is the cpp macro being defined and VALUE is the value it is being given.
10285#
10286# ac_d sets the value in "#define NAME VALUE" lines.
10287ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10288ac_dB='[ ].*$,\1#\2'
10289ac_dC=' '
10290ac_dD=',;t'
10291# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10292ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10293ac_uB='$,\1#\2define\3'
10294ac_uC=' '
10295ac_uD=',;t'
10296
10297for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10299 case $ac_file in
10300 - | *:- | *:-:* ) # input from stdin
10301 cat >$tmp/stdin
10302 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10303 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10304 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10305 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10306 * ) ac_file_in=$ac_file.in ;;
10307 esac
10308
10309 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10310echo "$as_me: creating $ac_file" >&6;}
10311
10312 # First look for the input files in the build tree, otherwise in the
10313 # src tree.
10314 ac_file_inputs=`IFS=:
10315 for f in $ac_file_in; do
10316 case $f in
10317 -) echo $tmp/stdin ;;
10318 [\\/$]*)
10319 # Absolute (can't be DOS-style, as IFS=:)
10320 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10321echo "$as_me: error: cannot find input file: $f" >&2;}
10322 { (exit 1); exit 1; }; }
10323 # Do quote $f, to prevent DOS paths from being IFS'd.
10324 echo "$f";;
10325 *) # Relative
10326 if test -f "$f"; then
10327 # Build tree
10328 echo "$f"
10329 elif test -f "$srcdir/$f"; then
10330 # Source tree
10331 echo "$srcdir/$f"
10332 else
10333 # /dev/null tree
10334 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10335echo "$as_me: error: cannot find input file: $f" >&2;}
10336 { (exit 1); exit 1; }; }
10337 fi;;
10338 esac
10339 done` || { (exit 1); exit 1; }
10340 # Remove the trailing spaces.
10341 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10342
10343_ACEOF
10344
10345# Transform confdefs.h into two sed scripts, `conftest.defines' and
10346# `conftest.undefs', that substitutes the proper values into
10347# config.h.in to produce config.h. The first handles `#define'
10348# templates, and the second `#undef' templates.
10349# And first: Protect against being on the right side of a sed subst in
10350# config.status. Protect against being in an unquoted here document
10351# in config.status.
10352rm -f conftest.defines conftest.undefs
10353# Using a here document instead of a string reduces the quoting nightmare.
10354# Putting comments in sed scripts is not portable.
10355#
10356# `end' is used to avoid that the second main sed command (meant for
10357# 0-ary CPP macros) applies to n-ary macro definitions.
10358# See the Autoconf documentation for `clear'.
10359cat >confdef2sed.sed <<\_ACEOF
10360s/[\\&,]/\\&/g
10361s,[\\$`],\\&,g
10362t clear
10363: clear
10364s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10365t end
10366s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10367: end
10368_ACEOF
10369# If some macros were called several times there might be several times
10370# the same #defines, which is useless. Nevertheless, we may not want to
10371# sort them, since we want the *last* AC-DEFINE to be honored.
10372uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10373sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10374rm -f confdef2sed.sed
10375
10376# This sed command replaces #undef with comments. This is necessary, for
10377# example, in the case of _POSIX_SOURCE, which is predefined and required
10378# on some systems where configure will not decide to define it.
10379cat >>conftest.undefs <<\_ACEOF
10380s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10381_ACEOF
10382
10383# Break up conftest.defines because some shells have a limit on the size
10384# of here documents, and old seds have small limits too (100 cmds).
10385echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10386echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10387echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10388echo ' :' >>$CONFIG_STATUS
10389rm -f conftest.tail
10390while grep . conftest.defines >/dev/null
10391do
10392 # Write a limited-size here document to $tmp/defines.sed.
10393 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10394 # Speed up: don't consider the non `#define' lines.
10395 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10396 # Work around the forget-to-reset-the-flag bug.
10397 echo 't clr' >>$CONFIG_STATUS
10398 echo ': clr' >>$CONFIG_STATUS
10399 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10400 echo 'CEOF
10401 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10402 rm -f $tmp/in
10403 mv $tmp/out $tmp/in
10404' >>$CONFIG_STATUS
10405 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10406 rm -f conftest.defines
10407 mv conftest.tail conftest.defines
10408done
10409rm -f conftest.defines
10410echo ' fi # grep' >>$CONFIG_STATUS
10411echo >>$CONFIG_STATUS
10412
10413# Break up conftest.undefs because some shells have a limit on the size
10414# of here documents, and old seds have small limits too (100 cmds).
10415echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10416rm -f conftest.tail
10417while grep . conftest.undefs >/dev/null
10418do
10419 # Write a limited-size here document to $tmp/undefs.sed.
10420 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10421 # Speed up: don't consider the non `#undef'
10422 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10423 # Work around the forget-to-reset-the-flag bug.
10424 echo 't clr' >>$CONFIG_STATUS
10425 echo ': clr' >>$CONFIG_STATUS
10426 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10427 echo 'CEOF
10428 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10429 rm -f $tmp/in
10430 mv $tmp/out $tmp/in
10431' >>$CONFIG_STATUS
10432 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10433 rm -f conftest.undefs
10434 mv conftest.tail conftest.undefs
10435done
10436rm -f conftest.undefs
10437
10438cat >>$CONFIG_STATUS <<\_ACEOF
10439 # Let's still pretend it is `configure' which instantiates (i.e., don't
10440 # use $as_me), people would be surprised to read:
10441 # /* config.h. Generated by config.status. */
10442 if test x"$ac_file" = x-; then
10443 echo "/* Generated by configure. */" >$tmp/config.h
10444 else
10445 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10446 fi
10447 cat $tmp/in >>$tmp/config.h
10448 rm -f $tmp/in
10449 if test x"$ac_file" != x-; then
10450 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10452echo "$as_me: $ac_file is unchanged" >&6;}
10453 else
10454 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10456 X"$ac_file" : 'X\(//\)[^/]' \| \
10457 X"$ac_file" : 'X\(//\)$' \| \
10458 X"$ac_file" : 'X\(/\)' \| \
10459 . : '\(.\)' 2>/dev/null ||
10460echo X"$ac_file" |
10461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10463 /^X\(\/\/\)$/{ s//\1/; q; }
10464 /^X\(\/\).*/{ s//\1/; q; }
10465 s/.*/./; q'`
10466 { if $as_mkdir_p; then
10467 mkdir -p "$ac_dir"
10468 else
10469 as_dir="$ac_dir"
10470 as_dirs=
10471 while test ! -d "$as_dir"; do
10472 as_dirs="$as_dir $as_dirs"
10473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10474$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10475 X"$as_dir" : 'X\(//\)[^/]' \| \
10476 X"$as_dir" : 'X\(//\)$' \| \
10477 X"$as_dir" : 'X\(/\)' \| \
10478 . : '\(.\)' 2>/dev/null ||
10479echo X"$as_dir" |
10480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10482 /^X\(\/\/\)$/{ s//\1/; q; }
10483 /^X\(\/\).*/{ s//\1/; q; }
10484 s/.*/./; q'`
10485 done
10486 test ! -n "$as_dirs" || mkdir $as_dirs
10487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10488echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10489 { (exit 1); exit 1; }; }; }
10490
10491 rm -f $ac_file
10492 mv $tmp/config.h $ac_file
10493 fi
10494 else
10495 cat $tmp/config.h
10496 rm -f $tmp/config.h
10497 fi
10498# Compute $ac_file's index in $config_headers.
10499_am_stamp_count=1
10500for _am_header in $config_headers :; do
10501 case $_am_header in
10502 $ac_file | $ac_file:* )
10503 break ;;
10504 * )
10505 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10506 esac
10507done
10508echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10509$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10510 X$ac_file : 'X\(//\)[^/]' \| \
10511 X$ac_file : 'X\(//\)$' \| \
10512 X$ac_file : 'X\(/\)' \| \
10513 . : '\(.\)' 2>/dev/null ||
10514echo X$ac_file |
10515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10517 /^X\(\/\/\)$/{ s//\1/; q; }
10518 /^X\(\/\).*/{ s//\1/; q; }
10519 s/.*/./; q'`/stamp-h$_am_stamp_count
10520done
10521_ACEOF
10522cat >>$CONFIG_STATUS <<\_ACEOF
10523
10524#
10525# CONFIG_COMMANDS section.
10526#
10527for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10528 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10529 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10530 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10531$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10532 X"$ac_dest" : 'X\(//\)[^/]' \| \
10533 X"$ac_dest" : 'X\(//\)$' \| \
10534 X"$ac_dest" : 'X\(/\)' \| \
10535 . : '\(.\)' 2>/dev/null ||
10536echo X"$ac_dest" |
10537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10539 /^X\(\/\/\)$/{ s//\1/; q; }
10540 /^X\(\/\).*/{ s//\1/; q; }
10541 s/.*/./; q'`
10542 { if $as_mkdir_p; then
10543 mkdir -p "$ac_dir"
10544 else
10545 as_dir="$ac_dir"
10546 as_dirs=
10547 while test ! -d "$as_dir"; do
10548 as_dirs="$as_dir $as_dirs"
10549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10550$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10551 X"$as_dir" : 'X\(//\)[^/]' \| \
10552 X"$as_dir" : 'X\(//\)$' \| \
10553 X"$as_dir" : 'X\(/\)' \| \
10554 . : '\(.\)' 2>/dev/null ||
10555echo X"$as_dir" |
10556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10558 /^X\(\/\/\)$/{ s//\1/; q; }
10559 /^X\(\/\).*/{ s//\1/; q; }
10560 s/.*/./; q'`
10561 done
10562 test ! -n "$as_dirs" || mkdir $as_dirs
10563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10564echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10565 { (exit 1); exit 1; }; }; }
10566
10567 ac_builddir=.
10568
10569if test "$ac_dir" != .; then
10570 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10571 # A "../" for each directory in $ac_dir_suffix.
10572 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10573else
10574 ac_dir_suffix= ac_top_builddir=
10575fi
10576
10577case $srcdir in
10578 .) # No --srcdir option. We are building in place.
10579 ac_srcdir=.
10580 if test -z "$ac_top_builddir"; then
10581 ac_top_srcdir=.
10582 else
10583 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10584 fi ;;
10585 [\\/]* | ?:[\\/]* ) # Absolute path.
10586 ac_srcdir=$srcdir$ac_dir_suffix;
10587 ac_top_srcdir=$srcdir ;;
10588 *) # Relative path.
10589 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10590 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10591esac
10592
10593# Do not use `cd foo && pwd` to compute absolute paths, because
10594# the directories may not exist.
10595case `pwd` in
10596.) ac_abs_builddir="$ac_dir";;
10597*)
10598 case "$ac_dir" in
10599 .) ac_abs_builddir=`pwd`;;
10600 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10601 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10602 esac;;
10603esac
10604case $ac_abs_builddir in
10605.) ac_abs_top_builddir=${ac_top_builddir}.;;
10606*)
10607 case ${ac_top_builddir}. in
10608 .) ac_abs_top_builddir=$ac_abs_builddir;;
10609 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10610 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10611 esac;;
10612esac
10613case $ac_abs_builddir in
10614.) ac_abs_srcdir=$ac_srcdir;;
10615*)
10616 case $ac_srcdir in
10617 .) ac_abs_srcdir=$ac_abs_builddir;;
10618 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10619 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10620 esac;;
10621esac
10622case $ac_abs_builddir in
10623.) ac_abs_top_srcdir=$ac_top_srcdir;;
10624*)
10625 case $ac_top_srcdir in
10626 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10627 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10628 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10629 esac;;
10630esac
10631
10632
10633 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10634echo "$as_me: executing $ac_dest commands" >&6;}
10635 case $ac_dest in
10636 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10637 # Strip MF so we end up with the name of the file.
10638 mf=`echo "$mf" | sed -e 's/:.*$//'`
10639 # Check whether this is an Automake generated Makefile or not.
10640 # We used to match only the files named `Makefile.in', but
10641 # some people rename them; so instead we look at the file content.
10642 # Grep'ing the first line is not enough: some people post-process
10643 # each Makefile.in and add a new line on top of each file to say so.
10644 # So let's grep whole file.
10645 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10646 dirpart=`(dirname "$mf") 2>/dev/null ||
10647$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10648 X"$mf" : 'X\(//\)[^/]' \| \
10649 X"$mf" : 'X\(//\)$' \| \
10650 X"$mf" : 'X\(/\)' \| \
10651 . : '\(.\)' 2>/dev/null ||
10652echo X"$mf" |
10653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10655 /^X\(\/\/\)$/{ s//\1/; q; }
10656 /^X\(\/\).*/{ s//\1/; q; }
10657 s/.*/./; q'`
10658 else
10659 continue
10660 fi
10661 # Extract the definition of DEPDIR, am__include, and am__quote
10662 # from the Makefile without running `make'.
10663 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10664 test -z "$DEPDIR" && continue
10665 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10666 test -z "am__include" && continue
10667 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10668 # When using ansi2knr, U may be empty or an underscore; expand it
10669 U=`sed -n 's/^U = //p' < "$mf"`
10670 # Find all dependency output files, they are included files with
10671 # $(DEPDIR) in their names. We invoke sed twice because it is the
10672 # simplest approach to changing $(DEPDIR) to its actual value in the
10673 # expansion.
10674 for file in `sed -n "
10675 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10676 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10677 # Make sure the directory exists.
10678 test -f "$dirpart/$file" && continue
10679 fdir=`(dirname "$file") 2>/dev/null ||
10680$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10681 X"$file" : 'X\(//\)[^/]' \| \
10682 X"$file" : 'X\(//\)$' \| \
10683 X"$file" : 'X\(/\)' \| \
10684 . : '\(.\)' 2>/dev/null ||
10685echo X"$file" |
10686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10688 /^X\(\/\/\)$/{ s//\1/; q; }
10689 /^X\(\/\).*/{ s//\1/; q; }
10690 s/.*/./; q'`
10691 { if $as_mkdir_p; then
10692 mkdir -p $dirpart/$fdir
10693 else
10694 as_dir=$dirpart/$fdir
10695 as_dirs=
10696 while test ! -d "$as_dir"; do
10697 as_dirs="$as_dir $as_dirs"
10698 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10700 X"$as_dir" : 'X\(//\)[^/]' \| \
10701 X"$as_dir" : 'X\(//\)$' \| \
10702 X"$as_dir" : 'X\(/\)' \| \
10703 . : '\(.\)' 2>/dev/null ||
10704echo X"$as_dir" |
10705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10707 /^X\(\/\/\)$/{ s//\1/; q; }
10708 /^X\(\/\).*/{ s//\1/; q; }
10709 s/.*/./; q'`
10710 done
10711 test ! -n "$as_dirs" || mkdir $as_dirs
10712 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10713echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10714 { (exit 1); exit 1; }; }; }
10715
10716 # echo "creating $dirpart/$file"
10717 echo '# dummy' > "$dirpart/$file"
10718 done
10719done
10720 ;;
10721 esac
10722done
10723_ACEOF
10724
10725cat >>$CONFIG_STATUS <<\_ACEOF
10726
10727{ (exit 0); exit 0; }
10728_ACEOF
10729chmod +x $CONFIG_STATUS
10730ac_clean_files=$ac_clean_files_save
10731
10732
10733# configure is writing to config.log, and then calls config.status.
10734# config.status does its own redirection, appending to config.log.
10735# Unfortunately, on DOS this fails, as config.log is still kept open
10736# by configure, so config.status won't be able to write to it; its
10737# output is simply discarded. So we exec the FD to /dev/null,
10738# effectively closing config.log, so it can be properly (re)opened and
10739# appended to by config.status. When coming back to configure, we
10740# need to make the FD available again.
10741if test "$no_create" != yes; then
10742 ac_cs_success=:
10743 ac_config_status_args=
10744 test "$silent" = yes &&
10745 ac_config_status_args="$ac_config_status_args --quiet"
10746 exec 5>/dev/null
10747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10748 exec 5>>config.log
10749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10750 # would make configure fail if this is the last instruction.
10751 $ac_cs_success || { (exit 1); exit 1; }
10752fi
10753
10754
10755
10756if test -r doc/xsl/catalog.xml; then
10757 if cmp doc/xsl/catalog-1.xml doc/xsl/catalog.xml > /dev/null; then
10758 echo doc/xsl/catalog.xml is unchanged
10759 else
10760 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
10761 fi
10762else
10763 cp -f doc/xsl/catalog-1.xml doc/xsl/catalog.xml
10764fi
10765
10766
10767if test -z "$QT_LIB"; then
10768 echo "Warning: a working Qt not found; no GUI will be built"
10769fi