/[public]/psiconv/trunk/configure
ViewVC logotype

Diff of /psiconv/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 7 Revision 116
1#! /bin/sh 1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 3# Generated by Autoconf 2.50.
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6# 4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
9 9
10# Defaults: 10# Find the correct PATH separator. Usually this is `:', but
11ac_help= 11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18fi
19
20# Check that we are running under the correct shell.
21SHELL=${CONFIG_SHELL-/bin/sh}
22
23case X$ECHO in
24X*--fallback-echo)
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27 ;;
28esac
29
30echo=${ECHO-echo}
31if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
36 :
37elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
39 :
40else
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
43fi
44
45if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
49
50EOF
51 exit 0
52fi
53
54# The HP-UX ksh and POSIX shell print the target directory to stdout
55# if CDPATH is set.
56if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58if test -z "$ECHO"; then
59if test "X${echo_test_string+set}" != Xset; then
60# find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66 then
67 break
68 fi
69 done
70fi
71
72if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
75 :
76else
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
80 #
81 # So, first we look for a working echo in the user's PATH.
82
83 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
89 echo="$dir/echo"
90 break
91 fi
92 done
93 IFS="$save_ifs"
94
95 if test "X$echo" = Xecho; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
101 echo='print -r'
102 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X/bin/ksh; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL=/bin/ksh
108 export CONFIG_SHELL
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110 else
111 # Try using printf.
112 echo='printf %s\n'
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 # Cool, printf works
117 :
118 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123 export CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
125 export SHELL
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 else
133 # maybe with a smaller string...
134 prev=:
135
136 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138 then
139 break
140 fi
141 prev="$cmd"
142 done
143
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148 else
149 # Oops. We lost completely, so just stick with echo.
150 echo=echo
151 fi
152 fi
153 fi
154 fi
155fi
156fi
157
158# Copy echo and quote the copy suitably for passing to libtool from
159# the Makefile, instead of quoting the original, which is used later.
160ECHO=$echo
161if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163fi
164
165# Be Bourne compatible
166if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
167 emulate sh
168 NULLCMD=:
169elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
170 set -o posix
171fi
172
173# Name of the executable.
174as_me=`echo "$0" |sed 's,.*[\\/],,'`
175
176if expr a : '\(a\)' >/dev/null 2>&1; then
177 as_expr=expr
178else
179 as_expr=false
180fi
181
182rm -f conf$$ conf$$.exe conf$$.file
183echo >conf$$.file
184if ln -s conf$$.file conf$$ 2>/dev/null; then
185 # We could just check for DJGPP; but this test a) works b) is more generic
186 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187 if test -f conf$$.exe; then
188 # Don't use ln at all; we don't have any links
189 as_ln_s='cp -p'
190 else
191 as_ln_s='ln -s'
192 fi
193elif ln conf$$.file conf$$ 2>/dev/null; then
194 as_ln_s=ln
195else
196 as_ln_s='cp -p'
197fi
198rm -f conf$$ conf$$.exe conf$$.file
199
200as_executable_p="test -f"
201
202# Support unset when possible.
203if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
204 as_unset=unset
205else
206 as_unset=false
207fi
208
209# NLS nuisances.
210$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
218
219# IFS
220# We need space, tab and new line, in precisely that order.
221as_nl='
222'
223IFS=" $as_nl"
224
225# CDPATH.
226$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
227
228# Name of the host.
229# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230# so uname gets run too.
231ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
232
233exec 6>&1
234
235#
236# Initializations.
237#
12ac_default_prefix=/usr/local 238ac_default_prefix=/usr/local
13# Any additions from configure.in: 239cross_compiling=no
14ac_help="$ac_help 240subdirs=
15 --enable-shared[=PKGS] build shared libraries [default=yes]" 241MFLAGS= MAKEFLAGS=
16ac_help="$ac_help 242SHELL=${CONFIG_SHELL-/bin/sh}
17 --enable-static[=PKGS] build static libraries [default=yes]" 243
18ac_help="$ac_help 244# Maximum number of lines to put in a shell here document.
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 245# This variable seems obsolete. It should probably be removed, and
20ac_help="$ac_help 246# only ac_max_sed_lines should be used.
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 247: ${ac_max_here_lines=38}
22ac_help="$ac_help 248
23 --disable-libtool-lock avoid locking (might break parallel builds)" 249# Avoid depending upon Character Ranges.
24ac_help="$ac_help 250ac_cr_az='abcdefghijklmnopqrstuvwxyz'
25 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)" 251ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26ac_help="$ac_help 252ac_cr_09='0123456789'
27 --enable-html4-docs Enable generation of HTML 4 docs (default: off)" 253ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
28ac_help="$ac_help 254
29 --enable-ascii-docs Enable generation of ASCII docs (default: off)" 255# Sed expression to map a string onto a valid sh and CPP variable names.
30ac_help="$ac_help 256ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
31 --enable-rtf-docs Enable generation of RTF docs (default: off)" 257ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
258
259ac_unique_file="lib/psiconv"
260# Factoring default headers for most tests.
261ac_includes_default="\
262#include <stdio.h>
263#include <sys/types.h>
264#include <sys/stat.h>
265#if STDC_HEADERS
266# include <stdlib.h>
267# include <stddef.h>
268#else
269# if HAVE_STDLIB_H
270# include <stdlib.h>
271# endif
272#endif
273#if HAVE_STRING_H
274# if !STDC_HEADERS && HAVE_MEMORY_H
275# include <memory.h>
276# endif
277# include <string.h>
278#else
279# if HAVE_STRINGS_H
280# include <strings.h>
281# endif
282#endif
283#if HAVE_INTTYPES_H
284# include <inttypes.h>
285#endif
286#if HAVE_UNISTD_H
287# include <unistd.h>
288#endif"
32 289
33# Initialize some variables set by options. 290# Initialize some variables set by options.
291ac_init_help=
292ac_init_version=false
34# The variables have the same names as the options, with 293# The variables have the same names as the options, with
35# dashes changed to underlines. 294# dashes changed to underlines.
36build=NONE 295cache_file=/dev/null
37cache_file=./config.cache
38exec_prefix=NONE 296exec_prefix=NONE
39host=NONE
40no_create= 297no_create=
41nonopt=NONE
42no_recursion= 298no_recursion=
43prefix=NONE 299prefix=NONE
44program_prefix=NONE 300program_prefix=NONE
45program_suffix=NONE 301program_suffix=NONE
46program_transform_name=s,x,x, 302program_transform_name=s,x,x,
47silent= 303silent=
48site= 304site=
49srcdir= 305srcdir=
50target=NONE
51verbose= 306verbose=
52x_includes=NONE 307x_includes=NONE
53x_libraries=NONE 308x_libraries=NONE
309
310# Installation directory options.
311# These are left unexpanded so users can "make install exec_prefix=/foo"
312# and all the variables that are supposed to be based on exec_prefix
313# by default will actually change.
314# Use braces instead of parens because sh, perl, etc. also accept them.
54bindir='${exec_prefix}/bin' 315bindir='${exec_prefix}/bin'
55sbindir='${exec_prefix}/sbin' 316sbindir='${exec_prefix}/sbin'
56libexecdir='${exec_prefix}/libexec' 317libexecdir='${exec_prefix}/libexec'
57datadir='${prefix}/share' 318datadir='${prefix}/share'
58sysconfdir='${prefix}/etc' 319sysconfdir='${prefix}/etc'
62includedir='${prefix}/include' 323includedir='${prefix}/include'
63oldincludedir='/usr/include' 324oldincludedir='/usr/include'
64infodir='${prefix}/info' 325infodir='${prefix}/info'
65mandir='${prefix}/man' 326mandir='${prefix}/man'
66 327
67# Initialize some other variables. 328# Identity of this package.
68subdirs= 329PACKAGE_NAME=
69MFLAGS= MAKEFLAGS= 330PACKAGE_TARNAME=
70SHELL=${CONFIG_SHELL-/bin/sh} 331PACKAGE_VERSION=
71# Maximum number of lines to put in a shell here document. 332PACKAGE_STRING=
72ac_max_here_lines=12 333PACKAGE_BUGREPORT=
73 334
74ac_prev= 335ac_prev=
75for ac_option 336for ac_option
76do 337do
77
78 # If the previous option needs an argument, assign it. 338 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then 339 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option" 340 eval "$ac_prev=\$ac_option"
81 ac_prev= 341 ac_prev=
82 continue 342 continue
83 fi 343 fi
84 344
85 case "$ac_option" in 345 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 *) ac_optarg= ;;
88 esac
89 346
90 # Accept the important Cygnus configure options, so we can diagnose typos. 347 # Accept the important Cygnus configure options, so we can diagnose typos.
91 348
92 case "$ac_option" in 349 case $ac_option in
93 350
94 -bindir | --bindir | --bindi | --bind | --bin | --bi) 351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 ac_prev=bindir ;; 352 ac_prev=bindir ;;
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;; 354 bindir=$ac_optarg ;;
98 355
99 -build | --build | --buil | --bui | --bu) 356 -build | --build | --buil | --bui | --bu)
100 ac_prev=build ;; 357 ac_prev=build_alias ;;
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;; 359 build_alias=$ac_optarg ;;
103 360
104 -cache-file | --cache-file | --cache-fil | --cache-fi \ 361 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;; 363 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;; 366 cache_file=$ac_optarg ;;
367
368 --config-cache | -C)
369 cache_file=config.cache ;;
110 370
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 371 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 ac_prev=datadir ;; 372 ac_prev=datadir ;;
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 373 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 | --da=*) 374 | --da=*)
115 datadir="$ac_optarg" ;; 375 datadir=$ac_optarg ;;
116 376
117 -disable-* | --disable-*) 377 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 378 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
119 # Reject names that are not valid shell variable names. 379 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 380 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 381 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
122 fi 382 { (exit 1); exit 1; }; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 383 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;; 384 eval "enable_$ac_feature=no" ;;
125 385
126 -enable-* | --enable-*) 386 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 387 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
128 # Reject names that are not valid shell variable names. 388 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 389 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 390 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
131 fi 391 { (exit 1); exit 1; }; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 392 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
133 case "$ac_option" in 393 case $ac_option in
134 *=*) ;; 394 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
135 *) ac_optarg=yes ;; 395 *) ac_optarg=yes ;;
136 esac 396 esac
137 eval "enable_${ac_feature}='$ac_optarg'" ;; 397 eval "enable_$ac_feature='$ac_optarg'" ;;
138 398
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 399 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 400 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex) 401 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;; 402 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 403 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 404 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*) 405 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;; 406 exec_prefix=$ac_optarg ;;
147 407
148 -gas | --gas | --ga | --g) 408 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas. 409 # Obsolete; use --with-gas.
150 with_gas=yes ;; 410 with_gas=yes ;;
151 411
152 -help | --help | --hel | --he) 412 -help | --help | --hel | --he | -h)
153 # Omit some internal or obsolete options to make the list less imposing. 413 ac_init_help=long ;;
154 # This message is too long to be a string in the A/UX 3.1 sh. 414 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
155 cat << EOF 415 ac_init_help=recursive ;;
156Usage: configure [options] [host] 416 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
157Options: [defaults in brackets after descriptions] 417 ac_init_help=short ;;
158Configuration:
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
166 [$ac_default_prefix]
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 [same as prefix]
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
173 [PREFIX/share]
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 [PREFIX/com]
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
188EOF
189 cat << EOF
190Host type:
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
201EOF
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
204 fi
205 exit 0 ;;
206 418
207 -host | --host | --hos | --ho) 419 -host | --host | --hos | --ho)
208 ac_prev=host ;; 420 ac_prev=host_alias ;;
209 -host=* | --host=* | --hos=* | --ho=*) 421 -host=* | --host=* | --hos=* | --ho=*)
210 host="$ac_optarg" ;; 422 host_alias=$ac_optarg ;;
211 423
212 -includedir | --includedir | --includedi | --included | --include \ 424 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc) 425 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;; 426 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*) 428 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;; 429 includedir=$ac_optarg ;;
218 430
219 -infodir | --infodir | --infodi | --infod | --info | --inf) 431 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 ac_prev=infodir ;; 432 ac_prev=infodir ;;
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;; 434 infodir=$ac_optarg ;;
223 435
224 -libdir | --libdir | --libdi | --libd) 436 -libdir | --libdir | --libdi | --libd)
225 ac_prev=libdir ;; 437 ac_prev=libdir ;;
226 -libdir=* | --libdir=* | --libdi=* | --libd=*) 438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;; 439 libdir=$ac_optarg ;;
228 440
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe) 442 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;; 443 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*) 445 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;; 446 libexecdir=$ac_optarg ;;
235 447
236 -localstatedir | --localstatedir | --localstatedi | --localstated \ 448 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \ 449 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo) 450 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;; 451 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 452 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 453 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 454 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;; 455 localstatedir=$ac_optarg ;;
244 456
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 457 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 ac_prev=mandir ;; 458 ac_prev=mandir ;;
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 459 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;; 460 mandir=$ac_optarg ;;
249 461
250 -nfp | --nfp | --nf) 462 -nfp | --nfp | --nf)
251 # Obsolete; use --without-fp. 463 # Obsolete; use --without-fp.
252 with_fp=no ;; 464 with_fp=no ;;
253 465
264 | --oldin | --oldi | --old | --ol | --o) 476 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;; 477 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 478 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 479 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 480 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;; 481 oldincludedir=$ac_optarg ;;
270 482
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 483 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 ac_prev=prefix ;; 484 ac_prev=prefix ;;
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 485 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;; 486 prefix=$ac_optarg ;;
275 487
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 488 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p) 489 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;; 490 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 491 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 492 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;; 493 program_prefix=$ac_optarg ;;
282 494
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 495 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s) 496 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;; 497 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 498 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 499 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;; 500 program_suffix=$ac_optarg ;;
289 501
290 -program-transform-name | --program-transform-name \ 502 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \ 503 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \ 504 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \ 505 | --program-transform | --program-transfor \
300 | --program-transform-n=* | --program-transform-=* \ 512 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \ 513 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \ 514 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \ 515 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*) 516 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;; 517 program_transform_name=$ac_optarg ;;
306 518
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil) 520 | -silent | --silent | --silen | --sile | --sil)
309 silent=yes ;; 521 silent=yes ;;
310 522
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 523 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 ac_prev=sbindir ;; 524 ac_prev=sbindir ;;
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 525 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 | --sbi=* | --sb=*) 526 | --sbi=* | --sb=*)
315 sbindir="$ac_optarg" ;; 527 sbindir=$ac_optarg ;;
316 528
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 529 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 530 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \ 531 | --sharedst | --shareds | --shared | --share | --shar \
320 | --sha | --sh) 532 | --sha | --sh)
321 ac_prev=sharedstatedir ;; 533 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 534 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 535 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 536 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 | --sha=* | --sh=*) 537 | --sha=* | --sh=*)
326 sharedstatedir="$ac_optarg" ;; 538 sharedstatedir=$ac_optarg ;;
327 539
328 -site | --site | --sit) 540 -site | --site | --sit)
329 ac_prev=site ;; 541 ac_prev=site ;;
330 -site=* | --site=* | --sit=*) 542 -site=* | --site=* | --sit=*)
331 site="$ac_optarg" ;; 543 site=$ac_optarg ;;
332 544
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 ac_prev=srcdir ;; 546 ac_prev=srcdir ;;
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;; 548 srcdir=$ac_optarg ;;
337 549
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 550 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy) 551 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;; 552 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 553 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 554 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;; 555 sysconfdir=$ac_optarg ;;
344 556
345 -target | --target | --targe | --targ | --tar | --ta | --t) 557 -target | --target | --targe | --targ | --tar | --ta | --t)
346 ac_prev=target ;; 558 ac_prev=target_alias ;;
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 559 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;; 560 target_alias=$ac_optarg ;;
349 561
350 -v | -verbose | --verbose | --verbos | --verbo | --verb) 562 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 verbose=yes ;; 563 verbose=yes ;;
352 564
353 -version | --version | --versio | --versi | --vers) 565 -version | --version | --versio | --versi | --vers | -V)
354 echo "configure generated by autoconf version 2.13" 566 ac_init_version=: ;;
355 exit 0 ;;
356 567
357 -with-* | --with-*) 568 -with-* | --with-*)
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 569 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
359 # Reject names that are not valid shell variable names. 570 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 571 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 572 { echo "$as_me: error: invalid package name: $ac_package" >&2
362 fi 573 { (exit 1); exit 1; }; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'` 574 ac_package=`echo $ac_package| sed 's/-/_/g'`
364 case "$ac_option" in 575 case $ac_option in
365 *=*) ;; 576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
366 *) ac_optarg=yes ;; 577 *) ac_optarg=yes ;;
367 esac 578 esac
368 eval "with_${ac_package}='$ac_optarg'" ;; 579 eval "with_$ac_package='$ac_optarg'" ;;
369 580
370 -without-* | --without-*) 581 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 582 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
372 # Reject names that are not valid shell variable names. 583 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 584 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 585 { echo "$as_me: error: invalid package name: $ac_package" >&2
375 fi 586 { (exit 1); exit 1; }; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'` 587 ac_package=`echo $ac_package | sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;; 588 eval "with_$ac_package=no" ;;
378 589
379 --x) 590 --x)
380 # Obsolete; use --with-x. 591 # Obsolete; use --with-x.
381 with_x=yes ;; 592 with_x=yes ;;
382 593
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i) 595 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;; 596 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;; 599 x_includes=$ac_optarg ;;
389 600
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;; 603 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;; 606 x_libraries=$ac_optarg ;;
396 607
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 608 -*) { echo "$as_me: error: unrecognized option: $ac_option
609Try \`$0 --help' for more information." >&2
610 { (exit 1); exit 1; }; }
398 ;; 611 ;;
399 612
613 *=*)
614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615 # Reject names that are not valid shell variable names.
616 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
617 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618 { (exit 1); exit 1; }; }
619 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620 eval "$ac_envvar='$ac_optarg'"
621 export $ac_envvar ;;
622
400 *) 623 *)
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 624 # FIXME: should be removed in autoconf 3.0.
402 echo "configure: warning: $ac_option: invalid host type" 1>&2 625 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
403 fi 626 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
404 if test "x$nonopt" != xNONE; then 627 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 628 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
406 fi
407 nonopt="$ac_option"
408 ;; 629 ;;
409 630
410 esac 631 esac
411done 632done
412 633
413if test -n "$ac_prev"; then 634if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636 { echo "$as_me: error: missing argument to $ac_option" >&2
637 { (exit 1); exit 1; }; }
415fi 638fi
416 639
417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 640# Be sure to have absolute paths.
418 641for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
419# File descriptor usage: 642 localstatedir libdir includedir oldincludedir infodir mandir \
420# 0 standard input 643 exec_prefix prefix
421# 1 file creation
422# 2 errors and warnings
423# 3 some systems may open it to /dev/tty
424# 4 used on the Kubota Titan
425# 6 checking for... messages and results
426# 5 compiler messages saved in config.log
427if test "$silent" = yes; then
428 exec 6>/dev/null
429else
430 exec 6>&1
431fi
432exec 5>./config.log
433
434echo "\
435This file contains any messages produced by compilers while
436running configure, to aid debugging if configure makes a mistake.
437" 1>&5
438
439# Strip out --no-create and --no-recursion so they do not pile up.
440# Also quote any args containing shell metacharacters.
441ac_configure_args=
442for ac_arg
443do 644do
645 eval ac_val=$`echo $ac_var`
444 case "$ac_arg" in 646 case $ac_val in
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 647 [\\/$]* | ?:[\\/]* ) ;;
446 | --no-cr | --no-c) ;; 648 NONE ) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 649 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 650 { (exit 1); exit 1; }; };;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452 esac 651 esac
453done 652done
454 653
455# NLS nuisances. 654# There might be people who depend on the old broken behavior: `$host'
456# Only set these to C if already set. These must not be set unconditionally 655# used to hold the argument of --host etc.
457# because not all systems understand e.g. LANG=C (notably SCO). 656build=$build_alias
458# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 657host=$host_alias
459# Non-C LC_CTYPE values break the ctype check. 658target=$target_alias
460if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 659
465# confdefs.h avoids OS command line length limits that DEFS can exceed. 660# FIXME: should be removed in autoconf 3.0.
466rm -rf conftest* confdefs.h 661if test "x$host_alias" != x; then
467# AIX cpp loses on an empty file, so make sure it contains at least a newline. 662 if test "x$build_alias" = x; then
468echo > confdefs.h 663 cross_compiling=maybe
664 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665 If a cross compiler is detected then cross compile mode will be used." >&2
666 elif test "x$build_alias" != "x$host_alias"; then
667 cross_compiling=yes
668 fi
669fi
469 670
470# A filename unique to this package, relative to the directory that 671ac_tool_prefix=
471# configure is in, which we can look for to find out if srcdir is correct. 672test -n "$host_alias" && ac_tool_prefix=$host_alias-
472ac_unique_file=psiconv 673
674test "$silent" = yes && exec 6>/dev/null
473 675
474# Find the source files, if location was not specified. 676# Find the source files, if location was not specified.
475if test -z "$srcdir"; then 677if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes 678 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent. 679 # Try the directory containing this script, then its parent.
478 ac_prog=$0 680 ac_prog=$0
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 681 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 682 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 srcdir=$ac_confdir 683 srcdir=$ac_confdir
482 if test ! -r $srcdir/$ac_unique_file; then 684 if test ! -r $srcdir/$ac_unique_file; then
483 srcdir=.. 685 srcdir=..
484 fi 686 fi
485else 687else
486 ac_srcdir_defaulted=no 688 ac_srcdir_defaulted=no
487fi 689fi
488if test ! -r $srcdir/$ac_unique_file; then 690if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then 691 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 692 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
491 else 694 else
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 695 { echo "$as_me: error: cannot find sources in $srcdir" >&2
696 { (exit 1); exit 1; }; }
493 fi 697 fi
494fi 698fi
495srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 699srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
700ac_env_build_alias_set=${build_alias+set}
701ac_env_build_alias_value=$build_alias
702ac_cv_env_build_alias_set=${build_alias+set}
703ac_cv_env_build_alias_value=$build_alias
704ac_env_host_alias_set=${host_alias+set}
705ac_env_host_alias_value=$host_alias
706ac_cv_env_host_alias_set=${host_alias+set}
707ac_cv_env_host_alias_value=$host_alias
708ac_env_target_alias_set=${target_alias+set}
709ac_env_target_alias_value=$target_alias
710ac_cv_env_target_alias_set=${target_alias+set}
711ac_cv_env_target_alias_value=$target_alias
712ac_env_CC_set=${CC+set}
713ac_env_CC_value=$CC
714ac_cv_env_CC_set=${CC+set}
715ac_cv_env_CC_value=$CC
716ac_env_CFLAGS_set=${CFLAGS+set}
717ac_env_CFLAGS_value=$CFLAGS
718ac_cv_env_CFLAGS_set=${CFLAGS+set}
719ac_cv_env_CFLAGS_value=$CFLAGS
720ac_env_LDFLAGS_set=${LDFLAGS+set}
721ac_env_LDFLAGS_value=$LDFLAGS
722ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
723ac_cv_env_LDFLAGS_value=$LDFLAGS
724ac_env_CPPFLAGS_set=${CPPFLAGS+set}
725ac_env_CPPFLAGS_value=$CPPFLAGS
726ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
727ac_cv_env_CPPFLAGS_value=$CPPFLAGS
728ac_env_CPP_set=${CPP+set}
729ac_env_CPP_value=$CPP
730ac_cv_env_CPP_set=${CPP+set}
731ac_cv_env_CPP_value=$CPP
496 732
733#
734# Report the --help message.
735#
736if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # This message is too long to be a string in the A/UX 3.1 sh.
739 cat <<EOF
740\`configure' configures this package to adapt to many kinds of systems.
741
742Usage: $0 [OPTION]... [VAR=VALUE]...
743
744To assign environment variables (e.g., CC, CFLAGS...), specify them as
745VAR=VALUE. See below for descriptions of some of the useful variables.
746
747Defaults for the options are specified in brackets.
748
749Configuration:
750 -h, --help display this help and exit
751 --help=short display options specific to this package
752 --help=recursive display the short help of all the included packages
753 -V, --version display version information and exit
754 -q, --quiet, --silent do not print \`checking...' messages
755 --cache-file=FILE cache test results in FILE [disabled]
756 -C, --config-cache alias for \`--cache-file=config.cache'
757 -n, --no-create do not create output files
758 --srcdir=DIR find the sources in DIR [configure dir or \`..']
759
760EOF
761
762 cat <<EOF
763Installation directories:
764 --prefix=PREFIX install architecture-independent files in PREFIX
765 [$ac_default_prefix]
766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
767 [PREFIX]
768
769By default, \`make install' will install all the files in
770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
772for instance \`--prefix=\$HOME'.
773
774For better control, use the options below.
775
776Fine tuning of the installation directories:
777 --bindir=DIR user executables [EPREFIX/bin]
778 --sbindir=DIR system admin executables [EPREFIX/sbin]
779 --libexecdir=DIR program executables [EPREFIX/libexec]
780 --datadir=DIR read-only architecture-independent data [PREFIX/share]
781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
783 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
784 --libdir=DIR object code libraries [EPREFIX/lib]
785 --includedir=DIR C header files [PREFIX/include]
786 --oldincludedir=DIR C header files for non-gcc [/usr/include]
787 --infodir=DIR info documentation [PREFIX/info]
788 --mandir=DIR man documentation [PREFIX/man]
789EOF
790
791 cat <<\EOF
792
793Program names:
794 --program-prefix=PREFIX prepend PREFIX to installed program names
795 --program-suffix=SUFFIX append SUFFIX to installed program names
796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
797
798System types:
799 --build=BUILD configure for building on BUILD [guessed]
800 --host=HOST build programs to run on HOST [BUILD]
801EOF
802fi
803
804if test -n "$ac_init_help"; then
805
806 cat <<\EOF
807
808Optional Features:
809 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
810 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
811 --enable-shared=PKGS build shared libraries default=yes
812 --enable-static=PKGS build static libraries default=yes
813 --enable-fast-install=PKGS optimize for fast installation default=yes
814 --disable-libtool-lock avoid locking (might break parallel builds)
815 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
816 --enable-iso-c Try to warn if code is not ISO C
817 --disable-html-docs Disable generation of HTML 3.2 docs (default: on)
818 --enable-html4-docs Enable generation of HTML 4 docs (default: off)
819 --enable-ascii-docs Enable generation of ASCII docs (default: off)
820 --enable-rtf-docs Enable generation of RTF docs (default: off)
821
822Optional Packages:
823 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
824 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
825 --with-gnu-ld assume the C compiler uses GNU ld default=no
826 --with-pic try to use only PIC/non-PIC objects default=use both
827 --with-imagemagick enable ImageMagick (default = yes)
828
829Some influential environment variables:
830 CC C compiler command
831 CFLAGS C compiler flags
832 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
833 nonstandard directory <lib dir>
834 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
835 headers in a nonstandard directory <include dir>
836 CPP C preprocessor
837
838Use these variables to override the choices made by `configure' or to help
839it to find libraries and programs with nonstandard names/locations.
840
841EOF
842fi
843
844if test "$ac_init_help" = "recursive"; then
845 # If there are subdirs, report their specific --help.
846 ac_popdir=`pwd`
847 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
848 cd $ac_subdir
849 # A "../" for each directory in /$ac_subdir.
850 ac_dots=`echo $ac_subdir |
851 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
852
853 case $srcdir in
854 .) # No --srcdir option. We are building in place.
855 ac_sub_srcdir=$srcdir ;;
856 [\\/]* | ?:[\\/]* ) # Absolute path.
857 ac_sub_srcdir=$srcdir/$ac_subdir ;;
858 *) # Relative path.
859 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
860 esac
861
862 # Check for guested configure; otherwise get Cygnus style configure.
863 if test -f $ac_sub_srcdir/configure.gnu; then
864 echo
865 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
866 elif test -f $ac_sub_srcdir/configure; then
867 echo
868 $SHELL $ac_sub_srcdir/configure --help=recursive
869 elif test -f $ac_sub_srcdir/configure.ac ||
870 test -f $ac_sub_srcdir/configure.in; then
871 echo
872 $ac_configure --help
873 else
874 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
875 fi
876 cd $ac_popdir
877 done
878fi
879
880test -n "$ac_init_help" && exit 0
881if $ac_init_version; then
882 cat <<\EOF
883
884Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
885Free Software Foundation, Inc.
886This configure script is free software; the Free Software Foundation
887gives unlimited permission to copy, distribute and modify it.
888EOF
889 exit 0
890fi
891exec 5>config.log
892cat >&5 <<EOF
893This file contains any messages produced by compilers while
894running configure, to aid debugging if configure makes a mistake.
895
896It was created by $as_me, which was
897generated by GNU Autoconf 2.50. Invocation command line was
898
899 $ $0 $@
900
901EOF
902{
903cat <<_ASUNAME
904## ---------- ##
905## Platform. ##
906## ---------- ##
907
908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
909uname -m = `(uname -m) 2>/dev/null || echo unknown`
910uname -r = `(uname -r) 2>/dev/null || echo unknown`
911uname -s = `(uname -s) 2>/dev/null || echo unknown`
912uname -v = `(uname -v) 2>/dev/null || echo unknown`
913
914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
915/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
916
917/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
918/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
920hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
921/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
922/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
923/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924
925PATH = $PATH
926
927_ASUNAME
928} >&5
929
930cat >&5 <<EOF
931## ------------ ##
932## Core tests. ##
933## ------------ ##
934
935EOF
936
937# Keep a trace of the command line.
938# Strip out --no-create and --no-recursion so they do not pile up.
939# Also quote any args containing shell meta-characters.
940ac_configure_args=
941ac_sep=
942for ac_arg
943do
944 case $ac_arg in
945 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946 | --no-cr | --no-c) ;;
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
949 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
950 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
951 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
952 ac_sep=" " ;;
953 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
954 ac_sep=" " ;;
955 esac
956 # Get rid of the leading space.
957done
958
959# When interrupted or exit'd, cleanup temporary files, and complete
960# config.log. We remove comments because anyway the quotes in there
961# would cause problems or look ugly.
962trap 'exit_status=$?
963 # Save into config.log some information that might help in debugging.
964 echo >&5
965 echo "## ----------------- ##" >&5
966 echo "## Cache variables. ##" >&5
967 echo "## ----------------- ##" >&5
968 echo >&5
969 # The following way of writing the cache mishandles newlines in values,
970{
971 (set) 2>&1 |
972 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
973 *ac_space=\ *)
974 sed -n \
975 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
976 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
977 ;;
978 *)
979 sed -n \
980 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
981 ;;
982 esac;
983} >&5
984 sed "/^$/d" confdefs.h >conftest.log
985 if test -s conftest.log; then
986 echo >&5
987 echo "## ------------ ##" >&5
988 echo "## confdefs.h. ##" >&5
989 echo "## ------------ ##" >&5
990 echo >&5
991 cat conftest.log >&5
992 fi
993 (echo; echo) >&5
994 test "$ac_signal" != 0 &&
995 echo "$as_me: caught signal $ac_signal" >&5
996 echo "$as_me: exit $exit_status" >&5
997 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
998 exit $exit_status
999 ' 0
1000for ac_signal in 1 2 13 15; do
1001 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
1002done
1003ac_signal=0
1004
1005# confdefs.h avoids OS command line length limits that DEFS can exceed.
1006rm -rf conftest* confdefs.h
1007# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1008echo >confdefs.h
1009
1010# Let the site file select an alternate cache file if it wants to.
497# Prefer explicitly selected file to automatically selected ones. 1011# Prefer explicitly selected file to automatically selected ones.
498if test -z "$CONFIG_SITE"; then 1012if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then 1013 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1014 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 else 1015 else
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1016 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 fi 1017 fi
504fi 1018fi
505for ac_site_file in $CONFIG_SITE; do 1019for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then 1020 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file" 1021 { echo "$as_me:1021: loading site script $ac_site_file" >&5
1022echo "$as_me: loading site script $ac_site_file" >&6;}
1023 cat "$ac_site_file" >&5
508 . "$ac_site_file" 1024 . "$ac_site_file"
509 fi 1025 fi
510done 1026done
511 1027
512if test -r "$cache_file"; then 1028if test -r "$cache_file"; then
1029 # Some versions of bash will fail to source /dev/null (special
1030 # files actually), so we avoid doing that.
1031 if test -f "$cache_file"; then
1032 { echo "$as_me:1032: loading cache $cache_file" >&5
513 echo "loading cache $cache_file" 1033echo "$as_me: loading cache $cache_file" >&6;}
514 . $cache_file 1034 case $cache_file in
1035 [\\/]* | ?:[\\/]* ) . $cache_file;;
1036 *) . ./$cache_file;;
1037 esac
1038 fi
515else 1039else
1040 { echo "$as_me:1040: creating cache $cache_file" >&5
516 echo "creating cache $cache_file" 1041echo "$as_me: creating cache $cache_file" >&6;}
517 > $cache_file 1042 >$cache_file
1043fi
1044
1045# Check that the precious variables saved in the cache have kept the same
1046# value.
1047ac_suggest_removing_cache=false
1048for ac_var in `(set) 2>&1 |
1049 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1050 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1051 eval ac_new_set=\$ac_env_${ac_var}_set
1052 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1053 eval ac_new_val="\$ac_env_${ac_var}_value"
1054 case $ac_old_set,$ac_new_set in
1055 set,)
1056 { echo "$as_me:1056: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1057echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1058 ac_suggest_removing_cache=: ;;
1059 ,set)
1060 { echo "$as_me:1060: WARNING: \`$ac_var' was not set in the previous run" >&5
1061echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1062 ac_suggest_removing_cache=: ;;
1063 ,);;
1064 *)
1065 if test "x$ac_old_val" != "x$ac_new_val"; then
1066 { echo "$as_me:1066: WARNING: \`$ac_var' has changed since the previous run:" >&5
1067echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1068 { echo "$as_me:1068: WARNING: former value: $ac_old_val" >&5
1069echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1070 { echo "$as_me:1070: WARNING: current value: $ac_new_val" >&5
1071echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1072 ac_suggest_removing_cache=:
1073 fi;;
1074 esac
1075done
1076if $ac_suggest_removing_cache; then
1077 { echo "$as_me:1077: WARNING: changes in the environment can compromise the build" >&5
1078echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1079 { echo "$as_me:1079: WARNING: consider removing $cache_file and starting over" >&5
1080echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
518fi 1081fi
519 1082
520ac_ext=c 1083ac_ext=c
521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522ac_cpp='$CPP $CPPFLAGS' 1084ac_cpp='$CPP $CPPFLAGS'
523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
524ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
525cross_compiling=$ac_cv_prog_cc_cross 1087ac_compiler_gnu=$ac_cv_c_compiler_gnu
526 1088
527ac_exeext= 1089case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
528ac_objext=o 1090 *c*,-n*) ECHO_N= ECHO_C='
529if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 1091' ECHO_T=' ' ;;
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 1092 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 1093 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
532 ac_n= ac_c=' 1094esac
533' ac_t=' ' 1095echo "#! $SHELL" >conftest.sh
1096echo "exit 0" >>conftest.sh
1097chmod +x conftest.sh
1098if { (echo "$as_me:1098: PATH=\".;.\"; conftest.sh") >&5
1099 (PATH=".;."; conftest.sh) 2>&5
1100 ac_status=$?
1101 echo "$as_me:1101: \$? = $ac_status" >&5
1102 (exit $ac_status); }; then
1103 ac_path_separator=';'
534 else 1104else
535 ac_n=-n ac_c= ac_t= 1105 ac_path_separator=:
536 fi
537else
538 ac_n= ac_c='\c' ac_t=
539fi 1106fi
540 1107PATH_SEPARATOR="$ac_path_separator"
1108rm -f conftest.sh
541 1109
542ac_aux_dir= 1110ac_aux_dir=
543for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1111for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
544 if test -f $ac_dir/install-sh; then 1112 if test -f $ac_dir/install-sh; then
545 ac_aux_dir=$ac_dir 1113 ac_aux_dir=$ac_dir
547 break 1115 break
548 elif test -f $ac_dir/install.sh; then 1116 elif test -f $ac_dir/install.sh; then
549 ac_aux_dir=$ac_dir 1117 ac_aux_dir=$ac_dir
550 ac_install_sh="$ac_aux_dir/install.sh -c" 1118 ac_install_sh="$ac_aux_dir/install.sh -c"
551 break 1119 break
1120 elif test -f $ac_dir/shtool; then
1121 ac_aux_dir=$ac_dir
1122 ac_install_sh="$ac_aux_dir/shtool install -c"
1123 break
552 fi 1124 fi
553done 1125done
554if test -z "$ac_aux_dir"; then 1126if test -z "$ac_aux_dir"; then
1127 { { echo "$as_me:1127: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
555 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1128echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1129 { (exit 1); exit 1; }; }
556fi 1130fi
557ac_config_guess=$ac_aux_dir/config.guess 1131ac_config_guess="$SHELL $ac_aux_dir/config.guess"
558ac_config_sub=$ac_aux_dir/config.sub 1132ac_config_sub="$SHELL $ac_aux_dir/config.sub"
559ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 1133ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
560 1134
561# Find a good install program. We prefer a C program (faster), 1135# Find a good install program. We prefer a C program (faster),
562# so one script is as good as another. But avoid the broken or 1136# so one script is as good as another. But avoid the broken or
563# incompatible versions: 1137# incompatible versions:
564# SysV /etc/install, /usr/sbin/install 1138# SysV /etc/install, /usr/sbin/install
565# SunOS /usr/etc/install 1139# SunOS /usr/etc/install
566# IRIX /sbin/install 1140# IRIX /sbin/install
567# AIX /bin/install 1141# AIX /bin/install
1142# AmigaOS /C/install, which installs bootblocks on floppy discs
568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
569# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1144# AFS /usr/afsws/bin/install, which mishandles nonexistent args
570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
571# ./install, which can be erroneously created by make from ./install.sh. 1146# ./install, which can be erroneously created by make from ./install.sh.
1147echo "$as_me:1147: checking for a BSD compatible install" >&5
572echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1148echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
573echo "configure:574: checking for a BSD compatible install" >&5
574if test -z "$INSTALL"; then 1149if test -z "$INSTALL"; then
575if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1150if test "${ac_cv_path_install+set}" = set; then
576 echo $ac_n "(cached) $ac_c" 1>&6 1151 echo $ECHO_N "(cached) $ECHO_C" >&6
577else 1152else
578 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1153 ac_save_IFS=$IFS; IFS=$ac_path_separator
579 for ac_dir in $PATH; do 1154 for ac_dir in $PATH; do
1155 IFS=$ac_save_IFS
580 # Account for people who put trailing slashes in PATH elements. 1156 # Account for people who put trailing slashes in PATH elements.
581 case "$ac_dir/" in 1157 case $ac_dir/ in
1158 / | ./ | .// | /cC/* \
582 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1159 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1160 | /usr/ucb/* ) ;;
583 *) 1161 *)
584 # OSF1 and SCO ODT 3.0 have their own names for install. 1162 # OSF1 and SCO ODT 3.0 have their own names for install.
585 # Don't use installbsd from OSF since it installs stuff as root 1163 # Don't use installbsd from OSF since it installs stuff as root
586 # by default. 1164 # by default.
587 for ac_prog in ginstall scoinst install; do 1165 for ac_prog in ginstall scoinst install; do
588 if test -f $ac_dir/$ac_prog; then 1166 if $as_executable_p "$ac_dir/$ac_prog"; then
589 if test $ac_prog = install && 1167 if test $ac_prog = install &&
590 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1168 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
591 # AIX install. It has an incompatible calling convention. 1169 # AIX install. It has an incompatible calling convention.
1170 :
1171 elif test $ac_prog = install &&
1172 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1173 # program-specific install script used by HP pwplus--don't use.
592 : 1174 :
593 else 1175 else
594 ac_cv_path_install="$ac_dir/$ac_prog -c" 1176 ac_cv_path_install="$ac_dir/$ac_prog -c"
595 break 2 1177 break 2
596 fi 1178 fi
597 fi 1179 fi
598 done 1180 done
599 ;; 1181 ;;
600 esac 1182 esac
601 done 1183 done
602 IFS="$ac_save_IFS"
603 1184
604fi 1185fi
605 if test "${ac_cv_path_install+set}" = set; then 1186 if test "${ac_cv_path_install+set}" = set; then
606 INSTALL="$ac_cv_path_install" 1187 INSTALL=$ac_cv_path_install
607 else 1188 else
608 # As a last resort, use the slow shell script. We don't cache a 1189 # As a last resort, use the slow shell script. We don't cache a
609 # path for INSTALL within a source directory, because that will 1190 # path for INSTALL within a source directory, because that will
610 # break other packages using the cache if that directory is 1191 # break other packages using the cache if that directory is
611 # removed, or if the path is relative. 1192 # removed, or if the path is relative.
612 INSTALL="$ac_install_sh" 1193 INSTALL=$ac_install_sh
613 fi 1194 fi
614fi 1195fi
1196echo "$as_me:1196: result: $INSTALL" >&5
615echo "$ac_t""$INSTALL" 1>&6 1197echo "${ECHO_T}$INSTALL" >&6
616 1198
617# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1199# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
618# It thinks the first close brace ends the variable substitution. 1200# It thinks the first close brace ends the variable substitution.
619test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1201test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
620 1202
621test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1203test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
622 1204
623test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1205test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
624 1206
625echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
626echo "configure:627: checking whether build environment is sane" >&5 1207echo "$as_me:1207: checking whether build environment is sane" >&5
1208echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
627# Just in case 1209# Just in case
628sleep 1 1210sleep 1
629echo timestamp > conftestfile 1211echo timestamp > conftestfile
630# Do `set' in a subshell so we don't clobber the current shell's 1212# Do `set' in a subshell so we don't clobber the current shell's
631# arguments. Must try -L first in case configure is actually a 1213# arguments. Must try -L first in case configure is actually a
643 1225
644 # If neither matched, then we have a broken ls. This can happen 1226 # If neither matched, then we have a broken ls. This can happen
645 # if, for instance, CONFIG_SHELL is bash and it inherits a 1227 # if, for instance, CONFIG_SHELL is bash and it inherits a
646 # broken ls alias from the environment. This has actually 1228 # broken ls alias from the environment. This has actually
647 # happened. Such a system could not be considered "sane". 1229 # happened. Such a system could not be considered "sane".
648 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 1230 { { echo "$as_me:1230: error: ls -t appears to fail. Make sure there is not a broken
1231alias in your environment" >&5
1232echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
649alias in your environment" 1>&2; exit 1; } 1233alias in your environment" >&2;}
1234 { (exit 1); exit 1; }; }
650 fi 1235 fi
651 1236
652 test "$2" = conftestfile 1237 test "$2" = conftestfile
653 ) 1238 )
654then 1239then
655 # Ok. 1240 # Ok.
656 : 1241 :
657else 1242else
1243 { { echo "$as_me:1243: error: newly created file is older than distributed files!
1244Check your system clock" >&5
658 { echo "configure: error: newly created file is older than distributed files! 1245echo "$as_me: error: newly created file is older than distributed files!
659Check your system clock" 1>&2; exit 1; } 1246Check your system clock" >&2;}
1247 { (exit 1); exit 1; }; }
660fi 1248fi
661rm -f conftest* 1249rm -f conftest*
662echo "$ac_t""yes" 1>&6 1250echo "$as_me:1250: result: yes" >&5
1251echo "${ECHO_T}yes" >&6
663if test "$program_transform_name" = s,x,x,; then 1252if test "$program_transform_name" = s,x,x,; then
664 program_transform_name= 1253 program_transform_name=
665else 1254else
666 # Double any \ or $. echo might interpret backslashes. 1255 # Double any \ or $. echo might interpret backslashes.
667 cat <<\EOF_SED > conftestsed 1256 cat <<\EOF >conftest.sed
668s,\\,\\\\,g; s,\$,$$,g 1257s,\\,\\\\,g; s,\$,$$,g
669EOF_SED 1258EOF
670 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 1259 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
671 rm -f conftestsed 1260 rm -f conftest.sed
672fi 1261fi
673test "$program_prefix" != NONE && 1262test "$program_prefix" != NONE &&
674 program_transform_name="s,^,${program_prefix},; $program_transform_name" 1263 program_transform_name="s,^,${program_prefix},;$program_transform_name"
675# Use a double $ so make ignores it. 1264# Use a double $ so make ignores it.
676test "$program_suffix" != NONE && 1265test "$program_suffix" != NONE &&
677 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 1266 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
678 1267
679# sed with no file args requires a program. 1268# sed with no file args requires a program.
680test "$program_transform_name" = "" && program_transform_name="s,x,x," 1269test -z "$program_transform_name" && program_transform_name="s,x,x,"
681 1270
1271echo "$as_me:1271: checking whether ${MAKE-make} sets \${MAKE}" >&5
682echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1272echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
683echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5
684set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1273set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
685if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1274if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6 1275 echo $ECHO_N "(cached) $ECHO_C" >&6
687else 1276else
688 cat > conftestmake <<\EOF 1277 cat >conftest.make <<\EOF
689all: 1278all:
690 @echo 'ac_maketemp="${MAKE}"' 1279 @echo 'ac_maketemp="${MAKE}"'
691EOF 1280EOF
692# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1281# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
693eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1282eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
694if test -n "$ac_maketemp"; then 1283if test -n "$ac_maketemp"; then
695 eval ac_cv_prog_make_${ac_make}_set=yes 1284 eval ac_cv_prog_make_${ac_make}_set=yes
696else 1285else
697 eval ac_cv_prog_make_${ac_make}_set=no 1286 eval ac_cv_prog_make_${ac_make}_set=no
698fi 1287fi
699rm -f conftestmake 1288rm -f conftest.make
700fi 1289fi
701if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1290if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
702 echo "$ac_t""yes" 1>&6 1291 echo "$as_me:1291: result: yes" >&5
1292echo "${ECHO_T}yes" >&6
703 SET_MAKE= 1293 SET_MAKE=
704else 1294else
705 echo "$ac_t""no" 1>&6 1295 echo "$as_me:1295: result: no" >&5
1296echo "${ECHO_T}no" >&6
706 SET_MAKE="MAKE=${MAKE-make}" 1297 SET_MAKE="MAKE=${MAKE-make}"
707fi 1298fi
708 1299
709
710PACKAGE=psiconv 1300PACKAGE=psiconv
711 1301
712VERSION=0.5.0 1302VERSION=0.8.1
713 1303
714if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1304if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1305 { { echo "$as_me:1305: error: source directory already configured; run \"make distclean\" there first" >&5
715 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 1306echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1307 { (exit 1); exit 1; }; }
716fi 1308fi
1309
717cat >> confdefs.h <<EOF 1310cat >>confdefs.h <<EOF
718#define PACKAGE "$PACKAGE" 1311#define PACKAGE "$PACKAGE"
719EOF 1312EOF
720 1313
721cat >> confdefs.h <<EOF 1314cat >>confdefs.h <<EOF
722#define VERSION "$VERSION" 1315#define VERSION "$VERSION"
723EOF 1316EOF
724 1317
725
726
727missing_dir=`cd $ac_aux_dir && pwd` 1318missing_dir=`cd $ac_aux_dir && pwd`
1319echo "$as_me:1319: checking for working aclocal" >&5
728echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 1320echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
729echo "configure:730: checking for working aclocal" >&5
730# Run test in a subshell; some versions of sh will print an error if 1321# Run test in a subshell; some versions of sh will print an error if
731# an executable is not found, even if stderr is redirected. 1322# an executable is not found, even if stderr is redirected.
732# Redirect stdin to placate older versions of autoconf. Sigh. 1323# Redirect stdin to placate older versions of autoconf. Sigh.
733if (aclocal --version) < /dev/null > /dev/null 2>&1; then 1324if (aclocal --version) < /dev/null > /dev/null 2>&1; then
734 ACLOCAL=aclocal 1325 ACLOCAL=aclocal
735 echo "$ac_t""found" 1>&6 1326 echo "$as_me:1326: result: found" >&5
1327echo "${ECHO_T}found" >&6
736else 1328else
737 ACLOCAL="$missing_dir/missing aclocal" 1329 ACLOCAL="$missing_dir/missing aclocal"
738 echo "$ac_t""missing" 1>&6 1330 echo "$as_me:1330: result: missing" >&5
1331echo "${ECHO_T}missing" >&6
739fi 1332fi
740 1333
1334echo "$as_me:1334: checking for working autoconf" >&5
741echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 1335echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
742echo "configure:743: checking for working autoconf" >&5
743# Run test in a subshell; some versions of sh will print an error if 1336# Run test in a subshell; some versions of sh will print an error if
744# an executable is not found, even if stderr is redirected. 1337# an executable is not found, even if stderr is redirected.
745# Redirect stdin to placate older versions of autoconf. Sigh. 1338# Redirect stdin to placate older versions of autoconf. Sigh.
746if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1339if (autoconf --version) < /dev/null > /dev/null 2>&1; then
747 AUTOCONF=autoconf 1340 AUTOCONF=autoconf
748 echo "$ac_t""found" 1>&6 1341 echo "$as_me:1341: result: found" >&5
1342echo "${ECHO_T}found" >&6
749else 1343else
750 AUTOCONF="$missing_dir/missing autoconf" 1344 AUTOCONF="$missing_dir/missing autoconf"
751 echo "$ac_t""missing" 1>&6 1345 echo "$as_me:1345: result: missing" >&5
1346echo "${ECHO_T}missing" >&6
752fi 1347fi
753 1348
1349echo "$as_me:1349: checking for working automake" >&5
754echo $ac_n "checking for working automake""... $ac_c" 1>&6 1350echo $ECHO_N "checking for working automake... $ECHO_C" >&6
755echo "configure:756: checking for working automake" >&5
756# Run test in a subshell; some versions of sh will print an error if 1351# Run test in a subshell; some versions of sh will print an error if
757# an executable is not found, even if stderr is redirected. 1352# an executable is not found, even if stderr is redirected.
758# Redirect stdin to placate older versions of autoconf. Sigh. 1353# Redirect stdin to placate older versions of autoconf. Sigh.
759if (automake --version) < /dev/null > /dev/null 2>&1; then 1354if (automake --version) < /dev/null > /dev/null 2>&1; then
760 AUTOMAKE=automake 1355 AUTOMAKE=automake
761 echo "$ac_t""found" 1>&6 1356 echo "$as_me:1356: result: found" >&5
1357echo "${ECHO_T}found" >&6
762else 1358else
763 AUTOMAKE="$missing_dir/missing automake" 1359 AUTOMAKE="$missing_dir/missing automake"
764 echo "$ac_t""missing" 1>&6 1360 echo "$as_me:1360: result: missing" >&5
1361echo "${ECHO_T}missing" >&6
765fi 1362fi
766 1363
1364echo "$as_me:1364: checking for working autoheader" >&5
767echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 1365echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
768echo "configure:769: checking for working autoheader" >&5
769# Run test in a subshell; some versions of sh will print an error if 1366# Run test in a subshell; some versions of sh will print an error if
770# an executable is not found, even if stderr is redirected. 1367# an executable is not found, even if stderr is redirected.
771# Redirect stdin to placate older versions of autoconf. Sigh. 1368# Redirect stdin to placate older versions of autoconf. Sigh.
772if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1369if (autoheader --version) < /dev/null > /dev/null 2>&1; then
773 AUTOHEADER=autoheader 1370 AUTOHEADER=autoheader
774 echo "$ac_t""found" 1>&6 1371 echo "$as_me:1371: result: found" >&5
1372echo "${ECHO_T}found" >&6
775else 1373else
776 AUTOHEADER="$missing_dir/missing autoheader" 1374 AUTOHEADER="$missing_dir/missing autoheader"
777 echo "$ac_t""missing" 1>&6 1375 echo "$as_me:1375: result: missing" >&5
1376echo "${ECHO_T}missing" >&6
778fi 1377fi
779 1378
1379echo "$as_me:1379: checking for working makeinfo" >&5
780echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 1380echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
781echo "configure:782: checking for working makeinfo" >&5
782# Run test in a subshell; some versions of sh will print an error if 1381# Run test in a subshell; some versions of sh will print an error if
783# an executable is not found, even if stderr is redirected. 1382# an executable is not found, even if stderr is redirected.
784# Redirect stdin to placate older versions of autoconf. Sigh. 1383# Redirect stdin to placate older versions of autoconf. Sigh.
785if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1384if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
786 MAKEINFO=makeinfo 1385 MAKEINFO=makeinfo
787 echo "$ac_t""found" 1>&6 1386 echo "$as_me:1386: result: found" >&5
1387echo "${ECHO_T}found" >&6
788else 1388else
789 MAKEINFO="$missing_dir/missing makeinfo" 1389 MAKEINFO="$missing_dir/missing makeinfo"
790 echo "$ac_t""missing" 1>&6 1390 echo "$as_me:1390: result: missing" >&5
1391echo "${ECHO_T}missing" >&6
791fi 1392fi
792 1393
1394ac_config_headers="$ac_config_headers config.h"
793 1395
794 1396ac_config_commands="$ac_config_commands default-1"
795
796
797
798 1397
799# Check whether --enable-shared or --disable-shared was given. 1398# Check whether --enable-shared or --disable-shared was given.
800if test "${enable_shared+set}" = set; then 1399if test "${enable_shared+set}" = set; then
801 enableval="$enable_shared" 1400 enableval="$enable_shared"
802 p=${PACKAGE-default} 1401 p=${PACKAGE-default}
803case "$enableval" in 1402case $enableval in
804yes) enable_shared=yes ;; 1403yes) enable_shared=yes ;;
805no) enable_shared=no ;; 1404no) enable_shared=no ;;
806*) 1405*)
807 enable_shared=no 1406 enable_shared=no
808 # Look at the argument we got. We use all the common list separators. 1407 # Look at the argument we got. We use all the common list separators.
815 IFS="$ac_save_ifs" 1414 IFS="$ac_save_ifs"
816 ;; 1415 ;;
817esac 1416esac
818else 1417else
819 enable_shared=yes 1418 enable_shared=yes
820fi 1419fi;
821
822# Check whether --enable-static or --disable-static was given. 1420# Check whether --enable-static or --disable-static was given.
823if test "${enable_static+set}" = set; then 1421if test "${enable_static+set}" = set; then
824 enableval="$enable_static" 1422 enableval="$enable_static"
825 p=${PACKAGE-default} 1423 p=${PACKAGE-default}
826case "$enableval" in 1424case $enableval in
827yes) enable_static=yes ;; 1425yes) enable_static=yes ;;
828no) enable_static=no ;; 1426no) enable_static=no ;;
829*) 1427*)
830 enable_static=no 1428 enable_static=no
831 # Look at the argument we got. We use all the common list separators. 1429 # Look at the argument we got. We use all the common list separators.
838 IFS="$ac_save_ifs" 1436 IFS="$ac_save_ifs"
839 ;; 1437 ;;
840esac 1438esac
841else 1439else
842 enable_static=yes 1440 enable_static=yes
843fi 1441fi;
844
845# Check whether --enable-fast-install or --disable-fast-install was given. 1442# Check whether --enable-fast-install or --disable-fast-install was given.
846if test "${enable_fast_install+set}" = set; then 1443if test "${enable_fast_install+set}" = set; then
847 enableval="$enable_fast_install" 1444 enableval="$enable_fast_install"
848 p=${PACKAGE-default} 1445 p=${PACKAGE-default}
849case "$enableval" in 1446case $enableval in
850yes) enable_fast_install=yes ;; 1447yes) enable_fast_install=yes ;;
851no) enable_fast_install=no ;; 1448no) enable_fast_install=no ;;
852*) 1449*)
853 enable_fast_install=no 1450 enable_fast_install=no
854 # Look at the argument we got. We use all the common list separators. 1451 # Look at the argument we got. We use all the common list separators.
861 IFS="$ac_save_ifs" 1458 IFS="$ac_save_ifs"
862 ;; 1459 ;;
863esac 1460esac
864else 1461else
865 enable_fast_install=yes 1462 enable_fast_install=yes
866fi 1463fi;
867
868
869# Make sure we can run config.sub. 1464# Make sure we can run config.sub.
870if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 1465$ac_config_sub sun4 >/dev/null 2>&1 ||
1466 { { echo "$as_me:1466: error: cannot run $ac_config_sub" >&5
871else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 1467echo "$as_me: error: cannot run $ac_config_sub" >&2;}
872fi 1468 { (exit 1); exit 1; }; }
873 1469
874echo $ac_n "checking host system type""... $ac_c" 1>&6 1470echo "$as_me:1470: checking build system type" >&5
875echo "configure:876: checking host system type" >&5
876
877host_alias=$host
878case "$host_alias" in
879NONE)
880 case $nonopt in
881 NONE)
882 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
883 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
884 fi ;;
885 *) host_alias=$nonopt ;;
886 esac ;;
887esac
888
889host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
890host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
891host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
892host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893echo "$ac_t""$host" 1>&6
894
895echo $ac_n "checking build system type""... $ac_c" 1>&6 1471echo $ECHO_N "checking build system type... $ECHO_C" >&6
896echo "configure:897: checking build system type" >&5 1472if test "${ac_cv_build+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474else
1475 ac_cv_build_alias=$build_alias
1476test -z "$ac_cv_build_alias" &&
1477 ac_cv_build_alias=`$ac_config_guess`
1478test -z "$ac_cv_build_alias" &&
1479 { { echo "$as_me:1479: error: cannot guess build type; you must specify one" >&5
1480echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1481 { (exit 1); exit 1; }; }
1482ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1483 { { echo "$as_me:1483: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1484echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1485 { (exit 1); exit 1; }; }
897 1486
898build_alias=$build 1487fi
899case "$build_alias" in 1488echo "$as_me:1488: result: $ac_cv_build" >&5
900NONE) 1489echo "${ECHO_T}$ac_cv_build" >&6
901 case $nonopt in 1490build=$ac_cv_build
902 NONE) build_alias=$host_alias ;;
903 *) build_alias=$nonopt ;;
904 esac ;;
905esac
906
907build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
908build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1491build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1492build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1493build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
911echo "$ac_t""$build" 1>&6
912 1494
913# Extract the first word of "ranlib", so it can be a program name with args. 1495echo "$as_me:1495: checking host system type" >&5
914set dummy ranlib; ac_word=$2 1496echo $ECHO_N "checking host system type... $ECHO_C" >&6
915echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1497if test "${ac_cv_host+set}" = set; then
916echo "configure:917: checking for $ac_word" >&5
917if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
918 echo $ac_n "(cached) $ac_c" 1>&6 1498 echo $ECHO_N "(cached) $ECHO_C" >&6
919else 1499else
920 if test -n "$RANLIB"; then 1500 ac_cv_host_alias=$host_alias
921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1501test -z "$ac_cv_host_alias" &&
922else 1502 ac_cv_host_alias=$ac_cv_build_alias
923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1503ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
924 ac_dummy="$PATH" 1504 { { echo "$as_me:1504: error: $ac_config_sub $ac_cv_host_alias failed" >&5
925 for ac_dir in $ac_dummy; do 1505echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
926 test -z "$ac_dir" && ac_dir=. 1506 { (exit 1); exit 1; }; }
927 if test -f $ac_dir/$ac_word; then
928 ac_cv_prog_RANLIB="ranlib"
929 break
930 fi
931 done
932 IFS="$ac_save_ifs"
933 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
934fi
935fi
936RANLIB="$ac_cv_prog_RANLIB"
937if test -n "$RANLIB"; then
938 echo "$ac_t""$RANLIB" 1>&6
939else
940 echo "$ac_t""no" 1>&6
941fi
942 1507
1508fi
1509echo "$as_me:1509: result: $ac_cv_host" >&5
1510echo "${ECHO_T}$ac_cv_host" >&6
1511host=$ac_cv_host
1512host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1513host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1514host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521if test -n "$ac_tool_prefix"; then
943# Extract the first word of "gcc", so it can be a program name with args. 1522 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
944set dummy gcc; ac_word=$2 1523set dummy ${ac_tool_prefix}gcc; ac_word=$2
1524echo "$as_me:1524: checking for $ac_word" >&5
945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
946echo "configure:947: checking for $ac_word" >&5
947if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1526if test "${ac_cv_prog_CC+set}" = set; then
948 echo $ac_n "(cached) $ac_c" 1>&6 1527 echo $ECHO_N "(cached) $ECHO_C" >&6
949else 1528else
950 if test -n "$CC"; then 1529 if test -n "$CC"; then
951 ac_cv_prog_CC="$CC" # Let the user override the test. 1530 ac_cv_prog_CC="$CC" # Let the user override the test.
952else 1531else
953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1532 ac_save_IFS=$IFS; IFS=$ac_path_separator
954 ac_dummy="$PATH" 1533ac_dummy="$PATH"
955 for ac_dir in $ac_dummy; do 1534for ac_dir in $ac_dummy; do
1535 IFS=$ac_save_IFS
956 test -z "$ac_dir" && ac_dir=. 1536 test -z "$ac_dir" && ac_dir=.
957 if test -f $ac_dir/$ac_word; then 1537 $as_executable_p "$ac_dir/$ac_word" || continue
958 ac_cv_prog_CC="gcc" 1538ac_cv_prog_CC="${ac_tool_prefix}gcc"
959 break 1539echo "$as_me:1539: found $ac_dir/$ac_word" >&5
960 fi 1540break
961 done 1541done
962 IFS="$ac_save_ifs" 1542
963fi 1543fi
964fi 1544fi
965CC="$ac_cv_prog_CC" 1545CC=$ac_cv_prog_CC
966if test -n "$CC"; then 1546if test -n "$CC"; then
967 echo "$ac_t""$CC" 1>&6 1547 echo "$as_me:1547: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
968else 1549else
969 echo "$ac_t""no" 1>&6 1550 echo "$as_me:1550: result: no" >&5
1551echo "${ECHO_T}no" >&6
970fi 1552fi
971 1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "gcc", so it can be a program name with args.
1558set dummy gcc; ac_word=$2
1559echo "$as_me:1559: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567 ac_save_IFS=$IFS; IFS=$ac_path_separator
1568ac_dummy="$PATH"
1569for ac_dir in $ac_dummy; do
1570 IFS=$ac_save_IFS
1571 test -z "$ac_dir" && ac_dir=.
1572 $as_executable_p "$ac_dir/$ac_word" || continue
1573ac_cv_prog_ac_ct_CC="gcc"
1574echo "$as_me:1574: found $ac_dir/$ac_word" >&5
1575break
1576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
1582 echo "$as_me:1582: result: $ac_ct_CC" >&5
1583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
1585 echo "$as_me:1585: result: no" >&5
1586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
1592fi
1593
1594if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597set dummy ${ac_tool_prefix}cc; ac_word=$2
1598echo "$as_me:1598: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
1606 ac_save_IFS=$IFS; IFS=$ac_path_separator
1607ac_dummy="$PATH"
1608for ac_dir in $ac_dummy; do
1609 IFS=$ac_save_IFS
1610 test -z "$ac_dir" && ac_dir=.
1611 $as_executable_p "$ac_dir/$ac_word" || continue
1612ac_cv_prog_CC="${ac_tool_prefix}cc"
1613echo "$as_me:1613: found $ac_dir/$ac_word" >&5
1614break
1615done
1616
1617fi
1618fi
1619CC=$ac_cv_prog_CC
1620if test -n "$CC"; then
1621 echo "$as_me:1621: result: $CC" >&5
1622echo "${ECHO_T}$CC" >&6
1623else
1624 echo "$as_me:1624: result: no" >&5
1625echo "${ECHO_T}no" >&6
1626fi
1627
1628fi
1629if test -z "$ac_cv_prog_CC"; then
1630 ac_ct_CC=$CC
1631 # Extract the first word of "cc", so it can be a program name with args.
1632set dummy cc; ac_word=$2
1633echo "$as_me:1633: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1640else
1641 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642ac_dummy="$PATH"
1643for ac_dir in $ac_dummy; do
1644 IFS=$ac_save_IFS
1645 test -z "$ac_dir" && ac_dir=.
1646 $as_executable_p "$ac_dir/$ac_word" || continue
1647ac_cv_prog_ac_ct_CC="cc"
1648echo "$as_me:1648: found $ac_dir/$ac_word" >&5
1649break
1650done
1651
1652fi
1653fi
1654ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655if test -n "$ac_ct_CC"; then
1656 echo "$as_me:1656: result: $ac_ct_CC" >&5
1657echo "${ECHO_T}$ac_ct_CC" >&6
1658else
1659 echo "$as_me:1659: result: no" >&5
1660echo "${ECHO_T}no" >&6
1661fi
1662
1663 CC=$ac_ct_CC
1664else
1665 CC="$ac_cv_prog_CC"
1666fi
1667
1668fi
972if test -z "$CC"; then 1669if test -z "$CC"; then
973 # Extract the first word of "cc", so it can be a program name with args. 1670 # Extract the first word of "cc", so it can be a program name with args.
974set dummy cc; ac_word=$2 1671set dummy cc; ac_word=$2
1672echo "$as_me:1672: checking for $ac_word" >&5
975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
976echo "configure:977: checking for $ac_word" >&5
977if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1674if test "${ac_cv_prog_CC+set}" = set; then
978 echo $ac_n "(cached) $ac_c" 1>&6 1675 echo $ECHO_N "(cached) $ECHO_C" >&6
979else 1676else
980 if test -n "$CC"; then 1677 if test -n "$CC"; then
981 ac_cv_prog_CC="$CC" # Let the user override the test. 1678 ac_cv_prog_CC="$CC" # Let the user override the test.
982else 1679else
983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
984 ac_prog_rejected=no 1680 ac_prog_rejected=no
1681 ac_save_IFS=$IFS; IFS=$ac_path_separator
985 ac_dummy="$PATH" 1682ac_dummy="$PATH"
986 for ac_dir in $ac_dummy; do 1683for ac_dir in $ac_dummy; do
1684 IFS=$ac_save_IFS
987 test -z "$ac_dir" && ac_dir=. 1685 test -z "$ac_dir" && ac_dir=.
988 if test -f $ac_dir/$ac_word; then 1686 $as_executable_p "$ac_dir/$ac_word" || continue
989 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1687if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
990 ac_prog_rejected=yes 1688 ac_prog_rejected=yes
991 continue 1689 continue
992 fi 1690fi
993 ac_cv_prog_CC="cc" 1691ac_cv_prog_CC="cc"
994 break 1692echo "$as_me:1692: found $ac_dir/$ac_word" >&5
995 fi 1693break
996 done 1694done
997 IFS="$ac_save_ifs" 1695
998if test $ac_prog_rejected = yes; then 1696if test $ac_prog_rejected = yes; then
999 # We found a bogon in the path, so make sure we never use it. 1697 # We found a bogon in the path, so make sure we never use it.
1000 set dummy $ac_cv_prog_CC 1698 set dummy $ac_cv_prog_CC
1001 shift 1699 shift
1002 if test $# -gt 0; then 1700 if test $# != 0; then
1003 # We chose a different compiler from the bogus one. 1701 # We chose a different compiler from the bogus one.
1004 # However, it has the same basename, so the bogon will be chosen 1702 # However, it has the same basename, so the bogon will be chosen
1005 # first if we set CC to just the basename; use the full file name. 1703 # first if we set CC to just the basename; use the full file name.
1006 shift 1704 shift
1007 set dummy "$ac_dir/$ac_word" "$@" 1705 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1008 shift 1706 shift
1009 ac_cv_prog_CC="$@" 1707 ac_cv_prog_CC="$@"
1010 fi 1708 fi
1011fi 1709fi
1012fi 1710fi
1013fi 1711fi
1014CC="$ac_cv_prog_CC" 1712CC=$ac_cv_prog_CC
1015if test -n "$CC"; then 1713if test -n "$CC"; then
1016 echo "$ac_t""$CC" 1>&6 1714 echo "$as_me:1714: result: $CC" >&5
1715echo "${ECHO_T}$CC" >&6
1017else 1716else
1018 echo "$ac_t""no" 1>&6 1717 echo "$as_me:1717: result: no" >&5
1718echo "${ECHO_T}no" >&6
1019fi 1719fi
1020 1720
1721fi
1021 if test -z "$CC"; then 1722if test -z "$CC"; then
1022 case "`uname -s`" in 1723 if test -n "$ac_tool_prefix"; then
1023 *win32* | *WIN32*) 1724 for ac_prog in cl
1725 do
1024 # Extract the first word of "cl", so it can be a program name with args. 1726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1025set dummy cl; ac_word=$2 1727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1026echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027echo "configure:1028: checking for $ac_word" >&5 1728echo "$as_me:1728: checking for $ac_word" >&5
1729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1028if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1730if test "${ac_cv_prog_CC+set}" = set; then
1029 echo $ac_n "(cached) $ac_c" 1>&6 1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1030else 1732else
1031 if test -n "$CC"; then 1733 if test -n "$CC"; then
1032 ac_cv_prog_CC="$CC" # Let the user override the test. 1734 ac_cv_prog_CC="$CC" # Let the user override the test.
1033else 1735else
1034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1736 ac_save_IFS=$IFS; IFS=$ac_path_separator
1035 ac_dummy="$PATH" 1737ac_dummy="$PATH"
1036 for ac_dir in $ac_dummy; do 1738for ac_dir in $ac_dummy; do
1739 IFS=$ac_save_IFS
1037 test -z "$ac_dir" && ac_dir=. 1740 test -z "$ac_dir" && ac_dir=.
1038 if test -f $ac_dir/$ac_word; then 1741 $as_executable_p "$ac_dir/$ac_word" || continue
1039 ac_cv_prog_CC="cl" 1742ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1743echo "$as_me:1743: found $ac_dir/$ac_word" >&5
1744break
1745done
1746
1747fi
1748fi
1749CC=$ac_cv_prog_CC
1750if test -n "$CC"; then
1751 echo "$as_me:1751: result: $CC" >&5
1752echo "${ECHO_T}$CC" >&6
1753else
1754 echo "$as_me:1754: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758 test -n "$CC" && break
1759 done
1760fi
1761if test -z "$CC"; then
1762 ac_ct_CC=$CC
1763 for ac_prog in cl
1764do
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766set dummy $ac_prog; ac_word=$2
1767echo "$as_me:1767: checking for $ac_word" >&5
1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1771else
1772 if test -n "$ac_ct_CC"; then
1773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1774else
1775 ac_save_IFS=$IFS; IFS=$ac_path_separator
1776ac_dummy="$PATH"
1777for ac_dir in $ac_dummy; do
1778 IFS=$ac_save_IFS
1779 test -z "$ac_dir" && ac_dir=.
1780 $as_executable_p "$ac_dir/$ac_word" || continue
1781ac_cv_prog_ac_ct_CC="$ac_prog"
1782echo "$as_me:1782: found $ac_dir/$ac_word" >&5
1783break
1784done
1785
1786fi
1787fi
1788ac_ct_CC=$ac_cv_prog_ac_ct_CC
1789if test -n "$ac_ct_CC"; then
1790 echo "$as_me:1790: result: $ac_ct_CC" >&5
1791echo "${ECHO_T}$ac_ct_CC" >&6
1792else
1793 echo "$as_me:1793: result: no" >&5
1794echo "${ECHO_T}no" >&6
1795fi
1796
1797 test -n "$ac_ct_CC" && break
1798done
1799
1800 CC=$ac_ct_CC
1801fi
1802
1803fi
1804
1805test -z "$CC" && { { echo "$as_me:1805: error: no acceptable cc found in \$PATH" >&5
1806echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1807 { (exit 1); exit 1; }; }
1808
1809cat >conftest.$ac_ext <<_ACEOF
1810#line 1810 "configure"
1811#include "confdefs.h"
1812
1813int
1814main ()
1815{
1816
1817 ;
1818 return 0;
1819}
1820_ACEOF
1821ac_clean_files_save=$ac_clean_files
1822ac_clean_files="$ac_clean_files a.out a.exe"
1823# Try to create an executable without -o first, disregard a.out.
1824# It will help us diagnose broken compiler, and finding out an intuition
1825# of exeext.
1826echo "$as_me:1826: checking for C compiler default output" >&5
1827echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1828ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1829if { (eval echo "$as_me:1829: \"$ac_link_default\"") >&5
1830 (eval $ac_link_default) 2>&5
1831 ac_status=$?
1832 echo "$as_me:1832: \$? = $ac_status" >&5
1833 (exit $ac_status); }; then
1834 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1835 case $ac_file in
1836 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1837 a.out ) # We found the default executable, but exeext='' is most
1838 # certainly right.
1839 break;;
1840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1841 export ac_cv_exeext
1040 break 1842 break;;
1843 * ) break;;
1844 esac
1845done
1846else
1847 echo "$as_me: failed program was:" >&5
1848cat conftest.$ac_ext >&5
1849{ { echo "$as_me:1849: error: C compiler cannot create executables" >&5
1850echo "$as_me: error: C compiler cannot create executables" >&2;}
1851 { (exit 77); exit 77; }; }
1852fi
1853
1854ac_exeext=$ac_cv_exeext
1855echo "$as_me:1855: result: $ac_file" >&5
1856echo "${ECHO_T}$ac_file" >&6
1857
1858# Check the compiler produces executables we can run. If not, either
1859# the compiler is broken, or we cross compile.
1860echo "$as_me:1860: checking whether the C compiler works" >&5
1861echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1862# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1863# If not cross compiling, check that we can run a simple program.
1864if test "$cross_compiling" != yes; then
1865 if { ac_try='./$ac_file'
1866 { (eval echo "$as_me:1866: \"$ac_try\"") >&5
1867 (eval $ac_try) 2>&5
1868 ac_status=$?
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); }; }; then
1871 cross_compiling=no
1872 else
1873 if test "$cross_compiling" = maybe; then
1874 cross_compiling=yes
1875 else
1876 { { echo "$as_me:1876: error: cannot run C compiled programs.
1877If you meant to cross compile, use \`--host'." >&5
1878echo "$as_me: error: cannot run C compiled programs.
1879If you meant to cross compile, use \`--host'." >&2;}
1880 { (exit 1); exit 1; }; }
1041 fi 1881 fi
1042 done
1043 IFS="$ac_save_ifs"
1044fi
1045fi
1046CC="$ac_cv_prog_CC"
1047if test -n "$CC"; then
1048 echo "$ac_t""$CC" 1>&6
1049else
1050 echo "$ac_t""no" 1>&6
1051fi
1052 ;;
1053 esac
1054 fi 1882 fi
1055 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056fi 1883fi
1884echo "$as_me:1884: result: yes" >&5
1885echo "${ECHO_T}yes" >&6
1057 1886
1058echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1887rm -f a.out a.exe conftest$ac_cv_exeext
1059echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1888ac_clean_files=$ac_clean_files_save
1889# Check the compiler produces executables we can run. If not, either
1890# the compiler is broken, or we cross compile.
1891echo "$as_me:1891: checking whether we are cross compiling" >&5
1892echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1893echo "$as_me:1893: result: $cross_compiling" >&5
1894echo "${ECHO_T}$cross_compiling" >&6
1060 1895
1061ac_ext=c 1896echo "$as_me:1896: checking for executable suffix" >&5
1062# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1897echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1063ac_cpp='$CPP $CPPFLAGS' 1898if { (eval echo "$as_me:1898: \"$ac_link\"") >&5
1064ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1899 (eval $ac_link) 2>&5
1065ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1900 ac_status=$?
1066cross_compiling=$ac_cv_prog_cc_cross 1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1904# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1905# work properly (i.e., refer to `conftest.exe'), while it won't with
1906# `rm'.
1907for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1908 case $ac_file in
1909 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1911 export ac_cv_exeext
1912 break;;
1913 * ) break;;
1914 esac
1915done
1916else
1917 { { echo "$as_me:1917: error: cannot compute EXEEXT: cannot compile and link" >&5
1918echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1919 { (exit 1); exit 1; }; }
1920fi
1067 1921
1922rm -f conftest$ac_cv_exeext
1923echo "$as_me:1923: result: $ac_cv_exeext" >&5
1924echo "${ECHO_T}$ac_cv_exeext" >&6
1925
1926rm -f conftest.$ac_ext
1927EXEEXT=$ac_cv_exeext
1928ac_exeext=$EXEEXT
1929echo "$as_me:1929: checking for object suffix" >&5
1930echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1931if test "${ac_cv_objext+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1068cat > conftest.$ac_ext << EOF 1934 cat >conftest.$ac_ext <<_ACEOF
1069
1070#line 1071 "configure" 1935#line 1935 "configure"
1071#include "confdefs.h" 1936#include "confdefs.h"
1072 1937
1073main(){return(0);} 1938int
1074EOF 1939main ()
1075if { (eval echo configure:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1940{
1076 ac_cv_prog_cc_works=yes 1941
1077 # If we can't run a trivial program, we are probably using a cross compiler. 1942 ;
1078 if (./conftest; exit) 2>/dev/null; then 1943 return 0;
1079 ac_cv_prog_cc_cross=no 1944}
1945_ACEOF
1946rm -f conftest.o conftest.obj
1947if { (eval echo "$as_me:1947: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1949 ac_status=$?
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); }; then
1952 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1953 case $ac_file in
1954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1956 break;;
1957 esac
1958done
1080 else 1959else
1081 ac_cv_prog_cc_cross=yes
1082 fi
1083else
1084 echo "configure: failed program was:" >&5 1960 echo "$as_me: failed program was:" >&5
1085 cat conftest.$ac_ext >&5 1961cat conftest.$ac_ext >&5
1086 ac_cv_prog_cc_works=no 1962{ { echo "$as_me:1962: error: cannot compute OBJEXT: cannot compile" >&5
1963echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1964 { (exit 1); exit 1; }; }
1087fi 1965fi
1088rm -fr conftest*
1089ac_ext=c
1090# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1091ac_cpp='$CPP $CPPFLAGS'
1092ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1093ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1094cross_compiling=$ac_cv_prog_cc_cross
1095 1966
1096echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1967rm -f conftest.$ac_cv_objext conftest.$ac_ext
1097if test $ac_cv_prog_cc_works = no; then
1098 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1099fi 1968fi
1100echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1969echo "$as_me:1969: result: $ac_cv_objext" >&5
1101echo "configure:1102: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1970echo "${ECHO_T}$ac_cv_objext" >&6
1102echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1971OBJEXT=$ac_cv_objext
1103cross_compiling=$ac_cv_prog_cc_cross 1972ac_objext=$OBJEXT
1104
1105echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1106echo "configure:1107: checking whether we are using GNU C" >&5 1973echo "$as_me:1973: checking whether we are using the GNU C compiler" >&5
1107if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1974echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1975if test "${ac_cv_c_compiler_gnu+set}" = set; then
1108 echo $ac_n "(cached) $ac_c" 1>&6 1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1109else 1977else
1110 cat > conftest.c <<EOF 1978 cat >conftest.$ac_ext <<_ACEOF
1979#line 1979 "configure"
1980#include "confdefs.h"
1981
1982int
1983main ()
1984{
1111#ifdef __GNUC__ 1985#ifndef __GNUC__
1112 yes; 1986 choke me
1113#endif 1987#endif
1114EOF
1115if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1116 ac_cv_prog_gcc=yes
1117else
1118 ac_cv_prog_gcc=no
1119fi
1120fi
1121 1988
1122echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1989 ;
1123 1990 return 0;
1124if test $ac_cv_prog_gcc = yes; then 1991}
1125 GCC=yes 1992_ACEOF
1993rm -f conftest.$ac_objext
1994if { (eval echo "$as_me:1994: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1996 ac_status=$?
1997 echo "$as_me:1997: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:2000: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:2003: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2005 ac_compiler_gnu=yes
1126else 2006else
1127 GCC= 2007 echo "$as_me: failed program was:" >&5
2008cat conftest.$ac_ext >&5
2009ac_compiler_gnu=no
1128fi 2010fi
2011rm -f conftest.$ac_objext conftest.$ac_ext
2012ac_cv_c_compiler_gnu=$ac_compiler_gnu
1129 2013
2014fi
2015echo "$as_me:2015: result: $ac_cv_c_compiler_gnu" >&5
2016echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2017GCC=`test $ac_compiler_gnu = yes && echo yes`
1130ac_test_CFLAGS="${CFLAGS+set}" 2018ac_test_CFLAGS=${CFLAGS+set}
1131ac_save_CFLAGS="$CFLAGS" 2019ac_save_CFLAGS=$CFLAGS
1132CFLAGS= 2020CFLAGS="-g"
2021echo "$as_me:2021: checking whether $CC accepts -g" >&5
1133echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2022echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1134echo "configure:1135: checking whether ${CC-cc} accepts -g" >&5
1135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2023if test "${ac_cv_prog_cc_g+set}" = set; then
1136 echo $ac_n "(cached) $ac_c" 1>&6 2024 echo $ECHO_N "(cached) $ECHO_C" >&6
1137else 2025else
1138 echo 'void f(){}' > conftest.c 2026 cat >conftest.$ac_ext <<_ACEOF
1139if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2027#line 2027 "configure"
2028#include "confdefs.h"
2029
2030int
2031main ()
2032{
2033
2034 ;
2035 return 0;
2036}
2037_ACEOF
2038rm -f conftest.$ac_objext
2039if { (eval echo "$as_me:2039: \"$ac_compile\"") >&5
2040 (eval $ac_compile) 2>&5
2041 ac_status=$?
2042 echo "$as_me:2042: \$? = $ac_status" >&5
2043 (exit $ac_status); } &&
2044 { ac_try='test -s conftest.$ac_objext'
2045 { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
1140 ac_cv_prog_cc_g=yes 2050 ac_cv_prog_cc_g=yes
1141else 2051else
2052 echo "$as_me: failed program was:" >&5
2053cat conftest.$ac_ext >&5
1142 ac_cv_prog_cc_g=no 2054ac_cv_prog_cc_g=no
1143fi 2055fi
1144rm -f conftest* 2056rm -f conftest.$ac_objext conftest.$ac_ext
1145
1146fi 2057fi
1147 2058echo "$as_me:2058: result: $ac_cv_prog_cc_g" >&5
1148echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2059echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1149if test "$ac_test_CFLAGS" = set; then 2060if test "$ac_test_CFLAGS" = set; then
1150 CFLAGS="$ac_save_CFLAGS" 2061 CFLAGS=$ac_save_CFLAGS
1151elif test $ac_cv_prog_cc_g = yes; then 2062elif test $ac_cv_prog_cc_g = yes; then
1152 if test "$GCC" = yes; then 2063 if test "$GCC" = yes; then
1153 CFLAGS="-g -O2" 2064 CFLAGS="-g -O2"
1154 else 2065 else
1155 CFLAGS="-g" 2066 CFLAGS="-g"
1159 CFLAGS="-O2" 2070 CFLAGS="-O2"
1160 else 2071 else
1161 CFLAGS= 2072 CFLAGS=
1162 fi 2073 fi
1163fi 2074fi
2075# Some people use a C++ compiler to compile C. Since we use `exit',
2076# in C++ we need to declare it. In case someone uses the same compiler
2077# for both compiling C and C++ we need to have the C++ compiler decide
2078# the declaration of exit, since it's the most demanding environment.
2079cat >conftest.$ac_ext <<_ACEOF
2080#ifndef __cplusplus
2081 choke me
2082#endif
2083_ACEOF
2084rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:2085: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2087 ac_status=$?
2088 echo "$as_me:2088: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:2091: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2096 for ac_declaration in \
2097 ''\
2098 '#include <stdlib.h>' \
2099 'extern "C" void std::exit (int) throw (); using std::exit;' \
2100 'extern "C" void std::exit (int); using std::exit;' \
2101 'extern "C" void exit (int) throw ();' \
2102 'extern "C" void exit (int);' \
2103 'void exit (int);'
2104do
2105 cat >conftest.$ac_ext <<_ACEOF
2106#line 2106 "configure"
2107#include "confdefs.h"
2108#include <stdlib.h>
2109$ac_declaration
2110int
2111main ()
2112{
2113exit (42);
2114 ;
2115 return 0;
2116}
2117_ACEOF
2118rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:2119: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>&5
2121 ac_status=$?
2122 echo "$as_me:2122: \$? = $ac_status" >&5
2123 (exit $ac_status); } &&
2124 { ac_try='test -s conftest.$ac_objext'
2125 { (eval echo "$as_me:2125: \"$ac_try\"") >&5
2126 (eval $ac_try) 2>&5
2127 ac_status=$?
2128 echo "$as_me:2128: \$? = $ac_status" >&5
2129 (exit $ac_status); }; }; then
2130 :
2131else
2132 echo "$as_me: failed program was:" >&5
2133cat conftest.$ac_ext >&5
2134continue
2135fi
2136rm -f conftest.$ac_objext conftest.$ac_ext
2137 cat >conftest.$ac_ext <<_ACEOF
2138#line 2138 "configure"
2139#include "confdefs.h"
2140$ac_declaration
2141int
2142main ()
2143{
2144exit (42);
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149rm -f conftest.$ac_objext
2150if { (eval echo "$as_me:2150: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>&5
2152 ac_status=$?
2153 echo "$as_me:2153: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:2156: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:2159: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 break
2162else
2163 echo "$as_me: failed program was:" >&5
2164cat conftest.$ac_ext >&5
2165fi
2166rm -f conftest.$ac_objext conftest.$ac_ext
2167done
2168echo '#ifdef __cplusplus' >>confdefs.h
2169echo $ac_declaration >>confdefs.h
2170echo '#endif' >>confdefs.h
2171
2172else
2173 echo "$as_me: failed program was:" >&5
2174cat conftest.$ac_ext >&5
2175fi
2176rm -f conftest.$ac_objext conftest.$ac_ext
2177ac_ext=c
2178ac_cpp='$CPP $CPPFLAGS'
2179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2181ac_compiler_gnu=$ac_cv_c_compiler_gnu
1164 2182
1165# Check whether --with-gnu-ld or --without-gnu-ld was given. 2183# Check whether --with-gnu-ld or --without-gnu-ld was given.
1166if test "${with_gnu_ld+set}" = set; then 2184if test "${with_gnu_ld+set}" = set; then
1167 withval="$with_gnu_ld" 2185 withval="$with_gnu_ld"
1168 test "$withval" = no || with_gnu_ld=yes 2186 test "$withval" = no || with_gnu_ld=yes
1169else 2187else
1170 with_gnu_ld=no 2188 with_gnu_ld=no
1171fi 2189fi;
1172
1173ac_prog=ld 2190ac_prog=ld
1174if test "$ac_cv_prog_gcc" = yes; then 2191if test "$GCC" = yes; then
1175 # Check if gcc -print-prog-name=ld gives a path. 2192 # Check if gcc -print-prog-name=ld gives a path.
2193 echo "$as_me:2193: checking for ld used by GCC" >&5
1176 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 2194echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
1177echo "configure:1178: checking for ld used by GCC" >&5 2195 case $host in
2196 *-*-mingw*)
2197 # gcc leaves a trailing carriage return which upsets mingw
2198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2199 *)
1178 ac_prog=`($CC -print-prog-name=ld) 2>&5` 2200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2201 esac
1179 case "$ac_prog" in 2202 case $ac_prog in
1180 # Accept absolute paths. 2203 # Accept absolute paths.
1181 [\\/]* | [A-Za-z]:[\\/]*) 2204 [\\/]* | [A-Za-z]:[\\/]*)
1182 re_direlt='/[^/][^/]*/\.\./' 2205 re_direlt='/[^/][^/]*/\.\./'
1183 # Canonicalize the path of ld 2206 # Canonicalize the path of ld
1184 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 2207 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1195 # If it is relative, then search for the first ld in PATH. 2218 # If it is relative, then search for the first ld in PATH.
1196 with_gnu_ld=unknown 2219 with_gnu_ld=unknown
1197 ;; 2220 ;;
1198 esac 2221 esac
1199elif test "$with_gnu_ld" = yes; then 2222elif test "$with_gnu_ld" = yes; then
1200 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1201echo "configure:1202: checking for GNU ld" >&5 2223 echo "$as_me:2223: checking for GNU ld" >&5
2224echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1202else 2225else
2226 echo "$as_me:2226: checking for non-GNU ld" >&5
1203 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 2227echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1204echo "configure:1205: checking for non-GNU ld" >&5
1205fi 2228fi
1206if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 2229if test "${lt_cv_path_LD+set}" = set; then
1207 echo $ac_n "(cached) $ac_c" 1>&6 2230 echo $ECHO_N "(cached) $ECHO_C" >&6
1208else 2231else
1209 if test -z "$LD"; then 2232 if test -z "$LD"; then
1210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 2233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1211 for ac_dir in $PATH; do 2234 for ac_dir in $PATH; do
1212 test -z "$ac_dir" && ac_dir=. 2235 test -z "$ac_dir" && ac_dir=.
1213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1214 ac_cv_path_LD="$ac_dir/$ac_prog" 2237 lt_cv_path_LD="$ac_dir/$ac_prog"
1215 # Check to see if the program is GNU ld. I'd rather use --version, 2238 # Check to see if the program is GNU ld. I'd rather use --version,
1216 # but apparently some GNU ld's only accept -v. 2239 # but apparently some GNU ld's only accept -v.
1217 # Break only if it was the GNU/non-GNU ld that we prefer. 2240 # Break only if it was the GNU/non-GNU ld that we prefer.
1218 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 2241 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1219 test "$with_gnu_ld" != no && break 2242 test "$with_gnu_ld" != no && break
1220 else 2243 else
1221 test "$with_gnu_ld" != yes && break 2244 test "$with_gnu_ld" != yes && break
1222 fi 2245 fi
1223 fi 2246 fi
1224 done 2247 done
1225 IFS="$ac_save_ifs" 2248 IFS="$ac_save_ifs"
1226else 2249else
1227 ac_cv_path_LD="$LD" # Let the user override the test with a path. 2250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1228fi 2251fi
1229fi 2252fi
1230 2253
1231LD="$ac_cv_path_LD" 2254LD="$lt_cv_path_LD"
1232if test -n "$LD"; then 2255if test -n "$LD"; then
1233 echo "$ac_t""$LD" 1>&6 2256 echo "$as_me:2256: result: $LD" >&5
2257echo "${ECHO_T}$LD" >&6
1234else 2258else
1235 echo "$ac_t""no" 1>&6 2259 echo "$as_me:2259: result: no" >&5
2260echo "${ECHO_T}no" >&6
1236fi 2261fi
1237test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 2262test -z "$LD" && { { echo "$as_me:2262: error: no acceptable ld found in \$PATH" >&5
1238 2263echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2264 { (exit 1); exit 1; }; }
2265echo "$as_me:2265: checking if the linker ($LD) is GNU ld" >&5
1239echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 2266echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1240echo "configure:1241: checking if the linker ($LD) is GNU ld" >&5
1241if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 2267if test "${lt_cv_prog_gnu_ld+set}" = set; then
1242 echo $ac_n "(cached) $ac_c" 1>&6 2268 echo $ECHO_N "(cached) $ECHO_C" >&6
1243else 2269else
1244 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 2270 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1245if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 2271if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1246 ac_cv_prog_gnu_ld=yes 2272 lt_cv_prog_gnu_ld=yes
1247else 2273else
1248 ac_cv_prog_gnu_ld=no 2274 lt_cv_prog_gnu_ld=no
1249fi 2275fi
1250fi 2276fi
1251 2277echo "$as_me:2277: result: $lt_cv_prog_gnu_ld" >&5
1252echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 2278echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2279with_gnu_ld=$lt_cv_prog_gnu_ld
1253 2280
2281echo "$as_me:2281: checking for $LD option to reload object files" >&5
2282echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2283if test "${lt_cv_ld_reload_flag+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286 lt_cv_ld_reload_flag='-r'
2287fi
2288echo "$as_me:2288: result: $lt_cv_ld_reload_flag" >&5
2289echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2290reload_flag=$lt_cv_ld_reload_flag
2291test -n "$reload_flag" && reload_flag=" $reload_flag"
1254 2292
2293echo "$as_me:2293: checking for BSD-compatible nm" >&5
1255echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 2294echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
1256echo "configure:1257: checking for BSD-compatible nm" >&5
1257if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 2295if test "${lt_cv_path_NM+set}" = set; then
1258 echo $ac_n "(cached) $ac_c" 1>&6 2296 echo $ECHO_N "(cached) $ECHO_C" >&6
1259else 2297else
1260 if test -n "$NM"; then 2298 if test -n "$NM"; then
1261 # Let the user override the test. 2299 # Let the user override the test.
1262 ac_cv_path_NM="$NM" 2300 lt_cv_path_NM="$NM"
1263else 2301else
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1265 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2303 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1266 test -z "$ac_dir" && ac_dir=. 2304 test -z "$ac_dir" && ac_dir=.
2305 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1267 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 2306 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1268 # Check to see if the nm accepts a BSD-compat flag. 2307 # Check to see if the nm accepts a BSD-compat flag.
1269 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1270 # nm: unknown option "B" ignored 2309 # nm: unknown option "B" ignored
2310 # Tru64's nm complains that /dev/null is an invalid object file
1271 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2311 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1272 ac_cv_path_NM="$ac_dir/nm -B" 2312 lt_cv_path_NM="$tmp_nm -B"
1273 break 2313 break
1274 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 2314 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1275 ac_cv_path_NM="$ac_dir/nm -p" 2315 lt_cv_path_NM="$tmp_nm -p"
1276 break 2316 break
1277 else 2317 else
1278 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 2318 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1279 continue # so that we can try to find one that supports BSD flags 2319 continue # so that we can try to find one that supports BSD flags
1280 fi 2320 fi
1281 fi 2321 fi
1282 done 2322 done
1283 IFS="$ac_save_ifs" 2323 IFS="$ac_save_ifs"
1284 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 2324 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1285fi 2325fi
1286fi 2326fi
1287 2327
1288NM="$ac_cv_path_NM" 2328NM="$lt_cv_path_NM"
1289echo "$ac_t""$NM" 1>&6 2329echo "$as_me:2329: result: $NM" >&5
2330echo "${ECHO_T}$NM" >&6
1290 2331
1291 2332echo "$as_me:2332: checking whether ln -s works" >&5
1292echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2333echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1293echo "configure:1294: checking whether ln -s works" >&5 2334LN_S=$as_ln_s
1294if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 2335if test "$LN_S" = "ln -s"; then
2336 echo "$as_me:2336: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
2338else
2339 echo "$as_me:2339: result: no, using $LN_S" >&5
2340echo "${ECHO_T}no, using $LN_S" >&6
2341fi
2342
2343echo "$as_me:2343: checking how to recognise dependant libraries" >&5
2344echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2345if test "${lt_cv_deplibs_check_method+set}" = set; then
1295 echo $ac_n "(cached) $ac_c" 1>&6 2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 lt_cv_file_magic_cmd='$MAGIC_CMD'
2349lt_cv_file_magic_test_file=
2350lt_cv_deplibs_check_method='unknown'
2351# Need to set the preceding variable on all platforms that support
2352# interlibrary dependencies.
2353# 'none' -- dependencies not supported.
2354# `unknown' -- same as none, but documents that we really don't know.
2355# 'pass_all' -- all dependencies passed with no checks.
2356# 'test_compile' -- check by making test program.
2357# ['file_magic [regex]'] -- check by looking for files in library path
2358# which responds to the $file_magic_cmd with a given egrep regex.
2359# If you have `file' or equivalent on your system and you're not sure
2360# whether `pass_all' will *always* work, you probably want this one.
2361
2362case $host_os in
2363aix4* | aix5*)
2364 lt_cv_deplibs_check_method=pass_all
2365 ;;
2366
2367beos*)
2368 lt_cv_deplibs_check_method=pass_all
2369 ;;
2370
2371bsdi4*)
2372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2373 lt_cv_file_magic_cmd='/usr/bin/file -L'
2374 lt_cv_file_magic_test_file=/shlib/libc.so
2375 ;;
2376
2377cygwin* | mingw* | pw32*)
2378 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2379 lt_cv_file_magic_cmd='$OBJDUMP -f'
2380 ;;
2381
2382darwin* | rhapsody*)
2383 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2384 lt_cv_file_magic_cmd='/usr/bin/file -L'
2385 case "$host_os" in
2386 rhapsody* | darwin1.012)
2387 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2388 ;;
2389 *) # Darwin 1.3 on
2390 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2391 ;;
2392 esac
2393 ;;
2394
2395freebsd*)
2396 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2397 case $host_cpu in
2398 i*86 )
2399 # Not sure whether the presence of OpenBSD here was a mistake.
2400 # Let's accept both of them until this is cleared up.
2401 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2402 lt_cv_file_magic_cmd=/usr/bin/file
2403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2404 ;;
2405 esac
2406 else
2407 lt_cv_deplibs_check_method=pass_all
2408 fi
2409 ;;
2410
2411gnu*)
2412 lt_cv_deplibs_check_method=pass_all
2413 ;;
2414
2415hpux10.20*|hpux11*)
2416 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2417 lt_cv_file_magic_cmd=/usr/bin/file
2418 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2419 ;;
2420
2421irix5* | irix6*)
2422 case $host_os in
2423 irix5*)
2424 # this will be overridden with pass_all, but let us keep it just in case
2425 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2426 ;;
2427 *)
2428 case $LD in
2429 *-32|*"-32 ") libmagic=32-bit;;
2430 *-n32|*"-n32 ") libmagic=N32;;
2431 *-64|*"-64 ") libmagic=64-bit;;
2432 *) libmagic=never-match;;
2433 esac
2434 # this will be overridden with pass_all, but let us keep it just in case
2435 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2436 ;;
2437 esac
2438 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2439 lt_cv_deplibs_check_method=pass_all
2440 ;;
2441
2442# This must be Linux ELF.
2443linux-gnu*)
2444 case $host_cpu in
2445 alpha* | i*86 | powerpc* | sparc* | ia64* )
2446 lt_cv_deplibs_check_method=pass_all ;;
2447 *)
2448 # glibc up to 2.1.1 does not perform some relocations on ARM
2449 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2450 esac
2451 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2452 ;;
2453
2454netbsd*)
2455 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2456 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2457 else
2458 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2459 fi
2460 ;;
2461
2462newos6*)
2463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2464 lt_cv_file_magic_cmd=/usr/bin/file
2465 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2466 ;;
2467
2468osf3* | osf4* | osf5*)
2469 # this will be overridden with pass_all, but let us keep it just in case
2470 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2471 lt_cv_file_magic_test_file=/shlib/libc.so
2472 lt_cv_deplibs_check_method=pass_all
2473 ;;
2474
2475sco3.2v5*)
2476 lt_cv_deplibs_check_method=pass_all
2477 ;;
2478
2479solaris*)
2480 lt_cv_deplibs_check_method=pass_all
2481 lt_cv_file_magic_test_file=/lib/libc.so
2482 ;;
2483
2484sysv5uw[78]* | sysv4*uw2*)
2485 lt_cv_deplibs_check_method=pass_all
2486 ;;
2487
2488sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2489 case $host_vendor in
2490 motorola)
2491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2493 ;;
2494 ncr)
2495 lt_cv_deplibs_check_method=pass_all
2496 ;;
2497 sequent)
2498 lt_cv_file_magic_cmd='/bin/file'
2499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2500 ;;
2501 sni)
2502 lt_cv_file_magic_cmd='/bin/file'
2503 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2504 lt_cv_file_magic_test_file=/lib/libc.so
2505 ;;
2506 esac
2507 ;;
2508esac
2509
2510fi
2511echo "$as_me:2511: result: $lt_cv_deplibs_check_method" >&5
2512echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2513file_magic_cmd=$lt_cv_file_magic_cmd
2514deplibs_check_method=$lt_cv_deplibs_check_method
2515
2516# Check for command to grab the raw symbol name followed by C symbol from nm.
2517echo "$as_me:2517: checking command to parse $NM output" >&5
2518echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2519if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522
2523# These are sane defaults that work on at least a few old systems.
2524# [They come from Ultrix. What could be older than Ultrix?!! ;)]
2525
2526# Character class describing NM global symbol codes.
2527symcode='[BCDEGRST]'
2528
2529# Regexp to match symbols that can be accessed directly from C.
2530sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2531
2532# Transform the above into a raw symbol and a C symbol.
2533symxfrm='\1 \2\3 \3'
2534
2535# Transform an extracted symbol line into a proper C declaration
2536lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2537
2538# Define system-specific variables.
2539case $host_os in
2540aix*)
2541 symcode='[BCDT]'
2542 ;;
2543cygwin* | mingw* | pw32*)
2544 symcode='[ABCDGISTW]'
2545 ;;
2546hpux*) # Its linker distinguishes data from code symbols
2547 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2548 ;;
2549irix*)
2550 symcode='[BCDEGRST]'
2551 ;;
2552solaris* | sysv5*)
2553 symcode='[BDT]'
2554 ;;
2555sysv4)
2556 symcode='[DFNSTU]'
2557 ;;
2558esac
2559
2560# Handle CRLF in mingw tool chain
2561opt_cr=
2562case $host_os in
2563mingw*)
2564 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2565 ;;
2566esac
2567
2568# If we're using GNU nm, then use its standard symbol codes.
2569if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2570 symcode='[ABCDGISTW]'
2571fi
2572
2573# Try without a prefix undercore, then with it.
2574for ac_symprfx in "" "_"; do
2575
2576 # Write the raw and C identifiers.
2577lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2578
2579 # Check to see that the pipe works correctly.
2580 pipe_works=no
2581 rm -f conftest*
2582 cat > conftest.$ac_ext <<EOF
2583#ifdef __cplusplus
2584extern "C" {
2585#endif
2586char nm_test_var;
2587void nm_test_func(){}
2588#ifdef __cplusplus
2589}
2590#endif
2591int main(){nm_test_var='a';nm_test_func();return(0);}
2592EOF
2593
2594 if { (eval echo "$as_me:2594: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); }; then
2599 # Now try to grab the symbols.
2600 nlist=conftest.nm
2601 if { (eval echo "$as_me:2601: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
2602 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
2603 ac_status=$?
2604 echo "$as_me:2604: \$? = $ac_status" >&5
2605 (exit $ac_status); } && test -s "$nlist"; then
2606 # Try sorting and uniquifying the output.
2607 if sort "$nlist" | uniq > "$nlist"T; then
2608 mv -f "$nlist"T "$nlist"
2609 else
2610 rm -f "$nlist"T
2611 fi
2612
2613 # Make sure that we snagged all the symbols we need.
2614 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2615 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2616 cat <<EOF > conftest.$ac_ext
2617#ifdef __cplusplus
2618extern "C" {
2619#endif
2620
2621EOF
2622 # Now generate the symbol file.
2623 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2624
2625 cat <<EOF >> conftest.$ac_ext
2626#if defined (__STDC__) && __STDC__
2627# define lt_ptr_t void *
1296else 2628#else
1297 rm -f conftestdata 2629# define lt_ptr_t char *
1298if ln -s X conftestdata 2>/dev/null 2630# define const
1299then 2631#endif
1300 rm -f conftestdata 2632
1301 ac_cv_prog_LN_S="ln -s" 2633/* The mapping between symbol names and symbols. */
2634const struct {
2635 const char *name;
2636 lt_ptr_t address;
2637}
2638lt_preloaded_symbols[] =
2639{
2640EOF
2641 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2642 cat <<\EOF >> conftest.$ac_ext
2643 {0, (lt_ptr_t) 0}
2644};
2645
2646#ifdef __cplusplus
2647}
2648#endif
2649EOF
2650 # Now try linking the two files.
2651 mv conftest.$ac_objext conftstm.$ac_objext
2652 save_LIBS="$LIBS"
2653 save_CFLAGS="$CFLAGS"
2654 LIBS="conftstm.$ac_objext"
2655 CFLAGS="$CFLAGS$no_builtin_flag"
2656 if { (eval echo "$as_me:2656: \"$ac_link\"") >&5
2657 (eval $ac_link) 2>&5
2658 ac_status=$?
2659 echo "$as_me:2659: \$? = $ac_status" >&5
2660 (exit $ac_status); } && test -s conftest; then
2661 pipe_works=yes
2662 fi
2663 LIBS="$save_LIBS"
2664 CFLAGS="$save_CFLAGS"
1302else 2665 else
1303 ac_cv_prog_LN_S=ln 2666 echo "cannot find nm_test_func in $nlist" >&5
1304fi 2667 fi
1305fi 2668 else
1306LN_S="$ac_cv_prog_LN_S" 2669 echo "cannot find nm_test_var in $nlist" >&5
1307if test "$ac_cv_prog_LN_S" = "ln -s"; then 2670 fi
1308 echo "$ac_t""yes" 1>&6 2671 else
2672 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2673 fi
1309else 2674 else
1310 echo "$ac_t""no" 1>&6 2675 echo "$progname: failed program was:" >&5
1311fi 2676 cat conftest.$ac_ext >&5
2677 fi
2678 rm -f conftest* conftst*
1312 2679
2680 # Do not use the global_symbol_pipe unless it works.
2681 if test "$pipe_works" = yes; then
2682 break
2683 else
2684 lt_cv_sys_global_symbol_pipe=
2685 fi
2686done
1313 2687
1314# Check for any special flags to pass to ltconfig. 2688fi
1315libtool_flags="--cache-file=$cache_file"
1316test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1317test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1318test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1319test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1320test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1321 2689
2690global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2691if test -z "$lt_cv_sys_global_symbol_pipe"; then
2692 global_symbol_to_cdecl=
2693else
2694 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2695fi
2696if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2697 echo "$as_me:2697: result: failed" >&5
2698echo "${ECHO_T}failed" >&6
2699else
2700 echo "$as_me:2700: result: ok" >&5
2701echo "${ECHO_T}ok" >&6
2702fi
2703
2704ac_ext=c
2705ac_cpp='$CPP $CPPFLAGS'
2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709echo "$as_me:2709: checking how to run the C preprocessor" >&5
2710echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2711# On Suns, sometimes $CPP names a directory.
2712if test -n "$CPP" && test -d "$CPP"; then
2713 CPP=
2714fi
2715if test -z "$CPP"; then
2716 if test "${ac_cv_prog_CPP+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 # Double quotes because CPP needs to be expanded
2720 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2721 do
2722 # break 2 since there is a loop in there.
2723 ac_preproc_ok=false
2724for ac_c_preproc_warn_flag in '' yes
2725do
2726 # Use a header file that comes with gcc, so configuring glibc
2727 # with a fresh cross-compiler works.
2728 # On the NeXT, cc -E runs the code through the compiler's parser,
2729 # not just through cpp. "Syntax error" is here to catch this case.
2730 cat >conftest.$ac_ext <<_ACEOF
2731#line 2731 "configure"
2732#include "confdefs.h"
2733#include <assert.h>
2734 Syntax error
2735_ACEOF
2736if { (eval echo "$as_me:2736: \"$ac_cpp conftest.$ac_ext\"") >&5
2737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2738 ac_status=$?
2739 egrep -v '^ *\+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:2742: \$? = $ac_status" >&5
2743 (exit $ac_status); } >/dev/null; then
2744 if test -s conftest.err; then
2745 ac_cpp_err=$ac_c_preproc_warn_flag
2746 else
2747 ac_cpp_err=
2748 fi
2749else
2750 ac_cpp_err=yes
2751fi
2752if test -z "$ac_cpp_err"; then
2753 :
2754else
2755 echo "$as_me: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 # Broken: fails on valid input.
2758continue
2759fi
2760rm -f conftest.err conftest.$ac_ext
2761
2762 # OK, works on sane cases. Now check whether non-existent headers
2763 # can be detected and how.
2764 cat >conftest.$ac_ext <<_ACEOF
2765#line 2765 "configure"
2766#include "confdefs.h"
2767#include <ac_nonexistent.h>
2768_ACEOF
2769if { (eval echo "$as_me:2769: \"$ac_cpp conftest.$ac_ext\"") >&5
2770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 ac_status=$?
2772 egrep -v '^ *\+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 else
2780 ac_cpp_err=
2781 fi
2782else
2783 ac_cpp_err=yes
2784fi
2785if test -z "$ac_cpp_err"; then
2786 # Broken: success on invalid input.
2787continue
2788else
2789 echo "$as_me: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2791 # Passes both tests.
2792ac_preproc_ok=:
2793break
2794fi
2795rm -f conftest.err conftest.$ac_ext
2796
2797done
2798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2799rm -f conftest.err conftest.$ac_ext
2800if $ac_preproc_ok; then
2801 break 2
2802fi
2803
2804 done
2805 ac_cv_prog_CPP=$CPP
2806
2807fi
2808 CPP=$ac_cv_prog_CPP
2809else
2810 ac_cv_prog_CPP=$CPP
2811fi
2812echo "$as_me:2812: result: $CPP" >&5
2813echo "${ECHO_T}$CPP" >&6
2814ac_preproc_ok=false
2815for ac_c_preproc_warn_flag in '' yes
2816do
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # On the NeXT, cc -E runs the code through the compiler's parser,
2820 # not just through cpp. "Syntax error" is here to catch this case.
2821 cat >conftest.$ac_ext <<_ACEOF
2822#line 2822 "configure"
2823#include "confdefs.h"
2824#include <assert.h>
2825 Syntax error
2826_ACEOF
2827if { (eval echo "$as_me:2827: \"$ac_cpp conftest.$ac_ext\"") >&5
2828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829 ac_status=$?
2830 egrep -v '^ *\+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:2833: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null; then
2835 if test -s conftest.err; then
2836 ac_cpp_err=$ac_c_preproc_warn_flag
2837 else
2838 ac_cpp_err=
2839 fi
2840else
2841 ac_cpp_err=yes
2842fi
2843if test -z "$ac_cpp_err"; then
2844 :
2845else
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 # Broken: fails on valid input.
2849continue
2850fi
2851rm -f conftest.err conftest.$ac_ext
2852
2853 # OK, works on sane cases. Now check whether non-existent headers
2854 # can be detected and how.
2855 cat >conftest.$ac_ext <<_ACEOF
2856#line 2856 "configure"
2857#include "confdefs.h"
2858#include <ac_nonexistent.h>
2859_ACEOF
2860if { (eval echo "$as_me:2860: \"$ac_cpp conftest.$ac_ext\"") >&5
2861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862 ac_status=$?
2863 egrep -v '^ *\+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:2866: \$? = $ac_status" >&5
2867 (exit $ac_status); } >/dev/null; then
2868 if test -s conftest.err; then
2869 ac_cpp_err=$ac_c_preproc_warn_flag
2870 else
2871 ac_cpp_err=
2872 fi
2873else
2874 ac_cpp_err=yes
2875fi
2876if test -z "$ac_cpp_err"; then
2877 # Broken: success on invalid input.
2878continue
2879else
2880 echo "$as_me: failed program was:" >&5
2881 cat conftest.$ac_ext >&5
2882 # Passes both tests.
2883ac_preproc_ok=:
2884break
2885fi
2886rm -f conftest.err conftest.$ac_ext
2887
2888done
2889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2890rm -f conftest.err conftest.$ac_ext
2891if $ac_preproc_ok; then
2892 :
2893else
2894 { { echo "$as_me:2894: error: C preprocessor \"$CPP\" fails sanity check" >&5
2895echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2896 { (exit 1); exit 1; }; }
2897fi
2898
2899ac_ext=c
2900ac_cpp='$CPP $CPPFLAGS'
2901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2903ac_compiler_gnu=$ac_cv_c_compiler_gnu
2904
2905for ac_header in dlfcn.h
2906do
2907ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2908echo "$as_me:2908: checking for $ac_header" >&5
2909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2910if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913 cat >conftest.$ac_ext <<_ACEOF
2914#line 2914 "configure"
2915#include "confdefs.h"
2916#include <$ac_header>
2917_ACEOF
2918if { (eval echo "$as_me:2918: \"$ac_cpp conftest.$ac_ext\"") >&5
2919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920 ac_status=$?
2921 egrep -v '^ *\+' conftest.er1 >conftest.err
2922 rm -f conftest.er1
2923 cat conftest.err >&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } >/dev/null; then
2926 if test -s conftest.err; then
2927 ac_cpp_err=$ac_c_preproc_warn_flag
2928 else
2929 ac_cpp_err=
2930 fi
2931else
2932 ac_cpp_err=yes
2933fi
2934if test -z "$ac_cpp_err"; then
2935 eval "$ac_ac_Header=yes"
2936else
2937 echo "$as_me: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2939 eval "$ac_ac_Header=no"
2940fi
2941rm -f conftest.err conftest.$ac_ext
2942fi
2943echo "$as_me:2943: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2944echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2945if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2946 cat >>confdefs.h <<EOF
2947#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2948EOF
2949
2950fi
2951done
2952
2953# Only perform the check for file, if the check method requires it
2954case $deplibs_check_method in
2955file_magic*)
2956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2957 echo "$as_me:2957: checking for ${ac_tool_prefix}file" >&5
2958echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962 case $MAGIC_CMD in
2963 /*)
2964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2965 ;;
2966 ?:/*)
2967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2968 ;;
2969 *)
2970 ac_save_MAGIC_CMD="$MAGIC_CMD"
2971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2972 ac_dummy="/usr/bin:$PATH"
2973 for ac_dir in $ac_dummy; do
2974 test -z "$ac_dir" && ac_dir=.
2975 if test -f $ac_dir/${ac_tool_prefix}file; then
2976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2977 if test -n "$file_magic_test_file"; then
2978 case $deplibs_check_method in
2979 "file_magic "*)
2980 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2983 egrep "$file_magic_regex" > /dev/null; then
2984 :
2985 else
2986 cat <<EOF 1>&2
2987
2988*** Warning: the command libtool uses to detect shared libraries,
2989*** $file_magic_cmd, produces output that libtool cannot recognize.
2990*** The result is that libtool may fail to recognize shared libraries
2991*** as such. This will affect the creation of libtool libraries that
2992*** depend on shared libraries, but programs linked with such libtool
2993*** libraries will work regardless of this problem. Nevertheless, you
2994*** may want to report the problem to your system manager and/or to
2995*** bug-libtool@gnu.org
2996
2997EOF
2998 fi ;;
2999 esac
3000 fi
3001 break
3002 fi
3003 done
3004 IFS="$ac_save_ifs"
3005 MAGIC_CMD="$ac_save_MAGIC_CMD"
3006 ;;
3007esac
3008fi
3009
3010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3011if test -n "$MAGIC_CMD"; then
3012 echo "$as_me:3012: result: $MAGIC_CMD" >&5
3013echo "${ECHO_T}$MAGIC_CMD" >&6
3014else
3015 echo "$as_me:3015: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017fi
3018
3019if test -z "$lt_cv_path_MAGIC_CMD"; then
3020 if test -n "$ac_tool_prefix"; then
3021 echo "$as_me:3021: checking for file" >&5
3022echo $ECHO_N "checking for file... $ECHO_C" >&6
3023if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026 case $MAGIC_CMD in
3027 /*)
3028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3029 ;;
3030 ?:/*)
3031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3032 ;;
3033 *)
3034 ac_save_MAGIC_CMD="$MAGIC_CMD"
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 ac_dummy="/usr/bin:$PATH"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/file; then
3040 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3041 if test -n "$file_magic_test_file"; then
3042 case $deplibs_check_method in
3043 "file_magic "*)
3044 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3047 egrep "$file_magic_regex" > /dev/null; then
3048 :
3049 else
3050 cat <<EOF 1>&2
3051
3052*** Warning: the command libtool uses to detect shared libraries,
3053*** $file_magic_cmd, produces output that libtool cannot recognize.
3054*** The result is that libtool may fail to recognize shared libraries
3055*** as such. This will affect the creation of libtool libraries that
3056*** depend on shared libraries, but programs linked with such libtool
3057*** libraries will work regardless of this problem. Nevertheless, you
3058*** may want to report the problem to your system manager and/or to
3059*** bug-libtool@gnu.org
3060
3061EOF
3062 fi ;;
3063 esac
3064 fi
3065 break
3066 fi
3067 done
3068 IFS="$ac_save_ifs"
3069 MAGIC_CMD="$ac_save_MAGIC_CMD"
3070 ;;
3071esac
3072fi
3073
3074MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3075if test -n "$MAGIC_CMD"; then
3076 echo "$as_me:3076: result: $MAGIC_CMD" >&5
3077echo "${ECHO_T}$MAGIC_CMD" >&6
3078else
3079 echo "$as_me:3079: result: no" >&5
3080echo "${ECHO_T}no" >&6
3081fi
3082
3083 else
3084 MAGIC_CMD=:
3085 fi
3086fi
3087
3088 fi
3089 ;;
3090esac
3091
3092if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3095echo "$as_me:3095: checking for $ac_word" >&5
3096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3097if test "${ac_cv_prog_RANLIB+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 if test -n "$RANLIB"; then
3101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3102else
3103 ac_save_IFS=$IFS; IFS=$ac_path_separator
3104ac_dummy="$PATH"
3105for ac_dir in $ac_dummy; do
3106 IFS=$ac_save_IFS
3107 test -z "$ac_dir" && ac_dir=.
3108 $as_executable_p "$ac_dir/$ac_word" || continue
3109ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3110echo "$as_me:3110: found $ac_dir/$ac_word" >&5
3111break
3112done
3113
3114fi
3115fi
3116RANLIB=$ac_cv_prog_RANLIB
3117if test -n "$RANLIB"; then
3118 echo "$as_me:3118: result: $RANLIB" >&5
3119echo "${ECHO_T}$RANLIB" >&6
3120else
3121 echo "$as_me:3121: result: no" >&5
3122echo "${ECHO_T}no" >&6
3123fi
3124
3125fi
3126if test -z "$ac_cv_prog_RANLIB"; then
3127 ac_ct_RANLIB=$RANLIB
3128 # Extract the first word of "ranlib", so it can be a program name with args.
3129set dummy ranlib; ac_word=$2
3130echo "$as_me:3130: checking for $ac_word" >&5
3131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3132if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135 if test -n "$ac_ct_RANLIB"; then
3136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3137else
3138 ac_save_IFS=$IFS; IFS=$ac_path_separator
3139ac_dummy="$PATH"
3140for ac_dir in $ac_dummy; do
3141 IFS=$ac_save_IFS
3142 test -z "$ac_dir" && ac_dir=.
3143 $as_executable_p "$ac_dir/$ac_word" || continue
3144ac_cv_prog_ac_ct_RANLIB="ranlib"
3145echo "$as_me:3145: found $ac_dir/$ac_word" >&5
3146break
3147done
3148
3149 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3150fi
3151fi
3152ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3153if test -n "$ac_ct_RANLIB"; then
3154 echo "$as_me:3154: result: $ac_ct_RANLIB" >&5
3155echo "${ECHO_T}$ac_ct_RANLIB" >&6
3156else
3157 echo "$as_me:3157: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159fi
3160
3161 RANLIB=$ac_ct_RANLIB
3162else
3163 RANLIB="$ac_cv_prog_RANLIB"
3164fi
3165
3166if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3168set dummy ${ac_tool_prefix}strip; ac_word=$2
3169echo "$as_me:3169: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_STRIP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 if test -n "$STRIP"; then
3175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3176else
3177 ac_save_IFS=$IFS; IFS=$ac_path_separator
3178ac_dummy="$PATH"
3179for ac_dir in $ac_dummy; do
3180 IFS=$ac_save_IFS
3181 test -z "$ac_dir" && ac_dir=.
3182 $as_executable_p "$ac_dir/$ac_word" || continue
3183ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3184echo "$as_me:3184: found $ac_dir/$ac_word" >&5
3185break
3186done
3187
3188fi
3189fi
3190STRIP=$ac_cv_prog_STRIP
3191if test -n "$STRIP"; then
3192 echo "$as_me:3192: result: $STRIP" >&5
3193echo "${ECHO_T}$STRIP" >&6
3194else
3195 echo "$as_me:3195: result: no" >&5
3196echo "${ECHO_T}no" >&6
3197fi
3198
3199fi
3200if test -z "$ac_cv_prog_STRIP"; then
3201 ac_ct_STRIP=$STRIP
3202 # Extract the first word of "strip", so it can be a program name with args.
3203set dummy strip; ac_word=$2
3204echo "$as_me:3204: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 if test -n "$ac_ct_STRIP"; then
3210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3211else
3212 ac_save_IFS=$IFS; IFS=$ac_path_separator
3213ac_dummy="$PATH"
3214for ac_dir in $ac_dummy; do
3215 IFS=$ac_save_IFS
3216 test -z "$ac_dir" && ac_dir=.
3217 $as_executable_p "$ac_dir/$ac_word" || continue
3218ac_cv_prog_ac_ct_STRIP="strip"
3219echo "$as_me:3219: found $ac_dir/$ac_word" >&5
3220break
3221done
3222
3223 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3224fi
3225fi
3226ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227if test -n "$ac_ct_STRIP"; then
3228 echo "$as_me:3228: result: $ac_ct_STRIP" >&5
3229echo "${ECHO_T}$ac_ct_STRIP" >&6
3230else
3231 echo "$as_me:3231: result: no" >&5
3232echo "${ECHO_T}no" >&6
3233fi
3234
3235 STRIP=$ac_ct_STRIP
3236else
3237 STRIP="$ac_cv_prog_STRIP"
3238fi
3239
3240enable_dlopen=no
3241enable_win32_dll=no
1322 3242
1323# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3243# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1324if test "${enable_libtool_lock+set}" = set; then 3244if test "${enable_libtool_lock+set}" = set; then
1325 enableval="$enable_libtool_lock" 3245 enableval="$enable_libtool_lock"
1326 : 3246
1327fi 3247fi;
1328 3248test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1329test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1330test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1331 3249
1332# Some flags need to be propagated to the compiler or linker for good 3250# Some flags need to be propagated to the compiler or linker for good
1333# libtool support. 3251# libtool support.
1334case "$host" in 3252case $host in
1335*-*-irix6*) 3253*-*-irix6*)
1336 # Find out which ABI we are using. 3254 # Find out which ABI we are using.
1337 echo '#line 1338 "configure"' > conftest.$ac_ext 3255 echo '#line 3255 "configure"' > conftest.$ac_ext
1338 if { (eval echo configure:1339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3256 if { (eval echo "$as_me:3256: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>&5
3258 ac_status=$?
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); }; then
1339 case "`/usr/bin/file conftest.o`" in 3261 case `/usr/bin/file conftest.$ac_objext` in
1340 *32-bit*) 3262 *32-bit*)
1341 LD="${LD-ld} -32" 3263 LD="${LD-ld} -32"
1342 ;; 3264 ;;
1343 *N32*) 3265 *N32*)
1344 LD="${LD-ld} -n32" 3266 LD="${LD-ld} -n32"
1353 3275
1354*-*-sco3.2v5*) 3276*-*-sco3.2v5*)
1355 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1356 SAVE_CFLAGS="$CFLAGS" 3278 SAVE_CFLAGS="$CFLAGS"
1357 CFLAGS="$CFLAGS -belf" 3279 CFLAGS="$CFLAGS -belf"
1358 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1359echo "configure:1360: checking whether the C compiler needs -belf" >&5 3280 echo "$as_me:3280: checking whether the C compiler needs -belf" >&5
3281echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
1360if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 3282if test "${lt_cv_cc_needs_belf+set}" = set; then
1361 echo $ac_n "(cached) $ac_c" 1>&6 3283 echo $ECHO_N "(cached) $ECHO_C" >&6
1362else 3284else
3285
3286 ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
1363 cat > conftest.$ac_ext <<EOF 3292 cat >conftest.$ac_ext <<_ACEOF
1364#line 1365 "configure" 3293#line 3293 "configure"
1365#include "confdefs.h" 3294#include "confdefs.h"
1366 3295
1367int main() { 3296int
3297main ()
3298{
1368 3299
3300 ;
1369; return 0; } 3301 return 0;
1370EOF 3302}
1371if { (eval echo configure:1372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3303_ACEOF
1372 rm -rf conftest* 3304rm -f conftest.$ac_objext conftest$ac_exeext
3305if { (eval echo "$as_me:3305: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>&5
3307 ac_status=$?
3308 echo "$as_me:3308: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try='test -s conftest$ac_exeext'
3311 { (eval echo "$as_me:3311: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:3314: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
1373 lt_cv_cc_needs_belf=yes 3316 lt_cv_cc_needs_belf=yes
1374else 3317else
1375 echo "configure: failed program was:" >&5 3318 echo "$as_me: failed program was:" >&5
1376 cat conftest.$ac_ext >&5 3319cat conftest.$ac_ext >&5
1377 rm -rf conftest*
1378 lt_cv_cc_needs_belf=no 3320lt_cv_cc_needs_belf=no
1379fi 3321fi
1380rm -f conftest* 3322rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1381fi 3323 ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382 3328
3329fi
3330echo "$as_me:3330: result: $lt_cv_cc_needs_belf" >&5
1383echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 3331echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1386 CFLAGS="$SAVE_CFLAGS" 3334 CFLAGS="$SAVE_CFLAGS"
1387 fi 3335 fi
1388 ;; 3336 ;;
1389 3337
1390
1391esac 3338esac
1392 3339
3340# Sed substitution that helps us do robust quoting. It backslashifies
3341# metacharacters that are still active within double-quoted strings.
3342Xsed='sed -e s/^X//'
3343sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1393 3344
1394# Save cache, so that ltconfig can load it 3345# Same as above, but do not quote variable references.
1395cat > confcache <<\EOF 3346double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1396# This file is a shell script that caches the results of configure 3347
1397# tests run on this system so they can be shared between configure 3348# Sed substitution to delay expansion of an escaped shell variable in a
1398# scripts and configure runs. It is not useful on other systems. 3349# double_quote_subst'ed string.
1399# If it contains results you don't want to keep, you may remove or edit it. 3350delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1400# 3351
1401# By default, configure uses ./config.cache as the cache file, 3352# Constants:
1402# creating it if it does not exist already. You can give configure 3353rm="rm -f"
1403# the --cache-file=FILE option to use a different cache file; that is 3354
1404# what configure does when it calls configure scripts in 3355# Global variables:
1405# subdirectories, so they share the cache. 3356default_ofile=libtool
1406# Giving --cache-file=/dev/null disables caching, for debugging configure. 3357can_build_shared=yes
1407# config.status only pays attention to the cache file if you give it the 3358
1408# --recheck option to rerun configure. 3359# All known linkers require a `.a' archive for static linking (except M$VC,
1409# 3360# which needs '.lib').
3361libext=a
3362ltmain="$ac_aux_dir/ltmain.sh"
3363ofile="$default_ofile"
3364with_gnu_ld="$lt_cv_prog_gnu_ld"
3365need_locks="$enable_libtool_lock"
3366
3367old_CC="$CC"
3368old_CFLAGS="$CFLAGS"
3369
3370# Set sane defaults for various variables
3371test -z "$AR" && AR=ar
3372test -z "$AR_FLAGS" && AR_FLAGS=cru
3373test -z "$AS" && AS=as
3374test -z "$CC" && CC=cc
3375test -z "$DLLTOOL" && DLLTOOL=dlltool
3376test -z "$LD" && LD=ld
3377test -z "$LN_S" && LN_S="ln -s"
3378test -z "$MAGIC_CMD" && MAGIC_CMD=file
3379test -z "$NM" && NM=nm
3380test -z "$OBJDUMP" && OBJDUMP=objdump
3381test -z "$RANLIB" && RANLIB=:
3382test -z "$STRIP" && STRIP=:
3383test -z "$ac_objext" && ac_objext=o
3384
3385if test x"$host" != x"$build"; then
3386 ac_tool_prefix=${host_alias}-
3387else
3388 ac_tool_prefix=
3389fi
3390
3391# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3392case $host_os in
3393linux-gnu*) ;;
3394linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3395esac
3396
3397case $host_os in
3398aix3*)
3399 # AIX sometimes has problems with the GCC collect2 program. For some
3400 # reason, if we set the COLLECT_NAMES environment variable, the problems
3401 # vanish in a puff of smoke.
3402 if test "X${COLLECT_NAMES+set}" != Xset; then
3403 COLLECT_NAMES=
3404 export COLLECT_NAMES
3405 fi
3406 ;;
3407esac
3408
3409# Determine commands to create old-style static archives.
3410old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3411old_postinstall_cmds='chmod 644 $oldlib'
3412old_postuninstall_cmds=
3413
3414if test -n "$RANLIB"; then
3415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3416 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3417fi
3418
3419# Allow CC to be a program name with arguments.
3420set dummy $CC
3421compiler="$2"
3422
3423echo "$as_me:3423: checking for objdir" >&5
3424echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3425rm -f .libs 2>/dev/null
3426mkdir .libs 2>/dev/null
3427if test -d .libs; then
3428 objdir=.libs
3429else
3430 # MS-DOS does not allow filenames that begin with a dot.
3431 objdir=_libs
3432fi
3433rmdir .libs 2>/dev/null
3434echo "$as_me:3434: result: $objdir" >&5
3435echo "${ECHO_T}$objdir" >&6
3436
3437# Check whether --with-pic or --without-pic was given.
3438if test "${with_pic+set}" = set; then
3439 withval="$with_pic"
3440 pic_mode="$withval"
3441else
3442 pic_mode=default
3443fi;
3444test -z "$pic_mode" && pic_mode=default
3445
3446# We assume here that the value for lt_cv_prog_cc_pic will not be cached
3447# in isolation, and that seeing it set (from the cache) indicates that
3448# the associated values are set (in the cache) correctly too.
3449echo "$as_me:3449: checking for $compiler option to produce PIC" >&5
3450echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3451if test "${lt_cv_prog_cc_pic+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454 lt_cv_prog_cc_pic=
3455 lt_cv_prog_cc_shlib=
3456 lt_cv_prog_cc_wl=
3457 lt_cv_prog_cc_static=
3458 lt_cv_prog_cc_no_builtin=
3459 lt_cv_prog_cc_can_build_shared=$can_build_shared
3460
3461 if test "$GCC" = yes; then
3462 lt_cv_prog_cc_wl='-Wl,'
3463 lt_cv_prog_cc_static='-static'
3464
3465 case $host_os in
3466 aix*)
3467 # Below there is a dirty hack to force normal static linking with -ldl
3468 # The problem is because libdl dynamically linked with both libc and
3469 # libC (AIX C++ library), which obviously doesn't included in libraries
3470 # list by gcc. This cause undefined symbols with -static flags.
3471 # This hack allows C programs to be linked with "-static -ldl", but
3472 # we not sure about C++ programs.
3473 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3474 ;;
3475 amigaos*)
3476 # FIXME: we need at least 68020 code to build shared libraries, but
3477 # adding the `-m68020' flag to GCC prevents building anything better,
3478 # like `-m68040'.
3479 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3480 ;;
3481 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3482 # PIC is the default for these OSes.
3483 ;;
3484 darwin* | rhapsody*)
3485 # PIC is the default on this platform
3486 # Common symbols not allowed in MH_DYLIB files
3487 lt_cv_prog_cc_pic='-fno-common'
3488 ;;
3489 cygwin* | mingw* | pw32* | os2*)
3490 # This hack is so that the source file can tell whether it is being
3491 # built for inclusion in a dll (and should export symbols for example).
3492 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3493 ;;
3494 sysv4*MP*)
3495 if test -d /usr/nec; then
3496 lt_cv_prog_cc_pic=-Kconform_pic
3497 fi
3498 ;;
3499 *)
3500 lt_cv_prog_cc_pic='-fPIC'
3501 ;;
3502 esac
3503 else
3504 # PORTME Check for PIC flags for the system compiler.
3505 case $host_os in
3506 aix3* | aix4* | aix5*)
3507 # All AIX code is PIC.
3508 if test "$host_cpu" = ia64; then
3509 # AIX 5 now supports IA64 processor
3510 lt_cv_prog_cc_static='-Bstatic'
3511 lt_cv_prog_cc_wl='-Wl,'
3512 else
3513 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3514 fi
3515 ;;
3516
3517 hpux9* | hpux10* | hpux11*)
3518 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3519 lt_cv_prog_cc_wl='-Wl,'
3520 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3521 lt_cv_prog_cc_pic='+Z'
3522 ;;
3523
3524 irix5* | irix6*)
3525 lt_cv_prog_cc_wl='-Wl,'
3526 lt_cv_prog_cc_static='-non_shared'
3527 # PIC (with -KPIC) is the default.
3528 ;;
3529
3530 cygwin* | mingw* | pw32* | os2*)
3531 # This hack is so that the source file can tell whether it is being
3532 # built for inclusion in a dll (and should export symbols for example).
3533 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3534 ;;
3535
3536 newsos6)
3537 lt_cv_prog_cc_pic='-KPIC'
3538 lt_cv_prog_cc_static='-Bstatic'
3539 ;;
3540
3541 osf3* | osf4* | osf5*)
3542 # All OSF/1 code is PIC.
3543 lt_cv_prog_cc_wl='-Wl,'
3544 lt_cv_prog_cc_static='-non_shared'
3545 ;;
3546
3547 sco3.2v5*)
3548 lt_cv_prog_cc_pic='-Kpic'
3549 lt_cv_prog_cc_static='-dn'
3550 lt_cv_prog_cc_shlib='-belf'
3551 ;;
3552
3553 solaris*)
3554 lt_cv_prog_cc_pic='-KPIC'
3555 lt_cv_prog_cc_static='-Bstatic'
3556 lt_cv_prog_cc_wl='-Wl,'
3557 ;;
3558
3559 sunos4*)
3560 lt_cv_prog_cc_pic='-PIC'
3561 lt_cv_prog_cc_static='-Bstatic'
3562 lt_cv_prog_cc_wl='-Qoption ld '
3563 ;;
3564
3565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3566 lt_cv_prog_cc_pic='-KPIC'
3567 lt_cv_prog_cc_static='-Bstatic'
3568 if test "x$host_vendor" = xsni; then
3569 lt_cv_prog_cc_wl='-LD'
3570 else
3571 lt_cv_prog_cc_wl='-Wl,'
3572 fi
3573 ;;
3574
3575 uts4*)
3576 lt_cv_prog_cc_pic='-pic'
3577 lt_cv_prog_cc_static='-Bstatic'
3578 ;;
3579
3580 sysv4*MP*)
3581 if test -d /usr/nec ;then
3582 lt_cv_prog_cc_pic='-Kconform_pic'
3583 lt_cv_prog_cc_static='-Bstatic'
3584 fi
3585 ;;
3586
3587 *)
3588 lt_cv_prog_cc_can_build_shared=no
3589 ;;
3590 esac
3591 fi
3592
3593fi
3594
3595if test -z "$lt_cv_prog_cc_pic"; then
3596 echo "$as_me:3596: result: none" >&5
3597echo "${ECHO_T}none" >&6
3598else
3599 echo "$as_me:3599: result: $lt_cv_prog_cc_pic" >&5
3600echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
3601
3602 # Check to make sure the pic_flag actually works.
3603 echo "$as_me:3603: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3604echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
3605 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608 save_CFLAGS="$CFLAGS"
3609 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3610 cat >conftest.$ac_ext <<_ACEOF
3611#line 3611 "configure"
3612#include "confdefs.h"
3613
3614int
3615main ()
3616{
3617
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622rm -f conftest.$ac_objext
3623if { (eval echo "$as_me:3623: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>&5
3625 ac_status=$?
3626 echo "$as_me:3626: \$? = $ac_status" >&5
3627 (exit $ac_status); } &&
3628 { ac_try='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:3629: \"$ac_try\"") >&5
3630 (eval $ac_try) 2>&5
3631 ac_status=$?
3632 echo "$as_me:3632: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3634 case $host_os in
3635 hpux9* | hpux10* | hpux11*)
3636 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3637 # they create non-PIC objects. So, if there were any warnings, we
3638 # assume that PIC is not supported.
3639 if test -s conftest.err; then
3640 lt_cv_prog_cc_pic_works=no
3641 else
3642 lt_cv_prog_cc_pic_works=yes
3643 fi
3644 ;;
3645 *)
3646 lt_cv_prog_cc_pic_works=yes
3647 ;;
3648 esac
3649
3650else
3651 echo "$as_me: failed program was:" >&5
3652cat conftest.$ac_ext >&5
3653 lt_cv_prog_cc_pic_works=no
3654
3655fi
3656rm -f conftest.$ac_objext conftest.$ac_ext
3657 CFLAGS="$save_CFLAGS"
3658
3659fi
3660
3661 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3662 lt_cv_prog_cc_pic=
3663 lt_cv_prog_cc_can_build_shared=no
3664 else
3665 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3666 fi
3667
3668 echo "$as_me:3668: result: $lt_cv_prog_cc_pic_works" >&5
3669echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
3670fi
3671
3672# Check for any special shared library compilation flags.
3673if test -n "$lt_cv_prog_cc_shlib"; then
3674 { echo "$as_me:3674: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
3675echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
3676 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
3677 else
3678 { echo "$as_me:3678: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3679echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3680 lt_cv_prog_cc_can_build_shared=no
3681 fi
3682fi
3683
3684echo "$as_me:3684: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3685echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
3686if test "${lt_cv_prog_cc_static_works+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688else
3689 lt_cv_prog_cc_static_works=no
3690 save_LDFLAGS="$LDFLAGS"
3691 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3692 cat >conftest.$ac_ext <<_ACEOF
3693#line 3693 "configure"
3694#include "confdefs.h"
3695
3696int
3697main ()
3698{
3699
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext conftest$ac_exeext
3705if { (eval echo "$as_me:3705: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3707 ac_status=$?
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -s conftest$ac_exeext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
3713 ac_status=$?
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 lt_cv_prog_cc_static_works=yes
3717else
3718 echo "$as_me: failed program was:" >&5
3719cat conftest.$ac_ext >&5
3720fi
3721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3722 LDFLAGS="$save_LDFLAGS"
3723
3724fi
3725
3726# Belt *and* braces to stop my trousers falling down:
3727test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3728echo "$as_me:3728: result: $lt_cv_prog_cc_static_works" >&5
3729echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
3730
3731pic_flag="$lt_cv_prog_cc_pic"
3732special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3733wl="$lt_cv_prog_cc_wl"
3734link_static_flag="$lt_cv_prog_cc_static"
3735no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3736can_build_shared="$lt_cv_prog_cc_can_build_shared"
3737
3738# Check to see if options -o and -c are simultaneously supported by compiler
3739echo "$as_me:3739: checking if $compiler supports -c -o file.$ac_objext" >&5
3740echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
3741if test "${lt_cv_compiler_c_o+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744
3745$rm -r conftest 2>/dev/null
3746mkdir conftest
3747cd conftest
3748echo "int some_variable = 0;" > conftest.$ac_ext
3749mkdir out
3750# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3751# that will create temporary files in the current directory regardless of
3752# the output directory. Thus, making CWD read-only will cause this test
3753# to fail, enabling locking or at least warning the user not to do parallel
3754# builds.
3755chmod -w .
3756save_CFLAGS="$CFLAGS"
3757CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3758compiler_c_o=no
3759if { (eval echo configure:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3760 # The compiler can only warn and ignore the option if not recognized
3761 # So say no if there are warnings
3762 if test -s out/conftest.err; then
3763 lt_cv_compiler_c_o=no
3764 else
3765 lt_cv_compiler_c_o=yes
3766 fi
3767else
3768 # Append any errors to the config.log.
3769 cat out/conftest.err 1>&5
3770 lt_cv_compiler_c_o=no
3771fi
3772CFLAGS="$save_CFLAGS"
3773chmod u+w .
3774$rm conftest* out/*
3775rmdir out
3776cd ..
3777rmdir conftest
3778$rm -r conftest 2>/dev/null
3779
3780fi
3781
3782compiler_c_o=$lt_cv_compiler_c_o
3783echo "$as_me:3783: result: $compiler_c_o" >&5
3784echo "${ECHO_T}$compiler_c_o" >&6
3785
3786if test x"$compiler_c_o" = x"yes"; then
3787 # Check to see if we can write to a .lo
3788 echo "$as_me:3788: checking if $compiler supports -c -o file.lo" >&5
3789echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
3790 if test "${lt_cv_compiler_o_lo+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793
3794 lt_cv_compiler_o_lo=no
3795 save_CFLAGS="$CFLAGS"
3796 CFLAGS="$CFLAGS -c -o conftest.lo"
3797 cat >conftest.$ac_ext <<_ACEOF
3798#line 3798 "configure"
3799#include "confdefs.h"
3800
3801int
3802main ()
3803{
3804int some_variable = 0;
3805 ;
3806 return 0;
3807}
3808_ACEOF
3809rm -f conftest.$ac_objext
3810if { (eval echo "$as_me:3810: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3812 ac_status=$?
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try='test -s conftest.$ac_objext'
3816 { (eval echo "$as_me:3816: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3821 # The compiler can only warn and ignore the option if not recognized
3822 # So say no if there are warnings
3823 if test -s conftest.err; then
3824 lt_cv_compiler_o_lo=no
3825 else
3826 lt_cv_compiler_o_lo=yes
3827 fi
3828
3829else
3830 echo "$as_me: failed program was:" >&5
3831cat conftest.$ac_ext >&5
3832fi
3833rm -f conftest.$ac_objext conftest.$ac_ext
3834 CFLAGS="$save_CFLAGS"
3835
3836fi
3837
3838 compiler_o_lo=$lt_cv_compiler_o_lo
3839 echo "$as_me:3839: result: $compiler_c_lo" >&5
3840echo "${ECHO_T}$compiler_c_lo" >&6
3841else
3842 compiler_o_lo=no
3843fi
3844
3845# Check to see if we can do hard links to lock some files if needed
3846hard_links="nottested"
3847if test "$compiler_c_o" = no && test "$need_locks" != no; then
3848 # do not overwrite the value of need_locks provided by the user
3849 echo "$as_me:3849: checking if we can lock with hard links" >&5
3850echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
3851 hard_links=yes
3852 $rm conftest*
3853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3854 touch conftest.a
3855 ln conftest.a conftest.b 2>&5 || hard_links=no
3856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3857 echo "$as_me:3857: result: $hard_links" >&5
3858echo "${ECHO_T}$hard_links" >&6
3859 if test "$hard_links" = no; then
3860 { echo "$as_me:3860: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
3861echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
3862 need_locks=warn
3863 fi
3864else
3865 need_locks=no
3866fi
3867
3868if test "$GCC" = yes; then
3869 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3870 echo "$as_me:3870: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3871echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
3872 echo "int some_variable = 0;" > conftest.$ac_ext
3873 save_CFLAGS="$CFLAGS"
3874 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3875 compiler_rtti_exceptions=no
3876 cat >conftest.$ac_ext <<_ACEOF
3877#line 3877 "configure"
3878#include "confdefs.h"
3879
3880int
3881main ()
3882{
3883int some_variable = 0;
3884 ;
3885 return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext
3889if { (eval echo "$as_me:3889: \"$ac_compile\"") >&5
3890 (eval $ac_compile) 2>&5
3891 ac_status=$?
3892 echo "$as_me:3892: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -s conftest.$ac_objext'
3895 { (eval echo "$as_me:3895: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:3898: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 # The compiler can only warn and ignore the option if not recognized
3901 # So say no if there are warnings
3902 if test -s conftest.err; then
3903 compiler_rtti_exceptions=no
3904 else
3905 compiler_rtti_exceptions=yes
3906 fi
3907
3908else
3909 echo "$as_me: failed program was:" >&5
3910cat conftest.$ac_ext >&5
3911fi
3912rm -f conftest.$ac_objext conftest.$ac_ext
3913 CFLAGS="$save_CFLAGS"
3914 echo "$as_me:3914: result: $compiler_rtti_exceptions" >&5
3915echo "${ECHO_T}$compiler_rtti_exceptions" >&6
3916
3917 if test "$compiler_rtti_exceptions" = "yes"; then
3918 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3919 else
3920 no_builtin_flag=' -fno-builtin'
3921 fi
3922fi
3923
3924# See if the linker supports building shared libraries.
3925echo "$as_me:3925: checking whether the linker ($LD) supports shared libraries" >&5
3926echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
3927
3928allow_undefined_flag=
3929no_undefined_flag=
3930need_lib_prefix=unknown
3931need_version=unknown
3932# when you set need_version to no, make sure it does not cause -set_version
3933# flags to be left without arguments
3934archive_cmds=
3935archive_expsym_cmds=
3936old_archive_from_new_cmds=
3937old_archive_from_expsyms_cmds=
3938export_dynamic_flag_spec=
3939whole_archive_flag_spec=
3940thread_safe_flag_spec=
3941hardcode_into_libs=no
3942hardcode_libdir_flag_spec=
3943hardcode_libdir_separator=
3944hardcode_direct=no
3945hardcode_minus_L=no
3946hardcode_shlibpath_var=unsupported
3947runpath_var=
3948link_all_deplibs=unknown
3949always_export_symbols=no
3950export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3951# include_expsyms should be a list of space-separated symbols to be *always*
3952# included in the symbol list
3953include_expsyms=
3954# exclude_expsyms can be an egrep regular expression of symbols to exclude
3955# it will be wrapped by ` (' and `)$', so one must not match beginning or
3956# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3957# as well as any symbol that contains `d'.
3958exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3959# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3960# platforms (ab)use it in PIC code, but their linkers get confused if
3961# the symbol is explicitly referenced. Since portable code cannot
3962# rely on this symbol name, it's probably fine to never include it in
3963# preloaded symbol tables.
3964extract_expsyms_cmds=
3965
3966case $host_os in
3967cygwin* | mingw* | pw32* )
3968 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3969 # When not using gcc, we currently assume that we are using
3970 # Microsoft Visual C++.
3971 if test "$GCC" != yes; then
3972 with_gnu_ld=no
3973 fi
3974 ;;
3975
3976esac
3977
3978ld_shlibs=yes
3979if test "$with_gnu_ld" = yes; then
3980 # If archive_cmds runs LD, not CC, wlarc should be empty
3981 wlarc='${wl}'
3982
3983 # See if GNU ld supports shared libraries.
3984 case $host_os in
3985 aix3* | aix4* | aix5*)
3986 # On AIX, the GNU linker is very broken
3987 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3988 ld_shlibs=no
3989 cat <<EOF 1>&2
3990
3991*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3992*** to be unable to reliably create shared libraries on AIX.
3993*** Therefore, libtool is disabling shared libraries support. If you
3994*** really care for shared libraries, you may want to modify your PATH
3995*** so that a non-GNU linker is found, and then restart.
3996
1410EOF 3997EOF
1411# The following way of writing the cache mishandles newlines in values, 3998 ;;
1412# but we know of no workaround that is simple, portable, and efficient. 3999
1413# So, don't put newlines in cache variables' values. 4000 amigaos*)
1414# Ultrix sh set writes to stderr and can't be redirected directly, 4001 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1415# and sets the high bit in the cache file unless we assign to the vars. 4002 hardcode_libdir_flag_spec='-L$libdir'
1416(set) 2>&1 | 4003 hardcode_minus_L=yes
1417 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4004
1418 *ac_space=\ *) 4005 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1419 # `set' does not quote correctly, so add quotes (double-quote substitution 4006 # that the semantics of dynamic libraries on AmigaOS, at least up
1420 # turns \\\\ into \\, and sed turns \\ into \). 4007 # to version 4, is to share data among multiple programs linked
1421 sed -n \ 4008 # with the same dynamic library. Since this doesn't match the
1422 -e "s/'/'\\\\''/g" \ 4009 # behavior of shared libraries on other platforms, we can use
1423 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4010 # them.
4011 ld_shlibs=no
4012 ;;
4013
4014 beos*)
4015 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4016 allow_undefined_flag=unsupported
4017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4018 # support --undefined. This deserves some investigation. FIXME
4019 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4020 else
4021 ld_shlibs=no
4022 fi
4023 ;;
4024
4025 cygwin* | mingw* | pw32*)
4026 # hardcode_libdir_flag_spec is actually meaningless, as there is
4027 # no search path for DLLs.
4028 hardcode_libdir_flag_spec='-L$libdir'
4029 allow_undefined_flag=unsupported
4030 always_export_symbols=yes
4031
4032 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4033 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4034 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4035 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4036 else $CC -o impgen impgen.c ; fi)~
4037 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4038
4039 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4040
4041 # cygwin and mingw dlls have different entry points and sets of symbols
4042 # to exclude.
4043 # FIXME: what about values for MSVC?
4044 dll_entry=__cygwin_dll_entry@12
4045 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4046 case $host_os in
4047 mingw*)
4048 # mingw values
4049 dll_entry=_DllMainCRTStartup@12
4050 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4051 ;;
4052 esac
4053
4054 # mingw and cygwin differ, and it's simplest to just exclude the union
4055 # of the two symbol sets.
4056 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4057
4058 # recent cygwin and mingw systems supply a stub DllMain which the user
4059 # can override, but on older systems we have to supply one (in ltdll.c)
4060 if test "x$lt_cv_need_dllmain" = "xyes"; then
4061 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4062 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4063 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4064 else
4065 ltdll_obj=
4066 ltdll_cmds=
4067 fi
4068
4069 # Extract the symbol export list from an `--export-all' def file,
4070 # then regenerate the def file from the symbol export list, so that
4071 # the compiled dll only exports the symbol export list.
4072 # Be careful not to strip the DATA tag left be newer dlltools.
4073 export_symbols_cmds="$ltdll_cmds"'
4074 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4075 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4076
4077 # If the export-symbols file already is a .def file (1st line
4078 # is EXPORTS), use it as is.
4079 # If DATA tags from a recent dlltool are present, honour them!
4080 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4081 cp $export_symbols $output_objdir/$soname-def;
4082 else
4083 echo EXPORTS > $output_objdir/$soname-def;
4084 _lt_hint=1;
4085 cat $export_symbols | while read symbol; do
4086 set dummy \$symbol;
4087 case \$# in
4088 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4089 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4090 esac;
4091 _lt_hint=`expr 1 + \$_lt_hint`;
4092 done;
4093 fi~
4094 '"$ltdll_cmds"'
4095 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4096 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4097 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4098 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4099 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4100 ;;
4101
4102 netbsd*)
4103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4104 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4105 wlarc=
4106 else
4107 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4108 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4109 fi
4110 ;;
4111
4112 solaris* | sysv5*)
4113 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4114 ld_shlibs=no
4115 cat <<EOF 1>&2
4116
4117*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4118*** create shared libraries on Solaris systems. Therefore, libtool
4119*** is disabling shared libraries support. We urge you to upgrade GNU
4120*** binutils to release 2.9.1 or newer. Another option is to modify
4121*** your PATH or compiler configuration so that the native linker is
4122*** used, and then restart.
4123
4124EOF
4125 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4128 else
4129 ld_shlibs=no
4130 fi
4131 ;;
4132
4133 sunos4*)
4134 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4135 wlarc=
4136 hardcode_direct=yes
4137 hardcode_shlibpath_var=no
4138 ;;
4139
4140 *)
4141 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4143 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4144 else
4145 ld_shlibs=no
4146 fi
4147 ;;
4148 esac
4149
4150 if test "$ld_shlibs" = yes; then
4151 runpath_var=LD_RUN_PATH
4152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4153 export_dynamic_flag_spec='${wl}--export-dynamic'
4154 case $host_os in
4155 cygwin* | mingw* | pw32*)
4156 # dlltool doesn't understand --whole-archive et. al.
4157 whole_archive_flag_spec=
4158 ;;
4159 *)
4160 # ancient GNU ld didn't support --whole-archive et. al.
4161 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4163 else
4164 whole_archive_flag_spec=
4165 fi
4166 ;;
4167 esac
4168 fi
4169else
4170 # PORTME fill in a description of your system's linker (not GNU ld)
4171 case $host_os in
4172 aix3*)
4173 allow_undefined_flag=unsupported
4174 always_export_symbols=yes
4175 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4176 # Note: this linker hardcodes the directories in LIBPATH if there
4177 # are no directories specified by -L.
4178 hardcode_minus_L=yes
4179 if test "$GCC" = yes && test -z "$link_static_flag"; then
4180 # Neither direct hardcoding nor static linking is supported with a
4181 # broken collect2.
4182 hardcode_direct=unsupported
4183 fi
4184 ;;
4185
4186 aix4* | aix5*)
4187 # When large executables or shared objects are built, AIX ld can
4188 # have problems creating the table of contents. If linking a library
4189 # or program results in "error TOC overflow" add -mminimal-toc to
4190 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4191 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4192
4193 archive_cmds=''
4194 hardcode_libdir_separator=':'
4195 if test "$GCC" = yes; then
4196 collect2name=`${CC} -print-prog-name=collect2`
4197 if test -f "$collect2name" && \
4198 strings "$collect2name" | grep resolve_lib_name >/dev/null
4199 then
4200 # We have reworked collect2
4201 hardcode_direct=yes
4202 else
4203 # We have old collect2
4204 hardcode_direct=unsupported
4205 # It fails to find uninstalled libraries when the uninstalled
4206 # path is not listed in the libpath. Setting hardcode_minus_L
4207 # to unsupported forces relinking
4208 hardcode_minus_L=yes
4209 hardcode_libdir_flag_spec='-L$libdir'
4210 hardcode_libdir_separator=
4211 fi
4212 shared_flag='-shared'
4213 else
4214 if test "$host_cpu" = ia64; then
4215 shared_flag='-G'
4216 else
4217 shared_flag='${wl}-bM:SRE'
4218 fi
4219 hardcode_direct=yes
4220 fi
4221
4222 if test "$host_cpu" = ia64; then
4223 # On IA64, the linker does run time linking by default, so we don't
4224 # have to do anything special.
4225 aix_use_runtimelinking=no
4226 exp_sym_flag='-Bexport'
4227 no_entry_flag=""
4228 else
4229 # Test if we are trying to use run time linking, or normal AIX style linking.
4230 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4231 aix_use_runtimelinking=no
4232 for ld_flag in $LDFLAGS; do
4233 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4234 aix_use_runtimelinking=yes
4235 break
4236 fi
4237 done
4238 exp_sym_flag='-bexport'
4239 no_entry_flag='-bnoentry'
4240 fi
4241 # It seems that -bexpall can do strange things, so it is better to
4242 # generate a list of symbols to export.
4243 always_export_symbols=yes
4244 if test "$aix_use_runtimelinking" = yes; then
4245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4246 allow_undefined_flag=' -Wl,-G'
4247 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4248 else
4249 if test "$host_cpu" = ia64; then
4250 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4251 allow_undefined_flag="-znodefs"
4252 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4253 else
4254 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4255 # Warning - without using the other run time loading flags, -berok will
4256 # link without error, but may produce a broken library.
4257 allow_undefined_flag='${wl}-berok"
4258 # This is a bit strange, but is similar to how AIX traditionally builds
4259 # it's shared libraries.
4260 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4261 fi
4262 fi
4263 ;;
4264
4265 amigaos*)
4266 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4267 hardcode_libdir_flag_spec='-L$libdir'
4268 hardcode_minus_L=yes
4269 # see comment about different semantics on the GNU ld section
4270 ld_shlibs=no
4271 ;;
4272
4273 cygwin* | mingw* | pw32*)
4274 # When not using gcc, we currently assume that we are using
4275 # Microsoft Visual C++.
4276 # hardcode_libdir_flag_spec is actually meaningless, as there is
4277 # no search path for DLLs.
4278 hardcode_libdir_flag_spec=' '
4279 allow_undefined_flag=unsupported
4280 # Tell ltmain to make .lib files, not .a files.
4281 libext=lib
4282 # FIXME: Setting linknames here is a bad hack.
4283 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4284 # The linker will automatically build a .lib file if we build a DLL.
4285 old_archive_from_new_cmds='true'
4286 # FIXME: Should let the user specify the lib program.
4287 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4288 fix_srcfile_path='`cygpath -w "$srcfile"`'
4289 ;;
4290
4291 darwin* | rhapsody*)
4292 allow_undefined_flag='-undefined suppress'
4293 # FIXME: Relying on posixy $() will cause problems for
4294 # cross-compilation, but unfortunately the echo tests do not
4295 # yet detect zsh echo's removal of \ escapes.
4296 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4297 # We need to add '_' to the symbols in $export_symbols first
4298 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4299 hardcode_direct=yes
4300 hardcode_shlibpath_var=no
4301 whole_archive_flag_spec='-all_load $convenience'
4302 ;;
4303
4304 freebsd1*)
4305 ld_shlibs=no
4306 ;;
4307
4308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4309 # support. Future versions do this automatically, but an explicit c++rt0.o
4310 # does not break anything, and helps significantly (at the cost of a little
4311 # extra space).
4312 freebsd2.2*)
4313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4314 hardcode_libdir_flag_spec='-R$libdir'
4315 hardcode_direct=yes
4316 hardcode_shlibpath_var=no
4317 ;;
4318
4319 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4320 freebsd2*)
4321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4322 hardcode_direct=yes
4323 hardcode_minus_L=yes
4324 hardcode_shlibpath_var=no
4325 ;;
4326
4327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4328 freebsd*)
4329 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4330 hardcode_libdir_flag_spec='-R$libdir'
4331 hardcode_direct=yes
4332 hardcode_shlibpath_var=no
4333 ;;
4334
4335 hpux9* | hpux10* | hpux11*)
4336 case $host_os in
4337 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4338 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4339 esac
4340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4341 hardcode_libdir_separator=:
4342 hardcode_direct=yes
4343 hardcode_minus_L=yes # Not in the search PATH, but as the default
4344 # location of the library.
4345 export_dynamic_flag_spec='${wl}-E'
4346 ;;
4347
4348 irix5* | irix6*)
4349 if test "$GCC" = yes; then
4350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4351 else
4352 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4353 fi
4354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4355 hardcode_libdir_separator=:
4356 link_all_deplibs=yes
4357 ;;
4358
4359 netbsd*)
4360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4362 else
4363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4364 fi
4365 hardcode_libdir_flag_spec='-R$libdir'
4366 hardcode_direct=yes
4367 hardcode_shlibpath_var=no
4368 ;;
4369
4370 newsos6)
4371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4372 hardcode_direct=yes
4373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4374 hardcode_libdir_separator=:
4375 hardcode_shlibpath_var=no
4376 ;;
4377
4378 openbsd*)
4379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4380 hardcode_libdir_flag_spec='-R$libdir'
4381 hardcode_direct=yes
4382 hardcode_shlibpath_var=no
4383 ;;
4384
4385 os2*)
4386 hardcode_libdir_flag_spec='-L$libdir'
4387 hardcode_minus_L=yes
4388 allow_undefined_flag=unsupported
4389 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4390 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4391 ;;
4392
4393 osf3*)
4394 if test "$GCC" = yes; then
4395 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4396 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4397 else
4398 allow_undefined_flag=' -expect_unresolved \*'
4399 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4400 fi
4401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4402 hardcode_libdir_separator=:
4403 ;;
4404
4405 osf4* | osf5*) # as osf3* with the addition of -msym flag
4406 if test "$GCC" = yes; then
4407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4408 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4410 else
4411 allow_undefined_flag=' -expect_unresolved \*'
4412 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4413 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4414 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4415
4416 #Both c and cxx compiler support -rpath directly
4417 hardcode_libdir_flag_spec='-rpath $libdir'
4418 fi
4419 hardcode_libdir_separator=:
4420 ;;
4421
4422 sco3.2v5*)
4423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4424 hardcode_shlibpath_var=no
4425 runpath_var=LD_RUN_PATH
4426 hardcode_runpath_var=yes
4427 ;;
4428
4429 solaris*)
4430 no_undefined_flag=' -z defs'
4431 # $CC -shared without GNU ld will not create a library from C++
4432 # object files and a static libstdc++, better avoid it by now
4433 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4434 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4435 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4436 hardcode_libdir_flag_spec='-R$libdir'
4437 hardcode_shlibpath_var=no
4438 case $host_os in
4439 solaris2.[0-5] | solaris2.[0-5].*) ;;
4440 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4441 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4442 esac
4443 link_all_deplibs=yes
4444 ;;
4445
4446 sunos4*)
4447 if test "x$host_vendor" = xsequent; then
4448 # Use $CC to link under sequent, because it throws in some extra .o
4449 # files that make .init and .fini sections work.
4450 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4451 else
4452 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4453 fi
4454 hardcode_libdir_flag_spec='-L$libdir'
4455 hardcode_direct=yes
4456 hardcode_minus_L=yes
4457 hardcode_shlibpath_var=no
4458 ;;
4459
4460 sysv4)
4461 if test "x$host_vendor" = xsno; then
4462 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4463 hardcode_direct=yes # is this really true???
4464 else
4465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4467 fi
4468 runpath_var='LD_RUN_PATH'
4469 hardcode_shlibpath_var=no
4470 ;;
4471
4472 sysv4.3*)
4473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4474 hardcode_shlibpath_var=no
4475 export_dynamic_flag_spec='-Bexport'
4476 ;;
4477
4478 sysv5*)
4479 no_undefined_flag=' -z text'
4480 # $CC -shared without GNU ld will not create a library from C++
4481 # object files and a static libstdc++, better avoid it by now
4482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4483 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4485 hardcode_libdir_flag_spec=
4486 hardcode_shlibpath_var=no
4487 runpath_var='LD_RUN_PATH'
4488 ;;
4489
4490 uts4*)
4491 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4492 hardcode_libdir_flag_spec='-L$libdir'
4493 hardcode_shlibpath_var=no
4494 ;;
4495
4496 dgux*)
4497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4498 hardcode_libdir_flag_spec='-L$libdir'
4499 hardcode_shlibpath_var=no
4500 ;;
4501
4502 sysv4*MP*)
4503 if test -d /usr/nec; then
4504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4505 hardcode_shlibpath_var=no
4506 runpath_var=LD_RUN_PATH
4507 hardcode_runpath_var=yes
4508 ld_shlibs=yes
4509 fi
4510 ;;
4511
4512 sysv4.2uw2*)
4513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4514 hardcode_direct=yes
4515 hardcode_minus_L=no
4516 hardcode_shlibpath_var=no
4517 hardcode_runpath_var=yes
4518 runpath_var=LD_RUN_PATH
4519 ;;
4520
4521 sysv5uw7* | unixware7*)
4522 no_undefined_flag='${wl}-z ${wl}text'
4523 if test "$GCC" = yes; then
4524 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4525 else
4526 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4527 fi
4528 runpath_var='LD_RUN_PATH'
4529 hardcode_shlibpath_var=no
4530 ;;
4531
4532 *)
4533 ld_shlibs=no
4534 ;;
4535 esac
4536fi
4537echo "$as_me:4537: result: $ld_shlibs" >&5
4538echo "${ECHO_T}$ld_shlibs" >&6
4539test "$ld_shlibs" = no && can_build_shared=no
4540
4541# Check hardcoding attributes.
4542echo "$as_me:4542: checking how to hardcode library paths into programs" >&5
4543echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
4544hardcode_action=
4545if test -n "$hardcode_libdir_flag_spec" || \
4546 test -n "$runpath_var"; then
4547
4548 # We can hardcode non-existant directories.
4549 if test "$hardcode_direct" != no &&
4550 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4551 # have to relink, otherwise we might link with an installed library
4552 # when we should be linking with a yet-to-be-installed one
4553 ## test "$hardcode_shlibpath_var" != no &&
4554 test "$hardcode_minus_L" != no; then
4555 # Linking always hardcodes the temporary library directory.
4556 hardcode_action=relink
4557 else
4558 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4559 hardcode_action=immediate
4560 fi
4561else
4562 # We cannot hardcode anything, or else we can only hardcode existing
4563 # directories.
4564 hardcode_action=unsupported
4565fi
4566echo "$as_me:4566: result: $hardcode_action" >&5
4567echo "${ECHO_T}$hardcode_action" >&6
4568
4569striplib=
4570old_striplib=
4571echo "$as_me:4571: checking whether stripping libraries is possible" >&5
4572echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
4573if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4574 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4575 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4576 echo "$as_me:4576: result: yes" >&5
4577echo "${ECHO_T}yes" >&6
4578else
4579 echo "$as_me:4579: result: no" >&5
4580echo "${ECHO_T}no" >&6
4581fi
4582
4583reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584test -z "$deplibs_check_method" && deplibs_check_method=unknown
4585
4586# PORTME Fill in your ld.so characteristics
4587echo "$as_me:4587: checking dynamic linker characteristics" >&5
4588echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4589library_names_spec=
4590libname_spec='lib$name'
4591soname_spec=
4592postinstall_cmds=
4593postuninstall_cmds=
4594finish_cmds=
4595finish_eval=
4596shlibpath_var=
4597shlibpath_overrides_runpath=unknown
4598version_type=none
4599dynamic_linker="$host_os ld.so"
4600sys_lib_dlsearch_path_spec="/lib /usr/lib"
4601sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4602
4603case $host_os in
4604aix3*)
4605 version_type=linux
4606 library_names_spec='${libname}${release}.so$versuffix $libname.a'
4607 shlibpath_var=LIBPATH
4608
4609 # AIX has no versioning support, so we append a major version to the name.
4610 soname_spec='${libname}${release}.so$major'
4611 ;;
4612
4613aix4* | aix5*)
4614 version_type=linux
4615 if test "$host_cpu" = ia64; then
4616 # AIX 5 supports IA64
4617 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4618 shlibpath_var=LD_LIBRARY_PATH
4619 else
4620 # With GCC up to 2.95.x, collect2 would create an import file
4621 # for dependence libraries. The import file would start with
4622 # the line `#! .'. This would cause the generated library to
4623 # depend on `.', always an invalid library. This was fixed in
4624 # development snapshots of GCC prior to 3.0.
4625 case $host_os in
4626 aix4 | aix4.[01] | aix4.[01].*)
4627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4628 echo ' yes '
4629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4630 :
4631 else
4632 can_build_shared=no
4633 fi
4634 ;;
4635 esac
4636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4637 # soname into executable. Probably we can add versioning support to
4638 # collect2, so additional links can be useful in future.
4639 if test "$aix_use_runtimelinking" = yes; then
4640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4641 # lib<name>.a to let people know that these are not typical AIX shared libraries.
4642 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4643 else
4644 # We preserve .a as extension for shared libraries through AIX4.2
4645 # and later when we are not doing run time linking.
4646 library_names_spec='${libname}${release}.a $libname.a'
4647 soname_spec='${libname}${release}.so$major'
4648 fi
4649 shlibpath_var=LIBPATH
4650 deplibs_check_method=pass_all
4651 fi
4652 ;;
4653
4654amigaos*)
4655 library_names_spec='$libname.ixlibrary $libname.a'
4656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4657 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4658 ;;
4659
4660beos*)
4661 library_names_spec='${libname}.so'
4662 dynamic_linker="$host_os ld.so"
4663 shlibpath_var=LIBRARY_PATH
4664 ;;
4665
4666bsdi4*)
4667 version_type=linux
4668 need_version=no
4669 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4670 soname_spec='${libname}${release}.so$major'
4671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4672 shlibpath_var=LD_LIBRARY_PATH
4673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4675 export_dynamic_flag_spec=-rdynamic
4676 # the default ld.so.conf also contains /usr/contrib/lib and
4677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4678 # libtool to hard-code these into programs
4679 ;;
4680
4681cygwin* | mingw* | pw32*)
4682 version_type=windows
4683 need_version=no
4684 need_lib_prefix=no
4685 case $GCC,$host_os in
4686 yes,cygwin*)
4687 library_names_spec='$libname.dll.a'
4688 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4689 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4690 dldir=$destdir/`dirname \$dlpath`~
4691 test -d \$dldir || mkdir -p \$dldir~
4692 $install_prog .libs/$dlname \$dldir/$dlname'
4693 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4694 dlpath=$dir/\$dldll~
4695 $rm \$dlpath'
4696 ;;
4697 yes,mingw*)
4698 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4700 ;;
4701 yes,pw32*)
4702 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
1424 ;; 4703 ;;
1425 *) 4704 *)
1426 # `set' quotes correctly as required by POSIX, so do not add quotes. 4705 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
1427 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1428 ;; 4706 ;;
1429 esac >> confcache 4707 esac
1430if cmp -s $cache_file confcache; then 4708 dynamic_linker='Win32 ld.exe'
4709 # FIXME: first we should search . and the directory the executable is in
4710 shlibpath_var=PATH
4711 ;;
4712
4713darwin* | rhapsody*)
4714 dynamic_linker="$host_os dyld"
4715 version_type=darwin
4716 need_lib_prefix=no
4717 need_version=no
4718 # FIXME: Relying on posixy $() will cause problems for
4719 # cross-compilation, but unfortunately the echo tests do not
4720 # yet detect zsh echo's removal of \ escapes.
4721 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4722 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4723 shlibpath_overrides_runpath=yes
4724 shlibpath_var=DYLD_LIBRARY_PATH
4725 ;;
4726
4727freebsd1*)
4728 dynamic_linker=no
4729 ;;
4730
4731freebsd*)
4732 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4733 version_type=freebsd-$objformat
4734 case $version_type in
4735 freebsd-elf*)
4736 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4737 need_version=no
4738 need_lib_prefix=no
4739 ;;
4740 freebsd-*)
4741 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4742 need_version=yes
4743 ;;
4744 esac
4745 shlibpath_var=LD_LIBRARY_PATH
4746 case $host_os in
4747 freebsd2*)
4748 shlibpath_overrides_runpath=yes
4749 ;;
4750 *)
4751 shlibpath_overrides_runpath=no
4752 hardcode_into_libs=yes
4753 ;;
4754 esac
4755 ;;
4756
4757gnu*)
4758 version_type=linux
4759 need_lib_prefix=no
4760 need_version=no
4761 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4762 soname_spec='${libname}${release}.so$major'
4763 shlibpath_var=LD_LIBRARY_PATH
4764 hardcode_into_libs=yes
4765 ;;
4766
4767hpux9* | hpux10* | hpux11*)
4768 # Give a soname corresponding to the major version so that dld.sl refuses to
4769 # link against other versions.
4770 dynamic_linker="$host_os dld.sl"
4771 version_type=sunos
4772 need_lib_prefix=no
4773 need_version=no
4774 shlibpath_var=SHLIB_PATH
4775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4776 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4777 soname_spec='${libname}${release}.sl$major'
4778 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4779 postinstall_cmds='chmod 555 $lib'
4780 ;;
4781
4782irix5* | irix6*)
4783 version_type=irix
4784 need_lib_prefix=no
4785 need_version=no
4786 soname_spec='${libname}${release}.so$major'
4787 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4788 case $host_os in
4789 irix5*)
4790 libsuff= shlibsuff=
4791 ;;
4792 *)
4793 case $LD in # libtool.m4 will add one of these switches to LD
4794 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4795 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4796 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4797 *) libsuff= shlibsuff= libmagic=never-match;;
4798 esac
4799 ;;
4800 esac
4801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4802 shlibpath_overrides_runpath=no
4803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4805 ;;
4806
4807# No shared lib support for Linux oldld, aout, or coff.
4808linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4809 dynamic_linker=no
4810 ;;
4811
4812# This must be Linux ELF.
4813linux-gnu*)
4814 version_type=linux
4815 need_lib_prefix=no
4816 need_version=no
4817 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4818 soname_spec='${libname}${release}.so$major'
4819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4820 shlibpath_var=LD_LIBRARY_PATH
4821 shlibpath_overrides_runpath=no
4822 # This implies no fast_install, which is unacceptable.
4823 # Some rework will be needed to allow for fast_install
4824 # before this can be enabled.
4825 hardcode_into_libs=yes
4826
4827 # We used to test for /lib/ld.so.1 and disable shared libraries on
4828 # powerpc, because MkLinux only supported shared libraries with the
4829 # GNU dynamic linker. Since this was broken with cross compilers,
4830 # most powerpc-linux boxes support dynamic linking these days and
4831 # people can always --disable-shared, the test was removed, and we
4832 # assume the GNU/Linux dynamic linker is in use.
4833 dynamic_linker='GNU/Linux ld.so'
4834 ;;
4835
4836netbsd*)
4837 version_type=sunos
4838 need_lib_prefix=no
4839 need_version=no
4840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4841 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4843 dynamic_linker='NetBSD (a.out) ld.so'
4844 else
4845 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4846 soname_spec='${libname}${release}.so$major'
4847 dynamic_linker='NetBSD ld.elf_so'
4848 fi
4849 shlibpath_var=LD_LIBRARY_PATH
4850 shlibpath_overrides_runpath=yes
4851 hardcode_into_libs=yes
4852 ;;
4853
4854newsos6)
4855 version_type=linux
4856 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4857 shlibpath_var=LD_LIBRARY_PATH
4858 shlibpath_overrides_runpath=yes
4859 ;;
4860
4861openbsd*)
4862 version_type=sunos
4863 if test "$with_gnu_ld" = yes; then
4864 need_lib_prefix=no
4865 need_version=no
4866 fi
4867 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4869 shlibpath_var=LD_LIBRARY_PATH
4870 ;;
4871
4872os2*)
4873 libname_spec='$name'
4874 need_lib_prefix=no
4875 library_names_spec='$libname.dll $libname.a'
4876 dynamic_linker='OS/2 ld.exe'
4877 shlibpath_var=LIBPATH
4878 ;;
4879
4880osf3* | osf4* | osf5*)
4881 version_type=osf
4882 need_version=no
4883 soname_spec='${libname}${release}.so'
4884 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4885 shlibpath_var=LD_LIBRARY_PATH
4886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4888 ;;
4889
4890sco3.2v5*)
4891 version_type=osf
4892 soname_spec='${libname}${release}.so$major'
4893 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4894 shlibpath_var=LD_LIBRARY_PATH
4895 ;;
4896
4897solaris*)
4898 version_type=linux
4899 need_lib_prefix=no
4900 need_version=no
4901 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4902 soname_spec='${libname}${release}.so$major'
4903 shlibpath_var=LD_LIBRARY_PATH
4904 shlibpath_overrides_runpath=yes
4905 hardcode_into_libs=yes
4906 # ldd complains unless libraries are executable
4907 postinstall_cmds='chmod +x $lib'
4908 ;;
4909
4910sunos4*)
4911 version_type=sunos
4912 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4914 shlibpath_var=LD_LIBRARY_PATH
4915 shlibpath_overrides_runpath=yes
4916 if test "$with_gnu_ld" = yes; then
4917 need_lib_prefix=no
4918 fi
4919 need_version=yes
4920 ;;
4921
4922sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4923 version_type=linux
4924 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4925 soname_spec='${libname}${release}.so$major'
4926 shlibpath_var=LD_LIBRARY_PATH
4927 case $host_vendor in
4928 sni)
4929 shlibpath_overrides_runpath=no
4930 ;;
4931 motorola)
4932 need_lib_prefix=no
4933 need_version=no
4934 shlibpath_overrides_runpath=no
4935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4936 ;;
4937 esac
4938 ;;
4939
4940uts4*)
4941 version_type=linux
4942 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4943 soname_spec='${libname}${release}.so$major'
4944 shlibpath_var=LD_LIBRARY_PATH
4945 ;;
4946
4947dgux*)
4948 version_type=linux
4949 need_lib_prefix=no
4950 need_version=no
4951 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4952 soname_spec='${libname}${release}.so$major'
4953 shlibpath_var=LD_LIBRARY_PATH
4954 ;;
4955
4956sysv4*MP*)
4957 if test -d /usr/nec ;then
4958 version_type=linux
4959 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4960 soname_spec='$libname.so.$major'
4961 shlibpath_var=LD_LIBRARY_PATH
4962 fi
4963 ;;
4964
4965*)
4966 dynamic_linker=no
4967 ;;
4968esac
4969echo "$as_me:4969: result: $dynamic_linker" >&5
4970echo "${ECHO_T}$dynamic_linker" >&6
4971test "$dynamic_linker" = no && can_build_shared=no
4972
4973# Report the final consequences.
4974echo "$as_me:4974: checking if libtool supports shared libraries" >&5
4975echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
4976echo "$as_me:4976: result: $can_build_shared" >&5
4977echo "${ECHO_T}$can_build_shared" >&6
4978
4979if test "$hardcode_action" = relink; then
4980 # Fast installation is not supported
4981 enable_fast_install=no
4982elif test "$shlibpath_overrides_runpath" = yes ||
4983 test "$enable_shared" = no; then
4984 # Fast installation is not necessary
4985 enable_fast_install=needless
4986fi
4987
4988variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4989if test "$GCC" = yes; then
4990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4991fi
4992
4993if test "x$enable_dlopen" != xyes; then
4994 enable_dlopen=unknown
4995 enable_dlopen_self=unknown
4996 enable_dlopen_self_static=unknown
4997else
4998 lt_cv_dlopen=no
4999 lt_cv_dlopen_libs=
5000
5001 case $host_os in
5002 beos*)
5003 lt_cv_dlopen="load_add_on"
5004 lt_cv_dlopen_libs=
5005 lt_cv_dlopen_self=yes
5006 ;;
5007
5008 cygwin* | mingw* | pw32*)
5009 lt_cv_dlopen="LoadLibrary"
5010 lt_cv_dlopen_libs=
5011 ;;
5012
5013 *)
5014 echo "$as_me:5014: checking for dlopen in -ldl" >&5
5015echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5016if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018else
5019 ac_check_lib_save_LIBS=$LIBS
5020LIBS="-ldl $LIBS"
5021cat >conftest.$ac_ext <<_ACEOF
5022#line 5022 "configure"
5023#include "confdefs.h"
5024
5025/* Override any gcc2 internal prototype to avoid an error. */
5026#ifdef __cplusplus
5027extern "C"
5028#endif
5029/* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5031char dlopen ();
5032int
5033main ()
5034{
5035dlopen ();
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040rm -f conftest.$ac_objext conftest$ac_exeext
5041if { (eval echo "$as_me:5041: \"$ac_link\"") >&5
5042 (eval $ac_link) 2>&5
5043 ac_status=$?
5044 echo "$as_me:5044: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:5047: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:5050: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_dl_dlopen=yes
5053else
5054 echo "$as_me: failed program was:" >&5
5055cat conftest.$ac_ext >&5
5056ac_cv_lib_dl_dlopen=no
5057fi
5058rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5059LIBS=$ac_check_lib_save_LIBS
5060fi
5061echo "$as_me:5061: result: $ac_cv_lib_dl_dlopen" >&5
5062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5063if test $ac_cv_lib_dl_dlopen = yes; then
5064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5065else
5066 echo "$as_me:5066: checking for dlopen" >&5
5067echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5068if test "${ac_cv_func_dlopen+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 cat >conftest.$ac_ext <<_ACEOF
5072#line 5072 "configure"
5073#include "confdefs.h"
5074/* System header to define __stub macros and hopefully few prototypes,
5075 which can conflict with char dlopen (); below. */
5076#include <assert.h>
5077/* Override any gcc2 internal prototype to avoid an error. */
5078#ifdef __cplusplus
5079extern "C"
5080#endif
5081/* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5083char dlopen ();
5084char (*f) ();
5085
5086int
5087main ()
5088{
5089/* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092#if defined (__stub_dlopen) || defined (__stub___dlopen)
5093choke me
5094#else
5095f = dlopen;
5096#endif
5097
5098 ;
5099 return 0;
5100}
5101_ACEOF
5102rm -f conftest.$ac_objext conftest$ac_exeext
5103if { (eval echo "$as_me:5103: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>&5
5105 ac_status=$?
5106 echo "$as_me:5106: \$? = $ac_status" >&5
5107 (exit $ac_status); } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:5109: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:5112: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 ac_cv_func_dlopen=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117cat conftest.$ac_ext >&5
5118ac_cv_func_dlopen=no
5119fi
5120rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5121fi
5122echo "$as_me:5122: result: $ac_cv_func_dlopen" >&5
5123echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5124if test $ac_cv_func_dlopen = yes; then
5125 lt_cv_dlopen="dlopen"
5126else
5127 echo "$as_me:5127: checking for shl_load" >&5
5128echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5129if test "${ac_cv_func_shl_load+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132 cat >conftest.$ac_ext <<_ACEOF
5133#line 5133 "configure"
5134#include "confdefs.h"
5135/* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char shl_load (); below. */
5137#include <assert.h>
5138/* Override any gcc2 internal prototype to avoid an error. */
5139#ifdef __cplusplus
5140extern "C"
5141#endif
5142/* We use char because int might match the return type of a gcc2
5143 builtin and then its argument prototype would still apply. */
5144char shl_load ();
5145char (*f) ();
5146
5147int
5148main ()
5149{
5150/* The GNU C library defines this for functions which it implements
5151 to always fail with ENOSYS. Some functions are actually named
5152 something starting with __ and the normal name is an alias. */
5153#if defined (__stub_shl_load) || defined (__stub___shl_load)
5154choke me
5155#else
5156f = shl_load;
5157#endif
5158
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163rm -f conftest.$ac_objext conftest$ac_exeext
5164if { (eval echo "$as_me:5164: \"$ac_link\"") >&5
5165 (eval $ac_link) 2>&5
5166 ac_status=$?
5167 echo "$as_me:5167: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:5170: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:5173: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 ac_cv_func_shl_load=yes
5176else
5177 echo "$as_me: failed program was:" >&5
5178cat conftest.$ac_ext >&5
5179ac_cv_func_shl_load=no
5180fi
5181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182fi
5183echo "$as_me:5183: result: $ac_cv_func_shl_load" >&5
5184echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5185if test $ac_cv_func_shl_load = yes; then
5186 lt_cv_dlopen="shl_load"
5187else
5188 echo "$as_me:5188: checking for dlopen in -lsvld" >&5
5189echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5190if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 ac_check_lib_save_LIBS=$LIBS
5194LIBS="-lsvld $LIBS"
5195cat >conftest.$ac_ext <<_ACEOF
5196#line 5196 "configure"
5197#include "confdefs.h"
5198
5199/* Override any gcc2 internal prototype to avoid an error. */
5200#ifdef __cplusplus
5201extern "C"
5202#endif
5203/* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205char dlopen ();
5206int
5207main ()
5208{
5209dlopen ();
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
5215if { (eval echo "$as_me:5215: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5217 ac_status=$?
5218 echo "$as_me:5218: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:5221: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:5224: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_lib_svld_dlopen=yes
5227else
5228 echo "$as_me: failed program was:" >&5
5229cat conftest.$ac_ext >&5
5230ac_cv_lib_svld_dlopen=no
5231fi
5232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233LIBS=$ac_check_lib_save_LIBS
5234fi
5235echo "$as_me:5235: result: $ac_cv_lib_svld_dlopen" >&5
5236echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5237if test $ac_cv_lib_svld_dlopen = yes; then
5238 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5239else
5240 echo "$as_me:5240: checking for shl_load in -ldld" >&5
5241echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5242if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245 ac_check_lib_save_LIBS=$LIBS
5246LIBS="-ldld $LIBS"
5247cat >conftest.$ac_ext <<_ACEOF
5248#line 5248 "configure"
5249#include "confdefs.h"
5250
5251/* Override any gcc2 internal prototype to avoid an error. */
5252#ifdef __cplusplus
5253extern "C"
5254#endif
5255/* We use char because int might match the return type of a gcc2
5256 builtin and then its argument prototype would still apply. */
5257char shl_load ();
5258int
5259main ()
5260{
5261shl_load ();
5262 ;
5263 return 0;
5264}
5265_ACEOF
5266rm -f conftest.$ac_objext conftest$ac_exeext
5267if { (eval echo "$as_me:5267: \"$ac_link\"") >&5
5268 (eval $ac_link) 2>&5
5269 ac_status=$?
5270 echo "$as_me:5270: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -s conftest$ac_exeext'
5273 { (eval echo "$as_me:5273: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:5276: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 ac_cv_lib_dld_shl_load=yes
5279else
5280 echo "$as_me: failed program was:" >&5
5281cat conftest.$ac_ext >&5
5282ac_cv_lib_dld_shl_load=no
5283fi
5284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5285LIBS=$ac_check_lib_save_LIBS
5286fi
5287echo "$as_me:5287: result: $ac_cv_lib_dld_shl_load" >&5
5288echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5289if test $ac_cv_lib_dld_shl_load = yes; then
5290 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5291fi
5292
5293fi
5294
5295fi
5296
5297fi
5298
5299fi
5300
5301 ;;
5302 esac
5303
5304 if test "x$lt_cv_dlopen" != xno; then
5305 enable_dlopen=yes
5306 else
5307 enable_dlopen=no
5308 fi
5309
5310 case $lt_cv_dlopen in
5311 dlopen)
5312 save_CPPFLAGS="$CPPFLAGS"
5313 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5314
5315 save_LDFLAGS="$LDFLAGS"
5316 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5317
5318 save_LIBS="$LIBS"
5319 LIBS="$lt_cv_dlopen_libs $LIBS"
5320
5321 echo "$as_me:5321: checking whether a program can dlopen itself" >&5
5322echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5323if test "${lt_cv_dlopen_self+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326 if test "$cross_compiling" = yes; then :
5327 lt_cv_dlopen_self=cross
5328else
5329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5330 lt_status=$lt_dlunknown
5331 cat > conftest.$ac_ext <<EOF
5332#line 5332 "configure"
5333#include "confdefs.h"
5334
5335#if HAVE_DLFCN_H
5336#include <dlfcn.h>
5337#endif
5338
5339#include <stdio.h>
5340
5341#ifdef RTLD_GLOBAL
5342# define LT_DLGLOBAL RTLD_GLOBAL
5343#else
5344# ifdef DL_GLOBAL
5345# define LT_DLGLOBAL DL_GLOBAL
5346# else
5347# define LT_DLGLOBAL 0
5348# endif
5349#endif
5350
5351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5352 find out it does not work in some platform. */
5353#ifndef LT_DLLAZY_OR_NOW
5354# ifdef RTLD_LAZY
5355# define LT_DLLAZY_OR_NOW RTLD_LAZY
5356# else
5357# ifdef DL_LAZY
5358# define LT_DLLAZY_OR_NOW DL_LAZY
5359# else
5360# ifdef RTLD_NOW
5361# define LT_DLLAZY_OR_NOW RTLD_NOW
5362# else
5363# ifdef DL_NOW
5364# define LT_DLLAZY_OR_NOW DL_NOW
5365# else
5366# define LT_DLLAZY_OR_NOW 0
5367# endif
5368# endif
5369# endif
5370# endif
5371#endif
5372
5373#ifdef __cplusplus
5374extern "C" void exit (int);
5375#endif
5376
5377void fnord() { int i=42;}
5378int main ()
5379{
5380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5381 int status = $lt_dlunknown;
5382
5383 if (self)
5384 {
5385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5387 /* dlclose (self); */
5388 }
5389
5390 exit (status);
5391}
5392EOF
5393 if { (eval echo "$as_me:5393: \"$ac_link\"") >&5
5394 (eval $ac_link) 2>&5
5395 ac_status=$?
5396 echo "$as_me:5396: \$? = $ac_status" >&5
5397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5398 (./conftest; exit; ) 2>/dev/null
5399 lt_status=$?
5400 case x$lt_status in
5401 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5402 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5403 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5404 esac
5405 else :
5406 # compilation failed
5407 lt_cv_dlopen_self=no
5408 fi
5409fi
5410rm -fr conftest*
5411
5412fi
5413echo "$as_me:5413: result: $lt_cv_dlopen_self" >&5
5414echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5415
5416 if test "x$lt_cv_dlopen_self" = xyes; then
5417 LDFLAGS="$LDFLAGS $link_static_flag"
5418 echo "$as_me:5418: checking whether a statically linked program can dlopen itself" >&5
5419echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5420if test "${lt_cv_dlopen_self_static+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 if test "$cross_compiling" = yes; then :
5424 lt_cv_dlopen_self_static=cross
5425else
5426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5427 lt_status=$lt_dlunknown
5428 cat > conftest.$ac_ext <<EOF
5429#line 5429 "configure"
5430#include "confdefs.h"
5431
5432#if HAVE_DLFCN_H
5433#include <dlfcn.h>
5434#endif
5435
5436#include <stdio.h>
5437
5438#ifdef RTLD_GLOBAL
5439# define LT_DLGLOBAL RTLD_GLOBAL
5440#else
5441# ifdef DL_GLOBAL
5442# define LT_DLGLOBAL DL_GLOBAL
5443# else
5444# define LT_DLGLOBAL 0
5445# endif
5446#endif
5447
5448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5449 find out it does not work in some platform. */
5450#ifndef LT_DLLAZY_OR_NOW
5451# ifdef RTLD_LAZY
5452# define LT_DLLAZY_OR_NOW RTLD_LAZY
5453# else
5454# ifdef DL_LAZY
5455# define LT_DLLAZY_OR_NOW DL_LAZY
5456# else
5457# ifdef RTLD_NOW
5458# define LT_DLLAZY_OR_NOW RTLD_NOW
5459# else
5460# ifdef DL_NOW
5461# define LT_DLLAZY_OR_NOW DL_NOW
5462# else
5463# define LT_DLLAZY_OR_NOW 0
5464# endif
5465# endif
5466# endif
5467# endif
5468#endif
5469
5470#ifdef __cplusplus
5471extern "C" void exit (int);
5472#endif
5473
5474void fnord() { int i=42;}
5475int main ()
5476{
5477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5478 int status = $lt_dlunknown;
5479
5480 if (self)
5481 {
5482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5483 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5484 /* dlclose (self); */
5485 }
5486
5487 exit (status);
5488}
5489EOF
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5492 ac_status=$?
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5495 (./conftest; exit; ) 2>/dev/null
5496 lt_status=$?
5497 case x$lt_status in
5498 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5499 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5500 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5501 esac
5502 else :
5503 # compilation failed
5504 lt_cv_dlopen_self_static=no
5505 fi
5506fi
5507rm -fr conftest*
5508
5509fi
5510echo "$as_me:5510: result: $lt_cv_dlopen_self_static" >&5
5511echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5512 fi
5513
5514 CPPFLAGS="$save_CPPFLAGS"
5515 LDFLAGS="$save_LDFLAGS"
5516 LIBS="$save_LIBS"
5517 ;;
5518 esac
5519
5520 case $lt_cv_dlopen_self in
5521 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5522 *) enable_dlopen_self=unknown ;;
5523 esac
5524
5525 case $lt_cv_dlopen_self_static in
5526 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
5527 *) enable_dlopen_self_static=unknown ;;
5528 esac
5529fi
5530
5531if test "$enable_shared" = yes && test "$GCC" = yes; then
5532 case $archive_cmds in
5533 *'~'*)
5534 # FIXME: we may have to deal with multi-command sequences.
5535 ;;
5536 '$CC '*)
5537 # Test whether the compiler implicitly links with -lc since on some
5538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5539 # to ld, don't add -lc before -lgcc.
5540 echo "$as_me:5540: checking whether -lc should be explicitly linked in" >&5
5541echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5542 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545 $rm conftest*
5546 echo 'static int dummy;' > conftest.$ac_ext
5547
5548 if { (eval echo "$as_me:5548: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5550 ac_status=$?
5551 echo "$as_me:5551: \$? = $ac_status" >&5
5552 (exit $ac_status); }; then
5553 soname=conftest
5554 lib=conftest
5555 libobjs=conftest.$ac_objext
5556 deplibs=
5557 wl=$lt_cv_prog_cc_wl
5558 compiler_flags=-v
5559 linker_flags=-v
5560 verstring=
5561 output_objdir=.
5562 libname=conftest
5563 save_allow_undefined_flag=$allow_undefined_flag
5564 allow_undefined_flag=
5565 if { (eval echo "$as_me:5565: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5566 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5567 ac_status=$?
5568 echo "$as_me:5568: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570 then
5571 lt_cv_archive_cmds_need_lc=no
5572 else
5573 lt_cv_archive_cmds_need_lc=yes
5574 fi
5575 allow_undefined_flag=$save_allow_undefined_flag
5576 else
5577 cat conftest.err 1>&5
5578 fi
5579fi
5580
5581 echo "$as_me:5581: result: $lt_cv_archive_cmds_need_lc" >&5
5582echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
5583 ;;
5584 esac
5585fi
5586need_lc=${lt_cv_archive_cmds_need_lc-yes}
5587
5588# The second clause should only fire when bootstrapping the
5589# libtool distribution, otherwise you forgot to ship ltmain.sh
5590# with your package, and you will get complaints that there are
5591# no rules to generate ltmain.sh.
5592if test -f "$ltmain"; then
1431 : 5593 :
1432else 5594else
1433 if test -w $cache_file; then 5595 # If there is no Makefile yet, we rely on a make rule to execute
1434 echo "updating cache $cache_file" 5596 # `config.status --recheck' to rerun these tests and create the
1435 cat confcache > $cache_file 5597 # libtool script then.
1436 else 5598 test -f Makefile && make "$ltmain"
1437 echo "not updating unwritable cache $cache_file"
1438 fi
1439fi 5599fi
1440rm -f confcache
1441 5600
1442
1443# Actually configure libtool. ac_aux_dir is where install-sh is found.
1444CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1445LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1446LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1447DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1448${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1449$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1450|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1451
1452# Reload cache, that may have been modified by ltconfig
1453if test -r "$cache_file"; then 5601if test -f "$ltmain"; then
1454 echo "loading cache $cache_file" 5602 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
1455 . $cache_file 5603 $rm -f "${ofile}T"
1456else
1457 echo "creating cache $cache_file"
1458 > $cache_file
1459fi
1460 5604
5605 echo creating $ofile
5606
5607 # Now quote all the things that may contain metacharacters while being
5608 # careful not to overquote the AC_SUBSTed values. We take copies of the
5609 # variables and quote the copies for generation of the libtool script.
5610 for var in echo old_CC old_CFLAGS \
5611 AR AR_FLAGS CC LD LN_S NM SHELL \
5612 reload_flag reload_cmds wl \
5613 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5614 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5615 library_names_spec soname_spec \
5616 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5617 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5618 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5619 old_striplib striplib file_magic_cmd export_symbols_cmds \
5620 deplibs_check_method allow_undefined_flag no_undefined_flag \
5621 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5622 hardcode_libdir_flag_spec hardcode_libdir_separator \
5623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5624 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5625
5626 case $var in
5627 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5628 old_postinstall_cmds | old_postuninstall_cmds | \
5629 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5630 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5631 postinstall_cmds | postuninstall_cmds | \
5632 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5633 # Double-quote double-evaled strings.
5634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5635 ;;
5636 *)
5637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5638 ;;
5639 esac
5640 done
5641
5642 cat <<__EOF__ > "${ofile}T"
5643#! $SHELL
5644
5645# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5646# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5647# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5648#
5649# Copyright (C) 1996-2000 Free Software Foundation, Inc.
5650# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5651#
5652# This program is free software; you can redistribute it and/or modify
5653# it under the terms of the GNU General Public License as published by
5654# the Free Software Foundation; either version 2 of the License, or
5655# (at your option) any later version.
5656#
5657# This program is distributed in the hope that it will be useful, but
5658# WITHOUT ANY WARRANTY; without even the implied warranty of
5659# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5660# General Public License for more details.
5661#
5662# You should have received a copy of the GNU General Public License
5663# along with this program; if not, write to the Free Software
5664# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5665#
5666# As a special exception to the GNU General Public License, if you
5667# distribute this file as part of a program that contains a
5668# configuration script generated by Autoconf, you may include it under
5669# the same distribution terms that you use for the rest of that program.
5670
5671# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5672Xsed="sed -e s/^X//"
5673
5674# The HP-UX ksh and POSIX shell print the target directory to stdout
5675# if CDPATH is set.
5676if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5677
5678# ### BEGIN LIBTOOL CONFIG
5679
5680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5681
5682# Shell to use when invoking shell scripts.
5683SHELL=$lt_SHELL
5684
5685# Whether or not to build shared libraries.
5686build_libtool_libs=$enable_shared
5687
5688# Whether or not to add -lc for building shared libraries.
5689build_libtool_need_lc=$need_lc
5690
5691# Whether or not to build static libraries.
5692build_old_libs=$enable_static
5693
5694# Whether or not to optimize for fast installation.
5695fast_install=$enable_fast_install
5696
5697# The host system.
5698host_alias=$host_alias
5699host=$host
5700
5701# An echo program that does not interpret backslashes.
5702echo=$lt_echo
5703
5704# The archiver.
5705AR=$lt_AR
5706AR_FLAGS=$lt_AR_FLAGS
5707
5708# The default C compiler.
5709CC=$lt_CC
5710
5711# Is the compiler the GNU C compiler?
5712with_gcc=$GCC
5713
5714# The linker used to build libraries.
5715LD=$lt_LD
5716
5717# Whether we need hard or soft links.
5718LN_S=$lt_LN_S
5719
5720# A BSD-compatible nm program.
5721NM=$lt_NM
5722
5723# A symbol stripping program
5724STRIP=$STRIP
5725
5726# Used to examine libraries when file_magic_cmd begins "file"
5727MAGIC_CMD=$MAGIC_CMD
5728
5729# Used on cygwin: DLL creation program.
5730DLLTOOL="$DLLTOOL"
5731
5732# Used on cygwin: object dumper.
5733OBJDUMP="$OBJDUMP"
5734
5735# Used on cygwin: assembler.
5736AS="$AS"
5737
5738# The name of the directory that contains temporary libtool files.
5739objdir=$objdir
5740
5741# How to create reloadable object files.
5742reload_flag=$lt_reload_flag
5743reload_cmds=$lt_reload_cmds
5744
5745# How to pass a linker flag through the compiler.
5746wl=$lt_wl
5747
5748# Object file suffix (normally "o").
5749objext="$ac_objext"
5750
5751# Old archive suffix (normally "a").
5752libext="$libext"
5753
5754# Executable file suffix (normally "").
5755exeext="$exeext"
5756
5757# Additional compiler flags for building library objects.
5758pic_flag=$lt_pic_flag
5759pic_mode=$pic_mode
5760
5761# Does compiler simultaneously support -c and -o options?
5762compiler_c_o=$lt_compiler_c_o
5763
5764# Can we write directly to a .lo ?
5765compiler_o_lo=$lt_compiler_o_lo
5766
5767# Must we lock files when doing compilation ?
5768need_locks=$lt_need_locks
5769
5770# Do we need the lib prefix for modules?
5771need_lib_prefix=$need_lib_prefix
5772
5773# Do we need a version for libraries?
5774need_version=$need_version
5775
5776# Whether dlopen is supported.
5777dlopen_support=$enable_dlopen
5778
5779# Whether dlopen of programs is supported.
5780dlopen_self=$enable_dlopen_self
5781
5782# Whether dlopen of statically linked programs is supported.
5783dlopen_self_static=$enable_dlopen_self_static
5784
5785# Compiler flag to prevent dynamic linking.
5786link_static_flag=$lt_link_static_flag
5787
5788# Compiler flag to turn off builtin functions.
5789no_builtin_flag=$lt_no_builtin_flag
5790
5791# Compiler flag to allow reflexive dlopens.
5792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5793
5794# Compiler flag to generate shared objects directly from archives.
5795whole_archive_flag_spec=$lt_whole_archive_flag_spec
5796
5797# Compiler flag to generate thread-safe objects.
5798thread_safe_flag_spec=$lt_thread_safe_flag_spec
5799
5800# Library versioning type.
5801version_type=$version_type
5802
5803# Format of library name prefix.
5804libname_spec=$lt_libname_spec
5805
5806# List of archive names. First name is the real one, the rest are links.
5807# The last name is the one that the linker finds with -lNAME.
5808library_names_spec=$lt_library_names_spec
5809
5810# The coded name of the library, if different from the real name.
5811soname_spec=$lt_soname_spec
5812
5813# Commands used to build and install an old-style archive.
5814RANLIB=$lt_RANLIB
5815old_archive_cmds=$lt_old_archive_cmds
5816old_postinstall_cmds=$lt_old_postinstall_cmds
5817old_postuninstall_cmds=$lt_old_postuninstall_cmds
5818
5819# Create an old-style archive from a shared archive.
5820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5821
5822# Create a temporary old-style archive to link instead of a shared archive.
5823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5824
5825# Commands used to build and install a shared archive.
5826archive_cmds=$lt_archive_cmds
5827archive_expsym_cmds=$lt_archive_expsym_cmds
5828postinstall_cmds=$lt_postinstall_cmds
5829postuninstall_cmds=$lt_postuninstall_cmds
5830
5831# Commands to strip libraries.
5832old_striplib=$lt_old_striplib
5833striplib=$lt_striplib
5834
5835# Method to check whether dependent libraries are shared objects.
5836deplibs_check_method=$lt_deplibs_check_method
5837
5838# Command to use when deplibs_check_method == file_magic.
5839file_magic_cmd=$lt_file_magic_cmd
5840
5841# Flag that allows shared libraries with undefined symbols to be built.
5842allow_undefined_flag=$lt_allow_undefined_flag
5843
5844# Flag that forces no undefined symbols.
5845no_undefined_flag=$lt_no_undefined_flag
5846
5847# Commands used to finish a libtool library installation in a directory.
5848finish_cmds=$lt_finish_cmds
5849
5850# Same as above, but a single script fragment to be evaled but not shown.
5851finish_eval=$lt_finish_eval
5852
5853# Take the output of nm and produce a listing of raw symbols and C names.
5854global_symbol_pipe=$lt_global_symbol_pipe
5855
5856# Transform the output of nm in a proper C declaration
5857global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5858
5859# This is the shared library runtime path variable.
5860runpath_var=$runpath_var
5861
5862# This is the shared library path variable.
5863shlibpath_var=$shlibpath_var
5864
5865# Is shlibpath searched before the hard-coded library search path?
5866shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5867
5868# How to hardcode a shared library path into an executable.
5869hardcode_action=$hardcode_action
5870
5871# Whether we should hardcode library paths into libraries.
5872hardcode_into_libs=$hardcode_into_libs
5873
5874# Flag to hardcode \$libdir into a binary during linking.
5875# This must work even if \$libdir does not exist.
5876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5877
5878# Whether we need a single -rpath flag with a separated argument.
5879hardcode_libdir_separator=$lt_hardcode_libdir_separator
5880
5881# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5882# resulting binary.
5883hardcode_direct=$hardcode_direct
5884
5885# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5886# resulting binary.
5887hardcode_minus_L=$hardcode_minus_L
5888
5889# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5890# the resulting binary.
5891hardcode_shlibpath_var=$hardcode_shlibpath_var
5892
5893# Variables whose values should be saved in libtool wrapper scripts and
5894# restored at relink time.
5895variables_saved_for_relink="$variables_saved_for_relink"
5896
5897# Whether libtool must link a program against all its dependency libraries.
5898link_all_deplibs=$link_all_deplibs
5899
5900# Compile-time system search path for libraries
5901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5902
5903# Run-time system search path for libraries
5904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5905
5906# Fix the shell variable \$srcfile for the compiler.
5907fix_srcfile_path="$fix_srcfile_path"
5908
5909# Set to yes if exported symbols are required.
5910always_export_symbols=$always_export_symbols
5911
5912# The commands to list exported symbols.
5913export_symbols_cmds=$lt_export_symbols_cmds
5914
5915# The commands to extract the exported symbol list from a shared archive.
5916extract_expsyms_cmds=$lt_extract_expsyms_cmds
5917
5918# Symbols that should not be listed in the preloaded symbols.
5919exclude_expsyms=$lt_exclude_expsyms
5920
5921# Symbols that must always be exported.
5922include_expsyms=$lt_include_expsyms
5923
5924# ### END LIBTOOL CONFIG
5925
5926__EOF__
5927
5928 case $host_os in
5929 aix3*)
5930 cat <<\EOF >> "${ofile}T"
5931
5932# AIX sometimes has problems with the GCC collect2 program. For some
5933# reason, if we set the COLLECT_NAMES environment variable, the problems
5934# vanish in a puff of smoke.
5935if test "X${COLLECT_NAMES+set}" != Xset; then
5936 COLLECT_NAMES=
5937 export COLLECT_NAMES
5938fi
5939EOF
5940 ;;
5941 esac
5942
5943 case $host_os in
5944 cygwin* | mingw* | pw32* | os2*)
5945 cat <<'EOF' >> "${ofile}T"
5946 # This is a source program that is used to create dlls on Windows
5947 # Don't remove nor modify the starting and closing comments
5948# /* ltdll.c starts here */
5949# #define WIN32_LEAN_AND_MEAN
5950# #include <windows.h>
5951# #undef WIN32_LEAN_AND_MEAN
5952# #include <stdio.h>
5953#
5954# #ifndef __CYGWIN__
5955# # ifdef __CYGWIN32__
5956# # define __CYGWIN__ __CYGWIN32__
5957# # endif
5958# #endif
5959#
5960# #ifdef __cplusplus
5961# extern "C" {
5962# #endif
5963# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5964# #ifdef __cplusplus
5965# }
5966# #endif
5967#
5968# #ifdef __CYGWIN__
5969# #include <cygwin/cygwin_dll.h>
5970# DECLARE_CYGWIN_DLL( DllMain );
5971# #endif
5972# HINSTANCE __hDllInstance_base;
5973#
5974# BOOL APIENTRY
5975# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5976# {
5977# __hDllInstance_base = hInst;
5978# return TRUE;
5979# }
5980# /* ltdll.c ends here */
5981 # This is a source program that is used to create import libraries
5982 # on Windows for dlls which lack them. Don't remove nor modify the
5983 # starting and closing comments
5984# /* impgen.c starts here */
5985# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5986#
5987# This file is part of GNU libtool.
5988#
5989# This program is free software; you can redistribute it and/or modify
5990# it under the terms of the GNU General Public License as published by
5991# the Free Software Foundation; either version 2 of the License, or
5992# (at your option) any later version.
5993#
5994# This program is distributed in the hope that it will be useful,
5995# but WITHOUT ANY WARRANTY; without even the implied warranty of
5996# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5997# GNU General Public License for more details.
5998#
5999# You should have received a copy of the GNU General Public License
6000# along with this program; if not, write to the Free Software
6001# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6002# */
6003#
6004# #include <stdio.h> /* for printf() */
6005# #include <unistd.h> /* for open(), lseek(), read() */
6006# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6007# #include <string.h> /* for strdup() */
6008#
6009# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6010# #ifndef O_BINARY
6011# #define O_BINARY 0
6012# #endif
6013#
6014# static unsigned int
6015# pe_get16 (fd, offset)
6016# int fd;
6017# int offset;
6018# {
6019# unsigned char b[2];
6020# lseek (fd, offset, SEEK_SET);
6021# read (fd, b, 2);
6022# return b[0] + (b[1]<<8);
6023# }
6024#
6025# static unsigned int
6026# pe_get32 (fd, offset)
6027# int fd;
6028# int offset;
6029# {
6030# unsigned char b[4];
6031# lseek (fd, offset, SEEK_SET);
6032# read (fd, b, 4);
6033# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6034# }
6035#
6036# static unsigned int
6037# pe_as32 (ptr)
6038# void *ptr;
6039# {
6040# unsigned char *b = ptr;
6041# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6042# }
6043#
6044# int
6045# main (argc, argv)
6046# int argc;
6047# char *argv[];
6048# {
6049# int dll;
6050# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6051# unsigned long export_rva, export_size, nsections, secptr, expptr;
6052# unsigned long name_rvas, nexp;
6053# unsigned char *expdata, *erva;
6054# char *filename, *dll_name;
6055#
6056# filename = argv[1];
6057#
6058# dll = open(filename, O_RDONLY|O_BINARY);
6059# if (dll < 1)
6060# return 1;
6061#
6062# dll_name = filename;
6063#
6064# for (i=0; filename[i]; i++)
6065# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6066# dll_name = filename + i +1;
6067#
6068# pe_header_offset = pe_get32 (dll, 0x3c);
6069# opthdr_ofs = pe_header_offset + 4 + 20;
6070# num_entries = pe_get32 (dll, opthdr_ofs + 92);
6071#
6072# if (num_entries < 1) /* no exports */
6073# return 1;
6074#
6075# export_rva = pe_get32 (dll, opthdr_ofs + 96);
6076# export_size = pe_get32 (dll, opthdr_ofs + 100);
6077# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6078# secptr = (pe_header_offset + 4 + 20 +
6079# pe_get16 (dll, pe_header_offset + 4 + 16));
6080#
6081# expptr = 0;
6082# for (i = 0; i < nsections; i++)
6083# {
6084# char sname[8];
6085# unsigned long secptr1 = secptr + 40 * i;
6086# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6087# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6088# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6089# lseek(dll, secptr1, SEEK_SET);
6090# read(dll, sname, 8);
6091# if (vaddr <= export_rva && vaddr+vsize > export_rva)
6092# {
6093# expptr = fptr + (export_rva - vaddr);
6094# if (export_rva + export_size > vaddr + vsize)
6095# export_size = vsize - (export_rva - vaddr);
6096# break;
6097# }
6098# }
6099#
6100# expdata = (unsigned char*)malloc(export_size);
6101# lseek (dll, expptr, SEEK_SET);
6102# read (dll, expdata, export_size);
6103# erva = expdata - export_rva;
6104#
6105# nexp = pe_as32 (expdata+24);
6106# name_rvas = pe_as32 (expdata+32);
6107#
6108# printf ("EXPORTS\n");
6109# for (i = 0; i<nexp; i++)
6110# {
6111# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6112# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6113# }
6114#
6115# return 0;
6116# }
6117# /* impgen.c ends here */
6118
6119EOF
6120 ;;
6121 esac
6122
6123 # We use sed instead of cat because bash on DJGPP gets confused if
6124 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6125 # text mode, it properly converts lines to CR/LF. This bash problem
6126 # is reportedly fixed, but why not run on old versions too?
6127 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6128
6129 mv -f "${ofile}T" "$ofile" || \
6130 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6131 chmod +x "$ofile"
6132fi
1461 6133
1462# This can be used to rebuild libtool when needed 6134# This can be used to rebuild libtool when needed
1463LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 6135LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1464 6136
1465# Always use our own libtool. 6137# Always use our own libtool.
1466LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6138LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1467 6139
1468# Redirect the config.log output again, so that the ltconfig log is not 6140# Prevent multiple expansion
1469# clobbered by the next message.
1470exec 5>>./config.log
1471 6141
6142# Check whether --enable-compile-warnings or --disable-compile-warnings was given.
6143if test "${enable_compile_warnings+set}" = set; then
6144 enableval="$enable_compile_warnings"
1472 6145
1473 6146else
1474echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 6147 enable_compile_warnings=minimum
1475echo "configure:1476: checking how to run the C preprocessor" >&5
1476# On Suns, sometimes $CPP names a directory.
1477if test -n "$CPP" && test -d "$CPP"; then
1478 CPP=
1479fi 6148fi;
1480if test -z "$CPP"; then 6149
1481if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 6150echo "$as_me:6150: checking what warning flags to pass to the C compiler" >&5
6151echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
6152warnCFLAGS=
6153if test "x$GCC" != xyes; then
6154 enable_compile_warnings=no
6155fi
6156if test "x$enable_compile_warnings" != "xno"; then
6157 if test "x$GCC" = "xyes"; then
6158 case " $CFLAGS " in
6159 *\ \ -Wall\ \ *) ;;
6160 *) warnCFLAGS="-Wall -Wunused" ;;
6161 esac
6162
6163 ## -W is not all that useful. And it cannot be controlled
6164 ## with individual -Wno-xxx flags, unlike -Wall
6165 if test "x$enable_compile_warnings" = "xyes"; then
6166 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith"
6167 fi
6168 fi
6169fi
6170echo "$as_me:6170: result: $warnCFLAGS" >&5
6171echo "${ECHO_T}$warnCFLAGS" >&6
6172
6173# Check whether --enable-iso-c or --disable-iso-c was given.
6174if test "${enable_iso_c+set}" = set; then
6175 enableval="$enable_iso_c"
6176
6177else
6178 enable_iso_c=no
6179fi;
6180
6181echo "$as_me:6181: checking what language compliance flags to pass to the C compiler" >&5
6182echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
6183complCFLAGS=
6184if test "x$enable_iso_c" != "xno"; then
6185 if test "x$GCC" = "xyes"; then
6186 case " $CFLAGS " in
6187 *\ \ -ansi\ \ *) ;;
6188 *) complCFLAGS="$complCFLAGS -ansi" ;;
6189 esac
6190
6191 case " $CFLAGS " in
6192 *\ \ -pedantic\ \ *) ;;
6193 *) complCFLAGS="$complCFLAGS -pedantic" ;;
6194 esac
6195 fi
6196fi
6197echo "$as_me:6197: result: $complCFLAGS" >&5
6198echo "${ECHO_T}$complCFLAGS" >&6
6199if test "x$cflags_set" != "xyes"; then
6200 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
6201 cflags_set=yes
6202
6203fi
6204
6205# Check whether --with-imagemagick or --without-imagemagick was given.
6206if test "${with_imagemagick+set}" = set; then
6207 withval="$with_imagemagick"
6208 IMAGEMAGICK=$withval
6209else
6210 IMAGEMAGICK='yes'
6211fi;
6212if test x"$IMAGEMAGICK" != xno ; then
6213 # Extract the first word of "Magick-config", so it can be a program name with args.
6214set dummy Magick-config; ac_word=$2
6215echo "$as_me:6215: checking for $ac_word" >&5
6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6217if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
1482 echo $ac_n "(cached) $ac_c" 1>&6 6218 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else 6219else
1484 # This must be in double quotes, not single quotes, because CPP may get 6220 if test -n "$IMAGEMAGICK"; then
1485 # substituted into the Makefile and "${CC-cc}" will confuse make. 6221 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
1486 CPP="${CC-cc} -E" 6222else
1487 # On the NeXT, cc -E runs the code through the compiler's parser, 6223 ac_save_IFS=$IFS; IFS=$ac_path_separator
1488 # not just through cpp. 6224ac_dummy="$PATH"
6225for ac_dir in $ac_dummy; do
6226 IFS=$ac_save_IFS
6227 test -z "$ac_dir" && ac_dir=.
6228 $as_executable_p "$ac_dir/$ac_word" || continue
6229ac_cv_prog_IMAGEMAGICK="yes"
6230echo "$as_me:6230: found $ac_dir/$ac_word" >&5
6231break
6232done
6233
6234 test -z "$ac_cv_prog_IMAGEMAGICK" && ac_cv_prog_IMAGEMAGICK="no"
6235fi
6236fi
6237IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
6238if test -n "$IMAGEMAGICK"; then
6239 echo "$as_me:6239: result: $IMAGEMAGICK" >&5
6240echo "${ECHO_T}$IMAGEMAGICK" >&6
6241else
6242 echo "$as_me:6242: result: no" >&5
6243echo "${ECHO_T}no" >&6
6244fi
6245
6246 if test x"$IMAGEMAGICK" != xno ; then
6247 CFLAGS_OLD="$CFLAGS"
6248 CPPFLAGS_OLD="$CPPFLAGS"
6249 LDFLAGS_OLD="$LDFLAGS"
6250 LIBS_OLD="$LIBS"
6251 CFLAGS="$CFLAGS `Magick-config --cflags`"
6252 CPPFLAGS="$CPPFLAGS `Magick-config --cppflags`"
6253 LDFLAGS="$LDFLAGS `Magick-config --ldflags`"
6254 LIBS="$LIBS `Magick-config --libs`"
6255
6256 echo "$as_me:6256: checking whether GetMagickInfo works" >&5
6257echo $ECHO_N "checking whether GetMagickInfo works... $ECHO_C" >&6
6258 if test "$cross_compiling" = yes; then
6259 IMAGEMAGICK=yes
6260else
1489 cat > conftest.$ac_ext <<EOF 6261 cat >conftest.$ac_ext <<_ACEOF
1490#line 1491 "configure" 6262#line 6262 "configure"
1491#include "confdefs.h" 6263#include "confdefs.h"
1492#include <assert.h> 6264 #include <magick/magick.h>
1493Syntax Error 6265 #include <magick/config.h>
6266 #include <stdio.h>
6267 extern void OpenModules(void);
6268 int main(void) { GetMagickInfo(NULL);
6269 #if defined(HasLTDL)
6270 OpenModules();
6271 #endif
6272 return (NULL == GetMagickInfo(NULL)); }
6273_ACEOF
6274rm -f conftest$ac_exeext
6275if { (eval echo "$as_me:6275: \"$ac_link\"") >&5
6276 (eval $ac_link) 2>&5
6277 ac_status=$?
6278 echo "$as_me:6278: \$? = $ac_status" >&5
6279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6280 { (eval echo "$as_me:6280: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 IMAGEMAGICK=yes
6286else
6287 echo "$as_me: program exited with status $ac_status" >&5
6288echo "$as_me: failed program was:" >&5
6289cat conftest.$ac_ext >&5
6290IMAGEMAGICK=no
6291fi
6292rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
6293fi
6294 echo "$as_me:6294: result: $IMAGEMAGICK" >&5
6295echo "${ECHO_T}$IMAGEMAGICK" >&6
6296 LDFLAGS="$LDFLAGS_OLD"
6297 LIBS="$LIBS_OLD"
6298 if test x"$IMAGEMAGICK" = xno ; then
6299 CFLAGS="$CFLAGS_OLD"
6300 CPPFLAGS="$CPPFLAGS_OLD"
6301 fi
6302 fi
6303fi
6304if test x"$IMAGEMAGICK" = xyes ; then
6305 LIB_MAGICK="`Magick-config --libs` `Magick-config --ldflags`"
6306
6307cat >>confdefs.h <<\EOF
6308#define IMAGEMAGICK 1
1494EOF 6309EOF
1495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6310
1496{ (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498if test -z "$ac_err"; then
1499 :
1500else 6311else
1501 echo "$ac_err" >&5 6312 LIB_MAGICK=
1502 echo "configure: failed program was:" >&5 6313fi
1503 cat conftest.$ac_ext >&5 6314
1504 rm -rf conftest* 6315echo "$as_me:6315: checking for ANSI C header files" >&5
1505 CPP="${CC-cc} -E -traditional-cpp" 6316echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6317if test "${ac_cv_header_stdc+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
1506 cat > conftest.$ac_ext <<EOF 6320 cat >conftest.$ac_ext <<_ACEOF
1507#line 1508 "configure" 6321#line 6321 "configure"
1508#include "confdefs.h"
1509#include <assert.h>
1510Syntax Error
1511EOF
1512ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513{ (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515if test -z "$ac_err"; then
1516 :
1517else
1518 echo "$ac_err" >&5
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1521 rm -rf conftest*
1522 CPP="${CC-cc} -nologo -E"
1523 cat > conftest.$ac_ext <<EOF
1524#line 1525 "configure"
1525#include "confdefs.h"
1526#include <assert.h>
1527Syntax Error
1528EOF
1529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530{ (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532if test -z "$ac_err"; then
1533 :
1534else
1535 echo "$ac_err" >&5
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 rm -rf conftest*
1539 CPP=/lib/cpp
1540fi
1541rm -f conftest*
1542fi
1543rm -f conftest*
1544fi
1545rm -f conftest*
1546 ac_cv_prog_CPP="$CPP"
1547fi
1548 CPP="$ac_cv_prog_CPP"
1549else
1550 ac_cv_prog_CPP="$CPP"
1551fi
1552echo "$ac_t""$CPP" 1>&6
1553
1554echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1555echo "configure:1556: checking for ANSI C header files" >&5
1556if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559 cat > conftest.$ac_ext <<EOF
1560#line 1561 "configure"
1561#include "confdefs.h" 6322#include "confdefs.h"
1562#include <stdlib.h> 6323#include <stdlib.h>
1563#include <stdarg.h> 6324#include <stdarg.h>
1564#include <string.h> 6325#include <string.h>
1565#include <float.h> 6326#include <float.h>
1566EOF 6327
1567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6328_ACEOF
1568{ (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6329if { (eval echo "$as_me:6329: \"$ac_cpp conftest.$ac_ext\"") >&5
1569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6331 ac_status=$?
6332 egrep -v '^ *\+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:6335: \$? = $ac_status" >&5
6336 (exit $ac_status); } >/dev/null; then
6337 if test -s conftest.err; then
6338 ac_cpp_err=$ac_c_preproc_warn_flag
6339 else
6340 ac_cpp_err=
6341 fi
6342else
6343 ac_cpp_err=yes
6344fi
1570if test -z "$ac_err"; then 6345if test -z "$ac_cpp_err"; then
1571 rm -rf conftest*
1572 ac_cv_header_stdc=yes 6346 ac_cv_header_stdc=yes
1573else 6347else
1574 echo "$ac_err" >&5
1575 echo "configure: failed program was:" >&5 6348 echo "$as_me: failed program was:" >&5
1576 cat conftest.$ac_ext >&5 6349 cat conftest.$ac_ext >&5
1577 rm -rf conftest*
1578 ac_cv_header_stdc=no 6350 ac_cv_header_stdc=no
1579fi 6351fi
1580rm -f conftest* 6352rm -f conftest.err conftest.$ac_ext
1581 6353
1582if test $ac_cv_header_stdc = yes; then 6354if test $ac_cv_header_stdc = yes; then
1583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1584cat > conftest.$ac_ext <<EOF 6356 cat >conftest.$ac_ext <<_ACEOF
1585#line 1586 "configure" 6357#line 6357 "configure"
1586#include "confdefs.h" 6358#include "confdefs.h"
1587#include <string.h> 6359#include <string.h>
1588EOF 6360
6361_ACEOF
1589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "memchr" >/dev/null 2>&1; then 6363 egrep "memchr" >/dev/null 2>&1; then
1591 : 6364 :
1592else 6365else
1593 rm -rf conftest*
1594 ac_cv_header_stdc=no 6366 ac_cv_header_stdc=no
1595fi 6367fi
1596rm -f conftest* 6368rm -f conftest*
1597 6369
1598fi 6370fi
1599 6371
1600if test $ac_cv_header_stdc = yes; then 6372if test $ac_cv_header_stdc = yes; then
1601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1602cat > conftest.$ac_ext <<EOF 6374 cat >conftest.$ac_ext <<_ACEOF
1603#line 1604 "configure" 6375#line 6375 "configure"
1604#include "confdefs.h" 6376#include "confdefs.h"
1605#include <stdlib.h> 6377#include <stdlib.h>
1606EOF 6378
6379_ACEOF
1607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "free" >/dev/null 2>&1; then 6381 egrep "free" >/dev/null 2>&1; then
1609 : 6382 :
1610else 6383else
1611 rm -rf conftest*
1612 ac_cv_header_stdc=no 6384 ac_cv_header_stdc=no
1613fi 6385fi
1614rm -f conftest* 6386rm -f conftest*
1615 6387
1616fi 6388fi
1617 6389
1618if test $ac_cv_header_stdc = yes; then 6390if test $ac_cv_header_stdc = yes; then
1619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1620if test "$cross_compiling" = yes; then 6392 if test "$cross_compiling" = yes; then
1621 : 6393 :
1622else 6394else
1623 cat > conftest.$ac_ext <<EOF 6395 cat >conftest.$ac_ext <<_ACEOF
1624#line 1625 "configure" 6396#line 6396 "configure"
1625#include "confdefs.h" 6397#include "confdefs.h"
1626#include <ctype.h> 6398#include <ctype.h>
6399#if ((' ' & 0x0FF) == 0x020)
1627#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6400# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1628#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6401# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6402#else
6403# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6404 || ('j' <= (c) && (c) <= 'r') \
6405 || ('s' <= (c) && (c) <= 'z'))
6406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6407#endif
6408
1629#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1630int main () { int i; for (i = 0; i < 256; i++) 6410int
1631if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 6411main ()
6412{
6413 int i;
6414 for (i = 0; i < 256; i++)
6415 if (XOR (islower (i), ISLOWER (i))
6416 || toupper (i) != TOUPPER (i))
6417 exit(2);
1632exit (0); } 6418 exit (0);
1633 6419}
1634EOF 6420_ACEOF
1635if { (eval echo configure:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6421rm -f conftest$ac_exeext
1636then 6422if { (eval echo "$as_me:6422: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6424 ac_status=$?
6425 echo "$as_me:6425: \$? = $ac_status" >&5
6426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6427 { (eval echo "$as_me:6427: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:6430: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
1637 : 6432 :
1638else 6433else
6434 echo "$as_me: program exited with status $ac_status" >&5
1639 echo "configure: failed program was:" >&5 6435echo "$as_me: failed program was:" >&5
1640 cat conftest.$ac_ext >&5 6436cat conftest.$ac_ext >&5
1641 rm -fr conftest*
1642 ac_cv_header_stdc=no 6437ac_cv_header_stdc=no
1643fi 6438fi
1644rm -fr conftest* 6439rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
1645fi 6440fi
1646
1647fi 6441fi
1648fi 6442fi
1649 6443echo "$as_me:6443: result: $ac_cv_header_stdc" >&5
1650echo "$ac_t""$ac_cv_header_stdc" 1>&6 6444echo "${ECHO_T}$ac_cv_header_stdc" >&6
1651if test $ac_cv_header_stdc = yes; then 6445if test $ac_cv_header_stdc = yes; then
6446
1652 cat >> confdefs.h <<\EOF 6447cat >>confdefs.h <<\EOF
1653#define STDC_HEADERS 1 6448#define STDC_HEADERS 1
1654EOF 6449EOF
1655 6450
1656fi 6451fi
1657 6452
1658for ac_hdr in unistd.h 6453for ac_header in unistd.h
1659do 6454do
1660ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6455ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1661echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1662echo "configure:1663: checking for $ac_hdr" >&5 6456echo "$as_me:6456: checking for $ac_header" >&5
6457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1663if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6458if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6 6459 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else 6460else
1666 cat > conftest.$ac_ext <<EOF 6461 cat >conftest.$ac_ext <<_ACEOF
1667#line 1668 "configure" 6462#line 6462 "configure"
1668#include "confdefs.h" 6463#include "confdefs.h"
1669#include <$ac_hdr> 6464#include <$ac_header>
6465_ACEOF
6466if { (eval echo "$as_me:6466: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 egrep -v '^ *\+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:6472: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 else
6477 ac_cpp_err=
6478 fi
6479else
6480 ac_cpp_err=yes
6481fi
6482if test -z "$ac_cpp_err"; then
6483 eval "$ac_ac_Header=yes"
6484else
6485 echo "$as_me: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6487 eval "$ac_ac_Header=no"
6488fi
6489rm -f conftest.err conftest.$ac_ext
6490fi
6491echo "$as_me:6491: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6492echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6493if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6494 cat >>confdefs.h <<EOF
6495#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1670EOF 6496EOF
1671ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6497
1672{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6498fi
1673ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6499done
6500
6501echo "$as_me:6501: checking for $CC option to accept ANSI C" >&5
6502echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
6503if test "${ac_cv_prog_cc_stdc+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 ac_cv_prog_cc_stdc=no
6507ac_save_CC=$CC
6508cat >conftest.$ac_ext <<_ACEOF
6509#line 6509 "configure"
6510#include "confdefs.h"
6511#include <stdarg.h>
6512#include <stdio.h>
6513#include <sys/types.h>
6514#include <sys/stat.h>
6515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6516struct buf { int x; };
6517FILE * (*rcsopen) (struct buf *, struct stat *, int);
6518static char *e (p, i)
6519 char **p;
6520 int i;
6521{
6522 return p[i];
6523}
6524static char *f (char * (*g) (char **, int), char **p, ...)
6525{
6526 char *s;
6527 va_list v;
6528 va_start (v,p);
6529 s = g (p, va_arg (v,int));
6530 va_end (v);
6531 return s;
6532}
6533int test (int i, double x);
6534struct s1 {int (*f) (int a);};
6535struct s2 {int (*f) (double a);};
6536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6537int argc;
6538char **argv;
6539int
6540main ()
6541{
6542return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547# Don't try gcc -ansi; that turns off useful extensions and
6548# breaks some systems' header files.
6549# AIX -qlanglvl=ansi
6550# Ultrix and OSF/1 -std1
6551# HP-UX 10.20 and later -Ae
6552# HP-UX older versions -Aa -D_HPUX_SOURCE
6553# SVR4 -Xc -D__EXTENSIONS__
6554for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6555do
6556 CC="$ac_save_CC $ac_arg"
6557 rm -f conftest.$ac_objext
6558if { (eval echo "$as_me:6558: \"$ac_compile\"") >&5
6559 (eval $ac_compile) 2>&5
6560 ac_status=$?
6561 echo "$as_me:6561: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -s conftest.$ac_objext'
6564 { (eval echo "$as_me:6564: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:6567: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_prog_cc_stdc=$ac_arg
6570break
6571else
6572 echo "$as_me: failed program was:" >&5
6573cat conftest.$ac_ext >&5
6574fi
6575rm -f conftest.$ac_objext
6576done
6577rm -f conftest.$ac_ext conftest.$ac_objext
6578CC=$ac_save_CC
6579
6580fi
6581
6582case "x$ac_cv_prog_cc_stdc" in
6583 x|xno)
6584 echo "$as_me:6584: result: none needed" >&5
6585echo "${ECHO_T}none needed" >&6 ;;
6586 *)
6587 echo "$as_me:6587: result: $ac_cv_prog_cc_stdc" >&5
6588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
6589 CC="$CC $ac_cv_prog_cc_stdc" ;;
6590esac
6591
6592echo "$as_me:6592: checking for an ANSI C-conforming const" >&5
6593echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6594if test "${ac_cv_c_const+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597 cat >conftest.$ac_ext <<_ACEOF
6598#line 6598 "configure"
6599#include "confdefs.h"
6600
6601int
6602main ()
6603{
6604/* FIXME: Include the comments suggested by Paul. */
6605#ifndef __cplusplus
6606 /* Ultrix mips cc rejects this. */
6607 typedef int charset[2];
6608 const charset x;
6609 /* SunOS 4.1.1 cc rejects this. */
6610 char const *const *ccp;
6611 char **p;
6612 /* NEC SVR4.0.2 mips cc rejects this. */
6613 struct point {int x, y;};
6614 static struct point const zero = {0,0};
6615 /* AIX XL C 1.02.0.0 rejects this.
6616 It does not let you subtract one const X* pointer from another in
6617 an arm of an if-expression whose if-part is not a constant
6618 expression */
6619 const char *g = "string";
6620 ccp = &g + (g ? g-g : 0);
6621 /* HPUX 7.0 cc rejects these. */
6622 ++ccp;
6623 p = (char**) ccp;
6624 ccp = (char const *const *) p;
6625 { /* SCO 3.2v4 cc rejects this. */
6626 char *t;
6627 char const *s = 0 ? (char *) 0 : (char const *) 0;
6628
6629 *t++ = 0;
6630 }
6631 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6632 int x[] = {25, 17};
6633 const int *foo = &x[0];
6634 ++foo;
6635 }
6636 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6637 typedef const int *iptr;
6638 iptr p = 0;
6639 ++p;
6640 }
6641 { /* AIX XL C 1.02.0.0 rejects this saying
6642 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6643 struct s { int j; const int *ap[3]; };
6644 struct s *b; b->j = 5;
6645 }
6646 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6647 const int foo = 10;
6648 }
6649#endif
6650
6651 ;
6652 return 0;
6653}
6654_ACEOF
6655rm -f conftest.$ac_objext
6656if { (eval echo "$as_me:6656: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>&5
6658 ac_status=$?
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest.$ac_objext'
6662 { (eval echo "$as_me:6662: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:6665: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_c_const=yes
6668else
6669 echo "$as_me: failed program was:" >&5
6670cat conftest.$ac_ext >&5
6671ac_cv_c_const=no
6672fi
6673rm -f conftest.$ac_objext conftest.$ac_ext
6674fi
6675echo "$as_me:6675: result: $ac_cv_c_const" >&5
6676echo "${ECHO_T}$ac_cv_c_const" >&6
6677if test $ac_cv_c_const = no; then
6678
6679cat >>confdefs.h <<\EOF
6680#define const
6681EOF
6682
6683fi
6684
6685for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
6686do
6687ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6688echo "$as_me:6688: checking for $ac_header" >&5
6689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6690if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 cat >conftest.$ac_ext <<_ACEOF
6694#line 6694 "configure"
6695#include "confdefs.h"
6696#include <$ac_header>
6697_ACEOF
6698if { (eval echo "$as_me:6698: \"$ac_cpp conftest.$ac_ext\"") >&5
6699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700 ac_status=$?
6701 egrep -v '^ *\+' conftest.er1 >conftest.err
6702 rm -f conftest.er1
6703 cat conftest.err >&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } >/dev/null; then
6706 if test -s conftest.err; then
6707 ac_cpp_err=$ac_c_preproc_warn_flag
6708 else
6709 ac_cpp_err=
6710 fi
6711else
6712 ac_cpp_err=yes
6713fi
1674if test -z "$ac_err"; then 6714if test -z "$ac_cpp_err"; then
1675 rm -rf conftest*
1676 eval "ac_cv_header_$ac_safe=yes" 6715 eval "$ac_ac_Header=yes"
1677else 6716else
1678 echo "$ac_err" >&5
1679 echo "configure: failed program was:" >&5 6717 echo "$as_me: failed program was:" >&5
1680 cat conftest.$ac_ext >&5 6718 cat conftest.$ac_ext >&5
1681 rm -rf conftest*
1682 eval "ac_cv_header_$ac_safe=no" 6719 eval "$ac_ac_Header=no"
1683fi 6720fi
1684rm -f conftest* 6721rm -f conftest.err conftest.$ac_ext
1685fi 6722fi
1686if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6723echo "$as_me:6723: result: `eval echo '${'$ac_ac_Header'}'`" >&5
1687 echo "$ac_t""yes" 1>&6 6724echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
1688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6725if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1689 cat >> confdefs.h <<EOF 6726 cat >>confdefs.h <<EOF
1690#define $ac_tr_hdr 1 6727#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1691EOF 6728EOF
1692 6729
1693else
1694 echo "$ac_t""no" 1>&6
1695fi 6730fi
1696done 6731done
1697 6732
1698 6733echo "$as_me:6733: checking for size_t" >&5
1699echo $ac_n "checking for working const""... $ac_c" 1>&6 6734echo $ECHO_N "checking for size_t... $ECHO_C" >&6
1700echo "configure:1701: checking for working const" >&5 6735if test "${ac_cv_type_size_t+set}" = set; then
1701if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6 6736 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else 6737else
1704 cat > conftest.$ac_ext <<EOF 6738 cat >conftest.$ac_ext <<_ACEOF
1705#line 1706 "configure" 6739#line 6739 "configure"
1706#include "confdefs.h" 6740#include "confdefs.h"
1707 6741$ac_includes_default
1708int main() { 6742int
1709 6743main ()
1710/* Ultrix mips cc rejects this. */ 6744{
1711typedef int charset[2]; const charset x; 6745if ((size_t *) 0)
1712/* SunOS 4.1.1 cc rejects this. */ 6746 return 0;
1713char const *const *ccp; 6747if (sizeof (size_t))
1714char **p; 6748 return 0;
1715/* NEC SVR4.0.2 mips cc rejects this. */ 6749 ;
1716struct point {int x, y;}; 6750 return 0;
1717static struct point const zero = {0,0};
1718/* AIX XL C 1.02.0.0 rejects this.
1719 It does not let you subtract one const X* pointer from another in an arm
1720 of an if-expression whose if-part is not a constant expression */
1721const char *g = "string";
1722ccp = &g + (g ? g-g : 0);
1723/* HPUX 7.0 cc rejects these. */
1724++ccp;
1725p = (char**) ccp;
1726ccp = (char const *const *) p;
1727{ /* SCO 3.2v4 cc rejects this. */
1728 char *t;
1729 char const *s = 0 ? (char *) 0 : (char const *) 0;
1730
1731 *t++ = 0;
1732} 6751}
1733{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6752_ACEOF
1734 int x[] = {25, 17}; 6753rm -f conftest.$ac_objext
1735 const int *foo = &x[0]; 6754if { (eval echo "$as_me:6754: \"$ac_compile\"") >&5
1736 ++foo; 6755 (eval $ac_compile) 2>&5
1737} 6756 ac_status=$?
1738{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6757 echo "$as_me:6757: \$? = $ac_status" >&5
1739 typedef const int *iptr; 6758 (exit $ac_status); } &&
1740 iptr p = 0; 6759 { ac_try='test -s conftest.$ac_objext'
1741 ++p; 6760 { (eval echo "$as_me:6760: \"$ac_try\"") >&5
1742} 6761 (eval $ac_try) 2>&5
1743{ /* AIX XL C 1.02.0.0 rejects this saying 6762 ac_status=$?
1744 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6763 echo "$as_me:6763: \$? = $ac_status" >&5
1745 struct s { int j; const int *ap[3]; }; 6764 (exit $ac_status); }; }; then
1746 struct s *b; b->j = 5;
1747}
1748{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1749 const int foo = 10;
1750}
1751
1752; return 0; }
1753EOF
1754if { (eval echo configure:1755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1755 rm -rf conftest*
1756 ac_cv_c_const=yes
1757else
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 rm -rf conftest*
1761 ac_cv_c_const=no
1762fi
1763rm -f conftest*
1764fi
1765
1766echo "$ac_t""$ac_cv_c_const" 1>&6
1767if test $ac_cv_c_const = no; then
1768 cat >> confdefs.h <<\EOF
1769#define const
1770EOF
1771
1772fi
1773
1774echo $ac_n "checking for size_t""... $ac_c" 1>&6
1775echo "configure:1776: checking for size_t" >&5
1776if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778else
1779 cat > conftest.$ac_ext <<EOF
1780#line 1781 "configure"
1781#include "confdefs.h"
1782#include <sys/types.h>
1783#if STDC_HEADERS
1784#include <stdlib.h>
1785#include <stddef.h>
1786#endif
1787EOF
1788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1789 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1790 rm -rf conftest*
1791 ac_cv_type_size_t=yes 6765 ac_cv_type_size_t=yes
1792else 6766else
1793 rm -rf conftest* 6767 echo "$as_me: failed program was:" >&5
6768cat conftest.$ac_ext >&5
1794 ac_cv_type_size_t=no 6769ac_cv_type_size_t=no
1795fi 6770fi
1796rm -f conftest* 6771rm -f conftest.$ac_objext conftest.$ac_ext
1797
1798fi 6772fi
6773echo "$as_me:6773: result: $ac_cv_type_size_t" >&5
1799echo "$ac_t""$ac_cv_type_size_t" 1>&6 6774echo "${ECHO_T}$ac_cv_type_size_t" >&6
1800if test $ac_cv_type_size_t = no; then 6775if test $ac_cv_type_size_t = yes; then
6776 :
6777else
6778
1801 cat >> confdefs.h <<\EOF 6779cat >>confdefs.h <<EOF
1802#define size_t unsigned 6780#define size_t unsigned
1803EOF 6781EOF
1804 6782
1805fi 6783fi
1806 6784
6785echo "$as_me:6785: checking for char" >&5
6786echo $ECHO_N "checking for char... $ECHO_C" >&6
6787if test "${ac_cv_type_char+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790 cat >conftest.$ac_ext <<_ACEOF
6791#line 6791 "configure"
6792#include "confdefs.h"
6793$ac_includes_default
6794int
6795main ()
6796{
6797if ((char *) 0)
6798 return 0;
6799if (sizeof (char))
6800 return 0;
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext
6806if { (eval echo "$as_me:6806: \"$ac_compile\"") >&5
6807 (eval $ac_compile) 2>&5
6808 ac_status=$?
6809 echo "$as_me:6809: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -s conftest.$ac_objext'
6812 { (eval echo "$as_me:6812: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:6815: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
6817 ac_cv_type_char=yes
6818else
6819 echo "$as_me: failed program was:" >&5
6820cat conftest.$ac_ext >&5
6821ac_cv_type_char=no
6822fi
6823rm -f conftest.$ac_objext conftest.$ac_ext
6824fi
6825echo "$as_me:6825: result: $ac_cv_type_char" >&5
6826echo "${ECHO_T}$ac_cv_type_char" >&6
1807 6827
1808 6828echo "$as_me:6828: checking size of char" >&5
1809echo $ac_n "checking size of char""... $ac_c" 1>&6 6829echo $ECHO_N "checking size of char... $ECHO_C" >&6
1810echo "configure:1811: checking size of char" >&5
1811if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 6830if test "${ac_cv_sizeof_char+set}" = set; then
1812 echo $ac_n "(cached) $ac_c" 1>&6 6831 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else 6832else
6833 if test "$ac_cv_type_char" = yes; then
1814 if test "$cross_compiling" = yes; then 6834 if test "$cross_compiling" = yes; then
1815 ac_cv_sizeof_char=1 6835 # Depending upon the size, compute the lo and hi bounds.
1816else
1817 cat > conftest.$ac_ext <<EOF 6836cat >conftest.$ac_ext <<_ACEOF
1818#line 1819 "configure" 6837#line 6837 "configure"
1819#include "confdefs.h" 6838#include "confdefs.h"
1820#include <stdio.h> 6839$ac_includes_default
6840int
1821main() 6841main ()
1822{ 6842{
1823 FILE *f=fopen("conftestval", "w"); 6843int _array_ [1 - 2 * !((sizeof (char)) >= 0)]
1824 if (!f) exit(1); 6844 ;
1825 fprintf(f, "%d\n", sizeof(char)); 6845 return 0;
1826 exit(0);
1827} 6846}
1828EOF 6847_ACEOF
1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6848rm -f conftest.$ac_objext
1830then 6849if { (eval echo "$as_me:6849: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 echo "$as_me:6852: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:6855: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:6858: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_lo=0 ac_mid=0
6861 while :; do
6862 cat >conftest.$ac_ext <<_ACEOF
6863#line 6863 "configure"
6864#include "confdefs.h"
6865$ac_includes_default
6866int
6867main ()
6868{
6869int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
6870 ;
6871 return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext
6875if { (eval echo "$as_me:6875: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:6881: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 ac_hi=$ac_mid; break
6887else
6888 echo "$as_me: failed program was:" >&5
6889cat conftest.$ac_ext >&5
6890ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
6891fi
6892rm -f conftest.$ac_objext conftest.$ac_ext
6893 done
6894else
6895 echo "$as_me: failed program was:" >&5
6896cat conftest.$ac_ext >&5
6897ac_hi=-1 ac_mid=-1
6898 while :; do
6899 cat >conftest.$ac_ext <<_ACEOF
6900#line 6900 "configure"
6901#include "confdefs.h"
6902$ac_includes_default
6903int
6904main ()
6905{
6906int _array_ [1 - 2 * !((sizeof (char)) >= $ac_mid)]
6907 ;
6908 return 0;
6909}
6910_ACEOF
6911rm -f conftest.$ac_objext
6912if { (eval echo "$as_me:6912: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6914 ac_status=$?
6915 echo "$as_me:6915: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:6918: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_lo=$ac_mid; break
6924else
6925 echo "$as_me: failed program was:" >&5
6926cat conftest.$ac_ext >&5
6927ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
6928fi
6929rm -f conftest.$ac_objext conftest.$ac_ext
6930 done
6931fi
6932rm -f conftest.$ac_objext conftest.$ac_ext
6933# Binary search between lo and hi bounds.
6934while test "x$ac_lo" != "x$ac_hi"; do
6935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936 cat >conftest.$ac_ext <<_ACEOF
6937#line 6937 "configure"
6938#include "confdefs.h"
6939$ac_includes_default
6940int
6941main ()
6942{
6943int _array_ [1 - 2 * !((sizeof (char)) <= $ac_mid)]
6944 ;
6945 return 0;
6946}
6947_ACEOF
6948rm -f conftest.$ac_objext
6949if { (eval echo "$as_me:6949: \"$ac_compile\"") >&5
6950 (eval $ac_compile) 2>&5
6951 ac_status=$?
6952 echo "$as_me:6952: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try='test -s conftest.$ac_objext'
6955 { (eval echo "$as_me:6955: \"$ac_try\"") >&5
6956 (eval $ac_try) 2>&5
6957 ac_status=$?
6958 echo "$as_me:6958: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_hi=$ac_mid
6961else
6962 echo "$as_me: failed program was:" >&5
6963cat conftest.$ac_ext >&5
6964ac_lo=`expr $ac_mid + 1`
6965fi
6966rm -f conftest.$ac_objext conftest.$ac_ext
6967done
6968ac_cv_sizeof_char=$ac_lo
6969else
6970 if test "$cross_compiling" = yes; then
6971 { { echo "$as_me:6971: error: cannot run test program while cross compiling" >&5
6972echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6973 { (exit 1); exit 1; }; }
6974else
6975 cat >conftest.$ac_ext <<_ACEOF
6976#line 6976 "configure"
6977#include "confdefs.h"
6978$ac_includes_default
6979int
6980main ()
6981{
6982FILE *f = fopen ("conftest.val", "w");
6983if (!f)
6984 exit (1);
6985fprintf (f, "%d", (sizeof (char)));
6986fclose (f);
6987 ;
6988 return 0;
6989}
6990_ACEOF
6991rm -f conftest$ac_exeext
6992if { (eval echo "$as_me:6992: \"$ac_link\"") >&5
6993 (eval $ac_link) 2>&5
6994 ac_status=$?
6995 echo "$as_me:6995: \$? = $ac_status" >&5
6996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6997 { (eval echo "$as_me:6997: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:7000: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
1831 ac_cv_sizeof_char=`cat conftestval` 7002 ac_cv_sizeof_char=`cat conftest.val`
1832else 7003else
7004 echo "$as_me: program exited with status $ac_status" >&5
1833 echo "configure: failed program was:" >&5 7005echo "$as_me: failed program was:" >&5
1834 cat conftest.$ac_ext >&5 7006cat conftest.$ac_ext >&5
7007fi
7008rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7009fi
7010fi
1835 rm -fr conftest* 7011rm -f conftest.val
7012else
1836 ac_cv_sizeof_char=0 7013 ac_cv_sizeof_char=0
1837fi 7014fi
1838rm -fr conftest*
1839fi 7015fi
1840 7016echo "$as_me:7016: result: $ac_cv_sizeof_char" >&5
1841fi
1842echo "$ac_t""$ac_cv_sizeof_char" 1>&6 7017echo "${ECHO_T}$ac_cv_sizeof_char" >&6
1843cat >> confdefs.h <<EOF 7018cat >>confdefs.h <<EOF
1844#define SIZEOF_CHAR $ac_cv_sizeof_char 7019#define SIZEOF_CHAR $ac_cv_sizeof_char
1845EOF 7020EOF
1846 7021
7022echo "$as_me:7022: checking for short" >&5
7023echo $ECHO_N "checking for short... $ECHO_C" >&6
7024if test "${ac_cv_type_short+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027 cat >conftest.$ac_ext <<_ACEOF
7028#line 7028 "configure"
7029#include "confdefs.h"
7030$ac_includes_default
7031int
7032main ()
7033{
7034if ((short *) 0)
7035 return 0;
7036if (sizeof (short))
7037 return 0;
7038 ;
7039 return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext
7043if { (eval echo "$as_me:7043: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -s conftest.$ac_objext'
7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_type_short=yes
7055else
7056 echo "$as_me: failed program was:" >&5
7057cat conftest.$ac_ext >&5
7058ac_cv_type_short=no
7059fi
7060rm -f conftest.$ac_objext conftest.$ac_ext
7061fi
7062echo "$as_me:7062: result: $ac_cv_type_short" >&5
7063echo "${ECHO_T}$ac_cv_type_short" >&6
1847 7064
7065echo "$as_me:7065: checking size of short" >&5
1848echo $ac_n "checking size of short""... $ac_c" 1>&6 7066echo $ECHO_N "checking size of short... $ECHO_C" >&6
1849echo "configure:1850: checking size of short" >&5
1850if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 7067if test "${ac_cv_sizeof_short+set}" = set; then
1851 echo $ac_n "(cached) $ac_c" 1>&6 7068 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else 7069else
7070 if test "$ac_cv_type_short" = yes; then
1853 if test "$cross_compiling" = yes; then 7071 if test "$cross_compiling" = yes; then
1854 ac_cv_sizeof_short=1 7072 # Depending upon the size, compute the lo and hi bounds.
1855else
1856 cat > conftest.$ac_ext <<EOF 7073cat >conftest.$ac_ext <<_ACEOF
1857#line 1858 "configure" 7074#line 7074 "configure"
1858#include "confdefs.h" 7075#include "confdefs.h"
1859#include <stdio.h> 7076$ac_includes_default
7077int
1860main() 7078main ()
1861{ 7079{
1862 FILE *f=fopen("conftestval", "w"); 7080int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
1863 if (!f) exit(1); 7081 ;
1864 fprintf(f, "%d\n", sizeof(short)); 7082 return 0;
1865 exit(0);
1866} 7083}
1867EOF 7084_ACEOF
1868if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7085rm -f conftest.$ac_objext
1869then 7086if { (eval echo "$as_me:7086: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:7092: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_lo=0 ac_mid=0
7098 while :; do
7099 cat >conftest.$ac_ext <<_ACEOF
7100#line 7100 "configure"
7101#include "confdefs.h"
7102$ac_includes_default
7103int
7104main ()
7105{
7106int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest.$ac_objext
7112if { (eval echo "$as_me:7112: \"$ac_compile\"") >&5
7113 (eval $ac_compile) 2>&5
7114 ac_status=$?
7115 echo "$as_me:7115: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest.$ac_objext'
7118 { (eval echo "$as_me:7118: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:7121: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_hi=$ac_mid; break
7124else
7125 echo "$as_me: failed program was:" >&5
7126cat conftest.$ac_ext >&5
7127ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7128fi
7129rm -f conftest.$ac_objext conftest.$ac_ext
7130 done
7131else
7132 echo "$as_me: failed program was:" >&5
7133cat conftest.$ac_ext >&5
7134ac_hi=-1 ac_mid=-1
7135 while :; do
7136 cat >conftest.$ac_ext <<_ACEOF
7137#line 7137 "configure"
7138#include "confdefs.h"
7139$ac_includes_default
7140int
7141main ()
7142{
7143int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7144 ;
7145 return 0;
7146}
7147_ACEOF
7148rm -f conftest.$ac_objext
7149if { (eval echo "$as_me:7149: \"$ac_compile\"") >&5
7150 (eval $ac_compile) 2>&5
7151 ac_status=$?
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:7155: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:7158: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_lo=$ac_mid; break
7161else
7162 echo "$as_me: failed program was:" >&5
7163cat conftest.$ac_ext >&5
7164ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7165fi
7166rm -f conftest.$ac_objext conftest.$ac_ext
7167 done
7168fi
7169rm -f conftest.$ac_objext conftest.$ac_ext
7170# Binary search between lo and hi bounds.
7171while test "x$ac_lo" != "x$ac_hi"; do
7172 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7173 cat >conftest.$ac_ext <<_ACEOF
7174#line 7174 "configure"
7175#include "confdefs.h"
7176$ac_includes_default
7177int
7178main ()
7179{
7180int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7181 ;
7182 return 0;
7183}
7184_ACEOF
7185rm -f conftest.$ac_objext
7186if { (eval echo "$as_me:7186: \"$ac_compile\"") >&5
7187 (eval $ac_compile) 2>&5
7188 ac_status=$?
7189 echo "$as_me:7189: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -s conftest.$ac_objext'
7192 { (eval echo "$as_me:7192: \"$ac_try\"") >&5
7193 (eval $ac_try) 2>&5
7194 ac_status=$?
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 ac_hi=$ac_mid
7198else
7199 echo "$as_me: failed program was:" >&5
7200cat conftest.$ac_ext >&5
7201ac_lo=`expr $ac_mid + 1`
7202fi
7203rm -f conftest.$ac_objext conftest.$ac_ext
7204done
7205ac_cv_sizeof_short=$ac_lo
7206else
7207 if test "$cross_compiling" = yes; then
7208 { { echo "$as_me:7208: error: cannot run test program while cross compiling" >&5
7209echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7210 { (exit 1); exit 1; }; }
7211else
7212 cat >conftest.$ac_ext <<_ACEOF
7213#line 7213 "configure"
7214#include "confdefs.h"
7215$ac_includes_default
7216int
7217main ()
7218{
7219FILE *f = fopen ("conftest.val", "w");
7220if (!f)
7221 exit (1);
7222fprintf (f, "%d", (sizeof (short)));
7223fclose (f);
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228rm -f conftest$ac_exeext
7229if { (eval echo "$as_me:7229: \"$ac_link\"") >&5
7230 (eval $ac_link) 2>&5
7231 ac_status=$?
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7234 { (eval echo "$as_me:7234: \"$ac_try\"") >&5
7235 (eval $ac_try) 2>&5
7236 ac_status=$?
7237 echo "$as_me:7237: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
1870 ac_cv_sizeof_short=`cat conftestval` 7239 ac_cv_sizeof_short=`cat conftest.val`
1871else 7240else
7241 echo "$as_me: program exited with status $ac_status" >&5
1872 echo "configure: failed program was:" >&5 7242echo "$as_me: failed program was:" >&5
1873 cat conftest.$ac_ext >&5 7243cat conftest.$ac_ext >&5
7244fi
7245rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7246fi
7247fi
1874 rm -fr conftest* 7248rm -f conftest.val
7249else
1875 ac_cv_sizeof_short=0 7250 ac_cv_sizeof_short=0
1876fi 7251fi
1877rm -fr conftest*
1878fi 7252fi
1879 7253echo "$as_me:7253: result: $ac_cv_sizeof_short" >&5
1880fi
1881echo "$ac_t""$ac_cv_sizeof_short" 1>&6 7254echo "${ECHO_T}$ac_cv_sizeof_short" >&6
1882cat >> confdefs.h <<EOF 7255cat >>confdefs.h <<EOF
1883#define SIZEOF_SHORT $ac_cv_sizeof_short 7256#define SIZEOF_SHORT $ac_cv_sizeof_short
1884EOF 7257EOF
1885 7258
7259echo "$as_me:7259: checking for int" >&5
7260echo $ECHO_N "checking for int... $ECHO_C" >&6
7261if test "${ac_cv_type_int+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264 cat >conftest.$ac_ext <<_ACEOF
7265#line 7265 "configure"
7266#include "confdefs.h"
7267$ac_includes_default
7268int
7269main ()
7270{
7271if ((int *) 0)
7272 return 0;
7273if (sizeof (int))
7274 return 0;
7275 ;
7276 return 0;
7277}
7278_ACEOF
7279rm -f conftest.$ac_objext
7280if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:7286: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_cv_type_int=yes
7292else
7293 echo "$as_me: failed program was:" >&5
7294cat conftest.$ac_ext >&5
7295ac_cv_type_int=no
7296fi
7297rm -f conftest.$ac_objext conftest.$ac_ext
7298fi
7299echo "$as_me:7299: result: $ac_cv_type_int" >&5
7300echo "${ECHO_T}$ac_cv_type_int" >&6
1886 7301
7302echo "$as_me:7302: checking size of int" >&5
1887echo $ac_n "checking size of int""... $ac_c" 1>&6 7303echo $ECHO_N "checking size of int... $ECHO_C" >&6
1888echo "configure:1889: checking size of int" >&5
1889if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 7304if test "${ac_cv_sizeof_int+set}" = set; then
1890 echo $ac_n "(cached) $ac_c" 1>&6 7305 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else 7306else
7307 if test "$ac_cv_type_int" = yes; then
1892 if test "$cross_compiling" = yes; then 7308 if test "$cross_compiling" = yes; then
1893 ac_cv_sizeof_int=2 7309 # Depending upon the size, compute the lo and hi bounds.
1894else
1895 cat > conftest.$ac_ext <<EOF 7310cat >conftest.$ac_ext <<_ACEOF
1896#line 1897 "configure" 7311#line 7311 "configure"
1897#include "confdefs.h" 7312#include "confdefs.h"
1898#include <stdio.h> 7313$ac_includes_default
7314int
1899main() 7315main ()
1900{ 7316{
1901 FILE *f=fopen("conftestval", "w"); 7317int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
1902 if (!f) exit(1); 7318 ;
1903 fprintf(f, "%d\n", sizeof(int)); 7319 return 0;
1904 exit(0);
1905} 7320}
1906EOF 7321_ACEOF
1907if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7322rm -f conftest.$ac_objext
1908then 7323if { (eval echo "$as_me:7323: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7325 ac_status=$?
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:7329: \"$ac_try\"") >&5
7330 (eval $ac_try) 2>&5
7331 ac_status=$?
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 ac_lo=0 ac_mid=0
7335 while :; do
7336 cat >conftest.$ac_ext <<_ACEOF
7337#line 7337 "configure"
7338#include "confdefs.h"
7339$ac_includes_default
7340int
7341main ()
7342{
7343int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7344 ;
7345 return 0;
7346}
7347_ACEOF
7348rm -f conftest.$ac_objext
7349if { (eval echo "$as_me:7349: \"$ac_compile\"") >&5
7350 (eval $ac_compile) 2>&5
7351 ac_status=$?
7352 echo "$as_me:7352: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:7355: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:7358: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_hi=$ac_mid; break
7361else
7362 echo "$as_me: failed program was:" >&5
7363cat conftest.$ac_ext >&5
7364ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7365fi
7366rm -f conftest.$ac_objext conftest.$ac_ext
7367 done
7368else
7369 echo "$as_me: failed program was:" >&5
7370cat conftest.$ac_ext >&5
7371ac_hi=-1 ac_mid=-1
7372 while :; do
7373 cat >conftest.$ac_ext <<_ACEOF
7374#line 7374 "configure"
7375#include "confdefs.h"
7376$ac_includes_default
7377int
7378main ()
7379{
7380int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7381 ;
7382 return 0;
7383}
7384_ACEOF
7385rm -f conftest.$ac_objext
7386if { (eval echo "$as_me:7386: \"$ac_compile\"") >&5
7387 (eval $ac_compile) 2>&5
7388 ac_status=$?
7389 echo "$as_me:7389: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -s conftest.$ac_objext'
7392 { (eval echo "$as_me:7392: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:7395: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_lo=$ac_mid; break
7398else
7399 echo "$as_me: failed program was:" >&5
7400cat conftest.$ac_ext >&5
7401ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7402fi
7403rm -f conftest.$ac_objext conftest.$ac_ext
7404 done
7405fi
7406rm -f conftest.$ac_objext conftest.$ac_ext
7407# Binary search between lo and hi bounds.
7408while test "x$ac_lo" != "x$ac_hi"; do
7409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7410 cat >conftest.$ac_ext <<_ACEOF
7411#line 7411 "configure"
7412#include "confdefs.h"
7413$ac_includes_default
7414int
7415main ()
7416{
7417int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7418 ;
7419 return 0;
7420}
7421_ACEOF
7422rm -f conftest.$ac_objext
7423if { (eval echo "$as_me:7423: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:7426: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -s conftest.$ac_objext'
7429 { (eval echo "$as_me:7429: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_hi=$ac_mid
7435else
7436 echo "$as_me: failed program was:" >&5
7437cat conftest.$ac_ext >&5
7438ac_lo=`expr $ac_mid + 1`
7439fi
7440rm -f conftest.$ac_objext conftest.$ac_ext
7441done
7442ac_cv_sizeof_int=$ac_lo
7443else
7444 if test "$cross_compiling" = yes; then
7445 { { echo "$as_me:7445: error: cannot run test program while cross compiling" >&5
7446echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7447 { (exit 1); exit 1; }; }
7448else
7449 cat >conftest.$ac_ext <<_ACEOF
7450#line 7450 "configure"
7451#include "confdefs.h"
7452$ac_includes_default
7453int
7454main ()
7455{
7456FILE *f = fopen ("conftest.val", "w");
7457if (!f)
7458 exit (1);
7459fprintf (f, "%d", (sizeof (int)));
7460fclose (f);
7461 ;
7462 return 0;
7463}
7464_ACEOF
7465rm -f conftest$ac_exeext
7466if { (eval echo "$as_me:7466: \"$ac_link\"") >&5
7467 (eval $ac_link) 2>&5
7468 ac_status=$?
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7471 { (eval echo "$as_me:7471: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:7474: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
1909 ac_cv_sizeof_int=`cat conftestval` 7476 ac_cv_sizeof_int=`cat conftest.val`
1910else 7477else
7478 echo "$as_me: program exited with status $ac_status" >&5
1911 echo "configure: failed program was:" >&5 7479echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5 7480cat conftest.$ac_ext >&5
7481fi
7482rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7483fi
7484fi
1913 rm -fr conftest* 7485rm -f conftest.val
7486else
1914 ac_cv_sizeof_int=0 7487 ac_cv_sizeof_int=0
1915fi 7488fi
1916rm -fr conftest*
1917fi 7489fi
1918 7490echo "$as_me:7490: result: $ac_cv_sizeof_int" >&5
1919fi
1920echo "$ac_t""$ac_cv_sizeof_int" 1>&6 7491echo "${ECHO_T}$ac_cv_sizeof_int" >&6
1921cat >> confdefs.h <<EOF 7492cat >>confdefs.h <<EOF
1922#define SIZEOF_INT $ac_cv_sizeof_int 7493#define SIZEOF_INT $ac_cv_sizeof_int
1923EOF 7494EOF
1924 7495
7496echo "$as_me:7496: checking for long" >&5
7497echo $ECHO_N "checking for long... $ECHO_C" >&6
7498if test "${ac_cv_type_long+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 cat >conftest.$ac_ext <<_ACEOF
7502#line 7502 "configure"
7503#include "confdefs.h"
7504$ac_includes_default
7505int
7506main ()
7507{
7508if ((long *) 0)
7509 return 0;
7510if (sizeof (long))
7511 return 0;
7512 ;
7513 return 0;
7514}
7515_ACEOF
7516rm -f conftest.$ac_objext
7517if { (eval echo "$as_me:7517: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>&5
7519 ac_status=$?
7520 echo "$as_me:7520: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:7523: \"$ac_try\"") >&5
7524 (eval $ac_try) 2>&5
7525 ac_status=$?
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_cv_type_long=yes
7529else
7530 echo "$as_me: failed program was:" >&5
7531cat conftest.$ac_ext >&5
7532ac_cv_type_long=no
7533fi
7534rm -f conftest.$ac_objext conftest.$ac_ext
7535fi
7536echo "$as_me:7536: result: $ac_cv_type_long" >&5
7537echo "${ECHO_T}$ac_cv_type_long" >&6
1925 7538
7539echo "$as_me:7539: checking size of long" >&5
1926echo $ac_n "checking size of long""... $ac_c" 1>&6 7540echo $ECHO_N "checking size of long... $ECHO_C" >&6
1927echo "configure:1928: checking size of long" >&5
1928if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 7541if test "${ac_cv_sizeof_long+set}" = set; then
1929 echo $ac_n "(cached) $ac_c" 1>&6 7542 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else 7543else
7544 if test "$ac_cv_type_long" = yes; then
1931 if test "$cross_compiling" = yes; then 7545 if test "$cross_compiling" = yes; then
1932 ac_cv_sizeof_long=4 7546 # Depending upon the size, compute the lo and hi bounds.
1933else
1934 cat > conftest.$ac_ext <<EOF 7547cat >conftest.$ac_ext <<_ACEOF
1935#line 1936 "configure" 7548#line 7548 "configure"
1936#include "confdefs.h" 7549#include "confdefs.h"
1937#include <stdio.h> 7550$ac_includes_default
7551int
1938main() 7552main ()
1939{ 7553{
1940 FILE *f=fopen("conftestval", "w"); 7554int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
1941 if (!f) exit(1); 7555 ;
1942 fprintf(f, "%d\n", sizeof(long)); 7556 return 0;
1943 exit(0);
1944} 7557}
1945EOF 7558_ACEOF
1946if { (eval echo configure:1947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7559rm -f conftest.$ac_objext
1947then 7560if { (eval echo "$as_me:7560: \"$ac_compile\"") >&5
7561 (eval $ac_compile) 2>&5
7562 ac_status=$?
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); } &&
7565 { ac_try='test -s conftest.$ac_objext'
7566 { (eval echo "$as_me:7566: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:7569: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 ac_lo=0 ac_mid=0
7572 while :; do
7573 cat >conftest.$ac_ext <<_ACEOF
7574#line 7574 "configure"
7575#include "confdefs.h"
7576$ac_includes_default
7577int
7578main ()
7579{
7580int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext
7586if { (eval echo "$as_me:7586: \"$ac_compile\"") >&5
7587 (eval $ac_compile) 2>&5
7588 ac_status=$?
7589 echo "$as_me:7589: \$? = $ac_status" >&5
7590 (exit $ac_status); } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:7592: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:7595: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
7597 ac_hi=$ac_mid; break
7598else
7599 echo "$as_me: failed program was:" >&5
7600cat conftest.$ac_ext >&5
7601ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7602fi
7603rm -f conftest.$ac_objext conftest.$ac_ext
7604 done
7605else
7606 echo "$as_me: failed program was:" >&5
7607cat conftest.$ac_ext >&5
7608ac_hi=-1 ac_mid=-1
7609 while :; do
7610 cat >conftest.$ac_ext <<_ACEOF
7611#line 7611 "configure"
7612#include "confdefs.h"
7613$ac_includes_default
7614int
7615main ()
7616{
7617int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7618 ;
7619 return 0;
7620}
7621_ACEOF
7622rm -f conftest.$ac_objext
7623if { (eval echo "$as_me:7623: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7625 ac_status=$?
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:7629: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:7632: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 ac_lo=$ac_mid; break
7635else
7636 echo "$as_me: failed program was:" >&5
7637cat conftest.$ac_ext >&5
7638ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7639fi
7640rm -f conftest.$ac_objext conftest.$ac_ext
7641 done
7642fi
7643rm -f conftest.$ac_objext conftest.$ac_ext
7644# Binary search between lo and hi bounds.
7645while test "x$ac_lo" != "x$ac_hi"; do
7646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7647 cat >conftest.$ac_ext <<_ACEOF
7648#line 7648 "configure"
7649#include "confdefs.h"
7650$ac_includes_default
7651int
7652main ()
7653{
7654int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7655 ;
7656 return 0;
7657}
7658_ACEOF
7659rm -f conftest.$ac_objext
7660if { (eval echo "$as_me:7660: \"$ac_compile\"") >&5
7661 (eval $ac_compile) 2>&5
7662 ac_status=$?
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest.$ac_objext'
7666 { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7667 (eval $ac_try) 2>&5
7668 ac_status=$?
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 ac_hi=$ac_mid
7672else
7673 echo "$as_me: failed program was:" >&5
7674cat conftest.$ac_ext >&5
7675ac_lo=`expr $ac_mid + 1`
7676fi
7677rm -f conftest.$ac_objext conftest.$ac_ext
7678done
7679ac_cv_sizeof_long=$ac_lo
7680else
7681 if test "$cross_compiling" = yes; then
7682 { { echo "$as_me:7682: error: cannot run test program while cross compiling" >&5
7683echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7684 { (exit 1); exit 1; }; }
7685else
7686 cat >conftest.$ac_ext <<_ACEOF
7687#line 7687 "configure"
7688#include "confdefs.h"
7689$ac_includes_default
7690int
7691main ()
7692{
7693FILE *f = fopen ("conftest.val", "w");
7694if (!f)
7695 exit (1);
7696fprintf (f, "%d", (sizeof (long)));
7697fclose (f);
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest$ac_exeext
7703if { (eval echo "$as_me:7703: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7705 ac_status=$?
7706 echo "$as_me:7706: \$? = $ac_status" >&5
7707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7708 { (eval echo "$as_me:7708: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
1948 ac_cv_sizeof_long=`cat conftestval` 7713 ac_cv_sizeof_long=`cat conftest.val`
1949else 7714else
7715 echo "$as_me: program exited with status $ac_status" >&5
1950 echo "configure: failed program was:" >&5 7716echo "$as_me: failed program was:" >&5
1951 cat conftest.$ac_ext >&5 7717cat conftest.$ac_ext >&5
7718fi
7719rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7720fi
7721fi
1952 rm -fr conftest* 7722rm -f conftest.val
7723else
1953 ac_cv_sizeof_long=0 7724 ac_cv_sizeof_long=0
1954fi 7725fi
1955rm -fr conftest*
1956fi 7726fi
1957 7727echo "$as_me:7727: result: $ac_cv_sizeof_long" >&5
1958fi
1959echo "$ac_t""$ac_cv_sizeof_long" 1>&6 7728echo "${ECHO_T}$ac_cv_sizeof_long" >&6
1960cat >> confdefs.h <<EOF 7729cat >>confdefs.h <<EOF
1961#define SIZEOF_LONG $ac_cv_sizeof_long 7730#define SIZEOF_LONG $ac_cv_sizeof_long
1962EOF 7731EOF
1963 7732
1964 7733echo "$as_me:7733: checking for an 8 bit integer type" >&5
1965
1966echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 7734echo $ECHO_N "checking for an 8 bit integer type... $ECHO_C" >&6
1967echo "configure:1968: checking for an 8 bit integer type" >&5
1968if test $ac_cv_sizeof_char -ge 1 ; then 7735if test $ac_cv_sizeof_char -ge 1 ; then
1969 INT_8_BIT=char 7736 INT_8_BIT=char
1970 echo "$ac_t""char" 1>&6 7737 echo "$as_me:7737: result: char" >&5
7738echo "${ECHO_T}char" >&6
1971elif test $ac_cv_sizeof_short -ge 1 ; then 7739elif test $ac_cv_sizeof_short -ge 1 ; then
1972 INT_8_BIT=short 7740 INT_8_BIT=short
1973 echo "$ac_t""short" 1>&6 7741 echo "$as_me:7741: result: short" >&5
7742echo "${ECHO_T}short" >&6
1974elif test $ac_cv_sizeof_int -ge 1 ; then 7743elif test $ac_cv_sizeof_int -ge 1 ; then
1975 INT_8_BIT=int 7744 INT_8_BIT=int
1976 echo "$ac_t""int" 1>&6 7745 echo "$as_me:7745: result: int" >&5
7746echo "${ECHO_T}int" >&6
1977elif test $ac_cv_sizeof_long -ge 1 ; then 7747elif test $ac_cv_sizeof_long -ge 1 ; then
1978 INT_8_BIT=long 7748 INT_8_BIT=long
1979 echo "$ac_t""long" 1>&6 7749 echo "$as_me:7749: result: long" >&5
7750echo "${ECHO_T}long" >&6
1980else 7751else
7752 { { echo "$as_me:7752: error: No integer type of at least 8 bits found" >&5
1981 { echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } 7753echo "$as_me: error: No integer type of at least 8 bits found" >&2;}
7754 { (exit 1); exit 1; }; }
1982fi 7755fi
1983 7756
7757echo "$as_me:7757: checking for a 16 bit integer type" >&5
1984echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 7758echo $ECHO_N "checking for a 16 bit integer type... $ECHO_C" >&6
1985echo "configure:1986: checking for a 16 bit integer type" >&5
1986if test $ac_cv_sizeof_char -ge 2 ; then 7759if test $ac_cv_sizeof_char -ge 2 ; then
1987 INT_16_BIT=char 7760 INT_16_BIT=char
1988 echo "$ac_t""char" 1>&6 7761 echo "$as_me:7761: result: char" >&5
7762echo "${ECHO_T}char" >&6
1989elif test $ac_cv_sizeof_short -ge 2 ; then 7763elif test $ac_cv_sizeof_short -ge 2 ; then
1990 INT_16_BIT=short 7764 INT_16_BIT=short
1991 echo "$ac_t""short" 1>&6 7765 echo "$as_me:7765: result: short" >&5
7766echo "${ECHO_T}short" >&6
1992elif test $ac_cv_sizeof_int -ge 2 ; then 7767elif test $ac_cv_sizeof_int -ge 2 ; then
1993 INT_16_BIT=int 7768 INT_16_BIT=int
1994 echo "$ac_t""int" 1>&6 7769 echo "$as_me:7769: result: int" >&5
7770echo "${ECHO_T}int" >&6
1995elif test $ac_cv_sizeof_long -ge 2 ; then 7771elif test $ac_cv_sizeof_long -ge 2 ; then
1996 INT_16_BIT=long 7772 INT_16_BIT=long
1997 echo "$ac_t""long" 1>&6 7773 echo "$as_me:7773: result: long" >&5
7774echo "${ECHO_T}long" >&6
1998else 7775else
7776 { { echo "$as_me:7776: error: No integer type of at least 16 bits found" >&5
1999 { echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } 7777echo "$as_me: error: No integer type of at least 16 bits found" >&2;}
7778 { (exit 1); exit 1; }; }
2000fi 7779fi
2001 7780
7781echo "$as_me:7781: checking for a 32 bit integer type" >&5
2002echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 7782echo $ECHO_N "checking for a 32 bit integer type... $ECHO_C" >&6
2003echo "configure:2004: checking for a 32 bit integer type" >&5
2004if test $ac_cv_sizeof_char -ge 4 ; then 7783if test $ac_cv_sizeof_char -ge 4 ; then
2005 INT_32_BIT=char 7784 INT_32_BIT=char
2006 echo "$ac_t""char" 1>&6 7785 echo "$as_me:7785: result: char" >&5
7786echo "${ECHO_T}char" >&6
2007elif test $ac_cv_sizeof_short -ge 4 ; then 7787elif test $ac_cv_sizeof_short -ge 4 ; then
2008 INT_32_BIT=short 7788 INT_32_BIT=short
2009 echo "$ac_t""short" 1>&6 7789 echo "$as_me:7789: result: short" >&5
7790echo "${ECHO_T}short" >&6
2010elif test $ac_cv_sizeof_int -ge 4 ; then 7791elif test $ac_cv_sizeof_int -ge 4 ; then
2011 INT_32_BIT=int 7792 INT_32_BIT=int
2012 echo "$ac_t""int" 1>&6 7793 echo "$as_me:7793: result: int" >&5
7794echo "${ECHO_T}int" >&6
2013elif test $ac_cv_sizeof_long -ge 4 ; then 7795elif test $ac_cv_sizeof_long -ge 4 ; then
2014 INT_32_BIT=long 7796 INT_32_BIT=long
2015 echo "$ac_t""long" 1>&6 7797 echo "$as_me:7797: result: long" >&5
7798echo "${ECHO_T}long" >&6
2016else 7799else
7800 { { echo "$as_me:7800: error: No integer type of at least 32 bits found" >&5
2017 { echo "configure: error: No integer type of at least 32 bits found" 1>&2; exit 1; } 7801echo "$as_me: error: No integer type of at least 32 bits found" >&2;}
7802 { (exit 1); exit 1; }; }
2018fi 7803fi
2019 7804
2020 7805for ac_func in vprintf
2021 7806do
2022 7807ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2023 7808echo "$as_me:7808: checking for $ac_func" >&5
2024echo $ac_n "checking for vprintf""... $ac_c" 1>&6 7809echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2025echo "configure:2026: checking for vprintf" >&5
2026if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 7810if eval "test \"\${$ac_ac_var+set}\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6 7811 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else 7812else
2029 cat > conftest.$ac_ext <<EOF 7813 cat >conftest.$ac_ext <<_ACEOF
2030#line 2031 "configure" 7814#line 7814 "configure"
2031#include "confdefs.h" 7815#include "confdefs.h"
2032/* System header to define __stub macros and hopefully few prototypes, 7816/* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char vprintf(); below. */ 7817 which can conflict with char $ac_func (); below. */
2034#include <assert.h> 7818#include <assert.h>
2035/* Override any gcc2 internal prototype to avoid an error. */ 7819/* Override any gcc2 internal prototype to avoid an error. */
7820#ifdef __cplusplus
7821extern "C"
7822#endif
2036/* We use char because int might match the return type of a gcc2 7823/* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */ 7824 builtin and then its argument prototype would still apply. */
2038char vprintf(); 7825char $ac_func ();
7826char (*f) ();
2039 7827
2040int main() { 7828int
2041 7829main ()
7830{
2042/* The GNU C library defines this for functions which it implements 7831/* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named 7832 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */ 7833 something starting with __ and the normal name is an alias. */
2045#if defined (__stub_vprintf) || defined (__stub___vprintf) 7834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2046choke me 7835choke me
2047#else 7836#else
2048vprintf(); 7837f = $ac_func;
2049#endif 7838#endif
2050 7839
7840 ;
2051; return 0; } 7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext conftest$ac_exeext
7845if { (eval echo "$as_me:7845: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>&5
7847 ac_status=$?
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 eval "$ac_ac_var=yes"
7857else
7858 echo "$as_me: failed program was:" >&5
7859cat conftest.$ac_ext >&5
7860eval "$ac_ac_var=no"
7861fi
7862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7863fi
7864echo "$as_me:7864: result: `eval echo '${'$ac_ac_var'}'`" >&5
7865echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
7866if test `eval echo '${'$ac_ac_var'}'` = yes; then
7867 cat >>confdefs.h <<EOF
7868#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2052EOF 7869EOF
2053if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2054 rm -rf conftest*
2055 eval "ac_cv_func_vprintf=yes"
2056else
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2059 rm -rf conftest*
2060 eval "ac_cv_func_vprintf=no"
2061fi
2062rm -f conftest*
2063fi
2064 7870
2065if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 cat >> confdefs.h <<\EOF
2068#define HAVE_VPRINTF 1
2069EOF
2070
2071else
2072 echo "$ac_t""no" 1>&6
2073fi
2074
2075if test "$ac_cv_func_vprintf" != yes; then
2076echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2077echo "configure:2078: checking for _doprnt" >&5 7871echo "$as_me:7871: checking for _doprnt" >&5
7872echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
2078if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 7873if test "${ac_cv_func__doprnt+set}" = set; then
2079 echo $ac_n "(cached) $ac_c" 1>&6 7874 echo $ECHO_N "(cached) $ECHO_C" >&6
2080else 7875else
2081 cat > conftest.$ac_ext <<EOF 7876 cat >conftest.$ac_ext <<_ACEOF
2082#line 2083 "configure" 7877#line 7877 "configure"
2083#include "confdefs.h" 7878#include "confdefs.h"
2084/* System header to define __stub macros and hopefully few prototypes, 7879/* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char _doprnt(); below. */ 7880 which can conflict with char _doprnt (); below. */
2086#include <assert.h> 7881#include <assert.h>
2087/* Override any gcc2 internal prototype to avoid an error. */ 7882/* Override any gcc2 internal prototype to avoid an error. */
7883#ifdef __cplusplus
7884extern "C"
7885#endif
2088/* We use char because int might match the return type of a gcc2 7886/* We use char because int might match the return type of a gcc2
2089 builtin and then its argument prototype would still apply. */ 7887 builtin and then its argument prototype would still apply. */
2090char _doprnt(); 7888char _doprnt ();
7889char (*f) ();
2091 7890
2092int main() { 7891int
2093 7892main ()
7893{
2094/* The GNU C library defines this for functions which it implements 7894/* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named 7895 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */ 7896 something starting with __ and the normal name is an alias. */
2097#if defined (__stub__doprnt) || defined (__stub____doprnt) 7897#if defined (__stub__doprnt) || defined (__stub____doprnt)
2098choke me 7898choke me
2099#else 7899#else
2100_doprnt(); 7900f = _doprnt;
2101#endif 7901#endif
2102 7902
7903 ;
2103; return 0; } 7904 return 0;
2104EOF 7905}
2105if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7906_ACEOF
2106 rm -rf conftest* 7907rm -f conftest.$ac_objext conftest$ac_exeext
7908if { (eval echo "$as_me:7908: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>&5
7910 ac_status=$?
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest$ac_exeext'
7914 { (eval echo "$as_me:7914: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:7917: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
2107 eval "ac_cv_func__doprnt=yes" 7919 ac_cv_func__doprnt=yes
2108else 7920else
2109 echo "configure: failed program was:" >&5 7921 echo "$as_me: failed program was:" >&5
2110 cat conftest.$ac_ext >&5 7922cat conftest.$ac_ext >&5
2111 rm -rf conftest*
2112 eval "ac_cv_func__doprnt=no" 7923ac_cv_func__doprnt=no
2113fi 7924fi
2114rm -f conftest* 7925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2115fi 7926fi
2116 7927echo "$as_me:7927: result: $ac_cv_func__doprnt" >&5
7928echo "${ECHO_T}$ac_cv_func__doprnt" >&6
2117if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 7929if test $ac_cv_func__doprnt = yes; then
2118 echo "$ac_t""yes" 1>&6 7930
2119 cat >> confdefs.h <<\EOF 7931cat >>confdefs.h <<\EOF
2120#define HAVE_DOPRNT 1 7932#define HAVE_DOPRNT 1
2121EOF 7933EOF
2122 7934
2123else
2124 echo "$ac_t""no" 1>&6
2125fi 7935fi
2126 7936
2127fi 7937fi
7938done
2128 7939
2129for ac_func in strdup 7940for ac_func in strdup
2130do 7941do
7942ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7943echo "$as_me:7943: checking for $ac_func" >&5
2131echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2132echo "configure:2133: checking for $ac_func" >&5 7945if eval "test \"\${$ac_ac_var+set}\" = set"; then
2133if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6 7946 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else 7947else
2136 cat > conftest.$ac_ext <<EOF 7948 cat >conftest.$ac_ext <<_ACEOF
2137#line 2138 "configure" 7949#line 7949 "configure"
2138#include "confdefs.h" 7950#include "confdefs.h"
2139/* System header to define __stub macros and hopefully few prototypes, 7951/* System header to define __stub macros and hopefully few prototypes,
2140 which can conflict with char $ac_func(); below. */ 7952 which can conflict with char $ac_func (); below. */
2141#include <assert.h> 7953#include <assert.h>
2142/* Override any gcc2 internal prototype to avoid an error. */ 7954/* Override any gcc2 internal prototype to avoid an error. */
7955#ifdef __cplusplus
7956extern "C"
7957#endif
2143/* We use char because int might match the return type of a gcc2 7958/* We use char because int might match the return type of a gcc2
2144 builtin and then its argument prototype would still apply. */ 7959 builtin and then its argument prototype would still apply. */
2145char $ac_func(); 7960char $ac_func ();
7961char (*f) ();
2146 7962
2147int main() { 7963int
2148 7964main ()
7965{
2149/* The GNU C library defines this for functions which it implements 7966/* The GNU C library defines this for functions which it implements
2150 to always fail with ENOSYS. Some functions are actually named 7967 to always fail with ENOSYS. Some functions are actually named
2151 something starting with __ and the normal name is an alias. */ 7968 something starting with __ and the normal name is an alias. */
2152#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2153choke me 7970choke me
2154#else 7971#else
2155$ac_func(); 7972f = $ac_func;
2156#endif 7973#endif
2157 7974
7975 ;
2158; return 0; } 7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:7980: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7982 ac_status=$?
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 eval "$ac_ac_var=yes"
7992else
7993 echo "$as_me: failed program was:" >&5
7994cat conftest.$ac_ext >&5
7995eval "$ac_ac_var=no"
7996fi
7997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7998fi
7999echo "$as_me:7999: result: `eval echo '${'$ac_ac_var'}'`" >&5
8000echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8001if test `eval echo '${'$ac_ac_var'}'` = yes; then
8002 cat >>confdefs.h <<EOF
8003#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2159EOF 8004EOF
2160if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2161 rm -rf conftest*
2162 eval "ac_cv_func_$ac_func=yes"
2163else
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2166 rm -rf conftest*
2167 eval "ac_cv_func_$ac_func=no"
2168fi
2169rm -f conftest*
2170fi
2171 8005
2172if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2173 echo "$ac_t""yes" 1>&6
2174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2175 cat >> confdefs.h <<EOF
2176#define $ac_tr_func 1
2177EOF
2178
2179else 8006else
2180 echo "$ac_t""no" 1>&6 8007 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
2181fi 8008fi
2182done 8009done
2183 8010
2184for ac_func in strdup 8011for ac_func in getopt_long
2185do 8012do
8013ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8014echo "$as_me:8014: checking for $ac_func" >&5
2186echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8015echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2187echo "configure:2188: checking for $ac_func" >&5 8016if eval "test \"\${$ac_ac_var+set}\" = set"; then
2188if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6 8017 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else 8018else
2191 cat > conftest.$ac_ext <<EOF 8019 cat >conftest.$ac_ext <<_ACEOF
2192#line 2193 "configure" 8020#line 8020 "configure"
2193#include "confdefs.h" 8021#include "confdefs.h"
2194/* System header to define __stub macros and hopefully few prototypes, 8022/* System header to define __stub macros and hopefully few prototypes,
2195 which can conflict with char $ac_func(); below. */ 8023 which can conflict with char $ac_func (); below. */
2196#include <assert.h> 8024#include <assert.h>
2197/* Override any gcc2 internal prototype to avoid an error. */ 8025/* Override any gcc2 internal prototype to avoid an error. */
8026#ifdef __cplusplus
8027extern "C"
8028#endif
2198/* We use char because int might match the return type of a gcc2 8029/* We use char because int might match the return type of a gcc2
2199 builtin and then its argument prototype would still apply. */ 8030 builtin and then its argument prototype would still apply. */
2200char $ac_func(); 8031char $ac_func ();
8032char (*f) ();
2201 8033
2202int main() { 8034int
2203 8035main ()
8036{
2204/* The GNU C library defines this for functions which it implements 8037/* The GNU C library defines this for functions which it implements
2205 to always fail with ENOSYS. Some functions are actually named 8038 to always fail with ENOSYS. Some functions are actually named
2206 something starting with __ and the normal name is an alias. */ 8039 something starting with __ and the normal name is an alias. */
2207#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2208choke me 8041choke me
2209#else 8042#else
2210$ac_func(); 8043f = $ac_func;
2211#endif 8044#endif
2212 8045
8046 ;
2213; return 0; } 8047 return 0;
8048}
8049_ACEOF
8050rm -f conftest.$ac_objext conftest$ac_exeext
8051if { (eval echo "$as_me:8051: \"$ac_link\"") >&5
8052 (eval $ac_link) 2>&5
8053 ac_status=$?
8054 echo "$as_me:8054: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest$ac_exeext'
8057 { (eval echo "$as_me:8057: \"$ac_try\"") >&5
8058 (eval $ac_try) 2>&5
8059 ac_status=$?
8060 echo "$as_me:8060: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 eval "$ac_ac_var=yes"
8063else
8064 echo "$as_me: failed program was:" >&5
8065cat conftest.$ac_ext >&5
8066eval "$ac_ac_var=no"
8067fi
8068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8069fi
8070echo "$as_me:8070: result: `eval echo '${'$ac_ac_var'}'`" >&5
8071echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8072if test `eval echo '${'$ac_ac_var'}'` = yes; then
8073 cat >>confdefs.h <<EOF
8074#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2214EOF 8075EOF
2215if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2216 rm -rf conftest*
2217 eval "ac_cv_func_$ac_func=yes"
2218else
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 rm -rf conftest*
2222 eval "ac_cv_func_$ac_func=no"
2223fi
2224rm -f conftest*
2225fi
2226 8076
2227if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2228 echo "$ac_t""yes" 1>&6
2229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2230 cat >> confdefs.h <<EOF
2231#define $ac_tr_func 1
2232EOF
2233
2234else 8077else
2235 echo "$ac_t""no" 1>&6 8078 LIBOBJS="$LIBOBJS getopt.lo getopt1.lo"
2236LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2237fi 8079fi
2238done 8080done
2239
2240
2241 8081
2242# Check whether --enable-html-docs or --disable-html-docs was given. 8082# Check whether --enable-html-docs or --disable-html-docs was given.
2243if test "${enable_html_docs+set}" = set; then 8083if test "${enable_html_docs+set}" = set; then
2244 enableval="$enable_html_docs" 8084 enableval="$enable_html_docs"
2245 case "${enableval}" in 8085 case "${enableval}" in
2246 yes) htmldocs=true ;; 8086 yes) htmldocs=true ;;
2247 no) htmldocs=false ;; 8087 no) htmldocs=false ;;
8088 *) { { echo "$as_me:8088: error: bad value ${enableval} for --enable-html-docs" >&5
2248 *) { echo "configure: error: bad value ${enableval} for --enable-html-docs" 1>&2; exit 1; } ;; 8089echo "$as_me: error: bad value ${enableval} for --enable-html-docs" >&2;}
8090 { (exit 1); exit 1; }; } ;;
2249esac 8091esac
2250else 8092else
2251 htmldocs=true 8093 htmldocs=true
2252fi 8094fi;
2253
2254
2255 8095
2256if test x$htmldocs = xtrue; then 8096if test x$htmldocs = xtrue; then
2257 HTMLDOCS_TRUE= 8097 HTMLDOCS_TRUE=
2258 HTMLDOCS_FALSE='#' 8098 HTMLDOCS_FALSE='#'
2259else 8099else
2265if test "${enable_html4_docs+set}" = set; then 8105if test "${enable_html4_docs+set}" = set; then
2266 enableval="$enable_html4_docs" 8106 enableval="$enable_html4_docs"
2267 case "${enableval}" in 8107 case "${enableval}" in
2268 yes) html4docs=true ;; 8108 yes) html4docs=true ;;
2269 no) html4docs=false ;; 8109 no) html4docs=false ;;
8110 *) { { echo "$as_me:8110: error: bad value ${enableval} for --enable-html4-docs" >&5
2270 *) { echo "configure: error: bad value ${enableval} for --enable-html4-docs" 1>&2; exit 1; } ;; 8111echo "$as_me: error: bad value ${enableval} for --enable-html4-docs" >&2;}
8112 { (exit 1); exit 1; }; } ;;
2271esac 8113esac
2272else 8114else
2273 html4docs=false 8115 html4docs=false
2274fi 8116fi;
2275
2276
2277 8117
2278if test x$html4docs = xtrue; then 8118if test x$html4docs = xtrue; then
2279 HTML4DOCS_TRUE= 8119 HTML4DOCS_TRUE=
2280 HTML4DOCS_FALSE='#' 8120 HTML4DOCS_FALSE='#'
2281else 8121else
2287if test "${enable_ascii_docs+set}" = set; then 8127if test "${enable_ascii_docs+set}" = set; then
2288 enableval="$enable_ascii_docs" 8128 enableval="$enable_ascii_docs"
2289 case "${enableval}" in 8129 case "${enableval}" in
2290 yes) asciidocs=true ;; 8130 yes) asciidocs=true ;;
2291 no) asciidocs=false ;; 8131 no) asciidocs=false ;;
8132 *) { { echo "$as_me:8132: error: bad value ${enableval} for --enable-ascii-docs" >&5
2292 *) { echo "configure: error: bad value ${enableval} for --enable-ascii-docs" 1>&2; exit 1; } ;; 8133echo "$as_me: error: bad value ${enableval} for --enable-ascii-docs" >&2;}
8134 { (exit 1); exit 1; }; } ;;
2293esac 8135esac
2294else 8136else
2295 asciidocs=false 8137 asciidocs=false
2296fi 8138fi;
2297
2298
2299 8139
2300if test x$asciidocs = xtrue; then 8140if test x$asciidocs = xtrue; then
2301 ASCIIDOCS_TRUE= 8141 ASCIIDOCS_TRUE=
2302 ASCIIDOCS_FALSE='#' 8142 ASCIIDOCS_FALSE='#'
2303else 8143else
2309if test "${enable_rtf_docs+set}" = set; then 8149if test "${enable_rtf_docs+set}" = set; then
2310 enableval="$enable_rtf_docs" 8150 enableval="$enable_rtf_docs"
2311 case "${enableval}" in 8151 case "${enableval}" in
2312 yes) rtfdocs=true ;; 8152 yes) rtfdocs=true ;;
2313 no) rtfdocs=false ;; 8153 no) rtfdocs=false ;;
8154 *) { { echo "$as_me:8154: error: bad value ${enableval} for --enable-rtf-docs" >&5
2314 *) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;; 8155echo "$as_me: error: bad value ${enableval} for --enable-rtf-docs" >&2;}
8156 { (exit 1); exit 1; }; } ;;
2315esac 8157esac
2316else 8158else
2317 rtfdocs=false 8159 rtfdocs=false
2318fi 8160fi;
2319
2320
2321 8161
2322if test x$rtfdocs = xtrue; then 8162if test x$rtfdocs = xtrue; then
2323 RTFDOCS_TRUE= 8163 RTFDOCS_TRUE=
2324 RTFDOCS_FALSE='#' 8164 RTFDOCS_FALSE='#'
2325else 8165else
2326 RTFDOCS_TRUE='#' 8166 RTFDOCS_TRUE='#'
2327 RTFDOCS_FALSE= 8167 RTFDOCS_FALSE=
2328fi 8168fi
2329 8169
2330trap '' 1 2 15 8170ac_config_files="$ac_config_files Makefile compat/Makefile lib/Makefile lib/psiconv/Makefile program/Makefile program/psiconv/Makefile lib/psiconv/general.h formats/Makefile docs/Makefile extra/Makefile"
8171
2331cat > confcache <<\EOF 8172cat >confcache <<\_ACEOF
2332# This file is a shell script that caches the results of configure 8173# This file is a shell script that caches the results of configure
2333# tests run on this system so they can be shared between configure 8174# tests run on this system so they can be shared between configure
2334# scripts and configure runs. It is not useful on other systems. 8175# scripts and configure runs, see configure's option --config-cache.
2335# If it contains results you don't want to keep, you may remove or edit it. 8176# It is not useful on other systems. If it contains results you don't
8177# want to keep, you may remove or edit it.
2336# 8178#
2337# By default, configure uses ./config.cache as the cache file,
2338# creating it if it does not exist already. You can give configure
2339# the --cache-file=FILE option to use a different cache file; that is
2340# what configure does when it calls configure scripts in
2341# subdirectories, so they share the cache.
2342# Giving --cache-file=/dev/null disables caching, for debugging configure.
2343# config.status only pays attention to the cache file if you give it the 8179# config.status only pays attention to the cache file if you give it
2344# --recheck option to rerun configure. 8180# the --recheck option to rerun configure.
2345# 8181#
2346EOF 8182# `ac_cv_env_foo' variables (set or unset) will be overriden when
8183# loading this file, other *unset* `ac_cv_foo' will be assigned the
8184# following values.
8185
8186_ACEOF
8187
2347# The following way of writing the cache mishandles newlines in values, 8188# The following way of writing the cache mishandles newlines in values,
2348# but we know of no workaround that is simple, portable, and efficient. 8189# but we know of no workaround that is simple, portable, and efficient.
2349# So, don't put newlines in cache variables' values. 8190# So, don't put newlines in cache variables' values.
2350# Ultrix sh set writes to stderr and can't be redirected directly, 8191# Ultrix sh set writes to stderr and can't be redirected directly,
2351# and sets the high bit in the cache file unless we assign to the vars. 8192# and sets the high bit in the cache file unless we assign to the vars.
8193{
2352(set) 2>&1 | 8194 (set) 2>&1 |
2353 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8195 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2354 *ac_space=\ *) 8196 *ac_space=\ *)
2355 # `set' does not quote correctly, so add quotes (double-quote substitution 8197 # `set' does not quote correctly, so add quotes (double-quote
2356 # turns \\\\ into \\, and sed turns \\ into \). 8198 # substitution turns \\\\ into \\, and sed turns \\ into \).
2357 sed -n \ 8199 sed -n \
2358 -e "s/'/'\\\\''/g" \ 8200 "s/'/'\\\\''/g;
2359 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 8201 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2360 ;; 8202 ;;
2361 *) 8203 *)
2362 # `set' quotes correctly as required by POSIX, so do not add quotes. 8204 # `set' quotes correctly as required by POSIX, so do not add quotes.
2363 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 8205 sed -n \
8206 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2364 ;; 8207 ;;
2365 esac >> confcache 8208 esac;
8209} |
8210 sed '
8211 t clear
8212 : clear
8213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8214 t end
8215 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8216 : end' >>confcache
2366if cmp -s $cache_file confcache; then 8217if cmp -s $cache_file confcache; then :; else
2367 :
2368else
2369 if test -w $cache_file; then 8218 if test -w $cache_file; then
2370 echo "updating cache $cache_file" 8219 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2371 cat confcache > $cache_file 8220 cat confcache >$cache_file
2372 else 8221 else
2373 echo "not updating unwritable cache $cache_file" 8222 echo "not updating unwritable cache $cache_file"
2374 fi 8223 fi
2375fi 8224fi
2376rm -f confcache 8225rm -f confcache
2377 8226
2378trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2379
2380test "x$prefix" = xNONE && prefix=$ac_default_prefix 8227test "x$prefix" = xNONE && prefix=$ac_default_prefix
2381# Let make expand exec_prefix. 8228# Let make expand exec_prefix.
2382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8229test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2383 8230
2384# Any assignment to VPATH causes Sun make to only execute 8231# VPATH may cause trouble with some makes, so we remove $(srcdir),
2385# the first set of double-colon rules, so remove it if not needed. 8232# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2386# If there is a colon in the path, we need to keep it. 8233# trailing colons and then remove the whole line if VPATH becomes empty
8234# (actually we leave an empty line to preserve line numbers).
2387if test "x$srcdir" = x.; then 8235if test "x$srcdir" = x.; then
2388 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 8236 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8237s/:*\$(srcdir):*/:/;
8238s/:*\${srcdir}:*/:/;
8239s/:*@srcdir@:*/:/;
8240s/^\([^=]*=[ ]*\):*/\1/;
8241s/:*$//;
8242s/^[^=]*=[ ]*$//;
8243}'
2389fi 8244fi
2390
2391trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2392 8245
2393DEFS=-DHAVE_CONFIG_H 8246DEFS=-DHAVE_CONFIG_H
2394 8247
2395# Without the "./", some shells look in PATH for config.status.
2396: ${CONFIG_STATUS=./config.status} 8248: ${CONFIG_STATUS=./config.status}
2397 8249ac_clean_files_save=$ac_clean_files
8250ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8251{ echo "$as_me:8251: creating $CONFIG_STATUS" >&5
2398echo creating $CONFIG_STATUS 8252echo "$as_me: creating $CONFIG_STATUS" >&6;}
2399rm -f $CONFIG_STATUS
2400cat > $CONFIG_STATUS <<EOF 8253cat >$CONFIG_STATUS <<_ACEOF
2401#! /bin/sh 8254#! $SHELL
2402# Generated automatically by configure. 8255# Generated automatically by configure.
2403# Run this file to recreate the current configuration. 8256# Run this file to recreate the current configuration.
2404# This directory was configured as follows, 8257# Compiler output produced by configure, useful for debugging
8258# configure, is in config.log if it exists.
8259
8260debug=false
8261SHELL=\${CONFIG_SHELL-$SHELL}
8262ac_cs_invocation="\$0 \$@"
8263
8264_ACEOF
8265
8266cat >>$CONFIG_STATUS <<\_ACEOF
8267# Be Bourne compatible
8268if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8269 emulate sh
8270 NULLCMD=:
8271elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8272 set -o posix
8273fi
8274
8275# Name of the executable.
8276as_me=`echo "$0" |sed 's,.*[\\/],,'`
8277
8278if expr a : '\(a\)' >/dev/null 2>&1; then
8279 as_expr=expr
8280else
8281 as_expr=false
8282fi
8283
8284rm -f conf$$ conf$$.exe conf$$.file
8285echo >conf$$.file
8286if ln -s conf$$.file conf$$ 2>/dev/null; then
8287 # We could just check for DJGPP; but this test a) works b) is more generic
8288 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8289 if test -f conf$$.exe; then
8290 # Don't use ln at all; we don't have any links
8291 as_ln_s='cp -p'
8292 else
8293 as_ln_s='ln -s'
8294 fi
8295elif ln conf$$.file conf$$ 2>/dev/null; then
8296 as_ln_s=ln
8297else
8298 as_ln_s='cp -p'
8299fi
8300rm -f conf$$ conf$$.exe conf$$.file
8301
8302as_executable_p="test -f"
8303
8304# Support unset when possible.
8305if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8306 as_unset=unset
8307else
8308 as_unset=false
8309fi
8310
8311# NLS nuisances.
8312$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8313$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8314$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8315$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8316$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8317$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8318$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8319$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8320
8321# IFS
8322# We need space, tab and new line, in precisely that order.
8323as_nl='
8324'
8325IFS=" $as_nl"
8326
8327# CDPATH.
8328$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8329
8330exec 6>&1
8331
8332_ACEOF
8333
8334# Files that config.status was made for.
8335if test -n "$ac_config_files"; then
8336 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8337fi
8338
8339if test -n "$ac_config_headers"; then
8340 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8341fi
8342
8343if test -n "$ac_config_links"; then
8344 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8345fi
8346
8347if test -n "$ac_config_commands"; then
8348 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8349fi
8350
8351cat >>$CONFIG_STATUS <<\EOF
8352
8353ac_cs_usage="\
8354\`$as_me' instantiates files from templates according to the
8355current configuration.
8356
8357Usage: $0 [OPTIONS] [FILE]...
8358
8359 -h, --help print this help, then exit
8360 -V, --version print version number, then exit
8361 -d, --debug don't remove temporary files
8362 --recheck update $as_me by reconfiguring in the same conditions
8363 --file=FILE[:TEMPLATE]
8364 instantiate the configuration file FILE
8365 --header=FILE[:TEMPLATE]
8366 instantiate the configuration header FILE
8367
8368Configuration files:
8369$config_files
8370
8371Configuration headers:
8372$config_headers
8373
8374Configuration commands:
8375$config_commands
8376
8377Report bugs to <bug-autoconf@gnu.org>."
8378EOF
8379
8380cat >>$CONFIG_STATUS <<EOF
8381ac_cs_version="\\
8382config.status
8383configured by $0, generated by GNU Autoconf 2.50,
8384 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8385
8386Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8387Free Software Foundation, Inc.
8388This config.status script is free software; the Free Software Foundation
8389gives unlimited permission to copy, distribute and modify it."
8390srcdir=$srcdir
8391INSTALL="$INSTALL"
8392EOF
8393
8394cat >>$CONFIG_STATUS <<\EOF
8395# If no file are specified by the user, then we need to provide default
8396# value. By we need to know if files were specified by the user.
8397ac_need_defaults=:
8398while test $# != 0
8399do
8400 case $1 in
8401 --*=*)
8402 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8403 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8404 shift
8405 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8406 shift
8407 ;;
8408 -*);;
8409 *) # This is not an option, so the user has probably given explicit
8410 # arguments.
8411 ac_need_defaults=false;;
8412 esac
8413
8414 case $1 in
8415 # Handling of the options.
8416EOF
8417cat >>$CONFIG_STATUS <<EOF
8418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8419 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8420 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8421EOF
8422cat >>$CONFIG_STATUS <<\EOF
8423 --version | --vers* | -V )
8424 echo "$ac_cs_version"; exit 0 ;;
8425 --he | --h)
8426 # Conflict between --help and --header
8427 { { echo "$as_me:8427: error: ambiguous option: $1
8428Try \`$0 --help' for more information." >&5
8429echo "$as_me: error: ambiguous option: $1
8430Try \`$0 --help' for more information." >&2;}
8431 { (exit 1); exit 1; }; };;
8432 --help | --hel | -h )
8433 echo "$ac_cs_usage"; exit 0 ;;
8434 --debug | --d* | -d )
8435 debug=: ;;
8436 --file | --fil | --fi | --f )
8437 shift
8438 CONFIG_FILES="$CONFIG_FILES $1"
8439 ac_need_defaults=false;;
8440 --header | --heade | --head | --hea )
8441 shift
8442 CONFIG_HEADERS="$CONFIG_HEADERS $1"
8443 ac_need_defaults=false;;
8444
8445 # Handling of arguments.
8446 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8447 'compat/Makefile' ) CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
8448 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
8449 'lib/psiconv/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/psiconv/Makefile" ;;
8450 'program/Makefile' ) CONFIG_FILES="$CONFIG_FILES program/Makefile" ;;
8451 'program/psiconv/Makefile' ) CONFIG_FILES="$CONFIG_FILES program/psiconv/Makefile" ;;
8452 'lib/psiconv/general.h' ) CONFIG_FILES="$CONFIG_FILES lib/psiconv/general.h" ;;
8453 'formats/Makefile' ) CONFIG_FILES="$CONFIG_FILES formats/Makefile" ;;
8454 'docs/Makefile' ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
8455 'extra/Makefile' ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
8456 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8457 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8458
8459 # This is an error.
8460 -*) { { echo "$as_me:8460: error: unrecognized option: $1
8461Try \`$0 --help' for more information." >&5
8462echo "$as_me: error: unrecognized option: $1
8463Try \`$0 --help' for more information." >&2;}
8464 { (exit 1); exit 1; }; } ;;
8465 *) { { echo "$as_me:8465: error: invalid argument: $1" >&5
8466echo "$as_me: error: invalid argument: $1" >&2;}
8467 { (exit 1); exit 1; }; };;
8468 esac
8469 shift
8470done
8471
8472exec 5>>config.log
8473cat >&5 << _ACEOF
8474
8475## ----------------------- ##
8476## Running config.status. ##
8477## ----------------------- ##
8478
8479This file was extended by $as_me 2.50, executed with
8480 > $ac_cs_invocation
2405# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8481on `(hostname || uname -n) 2>/dev/null | sed 1q`
8482
8483_ACEOF
8484EOF
8485
8486cat >>$CONFIG_STATUS <<\EOF
8487# If the user did not use the arguments to specify the items to instantiate,
8488# then the envvar interface is used. Set only those that are not.
8489# We use the long form for the default assignment because of an extremely
8490# bizarre bug on SunOS 4.1.3.
8491if $ac_need_defaults; then
8492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8495fi
8496
8497# Create a temporary directory, and hook for its removal unless debugging.
8498$debug ||
8499{
8500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8501 trap '{ (exit $?); exit $?; }' 1 2 13 15
8502}
8503
8504# Create a (secure) tmp directory for tmp files.
8505: ${TMPDIR=/tmp}
8506{
8507 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8508 test -n "$tmp" && test -d "$tmp"
8509} ||
8510{
8511 tmp=$TMPDIR/cs$$-$RANDOM
8512 (umask 077 && mkdir $tmp)
8513} ||
8514{
8515 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8516 { (exit 1); exit 1; }
8517}
8518
8519EOF
8520
8521cat >>$CONFIG_STATUS <<EOF
2406# 8522#
2407# $0 $ac_configure_args 8523# INIT-COMMANDS section.
2408# 8524#
2409# Compiler output produced by configure, useful for debugging
2410# configure, is in ./config.log if it exists.
2411 8525
2412ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 8526EOF
2413for ac_option 8527
2414do 8528cat >>$CONFIG_STATUS <<EOF
2415 case "\$ac_option" in 8529
2416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8530#
2417 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 8531# CONFIG_FILES section.
2418 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 8532#
2419 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 8533
2420 echo "$CONFIG_STATUS generated by autoconf version 2.13" 8534# No need to generate the scripts if there are no CONFIG_FILES.
2421 exit 0 ;; 8535# This happens for instance when ./config.status config.h
2422 -help | --help | --hel | --he | --h) 8536if test -n "\$CONFIG_FILES"; then
2423 echo "\$ac_cs_usage"; exit 0 ;; 8537 # Protect against being on the right side of a sed subst in config.status.
2424 *) echo "\$ac_cs_usage"; exit 1 ;; 8538 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8539 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8540s,@SHELL@,$SHELL,;t t
8541s,@exec_prefix@,$exec_prefix,;t t
8542s,@prefix@,$prefix,;t t
8543s,@program_transform_name@,$program_transform_name,;t t
8544s,@bindir@,$bindir,;t t
8545s,@sbindir@,$sbindir,;t t
8546s,@libexecdir@,$libexecdir,;t t
8547s,@datadir@,$datadir,;t t
8548s,@sysconfdir@,$sysconfdir,;t t
8549s,@sharedstatedir@,$sharedstatedir,;t t
8550s,@localstatedir@,$localstatedir,;t t
8551s,@libdir@,$libdir,;t t
8552s,@includedir@,$includedir,;t t
8553s,@oldincludedir@,$oldincludedir,;t t
8554s,@infodir@,$infodir,;t t
8555s,@mandir@,$mandir,;t t
8556s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8557s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8558s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8559s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8560s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8561s,@ECHO_C@,$ECHO_C,;t t
8562s,@ECHO_N@,$ECHO_N,;t t
8563s,@ECHO_T@,$ECHO_T,;t t
8564s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8565s,@DEFS@,$DEFS,;t t
8566s,@LIBS@,$LIBS,;t t
8567s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8568s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8569s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8570s,@PACKAGE@,$PACKAGE,;t t
8571s,@VERSION@,$VERSION,;t t
8572s,@ACLOCAL@,$ACLOCAL,;t t
8573s,@AUTOCONF@,$AUTOCONF,;t t
8574s,@AUTOMAKE@,$AUTOMAKE,;t t
8575s,@AUTOHEADER@,$AUTOHEADER,;t t
8576s,@MAKEINFO@,$MAKEINFO,;t t
8577s,@SET_MAKE@,$SET_MAKE,;t t
8578s,@build@,$build,;t t
8579s,@build_cpu@,$build_cpu,;t t
8580s,@build_vendor@,$build_vendor,;t t
8581s,@build_os@,$build_os,;t t
8582s,@host@,$host,;t t
8583s,@host_cpu@,$host_cpu,;t t
8584s,@host_vendor@,$host_vendor,;t t
8585s,@host_os@,$host_os,;t t
8586s,@CC@,$CC,;t t
8587s,@CFLAGS@,$CFLAGS,;t t
8588s,@LDFLAGS@,$LDFLAGS,;t t
8589s,@CPPFLAGS@,$CPPFLAGS,;t t
8590s,@ac_ct_CC@,$ac_ct_CC,;t t
8591s,@EXEEXT@,$EXEEXT,;t t
8592s,@OBJEXT@,$OBJEXT,;t t
8593s,@LN_S@,$LN_S,;t t
8594s,@ECHO@,$ECHO,;t t
8595s,@RANLIB@,$RANLIB,;t t
8596s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8597s,@STRIP@,$STRIP,;t t
8598s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8599s,@CPP@,$CPP,;t t
8600s,@LIBTOOL@,$LIBTOOL,;t t
8601s,@cflags_set@,$cflags_set,;t t
8602s,@IMAGEMAGICK@,$IMAGEMAGICK,;t t
8603s,@LIB_MAGICK@,$LIB_MAGICK,;t t
8604s,@INT_8_BIT@,$INT_8_BIT,;t t
8605s,@INT_16_BIT@,$INT_16_BIT,;t t
8606s,@INT_32_BIT@,$INT_32_BIT,;t t
8607s,@LIBOBJS@,$LIBOBJS,;t t
8608s,@HTMLDOCS_TRUE@,$HTMLDOCS_TRUE,;t t
8609s,@HTMLDOCS_FALSE@,$HTMLDOCS_FALSE,;t t
8610s,@HTML4DOCS_TRUE@,$HTML4DOCS_TRUE,;t t
8611s,@HTML4DOCS_FALSE@,$HTML4DOCS_FALSE,;t t
8612s,@ASCIIDOCS_TRUE@,$ASCIIDOCS_TRUE,;t t
8613s,@ASCIIDOCS_FALSE@,$ASCIIDOCS_FALSE,;t t
8614s,@RTFDOCS_TRUE@,$RTFDOCS_TRUE,;t t
8615s,@RTFDOCS_FALSE@,$RTFDOCS_FALSE,;t t
8616CEOF
8617
8618EOF
8619
8620 cat >>$CONFIG_STATUS <<\EOF
8621 # Split the substitutions into bite-sized pieces for seds with
8622 # small command number limits, like on Digital OSF/1 and HP-UX.
8623 ac_max_sed_lines=48
8624 ac_sed_frag=1 # Number of current file.
8625 ac_beg=1 # First line for current file.
8626 ac_end=$ac_max_sed_lines # Line after last line for current file.
8627 ac_more_lines=:
8628 ac_sed_cmds=
8629 while $ac_more_lines; do
8630 if test $ac_beg -gt 1; then
8631 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8632 else
8633 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8634 fi
8635 if test ! -s $tmp/subs.frag; then
8636 ac_more_lines=false
8637 else
8638 # The purpose of the label and of the branching condition is to
8639 # speed up the sed processing (if there are no `@' at all, there
8640 # is no need to browse any of the substitutions).
8641 # These are the two extra sed commands mentioned above.
8642 (echo ':t
8643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8644 if test -z "$ac_sed_cmds"; then
8645 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8646 else
8647 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8648 fi
8649 ac_sed_frag=`expr $ac_sed_frag + 1`
8650 ac_beg=$ac_end
8651 ac_end=`expr $ac_end + $ac_max_sed_lines`
8652 fi
8653 done
8654 if test -z "$ac_sed_cmds"; then
8655 ac_sed_cmds=cat
8656 fi
8657fi # test -n "$CONFIG_FILES"
8658
8659EOF
8660cat >>$CONFIG_STATUS <<\EOF
8661for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8663 case $ac_file in
8664 - | *:- | *:-:* ) # input from stdin
8665 cat >$tmp/stdin
8666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8670 * ) ac_file_in=$ac_file.in ;;
2425 esac 8671 esac
2426done
2427 8672
2428ac_given_srcdir=$srcdir 8673 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2429ac_given_INSTALL="$INSTALL" 8674 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2430 8675 X"$ac_file" : 'X\(//\)[^/]' \| \
2431trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 8676 X"$ac_file" : 'X\(//\)$' \| \
2432EOF 8677 X"$ac_file" : 'X\(/\)' \| \
2433cat >> $CONFIG_STATUS <<EOF 8678 . : '\(.\)' 2>/dev/null ||
2434 8679echo X"$ac_file" |
2435# Protect against being on the right side of a sed subst in config.status. 8680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2436sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 8681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2437 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 8682 /^X\(\/\/\)$/{ s//\1/; q; }
2438$ac_vpsub 8683 /^X\(\/\).*/{ s//\1/; q; }
2439$extrasub 8684 s/.*/./; q'`
2440s%@SHELL@%$SHELL%g 8685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2441s%@CFLAGS@%$CFLAGS%g
2442s%@CPPFLAGS@%$CPPFLAGS%g
2443s%@CXXFLAGS@%$CXXFLAGS%g
2444s%@FFLAGS@%$FFLAGS%g
2445s%@DEFS@%$DEFS%g
2446s%@LDFLAGS@%$LDFLAGS%g
2447s%@LIBS@%$LIBS%g
2448s%@exec_prefix@%$exec_prefix%g
2449s%@prefix@%$prefix%g
2450s%@program_transform_name@%$program_transform_name%g
2451s%@bindir@%$bindir%g
2452s%@sbindir@%$sbindir%g
2453s%@libexecdir@%$libexecdir%g
2454s%@datadir@%$datadir%g
2455s%@sysconfdir@%$sysconfdir%g
2456s%@sharedstatedir@%$sharedstatedir%g
2457s%@localstatedir@%$localstatedir%g
2458s%@libdir@%$libdir%g
2459s%@includedir@%$includedir%g
2460s%@oldincludedir@%$oldincludedir%g
2461s%@infodir@%$infodir%g
2462s%@mandir@%$mandir%g
2463s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2464s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2465s%@INSTALL_DATA@%$INSTALL_DATA%g
2466s%@PACKAGE@%$PACKAGE%g
2467s%@VERSION@%$VERSION%g
2468s%@ACLOCAL@%$ACLOCAL%g
2469s%@AUTOCONF@%$AUTOCONF%g
2470s%@AUTOMAKE@%$AUTOMAKE%g
2471s%@AUTOHEADER@%$AUTOHEADER%g
2472s%@MAKEINFO@%$MAKEINFO%g
2473s%@SET_MAKE@%$SET_MAKE%g
2474s%@host@%$host%g
2475s%@host_alias@%$host_alias%g
2476s%@host_cpu@%$host_cpu%g
2477s%@host_vendor@%$host_vendor%g
2478s%@host_os@%$host_os%g
2479s%@build@%$build%g
2480s%@build_alias@%$build_alias%g
2481s%@build_cpu@%$build_cpu%g
2482s%@build_vendor@%$build_vendor%g
2483s%@build_os@%$build_os%g
2484s%@RANLIB@%$RANLIB%g
2485s%@CC@%$CC%g
2486s%@LD@%$LD%g
2487s%@NM@%$NM%g
2488s%@LN_S@%$LN_S%g
2489s%@LIBTOOL@%$LIBTOOL%g
2490s%@CPP@%$CPP%g
2491s%@INT_8_BIT@%$INT_8_BIT%g
2492s%@INT_16_BIT@%$INT_16_BIT%g
2493s%@INT_32_BIT@%$INT_32_BIT%g
2494s%@LIBOBJS@%$LIBOBJS%g
2495s%@HTMLDOCS_TRUE@%$HTMLDOCS_TRUE%g
2496s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g
2497s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g
2498s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g
2499s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g
2500s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g
2501s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g
2502s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g
2503
2504CEOF
2505EOF
2506
2507cat >> $CONFIG_STATUS <<\EOF
2508
2509# Split the substitutions into bite-sized pieces for seds with
2510# small command number limits, like on Digital OSF/1 and HP-UX.
2511ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2512ac_file=1 # Number of current file.
2513ac_beg=1 # First line for current file.
2514ac_end=$ac_max_sed_cmds # Line after last line for current file.
2515ac_more_lines=:
2516ac_sed_cmds=""
2517while $ac_more_lines; do
2518 if test $ac_beg -gt 1; then
2519 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2520 else
2521 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2522 fi
2523 if test ! -s conftest.s$ac_file; then
2524 ac_more_lines=false
2525 rm -f conftest.s$ac_file
2526 else
2527 if test -z "$ac_sed_cmds"; then
2528 ac_sed_cmds="sed -f conftest.s$ac_file"
2529 else
2530 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2531 fi
2532 ac_file=`expr $ac_file + 1`
2533 ac_beg=$ac_end
2534 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2535 fi
2536done
2537if test -z "$ac_sed_cmds"; then
2538 ac_sed_cmds=cat
2539fi
2540EOF
2541
2542cat >> $CONFIG_STATUS <<EOF
2543
2544CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"}
2545EOF
2546cat >> $CONFIG_STATUS <<\EOF
2547for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2549 case "$ac_file" in 8686 { case "$ac_dir" in
2550 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 8687 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2551 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 8688 *) as_incr_dir=.;;
2552 *) ac_file_in="${ac_file}.in" ;; 8689esac
8690as_dummy="$ac_dir"
8691for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8692 case $as_mkdir_dir in
8693 # Skip DOS drivespec
8694 ?:) as_incr_dir=$as_mkdir_dir ;;
8695 *)
8696 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8697 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8698 ;;
2553 esac 8699 esac
8700done; }
2554 8701
2555 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2556
2557 # Remove last slash and all that follows it. Not all systems have dirname.
2558 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2559 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2560 # The file is in a subdirectory.
2561 test ! -d "$ac_dir" && mkdir "$ac_dir"
2562 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 8702 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2563 # A "../" for each directory in $ac_dir_suffix. 8703 # A "../" for each directory in $ac_dir_suffix.
2564 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 8704 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2565 else 8705 else
2566 ac_dir_suffix= ac_dots= 8706 ac_dir_suffix= ac_dots=
2567 fi 8707 fi
2568 8708
2569 case "$ac_given_srcdir" in 8709 case $srcdir in
2570 .) srcdir=. 8710 .) ac_srcdir=.
2571 if test -z "$ac_dots"; then top_srcdir=. 8711 if test -z "$ac_dots"; then
8712 ac_top_srcdir=.
8713 else
2572 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 8714 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2573 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 8715 fi ;;
8716 [\\/]* | ?:[\\/]* )
8717 ac_srcdir=$srcdir$ac_dir_suffix;
8718 ac_top_srcdir=$srcdir ;;
2574 *) # Relative path. 8719 *) # Relative path.
2575 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 8720 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2576 top_srcdir="$ac_dots$ac_given_srcdir" ;; 8721 ac_top_srcdir=$ac_dots$srcdir ;;
2577 esac 8722 esac
2578 8723
2579 case "$ac_given_INSTALL" in 8724 case $INSTALL in
2580 [/$]*) INSTALL="$ac_given_INSTALL" ;; 8725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2581 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 8726 *) ac_INSTALL=$ac_dots$INSTALL ;;
2582 esac 8727 esac
2583 8728
2584 echo creating "$ac_file" 8729 if test x"$ac_file" != x-; then
8730 { echo "$as_me:8730: creating $ac_file" >&5
8731echo "$as_me: creating $ac_file" >&6;}
2585 rm -f "$ac_file" 8732 rm -f "$ac_file"
8733 fi
8734 # Let's still pretend it is `configure' which instantiates (i.e., don't
8735 # use $as_me), people would be surprised to read:
8736 # /* config.h. Generated automatically by config.status. */
2586 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 8737 configure_input="Generated automatically from `echo $ac_file_in |
2587 case "$ac_file" in 8738 sed 's,.*/,,'` by configure."
2588 *Makefile*) ac_comsub="1i\\ 8739
2589# $configure_input" ;; 8740 # First look for the input files in the build tree, otherwise in the
2590 *) ac_comsub= ;; 8741 # src tree.
8742 ac_file_inputs=`IFS=:
8743 for f in $ac_file_in; do
8744 case $f in
8745 -) echo $tmp/stdin ;;
8746 [\\/$]*)
8747 # Absolute (can't be DOS-style, as IFS=:)
8748 test -f "$f" || { { echo "$as_me:8748: error: cannot find input file: $f" >&5
8749echo "$as_me: error: cannot find input file: $f" >&2;}
8750 { (exit 1); exit 1; }; }
8751 echo $f;;
8752 *) # Relative
8753 if test -f "$f"; then
8754 # Build tree
8755 echo $f
8756 elif test -f "$srcdir/$f"; then
8757 # Source tree
8758 echo $srcdir/$f
8759 else
8760 # /dev/null tree
8761 { { echo "$as_me:8761: error: cannot find input file: $f" >&5
8762echo "$as_me: error: cannot find input file: $f" >&2;}
8763 { (exit 1); exit 1; }; }
8764 fi;;
2591 esac 8765 esac
2592 8766 done` || { (exit 1); exit 1; }
2593 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 8767EOF
8768cat >>$CONFIG_STATUS <<EOF
2594 sed -e "$ac_comsub 8769 sed "$ac_vpsub
8770$extrasub
8771EOF
8772cat >>$CONFIG_STATUS <<\EOF
8773:t
8774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2595s%@configure_input@%$configure_input%g 8775s,@configure_input@,$configure_input,;t t
2596s%@srcdir@%$srcdir%g 8776s,@srcdir@,$ac_srcdir,;t t
2597s%@top_srcdir@%$top_srcdir%g 8777s,@top_srcdir@,$ac_top_srcdir,;t t
2598s%@INSTALL@%$INSTALL%g 8778s,@INSTALL@,$ac_INSTALL,;t t
2599" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 8779" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2600fi; done 8780 rm -f $tmp/stdin
2601rm -f conftest.s* 8781 if test x"$ac_file" != x-; then
8782 mv $tmp/out $ac_file
8783 else
8784 cat $tmp/out
8785 rm -f $tmp/out
8786 fi
8787
8788done
8789EOF
8790cat >>$CONFIG_STATUS <<\EOF
8791
8792#
8793# CONFIG_HEADER section.
8794#
2602 8795
2603# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8796# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2604# NAME is the cpp macro being defined and VALUE is the value it is being given. 8797# NAME is the cpp macro being defined and VALUE is the value it is being given.
2605# 8798#
2606# ac_d sets the value in "#define NAME VALUE" lines. 8799# ac_d sets the value in "#define NAME VALUE" lines.
2607ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8800ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2608ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 8801ac_dB='[ ].*$,\1#\2'
2609ac_dC='\3' 8802ac_dC=' '
2610ac_dD='%g' 8803ac_dD=',;t'
2611# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 8804# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2612ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8805ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2613ac_uB='\([ ]\)%\1#\2define\3' 8806ac_uB='$,\1#\2define\3'
2614ac_uC=' ' 8807ac_uC=' '
2615ac_uD='\4%g' 8808ac_uD=',;t'
2616# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2617ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2618ac_eB='$%\1#\2define\3'
2619ac_eC=' '
2620ac_eD='%g'
2621 8809
2622if test "${CONFIG_HEADERS+set}" != set; then 8810for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8811 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8812 case $ac_file in
8813 - | *:- | *:-:* ) # input from stdin
8814 cat >$tmp/stdin
8815 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8817 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8818 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8819 * ) ac_file_in=$ac_file.in ;;
8820 esac
8821
8822 test x"$ac_file" != x- && { echo "$as_me:8822: creating $ac_file" >&5
8823echo "$as_me: creating $ac_file" >&6;}
8824
8825 # First look for the input files in the build tree, otherwise in the
8826 # src tree.
8827 ac_file_inputs=`IFS=:
8828 for f in $ac_file_in; do
8829 case $f in
8830 -) echo $tmp/stdin ;;
8831 [\\/$]*)
8832 # Absolute (can't be DOS-style, as IFS=:)
8833 test -f "$f" || { { echo "$as_me:8833: error: cannot find input file: $f" >&5
8834echo "$as_me: error: cannot find input file: $f" >&2;}
8835 { (exit 1); exit 1; }; }
8836 echo $f;;
8837 *) # Relative
8838 if test -f "$f"; then
8839 # Build tree
8840 echo $f
8841 elif test -f "$srcdir/$f"; then
8842 # Source tree
8843 echo $srcdir/$f
8844 else
8845 # /dev/null tree
8846 { { echo "$as_me:8846: error: cannot find input file: $f" >&5
8847echo "$as_me: error: cannot find input file: $f" >&2;}
8848 { (exit 1); exit 1; }; }
8849 fi;;
8850 esac
8851 done` || { (exit 1); exit 1; }
8852 # Remove the trailing spaces.
8853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8854
2623EOF 8855EOF
2624cat >> $CONFIG_STATUS <<EOF 8856
2625 CONFIG_HEADERS="config.h" 8857# Transform confdefs.h into two sed scripts, `conftest.defines' and
8858# `conftest.undefs', that substitutes the proper values into
8859# config.h.in to produce config.h. The first handles `#define'
8860# templates, and the second `#undef' templates.
8861# And first: Protect against being on the right side of a sed subst in
8862# config.status. Protect against being in an unquoted here document
8863# in config.status.
8864rm -f conftest.defines conftest.undefs
8865# Using a here document instead of a string reduces the quoting nightmare.
8866# Putting comments in sed scripts is not portable.
8867#
8868# `end' is used to avoid that the second main sed command (meant for
8869# 0-ary CPP macros) applies to n-ary macro definitions.
8870# See the Autoconf documentation for `clear'.
8871cat >confdef2sed.sed <<\EOF
8872s/[\\&,]/\\&/g
8873s,[\\$`],\\&,g
8874t clear
8875: clear
8876s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
8877t end
8878s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8879: end
2626EOF 8880EOF
2627cat >> $CONFIG_STATUS <<\EOF 8881# If some macros were called several times there might be several times
2628fi 8882# the same #defines, which is useless. Nevertheless, we may not want to
2629for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 8883# sort them, since we want the *last* AC-DEFINE to be honored.
2630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8884uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2631 case "$ac_file" in 8885sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2632 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 8886rm -f confdef2sed.sed
2633 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2634 *) ac_file_in="${ac_file}.in" ;;
2635 esac
2636
2637 echo creating $ac_file
2638
2639 rm -f conftest.frag conftest.in conftest.out
2640 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2641 cat $ac_file_inputs > conftest.in
2642
2643EOF
2644
2645# Transform confdefs.h into a sed script conftest.vals that substitutes
2646# the proper values into config.h.in to produce config.h. And first:
2647# Protect against being on the right side of a sed subst in config.status.
2648# Protect against being in an unquoted here document in config.status.
2649rm -f conftest.vals
2650cat > conftest.hdr <<\EOF
2651s/[\\&%]/\\&/g
2652s%[\\$`]%\\&%g
2653s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2654s%ac_d%ac_u%gp
2655s%ac_u%ac_e%gp
2656EOF
2657sed -n -f conftest.hdr confdefs.h > conftest.vals
2658rm -f conftest.hdr
2659 8887
2660# This sed command replaces #undef with comments. This is necessary, for 8888# This sed command replaces #undef with comments. This is necessary, for
2661# example, in the case of _POSIX_SOURCE, which is predefined and required 8889# example, in the case of _POSIX_SOURCE, which is predefined and required
2662# on some systems where configure will not decide to define it. 8890# on some systems where configure will not decide to define it.
2663cat >> conftest.vals <<\EOF 8891cat >>conftest.undefs <<\EOF
2664s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 8892s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
2665EOF 8893EOF
2666 8894
2667# Break up conftest.vals because some shells have a limit on 8895# Break up conftest.defines because some shells have a limit on the size
2668# the size of here documents, and old seds have small limits too. 8896# of here documents, and old seds have small limits too (100 cmds).
2669 8897echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8898echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8899echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8900echo ' :' >>$CONFIG_STATUS
2670rm -f conftest.tail 8901rm -f conftest.tail
2671while : 8902while grep . conftest.defines >/dev/null
2672do 8903do
2673 ac_lines=`grep -c . conftest.vals`
2674 # grep -c gives empty output for an empty file on some AIX systems.
2675 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2676 # Write a limited-size here document to conftest.frag. 8904 # Write a limited-size here document to $tmp/defines.sed.
2677 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 8905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8906 # Speed up: don't consider the non `#define' lines.
8907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8908 # Work around the forget-to-reset-the-flag bug.
8909 echo 't clr' >>$CONFIG_STATUS
8910 echo ': clr' >>$CONFIG_STATUS
2678 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 8911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
2679 echo 'CEOF 8912 echo 'CEOF
2680 sed -f conftest.frag conftest.in > conftest.out 8913 sed -f $tmp/defines.sed $tmp/in >$tmp/out
2681 rm -f conftest.in 8914 rm -f $tmp/in
2682 mv conftest.out conftest.in 8915 mv $tmp/out $tmp/in
2683' >> $CONFIG_STATUS 8916' >>$CONFIG_STATUS
2684 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 8917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
2685 rm -f conftest.vals 8918 rm -f conftest.defines
2686 mv conftest.tail conftest.vals 8919 mv conftest.tail conftest.defines
2687done 8920done
8921rm -f conftest.defines
8922echo ' fi # egrep' >>$CONFIG_STATUS
8923echo >>$CONFIG_STATUS
8924
8925# Break up conftest.undefs because some shells have a limit on the size
8926# of here documents, and old seds have small limits too (100 cmds).
8927echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2688rm -f conftest.vals 8928rm -f conftest.tail
8929while grep . conftest.undefs >/dev/null
8930do
8931 # Write a limited-size here document to $tmp/undefs.sed.
8932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8933 # Speed up: don't consider the non `#undef'
8934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8935 # Work around the forget-to-reset-the-flag bug.
8936 echo 't clr' >>$CONFIG_STATUS
8937 echo ': clr' >>$CONFIG_STATUS
8938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8939 echo 'CEOF
8940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8941 rm -f $tmp/in
8942 mv $tmp/out $tmp/in
8943' >>$CONFIG_STATUS
8944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8945 rm -f conftest.undefs
8946 mv conftest.tail conftest.undefs
8947done
8948rm -f conftest.undefs
2689 8949
2690cat >> $CONFIG_STATUS <<\EOF 8950cat >>$CONFIG_STATUS <<\EOF
2691 rm -f conftest.frag conftest.h 8951 # Let's still pretend it is `configure' which instantiates (i.e., don't
8952 # use $as_me), people would be surprised to read:
8953 # /* config.h. Generated automatically by config.status. */
8954 if test x"$ac_file" = x-; then
2692 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 8955 echo "/* Generated automatically by configure. */" >$tmp/config.h
2693 cat conftest.in >> conftest.h
2694 rm -f conftest.in
2695 if cmp -s $ac_file conftest.h 2>/dev/null; then
2696 echo "$ac_file is unchanged"
2697 rm -f conftest.h
2698 else 8956 else
2699 # Remove last slash and all that follows it. Not all systems have dirname. 8957 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
2700 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 8958 fi
8959 cat $tmp/in >>$tmp/config.h
8960 rm -f $tmp/in
8961 if test x"$ac_file" != x-; then
8962 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8963 { echo "$as_me:8963: $ac_file is unchanged" >&5
8964echo "$as_me: $ac_file is unchanged" >&6;}
8965 else
8966 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8967 X"$ac_file" : 'X\(//\)[^/]' \| \
8968 X"$ac_file" : 'X\(//\)$' \| \
8969 X"$ac_file" : 'X\(/\)' \| \
8970 . : '\(.\)' 2>/dev/null ||
8971echo X"$ac_file" |
8972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8974 /^X\(\/\/\)$/{ s//\1/; q; }
8975 /^X\(\/\).*/{ s//\1/; q; }
8976 s/.*/./; q'`
2701 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 8977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2702 # The file is in a subdirectory. 8978 { case "$ac_dir" in
8979 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8980 *) as_incr_dir=.;;
8981esac
8982as_dummy="$ac_dir"
8983for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8984 case $as_mkdir_dir in
8985 # Skip DOS drivespec
8986 ?:) as_incr_dir=$as_mkdir_dir ;;
8987 *)
8988 as_incr_dir=$as_incr_dir/$as_mkdir_dir
2703 test ! -d "$ac_dir" && mkdir "$ac_dir" 8989 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8990 ;;
8991 esac
8992done; }
8993
8994 fi
8995 rm -f $ac_file
8996 mv $tmp/config.h $ac_file
2704 fi 8997 fi
2705 rm -f $ac_file 8998 else
2706 mv conftest.h $ac_file 8999 cat $tmp/config.h
9000 rm -f $tmp/config.h
2707 fi 9001 fi
2708fi; done 9002done
2709
2710EOF 9003EOF
2711cat >> $CONFIG_STATUS <<EOF 9004cat >>$CONFIG_STATUS <<\EOF
2712 9005
9006#
9007# CONFIG_COMMANDS section.
9008#
9009for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9010 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9011 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
2713 9012
9013 case $ac_dest in
9014 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9015 esac
9016done
2714EOF 9017EOF
9018
2715cat >> $CONFIG_STATUS <<\EOF 9019cat >>$CONFIG_STATUS <<\EOF
2716test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2717 9020
2718exit 0 9021{ (exit 0); exit 0; }
2719EOF 9022EOF
2720chmod +x $CONFIG_STATUS 9023chmod +x $CONFIG_STATUS
2721rm -fr confdefs* $ac_clean_files 9024ac_clean_files=$ac_clean_files_save
2722test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2723 9025
9026# configure is writing to config.log, and then calls config.status.
9027# config.status does its own redirection, appending to config.log.
9028# Unfortunately, on DOS this fails, as config.log is still kept open
9029# by configure, so config.status won't be able to write to it; its
9030# output is simply discarded. So we exec the FD to /dev/null,
9031# effectively closing config.log, so it can be properly (re)opened and
9032# appended to by config.status. When coming back to configure, we
9033# need to make the FD available again.
9034if test "$no_create" != yes; then
9035 ac_cs_success=:
9036 exec 5>/dev/null
9037 $SHELL $CONFIG_STATUS || ac_cs_success=false
9038 exec 5>>config.log
9039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9040 # would make configure fail if this is the last instruction.
9041 $ac_cs_success || { (exit 1); exit 1; }
9042fi
9043

Legend:
Removed from v.7  
changed lines
  Added in v.116

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26