blob: 5a786f76e9aad63b292c6e744af73a8004959824 [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.
jjakoa9639f32003-07-07 15:30:11 +00003# Generated by GNU Autoconf 2.53 for openggsn 0.60.
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'
jjakoa9639f32003-07-07 15:30:11 +0000418PACKAGE_VERSION='0.60'
419PACKAGE_STRING='openggsn 0.60'
jjako286bc982003-01-28 23:17:50 +0000420PACKAGE_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
jjakoa9639f32003-07-07 15:30:11 +0000932\`configure' configures openggsn 0.60 to adapt to many kinds of systems.
jjako286bc982003-01-28 23:17:50 +0000933
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
jjakoa9639f32003-07-07 15:30:11 +0000998 short | recursive ) echo "Configuration of openggsn 0.60:";;
jjako286bc982003-01-28 23:17:50 +0000999 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)
jjakoa9639f32003-07-07 15:30:11 +00001009 --enable-static-exec Enable static linking of executables
jjako286bc982003-01-28 23:17:50 +00001010 --disable-dependency-tracking Speeds up one-time builds
1011 --enable-dependency-tracking Do not reject slow dependency extractors
1012
1013Optional Packages:
1014 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1015 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1016 --with-gnu-ld assume the C compiler uses GNU ld default=no
1017 --with-pic try to use only PIC/non-PIC objects default=use both
1018
1019Some influential environment variables:
1020 CC C compiler command
1021 CFLAGS C compiler flags
1022 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1023 nonstandard directory <lib dir>
1024 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1025 headers in a nonstandard directory <include dir>
1026 CPP C preprocessor
1027 CXX C++ compiler command
1028 CXXFLAGS C++ compiler flags
1029
1030Use these variables to override the choices made by `configure' or to help
1031it to find libraries and programs with nonstandard names/locations.
1032
1033Report bugs to <jj@openggsn.org>.
1034_ACEOF
1035fi
1036
1037if test "$ac_init_help" = "recursive"; then
1038 # If there are subdirs, report their specific --help.
1039 ac_popdir=`pwd`
1040 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1041 test -d $ac_dir || continue
1042 ac_builddir=.
1043
1044if test "$ac_dir" != .; then
1045 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1046 # A "../" for each directory in $ac_dir_suffix.
1047 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1048else
1049 ac_dir_suffix= ac_top_builddir=
1050fi
1051
1052case $srcdir in
1053 .) # No --srcdir option. We are building in place.
1054 ac_srcdir=.
1055 if test -z "$ac_top_builddir"; then
1056 ac_top_srcdir=.
1057 else
1058 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1059 fi ;;
1060 [\\/]* | ?:[\\/]* ) # Absolute path.
1061 ac_srcdir=$srcdir$ac_dir_suffix;
1062 ac_top_srcdir=$srcdir ;;
1063 *) # Relative path.
1064 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1065 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1066esac
1067# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1068# absolute.
1069ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1070ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1071ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1072ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1073
1074 cd $ac_dir
1075 # Check for guested configure; otherwise get Cygnus style configure.
1076 if test -f $ac_srcdir/configure.gnu; then
1077 echo
1078 $SHELL $ac_srcdir/configure.gnu --help=recursive
1079 elif test -f $ac_srcdir/configure; then
1080 echo
1081 $SHELL $ac_srcdir/configure --help=recursive
1082 elif test -f $ac_srcdir/configure.ac ||
1083 test -f $ac_srcdir/configure.in; then
1084 echo
1085 $ac_configure --help
1086 else
1087 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1088 fi
1089 cd $ac_popdir
1090 done
1091fi
1092
1093test -n "$ac_init_help" && exit 0
1094if $ac_init_version; then
1095 cat <<\_ACEOF
jjakoa9639f32003-07-07 15:30:11 +00001096openggsn configure 0.60
jjako286bc982003-01-28 23:17:50 +00001097generated by GNU Autoconf 2.53
1098
1099Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1100Free Software Foundation, Inc.
1101This configure script is free software; the Free Software Foundation
1102gives unlimited permission to copy, distribute and modify it.
1103_ACEOF
1104 exit 0
1105fi
1106exec 5>config.log
1107cat >&5 <<_ACEOF
1108This file contains any messages produced by compilers while
1109running configure, to aid debugging if configure makes a mistake.
1110
jjakoa9639f32003-07-07 15:30:11 +00001111It was created by openggsn $as_me 0.60, which was
jjako286bc982003-01-28 23:17:50 +00001112generated by GNU Autoconf 2.53. Invocation command line was
1113
1114 $ $0 $@
1115
1116_ACEOF
1117{
1118cat <<_ASUNAME
1119## --------- ##
1120## Platform. ##
1121## --------- ##
1122
1123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1124uname -m = `(uname -m) 2>/dev/null || echo unknown`
1125uname -r = `(uname -r) 2>/dev/null || echo unknown`
1126uname -s = `(uname -s) 2>/dev/null || echo unknown`
1127uname -v = `(uname -v) 2>/dev/null || echo unknown`
1128
1129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1130/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1131
1132/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1133/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1135hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1136/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1137/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1138/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1139
1140_ASUNAME
1141
1142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1143for as_dir in $PATH
1144do
1145 IFS=$as_save_IFS
1146 test -z "$as_dir" && as_dir=.
1147 echo "PATH: $as_dir"
1148done
1149
1150} >&5
1151
1152cat >&5 <<_ACEOF
1153
1154
1155## ----------- ##
1156## Core tests. ##
1157## ----------- ##
1158
1159_ACEOF
1160
1161
1162# Keep a trace of the command line.
1163# Strip out --no-create and --no-recursion so they do not pile up.
1164# Also quote any args containing shell meta-characters.
1165ac_configure_args=
1166ac_sep=
1167for ac_arg
1168do
1169 case $ac_arg in
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n ) continue ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 continue ;;
1175 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1177 esac
1178 case " $ac_configure_args " in
1179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1180 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1181 ac_sep=" " ;;
1182 esac
1183 # Get rid of the leading space.
1184done
1185
1186# When interrupted or exit'd, cleanup temporary files, and complete
1187# config.log. We remove comments because anyway the quotes in there
1188# would cause problems or look ugly.
1189# WARNING: Be sure not to use single quotes in there, as some shells,
1190# such as our DU 5.0 friend, will then `close' the trap.
1191trap 'exit_status=$?
1192 # Save into config.log some information that might help in debugging.
1193 {
1194 echo
1195 cat <<\_ASBOX
1196## ---------------- ##
1197## Cache variables. ##
1198## ---------------- ##
1199_ASBOX
1200 echo
1201 # The following way of writing the cache mishandles newlines in values,
1202{
1203 (set) 2>&1 |
1204 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1205 *ac_space=\ *)
1206 sed -n \
1207 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1209 ;;
1210 *)
1211 sed -n \
1212 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1213 ;;
1214 esac;
1215}
1216 echo
1217 if test -s confdefs.h; then
1218 cat <<\_ASBOX
1219## ----------- ##
1220## confdefs.h. ##
1221## ----------- ##
1222_ASBOX
1223 echo
1224 sed "/^$/d" confdefs.h
1225 echo
1226 fi
1227 test "$ac_signal" != 0 &&
1228 echo "$as_me: caught signal $ac_signal"
1229 echo "$as_me: exit $exit_status"
1230 } >&5
1231 rm -f core core.* *.core &&
1232 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 exit $exit_status
1234 ' 0
1235for ac_signal in 1 2 13 15; do
1236 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237done
1238ac_signal=0
1239
1240# confdefs.h avoids OS command line length limits that DEFS can exceed.
1241rm -rf conftest* confdefs.h
1242# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243echo >confdefs.h
1244
1245# Predefined preprocessor variables.
1246
1247cat >>confdefs.h <<_ACEOF
1248#define PACKAGE_NAME "$PACKAGE_NAME"
1249_ACEOF
1250
1251
1252cat >>confdefs.h <<_ACEOF
1253#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254_ACEOF
1255
1256
1257cat >>confdefs.h <<_ACEOF
1258#define PACKAGE_VERSION "$PACKAGE_VERSION"
1259_ACEOF
1260
1261
1262cat >>confdefs.h <<_ACEOF
1263#define PACKAGE_STRING "$PACKAGE_STRING"
1264_ACEOF
1265
1266
1267cat >>confdefs.h <<_ACEOF
1268#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269_ACEOF
1270
1271
1272# Let the site file select an alternate cache file if it wants to.
jjako52c24142002-12-16 13:33:51 +00001273# Prefer explicitly selected file to automatically selected ones.
1274if test -z "$CONFIG_SITE"; then
1275 if test "x$prefix" != xNONE; then
1276 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1277 else
1278 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 fi
1280fi
1281for ac_site_file in $CONFIG_SITE; do
1282 if test -r "$ac_site_file"; then
jjako286bc982003-01-28 23:17:50 +00001283 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1284echo "$as_me: loading site script $ac_site_file" >&6;}
1285 sed 's/^/| /' "$ac_site_file" >&5
jjako52c24142002-12-16 13:33:51 +00001286 . "$ac_site_file"
1287 fi
1288done
1289
1290if test -r "$cache_file"; then
jjako286bc982003-01-28 23:17:50 +00001291 # Some versions of bash will fail to source /dev/null (special
1292 # files actually), so we avoid doing that.
1293 if test -f "$cache_file"; then
1294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1295echo "$as_me: loading cache $cache_file" >&6;}
1296 case $cache_file in
1297 [\\/]* | ?:[\\/]* ) . $cache_file;;
1298 *) . ./$cache_file;;
1299 esac
1300 fi
jjako52c24142002-12-16 13:33:51 +00001301else
jjako286bc982003-01-28 23:17:50 +00001302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1303echo "$as_me: creating cache $cache_file" >&6;}
1304 >$cache_file
1305fi
1306
1307# Check that the precious variables saved in the cache have kept the same
1308# value.
1309ac_cache_corrupted=false
1310for ac_var in `(set) 2>&1 |
1311 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1312 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1313 eval ac_new_set=\$ac_env_${ac_var}_set
1314 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1315 eval ac_new_val="\$ac_env_${ac_var}_value"
1316 case $ac_old_set,$ac_new_set in
1317 set,)
1318 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1319echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1320 ac_cache_corrupted=: ;;
1321 ,set)
1322 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1323echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1324 ac_cache_corrupted=: ;;
1325 ,);;
1326 *)
1327 if test "x$ac_old_val" != "x$ac_new_val"; then
1328 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1329echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1330 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1331echo "$as_me: former value: $ac_old_val" >&2;}
1332 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1333echo "$as_me: current value: $ac_new_val" >&2;}
1334 ac_cache_corrupted=:
1335 fi;;
1336 esac
1337 # Pass precious variables to config.status.
1338 if test "$ac_new_set" = set; then
1339 case $ac_new_val in
1340 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1341 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1342 *) ac_arg=$ac_var=$ac_new_val ;;
1343 esac
1344 case " $ac_configure_args " in
1345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1346 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 esac
1348 fi
1349done
1350if $ac_cache_corrupted; then
1351 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1352echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1353 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1354echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1355 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001356fi
1357
1358ac_ext=c
jjako52c24142002-12-16 13:33:51 +00001359ac_cpp='$CPP $CPPFLAGS'
jjako286bc982003-01-28 23:17:50 +00001360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1362ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00001363
1364
1365
jjako52c24142002-12-16 13:33:51 +00001366
jjako52c24142002-12-16 13:33:51 +00001367
jjako286bc982003-01-28 23:17:50 +00001368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390# Add the stamp file to the list of files AC keeps track of,
1391# along with our hook.
1392ac_config_headers="$ac_config_headers config.h"
1393
1394
1395
1396#AC_CONFIG_HEADER([config.h])
1397
1398# Checks for programs.
1399ac_ext=c
1400ac_cpp='$CPP $CPPFLAGS'
1401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1403ac_compiler_gnu=$ac_cv_c_compiler_gnu
1404if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1406set dummy ${ac_tool_prefix}gcc; ac_word=$2
1407echo "$as_me:$LINENO: checking for $ac_word" >&5
1408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001411else
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1414else
jjako286bc982003-01-28 23:17:50 +00001415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416for as_dir in $PATH
1417do
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424 break 2
1425 fi
1426done
1427done
1428
jjako52c24142002-12-16 13:33:51 +00001429fi
1430fi
jjako286bc982003-01-28 23:17:50 +00001431CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001432if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001433 echo "$as_me:$LINENO: result: $CC" >&5
1434echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001435else
jjako286bc982003-01-28 23:17:50 +00001436 echo "$as_me:$LINENO: result: no" >&5
1437echo "${ECHO_T}no" >&6
1438fi
1439
1440fi
1441if test -z "$ac_cv_prog_CC"; then
1442 ac_ct_CC=$CC
1443 # Extract the first word of "gcc", so it can be a program name with args.
1444set dummy gcc; ac_word=$2
1445echo "$as_me:$LINENO: checking for $ac_word" >&5
1446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449else
1450 if test -n "$ac_ct_CC"; then
1451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1452else
1453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1454for as_dir in $PATH
1455do
1456 IFS=$as_save_IFS
1457 test -z "$as_dir" && as_dir=.
1458 for ac_exec_ext in '' $ac_executable_extensions; do
1459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460 ac_cv_prog_ac_ct_CC="gcc"
1461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1462 break 2
1463 fi
1464done
1465done
1466
1467fi
1468fi
1469ac_ct_CC=$ac_cv_prog_ac_ct_CC
1470if test -n "$ac_ct_CC"; then
1471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1472echo "${ECHO_T}$ac_ct_CC" >&6
1473else
1474 echo "$as_me:$LINENO: result: no" >&5
1475echo "${ECHO_T}no" >&6
1476fi
1477
1478 CC=$ac_ct_CC
1479else
1480 CC="$ac_cv_prog_CC"
jjako52c24142002-12-16 13:33:51 +00001481fi
1482
1483if test -z "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001484 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1486set dummy ${ac_tool_prefix}cc; ac_word=$2
1487echo "$as_me:$LINENO: checking for $ac_word" >&5
1488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001491else
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1494else
jjako286bc982003-01-28 23:17:50 +00001495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496for as_dir in $PATH
1497do
1498 IFS=$as_save_IFS
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC="${ac_tool_prefix}cc"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 break 2
1505 fi
1506done
1507done
1508
1509fi
1510fi
1511CC=$ac_cv_prog_CC
1512if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514echo "${ECHO_T}$CC" >&6
1515else
1516 echo "$as_me:$LINENO: result: no" >&5
1517echo "${ECHO_T}no" >&6
1518fi
1519
1520fi
1521if test -z "$ac_cv_prog_CC"; then
1522 ac_ct_CC=$CC
1523 # Extract the first word of "cc", so it can be a program name with args.
1524set dummy cc; ac_word=$2
1525echo "$as_me:$LINENO: checking for $ac_word" >&5
1526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1529else
1530 if test -n "$ac_ct_CC"; then
1531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1532else
1533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534for as_dir in $PATH
1535do
1536 IFS=$as_save_IFS
1537 test -z "$as_dir" && as_dir=.
1538 for ac_exec_ext in '' $ac_executable_extensions; do
1539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540 ac_cv_prog_ac_ct_CC="cc"
1541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 break 2
1543 fi
1544done
1545done
1546
1547fi
1548fi
1549ac_ct_CC=$ac_cv_prog_ac_ct_CC
1550if test -n "$ac_ct_CC"; then
1551 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1552echo "${ECHO_T}$ac_ct_CC" >&6
1553else
1554 echo "$as_me:$LINENO: result: no" >&5
1555echo "${ECHO_T}no" >&6
1556fi
1557
1558 CC=$ac_ct_CC
1559else
1560 CC="$ac_cv_prog_CC"
1561fi
1562
1563fi
1564if test -z "$CC"; then
1565 # Extract the first word of "cc", so it can be a program name with args.
1566set dummy cc; ac_word=$2
1567echo "$as_me:$LINENO: checking for $ac_word" >&5
1568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569if test "${ac_cv_prog_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1571else
1572 if test -n "$CC"; then
1573 ac_cv_prog_CC="$CC" # Let the user override the test.
1574else
jjako52c24142002-12-16 13:33:51 +00001575 ac_prog_rejected=no
jjako286bc982003-01-28 23:17:50 +00001576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577for as_dir in $PATH
1578do
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1584 ac_prog_rejected=yes
1585 continue
1586 fi
1587 ac_cv_prog_CC="cc"
1588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 break 2
1590 fi
1591done
1592done
1593
jjako52c24142002-12-16 13:33:51 +00001594if test $ac_prog_rejected = yes; then
1595 # We found a bogon in the path, so make sure we never use it.
1596 set dummy $ac_cv_prog_CC
1597 shift
jjako286bc982003-01-28 23:17:50 +00001598 if test $# != 0; then
jjako52c24142002-12-16 13:33:51 +00001599 # We chose a different compiler from the bogus one.
1600 # However, it has the same basename, so the bogon will be chosen
1601 # first if we set CC to just the basename; use the full file name.
1602 shift
jjako286bc982003-01-28 23:17:50 +00001603 set dummy "$as_dir/$ac_word" ${1+"$@"}
jjako52c24142002-12-16 13:33:51 +00001604 shift
1605 ac_cv_prog_CC="$@"
1606 fi
1607fi
1608fi
1609fi
jjako286bc982003-01-28 23:17:50 +00001610CC=$ac_cv_prog_CC
jjako52c24142002-12-16 13:33:51 +00001611if test -n "$CC"; then
jjako286bc982003-01-28 23:17:50 +00001612 echo "$as_me:$LINENO: result: $CC" >&5
1613echo "${ECHO_T}$CC" >&6
jjako52c24142002-12-16 13:33:51 +00001614else
jjako286bc982003-01-28 23:17:50 +00001615 echo "$as_me:$LINENO: result: no" >&5
1616echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001617fi
1618
jjako286bc982003-01-28 23:17:50 +00001619fi
1620if test -z "$CC"; then
1621 if test -n "$ac_tool_prefix"; then
1622 for ac_prog in cl
1623 do
1624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1625set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001630else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
jjako286bc982003-01-28 23:17:50 +00001634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635for as_dir in $PATH
1636do
1637 IFS=$as_save_IFS
1638 test -z "$as_dir" && as_dir=.
1639 for ac_exec_ext in '' $ac_executable_extensions; do
1640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 break 2
jjako52c24142002-12-16 13:33:51 +00001644 fi
jjako286bc982003-01-28 23:17:50 +00001645done
1646done
1647
1648fi
1649fi
1650CC=$ac_cv_prog_CC
1651if test -n "$CC"; then
1652 echo "$as_me:$LINENO: result: $CC" >&5
1653echo "${ECHO_T}$CC" >&6
1654else
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00001657fi
1658
jjako286bc982003-01-28 23:17:50 +00001659 test -n "$CC" && break
1660 done
1661fi
1662if test -z "$CC"; then
1663 ac_ct_CC=$CC
1664 for ac_prog in cl
1665do
1666 # Extract the first word of "$ac_prog", so it can be a program name with args.
1667set dummy $ac_prog; ac_word=$2
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673 if test -n "$ac_ct_CC"; then
1674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679 IFS=$as_save_IFS
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_ac_ct_CC="$ac_prog"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 break 2
1686 fi
1687done
1688done
jjako52c24142002-12-16 13:33:51 +00001689
jjako286bc982003-01-28 23:17:50 +00001690fi
1691fi
1692ac_ct_CC=$ac_cv_prog_ac_ct_CC
1693if test -n "$ac_ct_CC"; then
1694 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1695echo "${ECHO_T}$ac_ct_CC" >&6
1696else
1697 echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
jjako52c24142002-12-16 13:33:51 +00001700
jjako286bc982003-01-28 23:17:50 +00001701 test -n "$ac_ct_CC" && break
1702done
jjako52c24142002-12-16 13:33:51 +00001703
jjako286bc982003-01-28 23:17:50 +00001704 CC=$ac_ct_CC
1705fi
1706
1707fi
1708
1709
1710test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1711echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1712 { (exit 1); exit 1; }; }
1713
1714# Provide some information about the compiler.
1715echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717ac_compiler=`set X $ac_compile; echo $2`
1718{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733
1734cat >conftest.$ac_ext <<_ACEOF
1735#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00001736#include "confdefs.h"
1737
jjako286bc982003-01-28 23:17:50 +00001738#ifdef F77_DUMMY_MAIN
1739# ifdef __cplusplus
1740 extern "C"
1741# endif
1742 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00001743#endif
jjako286bc982003-01-28 23:17:50 +00001744int
1745main ()
1746{
1747
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752ac_clean_files_save=$ac_clean_files
1753ac_clean_files="$ac_clean_files a.out a.exe"
1754# Try to create an executable without -o first, disregard a.out.
1755# It will help us diagnose broken compilers, and finding out an intuition
1756# of exeext.
1757echo "$as_me:$LINENO: checking for C compiler default output" >&5
1758echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1760if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1761 (eval $ac_link_default) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; then
1765 # Find the output, starting from the most likely. This scheme is
1766# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1767# resort.
1768
1769# Be careful to initialize this variable, since it used to be cached.
1770# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1771ac_cv_exeext=
1772for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1773 ls a.out conftest 2>/dev/null;
1774 ls a.* conftest.* 2>/dev/null`; do
1775 case $ac_file in
1776 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1777 a.out ) # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1781 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1782 export ac_cv_exeext
1783 break;;
1784 * ) break;;
1785 esac
1786done
jjako52c24142002-12-16 13:33:51 +00001787else
jjako286bc982003-01-28 23:17:50 +00001788 echo "$as_me: failed program was:" >&5
1789cat conftest.$ac_ext >&5
1790{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1791echo "$as_me: error: C compiler cannot create executables" >&2;}
1792 { (exit 77); exit 77; }; }
jjako52c24142002-12-16 13:33:51 +00001793fi
1794
jjako286bc982003-01-28 23:17:50 +00001795ac_exeext=$ac_cv_exeext
1796echo "$as_me:$LINENO: result: $ac_file" >&5
1797echo "${ECHO_T}$ac_file" >&6
jjako52c24142002-12-16 13:33:51 +00001798
jjako286bc982003-01-28 23:17:50 +00001799# Check the compiler produces executables we can run. If not, either
1800# the compiler is broken, or we cross compile.
1801echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1802echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1803# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1804# If not cross compiling, check that we can run a simple program.
1805if test "$cross_compiling" != yes; then
1806 if { ac_try='./$ac_file'
1807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1808 (eval $ac_try) 2>&5
1809 ac_status=$?
1810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811 (exit $ac_status); }; }; then
1812 cross_compiling=no
1813 else
1814 if test "$cross_compiling" = maybe; then
1815 cross_compiling=yes
1816 else
1817 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1818If you meant to cross compile, use \`--host'." >&5
1819echo "$as_me: error: cannot run C compiled programs.
1820If you meant to cross compile, use \`--host'." >&2;}
1821 { (exit 1); exit 1; }; }
1822 fi
1823 fi
1824fi
1825echo "$as_me:$LINENO: result: yes" >&5
1826echo "${ECHO_T}yes" >&6
1827
1828rm -f a.out a.exe conftest$ac_cv_exeext
1829ac_clean_files=$ac_clean_files_save
1830# Check the compiler produces executables we can run. If not, either
1831# the compiler is broken, or we cross compile.
1832echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1833echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1834echo "$as_me:$LINENO: result: $cross_compiling" >&5
1835echo "${ECHO_T}$cross_compiling" >&6
1836
1837echo "$as_me:$LINENO: checking for suffix of executables" >&5
1838echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1840 (eval $ac_link) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }; then
1844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1845# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1846# work properly (i.e., refer to `conftest.exe'), while it won't with
1847# `rm'.
1848for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1849 case $ac_file in
1850 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852 export ac_cv_exeext
1853 break;;
1854 * ) break;;
1855 esac
1856done
jjako52c24142002-12-16 13:33:51 +00001857else
jjako286bc982003-01-28 23:17:50 +00001858 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1859echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1860 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00001861fi
1862
jjako286bc982003-01-28 23:17:50 +00001863rm -f conftest$ac_cv_exeext
1864echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1865echo "${ECHO_T}$ac_cv_exeext" >&6
1866
1867rm -f conftest.$ac_ext
1868EXEEXT=$ac_cv_exeext
1869ac_exeext=$EXEEXT
1870echo "$as_me:$LINENO: checking for suffix of object files" >&5
1871echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1872if test "${ac_cv_objext+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00001874else
jjako286bc982003-01-28 23:17:50 +00001875 cat >conftest.$ac_ext <<_ACEOF
1876#line $LINENO "configure"
1877#include "confdefs.h"
1878
1879#ifdef F77_DUMMY_MAIN
1880# ifdef __cplusplus
1881 extern "C"
1882# endif
1883 int F77_DUMMY_MAIN() { return 1; }
1884#endif
1885int
1886main ()
1887{
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893rm -f conftest.o conftest.obj
1894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1895 (eval $ac_compile) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; then
1899 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1900 case $ac_file in
1901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1903 break;;
1904 esac
1905done
1906else
1907 echo "$as_me: failed program was:" >&5
1908cat conftest.$ac_ext >&5
1909{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1910echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1911 { (exit 1); exit 1; }; }
1912fi
1913
1914rm -f conftest.$ac_cv_objext conftest.$ac_ext
1915fi
1916echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1917echo "${ECHO_T}$ac_cv_objext" >&6
1918OBJEXT=$ac_cv_objext
1919ac_objext=$OBJEXT
1920echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1921echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1922if test "${ac_cv_c_compiler_gnu+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 cat >conftest.$ac_ext <<_ACEOF
1926#line $LINENO "configure"
1927#include "confdefs.h"
1928
1929#ifdef F77_DUMMY_MAIN
1930# ifdef __cplusplus
1931 extern "C"
1932# endif
1933 int F77_DUMMY_MAIN() { return 1; }
1934#endif
1935int
1936main ()
1937{
1938#ifndef __GNUC__
1939 choke me
1940#endif
1941
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946rm -f conftest.$ac_objext
1947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1948 (eval $ac_compile) 2>&5
1949 ac_status=$?
1950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951 (exit $ac_status); } &&
1952 { ac_try='test -s conftest.$ac_objext'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1958 ac_compiler_gnu=yes
1959else
1960 echo "$as_me: failed program was:" >&5
1961cat conftest.$ac_ext >&5
1962ac_compiler_gnu=no
1963fi
1964rm -f conftest.$ac_objext conftest.$ac_ext
1965ac_cv_c_compiler_gnu=$ac_compiler_gnu
1966
1967fi
1968echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1969echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1970GCC=`test $ac_compiler_gnu = yes && echo yes`
1971ac_test_CFLAGS=${CFLAGS+set}
1972ac_save_CFLAGS=$CFLAGS
1973CFLAGS="-g"
1974echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1975echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1976if test "${ac_cv_prog_cc_g+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979 cat >conftest.$ac_ext <<_ACEOF
1980#line $LINENO "configure"
1981#include "confdefs.h"
1982
1983#ifdef F77_DUMMY_MAIN
1984# ifdef __cplusplus
1985 extern "C"
1986# endif
1987 int F77_DUMMY_MAIN() { return 1; }
1988#endif
1989int
1990main ()
1991{
1992
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997rm -f conftest.$ac_objext
1998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00002009 ac_cv_prog_cc_g=yes
2010else
jjako286bc982003-01-28 23:17:50 +00002011 echo "$as_me: failed program was:" >&5
2012cat conftest.$ac_ext >&5
2013ac_cv_prog_cc_g=no
jjako52c24142002-12-16 13:33:51 +00002014fi
jjako286bc982003-01-28 23:17:50 +00002015rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00002016fi
jjako286bc982003-01-28 23:17:50 +00002017echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2018echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
jjako52c24142002-12-16 13:33:51 +00002019if test "$ac_test_CFLAGS" = set; then
jjako286bc982003-01-28 23:17:50 +00002020 CFLAGS=$ac_save_CFLAGS
jjako52c24142002-12-16 13:33:51 +00002021elif test $ac_cv_prog_cc_g = yes; then
2022 if test "$GCC" = yes; then
2023 CFLAGS="-g -O2"
2024 else
2025 CFLAGS="-g"
2026 fi
2027else
2028 if test "$GCC" = yes; then
2029 CFLAGS="-O2"
2030 else
2031 CFLAGS=
2032 fi
2033fi
jjako286bc982003-01-28 23:17:50 +00002034# Some people use a C++ compiler to compile C. Since we use `exit',
2035# in C++ we need to declare it. In case someone uses the same compiler
2036# for both compiling C and C++ we need to have the C++ compiler decide
2037# the declaration of exit, since it's the most demanding environment.
2038cat >conftest.$ac_ext <<_ACEOF
2039#ifndef __cplusplus
2040 choke me
2041#endif
2042_ACEOF
2043rm -f conftest.$ac_objext
2044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2045 (eval $ac_compile) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 (eval $ac_try) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 for ac_declaration in \
2056 ''\
2057 '#include <stdlib.h>' \
2058 'extern "C" void std::exit (int) throw (); using std::exit;' \
2059 'extern "C" void std::exit (int); using std::exit;' \
2060 'extern "C" void exit (int) throw ();' \
2061 'extern "C" void exit (int);' \
2062 'void exit (int);'
2063do
2064 cat >conftest.$ac_ext <<_ACEOF
2065#line $LINENO "configure"
2066#include "confdefs.h"
2067#include <stdlib.h>
2068$ac_declaration
2069#ifdef F77_DUMMY_MAIN
2070# ifdef __cplusplus
2071 extern "C"
2072# endif
2073 int F77_DUMMY_MAIN() { return 1; }
2074#endif
2075int
2076main ()
2077{
2078exit (42);
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -s conftest.$ac_objext'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 (eval $ac_try) 2>&5
2092 ac_status=$?
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; }; then
2095 :
2096else
2097 echo "$as_me: failed program was:" >&5
2098cat conftest.$ac_ext >&5
2099continue
2100fi
2101rm -f conftest.$ac_objext conftest.$ac_ext
2102 cat >conftest.$ac_ext <<_ACEOF
2103#line $LINENO "configure"
2104#include "confdefs.h"
2105$ac_declaration
2106#ifdef F77_DUMMY_MAIN
2107# ifdef __cplusplus
2108 extern "C"
2109# endif
2110 int F77_DUMMY_MAIN() { return 1; }
2111#endif
2112int
2113main ()
2114{
2115exit (42);
2116 ;
2117 return 0;
2118}
2119_ACEOF
2120rm -f conftest.$ac_objext
2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122 (eval $ac_compile) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); } &&
2126 { ac_try='test -s conftest.$ac_objext'
2127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2128 (eval $ac_try) 2>&5
2129 ac_status=$?
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; }; then
2132 break
2133else
2134 echo "$as_me: failed program was:" >&5
2135cat conftest.$ac_ext >&5
2136fi
2137rm -f conftest.$ac_objext conftest.$ac_ext
2138done
2139rm -f conftest*
2140if test -n "$ac_declaration"; then
2141 echo '#ifdef __cplusplus' >>confdefs.h
2142 echo $ac_declaration >>confdefs.h
2143 echo '#endif' >>confdefs.h
2144fi
2145
2146else
2147 echo "$as_me: failed program was:" >&5
2148cat conftest.$ac_ext >&5
2149fi
2150rm -f conftest.$ac_objext conftest.$ac_ext
2151ac_ext=c
2152ac_cpp='$CPP $CPPFLAGS'
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00002156
2157ac_aux_dir=
2158for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2159 if test -f $ac_dir/install-sh; then
2160 ac_aux_dir=$ac_dir
2161 ac_install_sh="$ac_aux_dir/install-sh -c"
2162 break
2163 elif test -f $ac_dir/install.sh; then
2164 ac_aux_dir=$ac_dir
2165 ac_install_sh="$ac_aux_dir/install.sh -c"
2166 break
jjako286bc982003-01-28 23:17:50 +00002167 elif test -f $ac_dir/shtool; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/shtool install -c"
2170 break
jjako52c24142002-12-16 13:33:51 +00002171 fi
2172done
2173if test -z "$ac_aux_dir"; then
jjako286bc982003-01-28 23:17:50 +00002174 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2175echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2176 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002177fi
jjako286bc982003-01-28 23:17:50 +00002178ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2179ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2180ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
jjako52c24142002-12-16 13:33:51 +00002181
2182# Find a good install program. We prefer a C program (faster),
2183# so one script is as good as another. But avoid the broken or
2184# incompatible versions:
2185# SysV /etc/install, /usr/sbin/install
2186# SunOS /usr/etc/install
2187# IRIX /sbin/install
2188# AIX /bin/install
jjako286bc982003-01-28 23:17:50 +00002189# AmigaOS /C/install, which installs bootblocks on floppy discs
jjako52c24142002-12-16 13:33:51 +00002190# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2191# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2192# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2193# ./install, which can be erroneously created by make from ./install.sh.
jjako286bc982003-01-28 23:17:50 +00002194echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2195echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002196if test -z "$INSTALL"; then
jjako286bc982003-01-28 23:17:50 +00002197if test "${ac_cv_path_install+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002199else
jjako286bc982003-01-28 23:17:50 +00002200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 # Account for people who put trailing slashes in PATH elements.
2206case $as_dir/ in
2207 ./ | .// | /cC/* | \
2208 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2209 /usr/ucb/* ) ;;
2210 *)
2211 # OSF1 and SCO ODT 3.0 have their own names for install.
2212 # Don't use installbsd from OSF since it installs stuff as root
2213 # by default.
2214 for ac_prog in ginstall scoinst install; do
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2217 if test $ac_prog = install &&
2218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # AIX install. It has an incompatible calling convention.
2220 :
2221 elif test $ac_prog = install &&
2222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223 # program-specific install script used by HP pwplus--don't use.
2224 :
2225 else
2226 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2227 break 3
2228 fi
2229 fi
jjako52c24142002-12-16 13:33:51 +00002230 done
jjako286bc982003-01-28 23:17:50 +00002231 done
2232 ;;
2233esac
2234done
2235
jjako52c24142002-12-16 13:33:51 +00002236
2237fi
2238 if test "${ac_cv_path_install+set}" = set; then
jjako286bc982003-01-28 23:17:50 +00002239 INSTALL=$ac_cv_path_install
jjako52c24142002-12-16 13:33:51 +00002240 else
2241 # As a last resort, use the slow shell script. We don't cache a
2242 # path for INSTALL within a source directory, because that will
2243 # break other packages using the cache if that directory is
2244 # removed, or if the path is relative.
jjako286bc982003-01-28 23:17:50 +00002245 INSTALL=$ac_install_sh
jjako52c24142002-12-16 13:33:51 +00002246 fi
2247fi
jjako286bc982003-01-28 23:17:50 +00002248echo "$as_me:$LINENO: result: $INSTALL" >&5
2249echo "${ECHO_T}$INSTALL" >&6
jjako52c24142002-12-16 13:33:51 +00002250
2251# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2252# It thinks the first close brace ends the variable substitution.
2253test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2254
jjako286bc982003-01-28 23:17:50 +00002255test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
jjako52c24142002-12-16 13:33:51 +00002256
2257test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2258
jjako286bc982003-01-28 23:17:50 +00002259for ac_prog in gawk mawk nawk awk
2260do
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262set dummy $ac_prog; ac_word=$2
2263echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265if test "${ac_cv_prog_AWK+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002267else
jjako286bc982003-01-28 23:17:50 +00002268 if test -n "$AWK"; then
2269 ac_cv_prog_AWK="$AWK" # Let the user override the test.
jjako52c24142002-12-16 13:33:51 +00002270else
jjako286bc982003-01-28 23:17:50 +00002271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 for ac_exec_ext in '' $ac_executable_extensions; do
2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_AWK="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 break 2
2281 fi
2282done
2283done
2284
jjako52c24142002-12-16 13:33:51 +00002285fi
2286fi
jjako286bc982003-01-28 23:17:50 +00002287AWK=$ac_cv_prog_AWK
2288if test -n "$AWK"; then
2289 echo "$as_me:$LINENO: result: $AWK" >&5
2290echo "${ECHO_T}$AWK" >&6
jjako52c24142002-12-16 13:33:51 +00002291else
jjako286bc982003-01-28 23:17:50 +00002292 echo "$as_me:$LINENO: result: no" >&5
2293echo "${ECHO_T}no" >&6
2294fi
2295
2296 test -n "$AWK" && break
2297done
2298
2299ac_ext=c
2300ac_cpp='$CPP $CPPFLAGS'
2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2305echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2306# On Suns, sometimes $CPP names a directory.
2307if test -n "$CPP" && test -d "$CPP"; then
2308 CPP=
2309fi
2310if test -z "$CPP"; then
2311 if test "${ac_cv_prog_CPP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313else
2314 # Double quotes because CPP needs to be expanded
2315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2316 do
2317 ac_preproc_ok=false
2318for ac_c_preproc_warn_flag in '' yes
2319do
2320 # Use a header file that comes with gcc, so configuring glibc
2321 # with a fresh cross-compiler works.
2322 # On the NeXT, cc -E runs the code through the compiler's parser,
2323 # not just through cpp. "Syntax error" is here to catch this case.
2324 cat >conftest.$ac_ext <<_ACEOF
2325#line $LINENO "configure"
2326#include "confdefs.h"
2327#include <assert.h>
2328 Syntax error
2329_ACEOF
2330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2332 ac_status=$?
2333 egrep -v '^ *\+' conftest.er1 >conftest.err
2334 rm -f conftest.er1
2335 cat conftest.err >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); } >/dev/null; then
2338 if test -s conftest.err; then
2339 ac_cpp_err=$ac_c_preproc_warn_flag
2340 else
2341 ac_cpp_err=
2342 fi
2343else
2344 ac_cpp_err=yes
2345fi
2346if test -z "$ac_cpp_err"; then
2347 :
2348else
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 # Broken: fails on valid input.
2352continue
2353fi
2354rm -f conftest.err conftest.$ac_ext
2355
2356 # OK, works on sane cases. Now check whether non-existent headers
2357 # can be detected and how.
2358 cat >conftest.$ac_ext <<_ACEOF
2359#line $LINENO "configure"
2360#include "confdefs.h"
2361#include <ac_nonexistent.h>
2362_ACEOF
2363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2365 ac_status=$?
2366 egrep -v '^ *\+' conftest.er1 >conftest.err
2367 rm -f conftest.er1
2368 cat conftest.err >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } >/dev/null; then
2371 if test -s conftest.err; then
2372 ac_cpp_err=$ac_c_preproc_warn_flag
2373 else
2374 ac_cpp_err=
2375 fi
2376else
2377 ac_cpp_err=yes
2378fi
2379if test -z "$ac_cpp_err"; then
2380 # Broken: success on invalid input.
2381continue
2382else
2383 echo "$as_me: failed program was:" >&5
2384 cat conftest.$ac_ext >&5
2385 # Passes both tests.
2386ac_preproc_ok=:
2387break
2388fi
2389rm -f conftest.err conftest.$ac_ext
2390
2391done
2392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2393rm -f conftest.err conftest.$ac_ext
2394if $ac_preproc_ok; then
2395 break
2396fi
2397
2398 done
2399 ac_cv_prog_CPP=$CPP
2400
2401fi
2402 CPP=$ac_cv_prog_CPP
2403else
2404 ac_cv_prog_CPP=$CPP
2405fi
2406echo "$as_me:$LINENO: result: $CPP" >&5
2407echo "${ECHO_T}$CPP" >&6
2408ac_preproc_ok=false
2409for ac_c_preproc_warn_flag in '' yes
2410do
2411 # Use a header file that comes with gcc, so configuring glibc
2412 # with a fresh cross-compiler works.
2413 # On the NeXT, cc -E runs the code through the compiler's parser,
2414 # not just through cpp. "Syntax error" is here to catch this case.
2415 cat >conftest.$ac_ext <<_ACEOF
2416#line $LINENO "configure"
2417#include "confdefs.h"
2418#include <assert.h>
2419 Syntax error
2420_ACEOF
2421if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2422 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2423 ac_status=$?
2424 egrep -v '^ *\+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } >/dev/null; then
2429 if test -s conftest.err; then
2430 ac_cpp_err=$ac_c_preproc_warn_flag
2431 else
2432 ac_cpp_err=
2433 fi
2434else
2435 ac_cpp_err=yes
2436fi
2437if test -z "$ac_cpp_err"; then
2438 :
2439else
2440 echo "$as_me: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 # Broken: fails on valid input.
2443continue
2444fi
2445rm -f conftest.err conftest.$ac_ext
2446
2447 # OK, works on sane cases. Now check whether non-existent headers
2448 # can be detected and how.
2449 cat >conftest.$ac_ext <<_ACEOF
2450#line $LINENO "configure"
2451#include "confdefs.h"
2452#include <ac_nonexistent.h>
2453_ACEOF
2454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 egrep -v '^ *\+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 else
2465 ac_cpp_err=
2466 fi
2467else
2468 ac_cpp_err=yes
2469fi
2470if test -z "$ac_cpp_err"; then
2471 # Broken: success on invalid input.
2472continue
2473else
2474 echo "$as_me: failed program was:" >&5
2475 cat conftest.$ac_ext >&5
2476 # Passes both tests.
2477ac_preproc_ok=:
2478break
2479fi
2480rm -f conftest.err conftest.$ac_ext
2481
2482done
2483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2484rm -f conftest.err conftest.$ac_ext
2485if $ac_preproc_ok; then
2486 :
2487else
2488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2489echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2490 { (exit 1); exit 1; }; }
2491fi
2492
2493ac_ext=c
2494ac_cpp='$CPP $CPPFLAGS'
2495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497ac_compiler_gnu=$ac_cv_c_compiler_gnu
2498
2499ac_ext=cc
2500ac_cpp='$CXXCPP $CPPFLAGS'
2501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2504if test -n "$ac_tool_prefix"; then
2505 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506 do
2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2509echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511if test "${ac_cv_prog_CXX+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -n "$CXX"; then
2515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529done
2530
2531fi
2532fi
2533CXX=$ac_cv_prog_CXX
2534if test -n "$CXX"; then
2535 echo "$as_me:$LINENO: result: $CXX" >&5
2536echo "${ECHO_T}$CXX" >&6
2537else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540fi
2541
2542 test -n "$CXX" && break
2543 done
2544fi
2545if test -z "$CXX"; then
2546 ac_ct_CXX=$CXX
2547 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2548do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550set dummy $ac_prog; ac_word=$2
2551echo "$as_me:$LINENO: checking for $ac_word" >&5
2552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2553if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556 if test -n "$ac_ct_CXX"; then
2557 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CXX="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570done
2571done
2572
2573fi
2574fi
2575ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2576if test -n "$ac_ct_CXX"; then
2577 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2578echo "${ECHO_T}$ac_ct_CXX" >&6
2579else
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582fi
2583
2584 test -n "$ac_ct_CXX" && break
2585done
2586test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2587
2588 CXX=$ac_ct_CXX
jjako52c24142002-12-16 13:33:51 +00002589fi
2590
2591
jjako286bc982003-01-28 23:17:50 +00002592# Provide some information about the compiler.
2593echo "$as_me:$LINENO:" \
2594 "checking for C++ compiler version" >&5
2595ac_compiler=`set X $ac_compile; echo $2`
2596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2597 (eval $ac_compiler --version </dev/null >&5) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }
2601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2602 (eval $ac_compiler -v </dev/null >&5) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }
2606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2607 (eval $ac_compiler -V </dev/null >&5) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }
2611
2612echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2613echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2614if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618#line $LINENO "configure"
2619#include "confdefs.h"
2620
2621#ifdef F77_DUMMY_MAIN
2622# ifdef __cplusplus
2623 extern "C"
2624# endif
2625 int F77_DUMMY_MAIN() { return 1; }
2626#endif
2627int
2628main ()
2629{
2630#ifndef __GNUC__
2631 choke me
2632#endif
2633
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2650 ac_compiler_gnu=yes
2651else
2652 echo "$as_me: failed program was:" >&5
2653cat conftest.$ac_ext >&5
2654ac_compiler_gnu=no
2655fi
2656rm -f conftest.$ac_objext conftest.$ac_ext
2657ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2658
2659fi
2660echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2661echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2662GXX=`test $ac_compiler_gnu = yes && echo yes`
2663ac_test_CXXFLAGS=${CXXFLAGS+set}
2664ac_save_CXXFLAGS=$CXXFLAGS
2665CXXFLAGS="-g"
2666echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2667echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2668if test "${ac_cv_prog_cxx_g+set}" = set; then
2669 echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671 cat >conftest.$ac_ext <<_ACEOF
2672#line $LINENO "configure"
2673#include "confdefs.h"
2674
2675#ifdef F77_DUMMY_MAIN
2676# ifdef __cplusplus
2677 extern "C"
2678# endif
2679 int F77_DUMMY_MAIN() { return 1; }
2680#endif
2681int
2682main ()
2683{
2684
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -s conftest.$ac_objext'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; }; then
2701 ac_cv_prog_cxx_g=yes
2702else
2703 echo "$as_me: failed program was:" >&5
2704cat conftest.$ac_ext >&5
2705ac_cv_prog_cxx_g=no
2706fi
2707rm -f conftest.$ac_objext conftest.$ac_ext
2708fi
2709echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2710echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2711if test "$ac_test_CXXFLAGS" = set; then
2712 CXXFLAGS=$ac_save_CXXFLAGS
2713elif test $ac_cv_prog_cxx_g = yes; then
2714 if test "$GXX" = yes; then
2715 CXXFLAGS="-g -O2"
2716 else
2717 CXXFLAGS="-g"
2718 fi
2719else
2720 if test "$GXX" = yes; then
2721 CXXFLAGS="-O2"
2722 else
2723 CXXFLAGS=
2724 fi
2725fi
2726for ac_declaration in \
2727 ''\
2728 '#include <stdlib.h>' \
2729 'extern "C" void std::exit (int) throw (); using std::exit;' \
2730 'extern "C" void std::exit (int); using std::exit;' \
2731 'extern "C" void exit (int) throw ();' \
2732 'extern "C" void exit (int);' \
2733 'void exit (int);'
2734do
2735 cat >conftest.$ac_ext <<_ACEOF
2736#line $LINENO "configure"
2737#include "confdefs.h"
2738#include <stdlib.h>
2739$ac_declaration
2740#ifdef F77_DUMMY_MAIN
2741# ifdef __cplusplus
2742 extern "C"
2743# endif
2744 int F77_DUMMY_MAIN() { return 1; }
2745#endif
2746int
2747main ()
2748{
2749exit (42);
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754rm -f conftest.$ac_objext
2755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756 (eval $ac_compile) 2>&5
2757 ac_status=$?
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 (eval $ac_try) 2>&5
2763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2766 :
2767else
2768 echo "$as_me: failed program was:" >&5
2769cat conftest.$ac_ext >&5
2770continue
2771fi
2772rm -f conftest.$ac_objext conftest.$ac_ext
2773 cat >conftest.$ac_ext <<_ACEOF
2774#line $LINENO "configure"
2775#include "confdefs.h"
2776$ac_declaration
2777#ifdef F77_DUMMY_MAIN
2778# ifdef __cplusplus
2779 extern "C"
2780# endif
2781 int F77_DUMMY_MAIN() { return 1; }
2782#endif
2783int
2784main ()
2785{
2786exit (42);
2787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
2792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793 (eval $ac_compile) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 break
2804else
2805 echo "$as_me: failed program was:" >&5
2806cat conftest.$ac_ext >&5
2807fi
2808rm -f conftest.$ac_objext conftest.$ac_ext
2809done
2810rm -f conftest*
2811if test -n "$ac_declaration"; then
2812 echo '#ifdef __cplusplus' >>confdefs.h
2813 echo $ac_declaration >>confdefs.h
2814 echo '#endif' >>confdefs.h
2815fi
2816
2817ac_ext=c
2818ac_cpp='$CPP $CPPFLAGS'
2819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822
2823if test -n "$ac_tool_prefix"; then
2824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2826echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828if test "${ac_cv_prog_RANLIB+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 if test -n "$RANLIB"; then
2832 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847
2848fi
2849fi
2850RANLIB=$ac_cv_prog_RANLIB
2851if test -n "$RANLIB"; then
2852 echo "$as_me:$LINENO: result: $RANLIB" >&5
2853echo "${ECHO_T}$RANLIB" >&6
2854else
2855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
2857fi
2858
2859fi
2860if test -z "$ac_cv_prog_RANLIB"; then
2861 ac_ct_RANLIB=$RANLIB
2862 # Extract the first word of "ranlib", so it can be a program name with args.
2863set dummy ranlib; ac_word=$2
2864echo "$as_me:$LINENO: checking for $ac_word" >&5
2865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2866if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869 if test -n "$ac_ct_RANLIB"; then
2870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2871else
2872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873for as_dir in $PATH
2874do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_RANLIB="ranlib"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883done
2884done
2885
2886 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2887fi
2888fi
2889ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2890if test -n "$ac_ct_RANLIB"; then
2891 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2892echo "${ECHO_T}$ac_ct_RANLIB" >&6
2893else
2894 echo "$as_me:$LINENO: result: no" >&5
2895echo "${ECHO_T}no" >&6
2896fi
2897
2898 RANLIB=$ac_ct_RANLIB
2899else
2900 RANLIB="$ac_cv_prog_RANLIB"
2901fi
2902
2903
2904
2905#JJAKO Check for libtool
jjako52c24142002-12-16 13:33:51 +00002906# Check whether --enable-shared or --disable-shared was given.
2907if test "${enable_shared+set}" = set; then
2908 enableval="$enable_shared"
2909 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002910case $enableval in
jjako52c24142002-12-16 13:33:51 +00002911yes) enable_shared=yes ;;
2912no) enable_shared=no ;;
2913*)
2914 enable_shared=no
2915 # Look at the argument we got. We use all the common list separators.
2916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2917 for pkg in $enableval; do
2918 if test "X$pkg" = "X$p"; then
2919 enable_shared=yes
2920 fi
2921 done
2922 IFS="$ac_save_ifs"
2923 ;;
2924esac
2925else
2926 enable_shared=yes
jjako286bc982003-01-28 23:17:50 +00002927fi;
jjako52c24142002-12-16 13:33:51 +00002928# Check whether --enable-static or --disable-static was given.
2929if test "${enable_static+set}" = set; then
2930 enableval="$enable_static"
2931 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002932case $enableval in
jjako52c24142002-12-16 13:33:51 +00002933yes) enable_static=yes ;;
2934no) enable_static=no ;;
2935*)
2936 enable_static=no
2937 # Look at the argument we got. We use all the common list separators.
2938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2939 for pkg in $enableval; do
2940 if test "X$pkg" = "X$p"; then
2941 enable_static=yes
2942 fi
2943 done
2944 IFS="$ac_save_ifs"
2945 ;;
2946esac
2947else
2948 enable_static=yes
jjako286bc982003-01-28 23:17:50 +00002949fi;
jjako52c24142002-12-16 13:33:51 +00002950# Check whether --enable-fast-install or --disable-fast-install was given.
2951if test "${enable_fast_install+set}" = set; then
2952 enableval="$enable_fast_install"
2953 p=${PACKAGE-default}
jjako286bc982003-01-28 23:17:50 +00002954case $enableval in
jjako52c24142002-12-16 13:33:51 +00002955yes) enable_fast_install=yes ;;
2956no) enable_fast_install=no ;;
2957*)
2958 enable_fast_install=no
2959 # Look at the argument we got. We use all the common list separators.
2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2961 for pkg in $enableval; do
2962 if test "X$pkg" = "X$p"; then
2963 enable_fast_install=yes
2964 fi
2965 done
2966 IFS="$ac_save_ifs"
2967 ;;
2968esac
2969else
2970 enable_fast_install=yes
jjako286bc982003-01-28 23:17:50 +00002971fi;
jjako52c24142002-12-16 13:33:51 +00002972# Make sure we can run config.sub.
jjako286bc982003-01-28 23:17:50 +00002973$ac_config_sub sun4 >/dev/null 2>&1 ||
2974 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2975echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2976 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00002977
jjako286bc982003-01-28 23:17:50 +00002978echo "$as_me:$LINENO: checking build system type" >&5
2979echo $ECHO_N "checking build system type... $ECHO_C" >&6
2980if test "${ac_cv_build+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00002982else
jjako286bc982003-01-28 23:17:50 +00002983 ac_cv_build_alias=$build_alias
2984test -z "$ac_cv_build_alias" &&
2985 ac_cv_build_alias=`$ac_config_guess`
2986test -z "$ac_cv_build_alias" &&
2987 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2988echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2989 { (exit 1); exit 1; }; }
2990ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2991 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2992echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2993 { (exit 1); exit 1; }; }
2994
2995fi
2996echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2997echo "${ECHO_T}$ac_cv_build" >&6
2998build=$ac_cv_build
2999build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3000build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3001build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3002
3003
3004echo "$as_me:$LINENO: checking host system type" >&5
3005echo $ECHO_N "checking host system type... $ECHO_C" >&6
3006if test "${ac_cv_host+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003008else
jjako286bc982003-01-28 23:17:50 +00003009 ac_cv_host_alias=$host_alias
3010test -z "$ac_cv_host_alias" &&
3011 ac_cv_host_alias=$ac_cv_build_alias
3012ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3013 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3014echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3015 { (exit 1); exit 1; }; }
3016
jjako52c24142002-12-16 13:33:51 +00003017fi
jjako286bc982003-01-28 23:17:50 +00003018echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3019echo "${ECHO_T}$ac_cv_host" >&6
3020host=$ac_cv_host
3021host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3022host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3023host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3024
3025
3026# Find the correct PATH separator. Usually this is `:', but
3027# DJGPP uses `;' like DOS.
3028if test "X${PATH_SEPARATOR+set}" != Xset; then
3029 UNAME=${UNAME-`uname 2>/dev/null`}
3030 case X$UNAME in
3031 *-DOS) lt_cv_sys_path_separator=';' ;;
3032 *) lt_cv_sys_path_separator=':' ;;
3033 esac
3034 PATH_SEPARATOR=$lt_cv_sys_path_separator
jjako52c24142002-12-16 13:33:51 +00003035fi
jjako286bc982003-01-28 23:17:50 +00003036
jjako52c24142002-12-16 13:33:51 +00003037
3038# Check whether --with-gnu-ld or --without-gnu-ld was given.
3039if test "${with_gnu_ld+set}" = set; then
3040 withval="$with_gnu_ld"
3041 test "$withval" = no || with_gnu_ld=yes
3042else
3043 with_gnu_ld=no
jjako286bc982003-01-28 23:17:50 +00003044fi;
jjako52c24142002-12-16 13:33:51 +00003045ac_prog=ld
jjako286bc982003-01-28 23:17:50 +00003046if test "$GCC" = yes; then
jjako52c24142002-12-16 13:33:51 +00003047 # Check if gcc -print-prog-name=ld gives a path.
jjako286bc982003-01-28 23:17:50 +00003048 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3049echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3050 case $host in
3051 *-*-mingw*)
3052 # gcc leaves a trailing carriage return which upsets mingw
3053 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3054 *)
3055 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3056 esac
3057 case $ac_prog in
jjako52c24142002-12-16 13:33:51 +00003058 # Accept absolute paths.
3059 [\\/]* | [A-Za-z]:[\\/]*)
3060 re_direlt='/[^/][^/]*/\.\./'
3061 # Canonicalize the path of ld
3062 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3063 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3064 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3065 done
3066 test -z "$LD" && LD="$ac_prog"
3067 ;;
3068 "")
3069 # If it fails, then pretend we aren't using GCC.
3070 ac_prog=ld
3071 ;;
3072 *)
3073 # If it is relative, then search for the first ld in PATH.
3074 with_gnu_ld=unknown
3075 ;;
3076 esac
3077elif test "$with_gnu_ld" = yes; then
jjako286bc982003-01-28 23:17:50 +00003078 echo "$as_me:$LINENO: checking for GNU ld" >&5
3079echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003080else
jjako286bc982003-01-28 23:17:50 +00003081 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3082echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003083fi
jjako286bc982003-01-28 23:17:50 +00003084if test "${lt_cv_path_LD+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003086else
3087 if test -z "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003089 for ac_dir in $PATH; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
jjako286bc982003-01-28 23:17:50 +00003092 lt_cv_path_LD="$ac_dir/$ac_prog"
jjako52c24142002-12-16 13:33:51 +00003093 # Check to see if the program is GNU ld. I'd rather use --version,
3094 # but apparently some GNU ld's only accept -v.
3095 # Break only if it was the GNU/non-GNU ld that we prefer.
jjako286bc982003-01-28 23:17:50 +00003096 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
jjako52c24142002-12-16 13:33:51 +00003097 test "$with_gnu_ld" != no && break
3098 else
3099 test "$with_gnu_ld" != yes && break
3100 fi
3101 fi
3102 done
3103 IFS="$ac_save_ifs"
3104else
jjako286bc982003-01-28 23:17:50 +00003105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
jjako52c24142002-12-16 13:33:51 +00003106fi
3107fi
3108
jjako286bc982003-01-28 23:17:50 +00003109LD="$lt_cv_path_LD"
jjako52c24142002-12-16 13:33:51 +00003110if test -n "$LD"; then
jjako286bc982003-01-28 23:17:50 +00003111 echo "$as_me:$LINENO: result: $LD" >&5
3112echo "${ECHO_T}$LD" >&6
jjako52c24142002-12-16 13:33:51 +00003113else
jjako286bc982003-01-28 23:17:50 +00003114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00003116fi
jjako286bc982003-01-28 23:17:50 +00003117test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3118echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3119 { (exit 1); exit 1; }; }
3120echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3121echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3122if test "${lt_cv_prog_gnu_ld+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003124else
3125 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3126if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
jjako286bc982003-01-28 23:17:50 +00003127 lt_cv_prog_gnu_ld=yes
jjako52c24142002-12-16 13:33:51 +00003128else
jjako286bc982003-01-28 23:17:50 +00003129 lt_cv_prog_gnu_ld=no
jjako52c24142002-12-16 13:33:51 +00003130fi
3131fi
jjako286bc982003-01-28 23:17:50 +00003132echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3133echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3134with_gnu_ld=$lt_cv_prog_gnu_ld
jjako52c24142002-12-16 13:33:51 +00003135
3136
jjako286bc982003-01-28 23:17:50 +00003137echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3138echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3139if test "${lt_cv_ld_reload_flag+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3141else
3142 lt_cv_ld_reload_flag='-r'
3143fi
3144echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3145echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3146reload_flag=$lt_cv_ld_reload_flag
3147test -n "$reload_flag" && reload_flag=" $reload_flag"
3148
3149echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3150echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3151if test "${lt_cv_path_NM+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00003153else
3154 if test -n "$NM"; then
3155 # Let the user override the test.
jjako286bc982003-01-28 23:17:50 +00003156 lt_cv_path_NM="$NM"
jjako52c24142002-12-16 13:33:51 +00003157else
jjako286bc982003-01-28 23:17:50 +00003158 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
jjako52c24142002-12-16 13:33:51 +00003159 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3160 test -z "$ac_dir" && ac_dir=.
jjako286bc982003-01-28 23:17:50 +00003161 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3162 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
jjako52c24142002-12-16 13:33:51 +00003163 # Check to see if the nm accepts a BSD-compat flag.
3164 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3165 # nm: unknown option "B" ignored
jjako286bc982003-01-28 23:17:50 +00003166 # Tru64's nm complains that /dev/null is an invalid object file
3167 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3168 lt_cv_path_NM="$tmp_nm -B"
jjako52c24142002-12-16 13:33:51 +00003169 break
jjako286bc982003-01-28 23:17:50 +00003170 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3171 lt_cv_path_NM="$tmp_nm -p"
jjako52c24142002-12-16 13:33:51 +00003172 break
3173 else
jjako286bc982003-01-28 23:17:50 +00003174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
jjako52c24142002-12-16 13:33:51 +00003175 continue # so that we can try to find one that supports BSD flags
3176 fi
3177 fi
3178 done
3179 IFS="$ac_save_ifs"
jjako286bc982003-01-28 23:17:50 +00003180 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
jjako52c24142002-12-16 13:33:51 +00003181fi
3182fi
3183
jjako286bc982003-01-28 23:17:50 +00003184NM="$lt_cv_path_NM"
3185echo "$as_me:$LINENO: result: $NM" >&5
3186echo "${ECHO_T}$NM" >&6
jjako52c24142002-12-16 13:33:51 +00003187
jjako286bc982003-01-28 23:17:50 +00003188echo "$as_me:$LINENO: checking whether ln -s works" >&5
3189echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3190LN_S=$as_ln_s
3191if test "$LN_S" = "ln -s"; then
3192 echo "$as_me:$LINENO: result: yes" >&5
3193echo "${ECHO_T}yes" >&6
3194else
3195 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3196echo "${ECHO_T}no, using $LN_S" >&6
3197fi
jjako52c24142002-12-16 13:33:51 +00003198
jjako286bc982003-01-28 23:17:50 +00003199echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3200echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3201if test "${lt_cv_deplibs_check_method+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3203else
3204 lt_cv_file_magic_cmd='$MAGIC_CMD'
3205lt_cv_file_magic_test_file=
3206lt_cv_deplibs_check_method='unknown'
3207# Need to set the preceding variable on all platforms that support
3208# interlibrary dependencies.
3209# 'none' -- dependencies not supported.
3210# `unknown' -- same as none, but documents that we really don't know.
3211# 'pass_all' -- all dependencies passed with no checks.
3212# 'test_compile' -- check by making test program.
3213# 'file_magic [[regex]]' -- check by looking for files in library path
3214# which responds to the $file_magic_cmd with a given egrep regex.
3215# If you have `file' or equivalent on your system and you're not sure
3216# whether `pass_all' will *always* work, you probably want this one.
3217
3218case $host_os in
3219aix4* | aix5*)
3220 lt_cv_deplibs_check_method=pass_all
3221 ;;
3222
3223beos*)
3224 lt_cv_deplibs_check_method=pass_all
3225 ;;
3226
3227bsdi4*)
3228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3229 lt_cv_file_magic_cmd='/usr/bin/file -L'
3230 lt_cv_file_magic_test_file=/shlib/libc.so
3231 ;;
3232
3233cygwin* | mingw* | pw32*)
3234 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3235 lt_cv_file_magic_cmd='$OBJDUMP -f'
3236 ;;
3237
3238darwin* | rhapsody*)
3239 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3240 lt_cv_file_magic_cmd='/usr/bin/file -L'
3241 case "$host_os" in
3242 rhapsody* | darwin1.[012])
3243 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3244 ;;
3245 *) # Darwin 1.3 on
3246 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3247 ;;
3248 esac
3249 ;;
3250
3251freebsd*)
3252 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3253 case $host_cpu in
3254 i*86 )
3255 # Not sure whether the presence of OpenBSD here was a mistake.
3256 # Let's accept both of them until this is cleared up.
3257 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3258 lt_cv_file_magic_cmd=/usr/bin/file
3259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3260 ;;
3261 esac
3262 else
3263 lt_cv_deplibs_check_method=pass_all
3264 fi
3265 ;;
3266
3267gnu*)
3268 lt_cv_deplibs_check_method=pass_all
3269 ;;
3270
3271hpux10.20*|hpux11*)
3272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3273 lt_cv_file_magic_cmd=/usr/bin/file
3274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3275 ;;
3276
3277irix5* | irix6*)
3278 case $host_os in
3279 irix5*)
3280 # this will be overridden with pass_all, but let us keep it just in case
3281 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3282 ;;
3283 *)
3284 case $LD in
3285 *-32|*"-32 ") libmagic=32-bit;;
3286 *-n32|*"-n32 ") libmagic=N32;;
3287 *-64|*"-64 ") libmagic=64-bit;;
3288 *) libmagic=never-match;;
3289 esac
3290 # this will be overridden with pass_all, but let us keep it just in case
3291 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3292 ;;
3293 esac
3294 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3295 lt_cv_deplibs_check_method=pass_all
3296 ;;
3297
3298# This must be Linux ELF.
3299linux-gnu*)
3300 case $host_cpu in
3301 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3302 lt_cv_deplibs_check_method=pass_all ;;
3303 *)
3304 # glibc up to 2.1.1 does not perform some relocations on ARM
3305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3306 esac
3307 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3308 ;;
3309
3310netbsd*)
3311 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3312 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3313 else
3314 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3315 fi
3316 ;;
3317
3318newos6*)
3319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3320 lt_cv_file_magic_cmd=/usr/bin/file
3321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3322 ;;
3323
3324openbsd*)
3325 lt_cv_file_magic_cmd=/usr/bin/file
3326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3329 else
3330 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3331 fi
3332 ;;
3333
3334osf3* | osf4* | osf5*)
3335 # this will be overridden with pass_all, but let us keep it just in case
3336 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3337 lt_cv_file_magic_test_file=/shlib/libc.so
3338 lt_cv_deplibs_check_method=pass_all
3339 ;;
3340
3341sco3.2v5*)
3342 lt_cv_deplibs_check_method=pass_all
3343 ;;
3344
3345solaris*)
3346 lt_cv_deplibs_check_method=pass_all
3347 lt_cv_file_magic_test_file=/lib/libc.so
3348 ;;
3349
3350sysv5uw[78]* | sysv4*uw2*)
3351 lt_cv_deplibs_check_method=pass_all
3352 ;;
3353
3354sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3355 case $host_vendor in
3356 motorola)
3357 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]'
3358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3359 ;;
3360 ncr)
3361 lt_cv_deplibs_check_method=pass_all
3362 ;;
3363 sequent)
3364 lt_cv_file_magic_cmd='/bin/file'
3365 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3366 ;;
3367 sni)
3368 lt_cv_file_magic_cmd='/bin/file'
3369 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3370 lt_cv_file_magic_test_file=/lib/libc.so
3371 ;;
3372 esac
3373 ;;
jjako52c24142002-12-16 13:33:51 +00003374esac
3375
jjako286bc982003-01-28 23:17:50 +00003376fi
3377echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3378echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3379file_magic_cmd=$lt_cv_file_magic_cmd
3380deplibs_check_method=$lt_cv_deplibs_check_method
jjako52c24142002-12-16 13:33:51 +00003381
3382
jjako286bc982003-01-28 23:17:50 +00003383
3384
3385
3386
3387
3388
3389# Check for command to grab the raw symbol name followed by C symbol from nm.
3390echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3391echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3392if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394else
3395
3396# These are sane defaults that work on at least a few old systems.
3397# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3398
3399# Character class describing NM global symbol codes.
3400symcode='[BCDEGRST]'
3401
3402# Regexp to match symbols that can be accessed directly from C.
3403sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3404
3405# Transform the above into a raw symbol and a C symbol.
3406symxfrm='\1 \2\3 \3'
3407
3408# Transform an extracted symbol line into a proper C declaration
3409lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3410
3411# Transform an extracted symbol line into symbol name and symbol address
3412lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3413
3414# Define system-specific variables.
3415case $host_os in
3416aix*)
3417 symcode='[BCDT]'
3418 ;;
3419cygwin* | mingw* | pw32*)
3420 symcode='[ABCDGISTW]'
3421 ;;
3422hpux*) # Its linker distinguishes data from code symbols
3423 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3424 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'"
3425 ;;
3426irix*)
3427 symcode='[BCDEGRST]'
3428 ;;
3429solaris* | sysv5*)
3430 symcode='[BDT]'
3431 ;;
3432sysv4)
3433 symcode='[DFNSTU]'
3434 ;;
3435esac
3436
3437# Handle CRLF in mingw tool chain
3438opt_cr=
3439case $host_os in
3440mingw*)
3441 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3442 ;;
3443esac
3444
3445# If we're using GNU nm, then use its standard symbol codes.
3446if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3447 symcode='[ABCDGISTW]'
3448fi
3449
3450# Try without a prefix undercore, then with it.
3451for ac_symprfx in "" "_"; do
3452
3453 # Write the raw and C identifiers.
3454lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3455
3456 # Check to see that the pipe works correctly.
3457 pipe_works=no
3458 rm -f conftest*
3459 cat > conftest.$ac_ext <<EOF
3460#ifdef __cplusplus
3461extern "C" {
3462#endif
3463char nm_test_var;
3464void nm_test_func(){}
3465#ifdef __cplusplus
3466}
3467#endif
3468int main(){nm_test_var='a';nm_test_func();return(0);}
3469EOF
3470
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472 (eval $ac_compile) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; then
3476 # Now try to grab the symbols.
3477 nlist=conftest.nm
3478 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3479 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && test -s "$nlist"; then
3483 # Try sorting and uniquifying the output.
3484 if sort "$nlist" | uniq > "$nlist"T; then
3485 mv -f "$nlist"T "$nlist"
3486 else
3487 rm -f "$nlist"T
3488 fi
3489
3490 # Make sure that we snagged all the symbols we need.
3491 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3492 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3493 cat <<EOF > conftest.$ac_ext
3494#ifdef __cplusplus
3495extern "C" {
3496#endif
3497
3498EOF
3499 # Now generate the symbol file.
3500 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3501
3502 cat <<EOF >> conftest.$ac_ext
3503#if defined (__STDC__) && __STDC__
3504# define lt_ptr void *
3505#else
3506# define lt_ptr char *
3507# define const
3508#endif
3509
3510/* The mapping between symbol names and symbols. */
3511const struct {
3512 const char *name;
3513 lt_ptr address;
3514}
3515lt_preloaded_symbols[] =
3516{
3517EOF
3518 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3519 cat <<\EOF >> conftest.$ac_ext
3520 {0, (lt_ptr) 0}
3521};
3522
3523#ifdef __cplusplus
3524}
3525#endif
3526EOF
3527 # Now try linking the two files.
3528 mv conftest.$ac_objext conftstm.$ac_objext
3529 save_LIBS="$LIBS"
3530 save_CFLAGS="$CFLAGS"
3531 LIBS="conftstm.$ac_objext"
3532 CFLAGS="$CFLAGS$no_builtin_flag"
3533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3534 (eval $ac_link) 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && test -s conftest; then
3538 pipe_works=yes
3539 fi
3540 LIBS="$save_LIBS"
3541 CFLAGS="$save_CFLAGS"
3542 else
3543 echo "cannot find nm_test_func in $nlist" >&5
3544 fi
3545 else
3546 echo "cannot find nm_test_var in $nlist" >&5
3547 fi
3548 else
3549 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3550 fi
3551 else
3552 echo "$progname: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 fi
3555 rm -f conftest* conftst*
3556
3557 # Do not use the global_symbol_pipe unless it works.
3558 if test "$pipe_works" = yes; then
3559 break
3560 else
3561 lt_cv_sys_global_symbol_pipe=
3562 fi
3563done
3564
3565fi
3566
3567global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3568if test -z "$lt_cv_sys_global_symbol_pipe"; then
3569 global_symbol_to_cdecl=
3570 global_symbol_to_c_name_address=
3571else
3572 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3573 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3574fi
3575if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3576then
3577 echo "$as_me:$LINENO: result: failed" >&5
3578echo "${ECHO_T}failed" >&6
3579else
3580 echo "$as_me:$LINENO: result: ok" >&5
3581echo "${ECHO_T}ok" >&6
3582fi
3583
3584
3585echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3586echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3587if test "${ac_cv_header_stdc+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590 cat >conftest.$ac_ext <<_ACEOF
3591#line $LINENO "configure"
3592#include "confdefs.h"
3593#include <stdlib.h>
3594#include <stdarg.h>
3595#include <string.h>
3596#include <float.h>
3597
3598_ACEOF
3599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3601 ac_status=$?
3602 egrep -v '^ *\+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null; then
3607 if test -s conftest.err; then
3608 ac_cpp_err=$ac_c_preproc_warn_flag
3609 else
3610 ac_cpp_err=
3611 fi
3612else
3613 ac_cpp_err=yes
3614fi
3615if test -z "$ac_cpp_err"; then
3616 ac_cv_header_stdc=yes
3617else
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 ac_cv_header_stdc=no
3621fi
3622rm -f conftest.err conftest.$ac_ext
3623
3624if test $ac_cv_header_stdc = yes; then
3625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3626 cat >conftest.$ac_ext <<_ACEOF
3627#line $LINENO "configure"
3628#include "confdefs.h"
3629#include <string.h>
3630
3631_ACEOF
3632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 egrep "memchr" >/dev/null 2>&1; then
3634 :
3635else
3636 ac_cv_header_stdc=no
3637fi
3638rm -f conftest*
3639
3640fi
3641
3642if test $ac_cv_header_stdc = yes; then
3643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3644 cat >conftest.$ac_ext <<_ACEOF
3645#line $LINENO "configure"
3646#include "confdefs.h"
3647#include <stdlib.h>
3648
3649_ACEOF
3650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651 egrep "free" >/dev/null 2>&1; then
3652 :
3653else
3654 ac_cv_header_stdc=no
3655fi
3656rm -f conftest*
3657
3658fi
3659
3660if test $ac_cv_header_stdc = yes; then
3661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3662 if test "$cross_compiling" = yes; then
3663 :
3664else
3665 cat >conftest.$ac_ext <<_ACEOF
3666#line $LINENO "configure"
3667#include "confdefs.h"
3668#include <ctype.h>
3669#if ((' ' & 0x0FF) == 0x020)
3670# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3671# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3672#else
3673# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3674 || ('j' <= (c) && (c) <= 'r') \
3675 || ('s' <= (c) && (c) <= 'z'))
3676# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3677#endif
3678
3679#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3680int
3681main ()
3682{
3683 int i;
3684 for (i = 0; i < 256; i++)
3685 if (XOR (islower (i), ISLOWER (i))
3686 || toupper (i) != TOUPPER (i))
3687 exit(2);
3688 exit (0);
3689}
3690_ACEOF
3691rm -f conftest$ac_exeext
3692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693 (eval $ac_link) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 (eval $ac_try) 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3702 :
3703else
3704 echo "$as_me: program exited with status $ac_status" >&5
3705echo "$as_me: failed program was:" >&5
3706cat conftest.$ac_ext >&5
3707( exit $ac_status )
3708ac_cv_header_stdc=no
3709fi
3710rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3711fi
3712fi
3713fi
3714echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3715echo "${ECHO_T}$ac_cv_header_stdc" >&6
3716if test $ac_cv_header_stdc = yes; then
3717
3718cat >>confdefs.h <<\_ACEOF
3719#define STDC_HEADERS 1
3720_ACEOF
3721
3722fi
3723
3724# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3735 inttypes.h stdint.h unistd.h
3736do
3737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3738echo "$as_me:$LINENO: checking for $ac_header" >&5
3739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3740if eval "test \"\${$as_ac_Header+set}\" = set"; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 cat >conftest.$ac_ext <<_ACEOF
3744#line $LINENO "configure"
3745#include "confdefs.h"
3746$ac_includes_default
3747
3748#include <$ac_header>
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3752 (eval $ac_compile) 2>&5
3753 ac_status=$?
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 eval "$as_ac_Header=yes"
3763else
3764 echo "$as_me: failed program was:" >&5
3765cat conftest.$ac_ext >&5
3766eval "$as_ac_Header=no"
3767fi
3768rm -f conftest.$ac_objext conftest.$ac_ext
3769fi
3770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3772if test `eval echo '${'$as_ac_Header'}'` = yes; then
3773 cat >>confdefs.h <<_ACEOF
3774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3775_ACEOF
3776
3777fi
3778
3779done
3780
3781
3782
3783for ac_header in dlfcn.h
3784do
3785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3786if eval "test \"\${$as_ac_Header+set}\" = set"; then
3787 echo "$as_me:$LINENO: checking for $ac_header" >&5
3788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3789if eval "test \"\${$as_ac_Header+set}\" = set"; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791fi
3792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794else
3795 # Is the header compilable?
3796echo "$as_me:$LINENO: checking $ac_header usability" >&5
3797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3798cat >conftest.$ac_ext <<_ACEOF
3799#line $LINENO "configure"
3800#include "confdefs.h"
3801$ac_includes_default
3802#include <$ac_header>
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806 (eval $ac_compile) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -s conftest.$ac_objext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 ac_header_compiler=yes
3817else
3818 echo "$as_me: failed program was:" >&5
3819cat conftest.$ac_ext >&5
3820ac_header_compiler=no
3821fi
3822rm -f conftest.$ac_objext conftest.$ac_ext
3823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3824echo "${ECHO_T}$ac_header_compiler" >&6
3825
3826# Is the header present?
3827echo "$as_me:$LINENO: checking $ac_header presence" >&5
3828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3829cat >conftest.$ac_ext <<_ACEOF
3830#line $LINENO "configure"
3831#include "confdefs.h"
3832#include <$ac_header>
3833_ACEOF
3834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3836 ac_status=$?
3837 egrep -v '^ *\+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } >/dev/null; then
3842 if test -s conftest.err; then
3843 ac_cpp_err=$ac_c_preproc_warn_flag
3844 else
3845 ac_cpp_err=
3846 fi
3847else
3848 ac_cpp_err=yes
3849fi
3850if test -z "$ac_cpp_err"; then
3851 ac_header_preproc=yes
3852else
3853 echo "$as_me: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3855 ac_header_preproc=no
3856fi
3857rm -f conftest.err conftest.$ac_ext
3858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3859echo "${ECHO_T}$ac_header_preproc" >&6
3860
3861# So? What about this header?
3862case $ac_header_compiler:$ac_header_preproc in
3863 yes:no )
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3868 no:yes )
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3875esac
3876echo "$as_me:$LINENO: checking for $ac_header" >&5
3877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3878if eval "test \"\${$as_ac_Header+set}\" = set"; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 eval "$as_ac_Header=$ac_header_preproc"
3882fi
3883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3885
3886fi
3887if test `eval echo '${'$as_ac_Header'}'` = yes; then
3888 cat >>confdefs.h <<_ACEOF
3889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3890_ACEOF
3891
3892fi
3893
3894done
3895
3896
3897
3898
3899
3900# Only perform the check for file, if the check method requires it
3901case $deplibs_check_method in
3902file_magic*)
3903 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3904 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3905echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3906if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 case $MAGIC_CMD in
3910 /*)
3911 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3912 ;;
3913 ?:/*)
3914 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915 ;;
3916 *)
3917 ac_save_MAGIC_CMD="$MAGIC_CMD"
3918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3919 ac_dummy="/usr/bin:$PATH"
3920 for ac_dir in $ac_dummy; do
3921 test -z "$ac_dir" && ac_dir=.
3922 if test -f $ac_dir/${ac_tool_prefix}file; then
3923 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3924 if test -n "$file_magic_test_file"; then
3925 case $deplibs_check_method in
3926 "file_magic "*)
3927 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3929 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3930 egrep "$file_magic_regex" > /dev/null; then
3931 :
3932 else
3933 cat <<EOF 1>&2
3934
3935*** Warning: the command libtool uses to detect shared libraries,
3936*** $file_magic_cmd, produces output that libtool cannot recognize.
3937*** The result is that libtool may fail to recognize shared libraries
3938*** as such. This will affect the creation of libtool libraries that
3939*** depend on shared libraries, but programs linked with such libtool
3940*** libraries will work regardless of this problem. Nevertheless, you
3941*** may want to report the problem to your system manager and/or to
3942*** bug-libtool@gnu.org
3943
3944EOF
3945 fi ;;
3946 esac
3947 fi
3948 break
3949 fi
3950 done
3951 IFS="$ac_save_ifs"
3952 MAGIC_CMD="$ac_save_MAGIC_CMD"
3953 ;;
3954esac
3955fi
3956
3957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3958if test -n "$MAGIC_CMD"; then
3959 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3960echo "${ECHO_T}$MAGIC_CMD" >&6
3961else
3962 echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6
3964fi
3965
3966if test -z "$lt_cv_path_MAGIC_CMD"; then
3967 if test -n "$ac_tool_prefix"; then
3968 echo "$as_me:$LINENO: checking for file" >&5
3969echo $ECHO_N "checking for file... $ECHO_C" >&6
3970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 case $MAGIC_CMD in
3974 /*)
3975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3976 ;;
3977 ?:/*)
3978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3979 ;;
3980 *)
3981 ac_save_MAGIC_CMD="$MAGIC_CMD"
3982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3983 ac_dummy="/usr/bin:$PATH"
3984 for ac_dir in $ac_dummy; do
3985 test -z "$ac_dir" && ac_dir=.
3986 if test -f $ac_dir/file; then
3987 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3988 if test -n "$file_magic_test_file"; then
3989 case $deplibs_check_method in
3990 "file_magic "*)
3991 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3994 egrep "$file_magic_regex" > /dev/null; then
3995 :
3996 else
3997 cat <<EOF 1>&2
3998
3999*** Warning: the command libtool uses to detect shared libraries,
4000*** $file_magic_cmd, produces output that libtool cannot recognize.
4001*** The result is that libtool may fail to recognize shared libraries
4002*** as such. This will affect the creation of libtool libraries that
4003*** depend on shared libraries, but programs linked with such libtool
4004*** libraries will work regardless of this problem. Nevertheless, you
4005*** may want to report the problem to your system manager and/or to
4006*** bug-libtool@gnu.org
4007
4008EOF
4009 fi ;;
4010 esac
4011 fi
4012 break
4013 fi
4014 done
4015 IFS="$ac_save_ifs"
4016 MAGIC_CMD="$ac_save_MAGIC_CMD"
4017 ;;
4018esac
4019fi
4020
4021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4022if test -n "$MAGIC_CMD"; then
4023 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4024echo "${ECHO_T}$MAGIC_CMD" >&6
4025else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028fi
4029
4030 else
4031 MAGIC_CMD=:
4032 fi
4033fi
4034
4035 fi
4036 ;;
4037esac
4038
4039if test -n "$ac_tool_prefix"; then
4040 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4041set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4042echo "$as_me:$LINENO: checking for $ac_word" >&5
4043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044if test "${ac_cv_prog_RANLIB+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046else
4047 if test -n "$RANLIB"; then
4048 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4049else
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061done
4062done
4063
4064fi
4065fi
4066RANLIB=$ac_cv_prog_RANLIB
4067if test -n "$RANLIB"; then
4068 echo "$as_me:$LINENO: result: $RANLIB" >&5
4069echo "${ECHO_T}$RANLIB" >&6
4070else
4071 echo "$as_me:$LINENO: result: no" >&5
4072echo "${ECHO_T}no" >&6
4073fi
4074
4075fi
4076if test -z "$ac_cv_prog_RANLIB"; then
4077 ac_ct_RANLIB=$RANLIB
4078 # Extract the first word of "ranlib", so it can be a program name with args.
4079set dummy ranlib; ac_word=$2
4080echo "$as_me:$LINENO: checking for $ac_word" >&5
4081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085 if test -n "$ac_ct_RANLIB"; then
4086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4087else
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_ac_ct_RANLIB="ranlib"
4096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099done
4100done
4101
4102 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4103fi
4104fi
4105ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4106if test -n "$ac_ct_RANLIB"; then
4107 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4108echo "${ECHO_T}$ac_ct_RANLIB" >&6
4109else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113
4114 RANLIB=$ac_ct_RANLIB
4115else
4116 RANLIB="$ac_cv_prog_RANLIB"
4117fi
4118
4119if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4121set dummy ${ac_tool_prefix}strip; ac_word=$2
4122echo "$as_me:$LINENO: checking for $ac_word" >&5
4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124if test "${ac_cv_prog_STRIP+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126else
4127 if test -n "$STRIP"; then
4128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4129else
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141done
4142done
4143
4144fi
4145fi
4146STRIP=$ac_cv_prog_STRIP
4147if test -n "$STRIP"; then
4148 echo "$as_me:$LINENO: result: $STRIP" >&5
4149echo "${ECHO_T}$STRIP" >&6
4150else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153fi
4154
4155fi
4156if test -z "$ac_cv_prog_STRIP"; then
4157 ac_ct_STRIP=$STRIP
4158 # Extract the first word of "strip", so it can be a program name with args.
4159set dummy strip; ac_word=$2
4160echo "$as_me:$LINENO: checking for $ac_word" >&5
4161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165 if test -n "$ac_ct_STRIP"; then
4166 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_STRIP="strip"
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180done
4181
4182 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4183fi
4184fi
4185ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4186if test -n "$ac_ct_STRIP"; then
4187 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4188echo "${ECHO_T}$ac_ct_STRIP" >&6
4189else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192fi
4193
4194 STRIP=$ac_ct_STRIP
4195else
4196 STRIP="$ac_cv_prog_STRIP"
4197fi
4198
4199
4200enable_dlopen=no
4201enable_win32_dll=no
4202
jjako52c24142002-12-16 13:33:51 +00004203# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4204if test "${enable_libtool_lock+set}" = set; then
4205 enableval="$enable_libtool_lock"
jjako52c24142002-12-16 13:33:51 +00004206
jjako286bc982003-01-28 23:17:50 +00004207fi;
4208test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
jjako52c24142002-12-16 13:33:51 +00004209
4210# Some flags need to be propagated to the compiler or linker for good
4211# libtool support.
jjako286bc982003-01-28 23:17:50 +00004212case $host in
jjako52c24142002-12-16 13:33:51 +00004213*-*-irix6*)
4214 # Find out which ABI we are using.
jjakoa9639f32003-07-07 15:30:11 +00004215 echo '#line 4215 "configure"' > conftest.$ac_ext
jjako286bc982003-01-28 23:17:50 +00004216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217 (eval $ac_compile) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; then
4221 case `/usr/bin/file conftest.$ac_objext` in
jjako52c24142002-12-16 13:33:51 +00004222 *32-bit*)
4223 LD="${LD-ld} -32"
4224 ;;
4225 *N32*)
4226 LD="${LD-ld} -n32"
4227 ;;
4228 *64-bit*)
4229 LD="${LD-ld} -64"
4230 ;;
4231 esac
4232 fi
4233 rm -rf conftest*
4234 ;;
4235
4236*-*-sco3.2v5*)
4237 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4238 SAVE_CFLAGS="$CFLAGS"
4239 CFLAGS="$CFLAGS -belf"
jjako286bc982003-01-28 23:17:50 +00004240 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4241echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4242if test "${lt_cv_cc_needs_belf+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004244else
jjako286bc982003-01-28 23:17:50 +00004245
4246
4247 ac_ext=c
4248ac_cpp='$CPP $CPPFLAGS'
4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 cat >conftest.$ac_ext <<_ACEOF
4254#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00004255#include "confdefs.h"
4256
jjako286bc982003-01-28 23:17:50 +00004257#ifdef F77_DUMMY_MAIN
4258# ifdef __cplusplus
4259 extern "C"
4260# endif
4261 int F77_DUMMY_MAIN() { return 1; }
4262#endif
4263int
4264main ()
4265{
jjako52c24142002-12-16 13:33:51 +00004266
jjako286bc982003-01-28 23:17:50 +00004267 ;
4268 return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext conftest$ac_exeext
4272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4273 (eval $ac_link) 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -s conftest$ac_exeext'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00004283 lt_cv_cc_needs_belf=yes
4284else
jjako286bc982003-01-28 23:17:50 +00004285 echo "$as_me: failed program was:" >&5
4286cat conftest.$ac_ext >&5
4287lt_cv_cc_needs_belf=no
jjako52c24142002-12-16 13:33:51 +00004288fi
jjako286bc982003-01-28 23:17:50 +00004289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4290 ac_ext=c
4291ac_cpp='$CPP $CPPFLAGS'
4292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294ac_compiler_gnu=$ac_cv_c_compiler_gnu
jjako52c24142002-12-16 13:33:51 +00004295
jjako286bc982003-01-28 23:17:50 +00004296fi
4297echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4298echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
jjako52c24142002-12-16 13:33:51 +00004299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4301 CFLAGS="$SAVE_CFLAGS"
4302 fi
4303 ;;
4304
4305
4306esac
4307
jjako286bc982003-01-28 23:17:50 +00004308# Sed substitution that helps us do robust quoting. It backslashifies
4309# metacharacters that are still active within double-quoted strings.
4310Xsed='sed -e s/^X//'
4311sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
jjako52c24142002-12-16 13:33:51 +00004312
jjako286bc982003-01-28 23:17:50 +00004313# Same as above, but do not quote variable references.
4314double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4315
4316# Sed substitution to delay expansion of an escaped shell variable in a
4317# double_quote_subst'ed string.
4318delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4319
4320# Constants:
4321rm="rm -f"
4322
4323# Global variables:
4324default_ofile=libtool
4325can_build_shared=yes
4326
4327# All known linkers require a `.a' archive for static linking (except M$VC,
4328# which needs '.lib').
4329libext=a
4330ltmain="$ac_aux_dir/ltmain.sh"
4331ofile="$default_ofile"
4332with_gnu_ld="$lt_cv_prog_gnu_ld"
4333need_locks="$enable_libtool_lock"
4334
4335old_CC="$CC"
4336old_CFLAGS="$CFLAGS"
4337
4338# Set sane defaults for various variables
4339test -z "$AR" && AR=ar
4340test -z "$AR_FLAGS" && AR_FLAGS=cru
4341test -z "$AS" && AS=as
4342test -z "$CC" && CC=cc
4343test -z "$DLLTOOL" && DLLTOOL=dlltool
4344test -z "$LD" && LD=ld
4345test -z "$LN_S" && LN_S="ln -s"
4346test -z "$MAGIC_CMD" && MAGIC_CMD=file
4347test -z "$NM" && NM=nm
4348test -z "$OBJDUMP" && OBJDUMP=objdump
4349test -z "$RANLIB" && RANLIB=:
4350test -z "$STRIP" && STRIP=:
4351test -z "$ac_objext" && ac_objext=o
4352
4353if test x"$host" != x"$build"; then
4354 ac_tool_prefix=${host_alias}-
4355else
4356 ac_tool_prefix=
4357fi
4358
4359# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4360case $host_os in
4361linux-gnu*) ;;
4362linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4363esac
4364
4365case $host_os in
4366aix3*)
4367 # AIX sometimes has problems with the GCC collect2 program. For some
4368 # reason, if we set the COLLECT_NAMES environment variable, the problems
4369 # vanish in a puff of smoke.
4370 if test "X${COLLECT_NAMES+set}" != Xset; then
4371 COLLECT_NAMES=
4372 export COLLECT_NAMES
4373 fi
4374 ;;
4375esac
4376
4377# Determine commands to create old-style static archives.
4378old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4379old_postinstall_cmds='chmod 644 $oldlib'
4380old_postuninstall_cmds=
4381
4382if test -n "$RANLIB"; then
4383 case $host_os in
4384 openbsd*)
4385 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004386 ;;
4387 *)
jjako286bc982003-01-28 23:17:50 +00004388 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
jjako52c24142002-12-16 13:33:51 +00004389 ;;
jjako286bc982003-01-28 23:17:50 +00004390 esac
4391 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4392fi
4393
4394# Allow CC to be a program name with arguments.
4395set dummy $CC
4396compiler="$2"
4397
4398echo "$as_me:$LINENO: checking for objdir" >&5
4399echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4400rm -f .libs 2>/dev/null
4401mkdir .libs 2>/dev/null
4402if test -d .libs; then
4403 objdir=.libs
jjako52c24142002-12-16 13:33:51 +00004404else
jjako286bc982003-01-28 23:17:50 +00004405 # MS-DOS does not allow filenames that begin with a dot.
4406 objdir=_libs
4407fi
4408rmdir .libs 2>/dev/null
4409echo "$as_me:$LINENO: result: $objdir" >&5
4410echo "${ECHO_T}$objdir" >&6
4411
4412
4413
4414# Check whether --with-pic or --without-pic was given.
4415if test "${with_pic+set}" = set; then
4416 withval="$with_pic"
4417 pic_mode="$withval"
4418else
4419 pic_mode=default
4420fi;
4421test -z "$pic_mode" && pic_mode=default
4422
4423# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4424# in isolation, and that seeing it set (from the cache) indicates that
4425# the associated values are set (in the cache) correctly too.
4426echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4427echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4428if test "${lt_cv_prog_cc_pic+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 lt_cv_prog_cc_pic=
4432 lt_cv_prog_cc_shlib=
4433 lt_cv_prog_cc_wl=
4434 lt_cv_prog_cc_static=
4435 lt_cv_prog_cc_no_builtin=
4436 lt_cv_prog_cc_can_build_shared=$can_build_shared
4437
4438 if test "$GCC" = yes; then
4439 lt_cv_prog_cc_wl='-Wl,'
4440 lt_cv_prog_cc_static='-static'
4441
4442 case $host_os in
4443 aix*)
4444 # Below there is a dirty hack to force normal static linking with -ldl
4445 # The problem is because libdl dynamically linked with both libc and
4446 # libC (AIX C++ library), which obviously doesn't included in libraries
4447 # list by gcc. This cause undefined symbols with -static flags.
4448 # This hack allows C programs to be linked with "-static -ldl", but
4449 # not sure about C++ programs.
4450 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4451 ;;
4452 amigaos*)
4453 # FIXME: we need at least 68020 code to build shared libraries, but
4454 # adding the `-m68020' flag to GCC prevents building anything better,
4455 # like `-m68040'.
4456 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4457 ;;
4458 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4459 # PIC is the default for these OSes.
4460 ;;
4461 darwin* | rhapsody*)
4462 # PIC is the default on this platform
4463 # Common symbols not allowed in MH_DYLIB files
4464 lt_cv_prog_cc_pic='-fno-common'
4465 ;;
4466 cygwin* | mingw* | pw32* | os2*)
4467 # This hack is so that the source file can tell whether it is being
4468 # built for inclusion in a dll (and should export symbols for example).
4469 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4470 ;;
4471 sysv4*MP*)
4472 if test -d /usr/nec; then
4473 lt_cv_prog_cc_pic=-Kconform_pic
4474 fi
4475 ;;
4476 *)
4477 lt_cv_prog_cc_pic='-fPIC'
4478 ;;
4479 esac
jjako52c24142002-12-16 13:33:51 +00004480 else
jjako286bc982003-01-28 23:17:50 +00004481 # PORTME Check for PIC flags for the system compiler.
4482 case $host_os in
4483 aix3* | aix4* | aix5*)
4484 lt_cv_prog_cc_wl='-Wl,'
4485 # All AIX code is PIC.
4486 if test "$host_cpu" = ia64; then
4487 # AIX 5 now supports IA64 processor
4488 lt_cv_prog_cc_static='-Bstatic'
4489 else
4490 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4491 fi
4492 ;;
4493
4494 hpux9* | hpux10* | hpux11*)
4495 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4496 lt_cv_prog_cc_wl='-Wl,'
4497 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4498 lt_cv_prog_cc_pic='+Z'
4499 ;;
4500
4501 irix5* | irix6*)
4502 lt_cv_prog_cc_wl='-Wl,'
4503 lt_cv_prog_cc_static='-non_shared'
4504 # PIC (with -KPIC) is the default.
4505 ;;
4506
4507 cygwin* | mingw* | pw32* | os2*)
4508 # This hack is so that the source file can tell whether it is being
4509 # built for inclusion in a dll (and should export symbols for example).
4510 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4511 ;;
4512
4513 newsos6)
4514 lt_cv_prog_cc_pic='-KPIC'
4515 lt_cv_prog_cc_static='-Bstatic'
4516 ;;
4517
4518 osf3* | osf4* | osf5*)
4519 # All OSF/1 code is PIC.
4520 lt_cv_prog_cc_wl='-Wl,'
4521 lt_cv_prog_cc_static='-non_shared'
4522 ;;
4523
4524 sco3.2v5*)
4525 lt_cv_prog_cc_pic='-Kpic'
4526 lt_cv_prog_cc_static='-dn'
4527 lt_cv_prog_cc_shlib='-belf'
4528 ;;
4529
4530 solaris*)
4531 lt_cv_prog_cc_pic='-KPIC'
4532 lt_cv_prog_cc_static='-Bstatic'
4533 lt_cv_prog_cc_wl='-Wl,'
4534 ;;
4535
4536 sunos4*)
4537 lt_cv_prog_cc_pic='-PIC'
4538 lt_cv_prog_cc_static='-Bstatic'
4539 lt_cv_prog_cc_wl='-Qoption ld '
4540 ;;
4541
4542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4543 lt_cv_prog_cc_pic='-KPIC'
4544 lt_cv_prog_cc_static='-Bstatic'
4545 if test "x$host_vendor" = xsni; then
4546 lt_cv_prog_cc_wl='-LD'
4547 else
4548 lt_cv_prog_cc_wl='-Wl,'
4549 fi
4550 ;;
4551
4552 uts4*)
4553 lt_cv_prog_cc_pic='-pic'
4554 lt_cv_prog_cc_static='-Bstatic'
4555 ;;
4556
4557 sysv4*MP*)
4558 if test -d /usr/nec ;then
4559 lt_cv_prog_cc_pic='-Kconform_pic'
4560 lt_cv_prog_cc_static='-Bstatic'
4561 fi
4562 ;;
4563
4564 *)
4565 lt_cv_prog_cc_can_build_shared=no
4566 ;;
4567 esac
4568 fi
4569
4570fi
4571
4572if test -z "$lt_cv_prog_cc_pic"; then
4573 echo "$as_me:$LINENO: result: none" >&5
4574echo "${ECHO_T}none" >&6
4575else
4576 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4577echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4578
4579 # Check to make sure the pic_flag actually works.
4580 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4581echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4582 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 save_CFLAGS="$CFLAGS"
4586 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4587 cat >conftest.$ac_ext <<_ACEOF
4588#line $LINENO "configure"
4589#include "confdefs.h"
4590
4591#ifdef F77_DUMMY_MAIN
4592# ifdef __cplusplus
4593 extern "C"
4594# endif
4595 int F77_DUMMY_MAIN() { return 1; }
4596#endif
4597int
4598main ()
4599{
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 case $host_os in
4618 hpux9* | hpux10* | hpux11*)
4619 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4620 # they create non-PIC objects. So, if there were any warnings, we
4621 # assume that PIC is not supported.
4622 if test -s conftest.err; then
4623 lt_cv_prog_cc_pic_works=no
4624 else
4625 lt_cv_prog_cc_pic_works=yes
4626 fi
4627 ;;
4628 *)
4629 lt_cv_prog_cc_pic_works=yes
4630 ;;
4631 esac
4632
4633else
4634 echo "$as_me: failed program was:" >&5
4635cat conftest.$ac_ext >&5
4636 lt_cv_prog_cc_pic_works=no
4637
4638fi
4639rm -f conftest.$ac_objext conftest.$ac_ext
4640 CFLAGS="$save_CFLAGS"
4641
4642fi
4643
4644
4645 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4646 lt_cv_prog_cc_pic=
4647 lt_cv_prog_cc_can_build_shared=no
4648 else
4649 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4650 fi
4651
4652 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4653echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4654fi
4655
4656# Check for any special shared library compilation flags.
4657if test -n "$lt_cv_prog_cc_shlib"; then
4658 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4659echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4660 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4661 else
4662 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4663echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4664 lt_cv_prog_cc_can_build_shared=no
jjako52c24142002-12-16 13:33:51 +00004665 fi
4666fi
jjako52c24142002-12-16 13:33:51 +00004667
jjako286bc982003-01-28 23:17:50 +00004668echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4669echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4670if test "${lt_cv_prog_cc_static_works+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00004672else
jjako286bc982003-01-28 23:17:50 +00004673 lt_cv_prog_cc_static_works=no
4674 save_LDFLAGS="$LDFLAGS"
4675 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4676 cat >conftest.$ac_ext <<_ACEOF
4677#line $LINENO "configure"
4678#include "confdefs.h"
4679
4680#ifdef F77_DUMMY_MAIN
4681# ifdef __cplusplus
4682 extern "C"
4683# endif
4684 int F77_DUMMY_MAIN() { return 1; }
4685#endif
4686int
4687main ()
4688{
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694rm -f conftest.$ac_objext conftest$ac_exeext
4695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4696 (eval $ac_link) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest$ac_exeext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 lt_cv_prog_cc_static_works=yes
4707else
4708 echo "$as_me: failed program was:" >&5
4709cat conftest.$ac_ext >&5
jjako52c24142002-12-16 13:33:51 +00004710fi
jjako286bc982003-01-28 23:17:50 +00004711rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4712 LDFLAGS="$save_LDFLAGS"
4713
4714fi
4715
4716
4717# Belt *and* braces to stop my trousers falling down:
4718test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4719echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4720echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4721
4722pic_flag="$lt_cv_prog_cc_pic"
4723special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4724wl="$lt_cv_prog_cc_wl"
4725link_static_flag="$lt_cv_prog_cc_static"
4726no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4727can_build_shared="$lt_cv_prog_cc_can_build_shared"
4728
4729
4730# Check to see if options -o and -c are simultaneously supported by compiler
4731echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4732echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4733if test "${lt_cv_compiler_c_o+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736
4737$rm -r conftest 2>/dev/null
4738mkdir conftest
4739cd conftest
4740echo "int some_variable = 0;" > conftest.$ac_ext
4741mkdir out
4742# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4743# that will create temporary files in the current directory regardless of
4744# the output directory. Thus, making CWD read-only will cause this test
4745# to fail, enabling locking or at least warning the user not to do parallel
4746# builds.
4747chmod -w .
4748save_CFLAGS="$CFLAGS"
4749CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4750compiler_c_o=no
jjakoa9639f32003-07-07 15:30:11 +00004751if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
jjako286bc982003-01-28 23:17:50 +00004752 # The compiler can only warn and ignore the option if not recognized
4753 # So say no if there are warnings
4754 if test -s out/conftest.err; then
4755 lt_cv_compiler_c_o=no
4756 else
4757 lt_cv_compiler_c_o=yes
4758 fi
4759else
4760 # Append any errors to the config.log.
4761 cat out/conftest.err 1>&5
4762 lt_cv_compiler_c_o=no
4763fi
4764CFLAGS="$save_CFLAGS"
4765chmod u+w .
4766$rm conftest* out/*
4767rmdir out
4768cd ..
4769rmdir conftest
4770$rm -r conftest 2>/dev/null
4771
4772fi
4773
4774compiler_c_o=$lt_cv_compiler_c_o
4775echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4776echo "${ECHO_T}$compiler_c_o" >&6
4777
4778if test x"$compiler_c_o" = x"yes"; then
4779 # Check to see if we can write to a .lo
4780 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4781echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4782 if test "${lt_cv_compiler_o_lo+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785
4786 lt_cv_compiler_o_lo=no
4787 save_CFLAGS="$CFLAGS"
4788 CFLAGS="$CFLAGS -c -o conftest.lo"
4789 save_objext="$ac_objext"
4790 ac_objext=lo
4791 cat >conftest.$ac_ext <<_ACEOF
4792#line $LINENO "configure"
4793#include "confdefs.h"
4794
4795#ifdef F77_DUMMY_MAIN
4796# ifdef __cplusplus
4797 extern "C"
4798# endif
4799 int F77_DUMMY_MAIN() { return 1; }
4800#endif
4801int
4802main ()
4803{
4804int some_variable = 0;
4805 ;
4806 return 0;
4807}
4808_ACEOF
4809rm -f conftest.$ac_objext
4810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 # The compiler can only warn and ignore the option if not recognized
4822 # So say no if there are warnings
4823 if test -s conftest.err; then
4824 lt_cv_compiler_o_lo=no
4825 else
4826 lt_cv_compiler_o_lo=yes
4827 fi
4828
4829else
4830 echo "$as_me: failed program was:" >&5
4831cat conftest.$ac_ext >&5
4832fi
4833rm -f conftest.$ac_objext conftest.$ac_ext
4834 ac_objext="$save_objext"
4835 CFLAGS="$save_CFLAGS"
4836
4837fi
4838
4839 compiler_o_lo=$lt_cv_compiler_o_lo
4840 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4841echo "${ECHO_T}$compiler_o_lo" >&6
4842else
4843 compiler_o_lo=no
4844fi
4845
4846# Check to see if we can do hard links to lock some files if needed
4847hard_links="nottested"
4848if test "$compiler_c_o" = no && test "$need_locks" != no; then
4849 # do not overwrite the value of need_locks provided by the user
4850 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4851echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4852 hard_links=yes
4853 $rm conftest*
4854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4855 touch conftest.a
4856 ln conftest.a conftest.b 2>&5 || hard_links=no
4857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4858 echo "$as_me:$LINENO: result: $hard_links" >&5
4859echo "${ECHO_T}$hard_links" >&6
4860 if test "$hard_links" = no; then
4861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4862echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4863 need_locks=warn
4864 fi
4865else
4866 need_locks=no
4867fi
4868
4869if test "$GCC" = yes; then
4870 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4871 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4872echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4873 echo "int some_variable = 0;" > conftest.$ac_ext
4874 save_CFLAGS="$CFLAGS"
4875 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4876 compiler_rtti_exceptions=no
4877 cat >conftest.$ac_ext <<_ACEOF
4878#line $LINENO "configure"
4879#include "confdefs.h"
4880
4881#ifdef F77_DUMMY_MAIN
4882# ifdef __cplusplus
4883 extern "C"
4884# endif
4885 int F77_DUMMY_MAIN() { return 1; }
4886#endif
4887int
4888main ()
4889{
4890int some_variable = 0;
4891 ;
4892 return 0;
4893}
4894_ACEOF
4895rm -f conftest.$ac_objext
4896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 (eval $ac_try) 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 # The compiler can only warn and ignore the option if not recognized
4908 # So say no if there are warnings
4909 if test -s conftest.err; then
4910 compiler_rtti_exceptions=no
4911 else
4912 compiler_rtti_exceptions=yes
4913 fi
4914
4915else
4916 echo "$as_me: failed program was:" >&5
4917cat conftest.$ac_ext >&5
4918fi
4919rm -f conftest.$ac_objext conftest.$ac_ext
4920 CFLAGS="$save_CFLAGS"
4921 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4922echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4923
4924 if test "$compiler_rtti_exceptions" = "yes"; then
4925 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4926 else
4927 no_builtin_flag=' -fno-builtin'
4928 fi
4929fi
4930
4931# See if the linker supports building shared libraries.
4932echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4933echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4934
4935allow_undefined_flag=
4936no_undefined_flag=
4937need_lib_prefix=unknown
4938need_version=unknown
4939# when you set need_version to no, make sure it does not cause -set_version
4940# flags to be left without arguments
4941archive_cmds=
4942archive_expsym_cmds=
4943old_archive_from_new_cmds=
4944old_archive_from_expsyms_cmds=
4945export_dynamic_flag_spec=
4946whole_archive_flag_spec=
4947thread_safe_flag_spec=
4948hardcode_into_libs=no
4949hardcode_libdir_flag_spec=
4950hardcode_libdir_separator=
4951hardcode_direct=no
4952hardcode_minus_L=no
4953hardcode_shlibpath_var=unsupported
4954runpath_var=
4955link_all_deplibs=unknown
4956always_export_symbols=no
4957export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4958# include_expsyms should be a list of space-separated symbols to be *always*
4959# included in the symbol list
4960include_expsyms=
4961# exclude_expsyms can be an egrep regular expression of symbols to exclude
4962# it will be wrapped by ` (' and `)$', so one must not match beginning or
4963# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4964# as well as any symbol that contains `d'.
4965exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4966# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4967# platforms (ab)use it in PIC code, but their linkers get confused if
4968# the symbol is explicitly referenced. Since portable code cannot
4969# rely on this symbol name, it's probably fine to never include it in
4970# preloaded symbol tables.
4971extract_expsyms_cmds=
4972
4973case $host_os in
4974cygwin* | mingw* | pw32*)
4975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4976 # When not using gcc, we currently assume that we are using
4977 # Microsoft Visual C++.
4978 if test "$GCC" != yes; then
4979 with_gnu_ld=no
4980 fi
4981 ;;
4982openbsd*)
4983 with_gnu_ld=no
4984 ;;
4985esac
4986
4987ld_shlibs=yes
4988if test "$with_gnu_ld" = yes; then
4989 # If archive_cmds runs LD, not CC, wlarc should be empty
4990 wlarc='${wl}'
4991
4992 # See if GNU ld supports shared libraries.
4993 case $host_os in
4994 aix3* | aix4* | aix5*)
4995 # On AIX, the GNU linker is very broken
4996 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4997 ld_shlibs=no
4998 cat <<EOF 1>&2
4999
5000*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5001*** to be unable to reliably create shared libraries on AIX.
5002*** Therefore, libtool is disabling shared libraries support. If you
5003*** really care for shared libraries, you may want to modify your PATH
5004*** so that a non-GNU linker is found, and then restart.
5005
5006EOF
5007 ;;
5008
5009 amigaos*)
5010 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)'
5011 hardcode_libdir_flag_spec='-L$libdir'
5012 hardcode_minus_L=yes
5013
5014 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5015 # that the semantics of dynamic libraries on AmigaOS, at least up
5016 # to version 4, is to share data among multiple programs linked
5017 # with the same dynamic library. Since this doesn't match the
5018 # behavior of shared libraries on other platforms, we can use
5019 # them.
5020 ld_shlibs=no
5021 ;;
5022
5023 beos*)
5024 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5025 allow_undefined_flag=unsupported
5026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5027 # support --undefined. This deserves some investigation. FIXME
5028 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5029 else
5030 ld_shlibs=no
5031 fi
5032 ;;
5033
5034 cygwin* | mingw* | pw32*)
5035 # hardcode_libdir_flag_spec is actually meaningless, as there is
5036 # no search path for DLLs.
5037 hardcode_libdir_flag_spec='-L$libdir'
5038 allow_undefined_flag=unsupported
5039 always_export_symbols=yes
5040
5041 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5042 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5043 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5044 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5045 else $CC -o impgen impgen.c ; fi)~
5046 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5047
5048 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5049
5050 # cygwin and mingw dlls have different entry points and sets of symbols
5051 # to exclude.
5052 # FIXME: what about values for MSVC?
5053 dll_entry=__cygwin_dll_entry@12
5054 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5055 case $host_os in
5056 mingw*)
5057 # mingw values
5058 dll_entry=_DllMainCRTStartup@12
5059 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5060 ;;
5061 esac
5062
5063 # mingw and cygwin differ, and it's simplest to just exclude the union
5064 # of the two symbol sets.
5065 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5066
5067 # recent cygwin and mingw systems supply a stub DllMain which the user
5068 # can override, but on older systems we have to supply one (in ltdll.c)
5069 if test "x$lt_cv_need_dllmain" = "xyes"; then
5070 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5071 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~
5072 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5073 else
5074 ltdll_obj=
5075 ltdll_cmds=
5076 fi
5077
5078 # Extract the symbol export list from an `--export-all' def file,
5079 # then regenerate the def file from the symbol export list, so that
5080 # the compiled dll only exports the symbol export list.
5081 # Be careful not to strip the DATA tag left be newer dlltools.
5082 export_symbols_cmds="$ltdll_cmds"'
5083 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5084 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5085
5086 # If the export-symbols file already is a .def file (1st line
5087 # is EXPORTS), use it as is.
5088 # If DATA tags from a recent dlltool are present, honour them!
5089 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5090 cp $export_symbols $output_objdir/$soname-def;
5091 else
5092 echo EXPORTS > $output_objdir/$soname-def;
5093 _lt_hint=1;
5094 cat $export_symbols | while read symbol; do
5095 set dummy \$symbol;
5096 case \$# in
5097 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5098 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5099 esac;
5100 _lt_hint=`expr 1 + \$_lt_hint`;
5101 done;
5102 fi~
5103 '"$ltdll_cmds"'
5104 $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~
5105 $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~
5106 $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~
5107 $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~
5108 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5109 ;;
5110
5111 netbsd*)
5112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5114 wlarc=
5115 else
5116 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5117 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5118 fi
5119 ;;
5120
5121 solaris* | sysv5*)
5122 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5123 ld_shlibs=no
5124 cat <<EOF 1>&2
5125
5126*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5127*** create shared libraries on Solaris systems. Therefore, libtool
5128*** is disabling shared libraries support. We urge you to upgrade GNU
5129*** binutils to release 2.9.1 or newer. Another option is to modify
5130*** your PATH or compiler configuration so that the native linker is
5131*** used, and then restart.
5132
5133EOF
5134 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5137 else
5138 ld_shlibs=no
5139 fi
5140 ;;
5141
5142 sunos4*)
5143 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5144 wlarc=
5145 hardcode_direct=yes
5146 hardcode_shlibpath_var=no
5147 ;;
5148
5149 *)
5150 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5153 else
5154 ld_shlibs=no
5155 fi
5156 ;;
5157 esac
5158
5159 if test "$ld_shlibs" = yes; then
5160 runpath_var=LD_RUN_PATH
5161 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5162 export_dynamic_flag_spec='${wl}--export-dynamic'
5163 case $host_os in
5164 cygwin* | mingw* | pw32*)
5165 # dlltool doesn't understand --whole-archive et. al.
5166 whole_archive_flag_spec=
5167 ;;
5168 *)
5169 # ancient GNU ld didn't support --whole-archive et. al.
5170 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5171 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5172 else
5173 whole_archive_flag_spec=
5174 fi
5175 ;;
5176 esac
5177 fi
5178else
5179 # PORTME fill in a description of your system's linker (not GNU ld)
5180 case $host_os in
5181 aix3*)
5182 allow_undefined_flag=unsupported
5183 always_export_symbols=yes
5184 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'
5185 # Note: this linker hardcodes the directories in LIBPATH if there
5186 # are no directories specified by -L.
5187 hardcode_minus_L=yes
5188 if test "$GCC" = yes && test -z "$link_static_flag"; then
5189 # Neither direct hardcoding nor static linking is supported with a
5190 # broken collect2.
5191 hardcode_direct=unsupported
5192 fi
5193 ;;
5194
5195 aix4* | aix5*)
5196 if test "$host_cpu" = ia64; then
5197 # On IA64, the linker does run time linking by default, so we don't
5198 # have to do anything special.
5199 aix_use_runtimelinking=no
5200 exp_sym_flag='-Bexport'
5201 no_entry_flag=""
5202 else
5203 aix_use_runtimelinking=no
5204
5205 # Test if we are trying to use run time linking or normal
5206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5207 # need to do runtime linking.
5208 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5209 for ld_flag in $LDFLAGS; do
5210 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5211 aix_use_runtimelinking=yes
5212 break
5213 fi
5214 done
5215 esac
5216
5217 exp_sym_flag='-bexport'
5218 no_entry_flag='-bnoentry'
5219 fi
5220
5221 # When large executables or shared objects are built, AIX ld can
5222 # have problems creating the table of contents. If linking a library
5223 # or program results in "error TOC overflow" add -mminimal-toc to
5224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5226
5227 hardcode_direct=yes
5228 archive_cmds=''
5229 hardcode_libdir_separator=':'
5230 if test "$GCC" = yes; then
5231 case $host_os in aix4.[012]|aix4.[012].*)
5232 collect2name=`${CC} -print-prog-name=collect2`
5233 if test -f "$collect2name" && \
5234 strings "$collect2name" | grep resolve_lib_name >/dev/null
5235 then
5236 # We have reworked collect2
5237 hardcode_direct=yes
5238 else
5239 # We have old collect2
5240 hardcode_direct=unsupported
5241 # It fails to find uninstalled libraries when the uninstalled
5242 # path is not listed in the libpath. Setting hardcode_minus_L
5243 # to unsupported forces relinking
5244 hardcode_minus_L=yes
5245 hardcode_libdir_flag_spec='-L$libdir'
5246 hardcode_libdir_separator=
5247 fi
5248 esac
5249
5250 shared_flag='-shared'
5251 else
5252 # not using gcc
5253 if test "$host_cpu" = ia64; then
5254 shared_flag='${wl}-G'
5255 else
5256 if test "$aix_use_runtimelinking" = yes; then
5257 shared_flag='${wl}-G'
5258 else
5259 shared_flag='${wl}-bM:SRE'
5260 fi
5261 fi
5262 fi
5263
5264 # It seems that -bexpall can do strange things, so it is better to
5265 # generate a list of symbols to export.
5266 always_export_symbols=yes
5267 if test "$aix_use_runtimelinking" = yes; then
5268 # Warning - without using the other runtime loading flags (-brtl),
5269 # -berok will link without error, but may produce a broken library.
5270 allow_undefined_flag='-berok'
5271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5272 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"
5273 else
5274 if test "$host_cpu" = ia64; then
5275 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5276 allow_undefined_flag="-z nodefs"
5277 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"
5278 else
5279 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5280 # Warning - without using the other run time loading flags,
5281 # -berok will link without error, but may produce a broken library.
5282 allow_undefined_flag='${wl}-berok'
5283 # This is a bit strange, but is similar to how AIX traditionally builds
5284 # it's shared libraries.
5285 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'
5286 fi
5287 fi
5288 ;;
5289
5290 amigaos*)
5291 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)'
5292 hardcode_libdir_flag_spec='-L$libdir'
5293 hardcode_minus_L=yes
5294 # see comment about different semantics on the GNU ld section
5295 ld_shlibs=no
5296 ;;
5297
5298 cygwin* | mingw* | pw32*)
5299 # When not using gcc, we currently assume that we are using
5300 # Microsoft Visual C++.
5301 # hardcode_libdir_flag_spec is actually meaningless, as there is
5302 # no search path for DLLs.
5303 hardcode_libdir_flag_spec=' '
5304 allow_undefined_flag=unsupported
5305 # Tell ltmain to make .lib files, not .a files.
5306 libext=lib
5307 # FIXME: Setting linknames here is a bad hack.
5308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5309 # The linker will automatically build a .lib file if we build a DLL.
5310 old_archive_from_new_cmds='true'
5311 # FIXME: Should let the user specify the lib program.
5312 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5313 fix_srcfile_path='`cygpath -w "$srcfile"`'
5314 ;;
5315
5316 darwin* | rhapsody*)
5317 case "$host_os" in
5318 rhapsody* | darwin1.[012])
5319 allow_undefined_flag='-undefined suppress'
5320 ;;
5321 *) # Darwin 1.3 on
5322 allow_undefined_flag='-flat_namespace -undefined suppress'
5323 ;;
5324 esac
5325 # FIXME: Relying on posixy $() will cause problems for
5326 # cross-compilation, but unfortunately the echo tests do not
5327 # yet detect zsh echo's removal of \ escapes.
5328 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'
5329 # We need to add '_' to the symbols in $export_symbols first
5330 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5331 hardcode_direct=yes
5332 hardcode_shlibpath_var=no
5333 whole_archive_flag_spec='-all_load $convenience'
5334 ;;
5335
5336 freebsd1*)
5337 ld_shlibs=no
5338 ;;
5339
5340 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5341 # support. Future versions do this automatically, but an explicit c++rt0.o
5342 # does not break anything, and helps significantly (at the cost of a little
5343 # extra space).
5344 freebsd2.2*)
5345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5346 hardcode_libdir_flag_spec='-R$libdir'
5347 hardcode_direct=yes
5348 hardcode_shlibpath_var=no
5349 ;;
5350
5351 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5352 freebsd2*)
5353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5354 hardcode_direct=yes
5355 hardcode_minus_L=yes
5356 hardcode_shlibpath_var=no
5357 ;;
5358
5359 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5360 freebsd*)
5361 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5362 hardcode_libdir_flag_spec='-R$libdir'
5363 hardcode_direct=yes
5364 hardcode_shlibpath_var=no
5365 ;;
5366
5367 hpux9* | hpux10* | hpux11*)
5368 case $host_os in
5369 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' ;;
5370 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5371 esac
5372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5373 hardcode_libdir_separator=:
5374 hardcode_direct=yes
5375 hardcode_minus_L=yes # Not in the search PATH, but as the default
5376 # location of the library.
5377 export_dynamic_flag_spec='${wl}-E'
5378 ;;
5379
5380 irix5* | irix6*)
5381 if test "$GCC" = yes; then
5382 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'
5383 else
5384 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'
5385 fi
5386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5387 hardcode_libdir_separator=:
5388 link_all_deplibs=yes
5389 ;;
5390
5391 netbsd*)
5392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5394 else
5395 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5396 fi
5397 hardcode_libdir_flag_spec='-R$libdir'
5398 hardcode_direct=yes
5399 hardcode_shlibpath_var=no
5400 ;;
5401
5402 newsos6)
5403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5404 hardcode_direct=yes
5405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5406 hardcode_libdir_separator=:
5407 hardcode_shlibpath_var=no
5408 ;;
5409
5410 openbsd*)
5411 hardcode_direct=yes
5412 hardcode_shlibpath_var=no
5413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5414 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5416 export_dynamic_flag_spec='${wl}-E'
5417 else
5418 case "$host_os" in
5419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5421 hardcode_libdir_flag_spec='-R$libdir'
5422 ;;
5423 *)
5424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5426 ;;
5427 esac
5428 fi
5429 ;;
5430
5431 os2*)
5432 hardcode_libdir_flag_spec='-L$libdir'
5433 hardcode_minus_L=yes
5434 allow_undefined_flag=unsupported
5435 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'
5436 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5437 ;;
5438
5439 osf3*)
5440 if test "$GCC" = yes; then
5441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5442 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'
5443 else
5444 allow_undefined_flag=' -expect_unresolved \*'
5445 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'
5446 fi
5447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5448 hardcode_libdir_separator=:
5449 ;;
5450
5451 osf4* | osf5*) # as osf3* with the addition of -msym flag
5452 if test "$GCC" = yes; then
5453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5454 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'
5455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5456 else
5457 allow_undefined_flag=' -expect_unresolved \*'
5458 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'
5459 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5460 $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'
5461
5462 #Both c and cxx compiler support -rpath directly
5463 hardcode_libdir_flag_spec='-rpath $libdir'
5464 fi
5465 hardcode_libdir_separator=:
5466 ;;
5467
5468 sco3.2v5*)
5469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5470 hardcode_shlibpath_var=no
5471 runpath_var=LD_RUN_PATH
5472 hardcode_runpath_var=yes
5473 export_dynamic_flag_spec='${wl}-Bexport'
5474 ;;
5475
5476 solaris*)
5477 # gcc --version < 3.0 without binutils cannot create self contained
5478 # shared libraries reliably, requiring libgcc.a to resolve some of
5479 # the object symbols generated in some cases. Libraries that use
5480 # assert need libgcc.a to resolve __eprintf, for example. Linking
5481 # a copy of libgcc.a into every shared library to guarantee resolving
5482 # such symbols causes other problems: According to Tim Van Holder
5483 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5484 # (to the application) exception stack for one thing.
5485 no_undefined_flag=' -z defs'
5486 if test "$GCC" = yes; then
5487 case `$CC --version 2>/dev/null` in
5488 [12].*)
5489 cat <<EOF 1>&2
5490
5491*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5492*** create self contained shared libraries on Solaris systems, without
5493*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5494*** -no-undefined support, which will at least allow you to build shared
5495*** libraries. However, you may find that when you link such libraries
5496*** into an application without using GCC, you have to manually add
5497*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5498*** upgrade to a newer version of GCC. Another option is to rebuild your
5499*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5500
5501EOF
5502 no_undefined_flag=
5503 ;;
5504 esac
5505 fi
5506 # $CC -shared without GNU ld will not create a library from C++
5507 # object files and a static libstdc++, better avoid it by now
5508 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5509 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5511 hardcode_libdir_flag_spec='-R$libdir'
5512 hardcode_shlibpath_var=no
5513 case $host_os in
5514 solaris2.[0-5] | solaris2.[0-5].*) ;;
5515 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5517 esac
5518 link_all_deplibs=yes
5519 ;;
5520
5521 sunos4*)
5522 if test "x$host_vendor" = xsequent; then
5523 # Use $CC to link under sequent, because it throws in some extra .o
5524 # files that make .init and .fini sections work.
5525 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5526 else
5527 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5528 fi
5529 hardcode_libdir_flag_spec='-L$libdir'
5530 hardcode_direct=yes
5531 hardcode_minus_L=yes
5532 hardcode_shlibpath_var=no
5533 ;;
5534
5535 sysv4)
5536 if test "x$host_vendor" = xsno; then
5537 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5538 hardcode_direct=yes # is this really true???
5539 else
5540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5541 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5542 fi
5543 runpath_var='LD_RUN_PATH'
5544 hardcode_shlibpath_var=no
5545 ;;
5546
5547 sysv4.3*)
5548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5549 hardcode_shlibpath_var=no
5550 export_dynamic_flag_spec='-Bexport'
5551 ;;
5552
5553 sysv5*)
5554 no_undefined_flag=' -z text'
5555 # $CC -shared without GNU ld will not create a library from C++
5556 # object files and a static libstdc++, better avoid it by now
5557 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5558 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5559 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5560 hardcode_libdir_flag_spec=
5561 hardcode_shlibpath_var=no
5562 runpath_var='LD_RUN_PATH'
5563 ;;
5564
5565 uts4*)
5566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5567 hardcode_libdir_flag_spec='-L$libdir'
5568 hardcode_shlibpath_var=no
5569 ;;
5570
5571 dgux*)
5572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5573 hardcode_libdir_flag_spec='-L$libdir'
5574 hardcode_shlibpath_var=no
5575 ;;
5576
5577 sysv4*MP*)
5578 if test -d /usr/nec; then
5579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5580 hardcode_shlibpath_var=no
5581 runpath_var=LD_RUN_PATH
5582 hardcode_runpath_var=yes
5583 ld_shlibs=yes
5584 fi
5585 ;;
5586
5587 sysv4.2uw2*)
5588 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5589 hardcode_direct=yes
5590 hardcode_minus_L=no
5591 hardcode_shlibpath_var=no
5592 hardcode_runpath_var=yes
5593 runpath_var=LD_RUN_PATH
5594 ;;
5595
5596 sysv5uw7* | unixware7*)
5597 no_undefined_flag='${wl}-z ${wl}text'
5598 if test "$GCC" = yes; then
5599 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5600 else
5601 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5602 fi
5603 runpath_var='LD_RUN_PATH'
5604 hardcode_shlibpath_var=no
5605 ;;
5606
5607 *)
5608 ld_shlibs=no
5609 ;;
5610 esac
5611fi
5612echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5613echo "${ECHO_T}$ld_shlibs" >&6
5614test "$ld_shlibs" = no && can_build_shared=no
5615
5616# Check hardcoding attributes.
5617echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5618echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5619hardcode_action=
5620if test -n "$hardcode_libdir_flag_spec" || \
5621 test -n "$runpath_var"; then
5622
5623 # We can hardcode non-existant directories.
5624 if test "$hardcode_direct" != no &&
5625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5626 # have to relink, otherwise we might link with an installed library
5627 # when we should be linking with a yet-to-be-installed one
5628 ## test "$hardcode_shlibpath_var" != no &&
5629 test "$hardcode_minus_L" != no; then
5630 # Linking always hardcodes the temporary library directory.
5631 hardcode_action=relink
5632 else
5633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5634 hardcode_action=immediate
5635 fi
5636else
5637 # We cannot hardcode anything, or else we can only hardcode existing
5638 # directories.
5639 hardcode_action=unsupported
5640fi
5641echo "$as_me:$LINENO: result: $hardcode_action" >&5
5642echo "${ECHO_T}$hardcode_action" >&6
5643
5644striplib=
5645old_striplib=
5646echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5647echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5648if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5649 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5650 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656fi
5657
5658reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659test -z "$deplibs_check_method" && deplibs_check_method=unknown
5660
5661# PORTME Fill in your ld.so characteristics
5662echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5663echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5664library_names_spec=
5665libname_spec='lib$name'
5666soname_spec=
5667postinstall_cmds=
5668postuninstall_cmds=
5669finish_cmds=
5670finish_eval=
5671shlibpath_var=
5672shlibpath_overrides_runpath=unknown
5673version_type=none
5674dynamic_linker="$host_os ld.so"
5675sys_lib_dlsearch_path_spec="/lib /usr/lib"
5676sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5677
5678case $host_os in
5679aix3*)
5680 version_type=linux
5681 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5682 shlibpath_var=LIBPATH
5683
5684 # AIX has no versioning support, so we append a major version to the name.
5685 soname_spec='${libname}${release}.so$major'
5686 ;;
5687
5688aix4* | aix5*)
5689 version_type=linux
5690 if test "$host_cpu" = ia64; then
5691 # AIX 5 supports IA64
5692 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5693 shlibpath_var=LD_LIBRARY_PATH
5694 else
5695 # With GCC up to 2.95.x, collect2 would create an import file
5696 # for dependence libraries. The import file would start with
5697 # the line `#! .'. This would cause the generated library to
5698 # depend on `.', always an invalid library. This was fixed in
5699 # development snapshots of GCC prior to 3.0.
5700 case $host_os in
5701 aix4 | aix4.[01] | aix4.[01].*)
5702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5703 echo ' yes '
5704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5705 :
5706 else
5707 can_build_shared=no
5708 fi
5709 ;;
5710 esac
5711 # AIX (on Power*) has no versioning support, so currently we can
5712 # not hardcode correct soname into executable. Probably we can
5713 # add versioning support to collect2, so additional links can
5714 # be useful in future.
5715 if test "$aix_use_runtimelinking" = yes; then
5716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5717 # instead of lib<name>.a to let people know that these are not
5718 # typical AIX shared libraries.
5719 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5720 else
5721 # We preserve .a as extension for shared libraries through AIX4.2
5722 # and later when we are not doing run time linking.
5723 library_names_spec='${libname}${release}.a $libname.a'
5724 soname_spec='${libname}${release}.so$major'
5725 fi
5726 shlibpath_var=LIBPATH
5727 fi
5728 ;;
5729
5730amigaos*)
5731 library_names_spec='$libname.ixlibrary $libname.a'
5732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5733 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'
5734 ;;
5735
5736beos*)
5737 library_names_spec='${libname}.so'
5738 dynamic_linker="$host_os ld.so"
5739 shlibpath_var=LIBRARY_PATH
5740 ;;
5741
5742bsdi4*)
5743 version_type=linux
5744 need_version=no
5745 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5746 soname_spec='${libname}${release}.so$major'
5747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5748 shlibpath_var=LD_LIBRARY_PATH
5749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5751 export_dynamic_flag_spec=-rdynamic
5752 # the default ld.so.conf also contains /usr/contrib/lib and
5753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5754 # libtool to hard-code these into programs
5755 ;;
5756
5757cygwin* | mingw* | pw32*)
5758 version_type=windows
5759 need_version=no
5760 need_lib_prefix=no
5761 case $GCC,$host_os in
5762 yes,cygwin*)
5763 library_names_spec='$libname.dll.a'
5764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5765 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5766 dldir=$destdir/`dirname \$dlpath`~
5767 test -d \$dldir || mkdir -p \$dldir~
5768 $install_prog .libs/$dlname \$dldir/$dlname'
5769 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5770 dlpath=$dir/\$dldll~
5771 $rm \$dlpath'
5772 ;;
5773 yes,mingw*)
5774 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5776 ;;
5777 yes,pw32*)
5778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5779 ;;
5780 *)
5781 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5782 ;;
5783 esac
5784 dynamic_linker='Win32 ld.exe'
5785 # FIXME: first we should search . and the directory the executable is in
5786 shlibpath_var=PATH
5787 ;;
5788
5789darwin* | rhapsody*)
5790 dynamic_linker="$host_os dyld"
5791 version_type=darwin
5792 need_lib_prefix=no
5793 need_version=no
5794 # FIXME: Relying on posixy $() will cause problems for
5795 # cross-compilation, but unfortunately the echo tests do not
5796 # yet detect zsh echo's removal of \ escapes.
5797 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)'
5798 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5799 shlibpath_overrides_runpath=yes
5800 shlibpath_var=DYLD_LIBRARY_PATH
5801 ;;
5802
5803freebsd1*)
5804 dynamic_linker=no
5805 ;;
5806
5807freebsd*)
5808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5809 version_type=freebsd-$objformat
5810 case $version_type in
5811 freebsd-elf*)
5812 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5813 need_version=no
5814 need_lib_prefix=no
5815 ;;
5816 freebsd-*)
5817 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5818 need_version=yes
5819 ;;
5820 esac
5821 shlibpath_var=LD_LIBRARY_PATH
5822 case $host_os in
5823 freebsd2*)
5824 shlibpath_overrides_runpath=yes
5825 ;;
5826 *)
5827 shlibpath_overrides_runpath=no
5828 hardcode_into_libs=yes
5829 ;;
5830 esac
5831 ;;
5832
5833gnu*)
5834 version_type=linux
5835 need_lib_prefix=no
5836 need_version=no
5837 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5838 soname_spec='${libname}${release}.so$major'
5839 shlibpath_var=LD_LIBRARY_PATH
5840 hardcode_into_libs=yes
5841 ;;
5842
5843hpux9* | hpux10* | hpux11*)
5844 # Give a soname corresponding to the major version so that dld.sl refuses to
5845 # link against other versions.
5846 dynamic_linker="$host_os dld.sl"
5847 version_type=sunos
5848 need_lib_prefix=no
5849 need_version=no
5850 shlibpath_var=SHLIB_PATH
5851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5852 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5853 soname_spec='${libname}${release}.sl$major'
5854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5855 postinstall_cmds='chmod 555 $lib'
5856 ;;
5857
5858irix5* | irix6*)
5859 version_type=irix
5860 need_lib_prefix=no
5861 need_version=no
5862 soname_spec='${libname}${release}.so$major'
5863 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5864 case $host_os in
5865 irix5*)
5866 libsuff= shlibsuff=
5867 ;;
5868 *)
5869 case $LD in # libtool.m4 will add one of these switches to LD
5870 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5871 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5872 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5873 *) libsuff= shlibsuff= libmagic=never-match;;
5874 esac
5875 ;;
5876 esac
5877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5878 shlibpath_overrides_runpath=no
5879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5881 ;;
5882
5883# No shared lib support for Linux oldld, aout, or coff.
5884linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5885 dynamic_linker=no
5886 ;;
5887
5888# This must be Linux ELF.
5889linux-gnu*)
5890 version_type=linux
5891 need_lib_prefix=no
5892 need_version=no
5893 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5894 soname_spec='${libname}${release}.so$major'
5895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5896 shlibpath_var=LD_LIBRARY_PATH
5897 shlibpath_overrides_runpath=no
5898 # This implies no fast_install, which is unacceptable.
5899 # Some rework will be needed to allow for fast_install
5900 # before this can be enabled.
5901 hardcode_into_libs=yes
5902
5903 # We used to test for /lib/ld.so.1 and disable shared libraries on
5904 # powerpc, because MkLinux only supported shared libraries with the
5905 # GNU dynamic linker. Since this was broken with cross compilers,
5906 # most powerpc-linux boxes support dynamic linking these days and
5907 # people can always --disable-shared, the test was removed, and we
5908 # assume the GNU/Linux dynamic linker is in use.
5909 dynamic_linker='GNU/Linux ld.so'
5910 ;;
5911
5912netbsd*)
5913 version_type=sunos
5914 need_lib_prefix=no
5915 need_version=no
5916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5917 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5919 dynamic_linker='NetBSD (a.out) ld.so'
5920 else
5921 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5922 soname_spec='${libname}${release}.so$major'
5923 dynamic_linker='NetBSD ld.elf_so'
5924 fi
5925 shlibpath_var=LD_LIBRARY_PATH
5926 shlibpath_overrides_runpath=yes
5927 hardcode_into_libs=yes
5928 ;;
5929
5930newsos6)
5931 version_type=linux
5932 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5933 shlibpath_var=LD_LIBRARY_PATH
5934 shlibpath_overrides_runpath=yes
5935 ;;
5936
5937openbsd*)
5938 version_type=sunos
5939 need_lib_prefix=no
5940 need_version=no
5941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5942 case "$host_os" in
5943 openbsd2.[89] | openbsd2.[89].*)
5944 shlibpath_overrides_runpath=no
5945 ;;
5946 *)
5947 shlibpath_overrides_runpath=yes
5948 ;;
5949 esac
5950 else
5951 shlibpath_overrides_runpath=yes
5952 fi
5953 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5955 shlibpath_var=LD_LIBRARY_PATH
5956 ;;
5957
5958os2*)
5959 libname_spec='$name'
5960 need_lib_prefix=no
5961 library_names_spec='$libname.dll $libname.a'
5962 dynamic_linker='OS/2 ld.exe'
5963 shlibpath_var=LIBPATH
5964 ;;
5965
5966osf3* | osf4* | osf5*)
5967 version_type=osf
5968 need_version=no
5969 soname_spec='${libname}${release}.so'
5970 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5971 shlibpath_var=LD_LIBRARY_PATH
5972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5974 ;;
5975
5976sco3.2v5*)
5977 version_type=osf
5978 soname_spec='${libname}${release}.so$major'
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5980 shlibpath_var=LD_LIBRARY_PATH
5981 ;;
5982
5983solaris*)
5984 version_type=linux
5985 need_lib_prefix=no
5986 need_version=no
5987 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5988 soname_spec='${libname}${release}.so$major'
5989 shlibpath_var=LD_LIBRARY_PATH
5990 shlibpath_overrides_runpath=yes
5991 hardcode_into_libs=yes
5992 # ldd complains unless libraries are executable
5993 postinstall_cmds='chmod +x $lib'
5994 ;;
5995
5996sunos4*)
5997 version_type=sunos
5998 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5999 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6000 shlibpath_var=LD_LIBRARY_PATH
6001 shlibpath_overrides_runpath=yes
6002 if test "$with_gnu_ld" = yes; then
6003 need_lib_prefix=no
6004 fi
6005 need_version=yes
6006 ;;
6007
6008sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6009 version_type=linux
6010 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6011 soname_spec='${libname}${release}.so$major'
6012 shlibpath_var=LD_LIBRARY_PATH
6013 case $host_vendor in
6014 sni)
6015 shlibpath_overrides_runpath=no
6016 ;;
6017 motorola)
6018 need_lib_prefix=no
6019 need_version=no
6020 shlibpath_overrides_runpath=no
6021 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6022 ;;
6023 esac
6024 ;;
6025
6026uts4*)
6027 version_type=linux
6028 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6029 soname_spec='${libname}${release}.so$major'
6030 shlibpath_var=LD_LIBRARY_PATH
6031 ;;
6032
6033dgux*)
6034 version_type=linux
6035 need_lib_prefix=no
6036 need_version=no
6037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6038 soname_spec='${libname}${release}.so$major'
6039 shlibpath_var=LD_LIBRARY_PATH
6040 ;;
6041
6042sysv4*MP*)
6043 if test -d /usr/nec ;then
6044 version_type=linux
6045 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6046 soname_spec='$libname.so.$major'
6047 shlibpath_var=LD_LIBRARY_PATH
6048 fi
6049 ;;
6050
6051*)
6052 dynamic_linker=no
6053 ;;
6054esac
6055echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6056echo "${ECHO_T}$dynamic_linker" >&6
6057test "$dynamic_linker" = no && can_build_shared=no
6058
6059# Report the final consequences.
6060echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6061echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6062echo "$as_me:$LINENO: result: $can_build_shared" >&5
6063echo "${ECHO_T}$can_build_shared" >&6
6064
6065echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6066echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6067test "$can_build_shared" = "no" && enable_shared=no
6068
6069# On AIX, shared libraries and static libraries use the same namespace, and
6070# are all built from PIC.
6071case "$host_os" in
6072aix3*)
6073 test "$enable_shared" = yes && enable_static=no
6074 if test -n "$RANLIB"; then
6075 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6076 postinstall_cmds='$RANLIB $lib'
6077 fi
6078 ;;
6079
6080aix4*)
6081 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6082 test "$enable_shared" = yes && enable_static=no
6083 fi
6084 ;;
6085esac
6086echo "$as_me:$LINENO: result: $enable_shared" >&5
6087echo "${ECHO_T}$enable_shared" >&6
6088
6089echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6090echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6091# Make sure either enable_shared or enable_static is yes.
6092test "$enable_shared" = yes || enable_static=yes
6093echo "$as_me:$LINENO: result: $enable_static" >&5
6094echo "${ECHO_T}$enable_static" >&6
6095
6096if test "$hardcode_action" = relink; then
6097 # Fast installation is not supported
6098 enable_fast_install=no
6099elif test "$shlibpath_overrides_runpath" = yes ||
6100 test "$enable_shared" = no; then
6101 # Fast installation is not necessary
6102 enable_fast_install=needless
6103fi
6104
6105variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6106if test "$GCC" = yes; then
6107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6108fi
6109
6110if test "x$enable_dlopen" != xyes; then
6111 enable_dlopen=unknown
6112 enable_dlopen_self=unknown
6113 enable_dlopen_self_static=unknown
6114else
6115 lt_cv_dlopen=no
6116 lt_cv_dlopen_libs=
6117
6118 case $host_os in
6119 beos*)
6120 lt_cv_dlopen="load_add_on"
6121 lt_cv_dlopen_libs=
6122 lt_cv_dlopen_self=yes
6123 ;;
6124
6125 cygwin* | mingw* | pw32*)
6126 lt_cv_dlopen="LoadLibrary"
6127 lt_cv_dlopen_libs=
6128 ;;
6129
6130 *)
6131 echo "$as_me:$LINENO: checking for shl_load" >&5
6132echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6133if test "${ac_cv_func_shl_load+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136 cat >conftest.$ac_ext <<_ACEOF
6137#line $LINENO "configure"
6138#include "confdefs.h"
6139/* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char shl_load (); below. */
6141#include <assert.h>
6142/* Override any gcc2 internal prototype to avoid an error. */
6143#ifdef __cplusplus
6144extern "C"
6145#endif
6146/* We use char because int might match the return type of a gcc2
6147 builtin and then its argument prototype would still apply. */
6148char shl_load ();
6149char (*f) ();
6150
6151#ifdef F77_DUMMY_MAIN
6152# ifdef __cplusplus
6153 extern "C"
6154# endif
6155 int F77_DUMMY_MAIN() { return 1; }
6156#endif
6157int
6158main ()
6159{
6160/* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163#if defined (__stub_shl_load) || defined (__stub___shl_load)
6164choke me
6165#else
6166f = shl_load;
6167#endif
6168
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173rm -f conftest.$ac_objext conftest$ac_exeext
6174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6175 (eval $ac_link) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_func_shl_load=yes
6186else
6187 echo "$as_me: failed program was:" >&5
6188cat conftest.$ac_ext >&5
6189ac_cv_func_shl_load=no
6190fi
6191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6192fi
6193echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6194echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6195if test $ac_cv_func_shl_load = yes; then
6196 lt_cv_dlopen="shl_load"
6197else
6198 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6199echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6200if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203 ac_check_lib_save_LIBS=$LIBS
6204LIBS="-ldld $LIBS"
6205cat >conftest.$ac_ext <<_ACEOF
6206#line $LINENO "configure"
6207#include "confdefs.h"
6208
6209/* Override any gcc2 internal prototype to avoid an error. */
6210#ifdef __cplusplus
6211extern "C"
6212#endif
6213/* We use char because int might match the return type of a gcc2
6214 builtin and then its argument prototype would still apply. */
6215char shl_load ();
6216#ifdef F77_DUMMY_MAIN
6217# ifdef __cplusplus
6218 extern "C"
6219# endif
6220 int F77_DUMMY_MAIN() { return 1; }
6221#endif
6222int
6223main ()
6224{
6225shl_load ();
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext conftest$ac_exeext
6231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -s conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_lib_dld_shl_load=yes
6243else
6244 echo "$as_me: failed program was:" >&5
6245cat conftest.$ac_ext >&5
6246ac_cv_lib_dld_shl_load=no
6247fi
6248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6249LIBS=$ac_check_lib_save_LIBS
6250fi
6251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6252echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6253if test $ac_cv_lib_dld_shl_load = yes; then
6254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6255else
6256 echo "$as_me:$LINENO: checking for dlopen" >&5
6257echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6258if test "${ac_cv_func_dlopen+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261 cat >conftest.$ac_ext <<_ACEOF
6262#line $LINENO "configure"
6263#include "confdefs.h"
6264/* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char dlopen (); below. */
6266#include <assert.h>
6267/* Override any gcc2 internal prototype to avoid an error. */
6268#ifdef __cplusplus
6269extern "C"
6270#endif
6271/* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6273char dlopen ();
6274char (*f) ();
6275
6276#ifdef F77_DUMMY_MAIN
6277# ifdef __cplusplus
6278 extern "C"
6279# endif
6280 int F77_DUMMY_MAIN() { return 1; }
6281#endif
6282int
6283main ()
6284{
6285/* The GNU C library defines this for functions which it implements
6286 to always fail with ENOSYS. Some functions are actually named
6287 something starting with __ and the normal name is an alias. */
6288#if defined (__stub_dlopen) || defined (__stub___dlopen)
6289choke me
6290#else
6291f = dlopen;
6292#endif
6293
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext conftest$ac_exeext
6299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6300 (eval $ac_link) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); } &&
6304 { ac_try='test -s conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6310 ac_cv_func_dlopen=yes
6311else
6312 echo "$as_me: failed program was:" >&5
6313cat conftest.$ac_ext >&5
6314ac_cv_func_dlopen=no
6315fi
6316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317fi
6318echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6319echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6320if test $ac_cv_func_dlopen = yes; then
6321 lt_cv_dlopen="dlopen"
6322else
6323 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6324echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6325if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328 ac_check_lib_save_LIBS=$LIBS
6329LIBS="-ldl $LIBS"
6330cat >conftest.$ac_ext <<_ACEOF
6331#line $LINENO "configure"
6332#include "confdefs.h"
6333
6334/* Override any gcc2 internal prototype to avoid an error. */
6335#ifdef __cplusplus
6336extern "C"
6337#endif
6338/* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6340char dlopen ();
6341#ifdef F77_DUMMY_MAIN
6342# ifdef __cplusplus
6343 extern "C"
6344# endif
6345 int F77_DUMMY_MAIN() { return 1; }
6346#endif
6347int
6348main ()
6349{
6350dlopen ();
6351 ;
6352 return 0;
6353}
6354_ACEOF
6355rm -f conftest.$ac_objext conftest$ac_exeext
6356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_lib_dl_dlopen=yes
6368else
6369 echo "$as_me: failed program was:" >&5
6370cat conftest.$ac_ext >&5
6371ac_cv_lib_dl_dlopen=no
6372fi
6373rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6374LIBS=$ac_check_lib_save_LIBS
6375fi
6376echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6377echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6378if test $ac_cv_lib_dl_dlopen = yes; then
6379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6380else
6381 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6382echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6383if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 ac_check_lib_save_LIBS=$LIBS
6387LIBS="-lsvld $LIBS"
6388cat >conftest.$ac_ext <<_ACEOF
6389#line $LINENO "configure"
6390#include "confdefs.h"
6391
6392/* Override any gcc2 internal prototype to avoid an error. */
6393#ifdef __cplusplus
6394extern "C"
6395#endif
6396/* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398char dlopen ();
6399#ifdef F77_DUMMY_MAIN
6400# ifdef __cplusplus
6401 extern "C"
6402# endif
6403 int F77_DUMMY_MAIN() { return 1; }
6404#endif
6405int
6406main ()
6407{
6408dlopen ();
6409 ;
6410 return 0;
6411}
6412_ACEOF
6413rm -f conftest.$ac_objext conftest$ac_exeext
6414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6415 (eval $ac_link) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
6419 { ac_try='test -s conftest$ac_exeext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 ac_cv_lib_svld_dlopen=yes
6426else
6427 echo "$as_me: failed program was:" >&5
6428cat conftest.$ac_ext >&5
6429ac_cv_lib_svld_dlopen=no
6430fi
6431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432LIBS=$ac_check_lib_save_LIBS
6433fi
6434echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6435echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6436if test $ac_cv_lib_svld_dlopen = yes; then
6437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6438else
6439 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6440echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6441if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444 ac_check_lib_save_LIBS=$LIBS
6445LIBS="-ldld $LIBS"
6446cat >conftest.$ac_ext <<_ACEOF
6447#line $LINENO "configure"
6448#include "confdefs.h"
6449
6450/* Override any gcc2 internal prototype to avoid an error. */
6451#ifdef __cplusplus
6452extern "C"
6453#endif
6454/* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456char dld_link ();
6457#ifdef F77_DUMMY_MAIN
6458# ifdef __cplusplus
6459 extern "C"
6460# endif
6461 int F77_DUMMY_MAIN() { return 1; }
6462#endif
6463int
6464main ()
6465{
6466dld_link ();
6467 ;
6468 return 0;
6469}
6470_ACEOF
6471rm -f conftest.$ac_objext conftest$ac_exeext
6472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473 (eval $ac_link) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -s conftest$ac_exeext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 ac_cv_lib_dld_dld_link=yes
6484else
6485 echo "$as_me: failed program was:" >&5
6486cat conftest.$ac_ext >&5
6487ac_cv_lib_dld_dld_link=no
6488fi
6489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6490LIBS=$ac_check_lib_save_LIBS
6491fi
6492echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6493echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6494if test $ac_cv_lib_dld_dld_link = yes; then
6495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6496fi
6497
6498
6499fi
6500
6501
6502fi
6503
6504
6505fi
6506
6507
6508fi
6509
6510
6511fi
6512
6513 ;;
6514 esac
6515
6516 if test "x$lt_cv_dlopen" != xno; then
6517 enable_dlopen=yes
6518 else
6519 enable_dlopen=no
6520 fi
6521
6522 case $lt_cv_dlopen in
6523 dlopen)
6524 save_CPPFLAGS="$CPPFLAGS"
6525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6526
6527 save_LDFLAGS="$LDFLAGS"
6528 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6529
6530 save_LIBS="$LIBS"
6531 LIBS="$lt_cv_dlopen_libs $LIBS"
6532
6533 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6534echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6535if test "${lt_cv_dlopen_self+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 if test "$cross_compiling" = yes; then :
6539 lt_cv_dlopen_self=cross
6540else
6541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6542 lt_status=$lt_dlunknown
6543 cat > conftest.$ac_ext <<EOF
jjakoa9639f32003-07-07 15:30:11 +00006544#line 6544 "configure"
jjako286bc982003-01-28 23:17:50 +00006545#include "confdefs.h"
6546
6547#if HAVE_DLFCN_H
6548#include <dlfcn.h>
6549#endif
6550
6551#include <stdio.h>
6552
6553#ifdef RTLD_GLOBAL
6554# define LT_DLGLOBAL RTLD_GLOBAL
6555#else
6556# ifdef DL_GLOBAL
6557# define LT_DLGLOBAL DL_GLOBAL
6558# else
6559# define LT_DLGLOBAL 0
6560# endif
6561#endif
6562
6563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6564 find out it does not work in some platform. */
6565#ifndef LT_DLLAZY_OR_NOW
6566# ifdef RTLD_LAZY
6567# define LT_DLLAZY_OR_NOW RTLD_LAZY
6568# else
6569# ifdef DL_LAZY
6570# define LT_DLLAZY_OR_NOW DL_LAZY
6571# else
6572# ifdef RTLD_NOW
6573# define LT_DLLAZY_OR_NOW RTLD_NOW
6574# else
6575# ifdef DL_NOW
6576# define LT_DLLAZY_OR_NOW DL_NOW
6577# else
6578# define LT_DLLAZY_OR_NOW 0
6579# endif
6580# endif
6581# endif
6582# endif
6583#endif
6584
6585#ifdef __cplusplus
6586extern "C" void exit (int);
6587#endif
6588
6589void fnord() { int i=42;}
6590int main ()
6591{
6592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6593 int status = $lt_dlunknown;
6594
6595 if (self)
6596 {
6597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6599 /* dlclose (self); */
6600 }
6601
6602 exit (status);
6603}
6604EOF
6605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6606 (eval $ac_link) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6610 (./conftest; exit; ) 2>/dev/null
6611 lt_status=$?
6612 case x$lt_status in
6613 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6614 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6615 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6616 esac
6617 else :
6618 # compilation failed
6619 lt_cv_dlopen_self=no
6620 fi
6621fi
6622rm -fr conftest*
6623
6624
6625fi
6626echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6627echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6628
6629 if test "x$lt_cv_dlopen_self" = xyes; then
6630 LDFLAGS="$LDFLAGS $link_static_flag"
6631 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6632echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6633if test "${lt_cv_dlopen_self_static+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636 if test "$cross_compiling" = yes; then :
6637 lt_cv_dlopen_self_static=cross
6638else
6639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6640 lt_status=$lt_dlunknown
6641 cat > conftest.$ac_ext <<EOF
jjakoa9639f32003-07-07 15:30:11 +00006642#line 6642 "configure"
jjako286bc982003-01-28 23:17:50 +00006643#include "confdefs.h"
6644
6645#if HAVE_DLFCN_H
6646#include <dlfcn.h>
6647#endif
6648
6649#include <stdio.h>
6650
6651#ifdef RTLD_GLOBAL
6652# define LT_DLGLOBAL RTLD_GLOBAL
6653#else
6654# ifdef DL_GLOBAL
6655# define LT_DLGLOBAL DL_GLOBAL
6656# else
6657# define LT_DLGLOBAL 0
6658# endif
6659#endif
6660
6661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6662 find out it does not work in some platform. */
6663#ifndef LT_DLLAZY_OR_NOW
6664# ifdef RTLD_LAZY
6665# define LT_DLLAZY_OR_NOW RTLD_LAZY
6666# else
6667# ifdef DL_LAZY
6668# define LT_DLLAZY_OR_NOW DL_LAZY
6669# else
6670# ifdef RTLD_NOW
6671# define LT_DLLAZY_OR_NOW RTLD_NOW
6672# else
6673# ifdef DL_NOW
6674# define LT_DLLAZY_OR_NOW DL_NOW
6675# else
6676# define LT_DLLAZY_OR_NOW 0
6677# endif
6678# endif
6679# endif
6680# endif
6681#endif
6682
6683#ifdef __cplusplus
6684extern "C" void exit (int);
6685#endif
6686
6687void fnord() { int i=42;}
6688int main ()
6689{
6690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6691 int status = $lt_dlunknown;
6692
6693 if (self)
6694 {
6695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6697 /* dlclose (self); */
6698 }
6699
6700 exit (status);
6701}
6702EOF
6703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704 (eval $ac_link) 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6708 (./conftest; exit; ) 2>/dev/null
6709 lt_status=$?
6710 case x$lt_status in
6711 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6712 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6713 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6714 esac
6715 else :
6716 # compilation failed
6717 lt_cv_dlopen_self_static=no
6718 fi
6719fi
6720rm -fr conftest*
6721
6722
6723fi
6724echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6725echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6726 fi
6727
6728 CPPFLAGS="$save_CPPFLAGS"
6729 LDFLAGS="$save_LDFLAGS"
6730 LIBS="$save_LIBS"
6731 ;;
6732 esac
6733
6734 case $lt_cv_dlopen_self in
6735 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6736 *) enable_dlopen_self=unknown ;;
6737 esac
6738
6739 case $lt_cv_dlopen_self_static in
6740 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6741 *) enable_dlopen_self_static=unknown ;;
6742 esac
6743fi
6744
6745
6746if test "$enable_shared" = yes && test "$GCC" = yes; then
6747 case $archive_cmds in
6748 *'~'*)
6749 # FIXME: we may have to deal with multi-command sequences.
6750 ;;
6751 '$CC '*)
6752 # Test whether the compiler implicitly links with -lc since on some
6753 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6754 # to ld, don't add -lc before -lgcc.
6755 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6756echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6757 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760 $rm conftest*
6761 echo 'static int dummy;' > conftest.$ac_ext
6762
6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; then
6768 soname=conftest
6769 lib=conftest
6770 libobjs=conftest.$ac_objext
6771 deplibs=
6772 wl=$lt_cv_prog_cc_wl
6773 compiler_flags=-v
6774 linker_flags=-v
6775 verstring=
6776 output_objdir=.
6777 libname=conftest
6778 save_allow_undefined_flag=$allow_undefined_flag
6779 allow_undefined_flag=
6780 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6781 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }
6785 then
6786 lt_cv_archive_cmds_need_lc=no
6787 else
6788 lt_cv_archive_cmds_need_lc=yes
6789 fi
6790 allow_undefined_flag=$save_allow_undefined_flag
6791 else
6792 cat conftest.err 1>&5
6793 fi
6794fi
6795
6796 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6797echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6798 ;;
6799 esac
6800fi
6801need_lc=${lt_cv_archive_cmds_need_lc-yes}
6802
6803# The second clause should only fire when bootstrapping the
6804# libtool distribution, otherwise you forgot to ship ltmain.sh
6805# with your package, and you will get complaints that there are
6806# no rules to generate ltmain.sh.
6807if test -f "$ltmain"; then
6808 :
6809else
6810 # If there is no Makefile yet, we rely on a make rule to execute
6811 # `config.status --recheck' to rerun these tests and create the
6812 # libtool script then.
6813 test -f Makefile && make "$ltmain"
6814fi
6815
6816if test -f "$ltmain"; then
6817 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6818 $rm -f "${ofile}T"
6819
6820 echo creating $ofile
6821
6822 # Now quote all the things that may contain metacharacters while being
6823 # careful not to overquote the AC_SUBSTed values. We take copies of the
6824 # variables and quote the copies for generation of the libtool script.
6825 for var in echo old_CC old_CFLAGS \
6826 AR AR_FLAGS CC LD LN_S NM SHELL \
6827 reload_flag reload_cmds wl \
6828 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6829 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6830 library_names_spec soname_spec \
6831 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6832 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6833 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6834 old_striplib striplib file_magic_cmd export_symbols_cmds \
6835 deplibs_check_method allow_undefined_flag no_undefined_flag \
6836 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6837 global_symbol_to_c_name_address \
6838 hardcode_libdir_flag_spec hardcode_libdir_separator \
6839 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6840 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6841
6842 case $var in
6843 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6844 old_postinstall_cmds | old_postuninstall_cmds | \
6845 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6846 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6847 postinstall_cmds | postuninstall_cmds | \
6848 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6849 # Double-quote double-evaled strings.
6850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6851 ;;
6852 *)
6853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6854 ;;
6855 esac
6856 done
6857
6858 cat <<__EOF__ > "${ofile}T"
6859#! $SHELL
6860
6861# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6862# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6863# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6864#
6865# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6866# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6867#
6868# This program is free software; you can redistribute it and/or modify
6869# it under the terms of the GNU General Public License as published by
6870# the Free Software Foundation; either version 2 of the License, or
6871# (at your option) any later version.
6872#
6873# This program is distributed in the hope that it will be useful, but
6874# WITHOUT ANY WARRANTY; without even the implied warranty of
6875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6876# General Public License for more details.
6877#
6878# You should have received a copy of the GNU General Public License
6879# along with this program; if not, write to the Free Software
6880# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6881#
6882# As a special exception to the GNU General Public License, if you
6883# distribute this file as part of a program that contains a
6884# configuration script generated by Autoconf, you may include it under
6885# the same distribution terms that you use for the rest of that program.
6886
6887# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6888Xsed="sed -e s/^X//"
6889
6890# The HP-UX ksh and POSIX shell print the target directory to stdout
6891# if CDPATH is set.
6892if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6893
6894# ### BEGIN LIBTOOL CONFIG
6895
6896# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6897
6898# Shell to use when invoking shell scripts.
6899SHELL=$lt_SHELL
6900
6901# Whether or not to build shared libraries.
6902build_libtool_libs=$enable_shared
6903
6904# Whether or not to build static libraries.
6905build_old_libs=$enable_static
6906
6907# Whether or not to add -lc for building shared libraries.
6908build_libtool_need_lc=$need_lc
6909
6910# Whether or not to optimize for fast installation.
6911fast_install=$enable_fast_install
6912
6913# The host system.
6914host_alias=$host_alias
6915host=$host
6916
6917# An echo program that does not interpret backslashes.
6918echo=$lt_echo
6919
6920# The archiver.
6921AR=$lt_AR
6922AR_FLAGS=$lt_AR_FLAGS
6923
6924# The default C compiler.
6925CC=$lt_CC
6926
6927# Is the compiler the GNU C compiler?
6928with_gcc=$GCC
6929
6930# The linker used to build libraries.
6931LD=$lt_LD
6932
6933# Whether we need hard or soft links.
6934LN_S=$lt_LN_S
6935
6936# A BSD-compatible nm program.
6937NM=$lt_NM
6938
6939# A symbol stripping program
6940STRIP=$STRIP
6941
6942# Used to examine libraries when file_magic_cmd begins "file"
6943MAGIC_CMD=$MAGIC_CMD
6944
6945# Used on cygwin: DLL creation program.
6946DLLTOOL="$DLLTOOL"
6947
6948# Used on cygwin: object dumper.
6949OBJDUMP="$OBJDUMP"
6950
6951# Used on cygwin: assembler.
6952AS="$AS"
6953
6954# The name of the directory that contains temporary libtool files.
6955objdir=$objdir
6956
6957# How to create reloadable object files.
6958reload_flag=$lt_reload_flag
6959reload_cmds=$lt_reload_cmds
6960
6961# How to pass a linker flag through the compiler.
6962wl=$lt_wl
6963
6964# Object file suffix (normally "o").
6965objext="$ac_objext"
6966
6967# Old archive suffix (normally "a").
6968libext="$libext"
6969
6970# Executable file suffix (normally "").
6971exeext="$exeext"
6972
6973# Additional compiler flags for building library objects.
6974pic_flag=$lt_pic_flag
6975pic_mode=$pic_mode
6976
6977# Does compiler simultaneously support -c and -o options?
6978compiler_c_o=$lt_compiler_c_o
6979
6980# Can we write directly to a .lo ?
6981compiler_o_lo=$lt_compiler_o_lo
6982
6983# Must we lock files when doing compilation ?
6984need_locks=$lt_need_locks
6985
6986# Do we need the lib prefix for modules?
6987need_lib_prefix=$need_lib_prefix
6988
6989# Do we need a version for libraries?
6990need_version=$need_version
6991
6992# Whether dlopen is supported.
6993dlopen_support=$enable_dlopen
6994
6995# Whether dlopen of programs is supported.
6996dlopen_self=$enable_dlopen_self
6997
6998# Whether dlopen of statically linked programs is supported.
6999dlopen_self_static=$enable_dlopen_self_static
7000
7001# Compiler flag to prevent dynamic linking.
7002link_static_flag=$lt_link_static_flag
7003
7004# Compiler flag to turn off builtin functions.
7005no_builtin_flag=$lt_no_builtin_flag
7006
7007# Compiler flag to allow reflexive dlopens.
7008export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7009
7010# Compiler flag to generate shared objects directly from archives.
7011whole_archive_flag_spec=$lt_whole_archive_flag_spec
7012
7013# Compiler flag to generate thread-safe objects.
7014thread_safe_flag_spec=$lt_thread_safe_flag_spec
7015
7016# Library versioning type.
7017version_type=$version_type
7018
7019# Format of library name prefix.
7020libname_spec=$lt_libname_spec
7021
7022# List of archive names. First name is the real one, the rest are links.
7023# The last name is the one that the linker finds with -lNAME.
7024library_names_spec=$lt_library_names_spec
7025
7026# The coded name of the library, if different from the real name.
7027soname_spec=$lt_soname_spec
7028
7029# Commands used to build and install an old-style archive.
7030RANLIB=$lt_RANLIB
7031old_archive_cmds=$lt_old_archive_cmds
7032old_postinstall_cmds=$lt_old_postinstall_cmds
7033old_postuninstall_cmds=$lt_old_postuninstall_cmds
7034
7035# Create an old-style archive from a shared archive.
7036old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7037
7038# Create a temporary old-style archive to link instead of a shared archive.
7039old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7040
7041# Commands used to build and install a shared archive.
7042archive_cmds=$lt_archive_cmds
7043archive_expsym_cmds=$lt_archive_expsym_cmds
7044postinstall_cmds=$lt_postinstall_cmds
7045postuninstall_cmds=$lt_postuninstall_cmds
7046
7047# Commands to strip libraries.
7048old_striplib=$lt_old_striplib
7049striplib=$lt_striplib
7050
7051# Method to check whether dependent libraries are shared objects.
7052deplibs_check_method=$lt_deplibs_check_method
7053
7054# Command to use when deplibs_check_method == file_magic.
7055file_magic_cmd=$lt_file_magic_cmd
7056
7057# Flag that allows shared libraries with undefined symbols to be built.
7058allow_undefined_flag=$lt_allow_undefined_flag
7059
7060# Flag that forces no undefined symbols.
7061no_undefined_flag=$lt_no_undefined_flag
7062
7063# Commands used to finish a libtool library installation in a directory.
7064finish_cmds=$lt_finish_cmds
7065
7066# Same as above, but a single script fragment to be evaled but not shown.
7067finish_eval=$lt_finish_eval
7068
7069# Take the output of nm and produce a listing of raw symbols and C names.
7070global_symbol_pipe=$lt_global_symbol_pipe
7071
7072# Transform the output of nm in a proper C declaration
7073global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7074
7075# Transform the output of nm in a C name address pair
7076global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7077
7078# This is the shared library runtime path variable.
7079runpath_var=$runpath_var
7080
7081# This is the shared library path variable.
7082shlibpath_var=$shlibpath_var
7083
7084# Is shlibpath searched before the hard-coded library search path?
7085shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7086
7087# How to hardcode a shared library path into an executable.
7088hardcode_action=$hardcode_action
7089
7090# Whether we should hardcode library paths into libraries.
7091hardcode_into_libs=$hardcode_into_libs
7092
7093# Flag to hardcode \$libdir into a binary during linking.
7094# This must work even if \$libdir does not exist.
7095hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7096
7097# Whether we need a single -rpath flag with a separated argument.
7098hardcode_libdir_separator=$lt_hardcode_libdir_separator
7099
7100# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7101# resulting binary.
7102hardcode_direct=$hardcode_direct
7103
7104# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7105# resulting binary.
7106hardcode_minus_L=$hardcode_minus_L
7107
7108# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7109# the resulting binary.
7110hardcode_shlibpath_var=$hardcode_shlibpath_var
7111
7112# Variables whose values should be saved in libtool wrapper scripts and
7113# restored at relink time.
7114variables_saved_for_relink="$variables_saved_for_relink"
7115
7116# Whether libtool must link a program against all its dependency libraries.
7117link_all_deplibs=$link_all_deplibs
7118
7119# Compile-time system search path for libraries
7120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7121
7122# Run-time system search path for libraries
7123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7124
7125# Fix the shell variable \$srcfile for the compiler.
7126fix_srcfile_path="$fix_srcfile_path"
7127
7128# Set to yes if exported symbols are required.
7129always_export_symbols=$always_export_symbols
7130
7131# The commands to list exported symbols.
7132export_symbols_cmds=$lt_export_symbols_cmds
7133
7134# The commands to extract the exported symbol list from a shared archive.
7135extract_expsyms_cmds=$lt_extract_expsyms_cmds
7136
7137# Symbols that should not be listed in the preloaded symbols.
7138exclude_expsyms=$lt_exclude_expsyms
7139
7140# Symbols that must always be exported.
7141include_expsyms=$lt_include_expsyms
7142
7143# ### END LIBTOOL CONFIG
7144
7145__EOF__
7146
7147 case $host_os in
7148 aix3*)
7149 cat <<\EOF >> "${ofile}T"
7150
7151# AIX sometimes has problems with the GCC collect2 program. For some
7152# reason, if we set the COLLECT_NAMES environment variable, the problems
7153# vanish in a puff of smoke.
7154if test "X${COLLECT_NAMES+set}" != Xset; then
7155 COLLECT_NAMES=
7156 export COLLECT_NAMES
7157fi
7158EOF
7159 ;;
7160 esac
7161
7162 case $host_os in
7163 cygwin* | mingw* | pw32* | os2*)
7164 cat <<'EOF' >> "${ofile}T"
7165 # This is a source program that is used to create dlls on Windows
7166 # Don't remove nor modify the starting and closing comments
7167# /* ltdll.c starts here */
7168# #define WIN32_LEAN_AND_MEAN
7169# #include <windows.h>
7170# #undef WIN32_LEAN_AND_MEAN
7171# #include <stdio.h>
7172#
7173# #ifndef __CYGWIN__
7174# # ifdef __CYGWIN32__
7175# # define __CYGWIN__ __CYGWIN32__
7176# # endif
7177# #endif
7178#
7179# #ifdef __cplusplus
7180# extern "C" {
7181# #endif
7182# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7183# #ifdef __cplusplus
7184# }
7185# #endif
7186#
7187# #ifdef __CYGWIN__
7188# #include <cygwin/cygwin_dll.h>
7189# DECLARE_CYGWIN_DLL( DllMain );
7190# #endif
7191# HINSTANCE __hDllInstance_base;
7192#
7193# BOOL APIENTRY
7194# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7195# {
7196# __hDllInstance_base = hInst;
7197# return TRUE;
7198# }
7199# /* ltdll.c ends here */
7200 # This is a source program that is used to create import libraries
7201 # on Windows for dlls which lack them. Don't remove nor modify the
7202 # starting and closing comments
7203# /* impgen.c starts here */
7204# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7205#
7206# This file is part of GNU libtool.
7207#
7208# This program is free software; you can redistribute it and/or modify
7209# it under the terms of the GNU General Public License as published by
7210# the Free Software Foundation; either version 2 of the License, or
7211# (at your option) any later version.
7212#
7213# This program is distributed in the hope that it will be useful,
7214# but WITHOUT ANY WARRANTY; without even the implied warranty of
7215# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7216# GNU General Public License for more details.
7217#
7218# You should have received a copy of the GNU General Public License
7219# along with this program; if not, write to the Free Software
7220# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7221# */
7222#
7223# #include <stdio.h> /* for printf() */
7224# #include <unistd.h> /* for open(), lseek(), read() */
7225# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7226# #include <string.h> /* for strdup() */
7227#
7228# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7229# #ifndef O_BINARY
7230# #define O_BINARY 0
7231# #endif
7232#
7233# static unsigned int
7234# pe_get16 (fd, offset)
7235# int fd;
7236# int offset;
7237# {
7238# unsigned char b[2];
7239# lseek (fd, offset, SEEK_SET);
7240# read (fd, b, 2);
7241# return b[0] + (b[1]<<8);
7242# }
7243#
7244# static unsigned int
7245# pe_get32 (fd, offset)
7246# int fd;
7247# int offset;
7248# {
7249# unsigned char b[4];
7250# lseek (fd, offset, SEEK_SET);
7251# read (fd, b, 4);
7252# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7253# }
7254#
7255# static unsigned int
7256# pe_as32 (ptr)
7257# void *ptr;
7258# {
7259# unsigned char *b = ptr;
7260# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7261# }
7262#
7263# int
7264# main (argc, argv)
7265# int argc;
7266# char *argv[];
7267# {
7268# int dll;
7269# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7270# unsigned long export_rva, export_size, nsections, secptr, expptr;
7271# unsigned long name_rvas, nexp;
7272# unsigned char *expdata, *erva;
7273# char *filename, *dll_name;
7274#
7275# filename = argv[1];
7276#
7277# dll = open(filename, O_RDONLY|O_BINARY);
7278# if (dll < 1)
7279# return 1;
7280#
7281# dll_name = filename;
7282#
7283# for (i=0; filename[i]; i++)
7284# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7285# dll_name = filename + i +1;
7286#
7287# pe_header_offset = pe_get32 (dll, 0x3c);
7288# opthdr_ofs = pe_header_offset + 4 + 20;
7289# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7290#
7291# if (num_entries < 1) /* no exports */
7292# return 1;
7293#
7294# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7295# export_size = pe_get32 (dll, opthdr_ofs + 100);
7296# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7297# secptr = (pe_header_offset + 4 + 20 +
7298# pe_get16 (dll, pe_header_offset + 4 + 16));
7299#
7300# expptr = 0;
7301# for (i = 0; i < nsections; i++)
7302# {
7303# char sname[8];
7304# unsigned long secptr1 = secptr + 40 * i;
7305# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7306# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7307# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7308# lseek(dll, secptr1, SEEK_SET);
7309# read(dll, sname, 8);
7310# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7311# {
7312# expptr = fptr + (export_rva - vaddr);
7313# if (export_rva + export_size > vaddr + vsize)
7314# export_size = vsize - (export_rva - vaddr);
7315# break;
7316# }
7317# }
7318#
7319# expdata = (unsigned char*)malloc(export_size);
7320# lseek (dll, expptr, SEEK_SET);
7321# read (dll, expdata, export_size);
7322# erva = expdata - export_rva;
7323#
7324# nexp = pe_as32 (expdata+24);
7325# name_rvas = pe_as32 (expdata+32);
7326#
7327# printf ("EXPORTS\n");
7328# for (i = 0; i<nexp; i++)
7329# {
7330# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7331# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7332# }
7333#
7334# return 0;
7335# }
7336# /* impgen.c ends here */
7337
7338EOF
7339 ;;
7340 esac
7341
7342 # We use sed instead of cat because bash on DJGPP gets confused if
7343 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7344 # text mode, it properly converts lines to CR/LF. This bash problem
7345 # is reportedly fixed, but why not run on old versions too?
7346 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7347
7348 mv -f "${ofile}T" "$ofile" || \
7349 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7350 chmod +x "$ofile"
7351fi
7352
7353
7354
jjako52c24142002-12-16 13:33:51 +00007355
7356
7357# This can be used to rebuild libtool when needed
jjako286bc982003-01-28 23:17:50 +00007358LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
jjako52c24142002-12-16 13:33:51 +00007359
7360# Always use our own libtool.
7361LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7362
jjako286bc982003-01-28 23:17:50 +00007363# Prevent multiple expansion
jjako52c24142002-12-16 13:33:51 +00007364
7365
jjako286bc982003-01-28 23:17:50 +00007366
7367
jjakoa9639f32003-07-07 15:30:11 +00007368# Check whether --enable-static-exec or --disable-static-exec was given.
7369if test "${enable_static_exec+set}" = set; then
7370 enableval="$enable_static_exec"
7371 EXEC_LDFLAGS="-all-static"
7372fi;
7373
7374
jjako286bc982003-01-28 23:17:50 +00007375
7376# Checks for libraries.
7377# FIXME: Replace `main' with a function in `-le':
jjakoa9639f32003-07-07 15:30:11 +00007378#AC_CHECK_LIB([e], [main])
jjako286bc982003-01-28 23:17:50 +00007379# FIXME: Replace `main' with a function in `-lgtp':
jjakoa9639f32003-07-07 15:30:11 +00007380#AC_CHECK_LIB([gtp], [main])
jjako286bc982003-01-28 23:17:50 +00007381# FIXME: Replace `main' with a function in `-links':
jjakoa9639f32003-07-07 15:30:11 +00007382#AC_CHECK_LIB([inks], [main])
jjako286bc982003-01-28 23:17:50 +00007383
7384# Checks for header files.
7385echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7387if test "${ac_cv_header_stdc+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 cat >conftest.$ac_ext <<_ACEOF
7391#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007392#include "confdefs.h"
7393#include <stdlib.h>
7394#include <stdarg.h>
7395#include <string.h>
7396#include <float.h>
jjako286bc982003-01-28 23:17:50 +00007397
7398_ACEOF
7399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7401 ac_status=$?
7402 egrep -v '^ *\+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } >/dev/null; then
7407 if test -s conftest.err; then
7408 ac_cpp_err=$ac_c_preproc_warn_flag
7409 else
7410 ac_cpp_err=
7411 fi
7412else
7413 ac_cpp_err=yes
7414fi
7415if test -z "$ac_cpp_err"; then
jjako52c24142002-12-16 13:33:51 +00007416 ac_cv_header_stdc=yes
7417else
jjako286bc982003-01-28 23:17:50 +00007418 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00007419 cat conftest.$ac_ext >&5
jjako52c24142002-12-16 13:33:51 +00007420 ac_cv_header_stdc=no
7421fi
jjako286bc982003-01-28 23:17:50 +00007422rm -f conftest.err conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007423
7424if test $ac_cv_header_stdc = yes; then
7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007426 cat >conftest.$ac_ext <<_ACEOF
7427#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007428#include "confdefs.h"
7429#include <string.h>
jjako286bc982003-01-28 23:17:50 +00007430
7431_ACEOF
jjako52c24142002-12-16 13:33:51 +00007432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433 egrep "memchr" >/dev/null 2>&1; then
7434 :
7435else
jjako52c24142002-12-16 13:33:51 +00007436 ac_cv_header_stdc=no
7437fi
7438rm -f conftest*
7439
7440fi
7441
7442if test $ac_cv_header_stdc = yes; then
7443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jjako286bc982003-01-28 23:17:50 +00007444 cat >conftest.$ac_ext <<_ACEOF
7445#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007446#include "confdefs.h"
7447#include <stdlib.h>
jjako286bc982003-01-28 23:17:50 +00007448
7449_ACEOF
jjako52c24142002-12-16 13:33:51 +00007450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451 egrep "free" >/dev/null 2>&1; then
7452 :
7453else
jjako52c24142002-12-16 13:33:51 +00007454 ac_cv_header_stdc=no
7455fi
7456rm -f conftest*
7457
7458fi
7459
7460if test $ac_cv_header_stdc = yes; then
7461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jjako286bc982003-01-28 23:17:50 +00007462 if test "$cross_compiling" = yes; then
jjako52c24142002-12-16 13:33:51 +00007463 :
7464else
jjako286bc982003-01-28 23:17:50 +00007465 cat >conftest.$ac_ext <<_ACEOF
7466#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007467#include "confdefs.h"
7468#include <ctype.h>
jjako286bc982003-01-28 23:17:50 +00007469#if ((' ' & 0x0FF) == 0x020)
7470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7472#else
7473# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7474 || ('j' <= (c) && (c) <= 'r') \
7475 || ('s' <= (c) && (c) <= 'z'))
7476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7477#endif
jjako52c24142002-12-16 13:33:51 +00007478
jjako286bc982003-01-28 23:17:50 +00007479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7480int
7481main ()
7482{
7483 int i;
7484 for (i = 0; i < 256; i++)
7485 if (XOR (islower (i), ISLOWER (i))
7486 || toupper (i) != TOUPPER (i))
7487 exit(2);
7488 exit (0);
7489}
7490_ACEOF
7491rm -f conftest$ac_exeext
7492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007502 :
7503else
jjako286bc982003-01-28 23:17:50 +00007504 echo "$as_me: program exited with status $ac_status" >&5
7505echo "$as_me: failed program was:" >&5
7506cat conftest.$ac_ext >&5
7507( exit $ac_status )
7508ac_cv_header_stdc=no
jjako52c24142002-12-16 13:33:51 +00007509fi
jjako286bc982003-01-28 23:17:50 +00007510rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007511fi
7512fi
jjako286bc982003-01-28 23:17:50 +00007513fi
7514echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7515echo "${ECHO_T}$ac_cv_header_stdc" >&6
jjako52c24142002-12-16 13:33:51 +00007516if test $ac_cv_header_stdc = yes; then
jjako286bc982003-01-28 23:17:50 +00007517
7518cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00007519#define STDC_HEADERS 1
jjako286bc982003-01-28 23:17:50 +00007520_ACEOF
jjako52c24142002-12-16 13:33:51 +00007521
7522fi
7523
jjako286bc982003-01-28 23:17:50 +00007524echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7525echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7526if test "${ac_cv_header_sys_wait_h+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007528else
jjako286bc982003-01-28 23:17:50 +00007529 cat >conftest.$ac_ext <<_ACEOF
7530#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007531#include "confdefs.h"
7532#include <sys/types.h>
7533#include <sys/wait.h>
7534#ifndef WEXITSTATUS
jjako286bc982003-01-28 23:17:50 +00007535# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
jjako52c24142002-12-16 13:33:51 +00007536#endif
7537#ifndef WIFEXITED
jjako286bc982003-01-28 23:17:50 +00007538# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
jjako52c24142002-12-16 13:33:51 +00007539#endif
jjako286bc982003-01-28 23:17:50 +00007540
7541#ifdef F77_DUMMY_MAIN
7542# ifdef __cplusplus
7543 extern "C"
7544# endif
7545 int F77_DUMMY_MAIN() { return 1; }
7546#endif
7547int
7548main ()
7549{
7550 int s;
7551 wait (&s);
7552 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7553 ;
7554 return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext
7558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7559 (eval $ac_compile) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -s conftest.$ac_objext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007569 ac_cv_header_sys_wait_h=yes
7570else
jjako286bc982003-01-28 23:17:50 +00007571 echo "$as_me: failed program was:" >&5
7572cat conftest.$ac_ext >&5
7573ac_cv_header_sys_wait_h=no
jjako52c24142002-12-16 13:33:51 +00007574fi
jjako286bc982003-01-28 23:17:50 +00007575rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007576fi
jjako286bc982003-01-28 23:17:50 +00007577echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7578echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
jjako52c24142002-12-16 13:33:51 +00007579if test $ac_cv_header_sys_wait_h = yes; then
jjako286bc982003-01-28 23:17:50 +00007580
7581cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00007582#define HAVE_SYS_WAIT_H 1
jjako286bc982003-01-28 23:17:50 +00007583_ACEOF
jjako52c24142002-12-16 13:33:51 +00007584
7585fi
7586
jjako286bc982003-01-28 23:17:50 +00007587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599for 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 +00007600do
jjako286bc982003-01-28 23:17:50 +00007601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607fi
7608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00007610else
jjako286bc982003-01-28 23:17:50 +00007611 # Is the header compilable?
7612echo "$as_me:$LINENO: checking $ac_header usability" >&5
7613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7614cat >conftest.$ac_ext <<_ACEOF
7615#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007616#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00007617$ac_includes_default
7618#include <$ac_header>
7619_ACEOF
7620rm -f conftest.$ac_objext
7621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -s conftest.$ac_objext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00007633else
jjako286bc982003-01-28 23:17:50 +00007634 echo "$as_me: failed program was:" >&5
7635cat conftest.$ac_ext >&5
7636ac_header_compiler=no
7637fi
7638rm -f conftest.$ac_objext conftest.$ac_ext
7639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7640echo "${ECHO_T}$ac_header_compiler" >&6
7641
7642# Is the header present?
7643echo "$as_me:$LINENO: checking $ac_header presence" >&5
7644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7645cat >conftest.$ac_ext <<_ACEOF
7646#line $LINENO "configure"
7647#include "confdefs.h"
7648#include <$ac_header>
7649_ACEOF
7650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7652 ac_status=$?
7653 egrep -v '^ *\+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } >/dev/null; then
7658 if test -s conftest.err; then
7659 ac_cpp_err=$ac_c_preproc_warn_flag
7660 else
7661 ac_cpp_err=
7662 fi
7663else
7664 ac_cpp_err=yes
7665fi
7666if test -z "$ac_cpp_err"; then
7667 ac_header_preproc=yes
7668else
7669 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00007670 cat conftest.$ac_ext >&5
jjako286bc982003-01-28 23:17:50 +00007671 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00007672fi
jjako286bc982003-01-28 23:17:50 +00007673rm -f conftest.err conftest.$ac_ext
7674echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7675echo "${ECHO_T}$ac_header_preproc" >&6
7676
7677# So? What about this header?
7678case $ac_header_compiler:$ac_header_preproc in
7679 yes:no )
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7681echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7684 no:yes )
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7691esac
7692echo "$as_me:$LINENO: checking for $ac_header" >&5
7693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7694if eval "test \"\${$as_ac_Header+set}\" = set"; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007696else
jjako286bc982003-01-28 23:17:50 +00007697 eval "$as_ac_Header=$ac_header_preproc"
jjako52c24142002-12-16 13:33:51 +00007698fi
jjako286bc982003-01-28 23:17:50 +00007699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701
7702fi
7703if test `eval echo '${'$as_ac_Header'}'` = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7706_ACEOF
7707
7708fi
7709
jjako52c24142002-12-16 13:33:51 +00007710done
7711
7712
jjako286bc982003-01-28 23:17:50 +00007713# Checks for typedefs, structures, and compiler characteristics.
7714echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7715echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7716if test "${ac_cv_prog_cc_stdc+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007718else
jjako286bc982003-01-28 23:17:50 +00007719 ac_cv_prog_cc_stdc=no
7720ac_save_CC=$CC
7721cat >conftest.$ac_ext <<_ACEOF
7722#line $LINENO "configure"
7723#include "confdefs.h"
7724#include <stdarg.h>
7725#include <stdio.h>
7726#include <sys/types.h>
7727#include <sys/stat.h>
7728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7729struct buf { int x; };
7730FILE * (*rcsopen) (struct buf *, struct stat *, int);
7731static char *e (p, i)
7732 char **p;
7733 int i;
7734{
7735 return p[i];
7736}
7737static char *f (char * (*g) (char **, int), char **p, ...)
7738{
7739 char *s;
7740 va_list v;
7741 va_start (v,p);
7742 s = g (p, va_arg (v,int));
7743 va_end (v);
7744 return s;
7745}
7746int test (int i, double x);
7747struct s1 {int (*f) (int a);};
7748struct s2 {int (*f) (double a);};
7749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7750int argc;
7751char **argv;
7752#ifdef F77_DUMMY_MAIN
7753# ifdef __cplusplus
7754 extern "C"
7755# endif
7756 int F77_DUMMY_MAIN() { return 1; }
7757#endif
7758int
7759main ()
7760{
7761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7762 ;
7763 return 0;
7764}
7765_ACEOF
7766# Don't try gcc -ansi; that turns off useful extensions and
7767# breaks some systems' header files.
7768# AIX -qlanglvl=ansi
7769# Ultrix and OSF/1 -std1
7770# HP-UX 10.20 and later -Ae
7771# HP-UX older versions -Aa -D_HPUX_SOURCE
7772# SVR4 -Xc -D__EXTENSIONS__
7773for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7774do
7775 CC="$ac_save_CC $ac_arg"
7776 rm -f conftest.$ac_objext
7777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_cv_prog_cc_stdc=$ac_arg
7789break
7790else
7791 echo "$as_me: failed program was:" >&5
7792cat conftest.$ac_ext >&5
7793fi
7794rm -f conftest.$ac_objext
7795done
7796rm -f conftest.$ac_ext conftest.$ac_objext
7797CC=$ac_save_CC
7798
7799fi
7800
7801case "x$ac_cv_prog_cc_stdc" in
7802 x|xno)
7803 echo "$as_me:$LINENO: result: none needed" >&5
7804echo "${ECHO_T}none needed" >&6 ;;
7805 *)
7806 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7807echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7808 CC="$CC $ac_cv_prog_cc_stdc" ;;
7809esac
7810
7811echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7812echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7813if test "${ac_cv_c_const+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815else
7816 cat >conftest.$ac_ext <<_ACEOF
7817#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007818#include "confdefs.h"
7819
jjako286bc982003-01-28 23:17:50 +00007820#ifdef F77_DUMMY_MAIN
7821# ifdef __cplusplus
7822 extern "C"
7823# endif
7824 int F77_DUMMY_MAIN() { return 1; }
7825#endif
7826int
7827main ()
7828{
7829/* FIXME: Include the comments suggested by Paul. */
7830#ifndef __cplusplus
7831 /* Ultrix mips cc rejects this. */
7832 typedef int charset[2];
7833 const charset x;
7834 /* SunOS 4.1.1 cc rejects this. */
7835 char const *const *ccp;
7836 char **p;
7837 /* NEC SVR4.0.2 mips cc rejects this. */
7838 struct point {int x, y;};
7839 static struct point const zero = {0,0};
7840 /* AIX XL C 1.02.0.0 rejects this.
7841 It does not let you subtract one const X* pointer from another in
7842 an arm of an if-expression whose if-part is not a constant
7843 expression */
7844 const char *g = "string";
7845 ccp = &g + (g ? g-g : 0);
7846 /* HPUX 7.0 cc rejects these. */
7847 ++ccp;
7848 p = (char**) ccp;
7849 ccp = (char const *const *) p;
7850 { /* SCO 3.2v4 cc rejects this. */
7851 char *t;
7852 char const *s = 0 ? (char *) 0 : (char const *) 0;
jjako52c24142002-12-16 13:33:51 +00007853
jjako286bc982003-01-28 23:17:50 +00007854 *t++ = 0;
7855 }
7856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7857 int x[] = {25, 17};
7858 const int *foo = &x[0];
7859 ++foo;
7860 }
7861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7862 typedef const int *iptr;
7863 iptr p = 0;
7864 ++p;
7865 }
7866 { /* AIX XL C 1.02.0.0 rejects this saying
7867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7868 struct s { int j; const int *ap[3]; };
7869 struct s *b; b->j = 5;
7870 }
7871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7872 const int foo = 10;
7873 }
7874#endif
jjako52c24142002-12-16 13:33:51 +00007875
jjako286bc982003-01-28 23:17:50 +00007876 ;
7877 return 0;
jjako52c24142002-12-16 13:33:51 +00007878}
jjako286bc982003-01-28 23:17:50 +00007879_ACEOF
7880rm -f conftest.$ac_objext
7881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882 (eval $ac_compile) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00007892 ac_cv_c_const=yes
7893else
jjako286bc982003-01-28 23:17:50 +00007894 echo "$as_me: failed program was:" >&5
7895cat conftest.$ac_ext >&5
7896ac_cv_c_const=no
jjako52c24142002-12-16 13:33:51 +00007897fi
jjako286bc982003-01-28 23:17:50 +00007898rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00007899fi
jjako286bc982003-01-28 23:17:50 +00007900echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7901echo "${ECHO_T}$ac_cv_c_const" >&6
jjako52c24142002-12-16 13:33:51 +00007902if test $ac_cv_c_const = no; then
jjako286bc982003-01-28 23:17:50 +00007903
7904cat >>confdefs.h <<\_ACEOF
7905#define const
7906_ACEOF
jjako52c24142002-12-16 13:33:51 +00007907
7908fi
7909
jjako286bc982003-01-28 23:17:50 +00007910echo "$as_me:$LINENO: checking for mode_t" >&5
7911echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7912if test "${ac_cv_type_mode_t+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00007914else
jjako286bc982003-01-28 23:17:50 +00007915 cat >conftest.$ac_ext <<_ACEOF
7916#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00007917#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00007918$ac_includes_default
7919#ifdef F77_DUMMY_MAIN
7920# ifdef __cplusplus
7921 extern "C"
7922# endif
7923 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00007924#endif
jjako286bc982003-01-28 23:17:50 +00007925int
7926main ()
7927{
7928if ((mode_t *) 0)
7929 return 0;
7930if (sizeof (mode_t))
7931 return 0;
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext
7937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -s conftest.$ac_objext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 (eval $ac_try) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 ac_cv_type_mode_t=yes
7949else
7950 echo "$as_me: failed program was:" >&5
7951cat conftest.$ac_ext >&5
7952ac_cv_type_mode_t=no
7953fi
7954rm -f conftest.$ac_objext conftest.$ac_ext
7955fi
7956echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7957echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7958if test $ac_cv_type_mode_t = yes; then
7959 :
7960else
7961
7962cat >>confdefs.h <<_ACEOF
7963#define mode_t int
7964_ACEOF
7965
7966fi
7967
7968echo "$as_me:$LINENO: checking for size_t" >&5
7969echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7970if test "${ac_cv_type_size_t+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973 cat >conftest.$ac_ext <<_ACEOF
7974#line $LINENO "configure"
7975#include "confdefs.h"
7976$ac_includes_default
7977#ifdef F77_DUMMY_MAIN
7978# ifdef __cplusplus
7979 extern "C"
7980# endif
7981 int F77_DUMMY_MAIN() { return 1; }
7982#endif
7983int
7984main ()
7985{
7986if ((size_t *) 0)
7987 return 0;
7988if (sizeof (size_t))
7989 return 0;
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
7995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>&5
7997 ac_status=$?
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -s conftest.$ac_objext'
8001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 (eval $ac_try) 2>&5
8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008006 ac_cv_type_size_t=yes
8007else
jjako286bc982003-01-28 23:17:50 +00008008 echo "$as_me: failed program was:" >&5
8009cat conftest.$ac_ext >&5
8010ac_cv_type_size_t=no
jjako52c24142002-12-16 13:33:51 +00008011fi
jjako286bc982003-01-28 23:17:50 +00008012rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008013fi
jjako286bc982003-01-28 23:17:50 +00008014echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8015echo "${ECHO_T}$ac_cv_type_size_t" >&6
8016if test $ac_cv_type_size_t = yes; then
8017 :
jjako52c24142002-12-16 13:33:51 +00008018else
jjako286bc982003-01-28 23:17:50 +00008019
8020cat >>confdefs.h <<_ACEOF
8021#define size_t unsigned
8022_ACEOF
8023
8024fi
8025
8026echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8027echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8028if test "${ac_cv_header_time+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8030else
8031 cat >conftest.$ac_ext <<_ACEOF
8032#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008033#include "confdefs.h"
8034#include <sys/types.h>
8035#include <sys/time.h>
8036#include <time.h>
jjako286bc982003-01-28 23:17:50 +00008037
8038#ifdef F77_DUMMY_MAIN
8039# ifdef __cplusplus
8040 extern "C"
8041# endif
8042 int F77_DUMMY_MAIN() { return 1; }
8043#endif
8044int
8045main ()
8046{
8047if ((struct tm *) 0)
8048return 0;
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055 (eval $ac_compile) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
jjako52c24142002-12-16 13:33:51 +00008065 ac_cv_header_time=yes
8066else
jjako286bc982003-01-28 23:17:50 +00008067 echo "$as_me: failed program was:" >&5
8068cat conftest.$ac_ext >&5
8069ac_cv_header_time=no
jjako52c24142002-12-16 13:33:51 +00008070fi
jjako286bc982003-01-28 23:17:50 +00008071rm -f conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008072fi
jjako286bc982003-01-28 23:17:50 +00008073echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8074echo "${ECHO_T}$ac_cv_header_time" >&6
jjako52c24142002-12-16 13:33:51 +00008075if test $ac_cv_header_time = yes; then
jjako286bc982003-01-28 23:17:50 +00008076
8077cat >>confdefs.h <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008078#define TIME_WITH_SYS_TIME 1
jjako286bc982003-01-28 23:17:50 +00008079_ACEOF
jjako52c24142002-12-16 13:33:51 +00008080
8081fi
8082
8083
jjako286bc982003-01-28 23:17:50 +00008084# Checks for library functions.
8085if test $ac_cv_c_compiler_gnu = yes; then
8086 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8087echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
8088if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008090else
8091 ac_pattern="Autoconf.*'x'"
jjako286bc982003-01-28 23:17:50 +00008092 cat >conftest.$ac_ext <<_ACEOF
8093#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008094#include "confdefs.h"
8095#include <sgtty.h>
8096Autoconf TIOCGETP
jjako286bc982003-01-28 23:17:50 +00008097_ACEOF
jjako52c24142002-12-16 13:33:51 +00008098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 egrep "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008100 ac_cv_prog_gcc_traditional=yes
8101else
jjako52c24142002-12-16 13:33:51 +00008102 ac_cv_prog_gcc_traditional=no
8103fi
8104rm -f conftest*
8105
8106
8107 if test $ac_cv_prog_gcc_traditional = no; then
jjako286bc982003-01-28 23:17:50 +00008108 cat >conftest.$ac_ext <<_ACEOF
8109#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008110#include "confdefs.h"
8111#include <termio.h>
8112Autoconf TCGETA
jjako286bc982003-01-28 23:17:50 +00008113_ACEOF
jjako52c24142002-12-16 13:33:51 +00008114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115 egrep "$ac_pattern" >/dev/null 2>&1; then
jjako52c24142002-12-16 13:33:51 +00008116 ac_cv_prog_gcc_traditional=yes
8117fi
8118rm -f conftest*
8119
8120 fi
8121fi
jjako286bc982003-01-28 23:17:50 +00008122echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8123echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
jjako52c24142002-12-16 13:33:51 +00008124 if test $ac_cv_prog_gcc_traditional = yes; then
8125 CC="$CC -traditional"
8126 fi
8127fi
8128
jjako286bc982003-01-28 23:17:50 +00008129
8130for ac_header in stdlib.h
8131do
8132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8133if eval "test \"\${$as_ac_Header+set}\" = set"; then
8134 echo "$as_me:$LINENO: checking for $ac_header" >&5
8135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8136if eval "test \"\${$as_ac_Header+set}\" = set"; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8138fi
8139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
jjako52c24142002-12-16 13:33:51 +00008141else
jjako286bc982003-01-28 23:17:50 +00008142 # Is the header compilable?
8143echo "$as_me:$LINENO: checking $ac_header usability" >&5
8144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8145cat >conftest.$ac_ext <<_ACEOF
8146#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008147#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008148$ac_includes_default
8149#include <$ac_header>
8150_ACEOF
8151rm -f conftest.$ac_objext
8152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -s conftest.$ac_objext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 ac_header_compiler=yes
jjako52c24142002-12-16 13:33:51 +00008164else
jjako286bc982003-01-28 23:17:50 +00008165 echo "$as_me: failed program was:" >&5
8166cat conftest.$ac_ext >&5
8167ac_header_compiler=no
jjako52c24142002-12-16 13:33:51 +00008168fi
jjako286bc982003-01-28 23:17:50 +00008169rm -f conftest.$ac_objext conftest.$ac_ext
8170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8171echo "${ECHO_T}$ac_header_compiler" >&6
jjako52c24142002-12-16 13:33:51 +00008172
jjako286bc982003-01-28 23:17:50 +00008173# Is the header present?
8174echo "$as_me:$LINENO: checking $ac_header presence" >&5
8175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8176cat >conftest.$ac_ext <<_ACEOF
8177#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008178#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008179#include <$ac_header>
8180_ACEOF
8181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8183 ac_status=$?
8184 egrep -v '^ *\+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } >/dev/null; then
8189 if test -s conftest.err; then
8190 ac_cpp_err=$ac_c_preproc_warn_flag
8191 else
8192 ac_cpp_err=
8193 fi
jjako52c24142002-12-16 13:33:51 +00008194else
jjako286bc982003-01-28 23:17:50 +00008195 ac_cpp_err=yes
8196fi
8197if test -z "$ac_cpp_err"; then
8198 ac_header_preproc=yes
8199else
8200 echo "$as_me: failed program was:" >&5
jjako52c24142002-12-16 13:33:51 +00008201 cat conftest.$ac_ext >&5
jjako286bc982003-01-28 23:17:50 +00008202 ac_header_preproc=no
jjako52c24142002-12-16 13:33:51 +00008203fi
jjako286bc982003-01-28 23:17:50 +00008204rm -f conftest.err conftest.$ac_ext
8205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8206echo "${ECHO_T}$ac_header_preproc" >&6
jjako52c24142002-12-16 13:33:51 +00008207
jjako286bc982003-01-28 23:17:50 +00008208# So? What about this header?
8209case $ac_header_compiler:$ac_header_preproc in
8210 yes:no )
8211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8215 no:yes )
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8222esac
8223echo "$as_me:$LINENO: checking for $ac_header" >&5
8224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8225if eval "test \"\${$as_ac_Header+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008227else
jjako286bc982003-01-28 23:17:50 +00008228 eval "$as_ac_Header=$ac_header_preproc"
8229fi
8230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8232
8233fi
8234if test `eval echo '${'$as_ac_Header'}'` = yes; then
8235 cat >>confdefs.h <<_ACEOF
8236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8237_ACEOF
8238
jjako52c24142002-12-16 13:33:51 +00008239fi
8240
jjako286bc982003-01-28 23:17:50 +00008241done
8242
8243echo "$as_me:$LINENO: checking for working malloc" >&5
8244echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
8245if test "${ac_cv_func_malloc_works+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008247else
8248 if test "$cross_compiling" = yes; then
jjako286bc982003-01-28 23:17:50 +00008249 ac_cv_func_malloc_works=no
jjako52c24142002-12-16 13:33:51 +00008250else
jjako286bc982003-01-28 23:17:50 +00008251 cat >conftest.$ac_ext <<_ACEOF
8252#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008253#include "confdefs.h"
jjako286bc982003-01-28 23:17:50 +00008254#if STDC_HEADERS || HAVE_STDLIB_H
8255# include <stdlib.h>
jjako52c24142002-12-16 13:33:51 +00008256#else
jjako286bc982003-01-28 23:17:50 +00008257char *malloc ();
jjako52c24142002-12-16 13:33:51 +00008258#endif
8259
jjako286bc982003-01-28 23:17:50 +00008260#ifdef F77_DUMMY_MAIN
8261# ifdef __cplusplus
8262 extern "C"
8263# endif
8264 int F77_DUMMY_MAIN() { return 1; }
jjako52c24142002-12-16 13:33:51 +00008265#endif
jjako286bc982003-01-28 23:17:50 +00008266int
8267main ()
jjako52c24142002-12-16 13:33:51 +00008268{
jjako286bc982003-01-28 23:17:50 +00008269exit (malloc (0) ? 0 : 1);
8270 ;
8271 return 0;
jjako52c24142002-12-16 13:33:51 +00008272}
jjako286bc982003-01-28 23:17:50 +00008273_ACEOF
8274rm -f conftest$ac_exeext
8275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 (eval $ac_try) 2>&5
8282 ac_status=$?
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_func_malloc_works=yes
jjako52c24142002-12-16 13:33:51 +00008286else
jjako286bc982003-01-28 23:17:50 +00008287 echo "$as_me: program exited with status $ac_status" >&5
8288echo "$as_me: failed program was:" >&5
8289cat conftest.$ac_ext >&5
8290( exit $ac_status )
8291ac_cv_func_malloc_works=no
jjako52c24142002-12-16 13:33:51 +00008292fi
jjako286bc982003-01-28 23:17:50 +00008293rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008294fi
jjako286bc982003-01-28 23:17:50 +00008295fi
8296echo "$as_me:$LINENO: result: $ac_cv_func_malloc_works" >&5
8297echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
8298if test $ac_cv_func_malloc_works = yes; then
8299
8300cat >>confdefs.h <<\_ACEOF
8301#define HAVE_MALLOC 1
8302_ACEOF
jjako52c24142002-12-16 13:33:51 +00008303
8304fi
8305
jjako286bc982003-01-28 23:17:50 +00008306echo "$as_me:$LINENO: checking for working memcmp" >&5
8307echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8308if test "${ac_cv_func_memcmp_working+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311 if test "$cross_compiling" = yes; then
8312 ac_cv_func_memcmp_working=no
8313else
8314 cat >conftest.$ac_ext <<_ACEOF
8315#line $LINENO "configure"
8316#include "confdefs.h"
jjako52c24142002-12-16 13:33:51 +00008317
jjako286bc982003-01-28 23:17:50 +00008318#ifdef F77_DUMMY_MAIN
8319# ifdef __cplusplus
8320 extern "C"
8321# endif
8322 int F77_DUMMY_MAIN() { return 1; }
8323#endif
8324int
8325main ()
8326{
8327
8328 /* Some versions of memcmp are not 8-bit clean. */
8329 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8330 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8331 exit (1);
8332
8333 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8334 or more and with at least one buffer not starting on a 4-byte boundary.
8335 William Lewis provided this test program. */
8336 {
8337 char foo[21];
8338 char bar[21];
8339 int i;
8340 for (i = 0; i < 4; i++)
8341 {
8342 char *a = foo + i;
8343 char *b = bar + i;
8344 strcpy (a, "--------01111111");
8345 strcpy (b, "--------10000000");
8346 if (memcmp (a, b, 16) >= 0)
8347 exit (1);
8348 }
8349 exit (0);
8350 }
8351
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356rm -f conftest$ac_exeext
8357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_func_memcmp_working=yes
8368else
8369 echo "$as_me: program exited with status $ac_status" >&5
8370echo "$as_me: failed program was:" >&5
8371cat conftest.$ac_ext >&5
8372( exit $ac_status )
8373ac_cv_func_memcmp_working=no
jjako52c24142002-12-16 13:33:51 +00008374fi
jjako286bc982003-01-28 23:17:50 +00008375rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8376fi
8377fi
8378echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8379echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8380test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
jjako52c24142002-12-16 13:33:51 +00008381
jjako286bc982003-01-28 23:17:50 +00008382
8383
8384
8385
8386
8387
8388
8389
8390for ac_func in gethostbyname inet_ntoa memset select socket strdup strerror strtol
jjako52c24142002-12-16 13:33:51 +00008391do
jjako286bc982003-01-28 23:17:50 +00008392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8393echo "$as_me:$LINENO: checking for $ac_func" >&5
8394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8395if eval "test \"\${$as_ac_var+set}\" = set"; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008397else
jjako286bc982003-01-28 23:17:50 +00008398 cat >conftest.$ac_ext <<_ACEOF
8399#line $LINENO "configure"
jjako52c24142002-12-16 13:33:51 +00008400#include "confdefs.h"
8401/* System header to define __stub macros and hopefully few prototypes,
jjako286bc982003-01-28 23:17:50 +00008402 which can conflict with char $ac_func (); below. */
jjako52c24142002-12-16 13:33:51 +00008403#include <assert.h>
8404/* Override any gcc2 internal prototype to avoid an error. */
jjako286bc982003-01-28 23:17:50 +00008405#ifdef __cplusplus
8406extern "C"
8407#endif
jjako52c24142002-12-16 13:33:51 +00008408/* We use char because int might match the return type of a gcc2
jjako286bc982003-01-28 23:17:50 +00008409 builtin and then its argument prototype would still apply. */
8410char $ac_func ();
8411char (*f) ();
jjako52c24142002-12-16 13:33:51 +00008412
jjako286bc982003-01-28 23:17:50 +00008413#ifdef F77_DUMMY_MAIN
8414# ifdef __cplusplus
8415 extern "C"
8416# endif
8417 int F77_DUMMY_MAIN() { return 1; }
8418#endif
8419int
8420main ()
8421{
jjako52c24142002-12-16 13:33:51 +00008422/* The GNU C library defines this for functions which it implements
8423 to always fail with ENOSYS. Some functions are actually named
8424 something starting with __ and the normal name is an alias. */
8425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8426choke me
8427#else
jjako286bc982003-01-28 23:17:50 +00008428f = $ac_func;
jjako52c24142002-12-16 13:33:51 +00008429#endif
8430
jjako286bc982003-01-28 23:17:50 +00008431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext conftest$ac_exeext
8436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 eval "$as_ac_var=yes"
jjako52c24142002-12-16 13:33:51 +00008448else
jjako286bc982003-01-28 23:17:50 +00008449 echo "$as_me: failed program was:" >&5
8450cat conftest.$ac_ext >&5
8451eval "$as_ac_var=no"
jjako52c24142002-12-16 13:33:51 +00008452fi
jjako286bc982003-01-28 23:17:50 +00008453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
jjako52c24142002-12-16 13:33:51 +00008454fi
jjako286bc982003-01-28 23:17:50 +00008455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8457if test `eval echo '${'$as_ac_var'}'` = yes; then
8458 cat >>confdefs.h <<_ACEOF
8459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8460_ACEOF
jjako52c24142002-12-16 13:33:51 +00008461
jjako52c24142002-12-16 13:33:51 +00008462fi
8463done
8464
8465
jjako286bc982003-01-28 23:17:50 +00008466am__api_version="1.6"
8467echo "$as_me:$LINENO: checking whether build environment is sane" >&5
8468echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008469# Just in case
8470sleep 1
jjako286bc982003-01-28 23:17:50 +00008471echo timestamp > conftest.file
jjako52c24142002-12-16 13:33:51 +00008472# Do `set' in a subshell so we don't clobber the current shell's
8473# arguments. Must try -L first in case configure is actually a
8474# symlink; some systems play weird games with the mod time of symlinks
8475# (eg FreeBSD returns the mod time of the symlink's containing
8476# directory).
8477if (
jjako286bc982003-01-28 23:17:50 +00008478 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
jjako52c24142002-12-16 13:33:51 +00008479 if test "$*" = "X"; then
8480 # -L didn't work.
jjako286bc982003-01-28 23:17:50 +00008481 set X `ls -t $srcdir/configure conftest.file`
jjako52c24142002-12-16 13:33:51 +00008482 fi
jjako286bc982003-01-28 23:17:50 +00008483 rm -f conftest.file
8484 if test "$*" != "X $srcdir/configure conftest.file" \
8485 && test "$*" != "X conftest.file $srcdir/configure"; then
jjako52c24142002-12-16 13:33:51 +00008486
8487 # If neither matched, then we have a broken ls. This can happen
8488 # if, for instance, CONFIG_SHELL is bash and it inherits a
8489 # broken ls alias from the environment. This has actually
8490 # happened. Such a system could not be considered "sane".
jjako286bc982003-01-28 23:17:50 +00008491 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
8492alias in your environment" >&5
8493echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
8494alias in your environment" >&2;}
8495 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00008496 fi
8497
jjako286bc982003-01-28 23:17:50 +00008498 test "$2" = conftest.file
jjako52c24142002-12-16 13:33:51 +00008499 )
8500then
8501 # Ok.
8502 :
8503else
jjako286bc982003-01-28 23:17:50 +00008504 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
8505Check your system clock" >&5
8506echo "$as_me: error: newly created file is older than distributed files!
8507Check your system clock" >&2;}
8508 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00008509fi
jjako286bc982003-01-28 23:17:50 +00008510echo "$as_me:$LINENO: result: yes" >&5
8511echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00008512test "$program_prefix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00008513 program_transform_name="s,^,$program_prefix,;$program_transform_name"
jjako52c24142002-12-16 13:33:51 +00008514# Use a double $ so make ignores it.
8515test "$program_suffix" != NONE &&
jjako286bc982003-01-28 23:17:50 +00008516 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
8517# Double any \ or $. echo might interpret backslashes.
8518# By default was `s,x,x', remove it if useless.
8519cat <<\_ACEOF >conftest.sed
8520s/[\\$]/&&/g;s/;s,x,x,$//
8521_ACEOF
8522program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
8523rm conftest.sed
jjako52c24142002-12-16 13:33:51 +00008524
jjako52c24142002-12-16 13:33:51 +00008525
jjako286bc982003-01-28 23:17:50 +00008526# expand $ac_aux_dir to an absolute path
8527am_aux_dir=`cd $ac_aux_dir && pwd`
8528
8529test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8530# Use eval to expand $SHELL
8531if eval "$MISSING --run true"; then
8532 am_missing_run="$MISSING --run "
jjako52c24142002-12-16 13:33:51 +00008533else
jjako286bc982003-01-28 23:17:50 +00008534 am_missing_run=
8535 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
8536echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8537fi
8538
8539echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
8540echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
8541set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
8542if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545 cat >conftest.make <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008546all:
8547 @echo 'ac_maketemp="${MAKE}"'
jjako286bc982003-01-28 23:17:50 +00008548_ACEOF
jjako52c24142002-12-16 13:33:51 +00008549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
jjako286bc982003-01-28 23:17:50 +00008550eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
jjako52c24142002-12-16 13:33:51 +00008551if test -n "$ac_maketemp"; then
8552 eval ac_cv_prog_make_${ac_make}_set=yes
8553else
8554 eval ac_cv_prog_make_${ac_make}_set=no
8555fi
jjako286bc982003-01-28 23:17:50 +00008556rm -f conftest.make
jjako52c24142002-12-16 13:33:51 +00008557fi
8558if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
jjako286bc982003-01-28 23:17:50 +00008559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
jjako52c24142002-12-16 13:33:51 +00008561 SET_MAKE=
8562else
jjako286bc982003-01-28 23:17:50 +00008563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008565 SET_MAKE="MAKE=${MAKE-make}"
8566fi
8567
jjako286bc982003-01-28 23:17:50 +00008568rm -f .deps 2>/dev/null
8569mkdir .deps 2>/dev/null
8570if test -d .deps; then
8571 DEPDIR=.deps
8572else
8573 # MS-DOS does not allow filenames that begin with a dot.
8574 DEPDIR=_deps
jjako52c24142002-12-16 13:33:51 +00008575fi
jjako286bc982003-01-28 23:17:50 +00008576rmdir .deps 2>/dev/null
8577
8578
8579ac_config_commands="$ac_config_commands depfiles"
8580
8581
8582am_make=${MAKE-make}
8583cat > confinc << 'END'
8584doit:
8585 @echo done
8586END
8587# If we don't find an include directive, just comment out the code.
8588echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
8589echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
8590am__include="#"
8591am__quote=
8592_am_result=none
8593# First try GNU make style include.
8594echo "include confinc" > confmf
8595# We grep out `Entering directory' and `Leaving directory'
8596# messages which can occur if `w' ends up in MAKEFLAGS.
8597# In particular we don't look at `^make:' because GNU make might
8598# be invoked under some other name (usually "gmake"), in which
8599# case it prints its new name instead of `make'.
8600if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
8601 am__include=include
8602 am__quote=
8603 _am_result=GNU
8604fi
8605# Now try BSD make style include.
8606if test "$am__include" = "#"; then
8607 echo '.include "confinc"' > confmf
8608 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8609 am__include=.include
8610 am__quote="\""
8611 _am_result=BSD
8612 fi
8613fi
8614
8615
8616echo "$as_me:$LINENO: result: $_am_result" >&5
8617echo "${ECHO_T}$_am_result" >&6
8618rm -f confinc confmf
8619
8620# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
8621if test "${enable_dependency_tracking+set}" = set; then
8622 enableval="$enable_dependency_tracking"
8623
8624fi;
8625if test "x$enable_dependency_tracking" != xno; then
8626 am_depcomp="$ac_aux_dir/depcomp"
8627 AMDEPBACKSLASH='\'
8628fi
8629
8630
8631if test "x$enable_dependency_tracking" != xno; then
8632 AMDEP_TRUE=
8633 AMDEP_FALSE='#'
8634else
8635 AMDEP_TRUE='#'
8636 AMDEP_FALSE=
8637fi
8638
8639
8640
8641 # test to see if srcdir already configured
8642if test "`cd $srcdir && pwd`" != "`pwd`" &&
8643 test -f $srcdir/config.status; then
8644 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
8645echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
8646 { (exit 1); exit 1; }; }
8647fi
8648
8649# Define the identity of the package.
8650 PACKAGE=openggsn
jjakoa9639f32003-07-07 15:30:11 +00008651 VERSION=0.60
jjako286bc982003-01-28 23:17:50 +00008652
8653
8654cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00008655#define PACKAGE "$PACKAGE"
jjako286bc982003-01-28 23:17:50 +00008656_ACEOF
jjako52c24142002-12-16 13:33:51 +00008657
jjako286bc982003-01-28 23:17:50 +00008658
8659cat >>confdefs.h <<_ACEOF
jjako52c24142002-12-16 13:33:51 +00008660#define VERSION "$VERSION"
jjako286bc982003-01-28 23:17:50 +00008661_ACEOF
8662
8663# Some tools Automake needs.
8664
8665ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
jjako52c24142002-12-16 13:33:51 +00008666
8667
jjako286bc982003-01-28 23:17:50 +00008668AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
jjako52c24142002-12-16 13:33:51 +00008669
jjako286bc982003-01-28 23:17:50 +00008670
8671AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
8672
8673
8674AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
8675
8676
8677MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
8678
8679
8680AMTAR=${AMTAR-"${am_missing_run}tar"}
8681
8682install_sh=${install_sh-"$am_aux_dir/install-sh"}
8683
8684# Installed binaries are usually stripped using `strip' when the user
8685# run `make install-strip'. However `strip' might not be the right
8686# tool to use in cross-compilation environments, therefore Automake
8687# will honor the `STRIP' environment variable to overrule this program.
8688if test "$cross_compiling" != no; then
8689 if test -n "$ac_tool_prefix"; then
8690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8691set dummy ${ac_tool_prefix}strip; ac_word=$2
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_prog_STRIP+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008696else
jjako286bc982003-01-28 23:17:50 +00008697 if test -n "$STRIP"; then
8698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711done
8712done
8713
8714fi
8715fi
8716STRIP=$ac_cv_prog_STRIP
8717if test -n "$STRIP"; then
8718 echo "$as_me:$LINENO: result: $STRIP" >&5
8719echo "${ECHO_T}$STRIP" >&6
8720else
8721 echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008723fi
8724
jjako286bc982003-01-28 23:17:50 +00008725fi
8726if test -z "$ac_cv_prog_STRIP"; then
8727 ac_ct_STRIP=$STRIP
8728 # Extract the first word of "strip", so it can be a program name with args.
8729set dummy strip; ac_word=$2
8730echo "$as_me:$LINENO: checking for $ac_word" >&5
8731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8732if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008734else
jjako286bc982003-01-28 23:17:50 +00008735 if test -n "$ac_ct_STRIP"; then
8736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8737else
8738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739for as_dir in $PATH
8740do
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8745 ac_cv_prog_ac_ct_STRIP="strip"
8746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8748 fi
8749done
8750done
8751
8752 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8753fi
8754fi
8755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8756if test -n "$ac_ct_STRIP"; then
8757 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8758echo "${ECHO_T}$ac_ct_STRIP" >&6
8759else
8760 echo "$as_me:$LINENO: result: no" >&5
8761echo "${ECHO_T}no" >&6
jjako52c24142002-12-16 13:33:51 +00008762fi
8763
jjako286bc982003-01-28 23:17:50 +00008764 STRIP=$ac_ct_STRIP
jjako52c24142002-12-16 13:33:51 +00008765else
jjako286bc982003-01-28 23:17:50 +00008766 STRIP="$ac_cv_prog_STRIP"
jjako52c24142002-12-16 13:33:51 +00008767fi
8768
jjako286bc982003-01-28 23:17:50 +00008769fi
8770INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8771
8772# We need awk for the "check" target. The system "awk" is bad on
8773# some platforms.
8774
8775
8776depcc="$CC" am_compiler_list=
8777
8778echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8779echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008782else
jjako286bc982003-01-28 23:17:50 +00008783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8784 # We make a subdir and do the tests there. Otherwise we can end up
8785 # making bogus files that we don't know about and never remove. For
8786 # instance it was reported that on HP-UX the gcc test will end up
8787 # making a dummy file named `D' -- because `-MD' means `put the output
8788 # in D'.
8789 mkdir conftest.dir
8790 # Copy depcomp to subdir because otherwise we won't find it if we're
8791 # using a relative directory.
8792 cp "$am_depcomp" conftest.dir
8793 cd conftest.dir
8794
8795 am_cv_CC_dependencies_compiler_type=none
8796 if test "$am_compiler_list" = ""; then
8797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8798 fi
8799 for depmode in $am_compiler_list; do
8800 # We need to recreate these files for each test, as the compiler may
8801 # overwrite some of them when testing with obscure command lines.
8802 # This happens at least with the AIX C compiler.
8803 echo '#include "conftest.h"' > conftest.c
8804 echo 'int i;' > conftest.h
8805 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8806
8807 case $depmode in
8808 nosideeffect)
8809 # after this tag, mechanisms are not by side-effect, so they'll
8810 # only be used when explicitly requested
8811 if test "x$enable_dependency_tracking" = xyes; then
8812 continue
8813 else
8814 break
8815 fi
8816 ;;
8817 none) break ;;
8818 esac
8819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8820 # mode. It turns out that the SunPro C++ compiler does not properly
8821 # handle `-M -o', and we need to detect this.
8822 if depmode=$depmode \
8823 source=conftest.c object=conftest.o \
8824 depfile=conftest.Po tmpdepfile=conftest.TPo \
8825 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8826 grep conftest.h conftest.Po > /dev/null 2>&1 &&
8827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8828 am_cv_CC_dependencies_compiler_type=$depmode
8829 break
8830 fi
8831 done
8832
8833 cd ..
8834 rm -rf conftest.dir
8835else
8836 am_cv_CC_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00008837fi
8838
jjako286bc982003-01-28 23:17:50 +00008839fi
8840echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
8841echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
8842CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8843
8844
8845depcc="$CXX" am_compiler_list=
8846
8847echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8848echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8849if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
jjako52c24142002-12-16 13:33:51 +00008851else
jjako286bc982003-01-28 23:17:50 +00008852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8853 # We make a subdir and do the tests there. Otherwise we can end up
8854 # making bogus files that we don't know about and never remove. For
8855 # instance it was reported that on HP-UX the gcc test will end up
8856 # making a dummy file named `D' -- because `-MD' means `put the output
8857 # in D'.
8858 mkdir conftest.dir
8859 # Copy depcomp to subdir because otherwise we won't find it if we're
8860 # using a relative directory.
8861 cp "$am_depcomp" conftest.dir
8862 cd conftest.dir
8863
8864 am_cv_CXX_dependencies_compiler_type=none
8865 if test "$am_compiler_list" = ""; then
8866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8867 fi
8868 for depmode in $am_compiler_list; do
8869 # We need to recreate these files for each test, as the compiler may
8870 # overwrite some of them when testing with obscure command lines.
8871 # This happens at least with the AIX C compiler.
8872 echo '#include "conftest.h"' > conftest.c
8873 echo 'int i;' > conftest.h
8874 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
8875
8876 case $depmode in
8877 nosideeffect)
8878 # after this tag, mechanisms are not by side-effect, so they'll
8879 # only be used when explicitly requested
8880 if test "x$enable_dependency_tracking" = xyes; then
8881 continue
8882 else
8883 break
8884 fi
8885 ;;
8886 none) break ;;
8887 esac
8888 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8889 # mode. It turns out that the SunPro C++ compiler does not properly
8890 # handle `-M -o', and we need to detect this.
8891 if depmode=$depmode \
8892 source=conftest.c object=conftest.o \
8893 depfile=conftest.Po tmpdepfile=conftest.TPo \
8894 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
8895 grep conftest.h conftest.Po > /dev/null 2>&1 &&
8896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8897 am_cv_CXX_dependencies_compiler_type=$depmode
8898 break
8899 fi
8900 done
8901
8902 cd ..
8903 rm -rf conftest.dir
8904else
8905 am_cv_CXX_dependencies_compiler_type=none
jjako52c24142002-12-16 13:33:51 +00008906fi
8907
jjako286bc982003-01-28 23:17:50 +00008908fi
8909echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8910echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8911CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
jjako52c24142002-12-16 13:33:51 +00008912
8913
jjako286bc982003-01-28 23:17:50 +00008914
8915
jjakoa9639f32003-07-07 15:30:11 +00008916ac_config_files="$ac_config_files Makefile doc/Makefile ggsn/Makefile gtp/Makefile intl/Makefile po/Makefile sgsnemu/Makefile src/Makefile tests/Makefile openggsn.spec"
jjako286bc982003-01-28 23:17:50 +00008917
8918cat >confcache <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00008919# This file is a shell script that caches the results of configure
8920# tests run on this system so they can be shared between configure
jjako286bc982003-01-28 23:17:50 +00008921# scripts and configure runs, see configure's option --config-cache.
8922# It is not useful on other systems. If it contains results you don't
8923# want to keep, you may remove or edit it.
jjako52c24142002-12-16 13:33:51 +00008924#
jjako286bc982003-01-28 23:17:50 +00008925# config.status only pays attention to the cache file if you give it
8926# the --recheck option to rerun configure.
jjako52c24142002-12-16 13:33:51 +00008927#
jjako286bc982003-01-28 23:17:50 +00008928# `ac_cv_env_foo' variables (set or unset) will be overriden when
8929# loading this file, other *unset* `ac_cv_foo' will be assigned the
8930# following values.
8931
8932_ACEOF
8933
jjako52c24142002-12-16 13:33:51 +00008934# The following way of writing the cache mishandles newlines in values,
8935# but we know of no workaround that is simple, portable, and efficient.
8936# So, don't put newlines in cache variables' values.
8937# Ultrix sh set writes to stderr and can't be redirected directly,
8938# and sets the high bit in the cache file unless we assign to the vars.
jjako286bc982003-01-28 23:17:50 +00008939{
8940 (set) 2>&1 |
8941 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8942 *ac_space=\ *)
8943 # `set' does not quote correctly, so add quotes (double-quote
8944 # substitution turns \\\\ into \\, and sed turns \\ into \).
8945 sed -n \
8946 "s/'/'\\\\''/g;
8947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8948 ;;
8949 *)
8950 # `set' quotes correctly as required by POSIX, so do not add quotes.
8951 sed -n \
8952 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8953 ;;
8954 esac;
8955} |
8956 sed '
8957 t clear
8958 : clear
8959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8960 t end
8961 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8962 : end' >>confcache
8963if cmp -s $cache_file confcache; then :; else
jjako52c24142002-12-16 13:33:51 +00008964 if test -w $cache_file; then
jjako286bc982003-01-28 23:17:50 +00008965 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8966 cat confcache >$cache_file
jjako52c24142002-12-16 13:33:51 +00008967 else
8968 echo "not updating unwritable cache $cache_file"
8969 fi
8970fi
8971rm -f confcache
8972
jjako52c24142002-12-16 13:33:51 +00008973test "x$prefix" = xNONE && prefix=$ac_default_prefix
8974# Let make expand exec_prefix.
8975test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8976
jjako286bc982003-01-28 23:17:50 +00008977# VPATH may cause trouble with some makes, so we remove $(srcdir),
8978# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8979# trailing colons and then remove the whole line if VPATH becomes empty
8980# (actually we leave an empty line to preserve line numbers).
jjako52c24142002-12-16 13:33:51 +00008981if test "x$srcdir" = x.; then
jjako286bc982003-01-28 23:17:50 +00008982 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8983s/:*\$(srcdir):*/:/;
8984s/:*\${srcdir}:*/:/;
8985s/:*@srcdir@:*/:/;
8986s/^\([^=]*=[ ]*\):*/\1/;
8987s/:*$//;
8988s/^[^=]*=[ ]*$//;
8989}'
jjako52c24142002-12-16 13:33:51 +00008990fi
8991
jjako286bc982003-01-28 23:17:50 +00008992DEFS=-DHAVE_CONFIG_H
jjako52c24142002-12-16 13:33:51 +00008993
jjako286bc982003-01-28 23:17:50 +00008994if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8995 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8996Usually this means the macro was only invoked conditionally." >&5
8997echo "$as_me: error: conditional \"AMDEP\" was never defined.
8998Usually this means the macro was only invoked conditionally." >&2;}
8999 { (exit 1); exit 1; }; }
9000fi
jjako52c24142002-12-16 13:33:51 +00009001
jjako52c24142002-12-16 13:33:51 +00009002: ${CONFIG_STATUS=./config.status}
jjako286bc982003-01-28 23:17:50 +00009003ac_clean_files_save=$ac_clean_files
9004ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9005{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9006echo "$as_me: creating $CONFIG_STATUS" >&6;}
9007cat >$CONFIG_STATUS <<_ACEOF
9008#! $SHELL
9009# Generated by $as_me.
jjako52c24142002-12-16 13:33:51 +00009010# Run this file to recreate the current configuration.
jjako52c24142002-12-16 13:33:51 +00009011# Compiler output produced by configure, useful for debugging
jjako286bc982003-01-28 23:17:50 +00009012# configure, is in config.log if it exists.
jjako52c24142002-12-16 13:33:51 +00009013
jjako286bc982003-01-28 23:17:50 +00009014debug=false
9015SHELL=\${CONFIG_SHELL-$SHELL}
9016_ACEOF
jjako52c24142002-12-16 13:33:51 +00009017
jjako286bc982003-01-28 23:17:50 +00009018cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +00009019
jjako286bc982003-01-28 23:17:50 +00009020## --------------------- ##
9021## M4sh Initialization. ##
9022## --------------------- ##
jjako52c24142002-12-16 13:33:51 +00009023
jjako286bc982003-01-28 23:17:50 +00009024# Be Bourne compatible
9025if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9026 emulate sh
9027 NULLCMD=:
9028elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9029 set -o posix
jjako52c24142002-12-16 13:33:51 +00009030fi
jjako52c24142002-12-16 13:33:51 +00009031
jjako286bc982003-01-28 23:17:50 +00009032# NLS nuisances.
9033# Support unset when possible.
9034if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9035 as_unset=unset
9036else
9037 as_unset=false
9038fi
jjako52c24142002-12-16 13:33:51 +00009039
jjako286bc982003-01-28 23:17:50 +00009040(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9041 { $as_unset LANG || test "${LANG+set}" != set; } ||
9042 { LANG=C; export LANG; }
9043(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9044 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9045 { LC_ALL=C; export LC_ALL; }
9046(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9047 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9048 { LC_TIME=C; export LC_TIME; }
9049(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9050 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9051 { LC_CTYPE=C; export LC_CTYPE; }
9052(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9053 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9054 { LANGUAGE=C; export LANGUAGE; }
9055(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9056 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9057 { LC_COLLATE=C; export LC_COLLATE; }
9058(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9059 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9060 { LC_NUMERIC=C; export LC_NUMERIC; }
9061(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9062 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9063 { LC_MESSAGES=C; export LC_MESSAGES; }
9064
9065
9066# Name of the executable.
9067as_me=`(basename "$0") 2>/dev/null ||
9068$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9069 X"$0" : 'X\(//\)$' \| \
9070 X"$0" : 'X\(/\)$' \| \
9071 . : '\(.\)' 2>/dev/null ||
9072echo X/"$0" |
9073 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9074 /^X\/\(\/\/\)$/{ s//\1/; q; }
9075 /^X\/\(\/\).*/{ s//\1/; q; }
9076 s/.*/./; q'`
9077
9078# PATH needs CR, and LINENO needs CR and PATH.
9079# Avoid depending upon Character Ranges.
9080as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9081as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9082as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9083as_cr_digits='0123456789'
9084as_cr_alnum=$as_cr_Letters$as_cr_digits
9085
9086# The user is always right.
9087if test "${PATH_SEPARATOR+set}" != set; then
9088 echo "#! /bin/sh" >conftest.sh
9089 echo "exit 0" >>conftest.sh
9090 chmod +x conftest.sh
9091 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9092 PATH_SEPARATOR=';'
9093 else
9094 PATH_SEPARATOR=:
9095 fi
9096 rm -f conftest.sh
9097fi
9098
9099
9100 as_lineno_1=$LINENO
9101 as_lineno_2=$LINENO
9102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9103 test "x$as_lineno_1" != "x$as_lineno_2" &&
9104 test "x$as_lineno_3" = "x$as_lineno_2" || {
9105 # Find who we are. Look in the path if we contain no path at all
9106 # relative or not.
9107 case $0 in
9108 *[\\/]* ) as_myself=$0 ;;
9109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110for as_dir in $PATH
9111do
9112 IFS=$as_save_IFS
9113 test -z "$as_dir" && as_dir=.
9114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9115done
9116
9117 ;;
9118 esac
9119 # We did not find ourselves, most probably we were run as `sh COMMAND'
9120 # in which case we are not to be found in the path.
9121 if test "x$as_myself" = x; then
9122 as_myself=$0
9123 fi
9124 if test ! -f "$as_myself"; then
9125 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9126echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9127 { (exit 1); exit 1; }; }
9128 fi
9129 case $CONFIG_SHELL in
9130 '')
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9133do
9134 IFS=$as_save_IFS
9135 test -z "$as_dir" && as_dir=.
9136 for as_base in sh bash ksh sh5; do
9137 case $as_dir in
9138 /*)
9139 if ("$as_dir/$as_base" -c '
9140 as_lineno_1=$LINENO
9141 as_lineno_2=$LINENO
9142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9143 test "x$as_lineno_1" != "x$as_lineno_2" &&
9144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9145 CONFIG_SHELL=$as_dir/$as_base
9146 export CONFIG_SHELL
9147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9148 fi;;
9149 esac
9150 done
9151done
9152;;
jjako52c24142002-12-16 13:33:51 +00009153 esac
9154
jjako286bc982003-01-28 23:17:50 +00009155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9156 # uniformly replaced by the line number. The first 'sed' inserts a
9157 # line-number line before each line; the second 'sed' does the real
9158 # work. The second script uses 'N' to pair each line-number line
9159 # with the numbered line, and appends trailing '-' during
9160 # substitution so that $LINENO is not a special case at line end.
9161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9163 sed '=' <$as_myself |
9164 sed '
9165 N
9166 s,$,-,
9167 : loop
9168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9169 t loop
9170 s,-$,,
9171 s,^['$as_cr_digits']*\n,,
9172 ' >$as_me.lineno &&
9173 chmod +x $as_me.lineno ||
9174 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9175echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9176 { (exit 1); exit 1; }; }
jjako52c24142002-12-16 13:33:51 +00009177
jjako286bc982003-01-28 23:17:50 +00009178 # Don't try to exec as it changes $[0], causing all sort of problems
9179 # (the dirname of $[0] is not the place where we might find the
9180 # original and so on. Autoconf is especially sensible to this).
9181 . ./$as_me.lineno
9182 # Exit status is that of the last command.
9183 exit
9184}
9185
9186
9187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9188 *c*,-n*) ECHO_N= ECHO_C='
9189' ECHO_T=' ' ;;
9190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9192esac
9193
9194if expr a : '\(a\)' >/dev/null 2>&1; then
9195 as_expr=expr
9196else
9197 as_expr=false
9198fi
9199
9200rm -f conf$$ conf$$.exe conf$$.file
9201echo >conf$$.file
9202if ln -s conf$$.file conf$$ 2>/dev/null; then
9203 # We could just check for DJGPP; but this test a) works b) is more generic
9204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9205 if test -f conf$$.exe; then
9206 # Don't use ln at all; we don't have any links
9207 as_ln_s='cp -p'
jjako52c24142002-12-16 13:33:51 +00009208 else
jjako286bc982003-01-28 23:17:50 +00009209 as_ln_s='ln -s'
9210 fi
9211elif ln conf$$.file conf$$ 2>/dev/null; then
9212 as_ln_s=ln
9213else
9214 as_ln_s='cp -p'
9215fi
9216rm -f conf$$ conf$$.exe conf$$.file
9217
9218as_executable_p="test -f"
9219
9220# Sed expression to map a string onto a valid CPP name.
9221as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9222
9223# Sed expression to map a string onto a valid variable name.
9224as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9225
9226
9227# IFS
9228# We need space, tab and new line, in precisely that order.
9229as_nl='
9230'
9231IFS=" $as_nl"
9232
9233# CDPATH.
9234$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9235
9236exec 6>&1
9237
9238# Open the log real soon, to keep \$[0] and so on meaningful, and to
9239# report actual input values of CONFIG_FILES etc. instead of their
9240# values after options handling. Logging --version etc. is OK.
9241exec 5>>config.log
9242{
9243 echo
9244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9245## Running $as_me. ##
9246_ASBOX
9247} >&5
9248cat >&5 <<_CSEOF
9249
jjakoa9639f32003-07-07 15:30:11 +00009250This file was extended by openggsn $as_me 0.60, which was
jjako286bc982003-01-28 23:17:50 +00009251generated by GNU Autoconf 2.53. Invocation command line was
9252
9253 CONFIG_FILES = $CONFIG_FILES
9254 CONFIG_HEADERS = $CONFIG_HEADERS
9255 CONFIG_LINKS = $CONFIG_LINKS
9256 CONFIG_COMMANDS = $CONFIG_COMMANDS
9257 $ $0 $@
9258
9259_CSEOF
9260echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9261echo >&5
9262_ACEOF
9263
9264# Files that config.status was made for.
9265if test -n "$ac_config_files"; then
9266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9267fi
9268
9269if test -n "$ac_config_headers"; then
9270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9271fi
9272
9273if test -n "$ac_config_links"; then
9274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9275fi
9276
9277if test -n "$ac_config_commands"; then
9278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9279fi
9280
9281cat >>$CONFIG_STATUS <<\_ACEOF
9282
9283ac_cs_usage="\
9284\`$as_me' instantiates files from templates according to the
9285current configuration.
9286
9287Usage: $0 [OPTIONS] [FILE]...
9288
9289 -h, --help print this help, then exit
9290 -V, --version print version number, then exit
9291 -d, --debug don't remove temporary files
9292 --recheck update $as_me by reconfiguring in the same conditions
9293 --file=FILE[:TEMPLATE]
9294 instantiate the configuration file FILE
9295 --header=FILE[:TEMPLATE]
9296 instantiate the configuration header FILE
9297
9298Configuration files:
9299$config_files
9300
9301Configuration headers:
9302$config_headers
9303
9304Configuration commands:
9305$config_commands
9306
9307Report bugs to <bug-autoconf@gnu.org>."
9308_ACEOF
9309
9310cat >>$CONFIG_STATUS <<_ACEOF
9311ac_cs_version="\\
jjakoa9639f32003-07-07 15:30:11 +00009312openggsn config.status 0.60
jjako286bc982003-01-28 23:17:50 +00009313configured by $0, generated by GNU Autoconf 2.53,
9314 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9315
9316Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9317Free Software Foundation, Inc.
9318This config.status script is free software; the Free Software Foundation
9319gives unlimited permission to copy, distribute and modify it."
9320srcdir=$srcdir
9321INSTALL="$INSTALL"
9322_ACEOF
9323
9324cat >>$CONFIG_STATUS <<\_ACEOF
9325# If no file are specified by the user, then we need to provide default
9326# value. By we need to know if files were specified by the user.
9327ac_need_defaults=:
9328while test $# != 0
9329do
9330 case $1 in
9331 --*=*)
9332 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9333 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9334 shift
9335 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9336 shift
9337 ;;
9338 -*);;
9339 *) # This is not an option, so the user has probably given explicit
9340 # arguments.
9341 ac_need_defaults=false;;
9342 esac
9343
9344 case $1 in
9345 # Handling of the options.
9346_ACEOF
9347cat >>$CONFIG_STATUS <<_ACEOF
9348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9349 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9350 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9351_ACEOF
9352cat >>$CONFIG_STATUS <<\_ACEOF
9353 --version | --vers* | -V )
9354 echo "$ac_cs_version"; exit 0 ;;
9355 --he | --h)
9356 # Conflict between --help and --header
9357 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9358Try \`$0 --help' for more information." >&5
9359echo "$as_me: error: ambiguous option: $1
9360Try \`$0 --help' for more information." >&2;}
9361 { (exit 1); exit 1; }; };;
9362 --help | --hel | -h )
9363 echo "$ac_cs_usage"; exit 0 ;;
9364 --debug | --d* | -d )
9365 debug=: ;;
9366 --file | --fil | --fi | --f )
9367 shift
9368 CONFIG_FILES="$CONFIG_FILES $1"
9369 ac_need_defaults=false;;
9370 --header | --heade | --head | --hea )
9371 shift
9372 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9373 ac_need_defaults=false;;
9374
9375 # This is an error.
9376 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9377Try \`$0 --help' for more information." >&5
9378echo "$as_me: error: unrecognized option: $1
9379Try \`$0 --help' for more information." >&2;}
9380 { (exit 1); exit 1; }; } ;;
9381
9382 *) ac_config_targets="$ac_config_targets $1" ;;
9383
9384 esac
9385 shift
9386done
9387
9388_ACEOF
9389
9390cat >>$CONFIG_STATUS <<_ACEOF
9391#
9392# INIT-COMMANDS section.
9393#
9394
9395AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9396
9397_ACEOF
9398
9399
9400
9401cat >>$CONFIG_STATUS <<\_ACEOF
9402for ac_config_target in $ac_config_targets
9403do
9404 case "$ac_config_target" in
9405 # Handling of arguments.
9406 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9407 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9408 "ggsn/Makefile" ) CONFIG_FILES="$CONFIG_FILES ggsn/Makefile" ;;
9409 "gtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES gtp/Makefile" ;;
9410 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
9411 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
9412 "sgsnemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES sgsnemu/Makefile" ;;
9413 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9414 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
jjakoa9639f32003-07-07 15:30:11 +00009415 "openggsn.spec" ) CONFIG_FILES="$CONFIG_FILES openggsn.spec" ;;
jjako286bc982003-01-28 23:17:50 +00009416 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9417 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9418 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9419echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9420 { (exit 1); exit 1; }; };;
9421 esac
9422done
9423
9424# If the user did not use the arguments to specify the items to instantiate,
9425# then the envvar interface is used. Set only those that are not.
9426# We use the long form for the default assignment because of an extremely
9427# bizarre bug on SunOS 4.1.3.
9428if $ac_need_defaults; then
9429 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9430 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9431 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9432fi
9433
9434# Create a temporary directory, and hook for its removal unless debugging.
9435$debug ||
9436{
9437 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9438 trap '{ (exit 1); exit 1; }' 1 2 13 15
9439}
9440
9441# Create a (secure) tmp directory for tmp files.
9442: ${TMPDIR=/tmp}
9443{
9444 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9445 test -n "$tmp" && test -d "$tmp"
9446} ||
9447{
9448 tmp=$TMPDIR/cs$$-$RANDOM
9449 (umask 077 && mkdir $tmp)
9450} ||
9451{
9452 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9453 { (exit 1); exit 1; }
9454}
9455
9456_ACEOF
9457
9458cat >>$CONFIG_STATUS <<_ACEOF
9459
9460#
9461# CONFIG_FILES section.
9462#
9463
9464# No need to generate the scripts if there are no CONFIG_FILES.
9465# This happens for instance when ./config.status config.h
9466if test -n "\$CONFIG_FILES"; then
9467 # Protect against being on the right side of a sed subst in config.status.
9468 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9469 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9470s,@SHELL@,$SHELL,;t t
9471s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9472s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9473s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9474s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9475s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9476s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9477s,@exec_prefix@,$exec_prefix,;t t
9478s,@prefix@,$prefix,;t t
9479s,@program_transform_name@,$program_transform_name,;t t
9480s,@bindir@,$bindir,;t t
9481s,@sbindir@,$sbindir,;t t
9482s,@libexecdir@,$libexecdir,;t t
9483s,@datadir@,$datadir,;t t
9484s,@sysconfdir@,$sysconfdir,;t t
9485s,@sharedstatedir@,$sharedstatedir,;t t
9486s,@localstatedir@,$localstatedir,;t t
9487s,@libdir@,$libdir,;t t
9488s,@includedir@,$includedir,;t t
9489s,@oldincludedir@,$oldincludedir,;t t
9490s,@infodir@,$infodir,;t t
9491s,@mandir@,$mandir,;t t
9492s,@build_alias@,$build_alias,;t t
9493s,@host_alias@,$host_alias,;t t
9494s,@target_alias@,$target_alias,;t t
9495s,@DEFS@,$DEFS,;t t
9496s,@ECHO_C@,$ECHO_C,;t t
9497s,@ECHO_N@,$ECHO_N,;t t
9498s,@ECHO_T@,$ECHO_T,;t t
9499s,@LIBS@,$LIBS,;t t
9500s,@CC@,$CC,;t t
9501s,@CFLAGS@,$CFLAGS,;t t
9502s,@LDFLAGS@,$LDFLAGS,;t t
9503s,@CPPFLAGS@,$CPPFLAGS,;t t
9504s,@ac_ct_CC@,$ac_ct_CC,;t t
9505s,@EXEEXT@,$EXEEXT,;t t
9506s,@OBJEXT@,$OBJEXT,;t t
9507s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9508s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9509s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9510s,@AWK@,$AWK,;t t
9511s,@CPP@,$CPP,;t t
9512s,@CXX@,$CXX,;t t
9513s,@CXXFLAGS@,$CXXFLAGS,;t t
9514s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9515s,@RANLIB@,$RANLIB,;t t
9516s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9517s,@build@,$build,;t t
9518s,@build_cpu@,$build_cpu,;t t
9519s,@build_vendor@,$build_vendor,;t t
9520s,@build_os@,$build_os,;t t
9521s,@host@,$host,;t t
9522s,@host_cpu@,$host_cpu,;t t
9523s,@host_vendor@,$host_vendor,;t t
9524s,@host_os@,$host_os,;t t
9525s,@LN_S@,$LN_S,;t t
9526s,@ECHO@,$ECHO,;t t
9527s,@STRIP@,$STRIP,;t t
9528s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9529s,@LIBTOOL@,$LIBTOOL,;t t
jjakoa9639f32003-07-07 15:30:11 +00009530s,@EXEC_LDFLAGS@,$EXEC_LDFLAGS,;t t
jjako286bc982003-01-28 23:17:50 +00009531s,@LIBOBJS@,$LIBOBJS,;t t
9532s,@PACKAGE@,$PACKAGE,;t t
9533s,@VERSION@,$VERSION,;t t
9534s,@ACLOCAL@,$ACLOCAL,;t t
9535s,@AUTOCONF@,$AUTOCONF,;t t
9536s,@AUTOMAKE@,$AUTOMAKE,;t t
9537s,@AUTOHEADER@,$AUTOHEADER,;t t
9538s,@MAKEINFO@,$MAKEINFO,;t t
9539s,@AMTAR@,$AMTAR,;t t
9540s,@install_sh@,$install_sh,;t t
9541s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9542s,@SET_MAKE@,$SET_MAKE,;t t
9543s,@DEPDIR@,$DEPDIR,;t t
9544s,@am__include@,$am__include,;t t
9545s,@am__quote@,$am__quote,;t t
9546s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9547s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9548s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9549s,@CCDEPMODE@,$CCDEPMODE,;t t
9550s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9551CEOF
9552
9553_ACEOF
9554
9555 cat >>$CONFIG_STATUS <<\_ACEOF
9556 # Split the substitutions into bite-sized pieces for seds with
9557 # small command number limits, like on Digital OSF/1 and HP-UX.
9558 ac_max_sed_lines=48
9559 ac_sed_frag=1 # Number of current file.
9560 ac_beg=1 # First line for current file.
9561 ac_end=$ac_max_sed_lines # Line after last line for current file.
9562 ac_more_lines=:
9563 ac_sed_cmds=
9564 while $ac_more_lines; do
9565 if test $ac_beg -gt 1; then
9566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9567 else
9568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9569 fi
9570 if test ! -s $tmp/subs.frag; then
9571 ac_more_lines=false
9572 else
9573 # The purpose of the label and of the branching condition is to
9574 # speed up the sed processing (if there are no `@' at all, there
9575 # is no need to browse any of the substitutions).
9576 # These are the two extra sed commands mentioned above.
9577 (echo ':t
9578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9579 if test -z "$ac_sed_cmds"; then
9580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9581 else
9582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9583 fi
9584 ac_sed_frag=`expr $ac_sed_frag + 1`
9585 ac_beg=$ac_end
9586 ac_end=`expr $ac_end + $ac_max_sed_lines`
9587 fi
9588 done
9589 if test -z "$ac_sed_cmds"; then
9590 ac_sed_cmds=cat
9591 fi
9592fi # test -n "$CONFIG_FILES"
9593
9594_ACEOF
9595cat >>$CONFIG_STATUS <<\_ACEOF
9596for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9598 case $ac_file in
9599 - | *:- | *:-:* ) # input from stdin
9600 cat >$tmp/stdin
9601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9605 * ) ac_file_in=$ac_file.in ;;
9606 esac
9607
9608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9611 X"$ac_file" : 'X\(//\)[^/]' \| \
9612 X"$ac_file" : 'X\(//\)$' \| \
9613 X"$ac_file" : 'X\(/\)' \| \
9614 . : '\(.\)' 2>/dev/null ||
9615echo X"$ac_file" |
9616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9618 /^X\(\/\/\)$/{ s//\1/; q; }
9619 /^X\(\/\).*/{ s//\1/; q; }
9620 s/.*/./; q'`
9621 { case "$ac_dir" in
9622 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9623 *) as_incr_dir=.;;
9624esac
9625as_dummy="$ac_dir"
9626for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9627 case $as_mkdir_dir in
9628 # Skip DOS drivespec
9629 ?:) as_incr_dir=$as_mkdir_dir ;;
9630 *)
9631 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9632 test -d "$as_incr_dir" ||
9633 mkdir "$as_incr_dir" ||
9634 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9635echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9636 { (exit 1); exit 1; }; }
9637 ;;
9638 esac
9639done; }
9640
9641 ac_builddir=.
9642
9643if test "$ac_dir" != .; then
9644 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9645 # A "../" for each directory in $ac_dir_suffix.
9646 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9647else
9648 ac_dir_suffix= ac_top_builddir=
9649fi
9650
9651case $srcdir in
9652 .) # No --srcdir option. We are building in place.
9653 ac_srcdir=.
9654 if test -z "$ac_top_builddir"; then
9655 ac_top_srcdir=.
9656 else
9657 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9658 fi ;;
9659 [\\/]* | ?:[\\/]* ) # Absolute path.
9660 ac_srcdir=$srcdir$ac_dir_suffix;
9661 ac_top_srcdir=$srcdir ;;
9662 *) # Relative path.
9663 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9664 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9665esac
9666# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9667# absolute.
9668ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9669ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9670ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9671ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9672
9673
9674 case $INSTALL in
9675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9676 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9677 esac
9678
9679 if test x"$ac_file" != x-; then
9680 { echo "$as_me:$LINENO: creating $ac_file" >&5
9681echo "$as_me: creating $ac_file" >&6;}
9682 rm -f "$ac_file"
9683 fi
9684 # Let's still pretend it is `configure' which instantiates (i.e., don't
9685 # use $as_me), people would be surprised to read:
9686 # /* config.h. Generated by config.status. */
9687 if test x"$ac_file" = x-; then
9688 configure_input=
9689 else
9690 configure_input="$ac_file. "
9691 fi
9692 configure_input=$configure_input"Generated from `echo $ac_file_in |
9693 sed 's,.*/,,'` by configure."
9694
9695 # First look for the input files in the build tree, otherwise in the
9696 # src tree.
9697 ac_file_inputs=`IFS=:
9698 for f in $ac_file_in; do
9699 case $f in
9700 -) echo $tmp/stdin ;;
9701 [\\/$]*)
9702 # Absolute (can't be DOS-style, as IFS=:)
9703 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9704echo "$as_me: error: cannot find input file: $f" >&2;}
9705 { (exit 1); exit 1; }; }
9706 echo $f;;
9707 *) # Relative
9708 if test -f "$f"; then
9709 # Build tree
9710 echo $f
9711 elif test -f "$srcdir/$f"; then
9712 # Source tree
9713 echo $srcdir/$f
9714 else
9715 # /dev/null tree
9716 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9717echo "$as_me: error: cannot find input file: $f" >&2;}
9718 { (exit 1); exit 1; }; }
9719 fi;;
9720 esac
9721 done` || { (exit 1); exit 1; }
9722_ACEOF
9723cat >>$CONFIG_STATUS <<_ACEOF
9724 sed "$ac_vpsub
9725$extrasub
9726_ACEOF
9727cat >>$CONFIG_STATUS <<\_ACEOF
9728:t
9729/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9730s,@configure_input@,$configure_input,;t t
9731s,@srcdir@,$ac_srcdir,;t t
9732s,@abs_srcdir@,$ac_abs_srcdir,;t t
9733s,@top_srcdir@,$ac_top_srcdir,;t t
9734s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9735s,@builddir@,$ac_builddir,;t t
9736s,@abs_builddir@,$ac_abs_builddir,;t t
9737s,@top_builddir@,$ac_top_builddir,;t t
9738s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9739s,@INSTALL@,$ac_INSTALL,;t t
9740" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9741 rm -f $tmp/stdin
9742 if test x"$ac_file" != x-; then
9743 mv $tmp/out $ac_file
9744 else
9745 cat $tmp/out
9746 rm -f $tmp/out
jjako52c24142002-12-16 13:33:51 +00009747 fi
9748
jjako286bc982003-01-28 23:17:50 +00009749done
9750_ACEOF
9751cat >>$CONFIG_STATUS <<\_ACEOF
9752
9753#
9754# CONFIG_HEADER section.
9755#
9756
9757# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9758# NAME is the cpp macro being defined and VALUE is the value it is being given.
9759#
9760# ac_d sets the value in "#define NAME VALUE" lines.
9761ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9762ac_dB='[ ].*$,\1#\2'
9763ac_dC=' '
9764ac_dD=',;t'
9765# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9766ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9767ac_uB='$,\1#\2define\3'
9768ac_uC=' '
9769ac_uD=',;t'
9770
9771for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9772 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9773 case $ac_file in
9774 - | *:- | *:-:* ) # input from stdin
9775 cat >$tmp/stdin
9776 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9778 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9779 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9780 * ) ac_file_in=$ac_file.in ;;
9781 esac
9782
9783 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9784echo "$as_me: creating $ac_file" >&6;}
9785
9786 # First look for the input files in the build tree, otherwise in the
9787 # src tree.
9788 ac_file_inputs=`IFS=:
9789 for f in $ac_file_in; do
9790 case $f in
9791 -) echo $tmp/stdin ;;
9792 [\\/$]*)
9793 # Absolute (can't be DOS-style, as IFS=:)
9794 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9795echo "$as_me: error: cannot find input file: $f" >&2;}
9796 { (exit 1); exit 1; }; }
9797 echo $f;;
9798 *) # Relative
9799 if test -f "$f"; then
9800 # Build tree
9801 echo $f
9802 elif test -f "$srcdir/$f"; then
9803 # Source tree
9804 echo $srcdir/$f
9805 else
9806 # /dev/null tree
9807 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9808echo "$as_me: error: cannot find input file: $f" >&2;}
9809 { (exit 1); exit 1; }; }
9810 fi;;
9811 esac
9812 done` || { (exit 1); exit 1; }
9813 # Remove the trailing spaces.
9814 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9815
9816_ACEOF
9817
9818# Transform confdefs.h into two sed scripts, `conftest.defines' and
9819# `conftest.undefs', that substitutes the proper values into
9820# config.h.in to produce config.h. The first handles `#define'
9821# templates, and the second `#undef' templates.
9822# And first: Protect against being on the right side of a sed subst in
9823# config.status. Protect against being in an unquoted here document
9824# in config.status.
9825rm -f conftest.defines conftest.undefs
9826# Using a here document instead of a string reduces the quoting nightmare.
9827# Putting comments in sed scripts is not portable.
9828#
9829# `end' is used to avoid that the second main sed command (meant for
9830# 0-ary CPP macros) applies to n-ary macro definitions.
9831# See the Autoconf documentation for `clear'.
9832cat >confdef2sed.sed <<\_ACEOF
9833s/[\\&,]/\\&/g
9834s,[\\$`],\\&,g
9835t clear
9836: clear
9837s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9838t end
9839s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9840: end
9841_ACEOF
9842# If some macros were called several times there might be several times
9843# the same #defines, which is useless. Nevertheless, we may not want to
9844# sort them, since we want the *last* AC-DEFINE to be honored.
9845uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9846sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9847rm -f confdef2sed.sed
9848
9849# This sed command replaces #undef with comments. This is necessary, for
9850# example, in the case of _POSIX_SOURCE, which is predefined and required
9851# on some systems where configure will not decide to define it.
9852cat >>conftest.undefs <<\_ACEOF
9853s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9854_ACEOF
9855
9856# Break up conftest.defines because some shells have a limit on the size
9857# of here documents, and old seds have small limits too (100 cmds).
9858echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9859echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9860echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9861echo ' :' >>$CONFIG_STATUS
9862rm -f conftest.tail
9863while grep . conftest.defines >/dev/null
9864do
9865 # Write a limited-size here document to $tmp/defines.sed.
9866 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9867 # Speed up: don't consider the non `#define' lines.
9868 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9869 # Work around the forget-to-reset-the-flag bug.
9870 echo 't clr' >>$CONFIG_STATUS
9871 echo ': clr' >>$CONFIG_STATUS
9872 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9873 echo 'CEOF
9874 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9875 rm -f $tmp/in
9876 mv $tmp/out $tmp/in
9877' >>$CONFIG_STATUS
9878 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9879 rm -f conftest.defines
9880 mv conftest.tail conftest.defines
9881done
9882rm -f conftest.defines
9883echo ' fi # egrep' >>$CONFIG_STATUS
9884echo >>$CONFIG_STATUS
9885
9886# Break up conftest.undefs because some shells have a limit on the size
9887# of here documents, and old seds have small limits too (100 cmds).
9888echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9889rm -f conftest.tail
9890while grep . conftest.undefs >/dev/null
9891do
9892 # Write a limited-size here document to $tmp/undefs.sed.
9893 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9894 # Speed up: don't consider the non `#undef'
9895 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9896 # Work around the forget-to-reset-the-flag bug.
9897 echo 't clr' >>$CONFIG_STATUS
9898 echo ': clr' >>$CONFIG_STATUS
9899 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9900 echo 'CEOF
9901 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9902 rm -f $tmp/in
9903 mv $tmp/out $tmp/in
9904' >>$CONFIG_STATUS
9905 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9906 rm -f conftest.undefs
9907 mv conftest.tail conftest.undefs
9908done
9909rm -f conftest.undefs
9910
9911cat >>$CONFIG_STATUS <<\_ACEOF
9912 # Let's still pretend it is `configure' which instantiates (i.e., don't
9913 # use $as_me), people would be surprised to read:
9914 # /* config.h. Generated by config.status. */
9915 if test x"$ac_file" = x-; then
9916 echo "/* Generated by configure. */" >$tmp/config.h
9917 else
9918 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9919 fi
9920 cat $tmp/in >>$tmp/config.h
9921 rm -f $tmp/in
9922 if test x"$ac_file" != x-; then
9923 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
9924 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9925echo "$as_me: $ac_file is unchanged" >&6;}
9926 else
9927 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9929 X"$ac_file" : 'X\(//\)[^/]' \| \
9930 X"$ac_file" : 'X\(//\)$' \| \
9931 X"$ac_file" : 'X\(/\)' \| \
9932 . : '\(.\)' 2>/dev/null ||
9933echo X"$ac_file" |
9934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9935 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9936 /^X\(\/\/\)$/{ s//\1/; q; }
9937 /^X\(\/\).*/{ s//\1/; q; }
9938 s/.*/./; q'`
9939 { case "$ac_dir" in
9940 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9941 *) as_incr_dir=.;;
9942esac
9943as_dummy="$ac_dir"
9944for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9945 case $as_mkdir_dir in
9946 # Skip DOS drivespec
9947 ?:) as_incr_dir=$as_mkdir_dir ;;
9948 *)
9949 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9950 test -d "$as_incr_dir" ||
9951 mkdir "$as_incr_dir" ||
9952 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9953echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9954 { (exit 1); exit 1; }; }
9955 ;;
9956 esac
9957done; }
9958
9959 rm -f $ac_file
9960 mv $tmp/config.h $ac_file
9961 fi
9962 else
9963 cat $tmp/config.h
9964 rm -f $tmp/config.h
9965 fi
9966 # Run the commands associated with the file.
9967 case $ac_file in
9968 config.h ) # update the timestamp
9969echo 'timestamp for config.h' >"./stamp-h1"
9970 ;;
9971 esac
9972done
9973_ACEOF
9974cat >>$CONFIG_STATUS <<\_ACEOF
9975
9976#
9977# CONFIG_COMMANDS section.
9978#
9979for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9980 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9981 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9982 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9983$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9984 X"$ac_dest" : 'X\(//\)[^/]' \| \
9985 X"$ac_dest" : 'X\(//\)$' \| \
9986 X"$ac_dest" : 'X\(/\)' \| \
9987 . : '\(.\)' 2>/dev/null ||
9988echo X"$ac_dest" |
9989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9991 /^X\(\/\/\)$/{ s//\1/; q; }
9992 /^X\(\/\).*/{ s//\1/; q; }
9993 s/.*/./; q'`
9994 ac_builddir=.
9995
9996if test "$ac_dir" != .; then
9997 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9998 # A "../" for each directory in $ac_dir_suffix.
9999 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10000else
10001 ac_dir_suffix= ac_top_builddir=
10002fi
10003
10004case $srcdir in
10005 .) # No --srcdir option. We are building in place.
10006 ac_srcdir=.
10007 if test -z "$ac_top_builddir"; then
10008 ac_top_srcdir=.
10009 else
10010 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10011 fi ;;
10012 [\\/]* | ?:[\\/]* ) # Absolute path.
10013 ac_srcdir=$srcdir$ac_dir_suffix;
10014 ac_top_srcdir=$srcdir ;;
jjako52c24142002-12-16 13:33:51 +000010015 *) # Relative path.
jjako286bc982003-01-28 23:17:50 +000010016 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10017 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10018esac
10019# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10020# absolute.
10021ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10022ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10023ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10024ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10025
10026
10027 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10028echo "$as_me: executing $ac_dest commands" >&6;}
10029 case $ac_dest in
10030 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10031 # Strip MF so we end up with the name of the file.
10032 mf=`echo "$mf" | sed -e 's/:.*$//'`
10033 # Check whether this is an Automake generated Makefile or not.
10034 # We used to match only the files named `Makefile.in', but
10035 # some people rename them; so instead we look at the file content.
10036 # Grep'ing the first line is not enough: some people post-process
10037 # each Makefile.in and add a new line on top of each file to say so.
10038 # So let's grep whole file.
10039 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10040 dirpart=`(dirname "$mf") 2>/dev/null ||
10041$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10042 X"$mf" : 'X\(//\)[^/]' \| \
10043 X"$mf" : 'X\(//\)$' \| \
10044 X"$mf" : 'X\(/\)' \| \
10045 . : '\(.\)' 2>/dev/null ||
10046echo X"$mf" |
10047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10049 /^X\(\/\/\)$/{ s//\1/; q; }
10050 /^X\(\/\).*/{ s//\1/; q; }
10051 s/.*/./; q'`
10052 else
10053 continue
10054 fi
10055 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10056 # Extract the definition of DEP_FILES from the Makefile without
10057 # running `make'.
10058 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10059 test -z "$DEPDIR" && continue
10060 # When using ansi2knr, U may be empty or an underscore; expand it
10061 U=`sed -n -e '/^U = / s///p' < "$mf"`
10062 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10063 # We invoke sed twice because it is the simplest approach to
10064 # changing $(DEPDIR) to its actual value in the expansion.
10065 for file in `sed -n -e '
10066 /^DEP_FILES = .*\\\\$/ {
10067 s/^DEP_FILES = //
10068 :loop
10069 s/\\\\$//
10070 p
10071 n
10072 /\\\\$/ b loop
10073 p
10074 }
10075 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10076 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10077 # Make sure the directory exists.
10078 test -f "$dirpart/$file" && continue
10079 fdir=`(dirname "$file") 2>/dev/null ||
10080$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10081 X"$file" : 'X\(//\)[^/]' \| \
10082 X"$file" : 'X\(//\)$' \| \
10083 X"$file" : 'X\(/\)' \| \
10084 . : '\(.\)' 2>/dev/null ||
10085echo X"$file" |
10086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10088 /^X\(\/\/\)$/{ s//\1/; q; }
10089 /^X\(\/\).*/{ s//\1/; q; }
10090 s/.*/./; q'`
10091 { case $dirpart/$fdir in
10092 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10093 *) as_incr_dir=.;;
10094esac
10095as_dummy=$dirpart/$fdir
10096for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10097 case $as_mkdir_dir in
10098 # Skip DOS drivespec
10099 ?:) as_incr_dir=$as_mkdir_dir ;;
10100 *)
10101 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10102 test -d "$as_incr_dir" ||
10103 mkdir "$as_incr_dir" ||
10104 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10105echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10106 { (exit 1); exit 1; }; }
10107 ;;
jjako52c24142002-12-16 13:33:51 +000010108 esac
jjako286bc982003-01-28 23:17:50 +000010109done; }
jjako52c24142002-12-16 13:33:51 +000010110
jjako286bc982003-01-28 23:17:50 +000010111 # echo "creating $dirpart/$file"
10112 echo '# dummy' > "$dirpart/$file"
10113 done
10114done
10115 ;;
jjako52c24142002-12-16 13:33:51 +000010116 esac
jjako286bc982003-01-28 23:17:50 +000010117done
10118_ACEOF
jjako52c24142002-12-16 13:33:51 +000010119
jjako286bc982003-01-28 23:17:50 +000010120cat >>$CONFIG_STATUS <<\_ACEOF
jjako52c24142002-12-16 13:33:51 +000010121
jjako286bc982003-01-28 23:17:50 +000010122{ (exit 0); exit 0; }
10123_ACEOF
jjako52c24142002-12-16 13:33:51 +000010124chmod +x $CONFIG_STATUS
jjako286bc982003-01-28 23:17:50 +000010125ac_clean_files=$ac_clean_files_save
10126
10127
10128# configure is writing to config.log, and then calls config.status.
10129# config.status does its own redirection, appending to config.log.
10130# Unfortunately, on DOS this fails, as config.log is still kept open
10131# by configure, so config.status won't be able to write to it; its
10132# output is simply discarded. So we exec the FD to /dev/null,
10133# effectively closing config.log, so it can be properly (re)opened and
10134# appended to by config.status. When coming back to configure, we
10135# need to make the FD available again.
10136if test "$no_create" != yes; then
10137 ac_cs_success=:
10138 exec 5>/dev/null
10139 $SHELL $CONFIG_STATUS || ac_cs_success=false
10140 exec 5>>config.log
10141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10142 # would make configure fail if this is the last instruction.
10143 $ac_cs_success || { (exit 1); exit 1; }
10144fi
jjako52c24142002-12-16 13:33:51 +000010145