Rev 18386 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16015 | bpr | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
18489 | bpr | 3 | # Generated by GNU Autoconf 2.69 for WIMS 4.29b. |
16015 | bpr | 4 | # |
5 | # Report bugs to <wimsdev@groupes.renater.fr>. |
||
6 | # |
||
7 | # |
||
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
||
9 | # |
||
10 | # |
||
11 | # This configure script is free software; the Free Software Foundation |
||
12 | # gives unlimited permission to copy, distribute and modify it. |
||
13 | ## -------------------- ## |
||
14 | ## M4sh Initialization. ## |
||
15 | ## -------------------- ## |
||
16 | |||
17 | # Be more Bourne compatible |
||
18 | DUALCASE=1; export DUALCASE # for MKS sh |
||
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
20 | emulate sh |
||
21 | NULLCMD=: |
||
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
23 | # is contrary to our usage. Disable this feature. |
||
24 | alias -g '${1+"$@"}'='"$@"' |
||
25 | setopt NO_GLOB_SUBST |
||
26 | else |
||
27 | case `(set -o) 2>/dev/null` in #( |
||
28 | *posix*) : |
||
29 | set -o posix ;; #( |
||
30 | *) : |
||
31 | ;; |
||
32 | esac |
||
33 | fi |
||
34 | |||
35 | |||
36 | as_nl=' |
||
37 | ' |
||
38 | export as_nl |
||
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
44 | # but without wasting forks for bash or zsh. |
||
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
47 | as_echo='print -r --' |
||
48 | as_echo_n='print -rn --' |
||
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
50 | as_echo='printf %s\n' |
||
51 | as_echo_n='printf %s' |
||
52 | else |
||
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
55 | as_echo_n='/usr/ucb/echo -n' |
||
56 | else |
||
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
58 | as_echo_n_body='eval |
||
59 | arg=$1; |
||
60 | case $arg in #( |
||
61 | *"$as_nl"*) |
||
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
64 | esac; |
||
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
66 | ' |
||
67 | export as_echo_n_body |
||
68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
69 | fi |
||
70 | export as_echo_body |
||
71 | as_echo='sh -c $as_echo_body as_echo' |
||
72 | fi |
||
73 | |||
74 | # The user is always right. |
||
75 | if test "${PATH_SEPARATOR+set}" != set; then |
||
76 | PATH_SEPARATOR=: |
||
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
79 | PATH_SEPARATOR=';' |
||
80 | } |
||
81 | fi |
||
82 | |||
83 | |||
84 | # IFS |
||
85 | # We need space, tab and new line, in precisely that order. Quoting is |
||
86 | # there to prevent editors from complaining about space-tab. |
||
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
88 | # splitting by setting IFS to empty value.) |
||
89 | IFS=" "" $as_nl" |
||
90 | |||
91 | # Find who we are. Look in the path if we contain no directory separator. |
||
92 | as_myself= |
||
93 | case $0 in #(( |
||
94 | *[\\/]* ) as_myself=$0 ;; |
||
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
96 | for as_dir in $PATH |
||
97 | do |
||
98 | IFS=$as_save_IFS |
||
99 | test -z "$as_dir" && as_dir=. |
||
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
101 | done |
||
102 | IFS=$as_save_IFS |
||
103 | |||
104 | ;; |
||
105 | esac |
||
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
107 | # in which case we are not to be found in the path. |
||
108 | if test "x$as_myself" = x; then |
||
109 | as_myself=$0 |
||
110 | fi |
||
111 | if test ! -f "$as_myself"; then |
||
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
113 | exit 1 |
||
114 | fi |
||
115 | |||
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
118 | # suppresses any "Segmentation fault" message there. '((' could |
||
119 | # trigger a bug in pdksh 5.2.14. |
||
120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
121 | do eval test x\${$as_var+set} = xset \ |
||
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
123 | done |
||
124 | PS1='$ ' |
||
125 | PS2='> ' |
||
126 | PS4='+ ' |
||
127 | |||
128 | # NLS nuisances. |
||
129 | LC_ALL=C |
||
130 | export LC_ALL |
||
131 | LANGUAGE=C |
||
132 | export LANGUAGE |
||
133 | |||
134 | # CDPATH. |
||
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
136 | |||
137 | # Use a proper internal environment variable to ensure we don't fall |
||
138 | # into an infinite loop, continuously re-executing ourselves. |
||
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
||
140 | _as_can_reexec=no; export _as_can_reexec; |
||
141 | # We cannot yet assume a decent shell, so we have to provide a |
||
142 | # neutralization value for shells without unset; and this also |
||
143 | # works around shells that cannot unset nonexistent variables. |
||
144 | # Preserve -v and -x to the replacement shell. |
||
145 | BASH_ENV=/dev/null |
||
146 | ENV=/dev/null |
||
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
||
148 | case $- in # (((( |
||
149 | *v*x* | *x*v* ) as_opts=-vx ;; |
||
150 | *v* ) as_opts=-v ;; |
||
151 | *x* ) as_opts=-x ;; |
||
152 | * ) as_opts= ;; |
||
153 | esac |
||
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
||
155 | # Admittedly, this is quite paranoid, since all the known shells bail |
||
156 | # out after a failed `exec'. |
||
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
||
158 | as_fn_exit 255 |
||
159 | fi |
||
160 | # We don't want this to propagate to other subprocesses. |
||
161 | { _as_can_reexec=; unset _as_can_reexec;} |
||
162 | if test "x$CONFIG_SHELL" = x; then |
||
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
||
164 | emulate sh |
||
165 | NULLCMD=: |
||
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
||
167 | # is contrary to our usage. Disable this feature. |
||
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
||
169 | setopt NO_GLOB_SUBST |
||
170 | else |
||
171 | case \`(set -o) 2>/dev/null\` in #( |
||
172 | *posix*) : |
||
173 | set -o posix ;; #( |
||
174 | *) : |
||
175 | ;; |
||
176 | esac |
||
177 | fi |
||
178 | " |
||
179 | as_required="as_fn_return () { (exit \$1); } |
||
180 | as_fn_success () { as_fn_return 0; } |
||
181 | as_fn_failure () { as_fn_return 1; } |
||
182 | as_fn_ret_success () { return 0; } |
||
183 | as_fn_ret_failure () { return 1; } |
||
184 | |||
185 | exitcode=0 |
||
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
||
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
||
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
||
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
||
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
||
191 | |||
192 | else |
||
193 | exitcode=1; echo positional parameters were not saved. |
||
194 | fi |
||
195 | test x\$exitcode = x0 || exit 1 |
||
196 | test -x / || exit 1" |
||
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
||
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
||
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
||
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
||
201 | test \$(( 1 + 1 )) = 2 || exit 1" |
||
202 | if (eval "$as_required") 2>/dev/null; then : |
||
203 | as_have_required=yes |
||
204 | else |
||
205 | as_have_required=no |
||
206 | fi |
||
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
||
208 | |||
209 | else |
||
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
211 | as_found=false |
||
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
213 | do |
||
214 | IFS=$as_save_IFS |
||
215 | test -z "$as_dir" && as_dir=. |
||
216 | as_found=: |
||
217 | case $as_dir in #( |
||
218 | /*) |
||
219 | for as_base in sh bash ksh sh5; do |
||
220 | # Try only shells that exist, to save several forks. |
||
221 | as_shell=$as_dir/$as_base |
||
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
||
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
||
224 | CONFIG_SHELL=$as_shell as_have_required=yes |
||
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
||
226 | break 2 |
||
227 | fi |
||
228 | fi |
||
229 | done;; |
||
230 | esac |
||
231 | as_found=false |
||
232 | done |
||
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
||
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
||
235 | CONFIG_SHELL=$SHELL as_have_required=yes |
||
236 | fi; } |
||
237 | IFS=$as_save_IFS |
||
238 | |||
239 | |||
240 | if test "x$CONFIG_SHELL" != x; then : |
||
241 | export CONFIG_SHELL |
||
242 | # We cannot yet assume a decent shell, so we have to provide a |
||
243 | # neutralization value for shells without unset; and this also |
||
244 | # works around shells that cannot unset nonexistent variables. |
||
245 | # Preserve -v and -x to the replacement shell. |
||
246 | BASH_ENV=/dev/null |
||
247 | ENV=/dev/null |
||
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
||
249 | case $- in # (((( |
||
250 | *v*x* | *x*v* ) as_opts=-vx ;; |
||
251 | *v* ) as_opts=-v ;; |
||
252 | *x* ) as_opts=-x ;; |
||
253 | * ) as_opts= ;; |
||
254 | esac |
||
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
||
256 | # Admittedly, this is quite paranoid, since all the known shells bail |
||
257 | # out after a failed `exec'. |
||
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
||
259 | exit 255 |
||
260 | fi |
||
261 | |||
262 | if test x$as_have_required = xno; then : |
||
263 | $as_echo "$0: This script requires a shell more modern than all" |
||
264 | $as_echo "$0: the shells that I found on your system." |
||
265 | if test x${ZSH_VERSION+set} = xset ; then |
||
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
||
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
||
268 | else |
||
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
||
270 | $0: wimsdev@groupes.renater.fr about your system, including |
||
271 | $0: any error possibly output before this message. Then |
||
272 | $0: install a modern shell, or manually run the script |
||
273 | $0: under such a shell if you do have one." |
||
274 | fi |
||
275 | exit 1 |
||
276 | fi |
||
277 | fi |
||
278 | fi |
||
279 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
280 | export SHELL |
||
281 | # Unset more variables known to interfere with behavior of common tools. |
||
282 | CLICOLOR_FORCE= GREP_OPTIONS= |
||
283 | unset CLICOLOR_FORCE GREP_OPTIONS |
||
284 | |||
285 | ## --------------------- ## |
||
286 | ## M4sh Shell Functions. ## |
||
287 | ## --------------------- ## |
||
288 | # as_fn_unset VAR |
||
289 | # --------------- |
||
290 | # Portably unset VAR. |
||
291 | as_fn_unset () |
||
292 | { |
||
293 | { eval $1=; unset $1;} |
||
294 | } |
||
295 | as_unset=as_fn_unset |
||
296 | |||
297 | # as_fn_set_status STATUS |
||
298 | # ----------------------- |
||
299 | # Set $? to STATUS, without forking. |
||
300 | as_fn_set_status () |
||
301 | { |
||
302 | return $1 |
||
303 | } # as_fn_set_status |
||
304 | |||
305 | # as_fn_exit STATUS |
||
306 | # ----------------- |
||
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
308 | as_fn_exit () |
||
309 | { |
||
310 | set +e |
||
311 | as_fn_set_status $1 |
||
312 | exit $1 |
||
313 | } # as_fn_exit |
||
314 | |||
315 | # as_fn_mkdir_p |
||
316 | # ------------- |
||
317 | # Create "$as_dir" as a directory, including parents if necessary. |
||
318 | as_fn_mkdir_p () |
||
319 | { |
||
320 | |||
321 | case $as_dir in #( |
||
322 | -*) as_dir=./$as_dir;; |
||
323 | esac |
||
324 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
325 | as_dirs= |
||
326 | while :; do |
||
327 | case $as_dir in #( |
||
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
329 | *) as_qdir=$as_dir;; |
||
330 | esac |
||
331 | as_dirs="'$as_qdir' $as_dirs" |
||
332 | as_dir=`$as_dirname -- "$as_dir" || |
||
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
335 | X"$as_dir" : 'X\(//\)$' \| \ |
||
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
337 | $as_echo X"$as_dir" | |
||
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
339 | s//\1/ |
||
340 | q |
||
341 | } |
||
342 | /^X\(\/\/\)[^/].*/{ |
||
343 | s//\1/ |
||
344 | q |
||
345 | } |
||
346 | /^X\(\/\/\)$/{ |
||
347 | s//\1/ |
||
348 | q |
||
349 | } |
||
350 | /^X\(\/\).*/{ |
||
351 | s//\1/ |
||
352 | q |
||
353 | } |
||
354 | s/.*/./; q'` |
||
355 | test -d "$as_dir" && break |
||
356 | done |
||
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
359 | |||
360 | |||
361 | } # as_fn_mkdir_p |
||
362 | |||
363 | # as_fn_executable_p FILE |
||
364 | # ----------------------- |
||
365 | # Test if FILE is an executable regular file. |
||
366 | as_fn_executable_p () |
||
367 | { |
||
368 | test -f "$1" && test -x "$1" |
||
369 | } # as_fn_executable_p |
||
370 | # as_fn_append VAR VALUE |
||
371 | # ---------------------- |
||
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
373 | # advantage of any shell optimizations that allow amortized linear growth over |
||
374 | # repeated appends, instead of the typical quadratic growth present in naive |
||
375 | # implementations. |
||
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
377 | eval 'as_fn_append () |
||
378 | { |
||
379 | eval $1+=\$2 |
||
380 | }' |
||
381 | else |
||
382 | as_fn_append () |
||
383 | { |
||
384 | eval $1=\$$1\$2 |
||
385 | } |
||
386 | fi # as_fn_append |
||
387 | |||
388 | # as_fn_arith ARG... |
||
389 | # ------------------ |
||
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
392 | # must be portable across $(()) and expr. |
||
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
394 | eval 'as_fn_arith () |
||
395 | { |
||
396 | as_val=$(( $* )) |
||
397 | }' |
||
398 | else |
||
399 | as_fn_arith () |
||
400 | { |
||
401 | as_val=`expr "$@" || test $? -eq 1` |
||
402 | } |
||
403 | fi # as_fn_arith |
||
404 | |||
405 | |||
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
407 | # ---------------------------------------- |
||
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
410 | # script with STATUS, using 1 if that was 0. |
||
411 | as_fn_error () |
||
412 | { |
||
413 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
414 | if test "$4"; then |
||
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
417 | fi |
||
418 | $as_echo "$as_me: error: $2" >&2 |
||
419 | as_fn_exit $as_status |
||
420 | } # as_fn_error |
||
421 | |||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
424 | as_expr=expr |
||
425 | else |
||
426 | as_expr=false |
||
427 | fi |
||
428 | |||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
430 | as_basename=basename |
||
431 | else |
||
432 | as_basename=false |
||
433 | fi |
||
434 | |||
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
436 | as_dirname=dirname |
||
437 | else |
||
438 | as_dirname=false |
||
439 | fi |
||
440 | |||
441 | as_me=`$as_basename -- "$0" || |
||
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
443 | X"$0" : 'X\(//\)$' \| \ |
||
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
445 | $as_echo X/"$0" | |
||
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
447 | s//\1/ |
||
448 | q |
||
449 | } |
||
450 | /^X\/\(\/\/\)$/{ |
||
451 | s//\1/ |
||
452 | q |
||
453 | } |
||
454 | /^X\/\(\/\).*/{ |
||
455 | s//\1/ |
||
456 | q |
||
457 | } |
||
458 | s/.*/./; q'` |
||
459 | |||
460 | # Avoid depending upon Character Ranges. |
||
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
464 | as_cr_digits='0123456789' |
||
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
466 | |||
467 | |||
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
||
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
||
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
||
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
||
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
||
473 | sed -n ' |
||
474 | p |
||
475 | /[$]LINENO/= |
||
476 | ' <$as_myself | |
||
477 | sed ' |
||
478 | s/[$]LINENO.*/&-/ |
||
479 | t lineno |
||
480 | b |
||
481 | :lineno |
||
482 | N |
||
483 | :loop |
||
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
||
485 | t loop |
||
486 | s/-\n.*// |
||
487 | ' >$as_me.lineno && |
||
488 | chmod +x "$as_me.lineno" || |
||
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
||
490 | |||
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
||
492 | # already done that, so ensure we don't try to do so again and fall |
||
493 | # in an infinite loop. This has already happened in practice. |
||
494 | _as_can_reexec=no; export _as_can_reexec |
||
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
496 | # (the dirname of $[0] is not the place where we might find the |
||
497 | # original and so on. Autoconf is especially sensitive to this). |
||
498 | . "./$as_me.lineno" |
||
499 | # Exit status is that of the last command. |
||
500 | exit |
||
501 | } |
||
502 | |||
503 | ECHO_C= ECHO_N= ECHO_T= |
||
504 | case `echo -n x` in #((((( |
||
505 | -n*) |
||
506 | case `echo 'xy\c'` in |
||
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
508 | xy) ECHO_C='\c';; |
||
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
510 | ECHO_T=' ';; |
||
511 | esac;; |
||
512 | *) |
||
513 | ECHO_N='-n';; |
||
514 | esac |
||
515 | |||
516 | rm -f conf$$ conf$$.exe conf$$.file |
||
517 | if test -d conf$$.dir; then |
||
518 | rm -f conf$$.dir/conf$$.file |
||
519 | else |
||
520 | rm -f conf$$.dir |
||
521 | mkdir conf$$.dir 2>/dev/null |
||
522 | fi |
||
523 | if (echo >conf$$.file) 2>/dev/null; then |
||
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
525 | as_ln_s='ln -s' |
||
526 | # ... but there are two gotchas: |
||
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
529 | # In both cases, we have to default to `cp -pR'. |
||
530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
531 | as_ln_s='cp -pR' |
||
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
533 | as_ln_s=ln |
||
534 | else |
||
535 | as_ln_s='cp -pR' |
||
536 | fi |
||
537 | else |
||
538 | as_ln_s='cp -pR' |
||
539 | fi |
||
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
541 | rmdir conf$$.dir 2>/dev/null |
||
542 | |||
543 | if mkdir -p . 2>/dev/null; then |
||
544 | as_mkdir_p='mkdir -p "$as_dir"' |
||
545 | else |
||
546 | test -d ./-p && rmdir ./-p |
||
547 | as_mkdir_p=false |
||
548 | fi |
||
549 | |||
550 | as_test_x='test -x' |
||
551 | as_executable_p=as_fn_executable_p |
||
552 | |||
553 | # Sed expression to map a string onto a valid CPP name. |
||
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
555 | |||
556 | # Sed expression to map a string onto a valid variable name. |
||
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
558 | |||
559 | |||
560 | test -n "$DJDIR" || exec 7<&0 </dev/null |
||
561 | exec 6>&1 |
||
562 | |||
563 | # Name of the host. |
||
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
||
565 | # so uname gets run too. |
||
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
567 | |||
568 | # |
||
569 | # Initializations. |
||
570 | # |
||
571 | ac_default_prefix=/usr/local |
||
572 | ac_clean_files= |
||
573 | ac_config_libobj_dir=. |
||
574 | LIBOBJS= |
||
575 | cross_compiling=no |
||
576 | subdirs= |
||
577 | MFLAGS= |
||
578 | MAKEFLAGS= |
||
579 | |||
580 | # Identity of this package. |
||
581 | PACKAGE_NAME='WIMS' |
||
582 | PACKAGE_TARNAME='wims' |
||
18489 | bpr | 583 | PACKAGE_VERSION='4.29b' |
584 | PACKAGE_STRING='WIMS 4.29b' |
||
16015 | bpr | 585 | PACKAGE_BUGREPORT='wimsdev@groupes.renater.fr' |
586 | PACKAGE_URL='' |
||
587 | |||
588 | ac_unique_file="wims.c" |
||
589 | # Factoring default headers for most tests. |
||
590 | ac_includes_default="\ |
||
591 | #include <stdio.h> |
||
592 | #ifdef HAVE_SYS_TYPES_H |
||
593 | # include <sys/types.h> |
||
594 | #endif |
||
595 | #ifdef HAVE_SYS_STAT_H |
||
596 | # include <sys/stat.h> |
||
597 | #endif |
||
598 | #ifdef STDC_HEADERS |
||
599 | # include <stdlib.h> |
||
600 | # include <stddef.h> |
||
601 | #else |
||
602 | # ifdef HAVE_STDLIB_H |
||
603 | # include <stdlib.h> |
||
604 | # endif |
||
605 | #endif |
||
606 | #ifdef HAVE_STRING_H |
||
607 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
||
608 | # include <memory.h> |
||
609 | # endif |
||
610 | # include <string.h> |
||
611 | #endif |
||
612 | #ifdef HAVE_STRINGS_H |
||
613 | # include <strings.h> |
||
614 | #endif |
||
615 | #ifdef HAVE_INTTYPES_H |
||
616 | # include <inttypes.h> |
||
617 | #endif |
||
618 | #ifdef HAVE_STDINT_H |
||
619 | # include <stdint.h> |
||
620 | #endif |
||
621 | #ifdef HAVE_UNISTD_H |
||
622 | # include <unistd.h> |
||
623 | #endif" |
||
624 | |||
625 | ac_subst_vars='LTLIBOBJS |
||
626 | CRYPTLIB |
||
627 | GDLIB |
||
628 | FLEXLIB |
||
629 | NETLIBS |
||
630 | ALLSETENV_OBJS |
||
631 | SETENV_OBJS |
||
632 | BUILD_WIMSD |
||
633 | BUILD_CHEMEQ |
||
634 | BUILD_UNITS |
||
635 | RPATH |
||
636 | DEFINES |
||
637 | STATIC_LIB |
||
638 | D_CASE_INSENSITIVE_FS |
||
639 | POW_LIB |
||
640 | LIBOBJS |
||
641 | ALLOCA |
||
642 | EGREP |
||
643 | GREP |
||
644 | STRIP |
||
645 | RANLIB |
||
646 | SET_MAKE |
||
647 | LEXLIB |
||
648 | LEX_OUTPUT_ROOT |
||
649 | LEX |
||
650 | CPP |
||
651 | ac_ct_CXX |
||
652 | CXXFLAGS |
||
653 | CXX |
||
654 | OBJEXT |
||
655 | EXEEXT |
||
656 | ac_ct_CC |
||
657 | CPPFLAGS |
||
658 | LDFLAGS |
||
659 | CFLAGS |
||
660 | CC |
||
661 | YFLAGS |
||
662 | YACC |
||
663 | AWK |
||
664 | LN_S |
||
665 | target_alias |
||
666 | host_alias |
||
667 | build_alias |
||
668 | LIBS |
||
669 | ECHO_T |
||
670 | ECHO_N |
||
671 | ECHO_C |
||
672 | DEFS |
||
673 | mandir |
||
674 | localedir |
||
675 | libdir |
||
676 | psdir |
||
677 | pdfdir |
||
678 | dvidir |
||
679 | htmldir |
||
680 | infodir |
||
681 | docdir |
||
682 | oldincludedir |
||
683 | includedir |
||
684 | localstatedir |
||
685 | sharedstatedir |
||
686 | sysconfdir |
||
687 | datadir |
||
688 | datarootdir |
||
689 | libexecdir |
||
690 | sbindir |
||
691 | bindir |
||
692 | program_transform_name |
||
693 | prefix |
||
694 | exec_prefix |
||
695 | PACKAGE_URL |
||
696 | PACKAGE_BUGREPORT |
||
697 | PACKAGE_STRING |
||
698 | PACKAGE_VERSION |
||
699 | PACKAGE_TARNAME |
||
700 | PACKAGE_NAME |
||
701 | PATH_SEPARATOR |
||
702 | SHELL' |
||
703 | ac_subst_files='' |
||
704 | ac_user_opts=' |
||
705 | enable_option_checking |
||
706 | with_units |
||
707 | with_chemeq |
||
708 | with_wimsd |
||
709 | ' |
||
710 | ac_precious_vars='build_alias |
||
711 | host_alias |
||
712 | target_alias |
||
713 | YACC |
||
714 | YFLAGS |
||
715 | CC |
||
716 | CFLAGS |
||
717 | LDFLAGS |
||
718 | LIBS |
||
719 | CPPFLAGS |
||
720 | CXX |
||
721 | CXXFLAGS |
||
722 | CCC |
||
723 | CPP' |
||
724 | |||
725 | |||
726 | # Initialize some variables set by options. |
||
727 | ac_init_help= |
||
728 | ac_init_version=false |
||
729 | ac_unrecognized_opts= |
||
730 | ac_unrecognized_sep= |
||
731 | # The variables have the same names as the options, with |
||
732 | # dashes changed to underlines. |
||
733 | cache_file=/dev/null |
||
734 | exec_prefix=NONE |
||
735 | no_create= |
||
736 | no_recursion= |
||
737 | prefix=NONE |
||
738 | program_prefix=NONE |
||
739 | program_suffix=NONE |
||
740 | program_transform_name=s,x,x, |
||
741 | silent= |
||
742 | site= |
||
743 | srcdir= |
||
744 | verbose= |
||
745 | x_includes=NONE |
||
746 | x_libraries=NONE |
||
747 | |||
748 | # Installation directory options. |
||
749 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
750 | # and all the variables that are supposed to be based on exec_prefix |
||
751 | # by default will actually change. |
||
752 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
753 | # (The list follows the same order as the GNU Coding Standards.) |
||
754 | bindir='${exec_prefix}/bin' |
||
755 | sbindir='${exec_prefix}/sbin' |
||
756 | libexecdir='${exec_prefix}/libexec' |
||
757 | datarootdir='${prefix}/share' |
||
758 | datadir='${datarootdir}' |
||
759 | sysconfdir='${prefix}/etc' |
||
760 | sharedstatedir='${prefix}/com' |
||
761 | localstatedir='${prefix}/var' |
||
762 | includedir='${prefix}/include' |
||
763 | oldincludedir='/usr/include' |
||
764 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
||
765 | infodir='${datarootdir}/info' |
||
766 | htmldir='${docdir}' |
||
767 | dvidir='${docdir}' |
||
768 | pdfdir='${docdir}' |
||
769 | psdir='${docdir}' |
||
770 | libdir='${exec_prefix}/lib' |
||
771 | localedir='${datarootdir}/locale' |
||
772 | mandir='${datarootdir}/man' |
||
773 | |||
774 | ac_prev= |
||
775 | ac_dashdash= |
||
776 | for ac_option |
||
777 | do |
||
778 | # If the previous option needs an argument, assign it. |
||
779 | if test -n "$ac_prev"; then |
||
780 | eval $ac_prev=\$ac_option |
||
781 | ac_prev= |
||
782 | continue |
||
783 | fi |
||
784 | |||
785 | case $ac_option in |
||
786 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
||
787 | *=) ac_optarg= ;; |
||
788 | *) ac_optarg=yes ;; |
||
789 | esac |
||
790 | |||
791 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
792 | |||
793 | case $ac_dashdash$ac_option in |
||
794 | --) |
||
795 | ac_dashdash=yes ;; |
||
796 | |||
797 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
798 | ac_prev=bindir ;; |
||
799 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
800 | bindir=$ac_optarg ;; |
||
801 | |||
802 | -build | --build | --buil | --bui | --bu) |
||
803 | ac_prev=build_alias ;; |
||
804 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
805 | build_alias=$ac_optarg ;; |
||
806 | |||
807 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
808 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
809 | ac_prev=cache_file ;; |
||
810 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
811 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
812 | cache_file=$ac_optarg ;; |
||
813 | |||
814 | --config-cache | -C) |
||
815 | cache_file=config.cache ;; |
||
816 | |||
817 | -datadir | --datadir | --datadi | --datad) |
||
818 | ac_prev=datadir ;; |
||
819 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
||
820 | datadir=$ac_optarg ;; |
||
821 | |||
822 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
||
823 | | --dataroo | --dataro | --datar) |
||
824 | ac_prev=datarootdir ;; |
||
825 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
||
826 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
||
827 | datarootdir=$ac_optarg ;; |
||
828 | |||
829 | -disable-* | --disable-*) |
||
830 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
831 | # Reject names that are not valid shell variable names. |
||
832 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
833 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
834 | ac_useropt_orig=$ac_useropt |
||
835 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
836 | case $ac_user_opts in |
||
837 | *" |
||
838 | "enable_$ac_useropt" |
||
839 | "*) ;; |
||
840 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
||
841 | ac_unrecognized_sep=', ';; |
||
842 | esac |
||
843 | eval enable_$ac_useropt=no ;; |
||
844 | |||
845 | -docdir | --docdir | --docdi | --doc | --do) |
||
846 | ac_prev=docdir ;; |
||
847 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
||
848 | docdir=$ac_optarg ;; |
||
849 | |||
850 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
||
851 | ac_prev=dvidir ;; |
||
852 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
||
853 | dvidir=$ac_optarg ;; |
||
854 | |||
855 | -enable-* | --enable-*) |
||
856 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
857 | # Reject names that are not valid shell variable names. |
||
858 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
859 | as_fn_error $? "invalid feature name: $ac_useropt" |
||
860 | ac_useropt_orig=$ac_useropt |
||
861 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
862 | case $ac_user_opts in |
||
863 | *" |
||
864 | "enable_$ac_useropt" |
||
865 | "*) ;; |
||
866 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
||
867 | ac_unrecognized_sep=', ';; |
||
868 | esac |
||
869 | eval enable_$ac_useropt=\$ac_optarg ;; |
||
870 | |||
871 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
872 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
873 | | --exec | --exe | --ex) |
||
874 | ac_prev=exec_prefix ;; |
||
875 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
876 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
877 | | --exec=* | --exe=* | --ex=*) |
||
878 | exec_prefix=$ac_optarg ;; |
||
879 | |||
880 | -gas | --gas | --ga | --g) |
||
881 | # Obsolete; use --with-gas. |
||
882 | with_gas=yes ;; |
||
883 | |||
884 | -help | --help | --hel | --he | -h) |
||
885 | ac_init_help=long ;; |
||
886 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
887 | ac_init_help=recursive ;; |
||
888 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
889 | ac_init_help=short ;; |
||
890 | |||
891 | -host | --host | --hos | --ho) |
||
892 | ac_prev=host_alias ;; |
||
893 | -host=* | --host=* | --hos=* | --ho=*) |
||
894 | host_alias=$ac_optarg ;; |
||
895 | |||
896 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
||
897 | ac_prev=htmldir ;; |
||
898 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
||
899 | | --ht=*) |
||
900 | htmldir=$ac_optarg ;; |
||
901 | |||
902 | -includedir | --includedir | --includedi | --included | --include \ |
||
903 | | --includ | --inclu | --incl | --inc) |
||
904 | ac_prev=includedir ;; |
||
905 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
906 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
907 | includedir=$ac_optarg ;; |
||
908 | |||
909 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
910 | ac_prev=infodir ;; |
||
911 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
912 | infodir=$ac_optarg ;; |
||
913 | |||
914 | -libdir | --libdir | --libdi | --libd) |
||
915 | ac_prev=libdir ;; |
||
916 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
917 | libdir=$ac_optarg ;; |
||
918 | |||
919 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
920 | | --libexe | --libex | --libe) |
||
921 | ac_prev=libexecdir ;; |
||
922 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
923 | | --libexe=* | --libex=* | --libe=*) |
||
924 | libexecdir=$ac_optarg ;; |
||
925 | |||
926 | -localedir | --localedir | --localedi | --localed | --locale) |
||
927 | ac_prev=localedir ;; |
||
928 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
||
929 | localedir=$ac_optarg ;; |
||
930 | |||
931 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
932 | | --localstate | --localstat | --localsta | --localst | --locals) |
||
933 | ac_prev=localstatedir ;; |
||
934 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
935 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
||
936 | localstatedir=$ac_optarg ;; |
||
937 | |||
938 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
939 | ac_prev=mandir ;; |
||
940 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
941 | mandir=$ac_optarg ;; |
||
942 | |||
943 | -nfp | --nfp | --nf) |
||
944 | # Obsolete; use --without-fp. |
||
945 | with_fp=no ;; |
||
946 | |||
947 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
948 | | --no-cr | --no-c | -n) |
||
949 | no_create=yes ;; |
||
950 | |||
951 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
952 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
953 | no_recursion=yes ;; |
||
954 | |||
955 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
956 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
957 | | --oldin | --oldi | --old | --ol | --o) |
||
958 | ac_prev=oldincludedir ;; |
||
959 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
960 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
961 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
962 | oldincludedir=$ac_optarg ;; |
||
963 | |||
964 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
965 | ac_prev=prefix ;; |
||
966 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
967 | prefix=$ac_optarg ;; |
||
968 | |||
969 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
970 | | --program-pre | --program-pr | --program-p) |
||
971 | ac_prev=program_prefix ;; |
||
972 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
973 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
974 | program_prefix=$ac_optarg ;; |
||
975 | |||
976 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
977 | | --program-suf | --program-su | --program-s) |
||
978 | ac_prev=program_suffix ;; |
||
979 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
980 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
981 | program_suffix=$ac_optarg ;; |
||
982 | |||
983 | -program-transform-name | --program-transform-name \ |
||
984 | | --program-transform-nam | --program-transform-na \ |
||
985 | | --program-transform-n | --program-transform- \ |
||
986 | | --program-transform | --program-transfor \ |
||
987 | | --program-transfo | --program-transf \ |
||
988 | | --program-trans | --program-tran \ |
||
989 | | --progr-tra | --program-tr | --program-t) |
||
990 | ac_prev=program_transform_name ;; |
||
991 | -program-transform-name=* | --program-transform-name=* \ |
||
992 | | --program-transform-nam=* | --program-transform-na=* \ |
||
993 | | --program-transform-n=* | --program-transform-=* \ |
||
994 | | --program-transform=* | --program-transfor=* \ |
||
995 | | --program-transfo=* | --program-transf=* \ |
||
996 | | --program-trans=* | --program-tran=* \ |
||
997 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
998 | program_transform_name=$ac_optarg ;; |
||
999 | |||
1000 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
||
1001 | ac_prev=pdfdir ;; |
||
1002 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
||
1003 | pdfdir=$ac_optarg ;; |
||
1004 | |||
1005 | -psdir | --psdir | --psdi | --psd | --ps) |
||
1006 | ac_prev=psdir ;; |
||
1007 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
||
1008 | psdir=$ac_optarg ;; |
||
1009 | |||
1010 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1011 | | -silent | --silent | --silen | --sile | --sil) |
||
1012 | silent=yes ;; |
||
1013 | |||
1014 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
1015 | ac_prev=sbindir ;; |
||
1016 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
1017 | | --sbi=* | --sb=*) |
||
1018 | sbindir=$ac_optarg ;; |
||
1019 | |||
1020 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
1021 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
1022 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
1023 | | --sha | --sh) |
||
1024 | ac_prev=sharedstatedir ;; |
||
1025 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
1026 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
1027 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
1028 | | --sha=* | --sh=*) |
||
1029 | sharedstatedir=$ac_optarg ;; |
||
1030 | |||
1031 | -site | --site | --sit) |
||
1032 | ac_prev=site ;; |
||
1033 | -site=* | --site=* | --sit=*) |
||
1034 | site=$ac_optarg ;; |
||
1035 | |||
1036 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
1037 | ac_prev=srcdir ;; |
||
1038 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
1039 | srcdir=$ac_optarg ;; |
||
1040 | |||
1041 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
1042 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
1043 | ac_prev=sysconfdir ;; |
||
1044 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
1045 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
1046 | sysconfdir=$ac_optarg ;; |
||
1047 | |||
1048 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
1049 | ac_prev=target_alias ;; |
||
1050 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
1051 | target_alias=$ac_optarg ;; |
||
1052 | |||
1053 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
1054 | verbose=yes ;; |
||
1055 | |||
1056 | -version | --version | --versio | --versi | --vers | -V) |
||
1057 | ac_init_version=: ;; |
||
1058 | |||
1059 | -with-* | --with-*) |
||
1060 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
1061 | # Reject names that are not valid shell variable names. |
||
1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1063 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1064 | ac_useropt_orig=$ac_useropt |
||
1065 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1066 | case $ac_user_opts in |
||
1067 | *" |
||
1068 | "with_$ac_useropt" |
||
1069 | "*) ;; |
||
1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
||
1071 | ac_unrecognized_sep=', ';; |
||
1072 | esac |
||
1073 | eval with_$ac_useropt=\$ac_optarg ;; |
||
1074 | |||
1075 | -without-* | --without-*) |
||
1076 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
1077 | # Reject names that are not valid shell variable names. |
||
1078 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
||
1079 | as_fn_error $? "invalid package name: $ac_useropt" |
||
1080 | ac_useropt_orig=$ac_useropt |
||
1081 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
||
1082 | case $ac_user_opts in |
||
1083 | *" |
||
1084 | "with_$ac_useropt" |
||
1085 | "*) ;; |
||
1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
||
1087 | ac_unrecognized_sep=', ';; |
||
1088 | esac |
||
1089 | eval with_$ac_useropt=no ;; |
||
1090 | |||
1091 | --x) |
||
1092 | # Obsolete; use --with-x. |
||
1093 | with_x=yes ;; |
||
1094 | |||
1095 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
1096 | | --x-incl | --x-inc | --x-in | --x-i) |
||
1097 | ac_prev=x_includes ;; |
||
1098 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
1099 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
1100 | x_includes=$ac_optarg ;; |
||
1101 | |||
1102 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
1103 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
1104 | ac_prev=x_libraries ;; |
||
1105 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
1106 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
1107 | x_libraries=$ac_optarg ;; |
||
1108 | |||
1109 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
||
1110 | Try \`$0 --help' for more information" |
||
1111 | ;; |
||
1112 | |||
1113 | *=*) |
||
1114 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
1115 | # Reject names that are not valid shell variable names. |
||
1116 | case $ac_envvar in #( |
||
1117 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
||
1118 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
||
1119 | esac |
||
1120 | eval $ac_envvar=\$ac_optarg |
||
1121 | export $ac_envvar ;; |
||
1122 | |||
1123 | *) |
||
1124 | # FIXME: should be removed in autoconf 3.0. |
||
1125 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
1126 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
1127 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
1128 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
||
1129 | ;; |
||
1130 | |||
1131 | esac |
||
1132 | done |
||
1133 | |||
1134 | if test -n "$ac_prev"; then |
||
1135 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
1136 | as_fn_error $? "missing argument to $ac_option" |
||
1137 | fi |
||
1138 | |||
1139 | if test -n "$ac_unrecognized_opts"; then |
||
1140 | case $enable_option_checking in |
||
1141 | no) ;; |
||
1142 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
||
1143 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
||
1144 | esac |
||
1145 | fi |
||
1146 | |||
1147 | # Check all directory arguments for consistency. |
||
1148 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
||
1149 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
||
1150 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
||
1151 | libdir localedir mandir |
||
1152 | do |
||
1153 | eval ac_val=\$$ac_var |
||
1154 | # Remove trailing slashes. |
||
1155 | case $ac_val in |
||
1156 | */ ) |
||
1157 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
||
1158 | eval $ac_var=\$ac_val;; |
||
1159 | esac |
||
1160 | # Be sure to have absolute directory names. |
||
1161 | case $ac_val in |
||
1162 | [\\/$]* | ?:[\\/]* ) continue;; |
||
1163 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
||
1164 | esac |
||
1165 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
||
1166 | done |
||
1167 | |||
1168 | # There might be people who depend on the old broken behavior: `$host' |
||
1169 | # used to hold the argument of --host etc. |
||
1170 | # FIXME: To remove some day. |
||
1171 | build=$build_alias |
||
1172 | host=$host_alias |
||
1173 | target=$target_alias |
||
1174 | |||
1175 | # FIXME: To remove some day. |
||
1176 | if test "x$host_alias" != x; then |
||
1177 | if test "x$build_alias" = x; then |
||
1178 | cross_compiling=maybe |
||
1179 | elif test "x$build_alias" != "x$host_alias"; then |
||
1180 | cross_compiling=yes |
||
1181 | fi |
||
1182 | fi |
||
1183 | |||
1184 | ac_tool_prefix= |
||
1185 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
1186 | |||
1187 | test "$silent" = yes && exec 6>/dev/null |
||
1188 | |||
1189 | |||
1190 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
||
1191 | ac_ls_di=`ls -di .` && |
||
1192 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
||
1193 | as_fn_error $? "working directory cannot be determined" |
||
1194 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
||
1195 | as_fn_error $? "pwd does not report name of working directory" |
||
1196 | |||
1197 | |||
1198 | # Find the source files, if location was not specified. |
||
1199 | if test -z "$srcdir"; then |
||
1200 | ac_srcdir_defaulted=yes |
||
1201 | # Try the directory containing this script, then the parent directory. |
||
1202 | ac_confdir=`$as_dirname -- "$as_myself" || |
||
1203 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
1204 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
||
1205 | X"$as_myself" : 'X\(//\)$' \| \ |
||
1206 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
||
1207 | $as_echo X"$as_myself" | |
||
1208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
1209 | s//\1/ |
||
1210 | q |
||
1211 | } |
||
1212 | /^X\(\/\/\)[^/].*/{ |
||
1213 | s//\1/ |
||
1214 | q |
||
1215 | } |
||
1216 | /^X\(\/\/\)$/{ |
||
1217 | s//\1/ |
||
1218 | q |
||
1219 | } |
||
1220 | /^X\(\/\).*/{ |
||
1221 | s//\1/ |
||
1222 | q |
||
1223 | } |
||
1224 | s/.*/./; q'` |
||
1225 | srcdir=$ac_confdir |
||
1226 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1227 | srcdir=.. |
||
1228 | fi |
||
1229 | else |
||
1230 | ac_srcdir_defaulted=no |
||
1231 | fi |
||
1232 | if test ! -r "$srcdir/$ac_unique_file"; then |
||
1233 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
||
1234 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
||
1235 | fi |
||
1236 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
||
1237 | ac_abs_confdir=`( |
||
1238 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
||
1239 | pwd)` |
||
1240 | # When building in place, set srcdir=. |
||
1241 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
||
1242 | srcdir=. |
||
1243 | fi |
||
1244 | # Remove unnecessary trailing slashes from srcdir. |
||
1245 | # Double slashes in file names in object file debugging info |
||
1246 | # mess up M-x gdb in Emacs. |
||
1247 | case $srcdir in |
||
1248 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
||
1249 | esac |
||
1250 | for ac_var in $ac_precious_vars; do |
||
1251 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
||
1252 | eval ac_env_${ac_var}_value=\$${ac_var} |
||
1253 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
||
1254 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
||
1255 | done |
||
1256 | |||
1257 | # |
||
1258 | # Report the --help message. |
||
1259 | # |
||
1260 | if test "$ac_init_help" = "long"; then |
||
1261 | # Omit some internal or obsolete options to make the list less imposing. |
||
1262 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
1263 | cat <<_ACEOF |
||
18489 | bpr | 1264 | \`configure' configures WIMS 4.29b to adapt to many kinds of systems. |
16015 | bpr | 1265 | |
1266 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
1267 | |||
1268 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
1269 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
1270 | |||
1271 | Defaults for the options are specified in brackets. |
||
1272 | |||
1273 | Configuration: |
||
1274 | -h, --help display this help and exit |
||
1275 | --help=short display options specific to this package |
||
1276 | --help=recursive display the short help of all the included packages |
||
1277 | -V, --version display version information and exit |
||
1278 | -q, --quiet, --silent do not print \`checking ...' messages |
||
1279 | --cache-file=FILE cache test results in FILE [disabled] |
||
1280 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
1281 | -n, --no-create do not create output files |
||
1282 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
1283 | |||
1284 | Installation directories: |
||
1285 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
1286 | [$ac_default_prefix] |
||
1287 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
1288 | [PREFIX] |
||
1289 | |||
1290 | By default, \`make install' will install all the files in |
||
1291 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
1292 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
1293 | for instance \`--prefix=\$HOME'. |
||
1294 | |||
1295 | For better control, use the options below. |
||
1296 | |||
1297 | Fine tuning of the installation directories: |
||
1298 | --bindir=DIR user executables [EPREFIX/bin] |
||
1299 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
1300 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
1301 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
1302 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
1303 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
1304 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
1305 | --includedir=DIR C header files [PREFIX/include] |
||
1306 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
1307 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
||
1308 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
||
1309 | --infodir=DIR info documentation [DATAROOTDIR/info] |
||
1310 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
||
1311 | --mandir=DIR man documentation [DATAROOTDIR/man] |
||
1312 | --docdir=DIR documentation root [DATAROOTDIR/doc/wims] |
||
1313 | --htmldir=DIR html documentation [DOCDIR] |
||
1314 | --dvidir=DIR dvi documentation [DOCDIR] |
||
1315 | --pdfdir=DIR pdf documentation [DOCDIR] |
||
1316 | --psdir=DIR ps documentation [DOCDIR] |
||
1317 | _ACEOF |
||
1318 | |||
1319 | cat <<\_ACEOF |
||
1320 | _ACEOF |
||
1321 | fi |
||
1322 | |||
1323 | if test -n "$ac_init_help"; then |
||
1324 | case $ac_init_help in |
||
18489 | bpr | 1325 | short | recursive ) echo "Configuration of WIMS 4.29b:";; |
16015 | bpr | 1326 | esac |
1327 | cat <<\_ACEOF |
||
1328 | |||
1329 | Optional Packages: |
||
1330 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
1331 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
1332 | --without-units Don't compile units-filter (units recognition) |
||
1333 | --without-chemeq Don't compile chemeq (chemical equation analyzer) |
||
1334 | --without-wimsd Don't compile wimsd (standalone http server) |
||
1335 | |||
1336 | Some influential environment variables: |
||
1337 | YACC The `Yet Another Compiler Compiler' implementation to use. |
||
1338 | Defaults to the first program found out of: `bison -y', `byacc', |
||
1339 | `yacc'. |
||
1340 | YFLAGS The list of arguments that will be passed by default to $YACC. |
||
1341 | This script will default YFLAGS to the empty string to avoid a |
||
1342 | default value of `-d' given by some make applications. |
||
1343 | CC C compiler command |
||
1344 | CFLAGS C compiler flags |
||
1345 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
||
1346 | nonstandard directory <lib dir> |
||
1347 | LIBS libraries to pass to the linker, e.g. -l<library> |
||
1348 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
||
1349 | you have headers in a nonstandard directory <include dir> |
||
1350 | CXX C++ compiler command |
||
1351 | CXXFLAGS C++ compiler flags |
||
1352 | CPP C preprocessor |
||
1353 | |||
1354 | Use these variables to override the choices made by `configure' or to help |
||
1355 | it to find libraries and programs with nonstandard names/locations. |
||
1356 | |||
1357 | Report bugs to <wimsdev@groupes.renater.fr>. |
||
1358 | _ACEOF |
||
1359 | ac_status=$? |
||
1360 | fi |
||
1361 | |||
1362 | if test "$ac_init_help" = "recursive"; then |
||
1363 | # If there are subdirs, report their specific --help. |
||
1364 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
1365 | test -d "$ac_dir" || |
||
1366 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
||
1367 | continue |
||
1368 | ac_builddir=. |
||
1369 | |||
1370 | case "$ac_dir" in |
||
1371 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1372 | *) |
||
1373 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
1374 | # A ".." for each directory in $ac_dir_suffix. |
||
1375 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
1376 | case $ac_top_builddir_sub in |
||
1377 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
1378 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
1379 | esac ;; |
||
1380 | esac |
||
1381 | ac_abs_top_builddir=$ac_pwd |
||
1382 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
1383 | # for backward compatibility: |
||
1384 | ac_top_builddir=$ac_top_build_prefix |
||
1385 | |||
1386 | case $srcdir in |
||
1387 | .) # We are building in place. |
||
1388 | ac_srcdir=. |
||
1389 | ac_top_srcdir=$ac_top_builddir_sub |
||
1390 | ac_abs_top_srcdir=$ac_pwd ;; |
||
1391 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
1392 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
1393 | ac_top_srcdir=$srcdir |
||
1394 | ac_abs_top_srcdir=$srcdir ;; |
||
1395 | *) # Relative name. |
||
1396 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
1397 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
1398 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
1399 | esac |
||
1400 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
1401 | |||
1402 | cd "$ac_dir" || { ac_status=$?; continue; } |
||
1403 | # Check for guested configure. |
||
1404 | if test -f "$ac_srcdir/configure.gnu"; then |
||
1405 | echo && |
||
1406 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
||
1407 | elif test -f "$ac_srcdir/configure"; then |
||
1408 | echo && |
||
1409 | $SHELL "$ac_srcdir/configure" --help=recursive |
||
1410 | else |
||
1411 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
1412 | fi || ac_status=$? |
||
1413 | cd "$ac_pwd" || { ac_status=$?; break; } |
||
1414 | done |
||
1415 | fi |
||
1416 | |||
1417 | test -n "$ac_init_help" && exit $ac_status |
||
1418 | if $ac_init_version; then |
||
1419 | cat <<\_ACEOF |
||
18489 | bpr | 1420 | WIMS configure 4.29b |
16015 | bpr | 1421 | generated by GNU Autoconf 2.69 |
1422 | |||
1423 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
1424 | This configure script is free software; the Free Software Foundation |
||
1425 | gives unlimited permission to copy, distribute and modify it. |
||
1426 | _ACEOF |
||
1427 | exit |
||
1428 | fi |
||
1429 | |||
1430 | ## ------------------------ ## |
||
1431 | ## Autoconf initialization. ## |
||
1432 | ## ------------------------ ## |
||
1433 | |||
1434 | # ac_fn_c_try_compile LINENO |
||
1435 | # -------------------------- |
||
1436 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
1437 | ac_fn_c_try_compile () |
||
1438 | { |
||
1439 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1440 | rm -f conftest.$ac_objext |
||
1441 | if { { ac_try="$ac_compile" |
||
1442 | case "(($ac_try" in |
||
1443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1444 | *) ac_try_echo=$ac_try;; |
||
1445 | esac |
||
1446 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1447 | $as_echo "$ac_try_echo"; } >&5 |
||
1448 | (eval "$ac_compile") 2>conftest.err |
||
1449 | ac_status=$? |
||
1450 | if test -s conftest.err; then |
||
1451 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1452 | cat conftest.er1 >&5 |
||
1453 | mv -f conftest.er1 conftest.err |
||
1454 | fi |
||
1455 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1456 | test $ac_status = 0; } && { |
||
1457 | test -z "$ac_c_werror_flag" || |
||
1458 | test ! -s conftest.err |
||
1459 | } && test -s conftest.$ac_objext; then : |
||
1460 | ac_retval=0 |
||
1461 | else |
||
1462 | $as_echo "$as_me: failed program was:" >&5 |
||
1463 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1464 | |||
1465 | ac_retval=1 |
||
1466 | fi |
||
1467 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1468 | as_fn_set_status $ac_retval |
||
1469 | |||
1470 | } # ac_fn_c_try_compile |
||
1471 | |||
1472 | # ac_fn_cxx_try_compile LINENO |
||
1473 | # ---------------------------- |
||
1474 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
||
1475 | ac_fn_cxx_try_compile () |
||
1476 | { |
||
1477 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1478 | rm -f conftest.$ac_objext |
||
1479 | if { { ac_try="$ac_compile" |
||
1480 | case "(($ac_try" in |
||
1481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1482 | *) ac_try_echo=$ac_try;; |
||
1483 | esac |
||
1484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1485 | $as_echo "$ac_try_echo"; } >&5 |
||
1486 | (eval "$ac_compile") 2>conftest.err |
||
1487 | ac_status=$? |
||
1488 | if test -s conftest.err; then |
||
1489 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1490 | cat conftest.er1 >&5 |
||
1491 | mv -f conftest.er1 conftest.err |
||
1492 | fi |
||
1493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1494 | test $ac_status = 0; } && { |
||
1495 | test -z "$ac_cxx_werror_flag" || |
||
1496 | test ! -s conftest.err |
||
1497 | } && test -s conftest.$ac_objext; then : |
||
1498 | ac_retval=0 |
||
1499 | else |
||
1500 | $as_echo "$as_me: failed program was:" >&5 |
||
1501 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1502 | |||
1503 | ac_retval=1 |
||
1504 | fi |
||
1505 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1506 | as_fn_set_status $ac_retval |
||
1507 | |||
1508 | } # ac_fn_cxx_try_compile |
||
1509 | |||
1510 | # ac_fn_c_try_cpp LINENO |
||
1511 | # ---------------------- |
||
1512 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
||
1513 | ac_fn_c_try_cpp () |
||
1514 | { |
||
1515 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1516 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
||
1517 | case "(($ac_try" in |
||
1518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1519 | *) ac_try_echo=$ac_try;; |
||
1520 | esac |
||
1521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1522 | $as_echo "$ac_try_echo"; } >&5 |
||
1523 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
||
1524 | ac_status=$? |
||
1525 | if test -s conftest.err; then |
||
1526 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1527 | cat conftest.er1 >&5 |
||
1528 | mv -f conftest.er1 conftest.err |
||
1529 | fi |
||
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1531 | test $ac_status = 0; } > conftest.i && { |
||
1532 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
||
1533 | test ! -s conftest.err |
||
1534 | }; then : |
||
1535 | ac_retval=0 |
||
1536 | else |
||
1537 | $as_echo "$as_me: failed program was:" >&5 |
||
1538 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1539 | |||
1540 | ac_retval=1 |
||
1541 | fi |
||
1542 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1543 | as_fn_set_status $ac_retval |
||
1544 | |||
1545 | } # ac_fn_c_try_cpp |
||
1546 | |||
1547 | # ac_fn_c_try_link LINENO |
||
1548 | # ----------------------- |
||
1549 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
||
1550 | ac_fn_c_try_link () |
||
1551 | { |
||
1552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1553 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
1554 | if { { ac_try="$ac_link" |
||
1555 | case "(($ac_try" in |
||
1556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1557 | *) ac_try_echo=$ac_try;; |
||
1558 | esac |
||
1559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1560 | $as_echo "$ac_try_echo"; } >&5 |
||
1561 | (eval "$ac_link") 2>conftest.err |
||
1562 | ac_status=$? |
||
1563 | if test -s conftest.err; then |
||
1564 | grep -v '^ *+' conftest.err >conftest.er1 |
||
1565 | cat conftest.er1 >&5 |
||
1566 | mv -f conftest.er1 conftest.err |
||
1567 | fi |
||
1568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1569 | test $ac_status = 0; } && { |
||
1570 | test -z "$ac_c_werror_flag" || |
||
1571 | test ! -s conftest.err |
||
1572 | } && test -s conftest$ac_exeext && { |
||
1573 | test "$cross_compiling" = yes || |
||
1574 | test -x conftest$ac_exeext |
||
1575 | }; then : |
||
1576 | ac_retval=0 |
||
1577 | else |
||
1578 | $as_echo "$as_me: failed program was:" >&5 |
||
1579 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1580 | |||
1581 | ac_retval=1 |
||
1582 | fi |
||
1583 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
||
1584 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
||
1585 | # interfere with the next link command; also delete a directory that is |
||
1586 | # left behind by Apple's compiler. We do this before executing the actions. |
||
1587 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
1588 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1589 | as_fn_set_status $ac_retval |
||
1590 | |||
1591 | } # ac_fn_c_try_link |
||
1592 | |||
1593 | # ac_fn_c_check_func LINENO FUNC VAR |
||
1594 | # ---------------------------------- |
||
1595 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
||
1596 | ac_fn_c_check_func () |
||
1597 | { |
||
1598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1600 | $as_echo_n "checking for $2... " >&6; } |
||
1601 | if eval \${$3+:} false; then : |
||
1602 | $as_echo_n "(cached) " >&6 |
||
1603 | else |
||
1604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1605 | /* end confdefs.h. */ |
||
1606 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
||
1607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
1608 | #define $2 innocuous_$2 |
||
1609 | |||
1610 | /* System header to define __stub macros and hopefully few prototypes, |
||
1611 | which can conflict with char $2 (); below. |
||
1612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
1613 | <limits.h> exists even on freestanding compilers. */ |
||
1614 | |||
1615 | #ifdef __STDC__ |
||
1616 | # include <limits.h> |
||
1617 | #else |
||
1618 | # include <assert.h> |
||
1619 | #endif |
||
1620 | |||
1621 | #undef $2 |
||
1622 | |||
1623 | /* Override any GCC internal prototype to avoid an error. |
||
1624 | Use char because int might match the return type of a GCC |
||
1625 | builtin and then its argument prototype would still apply. */ |
||
1626 | #ifdef __cplusplus |
||
1627 | extern "C" |
||
1628 | #endif |
||
1629 | char $2 (); |
||
1630 | /* The GNU C library defines this for functions which it implements |
||
1631 | to always fail with ENOSYS. Some functions are actually named |
||
1632 | something starting with __ and the normal name is an alias. */ |
||
1633 | #if defined __stub_$2 || defined __stub___$2 |
||
1634 | choke me |
||
1635 | #endif |
||
1636 | |||
1637 | int |
||
1638 | main () |
||
1639 | { |
||
1640 | return $2 (); |
||
1641 | ; |
||
1642 | return 0; |
||
1643 | } |
||
1644 | _ACEOF |
||
1645 | if ac_fn_c_try_link "$LINENO"; then : |
||
1646 | eval "$3=yes" |
||
1647 | else |
||
1648 | eval "$3=no" |
||
1649 | fi |
||
1650 | rm -f core conftest.err conftest.$ac_objext \ |
||
1651 | conftest$ac_exeext conftest.$ac_ext |
||
1652 | fi |
||
1653 | eval ac_res=\$$3 |
||
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1655 | $as_echo "$ac_res" >&6; } |
||
1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1657 | |||
1658 | } # ac_fn_c_check_func |
||
1659 | |||
1660 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
||
1661 | # ------------------------------------------- |
||
1662 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
||
1663 | # variable VAR accordingly. |
||
1664 | ac_fn_c_check_type () |
||
1665 | { |
||
1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1668 | $as_echo_n "checking for $2... " >&6; } |
||
1669 | if eval \${$3+:} false; then : |
||
1670 | $as_echo_n "(cached) " >&6 |
||
1671 | else |
||
1672 | eval "$3=no" |
||
1673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1674 | /* end confdefs.h. */ |
||
1675 | $4 |
||
1676 | int |
||
1677 | main () |
||
1678 | { |
||
1679 | if (sizeof ($2)) |
||
1680 | return 0; |
||
1681 | ; |
||
1682 | return 0; |
||
1683 | } |
||
1684 | _ACEOF |
||
1685 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1687 | /* end confdefs.h. */ |
||
1688 | $4 |
||
1689 | int |
||
1690 | main () |
||
1691 | { |
||
1692 | if (sizeof (($2))) |
||
1693 | return 0; |
||
1694 | ; |
||
1695 | return 0; |
||
1696 | } |
||
1697 | _ACEOF |
||
1698 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1699 | |||
1700 | else |
||
1701 | eval "$3=yes" |
||
1702 | fi |
||
1703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1704 | fi |
||
1705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1706 | fi |
||
1707 | eval ac_res=\$$3 |
||
1708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1709 | $as_echo "$ac_res" >&6; } |
||
1710 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1711 | |||
1712 | } # ac_fn_c_check_type |
||
1713 | |||
1714 | # ac_fn_c_try_run LINENO |
||
1715 | # ---------------------- |
||
1716 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
||
1717 | # that executables *can* be run. |
||
1718 | ac_fn_c_try_run () |
||
1719 | { |
||
1720 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1721 | if { { ac_try="$ac_link" |
||
1722 | case "(($ac_try" in |
||
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1724 | *) ac_try_echo=$ac_try;; |
||
1725 | esac |
||
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1727 | $as_echo "$ac_try_echo"; } >&5 |
||
1728 | (eval "$ac_link") 2>&5 |
||
1729 | ac_status=$? |
||
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1731 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
||
1732 | { { case "(($ac_try" in |
||
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
1734 | *) ac_try_echo=$ac_try;; |
||
1735 | esac |
||
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
1737 | $as_echo "$ac_try_echo"; } >&5 |
||
1738 | (eval "$ac_try") 2>&5 |
||
1739 | ac_status=$? |
||
1740 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
1741 | test $ac_status = 0; }; }; then : |
||
1742 | ac_retval=0 |
||
1743 | else |
||
1744 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
||
1745 | $as_echo "$as_me: failed program was:" >&5 |
||
1746 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1747 | |||
1748 | ac_retval=$ac_status |
||
1749 | fi |
||
1750 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
||
1751 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1752 | as_fn_set_status $ac_retval |
||
1753 | |||
1754 | } # ac_fn_c_try_run |
||
1755 | |||
1756 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
||
1757 | # ------------------------------------------------------- |
||
1758 | # Tests whether HEADER exists and can be compiled using the include files in |
||
1759 | # INCLUDES, setting the cache variable VAR accordingly. |
||
1760 | ac_fn_c_check_header_compile () |
||
1761 | { |
||
1762 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1764 | $as_echo_n "checking for $2... " >&6; } |
||
1765 | if eval \${$3+:} false; then : |
||
1766 | $as_echo_n "(cached) " >&6 |
||
1767 | else |
||
1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1769 | /* end confdefs.h. */ |
||
1770 | $4 |
||
1771 | #include <$2> |
||
1772 | _ACEOF |
||
1773 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1774 | eval "$3=yes" |
||
1775 | else |
||
1776 | eval "$3=no" |
||
1777 | fi |
||
1778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1779 | fi |
||
1780 | eval ac_res=\$$3 |
||
1781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1782 | $as_echo "$ac_res" >&6; } |
||
1783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1784 | |||
1785 | } # ac_fn_c_check_header_compile |
||
1786 | |||
1787 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
||
1788 | # ------------------------------------------------------- |
||
1789 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
||
1790 | # the include files in INCLUDES and setting the cache variable VAR |
||
1791 | # accordingly. |
||
1792 | ac_fn_c_check_header_mongrel () |
||
1793 | { |
||
1794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
1795 | if eval \${$3+:} false; then : |
||
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1797 | $as_echo_n "checking for $2... " >&6; } |
||
1798 | if eval \${$3+:} false; then : |
||
1799 | $as_echo_n "(cached) " >&6 |
||
1800 | fi |
||
1801 | eval ac_res=\$$3 |
||
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1803 | $as_echo "$ac_res" >&6; } |
||
1804 | else |
||
1805 | # Is the header compilable? |
||
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
||
1807 | $as_echo_n "checking $2 usability... " >&6; } |
||
1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1809 | /* end confdefs.h. */ |
||
1810 | $4 |
||
1811 | #include <$2> |
||
1812 | _ACEOF |
||
1813 | if ac_fn_c_try_compile "$LINENO"; then : |
||
1814 | ac_header_compiler=yes |
||
1815 | else |
||
1816 | ac_header_compiler=no |
||
1817 | fi |
||
1818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
||
1820 | $as_echo "$ac_header_compiler" >&6; } |
||
1821 | |||
1822 | # Is the header present? |
||
1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
||
1824 | $as_echo_n "checking $2 presence... " >&6; } |
||
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
1826 | /* end confdefs.h. */ |
||
1827 | #include <$2> |
||
1828 | _ACEOF |
||
1829 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
1830 | ac_header_preproc=yes |
||
1831 | else |
||
1832 | ac_header_preproc=no |
||
1833 | fi |
||
1834 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
1835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
||
1836 | $as_echo "$ac_header_preproc" >&6; } |
||
1837 | |||
1838 | # So? What about this header? |
||
1839 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
||
1840 | yes:no: ) |
||
1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
1842 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
1844 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
1845 | ;; |
||
1846 | no:yes:* ) |
||
1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
||
1848 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
||
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
||
1850 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
||
1851 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
||
1852 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
||
1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
||
1854 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
||
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
||
1856 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
||
1857 | ( $as_echo "## ----------------------------------------- ## |
||
1858 | ## Report this to wimsdev@groupes.renater.fr ## |
||
1859 | ## ----------------------------------------- ##" |
||
1860 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
||
1861 | ;; |
||
1862 | esac |
||
1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
||
1864 | $as_echo_n "checking for $2... " >&6; } |
||
1865 | if eval \${$3+:} false; then : |
||
1866 | $as_echo_n "(cached) " >&6 |
||
1867 | else |
||
1868 | eval "$3=\$ac_header_compiler" |
||
1869 | fi |
||
1870 | eval ac_res=\$$3 |
||
1871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
1872 | $as_echo "$ac_res" >&6; } |
||
1873 | fi |
||
1874 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
||
1875 | |||
1876 | } # ac_fn_c_check_header_mongrel |
||
1877 | cat >config.log <<_ACEOF |
||
1878 | This file contains any messages produced by compilers while |
||
1879 | running configure, to aid debugging if configure makes a mistake. |
||
1880 | |||
18489 | bpr | 1881 | It was created by WIMS $as_me 4.29b, which was |
16015 | bpr | 1882 | generated by GNU Autoconf 2.69. Invocation command line was |
1883 | |||
1884 | $ $0 $@ |
||
1885 | |||
1886 | _ACEOF |
||
1887 | exec 5>>config.log |
||
1888 | { |
||
1889 | cat <<_ASUNAME |
||
1890 | ## --------- ## |
||
1891 | ## Platform. ## |
||
1892 | ## --------- ## |
||
1893 | |||
1894 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
1895 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
1896 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
1897 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
1898 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
1899 | |||
1900 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
1901 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
1902 | |||
1903 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
1904 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
1905 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
1906 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
||
1907 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
1908 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
1909 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
1910 | |||
1911 | _ASUNAME |
||
1912 | |||
1913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1914 | for as_dir in $PATH |
||
1915 | do |
||
1916 | IFS=$as_save_IFS |
||
1917 | test -z "$as_dir" && as_dir=. |
||
1918 | $as_echo "PATH: $as_dir" |
||
1919 | done |
||
1920 | IFS=$as_save_IFS |
||
1921 | |||
1922 | } >&5 |
||
1923 | |||
1924 | cat >&5 <<_ACEOF |
||
1925 | |||
1926 | |||
1927 | ## ----------- ## |
||
1928 | ## Core tests. ## |
||
1929 | ## ----------- ## |
||
1930 | |||
1931 | _ACEOF |
||
1932 | |||
1933 | |||
1934 | # Keep a trace of the command line. |
||
1935 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
1936 | # Strip out --silent because we don't want to record it for future runs. |
||
1937 | # Also quote any args containing shell meta-characters. |
||
1938 | # Make two passes to allow for proper duplicate-argument suppression. |
||
1939 | ac_configure_args= |
||
1940 | ac_configure_args0= |
||
1941 | ac_configure_args1= |
||
1942 | ac_must_keep_next=false |
||
1943 | for ac_pass in 1 2 |
||
1944 | do |
||
1945 | for ac_arg |
||
1946 | do |
||
1947 | case $ac_arg in |
||
1948 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
1949 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1950 | | -silent | --silent | --silen | --sile | --sil) |
||
1951 | continue ;; |
||
1952 | *\'*) |
||
1953 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1954 | esac |
||
1955 | case $ac_pass in |
||
1956 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
||
1957 | 2) |
||
1958 | as_fn_append ac_configure_args1 " '$ac_arg'" |
||
1959 | if test $ac_must_keep_next = true; then |
||
1960 | ac_must_keep_next=false # Got value, back to normal. |
||
1961 | else |
||
1962 | case $ac_arg in |
||
1963 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
1964 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
1965 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
1966 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
1967 | case "$ac_configure_args0 " in |
||
1968 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
1969 | esac |
||
1970 | ;; |
||
1971 | -* ) ac_must_keep_next=true ;; |
||
1972 | esac |
||
1973 | fi |
||
1974 | as_fn_append ac_configure_args " '$ac_arg'" |
||
1975 | ;; |
||
1976 | esac |
||
1977 | done |
||
1978 | done |
||
1979 | { ac_configure_args0=; unset ac_configure_args0;} |
||
1980 | { ac_configure_args1=; unset ac_configure_args1;} |
||
1981 | |||
1982 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
1983 | # config.log. We remove comments because anyway the quotes in there |
||
1984 | # would cause problems or look ugly. |
||
1985 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
||
1986 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
||
1987 | trap 'exit_status=$? |
||
1988 | # Save into config.log some information that might help in debugging. |
||
1989 | { |
||
1990 | echo |
||
1991 | |||
1992 | $as_echo "## ---------------- ## |
||
1993 | ## Cache variables. ## |
||
1994 | ## ---------------- ##" |
||
1995 | echo |
||
1996 | # The following way of writing the cache mishandles newlines in values, |
||
1997 | ( |
||
1998 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
||
1999 | eval ac_val=\$$ac_var |
||
2000 | case $ac_val in #( |
||
2001 | *${as_nl}*) |
||
2002 | case $ac_var in #( |
||
2003 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
2004 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
2005 | esac |
||
2006 | case $ac_var in #( |
||
2007 | _ | IFS | as_nl) ;; #( |
||
2008 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
2009 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
2010 | esac ;; |
||
2011 | esac |
||
2012 | done |
||
2013 | (set) 2>&1 | |
||
2014 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
||
2015 | *${as_nl}ac_space=\ *) |
||
2016 | sed -n \ |
||
2017 | "s/'\''/'\''\\\\'\'''\''/g; |
||
2018 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
||
2019 | ;; #( |
||
2020 | *) |
||
2021 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
2022 | ;; |
||
2023 | esac | |
||
2024 | sort |
||
2025 | ) |
||
2026 | echo |
||
2027 | |||
2028 | $as_echo "## ----------------- ## |
||
2029 | ## Output variables. ## |
||
2030 | ## ----------------- ##" |
||
2031 | echo |
||
2032 | for ac_var in $ac_subst_vars |
||
2033 | do |
||
2034 | eval ac_val=\$$ac_var |
||
2035 | case $ac_val in |
||
2036 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2037 | esac |
||
2038 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2039 | done | sort |
||
2040 | echo |
||
2041 | |||
2042 | if test -n "$ac_subst_files"; then |
||
2043 | $as_echo "## ------------------- ## |
||
2044 | ## File substitutions. ## |
||
2045 | ## ------------------- ##" |
||
2046 | echo |
||
2047 | for ac_var in $ac_subst_files |
||
2048 | do |
||
2049 | eval ac_val=\$$ac_var |
||
2050 | case $ac_val in |
||
2051 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
||
2052 | esac |
||
2053 | $as_echo "$ac_var='\''$ac_val'\''" |
||
2054 | done | sort |
||
2055 | echo |
||
2056 | fi |
||
2057 | |||
2058 | if test -s confdefs.h; then |
||
2059 | $as_echo "## ----------- ## |
||
2060 | ## confdefs.h. ## |
||
2061 | ## ----------- ##" |
||
2062 | echo |
||
2063 | cat confdefs.h |
||
2064 | echo |
||
2065 | fi |
||
2066 | test "$ac_signal" != 0 && |
||
2067 | $as_echo "$as_me: caught signal $ac_signal" |
||
2068 | $as_echo "$as_me: exit $exit_status" |
||
2069 | } >&5 |
||
2070 | rm -f core *.core core.conftest.* && |
||
2071 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
||
2072 | exit $exit_status |
||
2073 | ' 0 |
||
2074 | for ac_signal in 1 2 13 15; do |
||
2075 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
||
2076 | done |
||
2077 | ac_signal=0 |
||
2078 | |||
2079 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
2080 | rm -f -r conftest* confdefs.h |
||
2081 | |||
2082 | $as_echo "/* confdefs.h */" > confdefs.h |
||
2083 | |||
2084 | # Predefined preprocessor variables. |
||
2085 | |||
2086 | cat >>confdefs.h <<_ACEOF |
||
2087 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
2088 | _ACEOF |
||
2089 | |||
2090 | cat >>confdefs.h <<_ACEOF |
||
2091 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
2092 | _ACEOF |
||
2093 | |||
2094 | cat >>confdefs.h <<_ACEOF |
||
2095 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
2096 | _ACEOF |
||
2097 | |||
2098 | cat >>confdefs.h <<_ACEOF |
||
2099 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
2100 | _ACEOF |
||
2101 | |||
2102 | cat >>confdefs.h <<_ACEOF |
||
2103 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
2104 | _ACEOF |
||
2105 | |||
2106 | cat >>confdefs.h <<_ACEOF |
||
2107 | #define PACKAGE_URL "$PACKAGE_URL" |
||
2108 | _ACEOF |
||
2109 | |||
2110 | |||
2111 | # Let the site file select an alternate cache file if it wants to. |
||
2112 | # Prefer an explicitly selected file to automatically selected ones. |
||
2113 | ac_site_file1=NONE |
||
2114 | ac_site_file2=NONE |
||
2115 | if test -n "$CONFIG_SITE"; then |
||
2116 | # We do not want a PATH search for config.site. |
||
2117 | case $CONFIG_SITE in #(( |
||
2118 | -*) ac_site_file1=./$CONFIG_SITE;; |
||
2119 | */*) ac_site_file1=$CONFIG_SITE;; |
||
2120 | *) ac_site_file1=./$CONFIG_SITE;; |
||
2121 | esac |
||
2122 | elif test "x$prefix" != xNONE; then |
||
2123 | ac_site_file1=$prefix/share/config.site |
||
2124 | ac_site_file2=$prefix/etc/config.site |
||
2125 | else |
||
2126 | ac_site_file1=$ac_default_prefix/share/config.site |
||
2127 | ac_site_file2=$ac_default_prefix/etc/config.site |
||
2128 | fi |
||
2129 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
||
2130 | do |
||
2131 | test "x$ac_site_file" = xNONE && continue |
||
2132 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
||
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
||
2134 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
||
2135 | sed 's/^/| /' "$ac_site_file" >&5 |
||
2136 | . "$ac_site_file" \ |
||
2137 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2139 | as_fn_error $? "failed to load site script $ac_site_file |
||
2140 | See \`config.log' for more details" "$LINENO" 5; } |
||
2141 | fi |
||
2142 | done |
||
2143 | |||
2144 | if test -r "$cache_file"; then |
||
2145 | # Some versions of bash will fail to source /dev/null (special files |
||
2146 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
||
2147 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
||
2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
||
2149 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
||
2150 | case $cache_file in |
||
2151 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
||
2152 | *) . "./$cache_file";; |
||
2153 | esac |
||
2154 | fi |
||
2155 | else |
||
2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
||
2157 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
||
2158 | >$cache_file |
||
2159 | fi |
||
2160 | |||
2161 | # Check that the precious variables saved in the cache have kept the same |
||
2162 | # value. |
||
2163 | ac_cache_corrupted=false |
||
2164 | for ac_var in $ac_precious_vars; do |
||
2165 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
2166 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
2167 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
||
2168 | eval ac_new_val=\$ac_env_${ac_var}_value |
||
2169 | case $ac_old_set,$ac_new_set in |
||
2170 | set,) |
||
2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
2172 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
2173 | ac_cache_corrupted=: ;; |
||
2174 | ,set) |
||
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
||
2176 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
2177 | ac_cache_corrupted=: ;; |
||
2178 | ,);; |
||
2179 | *) |
||
2180 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
2181 | # differences in whitespace do not lead to failure. |
||
2182 | ac_old_val_w=`echo x $ac_old_val` |
||
2183 | ac_new_val_w=`echo x $ac_new_val` |
||
2184 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
||
2185 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
||
2186 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
2187 | ac_cache_corrupted=: |
||
2188 | else |
||
2189 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
||
2190 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
||
2191 | eval $ac_var=\$ac_old_val |
||
2192 | fi |
||
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
||
2194 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
||
2195 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
||
2196 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
||
2197 | fi;; |
||
2198 | esac |
||
2199 | # Pass precious variables to config.status. |
||
2200 | if test "$ac_new_set" = set; then |
||
2201 | case $ac_new_val in |
||
2202 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
2203 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
2204 | esac |
||
2205 | case " $ac_configure_args " in |
||
2206 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
2207 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
||
2208 | esac |
||
2209 | fi |
||
2210 | done |
||
2211 | if $ac_cache_corrupted; then |
||
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2213 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
||
2215 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
2216 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
||
2217 | fi |
||
2218 | ## -------------------- ## |
||
2219 | ## Main body of script. ## |
||
2220 | ## -------------------- ## |
||
2221 | |||
2222 | ac_ext=c |
||
2223 | ac_cpp='$CPP $CPPFLAGS' |
||
2224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2227 | |||
2228 | |||
2229 | |||
2230 | ac_config_headers="$ac_config_headers config.h:config.hin" |
||
2231 | |||
2232 | |||
2233 | |||
2234 | |||
2235 | |||
2236 | |||
2237 | # Checks for programs. |
||
2238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
||
2239 | $as_echo_n "checking whether ln -s works... " >&6; } |
||
2240 | LN_S=$as_ln_s |
||
2241 | if test "$LN_S" = "ln -s"; then |
||
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
2243 | $as_echo "yes" >&6; } |
||
2244 | else |
||
2245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
||
2246 | $as_echo "no, using $LN_S" >&6; } |
||
2247 | fi |
||
2248 | |||
2249 | if test "$LN_S" != "ln -s"; then |
||
2250 | |||
2251 | if test "no" = no; then |
||
2252 | echo |
||
2253 | echo ERROR! Your system does not have symbolic links |
||
2254 | echo WIMS cannot be installed. Please report. |
||
2255 | echo |
||
2256 | exit 1 |
||
2257 | fi |
||
2258 | |||
2259 | fi |
||
2260 | for ac_prog in gawk mawk nawk awk |
||
2261 | do |
||
2262 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2263 | set dummy $ac_prog; ac_word=$2 |
||
2264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2265 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2266 | if ${ac_cv_prog_AWK+:} false; then : |
||
2267 | $as_echo_n "(cached) " >&6 |
||
2268 | else |
||
2269 | if test -n "$AWK"; then |
||
2270 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
2271 | else |
||
2272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2273 | for as_dir in $PATH |
||
2274 | do |
||
2275 | IFS=$as_save_IFS |
||
2276 | test -z "$as_dir" && as_dir=. |
||
2277 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2278 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2279 | ac_cv_prog_AWK="$ac_prog" |
||
2280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2281 | break 2 |
||
2282 | fi |
||
2283 | done |
||
2284 | done |
||
2285 | IFS=$as_save_IFS |
||
2286 | |||
2287 | fi |
||
2288 | fi |
||
2289 | AWK=$ac_cv_prog_AWK |
||
2290 | if test -n "$AWK"; then |
||
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
||
2292 | $as_echo "$AWK" >&6; } |
||
2293 | else |
||
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2295 | $as_echo "no" >&6; } |
||
2296 | fi |
||
2297 | |||
2298 | |||
2299 | test -n "$AWK" && break |
||
2300 | done |
||
2301 | |||
2302 | for ac_prog in 'bison -y' byacc |
||
2303 | do |
||
2304 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2305 | set dummy $ac_prog; ac_word=$2 |
||
2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2307 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2308 | if ${ac_cv_prog_YACC+:} false; then : |
||
2309 | $as_echo_n "(cached) " >&6 |
||
2310 | else |
||
2311 | if test -n "$YACC"; then |
||
2312 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
||
2313 | else |
||
2314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2315 | for as_dir in $PATH |
||
2316 | do |
||
2317 | IFS=$as_save_IFS |
||
2318 | test -z "$as_dir" && as_dir=. |
||
2319 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2321 | ac_cv_prog_YACC="$ac_prog" |
||
2322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2323 | break 2 |
||
2324 | fi |
||
2325 | done |
||
2326 | done |
||
2327 | IFS=$as_save_IFS |
||
2328 | |||
2329 | fi |
||
2330 | fi |
||
2331 | YACC=$ac_cv_prog_YACC |
||
2332 | if test -n "$YACC"; then |
||
2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
||
2334 | $as_echo "$YACC" >&6; } |
||
2335 | else |
||
2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2337 | $as_echo "no" >&6; } |
||
2338 | fi |
||
2339 | |||
2340 | |||
2341 | test -n "$YACC" && break |
||
2342 | done |
||
2343 | test -n "$YACC" || YACC="yacc" |
||
2344 | |||
2345 | ac_ext=c |
||
2346 | ac_cpp='$CPP $CPPFLAGS' |
||
2347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2350 | if test -n "$ac_tool_prefix"; then |
||
2351 | for ac_prog in gcc cc |
||
2352 | do |
||
2353 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
2354 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2356 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2357 | if ${ac_cv_prog_CC+:} false; then : |
||
2358 | $as_echo_n "(cached) " >&6 |
||
2359 | else |
||
2360 | if test -n "$CC"; then |
||
2361 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
2362 | else |
||
2363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2364 | for as_dir in $PATH |
||
2365 | do |
||
2366 | IFS=$as_save_IFS |
||
2367 | test -z "$as_dir" && as_dir=. |
||
2368 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2370 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
2371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2372 | break 2 |
||
2373 | fi |
||
2374 | done |
||
2375 | done |
||
2376 | IFS=$as_save_IFS |
||
2377 | |||
2378 | fi |
||
2379 | fi |
||
2380 | CC=$ac_cv_prog_CC |
||
2381 | if test -n "$CC"; then |
||
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
||
2383 | $as_echo "$CC" >&6; } |
||
2384 | else |
||
2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2386 | $as_echo "no" >&6; } |
||
2387 | fi |
||
2388 | |||
2389 | |||
2390 | test -n "$CC" && break |
||
2391 | done |
||
2392 | fi |
||
2393 | if test -z "$CC"; then |
||
2394 | ac_ct_CC=$CC |
||
2395 | for ac_prog in gcc cc |
||
2396 | do |
||
2397 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2398 | set dummy $ac_prog; ac_word=$2 |
||
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2400 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2401 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
||
2402 | $as_echo_n "(cached) " >&6 |
||
2403 | else |
||
2404 | if test -n "$ac_ct_CC"; then |
||
2405 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
2406 | else |
||
2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2408 | for as_dir in $PATH |
||
2409 | do |
||
2410 | IFS=$as_save_IFS |
||
2411 | test -z "$as_dir" && as_dir=. |
||
2412 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2413 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2414 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
2415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2416 | break 2 |
||
2417 | fi |
||
2418 | done |
||
2419 | done |
||
2420 | IFS=$as_save_IFS |
||
2421 | |||
2422 | fi |
||
2423 | fi |
||
2424 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
2425 | if test -n "$ac_ct_CC"; then |
||
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
||
2427 | $as_echo "$ac_ct_CC" >&6; } |
||
2428 | else |
||
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2430 | $as_echo "no" >&6; } |
||
2431 | fi |
||
2432 | |||
2433 | |||
2434 | test -n "$ac_ct_CC" && break |
||
2435 | done |
||
2436 | |||
2437 | if test "x$ac_ct_CC" = x; then |
||
2438 | CC="" |
||
2439 | else |
||
2440 | case $cross_compiling:$ac_tool_warned in |
||
2441 | yes:) |
||
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
2443 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
2444 | ac_tool_warned=yes ;; |
||
2445 | esac |
||
2446 | CC=$ac_ct_CC |
||
2447 | fi |
||
2448 | fi |
||
2449 | |||
2450 | |||
2451 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2453 | as_fn_error $? "no acceptable C compiler found in \$PATH |
||
2454 | See \`config.log' for more details" "$LINENO" 5; } |
||
2455 | |||
2456 | # Provide some information about the compiler. |
||
2457 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
||
2458 | set X $ac_compile |
||
2459 | ac_compiler=$2 |
||
2460 | for ac_option in --version -v -V -qversion; do |
||
2461 | { { ac_try="$ac_compiler $ac_option >&5" |
||
2462 | case "(($ac_try" in |
||
2463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2464 | *) ac_try_echo=$ac_try;; |
||
2465 | esac |
||
2466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2467 | $as_echo "$ac_try_echo"; } >&5 |
||
2468 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
2469 | ac_status=$? |
||
2470 | if test -s conftest.err; then |
||
2471 | sed '10a\ |
||
2472 | ... rest of stderr output deleted ... |
||
2473 | 10q' conftest.err >conftest.er1 |
||
2474 | cat conftest.er1 >&5 |
||
2475 | fi |
||
2476 | rm -f conftest.er1 conftest.err |
||
2477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2478 | test $ac_status = 0; } |
||
2479 | done |
||
2480 | |||
2481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2482 | /* end confdefs.h. */ |
||
2483 | |||
2484 | int |
||
2485 | main () |
||
2486 | { |
||
2487 | |||
2488 | ; |
||
2489 | return 0; |
||
2490 | } |
||
2491 | _ACEOF |
||
2492 | ac_clean_files_save=$ac_clean_files |
||
2493 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
||
2494 | # Try to create an executable without -o first, disregard a.out. |
||
2495 | # It will help us diagnose broken compilers, and finding out an intuition |
||
2496 | # of exeext. |
||
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
||
2498 | $as_echo_n "checking whether the C compiler works... " >&6; } |
||
2499 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
2500 | |||
2501 | # The possible output files: |
||
2502 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
||
2503 | |||
2504 | ac_rmfiles= |
||
2505 | for ac_file in $ac_files |
||
2506 | do |
||
2507 | case $ac_file in |
||
2508 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
2509 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
||
2510 | esac |
||
2511 | done |
||
2512 | rm -f $ac_rmfiles |
||
2513 | |||
2514 | if { { ac_try="$ac_link_default" |
||
2515 | case "(($ac_try" in |
||
2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2517 | *) ac_try_echo=$ac_try;; |
||
2518 | esac |
||
2519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2520 | $as_echo "$ac_try_echo"; } >&5 |
||
2521 | (eval "$ac_link_default") 2>&5 |
||
2522 | ac_status=$? |
||
2523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2524 | test $ac_status = 0; }; then : |
||
2525 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
||
2526 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
||
2527 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
||
2528 | # so that the user can short-circuit this test for compilers unknown to |
||
2529 | # Autoconf. |
||
2530 | for ac_file in $ac_files '' |
||
2531 | do |
||
2532 | test -f "$ac_file" || continue |
||
2533 | case $ac_file in |
||
2534 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
||
2535 | ;; |
||
2536 | [ab].out ) |
||
2537 | # We found the default executable, but exeext='' is most |
||
2538 | # certainly right. |
||
2539 | break;; |
||
2540 | *.* ) |
||
2541 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
||
2542 | then :; else |
||
2543 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
2544 | fi |
||
2545 | # We set ac_cv_exeext here because the later test for it is not |
||
2546 | # safe: cross compilers may not add the suffix if given an `-o' |
||
2547 | # argument, so we may need to know it at that point already. |
||
2548 | # Even if this section looks crufty: it has the advantage of |
||
2549 | # actually working. |
||
2550 | break;; |
||
2551 | * ) |
||
2552 | break;; |
||
2553 | esac |
||
2554 | done |
||
2555 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
||
2556 | |||
2557 | else |
||
2558 | ac_file='' |
||
2559 | fi |
||
2560 | if test -z "$ac_file"; then : |
||
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2562 | $as_echo "no" >&6; } |
||
2563 | $as_echo "$as_me: failed program was:" >&5 |
||
2564 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2565 | |||
2566 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2568 | as_fn_error 77 "C compiler cannot create executables |
||
2569 | See \`config.log' for more details" "$LINENO" 5; } |
||
2570 | else |
||
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
2572 | $as_echo "yes" >&6; } |
||
2573 | fi |
||
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
||
2575 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
||
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
||
2577 | $as_echo "$ac_file" >&6; } |
||
2578 | ac_exeext=$ac_cv_exeext |
||
2579 | |||
2580 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
||
2581 | ac_clean_files=$ac_clean_files_save |
||
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
||
2583 | $as_echo_n "checking for suffix of executables... " >&6; } |
||
2584 | if { { ac_try="$ac_link" |
||
2585 | case "(($ac_try" in |
||
2586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2587 | *) ac_try_echo=$ac_try;; |
||
2588 | esac |
||
2589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2590 | $as_echo "$ac_try_echo"; } >&5 |
||
2591 | (eval "$ac_link") 2>&5 |
||
2592 | ac_status=$? |
||
2593 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2594 | test $ac_status = 0; }; then : |
||
2595 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
2596 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
2597 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
2598 | # `rm'. |
||
2599 | for ac_file in conftest.exe conftest conftest.*; do |
||
2600 | test -f "$ac_file" || continue |
||
2601 | case $ac_file in |
||
2602 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
||
2603 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
2604 | break;; |
||
2605 | * ) break;; |
||
2606 | esac |
||
2607 | done |
||
2608 | else |
||
2609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2611 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
||
2612 | See \`config.log' for more details" "$LINENO" 5; } |
||
2613 | fi |
||
2614 | rm -f conftest conftest$ac_cv_exeext |
||
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
||
2616 | $as_echo "$ac_cv_exeext" >&6; } |
||
2617 | |||
2618 | rm -f conftest.$ac_ext |
||
2619 | EXEEXT=$ac_cv_exeext |
||
2620 | ac_exeext=$EXEEXT |
||
2621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2622 | /* end confdefs.h. */ |
||
2623 | #include <stdio.h> |
||
2624 | int |
||
2625 | main () |
||
2626 | { |
||
2627 | FILE *f = fopen ("conftest.out", "w"); |
||
2628 | return ferror (f) || fclose (f) != 0; |
||
2629 | |||
2630 | ; |
||
2631 | return 0; |
||
2632 | } |
||
2633 | _ACEOF |
||
2634 | ac_clean_files="$ac_clean_files conftest.out" |
||
2635 | # Check that the compiler produces executables we can run. If not, either |
||
2636 | # the compiler is broken, or we cross compile. |
||
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
||
2638 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
||
2639 | if test "$cross_compiling" != yes; then |
||
2640 | { { ac_try="$ac_link" |
||
2641 | case "(($ac_try" in |
||
2642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2643 | *) ac_try_echo=$ac_try;; |
||
2644 | esac |
||
2645 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2646 | $as_echo "$ac_try_echo"; } >&5 |
||
2647 | (eval "$ac_link") 2>&5 |
||
2648 | ac_status=$? |
||
2649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2650 | test $ac_status = 0; } |
||
2651 | if { ac_try='./conftest$ac_cv_exeext' |
||
2652 | { { case "(($ac_try" in |
||
2653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2654 | *) ac_try_echo=$ac_try;; |
||
2655 | esac |
||
2656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2657 | $as_echo "$ac_try_echo"; } >&5 |
||
2658 | (eval "$ac_try") 2>&5 |
||
2659 | ac_status=$? |
||
2660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2661 | test $ac_status = 0; }; }; then |
||
2662 | cross_compiling=no |
||
2663 | else |
||
2664 | if test "$cross_compiling" = maybe; then |
||
2665 | cross_compiling=yes |
||
2666 | else |
||
2667 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2669 | as_fn_error $? "cannot run C compiled programs. |
||
2670 | If you meant to cross compile, use \`--host'. |
||
2671 | See \`config.log' for more details" "$LINENO" 5; } |
||
2672 | fi |
||
2673 | fi |
||
2674 | fi |
||
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
||
2676 | $as_echo "$cross_compiling" >&6; } |
||
2677 | |||
2678 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
||
2679 | ac_clean_files=$ac_clean_files_save |
||
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
||
2681 | $as_echo_n "checking for suffix of object files... " >&6; } |
||
2682 | if ${ac_cv_objext+:} false; then : |
||
2683 | $as_echo_n "(cached) " >&6 |
||
2684 | else |
||
2685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2686 | /* end confdefs.h. */ |
||
2687 | |||
2688 | int |
||
2689 | main () |
||
2690 | { |
||
2691 | |||
2692 | ; |
||
2693 | return 0; |
||
2694 | } |
||
2695 | _ACEOF |
||
2696 | rm -f conftest.o conftest.obj |
||
2697 | if { { ac_try="$ac_compile" |
||
2698 | case "(($ac_try" in |
||
2699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
2700 | *) ac_try_echo=$ac_try;; |
||
2701 | esac |
||
2702 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
2703 | $as_echo "$ac_try_echo"; } >&5 |
||
2704 | (eval "$ac_compile") 2>&5 |
||
2705 | ac_status=$? |
||
2706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
2707 | test $ac_status = 0; }; then : |
||
2708 | for ac_file in conftest.o conftest.obj conftest.*; do |
||
2709 | test -f "$ac_file" || continue; |
||
2710 | case $ac_file in |
||
2711 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
||
2712 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
2713 | break;; |
||
2714 | esac |
||
2715 | done |
||
2716 | else |
||
2717 | $as_echo "$as_me: failed program was:" >&5 |
||
2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2719 | |||
2720 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
2721 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
2722 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
||
2723 | See \`config.log' for more details" "$LINENO" 5; } |
||
2724 | fi |
||
2725 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
2726 | fi |
||
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
||
2728 | $as_echo "$ac_cv_objext" >&6; } |
||
2729 | OBJEXT=$ac_cv_objext |
||
2730 | ac_objext=$OBJEXT |
||
2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
||
2732 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
||
2733 | if ${ac_cv_c_compiler_gnu+:} false; then : |
||
2734 | $as_echo_n "(cached) " >&6 |
||
2735 | else |
||
2736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2737 | /* end confdefs.h. */ |
||
2738 | |||
2739 | int |
||
2740 | main () |
||
2741 | { |
||
2742 | #ifndef __GNUC__ |
||
2743 | choke me |
||
2744 | #endif |
||
2745 | |||
2746 | ; |
||
2747 | return 0; |
||
2748 | } |
||
2749 | _ACEOF |
||
2750 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2751 | ac_compiler_gnu=yes |
||
2752 | else |
||
2753 | ac_compiler_gnu=no |
||
2754 | fi |
||
2755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2756 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
2757 | |||
2758 | fi |
||
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
||
2760 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
||
2761 | if test $ac_compiler_gnu = yes; then |
||
2762 | GCC=yes |
||
2763 | else |
||
2764 | GCC= |
||
2765 | fi |
||
2766 | ac_test_CFLAGS=${CFLAGS+set} |
||
2767 | ac_save_CFLAGS=$CFLAGS |
||
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
||
2769 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
||
2770 | if ${ac_cv_prog_cc_g+:} false; then : |
||
2771 | $as_echo_n "(cached) " >&6 |
||
2772 | else |
||
2773 | ac_save_c_werror_flag=$ac_c_werror_flag |
||
2774 | ac_c_werror_flag=yes |
||
2775 | ac_cv_prog_cc_g=no |
||
2776 | CFLAGS="-g" |
||
2777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2778 | /* end confdefs.h. */ |
||
2779 | |||
2780 | int |
||
2781 | main () |
||
2782 | { |
||
2783 | |||
2784 | ; |
||
2785 | return 0; |
||
2786 | } |
||
2787 | _ACEOF |
||
2788 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2789 | ac_cv_prog_cc_g=yes |
||
2790 | else |
||
2791 | CFLAGS="" |
||
2792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2793 | /* end confdefs.h. */ |
||
2794 | |||
2795 | int |
||
2796 | main () |
||
2797 | { |
||
2798 | |||
2799 | ; |
||
2800 | return 0; |
||
2801 | } |
||
2802 | _ACEOF |
||
2803 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2804 | |||
2805 | else |
||
2806 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
2807 | CFLAGS="-g" |
||
2808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2809 | /* end confdefs.h. */ |
||
2810 | |||
2811 | int |
||
2812 | main () |
||
2813 | { |
||
2814 | |||
2815 | ; |
||
2816 | return 0; |
||
2817 | } |
||
2818 | _ACEOF |
||
2819 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2820 | ac_cv_prog_cc_g=yes |
||
2821 | fi |
||
2822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2823 | fi |
||
2824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2825 | fi |
||
2826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2827 | ac_c_werror_flag=$ac_save_c_werror_flag |
||
2828 | fi |
||
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
||
2830 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
||
2831 | if test "$ac_test_CFLAGS" = set; then |
||
2832 | CFLAGS=$ac_save_CFLAGS |
||
2833 | elif test $ac_cv_prog_cc_g = yes; then |
||
2834 | if test "$GCC" = yes; then |
||
2835 | CFLAGS="-g -O2" |
||
2836 | else |
||
2837 | CFLAGS="-g" |
||
2838 | fi |
||
2839 | else |
||
2840 | if test "$GCC" = yes; then |
||
2841 | CFLAGS="-O2" |
||
2842 | else |
||
2843 | CFLAGS= |
||
2844 | fi |
||
2845 | fi |
||
2846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
||
2847 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
||
2848 | if ${ac_cv_prog_cc_c89+:} false; then : |
||
2849 | $as_echo_n "(cached) " >&6 |
||
2850 | else |
||
2851 | ac_cv_prog_cc_c89=no |
||
2852 | ac_save_CC=$CC |
||
2853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
2854 | /* end confdefs.h. */ |
||
2855 | #include <stdarg.h> |
||
2856 | #include <stdio.h> |
||
2857 | struct stat; |
||
2858 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
2859 | struct buf { int x; }; |
||
2860 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
2861 | static char *e (p, i) |
||
2862 | char **p; |
||
2863 | int i; |
||
2864 | { |
||
2865 | return p[i]; |
||
2866 | } |
||
2867 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
2868 | { |
||
2869 | char *s; |
||
2870 | va_list v; |
||
2871 | va_start (v,p); |
||
2872 | s = g (p, va_arg (v,int)); |
||
2873 | va_end (v); |
||
2874 | return s; |
||
2875 | } |
||
2876 | |||
2877 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
2878 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
2879 | These don't provoke an error unfortunately, instead are silently treated |
||
2880 | as 'x'. The following induces an error, until -std is added to get |
||
2881 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
2882 | array size at least. It's necessary to write '\x00'==0 to get something |
||
2883 | that's true only with -std. */ |
||
2884 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
2885 | |||
2886 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
||
2887 | inside strings and character constants. */ |
||
2888 | #define FOO(x) 'x' |
||
2889 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
||
2890 | |||
2891 | int test (int i, double x); |
||
2892 | struct s1 {int (*f) (int a);}; |
||
2893 | struct s2 {int (*f) (double a);}; |
||
2894 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
2895 | int argc; |
||
2896 | char **argv; |
||
2897 | int |
||
2898 | main () |
||
2899 | { |
||
2900 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
2901 | ; |
||
2902 | return 0; |
||
2903 | } |
||
2904 | _ACEOF |
||
2905 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
||
2906 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
2907 | do |
||
2908 | CC="$ac_save_CC $ac_arg" |
||
2909 | if ac_fn_c_try_compile "$LINENO"; then : |
||
2910 | ac_cv_prog_cc_c89=$ac_arg |
||
2911 | fi |
||
2912 | rm -f core conftest.err conftest.$ac_objext |
||
2913 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
||
2914 | done |
||
2915 | rm -f conftest.$ac_ext |
||
2916 | CC=$ac_save_CC |
||
2917 | |||
2918 | fi |
||
2919 | # AC_CACHE_VAL |
||
2920 | case "x$ac_cv_prog_cc_c89" in |
||
2921 | x) |
||
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
||
2923 | $as_echo "none needed" >&6; } ;; |
||
2924 | xno) |
||
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
||
2926 | $as_echo "unsupported" >&6; } ;; |
||
2927 | *) |
||
2928 | CC="$CC $ac_cv_prog_cc_c89" |
||
2929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
||
2930 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
||
2931 | esac |
||
2932 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
||
2933 | |||
2934 | fi |
||
2935 | |||
2936 | ac_ext=c |
||
2937 | ac_cpp='$CPP $CPPFLAGS' |
||
2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2941 | |||
2942 | ac_ext=cpp |
||
2943 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
2944 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2945 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2946 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
2947 | if test -z "$CXX"; then |
||
2948 | if test -n "$CCC"; then |
||
2949 | CXX=$CCC |
||
2950 | else |
||
2951 | if test -n "$ac_tool_prefix"; then |
||
2952 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
2953 | do |
||
2954 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
2955 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
2956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
2957 | $as_echo_n "checking for $ac_word... " >&6; } |
||
2958 | if ${ac_cv_prog_CXX+:} false; then : |
||
2959 | $as_echo_n "(cached) " >&6 |
||
2960 | else |
||
2961 | if test -n "$CXX"; then |
||
2962 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
2963 | else |
||
2964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2965 | for as_dir in $PATH |
||
2966 | do |
||
2967 | IFS=$as_save_IFS |
||
2968 | test -z "$as_dir" && as_dir=. |
||
2969 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2971 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
2972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2973 | break 2 |
||
2974 | fi |
||
2975 | done |
||
2976 | done |
||
2977 | IFS=$as_save_IFS |
||
2978 | |||
2979 | fi |
||
2980 | fi |
||
2981 | CXX=$ac_cv_prog_CXX |
||
2982 | if test -n "$CXX"; then |
||
2983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
||
2984 | $as_echo "$CXX" >&6; } |
||
2985 | else |
||
2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
2987 | $as_echo "no" >&6; } |
||
2988 | fi |
||
2989 | |||
2990 | |||
2991 | test -n "$CXX" && break |
||
2992 | done |
||
2993 | fi |
||
2994 | if test -z "$CXX"; then |
||
2995 | ac_ct_CXX=$CXX |
||
2996 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
||
2997 | do |
||
2998 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2999 | set dummy $ac_prog; ac_word=$2 |
||
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3001 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3002 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
||
3003 | $as_echo_n "(cached) " >&6 |
||
3004 | else |
||
3005 | if test -n "$ac_ct_CXX"; then |
||
3006 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
3007 | else |
||
3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3009 | for as_dir in $PATH |
||
3010 | do |
||
3011 | IFS=$as_save_IFS |
||
3012 | test -z "$as_dir" && as_dir=. |
||
3013 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3015 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
3016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3017 | break 2 |
||
3018 | fi |
||
3019 | done |
||
3020 | done |
||
3021 | IFS=$as_save_IFS |
||
3022 | |||
3023 | fi |
||
3024 | fi |
||
3025 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
3026 | if test -n "$ac_ct_CXX"; then |
||
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
||
3028 | $as_echo "$ac_ct_CXX" >&6; } |
||
3029 | else |
||
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3031 | $as_echo "no" >&6; } |
||
3032 | fi |
||
3033 | |||
3034 | |||
3035 | test -n "$ac_ct_CXX" && break |
||
3036 | done |
||
3037 | |||
3038 | if test "x$ac_ct_CXX" = x; then |
||
3039 | CXX="g++" |
||
3040 | else |
||
3041 | case $cross_compiling:$ac_tool_warned in |
||
3042 | yes:) |
||
3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3044 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3045 | ac_tool_warned=yes ;; |
||
3046 | esac |
||
3047 | CXX=$ac_ct_CXX |
||
3048 | fi |
||
3049 | fi |
||
3050 | |||
3051 | fi |
||
3052 | fi |
||
3053 | # Provide some information about the compiler. |
||
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
||
3055 | set X $ac_compile |
||
3056 | ac_compiler=$2 |
||
3057 | for ac_option in --version -v -V -qversion; do |
||
3058 | { { ac_try="$ac_compiler $ac_option >&5" |
||
3059 | case "(($ac_try" in |
||
3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3061 | *) ac_try_echo=$ac_try;; |
||
3062 | esac |
||
3063 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3064 | $as_echo "$ac_try_echo"; } >&5 |
||
3065 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
||
3066 | ac_status=$? |
||
3067 | if test -s conftest.err; then |
||
3068 | sed '10a\ |
||
3069 | ... rest of stderr output deleted ... |
||
3070 | 10q' conftest.err >conftest.er1 |
||
3071 | cat conftest.er1 >&5 |
||
3072 | fi |
||
3073 | rm -f conftest.er1 conftest.err |
||
3074 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3075 | test $ac_status = 0; } |
||
3076 | done |
||
3077 | |||
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
||
3079 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
||
3080 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
||
3081 | $as_echo_n "(cached) " >&6 |
||
3082 | else |
||
3083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3084 | /* end confdefs.h. */ |
||
3085 | |||
3086 | int |
||
3087 | main () |
||
3088 | { |
||
3089 | #ifndef __GNUC__ |
||
3090 | choke me |
||
3091 | #endif |
||
3092 | |||
3093 | ; |
||
3094 | return 0; |
||
3095 | } |
||
3096 | _ACEOF |
||
3097 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
3098 | ac_compiler_gnu=yes |
||
3099 | else |
||
3100 | ac_compiler_gnu=no |
||
3101 | fi |
||
3102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3103 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
||
3104 | |||
3105 | fi |
||
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
||
3107 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
||
3108 | if test $ac_compiler_gnu = yes; then |
||
3109 | GXX=yes |
||
3110 | else |
||
3111 | GXX= |
||
3112 | fi |
||
3113 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
||
3114 | ac_save_CXXFLAGS=$CXXFLAGS |
||
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
||
3116 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
||
3117 | if ${ac_cv_prog_cxx_g+:} false; then : |
||
3118 | $as_echo_n "(cached) " >&6 |
||
3119 | else |
||
3120 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
||
3121 | ac_cxx_werror_flag=yes |
||
3122 | ac_cv_prog_cxx_g=no |
||
3123 | CXXFLAGS="-g" |
||
3124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3125 | /* end confdefs.h. */ |
||
3126 | |||
3127 | int |
||
3128 | main () |
||
3129 | { |
||
3130 | |||
3131 | ; |
||
3132 | return 0; |
||
3133 | } |
||
3134 | _ACEOF |
||
3135 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
3136 | ac_cv_prog_cxx_g=yes |
||
3137 | else |
||
3138 | CXXFLAGS="" |
||
3139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3140 | /* end confdefs.h. */ |
||
3141 | |||
3142 | int |
||
3143 | main () |
||
3144 | { |
||
3145 | |||
3146 | ; |
||
3147 | return 0; |
||
3148 | } |
||
3149 | _ACEOF |
||
3150 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
3151 | |||
3152 | else |
||
3153 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
3154 | CXXFLAGS="-g" |
||
3155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3156 | /* end confdefs.h. */ |
||
3157 | |||
3158 | int |
||
3159 | main () |
||
3160 | { |
||
3161 | |||
3162 | ; |
||
3163 | return 0; |
||
3164 | } |
||
3165 | _ACEOF |
||
3166 | if ac_fn_cxx_try_compile "$LINENO"; then : |
||
3167 | ac_cv_prog_cxx_g=yes |
||
3168 | fi |
||
3169 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3170 | fi |
||
3171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3172 | fi |
||
3173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
3174 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
||
3175 | fi |
||
3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
||
3177 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
||
3178 | if test "$ac_test_CXXFLAGS" = set; then |
||
3179 | CXXFLAGS=$ac_save_CXXFLAGS |
||
3180 | elif test $ac_cv_prog_cxx_g = yes; then |
||
3181 | if test "$GXX" = yes; then |
||
3182 | CXXFLAGS="-g -O2" |
||
3183 | else |
||
3184 | CXXFLAGS="-g" |
||
3185 | fi |
||
3186 | else |
||
3187 | if test "$GXX" = yes; then |
||
3188 | CXXFLAGS="-O2" |
||
3189 | else |
||
3190 | CXXFLAGS= |
||
3191 | fi |
||
3192 | fi |
||
3193 | ac_ext=c |
||
3194 | ac_cpp='$CPP $CPPFLAGS' |
||
3195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3198 | |||
3199 | ac_ext=c |
||
3200 | ac_cpp='$CPP $CPPFLAGS' |
||
3201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
||
3205 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
||
3206 | # On Suns, sometimes $CPP names a directory. |
||
3207 | if test -n "$CPP" && test -d "$CPP"; then |
||
3208 | CPP= |
||
3209 | fi |
||
3210 | if test -z "$CPP"; then |
||
3211 | if ${ac_cv_prog_CPP+:} false; then : |
||
3212 | $as_echo_n "(cached) " >&6 |
||
3213 | else |
||
3214 | # Double quotes because CPP needs to be expanded |
||
3215 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
3216 | do |
||
3217 | ac_preproc_ok=false |
||
3218 | for ac_c_preproc_warn_flag in '' yes |
||
3219 | do |
||
3220 | # Use a header file that comes with gcc, so configuring glibc |
||
3221 | # with a fresh cross-compiler works. |
||
3222 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3223 | # <limits.h> exists even on freestanding compilers. |
||
3224 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
3225 | # not just through cpp. "Syntax error" is here to catch this case. |
||
3226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3227 | /* end confdefs.h. */ |
||
3228 | #ifdef __STDC__ |
||
3229 | # include <limits.h> |
||
3230 | #else |
||
3231 | # include <assert.h> |
||
3232 | #endif |
||
3233 | Syntax error |
||
3234 | _ACEOF |
||
3235 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
3236 | |||
3237 | else |
||
3238 | # Broken: fails on valid input. |
||
3239 | continue |
||
3240 | fi |
||
3241 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
3242 | |||
3243 | # OK, works on sane cases. Now check whether nonexistent headers |
||
3244 | # can be detected and how. |
||
3245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3246 | /* end confdefs.h. */ |
||
3247 | #include <ac_nonexistent.h> |
||
3248 | _ACEOF |
||
3249 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
3250 | # Broken: success on invalid input. |
||
3251 | continue |
||
3252 | else |
||
3253 | # Passes both tests. |
||
3254 | ac_preproc_ok=: |
||
3255 | break |
||
3256 | fi |
||
3257 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
3258 | |||
3259 | done |
||
3260 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
3261 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
3262 | if $ac_preproc_ok; then : |
||
3263 | break |
||
3264 | fi |
||
3265 | |||
3266 | done |
||
3267 | ac_cv_prog_CPP=$CPP |
||
3268 | |||
3269 | fi |
||
3270 | CPP=$ac_cv_prog_CPP |
||
3271 | else |
||
3272 | ac_cv_prog_CPP=$CPP |
||
3273 | fi |
||
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
||
3275 | $as_echo "$CPP" >&6; } |
||
3276 | ac_preproc_ok=false |
||
3277 | for ac_c_preproc_warn_flag in '' yes |
||
3278 | do |
||
3279 | # Use a header file that comes with gcc, so configuring glibc |
||
3280 | # with a fresh cross-compiler works. |
||
3281 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3282 | # <limits.h> exists even on freestanding compilers. |
||
3283 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
3284 | # not just through cpp. "Syntax error" is here to catch this case. |
||
3285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3286 | /* end confdefs.h. */ |
||
3287 | #ifdef __STDC__ |
||
3288 | # include <limits.h> |
||
3289 | #else |
||
3290 | # include <assert.h> |
||
3291 | #endif |
||
3292 | Syntax error |
||
3293 | _ACEOF |
||
3294 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
3295 | |||
3296 | else |
||
3297 | # Broken: fails on valid input. |
||
3298 | continue |
||
3299 | fi |
||
3300 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
3301 | |||
3302 | # OK, works on sane cases. Now check whether nonexistent headers |
||
3303 | # can be detected and how. |
||
3304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3305 | /* end confdefs.h. */ |
||
3306 | #include <ac_nonexistent.h> |
||
3307 | _ACEOF |
||
3308 | if ac_fn_c_try_cpp "$LINENO"; then : |
||
3309 | # Broken: success on invalid input. |
||
3310 | continue |
||
3311 | else |
||
3312 | # Passes both tests. |
||
3313 | ac_preproc_ok=: |
||
3314 | break |
||
3315 | fi |
||
3316 | rm -f conftest.err conftest.i conftest.$ac_ext |
||
3317 | |||
3318 | done |
||
3319 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
3320 | rm -f conftest.i conftest.err conftest.$ac_ext |
||
3321 | if $ac_preproc_ok; then : |
||
3322 | |||
3323 | else |
||
3324 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
||
3325 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
||
3326 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
||
3327 | See \`config.log' for more details" "$LINENO" 5; } |
||
3328 | fi |
||
3329 | |||
3330 | ac_ext=c |
||
3331 | ac_cpp='$CPP $CPPFLAGS' |
||
3332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
3333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
3334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
3335 | |||
3336 | |||
3337 | for ac_prog in flex lex |
||
3338 | do |
||
3339 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
3340 | set dummy $ac_prog; ac_word=$2 |
||
3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3342 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3343 | if ${ac_cv_prog_LEX+:} false; then : |
||
3344 | $as_echo_n "(cached) " >&6 |
||
3345 | else |
||
3346 | if test -n "$LEX"; then |
||
3347 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
||
3348 | else |
||
3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3350 | for as_dir in $PATH |
||
3351 | do |
||
3352 | IFS=$as_save_IFS |
||
3353 | test -z "$as_dir" && as_dir=. |
||
3354 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3356 | ac_cv_prog_LEX="$ac_prog" |
||
3357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3358 | break 2 |
||
3359 | fi |
||
3360 | done |
||
3361 | done |
||
3362 | IFS=$as_save_IFS |
||
3363 | |||
3364 | fi |
||
3365 | fi |
||
3366 | LEX=$ac_cv_prog_LEX |
||
3367 | if test -n "$LEX"; then |
||
3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
||
3369 | $as_echo "$LEX" >&6; } |
||
3370 | else |
||
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3372 | $as_echo "no" >&6; } |
||
3373 | fi |
||
3374 | |||
3375 | |||
3376 | test -n "$LEX" && break |
||
3377 | done |
||
3378 | test -n "$LEX" || LEX=":" |
||
3379 | |||
3380 | if test "x$LEX" != "x:"; then |
||
3381 | cat >conftest.l <<_ACEOF |
||
3382 | %% |
||
3383 | a { ECHO; } |
||
3384 | b { REJECT; } |
||
3385 | c { yymore (); } |
||
3386 | d { yyless (1); } |
||
3387 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
||
3388 | yyless ((input () != 0)); } |
||
3389 | f { unput (yytext[0]); } |
||
3390 | . { BEGIN INITIAL; } |
||
3391 | %% |
||
3392 | #ifdef YYTEXT_POINTER |
||
3393 | extern char *yytext; |
||
3394 | #endif |
||
3395 | int |
||
3396 | main (void) |
||
3397 | { |
||
3398 | return ! yylex () + ! yywrap (); |
||
3399 | } |
||
3400 | _ACEOF |
||
3401 | { { ac_try="$LEX conftest.l" |
||
3402 | case "(($ac_try" in |
||
3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
||
3404 | *) ac_try_echo=$ac_try;; |
||
3405 | esac |
||
3406 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
||
3407 | $as_echo "$ac_try_echo"; } >&5 |
||
3408 | (eval "$LEX conftest.l") 2>&5 |
||
3409 | ac_status=$? |
||
3410 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
||
3411 | test $ac_status = 0; } |
||
3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
||
3413 | $as_echo_n "checking lex output file root... " >&6; } |
||
3414 | if ${ac_cv_prog_lex_root+:} false; then : |
||
3415 | $as_echo_n "(cached) " >&6 |
||
3416 | else |
||
3417 | |||
3418 | if test -f lex.yy.c; then |
||
3419 | ac_cv_prog_lex_root=lex.yy |
||
3420 | elif test -f lexyy.c; then |
||
3421 | ac_cv_prog_lex_root=lexyy |
||
3422 | else |
||
3423 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
||
3424 | fi |
||
3425 | fi |
||
3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
||
3427 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
||
3428 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
||
3429 | |||
3430 | if test -z "${LEXLIB+set}"; then |
||
3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
||
3432 | $as_echo_n "checking lex library... " >&6; } |
||
3433 | if ${ac_cv_lib_lex+:} false; then : |
||
3434 | $as_echo_n "(cached) " >&6 |
||
3435 | else |
||
3436 | |||
3437 | ac_save_LIBS=$LIBS |
||
3438 | ac_cv_lib_lex='none needed' |
||
3439 | for ac_lib in '' -lfl -ll; do |
||
3440 | LIBS="$ac_lib $ac_save_LIBS" |
||
3441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3442 | /* end confdefs.h. */ |
||
3443 | `cat $LEX_OUTPUT_ROOT.c` |
||
3444 | _ACEOF |
||
3445 | if ac_fn_c_try_link "$LINENO"; then : |
||
3446 | ac_cv_lib_lex=$ac_lib |
||
3447 | fi |
||
3448 | rm -f core conftest.err conftest.$ac_objext \ |
||
3449 | conftest$ac_exeext conftest.$ac_ext |
||
3450 | test "$ac_cv_lib_lex" != 'none needed' && break |
||
3451 | done |
||
3452 | LIBS=$ac_save_LIBS |
||
3453 | |||
3454 | fi |
||
3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
||
3456 | $as_echo "$ac_cv_lib_lex" >&6; } |
||
3457 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
||
3458 | fi |
||
3459 | |||
3460 | |||
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
||
3462 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
||
3463 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
||
3464 | $as_echo_n "(cached) " >&6 |
||
3465 | else |
||
3466 | # POSIX says lex can declare yytext either as a pointer or an array; the |
||
3467 | # default is implementation-dependent. Figure out which it is, since |
||
3468 | # not all implementations provide the %pointer and %array declarations. |
||
3469 | ac_cv_prog_lex_yytext_pointer=no |
||
3470 | ac_save_LIBS=$LIBS |
||
3471 | LIBS="$LEXLIB $ac_save_LIBS" |
||
3472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3473 | /* end confdefs.h. */ |
||
3474 | |||
3475 | #define YYTEXT_POINTER 1 |
||
3476 | `cat $LEX_OUTPUT_ROOT.c` |
||
3477 | _ACEOF |
||
3478 | if ac_fn_c_try_link "$LINENO"; then : |
||
3479 | ac_cv_prog_lex_yytext_pointer=yes |
||
3480 | fi |
||
3481 | rm -f core conftest.err conftest.$ac_objext \ |
||
3482 | conftest$ac_exeext conftest.$ac_ext |
||
3483 | LIBS=$ac_save_LIBS |
||
3484 | |||
3485 | fi |
||
3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
||
3487 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
||
3488 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
||
3489 | |||
3490 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
||
3491 | |||
3492 | fi |
||
3493 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
||
3494 | |||
3495 | fi |
||
3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
3497 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
||
3498 | set x ${MAKE-make} |
||
3499 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
||
3500 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
||
3501 | $as_echo_n "(cached) " >&6 |
||
3502 | else |
||
3503 | cat >conftest.make <<\_ACEOF |
||
3504 | SHELL = /bin/sh |
||
3505 | all: |
||
3506 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
||
3507 | _ACEOF |
||
3508 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
||
3509 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
||
3510 | *@@@%%%=?*=@@@%%%*) |
||
3511 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
||
3512 | *) |
||
3513 | eval ac_cv_prog_make_${ac_make}_set=no;; |
||
3514 | esac |
||
3515 | rm -f conftest.make |
||
3516 | fi |
||
3517 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
||
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
||
3519 | $as_echo "yes" >&6; } |
||
3520 | SET_MAKE= |
||
3521 | else |
||
3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3523 | $as_echo "no" >&6; } |
||
3524 | SET_MAKE="MAKE=${MAKE-make}" |
||
3525 | fi |
||
3526 | |||
3527 | if test -n "$ac_tool_prefix"; then |
||
3528 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
3529 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3531 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3532 | if ${ac_cv_prog_RANLIB+:} false; then : |
||
3533 | $as_echo_n "(cached) " >&6 |
||
3534 | else |
||
3535 | if test -n "$RANLIB"; then |
||
3536 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
3537 | else |
||
3538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3539 | for as_dir in $PATH |
||
3540 | do |
||
3541 | IFS=$as_save_IFS |
||
3542 | test -z "$as_dir" && as_dir=. |
||
3543 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3545 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
3546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3547 | break 2 |
||
3548 | fi |
||
3549 | done |
||
3550 | done |
||
3551 | IFS=$as_save_IFS |
||
3552 | |||
3553 | fi |
||
3554 | fi |
||
3555 | RANLIB=$ac_cv_prog_RANLIB |
||
3556 | if test -n "$RANLIB"; then |
||
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
||
3558 | $as_echo "$RANLIB" >&6; } |
||
3559 | else |
||
3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3561 | $as_echo "no" >&6; } |
||
3562 | fi |
||
3563 | |||
3564 | |||
3565 | fi |
||
3566 | if test -z "$ac_cv_prog_RANLIB"; then |
||
3567 | ac_ct_RANLIB=$RANLIB |
||
3568 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
3569 | set dummy ranlib; ac_word=$2 |
||
3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3571 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3572 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
||
3573 | $as_echo_n "(cached) " >&6 |
||
3574 | else |
||
3575 | if test -n "$ac_ct_RANLIB"; then |
||
3576 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
3577 | else |
||
3578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3579 | for as_dir in $PATH |
||
3580 | do |
||
3581 | IFS=$as_save_IFS |
||
3582 | test -z "$as_dir" && as_dir=. |
||
3583 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3585 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
3586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3587 | break 2 |
||
3588 | fi |
||
3589 | done |
||
3590 | done |
||
3591 | IFS=$as_save_IFS |
||
3592 | |||
3593 | fi |
||
3594 | fi |
||
3595 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
3596 | if test -n "$ac_ct_RANLIB"; then |
||
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
||
3598 | $as_echo "$ac_ct_RANLIB" >&6; } |
||
3599 | else |
||
3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3601 | $as_echo "no" >&6; } |
||
3602 | fi |
||
3603 | |||
3604 | if test "x$ac_ct_RANLIB" = x; then |
||
3605 | RANLIB=":" |
||
3606 | else |
||
3607 | case $cross_compiling:$ac_tool_warned in |
||
3608 | yes:) |
||
3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
||
3610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
||
3611 | ac_tool_warned=yes ;; |
||
3612 | esac |
||
3613 | RANLIB=$ac_ct_RANLIB |
||
3614 | fi |
||
3615 | else |
||
3616 | RANLIB="$ac_cv_prog_RANLIB" |
||
3617 | fi |
||
3618 | |||
3619 | # Extract the first word of "strip", so it can be a program name with args. |
||
3620 | set dummy strip; ac_word=$2 |
||
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
||
3622 | $as_echo_n "checking for $ac_word... " >&6; } |
||
3623 | if ${ac_cv_prog_STRIP+:} false; then : |
||
3624 | $as_echo_n "(cached) " >&6 |
||
3625 | else |
||
3626 | if test -n "$STRIP"; then |
||
3627 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
3628 | else |
||
3629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3630 | for as_dir in $PATH |
||
3631 | do |
||
3632 | IFS=$as_save_IFS |
||
3633 | test -z "$as_dir" && as_dir=. |
||
3634 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3636 | ac_cv_prog_STRIP="strip" |
||
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3638 | break 2 |
||
3639 | fi |
||
3640 | done |
||
3641 | done |
||
3642 | IFS=$as_save_IFS |
||
3643 | |||
3644 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
||
3645 | fi |
||
3646 | fi |
||
3647 | STRIP=$ac_cv_prog_STRIP |
||
3648 | if test -n "$STRIP"; then |
||
3649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
||
3650 | $as_echo "$STRIP" >&6; } |
||
3651 | else |
||
3652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
||
3653 | $as_echo "no" >&6; } |
||
3654 | fi |
||
3655 | |||
3656 | |||
3657 | |||
3658 | #WIMS_NEED([TEX], [tex], [TeX]) |
||
3659 | #WIMS_NEED([GP], [gp], [Pari/GP]) |
||
3660 | #WIMS_NEED([CONVERT], [convert], [ImageMagick]) |
||
3661 | |||
3662 | # Checks for libraries. |
||
3663 | SAVE=$LIBS |
||
3664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
||
3665 | $as_echo_n "checking for cos in -lm... " >&6; } |
||
3666 | if ${ac_cv_lib_m_cos+:} false; then : |
||
3667 | $as_echo_n "(cached) " >&6 |
||
3668 | else |
||
3669 | ac_check_lib_save_LIBS=$LIBS |
||
3670 | LIBS="-lm $LIBS" |
||
3671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3672 | /* end confdefs.h. */ |
||
3673 | |||
3674 | /* Override any GCC internal prototype to avoid an error. |
||
3675 | Use char because int might match the return type of a GCC |
||
3676 | builtin and then its argument prototype would still apply. */ |
||
3677 | #ifdef __cplusplus |
||
3678 | extern "C" |
||
3679 | #endif |
||
3680 | char cos (); |
||
3681 | int |
||
3682 | main () |
||
3683 | { |
||
3684 | return cos (); |
||
3685 | ; |
||
3686 | return 0; |
||
3687 | } |
||
3688 | _ACEOF |
||
3689 | if ac_fn_c_try_link "$LINENO"; then : |
||
3690 | ac_cv_lib_m_cos=yes |
||
3691 | else |
||
3692 | ac_cv_lib_m_cos=no |
||
3693 | fi |
||
3694 | rm -f core conftest.err conftest.$ac_objext \ |
||
3695 | conftest$ac_exeext conftest.$ac_ext |
||
3696 | LIBS=$ac_check_lib_save_LIBS |
||
3697 | fi |
||
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 |
||
3699 | $as_echo "$ac_cv_lib_m_cos" >&6; } |
||
3700 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
||
3701 | cat >>confdefs.h <<_ACEOF |
||
3702 | #define HAVE_LIBM 1 |
||
3703 | _ACEOF |
||
3704 | |||
3705 | LIBS="-lm $LIBS" |
||
3706 | |||
3707 | fi |
||
3708 | |||
3709 | |||
3710 | if test "$ac_cv_lib_m_cos" = no; then |
||
3711 | echo |
||
3712 | echo ERROR! Your system does not have Math library libm |
||
3713 | echo WIMS cannot be installed. Please report. |
||
3714 | echo |
||
3715 | exit 1 |
||
3716 | fi |
||
3717 | |||
3718 | |||
3719 | for ac_func in rint |
||
3720 | do : |
||
3721 | ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint" |
||
3722 | if test "x$ac_cv_func_rint" = xyes; then : |
||
3723 | cat >>confdefs.h <<_ACEOF |
||
3724 | #define HAVE_RINT 1 |
||
3725 | _ACEOF |
||
3726 | |||
3727 | fi |
||
3728 | done |
||
3729 | |||
3730 | |||
3731 | for ac_func in floor |
||
3732 | do : |
||
3733 | ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" |
||
3734 | if test "x$ac_cv_func_floor" = xyes; then : |
||
3735 | cat >>confdefs.h <<_ACEOF |
||
3736 | #define HAVE_FLOOR 1 |
||
3737 | _ACEOF |
||
3738 | |||
3739 | fi |
||
3740 | done |
||
3741 | |||
3742 | |||
3743 | if test "$ac_cv_func_floor" = no; then |
||
3744 | echo |
||
3745 | echo ERROR! Your system does not have floor |
||
3746 | echo WIMS cannot be installed. Please report. |
||
3747 | echo |
||
3748 | exit 1 |
||
3749 | fi |
||
3750 | |||
3751 | |||
3752 | |||
3753 | for ac_func in pow |
||
3754 | do : |
||
3755 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
||
3756 | if test "x$ac_cv_func_pow" = xyes; then : |
||
3757 | cat >>confdefs.h <<_ACEOF |
||
3758 | #define HAVE_POW 1 |
||
3759 | _ACEOF |
||
3760 | |||
3761 | fi |
||
3762 | done |
||
3763 | |||
3764 | |||
3765 | if test "$ac_cv_func_pow" = no; then |
||
3766 | echo |
||
3767 | echo ERROR! Your system does not have pow |
||
3768 | echo WIMS cannot be installed. Please report. |
||
3769 | echo |
||
3770 | exit 1 |
||
3771 | fi |
||
3772 | |||
3773 | |||
3774 | |||
3775 | for ac_func in sqrt |
||
3776 | do : |
||
3777 | ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt" |
||
3778 | if test "x$ac_cv_func_sqrt" = xyes; then : |
||
3779 | cat >>confdefs.h <<_ACEOF |
||
3780 | #define HAVE_SQRT 1 |
||
3781 | _ACEOF |
||
3782 | |||
3783 | fi |
||
3784 | done |
||
3785 | |||
3786 | |||
3787 | if test "$ac_cv_func_sqrt" = no; then |
||
3788 | echo |
||
3789 | echo ERROR! Your system does not have sqrt |
||
3790 | echo WIMS cannot be installed. Please report. |
||
3791 | echo |
||
3792 | exit 1 |
||
3793 | fi |
||
3794 | |||
3795 | |||
3796 | |||
3797 | LIBS=$SAVE |
||
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheSetup in -lgd" >&5 |
||
3799 | $as_echo_n "checking for gdFontCacheSetup in -lgd... " >&6; } |
||
3800 | if ${ac_cv_lib_gd_gdFontCacheSetup+:} false; then : |
||
3801 | $as_echo_n "(cached) " >&6 |
||
3802 | else |
||
3803 | ac_check_lib_save_LIBS=$LIBS |
||
3804 | LIBS="-lgd $LIBS" |
||
3805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3806 | /* end confdefs.h. */ |
||
3807 | |||
3808 | /* Override any GCC internal prototype to avoid an error. |
||
3809 | Use char because int might match the return type of a GCC |
||
3810 | builtin and then its argument prototype would still apply. */ |
||
3811 | #ifdef __cplusplus |
||
3812 | extern "C" |
||
3813 | #endif |
||
3814 | char gdFontCacheSetup (); |
||
3815 | int |
||
3816 | main () |
||
3817 | { |
||
3818 | return gdFontCacheSetup (); |
||
3819 | ; |
||
3820 | return 0; |
||
3821 | } |
||
3822 | _ACEOF |
||
3823 | if ac_fn_c_try_link "$LINENO"; then : |
||
3824 | ac_cv_lib_gd_gdFontCacheSetup=yes |
||
3825 | else |
||
3826 | ac_cv_lib_gd_gdFontCacheSetup=no |
||
3827 | fi |
||
3828 | rm -f core conftest.err conftest.$ac_objext \ |
||
3829 | conftest$ac_exeext conftest.$ac_ext |
||
3830 | LIBS=$ac_check_lib_save_LIBS |
||
3831 | fi |
||
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheSetup" >&5 |
||
3833 | $as_echo "$ac_cv_lib_gd_gdFontCacheSetup" >&6; } |
||
3834 | if test "x$ac_cv_lib_gd_gdFontCacheSetup" = xyes; then : |
||
3835 | cat >>confdefs.h <<_ACEOF |
||
3836 | #define HAVE_LIBGD 1 |
||
3837 | _ACEOF |
||
3838 | |||
3839 | LIBS="-lgd $LIBS" |
||
3840 | |||
3841 | fi |
||
3842 | |||
3843 | for ac_func in gdFontCacheSetup |
||
3844 | do : |
||
3845 | ac_fn_c_check_func "$LINENO" "gdFontCacheSetup" "ac_cv_func_gdFontCacheSetup" |
||
3846 | if test "x$ac_cv_func_gdFontCacheSetup" = xyes; then : |
||
3847 | cat >>confdefs.h <<_ACEOF |
||
3848 | #define HAVE_GDFONTCACHESETUP 1 |
||
3849 | _ACEOF |
||
3850 | |||
3851 | fi |
||
3852 | done |
||
3853 | |||
3854 | GDLIB=$LIBS |
||
3855 | |||
3856 | LIBS=$SAVE |
||
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
||
3858 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } |
||
3859 | if ${ac_cv_lib_crypt_crypt+:} false; then : |
||
3860 | $as_echo_n "(cached) " >&6 |
||
3861 | else |
||
3862 | ac_check_lib_save_LIBS=$LIBS |
||
3863 | LIBS="-lcrypt $LIBS" |
||
3864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3865 | /* end confdefs.h. */ |
||
3866 | |||
3867 | /* Override any GCC internal prototype to avoid an error. |
||
3868 | Use char because int might match the return type of a GCC |
||
3869 | builtin and then its argument prototype would still apply. */ |
||
3870 | #ifdef __cplusplus |
||
3871 | extern "C" |
||
3872 | #endif |
||
3873 | char crypt (); |
||
3874 | int |
||
3875 | main () |
||
3876 | { |
||
3877 | return crypt (); |
||
3878 | ; |
||
3879 | return 0; |
||
3880 | } |
||
3881 | _ACEOF |
||
3882 | if ac_fn_c_try_link "$LINENO"; then : |
||
3883 | ac_cv_lib_crypt_crypt=yes |
||
3884 | else |
||
3885 | ac_cv_lib_crypt_crypt=no |
||
3886 | fi |
||
3887 | rm -f core conftest.err conftest.$ac_objext \ |
||
3888 | conftest$ac_exeext conftest.$ac_ext |
||
3889 | LIBS=$ac_check_lib_save_LIBS |
||
3890 | fi |
||
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
||
3892 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } |
||
3893 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : |
||
3894 | cat >>confdefs.h <<_ACEOF |
||
3895 | #define HAVE_LIBCRYPT 1 |
||
3896 | _ACEOF |
||
3897 | |||
3898 | LIBS="-lcrypt $LIBS" |
||
3899 | |||
3900 | fi |
||
3901 | |||
3902 | for ac_func in crypt |
||
3903 | do : |
||
3904 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" |
||
3905 | if test "x$ac_cv_func_crypt" = xyes; then : |
||
3906 | cat >>confdefs.h <<_ACEOF |
||
3907 | #define HAVE_CRYPT 1 |
||
3908 | _ACEOF |
||
3909 | |||
3910 | fi |
||
3911 | done |
||
3912 | |||
3913 | CRYPTLIB=$LIBS |
||
3914 | |||
3915 | LIBS=$SAVE |
||
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfl" >&5 |
||
3917 | $as_echo_n "checking for main in -lfl... " >&6; } |
||
3918 | if ${ac_cv_lib_fl_main+:} false; then : |
||
3919 | $as_echo_n "(cached) " >&6 |
||
3920 | else |
||
3921 | ac_check_lib_save_LIBS=$LIBS |
||
3922 | LIBS="-lfl $LIBS" |
||
3923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3924 | /* end confdefs.h. */ |
||
3925 | |||
3926 | |||
3927 | int |
||
3928 | main () |
||
3929 | { |
||
3930 | return main (); |
||
3931 | ; |
||
3932 | return 0; |
||
3933 | } |
||
3934 | _ACEOF |
||
3935 | if ac_fn_c_try_link "$LINENO"; then : |
||
3936 | ac_cv_lib_fl_main=yes |
||
3937 | else |
||
3938 | ac_cv_lib_fl_main=no |
||
3939 | fi |
||
3940 | rm -f core conftest.err conftest.$ac_objext \ |
||
3941 | conftest$ac_exeext conftest.$ac_ext |
||
3942 | LIBS=$ac_check_lib_save_LIBS |
||
3943 | fi |
||
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_main" >&5 |
||
3945 | $as_echo "$ac_cv_lib_fl_main" >&6; } |
||
3946 | if test "x$ac_cv_lib_fl_main" = xyes; then : |
||
3947 | cat >>confdefs.h <<_ACEOF |
||
3948 | #define HAVE_LIBFL 1 |
||
3949 | _ACEOF |
||
3950 | |||
3951 | LIBS="-lfl $LIBS" |
||
3952 | |||
3953 | fi |
||
3954 | |||
3955 | FLEXLIB=$LIBS |
||
3956 | |||
3957 | LIBS=$SAVE |
||
3958 | fun=gethostbyname |
||
3959 | for ac_func in $fun |
||
3960 | do : |
||
3961 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3962 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
3963 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
3964 | cat >>confdefs.h <<_ACEOF |
||
3965 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
3966 | _ACEOF |
||
3967 | |||
3968 | fi |
||
3969 | done |
||
3970 | |||
3971 | if test "$ac_cv_func_$fun" = no; then |
||
3972 | as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$fun" | $as_tr_sh` |
||
3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lnsl" >&5 |
||
3974 | $as_echo_n "checking for $fun in -lnsl... " >&6; } |
||
3975 | if eval \${$as_ac_Lib+:} false; then : |
||
3976 | $as_echo_n "(cached) " >&6 |
||
3977 | else |
||
3978 | ac_check_lib_save_LIBS=$LIBS |
||
3979 | LIBS="-lnsl $LIBS" |
||
3980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
3981 | /* end confdefs.h. */ |
||
3982 | |||
3983 | /* Override any GCC internal prototype to avoid an error. |
||
3984 | Use char because int might match the return type of a GCC |
||
3985 | builtin and then its argument prototype would still apply. */ |
||
3986 | #ifdef __cplusplus |
||
3987 | extern "C" |
||
3988 | #endif |
||
3989 | char $fun (); |
||
3990 | int |
||
3991 | main () |
||
3992 | { |
||
3993 | return $fun (); |
||
3994 | ; |
||
3995 | return 0; |
||
3996 | } |
||
3997 | _ACEOF |
||
3998 | if ac_fn_c_try_link "$LINENO"; then : |
||
3999 | eval "$as_ac_Lib=yes" |
||
4000 | else |
||
4001 | eval "$as_ac_Lib=no" |
||
4002 | fi |
||
4003 | rm -f core conftest.err conftest.$ac_objext \ |
||
4004 | conftest$ac_exeext conftest.$ac_ext |
||
4005 | LIBS=$ac_check_lib_save_LIBS |
||
4006 | fi |
||
4007 | eval ac_res=\$$as_ac_Lib |
||
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4009 | $as_echo "$ac_res" >&6; } |
||
4010 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
||
4011 | cat >>confdefs.h <<_ACEOF |
||
4012 | #define HAVE_LIBNSL 1 |
||
4013 | _ACEOF |
||
4014 | |||
4015 | LIBS="-lnsl $LIBS" |
||
4016 | |||
4017 | fi |
||
4018 | |||
4019 | |||
4020 | if test "$ac_cv_lib_$fun" = no; then |
||
4021 | echo |
||
4022 | echo ERROR! Your system does not have $fun |
||
4023 | echo WIMS cannot be installed. Please report. |
||
4024 | echo |
||
4025 | exit 1 |
||
4026 | fi |
||
4027 | |||
4028 | fi |
||
4029 | |||
4030 | |||
4031 | for ac_func in gethostname |
||
4032 | do : |
||
4033 | ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" |
||
4034 | if test "x$ac_cv_func_gethostname" = xyes; then : |
||
4035 | cat >>confdefs.h <<_ACEOF |
||
4036 | #define HAVE_GETHOSTNAME 1 |
||
4037 | _ACEOF |
||
4038 | |||
4039 | fi |
||
4040 | done |
||
4041 | |||
4042 | |||
4043 | if test "$ac_cv_func_gethostname" = no; then |
||
4044 | echo |
||
4045 | echo ERROR! Your system does not have gethostname |
||
4046 | echo WIMS cannot be installed. Please report. |
||
4047 | echo |
||
4048 | exit 1 |
||
4049 | fi |
||
4050 | |||
4051 | |||
4052 | |||
4053 | fun=socket |
||
4054 | for ac_func in $fun |
||
4055 | do : |
||
4056 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4057 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
4058 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
4059 | cat >>confdefs.h <<_ACEOF |
||
4060 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4061 | _ACEOF |
||
4062 | |||
4063 | fi |
||
4064 | done |
||
4065 | |||
4066 | if test "$ac_cv_func_$fun" = no; then |
||
4067 | as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5 |
||
4069 | $as_echo_n "checking for $fun in -lsocket... " >&6; } |
||
4070 | if eval \${$as_ac_Lib+:} false; then : |
||
4071 | $as_echo_n "(cached) " >&6 |
||
4072 | else |
||
4073 | ac_check_lib_save_LIBS=$LIBS |
||
4074 | LIBS="-lsocket $LIBS" |
||
4075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4076 | /* end confdefs.h. */ |
||
4077 | |||
4078 | /* Override any GCC internal prototype to avoid an error. |
||
4079 | Use char because int might match the return type of a GCC |
||
4080 | builtin and then its argument prototype would still apply. */ |
||
4081 | #ifdef __cplusplus |
||
4082 | extern "C" |
||
4083 | #endif |
||
4084 | char $fun (); |
||
4085 | int |
||
4086 | main () |
||
4087 | { |
||
4088 | return $fun (); |
||
4089 | ; |
||
4090 | return 0; |
||
4091 | } |
||
4092 | _ACEOF |
||
4093 | if ac_fn_c_try_link "$LINENO"; then : |
||
4094 | eval "$as_ac_Lib=yes" |
||
4095 | else |
||
4096 | eval "$as_ac_Lib=no" |
||
4097 | fi |
||
4098 | rm -f core conftest.err conftest.$ac_objext \ |
||
4099 | conftest$ac_exeext conftest.$ac_ext |
||
4100 | LIBS=$ac_check_lib_save_LIBS |
||
4101 | fi |
||
4102 | eval ac_res=\$$as_ac_Lib |
||
4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4104 | $as_echo "$ac_res" >&6; } |
||
4105 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
||
4106 | cat >>confdefs.h <<_ACEOF |
||
4107 | #define HAVE_LIBSOCKET 1 |
||
4108 | _ACEOF |
||
4109 | |||
4110 | LIBS="-lsocket $LIBS" |
||
4111 | |||
4112 | fi |
||
4113 | |||
4114 | if test "$ac_cv_lib_$fun" = no; then |
||
4115 | as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5 |
||
4117 | $as_echo_n "checking for $fun in -lsocket... " >&6; } |
||
4118 | if eval \${$as_ac_Lib+:} false; then : |
||
4119 | $as_echo_n "(cached) " >&6 |
||
4120 | else |
||
4121 | ac_check_lib_save_LIBS=$LIBS |
||
4122 | LIBS="-lsocket -lnsl $LIBS" |
||
4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4124 | /* end confdefs.h. */ |
||
4125 | |||
4126 | /* Override any GCC internal prototype to avoid an error. |
||
4127 | Use char because int might match the return type of a GCC |
||
4128 | builtin and then its argument prototype would still apply. */ |
||
4129 | #ifdef __cplusplus |
||
4130 | extern "C" |
||
4131 | #endif |
||
4132 | char $fun (); |
||
4133 | int |
||
4134 | main () |
||
4135 | { |
||
4136 | return $fun (); |
||
4137 | ; |
||
4138 | return 0; |
||
4139 | } |
||
4140 | _ACEOF |
||
4141 | if ac_fn_c_try_link "$LINENO"; then : |
||
4142 | eval "$as_ac_Lib=yes" |
||
4143 | else |
||
4144 | eval "$as_ac_Lib=no" |
||
4145 | fi |
||
4146 | rm -f core conftest.err conftest.$ac_objext \ |
||
4147 | conftest$ac_exeext conftest.$ac_ext |
||
4148 | LIBS=$ac_check_lib_save_LIBS |
||
4149 | fi |
||
4150 | eval ac_res=\$$as_ac_Lib |
||
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4152 | $as_echo "$ac_res" >&6; } |
||
4153 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
||
4154 | cat >>confdefs.h <<_ACEOF |
||
4155 | #define HAVE_LIBSOCKET 1 |
||
4156 | _ACEOF |
||
4157 | |||
4158 | LIBS="-lsocket $LIBS" |
||
4159 | |||
4160 | fi |
||
4161 | |||
4162 | |||
4163 | if test "$ac_cv_lib_$fun" = no; then |
||
4164 | echo |
||
4165 | echo ERROR! Your system does not have $fun |
||
4166 | echo WIMS cannot be installed. Please report. |
||
4167 | echo |
||
4168 | exit 1 |
||
4169 | fi |
||
4170 | |||
4171 | fi |
||
4172 | fi |
||
4173 | |||
4174 | fun=inet_ntoa |
||
4175 | for ac_func in $fun |
||
4176 | do : |
||
4177 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4178 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
4179 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
4180 | cat >>confdefs.h <<_ACEOF |
||
4181 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4182 | _ACEOF |
||
4183 | |||
4184 | fi |
||
4185 | done |
||
4186 | |||
4187 | if test "$ac_cv_func_$fun" = no; then |
||
4188 | as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5 |
||
4190 | $as_echo_n "checking for $fun in -lsocket... " >&6; } |
||
4191 | if eval \${$as_ac_Lib+:} false; then : |
||
4192 | $as_echo_n "(cached) " >&6 |
||
4193 | else |
||
4194 | ac_check_lib_save_LIBS=$LIBS |
||
4195 | LIBS="-lsocket -lnsl $LIBS" |
||
4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4197 | /* end confdefs.h. */ |
||
4198 | |||
4199 | /* Override any GCC internal prototype to avoid an error. |
||
4200 | Use char because int might match the return type of a GCC |
||
4201 | builtin and then its argument prototype would still apply. */ |
||
4202 | #ifdef __cplusplus |
||
4203 | extern "C" |
||
4204 | #endif |
||
4205 | char $fun (); |
||
4206 | int |
||
4207 | main () |
||
4208 | { |
||
4209 | return $fun (); |
||
4210 | ; |
||
4211 | return 0; |
||
4212 | } |
||
4213 | _ACEOF |
||
4214 | if ac_fn_c_try_link "$LINENO"; then : |
||
4215 | eval "$as_ac_Lib=yes" |
||
4216 | else |
||
4217 | eval "$as_ac_Lib=no" |
||
4218 | fi |
||
4219 | rm -f core conftest.err conftest.$ac_objext \ |
||
4220 | conftest$ac_exeext conftest.$ac_ext |
||
4221 | LIBS=$ac_check_lib_save_LIBS |
||
4222 | fi |
||
4223 | eval ac_res=\$$as_ac_Lib |
||
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4225 | $as_echo "$ac_res" >&6; } |
||
4226 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
||
4227 | cat >>confdefs.h <<_ACEOF |
||
4228 | #define HAVE_LIBSOCKET 1 |
||
4229 | _ACEOF |
||
4230 | |||
4231 | LIBS="-lsocket $LIBS" |
||
4232 | |||
4233 | fi |
||
4234 | |||
4235 | fi |
||
4236 | fun=inet_aton |
||
4237 | for ac_func in $fun |
||
4238 | do : |
||
4239 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4240 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
4241 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
4242 | cat >>confdefs.h <<_ACEOF |
||
4243 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4244 | _ACEOF |
||
4245 | |||
4246 | fi |
||
4247 | done |
||
4248 | |||
4249 | if test "$ac_cv_func_$fun" = no; then |
||
4250 | as_ac_Lib=`$as_echo "ac_cv_lib_resolv_$fun" | $as_tr_sh` |
||
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lresolv" >&5 |
||
4252 | $as_echo_n "checking for $fun in -lresolv... " >&6; } |
||
4253 | if eval \${$as_ac_Lib+:} false; then : |
||
4254 | $as_echo_n "(cached) " >&6 |
||
4255 | else |
||
4256 | ac_check_lib_save_LIBS=$LIBS |
||
4257 | LIBS="-lresolv $LIBS" |
||
4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4259 | /* end confdefs.h. */ |
||
4260 | |||
4261 | /* Override any GCC internal prototype to avoid an error. |
||
4262 | Use char because int might match the return type of a GCC |
||
4263 | builtin and then its argument prototype would still apply. */ |
||
4264 | #ifdef __cplusplus |
||
4265 | extern "C" |
||
4266 | #endif |
||
4267 | char $fun (); |
||
4268 | int |
||
4269 | main () |
||
4270 | { |
||
4271 | return $fun (); |
||
4272 | ; |
||
4273 | return 0; |
||
4274 | } |
||
4275 | _ACEOF |
||
4276 | if ac_fn_c_try_link "$LINENO"; then : |
||
4277 | eval "$as_ac_Lib=yes" |
||
4278 | else |
||
4279 | eval "$as_ac_Lib=no" |
||
4280 | fi |
||
4281 | rm -f core conftest.err conftest.$ac_objext \ |
||
4282 | conftest$ac_exeext conftest.$ac_ext |
||
4283 | LIBS=$ac_check_lib_save_LIBS |
||
4284 | fi |
||
4285 | eval ac_res=\$$as_ac_Lib |
||
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4287 | $as_echo "$ac_res" >&6; } |
||
4288 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
||
4289 | cat >>confdefs.h <<_ACEOF |
||
4290 | #define HAVE_LIBRESOLV 1 |
||
4291 | _ACEOF |
||
4292 | |||
4293 | LIBS="-lresolv $LIBS" |
||
4294 | |||
4295 | fi |
||
4296 | |||
4297 | fi |
||
4298 | NETLIBS=$LIBS |
||
4299 | |||
4300 | LIBS=$SAVE |
||
4301 | |||
4302 | # Checks for header files. |
||
4303 | |||
4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
||
4305 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
||
4306 | if ${ac_cv_path_GREP+:} false; then : |
||
4307 | $as_echo_n "(cached) " >&6 |
||
4308 | else |
||
4309 | if test -z "$GREP"; then |
||
4310 | ac_path_GREP_found=false |
||
4311 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4313 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4314 | do |
||
4315 | IFS=$as_save_IFS |
||
4316 | test -z "$as_dir" && as_dir=. |
||
4317 | for ac_prog in grep ggrep; do |
||
4318 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4319 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4320 | as_fn_executable_p "$ac_path_GREP" || continue |
||
4321 | # Check for GNU ac_path_GREP and select it if it is found. |
||
4322 | # Check for GNU $ac_path_GREP |
||
4323 | case `"$ac_path_GREP" --version 2>&1` in |
||
4324 | *GNU*) |
||
4325 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
||
4326 | *) |
||
4327 | ac_count=0 |
||
4328 | $as_echo_n 0123456789 >"conftest.in" |
||
4329 | while : |
||
4330 | do |
||
4331 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4332 | mv "conftest.tmp" "conftest.in" |
||
4333 | cp "conftest.in" "conftest.nl" |
||
4334 | $as_echo 'GREP' >> "conftest.nl" |
||
4335 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4336 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4337 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4338 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
||
4339 | # Best one so far, save it but keep looking for a better one |
||
4340 | ac_cv_path_GREP="$ac_path_GREP" |
||
4341 | ac_path_GREP_max=$ac_count |
||
4342 | fi |
||
4343 | # 10*(2^10) chars as input seems more than enough |
||
4344 | test $ac_count -gt 10 && break |
||
4345 | done |
||
4346 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4347 | esac |
||
4348 | |||
4349 | $ac_path_GREP_found && break 3 |
||
4350 | done |
||
4351 | done |
||
4352 | done |
||
4353 | IFS=$as_save_IFS |
||
4354 | if test -z "$ac_cv_path_GREP"; then |
||
4355 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
4356 | fi |
||
4357 | else |
||
4358 | ac_cv_path_GREP=$GREP |
||
4359 | fi |
||
4360 | |||
4361 | fi |
||
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
||
4363 | $as_echo "$ac_cv_path_GREP" >&6; } |
||
4364 | GREP="$ac_cv_path_GREP" |
||
4365 | |||
4366 | |||
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
||
4368 | $as_echo_n "checking for egrep... " >&6; } |
||
4369 | if ${ac_cv_path_EGREP+:} false; then : |
||
4370 | $as_echo_n "(cached) " >&6 |
||
4371 | else |
||
4372 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
||
4373 | then ac_cv_path_EGREP="$GREP -E" |
||
4374 | else |
||
4375 | if test -z "$EGREP"; then |
||
4376 | ac_path_EGREP_found=false |
||
4377 | # Loop through the user's path and test for each of PROGNAME-LIST |
||
4378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
4379 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
||
4380 | do |
||
4381 | IFS=$as_save_IFS |
||
4382 | test -z "$as_dir" && as_dir=. |
||
4383 | for ac_prog in egrep; do |
||
4384 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
4385 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
||
4386 | as_fn_executable_p "$ac_path_EGREP" || continue |
||
4387 | # Check for GNU ac_path_EGREP and select it if it is found. |
||
4388 | # Check for GNU $ac_path_EGREP |
||
4389 | case `"$ac_path_EGREP" --version 2>&1` in |
||
4390 | *GNU*) |
||
4391 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
||
4392 | *) |
||
4393 | ac_count=0 |
||
4394 | $as_echo_n 0123456789 >"conftest.in" |
||
4395 | while : |
||
4396 | do |
||
4397 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
||
4398 | mv "conftest.tmp" "conftest.in" |
||
4399 | cp "conftest.in" "conftest.nl" |
||
4400 | $as_echo 'EGREP' >> "conftest.nl" |
||
4401 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
||
4402 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
||
4403 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
||
4404 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
||
4405 | # Best one so far, save it but keep looking for a better one |
||
4406 | ac_cv_path_EGREP="$ac_path_EGREP" |
||
4407 | ac_path_EGREP_max=$ac_count |
||
4408 | fi |
||
4409 | # 10*(2^10) chars as input seems more than enough |
||
4410 | test $ac_count -gt 10 && break |
||
4411 | done |
||
4412 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
||
4413 | esac |
||
4414 | |||
4415 | $ac_path_EGREP_found && break 3 |
||
4416 | done |
||
4417 | done |
||
4418 | done |
||
4419 | IFS=$as_save_IFS |
||
4420 | if test -z "$ac_cv_path_EGREP"; then |
||
4421 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
||
4422 | fi |
||
4423 | else |
||
4424 | ac_cv_path_EGREP=$EGREP |
||
4425 | fi |
||
4426 | |||
4427 | fi |
||
4428 | fi |
||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
||
4430 | $as_echo "$ac_cv_path_EGREP" >&6; } |
||
4431 | EGREP="$ac_cv_path_EGREP" |
||
4432 | |||
4433 | |||
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
||
4435 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
4436 | if ${ac_cv_header_stdc+:} false; then : |
||
4437 | $as_echo_n "(cached) " >&6 |
||
4438 | else |
||
4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4440 | /* end confdefs.h. */ |
||
4441 | #include <stdlib.h> |
||
4442 | #include <stdarg.h> |
||
4443 | #include <string.h> |
||
4444 | #include <float.h> |
||
4445 | |||
4446 | int |
||
4447 | main () |
||
4448 | { |
||
4449 | |||
4450 | ; |
||
4451 | return 0; |
||
4452 | } |
||
4453 | _ACEOF |
||
4454 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4455 | ac_cv_header_stdc=yes |
||
4456 | else |
||
4457 | ac_cv_header_stdc=no |
||
4458 | fi |
||
4459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4460 | |||
4461 | if test $ac_cv_header_stdc = yes; then |
||
4462 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
4463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4464 | /* end confdefs.h. */ |
||
4465 | #include <string.h> |
||
4466 | |||
4467 | _ACEOF |
||
4468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4469 | $EGREP "memchr" >/dev/null 2>&1; then : |
||
4470 | |||
4471 | else |
||
4472 | ac_cv_header_stdc=no |
||
4473 | fi |
||
4474 | rm -f conftest* |
||
4475 | |||
4476 | fi |
||
4477 | |||
4478 | if test $ac_cv_header_stdc = yes; then |
||
4479 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
4480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4481 | /* end confdefs.h. */ |
||
4482 | #include <stdlib.h> |
||
4483 | |||
4484 | _ACEOF |
||
4485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4486 | $EGREP "free" >/dev/null 2>&1; then : |
||
4487 | |||
4488 | else |
||
4489 | ac_cv_header_stdc=no |
||
4490 | fi |
||
4491 | rm -f conftest* |
||
4492 | |||
4493 | fi |
||
4494 | |||
4495 | if test $ac_cv_header_stdc = yes; then |
||
4496 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
4497 | if test "$cross_compiling" = yes; then : |
||
4498 | : |
||
4499 | else |
||
4500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4501 | /* end confdefs.h. */ |
||
4502 | #include <ctype.h> |
||
4503 | #include <stdlib.h> |
||
4504 | #if ((' ' & 0x0FF) == 0x020) |
||
4505 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
4506 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
4507 | #else |
||
4508 | # define ISLOWER(c) \ |
||
4509 | (('a' <= (c) && (c) <= 'i') \ |
||
4510 | || ('j' <= (c) && (c) <= 'r') \ |
||
4511 | || ('s' <= (c) && (c) <= 'z')) |
||
4512 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
4513 | #endif |
||
4514 | |||
4515 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
4516 | int |
||
4517 | main () |
||
4518 | { |
||
4519 | int i; |
||
4520 | for (i = 0; i < 256; i++) |
||
4521 | if (XOR (islower (i), ISLOWER (i)) |
||
4522 | || toupper (i) != TOUPPER (i)) |
||
4523 | return 2; |
||
4524 | return 0; |
||
4525 | } |
||
4526 | _ACEOF |
||
4527 | if ac_fn_c_try_run "$LINENO"; then : |
||
4528 | |||
4529 | else |
||
4530 | ac_cv_header_stdc=no |
||
4531 | fi |
||
4532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
4533 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
4534 | fi |
||
4535 | |||
4536 | fi |
||
4537 | fi |
||
4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
||
4539 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
4540 | if test $ac_cv_header_stdc = yes; then |
||
4541 | |||
4542 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
||
4543 | |||
4544 | fi |
||
4545 | |||
4546 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
4547 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
4548 | inttypes.h stdint.h unistd.h |
||
4549 | do : |
||
4550 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
4551 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
||
4552 | " |
||
4553 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
4554 | cat >>confdefs.h <<_ACEOF |
||
4555 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
4556 | _ACEOF |
||
4557 | |||
4558 | fi |
||
4559 | |||
4560 | done |
||
4561 | |||
4562 | |||
4563 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
||
4564 | if test "x$ac_cv_type_size_t" = xyes; then : |
||
4565 | |||
4566 | else |
||
4567 | |||
4568 | cat >>confdefs.h <<_ACEOF |
||
4569 | #define size_t unsigned int |
||
4570 | _ACEOF |
||
4571 | |||
4572 | fi |
||
4573 | |||
4574 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
||
4575 | # for constant arguments. Useless! |
||
4576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
||
4577 | $as_echo_n "checking for working alloca.h... " >&6; } |
||
4578 | if ${ac_cv_working_alloca_h+:} false; then : |
||
4579 | $as_echo_n "(cached) " >&6 |
||
4580 | else |
||
4581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4582 | /* end confdefs.h. */ |
||
4583 | #include <alloca.h> |
||
4584 | int |
||
4585 | main () |
||
4586 | { |
||
4587 | char *p = (char *) alloca (2 * sizeof (int)); |
||
4588 | if (p) return 0; |
||
4589 | ; |
||
4590 | return 0; |
||
4591 | } |
||
4592 | _ACEOF |
||
4593 | if ac_fn_c_try_link "$LINENO"; then : |
||
4594 | ac_cv_working_alloca_h=yes |
||
4595 | else |
||
4596 | ac_cv_working_alloca_h=no |
||
4597 | fi |
||
4598 | rm -f core conftest.err conftest.$ac_objext \ |
||
4599 | conftest$ac_exeext conftest.$ac_ext |
||
4600 | fi |
||
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
||
4602 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
||
4603 | if test $ac_cv_working_alloca_h = yes; then |
||
4604 | |||
4605 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
||
4606 | |||
4607 | fi |
||
4608 | |||
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
||
4610 | $as_echo_n "checking for alloca... " >&6; } |
||
4611 | if ${ac_cv_func_alloca_works+:} false; then : |
||
4612 | $as_echo_n "(cached) " >&6 |
||
4613 | else |
||
4614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4615 | /* end confdefs.h. */ |
||
4616 | #ifdef __GNUC__ |
||
4617 | # define alloca __builtin_alloca |
||
4618 | #else |
||
4619 | # ifdef _MSC_VER |
||
4620 | # include <malloc.h> |
||
4621 | # define alloca _alloca |
||
4622 | # else |
||
4623 | # ifdef HAVE_ALLOCA_H |
||
4624 | # include <alloca.h> |
||
4625 | # else |
||
4626 | # ifdef _AIX |
||
4627 | #pragma alloca |
||
4628 | # else |
||
4629 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
||
4630 | void *alloca (size_t); |
||
4631 | # endif |
||
4632 | # endif |
||
4633 | # endif |
||
4634 | # endif |
||
4635 | #endif |
||
4636 | |||
4637 | int |
||
4638 | main () |
||
4639 | { |
||
4640 | char *p = (char *) alloca (1); |
||
4641 | if (p) return 0; |
||
4642 | ; |
||
4643 | return 0; |
||
4644 | } |
||
4645 | _ACEOF |
||
4646 | if ac_fn_c_try_link "$LINENO"; then : |
||
4647 | ac_cv_func_alloca_works=yes |
||
4648 | else |
||
4649 | ac_cv_func_alloca_works=no |
||
4650 | fi |
||
4651 | rm -f core conftest.err conftest.$ac_objext \ |
||
4652 | conftest$ac_exeext conftest.$ac_ext |
||
4653 | fi |
||
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
||
4655 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
||
4656 | |||
4657 | if test $ac_cv_func_alloca_works = yes; then |
||
4658 | |||
4659 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
||
4660 | |||
4661 | else |
||
4662 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
||
4663 | # that cause trouble. Some versions do not even contain alloca or |
||
4664 | # contain a buggy version. If you still want to use their alloca, |
||
4665 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
||
4666 | |||
4667 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
||
4668 | |||
4669 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
||
4670 | |||
4671 | |||
4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
||
4673 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
||
4674 | if ${ac_cv_os_cray+:} false; then : |
||
4675 | $as_echo_n "(cached) " >&6 |
||
4676 | else |
||
4677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4678 | /* end confdefs.h. */ |
||
4679 | #if defined CRAY && ! defined CRAY2 |
||
4680 | webecray |
||
4681 | #else |
||
4682 | wenotbecray |
||
4683 | #endif |
||
4684 | |||
4685 | _ACEOF |
||
4686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4687 | $EGREP "webecray" >/dev/null 2>&1; then : |
||
4688 | ac_cv_os_cray=yes |
||
4689 | else |
||
4690 | ac_cv_os_cray=no |
||
4691 | fi |
||
4692 | rm -f conftest* |
||
4693 | |||
4694 | fi |
||
4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
||
4696 | $as_echo "$ac_cv_os_cray" >&6; } |
||
4697 | if test $ac_cv_os_cray = yes; then |
||
4698 | for ac_func in _getb67 GETB67 getb67; do |
||
4699 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4700 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
4701 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
4702 | |||
4703 | cat >>confdefs.h <<_ACEOF |
||
4704 | #define CRAY_STACKSEG_END $ac_func |
||
4705 | _ACEOF |
||
4706 | |||
4707 | break |
||
4708 | fi |
||
4709 | |||
4710 | done |
||
4711 | fi |
||
4712 | |||
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
||
4714 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
||
4715 | if ${ac_cv_c_stack_direction+:} false; then : |
||
4716 | $as_echo_n "(cached) " >&6 |
||
4717 | else |
||
4718 | if test "$cross_compiling" = yes; then : |
||
4719 | ac_cv_c_stack_direction=0 |
||
4720 | else |
||
4721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4722 | /* end confdefs.h. */ |
||
4723 | $ac_includes_default |
||
4724 | int |
||
4725 | find_stack_direction (int *addr, int depth) |
||
4726 | { |
||
4727 | int dir, dummy = 0; |
||
4728 | if (! addr) |
||
4729 | addr = &dummy; |
||
4730 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
||
4731 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
||
4732 | return dir + dummy; |
||
4733 | } |
||
4734 | |||
4735 | int |
||
4736 | main (int argc, char **argv) |
||
4737 | { |
||
4738 | return find_stack_direction (0, argc + !argv + 20) < 0; |
||
4739 | } |
||
4740 | _ACEOF |
||
4741 | if ac_fn_c_try_run "$LINENO"; then : |
||
4742 | ac_cv_c_stack_direction=1 |
||
4743 | else |
||
4744 | ac_cv_c_stack_direction=-1 |
||
4745 | fi |
||
4746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
4747 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
4748 | fi |
||
4749 | |||
4750 | fi |
||
4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
||
4752 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
||
4753 | cat >>confdefs.h <<_ACEOF |
||
4754 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
||
4755 | _ACEOF |
||
4756 | |||
4757 | |||
4758 | fi |
||
4759 | |||
4760 | ac_header_dirent=no |
||
4761 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
||
4762 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
||
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
||
4764 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
||
4765 | if eval \${$as_ac_Header+:} false; then : |
||
4766 | $as_echo_n "(cached) " >&6 |
||
4767 | else |
||
4768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4769 | /* end confdefs.h. */ |
||
4770 | #include <sys/types.h> |
||
4771 | #include <$ac_hdr> |
||
4772 | |||
4773 | int |
||
4774 | main () |
||
4775 | { |
||
4776 | if ((DIR *) 0) |
||
4777 | return 0; |
||
4778 | ; |
||
4779 | return 0; |
||
4780 | } |
||
4781 | _ACEOF |
||
4782 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4783 | eval "$as_ac_Header=yes" |
||
4784 | else |
||
4785 | eval "$as_ac_Header=no" |
||
4786 | fi |
||
4787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4788 | fi |
||
4789 | eval ac_res=\$$as_ac_Header |
||
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
||
4791 | $as_echo "$ac_res" >&6; } |
||
4792 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
4793 | cat >>confdefs.h <<_ACEOF |
||
4794 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
||
4795 | _ACEOF |
||
4796 | |||
4797 | ac_header_dirent=$ac_hdr; break |
||
4798 | fi |
||
4799 | |||
4800 | done |
||
4801 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
||
4802 | if test $ac_header_dirent = dirent.h; then |
||
4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
||
4804 | $as_echo_n "checking for library containing opendir... " >&6; } |
||
4805 | if ${ac_cv_search_opendir+:} false; then : |
||
4806 | $as_echo_n "(cached) " >&6 |
||
4807 | else |
||
4808 | ac_func_search_save_LIBS=$LIBS |
||
4809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4810 | /* end confdefs.h. */ |
||
4811 | |||
4812 | /* Override any GCC internal prototype to avoid an error. |
||
4813 | Use char because int might match the return type of a GCC |
||
4814 | builtin and then its argument prototype would still apply. */ |
||
4815 | #ifdef __cplusplus |
||
4816 | extern "C" |
||
4817 | #endif |
||
4818 | char opendir (); |
||
4819 | int |
||
4820 | main () |
||
4821 | { |
||
4822 | return opendir (); |
||
4823 | ; |
||
4824 | return 0; |
||
4825 | } |
||
4826 | _ACEOF |
||
4827 | for ac_lib in '' dir; do |
||
4828 | if test -z "$ac_lib"; then |
||
4829 | ac_res="none required" |
||
4830 | else |
||
4831 | ac_res=-l$ac_lib |
||
4832 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
4833 | fi |
||
4834 | if ac_fn_c_try_link "$LINENO"; then : |
||
4835 | ac_cv_search_opendir=$ac_res |
||
4836 | fi |
||
4837 | rm -f core conftest.err conftest.$ac_objext \ |
||
4838 | conftest$ac_exeext |
||
4839 | if ${ac_cv_search_opendir+:} false; then : |
||
4840 | break |
||
4841 | fi |
||
4842 | done |
||
4843 | if ${ac_cv_search_opendir+:} false; then : |
||
4844 | |||
4845 | else |
||
4846 | ac_cv_search_opendir=no |
||
4847 | fi |
||
4848 | rm conftest.$ac_ext |
||
4849 | LIBS=$ac_func_search_save_LIBS |
||
4850 | fi |
||
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
||
4852 | $as_echo "$ac_cv_search_opendir" >&6; } |
||
4853 | ac_res=$ac_cv_search_opendir |
||
4854 | if test "$ac_res" != no; then : |
||
4855 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
4856 | |||
4857 | fi |
||
4858 | |||
4859 | else |
||
4860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
||
4861 | $as_echo_n "checking for library containing opendir... " >&6; } |
||
4862 | if ${ac_cv_search_opendir+:} false; then : |
||
4863 | $as_echo_n "(cached) " >&6 |
||
4864 | else |
||
4865 | ac_func_search_save_LIBS=$LIBS |
||
4866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4867 | /* end confdefs.h. */ |
||
4868 | |||
4869 | /* Override any GCC internal prototype to avoid an error. |
||
4870 | Use char because int might match the return type of a GCC |
||
4871 | builtin and then its argument prototype would still apply. */ |
||
4872 | #ifdef __cplusplus |
||
4873 | extern "C" |
||
4874 | #endif |
||
4875 | char opendir (); |
||
4876 | int |
||
4877 | main () |
||
4878 | { |
||
4879 | return opendir (); |
||
4880 | ; |
||
4881 | return 0; |
||
4882 | } |
||
4883 | _ACEOF |
||
4884 | for ac_lib in '' x; do |
||
4885 | if test -z "$ac_lib"; then |
||
4886 | ac_res="none required" |
||
4887 | else |
||
4888 | ac_res=-l$ac_lib |
||
4889 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
4890 | fi |
||
4891 | if ac_fn_c_try_link "$LINENO"; then : |
||
4892 | ac_cv_search_opendir=$ac_res |
||
4893 | fi |
||
4894 | rm -f core conftest.err conftest.$ac_objext \ |
||
4895 | conftest$ac_exeext |
||
4896 | if ${ac_cv_search_opendir+:} false; then : |
||
4897 | break |
||
4898 | fi |
||
4899 | done |
||
4900 | if ${ac_cv_search_opendir+:} false; then : |
||
4901 | |||
4902 | else |
||
4903 | ac_cv_search_opendir=no |
||
4904 | fi |
||
4905 | rm conftest.$ac_ext |
||
4906 | LIBS=$ac_func_search_save_LIBS |
||
4907 | fi |
||
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
||
4909 | $as_echo "$ac_cv_search_opendir" >&6; } |
||
4910 | ac_res=$ac_cv_search_opendir |
||
4911 | if test "$ac_res" != no; then : |
||
4912 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
||
4913 | |||
4914 | fi |
||
4915 | |||
4916 | fi |
||
4917 | |||
4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
||
4919 | $as_echo_n "checking for ANSI C header files... " >&6; } |
||
4920 | if ${ac_cv_header_stdc+:} false; then : |
||
4921 | $as_echo_n "(cached) " >&6 |
||
4922 | else |
||
4923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4924 | /* end confdefs.h. */ |
||
4925 | #include <stdlib.h> |
||
4926 | #include <stdarg.h> |
||
4927 | #include <string.h> |
||
4928 | #include <float.h> |
||
4929 | |||
4930 | int |
||
4931 | main () |
||
4932 | { |
||
4933 | |||
4934 | ; |
||
4935 | return 0; |
||
4936 | } |
||
4937 | _ACEOF |
||
4938 | if ac_fn_c_try_compile "$LINENO"; then : |
||
4939 | ac_cv_header_stdc=yes |
||
4940 | else |
||
4941 | ac_cv_header_stdc=no |
||
4942 | fi |
||
4943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4944 | |||
4945 | if test $ac_cv_header_stdc = yes; then |
||
4946 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
4947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4948 | /* end confdefs.h. */ |
||
4949 | #include <string.h> |
||
4950 | |||
4951 | _ACEOF |
||
4952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4953 | $EGREP "memchr" >/dev/null 2>&1; then : |
||
4954 | |||
4955 | else |
||
4956 | ac_cv_header_stdc=no |
||
4957 | fi |
||
4958 | rm -f conftest* |
||
4959 | |||
4960 | fi |
||
4961 | |||
4962 | if test $ac_cv_header_stdc = yes; then |
||
4963 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
4964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4965 | /* end confdefs.h. */ |
||
4966 | #include <stdlib.h> |
||
4967 | |||
4968 | _ACEOF |
||
4969 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4970 | $EGREP "free" >/dev/null 2>&1; then : |
||
4971 | |||
4972 | else |
||
4973 | ac_cv_header_stdc=no |
||
4974 | fi |
||
4975 | rm -f conftest* |
||
4976 | |||
4977 | fi |
||
4978 | |||
4979 | if test $ac_cv_header_stdc = yes; then |
||
4980 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
4981 | if test "$cross_compiling" = yes; then : |
||
4982 | : |
||
4983 | else |
||
4984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
4985 | /* end confdefs.h. */ |
||
4986 | #include <ctype.h> |
||
4987 | #include <stdlib.h> |
||
4988 | #if ((' ' & 0x0FF) == 0x020) |
||
4989 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
4990 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
4991 | #else |
||
4992 | # define ISLOWER(c) \ |
||
4993 | (('a' <= (c) && (c) <= 'i') \ |
||
4994 | || ('j' <= (c) && (c) <= 'r') \ |
||
4995 | || ('s' <= (c) && (c) <= 'z')) |
||
4996 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
4997 | #endif |
||
4998 | |||
4999 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
5000 | int |
||
5001 | main () |
||
5002 | { |
||
5003 | int i; |
||
5004 | for (i = 0; i < 256; i++) |
||
5005 | if (XOR (islower (i), ISLOWER (i)) |
||
5006 | || toupper (i) != TOUPPER (i)) |
||
5007 | return 2; |
||
5008 | return 0; |
||
5009 | } |
||
5010 | _ACEOF |
||
5011 | if ac_fn_c_try_run "$LINENO"; then : |
||
5012 | |||
5013 | else |
||
5014 | ac_cv_header_stdc=no |
||
5015 | fi |
||
5016 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5017 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5018 | fi |
||
5019 | |||
5020 | fi |
||
5021 | fi |
||
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
||
5023 | $as_echo "$ac_cv_header_stdc" >&6; } |
||
5024 | if test $ac_cv_header_stdc = yes; then |
||
5025 | |||
5026 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
||
5027 | |||
5028 | fi |
||
5029 | |||
5030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
||
5031 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
||
5032 | if ${ac_cv_header_sys_wait_h+:} false; then : |
||
5033 | $as_echo_n "(cached) " >&6 |
||
5034 | else |
||
5035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5036 | /* end confdefs.h. */ |
||
5037 | #include <sys/types.h> |
||
5038 | #include <sys/wait.h> |
||
5039 | #ifndef WEXITSTATUS |
||
5040 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
||
5041 | #endif |
||
5042 | #ifndef WIFEXITED |
||
5043 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
||
5044 | #endif |
||
5045 | |||
5046 | int |
||
5047 | main () |
||
5048 | { |
||
5049 | int s; |
||
5050 | wait (&s); |
||
5051 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
||
5052 | ; |
||
5053 | return 0; |
||
5054 | } |
||
5055 | _ACEOF |
||
5056 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5057 | ac_cv_header_sys_wait_h=yes |
||
5058 | else |
||
5059 | ac_cv_header_sys_wait_h=no |
||
5060 | fi |
||
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5062 | fi |
||
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
||
5064 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
||
5065 | if test $ac_cv_header_sys_wait_h = yes; then |
||
5066 | |||
5067 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
||
5068 | |||
5069 | fi |
||
5070 | |||
5071 | ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" |
||
5072 | if test "x$ac_cv_header_memory_h" = xyes; then : |
||
5073 | |||
5074 | $as_echo "#define NEED_MEMORY_H 1" >>confdefs.h |
||
5075 | |||
5076 | fi |
||
5077 | |||
5078 | |||
5079 | for ac_header in string.h memory.h |
||
5080 | do : |
||
5081 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5082 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
5083 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
5084 | cat >>confdefs.h <<_ACEOF |
||
5085 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5086 | _ACEOF |
||
5087 | |||
5088 | fi |
||
5089 | |||
5090 | done |
||
5091 | |||
5092 | for ac_header in crypt.h arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h \ |
||
5093 | stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h |
||
5094 | do : |
||
5095 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5096 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
||
5097 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
||
5098 | cat >>confdefs.h <<_ACEOF |
||
5099 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5100 | _ACEOF |
||
5101 | |||
5102 | fi |
||
5103 | |||
5104 | done |
||
5105 | |||
5106 | |||
5107 | if test "$ac_cv_header_stdc" = no; then |
||
5108 | echo |
||
5109 | echo ERROR! Your system does not have ANSI C header files |
||
5110 | echo WIMS cannot be installed. Please report. |
||
5111 | echo |
||
5112 | exit 1 |
||
5113 | fi |
||
5114 | |||
5115 | |||
5116 | if test "$ac_cv_header_unistd_h" = no; then |
||
5117 | echo |
||
5118 | echo ERROR! Your system does not have Header file unistd.h |
||
5119 | echo WIMS cannot be installed. Please report. |
||
5120 | echo |
||
5121 | exit 1 |
||
5122 | fi |
||
5123 | |||
5124 | |||
5125 | # Checks for typedefs, structures, and compiler characteristics. |
||
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
||
5127 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
||
5128 | if ${ac_cv_c_const+:} false; then : |
||
5129 | $as_echo_n "(cached) " >&6 |
||
5130 | else |
||
5131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5132 | /* end confdefs.h. */ |
||
5133 | |||
5134 | int |
||
5135 | main () |
||
5136 | { |
||
5137 | |||
5138 | #ifndef __cplusplus |
||
5139 | /* Ultrix mips cc rejects this sort of thing. */ |
||
5140 | typedef int charset[2]; |
||
5141 | const charset cs = { 0, 0 }; |
||
5142 | /* SunOS 4.1.1 cc rejects this. */ |
||
5143 | char const *const *pcpcc; |
||
5144 | char **ppc; |
||
5145 | /* NEC SVR4.0.2 mips cc rejects this. */ |
||
5146 | struct point {int x, y;}; |
||
5147 | static struct point const zero = {0,0}; |
||
5148 | /* AIX XL C 1.02.0.0 rejects this. |
||
5149 | It does not let you subtract one const X* pointer from another in |
||
5150 | an arm of an if-expression whose if-part is not a constant |
||
5151 | expression */ |
||
5152 | const char *g = "string"; |
||
5153 | pcpcc = &g + (g ? g-g : 0); |
||
5154 | /* HPUX 7.0 cc rejects these. */ |
||
5155 | ++pcpcc; |
||
5156 | ppc = (char**) pcpcc; |
||
5157 | pcpcc = (char const *const *) ppc; |
||
5158 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
||
5159 | char tx; |
||
5160 | char *t = &tx; |
||
5161 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
||
5162 | |||
5163 | *t++ = 0; |
||
5164 | if (s) return 0; |
||
5165 | } |
||
5166 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
||
5167 | int x[] = {25, 17}; |
||
5168 | const int *foo = &x[0]; |
||
5169 | ++foo; |
||
5170 | } |
||
5171 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
||
5172 | typedef const int *iptr; |
||
5173 | iptr p = 0; |
||
5174 | ++p; |
||
5175 | } |
||
5176 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
||
5177 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
||
5178 | struct s { int j; const int *ap[3]; } bx; |
||
5179 | struct s *b = &bx; b->j = 5; |
||
5180 | } |
||
5181 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
||
5182 | const int foo = 10; |
||
5183 | if (!foo) return 0; |
||
5184 | } |
||
5185 | return !cs[0] && !zero.x; |
||
5186 | #endif |
||
5187 | |||
5188 | ; |
||
5189 | return 0; |
||
5190 | } |
||
5191 | _ACEOF |
||
5192 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5193 | ac_cv_c_const=yes |
||
5194 | else |
||
5195 | ac_cv_c_const=no |
||
5196 | fi |
||
5197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5198 | fi |
||
5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
||
5200 | $as_echo "$ac_cv_c_const" >&6; } |
||
5201 | if test $ac_cv_c_const = no; then |
||
5202 | |||
5203 | $as_echo "#define const /**/" >>confdefs.h |
||
5204 | |||
5205 | fi |
||
5206 | |||
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
||
5208 | $as_echo_n "checking for inline... " >&6; } |
||
5209 | if ${ac_cv_c_inline+:} false; then : |
||
5210 | $as_echo_n "(cached) " >&6 |
||
5211 | else |
||
5212 | ac_cv_c_inline=no |
||
5213 | for ac_kw in inline __inline__ __inline; do |
||
5214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5215 | /* end confdefs.h. */ |
||
5216 | #ifndef __cplusplus |
||
5217 | typedef int foo_t; |
||
5218 | static $ac_kw foo_t static_foo () {return 0; } |
||
5219 | $ac_kw foo_t foo () {return 0; } |
||
5220 | #endif |
||
5221 | |||
5222 | _ACEOF |
||
5223 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5224 | ac_cv_c_inline=$ac_kw |
||
5225 | fi |
||
5226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5227 | test "$ac_cv_c_inline" != no && break |
||
5228 | done |
||
5229 | |||
5230 | fi |
||
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
||
5232 | $as_echo "$ac_cv_c_inline" >&6; } |
||
5233 | |||
5234 | case $ac_cv_c_inline in |
||
5235 | inline | yes) ;; |
||
5236 | *) |
||
5237 | case $ac_cv_c_inline in |
||
5238 | no) ac_val=;; |
||
5239 | *) ac_val=$ac_cv_c_inline;; |
||
5240 | esac |
||
5241 | cat >>confdefs.h <<_ACEOF |
||
5242 | #ifndef __cplusplus |
||
5243 | #define inline $ac_val |
||
5244 | #endif |
||
5245 | _ACEOF |
||
5246 | ;; |
||
5247 | esac |
||
5248 | |||
5249 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
||
5250 | if test "x$ac_cv_type_pid_t" = xyes; then : |
||
5251 | |||
5252 | else |
||
5253 | |||
5254 | cat >>confdefs.h <<_ACEOF |
||
5255 | #define pid_t int |
||
5256 | _ACEOF |
||
5257 | |||
5258 | fi |
||
5259 | |||
5260 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
||
5261 | if test "x$ac_cv_type_size_t" = xyes; then : |
||
5262 | |||
5263 | else |
||
5264 | |||
5265 | cat >>confdefs.h <<_ACEOF |
||
5266 | #define size_t unsigned int |
||
5267 | _ACEOF |
||
5268 | |||
5269 | fi |
||
5270 | |||
5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
||
5272 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
||
5273 | if ${ac_cv_header_time+:} false; then : |
||
5274 | $as_echo_n "(cached) " >&6 |
||
5275 | else |
||
5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5277 | /* end confdefs.h. */ |
||
5278 | #include <sys/types.h> |
||
5279 | #include <sys/time.h> |
||
5280 | #include <time.h> |
||
5281 | |||
5282 | int |
||
5283 | main () |
||
5284 | { |
||
5285 | if ((struct tm *) 0) |
||
5286 | return 0; |
||
5287 | ; |
||
5288 | return 0; |
||
5289 | } |
||
5290 | _ACEOF |
||
5291 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5292 | ac_cv_header_time=yes |
||
5293 | else |
||
5294 | ac_cv_header_time=no |
||
5295 | fi |
||
5296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5297 | fi |
||
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
||
5299 | $as_echo "$ac_cv_header_time" >&6; } |
||
5300 | if test $ac_cv_header_time = yes; then |
||
5301 | |||
5302 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
||
5303 | |||
5304 | fi |
||
5305 | |||
5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
||
5307 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
||
5308 | if ${ac_cv_struct_tm+:} false; then : |
||
5309 | $as_echo_n "(cached) " >&6 |
||
5310 | else |
||
5311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5312 | /* end confdefs.h. */ |
||
5313 | #include <sys/types.h> |
||
5314 | #include <time.h> |
||
5315 | |||
5316 | int |
||
5317 | main () |
||
5318 | { |
||
5319 | struct tm tm; |
||
5320 | int *p = &tm.tm_sec; |
||
5321 | return !p; |
||
5322 | ; |
||
5323 | return 0; |
||
5324 | } |
||
5325 | _ACEOF |
||
5326 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5327 | ac_cv_struct_tm=time.h |
||
5328 | else |
||
5329 | ac_cv_struct_tm=sys/time.h |
||
5330 | fi |
||
5331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5332 | fi |
||
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
||
5334 | $as_echo "$ac_cv_struct_tm" >&6; } |
||
5335 | if test $ac_cv_struct_tm = sys/time.h; then |
||
5336 | |||
5337 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
||
5338 | |||
5339 | fi |
||
5340 | |||
5341 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
||
5342 | #include <sys/types.h> |
||
5343 | #include <sys/socket.h> |
||
5344 | " |
||
5345 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
||
5346 | |||
5347 | cat >>confdefs.h <<_ACEOF |
||
5348 | #define HAVE_SOCKLEN_T 1 |
||
5349 | _ACEOF |
||
5350 | |||
5351 | |||
5352 | fi |
||
5353 | |||
5354 | |||
5355 | # Runpath |
||
5356 | RPATH= |
||
5357 | case "$CC+$with_dynamic" in |
||
5358 | gcc+yes) RPATH="-Xlinker -rpath -Xlinker ../lib:../../lib:../../../lib";; |
||
5359 | esac |
||
5360 | |||
5361 | # Checks for library functions. |
||
5362 | for ac_header in stdlib.h |
||
5363 | do : |
||
5364 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
||
5365 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
||
5366 | cat >>confdefs.h <<_ACEOF |
||
5367 | #define HAVE_STDLIB_H 1 |
||
5368 | _ACEOF |
||
5369 | |||
5370 | fi |
||
5371 | |||
5372 | done |
||
5373 | |||
5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 |
||
5375 | $as_echo_n "checking for GNU libc compatible malloc... " >&6; } |
||
5376 | if ${ac_cv_func_malloc_0_nonnull+:} false; then : |
||
5377 | $as_echo_n "(cached) " >&6 |
||
5378 | else |
||
5379 | if test "$cross_compiling" = yes; then : |
||
5380 | ac_cv_func_malloc_0_nonnull=no |
||
5381 | else |
||
5382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5383 | /* end confdefs.h. */ |
||
5384 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
||
5385 | # include <stdlib.h> |
||
5386 | #else |
||
5387 | char *malloc (); |
||
5388 | #endif |
||
5389 | |||
5390 | int |
||
5391 | main () |
||
5392 | { |
||
5393 | return ! malloc (0); |
||
5394 | ; |
||
5395 | return 0; |
||
5396 | } |
||
5397 | _ACEOF |
||
5398 | if ac_fn_c_try_run "$LINENO"; then : |
||
5399 | ac_cv_func_malloc_0_nonnull=yes |
||
5400 | else |
||
5401 | ac_cv_func_malloc_0_nonnull=no |
||
5402 | fi |
||
5403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5404 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5405 | fi |
||
5406 | |||
5407 | fi |
||
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 |
||
5409 | $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } |
||
5410 | if test $ac_cv_func_malloc_0_nonnull = yes; then : |
||
5411 | |||
5412 | $as_echo "#define HAVE_MALLOC 1" >>confdefs.h |
||
5413 | |||
5414 | else |
||
5415 | $as_echo "#define HAVE_MALLOC 0" >>confdefs.h |
||
5416 | |||
5417 | case " $LIBOBJS " in |
||
5418 | *" malloc.$ac_objext "* ) ;; |
||
5419 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" |
||
5420 | ;; |
||
5421 | esac |
||
5422 | |||
5423 | |||
5424 | $as_echo "#define malloc rpl_malloc" >>confdefs.h |
||
5425 | |||
5426 | fi |
||
5427 | |||
5428 | |||
5429 | |||
5430 | if test "$ac_cv_func_malloc_0_nonnull" = no; then |
||
5431 | echo |
||
5432 | echo ERROR! Your system does not have malloc |
||
5433 | echo WIMS cannot be installed. Please report. |
||
5434 | echo |
||
5435 | exit 1 |
||
5436 | fi |
||
5437 | |||
5438 | for ac_header in stdlib.h |
||
5439 | do : |
||
5440 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
||
5441 | if test "x$ac_cv_header_stdlib_h" = xyes; then : |
||
5442 | cat >>confdefs.h <<_ACEOF |
||
5443 | #define HAVE_STDLIB_H 1 |
||
5444 | _ACEOF |
||
5445 | |||
5446 | fi |
||
5447 | |||
5448 | done |
||
5449 | |||
5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 |
||
5451 | $as_echo_n "checking for GNU libc compatible realloc... " >&6; } |
||
5452 | if ${ac_cv_func_realloc_0_nonnull+:} false; then : |
||
5453 | $as_echo_n "(cached) " >&6 |
||
5454 | else |
||
5455 | if test "$cross_compiling" = yes; then : |
||
5456 | ac_cv_func_realloc_0_nonnull=no |
||
5457 | else |
||
5458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5459 | /* end confdefs.h. */ |
||
5460 | #if defined STDC_HEADERS || defined HAVE_STDLIB_H |
||
5461 | # include <stdlib.h> |
||
5462 | #else |
||
5463 | char *realloc (); |
||
5464 | #endif |
||
5465 | |||
5466 | int |
||
5467 | main () |
||
5468 | { |
||
5469 | return ! realloc (0, 0); |
||
5470 | ; |
||
5471 | return 0; |
||
5472 | } |
||
5473 | _ACEOF |
||
5474 | if ac_fn_c_try_run "$LINENO"; then : |
||
5475 | ac_cv_func_realloc_0_nonnull=yes |
||
5476 | else |
||
5477 | ac_cv_func_realloc_0_nonnull=no |
||
5478 | fi |
||
5479 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5480 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5481 | fi |
||
5482 | |||
5483 | fi |
||
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 |
||
5485 | $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } |
||
5486 | if test $ac_cv_func_realloc_0_nonnull = yes; then : |
||
5487 | |||
5488 | $as_echo "#define HAVE_REALLOC 1" >>confdefs.h |
||
5489 | |||
5490 | else |
||
5491 | $as_echo "#define HAVE_REALLOC 0" >>confdefs.h |
||
5492 | |||
5493 | case " $LIBOBJS " in |
||
5494 | *" realloc.$ac_objext "* ) ;; |
||
5495 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" |
||
5496 | ;; |
||
5497 | esac |
||
5498 | |||
5499 | |||
5500 | $as_echo "#define realloc rpl_realloc" >>confdefs.h |
||
5501 | |||
5502 | fi |
||
5503 | |||
5504 | |||
5505 | |||
5506 | if test "$ac_cv_func_realloc_0_nonnull" = no; then |
||
5507 | echo |
||
5508 | echo ERROR! Your system does not have realloc |
||
5509 | echo WIMS cannot be installed. Please report. |
||
5510 | echo |
||
5511 | exit 1 |
||
5512 | fi |
||
5513 | |||
5514 | for ac_header in vfork.h |
||
5515 | do : |
||
5516 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
||
5517 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
||
5518 | cat >>confdefs.h <<_ACEOF |
||
5519 | #define HAVE_VFORK_H 1 |
||
5520 | _ACEOF |
||
5521 | |||
5522 | fi |
||
5523 | |||
5524 | done |
||
5525 | |||
5526 | for ac_func in fork vfork |
||
5527 | do : |
||
5528 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
5529 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
5530 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
5531 | cat >>confdefs.h <<_ACEOF |
||
5532 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
5533 | _ACEOF |
||
5534 | |||
5535 | fi |
||
5536 | done |
||
5537 | |||
5538 | if test "x$ac_cv_func_fork" = xyes; then |
||
5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
||
5540 | $as_echo_n "checking for working fork... " >&6; } |
||
5541 | if ${ac_cv_func_fork_works+:} false; then : |
||
5542 | $as_echo_n "(cached) " >&6 |
||
5543 | else |
||
5544 | if test "$cross_compiling" = yes; then : |
||
5545 | ac_cv_func_fork_works=cross |
||
5546 | else |
||
5547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5548 | /* end confdefs.h. */ |
||
5549 | $ac_includes_default |
||
5550 | int |
||
5551 | main () |
||
5552 | { |
||
5553 | |||
5554 | /* By Ruediger Kuhlmann. */ |
||
5555 | return fork () < 0; |
||
5556 | |||
5557 | ; |
||
5558 | return 0; |
||
5559 | } |
||
5560 | _ACEOF |
||
5561 | if ac_fn_c_try_run "$LINENO"; then : |
||
5562 | ac_cv_func_fork_works=yes |
||
5563 | else |
||
5564 | ac_cv_func_fork_works=no |
||
5565 | fi |
||
5566 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5567 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5568 | fi |
||
5569 | |||
5570 | fi |
||
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
||
5572 | $as_echo "$ac_cv_func_fork_works" >&6; } |
||
5573 | |||
5574 | else |
||
5575 | ac_cv_func_fork_works=$ac_cv_func_fork |
||
5576 | fi |
||
5577 | if test "x$ac_cv_func_fork_works" = xcross; then |
||
5578 | case $host in |
||
5579 | *-*-amigaos* | *-*-msdosdjgpp*) |
||
5580 | # Override, as these systems have only a dummy fork() stub |
||
5581 | ac_cv_func_fork_works=no |
||
5582 | ;; |
||
5583 | *) |
||
5584 | ac_cv_func_fork_works=yes |
||
5585 | ;; |
||
5586 | esac |
||
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
||
5588 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
||
5589 | fi |
||
5590 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
||
5591 | if test "x$ac_cv_func_vfork" = xyes; then |
||
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
||
5593 | $as_echo_n "checking for working vfork... " >&6; } |
||
5594 | if ${ac_cv_func_vfork_works+:} false; then : |
||
5595 | $as_echo_n "(cached) " >&6 |
||
5596 | else |
||
5597 | if test "$cross_compiling" = yes; then : |
||
5598 | ac_cv_func_vfork_works=cross |
||
5599 | else |
||
5600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5601 | /* end confdefs.h. */ |
||
5602 | /* Thanks to Paul Eggert for this test. */ |
||
5603 | $ac_includes_default |
||
5604 | #include <sys/wait.h> |
||
5605 | #ifdef HAVE_VFORK_H |
||
5606 | # include <vfork.h> |
||
5607 | #endif |
||
5608 | /* On some sparc systems, changes by the child to local and incoming |
||
5609 | argument registers are propagated back to the parent. The compiler |
||
5610 | is told about this with #include <vfork.h>, but some compilers |
||
5611 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
||
5612 | static variable whose address is put into a register that is |
||
5613 | clobbered by the vfork. */ |
||
5614 | static void |
||
5615 | #ifdef __cplusplus |
||
5616 | sparc_address_test (int arg) |
||
5617 | # else |
||
5618 | sparc_address_test (arg) int arg; |
||
5619 | #endif |
||
5620 | { |
||
5621 | static pid_t child; |
||
5622 | if (!child) { |
||
5623 | child = vfork (); |
||
5624 | if (child < 0) { |
||
5625 | perror ("vfork"); |
||
5626 | _exit(2); |
||
5627 | } |
||
5628 | if (!child) { |
||
5629 | arg = getpid(); |
||
5630 | write(-1, "", 0); |
||
5631 | _exit (arg); |
||
5632 | } |
||
5633 | } |
||
5634 | } |
||
5635 | |||
5636 | int |
||
5637 | main () |
||
5638 | { |
||
5639 | pid_t parent = getpid (); |
||
5640 | pid_t child; |
||
5641 | |||
5642 | sparc_address_test (0); |
||
5643 | |||
5644 | child = vfork (); |
||
5645 | |||
5646 | if (child == 0) { |
||
5647 | /* Here is another test for sparc vfork register problems. This |
||
5648 | test uses lots of local variables, at least as many local |
||
5649 | variables as main has allocated so far including compiler |
||
5650 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
||
5651 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
||
5652 | reuse the register of parent for one of the local variables, |
||
5653 | since it will think that parent can't possibly be used any more |
||
5654 | in this routine. Assigning to the local variable will thus |
||
5655 | munge parent in the parent process. */ |
||
5656 | pid_t |
||
5657 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
||
5658 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
||
5659 | /* Convince the compiler that p..p7 are live; otherwise, it might |
||
5660 | use the same hardware register for all 8 local variables. */ |
||
5661 | if (p != p1 || p != p2 || p != p3 || p != p4 |
||
5662 | || p != p5 || p != p6 || p != p7) |
||
5663 | _exit(1); |
||
5664 | |||
5665 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
||
5666 | from child file descriptors. If the child closes a descriptor |
||
5667 | before it execs or exits, this munges the parent's descriptor |
||
5668 | as well. Test for this by closing stdout in the child. */ |
||
5669 | _exit(close(fileno(stdout)) != 0); |
||
5670 | } else { |
||
5671 | int status; |
||
5672 | struct stat st; |
||
5673 | |||
5674 | while (wait(&status) != child) |
||
5675 | ; |
||
5676 | return ( |
||
5677 | /* Was there some problem with vforking? */ |
||
5678 | child < 0 |
||
5679 | |||
5680 | /* Did the child fail? (This shouldn't happen.) */ |
||
5681 | || status |
||
5682 | |||
5683 | /* Did the vfork/compiler bug occur? */ |
||
5684 | || parent != getpid() |
||
5685 | |||
5686 | /* Did the file descriptor bug occur? */ |
||
5687 | || fstat(fileno(stdout), &st) != 0 |
||
5688 | ); |
||
5689 | } |
||
5690 | } |
||
5691 | _ACEOF |
||
5692 | if ac_fn_c_try_run "$LINENO"; then : |
||
5693 | ac_cv_func_vfork_works=yes |
||
5694 | else |
||
5695 | ac_cv_func_vfork_works=no |
||
5696 | fi |
||
5697 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5698 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5699 | fi |
||
5700 | |||
5701 | fi |
||
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
||
5703 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
||
5704 | |||
5705 | fi; |
||
5706 | if test "x$ac_cv_func_fork_works" = xcross; then |
||
5707 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
||
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
||
5709 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
||
5710 | fi |
||
5711 | |||
5712 | if test "x$ac_cv_func_vfork_works" = xyes; then |
||
5713 | |||
5714 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
||
5715 | |||
5716 | else |
||
5717 | |||
5718 | $as_echo "#define vfork fork" >>confdefs.h |
||
5719 | |||
5720 | fi |
||
5721 | if test "x$ac_cv_func_fork_works" = xyes; then |
||
5722 | |||
5723 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
||
5724 | |||
5725 | fi |
||
5726 | |||
5727 | |||
5728 | if test "$ac_cv_func_fork_works" = no; then |
||
5729 | echo |
||
5730 | echo ERROR! Your system does not have working fork |
||
5731 | echo WIMS cannot be installed. Please report. |
||
5732 | echo |
||
5733 | exit 1 |
||
5734 | fi |
||
5735 | |||
5736 | |||
5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 |
||
5738 | $as_echo_n "checking for error_at_line... " >&6; } |
||
5739 | if ${ac_cv_lib_error_at_line+:} false; then : |
||
5740 | $as_echo_n "(cached) " >&6 |
||
5741 | else |
||
5742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5743 | /* end confdefs.h. */ |
||
5744 | #include <error.h> |
||
5745 | int |
||
5746 | main () |
||
5747 | { |
||
5748 | error_at_line (0, 0, "", 0, "an error occurred"); |
||
5749 | ; |
||
5750 | return 0; |
||
5751 | } |
||
5752 | _ACEOF |
||
5753 | if ac_fn_c_try_link "$LINENO"; then : |
||
5754 | ac_cv_lib_error_at_line=yes |
||
5755 | else |
||
5756 | ac_cv_lib_error_at_line=no |
||
5757 | fi |
||
5758 | rm -f core conftest.err conftest.$ac_objext \ |
||
5759 | conftest$ac_exeext conftest.$ac_ext |
||
5760 | fi |
||
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 |
||
5762 | $as_echo "$ac_cv_lib_error_at_line" >&6; } |
||
5763 | if test $ac_cv_lib_error_at_line = no; then |
||
5764 | case " $LIBOBJS " in |
||
5765 | *" error.$ac_objext "* ) ;; |
||
5766 | *) LIBOBJS="$LIBOBJS error.$ac_objext" |
||
5767 | ;; |
||
5768 | esac |
||
5769 | |||
5770 | fi |
||
5771 | |||
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
||
5773 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
||
5774 | if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : |
||
5775 | $as_echo_n "(cached) " >&6 |
||
5776 | else |
||
5777 | rm -f conftest.sym conftest.file |
||
5778 | echo >conftest.file |
||
5779 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
||
5780 | if test "$cross_compiling" = yes; then : |
||
5781 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
5782 | else |
||
5783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5784 | /* end confdefs.h. */ |
||
5785 | $ac_includes_default |
||
5786 | int |
||
5787 | main () |
||
5788 | { |
||
5789 | struct stat sbuf; |
||
5790 | /* Linux will dereference the symlink and fail, as required by POSIX. |
||
5791 | That is better in the sense that it means we will not |
||
5792 | have to compile and use the lstat wrapper. */ |
||
5793 | return lstat ("conftest.sym/", &sbuf) == 0; |
||
5794 | ; |
||
5795 | return 0; |
||
5796 | } |
||
5797 | _ACEOF |
||
5798 | if ac_fn_c_try_run "$LINENO"; then : |
||
5799 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
||
5800 | else |
||
5801 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
5802 | fi |
||
5803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5804 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5805 | fi |
||
5806 | |||
5807 | else |
||
5808 | # If the `ln -s' command failed, then we probably don't even |
||
5809 | # have an lstat function. |
||
5810 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
5811 | fi |
||
5812 | rm -f conftest.sym conftest.file |
||
5813 | |||
5814 | fi |
||
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
||
5816 | $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
||
5817 | |||
5818 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
||
5819 | |||
5820 | cat >>confdefs.h <<_ACEOF |
||
5821 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
||
5822 | _ACEOF |
||
5823 | |||
5824 | |||
5825 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then |
||
5826 | case " $LIBOBJS " in |
||
5827 | *" lstat.$ac_objext "* ) ;; |
||
5828 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
||
5829 | ;; |
||
5830 | esac |
||
5831 | |||
5832 | fi |
||
5833 | |||
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 |
||
5835 | $as_echo_n "checking whether lstat accepts an empty string... " >&6; } |
||
5836 | if ${ac_cv_func_lstat_empty_string_bug+:} false; then : |
||
5837 | $as_echo_n "(cached) " >&6 |
||
5838 | else |
||
5839 | if test "$cross_compiling" = yes; then : |
||
5840 | ac_cv_func_lstat_empty_string_bug=yes |
||
5841 | else |
||
5842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5843 | /* end confdefs.h. */ |
||
5844 | $ac_includes_default |
||
5845 | int |
||
5846 | main () |
||
5847 | { |
||
5848 | struct stat sbuf; |
||
5849 | return lstat ("", &sbuf) == 0; |
||
5850 | ; |
||
5851 | return 0; |
||
5852 | } |
||
5853 | _ACEOF |
||
5854 | if ac_fn_c_try_run "$LINENO"; then : |
||
5855 | ac_cv_func_lstat_empty_string_bug=no |
||
5856 | else |
||
5857 | ac_cv_func_lstat_empty_string_bug=yes |
||
5858 | fi |
||
5859 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5860 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5861 | fi |
||
5862 | |||
5863 | fi |
||
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
||
5865 | $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } |
||
5866 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
||
5867 | case " $LIBOBJS " in |
||
5868 | *" lstat.$ac_objext "* ) ;; |
||
5869 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
||
5870 | ;; |
||
5871 | esac |
||
5872 | |||
5873 | |||
5874 | cat >>confdefs.h <<_ACEOF |
||
5875 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 |
||
5876 | _ACEOF |
||
5877 | |||
5878 | fi |
||
5879 | |||
5880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
||
5881 | $as_echo_n "checking for working memcmp... " >&6; } |
||
5882 | if ${ac_cv_func_memcmp_working+:} false; then : |
||
5883 | $as_echo_n "(cached) " >&6 |
||
5884 | else |
||
5885 | if test "$cross_compiling" = yes; then : |
||
5886 | ac_cv_func_memcmp_working=no |
||
5887 | else |
||
5888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5889 | /* end confdefs.h. */ |
||
5890 | $ac_includes_default |
||
5891 | int |
||
5892 | main () |
||
5893 | { |
||
5894 | |||
5895 | /* Some versions of memcmp are not 8-bit clean. */ |
||
5896 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
||
5897 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
||
5898 | return 1; |
||
5899 | |||
5900 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
||
5901 | or more and with at least one buffer not starting on a 4-byte boundary. |
||
5902 | William Lewis provided this test program. */ |
||
5903 | { |
||
5904 | char foo[21]; |
||
5905 | char bar[21]; |
||
5906 | int i; |
||
5907 | for (i = 0; i < 4; i++) |
||
5908 | { |
||
5909 | char *a = foo + i; |
||
5910 | char *b = bar + i; |
||
5911 | strcpy (a, "--------01111111"); |
||
5912 | strcpy (b, "--------10000000"); |
||
5913 | if (memcmp (a, b, 16) >= 0) |
||
5914 | return 1; |
||
5915 | } |
||
5916 | return 0; |
||
5917 | } |
||
5918 | |||
5919 | ; |
||
5920 | return 0; |
||
5921 | } |
||
5922 | _ACEOF |
||
5923 | if ac_fn_c_try_run "$LINENO"; then : |
||
5924 | ac_cv_func_memcmp_working=yes |
||
5925 | else |
||
5926 | ac_cv_func_memcmp_working=no |
||
5927 | fi |
||
5928 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
5929 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
5930 | fi |
||
5931 | |||
5932 | fi |
||
5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
||
5934 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
||
5935 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
||
5936 | *" memcmp.$ac_objext "* ) ;; |
||
5937 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
||
5938 | ;; |
||
5939 | esac |
||
5940 | |||
5941 | |||
5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
||
5943 | $as_echo_n "checking return type of signal handlers... " >&6; } |
||
5944 | if ${ac_cv_type_signal+:} false; then : |
||
5945 | $as_echo_n "(cached) " >&6 |
||
5946 | else |
||
5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5948 | /* end confdefs.h. */ |
||
5949 | #include <sys/types.h> |
||
5950 | #include <signal.h> |
||
5951 | |||
5952 | int |
||
5953 | main () |
||
5954 | { |
||
5955 | return *(signal (0, 0)) (0) == 1; |
||
5956 | ; |
||
5957 | return 0; |
||
5958 | } |
||
5959 | _ACEOF |
||
5960 | if ac_fn_c_try_compile "$LINENO"; then : |
||
5961 | ac_cv_type_signal=int |
||
5962 | else |
||
5963 | ac_cv_type_signal=void |
||
5964 | fi |
||
5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5966 | fi |
||
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
||
5968 | $as_echo "$ac_cv_type_signal" >&6; } |
||
5969 | |||
5970 | cat >>confdefs.h <<_ACEOF |
||
5971 | #define RETSIGTYPE $ac_cv_type_signal |
||
5972 | _ACEOF |
||
5973 | |||
5974 | |||
5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 |
||
5976 | $as_echo_n "checking whether stat accepts an empty string... " >&6; } |
||
5977 | if ${ac_cv_func_stat_empty_string_bug+:} false; then : |
||
5978 | $as_echo_n "(cached) " >&6 |
||
5979 | else |
||
5980 | if test "$cross_compiling" = yes; then : |
||
5981 | ac_cv_func_stat_empty_string_bug=yes |
||
5982 | else |
||
5983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
5984 | /* end confdefs.h. */ |
||
5985 | $ac_includes_default |
||
5986 | int |
||
5987 | main () |
||
5988 | { |
||
5989 | struct stat sbuf; |
||
5990 | return stat ("", &sbuf) == 0; |
||
5991 | ; |
||
5992 | return 0; |
||
5993 | } |
||
5994 | _ACEOF |
||
5995 | if ac_fn_c_try_run "$LINENO"; then : |
||
5996 | ac_cv_func_stat_empty_string_bug=no |
||
5997 | else |
||
5998 | ac_cv_func_stat_empty_string_bug=yes |
||
5999 | fi |
||
6000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
6001 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
6002 | fi |
||
6003 | |||
6004 | fi |
||
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 |
||
6006 | $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } |
||
6007 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
||
6008 | case " $LIBOBJS " in |
||
6009 | *" stat.$ac_objext "* ) ;; |
||
6010 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
||
6011 | ;; |
||
6012 | esac |
||
6013 | |||
6014 | |||
6015 | cat >>confdefs.h <<_ACEOF |
||
6016 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
||
6017 | _ACEOF |
||
6018 | |||
6019 | fi |
||
6020 | |||
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
||
6022 | $as_echo_n "checking for working strtod... " >&6; } |
||
6023 | if ${ac_cv_func_strtod+:} false; then : |
||
6024 | $as_echo_n "(cached) " >&6 |
||
6025 | else |
||
6026 | if test "$cross_compiling" = yes; then : |
||
6027 | ac_cv_func_strtod=no |
||
6028 | else |
||
6029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6030 | /* end confdefs.h. */ |
||
6031 | |||
6032 | $ac_includes_default |
||
6033 | #ifndef strtod |
||
6034 | double strtod (); |
||
6035 | #endif |
||
6036 | int |
||
6037 | main() |
||
6038 | { |
||
6039 | { |
||
6040 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
||
6041 | char *string = " +69"; |
||
6042 | char *term; |
||
6043 | double value; |
||
6044 | value = strtod (string, &term); |
||
6045 | if (value != 69 || term != (string + 4)) |
||
6046 | return 1; |
||
6047 | } |
||
6048 | |||
6049 | { |
||
6050 | /* Under Solaris 2.4, strtod returns the wrong value for the |
||
6051 | terminating character under some conditions. */ |
||
6052 | char *string = "NaN"; |
||
6053 | char *term; |
||
6054 | strtod (string, &term); |
||
6055 | if (term != string && *(term - 1) == 0) |
||
6056 | return 1; |
||
6057 | } |
||
6058 | return 0; |
||
6059 | } |
||
6060 | |||
6061 | _ACEOF |
||
6062 | if ac_fn_c_try_run "$LINENO"; then : |
||
6063 | ac_cv_func_strtod=yes |
||
6064 | else |
||
6065 | ac_cv_func_strtod=no |
||
6066 | fi |
||
6067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
||
6068 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
||
6069 | fi |
||
6070 | |||
6071 | fi |
||
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
||
6073 | $as_echo "$ac_cv_func_strtod" >&6; } |
||
6074 | if test $ac_cv_func_strtod = no; then |
||
6075 | case " $LIBOBJS " in |
||
6076 | *" strtod.$ac_objext "* ) ;; |
||
6077 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
||
6078 | ;; |
||
6079 | esac |
||
6080 | |||
6081 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
||
6082 | if test "x$ac_cv_func_pow" = xyes; then : |
||
6083 | |||
6084 | fi |
||
6085 | |||
6086 | if test $ac_cv_func_pow = no; then |
||
6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
||
6088 | $as_echo_n "checking for pow in -lm... " >&6; } |
||
6089 | if ${ac_cv_lib_m_pow+:} false; then : |
||
6090 | $as_echo_n "(cached) " >&6 |
||
6091 | else |
||
6092 | ac_check_lib_save_LIBS=$LIBS |
||
6093 | LIBS="-lm $LIBS" |
||
6094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
||
6095 | /* end confdefs.h. */ |
||
6096 | |||
6097 | /* Override any GCC internal prototype to avoid an error. |
||
6098 | Use char because int might match the return type of a GCC |
||
6099 | builtin and then its argument prototype would still apply. */ |
||
6100 | #ifdef __cplusplus |
||
6101 | extern "C" |
||
6102 | #endif |
||
6103 | char pow (); |
||
6104 | int |
||
6105 | main () |
||
6106 | { |
||
6107 | return pow (); |
||
6108 | ; |
||
6109 | return 0; |
||
6110 | } |
||
6111 | _ACEOF |
||
6112 | if ac_fn_c_try_link "$LINENO"; then : |
||
6113 | ac_cv_lib_m_pow=yes |
||
6114 | else |
||
6115 | ac_cv_lib_m_pow=no |
||
6116 | fi |
||
6117 | rm -f core conftest.err conftest.$ac_objext \ |
||
6118 | conftest$ac_exeext conftest.$ac_ext |
||
6119 | LIBS=$ac_check_lib_save_LIBS |
||
6120 | fi |
||
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
||
6122 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
||
6123 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
||
6124 | POW_LIB=-lm |
||
6125 | else |
||
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
||
6127 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
||
6128 | fi |
||
6129 | |||
6130 | fi |
||
6131 | |||
6132 | fi |
||
6133 | |||
6134 | for ac_func in dup2 regcomp putenv strcasecmp strchr strdup strerror utime |
||
6135 | do : |
||
6136 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
6137 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
||
6138 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
||
6139 | cat >>confdefs.h <<_ACEOF |
||
6140 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
6141 | _ACEOF |
||
6142 | |||
6143 | fi |
||
6144 | done |
||
6145 | |||
6146 | |||
6147 | |||
6148 | for ac_func in alarm |
||
6149 | do : |
||
6150 | ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" |
||
6151 | if test "x$ac_cv_func_alarm" = xyes; then : |
||
6152 | cat >>confdefs.h <<_ACEOF |
||
6153 | #define HAVE_ALARM 1 |
||
6154 | _ACEOF |
||
6155 | |||
6156 | fi |
||
6157 | done |
||
6158 | |||
6159 | |||
6160 | if test "$ac_cv_func_alarm" = no; then |
||
6161 | echo |
||
6162 | echo ERROR! Your system does not have alarm |
||
6163 | echo WIMS cannot be installed. Please report. |
||
6164 | echo |
||
6165 | exit 1 |
||
6166 | fi |
||
6167 | |||
6168 | |||
6169 | |||
6170 | for ac_func in getcwd |
||
6171 | do : |
||
6172 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
||
6173 | if test "x$ac_cv_func_getcwd" = xyes; then : |
||
6174 | cat >>confdefs.h <<_ACEOF |
||
6175 | #define HAVE_GETCWD 1 |
||
6176 | _ACEOF |
||
6177 | |||
6178 | fi |
||
6179 | done |
||
6180 | |||
6181 | |||
6182 | if test "$ac_cv_func_getcwd" = no; then |
||
6183 | echo |
||
6184 | echo ERROR! Your system does not have getcwd |
||
6185 | echo WIMS cannot be installed. Please report. |
||
6186 | echo |
||
6187 | exit 1 |
||
6188 | fi |
||
6189 | |||
6190 | |||
6191 | |||
6192 | for ac_func in gettimeofday |
||
6193 | do : |
||
6194 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
||
6195 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
||
6196 | cat >>confdefs.h <<_ACEOF |
||
6197 | #define HAVE_GETTIMEOFDAY 1 |
||
6198 | _ACEOF |
||
6199 | |||
6200 | fi |
||
6201 | done |
||
6202 | |||
6203 | |||
6204 | if test "$ac_cv_func_gettimeofday" = no; then |
||
6205 | echo |
||
6206 | echo ERROR! Your system does not have gettimeofday |
||
6207 | echo WIMS cannot be installed. Please report. |
||
6208 | echo |
||
6209 | exit 1 |
||
6210 | fi |
||
6211 | |||
6212 | |||
6213 | |||
6214 | for ac_func in memmove |
||
6215 | do : |
||
6216 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
||
6217 | if test "x$ac_cv_func_memmove" = xyes; then : |
||
6218 | cat >>confdefs.h <<_ACEOF |
||
6219 | #define HAVE_MEMMOVE 1 |
||
6220 | _ACEOF |
||
6221 | |||
6222 | fi |
||
6223 | done |
||
6224 | |||
6225 | |||
6226 | if test "$ac_cv_func_memmove" = no; then |
||
6227 | echo |
||
6228 | echo ERROR! Your system does not have memmove |
||
6229 | echo WIMS cannot be installed. Please report. |
||
6230 | echo |
||
6231 | exit 1 |
||
6232 | fi |
||
6233 | |||
6234 | |||
6235 | |||
6236 | for ac_func in memset |
||
6237 | do : |
||
6238 | ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" |
||
6239 | if test "x$ac_cv_func_memset" = xyes; then : |
||
6240 | cat >>confdefs.h <<_ACEOF |
||
6241 | #define HAVE_MEMSET 1 |
||
6242 | _ACEOF |
||
6243 | |||
6244 | fi |
||
6245 | done |
||
6246 | |||
6247 | |||
6248 | if test "$ac_cv_func_memset" = no; then |
||
6249 | echo |
||
6250 | echo ERROR! Your system does not have memset |
||
6251 | echo WIMS cannot be installed. Please report. |
||
6252 | echo |
||
6253 | exit 1 |
||
6254 | fi |
||
6255 | |||
6256 | |||
6257 | |||
6258 | for ac_func in mkdir |
||
6259 | do : |
||
6260 | ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" |
||
6261 | if test "x$ac_cv_func_mkdir" = xyes; then : |
||
6262 | cat >>confdefs.h <<_ACEOF |
||
6263 | #define HAVE_MKDIR 1 |
||
6264 | _ACEOF |
||
6265 | |||
6266 | fi |
||
6267 | done |
||
6268 | |||
6269 | |||
6270 | if test "$ac_cv_func_mkdir" = no; then |
||
6271 | echo |
||
6272 | echo ERROR! Your system does not have mkdir |
||
6273 | echo WIMS cannot be installed. Please report. |
||
6274 | echo |
||
6275 | exit 1 |
||
6276 | fi |
||
6277 | |||
6278 | |||
6279 | |||
6280 | for ac_func in rmdir |
||
6281 | do : |
||
6282 | ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir" |
||
6283 | if test "x$ac_cv_func_rmdir" = xyes; then : |
||
6284 | cat >>confdefs.h <<_ACEOF |
||
6285 | #define HAVE_RMDIR 1 |
||
6286 | _ACEOF |
||
6287 | |||
6288 | fi |
||
6289 | done |
||
6290 | |||
6291 | |||
6292 | if test "$ac_cv_func_rmdir" = no; then |
||
6293 | echo |
||
6294 | echo ERROR! Your system does not have rmdir |
||
6295 | echo WIMS cannot be installed. Please report. |
||
6296 | echo |
||
6297 | exit 1 |
||
6298 | fi |
||
6299 | |||
6300 | |||
6301 | |||
6302 | for ac_func in select |
||
6303 | do : |
||
6304 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
||
6305 | if test "x$ac_cv_func_select" = xyes; then : |
||
6306 | cat >>confdefs.h <<_ACEOF |
||
6307 | #define HAVE_SELECT 1 |
||
6308 | _ACEOF |
||
6309 | |||
6310 | fi |
||
6311 | done |
||
6312 | |||
6313 | |||
6314 | if test "$ac_cv_func_select" = no; then |
||
6315 | echo |
||
6316 | echo ERROR! Your system does not have select |
||
6317 | echo WIMS cannot be installed. Please report. |
||
6318 | echo |
||
6319 | exit 1 |
||
6320 | fi |
||
6321 | |||
6322 | |||
6323 | |||
6324 | for ac_func in strncasecmp |
||
6325 | do : |
||
6326 | ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
||
6327 | if test "x$ac_cv_func_strncasecmp" = xyes; then : |
||
6328 | cat >>confdefs.h <<_ACEOF |
||
6329 | #define HAVE_STRNCASECMP 1 |
||
6330 | _ACEOF |
||
6331 | |||
6332 | fi |
||
6333 | done |
||
6334 | |||
6335 | |||
6336 | if test "$ac_cv_func_strncasecmp" = no; then |
||
6337 | echo |
||
6338 | echo ERROR! Your system does not have strncasecmp |
||
6339 | echo WIMS cannot be installed. Please report. |
||
6340 | echo |
||
6341 | exit 1 |
||
6342 | fi |
||
6343 | |||
6344 | |||
6345 | |||
6346 | for ac_func in strpbrk |
||
6347 | do : |
||
6348 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" |
||
6349 | if test "x$ac_cv_func_strpbrk" = xyes; then : |
||
6350 | cat >>confdefs.h <<_ACEOF |
||
6351 | #define HAVE_STRPBRK 1 |
||
6352 | _ACEOF |
||
6353 | |||
6354 | fi |
||
6355 | done |
||
6356 | |||
6357 | |||
6358 | if test "$ac_cv_func_strpbrk" = no; then |
||
6359 | echo |
||
6360 | echo ERROR! Your system does not have strpbrk |
||
6361 | echo WIMS cannot be installed. Please report. |
||
6362 | echo |
||
6363 | exit 1 |
||
6364 | fi |
||
6365 | |||
6366 | |||
6367 | |||
6368 | for ac_func in strrchr |
||
6369 | do : |
||
6370 | ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" |
||
6371 | if test "x$ac_cv_func_strrchr" = xyes; then : |
||
6372 | cat >>confdefs.h <<_ACEOF |
||
6373 | #define HAVE_STRRCHR 1 |
||
6374 | _ACEOF |
||
6375 | |||
6376 | fi |
||
6377 | done |
||
6378 | |||
6379 | |||
6380 | if test "$ac_cv_func_strrchr" = no; then |
||
6381 | echo |
||
6382 | echo ERROR! Your system does not have strrchr |
||
6383 | echo WIMS cannot be installed. Please report. |
||
6384 | echo |
||
6385 | exit 1 |
||
6386 | fi |
||
6387 | |||
6388 | |||
6389 | |||
6390 | for ac_func in strstr |
||
6391 | do : |
||
6392 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
||
6393 | if test "x$ac_cv_func_strstr" = xyes; then : |
||
6394 | cat >>confdefs.h <<_ACEOF |
||
6395 | #define HAVE_STRSTR 1 |
||
6396 | _ACEOF |
||
6397 | |||
6398 | fi |
||
6399 | done |
||
6400 | |||
6401 | |||
6402 | if test "$ac_cv_func_strstr" = no; then |
||
6403 | echo |
||
6404 | echo ERROR! Your system does not have strstr |
||
6405 | echo WIMS cannot be installed. Please report. |
||
6406 | echo |
||
6407 | exit 1 |
||
6408 | fi |
||
6409 | |||
6410 | |||
6411 | |||
6412 | for ac_func in utime |
||
6413 | do : |
||
6414 | ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" |
||
6415 | if test "x$ac_cv_func_utime" = xyes; then : |
||
6416 | cat >>confdefs.h <<_ACEOF |
||
6417 | #define HAVE_UTIME 1 |
||
6418 | _ACEOF |
||
6419 | |||
6420 | fi |
||
6421 | done |
||
6422 | |||
6423 | |||
6424 | if test "$ac_cv_func_utime" = no; then |
||
6425 | echo |
||
6426 | echo ERROR! Your system does not have utime |
||
6427 | echo WIMS cannot be installed. Please report. |
||
6428 | echo |
||
6429 | exit 1 |
||
6430 | fi |
||
6431 | |||
6432 | |||
6433 | |||
6434 | # setenv ? |
||
6435 | for ac_func in setenv |
||
6436 | do : |
||
6437 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
||
6438 | if test "x$ac_cv_func_setenv" = xyes; then : |
||
6439 | cat >>confdefs.h <<_ACEOF |
||
6440 | #define HAVE_SETENV 1 |
||
6441 | _ACEOF |
||
6442 | |||
6443 | fi |
||
6444 | done |
||
6445 | |||
6446 | if test "$ac_cv_func_setenv" = no; then |
||
6447 | common=../Common |
||
6448 | SETENV_OBJS=$common/setenv.o |
||
6449 | # FIXME: there should not be various xmallocs with different semantics. Only |
||
6450 | # SETENV_OBJS should be necessary. |
||
6451 | ALLSETENV_OBJS="$SETENV_OBJS $common/xmalloc.o" |
||
6452 | else |
||
6453 | SETENV_OBJS= |
||
6454 | ALLSETENV_OBJS= |
||
6455 | fi |
||
6456 | |||
6457 | # Case insensitive file system? |
||
6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIMS.C" >&5 |
||
6459 | $as_echo_n "checking for WIMS.C... " >&6; } |
||
6460 | if ${ac_cv_file_WIMS_C+:} false; then : |
||
6461 | $as_echo_n "(cached) " >&6 |
||
6462 | else |
||
6463 | test "$cross_compiling" = yes && |
||
6464 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
||
6465 | if test -r "WIMS.C"; then |
||
6466 | ac_cv_file_WIMS_C=yes |
||
6467 | else |
||
6468 | ac_cv_file_WIMS_C=no |
||
6469 | fi |
||
6470 | fi |
||
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_WIMS_C" >&5 |
||
6472 | $as_echo "$ac_cv_file_WIMS_C" >&6; } |
||
6473 | if test "x$ac_cv_file_WIMS_C" = xyes; then : |
||
6474 | D_CASE_INSENSITIVE_FS="-DCASE_INSENSITIVE_FS=1" |
||
6475 | else |
||
6476 | D_CASE_INSENSITIVE_FS= |
||
6477 | fi |
||
6478 | |||
6479 | # Static libm? |
||
6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/lib/libm.a" >&5 |
||
6481 | $as_echo_n "checking for /usr/lib/libm.a... " >&6; } |
||
6482 | if ${ac_cv_file__usr_lib_libm_a+:} false; then : |
||
6483 | $as_echo_n "(cached) " >&6 |
||
6484 | else |
||
6485 | test "$cross_compiling" = yes && |
||
6486 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
||
6487 | if test -r "/usr/lib/libm.a"; then |
||
6488 | ac_cv_file__usr_lib_libm_a=yes |
||
6489 | else |
||
6490 | ac_cv_file__usr_lib_libm_a=no |
||
6491 | fi |
||
6492 | fi |
||
6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_lib_libm_a" >&5 |
||
6494 | $as_echo "$ac_cv_file__usr_lib_libm_a" >&6; } |
||
6495 | if test "x$ac_cv_file__usr_lib_libm_a" = xyes; then : |
||
6496 | STATIC_LIB=-static |
||
6497 | else |
||
6498 | STATIC_LIB= |
||
6499 | fi |
||
6500 | |||
6501 | |||
6502 | # Configure options |
||
6503 | |||
6504 | # Check whether --with-units was given. |
||
6505 | if test "${with_units+set}" = set; then : |
||
6506 | withval=$with_units; echo Compile units-filter: $with_units |
||
6507 | else |
||
6508 | with_units=yes; echo Compile units-filter: yes |
||
6509 | fi |
||
6510 | |||
6511 | BUILD_UNITS= |
||
6512 | if test "$with_units" = "yes"; then |
||
6513 | case "$LEXLIB" in |
||
6514 | -lfl | -ll) BUILD_UNITS=units-filter;; |
||
6515 | *) with_units=no; echo "Wait ... flex is not available, Compile units : no";; |
||
6516 | esac |
||
6517 | fi |
||
6518 | |||
6519 | |||
6520 | # Check whether --with-chemeq was given. |
||
6521 | if test "${with_chemeq+set}" = set; then : |
||
6522 | withval=$with_chemeq; echo Compile chemeq: $with_chemeq |
||
6523 | else |
||
6524 | with_chemeq=yes; echo Compile chemeq: yes |
||
6525 | fi |
||
6526 | |||
6527 | BUILD_CHEMEQ= |
||
6528 | if test "$with_chemeq" = "yes"; then |
||
6529 | case "$LEXLIB" in |
||
6530 | -lfl | -ll) if test "$CXX" = "g++"; then |
||
6531 | case `"$CXX" --version` in |
||
6532 | 1*|2.[1-8]*|2.9[1-4]*|2.95.[1-2]) |
||
6533 | with_chemeq=no |
||
6534 | echo "Wait ... I need at least g++-2.95.3, Compile chemeq: no" ;; |
||
6535 | *) BUILD_CHEMEQ=chemeq;; |
||
6536 | esac |
||
6537 | else |
||
6538 | with_chemeq=no |
||
6539 | echo "Wait ... g++ is not available, Compile chemeq: no" |
||
6540 | fi;; |
||
6541 | *) with_chemeq=no |
||
6542 | echo "Wait ... flex is not available, Compile chemeq: no";; |
||
6543 | esac |
||
6544 | fi |
||
6545 | |||
6546 | |||
6547 | # Check whether --with-wimsd was given. |
||
6548 | if test "${with_wimsd+set}" = set; then : |
||
6549 | withval=$with_wimsd; echo Compile wimsd: $with_wimsd |
||
6550 | else |
||
6551 | with_wimsd=yes; echo Compile wimsd: yes |
||
6552 | fi |
||
6553 | |||
6554 | if test "$with_wimsd" = "yes"; then |
||
6555 | BUILD_WIMSD=wimsd |
||
6556 | fi |
||
6557 | |||
6558 | if test -n "$SOURCE_DATE_EPOCH"; then |
||
6559 | # When a debian package is built, SOURCE_DATE_EPOCH is defined, so |
||
6560 | # the build date is taken from the head of the file debian/changelog. |
||
6561 | # This provides reproducible builds, and more security in Debian. |
||
6562 | date=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y-%m-%d` |
||
6563 | else |
||
6564 | date=`date +%Y-%m-%d` |
||
6565 | fi |
||
6566 | |||
6567 | DEFINES="-DGNU_SOURCE -DVERSION_DATE=\\\"$date\\\"" |
||
6568 | |||
6569 | |||
6570 | |||
6571 | |||
6572 | |||
6573 | |||
6574 | |||
6575 | |||
6576 | |||
6577 | |||
6578 | |||
6579 | |||
6580 | |||
6581 | |||
6582 | |||
6583 | ac_config_files="$ac_config_files Flydraw/Makefile Interfaces/Makefile Lib/Makefile Makefile Misc/Makefile Misc/symtext/Makefile Misc/mathexp/Makefile Misc/chemeq/Makefile Misc/chemeq/src/Makefile Misc/units-filter/src/Makefile Misc/voronoiW/Makefile Misc/bioinfo/Makefile Misc/checkmol/Makefile Misc/crossword/Makefile Misc/lceb/Makefile Misc/moneyprint/Makefile Misc/toascii/Makefile Misc/scienceprint/Makefile Misc/sigdigits/Makefile Misc/canvasdraw/Makefile Misc/whirlgif/Makefile Misc/authors/jm.evers/applets/Makefile Misc/applets/Makefile Module/Makefile Module/drawode/Makefile OefMsg2wims/Makefile Wimsd/Makefile Wimslogd/Makefile Texgif/Makefile Mathml/Makefile" |
||
6584 | |||
6585 | cat >confcache <<\_ACEOF |
||
6586 | # This file is a shell script that caches the results of configure |
||
6587 | # tests run on this system so they can be shared between configure |
||
6588 | # scripts and configure runs, see configure's option --config-cache. |
||
6589 | # It is not useful on other systems. If it contains results you don't |
||
6590 | # want to keep, you may remove or edit it. |
||
6591 | # |
||
6592 | # config.status only pays attention to the cache file if you give it |
||
6593 | # the --recheck option to rerun configure. |
||
6594 | # |
||
6595 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
6596 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
6597 | # following values. |
||
6598 | |||
6599 | _ACEOF |
||
6600 | |||
6601 | # The following way of writing the cache mishandles newlines in values, |
||
6602 | # but we know of no workaround that is simple, portable, and efficient. |
||
6603 | # So, we kill variables containing newlines. |
||
6604 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
6605 | # and sets the high bit in the cache file unless we assign to the vars. |
||
6606 | ( |
||
6607 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
||
6608 | eval ac_val=\$$ac_var |
||
6609 | case $ac_val in #( |
||
6610 | *${as_nl}*) |
||
6611 | case $ac_var in #( |
||
6612 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
||
6613 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
||
6614 | esac |
||
6615 | case $ac_var in #( |
||
6616 | _ | IFS | as_nl) ;; #( |
||
6617 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
||
6618 | *) { eval $ac_var=; unset $ac_var;} ;; |
||
6619 | esac ;; |
||
6620 | esac |
||
6621 | done |
||
6622 | |||
6623 | (set) 2>&1 | |
||
6624 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
||
6625 | *${as_nl}ac_space=\ *) |
||
6626 | # `set' does not quote correctly, so add quotes: double-quote |
||
6627 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
||
6628 | sed -n \ |
||
6629 | "s/'/'\\\\''/g; |
||
6630 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
6631 | ;; #( |
||
6632 | *) |
||
6633 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
6634 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
||
6635 | ;; |
||
6636 | esac | |
||
6637 | sort |
||
6638 | ) | |
||
6639 | sed ' |
||
6640 | /^ac_cv_env_/b end |
||
6641 | t clear |
||
6642 | :clear |
||
6643 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
6644 | t end |
||
6645 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
6646 | :end' >>confcache |
||
6647 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
||
6648 | if test -w "$cache_file"; then |
||
6649 | if test "x$cache_file" != "x/dev/null"; then |
||
6650 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
||
6651 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
||
6652 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
||
6653 | cat confcache >"$cache_file" |
||
6654 | else |
||
6655 | case $cache_file in #( |
||
6656 | */* | ?:*) |
||
6657 | mv -f confcache "$cache_file"$$ && |
||
6658 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
||
6659 | *) |
||
6660 | mv -f confcache "$cache_file" ;; |
||
6661 | esac |
||
6662 | fi |
||
6663 | fi |
||
6664 | else |
||
6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
||
6666 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
||
6667 | fi |
||
6668 | fi |
||
6669 | rm -f confcache |
||
6670 | |||
6671 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
6672 | # Let make expand exec_prefix. |
||
6673 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
6674 | |||
6675 | DEFS=-DHAVE_CONFIG_H |
||
6676 | |||
6677 | ac_libobjs= |
||
6678 | ac_ltlibobjs= |
||
6679 | U= |
||
6680 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
6681 | # 1. Remove the extension, and $U if already installed. |
||
6682 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
||
6683 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
||
6684 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
||
6685 | # will be set to the directory where LIBOBJS objects are built. |
||
6686 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
||
6687 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
||
6688 | done |
||
6689 | LIBOBJS=$ac_libobjs |
||
6690 | |||
6691 | LTLIBOBJS=$ac_ltlibobjs |
||
6692 | |||
6693 | |||
6694 | |||
6695 | : "${CONFIG_STATUS=./config.status}" |
||
6696 | ac_write_fail=0 |
||
6697 | ac_clean_files_save=$ac_clean_files |
||
6698 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
||
6700 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
6701 | as_write_fail=0 |
||
6702 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
||
6703 | #! $SHELL |
||
6704 | # Generated by $as_me. |
||
6705 | # Run this file to recreate the current configuration. |
||
6706 | # Compiler output produced by configure, useful for debugging |
||
6707 | # configure, is in config.log if it exists. |
||
6708 | |||
6709 | debug=false |
||
6710 | ac_cs_recheck=false |
||
6711 | ac_cs_silent=false |
||
6712 | |||
6713 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
6714 | export SHELL |
||
6715 | _ASEOF |
||
6716 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
||
6717 | ## -------------------- ## |
||
6718 | ## M4sh Initialization. ## |
||
6719 | ## -------------------- ## |
||
6720 | |||
6721 | # Be more Bourne compatible |
||
6722 | DUALCASE=1; export DUALCASE # for MKS sh |
||
6723 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
||
6724 | emulate sh |
||
6725 | NULLCMD=: |
||
6726 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
||
6727 | # is contrary to our usage. Disable this feature. |
||
6728 | alias -g '${1+"$@"}'='"$@"' |
||
6729 | setopt NO_GLOB_SUBST |
||
6730 | else |
||
6731 | case `(set -o) 2>/dev/null` in #( |
||
6732 | *posix*) : |
||
6733 | set -o posix ;; #( |
||
6734 | *) : |
||
6735 | ;; |
||
6736 | esac |
||
6737 | fi |
||
6738 | |||
6739 | |||
6740 | as_nl=' |
||
6741 | ' |
||
6742 | export as_nl |
||
6743 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
||
6744 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
||
6745 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
||
6746 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
||
6747 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
||
6748 | # but without wasting forks for bash or zsh. |
||
6749 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
||
6750 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
6751 | as_echo='print -r --' |
||
6752 | as_echo_n='print -rn --' |
||
6753 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
||
6754 | as_echo='printf %s\n' |
||
6755 | as_echo_n='printf %s' |
||
6756 | else |
||
6757 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
||
6758 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
||
6759 | as_echo_n='/usr/ucb/echo -n' |
||
6760 | else |
||
6761 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
||
6762 | as_echo_n_body='eval |
||
6763 | arg=$1; |
||
6764 | case $arg in #( |
||
6765 | *"$as_nl"*) |
||
6766 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
||
6767 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
||
6768 | esac; |
||
6769 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
||
6770 | ' |
||
6771 | export as_echo_n_body |
||
6772 | as_echo_n='sh -c $as_echo_n_body as_echo' |
||
6773 | fi |
||
6774 | export as_echo_body |
||
6775 | as_echo='sh -c $as_echo_body as_echo' |
||
6776 | fi |
||
6777 | |||
6778 | # The user is always right. |
||
6779 | if test "${PATH_SEPARATOR+set}" != set; then |
||
6780 | PATH_SEPARATOR=: |
||
6781 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
||
6782 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
||
6783 | PATH_SEPARATOR=';' |
||
6784 | } |
||
6785 | fi |
||
6786 | |||
6787 | |||
6788 | # IFS |
||
6789 | # We need space, tab and new line, in precisely that order. Quoting is |
||
6790 | # there to prevent editors from complaining about space-tab. |
||
6791 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
||
6792 | # splitting by setting IFS to empty value.) |
||
6793 | IFS=" "" $as_nl" |
||
6794 | |||
6795 | # Find who we are. Look in the path if we contain no directory separator. |
||
6796 | as_myself= |
||
6797 | case $0 in #(( |
||
6798 | *[\\/]* ) as_myself=$0 ;; |
||
6799 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
6800 | for as_dir in $PATH |
||
6801 | do |
||
6802 | IFS=$as_save_IFS |
||
6803 | test -z "$as_dir" && as_dir=. |
||
6804 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
6805 | done |
||
6806 | IFS=$as_save_IFS |
||
6807 | |||
6808 | ;; |
||
6809 | esac |
||
6810 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
6811 | # in which case we are not to be found in the path. |
||
6812 | if test "x$as_myself" = x; then |
||
6813 | as_myself=$0 |
||
6814 | fi |
||
6815 | if test ! -f "$as_myself"; then |
||
6816 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
||
6817 | exit 1 |
||
6818 | fi |
||
6819 | |||
6820 | # Unset variables that we do not need and which cause bugs (e.g. in |
||
6821 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
||
6822 | # suppresses any "Segmentation fault" message there. '((' could |
||
6823 | # trigger a bug in pdksh 5.2.14. |
||
6824 | for as_var in BASH_ENV ENV MAIL MAILPATH |
||
6825 | do eval test x\${$as_var+set} = xset \ |
||
6826 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
||
6827 | done |
||
6828 | PS1='$ ' |
||
6829 | PS2='> ' |
||
6830 | PS4='+ ' |
||
6831 | |||
6832 | # NLS nuisances. |
||
6833 | LC_ALL=C |
||
6834 | export LC_ALL |
||
6835 | LANGUAGE=C |
||
6836 | export LANGUAGE |
||
6837 | |||
6838 | # CDPATH. |
||
6839 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
||
6840 | |||
6841 | |||
6842 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
||
6843 | # ---------------------------------------- |
||
6844 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
||
6845 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
||
6846 | # script with STATUS, using 1 if that was 0. |
||
6847 | as_fn_error () |
||
6848 | { |
||
6849 | as_status=$1; test $as_status -eq 0 && as_status=1 |
||
6850 | if test "$4"; then |
||
6851 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
||
6852 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
||
6853 | fi |
||
6854 | $as_echo "$as_me: error: $2" >&2 |
||
6855 | as_fn_exit $as_status |
||
6856 | } # as_fn_error |
||
6857 | |||
6858 | |||
6859 | # as_fn_set_status STATUS |
||
6860 | # ----------------------- |
||
6861 | # Set $? to STATUS, without forking. |
||
6862 | as_fn_set_status () |
||
6863 | { |
||
6864 | return $1 |
||
6865 | } # as_fn_set_status |
||
6866 | |||
6867 | # as_fn_exit STATUS |
||
6868 | # ----------------- |
||
6869 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
||
6870 | as_fn_exit () |
||
6871 | { |
||
6872 | set +e |
||
6873 | as_fn_set_status $1 |
||
6874 | exit $1 |
||
6875 | } # as_fn_exit |
||
6876 | |||
6877 | # as_fn_unset VAR |
||
6878 | # --------------- |
||
6879 | # Portably unset VAR. |
||
6880 | as_fn_unset () |
||
6881 | { |
||
6882 | { eval $1=; unset $1;} |
||
6883 | } |
||
6884 | as_unset=as_fn_unset |
||
6885 | # as_fn_append VAR VALUE |
||
6886 | # ---------------------- |
||
6887 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
||
6888 | # advantage of any shell optimizations that allow amortized linear growth over |
||
6889 | # repeated appends, instead of the typical quadratic growth present in naive |
||
6890 | # implementations. |
||
6891 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
||
6892 | eval 'as_fn_append () |
||
6893 | { |
||
6894 | eval $1+=\$2 |
||
6895 | }' |
||
6896 | else |
||
6897 | as_fn_append () |
||
6898 | { |
||
6899 | eval $1=\$$1\$2 |
||
6900 | } |
||
6901 | fi # as_fn_append |
||
6902 | |||
6903 | # as_fn_arith ARG... |
||
6904 | # ------------------ |
||
6905 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
||
6906 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
||
6907 | # must be portable across $(()) and expr. |
||
6908 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
||
6909 | eval 'as_fn_arith () |
||
6910 | { |
||
6911 | as_val=$(( $* )) |
||
6912 | }' |
||
6913 | else |
||
6914 | as_fn_arith () |
||
6915 | { |
||
6916 | as_val=`expr "$@" || test $? -eq 1` |
||
6917 | } |
||
6918 | fi # as_fn_arith |
||
6919 | |||
6920 | |||
6921 | if expr a : '\(a\)' >/dev/null 2>&1 && |
||
6922 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
||
6923 | as_expr=expr |
||
6924 | else |
||
6925 | as_expr=false |
||
6926 | fi |
||
6927 | |||
6928 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
||
6929 | as_basename=basename |
||
6930 | else |
||
6931 | as_basename=false |
||
6932 | fi |
||
6933 | |||
6934 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
||
6935 | as_dirname=dirname |
||
6936 | else |
||
6937 | as_dirname=false |
||
6938 | fi |
||
6939 | |||
6940 | as_me=`$as_basename -- "$0" || |
||
6941 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
6942 | X"$0" : 'X\(//\)$' \| \ |
||
6943 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
||
6944 | $as_echo X/"$0" | |
||
6945 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
||
6946 | s//\1/ |
||
6947 | q |
||
6948 | } |
||
6949 | /^X\/\(\/\/\)$/{ |
||
6950 | s//\1/ |
||
6951 | q |
||
6952 | } |
||
6953 | /^X\/\(\/\).*/{ |
||
6954 | s//\1/ |
||
6955 | q |
||
6956 | } |
||
6957 | s/.*/./; q'` |
||
6958 | |||
6959 | # Avoid depending upon Character Ranges. |
||
6960 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
6961 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
6962 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
6963 | as_cr_digits='0123456789' |
||
6964 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
6965 | |||
6966 | ECHO_C= ECHO_N= ECHO_T= |
||
6967 | case `echo -n x` in #((((( |
||
6968 | -n*) |
||
6969 | case `echo 'xy\c'` in |
||
6970 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
||
6971 | xy) ECHO_C='\c';; |
||
6972 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
||
6973 | ECHO_T=' ';; |
||
6974 | esac;; |
||
6975 | *) |
||
6976 | ECHO_N='-n';; |
||
6977 | esac |
||
6978 | |||
6979 | rm -f conf$$ conf$$.exe conf$$.file |
||
6980 | if test -d conf$$.dir; then |
||
6981 | rm -f conf$$.dir/conf$$.file |
||
6982 | else |
||
6983 | rm -f conf$$.dir |
||
6984 | mkdir conf$$.dir 2>/dev/null |
||
6985 | fi |
||
6986 | if (echo >conf$$.file) 2>/dev/null; then |
||
6987 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
6988 | as_ln_s='ln -s' |
||
6989 | # ... but there are two gotchas: |
||
6990 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
||
6991 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
||
6992 | # In both cases, we have to default to `cp -pR'. |
||
6993 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
||
6994 | as_ln_s='cp -pR' |
||
6995 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
6996 | as_ln_s=ln |
||
6997 | else |
||
6998 | as_ln_s='cp -pR' |
||
6999 | fi |
||
7000 | else |
||
7001 | as_ln_s='cp -pR' |
||
7002 | fi |
||
7003 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
||
7004 | rmdir conf$$.dir 2>/dev/null |
||
7005 | |||
7006 | |||
7007 | # as_fn_mkdir_p |
||
7008 | # ------------- |
||
7009 | # Create "$as_dir" as a directory, including parents if necessary. |
||
7010 | as_fn_mkdir_p () |
||
7011 | { |
||
7012 | |||
7013 | case $as_dir in #( |
||
7014 | -*) as_dir=./$as_dir;; |
||
7015 | esac |
||
7016 | test -d "$as_dir" || eval $as_mkdir_p || { |
||
7017 | as_dirs= |
||
7018 | while :; do |
||
7019 | case $as_dir in #( |
||
7020 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
||
7021 | *) as_qdir=$as_dir;; |
||
7022 | esac |
||
7023 | as_dirs="'$as_qdir' $as_dirs" |
||
7024 | as_dir=`$as_dirname -- "$as_dir" || |
||
7025 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
7026 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
7027 | X"$as_dir" : 'X\(//\)$' \| \ |
||
7028 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
||
7029 | $as_echo X"$as_dir" | |
||
7030 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
7031 | s//\1/ |
||
7032 | q |
||
7033 | } |
||
7034 | /^X\(\/\/\)[^/].*/{ |
||
7035 | s//\1/ |
||
7036 | q |
||
7037 | } |
||
7038 | /^X\(\/\/\)$/{ |
||
7039 | s//\1/ |
||
7040 | q |
||
7041 | } |
||
7042 | /^X\(\/\).*/{ |
||
7043 | s//\1/ |
||
7044 | q |
||
7045 | } |
||
7046 | s/.*/./; q'` |
||
7047 | test -d "$as_dir" && break |
||
7048 | done |
||
7049 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
||
7050 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
||
7051 | |||
7052 | |||
7053 | } # as_fn_mkdir_p |
||
7054 | if mkdir -p . 2>/dev/null; then |
||
7055 | as_mkdir_p='mkdir -p "$as_dir"' |
||
7056 | else |
||
7057 | test -d ./-p && rmdir ./-p |
||
7058 | as_mkdir_p=false |
||
7059 | fi |
||
7060 | |||
7061 | |||
7062 | # as_fn_executable_p FILE |
||
7063 | # ----------------------- |
||
7064 | # Test if FILE is an executable regular file. |
||
7065 | as_fn_executable_p () |
||
7066 | { |
||
7067 | test -f "$1" && test -x "$1" |
||
7068 | } # as_fn_executable_p |
||
7069 | as_test_x='test -x' |
||
7070 | as_executable_p=as_fn_executable_p |
||
7071 | |||
7072 | # Sed expression to map a string onto a valid CPP name. |
||
7073 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
7074 | |||
7075 | # Sed expression to map a string onto a valid variable name. |
||
7076 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
7077 | |||
7078 | |||
7079 | exec 6>&1 |
||
7080 | ## ----------------------------------- ## |
||
7081 | ## Main body of $CONFIG_STATUS script. ## |
||
7082 | ## ----------------------------------- ## |
||
7083 | _ASEOF |
||
7084 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
||
7085 | |||
7086 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7087 | # Save the log message, to keep $0 and so on meaningful, and to |
||
7088 | # report actual input values of CONFIG_FILES etc. instead of their |
||
7089 | # values after options handling. |
||
7090 | ac_log=" |
||
18489 | bpr | 7091 | This file was extended by WIMS $as_me 4.29b, which was |
16015 | bpr | 7092 | generated by GNU Autoconf 2.69. Invocation command line was |
7093 | |||
7094 | CONFIG_FILES = $CONFIG_FILES |
||
7095 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
7096 | CONFIG_LINKS = $CONFIG_LINKS |
||
7097 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
7098 | $ $0 $@ |
||
7099 | |||
7100 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
7101 | " |
||
7102 | |||
7103 | _ACEOF |
||
7104 | |||
7105 | case $ac_config_files in *" |
||
7106 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
||
7107 | esac |
||
7108 | |||
7109 | case $ac_config_headers in *" |
||
7110 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
||
7111 | esac |
||
7112 | |||
7113 | |||
7114 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7115 | # Files that config.status was made for. |
||
7116 | config_files="$ac_config_files" |
||
7117 | config_headers="$ac_config_headers" |
||
7118 | |||
7119 | _ACEOF |
||
7120 | |||
7121 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7122 | ac_cs_usage="\ |
||
7123 | \`$as_me' instantiates files and other configuration actions |
||
7124 | from templates according to the current configuration. Unless the files |
||
7125 | and actions are specified as TAGs, all are instantiated by default. |
||
7126 | |||
7127 | Usage: $0 [OPTION]... [TAG]... |
||
7128 | |||
7129 | -h, --help print this help, then exit |
||
7130 | -V, --version print version number and configuration settings, then exit |
||
7131 | --config print configuration, then exit |
||
7132 | -q, --quiet, --silent |
||
7133 | do not print progress messages |
||
7134 | -d, --debug don't remove temporary files |
||
7135 | --recheck update $as_me by reconfiguring in the same conditions |
||
7136 | --file=FILE[:TEMPLATE] |
||
7137 | instantiate the configuration file FILE |
||
7138 | --header=FILE[:TEMPLATE] |
||
7139 | instantiate the configuration header FILE |
||
7140 | |||
7141 | Configuration files: |
||
7142 | $config_files |
||
7143 | |||
7144 | Configuration headers: |
||
7145 | $config_headers |
||
7146 | |||
7147 | Report bugs to <wimsdev@groupes.renater.fr>." |
||
7148 | |||
7149 | _ACEOF |
||
7150 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7151 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
||
7152 | ac_cs_version="\\ |
||
18489 | bpr | 7153 | WIMS config.status 4.29b |
16015 | bpr | 7154 | configured by $0, generated by GNU Autoconf 2.69, |
7155 | with options \\"\$ac_cs_config\\" |
||
7156 | |||
7157 | Copyright (C) 2012 Free Software Foundation, Inc. |
||
7158 | This config.status script is free software; the Free Software Foundation |
||
7159 | gives unlimited permission to copy, distribute and modify it." |
||
7160 | |||
7161 | ac_pwd='$ac_pwd' |
||
7162 | srcdir='$srcdir' |
||
7163 | AWK='$AWK' |
||
7164 | test -n "\$AWK" || AWK=awk |
||
7165 | _ACEOF |
||
7166 | |||
7167 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7168 | # The default lists apply if the user does not specify any file. |
||
7169 | ac_need_defaults=: |
||
7170 | while test $# != 0 |
||
7171 | do |
||
7172 | case $1 in |
||
7173 | --*=?*) |
||
7174 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
7175 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
||
7176 | ac_shift=: |
||
7177 | ;; |
||
7178 | --*=) |
||
7179 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
||
7180 | ac_optarg= |
||
7181 | ac_shift=: |
||
7182 | ;; |
||
7183 | *) |
||
7184 | ac_option=$1 |
||
7185 | ac_optarg=$2 |
||
7186 | ac_shift=shift |
||
7187 | ;; |
||
7188 | esac |
||
7189 | |||
7190 | case $ac_option in |
||
7191 | # Handling of the options. |
||
7192 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
7193 | ac_cs_recheck=: ;; |
||
7194 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
||
7195 | $as_echo "$ac_cs_version"; exit ;; |
||
7196 | --config | --confi | --conf | --con | --co | --c ) |
||
7197 | $as_echo "$ac_cs_config"; exit ;; |
||
7198 | --debug | --debu | --deb | --de | --d | -d ) |
||
7199 | debug=: ;; |
||
7200 | --file | --fil | --fi | --f ) |
||
7201 | $ac_shift |
||
7202 | case $ac_optarg in |
||
7203 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
7204 | '') as_fn_error $? "missing file argument" ;; |
||
7205 | esac |
||
7206 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
||
7207 | ac_need_defaults=false;; |
||
7208 | --header | --heade | --head | --hea ) |
||
7209 | $ac_shift |
||
7210 | case $ac_optarg in |
||
7211 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
7212 | esac |
||
7213 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
||
7214 | ac_need_defaults=false;; |
||
7215 | --he | --h) |
||
7216 | # Conflict between --help and --header |
||
7217 | as_fn_error $? "ambiguous option: \`$1' |
||
7218 | Try \`$0 --help' for more information.";; |
||
7219 | --help | --hel | -h ) |
||
7220 | $as_echo "$ac_cs_usage"; exit ;; |
||
7221 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
7222 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
7223 | ac_cs_silent=: ;; |
||
7224 | |||
7225 | # This is an error. |
||
7226 | -*) as_fn_error $? "unrecognized option: \`$1' |
||
7227 | Try \`$0 --help' for more information." ;; |
||
7228 | |||
7229 | *) as_fn_append ac_config_targets " $1" |
||
7230 | ac_need_defaults=false ;; |
||
7231 | |||
7232 | esac |
||
7233 | shift |
||
7234 | done |
||
7235 | |||
7236 | ac_configure_extra_args= |
||
7237 | |||
7238 | if $ac_cs_silent; then |
||
7239 | exec 6>/dev/null |
||
7240 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
7241 | fi |
||
7242 | |||
7243 | _ACEOF |
||
7244 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7245 | if \$ac_cs_recheck; then |
||
7246 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
7247 | shift |
||
7248 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
||
7249 | CONFIG_SHELL='$SHELL' |
||
7250 | export CONFIG_SHELL |
||
7251 | exec "\$@" |
||
7252 | fi |
||
7253 | |||
7254 | _ACEOF |
||
7255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7256 | exec 5>>config.log |
||
7257 | { |
||
7258 | echo |
||
7259 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
7260 | ## Running $as_me. ## |
||
7261 | _ASBOX |
||
7262 | $as_echo "$ac_log" |
||
7263 | } >&5 |
||
7264 | |||
7265 | _ACEOF |
||
7266 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7267 | _ACEOF |
||
7268 | |||
7269 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7270 | |||
7271 | # Handling of arguments. |
||
7272 | for ac_config_target in $ac_config_targets |
||
7273 | do |
||
7274 | case $ac_config_target in |
||
7275 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; |
||
7276 | "Flydraw/Makefile") CONFIG_FILES="$CONFIG_FILES Flydraw/Makefile" ;; |
||
7277 | "Interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES Interfaces/Makefile" ;; |
||
7278 | "Lib/Makefile") CONFIG_FILES="$CONFIG_FILES Lib/Makefile" ;; |
||
7279 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
7280 | "Misc/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/Makefile" ;; |
||
7281 | "Misc/symtext/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/symtext/Makefile" ;; |
||
7282 | "Misc/mathexp/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/mathexp/Makefile" ;; |
||
7283 | "Misc/chemeq/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/chemeq/Makefile" ;; |
||
7284 | "Misc/chemeq/src/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/chemeq/src/Makefile" ;; |
||
7285 | "Misc/units-filter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/units-filter/src/Makefile" ;; |
||
7286 | "Misc/voronoiW/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/voronoiW/Makefile" ;; |
||
7287 | "Misc/bioinfo/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/bioinfo/Makefile" ;; |
||
7288 | "Misc/checkmol/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/checkmol/Makefile" ;; |
||
7289 | "Misc/crossword/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/crossword/Makefile" ;; |
||
7290 | "Misc/lceb/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/lceb/Makefile" ;; |
||
7291 | "Misc/moneyprint/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/moneyprint/Makefile" ;; |
||
7292 | "Misc/toascii/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/toascii/Makefile" ;; |
||
7293 | "Misc/scienceprint/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/scienceprint/Makefile" ;; |
||
7294 | "Misc/sigdigits/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/sigdigits/Makefile" ;; |
||
7295 | "Misc/canvasdraw/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/canvasdraw/Makefile" ;; |
||
7296 | "Misc/whirlgif/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/whirlgif/Makefile" ;; |
||
7297 | "Misc/authors/jm.evers/applets/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/authors/jm.evers/applets/Makefile" ;; |
||
7298 | "Misc/applets/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/applets/Makefile" ;; |
||
7299 | "Module/Makefile") CONFIG_FILES="$CONFIG_FILES Module/Makefile" ;; |
||
7300 | "Module/drawode/Makefile") CONFIG_FILES="$CONFIG_FILES Module/drawode/Makefile" ;; |
||
7301 | "OefMsg2wims/Makefile") CONFIG_FILES="$CONFIG_FILES OefMsg2wims/Makefile" ;; |
||
7302 | "Wimsd/Makefile") CONFIG_FILES="$CONFIG_FILES Wimsd/Makefile" ;; |
||
7303 | "Wimslogd/Makefile") CONFIG_FILES="$CONFIG_FILES Wimslogd/Makefile" ;; |
||
7304 | "Texgif/Makefile") CONFIG_FILES="$CONFIG_FILES Texgif/Makefile" ;; |
||
7305 | "Mathml/Makefile") CONFIG_FILES="$CONFIG_FILES Mathml/Makefile" ;; |
||
7306 | |||
7307 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
||
7308 | esac |
||
7309 | done |
||
7310 | |||
7311 | |||
7312 | # If the user did not use the arguments to specify the items to instantiate, |
||
7313 | # then the envvar interface is used. Set only those that are not. |
||
7314 | # We use the long form for the default assignment because of an extremely |
||
7315 | # bizarre bug on SunOS 4.1.3. |
||
7316 | if $ac_need_defaults; then |
||
7317 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
7318 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
||
7319 | fi |
||
7320 | |||
7321 | # Have a temporary directory for convenience. Make it in the build tree |
||
7322 | # simply because there is no reason against having it here, and in addition, |
||
7323 | # creating and moving files from /tmp can sometimes cause problems. |
||
7324 | # Hook for its removal unless debugging. |
||
7325 | # Note that there is a small window in which the directory will not be cleaned: |
||
7326 | # after its creation but before its name has been assigned to `$tmp'. |
||
7327 | $debug || |
||
7328 | { |
||
7329 | tmp= ac_tmp= |
||
7330 | trap 'exit_status=$? |
||
7331 | : "${ac_tmp:=$tmp}" |
||
7332 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
||
7333 | ' 0 |
||
7334 | trap 'as_fn_exit 1' 1 2 13 15 |
||
7335 | } |
||
7336 | # Create a (secure) tmp directory for tmp files. |
||
7337 | |||
7338 | { |
||
7339 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
||
7340 | test -d "$tmp" |
||
7341 | } || |
||
7342 | { |
||
7343 | tmp=./conf$$-$RANDOM |
||
7344 | (umask 077 && mkdir "$tmp") |
||
7345 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
||
7346 | ac_tmp=$tmp |
||
7347 | |||
7348 | # Set up the scripts for CONFIG_FILES section. |
||
7349 | # No need to generate them if there are no CONFIG_FILES. |
||
7350 | # This happens for instance with `./config.status config.h'. |
||
7351 | if test -n "$CONFIG_FILES"; then |
||
7352 | |||
7353 | |||
7354 | ac_cr=`echo X | tr X '\015'` |
||
7355 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
||
7356 | # But we know of no other shell where ac_cr would be empty at this |
||
7357 | # point, so we can use a bashism as a fallback. |
||
7358 | if test "x$ac_cr" = x; then |
||
7359 | eval ac_cr=\$\'\\r\' |
||
7360 | fi |
||
7361 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
||
7362 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
||
7363 | ac_cs_awk_cr='\\r' |
||
7364 | else |
||
7365 | ac_cs_awk_cr=$ac_cr |
||
7366 | fi |
||
7367 | |||
7368 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
||
7369 | _ACEOF |
||
7370 | |||
7371 | |||
7372 | { |
||
7373 | echo "cat >conf$$subs.awk <<_ACEOF" && |
||
7374 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
||
7375 | echo "_ACEOF" |
||
7376 | } >conf$$subs.sh || |
||
7377 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
7378 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
||
7379 | ac_delim='%!_!# ' |
||
7380 | for ac_last_try in false false false false false :; do |
||
7381 | . ./conf$$subs.sh || |
||
7382 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
7383 | |||
7384 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
||
7385 | if test $ac_delim_n = $ac_delim_num; then |
||
7386 | break |
||
7387 | elif $ac_last_try; then |
||
7388 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
||
7389 | else |
||
7390 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
7391 | fi |
||
7392 | done |
||
7393 | rm -f conf$$subs.sh |
||
7394 | |||
7395 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7396 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
||
7397 | _ACEOF |
||
7398 | sed -n ' |
||
7399 | h |
||
7400 | s/^/S["/; s/!.*/"]=/ |
||
7401 | p |
||
7402 | g |
||
7403 | s/^[^!]*!// |
||
7404 | :repl |
||
7405 | t repl |
||
7406 | s/'"$ac_delim"'$// |
||
7407 | t delim |
||
7408 | :nl |
||
7409 | h |
||
7410 | s/\(.\{148\}\)..*/\1/ |
||
7411 | t more1 |
||
7412 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
||
7413 | p |
||
7414 | n |
||
7415 | b repl |
||
7416 | :more1 |
||
7417 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
7418 | p |
||
7419 | g |
||
7420 | s/.\{148\}// |
||
7421 | t nl |
||
7422 | :delim |
||
7423 | h |
||
7424 | s/\(.\{148\}\)..*/\1/ |
||
7425 | t more2 |
||
7426 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
||
7427 | p |
||
7428 | b |
||
7429 | :more2 |
||
7430 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
||
7431 | p |
||
7432 | g |
||
7433 | s/.\{148\}// |
||
7434 | t delim |
||
7435 | ' <conf$$subs.awk | sed ' |
||
7436 | /^[^""]/{ |
||
7437 | N |
||
7438 | s/\n// |
||
7439 | } |
||
7440 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
||
7441 | rm -f conf$$subs.awk |
||
7442 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7443 | _ACAWK |
||
7444 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
||
7445 | for (key in S) S_is_set[key] = 1 |
||
7446 | FS = "" |
||
7447 | |||
7448 | } |
||
7449 | { |
||
7450 | line = $ 0 |
||
7451 | nfields = split(line, field, "@") |
||
7452 | substed = 0 |
||
7453 | len = length(field[1]) |
||
7454 | for (i = 2; i < nfields; i++) { |
||
7455 | key = field[i] |
||
7456 | keylen = length(key) |
||
7457 | if (S_is_set[key]) { |
||
7458 | value = S[key] |
||
7459 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
||
7460 | len += length(value) + length(field[++i]) |
||
7461 | substed = 1 |
||
7462 | } else |
||
7463 | len += 1 + keylen |
||
7464 | } |
||
7465 | |||
7466 | print line |
||
7467 | } |
||
7468 | |||
7469 | _ACAWK |
||
7470 | _ACEOF |
||
7471 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7472 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
||
7473 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
||
7474 | else |
||
7475 | cat |
||
7476 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
||
7477 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
||
7478 | _ACEOF |
||
7479 | |||
7480 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
||
7481 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
||
7482 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
7483 | # (actually we leave an empty line to preserve line numbers). |
||
7484 | if test "x$srcdir" = x.; then |
||
7485 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
||
7486 | h |
||
7487 | s/// |
||
7488 | s/^/:/ |
||
7489 | s/[ ]*$/:/ |
||
7490 | s/:\$(srcdir):/:/g |
||
7491 | s/:\${srcdir}:/:/g |
||
7492 | s/:@srcdir@:/:/g |
||
7493 | s/^:*// |
||
7494 | s/:*$// |
||
7495 | x |
||
7496 | s/\(=[ ]*\).*/\1/ |
||
7497 | G |
||
7498 | s/\n// |
||
7499 | s/^[^=]*=[ ]*$// |
||
7500 | }' |
||
7501 | fi |
||
7502 | |||
7503 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7504 | fi # test -n "$CONFIG_FILES" |
||
7505 | |||
7506 | # Set up the scripts for CONFIG_HEADERS section. |
||
7507 | # No need to generate them if there are no CONFIG_HEADERS. |
||
7508 | # This happens for instance with `./config.status Makefile'. |
||
7509 | if test -n "$CONFIG_HEADERS"; then |
||
7510 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
||
7511 | BEGIN { |
||
7512 | _ACEOF |
||
7513 | |||
7514 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
||
7515 | # here-document in config.status, that substitutes the proper values into |
||
7516 | # config.h.in to produce config.h. |
||
7517 | |||
7518 | # Create a delimiter string that does not exist in confdefs.h, to ease |
||
7519 | # handling of long lines. |
||
7520 | ac_delim='%!_!# ' |
||
7521 | for ac_last_try in false false :; do |
||
7522 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
||
7523 | if test -z "$ac_tt"; then |
||
7524 | break |
||
7525 | elif $ac_last_try; then |
||
7526 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
||
7527 | else |
||
7528 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
||
7529 | fi |
||
7530 | done |
||
7531 | |||
7532 | # For the awk script, D is an array of macro values keyed by name, |
||
7533 | # likewise P contains macro parameters if any. Preserve backslash |
||
7534 | # newline sequences. |
||
7535 | |||
7536 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
||
7537 | sed -n ' |
||
7538 | s/.\{148\}/&'"$ac_delim"'/g |
||
7539 | t rset |
||
7540 | :rset |
||
7541 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
||
7542 | t def |
||
7543 | d |
||
7544 | :def |
||
7545 | s/\\$// |
||
7546 | t bsnl |
||
7547 | s/["\\]/\\&/g |
||
7548 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
7549 | D["\1"]=" \3"/p |
||
7550 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
||
7551 | d |
||
7552 | :bsnl |
||
7553 | s/["\\]/\\&/g |
||
7554 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
||
7555 | D["\1"]=" \3\\\\\\n"\\/p |
||
7556 | t cont |
||
7557 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
||
7558 | t cont |
||
7559 | d |
||
7560 | :cont |
||
7561 | n |
||
7562 | s/.\{148\}/&'"$ac_delim"'/g |
||
7563 | t clear |
||
7564 | :clear |
||
7565 | s/\\$// |
||
7566 | t bsnlc |
||
7567 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
||
7568 | d |
||
7569 | :bsnlc |
||
7570 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
||
7571 | b cont |
||
7572 | ' <confdefs.h | sed ' |
||
7573 | s/'"$ac_delim"'/"\\\ |
||
7574 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
||
7575 | |||
7576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7577 | for (key in D) D_is_set[key] = 1 |
||
7578 | FS = "" |
||
7579 | } |
||
7580 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
||
7581 | line = \$ 0 |
||
7582 | split(line, arg, " ") |
||
7583 | if (arg[1] == "#") { |
||
7584 | defundef = arg[2] |
||
7585 | mac1 = arg[3] |
||
7586 | } else { |
||
7587 | defundef = substr(arg[1], 2) |
||
7588 | mac1 = arg[2] |
||
7589 | } |
||
7590 | split(mac1, mac2, "(") #) |
||
7591 | macro = mac2[1] |
||
7592 | prefix = substr(line, 1, index(line, defundef) - 1) |
||
7593 | if (D_is_set[macro]) { |
||
7594 | # Preserve the white space surrounding the "#". |
||
7595 | print prefix "define", macro P[macro] D[macro] |
||
7596 | next |
||
7597 | } else { |
||
7598 | # Replace #undef with comments. This is necessary, for example, |
||
7599 | # in the case of _POSIX_SOURCE, which is predefined and required |
||
7600 | # on some systems where configure will not decide to define it. |
||
7601 | if (defundef == "undef") { |
||
7602 | print "/*", prefix defundef, macro, "*/" |
||
7603 | next |
||
7604 | } |
||
7605 | } |
||
7606 | } |
||
7607 | { print } |
||
7608 | _ACAWK |
||
7609 | _ACEOF |
||
7610 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7611 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
||
7612 | fi # test -n "$CONFIG_HEADERS" |
||
7613 | |||
7614 | |||
7615 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
||
7616 | shift |
||
7617 | for ac_tag |
||
7618 | do |
||
7619 | case $ac_tag in |
||
7620 | :[FHLC]) ac_mode=$ac_tag; continue;; |
||
7621 | esac |
||
7622 | case $ac_mode$ac_tag in |
||
7623 | :[FHL]*:*);; |
||
7624 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
||
7625 | :[FH]-) ac_tag=-:-;; |
||
7626 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
||
7627 | esac |
||
7628 | ac_save_IFS=$IFS |
||
7629 | IFS=: |
||
7630 | set x $ac_tag |
||
7631 | IFS=$ac_save_IFS |
||
7632 | shift |
||
7633 | ac_file=$1 |
||
7634 | shift |
||
7635 | |||
7636 | case $ac_mode in |
||
7637 | :L) ac_source=$1;; |
||
7638 | :[FH]) |
||
7639 | ac_file_inputs= |
||
7640 | for ac_f |
||
7641 | do |
||
7642 | case $ac_f in |
||
7643 | -) ac_f="$ac_tmp/stdin";; |
||
7644 | *) # Look for the file first in the build tree, then in the source tree |
||
7645 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
||
7646 | # because $ac_f cannot contain `:'. |
||
7647 | test -f "$ac_f" || |
||
7648 | case $ac_f in |
||
7649 | [\\/$]*) false;; |
||
7650 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
||
7651 | esac || |
||
7652 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
||
7653 | esac |
||
7654 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
||
7655 | as_fn_append ac_file_inputs " '$ac_f'" |
||
7656 | done |
||
7657 | |||
7658 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
7659 | # use $as_me), people would be surprised to read: |
||
7660 | # /* config.h. Generated by config.status. */ |
||
7661 | configure_input='Generated from '` |
||
7662 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
||
7663 | `' by configure.' |
||
7664 | if test x"$ac_file" != x-; then |
||
7665 | configure_input="$ac_file. $configure_input" |
||
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
||
7667 | $as_echo "$as_me: creating $ac_file" >&6;} |
||
7668 | fi |
||
7669 | # Neutralize special characters interpreted by sed in replacement strings. |
||
7670 | case $configure_input in #( |
||
7671 | *\&* | *\|* | *\\* ) |
||
7672 | ac_sed_conf_input=`$as_echo "$configure_input" | |
||
7673 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
||
7674 | *) ac_sed_conf_input=$configure_input;; |
||
7675 | esac |
||
7676 | |||
7677 | case $ac_tag in |
||
7678 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
||
7679 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
||
7680 | esac |
||
7681 | ;; |
||
7682 | esac |
||
7683 | |||
7684 | ac_dir=`$as_dirname -- "$ac_file" || |
||
7685 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
7686 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
7687 | X"$ac_file" : 'X\(//\)$' \| \ |
||
7688 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
||
7689 | $as_echo X"$ac_file" | |
||
7690 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
||
7691 | s//\1/ |
||
7692 | q |
||
7693 | } |
||
7694 | /^X\(\/\/\)[^/].*/{ |
||
7695 | s//\1/ |
||
7696 | q |
||
7697 | } |
||
7698 | /^X\(\/\/\)$/{ |
||
7699 | s//\1/ |
||
7700 | q |
||
7701 | } |
||
7702 | /^X\(\/\).*/{ |
||
7703 | s//\1/ |
||
7704 | q |
||
7705 | } |
||
7706 | s/.*/./; q'` |
||
7707 | as_dir="$ac_dir"; as_fn_mkdir_p |
||
7708 | ac_builddir=. |
||
7709 | |||
7710 | case "$ac_dir" in |
||
7711 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
7712 | *) |
||
7713 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
||
7714 | # A ".." for each directory in $ac_dir_suffix. |
||
7715 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
||
7716 | case $ac_top_builddir_sub in |
||
7717 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
||
7718 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
||
7719 | esac ;; |
||
7720 | esac |
||
7721 | ac_abs_top_builddir=$ac_pwd |
||
7722 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
||
7723 | # for backward compatibility: |
||
7724 | ac_top_builddir=$ac_top_build_prefix |
||
7725 | |||
7726 | case $srcdir in |
||
7727 | .) # We are building in place. |
||
7728 | ac_srcdir=. |
||
7729 | ac_top_srcdir=$ac_top_builddir_sub |
||
7730 | ac_abs_top_srcdir=$ac_pwd ;; |
||
7731 | [\\/]* | ?:[\\/]* ) # Absolute name. |
||
7732 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
7733 | ac_top_srcdir=$srcdir |
||
7734 | ac_abs_top_srcdir=$srcdir ;; |
||
7735 | *) # Relative name. |
||
7736 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
||
7737 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
||
7738 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
||
7739 | esac |
||
7740 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
||
7741 | |||
7742 | |||
7743 | case $ac_mode in |
||
7744 | :F) |
||
7745 | # |
||
7746 | # CONFIG_FILE |
||
7747 | # |
||
7748 | |||
7749 | _ACEOF |
||
7750 | |||
7751 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7752 | # If the template does not know about datarootdir, expand it. |
||
7753 | # FIXME: This hack should be removed a few years after 2.60. |
||
7754 | ac_datarootdir_hack=; ac_datarootdir_seen= |
||
7755 | ac_sed_dataroot=' |
||
7756 | /datarootdir/ { |
||
7757 | p |
||
7758 | q |
||
7759 | } |
||
7760 | /@datadir@/p |
||
7761 | /@docdir@/p |
||
7762 | /@infodir@/p |
||
7763 | /@localedir@/p |
||
7764 | /@mandir@/p' |
||
7765 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
||
7766 | *datarootdir*) ac_datarootdir_seen=yes;; |
||
7767 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
||
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
||
7769 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
||
7770 | _ACEOF |
||
7771 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7772 | ac_datarootdir_hack=' |
||
7773 | s&@datadir@&$datadir&g |
||
7774 | s&@docdir@&$docdir&g |
||
7775 | s&@infodir@&$infodir&g |
||
7776 | s&@localedir@&$localedir&g |
||
7777 | s&@mandir@&$mandir&g |
||
7778 | s&\\\${datarootdir}&$datarootdir&g' ;; |
||
7779 | esac |
||
7780 | _ACEOF |
||
7781 | |||
7782 | # Neutralize VPATH when `$srcdir' = `.'. |
||
7783 | # Shell code in configure.ac might set extrasub. |
||
7784 | # FIXME: do we really want to maintain this feature? |
||
7785 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
||
7786 | ac_sed_extra="$ac_vpsub |
||
7787 | $extrasub |
||
7788 | _ACEOF |
||
7789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
||
7790 | :t |
||
7791 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
7792 | s|@configure_input@|$ac_sed_conf_input|;t t |
||
7793 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
||
7794 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
||
7795 | s&@srcdir@&$ac_srcdir&;t t |
||
7796 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
||
7797 | s&@top_srcdir@&$ac_top_srcdir&;t t |
||
7798 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
||
7799 | s&@builddir@&$ac_builddir&;t t |
||
7800 | s&@abs_builddir@&$ac_abs_builddir&;t t |
||
7801 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
||
7802 | $ac_datarootdir_hack |
||
7803 | " |
||
7804 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
||
7805 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
7806 | |||
7807 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
||
7808 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
||
7809 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
||
7810 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
||
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
7812 | which seems to be undefined. Please make sure it is defined" >&5 |
||
7813 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
||
7814 | which seems to be undefined. Please make sure it is defined" >&2;} |
||
7815 | |||
7816 | rm -f "$ac_tmp/stdin" |
||
7817 | case $ac_file in |
||
7818 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
||
7819 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
||
7820 | esac \ |
||
7821 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
7822 | ;; |
||
7823 | :H) |
||
7824 | # |
||
7825 | # CONFIG_HEADER |
||
7826 | # |
||
7827 | if test x"$ac_file" != x-; then |
||
7828 | { |
||
7829 | $as_echo "/* $configure_input */" \ |
||
7830 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
||
7831 | } >"$ac_tmp/config.h" \ |
||
7832 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
7833 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
||
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
||
7835 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
||
7836 | else |
||
7837 | rm -f "$ac_file" |
||
7838 | mv "$ac_tmp/config.h" "$ac_file" \ |
||
7839 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
||
7840 | fi |
||
7841 | else |
||
7842 | $as_echo "/* $configure_input */" \ |
||
7843 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
||
7844 | || as_fn_error $? "could not create -" "$LINENO" 5 |
||
7845 | fi |
||
7846 | ;; |
||
7847 | |||
7848 | |||
7849 | esac |
||
7850 | |||
7851 | done # for ac_tag |
||
7852 | |||
7853 | |||
7854 | as_fn_exit 0 |
||
7855 | _ACEOF |
||
7856 | ac_clean_files=$ac_clean_files_save |
||
7857 | |||
7858 | test $ac_write_fail = 0 || |
||
7859 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
||
7860 | |||
7861 | |||
7862 | # configure is writing to config.log, and then calls config.status. |
||
7863 | # config.status does its own redirection, appending to config.log. |
||
7864 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
7865 | # by configure, so config.status won't be able to write to it; its |
||
7866 | # output is simply discarded. So we exec the FD to /dev/null, |
||
7867 | # effectively closing config.log, so it can be properly (re)opened and |
||
7868 | # appended to by config.status. When coming back to configure, we |
||
7869 | # need to make the FD available again. |
||
7870 | if test "$no_create" != yes; then |
||
7871 | ac_cs_success=: |
||
7872 | ac_config_status_args= |
||
7873 | test "$silent" = yes && |
||
7874 | ac_config_status_args="$ac_config_status_args --quiet" |
||
7875 | exec 5>/dev/null |
||
7876 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
7877 | exec 5>>config.log |
||
7878 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
7879 | # would make configure fail if this is the last instruction. |
||
7880 | $ac_cs_success || as_fn_exit 1 |
||
7881 | fi |
||
7882 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
||
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
||
7884 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
||
7885 | fi |
||
7886 |