blob: 79b4378c5dcb8beee09d1568d29705638d2b12b3 [file] [log] [blame]
jjako52c24142002-12-16 13:33:51 +00001#! /bin/sh
jjako52c24142002-12-16 13:33:51 +00002# Guess values for system-dependent variables and create Makefiles.
jjako286bc982003-01-28 23:17:50 +00003# Generated by GNU Autoconf 2.53 for openggsn 0.52.
jjako5f1c3972003-01-29 11:56:06 +00004#
jjako286bc982003-01-28 23:17:50 +00005# Report bugs to <jj@openggsn.org>.
6#
7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
jjako52c24142002-12-16 13:33:51 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11
jjako286bc982003-01-28 23:17:50 +000012# Find the correct PATH separator. Usually this is `:', but
13# DJGPP uses `;' like DOS.
14if test "X${PATH_SEPARATOR+set}" != Xset; then
15 UNAME=${UNAME-`uname 2>/dev/null`}
16 case X$UNAME in
17 *-DOS) lt_cv_sys_path_separator=';' ;;
18 *) lt_cv_sys_path_separator=':' ;;
19 esac
20 PATH_SEPARATOR=$lt_cv_sys_path_separator
21fi
22
23
24# Check that we are running under the correct shell.
25SHELL=${CONFIG_SHELL-/bin/sh}
26
27case X$ECHO in
28X*--fallback-echo)
29 # Remove one level of quotation (which was required for Make).
30 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
31 ;;
32esac
33
34echo=${ECHO-echo}
35if test "X$1" = X--no-reexec; then
36 # Discard the --no-reexec flag, and continue.
37 shift
38elif test "X$1" = X--fallback-echo; then
39 # Avoid inline document here, it may be left over
40 :
41elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42 # Yippee, $echo works!
43 :
44else
45 # Restart under the correct shell.
46 exec $SHELL "$0" --no-reexec ${1+"$@"}
47fi
48
49if test "X$1" = X--fallback-echo; then
50 # used as fallback echo
51 shift
52 cat <<EOF
53
54EOF
55 exit 0
56fi
57
58# The HP-UX ksh and POSIX shell print the target directory to stdout
59# if CDPATH is set.
60if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
61
62if test -z "$ECHO"; then
63if test "X${echo_test_string+set}" != Xset; then
64# find a string as large as possible, as long as the shell can cope with it
65 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68 echo_test_string="`eval $cmd`" &&
69 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
70 then
71 break
72 fi
73 done
74fi
75
76if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78 test "X$echo_testing_string" = "X$echo_test_string"; then
79 :
80else
81 # The Solaris, AIX, and Digital Unix default echo programs unquote
82 # backslashes. This makes it impossible to quote backslashes using
83 # echo "$something" | sed 's/\\/\\\\/g'
84 #
85 # So, first we look for a working echo in the user's PATH.
86
87 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88 for dir in $PATH /usr/ucb; do
89 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92 test "X$echo_testing_string" = "X$echo_test_string"; then
93 echo="$dir/echo"
94 break
95 fi
96 done
97 IFS="$save_ifs"
98
99 if test "X$echo" = Xecho; then
100 # We didn't find a better echo, so look for alternatives.
101 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103 test "X$echo_testing_string" = "X$echo_test_string"; then
104 # This shell has a builtin print -r that does the trick.
105 echo='print -r'
106 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107 test "X$CONFIG_SHELL" != X/bin/ksh; then
108 # If we have ksh, try running configure again with it.
109 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110 export ORIGINAL_CONFIG_SHELL
111 CONFIG_SHELL=/bin/ksh
112 export CONFIG_SHELL
113 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114 else
115 # Try using printf.
116 echo='printf %s\n'
117 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119 test "X$echo_testing_string" = "X$echo_test_string"; then
120 # Cool, printf works
121 :
122 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123 test "X$echo_testing_string" = 'X\t' &&
124 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125 test "X$echo_testing_string" = "X$echo_test_string"; then
126 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
127 export CONFIG_SHELL
128 SHELL="$CONFIG_SHELL"
129 export SHELL
130 echo="$CONFIG_SHELL $0 --fallback-echo"
131 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132 test "X$echo_testing_string" = 'X\t' &&
133 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134 test "X$echo_testing_string" = "X$echo_test_string"; then
135 echo="$CONFIG_SHELL $0 --fallback-echo"
136 else
137 # maybe with a smaller string...
138 prev=:
139
140 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
142 then
143 break
144 fi
145 prev="$cmd"
146 done
147
148 if test "$prev" != 'sed 50q "$0"'; then
149 echo_test_string=`eval $prev`
150 export echo_test_string
151 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
152 else
153 # Oops. We lost completely, so just stick with echo.
154 echo=echo
155 fi
156 fi
157 fi
158 fi
159fi
160fi
161
162# Copy echo and quote the copy suitably for passing to libtool from
163# the Makefile, instead of quoting the original, which is used later.
164ECHO=$echo
165if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167fi
168
169
170
171if expr a : '\(a\)' >/dev/null 2>&1; then
172 as_expr=expr
173else
174 as_expr=false
175fi
176
177
178## --------------------- ##
179## M4sh Initialization. ##
180## --------------------- ##
181
182# Be Bourne compatible
183if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 emulate sh
185 NULLCMD=:
186elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187 set -o posix
188fi
189
190# NLS nuisances.
191# Support unset when possible.
192if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
193 as_unset=unset
194else
195 as_unset=false
196fi
197
198(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199 { $as_unset LANG || test "${LANG+set}" != set; } ||
200 { LANG=C; export LANG; }
201(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203 { LC_ALL=C; export LC_ALL; }
204(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206 { LC_TIME=C; export LC_TIME; }
207(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209 { LC_CTYPE=C; export LC_CTYPE; }
210(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212 { LANGUAGE=C; export LANGUAGE; }
213(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215 { LC_COLLATE=C; export LC_COLLATE; }
216(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218 { LC_NUMERIC=C; export LC_NUMERIC; }
219(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221 { LC_MESSAGES=C; export LC_MESSAGES; }
222
223
224# Name of the executable.
225as_me=`(basename "$0") 2>/dev/null ||
226$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227 X"$0" : 'X\(//\)$' \| \
228 X"$0" : 'X\(/\)$' \| \
229 . : '\(.\)' 2>/dev/null ||
230echo X/"$0" |
231 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232 /^X\/\(\/\/\)$/{ s//\1/; q; }
233 /^X\/\(\/\).*/{ s//\1/; q; }
234 s/.*/./; q'`
235
236# PATH needs CR, and LINENO needs CR and PATH.
237# Avoid depending upon Character Ranges.
238as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241as_cr_digits='0123456789'
242as_cr_alnum=$as_cr_Letters$as_cr_digits
243
244# The user is always right.
245if test "${PATH_SEPARATOR+set}" != set; then
246 echo "#! /bin/sh" >conftest.sh
247 echo "exit 0" >>conftest.sh
248 chmod +x conftest.sh
249 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
250 PATH_SEPARATOR=';'
251 else
252 PATH_SEPARATOR=:
253 fi
254 rm -f conftest.sh
255fi
256
257
258 as_lineno_1=$LINENO
259 as_lineno_2=$LINENO
260 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261 test "x$as_lineno_1" != "x$as_lineno_2" &&
262 test "x$as_lineno_3" = "x$as_lineno_2" || {
263 # Find who we are. Look in the path if we contain no path at all
264 # relative or not.
265 case $0 in
266 *[\\/]* ) as_myself=$0 ;;
267 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
268for as_dir in $PATH
269do
270 IFS=$as_save_IFS
271 test -z "$as_dir" && as_dir=.
272 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
273done
274
275 ;;
276 esac
277 # We did not find ourselves, most probably we were run as `sh COMMAND'
278 # in which case we are not to be found in the path.
279 if test "x$as_myself" = x; then
280 as_myself=$0
281 fi
282 if test ! -f "$as_myself"; then
283 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284 { (exit 1); exit 1; }; }
285 fi
286 case $CONFIG_SHELL in
287 '')
288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290do
291 IFS=$as_save_IFS
292 test -z "$as_dir" && as_dir=.
293 for as_base in sh bash ksh sh5; do
294 case $as_dir in
295 /*)
296 if ("$as_dir/$as_base" -c '
297 as_lineno_1=$LINENO
298 as_lineno_2=$LINENO
299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300 test "x$as_lineno_1" != "x$as_lineno_2" &&
301 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
302 CONFIG_SHELL=$as_dir/$as_base
303 export CONFIG_SHELL
304 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
305 fi;;
306 esac
307 done
308done
309;;
310 esac
311
312 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313 # uniformly replaced by the line number. The first 'sed' inserts a
314 # line-number line before each line; the second 'sed' does the real
315 # work. The second script uses 'N' to pair each line-number line
316 # with the numbered line, and appends trailing '-' during
317 # substitution so that $LINENO is not a special case at line end.
318 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
320 sed '=' <$as_myself |
321 sed '
322 N
323 s,$,-,
324 : loop
325 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326 t loop
327 s,-$,,
328 s,^['$as_cr_digits']*\n,,
329 ' >$as_me.lineno &&
330 chmod +x $as_me.lineno ||
331 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332 { (exit 1); exit 1; }; }
333
334 # Don't try to exec as it changes $[0], causing all sort of problems
335 # (the dirname of $[0] is not the place where we might find the
336 # original and so on. Autoconf is especially sensible to this).
337 . ./$as_me.lineno
338 # Exit status is that of the last command.
339 exit
340}
341
342
343case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344 *c*,-n*) ECHO_N= ECHO_C='
345' ECHO_T=' ' ;;
346 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
348esac
349
350if expr a : '\(a\)' >/dev/null 2>&1; then
351 as_expr=expr
352else
353 as_expr=false
354fi
355
356rm -f conf$$ conf$$.exe conf$$.file
357echo >conf$$.file
358if ln -s conf$$.file conf$$ 2>/dev/null; then
359 # We could just check for DJGPP; but this test a) works b) is more generic
360 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361 if test -f conf$$.exe; then
362 # Don't use ln at all; we don't have any links
363 as_ln_s='cp -p'
364 else
365 as_ln_s='ln -s'
366 fi
367elif ln conf$$.file conf$$ 2>/dev/null; then
368 as_ln_s=ln
369else
370 as_ln_s='cp -p'
371fi
372rm -f conf$$ conf$$.exe conf$$.file
373
374as_executable_p="test -f"
375
376# Sed expression to map a string onto a valid CPP name.
377as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
378
379# Sed expression to map a string onto a valid variable name.
380as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
381
382
383# IFS
384# We need space, tab and new line, in precisely that order.
385as_nl='
386'
387IFS=" $as_nl"
388
389# CDPATH.
390$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
391
392
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398exec 6>&1
399
400#
401# Initializations.
402#
jjako52c24142002-12-16 13:33:51 +0000403ac_default_prefix=/usr/local
jjako286bc982003-01-28 23:17:50 +0000404cross_compiling=no
405subdirs=
406MFLAGS=
407MAKEFLAGS=
408SHELL=${CONFIG_SHELL-/bin/sh}
409
410# Maximum number of lines to put in a shell here document.
411# This variable seems obsolete. It should probably be removed, and
412# only ac_max_sed_lines should be used.
413: ${ac_max_here_lines=38}
414
415# Identity of this package.
416PACKAGE_NAME='openggsn'
417PACKAGE_TARNAME='openggsn'
418PACKAGE_VERSION='0.52'
419PACKAGE_STRING='openggsn 0.52'
420PACKAGE_BUGREPORT='jj@openggsn.org'
421
422ac_unique_file="gtp/gtp.c"
423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
426#if HAVE_SYS_TYPES_H
427# include <sys/types.h>
428#endif
429#if HAVE_SYS_STAT_H
430# include <sys/stat.h>
431#endif
432#if STDC_HEADERS
433# include <stdlib.h>
434# include <stddef.h>
435#else
436# if HAVE_STDLIB_H
437# include <stdlib.h>
438# endif
439#endif
440#if HAVE_STRING_H
441# if !STDC_HEADERS && HAVE_MEMORY_H
442# include <memory.h>
443# endif
444# include <string.h>
445#endif
446#if HAVE_STRINGS_H
447# include <strings.h>
448#endif
449#if HAVE_INTTYPES_H
450# include <inttypes.h>
451#else
452# if HAVE_STDINT_H
453# include <stdint.h>
454# endif
455#endif
456#if HAVE_UNISTD_H
457# include <unistd.h>
458#endif"
459
jjako52c24142002-12-16 13:33:51 +0000460
461# Initialize some variables set by options.
jjako286bc982003-01-28 23:17:50 +0000462ac_init_help=
463ac_init_version=false
jjako52c24142002-12-16 13:33:51 +0000464# The variables have the same names as the options, with
465# dashes changed to underlines.
jjako286bc982003-01-28 23:17:50 +0000466cache_file=/dev/null
jjako52c24142002-12-16 13:33:51 +0000467exec_prefix=NONE
jjako52c24142002-12-16 13:33:51 +0000468no_create=
jjako52c24142002-12-16 13:33:51 +0000469no_recursion=
470prefix=NONE
471program_prefix=NONE
472program_suffix=NONE
473program_transform_name=s,x,x,
474silent=
475site=
476srcdir=
jjako52c24142002-12-16 13:33:51 +0000477verbose=
478x_includes=NONE
479x_libraries=NONE
jjako286bc982003-01-28 23:17:50 +0000480
481# Installation directory options.
482# These are left unexpanded so users can "make install exec_prefix=/foo"
483# and all the variables that are supposed to be based on exec_prefix
484# by default will actually change.
485# Use braces instead of parens because sh, perl, etc. also accept them.
jjako52c24142002-12-16 13:33:51 +0000486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
498
jjako52c24142002-12-16 13:33:51 +0000499ac_prev=
500for ac_option
501do
jjako52c24142002-12-16 13:33:51 +0000502 # If the previous option needs an argument, assign it.
503 if test -n "$ac_prev"; then
504 eval "$ac_prev=\$ac_option"
505 ac_prev=
506 continue
507 fi
508
jjako286bc982003-01-28 23:17:50 +0000509 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000510
511 # Accept the important Cygnus configure options, so we can diagnose typos.
512
jjako286bc982003-01-28 23:17:50 +0000513 case $ac_option in
jjako52c24142002-12-16 13:33:51 +0000514
515 -bindir | --bindir | --bindi | --bind | --bin | --bi)
516 ac_prev=bindir ;;
517 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
jjako286bc982003-01-28 23:17:50 +0000518 bindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000519
520 -build | --build | --buil | --bui | --bu)
jjako286bc982003-01-28 23:17:50 +0000521 ac_prev=build_alias ;;
jjako52c24142002-12-16 13:33:51 +0000522 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
jjako286bc982003-01-28 23:17:50 +0000523 build_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000524
525 -cache-file | --cache-file | --cache-fil | --cache-fi \
526 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
527 ac_prev=cache_file ;;
528 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
529 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
jjako286bc982003-01-28 23:17:50 +0000530 cache_file=$ac_optarg ;;
531
532 --config-cache | -C)
533 cache_file=config.cache ;;
jjako52c24142002-12-16 13:33:51 +0000534
535 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
536 ac_prev=datadir ;;
537 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
538 | --da=*)
jjako286bc982003-01-28 23:17:50 +0000539 datadir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000540
541 -disable-* | --disable-*)
jjako286bc982003-01-28 23:17:50 +0000542 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000543 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000544 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
545 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
546 { (exit 1); exit 1; }; }
547 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
548 eval "enable_$ac_feature=no" ;;
jjako52c24142002-12-16 13:33:51 +0000549
550 -enable-* | --enable-*)
jjako286bc982003-01-28 23:17:50 +0000551 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000552 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
jjako52c24142002-12-16 13:33:51 +0000559 *) ac_optarg=yes ;;
560 esac
jjako286bc982003-01-28 23:17:50 +0000561 eval "enable_$ac_feature='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000562
563 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
564 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
565 | --exec | --exe | --ex)
566 ac_prev=exec_prefix ;;
567 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
568 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
569 | --exec=* | --exe=* | --ex=*)
jjako286bc982003-01-28 23:17:50 +0000570 exec_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000571
572 -gas | --gas | --ga | --g)
573 # Obsolete; use --with-gas.
574 with_gas=yes ;;
575
jjako286bc982003-01-28 23:17:50 +0000576 -help | --help | --hel | --he | -h)
577 ac_init_help=long ;;
578 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
579 ac_init_help=recursive ;;
580 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
581 ac_init_help=short ;;
jjako52c24142002-12-16 13:33:51 +0000582
583 -host | --host | --hos | --ho)
jjako286bc982003-01-28 23:17:50 +0000584 ac_prev=host_alias ;;
jjako52c24142002-12-16 13:33:51 +0000585 -host=* | --host=* | --hos=* | --ho=*)
jjako286bc982003-01-28 23:17:50 +0000586 host_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000587
588 -includedir | --includedir | --includedi | --included | --include \
589 | --includ | --inclu | --incl | --inc)
590 ac_prev=includedir ;;
591 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
592 | --includ=* | --inclu=* | --incl=* | --inc=*)
jjako286bc982003-01-28 23:17:50 +0000593 includedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000594
595 -infodir | --infodir | --infodi | --infod | --info | --inf)
596 ac_prev=infodir ;;
597 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
jjako286bc982003-01-28 23:17:50 +0000598 infodir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000599
600 -libdir | --libdir | --libdi | --libd)
601 ac_prev=libdir ;;
602 -libdir=* | --libdir=* | --libdi=* | --libd=*)
jjako286bc982003-01-28 23:17:50 +0000603 libdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000604
605 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
606 | --libexe | --libex | --libe)
607 ac_prev=libexecdir ;;
608 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
609 | --libexe=* | --libex=* | --libe=*)
jjako286bc982003-01-28 23:17:50 +0000610 libexecdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000611
612 -localstatedir | --localstatedir | --localstatedi | --localstated \
613 | --localstate | --localstat | --localsta | --localst \
614 | --locals | --local | --loca | --loc | --lo)
615 ac_prev=localstatedir ;;
616 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
617 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
618 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
jjako286bc982003-01-28 23:17:50 +0000619 localstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000620
621 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
622 ac_prev=mandir ;;
623 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
jjako286bc982003-01-28 23:17:50 +0000624 mandir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000625
626 -nfp | --nfp | --nf)
627 # Obsolete; use --without-fp.
628 with_fp=no ;;
629
630 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
jjako286bc982003-01-28 23:17:50 +0000631 | --no-cr | --no-c | -n)
jjako52c24142002-12-16 13:33:51 +0000632 no_create=yes ;;
633
634 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
635 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636 no_recursion=yes ;;
637
638 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
639 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
640 | --oldin | --oldi | --old | --ol | --o)
641 ac_prev=oldincludedir ;;
642 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
643 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
644 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
jjako286bc982003-01-28 23:17:50 +0000645 oldincludedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000646
647 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
648 ac_prev=prefix ;;
649 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
jjako286bc982003-01-28 23:17:50 +0000650 prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000651
652 -program-prefix | --program-prefix | --program-prefi | --program-pref \
653 | --program-pre | --program-pr | --program-p)
654 ac_prev=program_prefix ;;
655 -program-prefix=* | --program-prefix=* | --program-prefi=* \
656 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
jjako286bc982003-01-28 23:17:50 +0000657 program_prefix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000658
659 -program-suffix | --program-suffix | --program-suffi | --program-suff \
660 | --program-suf | --program-su | --program-s)
661 ac_prev=program_suffix ;;
662 -program-suffix=* | --program-suffix=* | --program-suffi=* \
663 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
jjako286bc982003-01-28 23:17:50 +0000664 program_suffix=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000665
666 -program-transform-name | --program-transform-name \
667 | --program-transform-nam | --program-transform-na \
668 | --program-transform-n | --program-transform- \
669 | --program-transform | --program-transfor \
670 | --program-transfo | --program-transf \
671 | --program-trans | --program-tran \
672 | --progr-tra | --program-tr | --program-t)
673 ac_prev=program_transform_name ;;
674 -program-transform-name=* | --program-transform-name=* \
675 | --program-transform-nam=* | --program-transform-na=* \
676 | --program-transform-n=* | --program-transform-=* \
677 | --program-transform=* | --program-transfor=* \
678 | --program-transfo=* | --program-transf=* \
679 | --program-trans=* | --program-tran=* \
680 | --progr-tra=* | --program-tr=* | --program-t=*)
jjako286bc982003-01-28 23:17:50 +0000681 program_transform_name=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000682
683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
684 | -silent | --silent | --silen | --sile | --sil)
685 silent=yes ;;
686
687 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
688 ac_prev=sbindir ;;
689 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
690 | --sbi=* | --sb=*)
jjako286bc982003-01-28 23:17:50 +0000691 sbindir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000692
693 -sharedstatedir | --sharedstatedir | --sharedstatedi \
694 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
695 | --sharedst | --shareds | --shared | --share | --shar \
696 | --sha | --sh)
697 ac_prev=sharedstatedir ;;
698 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
699 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
700 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
701 | --sha=* | --sh=*)
jjako286bc982003-01-28 23:17:50 +0000702 sharedstatedir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000703
704 -site | --site | --sit)
705 ac_prev=site ;;
706 -site=* | --site=* | --sit=*)
jjako286bc982003-01-28 23:17:50 +0000707 site=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000708
709 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
710 ac_prev=srcdir ;;
711 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
jjako286bc982003-01-28 23:17:50 +0000712 srcdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000713
714 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
715 | --syscon | --sysco | --sysc | --sys | --sy)
716 ac_prev=sysconfdir ;;
717 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
718 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
jjako286bc982003-01-28 23:17:50 +0000719 sysconfdir=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000720
721 -target | --target | --targe | --targ | --tar | --ta | --t)
jjako286bc982003-01-28 23:17:50 +0000722 ac_prev=target_alias ;;
jjako52c24142002-12-16 13:33:51 +0000723 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
jjako286bc982003-01-28 23:17:50 +0000724 target_alias=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000725
726 -v | -verbose | --verbose | --verbos | --verbo | --verb)
727 verbose=yes ;;
728
jjako286bc982003-01-28 23:17:50 +0000729 -version | --version | --versio | --versi | --vers | -V)
730 ac_init_version=: ;;
jjako52c24142002-12-16 13:33:51 +0000731
732 -with-* | --with-*)
jjako286bc982003-01-28 23:17:50 +0000733 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
jjako52c24142002-12-16 13:33:51 +0000734 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000735 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
736 { echo "$as_me: error: invalid package name: $ac_package" >&2
737 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000738 ac_package=`echo $ac_package| sed 's/-/_/g'`
jjako286bc982003-01-28 23:17:50 +0000739 case $ac_option in
740 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
jjako52c24142002-12-16 13:33:51 +0000741 *) ac_optarg=yes ;;
742 esac
jjako286bc982003-01-28 23:17:50 +0000743 eval "with_$ac_package='$ac_optarg'" ;;
jjako52c24142002-12-16 13:33:51 +0000744
745 -without-* | --without-*)
jjako286bc982003-01-28 23:17:50 +0000746 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
jjako52c24142002-12-16 13:33:51 +0000747 # Reject names that are not valid shell variable names.
jjako286bc982003-01-28 23:17:50 +0000748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package | sed 's/-/_/g'`
752 eval "with_$ac_package=no" ;;
jjako52c24142002-12-16 13:33:51 +0000753
754 --x)
755 # Obsolete; use --with-x.
756 with_x=yes ;;
757
758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759 | --x-incl | --x-inc | --x-in | --x-i)
760 ac_prev=x_includes ;;
761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
jjako286bc982003-01-28 23:17:50 +0000763 x_includes=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000764
765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767 ac_prev=x_libraries ;;
768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
jjako286bc982003-01-28 23:17:50 +0000770 x_libraries=$ac_optarg ;;
jjako52c24142002-12-16 13:33:51 +0000771
jjako286bc982003-01-28 23:17:50 +0000772 -*) { echo "$as_me: error: unrecognized option: $ac_option
773Try \`$0 --help' for more information." >&2
774 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000775 ;;
776
jjako286bc982003-01-28 23:17:50 +0000777 *=*)
778 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
781 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782 { (exit 1); exit 1; }; }
783 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784 eval "$ac_envvar='$ac_optarg'"
785 export $ac_envvar ;;
786
jjako52c24142002-12-16 13:33:51 +0000787 *)
jjako286bc982003-01-28 23:17:50 +0000788 # FIXME: should be removed in autoconf 3.0.
789 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
791 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
jjako52c24142002-12-16 13:33:51 +0000793 ;;
794
795 esac
796done
797
798if test -n "$ac_prev"; then
jjako286bc982003-01-28 23:17:50 +0000799 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
800 { echo "$as_me: error: missing argument to $ac_option" >&2
801 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000802fi
803
jjako286bc982003-01-28 23:17:50 +0000804# Be sure to have absolute paths.
805for ac_var in exec_prefix prefix
jjako52c24142002-12-16 13:33:51 +0000806do
jjako286bc982003-01-28 23:17:50 +0000807 eval ac_val=$`echo $ac_var`
808 case $ac_val in
809 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
810 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811 { (exit 1); exit 1; }; };;
jjako52c24142002-12-16 13:33:51 +0000812 esac
813done
814
jjako286bc982003-01-28 23:17:50 +0000815# Be sure to have absolute paths.
816for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817 localstatedir libdir includedir oldincludedir infodir mandir
818do
819 eval ac_val=$`echo $ac_var`
820 case $ac_val in
821 [\\/$]* | ?:[\\/]* ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
824 esac
825done
jjako52c24142002-12-16 13:33:51 +0000826
jjako286bc982003-01-28 23:17:50 +0000827# There might be people who depend on the old broken behavior: `$host'
828# used to hold the argument of --host etc.
829# FIXME: To remove some day.
830build=$build_alias
831host=$host_alias
832target=$target_alias
jjako52c24142002-12-16 13:33:51 +0000833
jjako286bc982003-01-28 23:17:50 +0000834# FIXME: To remove some day.
835if test "x$host_alias" != x; then
836 if test "x$build_alias" = x; then
837 cross_compiling=maybe
838 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839 If a cross compiler is detected then cross compile mode will be used." >&2
840 elif test "x$build_alias" != "x$host_alias"; then
841 cross_compiling=yes
842 fi
843fi
844
845ac_tool_prefix=
846test -n "$host_alias" && ac_tool_prefix=$host_alias-
847
848test "$silent" = yes && exec 6>/dev/null
849
jjako52c24142002-12-16 13:33:51 +0000850
851# Find the source files, if location was not specified.
852if test -z "$srcdir"; then
853 ac_srcdir_defaulted=yes
854 # Try the directory containing this script, then its parent.
jjako286bc982003-01-28 23:17:50 +0000855 ac_confdir=`(dirname "$0") 2>/dev/null ||
856$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857 X"$0" : 'X\(//\)[^/]' \| \
858 X"$0" : 'X\(//\)$' \| \
859 X"$0" : 'X\(/\)' \| \
860 . : '\(.\)' 2>/dev/null ||
861echo X"$0" |
862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
864 /^X\(\/\/\)$/{ s//\1/; q; }
865 /^X\(\/\).*/{ s//\1/; q; }
866 s/.*/./; q'`
jjako52c24142002-12-16 13:33:51 +0000867 srcdir=$ac_confdir
868 if test ! -r $srcdir/$ac_unique_file; then
869 srcdir=..
870 fi
871else
872 ac_srcdir_defaulted=no
873fi
874if test ! -r $srcdir/$ac_unique_file; then
875 if test "$ac_srcdir_defaulted" = yes; then
jjako286bc982003-01-28 23:17:50 +0000876 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000878 else
jjako286bc982003-01-28 23:17:50 +0000879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +0000881 fi
882fi
jjako286bc982003-01-28 23:17:50 +0000883srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884ac_env_build_alias_set=${build_alias+set}
885ac_env_build_alias_value=$build_alias
886ac_cv_env_build_alias_set=${build_alias+set}
887ac_cv_env_build_alias_value=$build_alias
888ac_env_host_alias_set=${host_alias+set}
889ac_env_host_alias_value=$host_alias
890ac_cv_env_host_alias_set=${host_alias+set}
891ac_cv_env_host_alias_value=$host_alias
892ac_env_target_alias_set=${target_alias+set}
893ac_env_target_alias_value=$target_alias
894ac_cv_env_target_alias_set=${target_alias+set}
895ac_cv_env_target_alias_value=$target_alias
896ac_env_CC_set=${CC+set}
897ac_env_CC_value=$CC
898ac_cv_env_CC_set=${CC+set}
899ac_cv_env_CC_value=$CC
900ac_env_CFLAGS_set=${CFLAGS+set}
901ac_env_CFLAGS_value=$CFLAGS
902ac_cv_env_CFLAGS_set=${CFLAGS+set}
903ac_cv_env_CFLAGS_value=$CFLAGS
904ac_env_LDFLAGS_set=${LDFLAGS+set}
905ac_env_LDFLAGS_value=$LDFLAGS
906ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907ac_cv_env_LDFLAGS_value=$LDFLAGS
908ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_env_CPPFLAGS_value=$CPPFLAGS
910ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912ac_env_CPP_set=${CPP+set}
913ac_env_CPP_value=$CPP
914ac_cv_env_CPP_set=${CPP+set}
915ac_cv_env_CPP_value=$CPP
916ac_env_CXX_set=${CXX+set}
917ac_env_CXX_value=$CXX
918ac_cv_env_CXX_set=${CXX+set}
919ac_cv_env_CXX_value=$CXX
920ac_env_CXXFLAGS_set=${CXXFLAGS+set}
921ac_env_CXXFLAGS_value=$CXXFLAGS
922ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
923ac_cv_env_CXXFLAGS_value=$CXXFLAGS
jjako52c24142002-12-16 13:33:51 +0000924
jjako286bc982003-01-28 23:17:50 +0000925#
926# Report the --help message.
927#
928if test "$ac_init_help" = "long"; then
929 # Omit some internal or obsolete options to make the list less imposing.
930 # This message is too long to be a string in the A/UX 3.1 sh.
931 cat <<_ACEOF
932\`configure' configures openggsn 0.52 to adapt to many kinds of systems.
933
934Usage: $0 [OPTION]... [VAR=VALUE]...
935
936To assign environment variables (e.g., CC, CFLAGS...), specify them as
937VAR=VALUE. See below for descriptions of some of the useful variables.
938
939Defaults for the options are specified in brackets.
940
941Configuration:
942 -h, --help display this help and exit
943 --help=short display options specific to this package
944 --help=recursive display the short help of all the included packages
945 -V, --version display version information and exit
946 -q, --quiet, --silent do not print \`checking...' messages
947 --cache-file=FILE cache test results in FILE [disabled]
948 -C, --config-cache alias for \`--cache-file=config.cache'
949 -n, --no-create do not create output files
950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951
952_ACEOF
953
954 cat <<_ACEOF
955Installation directories:
956 --prefix=PREFIX install architecture-independent files in PREFIX
957 [$ac_default_prefix]
958 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
959 [PREFIX]
960
961By default, \`make install' will install all the files in
962\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
963an installation prefix other than \`$ac_default_prefix' using \`--prefix',
964for instance \`--prefix=\$HOME'.
965
966For better control, use the options below.
967
968Fine tuning of the installation directories:
969 --bindir=DIR user executables [EPREFIX/bin]
970 --sbindir=DIR system admin executables [EPREFIX/sbin]
971 --libexecdir=DIR program executables [EPREFIX/libexec]
972 --datadir=DIR read-only architecture-independent data [PREFIX/share]
973 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
974 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
975 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
976 --libdir=DIR object code libraries [EPREFIX/lib]
977 --includedir=DIR C header files [PREFIX/include]
978 --oldincludedir=DIR C header files for non-gcc [/usr/include]
979 --infodir=DIR info documentation [PREFIX/info]
980 --mandir=DIR man documentation [PREFIX/man]
981_ACEOF
982
983 cat <<\_ACEOF
984
985Program names:
986 --program-prefix=PREFIX prepend PREFIX to installed program names
987 --program-suffix=SUFFIX append SUFFIX to installed program names
988 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
989
990System types:
991 --build=BUILD configure for building on BUILD [guessed]
992 --host=HOST cross-compile to build programs to run on HOST [BUILD]
993_ACEOF
994fi
995
996if test -n "$ac_init_help"; then
997 case $ac_init_help in
998 short | recursive ) echo "Configuration of openggsn 0.52:";;
999 esac
1000 cat <<\_ACEOF
1001
1002Optional Features:
1003 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1004 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1005 --enable-shared=PKGS build shared libraries default=yes
1006 --enable-static=PKGS build static libraries default=yes
1007 --enable-fast-install=PKGS optimize for fast installation default=yes
1008 --disable-libtool-lock avoid locking (might break parallel builds)
1009 --disable-dependency-tracking Speeds up one-time builds
1010 --enable-dependency-tracking Do not reject slow dependency extractors
1011
1012Optional Packages:
1013 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1014 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1015 --with-gnu-ld assume the C compiler uses GNU ld default=no
1016 --with-pic try to use only PIC/non-PIC objects default=use both
1017
1018Some influential environment variables:
1019 CC C compiler command
1020 CFLAGS C compiler flags
1021 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1022 nonstandard directory <lib dir>
1023 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1024 headers in a nonstandard directory <include dir>
1025 CPP C preprocessor
1026 CXX C++ compiler command
1027 CXXFLAGS C++ compiler flags
1028
1029Use these variables to override the choices made by `configure' or to help
1030it to find libraries and programs with nonstandard names/locations.
1031
1032Report bugs to <jj@openggsn.org>.
1033_ACEOF
1034fi
1035
1036if test "$ac_init_help" = "recursive"; then
1037 # If there are subdirs, report their specific --help.
1038 ac_popdir=`pwd`
1039 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1040 test -d $ac_dir || continue
1041 ac_builddir=.
1042
1043if test "$ac_dir" != .; then
1044 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1045 # A "../" for each directory in $ac_dir_suffix.
1046 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1047else
1048 ac_dir_suffix= ac_top_builddir=
1049fi
1050
1051case $srcdir in
1052 .) # No --srcdir option. We are building in place.
1053 ac_srcdir=.
1054 if test -z "$ac_top_builddir"; then
1055 ac_top_srcdir=.
1056 else
1057 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1058 fi ;;
1059 [\\/]* | ?:[\\/]* ) # Absolute path.
1060 ac_srcdir=$srcdir$ac_dir_suffix;
1061 ac_top_srcdir=$srcdir ;;
1062 *) # Relative path.
1063 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1064 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1065esac
1066# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1067# absolute.
1068ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1069ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1070ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1071ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1072
1073 cd $ac_dir
1074 # Check for guested configure; otherwise get Cygnus style configure.
1075 if test -f $ac_srcdir/configure.gnu; then
1076 echo
1077 $SHELL $ac_srcdir/configure.gnu --help=recursive
1078 elif test -f $ac_srcdir/configure; then
1079 echo
1080 $SHELL $ac_srcdir/configure --help=recursive
1081 elif test -f $ac_srcdir/configure.ac ||
1082 test -f $ac_srcdir/configure.in; then
1083 echo
1084 $ac_configure --help
1085 else
1086 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1087 fi
1088 cd $ac_popdir
1089 done
1090fi
1091
1092test -n "$ac_init_help" && exit 0
1093if $ac_init_version; then
1094 cat <<\_ACEOF
1095openggsn configure 0.52
1096generated by GNU Autoconf 2.53
1097
1098Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1099Free Software Foundation, Inc.
1100This configure script is free software; the Free Software Foundation
1101gives unlimited permission to copy, distribute and modify it.
1102_ACEOF
1103 exit 0
1104fi
1105exec 5>config.log
1106cat >&5 <<_ACEOF
1107This file contains any messages produced by compilers while
1108running configure, to aid debugging if configure makes a mistake.
1109
1110It was created by openggsn $as_me 0.52, which was
1111generated by GNU Autoconf 2.53. Invocation command line was
1112
1113 $ $0 $@
1114
1115_ACEOF
1116{
1117cat <<_ASUNAME
1118## --------- ##
1119## Platform. ##
1120## --------- ##
1121
1122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1123uname -m = `(uname -m) 2>/dev/null || echo unknown`
1124uname -r = `(uname -r) 2>/dev/null || echo unknown`
1125uname -s = `(uname -s) 2>/dev/null || echo unknown`
1126uname -v = `(uname -v) 2>/dev/null || echo unknown`
1127
1128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1130
1131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1134hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1138
1139_ASUNAME
1140
1141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1142for as_dir in $PATH
1143do
1144 IFS=$as_save_IFS
1145 test -z "$as_dir" && as_dir=.
1146 echo "PATH: $as_dir"
1147done
1148
1149} >&5
1150
1151cat >&5 <<_ACEOF
1152
1153
1154## ----------- ##
1155## Core tests. ##
1156## ----------- ##
1157
1158_ACEOF
1159
1160
1161# Keep a trace of the command line.
1162# Strip out --no-create and --no-recursion so they do not pile up.
1163# Also quote any args containing shell meta-characters.
1164ac_configure_args=
1165ac_sep=
1166for ac_arg
1167do
1168 case $ac_arg in
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n ) continue ;;
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 continue ;;
1174 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176 esac
1177 case " $ac_configure_args " in
1178 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1179 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1180 ac_sep=" " ;;
1181 esac
1182 # Get rid of the leading space.
1183done
1184
1185# When interrupted or exit'd, cleanup temporary files, and complete
1186# config.log. We remove comments because anyway the quotes in there
1187# would cause problems or look ugly.
1188# WARNING: Be sure not to use single quotes in there, as some shells,
1189# such as our DU 5.0 friend, will then `close' the trap.
1190trap 'exit_status=$?
1191 # Save into config.log some information that might help in debugging.
1192 {
1193 echo
1194 cat <<\_ASBOX
1195## ---------------- ##
1196## Cache variables. ##
1197## ---------------- ##
1198_ASBOX
1199 echo
1200 # The following way of writing the cache mishandles newlines in values,
1201{
1202 (set) 2>&1 |
1203 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1204 *ac_space=\ *)
1205 sed -n \
1206 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1208 ;;
1209 *)
1210 sed -n \
1211 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1212 ;;
1213 esac;
1214}
1215 echo
1216 if test -s confdefs.h; then
1217 cat <<\_ASBOX
1218## ----------- ##
1219## confdefs.h. ##
1220## ----------- ##
1221_ASBOX
1222 echo
1223 sed "/^$/d" confdefs.h
1224 echo
1225 fi
1226 test "$ac_signal" != 0 &&
1227 echo "$as_me: caught signal $ac_signal"
1228 echo "$as_me: exit $exit_status"
1229 } >&5
1230 rm -f core core.* *.core &&
1231 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1232 exit $exit_status
1233 ' 0
1234for ac_signal in 1 2 13 15; do
1235 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1236done
1237ac_signal=0
1238
1239# confdefs.h avoids OS command line length limits that DEFS can exceed.
1240rm -rf conftest* confdefs.h
1241# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242echo >confdefs.h
1243
1244# Predefined preprocessor variables.
1245
1246cat >>confdefs.h <<_ACEOF
1247#define PACKAGE_NAME "$PACKAGE_NAME"
1248_ACEOF
1249
1250
1251cat >>confdefs.h <<_ACEOF
1252#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1253_ACEOF
1254
1255
1256cat >>confdefs.h <<_ACEOF
1257#define PACKAGE_VERSION "$PACKAGE_VERSION"
1258_ACEOF
1259
1260
1261cat >>confdefs.h <<_ACEOF
1262#define PACKAGE_STRING "$PACKAGE_STRING"
1263_ACEOF
1264
1265
1266cat >>confdefs.h <<_ACEOF
1267#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1268_ACEOF
1269
1270
1271# Let the site file select an alternate cache file if it wants to.
jjako52c24142002-12-16 13:33:51 +00001272# Prefer explicitly selected file to automatically selected ones.
1273if test -z "$CONFIG_SITE"; then
1274 if test "x$prefix" != xNONE; then
1275 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 else
1277 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 fi
1279fi
1280for ac_site_file in $CONFIG_SITE; do
1281 if test -r "$ac_site_file"; then
jjako286bc982003-01-28 23:17:50 +00001282 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1283echo "$as_me: loading site script $ac_site_file" >&6;}
1284 sed 's/^/| /' "$ac_site_file" >&5
jjako52c24142002-12-16 13:33:51 +00001285 . "$ac_site_file"
1286 fi
1287done
1288
1289if test -r "$cache_file"; then
jjako286bc982003-01-28 23:17:50 +00001290 # Some versions of bash will fail to source /dev/null (special
1291 # files actually), so we avoid doing that.
1292 if test -f "$cache_file"; then
1293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1294echo "$as_me: loading cache $cache_file" >&6;}
1295 case $cache_file in
1296 [\\/]* | ?:[\\/]* ) . $cache_file;;
1297 *) . ./$cache_file;;
1298 esac
1299 fi
jjako52c24142002-12-16 13:33:51 +00001300else
jjako286bc982003-01-28 23:17:50 +00001301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1302echo "$as_me: creating cache $cache_file" >&6;}
1303 >$cache_file
1304fi
1305
1306# Check that the precious variables saved in the cache have kept the same
1307# value.
1308ac_cache_corrupted=false
1309for ac_var in `(set) 2>&1 |
1310 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1312 eval ac_new_set=\$ac_env_${ac_var}_set
1313 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1314 eval ac_new_val="\$ac_env_${ac_var}_value"
1315 case $ac_old_set,$ac_new_set in
1316 set,)
1317 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1318echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1319 ac_cache_corrupted=: ;;
1320 ,set)
1321 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1322echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1323 ac_cache_corrupted=: ;;
1324 ,);;
1325 *)
1326 if test "x$ac_old_val" != "x$ac_new_val"; then
1327 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1328echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1329 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1330echo "$as_me: former value: $ac_old_val" >&2;}
1331 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1332echo "$as_me: current value: $ac_new_val" >&2;}
1333 ac_cache_corrupted=:
1334 fi;;
1335 esac
1336 # Pass precious variables to config.status.
1337 if test "$ac_new_set" = set; then
1338 case $ac_new_val in
1339 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1340 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1341 *) ac_arg=$ac_var=$ac_new_val ;;
1342 esac
1343 case " $ac_configure_args " in
1344 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1345 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1346 esac
1347 fi
1348done
1349if $ac_cache_corrupted; then
1350 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1351echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1352 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1353echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1354 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001355fi
1356
1357ac_ext=c
jjako52c24142002-12-16 13:33:51 +00001358ac_cpp='$CPP $CPPFLAGS'
jjako286bc982003-01-28 23:17:50 +00001359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1361ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00001362
1363
1364
jjako52c24142002-12-16 13:33:51 +00001365
jjako52c24142002-12-16 13:33:51 +00001366
jjako286bc982003-01-28 23:17:50 +00001367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389# Add the stamp file to the list of files AC keeps track of,
1390# along with our hook.
1391ac_config_headers="$ac_config_headers config.h"
1392
1393
1394
1395#AC_CONFIG_HEADER([config.h])
1396
1397# Checks for programs.
1398ac_ext=c
1399ac_cpp='$CPP $CPPFLAGS'
1400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1402ac_compiler_gnu=$ac_cv_c_compiler_gnu
1403if test -n "$ac_tool_prefix"; then
1404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1405set dummy ${ac_tool_prefix}gcc; ac_word=$2
1406echo "$as_me:$LINENO: checking for $ac_word" >&5
1407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001410else
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1413else
jjako286bc982003-01-28 23:17:50 +00001414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1415for as_dir in $PATH
1416do
1417 IFS=$as_save_IFS
1418 test -z "$as_dir" && as_dir=.
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 break 2
1424 fi
1425done
1426done
1427
jjako52c24142002-12-16 13:33:51 +00001428fi
1429fi
jjako286bc982003-01-28 23:17:50 +00001430CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001431if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001432 echo "$as_me:$LINENO: result: $CC" >&5
1433echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001434else
jjako286bc982003-01-28 23:17:50 +00001435 echo "$as_me:$LINENO: result: no" >&5
1436echo "${ECHO_T}no" >&6
1437fi
1438
1439fi
1440if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "gcc", so it can be a program name with args.
1443set dummy gcc; ac_word=$2
1444echo "$as_me:$LINENO: checking for $ac_word" >&5
1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451else
1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_ac_ct_CC="gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463done
1464done
1465
1466fi
1467fi
1468ac_ct_CC=$ac_cv_prog_ac_ct_CC
1469if test -n "$ac_ct_CC"; then
1470 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1471echo "${ECHO_T}$ac_ct_CC" >&6
1472else
1473 echo "$as_me:$LINENO: result: no" >&5
1474echo "${ECHO_T}no" >&6
1475fi
1476
1477 CC=$ac_ct_CC
1478else
1479 CC="$ac_cv_prog_CC"
jjako52c24142002-12-16 13:33:51 +00001480fi
1481
1482if test -z "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001483 if test -n "$ac_tool_prefix"; then
1484 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1485set dummy ${ac_tool_prefix}cc; ac_word=$2
1486echo "$as_me:$LINENO: checking for $ac_word" >&5
1487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488if test "${ac_cv_prog_CC+set}" = set; then
1489 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001490else
1491 if test -n "$CC"; then
1492 ac_cv_prog_CC="$CC" # Let the user override the test.
1493else
jjako286bc982003-01-28 23:17:50 +00001494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 ac_cv_prog_CC="${ac_tool_prefix}cc"
1502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503 break 2
1504 fi
1505done
1506done
1507
1508fi
1509fi
1510CC=$ac_cv_prog_CC
1511if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513echo "${ECHO_T}$CC" >&6
1514else
1515 echo "$as_me:$LINENO: result: no" >&5
1516echo "${ECHO_T}no" >&6
1517fi
1518
1519fi
1520if test -z "$ac_cv_prog_CC"; then
1521 ac_ct_CC=$CC
1522 # Extract the first word of "cc", so it can be a program name with args.
1523set dummy cc; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 if test -n "$ac_ct_CC"; then
1530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_ac_ct_CC="cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543done
1544done
1545
1546fi
1547fi
1548ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549if test -n "$ac_ct_CC"; then
1550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551echo "${ECHO_T}$ac_ct_CC" >&6
1552else
1553 echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557 CC=$ac_ct_CC
1558else
1559 CC="$ac_cv_prog_CC"
1560fi
1561
1562fi
1563if test -z "$CC"; then
1564 # Extract the first word of "cc", so it can be a program name with args.
1565set dummy cc; ac_word=$2
1566echo "$as_me:$LINENO: checking for $ac_word" >&5
1567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568if test "${ac_cv_prog_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 if test -n "$CC"; then
1572 ac_cv_prog_CC="$CC" # Let the user override the test.
1573else
jjako52c24142002-12-16 13:33:51 +00001574 ac_prog_rejected=no
jjako286bc982003-01-28 23:17:50 +00001575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576for as_dir in $PATH
1577do
1578 IFS=$as_save_IFS
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1583 ac_prog_rejected=yes
1584 continue
1585 fi
1586 ac_cv_prog_CC="cc"
1587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 break 2
1589 fi
1590done
1591done
1592
jjako52c24142002-12-16 13:33:51 +00001593if test $ac_prog_rejected = yes; then
1594 # We found a bogon in the path, so make sure we never use it.
1595 set dummy $ac_cv_prog_CC
1596 shift
jjako286bc982003-01-28 23:17:50 +00001597 if test $# != 0; then
jjako52c24142002-12-16 13:33:51 +00001598 # We chose a different compiler from the bogus one.
1599 # However, it has the same basename, so the bogon will be chosen
1600 # first if we set CC to just the basename; use the full file name.
1601 shift
jjako286bc982003-01-28 23:17:50 +00001602 set dummy "$as_dir/$ac_word" ${1+"$@"}
jjako52c24142002-12-16 13:33:51 +00001603 shift
1604 ac_cv_prog_CC="$@"
1605 fi
1606fi
1607fi
1608fi
jjako286bc982003-01-28 23:17:50 +00001609CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001610if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001611 echo "$as_me:$LINENO: result: $CC" >&5
1612echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001613else
jjako286bc982003-01-28 23:17:50 +00001614 echo "$as_me:$LINENO: result: no" >&5
1615echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001616fi
1617
jjako286bc982003-01-28 23:17:50 +00001618fi
1619if test -z "$CC"; then
1620 if test -n "$ac_tool_prefix"; then
1621 for ac_prog in cl
1622 do
1623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1625echo "$as_me:$LINENO: checking for $ac_word" >&5
1626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627if test "${ac_cv_prog_CC+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001629else
1630 if test -n "$CC"; then
1631 ac_cv_prog_CC="$CC" # Let the user override the test.
1632else
jjako286bc982003-01-28 23:17:50 +00001633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636 IFS=$as_save_IFS
1637 test -z "$as_dir" && as_dir=.
1638 for ac_exec_ext in '' $ac_executable_extensions; do
1639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642 break 2
jjako52c24142002-12-16 13:33:51 +00001643 fi
jjako286bc982003-01-28 23:17:50 +00001644done
1645done
1646
1647fi
1648fi
1649CC=$ac_cv_prog_CC
1650if test -n "$CC"; then
1651 echo "$as_me:$LINENO: result: $CC" >&5
1652echo "${ECHO_T}$CC" >&6
1653else
1654 echo "$as_me:$LINENO: result: no" >&5
1655echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001656fi
1657
jjako286bc982003-01-28 23:17:50 +00001658 test -n "$CC" && break
1659 done
1660fi
1661if test -z "$CC"; then
1662 ac_ct_CC=$CC
1663 for ac_prog in cl
1664do
1665 # Extract the first word of "$ac_prog", so it can be a program name with args.
1666set dummy $ac_prog; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672 if test -n "$ac_ct_CC"; then
1673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_CC="$ac_prog"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684 break 2
1685 fi
1686done
1687done
jjako52c24142002-12-16 13:33:51 +00001688
jjako286bc982003-01-28 23:17:50 +00001689fi
1690fi
1691ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692if test -n "$ac_ct_CC"; then
1693 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694echo "${ECHO_T}$ac_ct_CC" >&6
1695else
1696 echo "$as_me:$LINENO: result: no" >&5
1697echo "${ECHO_T}no" >&6
1698fi
jjako52c24142002-12-16 13:33:51 +00001699
jjako286bc982003-01-28 23:17:50 +00001700 test -n "$ac_ct_CC" && break
1701done
jjako52c24142002-12-16 13:33:51 +00001702
jjako286bc982003-01-28 23:17:50 +00001703 CC=$ac_ct_CC
1704fi
1705
1706fi
1707
1708
1709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1710echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1711 { (exit 1); exit 1; }; }
1712
1713# Provide some information about the compiler.
1714echo "$as_me:$LINENO:" \
1715 "checking for C compiler version" >&5
1716ac_compiler=`set X $ac_compile; echo $2`
1717{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1718 (eval $ac_compiler --version </dev/null >&5) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }
1722{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1723 (eval $ac_compiler -v </dev/null >&5) 2>&5
1724 ac_status=$?
1725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1726 (exit $ac_status); }
1727{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1728 (eval $ac_compiler -V </dev/null >&5) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }
1732
1733cat >conftest.$ac_ext <<_ACEOF
1734#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00001735#include "confdefs.h"
1736
jjako286bc982003-01-28 23:17:50 +00001737#ifdef F77_DUMMY_MAIN
1738# ifdef __cplusplus
1739 extern "C"
1740# endif
1741 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00001742#endif
jjako286bc982003-01-28 23:17:50 +00001743int
1744main ()
1745{
1746
1747 ;
1748 return 0;
1749}
1750_ACEOF
1751ac_clean_files_save=$ac_clean_files
1752ac_clean_files="$ac_clean_files a.out a.exe"
1753# Try to create an executable without -o first, disregard a.out.
1754# It will help us diagnose broken compilers, and finding out an intuition
1755# of exeext.
1756echo "$as_me:$LINENO: checking for C compiler default output" >&5
1757echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1758ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1759if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1760 (eval $ac_link_default) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }; then
1764 # Find the output, starting from the most likely. This scheme is
1765# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1766# resort.
1767
1768# Be careful to initialize this variable, since it used to be cached.
1769# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1770ac_cv_exeext=
1771for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1772 ls a.out conftest 2>/dev/null;
1773 ls a.* conftest.* 2>/dev/null`; do
1774 case $ac_file in
1775 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1776 a.out ) # We found the default executable, but exeext='' is most
1777 # certainly right.
1778 break;;
1779 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1780 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1781 export ac_cv_exeext
1782 break;;
1783 * ) break;;
1784 esac
1785done
jjako52c24142002-12-16 13:33:51 +00001786else
jjako286bc982003-01-28 23:17:50 +00001787 echo "$as_me: failed program was:" >&5
1788cat conftest.$ac_ext >&5
1789{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1790echo "$as_me: error: C compiler cannot create executables" >&2;}
1791 { (exit 77); exit 77; }; }
jjako52c24142002-12-16 13:33:51 +00001792fi
1793
jjako286bc982003-01-28 23:17:50 +00001794ac_exeext=$ac_cv_exeext
1795echo "$as_me:$LINENO: result: $ac_file" >&5
1796echo "${ECHO_T}$ac_file" >&6
jjako52c24142002-12-16 13:33:51 +00001797
jjako286bc982003-01-28 23:17:50 +00001798# Check the compiler produces executables we can run. If not, either
1799# the compiler is broken, or we cross compile.
1800echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1801echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1802# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1803# If not cross compiling, check that we can run a simple program.
1804if test "$cross_compiling" != yes; then
1805 if { ac_try='./$ac_file'
1806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1807 (eval $ac_try) 2>&5
1808 ac_status=$?
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1811 cross_compiling=no
1812 else
1813 if test "$cross_compiling" = maybe; then
1814 cross_compiling=yes
1815 else
1816 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1817If you meant to cross compile, use \`--host'." >&5
1818echo "$as_me: error: cannot run C compiled programs.
1819If you meant to cross compile, use \`--host'." >&2;}
1820 { (exit 1); exit 1; }; }
1821 fi
1822 fi
1823fi
1824echo "$as_me:$LINENO: result: yes" >&5
1825echo "${ECHO_T}yes" >&6
1826
1827rm -f a.out a.exe conftest$ac_cv_exeext
1828ac_clean_files=$ac_clean_files_save
1829# Check the compiler produces executables we can run. If not, either
1830# the compiler is broken, or we cross compile.
1831echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1832echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1833echo "$as_me:$LINENO: result: $cross_compiling" >&5
1834echo "${ECHO_T}$cross_compiling" >&6
1835
1836echo "$as_me:$LINENO: checking for suffix of executables" >&5
1837echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1839 (eval $ac_link) 2>&5
1840 ac_status=$?
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1844# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1845# work properly (i.e., refer to `conftest.exe'), while it won't with
1846# `rm'.
1847for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1848 case $ac_file in
1849 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 export ac_cv_exeext
1852 break;;
1853 * ) break;;
1854 esac
1855done
jjako52c24142002-12-16 13:33:51 +00001856else
jjako286bc982003-01-28 23:17:50 +00001857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1858echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1859 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001860fi
1861
jjako286bc982003-01-28 23:17:50 +00001862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001873else
jjako286bc982003-01-28 23:17:50 +00001874 cat >conftest.$ac_ext <<_ACEOF
1875#line $LINENO "configure"
1876#include "confdefs.h"
1877
1878#ifdef F77_DUMMY_MAIN
1879# ifdef __cplusplus
1880 extern "C"
1881# endif
1882 int F77_DUMMY_MAIN() { return 1; }
1883#endif
1884int
1885main ()
1886{
1887
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892rm -f conftest.o conftest.obj
1893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1894 (eval $ac_compile) 2>&5
1895 ac_status=$?
1896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897 (exit $ac_status); }; then
1898 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1901 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1902 break;;
1903 esac
1904done
1905else
1906 echo "$as_me: failed program was:" >&5
1907cat conftest.$ac_ext >&5
1908{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1909echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925#line $LINENO "configure"
1926#include "confdefs.h"
1927
1928#ifdef F77_DUMMY_MAIN
1929# ifdef __cplusplus
1930 extern "C"
1931# endif
1932 int F77_DUMMY_MAIN() { return 1; }
1933#endif
1934int
1935main ()
1936{
1937#ifndef __GNUC__
1938 choke me
1939#endif
1940
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945rm -f conftest.$ac_objext
1946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1957 ac_compiler_gnu=yes
1958else
1959 echo "$as_me: failed program was:" >&5
1960cat conftest.$ac_ext >&5
1961ac_compiler_gnu=no
1962fi
1963rm -f conftest.$ac_objext conftest.$ac_ext
1964ac_cv_c_compiler_gnu=$ac_compiler_gnu
1965
1966fi
1967echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1968echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1969GCC=`test $ac_compiler_gnu = yes && echo yes`
1970ac_test_CFLAGS=${CFLAGS+set}
1971ac_save_CFLAGS=$CFLAGS
1972CFLAGS="-g"
1973echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1974echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1975if test "${ac_cv_prog_cc_g+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978 cat >conftest.$ac_ext <<_ACEOF
1979#line $LINENO "configure"
1980#include "confdefs.h"
1981
1982#ifdef F77_DUMMY_MAIN
1983# ifdef __cplusplus
1984 extern "C"
1985# endif
1986 int F77_DUMMY_MAIN() { return 1; }
1987#endif
1988int
1989main ()
1990{
1991
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996rm -f conftest.$ac_objext
1997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
1999 ac_status=$?
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
2002 { ac_try='test -s conftest.$ac_objext'
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00002008 ac_cv_prog_cc_g=yes
2009else
jjako286bc982003-01-28 23:17:50 +00002010 echo "$as_me: failed program was:" >&5
2011cat conftest.$ac_ext >&5
2012ac_cv_prog_cc_g=no
jjako52c24142002-12-16 13:33:51 +00002013fi
jjako286bc982003-01-28 23:17:50 +00002014rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00002015fi
jjako286bc982003-01-28 23:17:50 +00002016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
jjako52c24142002-12-16 13:33:51 +00002018if test "$ac_test_CFLAGS" = set; then
jjako286bc982003-01-28 23:17:50 +00002019 CFLAGS=$ac_save_CFLAGS
jjako52c24142002-12-16 13:33:51 +00002020elif test $ac_cv_prog_cc_g = yes; then
2021 if test "$GCC" = yes; then
2022 CFLAGS="-g -O2"
2023 else
2024 CFLAGS="-g"
2025 fi
2026else
2027 if test "$GCC" = yes; then
2028 CFLAGS="-O2"
2029 else
2030 CFLAGS=
2031 fi
2032fi
jjako286bc982003-01-28 23:17:50 +00002033# Some people use a C++ compiler to compile C. Since we use `exit',
2034# in C++ we need to declare it. In case someone uses the same compiler
2035# for both compiling C and C++ we need to have the C++ compiler decide
2036# the declaration of exit, since it's the most demanding environment.
2037cat >conftest.$ac_ext <<_ACEOF
2038#ifndef __cplusplus
2039 choke me
2040#endif
2041_ACEOF
2042rm -f conftest.$ac_objext
2043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>&5
2045 ac_status=$?
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); } &&
2048 { ac_try='test -s conftest.$ac_objext'
2049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 (eval $ac_try) 2>&5
2051 ac_status=$?
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; }; then
2054 for ac_declaration in \
2055 ''\
2056 '#include <stdlib.h>' \
2057 'extern "C" void std::exit (int) throw (); using std::exit;' \
2058 'extern "C" void std::exit (int); using std::exit;' \
2059 'extern "C" void exit (int) throw ();' \
2060 'extern "C" void exit (int);' \
2061 'void exit (int);'
2062do
2063 cat >conftest.$ac_ext <<_ACEOF
2064#line $LINENO "configure"
2065#include "confdefs.h"
2066#include <stdlib.h>
2067$ac_declaration
2068#ifdef F77_DUMMY_MAIN
2069# ifdef __cplusplus
2070 extern "C"
2071# endif
2072 int F77_DUMMY_MAIN() { return 1; }
2073#endif
2074int
2075main ()
2076{
2077exit (42);
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082rm -f conftest.$ac_objext
2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2094 :
2095else
2096 echo "$as_me: failed program was:" >&5
2097cat conftest.$ac_ext >&5
2098continue
2099fi
2100rm -f conftest.$ac_objext conftest.$ac_ext
2101 cat >conftest.$ac_ext <<_ACEOF
2102#line $LINENO "configure"
2103#include "confdefs.h"
2104$ac_declaration
2105#ifdef F77_DUMMY_MAIN
2106# ifdef __cplusplus
2107 extern "C"
2108# endif
2109 int F77_DUMMY_MAIN() { return 1; }
2110#endif
2111int
2112main ()
2113{
2114exit (42);
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119rm -f conftest.$ac_objext
2120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121 (eval $ac_compile) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest.$ac_objext'
2126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 break
2132else
2133 echo "$as_me: failed program was:" >&5
2134cat conftest.$ac_ext >&5
2135fi
2136rm -f conftest.$ac_objext conftest.$ac_ext
2137done
2138rm -f conftest*
2139if test -n "$ac_declaration"; then
2140 echo '#ifdef __cplusplus' >>confdefs.h
2141 echo $ac_declaration >>confdefs.h
2142 echo '#endif' >>confdefs.h
2143fi
2144
2145else
2146 echo "$as_me: failed program was:" >&5
2147cat conftest.$ac_ext >&5
2148fi
2149rm -f conftest.$ac_objext conftest.$ac_ext
2150ac_ext=c
2151ac_cpp='$CPP $CPPFLAGS'
2152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2154ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00002155
2156ac_aux_dir=
2157for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2158 if test -f $ac_dir/install-sh; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/install-sh -c"
2161 break
2162 elif test -f $ac_dir/install.sh; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/install.sh -c"
2165 break
jjako286bc982003-01-28 23:17:50 +00002166 elif test -f $ac_dir/shtool; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/shtool install -c"
2169 break
jjako52c24142002-12-16 13:33:51 +00002170 fi
2171done
2172if test -z "$ac_aux_dir"; then
jjako286bc982003-01-28 23:17:50 +00002173 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2174echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2175 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002176fi
jjako286bc982003-01-28 23:17:50 +00002177ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2178ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2179ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
jjako52c24142002-12-16 13:33:51 +00002180
2181# Find a good install program. We prefer a C program (faster),
2182# so one script is as good as another. But avoid the broken or
2183# incompatible versions:
2184# SysV /etc/install, /usr/sbin/install
2185# SunOS /usr/etc/install
2186# IRIX /sbin/install
2187# AIX /bin/install
jjako286bc982003-01-28 23:17:50 +00002188# AmigaOS /C/install, which installs bootblocks on floppy discs
jjako52c24142002-12-16 13:33:51 +00002189# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2190# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2191# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2192# ./install, which can be erroneously created by make from ./install.sh.
jjako286bc982003-01-28 23:17:50 +00002193echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2194echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002195if test -z "$INSTALL"; then
jjako286bc982003-01-28 23:17:50 +00002196if test "${ac_cv_path_install+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002198else
jjako286bc982003-01-28 23:17:50 +00002199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH
2201do
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 # Account for people who put trailing slashes in PATH elements.
2205case $as_dir/ in
2206 ./ | .// | /cC/* | \
2207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208 /usr/ucb/* ) ;;
2209 *)
2210 # OSF1 and SCO ODT 3.0 have their own names for install.
2211 # Don't use installbsd from OSF since it installs stuff as root
2212 # by default.
2213 for ac_prog in ginstall scoinst install; do
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2216 if test $ac_prog = install &&
2217 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2218 # AIX install. It has an incompatible calling convention.
2219 :
2220 elif test $ac_prog = install &&
2221 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2222 # program-specific install script used by HP pwplus--don't use.
2223 :
2224 else
2225 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2226 break 3
2227 fi
2228 fi
jjako52c24142002-12-16 13:33:51 +00002229 done
jjako286bc982003-01-28 23:17:50 +00002230 done
2231 ;;
2232esac
2233done
2234
jjako52c24142002-12-16 13:33:51 +00002235
2236fi
2237 if test "${ac_cv_path_install+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00002238 INSTALL=$ac_cv_path_install
jjako52c24142002-12-16 13:33:51 +00002239 else
2240 # As a last resort, use the slow shell script. We don't cache a
2241 # path for INSTALL within a source directory, because that will
2242 # break other packages using the cache if that directory is
2243 # removed, or if the path is relative.
jjako286bc982003-01-28 23:17:50 +00002244 INSTALL=$ac_install_sh
jjako52c24142002-12-16 13:33:51 +00002245 fi
2246fi
jjako286bc982003-01-28 23:17:50 +00002247echo "$as_me:$LINENO: result: $INSTALL" >&5
2248echo "${ECHO_T}$INSTALL" >&6
jjako52c24142002-12-16 13:33:51 +00002249
2250# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2251# It thinks the first close brace ends the variable substitution.
2252test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2253
jjako286bc982003-01-28 23:17:50 +00002254test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
jjako52c24142002-12-16 13:33:51 +00002255
2256test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2257
jjako286bc982003-01-28 23:17:50 +00002258for ac_prog in gawk mawk nawk awk
2259do
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261set dummy $ac_prog; ac_word=$2
2262echo "$as_me:$LINENO: checking for $ac_word" >&5
2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264if test "${ac_cv_prog_AWK+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002266else
jjako286bc982003-01-28 23:17:50 +00002267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
jjako52c24142002-12-16 13:33:51 +00002269else
jjako286bc982003-01-28 23:17:50 +00002270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_prog_AWK="$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2280 fi
2281done
2282done
2283
jjako52c24142002-12-16 13:33:51 +00002284fi
2285fi
jjako286bc982003-01-28 23:17:50 +00002286AWK=$ac_cv_prog_AWK
2287if test -n "$AWK"; then
2288 echo "$as_me:$LINENO: result: $AWK" >&5
2289echo "${ECHO_T}$AWK" >&6
jjako52c24142002-12-16 13:33:51 +00002290else
jjako286bc982003-01-28 23:17:50 +00002291 echo "$as_me:$LINENO: result: no" >&5
2292echo "${ECHO_T}no" >&6
2293fi
2294
2295 test -n "$AWK" && break
2296done
2297
2298ac_ext=c
2299ac_cpp='$CPP $CPPFLAGS'
2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2304echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2305# On Suns, sometimes $CPP names a directory.
2306if test -n "$CPP" && test -d "$CPP"; then
2307 CPP=
2308fi
2309if test -z "$CPP"; then
2310 if test "${ac_cv_prog_CPP+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313 # Double quotes because CPP needs to be expanded
2314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2315 do
2316 ac_preproc_ok=false
2317for ac_c_preproc_warn_flag in '' yes
2318do
2319 # Use a header file that comes with gcc, so configuring glibc
2320 # with a fresh cross-compiler works.
2321 # On the NeXT, cc -E runs the code through the compiler's parser,
2322 # not just through cpp. "Syntax error" is here to catch this case.
2323 cat >conftest.$ac_ext <<_ACEOF
2324#line $LINENO "configure"
2325#include "confdefs.h"
2326#include <assert.h>
2327 Syntax error
2328_ACEOF
2329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2331 ac_status=$?
2332 egrep -v '^ *\+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev/null; then
2337 if test -s conftest.err; then
2338 ac_cpp_err=$ac_c_preproc_warn_flag
2339 else
2340 ac_cpp_err=
2341 fi
2342else
2343 ac_cpp_err=yes
2344fi
2345if test -z "$ac_cpp_err"; then
2346 :
2347else
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2350 # Broken: fails on valid input.
2351continue
2352fi
2353rm -f conftest.err conftest.$ac_ext
2354
2355 # OK, works on sane cases. Now check whether non-existent headers
2356 # can be detected and how.
2357 cat >conftest.$ac_ext <<_ACEOF
2358#line $LINENO "configure"
2359#include "confdefs.h"
2360#include <ac_nonexistent.h>
2361_ACEOF
2362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2364 ac_status=$?
2365 egrep -v '^ *\+' conftest.er1 >conftest.err
2366 rm -f conftest.er1
2367 cat conftest.err >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } >/dev/null; then
2370 if test -s conftest.err; then
2371 ac_cpp_err=$ac_c_preproc_warn_flag
2372 else
2373 ac_cpp_err=
2374 fi
2375else
2376 ac_cpp_err=yes
2377fi
2378if test -z "$ac_cpp_err"; then
2379 # Broken: success on invalid input.
2380continue
2381else
2382 echo "$as_me: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 # Passes both tests.
2385ac_preproc_ok=:
2386break
2387fi
2388rm -f conftest.err conftest.$ac_ext
2389
2390done
2391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2392rm -f conftest.err conftest.$ac_ext
2393if $ac_preproc_ok; then
2394 break
2395fi
2396
2397 done
2398 ac_cv_prog_CPP=$CPP
2399
2400fi
2401 CPP=$ac_cv_prog_CPP
2402else
2403 ac_cv_prog_CPP=$CPP
2404fi
2405echo "$as_me:$LINENO: result: $CPP" >&5
2406echo "${ECHO_T}$CPP" >&6
2407ac_preproc_ok=false
2408for ac_c_preproc_warn_flag in '' yes
2409do
2410 # Use a header file that comes with gcc, so configuring glibc
2411 # with a fresh cross-compiler works.
2412 # On the NeXT, cc -E runs the code through the compiler's parser,
2413 # not just through cpp. "Syntax error" is here to catch this case.
2414 cat >conftest.$ac_ext <<_ACEOF
2415#line $LINENO "configure"
2416#include "confdefs.h"
2417#include <assert.h>
2418 Syntax error
2419_ACEOF
2420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422 ac_status=$?
2423 egrep -v '^ *\+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433else
2434 ac_cpp_err=yes
2435fi
2436if test -z "$ac_cpp_err"; then
2437 :
2438else
2439 echo "$as_me: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 # Broken: fails on valid input.
2442continue
2443fi
2444rm -f conftest.err conftest.$ac_ext
2445
2446 # OK, works on sane cases. Now check whether non-existent headers
2447 # can be detected and how.
2448 cat >conftest.$ac_ext <<_ACEOF
2449#line $LINENO "configure"
2450#include "confdefs.h"
2451#include <ac_nonexistent.h>
2452_ACEOF
2453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2455 ac_status=$?
2456 egrep -v '^ *\+' conftest.er1 >conftest.err
2457 rm -f conftest.er1
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } >/dev/null; then
2461 if test -s conftest.err; then
2462 ac_cpp_err=$ac_c_preproc_warn_flag
2463 else
2464 ac_cpp_err=
2465 fi
2466else
2467 ac_cpp_err=yes
2468fi
2469if test -z "$ac_cpp_err"; then
2470 # Broken: success on invalid input.
2471continue
2472else
2473 echo "$as_me: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 # Passes both tests.
2476ac_preproc_ok=:
2477break
2478fi
2479rm -f conftest.err conftest.$ac_ext
2480
2481done
2482# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2483rm -f conftest.err conftest.$ac_ext
2484if $ac_preproc_ok; then
2485 :
2486else
2487 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2488echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2489 { (exit 1); exit 1; }; }
2490fi
2491
2492ac_ext=c
2493ac_cpp='$CPP $CPPFLAGS'
2494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497
2498ac_ext=cc
2499ac_cpp='$CXXCPP $CPPFLAGS'
2500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2503if test -n "$ac_tool_prefix"; then
2504 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2505 do
2506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2507set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2508echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510if test "${ac_cv_prog_CXX+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CXX"; then
2514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
2529
2530fi
2531fi
2532CXX=$ac_cv_prog_CXX
2533if test -n "$CXX"; then
2534 echo "$as_me:$LINENO: result: $CXX" >&5
2535echo "${ECHO_T}$CXX" >&6
2536else
2537 echo "$as_me:$LINENO: result: no" >&5
2538echo "${ECHO_T}no" >&6
2539fi
2540
2541 test -n "$CXX" && break
2542 done
2543fi
2544if test -z "$CXX"; then
2545 ac_ct_CXX=$CXX
2546 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2547do
2548 # Extract the first word of "$ac_prog", so it can be a program name with args.
2549set dummy $ac_prog; ac_word=$2
2550echo "$as_me:$LINENO: checking for $ac_word" >&5
2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2552if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 if test -n "$ac_ct_CXX"; then
2556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565 ac_cv_prog_ac_ct_CXX="$ac_prog"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569done
2570done
2571
2572fi
2573fi
2574ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2575if test -n "$ac_ct_CXX"; then
2576 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2577echo "${ECHO_T}$ac_ct_CXX" >&6
2578else
2579 echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6
2581fi
2582
2583 test -n "$ac_ct_CXX" && break
2584done
2585test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2586
2587 CXX=$ac_ct_CXX
jjako52c24142002-12-16 13:33:51 +00002588fi
2589
2590
jjako286bc982003-01-28 23:17:50 +00002591# Provide some information about the compiler.
2592echo "$as_me:$LINENO:" \
2593 "checking for C++ compiler version" >&5
2594ac_compiler=`set X $ac_compile; echo $2`
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2596 (eval $ac_compiler --version </dev/null >&5) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2601 (eval $ac_compiler -v </dev/null >&5) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2606 (eval $ac_compiler -V </dev/null >&5) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }
2610
2611echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2612echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2613if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 cat >conftest.$ac_ext <<_ACEOF
2617#line $LINENO "configure"
2618#include "confdefs.h"
2619
2620#ifdef F77_DUMMY_MAIN
2621# ifdef __cplusplus
2622 extern "C"
2623# endif
2624 int F77_DUMMY_MAIN() { return 1; }
2625#endif
2626int
2627main ()
2628{
2629#ifndef __GNUC__
2630 choke me
2631#endif
2632
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637rm -f conftest.$ac_objext
2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_compiler_gnu=yes
2650else
2651 echo "$as_me: failed program was:" >&5
2652cat conftest.$ac_ext >&5
2653ac_compiler_gnu=no
2654fi
2655rm -f conftest.$ac_objext conftest.$ac_ext
2656ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2657
2658fi
2659echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2660echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2661GXX=`test $ac_compiler_gnu = yes && echo yes`
2662ac_test_CXXFLAGS=${CXXFLAGS+set}
2663ac_save_CXXFLAGS=$CXXFLAGS
2664CXXFLAGS="-g"
2665echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2666echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2667if test "${ac_cv_prog_cxx_g+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 cat >conftest.$ac_ext <<_ACEOF
2671#line $LINENO "configure"
2672#include "confdefs.h"
2673
2674#ifdef F77_DUMMY_MAIN
2675# ifdef __cplusplus
2676 extern "C"
2677# endif
2678 int F77_DUMMY_MAIN() { return 1; }
2679#endif
2680int
2681main ()
2682{
2683
2684 ;
2685 return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -s conftest.$ac_objext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_prog_cxx_g=yes
2701else
2702 echo "$as_me: failed program was:" >&5
2703cat conftest.$ac_ext >&5
2704ac_cv_prog_cxx_g=no
2705fi
2706rm -f conftest.$ac_objext conftest.$ac_ext
2707fi
2708echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2709echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2710if test "$ac_test_CXXFLAGS" = set; then
2711 CXXFLAGS=$ac_save_CXXFLAGS
2712elif test $ac_cv_prog_cxx_g = yes; then
2713 if test "$GXX" = yes; then
2714 CXXFLAGS="-g -O2"
2715 else
2716 CXXFLAGS="-g"
2717 fi
2718else
2719 if test "$GXX" = yes; then
2720 CXXFLAGS="-O2"
2721 else
2722 CXXFLAGS=
2723 fi
2724fi
2725for ac_declaration in \
2726 ''\
2727 '#include <stdlib.h>' \
2728 'extern "C" void std::exit (int) throw (); using std::exit;' \
2729 'extern "C" void std::exit (int); using std::exit;' \
2730 'extern "C" void exit (int) throw ();' \
2731 'extern "C" void exit (int);' \
2732 'void exit (int);'
2733do
2734 cat >conftest.$ac_ext <<_ACEOF
2735#line $LINENO "configure"
2736#include "confdefs.h"
2737#include <stdlib.h>
2738$ac_declaration
2739#ifdef F77_DUMMY_MAIN
2740# ifdef __cplusplus
2741 extern "C"
2742# endif
2743 int F77_DUMMY_MAIN() { return 1; }
2744#endif
2745int
2746main ()
2747{
2748exit (42);
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753rm -f conftest.$ac_objext
2754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2755 (eval $ac_compile) 2>&5
2756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 (eval $ac_try) 2>&5
2762 ac_status=$?
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2765 :
2766else
2767 echo "$as_me: failed program was:" >&5
2768cat conftest.$ac_ext >&5
2769continue
2770fi
2771rm -f conftest.$ac_objext conftest.$ac_ext
2772 cat >conftest.$ac_ext <<_ACEOF
2773#line $LINENO "configure"
2774#include "confdefs.h"
2775$ac_declaration
2776#ifdef F77_DUMMY_MAIN
2777# ifdef __cplusplus
2778 extern "C"
2779# endif
2780 int F77_DUMMY_MAIN() { return 1; }
2781#endif
2782int
2783main ()
2784{
2785exit (42);
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790rm -f conftest.$ac_objext
2791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 break
2803else
2804 echo "$as_me: failed program was:" >&5
2805cat conftest.$ac_ext >&5
2806fi
2807rm -f conftest.$ac_objext conftest.$ac_ext
2808done
2809rm -f conftest*
2810if test -n "$ac_declaration"; then
2811 echo '#ifdef __cplusplus' >>confdefs.h
2812 echo $ac_declaration >>confdefs.h
2813 echo '#endif' >>confdefs.h
2814fi
2815
2816ac_ext=c
2817ac_cpp='$CPP $CPPFLAGS'
2818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821
2822if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2824set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2825echo "$as_me:$LINENO: checking for $ac_word" >&5
2826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2827if test "${ac_cv_prog_RANLIB+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829else
2830 if test -n "$RANLIB"; then
2831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
2835do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844done
2845done
2846
2847fi
2848fi
2849RANLIB=$ac_cv_prog_RANLIB
2850if test -n "$RANLIB"; then
2851 echo "$as_me:$LINENO: result: $RANLIB" >&5
2852echo "${ECHO_T}$RANLIB" >&6
2853else
2854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856fi
2857
2858fi
2859if test -z "$ac_cv_prog_RANLIB"; then
2860 ac_ct_RANLIB=$RANLIB
2861 # Extract the first word of "ranlib", so it can be a program name with args.
2862set dummy ranlib; ac_word=$2
2863echo "$as_me:$LINENO: checking for $ac_word" >&5
2864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2865if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868 if test -n "$ac_ct_RANLIB"; then
2869 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2870else
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH
2873do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2878 ac_cv_prog_ac_ct_RANLIB="ranlib"
2879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882done
2883done
2884
2885 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2886fi
2887fi
2888ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2889if test -n "$ac_ct_RANLIB"; then
2890 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2891echo "${ECHO_T}$ac_ct_RANLIB" >&6
2892else
2893 echo "$as_me:$LINENO: result: no" >&5
2894echo "${ECHO_T}no" >&6
2895fi
2896
2897 RANLIB=$ac_ct_RANLIB
2898else
2899 RANLIB="$ac_cv_prog_RANLIB"
2900fi
2901
2902
2903
2904#JJAKO Check for libtool
jjako52c24142002-12-16 13:33:51 +00002905# Check whether --enable-shared or --disable-shared was given.
2906if test "${enable_shared+set}" = set; then
2907 enableval="$enable_shared"
2908 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002909case $enableval in
jjako52c24142002-12-16 13:33:51 +00002910yes) enable_shared=yes ;;
2911no) enable_shared=no ;;
2912*)
2913 enable_shared=no
2914 # Look at the argument we got. We use all the common list separators.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2916 for pkg in $enableval; do
2917 if test "X$pkg" = "X$p"; then
2918 enable_shared=yes
2919 fi
2920 done
2921 IFS="$ac_save_ifs"
2922 ;;
2923esac
2924else
2925 enable_shared=yes
jjako286bc982003-01-28 23:17:50 +00002926fi;
jjako52c24142002-12-16 13:33:51 +00002927# Check whether --enable-static or --disable-static was given.
2928if test "${enable_static+set}" = set; then
2929 enableval="$enable_static"
2930 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002931case $enableval in
jjako52c24142002-12-16 13:33:51 +00002932yes) enable_static=yes ;;
2933no) enable_static=no ;;
2934*)
2935 enable_static=no
2936 # Look at the argument we got. We use all the common list separators.
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2938 for pkg in $enableval; do
2939 if test "X$pkg" = "X$p"; then
2940 enable_static=yes
2941 fi
2942 done
2943 IFS="$ac_save_ifs"
2944 ;;
2945esac
2946else
2947 enable_static=yes
jjako286bc982003-01-28 23:17:50 +00002948fi;
jjako52c24142002-12-16 13:33:51 +00002949# Check whether --enable-fast-install or --disable-fast-install was given.
2950if test "${enable_fast_install+set}" = set; then
2951 enableval="$enable_fast_install"
2952 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002953case $enableval in
jjako52c24142002-12-16 13:33:51 +00002954yes) enable_fast_install=yes ;;
2955no) enable_fast_install=no ;;
2956*)
2957 enable_fast_install=no
2958 # Look at the argument we got. We use all the common list separators.
2959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2960 for pkg in $enableval; do
2961 if test "X$pkg" = "X$p"; then
2962 enable_fast_install=yes
2963 fi
2964 done
2965 IFS="$ac_save_ifs"
2966 ;;
2967esac
2968else
2969 enable_fast_install=yes
jjako286bc982003-01-28 23:17:50 +00002970fi;
jjako52c24142002-12-16 13:33:51 +00002971# Make sure we can run config.sub.
jjako286bc982003-01-28 23:17:50 +00002972$ac_config_sub sun4 >/dev/null 2>&1 ||
2973 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2974echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2975 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002976
jjako286bc982003-01-28 23:17:50 +00002977echo "$as_me:$LINENO: checking build system type" >&5
2978echo $ECHO_N "checking build system type... $ECHO_C" >&6
2979if test "${ac_cv_build+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002981else
jjako286bc982003-01-28 23:17:50 +00002982 ac_cv_build_alias=$build_alias
2983test -z "$ac_cv_build_alias" &&
2984 ac_cv_build_alias=`$ac_config_guess`
2985test -z "$ac_cv_build_alias" &&
2986 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2987echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2988 { (exit 1); exit 1; }; }
2989ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2990 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2991echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2992 { (exit 1); exit 1; }; }
2993
2994fi
2995echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2996echo "${ECHO_T}$ac_cv_build" >&6
2997build=$ac_cv_build
2998build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2999build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3000build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3001
3002
3003echo "$as_me:$LINENO: checking host system type" >&5
3004echo $ECHO_N "checking host system type... $ECHO_C" >&6
3005if test "${ac_cv_host+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003007else
jjako286bc982003-01-28 23:17:50 +00003008 ac_cv_host_alias=$host_alias
3009test -z "$ac_cv_host_alias" &&
3010 ac_cv_host_alias=$ac_cv_build_alias
3011ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3012 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3013echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3014 { (exit 1); exit 1; }; }
3015
jjako52c24142002-12-16 13:33:51 +00003016fi
jjako286bc982003-01-28 23:17:50 +00003017echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3018echo "${ECHO_T}$ac_cv_host" >&6
3019host=$ac_cv_host
3020host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3021host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3022host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3023
3024
3025# Find the correct PATH separator. Usually this is `:', but
3026# DJGPP uses `;' like DOS.
3027if test "X${PATH_SEPARATOR+set}" != Xset; then
3028 UNAME=${UNAME-`uname 2>/dev/null`}
3029 case X$UNAME in
3030 *-DOS) lt_cv_sys_path_separator=';' ;;
3031 *) lt_cv_sys_path_separator=':' ;;
3032 esac
3033 PATH_SEPARATOR=$lt_cv_sys_path_separator
jjako52c24142002-12-16 13:33:51 +00003034fi
jjako286bc982003-01-28 23:17:50 +00003035
jjako52c24142002-12-16 13:33:51 +00003036
3037# Check whether --with-gnu-ld or --without-gnu-ld was given.
3038if test "${with_gnu_ld+set}" = set; then
3039 withval="$with_gnu_ld"
3040 test "$withval" = no || with_gnu_ld=yes
3041else
3042 with_gnu_ld=no
jjako286bc982003-01-28 23:17:50 +00003043fi;
jjako52c24142002-12-16 13:33:51 +00003044ac_prog=ld
jjako286bc982003-01-28 23:17:50 +00003045if test "$GCC" = yes; then
jjako52c24142002-12-16 13:33:51 +00003046 # Check if gcc -print-prog-name=ld gives a path.
jjako286bc982003-01-28 23:17:50 +00003047 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3048echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3049 case $host in
3050 *-*-mingw*)
3051 # gcc leaves a trailing carriage return which upsets mingw
3052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3053 *)
3054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3055 esac
3056 case $ac_prog in
jjako52c24142002-12-16 13:33:51 +00003057 # Accept absolute paths.
3058 [\\/]* | [A-Za-z]:[\\/]*)
3059 re_direlt='/[^/][^/]*/\.\./'
3060 # Canonicalize the path of ld
3061 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3062 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3063 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3064 done
3065 test -z "$LD" && LD="$ac_prog"
3066 ;;
3067 "")
3068 # If it fails, then pretend we aren't using GCC.
3069 ac_prog=ld
3070 ;;
3071 *)
3072 # If it is relative, then search for the first ld in PATH.
3073 with_gnu_ld=unknown
3074 ;;
3075 esac
3076elif test "$with_gnu_ld" = yes; then
jjako286bc982003-01-28 23:17:50 +00003077 echo "$as_me:$LINENO: checking for GNU ld" >&5
3078echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003079else
jjako286bc982003-01-28 23:17:50 +00003080 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3081echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003082fi
jjako286bc982003-01-28 23:17:50 +00003083if test "${lt_cv_path_LD+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003085else
3086 if test -z "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003088 for ac_dir in $PATH; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
jjako286bc982003-01-28 23:17:50 +00003091 lt_cv_path_LD="$ac_dir/$ac_prog"
jjako52c24142002-12-16 13:33:51 +00003092 # Check to see if the program is GNU ld. I'd rather use --version,
3093 # but apparently some GNU ld's only accept -v.
3094 # Break only if it was the GNU/non-GNU ld that we prefer.
jjako286bc982003-01-28 23:17:50 +00003095 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
jjako52c24142002-12-16 13:33:51 +00003096 test "$with_gnu_ld" != no && break
3097 else
3098 test "$with_gnu_ld" != yes && break
3099 fi
3100 fi
3101 done
3102 IFS="$ac_save_ifs"
3103else
jjako286bc982003-01-28 23:17:50 +00003104 lt_cv_path_LD="$LD" # Let the user override the test with a path.
jjako52c24142002-12-16 13:33:51 +00003105fi
3106fi
3107
jjako286bc982003-01-28 23:17:50 +00003108LD="$lt_cv_path_LD"
jjako52c24142002-12-16 13:33:51 +00003109if test -n "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003110 echo "$as_me:$LINENO: result: $LD" >&5
3111echo "${ECHO_T}$LD" >&6
jjako52c24142002-12-16 13:33:51 +00003112else
jjako286bc982003-01-28 23:17:50 +00003113 echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00003115fi
jjako286bc982003-01-28 23:17:50 +00003116test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3117echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3118 { (exit 1); exit 1; }; }
3119echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3120echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3121if test "${lt_cv_prog_gnu_ld+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003123else
3124 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3125if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
jjako286bc982003-01-28 23:17:50 +00003126 lt_cv_prog_gnu_ld=yes
jjako52c24142002-12-16 13:33:51 +00003127else
jjako286bc982003-01-28 23:17:50 +00003128 lt_cv_prog_gnu_ld=no
jjako52c24142002-12-16 13:33:51 +00003129fi
3130fi
jjako286bc982003-01-28 23:17:50 +00003131echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3132echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3133with_gnu_ld=$lt_cv_prog_gnu_ld
jjako52c24142002-12-16 13:33:51 +00003134
3135
jjako286bc982003-01-28 23:17:50 +00003136echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3137echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3138if test "${lt_cv_ld_reload_flag+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141 lt_cv_ld_reload_flag='-r'
3142fi
3143echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3144echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3145reload_flag=$lt_cv_ld_reload_flag
3146test -n "$reload_flag" && reload_flag=" $reload_flag"
3147
3148echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3149echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3150if test "${lt_cv_path_NM+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003152else
3153 if test -n "$NM"; then
3154 # Let the user override the test.
jjako286bc982003-01-28 23:17:50 +00003155 lt_cv_path_NM="$NM"
jjako52c24142002-12-16 13:33:51 +00003156else
jjako286bc982003-01-28 23:17:50 +00003157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003158 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3159 test -z "$ac_dir" && ac_dir=.
jjako286bc982003-01-28 23:17:50 +00003160 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3161 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
jjako52c24142002-12-16 13:33:51 +00003162 # Check to see if the nm accepts a BSD-compat flag.
3163 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3164 # nm: unknown option "B" ignored
jjako286bc982003-01-28 23:17:50 +00003165 # Tru64's nm complains that /dev/null is an invalid object file
3166 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3167 lt_cv_path_NM="$tmp_nm -B"
jjako52c24142002-12-16 13:33:51 +00003168 break
jjako286bc982003-01-28 23:17:50 +00003169 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3170 lt_cv_path_NM="$tmp_nm -p"
jjako52c24142002-12-16 13:33:51 +00003171 break
3172 else
jjako286bc982003-01-28 23:17:50 +00003173 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
jjako52c24142002-12-16 13:33:51 +00003174 continue # so that we can try to find one that supports BSD flags
3175 fi
3176 fi
3177 done
3178 IFS="$ac_save_ifs"
jjako286bc982003-01-28 23:17:50 +00003179 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
jjako52c24142002-12-16 13:33:51 +00003180fi
3181fi
3182
jjako286bc982003-01-28 23:17:50 +00003183NM="$lt_cv_path_NM"
3184echo "$as_me:$LINENO: result: $NM" >&5
3185echo "${ECHO_T}$NM" >&6
jjako52c24142002-12-16 13:33:51 +00003186
jjako286bc982003-01-28 23:17:50 +00003187echo "$as_me:$LINENO: checking whether ln -s works" >&5
3188echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3189LN_S=$as_ln_s
3190if test "$LN_S" = "ln -s"; then
3191 echo "$as_me:$LINENO: result: yes" >&5
3192echo "${ECHO_T}yes" >&6
3193else
3194 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3195echo "${ECHO_T}no, using $LN_S" >&6
3196fi
jjako52c24142002-12-16 13:33:51 +00003197
jjako286bc982003-01-28 23:17:50 +00003198echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3199echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3200if test "${lt_cv_deplibs_check_method+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203 lt_cv_file_magic_cmd='$MAGIC_CMD'
3204lt_cv_file_magic_test_file=
3205lt_cv_deplibs_check_method='unknown'
3206# Need to set the preceding variable on all platforms that support
3207# interlibrary dependencies.
3208# 'none' -- dependencies not supported.
3209# `unknown' -- same as none, but documents that we really don't know.
3210# 'pass_all' -- all dependencies passed with no checks.
3211# 'test_compile' -- check by making test program.
3212# 'file_magic [[regex]]' -- check by looking for files in library path
3213# which responds to the $file_magic_cmd with a given egrep regex.
3214# If you have `file' or equivalent on your system and you're not sure
3215# whether `pass_all' will *always* work, you probably want this one.
3216
3217case $host_os in
3218aix4* | aix5*)
3219 lt_cv_deplibs_check_method=pass_all
3220 ;;
3221
3222beos*)
3223 lt_cv_deplibs_check_method=pass_all
3224 ;;
3225
3226bsdi4*)
3227 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3228 lt_cv_file_magic_cmd='/usr/bin/file -L'
3229 lt_cv_file_magic_test_file=/shlib/libc.so
3230 ;;
3231
3232cygwin* | mingw* | pw32*)
3233 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3234 lt_cv_file_magic_cmd='$OBJDUMP -f'
3235 ;;
3236
3237darwin* | rhapsody*)
3238 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3239 lt_cv_file_magic_cmd='/usr/bin/file -L'
3240 case "$host_os" in
3241 rhapsody* | darwin1.[012])
3242 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3243 ;;
3244 *) # Darwin 1.3 on
3245 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3246 ;;
3247 esac
3248 ;;
3249
3250freebsd*)
3251 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3252 case $host_cpu in
3253 i*86 )
3254 # Not sure whether the presence of OpenBSD here was a mistake.
3255 # Let's accept both of them until this is cleared up.
3256 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3257 lt_cv_file_magic_cmd=/usr/bin/file
3258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3259 ;;
3260 esac
3261 else
3262 lt_cv_deplibs_check_method=pass_all
3263 fi
3264 ;;
3265
3266gnu*)
3267 lt_cv_deplibs_check_method=pass_all
3268 ;;
3269
3270hpux10.20*|hpux11*)
3271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3272 lt_cv_file_magic_cmd=/usr/bin/file
3273 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3274 ;;
3275
3276irix5* | irix6*)
3277 case $host_os in
3278 irix5*)
3279 # this will be overridden with pass_all, but let us keep it just in case
3280 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3281 ;;
3282 *)
3283 case $LD in
3284 *-32|*"-32 ") libmagic=32-bit;;
3285 *-n32|*"-n32 ") libmagic=N32;;
3286 *-64|*"-64 ") libmagic=64-bit;;
3287 *) libmagic=never-match;;
3288 esac
3289 # this will be overridden with pass_all, but let us keep it just in case
3290 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3291 ;;
3292 esac
3293 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3294 lt_cv_deplibs_check_method=pass_all
3295 ;;
3296
3297# This must be Linux ELF.
3298linux-gnu*)
3299 case $host_cpu in
3300 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3301 lt_cv_deplibs_check_method=pass_all ;;
3302 *)
3303 # glibc up to 2.1.1 does not perform some relocations on ARM
3304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3305 esac
3306 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3307 ;;
3308
3309netbsd*)
3310 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3311 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3312 else
3313 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3314 fi
3315 ;;
3316
3317newos6*)
3318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3319 lt_cv_file_magic_cmd=/usr/bin/file
3320 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3321 ;;
3322
3323openbsd*)
3324 lt_cv_file_magic_cmd=/usr/bin/file
3325 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3328 else
3329 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3330 fi
3331 ;;
3332
3333osf3* | osf4* | osf5*)
3334 # this will be overridden with pass_all, but let us keep it just in case
3335 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3336 lt_cv_file_magic_test_file=/shlib/libc.so
3337 lt_cv_deplibs_check_method=pass_all
3338 ;;
3339
3340sco3.2v5*)
3341 lt_cv_deplibs_check_method=pass_all
3342 ;;
3343
3344solaris*)
3345 lt_cv_deplibs_check_method=pass_all
3346 lt_cv_file_magic_test_file=/lib/libc.so
3347 ;;
3348
3349sysv5uw[78]* | sysv4*uw2*)
3350 lt_cv_deplibs_check_method=pass_all
3351 ;;
3352
3353sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3354 case $host_vendor in
3355 motorola)
3356 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]'
3357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3358 ;;
3359 ncr)
3360 lt_cv_deplibs_check_method=pass_all
3361 ;;
3362 sequent)
3363 lt_cv_file_magic_cmd='/bin/file'
3364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3365 ;;
3366 sni)
3367 lt_cv_file_magic_cmd='/bin/file'
3368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3369 lt_cv_file_magic_test_file=/lib/libc.so
3370 ;;
3371 esac
3372 ;;
jjako52c24142002-12-16 13:33:51 +00003373esac
3374
jjako286bc982003-01-28 23:17:50 +00003375fi
3376echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3377echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3378file_magic_cmd=$lt_cv_file_magic_cmd
3379deplibs_check_method=$lt_cv_deplibs_check_method
jjako52c24142002-12-16 13:33:51 +00003380
3381
jjako286bc982003-01-28 23:17:50 +00003382
3383
3384
3385
3386
3387
3388# Check for command to grab the raw symbol name followed by C symbol from nm.
3389echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3390echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3391if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394
3395# These are sane defaults that work on at least a few old systems.
3396# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3397
3398# Character class describing NM global symbol codes.
3399symcode='[BCDEGRST]'
3400
3401# Regexp to match symbols that can be accessed directly from C.
3402sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3403
3404# Transform the above into a raw symbol and a C symbol.
3405symxfrm='\1 \2\3 \3'
3406
3407# Transform an extracted symbol line into a proper C declaration
3408lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3409
3410# Transform an extracted symbol line into symbol name and symbol address
3411lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3412
3413# Define system-specific variables.
3414case $host_os in
3415aix*)
3416 symcode='[BCDT]'
3417 ;;
3418cygwin* | mingw* | pw32*)
3419 symcode='[ABCDGISTW]'
3420 ;;
3421hpux*) # Its linker distinguishes data from code symbols
3422 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3423 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3424 ;;
3425irix*)
3426 symcode='[BCDEGRST]'
3427 ;;
3428solaris* | sysv5*)
3429 symcode='[BDT]'
3430 ;;
3431sysv4)
3432 symcode='[DFNSTU]'
3433 ;;
3434esac
3435
3436# Handle CRLF in mingw tool chain
3437opt_cr=
3438case $host_os in
3439mingw*)
3440 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3441 ;;
3442esac
3443
3444# If we're using GNU nm, then use its standard symbol codes.
3445if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3446 symcode='[ABCDGISTW]'
3447fi
3448
3449# Try without a prefix undercore, then with it.
3450for ac_symprfx in "" "_"; do
3451
3452 # Write the raw and C identifiers.
3453lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3454
3455 # Check to see that the pipe works correctly.
3456 pipe_works=no
3457 rm -f conftest*
3458 cat > conftest.$ac_ext <<EOF
3459#ifdef __cplusplus
3460extern "C" {
3461#endif
3462char nm_test_var;
3463void nm_test_func(){}
3464#ifdef __cplusplus
3465}
3466#endif
3467int main(){nm_test_var='a';nm_test_func();return(0);}
3468EOF
3469
3470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; then
3475 # Now try to grab the symbols.
3476 nlist=conftest.nm
3477 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3478 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } && test -s "$nlist"; then
3482 # Try sorting and uniquifying the output.
3483 if sort "$nlist" | uniq > "$nlist"T; then
3484 mv -f "$nlist"T "$nlist"
3485 else
3486 rm -f "$nlist"T
3487 fi
3488
3489 # Make sure that we snagged all the symbols we need.
3490 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3491 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3492 cat <<EOF > conftest.$ac_ext
3493#ifdef __cplusplus
3494extern "C" {
3495#endif
3496
3497EOF
3498 # Now generate the symbol file.
3499 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3500
3501 cat <<EOF >> conftest.$ac_ext
3502#if defined (__STDC__) && __STDC__
3503# define lt_ptr void *
3504#else
3505# define lt_ptr char *
3506# define const
3507#endif
3508
3509/* The mapping between symbol names and symbols. */
3510const struct {
3511 const char *name;
3512 lt_ptr address;
3513}
3514lt_preloaded_symbols[] =
3515{
3516EOF
3517 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3518 cat <<\EOF >> conftest.$ac_ext
3519 {0, (lt_ptr) 0}
3520};
3521
3522#ifdef __cplusplus
3523}
3524#endif
3525EOF
3526 # Now try linking the two files.
3527 mv conftest.$ac_objext conftstm.$ac_objext
3528 save_LIBS="$LIBS"
3529 save_CFLAGS="$CFLAGS"
3530 LIBS="conftstm.$ac_objext"
3531 CFLAGS="$CFLAGS$no_builtin_flag"
3532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3533 (eval $ac_link) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } && test -s conftest; then
3537 pipe_works=yes
3538 fi
3539 LIBS="$save_LIBS"
3540 CFLAGS="$save_CFLAGS"
3541 else
3542 echo "cannot find nm_test_func in $nlist" >&5
3543 fi
3544 else
3545 echo "cannot find nm_test_var in $nlist" >&5
3546 fi
3547 else
3548 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3549 fi
3550 else
3551 echo "$progname: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 fi
3554 rm -f conftest* conftst*
3555
3556 # Do not use the global_symbol_pipe unless it works.
3557 if test "$pipe_works" = yes; then
3558 break
3559 else
3560 lt_cv_sys_global_symbol_pipe=
3561 fi
3562done
3563
3564fi
3565
3566global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3567if test -z "$lt_cv_sys_global_symbol_pipe"; then
3568 global_symbol_to_cdecl=
3569 global_symbol_to_c_name_address=
3570else
3571 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3572 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3573fi
3574if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3575then
3576 echo "$as_me:$LINENO: result: failed" >&5
3577echo "${ECHO_T}failed" >&6
3578else
3579 echo "$as_me:$LINENO: result: ok" >&5
3580echo "${ECHO_T}ok" >&6
3581fi
3582
3583
3584echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3585echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3586if test "${ac_cv_header_stdc+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589 cat >conftest.$ac_ext <<_ACEOF
3590#line $LINENO "configure"
3591#include "confdefs.h"
3592#include <stdlib.h>
3593#include <stdarg.h>
3594#include <string.h>
3595#include <float.h>
3596
3597_ACEOF
3598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3600 ac_status=$?
3601 egrep -v '^ *\+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
3608 else
3609 ac_cpp_err=
3610 fi
3611else
3612 ac_cpp_err=yes
3613fi
3614if test -z "$ac_cpp_err"; then
3615 ac_cv_header_stdc=yes
3616else
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3619 ac_cv_header_stdc=no
3620fi
3621rm -f conftest.err conftest.$ac_ext
3622
3623if test $ac_cv_header_stdc = yes; then
3624 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3625 cat >conftest.$ac_ext <<_ACEOF
3626#line $LINENO "configure"
3627#include "confdefs.h"
3628#include <string.h>
3629
3630_ACEOF
3631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "memchr" >/dev/null 2>&1; then
3633 :
3634else
3635 ac_cv_header_stdc=no
3636fi
3637rm -f conftest*
3638
3639fi
3640
3641if test $ac_cv_header_stdc = yes; then
3642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3643 cat >conftest.$ac_ext <<_ACEOF
3644#line $LINENO "configure"
3645#include "confdefs.h"
3646#include <stdlib.h>
3647
3648_ACEOF
3649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "free" >/dev/null 2>&1; then
3651 :
3652else
3653 ac_cv_header_stdc=no
3654fi
3655rm -f conftest*
3656
3657fi
3658
3659if test $ac_cv_header_stdc = yes; then
3660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3661 if test "$cross_compiling" = yes; then
3662 :
3663else
3664 cat >conftest.$ac_ext <<_ACEOF
3665#line $LINENO "configure"
3666#include "confdefs.h"
3667#include <ctype.h>
3668#if ((' ' & 0x0FF) == 0x020)
3669# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3670# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3671#else
3672# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3673 || ('j' <= (c) && (c) <= 'r') \
3674 || ('s' <= (c) && (c) <= 'z'))
3675# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3676#endif
3677
3678#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3679int
3680main ()
3681{
3682 int i;
3683 for (i = 0; i < 256; i++)
3684 if (XOR (islower (i), ISLOWER (i))
3685 || toupper (i) != TOUPPER (i))
3686 exit(2);
3687 exit (0);
3688}
3689_ACEOF
3690rm -f conftest$ac_exeext
3691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692 (eval $ac_link) 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 :
3702else
3703 echo "$as_me: program exited with status $ac_status" >&5
3704echo "$as_me: failed program was:" >&5
3705cat conftest.$ac_ext >&5
3706( exit $ac_status )
3707ac_cv_header_stdc=no
3708fi
3709rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3710fi
3711fi
3712fi
3713echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3714echo "${ECHO_T}$ac_cv_header_stdc" >&6
3715if test $ac_cv_header_stdc = yes; then
3716
3717cat >>confdefs.h <<\_ACEOF
3718#define STDC_HEADERS 1
3719_ACEOF
3720
3721fi
3722
3723# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3734 inttypes.h stdint.h unistd.h
3735do
3736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3737echo "$as_me:$LINENO: checking for $ac_header" >&5
3738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3739if eval "test \"\${$as_ac_Header+set}\" = set"; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 cat >conftest.$ac_ext <<_ACEOF
3743#line $LINENO "configure"
3744#include "confdefs.h"
3745$ac_includes_default
3746
3747#include <$ac_header>
3748_ACEOF
3749rm -f conftest.$ac_objext
3750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3752 ac_status=$?
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -s conftest.$ac_objext'
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 eval "$as_ac_Header=yes"
3762else
3763 echo "$as_me: failed program was:" >&5
3764cat conftest.$ac_ext >&5
3765eval "$as_ac_Header=no"
3766fi
3767rm -f conftest.$ac_objext conftest.$ac_ext
3768fi
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771if test `eval echo '${'$as_ac_Header'}'` = yes; then
3772 cat >>confdefs.h <<_ACEOF
3773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3774_ACEOF
3775
3776fi
3777
3778done
3779
3780
3781
3782for ac_header in dlfcn.h
3783do
3784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3785if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo "$as_me:$LINENO: checking for $ac_header" >&5
3787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3788if eval "test \"\${$as_ac_Header+set}\" = set"; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790fi
3791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3793else
3794 # Is the header compilable?
3795echo "$as_me:$LINENO: checking $ac_header usability" >&5
3796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3797cat >conftest.$ac_ext <<_ACEOF
3798#line $LINENO "configure"
3799#include "confdefs.h"
3800$ac_includes_default
3801#include <$ac_header>
3802_ACEOF
3803rm -f conftest.$ac_objext
3804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3806 ac_status=$?
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 (eval $ac_try) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 ac_header_compiler=yes
3816else
3817 echo "$as_me: failed program was:" >&5
3818cat conftest.$ac_ext >&5
3819ac_header_compiler=no
3820fi
3821rm -f conftest.$ac_objext conftest.$ac_ext
3822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3823echo "${ECHO_T}$ac_header_compiler" >&6
3824
3825# Is the header present?
3826echo "$as_me:$LINENO: checking $ac_header presence" >&5
3827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3828cat >conftest.$ac_ext <<_ACEOF
3829#line $LINENO "configure"
3830#include "confdefs.h"
3831#include <$ac_header>
3832_ACEOF
3833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3835 ac_status=$?
3836 egrep -v '^ *\+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null; then
3841 if test -s conftest.err; then
3842 ac_cpp_err=$ac_c_preproc_warn_flag
3843 else
3844 ac_cpp_err=
3845 fi
3846else
3847 ac_cpp_err=yes
3848fi
3849if test -z "$ac_cpp_err"; then
3850 ac_header_preproc=yes
3851else
3852 echo "$as_me: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 ac_header_preproc=no
3855fi
3856rm -f conftest.err conftest.$ac_ext
3857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3858echo "${ECHO_T}$ac_header_preproc" >&6
3859
3860# So? What about this header?
3861case $ac_header_compiler:$ac_header_preproc in
3862 yes:no )
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3867 no:yes )
3868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3871echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3874esac
3875echo "$as_me:$LINENO: checking for $ac_header" >&5
3876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 eval "$as_ac_Header=$ac_header_preproc"
3881fi
3882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884
3885fi
3886if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3889_ACEOF
3890
3891fi
3892
3893done
3894
3895
3896
3897
3898
3899# Only perform the check for file, if the check method requires it
3900case $deplibs_check_method in
3901file_magic*)
3902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3903 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3904echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3905if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 case $MAGIC_CMD in
3909 /*)
3910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3911 ;;
3912 ?:/*)
3913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3914 ;;
3915 *)
3916 ac_save_MAGIC_CMD="$MAGIC_CMD"
3917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3918 ac_dummy="/usr/bin:$PATH"
3919 for ac_dir in $ac_dummy; do
3920 test -z "$ac_dir" && ac_dir=.
3921 if test -f $ac_dir/${ac_tool_prefix}file; then
3922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3923 if test -n "$file_magic_test_file"; then
3924 case $deplibs_check_method in
3925 "file_magic "*)
3926 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3929 egrep "$file_magic_regex" > /dev/null; then
3930 :
3931 else
3932 cat <<EOF 1>&2
3933
3934*** Warning: the command libtool uses to detect shared libraries,
3935*** $file_magic_cmd, produces output that libtool cannot recognize.
3936*** The result is that libtool may fail to recognize shared libraries
3937*** as such. This will affect the creation of libtool libraries that
3938*** depend on shared libraries, but programs linked with such libtool
3939*** libraries will work regardless of this problem. Nevertheless, you
3940*** may want to report the problem to your system manager and/or to
3941*** bug-libtool@gnu.org
3942
3943EOF
3944 fi ;;
3945 esac
3946 fi
3947 break
3948 fi
3949 done
3950 IFS="$ac_save_ifs"
3951 MAGIC_CMD="$ac_save_MAGIC_CMD"
3952 ;;
3953esac
3954fi
3955
3956MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957if test -n "$MAGIC_CMD"; then
3958 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3959echo "${ECHO_T}$MAGIC_CMD" >&6
3960else
3961 echo "$as_me:$LINENO: result: no" >&5
3962echo "${ECHO_T}no" >&6
3963fi
3964
3965if test -z "$lt_cv_path_MAGIC_CMD"; then
3966 if test -n "$ac_tool_prefix"; then
3967 echo "$as_me:$LINENO: checking for file" >&5
3968echo $ECHO_N "checking for file... $ECHO_C" >&6
3969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 case $MAGIC_CMD in
3973 /*)
3974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3975 ;;
3976 ?:/*)
3977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3978 ;;
3979 *)
3980 ac_save_MAGIC_CMD="$MAGIC_CMD"
3981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3982 ac_dummy="/usr/bin:$PATH"
3983 for ac_dir in $ac_dummy; do
3984 test -z "$ac_dir" && ac_dir=.
3985 if test -f $ac_dir/file; then
3986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3987 if test -n "$file_magic_test_file"; then
3988 case $deplibs_check_method in
3989 "file_magic "*)
3990 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3993 egrep "$file_magic_regex" > /dev/null; then
3994 :
3995 else
3996 cat <<EOF 1>&2
3997
3998*** Warning: the command libtool uses to detect shared libraries,
3999*** $file_magic_cmd, produces output that libtool cannot recognize.
4000*** The result is that libtool may fail to recognize shared libraries
4001*** as such. This will affect the creation of libtool libraries that
4002*** depend on shared libraries, but programs linked with such libtool
4003*** libraries will work regardless of this problem. Nevertheless, you
4004*** may want to report the problem to your system manager and/or to
4005*** bug-libtool@gnu.org
4006
4007EOF
4008 fi ;;
4009 esac
4010 fi
4011 break
4012 fi
4013 done
4014 IFS="$ac_save_ifs"
4015 MAGIC_CMD="$ac_save_MAGIC_CMD"
4016 ;;
4017esac
4018fi
4019
4020MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4021if test -n "$MAGIC_CMD"; then
4022 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4023echo "${ECHO_T}$MAGIC_CMD" >&6
4024else
4025 echo "$as_me:$LINENO: result: no" >&5
4026echo "${ECHO_T}no" >&6
4027fi
4028
4029 else
4030 MAGIC_CMD=:
4031 fi
4032fi
4033
4034 fi
4035 ;;
4036esac
4037
4038if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4040set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4041echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043if test "${ac_cv_prog_RANLIB+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 if test -n "$RANLIB"; then
4047 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060done
4061done
4062
4063fi
4064fi
4065RANLIB=$ac_cv_prog_RANLIB
4066if test -n "$RANLIB"; then
4067 echo "$as_me:$LINENO: result: $RANLIB" >&5
4068echo "${ECHO_T}$RANLIB" >&6
4069else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072fi
4073
4074fi
4075if test -z "$ac_cv_prog_RANLIB"; then
4076 ac_ct_RANLIB=$RANLIB
4077 # Extract the first word of "ranlib", so it can be a program name with args.
4078set dummy ranlib; ac_word=$2
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 if test -n "$ac_ct_RANLIB"; then
4085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_ac_ct_RANLIB="ranlib"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099done
4100
4101 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4102fi
4103fi
4104ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4105if test -n "$ac_ct_RANLIB"; then
4106 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4107echo "${ECHO_T}$ac_ct_RANLIB" >&6
4108else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111fi
4112
4113 RANLIB=$ac_ct_RANLIB
4114else
4115 RANLIB="$ac_cv_prog_RANLIB"
4116fi
4117
4118if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4120set dummy ${ac_tool_prefix}strip; ac_word=$2
4121echo "$as_me:$LINENO: checking for $ac_word" >&5
4122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123if test "${ac_cv_prog_STRIP+set}" = set; then
4124 echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126 if test -n "$STRIP"; then
4127 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4128else
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4139 fi
4140done
4141done
4142
4143fi
4144fi
4145STRIP=$ac_cv_prog_STRIP
4146if test -n "$STRIP"; then
4147 echo "$as_me:$LINENO: result: $STRIP" >&5
4148echo "${ECHO_T}$STRIP" >&6
4149else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152fi
4153
4154fi
4155if test -z "$ac_cv_prog_STRIP"; then
4156 ac_ct_STRIP=$STRIP
4157 # Extract the first word of "strip", so it can be a program name with args.
4158set dummy strip; ac_word=$2
4159echo "$as_me:$LINENO: checking for $ac_word" >&5
4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 if test -n "$ac_ct_STRIP"; then
4165 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4166else
4167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168for as_dir in $PATH
4169do
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_STRIP="strip"
4175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4177 fi
4178done
4179done
4180
4181 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4182fi
4183fi
4184ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4185if test -n "$ac_ct_STRIP"; then
4186 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4187echo "${ECHO_T}$ac_ct_STRIP" >&6
4188else
4189 echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191fi
4192
4193 STRIP=$ac_ct_STRIP
4194else
4195 STRIP="$ac_cv_prog_STRIP"
4196fi
4197
4198
4199enable_dlopen=no
4200enable_win32_dll=no
4201
jjako52c24142002-12-16 13:33:51 +00004202# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4203if test "${enable_libtool_lock+set}" = set; then
4204 enableval="$enable_libtool_lock"
jjako52c24142002-12-16 13:33:51 +00004205
jjako286bc982003-01-28 23:17:50 +00004206fi;
4207test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
jjako52c24142002-12-16 13:33:51 +00004208
4209# Some flags need to be propagated to the compiler or linker for good
4210# libtool support.
jjako286bc982003-01-28 23:17:50 +00004211case $host in
jjako52c24142002-12-16 13:33:51 +00004212*-*-irix6*)
4213 # Find out which ABI we are using.
jjako286bc982003-01-28 23:17:50 +00004214 echo '#line 4214 "configure"' > conftest.$ac_ext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; then
4220 case `/usr/bin/file conftest.$ac_objext` in
jjako52c24142002-12-16 13:33:51 +00004221 *32-bit*)
4222 LD="${LD-ld} -32"
4223 ;;
4224 *N32*)
4225 LD="${LD-ld} -n32"
4226 ;;
4227 *64-bit*)
4228 LD="${LD-ld} -64"
4229 ;;
4230 esac
4231 fi
4232 rm -rf conftest*
4233 ;;
4234
4235*-*-sco3.2v5*)
4236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4237 SAVE_CFLAGS="$CFLAGS"
4238 CFLAGS="$CFLAGS -belf"
jjako286bc982003-01-28 23:17:50 +00004239 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4240echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4241if test "${lt_cv_cc_needs_belf+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004243else
jjako286bc982003-01-28 23:17:50 +00004244
4245
4246 ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252 cat >conftest.$ac_ext <<_ACEOF
4253#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00004254#include "confdefs.h"
4255
jjako286bc982003-01-28 23:17:50 +00004256#ifdef F77_DUMMY_MAIN
4257# ifdef __cplusplus
4258 extern "C"
4259# endif
4260 int F77_DUMMY_MAIN() { return 1; }
4261#endif
4262int
4263main ()
4264{
jjako52c24142002-12-16 13:33:51 +00004265
jjako286bc982003-01-28 23:17:50 +00004266 ;
4267 return 0;
4268}
4269_ACEOF
4270rm -f conftest.$ac_objext conftest$ac_exeext
4271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest$ac_exeext'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00004282 lt_cv_cc_needs_belf=yes
4283else
jjako286bc982003-01-28 23:17:50 +00004284 echo "$as_me: failed program was:" >&5
4285cat conftest.$ac_ext >&5
4286lt_cv_cc_needs_belf=no
jjako52c24142002-12-16 13:33:51 +00004287fi
jjako286bc982003-01-28 23:17:50 +00004288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4289 ac_ext=c
4290ac_cpp='$CPP $CPPFLAGS'
4291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00004294
jjako286bc982003-01-28 23:17:50 +00004295fi
4296echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4297echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
jjako52c24142002-12-16 13:33:51 +00004298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4300 CFLAGS="$SAVE_CFLAGS"
4301 fi
4302 ;;
4303
4304
4305esac
4306
jjako286bc982003-01-28 23:17:50 +00004307# Sed substitution that helps us do robust quoting. It backslashifies
4308# metacharacters that are still active within double-quoted strings.
4309Xsed='sed -e s/^X//'
4310sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
jjako52c24142002-12-16 13:33:51 +00004311
jjako286bc982003-01-28 23:17:50 +00004312# Same as above, but do not quote variable references.
4313double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4314
4315# Sed substitution to delay expansion of an escaped shell variable in a
4316# double_quote_subst'ed string.
4317delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4318
4319# Constants:
4320rm="rm -f"
4321
4322# Global variables:
4323default_ofile=libtool
4324can_build_shared=yes
4325
4326# All known linkers require a `.a' archive for static linking (except M$VC,
4327# which needs '.lib').
4328libext=a
4329ltmain="$ac_aux_dir/ltmain.sh"
4330ofile="$default_ofile"
4331with_gnu_ld="$lt_cv_prog_gnu_ld"
4332need_locks="$enable_libtool_lock"
4333
4334old_CC="$CC"
4335old_CFLAGS="$CFLAGS"
4336
4337# Set sane defaults for various variables
4338test -z "$AR" && AR=ar
4339test -z "$AR_FLAGS" && AR_FLAGS=cru
4340test -z "$AS" && AS=as
4341test -z "$CC" && CC=cc
4342test -z "$DLLTOOL" && DLLTOOL=dlltool
4343test -z "$LD" && LD=ld
4344test -z "$LN_S" && LN_S="ln -s"
4345test -z "$MAGIC_CMD" && MAGIC_CMD=file
4346test -z "$NM" && NM=nm
4347test -z "$OBJDUMP" && OBJDUMP=objdump
4348test -z "$RANLIB" && RANLIB=:
4349test -z "$STRIP" && STRIP=:
4350test -z "$ac_objext" && ac_objext=o
4351
4352if test x"$host" != x"$build"; then
4353 ac_tool_prefix=${host_alias}-
4354else
4355 ac_tool_prefix=
4356fi
4357
4358# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4359case $host_os in
4360linux-gnu*) ;;
4361linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4362esac
4363
4364case $host_os in
4365aix3*)
4366 # AIX sometimes has problems with the GCC collect2 program. For some
4367 # reason, if we set the COLLECT_NAMES environment variable, the problems
4368 # vanish in a puff of smoke.
4369 if test "X${COLLECT_NAMES+set}" != Xset; then
4370 COLLECT_NAMES=
4371 export COLLECT_NAMES
4372 fi
4373 ;;
4374esac
4375
4376# Determine commands to create old-style static archives.
4377old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4378old_postinstall_cmds='chmod 644 $oldlib'
4379old_postuninstall_cmds=
4380
4381if test -n "$RANLIB"; then
4382 case $host_os in
4383 openbsd*)
4384 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004385 ;;
4386 *)
jjako286bc982003-01-28 23:17:50 +00004387 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004388 ;;
jjako286bc982003-01-28 23:17:50 +00004389 esac
4390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4391fi
4392
4393# Allow CC to be a program name with arguments.
4394set dummy $CC
4395compiler="$2"
4396
4397echo "$as_me:$LINENO: checking for objdir" >&5
4398echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4399rm -f .libs 2>/dev/null
4400mkdir .libs 2>/dev/null
4401if test -d .libs; then
4402 objdir=.libs
jjako52c24142002-12-16 13:33:51 +00004403else
jjako286bc982003-01-28 23:17:50 +00004404 # MS-DOS does not allow filenames that begin with a dot.
4405 objdir=_libs
4406fi
4407rmdir .libs 2>/dev/null
4408echo "$as_me:$LINENO: result: $objdir" >&5
4409echo "${ECHO_T}$objdir" >&6
4410
4411
4412
4413# Check whether --with-pic or --without-pic was given.
4414if test "${with_pic+set}" = set; then
4415 withval="$with_pic"
4416 pic_mode="$withval"
4417else
4418 pic_mode=default
4419fi;
4420test -z "$pic_mode" && pic_mode=default
4421
4422# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4423# in isolation, and that seeing it set (from the cache) indicates that
4424# the associated values are set (in the cache) correctly too.
4425echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4426echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4427if test "${lt_cv_prog_cc_pic+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 lt_cv_prog_cc_pic=
4431 lt_cv_prog_cc_shlib=
4432 lt_cv_prog_cc_wl=
4433 lt_cv_prog_cc_static=
4434 lt_cv_prog_cc_no_builtin=
4435 lt_cv_prog_cc_can_build_shared=$can_build_shared
4436
4437 if test "$GCC" = yes; then
4438 lt_cv_prog_cc_wl='-Wl,'
4439 lt_cv_prog_cc_static='-static'
4440
4441 case $host_os in
4442 aix*)
4443 # Below there is a dirty hack to force normal static linking with -ldl
4444 # The problem is because libdl dynamically linked with both libc and
4445 # libC (AIX C++ library), which obviously doesn't included in libraries
4446 # list by gcc. This cause undefined symbols with -static flags.
4447 # This hack allows C programs to be linked with "-static -ldl", but
4448 # not sure about C++ programs.
4449 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4450 ;;
4451 amigaos*)
4452 # FIXME: we need at least 68020 code to build shared libraries, but
4453 # adding the `-m68020' flag to GCC prevents building anything better,
4454 # like `-m68040'.
4455 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4456 ;;
4457 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4458 # PIC is the default for these OSes.
4459 ;;
4460 darwin* | rhapsody*)
4461 # PIC is the default on this platform
4462 # Common symbols not allowed in MH_DYLIB files
4463 lt_cv_prog_cc_pic='-fno-common'
4464 ;;
4465 cygwin* | mingw* | pw32* | os2*)
4466 # This hack is so that the source file can tell whether it is being
4467 # built for inclusion in a dll (and should export symbols for example).
4468 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4469 ;;
4470 sysv4*MP*)
4471 if test -d /usr/nec; then
4472 lt_cv_prog_cc_pic=-Kconform_pic
4473 fi
4474 ;;
4475 *)
4476 lt_cv_prog_cc_pic='-fPIC'
4477 ;;
4478 esac
jjako52c24142002-12-16 13:33:51 +00004479 else
jjako286bc982003-01-28 23:17:50 +00004480 # PORTME Check for PIC flags for the system compiler.
4481 case $host_os in
4482 aix3* | aix4* | aix5*)
4483 lt_cv_prog_cc_wl='-Wl,'
4484 # All AIX code is PIC.
4485 if test "$host_cpu" = ia64; then
4486 # AIX 5 now supports IA64 processor
4487 lt_cv_prog_cc_static='-Bstatic'
4488 else
4489 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4490 fi
4491 ;;
4492
4493 hpux9* | hpux10* | hpux11*)
4494 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4495 lt_cv_prog_cc_wl='-Wl,'
4496 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4497 lt_cv_prog_cc_pic='+Z'
4498 ;;
4499
4500 irix5* | irix6*)
4501 lt_cv_prog_cc_wl='-Wl,'
4502 lt_cv_prog_cc_static='-non_shared'
4503 # PIC (with -KPIC) is the default.
4504 ;;
4505
4506 cygwin* | mingw* | pw32* | os2*)
4507 # This hack is so that the source file can tell whether it is being
4508 # built for inclusion in a dll (and should export symbols for example).
4509 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4510 ;;
4511
4512 newsos6)
4513 lt_cv_prog_cc_pic='-KPIC'
4514 lt_cv_prog_cc_static='-Bstatic'
4515 ;;
4516
4517 osf3* | osf4* | osf5*)
4518 # All OSF/1 code is PIC.
4519 lt_cv_prog_cc_wl='-Wl,'
4520 lt_cv_prog_cc_static='-non_shared'
4521 ;;
4522
4523 sco3.2v5*)
4524 lt_cv_prog_cc_pic='-Kpic'
4525 lt_cv_prog_cc_static='-dn'
4526 lt_cv_prog_cc_shlib='-belf'
4527 ;;
4528
4529 solaris*)
4530 lt_cv_prog_cc_pic='-KPIC'
4531 lt_cv_prog_cc_static='-Bstatic'
4532 lt_cv_prog_cc_wl='-Wl,'
4533 ;;
4534
4535 sunos4*)
4536 lt_cv_prog_cc_pic='-PIC'
4537 lt_cv_prog_cc_static='-Bstatic'
4538 lt_cv_prog_cc_wl='-Qoption ld '
4539 ;;
4540
4541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4542 lt_cv_prog_cc_pic='-KPIC'
4543 lt_cv_prog_cc_static='-Bstatic'
4544 if test "x$host_vendor" = xsni; then
4545 lt_cv_prog_cc_wl='-LD'
4546 else
4547 lt_cv_prog_cc_wl='-Wl,'
4548 fi
4549 ;;
4550
4551 uts4*)
4552 lt_cv_prog_cc_pic='-pic'
4553 lt_cv_prog_cc_static='-Bstatic'
4554 ;;
4555
4556 sysv4*MP*)
4557 if test -d /usr/nec ;then
4558 lt_cv_prog_cc_pic='-Kconform_pic'
4559 lt_cv_prog_cc_static='-Bstatic'
4560 fi
4561 ;;
4562
4563 *)
4564 lt_cv_prog_cc_can_build_shared=no
4565 ;;
4566 esac
4567 fi
4568
4569fi
4570
4571if test -z "$lt_cv_prog_cc_pic"; then
4572 echo "$as_me:$LINENO: result: none" >&5
4573echo "${ECHO_T}none" >&6
4574else
4575 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4576echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4577
4578 # Check to make sure the pic_flag actually works.
4579 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4580echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4581 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 save_CFLAGS="$CFLAGS"
4585 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4586 cat >conftest.$ac_ext <<_ACEOF
4587#line $LINENO "configure"
4588#include "confdefs.h"
4589
4590#ifdef F77_DUMMY_MAIN
4591# ifdef __cplusplus
4592 extern "C"
4593# endif
4594 int F77_DUMMY_MAIN() { return 1; }
4595#endif
4596int
4597main ()
4598{
4599
4600 ;
4601 return 0;
4602}
4603_ACEOF
4604rm -f conftest.$ac_objext
4605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 case $host_os in
4617 hpux9* | hpux10* | hpux11*)
4618 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4619 # they create non-PIC objects. So, if there were any warnings, we
4620 # assume that PIC is not supported.
4621 if test -s conftest.err; then
4622 lt_cv_prog_cc_pic_works=no
4623 else
4624 lt_cv_prog_cc_pic_works=yes
4625 fi
4626 ;;
4627 *)
4628 lt_cv_prog_cc_pic_works=yes
4629 ;;
4630 esac
4631
4632else
4633 echo "$as_me: failed program was:" >&5
4634cat conftest.$ac_ext >&5
4635 lt_cv_prog_cc_pic_works=no
4636
4637fi
4638rm -f conftest.$ac_objext conftest.$ac_ext
4639 CFLAGS="$save_CFLAGS"
4640
4641fi
4642
4643
4644 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4645 lt_cv_prog_cc_pic=
4646 lt_cv_prog_cc_can_build_shared=no
4647 else
4648 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4649 fi
4650
4651 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4652echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4653fi
4654
4655# Check for any special shared library compilation flags.
4656if test -n "$lt_cv_prog_cc_shlib"; then
4657 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4658echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4659 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4660 else
4661 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4662echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4663 lt_cv_prog_cc_can_build_shared=no
jjako52c24142002-12-16 13:33:51 +00004664 fi
4665fi
jjako52c24142002-12-16 13:33:51 +00004666
jjako286bc982003-01-28 23:17:50 +00004667echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4668echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4669if test "${lt_cv_prog_cc_static_works+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004671else
jjako286bc982003-01-28 23:17:50 +00004672 lt_cv_prog_cc_static_works=no
4673 save_LDFLAGS="$LDFLAGS"
4674 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4675 cat >conftest.$ac_ext <<_ACEOF
4676#line $LINENO "configure"
4677#include "confdefs.h"
4678
4679#ifdef F77_DUMMY_MAIN
4680# ifdef __cplusplus
4681 extern "C"
4682# endif
4683 int F77_DUMMY_MAIN() { return 1; }
4684#endif
4685int
4686main ()
4687{
4688
4689 ;
4690 return 0;
4691}
4692_ACEOF
4693rm -f conftest.$ac_objext conftest$ac_exeext
4694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -s conftest$ac_exeext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 lt_cv_prog_cc_static_works=yes
4706else
4707 echo "$as_me: failed program was:" >&5
4708cat conftest.$ac_ext >&5
jjako52c24142002-12-16 13:33:51 +00004709fi
jjako286bc982003-01-28 23:17:50 +00004710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4711 LDFLAGS="$save_LDFLAGS"
4712
4713fi
4714
4715
4716# Belt *and* braces to stop my trousers falling down:
4717test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4718echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4719echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4720
4721pic_flag="$lt_cv_prog_cc_pic"
4722special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4723wl="$lt_cv_prog_cc_wl"
4724link_static_flag="$lt_cv_prog_cc_static"
4725no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4726can_build_shared="$lt_cv_prog_cc_can_build_shared"
4727
4728
4729# Check to see if options -o and -c are simultaneously supported by compiler
4730echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4731echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4732if test "${lt_cv_compiler_c_o+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735
4736$rm -r conftest 2>/dev/null
4737mkdir conftest
4738cd conftest
4739echo "int some_variable = 0;" > conftest.$ac_ext
4740mkdir out
4741# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4742# that will create temporary files in the current directory regardless of
4743# the output directory. Thus, making CWD read-only will cause this test
4744# to fail, enabling locking or at least warning the user not to do parallel
4745# builds.
4746chmod -w .
4747save_CFLAGS="$CFLAGS"
4748CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4749compiler_c_o=no
4750if { (eval echo configure:4750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4751 # The compiler can only warn and ignore the option if not recognized
4752 # So say no if there are warnings
4753 if test -s out/conftest.err; then
4754 lt_cv_compiler_c_o=no
4755 else
4756 lt_cv_compiler_c_o=yes
4757 fi
4758else
4759 # Append any errors to the config.log.
4760 cat out/conftest.err 1>&5
4761 lt_cv_compiler_c_o=no
4762fi
4763CFLAGS="$save_CFLAGS"
4764chmod u+w .
4765$rm conftest* out/*
4766rmdir out
4767cd ..
4768rmdir conftest
4769$rm -r conftest 2>/dev/null
4770
4771fi
4772
4773compiler_c_o=$lt_cv_compiler_c_o
4774echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4775echo "${ECHO_T}$compiler_c_o" >&6
4776
4777if test x"$compiler_c_o" = x"yes"; then
4778 # Check to see if we can write to a .lo
4779 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4780echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4781 if test "${lt_cv_compiler_o_lo+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784
4785 lt_cv_compiler_o_lo=no
4786 save_CFLAGS="$CFLAGS"
4787 CFLAGS="$CFLAGS -c -o conftest.lo"
4788 save_objext="$ac_objext"
4789 ac_objext=lo
4790 cat >conftest.$ac_ext <<_ACEOF
4791#line $LINENO "configure"
4792#include "confdefs.h"
4793
4794#ifdef F77_DUMMY_MAIN
4795# ifdef __cplusplus
4796 extern "C"
4797# endif
4798 int F77_DUMMY_MAIN() { return 1; }
4799#endif
4800int
4801main ()
4802{
4803int some_variable = 0;
4804 ;
4805 return 0;
4806}
4807_ACEOF
4808rm -f conftest.$ac_objext
4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest.$ac_objext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 # The compiler can only warn and ignore the option if not recognized
4821 # So say no if there are warnings
4822 if test -s conftest.err; then
4823 lt_cv_compiler_o_lo=no
4824 else
4825 lt_cv_compiler_o_lo=yes
4826 fi
4827
4828else
4829 echo "$as_me: failed program was:" >&5
4830cat conftest.$ac_ext >&5
4831fi
4832rm -f conftest.$ac_objext conftest.$ac_ext
4833 ac_objext="$save_objext"
4834 CFLAGS="$save_CFLAGS"
4835
4836fi
4837
4838 compiler_o_lo=$lt_cv_compiler_o_lo
4839 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4840echo "${ECHO_T}$compiler_o_lo" >&6
4841else
4842 compiler_o_lo=no
4843fi
4844
4845# Check to see if we can do hard links to lock some files if needed
4846hard_links="nottested"
4847if test "$compiler_c_o" = no && test "$need_locks" != no; then
4848 # do not overwrite the value of need_locks provided by the user
4849 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4850echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4851 hard_links=yes
4852 $rm conftest*
4853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4854 touch conftest.a
4855 ln conftest.a conftest.b 2>&5 || hard_links=no
4856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4857 echo "$as_me:$LINENO: result: $hard_links" >&5
4858echo "${ECHO_T}$hard_links" >&6
4859 if test "$hard_links" = no; then
4860 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4861echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4862 need_locks=warn
4863 fi
4864else
4865 need_locks=no
4866fi
4867
4868if test "$GCC" = yes; then
4869 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4870 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4871echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4872 echo "int some_variable = 0;" > conftest.$ac_ext
4873 save_CFLAGS="$CFLAGS"
4874 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4875 compiler_rtti_exceptions=no
4876 cat >conftest.$ac_ext <<_ACEOF
4877#line $LINENO "configure"
4878#include "confdefs.h"
4879
4880#ifdef F77_DUMMY_MAIN
4881# ifdef __cplusplus
4882 extern "C"
4883# endif
4884 int F77_DUMMY_MAIN() { return 1; }
4885#endif
4886int
4887main ()
4888{
4889int some_variable = 0;
4890 ;
4891 return 0;
4892}
4893_ACEOF
4894rm -f conftest.$ac_objext
4895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4896 (eval $ac_compile) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } &&
4900 { ac_try='test -s conftest.$ac_objext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 (eval $ac_try) 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 # The compiler can only warn and ignore the option if not recognized
4907 # So say no if there are warnings
4908 if test -s conftest.err; then
4909 compiler_rtti_exceptions=no
4910 else
4911 compiler_rtti_exceptions=yes
4912 fi
4913
4914else
4915 echo "$as_me: failed program was:" >&5
4916cat conftest.$ac_ext >&5
4917fi
4918rm -f conftest.$ac_objext conftest.$ac_ext
4919 CFLAGS="$save_CFLAGS"
4920 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4921echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4922
4923 if test "$compiler_rtti_exceptions" = "yes"; then
4924 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4925 else
4926 no_builtin_flag=' -fno-builtin'
4927 fi
4928fi
4929
4930# See if the linker supports building shared libraries.
4931echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4932echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4933
4934allow_undefined_flag=
4935no_undefined_flag=
4936need_lib_prefix=unknown
4937need_version=unknown
4938# when you set need_version to no, make sure it does not cause -set_version
4939# flags to be left without arguments
4940archive_cmds=
4941archive_expsym_cmds=
4942old_archive_from_new_cmds=
4943old_archive_from_expsyms_cmds=
4944export_dynamic_flag_spec=
4945whole_archive_flag_spec=
4946thread_safe_flag_spec=
4947hardcode_into_libs=no
4948hardcode_libdir_flag_spec=
4949hardcode_libdir_separator=
4950hardcode_direct=no
4951hardcode_minus_L=no
4952hardcode_shlibpath_var=unsupported
4953runpath_var=
4954link_all_deplibs=unknown
4955always_export_symbols=no
4956export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4957# include_expsyms should be a list of space-separated symbols to be *always*
4958# included in the symbol list
4959include_expsyms=
4960# exclude_expsyms can be an egrep regular expression of symbols to exclude
4961# it will be wrapped by ` (' and `)$', so one must not match beginning or
4962# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4963# as well as any symbol that contains `d'.
4964exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4965# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4966# platforms (ab)use it in PIC code, but their linkers get confused if
4967# the symbol is explicitly referenced. Since portable code cannot
4968# rely on this symbol name, it's probably fine to never include it in
4969# preloaded symbol tables.
4970extract_expsyms_cmds=
4971
4972case $host_os in
4973cygwin* | mingw* | pw32*)
4974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4975 # When not using gcc, we currently assume that we are using
4976 # Microsoft Visual C++.
4977 if test "$GCC" != yes; then
4978 with_gnu_ld=no
4979 fi
4980 ;;
4981openbsd*)
4982 with_gnu_ld=no
4983 ;;
4984esac
4985
4986ld_shlibs=yes
4987if test "$with_gnu_ld" = yes; then
4988 # If archive_cmds runs LD, not CC, wlarc should be empty
4989 wlarc='${wl}'
4990
4991 # See if GNU ld supports shared libraries.
4992 case $host_os in
4993 aix3* | aix4* | aix5*)
4994 # On AIX, the GNU linker is very broken
4995 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4996 ld_shlibs=no
4997 cat <<EOF 1>&2
4998
4999*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5000*** to be unable to reliably create shared libraries on AIX.
5001*** Therefore, libtool is disabling shared libraries support. If you
5002*** really care for shared libraries, you may want to modify your PATH
5003*** so that a non-GNU linker is found, and then restart.
5004
5005EOF
5006 ;;
5007
5008 amigaos*)
5009 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)'
5010 hardcode_libdir_flag_spec='-L$libdir'
5011 hardcode_minus_L=yes
5012
5013 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5014 # that the semantics of dynamic libraries on AmigaOS, at least up
5015 # to version 4, is to share data among multiple programs linked
5016 # with the same dynamic library. Since this doesn't match the
5017 # behavior of shared libraries on other platforms, we can use
5018 # them.
5019 ld_shlibs=no
5020 ;;
5021
5022 beos*)
5023 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5024 allow_undefined_flag=unsupported
5025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5026 # support --undefined. This deserves some investigation. FIXME
5027 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5028 else
5029 ld_shlibs=no
5030 fi
5031 ;;
5032
5033 cygwin* | mingw* | pw32*)
5034 # hardcode_libdir_flag_spec is actually meaningless, as there is
5035 # no search path for DLLs.
5036 hardcode_libdir_flag_spec='-L$libdir'
5037 allow_undefined_flag=unsupported
5038 always_export_symbols=yes
5039
5040 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5041 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5042 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5043 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5044 else $CC -o impgen impgen.c ; fi)~
5045 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5046
5047 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5048
5049 # cygwin and mingw dlls have different entry points and sets of symbols
5050 # to exclude.
5051 # FIXME: what about values for MSVC?
5052 dll_entry=__cygwin_dll_entry@12
5053 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5054 case $host_os in
5055 mingw*)
5056 # mingw values
5057 dll_entry=_DllMainCRTStartup@12
5058 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5059 ;;
5060 esac
5061
5062 # mingw and cygwin differ, and it's simplest to just exclude the union
5063 # of the two symbol sets.
5064 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5065
5066 # recent cygwin and mingw systems supply a stub DllMain which the user
5067 # can override, but on older systems we have to supply one (in ltdll.c)
5068 if test "x$lt_cv_need_dllmain" = "xyes"; then
5069 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5070 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~
5071 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5072 else
5073 ltdll_obj=
5074 ltdll_cmds=
5075 fi
5076
5077 # Extract the symbol export list from an `--export-all' def file,
5078 # then regenerate the def file from the symbol export list, so that
5079 # the compiled dll only exports the symbol export list.
5080 # Be careful not to strip the DATA tag left be newer dlltools.
5081 export_symbols_cmds="$ltdll_cmds"'
5082 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5083 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5084
5085 # If the export-symbols file already is a .def file (1st line
5086 # is EXPORTS), use it as is.
5087 # If DATA tags from a recent dlltool are present, honour them!
5088 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5089 cp $export_symbols $output_objdir/$soname-def;
5090 else
5091 echo EXPORTS > $output_objdir/$soname-def;
5092 _lt_hint=1;
5093 cat $export_symbols | while read symbol; do
5094 set dummy \$symbol;
5095 case \$# in
5096 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5097 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5098 esac;
5099 _lt_hint=`expr 1 + \$_lt_hint`;
5100 done;
5101 fi~
5102 '"$ltdll_cmds"'
5103 $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~
5104 $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~
5105 $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~
5106 $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~
5107 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5108 ;;
5109
5110 netbsd*)
5111 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5112 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5113 wlarc=
5114 else
5115 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5116 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5117 fi
5118 ;;
5119
5120 solaris* | sysv5*)
5121 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5122 ld_shlibs=no
5123 cat <<EOF 1>&2
5124
5125*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5126*** create shared libraries on Solaris systems. Therefore, libtool
5127*** is disabling shared libraries support. We urge you to upgrade GNU
5128*** binutils to release 2.9.1 or newer. Another option is to modify
5129*** your PATH or compiler configuration so that the native linker is
5130*** used, and then restart.
5131
5132EOF
5133 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5136 else
5137 ld_shlibs=no
5138 fi
5139 ;;
5140
5141 sunos4*)
5142 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5143 wlarc=
5144 hardcode_direct=yes
5145 hardcode_shlibpath_var=no
5146 ;;
5147
5148 *)
5149 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5152 else
5153 ld_shlibs=no
5154 fi
5155 ;;
5156 esac
5157
5158 if test "$ld_shlibs" = yes; then
5159 runpath_var=LD_RUN_PATH
5160 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5161 export_dynamic_flag_spec='${wl}--export-dynamic'
5162 case $host_os in
5163 cygwin* | mingw* | pw32*)
5164 # dlltool doesn't understand --whole-archive et. al.
5165 whole_archive_flag_spec=
5166 ;;
5167 *)
5168 # ancient GNU ld didn't support --whole-archive et. al.
5169 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5170 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5171 else
5172 whole_archive_flag_spec=
5173 fi
5174 ;;
5175 esac
5176 fi
5177else
5178 # PORTME fill in a description of your system's linker (not GNU ld)
5179 case $host_os in
5180 aix3*)
5181 allow_undefined_flag=unsupported
5182 always_export_symbols=yes
5183 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'
5184 # Note: this linker hardcodes the directories in LIBPATH if there
5185 # are no directories specified by -L.
5186 hardcode_minus_L=yes
5187 if test "$GCC" = yes && test -z "$link_static_flag"; then
5188 # Neither direct hardcoding nor static linking is supported with a
5189 # broken collect2.
5190 hardcode_direct=unsupported
5191 fi
5192 ;;
5193
5194 aix4* | aix5*)
5195 if test "$host_cpu" = ia64; then
5196 # On IA64, the linker does run time linking by default, so we don't
5197 # have to do anything special.
5198 aix_use_runtimelinking=no
5199 exp_sym_flag='-Bexport'
5200 no_entry_flag=""
5201 else
5202 aix_use_runtimelinking=no
5203
5204 # Test if we are trying to use run time linking or normal
5205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5206 # need to do runtime linking.
5207 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5208 for ld_flag in $LDFLAGS; do
5209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5210 aix_use_runtimelinking=yes
5211 break
5212 fi
5213 done
5214 esac
5215
5216 exp_sym_flag='-bexport'
5217 no_entry_flag='-bnoentry'
5218 fi
5219
5220 # When large executables or shared objects are built, AIX ld can
5221 # have problems creating the table of contents. If linking a library
5222 # or program results in "error TOC overflow" add -mminimal-toc to
5223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5225
5226 hardcode_direct=yes
5227 archive_cmds=''
5228 hardcode_libdir_separator=':'
5229 if test "$GCC" = yes; then
5230 case $host_os in aix4.[012]|aix4.[012].*)
5231 collect2name=`${CC} -print-prog-name=collect2`
5232 if test -f "$collect2name" && \
5233 strings "$collect2name" | grep resolve_lib_name >/dev/null
5234 then
5235 # We have reworked collect2
5236 hardcode_direct=yes
5237 else
5238 # We have old collect2
5239 hardcode_direct=unsupported
5240 # It fails to find uninstalled libraries when the uninstalled
5241 # path is not listed in the libpath. Setting hardcode_minus_L
5242 # to unsupported forces relinking
5243 hardcode_minus_L=yes
5244 hardcode_libdir_flag_spec='-L$libdir'
5245 hardcode_libdir_separator=
5246 fi
5247 esac
5248
5249 shared_flag='-shared'
5250 else
5251 # not using gcc
5252 if test "$host_cpu" = ia64; then
5253 shared_flag='${wl}-G'
5254 else
5255 if test "$aix_use_runtimelinking" = yes; then
5256 shared_flag='${wl}-G'
5257 else
5258 shared_flag='${wl}-bM:SRE'
5259 fi
5260 fi
5261 fi
5262
5263 # It seems that -bexpall can do strange things, so it is better to
5264 # generate a list of symbols to export.
5265 always_export_symbols=yes
5266 if test "$aix_use_runtimelinking" = yes; then
5267 # Warning - without using the other runtime loading flags (-brtl),
5268 # -berok will link without error, but may produce a broken library.
5269 allow_undefined_flag='-berok'
5270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5271 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5272 else
5273 if test "$host_cpu" = ia64; then
5274 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5275 allow_undefined_flag="-z nodefs"
5276 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"
5277 else
5278 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5279 # Warning - without using the other run time loading flags,
5280 # -berok will link without error, but may produce a broken library.
5281 allow_undefined_flag='${wl}-berok'
5282 # This is a bit strange, but is similar to how AIX traditionally builds
5283 # it's shared libraries.
5284 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'
5285 fi
5286 fi
5287 ;;
5288
5289 amigaos*)
5290 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)'
5291 hardcode_libdir_flag_spec='-L$libdir'
5292 hardcode_minus_L=yes
5293 # see comment about different semantics on the GNU ld section
5294 ld_shlibs=no
5295 ;;
5296
5297 cygwin* | mingw* | pw32*)
5298 # When not using gcc, we currently assume that we are using
5299 # Microsoft Visual C++.
5300 # hardcode_libdir_flag_spec is actually meaningless, as there is
5301 # no search path for DLLs.
5302 hardcode_libdir_flag_spec=' '
5303 allow_undefined_flag=unsupported
5304 # Tell ltmain to make .lib files, not .a files.
5305 libext=lib
5306 # FIXME: Setting linknames here is a bad hack.
5307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5308 # The linker will automatically build a .lib file if we build a DLL.
5309 old_archive_from_new_cmds='true'
5310 # FIXME: Should let the user specify the lib program.
5311 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5312 fix_srcfile_path='`cygpath -w "$srcfile"`'
5313 ;;
5314
5315 darwin* | rhapsody*)
5316 case "$host_os" in
5317 rhapsody* | darwin1.[012])
5318 allow_undefined_flag='-undefined suppress'
5319 ;;
5320 *) # Darwin 1.3 on
5321 allow_undefined_flag='-flat_namespace -undefined suppress'
5322 ;;
5323 esac
5324 # FIXME: Relying on posixy $() will cause problems for
5325 # cross-compilation, but unfortunately the echo tests do not
5326 # yet detect zsh echo's removal of \ escapes.
5327 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5328 # We need to add '_' to the symbols in $export_symbols first
5329 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5330 hardcode_direct=yes
5331 hardcode_shlibpath_var=no
5332 whole_archive_flag_spec='-all_load $convenience'
5333 ;;
5334
5335 freebsd1*)
5336 ld_shlibs=no
5337 ;;
5338
5339 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5340 # support. Future versions do this automatically, but an explicit c++rt0.o
5341 # does not break anything, and helps significantly (at the cost of a little
5342 # extra space).
5343 freebsd2.2*)
5344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5345 hardcode_libdir_flag_spec='-R$libdir'
5346 hardcode_direct=yes
5347 hardcode_shlibpath_var=no
5348 ;;
5349
5350 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5351 freebsd2*)
5352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5353 hardcode_direct=yes
5354 hardcode_minus_L=yes
5355 hardcode_shlibpath_var=no
5356 ;;
5357
5358 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5359 freebsd*)
5360 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5361 hardcode_libdir_flag_spec='-R$libdir'
5362 hardcode_direct=yes
5363 hardcode_shlibpath_var=no
5364 ;;
5365
5366 hpux9* | hpux10* | hpux11*)
5367 case $host_os in
5368 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' ;;
5369 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5370 esac
5371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5372 hardcode_libdir_separator=:
5373 hardcode_direct=yes
5374 hardcode_minus_L=yes # Not in the search PATH, but as the default
5375 # location of the library.
5376 export_dynamic_flag_spec='${wl}-E'
5377 ;;
5378
5379 irix5* | irix6*)
5380 if test "$GCC" = yes; then
5381 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'
5382 else
5383 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'
5384 fi
5385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5386 hardcode_libdir_separator=:
5387 link_all_deplibs=yes
5388 ;;
5389
5390 netbsd*)
5391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5393 else
5394 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5395 fi
5396 hardcode_libdir_flag_spec='-R$libdir'
5397 hardcode_direct=yes
5398 hardcode_shlibpath_var=no
5399 ;;
5400
5401 newsos6)
5402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5403 hardcode_direct=yes
5404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5405 hardcode_libdir_separator=:
5406 hardcode_shlibpath_var=no
5407 ;;
5408
5409 openbsd*)
5410 hardcode_direct=yes
5411 hardcode_shlibpath_var=no
5412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5415 export_dynamic_flag_spec='${wl}-E'
5416 else
5417 case "$host_os" in
5418 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5420 hardcode_libdir_flag_spec='-R$libdir'
5421 ;;
5422 *)
5423 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5425 ;;
5426 esac
5427 fi
5428 ;;
5429
5430 os2*)
5431 hardcode_libdir_flag_spec='-L$libdir'
5432 hardcode_minus_L=yes
5433 allow_undefined_flag=unsupported
5434 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'
5435 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5436 ;;
5437
5438 osf3*)
5439 if test "$GCC" = yes; then
5440 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5441 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'
5442 else
5443 allow_undefined_flag=' -expect_unresolved \*'
5444 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'
5445 fi
5446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5447 hardcode_libdir_separator=:
5448 ;;
5449
5450 osf4* | osf5*) # as osf3* with the addition of -msym flag
5451 if test "$GCC" = yes; then
5452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5453 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'
5454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5455 else
5456 allow_undefined_flag=' -expect_unresolved \*'
5457 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'
5458 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5459 $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'
5460
5461 #Both c and cxx compiler support -rpath directly
5462 hardcode_libdir_flag_spec='-rpath $libdir'
5463 fi
5464 hardcode_libdir_separator=:
5465 ;;
5466
5467 sco3.2v5*)
5468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5469 hardcode_shlibpath_var=no
5470 runpath_var=LD_RUN_PATH
5471 hardcode_runpath_var=yes
5472 export_dynamic_flag_spec='${wl}-Bexport'
5473 ;;
5474
5475 solaris*)
5476 # gcc --version < 3.0 without binutils cannot create self contained
5477 # shared libraries reliably, requiring libgcc.a to resolve some of
5478 # the object symbols generated in some cases. Libraries that use
5479 # assert need libgcc.a to resolve __eprintf, for example. Linking
5480 # a copy of libgcc.a into every shared library to guarantee resolving
5481 # such symbols causes other problems: According to Tim Van Holder
5482 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5483 # (to the application) exception stack for one thing.
5484 no_undefined_flag=' -z defs'
5485 if test "$GCC" = yes; then
5486 case `$CC --version 2>/dev/null` in
5487 [12].*)
5488 cat <<EOF 1>&2
5489
5490*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5491*** create self contained shared libraries on Solaris systems, without
5492*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5493*** -no-undefined support, which will at least allow you to build shared
5494*** libraries. However, you may find that when you link such libraries
5495*** into an application without using GCC, you have to manually add
5496*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5497*** upgrade to a newer version of GCC. Another option is to rebuild your
5498*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5499
5500EOF
5501 no_undefined_flag=
5502 ;;
5503 esac
5504 fi
5505 # $CC -shared without GNU ld will not create a library from C++
5506 # object files and a static libstdc++, better avoid it by now
5507 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5508 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5510 hardcode_libdir_flag_spec='-R$libdir'
5511 hardcode_shlibpath_var=no
5512 case $host_os in
5513 solaris2.[0-5] | solaris2.[0-5].*) ;;
5514 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5516 esac
5517 link_all_deplibs=yes
5518 ;;
5519
5520 sunos4*)
5521 if test "x$host_vendor" = xsequent; then
5522 # Use $CC to link under sequent, because it throws in some extra .o
5523 # files that make .init and .fini sections work.
5524 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5525 else
5526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5527 fi
5528 hardcode_libdir_flag_spec='-L$libdir'
5529 hardcode_direct=yes
5530 hardcode_minus_L=yes
5531 hardcode_shlibpath_var=no
5532 ;;
5533
5534 sysv4)
5535 if test "x$host_vendor" = xsno; then
5536 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5537 hardcode_direct=yes # is this really true???
5538 else
5539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5540 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5541 fi
5542 runpath_var='LD_RUN_PATH'
5543 hardcode_shlibpath_var=no
5544 ;;
5545
5546 sysv4.3*)
5547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5548 hardcode_shlibpath_var=no
5549 export_dynamic_flag_spec='-Bexport'
5550 ;;
5551
5552 sysv5*)
5553 no_undefined_flag=' -z text'
5554 # $CC -shared without GNU ld will not create a library from C++
5555 # object files and a static libstdc++, better avoid it by now
5556 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5557 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5559 hardcode_libdir_flag_spec=
5560 hardcode_shlibpath_var=no
5561 runpath_var='LD_RUN_PATH'
5562 ;;
5563
5564 uts4*)
5565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5566 hardcode_libdir_flag_spec='-L$libdir'
5567 hardcode_shlibpath_var=no
5568 ;;
5569
5570 dgux*)
5571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5572 hardcode_libdir_flag_spec='-L$libdir'
5573 hardcode_shlibpath_var=no
5574 ;;
5575
5576 sysv4*MP*)
5577 if test -d /usr/nec; then
5578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5579 hardcode_shlibpath_var=no
5580 runpath_var=LD_RUN_PATH
5581 hardcode_runpath_var=yes
5582 ld_shlibs=yes
5583 fi
5584 ;;
5585
5586 sysv4.2uw2*)
5587 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5588 hardcode_direct=yes
5589 hardcode_minus_L=no
5590 hardcode_shlibpath_var=no
5591 hardcode_runpath_var=yes
5592 runpath_var=LD_RUN_PATH
5593 ;;
5594
5595 sysv5uw7* | unixware7*)
5596 no_undefined_flag='${wl}-z ${wl}text'
5597 if test "$GCC" = yes; then
5598 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5599 else
5600 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5601 fi
5602 runpath_var='LD_RUN_PATH'
5603 hardcode_shlibpath_var=no
5604 ;;
5605
5606 *)
5607 ld_shlibs=no
5608 ;;
5609 esac
5610fi
5611echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5612echo "${ECHO_T}$ld_shlibs" >&6
5613test "$ld_shlibs" = no && can_build_shared=no
5614
5615# Check hardcoding attributes.
5616echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5617echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5618hardcode_action=
5619if test -n "$hardcode_libdir_flag_spec" || \
5620 test -n "$runpath_var"; then
5621
5622 # We can hardcode non-existant directories.
5623 if test "$hardcode_direct" != no &&
5624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5625 # have to relink, otherwise we might link with an installed library
5626 # when we should be linking with a yet-to-be-installed one
5627 ## test "$hardcode_shlibpath_var" != no &&
5628 test "$hardcode_minus_L" != no; then
5629 # Linking always hardcodes the temporary library directory.
5630 hardcode_action=relink
5631 else
5632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5633 hardcode_action=immediate
5634 fi
5635else
5636 # We cannot hardcode anything, or else we can only hardcode existing
5637 # directories.
5638 hardcode_action=unsupported
5639fi
5640echo "$as_me:$LINENO: result: $hardcode_action" >&5
5641echo "${ECHO_T}$hardcode_action" >&6
5642
5643striplib=
5644old_striplib=
5645echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5646echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5647if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5648 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5649 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5650 echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652else
5653 echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655fi
5656
5657reload_cmds='$LD$reload_flag -o $output$reload_objs'
5658test -z "$deplibs_check_method" && deplibs_check_method=unknown
5659
5660# PORTME Fill in your ld.so characteristics
5661echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5662echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5663library_names_spec=
5664libname_spec='lib$name'
5665soname_spec=
5666postinstall_cmds=
5667postuninstall_cmds=
5668finish_cmds=
5669finish_eval=
5670shlibpath_var=
5671shlibpath_overrides_runpath=unknown
5672version_type=none
5673dynamic_linker="$host_os ld.so"
5674sys_lib_dlsearch_path_spec="/lib /usr/lib"
5675sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5676
5677case $host_os in
5678aix3*)
5679 version_type=linux
5680 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5681 shlibpath_var=LIBPATH
5682
5683 # AIX has no versioning support, so we append a major version to the name.
5684 soname_spec='${libname}${release}.so$major'
5685 ;;
5686
5687aix4* | aix5*)
5688 version_type=linux
5689 if test "$host_cpu" = ia64; then
5690 # AIX 5 supports IA64
5691 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5692 shlibpath_var=LD_LIBRARY_PATH
5693 else
5694 # With GCC up to 2.95.x, collect2 would create an import file
5695 # for dependence libraries. The import file would start with
5696 # the line `#! .'. This would cause the generated library to
5697 # depend on `.', always an invalid library. This was fixed in
5698 # development snapshots of GCC prior to 3.0.
5699 case $host_os in
5700 aix4 | aix4.[01] | aix4.[01].*)
5701 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5702 echo ' yes '
5703 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5704 :
5705 else
5706 can_build_shared=no
5707 fi
5708 ;;
5709 esac
5710 # AIX (on Power*) has no versioning support, so currently we can
5711 # not hardcode correct soname into executable. Probably we can
5712 # add versioning support to collect2, so additional links can
5713 # be useful in future.
5714 if test "$aix_use_runtimelinking" = yes; then
5715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5716 # instead of lib<name>.a to let people know that these are not
5717 # typical AIX shared libraries.
5718 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5719 else
5720 # We preserve .a as extension for shared libraries through AIX4.2
5721 # and later when we are not doing run time linking.
5722 library_names_spec='${libname}${release}.a $libname.a'
5723 soname_spec='${libname}${release}.so$major'
5724 fi
5725 shlibpath_var=LIBPATH
5726 fi
5727 ;;
5728
5729amigaos*)
5730 library_names_spec='$libname.ixlibrary $libname.a'
5731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5732 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'
5733 ;;
5734
5735beos*)
5736 library_names_spec='${libname}.so'
5737 dynamic_linker="$host_os ld.so"
5738 shlibpath_var=LIBRARY_PATH
5739 ;;
5740
5741bsdi4*)
5742 version_type=linux
5743 need_version=no
5744 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5745 soname_spec='${libname}${release}.so$major'
5746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5747 shlibpath_var=LD_LIBRARY_PATH
5748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5750 export_dynamic_flag_spec=-rdynamic
5751 # the default ld.so.conf also contains /usr/contrib/lib and
5752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5753 # libtool to hard-code these into programs
5754 ;;
5755
5756cygwin* | mingw* | pw32*)
5757 version_type=windows
5758 need_version=no
5759 need_lib_prefix=no
5760 case $GCC,$host_os in
5761 yes,cygwin*)
5762 library_names_spec='$libname.dll.a'
5763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5764 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5765 dldir=$destdir/`dirname \$dlpath`~
5766 test -d \$dldir || mkdir -p \$dldir~
5767 $install_prog .libs/$dlname \$dldir/$dlname'
5768 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5769 dlpath=$dir/\$dldll~
5770 $rm \$dlpath'
5771 ;;
5772 yes,mingw*)
5773 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5774 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5775 ;;
5776 yes,pw32*)
5777 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5778 ;;
5779 *)
5780 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5781 ;;
5782 esac
5783 dynamic_linker='Win32 ld.exe'
5784 # FIXME: first we should search . and the directory the executable is in
5785 shlibpath_var=PATH
5786 ;;
5787
5788darwin* | rhapsody*)
5789 dynamic_linker="$host_os dyld"
5790 version_type=darwin
5791 need_lib_prefix=no
5792 need_version=no
5793 # FIXME: Relying on posixy $() will cause problems for
5794 # cross-compilation, but unfortunately the echo tests do not
5795 # yet detect zsh echo's removal of \ escapes.
5796 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)'
5797 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5798 shlibpath_overrides_runpath=yes
5799 shlibpath_var=DYLD_LIBRARY_PATH
5800 ;;
5801
5802freebsd1*)
5803 dynamic_linker=no
5804 ;;
5805
5806freebsd*)
5807 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5808 version_type=freebsd-$objformat
5809 case $version_type in
5810 freebsd-elf*)
5811 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5812 need_version=no
5813 need_lib_prefix=no
5814 ;;
5815 freebsd-*)
5816 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5817 need_version=yes
5818 ;;
5819 esac
5820 shlibpath_var=LD_LIBRARY_PATH
5821 case $host_os in
5822 freebsd2*)
5823 shlibpath_overrides_runpath=yes
5824 ;;
5825 *)
5826 shlibpath_overrides_runpath=no
5827 hardcode_into_libs=yes
5828 ;;
5829 esac
5830 ;;
5831
5832gnu*)
5833 version_type=linux
5834 need_lib_prefix=no
5835 need_version=no
5836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5837 soname_spec='${libname}${release}.so$major'
5838 shlibpath_var=LD_LIBRARY_PATH
5839 hardcode_into_libs=yes
5840 ;;
5841
5842hpux9* | hpux10* | hpux11*)
5843 # Give a soname corresponding to the major version so that dld.sl refuses to
5844 # link against other versions.
5845 dynamic_linker="$host_os dld.sl"
5846 version_type=sunos
5847 need_lib_prefix=no
5848 need_version=no
5849 shlibpath_var=SHLIB_PATH
5850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5851 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5852 soname_spec='${libname}${release}.sl$major'
5853 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5854 postinstall_cmds='chmod 555 $lib'
5855 ;;
5856
5857irix5* | irix6*)
5858 version_type=irix
5859 need_lib_prefix=no
5860 need_version=no
5861 soname_spec='${libname}${release}.so$major'
5862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5863 case $host_os in
5864 irix5*)
5865 libsuff= shlibsuff=
5866 ;;
5867 *)
5868 case $LD in # libtool.m4 will add one of these switches to LD
5869 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5870 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5871 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5872 *) libsuff= shlibsuff= libmagic=never-match;;
5873 esac
5874 ;;
5875 esac
5876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5877 shlibpath_overrides_runpath=no
5878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5880 ;;
5881
5882# No shared lib support for Linux oldld, aout, or coff.
5883linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5884 dynamic_linker=no
5885 ;;
5886
5887# This must be Linux ELF.
5888linux-gnu*)
5889 version_type=linux
5890 need_lib_prefix=no
5891 need_version=no
5892 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5893 soname_spec='${libname}${release}.so$major'
5894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5895 shlibpath_var=LD_LIBRARY_PATH
5896 shlibpath_overrides_runpath=no
5897 # This implies no fast_install, which is unacceptable.
5898 # Some rework will be needed to allow for fast_install
5899 # before this can be enabled.
5900 hardcode_into_libs=yes
5901
5902 # We used to test for /lib/ld.so.1 and disable shared libraries on
5903 # powerpc, because MkLinux only supported shared libraries with the
5904 # GNU dynamic linker. Since this was broken with cross compilers,
5905 # most powerpc-linux boxes support dynamic linking these days and
5906 # people can always --disable-shared, the test was removed, and we
5907 # assume the GNU/Linux dynamic linker is in use.
5908 dynamic_linker='GNU/Linux ld.so'
5909 ;;
5910
5911netbsd*)
5912 version_type=sunos
5913 need_lib_prefix=no
5914 need_version=no
5915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5916 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5918 dynamic_linker='NetBSD (a.out) ld.so'
5919 else
5920 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5921 soname_spec='${libname}${release}.so$major'
5922 dynamic_linker='NetBSD ld.elf_so'
5923 fi
5924 shlibpath_var=LD_LIBRARY_PATH
5925 shlibpath_overrides_runpath=yes
5926 hardcode_into_libs=yes
5927 ;;
5928
5929newsos6)
5930 version_type=linux
5931 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5932 shlibpath_var=LD_LIBRARY_PATH
5933 shlibpath_overrides_runpath=yes
5934 ;;
5935
5936openbsd*)
5937 version_type=sunos
5938 need_lib_prefix=no
5939 need_version=no
5940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5941 case "$host_os" in
5942 openbsd2.[89] | openbsd2.[89].*)
5943 shlibpath_overrides_runpath=no
5944 ;;
5945 *)
5946 shlibpath_overrides_runpath=yes
5947 ;;
5948 esac
5949 else
5950 shlibpath_overrides_runpath=yes
5951 fi
5952 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5954 shlibpath_var=LD_LIBRARY_PATH
5955 ;;
5956
5957os2*)
5958 libname_spec='$name'
5959 need_lib_prefix=no
5960 library_names_spec='$libname.dll $libname.a'
5961 dynamic_linker='OS/2 ld.exe'
5962 shlibpath_var=LIBPATH
5963 ;;
5964
5965osf3* | osf4* | osf5*)
5966 version_type=osf
5967 need_version=no
5968 soname_spec='${libname}${release}.so'
5969 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5970 shlibpath_var=LD_LIBRARY_PATH
5971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5973 ;;
5974
5975sco3.2v5*)
5976 version_type=osf
5977 soname_spec='${libname}${release}.so$major'
5978 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5979 shlibpath_var=LD_LIBRARY_PATH
5980 ;;
5981
5982solaris*)
5983 version_type=linux
5984 need_lib_prefix=no
5985 need_version=no
5986 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5987 soname_spec='${libname}${release}.so$major'
5988 shlibpath_var=LD_LIBRARY_PATH
5989 shlibpath_overrides_runpath=yes
5990 hardcode_into_libs=yes
5991 # ldd complains unless libraries are executable
5992 postinstall_cmds='chmod +x $lib'
5993 ;;
5994
5995sunos4*)
5996 version_type=sunos
5997 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5998 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5999 shlibpath_var=LD_LIBRARY_PATH
6000 shlibpath_overrides_runpath=yes
6001 if test "$with_gnu_ld" = yes; then
6002 need_lib_prefix=no
6003 fi
6004 need_version=yes
6005 ;;
6006
6007sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6008 version_type=linux
6009 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6010 soname_spec='${libname}${release}.so$major'
6011 shlibpath_var=LD_LIBRARY_PATH
6012 case $host_vendor in
6013 sni)
6014 shlibpath_overrides_runpath=no
6015 ;;
6016 motorola)
6017 need_lib_prefix=no
6018 need_version=no
6019 shlibpath_overrides_runpath=no
6020 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6021 ;;
6022 esac
6023 ;;
6024
6025uts4*)
6026 version_type=linux
6027 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6028 soname_spec='${libname}${release}.so$major'
6029 shlibpath_var=LD_LIBRARY_PATH
6030 ;;
6031
6032dgux*)
6033 version_type=linux
6034 need_lib_prefix=no
6035 need_version=no
6036 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6037 soname_spec='${libname}${release}.so$major'
6038 shlibpath_var=LD_LIBRARY_PATH
6039 ;;
6040
6041sysv4*MP*)
6042 if test -d /usr/nec ;then
6043 version_type=linux
6044 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6045 soname_spec='$libname.so.$major'
6046 shlibpath_var=LD_LIBRARY_PATH
6047 fi
6048 ;;
6049
6050*)
6051 dynamic_linker=no
6052 ;;
6053esac
6054echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6055echo "${ECHO_T}$dynamic_linker" >&6
6056test "$dynamic_linker" = no && can_build_shared=no
6057
6058# Report the final consequences.
6059echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6060echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6061echo "$as_me:$LINENO: result: $can_build_shared" >&5
6062echo "${ECHO_T}$can_build_shared" >&6
6063
6064echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6065echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6066test "$can_build_shared" = "no" && enable_shared=no
6067
6068# On AIX, shared libraries and static libraries use the same namespace, and
6069# are all built from PIC.
6070case "$host_os" in
6071aix3*)
6072 test "$enable_shared" = yes && enable_static=no
6073 if test -n "$RANLIB"; then
6074 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6075 postinstall_cmds='$RANLIB $lib'
6076 fi
6077 ;;
6078
6079aix4*)
6080 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6081 test "$enable_shared" = yes && enable_static=no
6082 fi
6083 ;;
6084esac
6085echo "$as_me:$LINENO: result: $enable_shared" >&5
6086echo "${ECHO_T}$enable_shared" >&6
6087
6088echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6089echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6090# Make sure either enable_shared or enable_static is yes.
6091test "$enable_shared" = yes || enable_static=yes
6092echo "$as_me:$LINENO: result: $enable_static" >&5
6093echo "${ECHO_T}$enable_static" >&6
6094
6095if test "$hardcode_action" = relink; then
6096 # Fast installation is not supported
6097 enable_fast_install=no
6098elif test "$shlibpath_overrides_runpath" = yes ||
6099 test "$enable_shared" = no; then
6100 # Fast installation is not necessary
6101 enable_fast_install=needless
6102fi
6103
6104variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6105if test "$GCC" = yes; then
6106 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6107fi
6108
6109if test "x$enable_dlopen" != xyes; then
6110 enable_dlopen=unknown
6111 enable_dlopen_self=unknown
6112 enable_dlopen_self_static=unknown
6113else
6114 lt_cv_dlopen=no
6115 lt_cv_dlopen_libs=
6116
6117 case $host_os in
6118 beos*)
6119 lt_cv_dlopen="load_add_on"
6120 lt_cv_dlopen_libs=
6121 lt_cv_dlopen_self=yes
6122 ;;
6123
6124 cygwin* | mingw* | pw32*)
6125 lt_cv_dlopen="LoadLibrary"
6126 lt_cv_dlopen_libs=
6127 ;;
6128
6129 *)
6130 echo "$as_me:$LINENO: checking for shl_load" >&5
6131echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6132if test "${ac_cv_func_shl_load+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 cat >conftest.$ac_ext <<_ACEOF
6136#line $LINENO "configure"
6137#include "confdefs.h"
6138/* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char shl_load (); below. */
6140#include <assert.h>
6141/* Override any gcc2 internal prototype to avoid an error. */
6142#ifdef __cplusplus
6143extern "C"
6144#endif
6145/* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147char shl_load ();
6148char (*f) ();
6149
6150#ifdef F77_DUMMY_MAIN
6151# ifdef __cplusplus
6152 extern "C"
6153# endif
6154 int F77_DUMMY_MAIN() { return 1; }
6155#endif
6156int
6157main ()
6158{
6159/* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162#if defined (__stub_shl_load) || defined (__stub___shl_load)
6163choke me
6164#else
6165f = shl_load;
6166#endif
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext conftest$ac_exeext
6173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 ac_cv_func_shl_load=yes
6185else
6186 echo "$as_me: failed program was:" >&5
6187cat conftest.$ac_ext >&5
6188ac_cv_func_shl_load=no
6189fi
6190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6191fi
6192echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6193echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6194if test $ac_cv_func_shl_load = yes; then
6195 lt_cv_dlopen="shl_load"
6196else
6197 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6198echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6199if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202 ac_check_lib_save_LIBS=$LIBS
6203LIBS="-ldld $LIBS"
6204cat >conftest.$ac_ext <<_ACEOF
6205#line $LINENO "configure"
6206#include "confdefs.h"
6207
6208/* Override any gcc2 internal prototype to avoid an error. */
6209#ifdef __cplusplus
6210extern "C"
6211#endif
6212/* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6214char shl_load ();
6215#ifdef F77_DUMMY_MAIN
6216# ifdef __cplusplus
6217 extern "C"
6218# endif
6219 int F77_DUMMY_MAIN() { return 1; }
6220#endif
6221int
6222main ()
6223{
6224shl_load ();
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext conftest$ac_exeext
6230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231 (eval $ac_link) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } &&
6235 { ac_try='test -s conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 (eval $ac_try) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_lib_dld_shl_load=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244cat conftest.$ac_ext >&5
6245ac_cv_lib_dld_shl_load=no
6246fi
6247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6248LIBS=$ac_check_lib_save_LIBS
6249fi
6250echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6251echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6252if test $ac_cv_lib_dld_shl_load = yes; then
6253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6254else
6255 echo "$as_me:$LINENO: checking for dlopen" >&5
6256echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6257if test "${ac_cv_func_dlopen+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260 cat >conftest.$ac_ext <<_ACEOF
6261#line $LINENO "configure"
6262#include "confdefs.h"
6263/* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char dlopen (); below. */
6265#include <assert.h>
6266/* Override any gcc2 internal prototype to avoid an error. */
6267#ifdef __cplusplus
6268extern "C"
6269#endif
6270/* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272char dlopen ();
6273char (*f) ();
6274
6275#ifdef F77_DUMMY_MAIN
6276# ifdef __cplusplus
6277 extern "C"
6278# endif
6279 int F77_DUMMY_MAIN() { return 1; }
6280#endif
6281int
6282main ()
6283{
6284/* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287#if defined (__stub_dlopen) || defined (__stub___dlopen)
6288choke me
6289#else
6290f = dlopen;
6291#endif
6292
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297rm -f conftest.$ac_objext conftest$ac_exeext
6298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_func_dlopen=yes
6310else
6311 echo "$as_me: failed program was:" >&5
6312cat conftest.$ac_ext >&5
6313ac_cv_func_dlopen=no
6314fi
6315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6316fi
6317echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6318echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6319if test $ac_cv_func_dlopen = yes; then
6320 lt_cv_dlopen="dlopen"
6321else
6322 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6323echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6324if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327 ac_check_lib_save_LIBS=$LIBS
6328LIBS="-ldl $LIBS"
6329cat >conftest.$ac_ext <<_ACEOF
6330#line $LINENO "configure"
6331#include "confdefs.h"
6332
6333/* Override any gcc2 internal prototype to avoid an error. */
6334#ifdef __cplusplus
6335extern "C"
6336#endif
6337/* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6339char dlopen ();
6340#ifdef F77_DUMMY_MAIN
6341# ifdef __cplusplus
6342 extern "C"
6343# endif
6344 int F77_DUMMY_MAIN() { return 1; }
6345#endif
6346int
6347main ()
6348{
6349dlopen ();
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext conftest$ac_exeext
6355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6356 (eval $ac_link) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -s conftest$ac_exeext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
6366 ac_cv_lib_dl_dlopen=yes
6367else
6368 echo "$as_me: failed program was:" >&5
6369cat conftest.$ac_ext >&5
6370ac_cv_lib_dl_dlopen=no
6371fi
6372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6373LIBS=$ac_check_lib_save_LIBS
6374fi
6375echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6376echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6377if test $ac_cv_lib_dl_dlopen = yes; then
6378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6379else
6380 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6381echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6382if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 ac_check_lib_save_LIBS=$LIBS
6386LIBS="-lsvld $LIBS"
6387cat >conftest.$ac_ext <<_ACEOF
6388#line $LINENO "configure"
6389#include "confdefs.h"
6390
6391/* Override any gcc2 internal prototype to avoid an error. */
6392#ifdef __cplusplus
6393extern "C"
6394#endif
6395/* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397char dlopen ();
6398#ifdef F77_DUMMY_MAIN
6399# ifdef __cplusplus
6400 extern "C"
6401# endif
6402 int F77_DUMMY_MAIN() { return 1; }
6403#endif
6404int
6405main ()
6406{
6407dlopen ();
6408 ;
6409 return 0;
6410}
6411_ACEOF
6412rm -f conftest.$ac_objext conftest$ac_exeext
6413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414 (eval $ac_link) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -s conftest$ac_exeext'
6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; }; then
6424 ac_cv_lib_svld_dlopen=yes
6425else
6426 echo "$as_me: failed program was:" >&5
6427cat conftest.$ac_ext >&5
6428ac_cv_lib_svld_dlopen=no
6429fi
6430rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431LIBS=$ac_check_lib_save_LIBS
6432fi
6433echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6434echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6435if test $ac_cv_lib_svld_dlopen = yes; then
6436 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6437else
6438 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6439echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6440if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 ac_check_lib_save_LIBS=$LIBS
6444LIBS="-ldld $LIBS"
6445cat >conftest.$ac_ext <<_ACEOF
6446#line $LINENO "configure"
6447#include "confdefs.h"
6448
6449/* Override any gcc2 internal prototype to avoid an error. */
6450#ifdef __cplusplus
6451extern "C"
6452#endif
6453/* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6455char dld_link ();
6456#ifdef F77_DUMMY_MAIN
6457# ifdef __cplusplus
6458 extern "C"
6459# endif
6460 int F77_DUMMY_MAIN() { return 1; }
6461#endif
6462int
6463main ()
6464{
6465dld_link ();
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_lib_dld_dld_link=yes
6483else
6484 echo "$as_me: failed program was:" >&5
6485cat conftest.$ac_ext >&5
6486ac_cv_lib_dld_dld_link=no
6487fi
6488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489LIBS=$ac_check_lib_save_LIBS
6490fi
6491echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6492echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6493if test $ac_cv_lib_dld_dld_link = yes; then
6494 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6495fi
6496
6497
6498fi
6499
6500
6501fi
6502
6503
6504fi
6505
6506
6507fi
6508
6509
6510fi
6511
6512 ;;
6513 esac
6514
6515 if test "x$lt_cv_dlopen" != xno; then
6516 enable_dlopen=yes
6517 else
6518 enable_dlopen=no
6519 fi
6520
6521 case $lt_cv_dlopen in
6522 dlopen)
6523 save_CPPFLAGS="$CPPFLAGS"
6524 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6525
6526 save_LDFLAGS="$LDFLAGS"
6527 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6528
6529 save_LIBS="$LIBS"
6530 LIBS="$lt_cv_dlopen_libs $LIBS"
6531
6532 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6533echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6534if test "${lt_cv_dlopen_self+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
6537 if test "$cross_compiling" = yes; then :
6538 lt_cv_dlopen_self=cross
6539else
6540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6541 lt_status=$lt_dlunknown
6542 cat > conftest.$ac_ext <<EOF
6543#line 6543 "configure"
6544#include "confdefs.h"
6545
6546#if HAVE_DLFCN_H
6547#include <dlfcn.h>
6548#endif
6549
6550#include <stdio.h>
6551
6552#ifdef RTLD_GLOBAL
6553# define LT_DLGLOBAL RTLD_GLOBAL
6554#else
6555# ifdef DL_GLOBAL
6556# define LT_DLGLOBAL DL_GLOBAL
6557# else
6558# define LT_DLGLOBAL 0
6559# endif
6560#endif
6561
6562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6563 find out it does not work in some platform. */
6564#ifndef LT_DLLAZY_OR_NOW
6565# ifdef RTLD_LAZY
6566# define LT_DLLAZY_OR_NOW RTLD_LAZY
6567# else
6568# ifdef DL_LAZY
6569# define LT_DLLAZY_OR_NOW DL_LAZY
6570# else
6571# ifdef RTLD_NOW
6572# define LT_DLLAZY_OR_NOW RTLD_NOW
6573# else
6574# ifdef DL_NOW
6575# define LT_DLLAZY_OR_NOW DL_NOW
6576# else
6577# define LT_DLLAZY_OR_NOW 0
6578# endif
6579# endif
6580# endif
6581# endif
6582#endif
6583
6584#ifdef __cplusplus
6585extern "C" void exit (int);
6586#endif
6587
6588void fnord() { int i=42;}
6589int main ()
6590{
6591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6592 int status = $lt_dlunknown;
6593
6594 if (self)
6595 {
6596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6598 /* dlclose (self); */
6599 }
6600
6601 exit (status);
6602}
6603EOF
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6609 (./conftest; exit; ) 2>/dev/null
6610 lt_status=$?
6611 case x$lt_status in
6612 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6613 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6614 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6615 esac
6616 else :
6617 # compilation failed
6618 lt_cv_dlopen_self=no
6619 fi
6620fi
6621rm -fr conftest*
6622
6623
6624fi
6625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6626echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6627
6628 if test "x$lt_cv_dlopen_self" = xyes; then
6629 LDFLAGS="$LDFLAGS $link_static_flag"
6630 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6631echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6632if test "${lt_cv_dlopen_self_static+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634else
6635 if test "$cross_compiling" = yes; then :
6636 lt_cv_dlopen_self_static=cross
6637else
6638 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6639 lt_status=$lt_dlunknown
6640 cat > conftest.$ac_ext <<EOF
6641#line 6641 "configure"
6642#include "confdefs.h"
6643
6644#if HAVE_DLFCN_H
6645#include <dlfcn.h>
6646#endif
6647
6648#include <stdio.h>
6649
6650#ifdef RTLD_GLOBAL
6651# define LT_DLGLOBAL RTLD_GLOBAL
6652#else
6653# ifdef DL_GLOBAL
6654# define LT_DLGLOBAL DL_GLOBAL
6655# else
6656# define LT_DLGLOBAL 0
6657# endif
6658#endif
6659
6660/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6661 find out it does not work in some platform. */
6662#ifndef LT_DLLAZY_OR_NOW
6663# ifdef RTLD_LAZY
6664# define LT_DLLAZY_OR_NOW RTLD_LAZY
6665# else
6666# ifdef DL_LAZY
6667# define LT_DLLAZY_OR_NOW DL_LAZY
6668# else
6669# ifdef RTLD_NOW
6670# define LT_DLLAZY_OR_NOW RTLD_NOW
6671# else
6672# ifdef DL_NOW
6673# define LT_DLLAZY_OR_NOW DL_NOW
6674# else
6675# define LT_DLLAZY_OR_NOW 0
6676# endif
6677# endif
6678# endif
6679# endif
6680#endif
6681
6682#ifdef __cplusplus
6683extern "C" void exit (int);
6684#endif
6685
6686void fnord() { int i=42;}
6687int main ()
6688{
6689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6690 int status = $lt_dlunknown;
6691
6692 if (self)
6693 {
6694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6695 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6696 /* dlclose (self); */
6697 }
6698
6699 exit (status);
6700}
6701EOF
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6707 (./conftest; exit; ) 2>/dev/null
6708 lt_status=$?
6709 case x$lt_status in
6710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6712 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6713 esac
6714 else :
6715 # compilation failed
6716 lt_cv_dlopen_self_static=no
6717 fi
6718fi
6719rm -fr conftest*
6720
6721
6722fi
6723echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6724echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6725 fi
6726
6727 CPPFLAGS="$save_CPPFLAGS"
6728 LDFLAGS="$save_LDFLAGS"
6729 LIBS="$save_LIBS"
6730 ;;
6731 esac
6732
6733 case $lt_cv_dlopen_self in
6734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6735 *) enable_dlopen_self=unknown ;;
6736 esac
6737
6738 case $lt_cv_dlopen_self_static in
6739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6740 *) enable_dlopen_self_static=unknown ;;
6741 esac
6742fi
6743
6744
6745if test "$enable_shared" = yes && test "$GCC" = yes; then
6746 case $archive_cmds in
6747 *'~'*)
6748 # FIXME: we may have to deal with multi-command sequences.
6749 ;;
6750 '$CC '*)
6751 # Test whether the compiler implicitly links with -lc since on some
6752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6753 # to ld, don't add -lc before -lgcc.
6754 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6755echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6756 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759 $rm conftest*
6760 echo 'static int dummy;' > conftest.$ac_ext
6761
6762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6763 (eval $ac_compile) 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; then
6767 soname=conftest
6768 lib=conftest
6769 libobjs=conftest.$ac_objext
6770 deplibs=
6771 wl=$lt_cv_prog_cc_wl
6772 compiler_flags=-v
6773 linker_flags=-v
6774 verstring=
6775 output_objdir=.
6776 libname=conftest
6777 save_allow_undefined_flag=$allow_undefined_flag
6778 allow_undefined_flag=
6779 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6780 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }
6784 then
6785 lt_cv_archive_cmds_need_lc=no
6786 else
6787 lt_cv_archive_cmds_need_lc=yes
6788 fi
6789 allow_undefined_flag=$save_allow_undefined_flag
6790 else
6791 cat conftest.err 1>&5
6792 fi
6793fi
6794
6795 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6796echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6797 ;;
6798 esac
6799fi
6800need_lc=${lt_cv_archive_cmds_need_lc-yes}
6801
6802# The second clause should only fire when bootstrapping the
6803# libtool distribution, otherwise you forgot to ship ltmain.sh
6804# with your package, and you will get complaints that there are
6805# no rules to generate ltmain.sh.
6806if test -f "$ltmain"; then
6807 :
6808else
6809 # If there is no Makefile yet, we rely on a make rule to execute
6810 # `config.status --recheck' to rerun these tests and create the
6811 # libtool script then.
6812 test -f Makefile && make "$ltmain"
6813fi
6814
6815if test -f "$ltmain"; then
6816 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6817 $rm -f "${ofile}T"
6818
6819 echo creating $ofile
6820
6821 # Now quote all the things that may contain metacharacters while being
6822 # careful not to overquote the AC_SUBSTed values. We take copies of the
6823 # variables and quote the copies for generation of the libtool script.
6824 for var in echo old_CC old_CFLAGS \
6825 AR AR_FLAGS CC LD LN_S NM SHELL \
6826 reload_flag reload_cmds wl \
6827 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6828 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6829 library_names_spec soname_spec \
6830 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6831 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6832 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6833 old_striplib striplib file_magic_cmd export_symbols_cmds \
6834 deplibs_check_method allow_undefined_flag no_undefined_flag \
6835 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6836 global_symbol_to_c_name_address \
6837 hardcode_libdir_flag_spec hardcode_libdir_separator \
6838 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6839 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6840
6841 case $var in
6842 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6843 old_postinstall_cmds | old_postuninstall_cmds | \
6844 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6845 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6846 postinstall_cmds | postuninstall_cmds | \
6847 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6848 # Double-quote double-evaled strings.
6849 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6850 ;;
6851 *)
6852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6853 ;;
6854 esac
6855 done
6856
6857 cat <<__EOF__ > "${ofile}T"
6858#! $SHELL
6859
6860# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6861# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6862# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6863#
6864# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6865# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6866#
6867# This program is free software; you can redistribute it and/or modify
6868# it under the terms of the GNU General Public License as published by
6869# the Free Software Foundation; either version 2 of the License, or
6870# (at your option) any later version.
6871#
6872# This program is distributed in the hope that it will be useful, but
6873# WITHOUT ANY WARRANTY; without even the implied warranty of
6874# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6875# General Public License for more details.
6876#
6877# You should have received a copy of the GNU General Public License
6878# along with this program; if not, write to the Free Software
6879# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6880#
6881# As a special exception to the GNU General Public License, if you
6882# distribute this file as part of a program that contains a
6883# configuration script generated by Autoconf, you may include it under
6884# the same distribution terms that you use for the rest of that program.
6885
6886# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6887Xsed="sed -e s/^X//"
6888
6889# The HP-UX ksh and POSIX shell print the target directory to stdout
6890# if CDPATH is set.
6891if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6892
6893# ### BEGIN LIBTOOL CONFIG
6894
6895# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6896
6897# Shell to use when invoking shell scripts.
6898SHELL=$lt_SHELL
6899
6900# Whether or not to build shared libraries.
6901build_libtool_libs=$enable_shared
6902
6903# Whether or not to build static libraries.
6904build_old_libs=$enable_static
6905
6906# Whether or not to add -lc for building shared libraries.
6907build_libtool_need_lc=$need_lc
6908
6909# Whether or not to optimize for fast installation.
6910fast_install=$enable_fast_install
6911
6912# The host system.
6913host_alias=$host_alias
6914host=$host
6915
6916# An echo program that does not interpret backslashes.
6917echo=$lt_echo
6918
6919# The archiver.
6920AR=$lt_AR
6921AR_FLAGS=$lt_AR_FLAGS
6922
6923# The default C compiler.
6924CC=$lt_CC
6925
6926# Is the compiler the GNU C compiler?
6927with_gcc=$GCC
6928
6929# The linker used to build libraries.
6930LD=$lt_LD
6931
6932# Whether we need hard or soft links.
6933LN_S=$lt_LN_S
6934
6935# A BSD-compatible nm program.
6936NM=$lt_NM
6937
6938# A symbol stripping program
6939STRIP=$STRIP
6940
6941# Used to examine libraries when file_magic_cmd begins "file"
6942MAGIC_CMD=$MAGIC_CMD
6943
6944# Used on cygwin: DLL creation program.
6945DLLTOOL="$DLLTOOL"
6946
6947# Used on cygwin: object dumper.
6948OBJDUMP="$OBJDUMP"
6949
6950# Used on cygwin: assembler.
6951AS="$AS"
6952
6953# The name of the directory that contains temporary libtool files.
6954objdir=$objdir
6955
6956# How to create reloadable object files.
6957reload_flag=$lt_reload_flag
6958reload_cmds=$lt_reload_cmds
6959
6960# How to pass a linker flag through the compiler.
6961wl=$lt_wl
6962
6963# Object file suffix (normally "o").
6964objext="$ac_objext"
6965
6966# Old archive suffix (normally "a").
6967libext="$libext"
6968
6969# Executable file suffix (normally "").
6970exeext="$exeext"
6971
6972# Additional compiler flags for building library objects.
6973pic_flag=$lt_pic_flag
6974pic_mode=$pic_mode
6975
6976# Does compiler simultaneously support -c and -o options?
6977compiler_c_o=$lt_compiler_c_o
6978
6979# Can we write directly to a .lo ?
6980compiler_o_lo=$lt_compiler_o_lo
6981
6982# Must we lock files when doing compilation ?
6983need_locks=$lt_need_locks
6984
6985# Do we need the lib prefix for modules?
6986need_lib_prefix=$need_lib_prefix
6987
6988# Do we need a version for libraries?
6989need_version=$need_version
6990
6991# Whether dlopen is supported.
6992dlopen_support=$enable_dlopen
6993
6994# Whether dlopen of programs is supported.
6995dlopen_self=$enable_dlopen_self
6996
6997# Whether dlopen of statically linked programs is supported.
6998dlopen_self_static=$enable_dlopen_self_static
6999
7000# Compiler flag to prevent dynamic linking.
7001link_static_flag=$lt_link_static_flag
7002
7003# Compiler flag to turn off builtin functions.
7004no_builtin_flag=$lt_no_builtin_flag
7005
7006# Compiler flag to allow reflexive dlopens.
7007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7008
7009# Compiler flag to generate shared objects directly from archives.
7010whole_archive_flag_spec=$lt_whole_archive_flag_spec
7011
7012# Compiler flag to generate thread-safe objects.
7013thread_safe_flag_spec=$lt_thread_safe_flag_spec
7014
7015# Library versioning type.
7016version_type=$version_type
7017
7018# Format of library name prefix.
7019libname_spec=$lt_libname_spec
7020
7021# List of archive names. First name is the real one, the rest are links.
7022# The last name is the one that the linker finds with -lNAME.
7023library_names_spec=$lt_library_names_spec
7024
7025# The coded name of the library, if different from the real name.
7026soname_spec=$lt_soname_spec
7027
7028# Commands used to build and install an old-style archive.
7029RANLIB=$lt_RANLIB
7030old_archive_cmds=$lt_old_archive_cmds
7031old_postinstall_cmds=$lt_old_postinstall_cmds
7032old_postuninstall_cmds=$lt_old_postuninstall_cmds
7033
7034# Create an old-style archive from a shared archive.
7035old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7036
7037# Create a temporary old-style archive to link instead of a shared archive.
7038old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7039
7040# Commands used to build and install a shared archive.
7041archive_cmds=$lt_archive_cmds
7042archive_expsym_cmds=$lt_archive_expsym_cmds
7043postinstall_cmds=$lt_postinstall_cmds
7044postuninstall_cmds=$lt_postuninstall_cmds
7045
7046# Commands to strip libraries.
7047old_striplib=$lt_old_striplib
7048striplib=$lt_striplib
7049
7050# Method to check whether dependent libraries are shared objects.
7051deplibs_check_method=$lt_deplibs_check_method
7052
7053# Command to use when deplibs_check_method == file_magic.
7054file_magic_cmd=$lt_file_magic_cmd
7055
7056# Flag that allows shared libraries with undefined symbols to be built.
7057allow_undefined_flag=$lt_allow_undefined_flag
7058
7059# Flag that forces no undefined symbols.
7060no_undefined_flag=$lt_no_undefined_flag
7061
7062# Commands used to finish a libtool library installation in a directory.
7063finish_cmds=$lt_finish_cmds
7064
7065# Same as above, but a single script fragment to be evaled but not shown.
7066finish_eval=$lt_finish_eval
7067
7068# Take the output of nm and produce a listing of raw symbols and C names.
7069global_symbol_pipe=$lt_global_symbol_pipe
7070
7071# Transform the output of nm in a proper C declaration
7072global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7073
7074# Transform the output of nm in a C name address pair
7075global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7076
7077# This is the shared library runtime path variable.
7078runpath_var=$runpath_var
7079
7080# This is the shared library path variable.
7081shlibpath_var=$shlibpath_var
7082
7083# Is shlibpath searched before the hard-coded library search path?
7084shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7085
7086# How to hardcode a shared library path into an executable.
7087hardcode_action=$hardcode_action
7088
7089# Whether we should hardcode library paths into libraries.
7090hardcode_into_libs=$hardcode_into_libs
7091
7092# Flag to hardcode \$libdir into a binary during linking.
7093# This must work even if \$libdir does not exist.
7094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7095
7096# Whether we need a single -rpath flag with a separated argument.
7097hardcode_libdir_separator=$lt_hardcode_libdir_separator
7098
7099# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7100# resulting binary.
7101hardcode_direct=$hardcode_direct
7102
7103# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7104# resulting binary.
7105hardcode_minus_L=$hardcode_minus_L
7106
7107# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7108# the resulting binary.
7109hardcode_shlibpath_var=$hardcode_shlibpath_var
7110
7111# Variables whose values should be saved in libtool wrapper scripts and
7112# restored at relink time.
7113variables_saved_for_relink="$variables_saved_for_relink"
7114
7115# Whether libtool must link a program against all its dependency libraries.
7116link_all_deplibs=$link_all_deplibs
7117
7118# Compile-time system search path for libraries
7119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7120
7121# Run-time system search path for libraries
7122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7123
7124# Fix the shell variable \$srcfile for the compiler.
7125fix_srcfile_path="$fix_srcfile_path"
7126
7127# Set to yes if exported symbols are required.
7128always_export_symbols=$always_export_symbols
7129
7130# The commands to list exported symbols.
7131export_symbols_cmds=$lt_export_symbols_cmds
7132
7133# The commands to extract the exported symbol list from a shared archive.
7134extract_expsyms_cmds=$lt_extract_expsyms_cmds
7135
7136# Symbols that should not be listed in the preloaded symbols.
7137exclude_expsyms=$lt_exclude_expsyms
7138
7139# Symbols that must always be exported.
7140include_expsyms=$lt_include_expsyms
7141
7142# ### END LIBTOOL CONFIG
7143
7144__EOF__
7145
7146 case $host_os in
7147 aix3*)
7148 cat <<\EOF >> "${ofile}T"
7149
7150# AIX sometimes has problems with the GCC collect2 program. For some
7151# reason, if we set the COLLECT_NAMES environment variable, the problems
7152# vanish in a puff of smoke.
7153if test "X${COLLECT_NAMES+set}" != Xset; then
7154 COLLECT_NAMES=
7155 export COLLECT_NAMES
7156fi
7157EOF
7158 ;;
7159 esac
7160
7161 case $host_os in
7162 cygwin* | mingw* | pw32* | os2*)
7163 cat <<'EOF' >> "${ofile}T"
7164 # This is a source program that is used to create dlls on Windows
7165 # Don't remove nor modify the starting and closing comments
7166# /* ltdll.c starts here */
7167# #define WIN32_LEAN_AND_MEAN
7168# #include <windows.h>
7169# #undef WIN32_LEAN_AND_MEAN
7170# #include <stdio.h>
7171#
7172# #ifndef __CYGWIN__
7173# # ifdef __CYGWIN32__
7174# # define __CYGWIN__ __CYGWIN32__
7175# # endif
7176# #endif
7177#
7178# #ifdef __cplusplus
7179# extern "C" {
7180# #endif
7181# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7182# #ifdef __cplusplus
7183# }
7184# #endif
7185#
7186# #ifdef __CYGWIN__
7187# #include <cygwin/cygwin_dll.h>
7188# DECLARE_CYGWIN_DLL( DllMain );
7189# #endif
7190# HINSTANCE __hDllInstance_base;
7191#
7192# BOOL APIENTRY
7193# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7194# {
7195# __hDllInstance_base = hInst;
7196# return TRUE;
7197# }
7198# /* ltdll.c ends here */
7199 # This is a source program that is used to create import libraries
7200 # on Windows for dlls which lack them. Don't remove nor modify the
7201 # starting and closing comments
7202# /* impgen.c starts here */
7203# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7204#
7205# This file is part of GNU libtool.
7206#
7207# This program is free software; you can redistribute it and/or modify
7208# it under the terms of the GNU General Public License as published by
7209# the Free Software Foundation; either version 2 of the License, or
7210# (at your option) any later version.
7211#
7212# This program is distributed in the hope that it will be useful,
7213# but WITHOUT ANY WARRANTY; without even the implied warranty of
7214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7215# GNU General Public License for more details.
7216#
7217# You should have received a copy of the GNU General Public License
7218# along with this program; if not, write to the Free Software
7219# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7220# */
7221#
7222# #include <stdio.h> /* for printf() */
7223# #include <unistd.h> /* for open(), lseek(), read() */
7224# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7225# #include <string.h> /* for strdup() */
7226#
7227# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7228# #ifndef O_BINARY
7229# #define O_BINARY 0
7230# #endif
7231#
7232# static unsigned int
7233# pe_get16 (fd, offset)
7234# int fd;
7235# int offset;
7236# {
7237# unsigned char b[2];
7238# lseek (fd, offset, SEEK_SET);
7239# read (fd, b, 2);
7240# return b[0] + (b[1]<<8);
7241# }
7242#
7243# static unsigned int
7244# pe_get32 (fd, offset)
7245# int fd;
7246# int offset;
7247# {
7248# unsigned char b[4];
7249# lseek (fd, offset, SEEK_SET);
7250# read (fd, b, 4);
7251# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7252# }
7253#
7254# static unsigned int
7255# pe_as32 (ptr)
7256# void *ptr;
7257# {
7258# unsigned char *b = ptr;
7259# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7260# }
7261#
7262# int
7263# main (argc, argv)
7264# int argc;
7265# char *argv[];
7266# {
7267# int dll;
7268# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7269# unsigned long export_rva, export_size, nsections, secptr, expptr;
7270# unsigned long name_rvas, nexp;
7271# unsigned char *expdata, *erva;
7272# char *filename, *dll_name;
7273#
7274# filename = argv[1];
7275#
7276# dll = open(filename, O_RDONLY|O_BINARY);
7277# if (dll < 1)
7278# return 1;
7279#
7280# dll_name = filename;
7281#
7282# for (i=0; filename[i]; i++)
7283# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7284# dll_name = filename + i +1;
7285#
7286# pe_header_offset = pe_get32 (dll, 0x3c);
7287# opthdr_ofs = pe_header_offset + 4 + 20;
7288# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7289#
7290# if (num_entries < 1) /* no exports */
7291# return 1;
7292#
7293# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7294# export_size = pe_get32 (dll, opthdr_ofs + 100);
7295# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7296# secptr = (pe_header_offset + 4 + 20 +
7297# pe_get16 (dll, pe_header_offset + 4 + 16));
7298#
7299# expptr = 0;
7300# for (i = 0; i < nsections; i++)
7301# {
7302# char sname[8];
7303# unsigned long secptr1 = secptr + 40 * i;
7304# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7305# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7306# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7307# lseek(dll, secptr1, SEEK_SET);
7308# read(dll, sname, 8);
7309# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7310# {
7311# expptr = fptr + (export_rva - vaddr);
7312# if (export_rva + export_size > vaddr + vsize)
7313# export_size = vsize - (export_rva - vaddr);
7314# break;
7315# }
7316# }
7317#
7318# expdata = (unsigned char*)malloc(export_size);
7319# lseek (dll, expptr, SEEK_SET);
7320# read (dll, expdata, export_size);
7321# erva = expdata - export_rva;
7322#
7323# nexp = pe_as32 (expdata+24);
7324# name_rvas = pe_as32 (expdata+32);
7325#
7326# printf ("EXPORTS\n");
7327# for (i = 0; i<nexp; i++)
7328# {
7329# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7330# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7331# }
7332#
7333# return 0;
7334# }
7335# /* impgen.c ends here */
7336
7337EOF
7338 ;;
7339 esac
7340
7341 # We use sed instead of cat because bash on DJGPP gets confused if
7342 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7343 # text mode, it properly converts lines to CR/LF. This bash problem
7344 # is reportedly fixed, but why not run on old versions too?
7345 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7346
7347 mv -f "${ofile}T" "$ofile" || \
7348 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7349 chmod +x "$ofile"
7350fi
7351
7352
7353
jjako52c24142002-12-16 13:33:51 +00007354
7355
7356# This can be used to rebuild libtool when needed
jjako286bc982003-01-28 23:17:50 +00007357LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
jjako52c24142002-12-16 13:33:51 +00007358
7359# Always use our own libtool.
7360LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7361
jjako286bc982003-01-28 23:17:50 +00007362# Prevent multiple expansion
jjako52c24142002-12-16 13:33:51 +00007363
7364
jjako286bc982003-01-28 23:17:50 +00007365
7366
7367
7368# Checks for libraries.
7369# FIXME: Replace `main' with a function in `-le':
7370
7371echo "$as_me:$LINENO: checking for main in -le" >&5
7372echo $ECHO_N "checking for main in -le... $ECHO_C" >&6
7373if test "${ac_cv_lib_e_main+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007375else
jjako286bc982003-01-28 23:17:50 +00007376 ac_check_lib_save_LIBS=$LIBS
7377LIBS="-le $LIBS"
7378cat >conftest.$ac_ext <<_ACEOF
7379#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007380#include "confdefs.h"
jjako52c24142002-12-16 13:33:51 +00007381
jjako286bc982003-01-28 23:17:50 +00007382
7383#ifdef F77_DUMMY_MAIN
7384# ifdef __cplusplus
7385 extern "C"
7386# endif
7387 int F77_DUMMY_MAIN() { return 1; }
7388#endif
7389int
7390main ()
7391{
7392main ();
7393 ;
7394 return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext conftest$ac_exeext
7398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7399 (eval $ac_link) 2>&5
7400 ac_status=$?
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try='test -s conftest$ac_exeext'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; }; then
7409 ac_cv_lib_e_main=yes
jjako52c24142002-12-16 13:33:51 +00007410else
jjako286bc982003-01-28 23:17:50 +00007411 echo "$as_me: failed program was:" >&5
7412cat conftest.$ac_ext >&5
7413ac_cv_lib_e_main=no
7414fi
7415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7416LIBS=$ac_check_lib_save_LIBS
7417fi
7418echo "$as_me:$LINENO: result: $ac_cv_lib_e_main" >&5
7419echo "${ECHO_T}$ac_cv_lib_e_main" >&6
7420if test $ac_cv_lib_e_main = yes; then
7421 cat >>confdefs.h <<_ACEOF
7422#define HAVE_LIBE 1
7423_ACEOF
7424
7425 LIBS="-le $LIBS"
7426
7427fi
7428
7429# FIXME: Replace `main' with a function in `-lgtp':
7430
7431echo "$as_me:$LINENO: checking for main in -lgtp" >&5
7432echo $ECHO_N "checking for main in -lgtp... $ECHO_C" >&6
7433if test "${ac_cv_lib_gtp_main+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 ac_check_lib_save_LIBS=$LIBS
7437LIBS="-lgtp $LIBS"
7438cat >conftest.$ac_ext <<_ACEOF
7439#line $LINENO "configure"
7440#include "confdefs.h"
7441
7442
7443#ifdef F77_DUMMY_MAIN
7444# ifdef __cplusplus
7445 extern "C"
7446# endif
7447 int F77_DUMMY_MAIN() { return 1; }
7448#endif
7449int
7450main ()
7451{
7452main ();
7453 ;
7454 return 0;
7455}
7456_ACEOF
7457rm -f conftest.$ac_objext conftest$ac_exeext
7458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>&5
7460 ac_status=$?
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465 (eval $ac_try) 2>&5
7466 ac_status=$?
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_lib_gtp_main=yes
7470else
7471 echo "$as_me: failed program was:" >&5
7472cat conftest.$ac_ext >&5
7473ac_cv_lib_gtp_main=no
7474fi
7475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7476LIBS=$ac_check_lib_save_LIBS
7477fi
7478echo "$as_me:$LINENO: result: $ac_cv_lib_gtp_main" >&5
7479echo "${ECHO_T}$ac_cv_lib_gtp_main" >&6
7480if test $ac_cv_lib_gtp_main = yes; then
7481 cat >>confdefs.h <<_ACEOF
7482#define HAVE_LIBGTP 1
7483_ACEOF
7484
7485 LIBS="-lgtp $LIBS"
7486
7487fi
7488
7489# FIXME: Replace `main' with a function in `-links':
7490
7491echo "$as_me:$LINENO: checking for main in -links" >&5
7492echo $ECHO_N "checking for main in -links... $ECHO_C" >&6
7493if test "${ac_cv_lib_inks_main+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496 ac_check_lib_save_LIBS=$LIBS
7497LIBS="-links $LIBS"
7498cat >conftest.$ac_ext <<_ACEOF
7499#line $LINENO "configure"
7500#include "confdefs.h"
7501
7502
7503#ifdef F77_DUMMY_MAIN
7504# ifdef __cplusplus
7505 extern "C"
7506# endif
7507 int F77_DUMMY_MAIN() { return 1; }
7508#endif
7509int
7510main ()
7511{
7512main ();
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext conftest$ac_exeext
7518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519 (eval $ac_link) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_inks_main=yes
7530else
7531 echo "$as_me: failed program was:" >&5
7532cat conftest.$ac_ext >&5
7533ac_cv_lib_inks_main=no
7534fi
7535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7536LIBS=$ac_check_lib_save_LIBS
7537fi
7538echo "$as_me:$LINENO: result: $ac_cv_lib_inks_main" >&5
7539echo "${ECHO_T}$ac_cv_lib_inks_main" >&6
7540if test $ac_cv_lib_inks_main = yes; then
7541 cat >>confdefs.h <<_ACEOF
7542#define HAVE_LIBINKS 1
7543_ACEOF
7544
7545 LIBS="-links $LIBS"
7546
7547fi
7548
7549
7550# Checks for header files.
7551echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7552echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7553if test "${ac_cv_header_stdc+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 cat >conftest.$ac_ext <<_ACEOF
7557#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007558#include "confdefs.h"
7559#include <stdlib.h>
7560#include <stdarg.h>
7561#include <string.h>
7562#include <float.h>
jjako286bc982003-01-28 23:17:50 +00007563
7564_ACEOF
7565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7567 ac_status=$?
7568 egrep -v '^ *\+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } >/dev/null; then
7573 if test -s conftest.err; then
7574 ac_cpp_err=$ac_c_preproc_warn_flag
7575 else
7576 ac_cpp_err=
7577 fi
7578else
7579 ac_cpp_err=yes
7580fi
7581if test -z "$ac_cpp_err"; then
jjako52c24142002-12-16 13:33:51 +00007582 ac_cv_header_stdc=yes
7583else
jjako286bc982003-01-28 23:17:50 +00007584 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00007585 cat conftest.$ac_ext >&5
jjako52c24142002-12-16 13:33:51 +00007586 ac_cv_header_stdc=no
7587fi
jjako286bc982003-01-28 23:17:50 +00007588rm -f conftest.err conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007589
7590if test $ac_cv_header_stdc = yes; then
7591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007592 cat >conftest.$ac_ext <<_ACEOF
7593#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007594#include "confdefs.h"
7595#include <string.h>
jjako286bc982003-01-28 23:17:50 +00007596
7597_ACEOF
jjako52c24142002-12-16 13:33:51 +00007598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7599 egrep "memchr" >/dev/null 2>&1; then
7600 :
7601else
jjako52c24142002-12-16 13:33:51 +00007602 ac_cv_header_stdc=no
7603fi
7604rm -f conftest*
7605
7606fi
7607
7608if test $ac_cv_header_stdc = yes; then
7609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007610 cat >conftest.$ac_ext <<_ACEOF
7611#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007612#include "confdefs.h"
7613#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00007614
7615_ACEOF
jjako52c24142002-12-16 13:33:51 +00007616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7617 egrep "free" >/dev/null 2>&1; then
7618 :
7619else
jjako52c24142002-12-16 13:33:51 +00007620 ac_cv_header_stdc=no
7621fi
7622rm -f conftest*
7623
7624fi
7625
7626if test $ac_cv_header_stdc = yes; then
7627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jjako286bc982003-01-28 23:17:50 +00007628 if test "$cross_compiling" = yes; then
jjako52c24142002-12-16 13:33:51 +00007629 :
7630else
jjako286bc982003-01-28 23:17:50 +00007631 cat >conftest.$ac_ext <<_ACEOF
7632#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007633#include "confdefs.h"
7634#include <ctype.h>
jjako286bc982003-01-28 23:17:50 +00007635#if ((' ' & 0x0FF) == 0x020)
7636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7638#else
7639# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7640 || ('j' <= (c) && (c) <= 'r') \
7641 || ('s' <= (c) && (c) <= 'z'))
7642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7643#endif
jjako52c24142002-12-16 13:33:51 +00007644
jjako286bc982003-01-28 23:17:50 +00007645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7646int
7647main ()
7648{
7649 int i;
7650 for (i = 0; i < 256; i++)
7651 if (XOR (islower (i), ISLOWER (i))
7652 || toupper (i) != TOUPPER (i))
7653 exit(2);
7654 exit (0);
7655}
7656_ACEOF
7657rm -f conftest$ac_exeext
7658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7659 (eval $ac_link) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007668 :
7669else
jjako286bc982003-01-28 23:17:50 +00007670 echo "$as_me: program exited with status $ac_status" >&5
7671echo "$as_me: failed program was:" >&5
7672cat conftest.$ac_ext >&5
7673( exit $ac_status )
7674ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00007675fi
jjako286bc982003-01-28 23:17:50 +00007676rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007677fi
7678fi
jjako286bc982003-01-28 23:17:50 +00007679fi
7680echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7681echo "${ECHO_T}$ac_cv_header_stdc" >&6
jjako52c24142002-12-16 13:33:51 +00007682if test $ac_cv_header_stdc = yes; then
jjako286bc982003-01-28 23:17:50 +00007683
7684cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00007685#define STDC_HEADERS 1
jjako286bc982003-01-28 23:17:50 +00007686_ACEOF
jjako52c24142002-12-16 13:33:51 +00007687
7688fi
7689
jjako286bc982003-01-28 23:17:50 +00007690echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7691echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7692if test "${ac_cv_header_sys_wait_h+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007694else
jjako286bc982003-01-28 23:17:50 +00007695 cat >conftest.$ac_ext <<_ACEOF
7696#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007697#include "confdefs.h"
7698#include <sys/types.h>
7699#include <sys/wait.h>
7700#ifndef WEXITSTATUS
jjako286bc982003-01-28 23:17:50 +00007701# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
jjako52c24142002-12-16 13:33:51 +00007702#endif
7703#ifndef WIFEXITED
jjako286bc982003-01-28 23:17:50 +00007704# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
jjako52c24142002-12-16 13:33:51 +00007705#endif
jjako286bc982003-01-28 23:17:50 +00007706
7707#ifdef F77_DUMMY_MAIN
7708# ifdef __cplusplus
7709 extern "C"
7710# endif
7711 int F77_DUMMY_MAIN() { return 1; }
7712#endif
7713int
7714main ()
7715{
7716 int s;
7717 wait (&s);
7718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7719 ;
7720 return 0;
7721}
7722_ACEOF
7723rm -f conftest.$ac_objext
7724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7725 (eval $ac_compile) 2>&5
7726 ac_status=$?
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -s conftest.$ac_objext'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007735 ac_cv_header_sys_wait_h=yes
7736else
jjako286bc982003-01-28 23:17:50 +00007737 echo "$as_me: failed program was:" >&5
7738cat conftest.$ac_ext >&5
7739ac_cv_header_sys_wait_h=no
jjako52c24142002-12-16 13:33:51 +00007740fi
jjako286bc982003-01-28 23:17:50 +00007741rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007742fi
jjako286bc982003-01-28 23:17:50 +00007743echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7744echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
jjako52c24142002-12-16 13:33:51 +00007745if test $ac_cv_header_sys_wait_h = yes; then
jjako286bc982003-01-28 23:17:50 +00007746
7747cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00007748#define HAVE_SYS_WAIT_H 1
jjako286bc982003-01-28 23:17:50 +00007749_ACEOF
jjako52c24142002-12-16 13:33:51 +00007750
7751fi
7752
jjako286bc982003-01-28 23:17:50 +00007753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
jjako52c24142002-12-16 13:33:51 +00007766do
jjako286bc982003-01-28 23:17:50 +00007767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7768if eval "test \"\${$as_ac_Header+set}\" = set"; then
7769 echo "$as_me:$LINENO: checking for $ac_header" >&5
7770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7771if eval "test \"\${$as_ac_Header+set}\" = set"; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773fi
7774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00007776else
jjako286bc982003-01-28 23:17:50 +00007777 # Is the header compilable?
7778echo "$as_me:$LINENO: checking $ac_header usability" >&5
7779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7780cat >conftest.$ac_ext <<_ACEOF
7781#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007782#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00007783$ac_includes_default
7784#include <$ac_header>
7785_ACEOF
7786rm -f conftest.$ac_objext
7787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7788 (eval $ac_compile) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00007799else
jjako286bc982003-01-28 23:17:50 +00007800 echo "$as_me: failed program was:" >&5
7801cat conftest.$ac_ext >&5
7802ac_header_compiler=no
7803fi
7804rm -f conftest.$ac_objext conftest.$ac_ext
7805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7806echo "${ECHO_T}$ac_header_compiler" >&6
7807
7808# Is the header present?
7809echo "$as_me:$LINENO: checking $ac_header presence" >&5
7810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7811cat >conftest.$ac_ext <<_ACEOF
7812#line $LINENO "configure"
7813#include "confdefs.h"
7814#include <$ac_header>
7815_ACEOF
7816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7818 ac_status=$?
7819 egrep -v '^ *\+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } >/dev/null; then
7824 if test -s conftest.err; then
7825 ac_cpp_err=$ac_c_preproc_warn_flag
7826 else
7827 ac_cpp_err=
7828 fi
7829else
7830 ac_cpp_err=yes
7831fi
7832if test -z "$ac_cpp_err"; then
7833 ac_header_preproc=yes
7834else
7835 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00007836 cat conftest.$ac_ext >&5
jjako286bc982003-01-28 23:17:50 +00007837 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00007838fi
jjako286bc982003-01-28 23:17:50 +00007839rm -f conftest.err conftest.$ac_ext
7840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841echo "${ECHO_T}$ac_header_preproc" >&6
7842
7843# So? What about this header?
7844case $ac_header_compiler:$ac_header_preproc in
7845 yes:no )
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7850 no:yes )
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7856echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7857esac
7858echo "$as_me:$LINENO: checking for $ac_header" >&5
7859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7860if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007862else
jjako286bc982003-01-28 23:17:50 +00007863 eval "$as_ac_Header=$ac_header_preproc"
jjako52c24142002-12-16 13:33:51 +00007864fi
jjako286bc982003-01-28 23:17:50 +00007865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7867
7868fi
7869if test `eval echo '${'$as_ac_Header'}'` = yes; then
7870 cat >>confdefs.h <<_ACEOF
7871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872_ACEOF
7873
7874fi
7875
jjako52c24142002-12-16 13:33:51 +00007876done
7877
7878
jjako286bc982003-01-28 23:17:50 +00007879# Checks for typedefs, structures, and compiler characteristics.
7880echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7881echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7882if test "${ac_cv_prog_cc_stdc+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007884else
jjako286bc982003-01-28 23:17:50 +00007885 ac_cv_prog_cc_stdc=no
7886ac_save_CC=$CC
7887cat >conftest.$ac_ext <<_ACEOF
7888#line $LINENO "configure"
7889#include "confdefs.h"
7890#include <stdarg.h>
7891#include <stdio.h>
7892#include <sys/types.h>
7893#include <sys/stat.h>
7894/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7895struct buf { int x; };
7896FILE * (*rcsopen) (struct buf *, struct stat *, int);
7897static char *e (p, i)
7898 char **p;
7899 int i;
7900{
7901 return p[i];
7902}
7903static char *f (char * (*g) (char **, int), char **p, ...)
7904{
7905 char *s;
7906 va_list v;
7907 va_start (v,p);
7908 s = g (p, va_arg (v,int));
7909 va_end (v);
7910 return s;
7911}
7912int test (int i, double x);
7913struct s1 {int (*f) (int a);};
7914struct s2 {int (*f) (double a);};
7915int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7916int argc;
7917char **argv;
7918#ifdef F77_DUMMY_MAIN
7919# ifdef __cplusplus
7920 extern "C"
7921# endif
7922 int F77_DUMMY_MAIN() { return 1; }
7923#endif
7924int
7925main ()
7926{
7927return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932# Don't try gcc -ansi; that turns off useful extensions and
7933# breaks some systems' header files.
7934# AIX -qlanglvl=ansi
7935# Ultrix and OSF/1 -std1
7936# HP-UX 10.20 and later -Ae
7937# HP-UX older versions -Aa -D_HPUX_SOURCE
7938# SVR4 -Xc -D__EXTENSIONS__
7939for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7940do
7941 CC="$ac_save_CC $ac_arg"
7942 rm -f conftest.$ac_objext
7943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7944 (eval $ac_compile) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } &&
7948 { ac_try='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 ac_cv_prog_cc_stdc=$ac_arg
7955break
7956else
7957 echo "$as_me: failed program was:" >&5
7958cat conftest.$ac_ext >&5
7959fi
7960rm -f conftest.$ac_objext
7961done
7962rm -f conftest.$ac_ext conftest.$ac_objext
7963CC=$ac_save_CC
7964
7965fi
7966
7967case "x$ac_cv_prog_cc_stdc" in
7968 x|xno)
7969 echo "$as_me:$LINENO: result: none needed" >&5
7970echo "${ECHO_T}none needed" >&6 ;;
7971 *)
7972 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7973echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7974 CC="$CC $ac_cv_prog_cc_stdc" ;;
7975esac
7976
7977echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7978echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7979if test "${ac_cv_c_const+set}" = set; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982 cat >conftest.$ac_ext <<_ACEOF
7983#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007984#include "confdefs.h"
7985
jjako286bc982003-01-28 23:17:50 +00007986#ifdef F77_DUMMY_MAIN
7987# ifdef __cplusplus
7988 extern "C"
7989# endif
7990 int F77_DUMMY_MAIN() { return 1; }
7991#endif
7992int
7993main ()
7994{
7995/* FIXME: Include the comments suggested by Paul. */
7996#ifndef __cplusplus
7997 /* Ultrix mips cc rejects this. */
7998 typedef int charset[2];
7999 const charset x;
8000 /* SunOS 4.1.1 cc rejects this. */
8001 char const *const *ccp;
8002 char **p;
8003 /* NEC SVR4.0.2 mips cc rejects this. */
8004 struct point {int x, y;};
8005 static struct point const zero = {0,0};
8006 /* AIX XL C 1.02.0.0 rejects this.
8007 It does not let you subtract one const X* pointer from another in
8008 an arm of an if-expression whose if-part is not a constant
8009 expression */
8010 const char *g = "string";
8011 ccp = &g + (g ? g-g : 0);
8012 /* HPUX 7.0 cc rejects these. */
8013 ++ccp;
8014 p = (char**) ccp;
8015 ccp = (char const *const *) p;
8016 { /* SCO 3.2v4 cc rejects this. */
8017 char *t;
8018 char const *s = 0 ? (char *) 0 : (char const *) 0;
jjako52c24142002-12-16 13:33:51 +00008019
jjako286bc982003-01-28 23:17:50 +00008020 *t++ = 0;
8021 }
8022 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8023 int x[] = {25, 17};
8024 const int *foo = &x[0];
8025 ++foo;
8026 }
8027 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8028 typedef const int *iptr;
8029 iptr p = 0;
8030 ++p;
8031 }
8032 { /* AIX XL C 1.02.0.0 rejects this saying
8033 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8034 struct s { int j; const int *ap[3]; };
8035 struct s *b; b->j = 5;
8036 }
8037 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 const int foo = 10;
8039 }
8040#endif
jjako52c24142002-12-16 13:33:51 +00008041
jjako286bc982003-01-28 23:17:50 +00008042 ;
8043 return 0;
jjako52c24142002-12-16 13:33:51 +00008044}
jjako286bc982003-01-28 23:17:50 +00008045_ACEOF
8046rm -f conftest.$ac_objext
8047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008058 ac_cv_c_const=yes
8059else
jjako286bc982003-01-28 23:17:50 +00008060 echo "$as_me: failed program was:" >&5
8061cat conftest.$ac_ext >&5
8062ac_cv_c_const=no
jjako52c24142002-12-16 13:33:51 +00008063fi
jjako286bc982003-01-28 23:17:50 +00008064rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008065fi
jjako286bc982003-01-28 23:17:50 +00008066echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8067echo "${ECHO_T}$ac_cv_c_const" >&6
jjako52c24142002-12-16 13:33:51 +00008068if test $ac_cv_c_const = no; then
jjako286bc982003-01-28 23:17:50 +00008069
8070cat >>confdefs.h <<\_ACEOF
8071#define const
8072_ACEOF
jjako52c24142002-12-16 13:33:51 +00008073
8074fi
8075
jjako286bc982003-01-28 23:17:50 +00008076echo "$as_me:$LINENO: checking for mode_t" >&5
8077echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
8078if test "${ac_cv_type_mode_t+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008080else
jjako286bc982003-01-28 23:17:50 +00008081 cat >conftest.$ac_ext <<_ACEOF
8082#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008083#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008084$ac_includes_default
8085#ifdef F77_DUMMY_MAIN
8086# ifdef __cplusplus
8087 extern "C"
8088# endif
8089 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00008090#endif
jjako286bc982003-01-28 23:17:50 +00008091int
8092main ()
8093{
8094if ((mode_t *) 0)
8095 return 0;
8096if (sizeof (mode_t))
8097 return 0;
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext
8103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104 (eval $ac_compile) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -s conftest.$ac_objext'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110 (eval $ac_try) 2>&5
8111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
8114 ac_cv_type_mode_t=yes
8115else
8116 echo "$as_me: failed program was:" >&5
8117cat conftest.$ac_ext >&5
8118ac_cv_type_mode_t=no
8119fi
8120rm -f conftest.$ac_objext conftest.$ac_ext
8121fi
8122echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8123echo "${ECHO_T}$ac_cv_type_mode_t" >&6
8124if test $ac_cv_type_mode_t = yes; then
8125 :
8126else
8127
8128cat >>confdefs.h <<_ACEOF
8129#define mode_t int
8130_ACEOF
8131
8132fi
8133
8134echo "$as_me:$LINENO: checking for size_t" >&5
8135echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8136if test "${ac_cv_type_size_t+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139 cat >conftest.$ac_ext <<_ACEOF
8140#line $LINENO "configure"
8141#include "confdefs.h"
8142$ac_includes_default
8143#ifdef F77_DUMMY_MAIN
8144# ifdef __cplusplus
8145 extern "C"
8146# endif
8147 int F77_DUMMY_MAIN() { return 1; }
8148#endif
8149int
8150main ()
8151{
8152if ((size_t *) 0)
8153 return 0;
8154if (sizeof (size_t))
8155 return 0;
8156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext
8161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008172 ac_cv_type_size_t=yes
8173else
jjako286bc982003-01-28 23:17:50 +00008174 echo "$as_me: failed program was:" >&5
8175cat conftest.$ac_ext >&5
8176ac_cv_type_size_t=no
jjako52c24142002-12-16 13:33:51 +00008177fi
jjako286bc982003-01-28 23:17:50 +00008178rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008179fi
jjako286bc982003-01-28 23:17:50 +00008180echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8181echo "${ECHO_T}$ac_cv_type_size_t" >&6
8182if test $ac_cv_type_size_t = yes; then
8183 :
jjako52c24142002-12-16 13:33:51 +00008184else
jjako286bc982003-01-28 23:17:50 +00008185
8186cat >>confdefs.h <<_ACEOF
8187#define size_t unsigned
8188_ACEOF
8189
8190fi
8191
8192echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8193echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8194if test "${ac_cv_header_time+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197 cat >conftest.$ac_ext <<_ACEOF
8198#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008199#include "confdefs.h"
8200#include <sys/types.h>
8201#include <sys/time.h>
8202#include <time.h>
jjako286bc982003-01-28 23:17:50 +00008203
8204#ifdef F77_DUMMY_MAIN
8205# ifdef __cplusplus
8206 extern "C"
8207# endif
8208 int F77_DUMMY_MAIN() { return 1; }
8209#endif
8210int
8211main ()
8212{
8213if ((struct tm *) 0)
8214return 0;
8215 ;
8216 return 0;
8217}
8218_ACEOF
8219rm -f conftest.$ac_objext
8220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8221 (eval $ac_compile) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008231 ac_cv_header_time=yes
8232else
jjako286bc982003-01-28 23:17:50 +00008233 echo "$as_me: failed program was:" >&5
8234cat conftest.$ac_ext >&5
8235ac_cv_header_time=no
jjako52c24142002-12-16 13:33:51 +00008236fi
jjako286bc982003-01-28 23:17:50 +00008237rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008238fi
jjako286bc982003-01-28 23:17:50 +00008239echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8240echo "${ECHO_T}$ac_cv_header_time" >&6
jjako52c24142002-12-16 13:33:51 +00008241if test $ac_cv_header_time = yes; then
jjako286bc982003-01-28 23:17:50 +00008242
8243cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008244#define TIME_WITH_SYS_TIME 1
jjako286bc982003-01-28 23:17:50 +00008245_ACEOF
jjako52c24142002-12-16 13:33:51 +00008246
8247fi
8248
8249
jjako286bc982003-01-28 23:17:50 +00008250# Checks for library functions.
8251if test $ac_cv_c_compiler_gnu = yes; then
8252 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8253echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8254if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008256else
8257 ac_pattern="Autoconf.*'x'"
jjako286bc982003-01-28 23:17:50 +00008258 cat >conftest.$ac_ext <<_ACEOF
8259#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008260#include "confdefs.h"
8261#include <sgtty.h>
8262Autoconf TIOCGETP
jjako286bc982003-01-28 23:17:50 +00008263_ACEOF
jjako52c24142002-12-16 13:33:51 +00008264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8265 egrep "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008266 ac_cv_prog_gcc_traditional=yes
8267else
jjako52c24142002-12-16 13:33:51 +00008268 ac_cv_prog_gcc_traditional=no
8269fi
8270rm -f conftest*
8271
8272
8273 if test $ac_cv_prog_gcc_traditional = no; then
jjako286bc982003-01-28 23:17:50 +00008274 cat >conftest.$ac_ext <<_ACEOF
8275#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008276#include "confdefs.h"
8277#include <termio.h>
8278Autoconf TCGETA
jjako286bc982003-01-28 23:17:50 +00008279_ACEOF
jjako52c24142002-12-16 13:33:51 +00008280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8281 egrep "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008282 ac_cv_prog_gcc_traditional=yes
8283fi
8284rm -f conftest*
8285
8286 fi
8287fi
jjako286bc982003-01-28 23:17:50 +00008288echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8289echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
jjako52c24142002-12-16 13:33:51 +00008290 if test $ac_cv_prog_gcc_traditional = yes; then
8291 CC="$CC -traditional"
8292 fi
8293fi
8294
jjako286bc982003-01-28 23:17:50 +00008295
8296for ac_header in stdlib.h
8297do
8298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299if eval "test \"\${$as_ac_Header+set}\" = set"; then
8300 echo "$as_me:$LINENO: checking for $ac_header" >&5
8301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8302if eval "test \"\${$as_ac_Header+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304fi
8305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00008307else
jjako286bc982003-01-28 23:17:50 +00008308 # Is the header compilable?
8309echo "$as_me:$LINENO: checking $ac_header usability" >&5
8310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8311cat >conftest.$ac_ext <<_ACEOF
8312#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008313#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008314$ac_includes_default
8315#include <$ac_header>
8316_ACEOF
8317rm -f conftest.$ac_objext
8318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -s conftest.$ac_objext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00008330else
jjako286bc982003-01-28 23:17:50 +00008331 echo "$as_me: failed program was:" >&5
8332cat conftest.$ac_ext >&5
8333ac_header_compiler=no
jjako52c24142002-12-16 13:33:51 +00008334fi
jjako286bc982003-01-28 23:17:50 +00008335rm -f conftest.$ac_objext conftest.$ac_ext
8336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8337echo "${ECHO_T}$ac_header_compiler" >&6
jjako52c24142002-12-16 13:33:51 +00008338
jjako286bc982003-01-28 23:17:50 +00008339# Is the header present?
8340echo "$as_me:$LINENO: checking $ac_header presence" >&5
8341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8342cat >conftest.$ac_ext <<_ACEOF
8343#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008344#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008345#include <$ac_header>
8346_ACEOF
8347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8349 ac_status=$?
8350 egrep -v '^ *\+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } >/dev/null; then
8355 if test -s conftest.err; then
8356 ac_cpp_err=$ac_c_preproc_warn_flag
8357 else
8358 ac_cpp_err=
8359 fi
jjako52c24142002-12-16 13:33:51 +00008360else
jjako286bc982003-01-28 23:17:50 +00008361 ac_cpp_err=yes
8362fi
8363if test -z "$ac_cpp_err"; then
8364 ac_header_preproc=yes
8365else
8366 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00008367 cat conftest.$ac_ext >&5
jjako286bc982003-01-28 23:17:50 +00008368 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00008369fi
jjako286bc982003-01-28 23:17:50 +00008370rm -f conftest.err conftest.$ac_ext
8371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8372echo "${ECHO_T}$ac_header_preproc" >&6
jjako52c24142002-12-16 13:33:51 +00008373
jjako286bc982003-01-28 23:17:50 +00008374# So? What about this header?
8375case $ac_header_compiler:$ac_header_preproc in
8376 yes:no )
8377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8381 no:yes )
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8385echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8388esac
8389echo "$as_me:$LINENO: checking for $ac_header" >&5
8390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8391if eval "test \"\${$as_ac_Header+set}\" = set"; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008393else
jjako286bc982003-01-28 23:17:50 +00008394 eval "$as_ac_Header=$ac_header_preproc"
8395fi
8396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8398
8399fi
8400if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403_ACEOF
8404
jjako52c24142002-12-16 13:33:51 +00008405fi
8406
jjako286bc982003-01-28 23:17:50 +00008407done
8408
8409echo "$as_me:$LINENO: checking for working malloc" >&5
8410echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
8411if test "${ac_cv_func_malloc_works+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008413else
8414 if test "$cross_compiling" = yes; then
jjako286bc982003-01-28 23:17:50 +00008415 ac_cv_func_malloc_works=no
jjako52c24142002-12-16 13:33:51 +00008416else
jjako286bc982003-01-28 23:17:50 +00008417 cat >conftest.$ac_ext <<_ACEOF
8418#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008419#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008420#if STDC_HEADERS || HAVE_STDLIB_H
8421# include <stdlib.h>
jjako52c24142002-12-16 13:33:51 +00008422#else
jjako286bc982003-01-28 23:17:50 +00008423char *malloc ();
jjako52c24142002-12-16 13:33:51 +00008424#endif
8425
jjako286bc982003-01-28 23:17:50 +00008426#ifdef F77_DUMMY_MAIN
8427# ifdef __cplusplus
8428 extern "C"
8429# endif
8430 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00008431#endif
jjako286bc982003-01-28 23:17:50 +00008432int
8433main ()
jjako52c24142002-12-16 13:33:51 +00008434{
jjako286bc982003-01-28 23:17:50 +00008435exit (malloc (0) ? 0 : 1);
8436 ;
8437 return 0;
jjako52c24142002-12-16 13:33:51 +00008438}
jjako286bc982003-01-28 23:17:50 +00008439_ACEOF
8440rm -f conftest$ac_exeext
8441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442 (eval $ac_link) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 ac_cv_func_malloc_works=yes
jjako52c24142002-12-16 13:33:51 +00008452else
jjako286bc982003-01-28 23:17:50 +00008453 echo "$as_me: program exited with status $ac_status" >&5
8454echo "$as_me: failed program was:" >&5
8455cat conftest.$ac_ext >&5
8456( exit $ac_status )
8457ac_cv_func_malloc_works=no
jjako52c24142002-12-16 13:33:51 +00008458fi
jjako286bc982003-01-28 23:17:50 +00008459rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008460fi
jjako286bc982003-01-28 23:17:50 +00008461fi
8462echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
8463echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
8464if test $ac_cv_func_malloc_works = yes; then
8465
8466cat >>confdefs.h <<\_ACEOF
8467#define HAVE_MALLOC 1
8468_ACEOF
jjako52c24142002-12-16 13:33:51 +00008469
8470fi
8471
jjako286bc982003-01-28 23:17:50 +00008472echo "$as_me:$LINENO: checking for working memcmp" >&5
8473echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8474if test "${ac_cv_func_memcmp_working+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477 if test "$cross_compiling" = yes; then
8478 ac_cv_func_memcmp_working=no
8479else
8480 cat >conftest.$ac_ext <<_ACEOF
8481#line $LINENO "configure"
8482#include "confdefs.h"
jjako52c24142002-12-16 13:33:51 +00008483
jjako286bc982003-01-28 23:17:50 +00008484#ifdef F77_DUMMY_MAIN
8485# ifdef __cplusplus
8486 extern "C"
8487# endif
8488 int F77_DUMMY_MAIN() { return 1; }
8489#endif
8490int
8491main ()
8492{
8493
8494 /* Some versions of memcmp are not 8-bit clean. */
8495 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8496 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8497 exit (1);
8498
8499 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8500 or more and with at least one buffer not starting on a 4-byte boundary.
8501 William Lewis provided this test program. */
8502 {
8503 char foo[21];
8504 char bar[21];
8505 int i;
8506 for (i = 0; i < 4; i++)
8507 {
8508 char *a = foo + i;
8509 char *b = bar + i;
8510 strcpy (a, "--------01111111");
8511 strcpy (b, "--------10000000");
8512 if (memcmp (a, b, 16) >= 0)
8513 exit (1);
8514 }
8515 exit (0);
8516 }
8517
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest$ac_exeext
8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 ac_cv_func_memcmp_working=yes
8534else
8535 echo "$as_me: program exited with status $ac_status" >&5
8536echo "$as_me: failed program was:" >&5
8537cat conftest.$ac_ext >&5
8538( exit $ac_status )
8539ac_cv_func_memcmp_working=no
jjako52c24142002-12-16 13:33:51 +00008540fi
jjako286bc982003-01-28 23:17:50 +00008541rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8542fi
8543fi
8544echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8545echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8546test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
jjako52c24142002-12-16 13:33:51 +00008547
jjako286bc982003-01-28 23:17:50 +00008548
8549
8550
8551
8552
8553
8554
8555
8556for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol
jjako52c24142002-12-16 13:33:51 +00008557do
jjako286bc982003-01-28 23:17:50 +00008558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8559echo "$as_me:$LINENO: checking for $ac_func" >&5
8560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8561if eval "test \"\${$as_ac_var+set}\" = set"; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008563else
jjako286bc982003-01-28 23:17:50 +00008564 cat >conftest.$ac_ext <<_ACEOF
8565#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008566#include "confdefs.h"
8567/* System header to define __stub macros and hopefully few prototypes,
jjako286bc982003-01-28 23:17:50 +00008568 which can conflict with char $ac_func (); below. */
jjako52c24142002-12-16 13:33:51 +00008569#include <assert.h>
8570/* Override any gcc2 internal prototype to avoid an error. */
jjako286bc982003-01-28 23:17:50 +00008571#ifdef __cplusplus
8572extern "C"
8573#endif
jjako52c24142002-12-16 13:33:51 +00008574/* We use char because int might match the return type of a gcc2
jjako286bc982003-01-28 23:17:50 +00008575 builtin and then its argument prototype would still apply. */
8576char $ac_func ();
8577char (*f) ();
jjako52c24142002-12-16 13:33:51 +00008578
jjako286bc982003-01-28 23:17:50 +00008579#ifdef F77_DUMMY_MAIN
8580# ifdef __cplusplus
8581 extern "C"
8582# endif
8583 int F77_DUMMY_MAIN() { return 1; }
8584#endif
8585int
8586main ()
8587{
jjako52c24142002-12-16 13:33:51 +00008588/* The GNU C library defines this for functions which it implements
8589 to always fail with ENOSYS. Some functions are actually named
8590 something starting with __ and the normal name is an alias. */
8591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8592choke me
8593#else
jjako286bc982003-01-28 23:17:50 +00008594f = $ac_func;
jjako52c24142002-12-16 13:33:51 +00008595#endif
8596
jjako286bc982003-01-28 23:17:50 +00008597 ;
8598 return 0;
8599}
8600_ACEOF
8601rm -f conftest.$ac_objext conftest$ac_exeext
8602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603 (eval $ac_link) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 eval "$as_ac_var=yes"
jjako52c24142002-12-16 13:33:51 +00008614else
jjako286bc982003-01-28 23:17:50 +00008615 echo "$as_me: failed program was:" >&5
8616cat conftest.$ac_ext >&5
8617eval "$as_ac_var=no"
jjako52c24142002-12-16 13:33:51 +00008618fi
jjako286bc982003-01-28 23:17:50 +00008619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008620fi
jjako286bc982003-01-28 23:17:50 +00008621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8623if test `eval echo '${'$as_ac_var'}'` = yes; then
8624 cat >>confdefs.h <<_ACEOF
8625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8626_ACEOF
jjako52c24142002-12-16 13:33:51 +00008627
jjako52c24142002-12-16 13:33:51 +00008628fi
8629done
8630
8631
jjako286bc982003-01-28 23:17:50 +00008632am__api_version="1.6"
8633echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8634echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008635# Just in case
8636sleep 1
jjako286bc982003-01-28 23:17:50 +00008637echo timestamp > conftest.file
jjako52c24142002-12-16 13:33:51 +00008638# Do `set' in a subshell so we don't clobber the current shell's
8639# arguments. Must try -L first in case configure is actually a
8640# symlink; some systems play weird games with the mod time of symlinks
8641# (eg FreeBSD returns the mod time of the symlink's containing
8642# directory).
8643if (
jjako286bc982003-01-28 23:17:50 +00008644 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
jjako52c24142002-12-16 13:33:51 +00008645 if test "$*" = "X"; then
8646 # -L didn't work.
jjako286bc982003-01-28 23:17:50 +00008647 set X `ls -t $srcdir/configure conftest.file`
jjako52c24142002-12-16 13:33:51 +00008648 fi
jjako286bc982003-01-28 23:17:50 +00008649 rm -f conftest.file
8650 if test "$*" != "X $srcdir/configure conftest.file" \
8651 && test "$*" != "X conftest.file $srcdir/configure"; then
jjako52c24142002-12-16 13:33:51 +00008652
8653 # If neither matched, then we have a broken ls. This can happen
8654 # if, for instance, CONFIG_SHELL is bash and it inherits a
8655 # broken ls alias from the environment. This has actually
8656 # happened. Such a system could not be considered "sane".
jjako286bc982003-01-28 23:17:50 +00008657 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
8658alias in your environment" >&5
8659echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
8660alias in your environment" >&2;}
8661 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00008662 fi
8663
jjako286bc982003-01-28 23:17:50 +00008664 test "$2" = conftest.file
jjako52c24142002-12-16 13:33:51 +00008665 )
8666then
8667 # Ok.
8668 :
8669else
jjako286bc982003-01-28 23:17:50 +00008670 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8671Check your system clock" >&5
8672echo "$as_me: error: newly created file is older than distributed files!
8673Check your system clock" >&2;}
8674 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00008675fi
jjako286bc982003-01-28 23:17:50 +00008676echo "$as_me:$LINENO: result: yes" >&5
8677echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00008678test "$program_prefix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00008679 program_transform_name="s,^,$program_prefix,;$program_transform_name"
jjako52c24142002-12-16 13:33:51 +00008680# Use a double $ so make ignores it.
8681test "$program_suffix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00008682 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8683# Double any \ or $. echo might interpret backslashes.
8684# By default was `s,x,x', remove it if useless.
8685cat <<\_ACEOF >conftest.sed
8686s/[\\$]/&&/g;s/;s,x,x,$//
8687_ACEOF
8688program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8689rm conftest.sed
jjako52c24142002-12-16 13:33:51 +00008690
jjako52c24142002-12-16 13:33:51 +00008691
jjako286bc982003-01-28 23:17:50 +00008692# expand $ac_aux_dir to an absolute path
8693am_aux_dir=`cd $ac_aux_dir && pwd`
8694
8695test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8696# Use eval to expand $SHELL
8697if eval "$MISSING --run true"; then
8698 am_missing_run="$MISSING --run "
jjako52c24142002-12-16 13:33:51 +00008699else
jjako286bc982003-01-28 23:17:50 +00008700 am_missing_run=
8701 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8702echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8703fi
8704
8705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8706echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 cat >conftest.make <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008712all:
8713 @echo 'ac_maketemp="${MAKE}"'
jjako286bc982003-01-28 23:17:50 +00008714_ACEOF
jjako52c24142002-12-16 13:33:51 +00008715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jjako286bc982003-01-28 23:17:50 +00008716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
jjako52c24142002-12-16 13:33:51 +00008717if test -n "$ac_maketemp"; then
8718 eval ac_cv_prog_make_${ac_make}_set=yes
8719else
8720 eval ac_cv_prog_make_${ac_make}_set=no
8721fi
jjako286bc982003-01-28 23:17:50 +00008722rm -f conftest.make
jjako52c24142002-12-16 13:33:51 +00008723fi
8724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
jjako286bc982003-01-28 23:17:50 +00008725 echo "$as_me:$LINENO: result: yes" >&5
8726echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00008727 SET_MAKE=
8728else
jjako286bc982003-01-28 23:17:50 +00008729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008731 SET_MAKE="MAKE=${MAKE-make}"
8732fi
8733
jjako286bc982003-01-28 23:17:50 +00008734rm -f .deps 2>/dev/null
8735mkdir .deps 2>/dev/null
8736if test -d .deps; then
8737 DEPDIR=.deps
8738else
8739 # MS-DOS does not allow filenames that begin with a dot.
8740 DEPDIR=_deps
jjako52c24142002-12-16 13:33:51 +00008741fi
jjako286bc982003-01-28 23:17:50 +00008742rmdir .deps 2>/dev/null
8743
8744
8745ac_config_commands="$ac_config_commands depfiles"
8746
8747
8748am_make=${MAKE-make}
8749cat > confinc << 'END'
8750doit:
8751 @echo done
8752END
8753# If we don't find an include directive, just comment out the code.
8754echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8755echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8756am__include="#"
8757am__quote=
8758_am_result=none
8759# First try GNU make style include.
8760echo "include confinc" > confmf
8761# We grep out `Entering directory' and `Leaving directory'
8762# messages which can occur if `w' ends up in MAKEFLAGS.
8763# In particular we don't look at `^make:' because GNU make might
8764# be invoked under some other name (usually "gmake"), in which
8765# case it prints its new name instead of `make'.
8766if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
8767 am__include=include
8768 am__quote=
8769 _am_result=GNU
8770fi
8771# Now try BSD make style include.
8772if test "$am__include" = "#"; then
8773 echo '.include "confinc"' > confmf
8774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8775 am__include=.include
8776 am__quote="\""
8777 _am_result=BSD
8778 fi
8779fi
8780
8781
8782echo "$as_me:$LINENO: result: $_am_result" >&5
8783echo "${ECHO_T}$_am_result" >&6
8784rm -f confinc confmf
8785
8786# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8787if test "${enable_dependency_tracking+set}" = set; then
8788 enableval="$enable_dependency_tracking"
8789
8790fi;
8791if test "x$enable_dependency_tracking" != xno; then
8792 am_depcomp="$ac_aux_dir/depcomp"
8793 AMDEPBACKSLASH='\'
8794fi
8795
8796
8797if test "x$enable_dependency_tracking" != xno; then
8798 AMDEP_TRUE=
8799 AMDEP_FALSE='#'
8800else
8801 AMDEP_TRUE='#'
8802 AMDEP_FALSE=
8803fi
8804
8805
8806
8807 # test to see if srcdir already configured
8808if test "`cd $srcdir && pwd`" != "`pwd`" &&
8809 test -f $srcdir/config.status; then
8810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8812 { (exit 1); exit 1; }; }
8813fi
8814
8815# Define the identity of the package.
8816 PACKAGE=openggsn
8817 VERSION=0.52
8818
8819
8820cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00008821#define PACKAGE "$PACKAGE"
jjako286bc982003-01-28 23:17:50 +00008822_ACEOF
jjako52c24142002-12-16 13:33:51 +00008823
jjako286bc982003-01-28 23:17:50 +00008824
8825cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00008826#define VERSION "$VERSION"
jjako286bc982003-01-28 23:17:50 +00008827_ACEOF
8828
8829# Some tools Automake needs.
8830
8831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
jjako52c24142002-12-16 13:33:51 +00008832
8833
jjako286bc982003-01-28 23:17:50 +00008834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
jjako52c24142002-12-16 13:33:51 +00008835
jjako286bc982003-01-28 23:17:50 +00008836
8837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8838
8839
8840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8841
8842
8843MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8844
8845
8846AMTAR=${AMTAR-"${am_missing_run}tar"}
8847
8848install_sh=${install_sh-"$am_aux_dir/install-sh"}
8849
8850# Installed binaries are usually stripped using `strip' when the user
8851# run `make install-strip'. However `strip' might not be the right
8852# tool to use in cross-compilation environments, therefore Automake
8853# will honor the `STRIP' environment variable to overrule this program.
8854if test "$cross_compiling" != no; then
8855 if test -n "$ac_tool_prefix"; then
8856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8857set dummy ${ac_tool_prefix}strip; ac_word=$2
8858echo "$as_me:$LINENO: checking for $ac_word" >&5
8859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8860if test "${ac_cv_prog_STRIP+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008862else
jjako286bc982003-01-28 23:17:50 +00008863 if test -n "$STRIP"; then
8864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8865else
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877done
8878done
8879
8880fi
8881fi
8882STRIP=$ac_cv_prog_STRIP
8883if test -n "$STRIP"; then
8884 echo "$as_me:$LINENO: result: $STRIP" >&5
8885echo "${ECHO_T}$STRIP" >&6
8886else
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008889fi
8890
jjako286bc982003-01-28 23:17:50 +00008891fi
8892if test -z "$ac_cv_prog_STRIP"; then
8893 ac_ct_STRIP=$STRIP
8894 # Extract the first word of "strip", so it can be a program name with args.
8895set dummy strip; ac_word=$2
8896echo "$as_me:$LINENO: checking for $ac_word" >&5
8897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008900else
jjako286bc982003-01-28 23:17:50 +00008901 if test -n "$ac_ct_STRIP"; then
8902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8903else
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8911 ac_cv_prog_ac_ct_STRIP="strip"
8912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8913 break 2
8914 fi
8915done
8916done
8917
8918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8919fi
8920fi
8921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8922if test -n "$ac_ct_STRIP"; then
8923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8924echo "${ECHO_T}$ac_ct_STRIP" >&6
8925else
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008928fi
8929
jjako286bc982003-01-28 23:17:50 +00008930 STRIP=$ac_ct_STRIP
jjako52c24142002-12-16 13:33:51 +00008931else
jjako286bc982003-01-28 23:17:50 +00008932 STRIP="$ac_cv_prog_STRIP"
jjako52c24142002-12-16 13:33:51 +00008933fi
8934
jjako286bc982003-01-28 23:17:50 +00008935fi
8936INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8937
8938# We need awk for the "check" target. The system "awk" is bad on
8939# some platforms.
8940
8941
8942depcc="$CC" am_compiler_list=
8943
8944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8946if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008948else
jjako286bc982003-01-28 23:17:50 +00008949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8950 # We make a subdir and do the tests there. Otherwise we can end up
8951 # making bogus files that we don't know about and never remove. For
8952 # instance it was reported that on HP-UX the gcc test will end up
8953 # making a dummy file named `D' -- because `-MD' means `put the output
8954 # in D'.
8955 mkdir conftest.dir
8956 # Copy depcomp to subdir because otherwise we won't find it if we're
8957 # using a relative directory.
8958 cp "$am_depcomp" conftest.dir
8959 cd conftest.dir
8960
8961 am_cv_CC_dependencies_compiler_type=none
8962 if test "$am_compiler_list" = ""; then
8963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8964 fi
8965 for depmode in $am_compiler_list; do
8966 # We need to recreate these files for each test, as the compiler may
8967 # overwrite some of them when testing with obscure command lines.
8968 # This happens at least with the AIX C compiler.
8969 echo '#include "conftest.h"' > conftest.c
8970 echo 'int i;' > conftest.h
8971 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8972
8973 case $depmode in
8974 nosideeffect)
8975 # after this tag, mechanisms are not by side-effect, so they'll
8976 # only be used when explicitly requested
8977 if test "x$enable_dependency_tracking" = xyes; then
8978 continue
8979 else
8980 break
8981 fi
8982 ;;
8983 none) break ;;
8984 esac
8985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8986 # mode. It turns out that the SunPro C++ compiler does not properly
8987 # handle `-M -o', and we need to detect this.
8988 if depmode=$depmode \
8989 source=conftest.c object=conftest.o \
8990 depfile=conftest.Po tmpdepfile=conftest.TPo \
8991 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8992 grep conftest.h conftest.Po > /dev/null 2>&1 &&
8993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8994 am_cv_CC_dependencies_compiler_type=$depmode
8995 break
8996 fi
8997 done
8998
8999 cd ..
9000 rm -rf conftest.dir
9001else
9002 am_cv_CC_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00009003fi
9004
jjako286bc982003-01-28 23:17:50 +00009005fi
9006echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
9007echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
9008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
9009
9010
9011depcc="$CXX" am_compiler_list=
9012
9013echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
9014echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
9015if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00009017else
jjako286bc982003-01-28 23:17:50 +00009018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9019 # We make a subdir and do the tests there. Otherwise we can end up
9020 # making bogus files that we don't know about and never remove. For
9021 # instance it was reported that on HP-UX the gcc test will end up
9022 # making a dummy file named `D' -- because `-MD' means `put the output
9023 # in D'.
9024 mkdir conftest.dir
9025 # Copy depcomp to subdir because otherwise we won't find it if we're
9026 # using a relative directory.
9027 cp "$am_depcomp" conftest.dir
9028 cd conftest.dir
9029
9030 am_cv_CXX_dependencies_compiler_type=none
9031 if test "$am_compiler_list" = ""; then
9032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9033 fi
9034 for depmode in $am_compiler_list; do
9035 # We need to recreate these files for each test, as the compiler may
9036 # overwrite some of them when testing with obscure command lines.
9037 # This happens at least with the AIX C compiler.
9038 echo '#include "conftest.h"' > conftest.c
9039 echo 'int i;' > conftest.h
9040 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
9041
9042 case $depmode in
9043 nosideeffect)
9044 # after this tag, mechanisms are not by side-effect, so they'll
9045 # only be used when explicitly requested
9046 if test "x$enable_dependency_tracking" = xyes; then
9047 continue
9048 else
9049 break
9050 fi
9051 ;;
9052 none) break ;;
9053 esac
9054 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9055 # mode. It turns out that the SunPro C++ compiler does not properly
9056 # handle `-M -o', and we need to detect this.
9057 if depmode=$depmode \
9058 source=conftest.c object=conftest.o \
9059 depfile=conftest.Po tmpdepfile=conftest.TPo \
9060 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
9061 grep conftest.h conftest.Po > /dev/null 2>&1 &&
9062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9063 am_cv_CXX_dependencies_compiler_type=$depmode
9064 break
9065 fi
9066 done
9067
9068 cd ..
9069 rm -rf conftest.dir
9070else
9071 am_cv_CXX_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00009072fi
9073
jjako286bc982003-01-28 23:17:50 +00009074fi
9075echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9076echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
9077CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
jjako52c24142002-12-16 13:33:51 +00009078
9079
jjako286bc982003-01-28 23:17:50 +00009080
9081
9082ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile"
9083
9084cat >confcache <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009085# This file is a shell script that caches the results of configure
9086# tests run on this system so they can be shared between configure
jjako286bc982003-01-28 23:17:50 +00009087# scripts and configure runs, see configure's option --config-cache.
9088# It is not useful on other systems. If it contains results you don't
9089# want to keep, you may remove or edit it.
jjako52c24142002-12-16 13:33:51 +00009090#
jjako286bc982003-01-28 23:17:50 +00009091# config.status only pays attention to the cache file if you give it
9092# the --recheck option to rerun configure.
jjako52c24142002-12-16 13:33:51 +00009093#
jjako286bc982003-01-28 23:17:50 +00009094# `ac_cv_env_foo' variables (set or unset) will be overriden when
9095# loading this file, other *unset* `ac_cv_foo' will be assigned the
9096# following values.
9097
9098_ACEOF
9099
jjako52c24142002-12-16 13:33:51 +00009100# The following way of writing the cache mishandles newlines in values,
9101# but we know of no workaround that is simple, portable, and efficient.
9102# So, don't put newlines in cache variables' values.
9103# Ultrix sh set writes to stderr and can't be redirected directly,
9104# and sets the high bit in the cache file unless we assign to the vars.
jjako286bc982003-01-28 23:17:50 +00009105{
9106 (set) 2>&1 |
9107 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9108 *ac_space=\ *)
9109 # `set' does not quote correctly, so add quotes (double-quote
9110 # substitution turns \\\\ into \\, and sed turns \\ into \).
9111 sed -n \
9112 "s/'/'\\\\''/g;
9113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9114 ;;
9115 *)
9116 # `set' quotes correctly as required by POSIX, so do not add quotes.
9117 sed -n \
9118 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9119 ;;
9120 esac;
9121} |
9122 sed '
9123 t clear
9124 : clear
9125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9126 t end
9127 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9128 : end' >>confcache
9129if cmp -s $cache_file confcache; then :; else
jjako52c24142002-12-16 13:33:51 +00009130 if test -w $cache_file; then
jjako286bc982003-01-28 23:17:50 +00009131 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9132 cat confcache >$cache_file
jjako52c24142002-12-16 13:33:51 +00009133 else
9134 echo "not updating unwritable cache $cache_file"
9135 fi
9136fi
9137rm -f confcache
9138
jjako52c24142002-12-16 13:33:51 +00009139test "x$prefix" = xNONE && prefix=$ac_default_prefix
9140# Let make expand exec_prefix.
9141test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9142
jjako286bc982003-01-28 23:17:50 +00009143# VPATH may cause trouble with some makes, so we remove $(srcdir),
9144# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9145# trailing colons and then remove the whole line if VPATH becomes empty
9146# (actually we leave an empty line to preserve line numbers).
jjako52c24142002-12-16 13:33:51 +00009147if test "x$srcdir" = x.; then
jjako286bc982003-01-28 23:17:50 +00009148 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9149s/:*\$(srcdir):*/:/;
9150s/:*\${srcdir}:*/:/;
9151s/:*@srcdir@:*/:/;
9152s/^\([^=]*=[ ]*\):*/\1/;
9153s/:*$//;
9154s/^[^=]*=[ ]*$//;
9155}'
jjako52c24142002-12-16 13:33:51 +00009156fi
9157
jjako286bc982003-01-28 23:17:50 +00009158DEFS=-DHAVE_CONFIG_H
jjako52c24142002-12-16 13:33:51 +00009159
jjako286bc982003-01-28 23:17:50 +00009160if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9161 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9162Usually this means the macro was only invoked conditionally." >&5
9163echo "$as_me: error: conditional \"AMDEP\" was never defined.
9164Usually this means the macro was only invoked conditionally." >&2;}
9165 { (exit 1); exit 1; }; }
9166fi
jjako52c24142002-12-16 13:33:51 +00009167
jjako52c24142002-12-16 13:33:51 +00009168: ${CONFIG_STATUS=./config.status}
jjako286bc982003-01-28 23:17:50 +00009169ac_clean_files_save=$ac_clean_files
9170ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9171{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9172echo "$as_me: creating $CONFIG_STATUS" >&6;}
9173cat >$CONFIG_STATUS <<_ACEOF
9174#! $SHELL
9175# Generated by $as_me.
jjako52c24142002-12-16 13:33:51 +00009176# Run this file to recreate the current configuration.
jjako52c24142002-12-16 13:33:51 +00009177# Compiler output produced by configure, useful for debugging
jjako286bc982003-01-28 23:17:50 +00009178# configure, is in config.log if it exists.
jjako52c24142002-12-16 13:33:51 +00009179
jjako286bc982003-01-28 23:17:50 +00009180debug=false
9181SHELL=\${CONFIG_SHELL-$SHELL}
9182_ACEOF
jjako52c24142002-12-16 13:33:51 +00009183
jjako286bc982003-01-28 23:17:50 +00009184cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009185
jjako286bc982003-01-28 23:17:50 +00009186## --------------------- ##
9187## M4sh Initialization. ##
9188## --------------------- ##
jjako52c24142002-12-16 13:33:51 +00009189
jjako286bc982003-01-28 23:17:50 +00009190# Be Bourne compatible
9191if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9192 emulate sh
9193 NULLCMD=:
9194elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9195 set -o posix
jjako52c24142002-12-16 13:33:51 +00009196fi
jjako52c24142002-12-16 13:33:51 +00009197
jjako286bc982003-01-28 23:17:50 +00009198# NLS nuisances.
9199# Support unset when possible.
9200if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9201 as_unset=unset
9202else
9203 as_unset=false
9204fi
jjako52c24142002-12-16 13:33:51 +00009205
jjako286bc982003-01-28 23:17:50 +00009206(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9207 { $as_unset LANG || test "${LANG+set}" != set; } ||
9208 { LANG=C; export LANG; }
9209(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9210 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9211 { LC_ALL=C; export LC_ALL; }
9212(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9213 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9214 { LC_TIME=C; export LC_TIME; }
9215(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9216 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9217 { LC_CTYPE=C; export LC_CTYPE; }
9218(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9219 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9220 { LANGUAGE=C; export LANGUAGE; }
9221(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9222 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9223 { LC_COLLATE=C; export LC_COLLATE; }
9224(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9225 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9226 { LC_NUMERIC=C; export LC_NUMERIC; }
9227(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9228 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9229 { LC_MESSAGES=C; export LC_MESSAGES; }
9230
9231
9232# Name of the executable.
9233as_me=`(basename "$0") 2>/dev/null ||
9234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9235 X"$0" : 'X\(//\)$' \| \
9236 X"$0" : 'X\(/\)$' \| \
9237 . : '\(.\)' 2>/dev/null ||
9238echo X/"$0" |
9239 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9240 /^X\/\(\/\/\)$/{ s//\1/; q; }
9241 /^X\/\(\/\).*/{ s//\1/; q; }
9242 s/.*/./; q'`
9243
9244# PATH needs CR, and LINENO needs CR and PATH.
9245# Avoid depending upon Character Ranges.
9246as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9247as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9248as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9249as_cr_digits='0123456789'
9250as_cr_alnum=$as_cr_Letters$as_cr_digits
9251
9252# The user is always right.
9253if test "${PATH_SEPARATOR+set}" != set; then
9254 echo "#! /bin/sh" >conftest.sh
9255 echo "exit 0" >>conftest.sh
9256 chmod +x conftest.sh
9257 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9258 PATH_SEPARATOR=';'
9259 else
9260 PATH_SEPARATOR=:
9261 fi
9262 rm -f conftest.sh
9263fi
9264
9265
9266 as_lineno_1=$LINENO
9267 as_lineno_2=$LINENO
9268 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9269 test "x$as_lineno_1" != "x$as_lineno_2" &&
9270 test "x$as_lineno_3" = "x$as_lineno_2" || {
9271 # Find who we are. Look in the path if we contain no path at all
9272 # relative or not.
9273 case $0 in
9274 *[\\/]* ) as_myself=$0 ;;
9275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276for as_dir in $PATH
9277do
9278 IFS=$as_save_IFS
9279 test -z "$as_dir" && as_dir=.
9280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9281done
9282
9283 ;;
9284 esac
9285 # We did not find ourselves, most probably we were run as `sh COMMAND'
9286 # in which case we are not to be found in the path.
9287 if test "x$as_myself" = x; then
9288 as_myself=$0
9289 fi
9290 if test ! -f "$as_myself"; then
9291 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9292echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9293 { (exit 1); exit 1; }; }
9294 fi
9295 case $CONFIG_SHELL in
9296 '')
9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9299do
9300 IFS=$as_save_IFS
9301 test -z "$as_dir" && as_dir=.
9302 for as_base in sh bash ksh sh5; do
9303 case $as_dir in
9304 /*)
9305 if ("$as_dir/$as_base" -c '
9306 as_lineno_1=$LINENO
9307 as_lineno_2=$LINENO
9308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9309 test "x$as_lineno_1" != "x$as_lineno_2" &&
9310 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9311 CONFIG_SHELL=$as_dir/$as_base
9312 export CONFIG_SHELL
9313 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9314 fi;;
9315 esac
9316 done
9317done
9318;;
jjako52c24142002-12-16 13:33:51 +00009319 esac
9320
jjako286bc982003-01-28 23:17:50 +00009321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9322 # uniformly replaced by the line number. The first 'sed' inserts a
9323 # line-number line before each line; the second 'sed' does the real
9324 # work. The second script uses 'N' to pair each line-number line
9325 # with the numbered line, and appends trailing '-' during
9326 # substitution so that $LINENO is not a special case at line end.
9327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9329 sed '=' <$as_myself |
9330 sed '
9331 N
9332 s,$,-,
9333 : loop
9334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9335 t loop
9336 s,-$,,
9337 s,^['$as_cr_digits']*\n,,
9338 ' >$as_me.lineno &&
9339 chmod +x $as_me.lineno ||
9340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9341echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9342 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009343
jjako286bc982003-01-28 23:17:50 +00009344 # Don't try to exec as it changes $[0], causing all sort of problems
9345 # (the dirname of $[0] is not the place where we might find the
9346 # original and so on. Autoconf is especially sensible to this).
9347 . ./$as_me.lineno
9348 # Exit status is that of the last command.
9349 exit
9350}
9351
9352
9353case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9354 *c*,-n*) ECHO_N= ECHO_C='
9355' ECHO_T=' ' ;;
9356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9358esac
9359
9360if expr a : '\(a\)' >/dev/null 2>&1; then
9361 as_expr=expr
9362else
9363 as_expr=false
9364fi
9365
9366rm -f conf$$ conf$$.exe conf$$.file
9367echo >conf$$.file
9368if ln -s conf$$.file conf$$ 2>/dev/null; then
9369 # We could just check for DJGPP; but this test a) works b) is more generic
9370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9371 if test -f conf$$.exe; then
9372 # Don't use ln at all; we don't have any links
9373 as_ln_s='cp -p'
jjako52c24142002-12-16 13:33:51 +00009374 else
jjako286bc982003-01-28 23:17:50 +00009375 as_ln_s='ln -s'
9376 fi
9377elif ln conf$$.file conf$$ 2>/dev/null; then
9378 as_ln_s=ln
9379else
9380 as_ln_s='cp -p'
9381fi
9382rm -f conf$$ conf$$.exe conf$$.file
9383
9384as_executable_p="test -f"
9385
9386# Sed expression to map a string onto a valid CPP name.
9387as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9388
9389# Sed expression to map a string onto a valid variable name.
9390as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9391
9392
9393# IFS
9394# We need space, tab and new line, in precisely that order.
9395as_nl='
9396'
9397IFS=" $as_nl"
9398
9399# CDPATH.
9400$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9401
9402exec 6>&1
9403
9404# Open the log real soon, to keep \$[0] and so on meaningful, and to
9405# report actual input values of CONFIG_FILES etc. instead of their
9406# values after options handling. Logging --version etc. is OK.
9407exec 5>>config.log
9408{
9409 echo
9410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9411## Running $as_me. ##
9412_ASBOX
9413} >&5
9414cat >&5 <<_CSEOF
9415
9416This file was extended by openggsn $as_me 0.52, which was
9417generated by GNU Autoconf 2.53. Invocation command line was
9418
9419 CONFIG_FILES = $CONFIG_FILES
9420 CONFIG_HEADERS = $CONFIG_HEADERS
9421 CONFIG_LINKS = $CONFIG_LINKS
9422 CONFIG_COMMANDS = $CONFIG_COMMANDS
9423 $ $0 $@
9424
9425_CSEOF
9426echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9427echo >&5
9428_ACEOF
9429
9430# Files that config.status was made for.
9431if test -n "$ac_config_files"; then
9432 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9433fi
9434
9435if test -n "$ac_config_headers"; then
9436 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9437fi
9438
9439if test -n "$ac_config_links"; then
9440 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9441fi
9442
9443if test -n "$ac_config_commands"; then
9444 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9445fi
9446
9447cat >>$CONFIG_STATUS <<\_ACEOF
9448
9449ac_cs_usage="\
9450\`$as_me' instantiates files from templates according to the
9451current configuration.
9452
9453Usage: $0 [OPTIONS] [FILE]...
9454
9455 -h, --help print this help, then exit
9456 -V, --version print version number, then exit
9457 -d, --debug don't remove temporary files
9458 --recheck update $as_me by reconfiguring in the same conditions
9459 --file=FILE[:TEMPLATE]
9460 instantiate the configuration file FILE
9461 --header=FILE[:TEMPLATE]
9462 instantiate the configuration header FILE
9463
9464Configuration files:
9465$config_files
9466
9467Configuration headers:
9468$config_headers
9469
9470Configuration commands:
9471$config_commands
9472
9473Report bugs to <bug-autoconf@gnu.org>."
9474_ACEOF
9475
9476cat >>$CONFIG_STATUS <<_ACEOF
9477ac_cs_version="\\
9478openggsn config.status 0.52
9479configured by $0, generated by GNU Autoconf 2.53,
9480 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9481
9482Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9483Free Software Foundation, Inc.
9484This config.status script is free software; the Free Software Foundation
9485gives unlimited permission to copy, distribute and modify it."
9486srcdir=$srcdir
9487INSTALL="$INSTALL"
9488_ACEOF
9489
9490cat >>$CONFIG_STATUS <<\_ACEOF
9491# If no file are specified by the user, then we need to provide default
9492# value. By we need to know if files were specified by the user.
9493ac_need_defaults=:
9494while test $# != 0
9495do
9496 case $1 in
9497 --*=*)
9498 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9499 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9500 shift
9501 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9502 shift
9503 ;;
9504 -*);;
9505 *) # This is not an option, so the user has probably given explicit
9506 # arguments.
9507 ac_need_defaults=false;;
9508 esac
9509
9510 case $1 in
9511 # Handling of the options.
9512_ACEOF
9513cat >>$CONFIG_STATUS <<_ACEOF
9514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9515 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9516 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9517_ACEOF
9518cat >>$CONFIG_STATUS <<\_ACEOF
9519 --version | --vers* | -V )
9520 echo "$ac_cs_version"; exit 0 ;;
9521 --he | --h)
9522 # Conflict between --help and --header
9523 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9524Try \`$0 --help' for more information." >&5
9525echo "$as_me: error: ambiguous option: $1
9526Try \`$0 --help' for more information." >&2;}
9527 { (exit 1); exit 1; }; };;
9528 --help | --hel | -h )
9529 echo "$ac_cs_usage"; exit 0 ;;
9530 --debug | --d* | -d )
9531 debug=: ;;
9532 --file | --fil | --fi | --f )
9533 shift
9534 CONFIG_FILES="$CONFIG_FILES $1"
9535 ac_need_defaults=false;;
9536 --header | --heade | --head | --hea )
9537 shift
9538 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9539 ac_need_defaults=false;;
9540
9541 # This is an error.
9542 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9543Try \`$0 --help' for more information." >&5
9544echo "$as_me: error: unrecognized option: $1
9545Try \`$0 --help' for more information." >&2;}
9546 { (exit 1); exit 1; }; } ;;
9547
9548 *) ac_config_targets="$ac_config_targets $1" ;;
9549
9550 esac
9551 shift
9552done
9553
9554_ACEOF
9555
9556cat >>$CONFIG_STATUS <<_ACEOF
9557#
9558# INIT-COMMANDS section.
9559#
9560
9561AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9562
9563_ACEOF
9564
9565
9566
9567cat >>$CONFIG_STATUS <<\_ACEOF
9568for ac_config_target in $ac_config_targets
9569do
9570 case "$ac_config_target" in
9571 # Handling of arguments.
9572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9573 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9574 "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;;
9575 "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;;
9576 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9577 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
9578 "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;;
9579 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9580 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9581 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9582 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9583 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9584echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9585 { (exit 1); exit 1; }; };;
9586 esac
9587done
9588
9589# If the user did not use the arguments to specify the items to instantiate,
9590# then the envvar interface is used. Set only those that are not.
9591# We use the long form for the default assignment because of an extremely
9592# bizarre bug on SunOS 4.1.3.
9593if $ac_need_defaults; then
9594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9597fi
9598
9599# Create a temporary directory, and hook for its removal unless debugging.
9600$debug ||
9601{
9602 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9603 trap '{ (exit 1); exit 1; }' 1 2 13 15
9604}
9605
9606# Create a (secure) tmp directory for tmp files.
9607: ${TMPDIR=/tmp}
9608{
9609 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9610 test -n "$tmp" && test -d "$tmp"
9611} ||
9612{
9613 tmp=$TMPDIR/cs$$-$RANDOM
9614 (umask 077 && mkdir $tmp)
9615} ||
9616{
9617 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9618 { (exit 1); exit 1; }
9619}
9620
9621_ACEOF
9622
9623cat >>$CONFIG_STATUS <<_ACEOF
9624
9625#
9626# CONFIG_FILES section.
9627#
9628
9629# No need to generate the scripts if there are no CONFIG_FILES.
9630# This happens for instance when ./config.status config.h
9631if test -n "\$CONFIG_FILES"; then
9632 # Protect against being on the right side of a sed subst in config.status.
9633 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9634 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9635s,@SHELL@,$SHELL,;t t
9636s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9637s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9638s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9639s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9640s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9641s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9642s,@exec_prefix@,$exec_prefix,;t t
9643s,@prefix@,$prefix,;t t
9644s,@program_transform_name@,$program_transform_name,;t t
9645s,@bindir@,$bindir,;t t
9646s,@sbindir@,$sbindir,;t t
9647s,@libexecdir@,$libexecdir,;t t
9648s,@datadir@,$datadir,;t t
9649s,@sysconfdir@,$sysconfdir,;t t
9650s,@sharedstatedir@,$sharedstatedir,;t t
9651s,@localstatedir@,$localstatedir,;t t
9652s,@libdir@,$libdir,;t t
9653s,@includedir@,$includedir,;t t
9654s,@oldincludedir@,$oldincludedir,;t t
9655s,@infodir@,$infodir,;t t
9656s,@mandir@,$mandir,;t t
9657s,@build_alias@,$build_alias,;t t
9658s,@host_alias@,$host_alias,;t t
9659s,@target_alias@,$target_alias,;t t
9660s,@DEFS@,$DEFS,;t t
9661s,@ECHO_C@,$ECHO_C,;t t
9662s,@ECHO_N@,$ECHO_N,;t t
9663s,@ECHO_T@,$ECHO_T,;t t
9664s,@LIBS@,$LIBS,;t t
9665s,@CC@,$CC,;t t
9666s,@CFLAGS@,$CFLAGS,;t t
9667s,@LDFLAGS@,$LDFLAGS,;t t
9668s,@CPPFLAGS@,$CPPFLAGS,;t t
9669s,@ac_ct_CC@,$ac_ct_CC,;t t
9670s,@EXEEXT@,$EXEEXT,;t t
9671s,@OBJEXT@,$OBJEXT,;t t
9672s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9673s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9674s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9675s,@AWK@,$AWK,;t t
9676s,@CPP@,$CPP,;t t
9677s,@CXX@,$CXX,;t t
9678s,@CXXFLAGS@,$CXXFLAGS,;t t
9679s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9680s,@RANLIB@,$RANLIB,;t t
9681s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9682s,@build@,$build,;t t
9683s,@build_cpu@,$build_cpu,;t t
9684s,@build_vendor@,$build_vendor,;t t
9685s,@build_os@,$build_os,;t t
9686s,@host@,$host,;t t
9687s,@host_cpu@,$host_cpu,;t t
9688s,@host_vendor@,$host_vendor,;t t
9689s,@host_os@,$host_os,;t t
9690s,@LN_S@,$LN_S,;t t
9691s,@ECHO@,$ECHO,;t t
9692s,@STRIP@,$STRIP,;t t
9693s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9694s,@LIBTOOL@,$LIBTOOL,;t t
9695s,@LIBOBJS@,$LIBOBJS,;t t
9696s,@PACKAGE@,$PACKAGE,;t t
9697s,@VERSION@,$VERSION,;t t
9698s,@ACLOCAL@,$ACLOCAL,;t t
9699s,@AUTOCONF@,$AUTOCONF,;t t
9700s,@AUTOMAKE@,$AUTOMAKE,;t t
9701s,@AUTOHEADER@,$AUTOHEADER,;t t
9702s,@MAKEINFO@,$MAKEINFO,;t t
9703s,@AMTAR@,$AMTAR,;t t
9704s,@install_sh@,$install_sh,;t t
9705s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9706s,@SET_MAKE@,$SET_MAKE,;t t
9707s,@DEPDIR@,$DEPDIR,;t t
9708s,@am__include@,$am__include,;t t
9709s,@am__quote@,$am__quote,;t t
9710s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9711s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9712s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9713s,@CCDEPMODE@,$CCDEPMODE,;t t
9714s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9715CEOF
9716
9717_ACEOF
9718
9719 cat >>$CONFIG_STATUS <<\_ACEOF
9720 # Split the substitutions into bite-sized pieces for seds with
9721 # small command number limits, like on Digital OSF/1 and HP-UX.
9722 ac_max_sed_lines=48
9723 ac_sed_frag=1 # Number of current file.
9724 ac_beg=1 # First line for current file.
9725 ac_end=$ac_max_sed_lines # Line after last line for current file.
9726 ac_more_lines=:
9727 ac_sed_cmds=
9728 while $ac_more_lines; do
9729 if test $ac_beg -gt 1; then
9730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9731 else
9732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9733 fi
9734 if test ! -s $tmp/subs.frag; then
9735 ac_more_lines=false
9736 else
9737 # The purpose of the label and of the branching condition is to
9738 # speed up the sed processing (if there are no `@' at all, there
9739 # is no need to browse any of the substitutions).
9740 # These are the two extra sed commands mentioned above.
9741 (echo ':t
9742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9743 if test -z "$ac_sed_cmds"; then
9744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9745 else
9746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9747 fi
9748 ac_sed_frag=`expr $ac_sed_frag + 1`
9749 ac_beg=$ac_end
9750 ac_end=`expr $ac_end + $ac_max_sed_lines`
9751 fi
9752 done
9753 if test -z "$ac_sed_cmds"; then
9754 ac_sed_cmds=cat
9755 fi
9756fi # test -n "$CONFIG_FILES"
9757
9758_ACEOF
9759cat >>$CONFIG_STATUS <<\_ACEOF
9760for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9762 case $ac_file in
9763 - | *:- | *:-:* ) # input from stdin
9764 cat >$tmp/stdin
9765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9769 * ) ac_file_in=$ac_file.in ;;
9770 esac
9771
9772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9775 X"$ac_file" : 'X\(//\)[^/]' \| \
9776 X"$ac_file" : 'X\(//\)$' \| \
9777 X"$ac_file" : 'X\(/\)' \| \
9778 . : '\(.\)' 2>/dev/null ||
9779echo X"$ac_file" |
9780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9782 /^X\(\/\/\)$/{ s//\1/; q; }
9783 /^X\(\/\).*/{ s//\1/; q; }
9784 s/.*/./; q'`
9785 { case "$ac_dir" in
9786 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9787 *) as_incr_dir=.;;
9788esac
9789as_dummy="$ac_dir"
9790for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9791 case $as_mkdir_dir in
9792 # Skip DOS drivespec
9793 ?:) as_incr_dir=$as_mkdir_dir ;;
9794 *)
9795 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9796 test -d "$as_incr_dir" ||
9797 mkdir "$as_incr_dir" ||
9798 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9799echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9800 { (exit 1); exit 1; }; }
9801 ;;
9802 esac
9803done; }
9804
9805 ac_builddir=.
9806
9807if test "$ac_dir" != .; then
9808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9809 # A "../" for each directory in $ac_dir_suffix.
9810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9811else
9812 ac_dir_suffix= ac_top_builddir=
9813fi
9814
9815case $srcdir in
9816 .) # No --srcdir option. We are building in place.
9817 ac_srcdir=.
9818 if test -z "$ac_top_builddir"; then
9819 ac_top_srcdir=.
9820 else
9821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9822 fi ;;
9823 [\\/]* | ?:[\\/]* ) # Absolute path.
9824 ac_srcdir=$srcdir$ac_dir_suffix;
9825 ac_top_srcdir=$srcdir ;;
9826 *) # Relative path.
9827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9828 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9829esac
9830# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9831# absolute.
9832ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9833ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9834ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9835ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9836
9837
9838 case $INSTALL in
9839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9840 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9841 esac
9842
9843 if test x"$ac_file" != x-; then
9844 { echo "$as_me:$LINENO: creating $ac_file" >&5
9845echo "$as_me: creating $ac_file" >&6;}
9846 rm -f "$ac_file"
9847 fi
9848 # Let's still pretend it is `configure' which instantiates (i.e., don't
9849 # use $as_me), people would be surprised to read:
9850 # /* config.h. Generated by config.status. */
9851 if test x"$ac_file" = x-; then
9852 configure_input=
9853 else
9854 configure_input="$ac_file. "
9855 fi
9856 configure_input=$configure_input"Generated from `echo $ac_file_in |
9857 sed 's,.*/,,'` by configure."
9858
9859 # First look for the input files in the build tree, otherwise in the
9860 # src tree.
9861 ac_file_inputs=`IFS=:
9862 for f in $ac_file_in; do
9863 case $f in
9864 -) echo $tmp/stdin ;;
9865 [\\/$]*)
9866 # Absolute (can't be DOS-style, as IFS=:)
9867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9868echo "$as_me: error: cannot find input file: $f" >&2;}
9869 { (exit 1); exit 1; }; }
9870 echo $f;;
9871 *) # Relative
9872 if test -f "$f"; then
9873 # Build tree
9874 echo $f
9875 elif test -f "$srcdir/$f"; then
9876 # Source tree
9877 echo $srcdir/$f
9878 else
9879 # /dev/null tree
9880 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9881echo "$as_me: error: cannot find input file: $f" >&2;}
9882 { (exit 1); exit 1; }; }
9883 fi;;
9884 esac
9885 done` || { (exit 1); exit 1; }
9886_ACEOF
9887cat >>$CONFIG_STATUS <<_ACEOF
9888 sed "$ac_vpsub
9889$extrasub
9890_ACEOF
9891cat >>$CONFIG_STATUS <<\_ACEOF
9892:t
9893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9894s,@configure_input@,$configure_input,;t t
9895s,@srcdir@,$ac_srcdir,;t t
9896s,@abs_srcdir@,$ac_abs_srcdir,;t t
9897s,@top_srcdir@,$ac_top_srcdir,;t t
9898s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9899s,@builddir@,$ac_builddir,;t t
9900s,@abs_builddir@,$ac_abs_builddir,;t t
9901s,@top_builddir@,$ac_top_builddir,;t t
9902s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9903s,@INSTALL@,$ac_INSTALL,;t t
9904" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9905 rm -f $tmp/stdin
9906 if test x"$ac_file" != x-; then
9907 mv $tmp/out $ac_file
9908 else
9909 cat $tmp/out
9910 rm -f $tmp/out
jjako52c24142002-12-16 13:33:51 +00009911 fi
9912
jjako286bc982003-01-28 23:17:50 +00009913done
9914_ACEOF
9915cat >>$CONFIG_STATUS <<\_ACEOF
9916
9917#
9918# CONFIG_HEADER section.
9919#
9920
9921# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9922# NAME is the cpp macro being defined and VALUE is the value it is being given.
9923#
9924# ac_d sets the value in "#define NAME VALUE" lines.
9925ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9926ac_dB='[ ].*$,\1#\2'
9927ac_dC=' '
9928ac_dD=',;t'
9929# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9930ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9931ac_uB='$,\1#\2define\3'
9932ac_uC=' '
9933ac_uD=',;t'
9934
9935for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9937 case $ac_file in
9938 - | *:- | *:-:* ) # input from stdin
9939 cat >$tmp/stdin
9940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9944 * ) ac_file_in=$ac_file.in ;;
9945 esac
9946
9947 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9948echo "$as_me: creating $ac_file" >&6;}
9949
9950 # First look for the input files in the build tree, otherwise in the
9951 # src tree.
9952 ac_file_inputs=`IFS=:
9953 for f in $ac_file_in; do
9954 case $f in
9955 -) echo $tmp/stdin ;;
9956 [\\/$]*)
9957 # Absolute (can't be DOS-style, as IFS=:)
9958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9959echo "$as_me: error: cannot find input file: $f" >&2;}
9960 { (exit 1); exit 1; }; }
9961 echo $f;;
9962 *) # Relative
9963 if test -f "$f"; then
9964 # Build tree
9965 echo $f
9966 elif test -f "$srcdir/$f"; then
9967 # Source tree
9968 echo $srcdir/$f
9969 else
9970 # /dev/null tree
9971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9972echo "$as_me: error: cannot find input file: $f" >&2;}
9973 { (exit 1); exit 1; }; }
9974 fi;;
9975 esac
9976 done` || { (exit 1); exit 1; }
9977 # Remove the trailing spaces.
9978 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9979
9980_ACEOF
9981
9982# Transform confdefs.h into two sed scripts, `conftest.defines' and
9983# `conftest.undefs', that substitutes the proper values into
9984# config.h.in to produce config.h. The first handles `#define'
9985# templates, and the second `#undef' templates.
9986# And first: Protect against being on the right side of a sed subst in
9987# config.status. Protect against being in an unquoted here document
9988# in config.status.
9989rm -f conftest.defines conftest.undefs
9990# Using a here document instead of a string reduces the quoting nightmare.
9991# Putting comments in sed scripts is not portable.
9992#
9993# `end' is used to avoid that the second main sed command (meant for
9994# 0-ary CPP macros) applies to n-ary macro definitions.
9995# See the Autoconf documentation for `clear'.
9996cat >confdef2sed.sed <<\_ACEOF
9997s/[\\&,]/\\&/g
9998s,[\\$`],\\&,g
9999t clear
10000: clear
10001s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10002t end
10003s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10004: end
10005_ACEOF
10006# If some macros were called several times there might be several times
10007# the same #defines, which is useless. Nevertheless, we may not want to
10008# sort them, since we want the *last* AC-DEFINE to be honored.
10009uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10010sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10011rm -f confdef2sed.sed
10012
10013# This sed command replaces #undef with comments. This is necessary, for
10014# example, in the case of _POSIX_SOURCE, which is predefined and required
10015# on some systems where configure will not decide to define it.
10016cat >>conftest.undefs <<\_ACEOF
10017s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10018_ACEOF
10019
10020# Break up conftest.defines because some shells have a limit on the size
10021# of here documents, and old seds have small limits too (100 cmds).
10022echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10023echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10024echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10025echo ' :' >>$CONFIG_STATUS
10026rm -f conftest.tail
10027while grep . conftest.defines >/dev/null
10028do
10029 # Write a limited-size here document to $tmp/defines.sed.
10030 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10031 # Speed up: don't consider the non `#define' lines.
10032 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10033 # Work around the forget-to-reset-the-flag bug.
10034 echo 't clr' >>$CONFIG_STATUS
10035 echo ': clr' >>$CONFIG_STATUS
10036 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10037 echo 'CEOF
10038 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10039 rm -f $tmp/in
10040 mv $tmp/out $tmp/in
10041' >>$CONFIG_STATUS
10042 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10043 rm -f conftest.defines
10044 mv conftest.tail conftest.defines
10045done
10046rm -f conftest.defines
10047echo ' fi # egrep' >>$CONFIG_STATUS
10048echo >>$CONFIG_STATUS
10049
10050# Break up conftest.undefs because some shells have a limit on the size
10051# of here documents, and old seds have small limits too (100 cmds).
10052echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10053rm -f conftest.tail
10054while grep . conftest.undefs >/dev/null
10055do
10056 # Write a limited-size here document to $tmp/undefs.sed.
10057 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10058 # Speed up: don't consider the non `#undef'
10059 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10060 # Work around the forget-to-reset-the-flag bug.
10061 echo 't clr' >>$CONFIG_STATUS
10062 echo ': clr' >>$CONFIG_STATUS
10063 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10064 echo 'CEOF
10065 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10066 rm -f $tmp/in
10067 mv $tmp/out $tmp/in
10068' >>$CONFIG_STATUS
10069 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10070 rm -f conftest.undefs
10071 mv conftest.tail conftest.undefs
10072done
10073rm -f conftest.undefs
10074
10075cat >>$CONFIG_STATUS <<\_ACEOF
10076 # Let's still pretend it is `configure' which instantiates (i.e., don't
10077 # use $as_me), people would be surprised to read:
10078 # /* config.h. Generated by config.status. */
10079 if test x"$ac_file" = x-; then
10080 echo "/* Generated by configure. */" >$tmp/config.h
10081 else
10082 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10083 fi
10084 cat $tmp/in >>$tmp/config.h
10085 rm -f $tmp/in
10086 if test x"$ac_file" != x-; then
10087 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10089echo "$as_me: $ac_file is unchanged" >&6;}
10090 else
10091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10093 X"$ac_file" : 'X\(//\)[^/]' \| \
10094 X"$ac_file" : 'X\(//\)$' \| \
10095 X"$ac_file" : 'X\(/\)' \| \
10096 . : '\(.\)' 2>/dev/null ||
10097echo X"$ac_file" |
10098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10100 /^X\(\/\/\)$/{ s//\1/; q; }
10101 /^X\(\/\).*/{ s//\1/; q; }
10102 s/.*/./; q'`
10103 { case "$ac_dir" in
10104 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10105 *) as_incr_dir=.;;
10106esac
10107as_dummy="$ac_dir"
10108for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10109 case $as_mkdir_dir in
10110 # Skip DOS drivespec
10111 ?:) as_incr_dir=$as_mkdir_dir ;;
10112 *)
10113 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10114 test -d "$as_incr_dir" ||
10115 mkdir "$as_incr_dir" ||
10116 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10117echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10118 { (exit 1); exit 1; }; }
10119 ;;
10120 esac
10121done; }
10122
10123 rm -f $ac_file
10124 mv $tmp/config.h $ac_file
10125 fi
10126 else
10127 cat $tmp/config.h
10128 rm -f $tmp/config.h
10129 fi
10130 # Run the commands associated with the file.
10131 case $ac_file in
10132 config.h ) # update the timestamp
10133echo 'timestamp for config.h' >"./stamp-h1"
10134 ;;
10135 esac
10136done
10137_ACEOF
10138cat >>$CONFIG_STATUS <<\_ACEOF
10139
10140#
10141# CONFIG_COMMANDS section.
10142#
10143for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10144 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10145 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10146 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10147$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10148 X"$ac_dest" : 'X\(//\)[^/]' \| \
10149 X"$ac_dest" : 'X\(//\)$' \| \
10150 X"$ac_dest" : 'X\(/\)' \| \
10151 . : '\(.\)' 2>/dev/null ||
10152echo X"$ac_dest" |
10153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10155 /^X\(\/\/\)$/{ s//\1/; q; }
10156 /^X\(\/\).*/{ s//\1/; q; }
10157 s/.*/./; q'`
10158 ac_builddir=.
10159
10160if test "$ac_dir" != .; then
10161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10162 # A "../" for each directory in $ac_dir_suffix.
10163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10164else
10165 ac_dir_suffix= ac_top_builddir=
10166fi
10167
10168case $srcdir in
10169 .) # No --srcdir option. We are building in place.
10170 ac_srcdir=.
10171 if test -z "$ac_top_builddir"; then
10172 ac_top_srcdir=.
10173 else
10174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10175 fi ;;
10176 [\\/]* | ?:[\\/]* ) # Absolute path.
10177 ac_srcdir=$srcdir$ac_dir_suffix;
10178 ac_top_srcdir=$srcdir ;;
jjako52c24142002-12-16 13:33:51 +000010179 *) # Relative path.
jjako286bc982003-01-28 23:17:50 +000010180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10182esac
10183# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10184# absolute.
10185ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10186ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10187ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10188ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10189
10190
10191 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10192echo "$as_me: executing $ac_dest commands" >&6;}
10193 case $ac_dest in
10194 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10195 # Strip MF so we end up with the name of the file.
10196 mf=`echo "$mf" | sed -e 's/:.*$//'`
10197 # Check whether this is an Automake generated Makefile or not.
10198 # We used to match only the files named `Makefile.in', but
10199 # some people rename them; so instead we look at the file content.
10200 # Grep'ing the first line is not enough: some people post-process
10201 # each Makefile.in and add a new line on top of each file to say so.
10202 # So let's grep whole file.
10203 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10204 dirpart=`(dirname "$mf") 2>/dev/null ||
10205$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10206 X"$mf" : 'X\(//\)[^/]' \| \
10207 X"$mf" : 'X\(//\)$' \| \
10208 X"$mf" : 'X\(/\)' \| \
10209 . : '\(.\)' 2>/dev/null ||
10210echo X"$mf" |
10211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10212 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10213 /^X\(\/\/\)$/{ s//\1/; q; }
10214 /^X\(\/\).*/{ s//\1/; q; }
10215 s/.*/./; q'`
10216 else
10217 continue
10218 fi
10219 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10220 # Extract the definition of DEP_FILES from the Makefile without
10221 # running `make'.
10222 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10223 test -z "$DEPDIR" && continue
10224 # When using ansi2knr, U may be empty or an underscore; expand it
10225 U=`sed -n -e '/^U = / s///p' < "$mf"`
10226 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10227 # We invoke sed twice because it is the simplest approach to
10228 # changing $(DEPDIR) to its actual value in the expansion.
10229 for file in `sed -n -e '
10230 /^DEP_FILES = .*\\\\$/ {
10231 s/^DEP_FILES = //
10232 :loop
10233 s/\\\\$//
10234 p
10235 n
10236 /\\\\$/ b loop
10237 p
10238 }
10239 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10241 # Make sure the directory exists.
10242 test -f "$dirpart/$file" && continue
10243 fdir=`(dirname "$file") 2>/dev/null ||
10244$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10245 X"$file" : 'X\(//\)[^/]' \| \
10246 X"$file" : 'X\(//\)$' \| \
10247 X"$file" : 'X\(/\)' \| \
10248 . : '\(.\)' 2>/dev/null ||
10249echo X"$file" |
10250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10252 /^X\(\/\/\)$/{ s//\1/; q; }
10253 /^X\(\/\).*/{ s//\1/; q; }
10254 s/.*/./; q'`
10255 { case $dirpart/$fdir in
10256 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10257 *) as_incr_dir=.;;
10258esac
10259as_dummy=$dirpart/$fdir
10260for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10261 case $as_mkdir_dir in
10262 # Skip DOS drivespec
10263 ?:) as_incr_dir=$as_mkdir_dir ;;
10264 *)
10265 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10266 test -d "$as_incr_dir" ||
10267 mkdir "$as_incr_dir" ||
10268 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10269echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10270 { (exit 1); exit 1; }; }
10271 ;;
jjako52c24142002-12-16 13:33:51 +000010272 esac
jjako286bc982003-01-28 23:17:50 +000010273done; }
jjako52c24142002-12-16 13:33:51 +000010274
jjako286bc982003-01-28 23:17:50 +000010275 # echo "creating $dirpart/$file"
10276 echo '# dummy' > "$dirpart/$file"
10277 done
10278done
10279 ;;
jjako52c24142002-12-16 13:33:51 +000010280 esac
jjako286bc982003-01-28 23:17:50 +000010281done
10282_ACEOF
jjako52c24142002-12-16 13:33:51 +000010283
jjako286bc982003-01-28 23:17:50 +000010284cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000010285
jjako286bc982003-01-28 23:17:50 +000010286{ (exit 0); exit 0; }
10287_ACEOF
jjako52c24142002-12-16 13:33:51 +000010288chmod +x $CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000010289ac_clean_files=$ac_clean_files_save
10290
10291
10292# configure is writing to config.log, and then calls config.status.
10293# config.status does its own redirection, appending to config.log.
10294# Unfortunately, on DOS this fails, as config.log is still kept open
10295# by configure, so config.status won't be able to write to it; its
10296# output is simply discarded. So we exec the FD to /dev/null,
10297# effectively closing config.log, so it can be properly (re)opened and
10298# appended to by config.status. When coming back to configure, we
10299# need to make the FD available again.
10300if test "$no_create" != yes; then
10301 ac_cs_success=:
10302 exec 5>/dev/null
10303 $SHELL $CONFIG_STATUS || ac_cs_success=false
10304 exec 5>>config.log
10305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10306 # would make configure fail if this is the last instruction.
10307 $ac_cs_success || { (exit 1); exit 1; }
10308fi
jjako52c24142002-12-16 13:33:51 +000010309