Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 3 of 4 — not the installed (fully patched) source.
4 Debian patches touch this file
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Regina Rexx Interpreter 3.9.5.
4 #
5 # Report bugs to <[email protected]>.
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 [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: 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='Regina Rexx Interpreter'
582 PACKAGE_TARNAME='regina-rexx'
583 PACKAGE_VERSION='3.9.5'
584 PACKAGE_STRING='Regina Rexx Interpreter 3.9.5'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_default_prefix=/usr/local
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 MH_UNSIGNED_CHAR_SWITCH
627 systemdinstallpath
628 initinstaller
629 MYDISTRO
630 lsb_release
631 PACKAGE_RELEASE
632 apktopdir
633 mh_apk_exists
634 debtopdir
635 mh_dpkg_exists
636 rpmtopdir
637 mh_rpm_exists
638 packagesdir
639 brewaddonsdir
640 addonsdir
641 HAVE_REGINA_ADDON_DIR
642 REXXSOCKET
643 FLISTS
644 TRACEMEM
645 REGINA_CONFIG_LIBS
646 EXECISER_BINARY_LIBS
647 THREADER_BINARY_LIBS
648 REGINA_BINARY_LIBS
649 LIBREGUTIL_BINARY_LIBS
650 LIBREGINA_BINARY_LIBS
651 REXX_BINARY_LIBS
652 STACK_BINARY_LIBS
653 LARGE_FILE_SUPPORT
654 getconf
655 STATICLD_SHO
656 SHL_NAME_RXTEST2
657 SHL_NAME_RXTEST1
658 SHL_NAME_REGUTIL
659 SHL_NAME_REGINA
660 O2TSO
661 O2TSAVE
662 RANLIB_DYNAMIC
663 USE_ABI
664 REGUTILEXPORTS
665 REGUTILEXP
666 TEST2EXPORTS
667 TEST2EXP
668 TEST1EXPORTS
669 TEST1EXP
670 STATIC_LDFLAGS
671 STATICLIB
672 SHL_TARGETS
673 SHL_LD
674 BUNDLE
675 SHLPRE
676 SHLIBS
677 SHLFILE
678 SAVE2O
679 REGINAEXP
680 OTHER_INSTALLS
681 OSAVE
682 OBJECTS
683 OBJ
684 O2SHO
685 O2SAVE
686 LINKREG
687 LIBPST
688 LIBPRE
689 LINKSHL
690 LIBLINK
691 LIBFLAGS
692 LIBFILE
693 LIBEXE
694 LD_RXLIB_UTILB
695 LD_RXLIB_B2
696 LD_RXLIB_B1
697 LD_RXLIB_UTILA
698 LD_RXLIB_A2
699 LD_RXLIB_A1
700 GETOPT
701 EXECISER_DEP
702 EEXTRA
703 DYN_COMP
704 DYNAMIC_LDFLAGS
705 CEXTRA
706 CC2O
707 BOTHLIBS
708 BASE_INSTALL
709 BASE_BINARY
710 MH_FUNC_LIBS
711 rexxws_config
712 rexxpdf_config
713 rexxcsv_config
714 rexxdw_config
715 rxsock_config
716 rexxisam_config
717 rexxeec_config
718 rexxsql_config
719 rexxcurl_config
720 rexxgd_config
721 rexxtk_config
722 rxcurses_config
723 REGINAMULTITHREAD
724 MT_FILE
725 MH_MT_LIBS
726 THREADSAFE_TARGET
727 THREADING_LINK
728 THREADING_COMPILE
729 SHL_SCRIPT
730 MY_GETOPT_SO_O
731 MY_GETOPT_O
732 HAVE_GCI
733 GCI_SHO
734 DLFCNLIBDIR
735 MODPST
736 SHLPST
737 DLFCNINCDIR
738 EFENCE
739 PURIFY
740 DEBUGGING
741 DEBUG
742 REGUTIL_MATH_LIB
743 REGUTIL_TERM_LIB
744 REGSCREENUX
745 SCREEN_FUNCS
746 FNMATCH_TSO
747 FNMATCH_SHO
748 FNMATCH
749 ALLOCA_TSO
750 ALLOCA_SHO
751 ALLOCA
752 LIBOBJS
753 EGREP
754 GREP
755 CPP
756 SET_MAKE
757 LN_S
758 RANLIB
759 LEXLIB
760 LEX_OUTPUT_ROOT
761 LEX
762 STATIC_BINARY_LIBS
763 GCI_CONVERT_HEADER
764 SYS_DEFS
765 bitflag
766 libdir32
767 libdir64
768 MY_PREFIX
769 valid_arch_flags
770 binarybitprefix
771 MACH_ARCH
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 OBJEXT
785 EXEEXT
786 ac_ct_CC
787 CPPFLAGS
788 LDFLAGS
789 CFLAGS
790 CC
791 FULL_PACKAGE_NAME
792 REGINA_PACKAGE_NAME
793 VER_SOMINOR
794 VER_SOMAJOR
795 VER_SUPP
796 VER_RELEASE
797 VER_MINOR
798 VER_MAJOR
799 VER_DATE
800 VERSION_NODOT
801 VERSION_UNQUOTED
802 VERSION
803 target_alias
804 host_alias
805 build_alias
806 LIBS
807 ECHO_T
808 ECHO_N
809 ECHO_C
810 DEFS
811 mandir
812 localedir
813 libdir
814 psdir
815 pdfdir
816 dvidir
817 htmldir
818 infodir
819 docdir
820 oldincludedir
821 includedir
822 runstatedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_32bit
846 enable_64bit
847 with_arch
848 enable_libdir_change
849 enable_screen
850 enable_debug
851 enable_purify
852 enable_efence
853 enable_hpux_portable
854 with_dlfcnincdir
855 with_dlfcnlibdir
856 with_staticfunctions
857 enable_orexx_binary_compatible
858 enable_posix_threads
859 enable_gci
860 with_testpackage
861 with_regutil
862 with_rexxcurses
863 with_rexxtk
864 with_rexxgd
865 with_rexxcurl
866 with_rexxsql
867 with_rexxeec
868 with_rexxisam
869 with_rxsock
870 with_rexxdw
871 with_rexxcsv
872 with_rexxpdf
873 with_rexxws
874 enable_tracemem
875 enable_flists
876 with_socket
877 with_addon_dir
878 with_brew_addon_dir
879 '
880 ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 ac_unrecognized_opts=
895 ac_unrecognized_sep=
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 runstatedir='${localstatedir}/run'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
955 esac
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 bindir=$ac_optarg ;;
967
968 -build | --build | --buil | --bui | --bu)
969 ac_prev=build_alias ;;
970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971 build_alias=$ac_optarg ;;
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
982
983 -datadir | --datadir | --datadi | --datad)
984 ac_prev=datadir ;;
985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
986 datadir=$ac_optarg ;;
987
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
995 -disable-* | --disable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
1020
1021 -enable-* | --enable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030 "enable_$ac_useropt"
1031 "*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1034 esac
1035 eval enable_$ac_useropt=\$ac_optarg ;;
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1044 exec_prefix=$ac_optarg ;;
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
1056
1057 -host | --host | --hos | --ho)
1058 ac_prev=host_alias ;;
1059 -host=* | --host=* | --hos=* | --ho=*)
1060 host_alias=$ac_optarg ;;
1061
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1073 includedir=$ac_optarg ;;
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078 infodir=$ac_optarg ;;
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083 libdir=$ac_optarg ;;
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1090 libexecdir=$ac_optarg ;;
1091
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
1098 | --localstate | --localstat | --localsta | --localst | --locals)
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102 localstatedir=$ac_optarg ;;
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107 mandir=$ac_optarg ;;
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114 | --no-cr | --no-c | -n)
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128 oldincludedir=$ac_optarg ;;
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133 prefix=$ac_optarg ;;
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140 program_prefix=$ac_optarg ;;
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147 program_suffix=$ac_optarg ;;
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1164 program_transform_name=$ac_optarg ;;
1165
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -runstatedir | --runstatedir | --runstatedi | --runstated \
1181 | --runstate | --runstat | --runsta | --runst | --runs \
1182 | --run | --ru | --r)
1183 ac_prev=runstatedir ;;
1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1186 | --run=* | --ru=* | --r=*)
1187 runstatedir=$ac_optarg ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1193 sbindir=$ac_optarg ;;
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1204 sharedstatedir=$ac_optarg ;;
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1209 site=$ac_optarg ;;
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1233
1234 -with-* | --with-*)
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1283
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1286 ;;
1287
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1297
1298 *)
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1304 ;;
1305
1306 esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1312 fi
1313
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320 fi
1321
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir runstatedir
1327 do
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
1336 case $ac_val in
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339 esac
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1341 done
1342
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1346 build=$build_alias
1347 host=$host_alias
1348 target=$target_alias
1349
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures Regina Rexx Interpreter 3.9.5 to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/regina-rexx]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1493 _ACEOF
1494
1495 cat <<\_ACEOF
1496
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 --target=TARGET configure for building compilers for TARGET [HOST]
1501 _ACEOF
1502 fi
1503
1504 if test -n "$ac_init_help"; then
1505 case $ac_init_help in
1506 short | recursive ) echo "Configuration of Regina Rexx Interpreter 3.9.5:";;
1507 esac
1508 cat <<\_ACEOF
1509
1510 Optional Features:
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-32bit specify if 32bit libraries are to be used
1515 --enable-64bit specify if 64bit libraries are to be used
1516 --enable-libdir-change specify --disable-libdir-change if building a .deb
1517 --disable-screen disable terminal functions
1518 --enable-debug turn on debugging
1519 --enable-purify link with Purify (TM)
1520 --enable-efence link with Electric Fence
1521 --enable-hpux-portable make HP-UX binaries portable
1522 --enable-orexx-binary-compatible enable binary compatibility with ORexx
1523 --disable-posix-threads disable POSIX-style multi-threading
1524 --disable-gci disable General Call Interface
1525 --enable-tracemem enable memory tracing in debug mode
1526 --disable-flists disable memory management functions
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-arch=option build universal binaries on MacOS, option: one of "all 32bit 64bit intel apple-silicon ppc ppc64 x86_64 i386 arm64"
1532 --with-dlfcnincdir location of dlfcn.h
1533 --with-dlfcnlibdir location of libdl.a(AIX) libdl.dylib(MacOSX)
1534 --with-staticfunctions enable static linking of external function packages
1535 --with-testpackage enable static linking with Regina test external function packages
1536 --with-regutil enable static linking with RegUtil external function package
1537 --with-rexxcurses enable static linking with Rexx/Curses external function package
1538 --with-rexxtk enable static linking with Rexx/Tk external function package
1539 --with-rexxgd enable static linking with Rexx/Gd external function package
1540 --with-rexxcurl enable static linking with Rexx/CURL external function package
1541 --with-rexxsql enable static linking with Rexx/SQL external function package
1542 --with-rexxeec enable static linking with Rexx/EEC external function package
1543 --with-rexxisam enable static linking with Rexx/ISAM external function package
1544 --with-rxsock enable static linking with RxSock external function package
1545 --with-rexxdw enable static linking with Rexx/DW external function package
1546 --with-rexxcsv enable static linking with Rexx/CSV external function package
1547 --with-rexxpdf enable static linking with Rexx/PDF external function package
1548 --with-rexxws enable static linking with Rexx/WS external function package
1549 --with-socket=9999 socket to use for external queues (default 5757)
1550 --with-addon-dir=dir location of external function packages (default libdir/regina-rexx/addons)
1551 --with-brew-addon-dir=dir location of HomeBrew internal addons dir (default blank)
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 Report bugs to <[email protected]>.
1567 _ACEOF
1568 ac_status=$?
1569 fi
1570
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1578
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1594
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1624 fi
1625
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 Regina Rexx Interpreter configure 3.9.5
1630 generated by GNU Autoconf 2.69
1631
1632 Copyright (C) 2012 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1642
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675 fi
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 test -x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716 fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } > conftest.i && {
1749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_cpp
1763
1764 # ac_fn_c_try_run LINENO
1765 # ----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767 # that executables *can* be run.
1768 ac_fn_c_try_run ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_link"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782 { { case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_try") 2>&5
1789 ac_status=$?
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; }; }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: program exited with status $ac_status" >&5
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=$ac_status
1799 fi
1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802 as_fn_set_status $ac_retval
1803
1804 } # ac_fn_c_try_run
1805
1806 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1807 # -------------------------------------------------------
1808 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1809 # the include files in INCLUDES and setting the cache variable VAR
1810 # accordingly.
1811 ac_fn_c_check_header_mongrel ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if eval \${$3+:} false; then :
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 else
1824 # Is the header compilable?
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1826 $as_echo_n "checking $2 usability... " >&6; }
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833 ac_header_compiler=yes
1834 else
1835 ac_header_compiler=no
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1839 $as_echo "$ac_header_compiler" >&6; }
1840
1841 # Is the header present?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1843 $as_echo_n "checking $2 presence... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_cpp "$LINENO"; then :
1849 ac_header_preproc=yes
1850 else
1851 ac_header_preproc=no
1852 fi
1853 rm -f conftest.err conftest.i conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1855 $as_echo "$ac_header_preproc" >&6; }
1856
1857 # So? What about this header?
1858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1859 yes:no: )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1861 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865 no:yes:* )
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1867 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1869 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1871 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1873 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 ( $as_echo "## ---------------------------- ##
1877 ## Report this to [email protected] ##
1878 ## ---------------------------- ##"
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1880 ;;
1881 esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval \${$3+:} false; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_header_compile
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_func
1994
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=no"
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2010 $4
2011 int
2012 main ()
2013 {
2014 if (sizeof ($2))
2015 return 0;
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $4
2024 int
2025 main ()
2026 {
2027 if (sizeof (($2)))
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034
2035 else
2036 eval "$3=yes"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047 } # ac_fn_c_check_type
2048 cat >config.log <<_ACEOF
2049 This file contains any messages produced by compilers while
2050 running configure, to aid debugging if configure makes a mistake.
2051
2052 It was created by Regina Rexx Interpreter $as_me 3.9.5, which was
2053 generated by GNU Autoconf 2.69. Invocation command line was
2054
2055 $ $0 $@
2056
2057 _ACEOF
2058 exec 5>>config.log
2059 {
2060 cat <<_ASUNAME
2061 ## --------- ##
2062 ## Platform. ##
2063 ## --------- ##
2064
2065 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2066 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2067 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2068 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2069 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2070
2071 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2072 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2073
2074 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2075 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2076 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2077 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2078 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2079 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2080 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2081
2082 _ASUNAME
2083
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2086 do
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 $as_echo "PATH: $as_dir"
2090 done
2091 IFS=$as_save_IFS
2092
2093 } >&5
2094
2095 cat >&5 <<_ACEOF
2096
2097
2098 ## ----------- ##
2099 ## Core tests. ##
2100 ## ----------- ##
2101
2102 _ACEOF
2103
2104
2105 # Keep a trace of the command line.
2106 # Strip out --no-create and --no-recursion so they do not pile up.
2107 # Strip out --silent because we don't want to record it for future runs.
2108 # Also quote any args containing shell meta-characters.
2109 # Make two passes to allow for proper duplicate-argument suppression.
2110 ac_configure_args=
2111 ac_configure_args0=
2112 ac_configure_args1=
2113 ac_must_keep_next=false
2114 for ac_pass in 1 2
2115 do
2116 for ac_arg
2117 do
2118 case $ac_arg in
2119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2121 | -silent | --silent | --silen | --sile | --sil)
2122 continue ;;
2123 *\'*)
2124 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2125 esac
2126 case $ac_pass in
2127 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2128 2)
2129 as_fn_append ac_configure_args1 " '$ac_arg'"
2130 if test $ac_must_keep_next = true; then
2131 ac_must_keep_next=false # Got value, back to normal.
2132 else
2133 case $ac_arg in
2134 *=* | --config-cache | -C | -disable-* | --disable-* \
2135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2137 | -with-* | --with-* | -without-* | --without-* | --x)
2138 case "$ac_configure_args0 " in
2139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2140 esac
2141 ;;
2142 -* ) ac_must_keep_next=true ;;
2143 esac
2144 fi
2145 as_fn_append ac_configure_args " '$ac_arg'"
2146 ;;
2147 esac
2148 done
2149 done
2150 { ac_configure_args0=; unset ac_configure_args0;}
2151 { ac_configure_args1=; unset ac_configure_args1;}
2152
2153 # When interrupted or exit'd, cleanup temporary files, and complete
2154 # config.log. We remove comments because anyway the quotes in there
2155 # would cause problems or look ugly.
2156 # WARNING: Use '\'' to represent an apostrophe within the trap.
2157 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2158 trap 'exit_status=$?
2159 # Save into config.log some information that might help in debugging.
2160 {
2161 echo
2162
2163 $as_echo "## ---------------- ##
2164 ## Cache variables. ##
2165 ## ---------------- ##"
2166 echo
2167 # The following way of writing the cache mishandles newlines in values,
2168 (
2169 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in #(
2172 *${as_nl}*)
2173 case $ac_var in #(
2174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2176 esac
2177 case $ac_var in #(
2178 _ | IFS | as_nl) ;; #(
2179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2180 *) { eval $ac_var=; unset $ac_var;} ;;
2181 esac ;;
2182 esac
2183 done
2184 (set) 2>&1 |
2185 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2186 *${as_nl}ac_space=\ *)
2187 sed -n \
2188 "s/'\''/'\''\\\\'\'''\''/g;
2189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2190 ;; #(
2191 *)
2192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 ;;
2194 esac |
2195 sort
2196 )
2197 echo
2198
2199 $as_echo "## ----------------- ##
2200 ## Output variables. ##
2201 ## ----------------- ##"
2202 echo
2203 for ac_var in $ac_subst_vars
2204 do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 $as_echo "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2212
2213 if test -n "$ac_subst_files"; then
2214 $as_echo "## ------------------- ##
2215 ## File substitutions. ##
2216 ## ------------------- ##"
2217 echo
2218 for ac_var in $ac_subst_files
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 $as_echo "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227 fi
2228
2229 if test -s confdefs.h; then
2230 $as_echo "## ----------- ##
2231 ## confdefs.h. ##
2232 ## ----------- ##"
2233 echo
2234 cat confdefs.h
2235 echo
2236 fi
2237 test "$ac_signal" != 0 &&
2238 $as_echo "$as_me: caught signal $ac_signal"
2239 $as_echo "$as_me: exit $exit_status"
2240 } >&5
2241 rm -f core *.core core.conftest.* &&
2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2243 exit $exit_status
2244 ' 0
2245 for ac_signal in 1 2 13 15; do
2246 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2247 done
2248 ac_signal=0
2249
2250 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2251 rm -f -r conftest* confdefs.h
2252
2253 $as_echo "/* confdefs.h */" > confdefs.h
2254
2255 # Predefined preprocessor variables.
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_NAME "$PACKAGE_NAME"
2259 _ACEOF
2260
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2263 _ACEOF
2264
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2267 _ACEOF
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_STRING "$PACKAGE_STRING"
2271 _ACEOF
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2275 _ACEOF
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_URL "$PACKAGE_URL"
2279 _ACEOF
2280
2281
2282 # Let the site file select an alternate cache file if it wants to.
2283 # Prefer an explicitly selected file to automatically selected ones.
2284 ac_site_file1=NONE
2285 ac_site_file2=NONE
2286 if test -n "$CONFIG_SITE"; then
2287 # We do not want a PATH search for config.site.
2288 case $CONFIG_SITE in #((
2289 -*) ac_site_file1=./$CONFIG_SITE;;
2290 */*) ac_site_file1=$CONFIG_SITE;;
2291 *) ac_site_file1=./$CONFIG_SITE;;
2292 esac
2293 elif test "x$prefix" != xNONE; then
2294 ac_site_file1=$prefix/share/config.site
2295 ac_site_file2=$prefix/etc/config.site
2296 else
2297 ac_site_file1=$ac_default_prefix/share/config.site
2298 ac_site_file2=$ac_default_prefix/etc/config.site
2299 fi
2300 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2301 do
2302 test "x$ac_site_file" = xNONE && continue
2303 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2305 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2306 sed 's/^/| /' "$ac_site_file" >&5
2307 . "$ac_site_file" \
2308 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 as_fn_error $? "failed to load site script $ac_site_file
2311 See \`config.log' for more details" "$LINENO" 5; }
2312 fi
2313 done
2314
2315 if test -r "$cache_file"; then
2316 # Some versions of bash will fail to source /dev/null (special files
2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2320 $as_echo "$as_me: loading cache $cache_file" >&6;}
2321 case $cache_file in
2322 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2323 *) . "./$cache_file";;
2324 esac
2325 fi
2326 else
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2328 $as_echo "$as_me: creating cache $cache_file" >&6;}
2329 >$cache_file
2330 fi
2331
2332 # Check that the precious variables saved in the cache have kept the same
2333 # value.
2334 ac_cache_corrupted=false
2335 for ac_var in $ac_precious_vars; do
2336 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2337 eval ac_new_set=\$ac_env_${ac_var}_set
2338 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2339 eval ac_new_val=\$ac_env_${ac_var}_value
2340 case $ac_old_set,$ac_new_set in
2341 set,)
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2343 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2344 ac_cache_corrupted=: ;;
2345 ,set)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2349 ,);;
2350 *)
2351 if test "x$ac_old_val" != "x$ac_new_val"; then
2352 # differences in whitespace do not lead to failure.
2353 ac_old_val_w=`echo x $ac_old_val`
2354 ac_new_val_w=`echo x $ac_new_val`
2355 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2357 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2358 ac_cache_corrupted=:
2359 else
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2361 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2362 eval $ac_var=\$ac_old_val
2363 fi
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2365 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2367 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2368 fi;;
2369 esac
2370 # Pass precious variables to config.status.
2371 if test "$ac_new_set" = set; then
2372 case $ac_new_val in
2373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 *) ac_arg=$ac_var=$ac_new_val ;;
2375 esac
2376 case " $ac_configure_args " in
2377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2378 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2379 esac
2380 fi
2381 done
2382 if $ac_cache_corrupted; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2386 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2388 fi
2389 ## -------------------- ##
2390 ## Main body of script. ##
2391 ## -------------------- ##
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398
2399
2400
2401
2402 . $srcdir/regina.ver
2403 VERSION_NODOT=\"$VER\"
2404 VERSION=\"$VER_DOT\"
2405 VERSION_UNQUOTED=$VER_DOT
2406 VER_DATE=\"$VER_DATE\"
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417 REGINA_PACKAGE_NAME="regina-rexx"
2418
2419
2420 FULL_PACKAGE_NAME=$REGINA_PACKAGE_NAME-$VER_DOT
2421
2422
2423 cp $srcdir/common/config.guess $srcdir
2424 cp $srcdir/common/config.sub $srcdir
2425
2426
2427 mh_sysv_incdir=""
2428 mh_sysv_libdir=""
2429 all_words="clang gcc xlc c99 c89 acc cc"
2430 ac_dir=""
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for one of the following C compilers: $all_words" >&5
2432 $as_echo_n "checking for one of the following C compilers: $all_words... " >&6; }
2433 if ${ac_cv_prog_CC+:} false; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2441 for mh_cc in $all_words; do
2442 for ac_dir in $PATH; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$mh_cc; then
2445 ac_cv_prog_CC="$mh_cc"
2446 if test "$ac_dir" = "/usr/5bin"; then
2447 mh_sysv_incdir="/usr/5include"
2448 mh_sysv_libdir="/usr/5lib"
2449 fi
2450 break 2
2451 fi
2452 done
2453 done
2454 IFS="$ac_save_ifs"
2455 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
2456 fi
2457 CC="$ac_cv_prog_CC"
2458
2459 fi
2460
2461
2462 if test "$ac_dir" = ""; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_cv_prog_CC specified in CC env variable" >&5
2464 $as_echo "using $ac_cv_prog_CC specified in CC env variable" >&6; }
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $ac_dir/$ac_cv_prog_CC" >&5
2467 $as_echo "using $ac_dir/$ac_cv_prog_CC" >&6; }
2468 fi
2469
2470
2471 ac_config_headers="$ac_config_headers config.h"
2472
2473 ac_ext=c
2474 ac_cpp='$CPP $CPPFLAGS'
2475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2478 if test -n "$ac_tool_prefix"; then
2479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2482 $as_echo_n "checking for $ac_word... " >&6; }
2483 if ${ac_cv_prog_CC+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC="$CC" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 break 2
2499 fi
2500 done
2501 done
2502 IFS=$as_save_IFS
2503
2504 fi
2505 fi
2506 CC=$ac_cv_prog_CC
2507 if test -n "$CC"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2509 $as_echo "$CC" >&6; }
2510 else
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2512 $as_echo "no" >&6; }
2513 fi
2514
2515
2516 fi
2517 if test -z "$ac_cv_prog_CC"; then
2518 ac_ct_CC=$CC
2519 # Extract the first word of "gcc", so it can be a program name with args.
2520 set dummy gcc; ac_word=$2
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2522 $as_echo_n "checking for $ac_word... " >&6; }
2523 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2524 $as_echo_n "(cached) " >&6
2525 else
2526 if test -n "$ac_ct_CC"; then
2527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 else
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 for as_dir in $PATH
2531 do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2536 ac_cv_prog_ac_ct_CC="gcc"
2537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540 done
2541 done
2542 IFS=$as_save_IFS
2543
2544 fi
2545 fi
2546 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547 if test -n "$ac_ct_CC"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2549 $as_echo "$ac_ct_CC" >&6; }
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2552 $as_echo "no" >&6; }
2553 fi
2554
2555 if test "x$ac_ct_CC" = x; then
2556 CC=""
2557 else
2558 case $cross_compiling:$ac_tool_warned in
2559 yes:)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2563 esac
2564 CC=$ac_ct_CC
2565 fi
2566 else
2567 CC="$ac_cv_prog_CC"
2568 fi
2569
2570 if test -z "$CC"; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}cc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2584 do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_CC="${ac_tool_prefix}cc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2592 fi
2593 done
2594 done
2595 IFS=$as_save_IFS
2596
2597 fi
2598 fi
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 fi
2607
2608
2609 fi
2610 fi
2611 if test -z "$CC"; then
2612 # Extract the first word of "cc", so it can be a program name with args.
2613 set dummy cc; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 else
2622 ac_prog_rejected=no
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2631 ac_prog_rejected=yes
2632 continue
2633 fi
2634 ac_cv_prog_CC="cc"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 break 2
2637 fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2641
2642 if test $ac_prog_rejected = yes; then
2643 # We found a bogon in the path, so make sure we never use it.
2644 set dummy $ac_cv_prog_CC
2645 shift
2646 if test $# != 0; then
2647 # We chose a different compiler from the bogus one.
2648 # However, it has the same basename, so the bogon will be chosen
2649 # first if we set CC to just the basename; use the full file name.
2650 shift
2651 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2652 fi
2653 fi
2654 fi
2655 fi
2656 CC=$ac_cv_prog_CC
2657 if test -n "$CC"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2659 $as_echo "$CC" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2663 fi
2664
2665
2666 fi
2667 if test -z "$CC"; then
2668 if test -n "$ac_tool_prefix"; then
2669 for ac_prog in cl.exe
2670 do
2671 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2705 fi
2706
2707
2708 test -n "$CC" && break
2709 done
2710 fi
2711 if test -z "$CC"; then
2712 ac_ct_CC=$CC
2713 for ac_prog in cl.exe
2714 do
2715 # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 ac_cv_prog_ac_ct_CC="$ac_prog"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 $as_echo "$ac_ct_CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 test -n "$ac_ct_CC" && break
2753 done
2754
2755 if test "x$ac_ct_CC" = x; then
2756 CC=""
2757 else
2758 case $cross_compiling:$ac_tool_warned in
2759 yes:)
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762 ac_tool_warned=yes ;;
2763 esac
2764 CC=$ac_ct_CC
2765 fi
2766 fi
2767
2768 fi
2769
2770
2771 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2773 as_fn_error $? "no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details" "$LINENO" 5; }
2775
2776 # Provide some information about the compiler.
2777 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2778 set X $ac_compile
2779 ac_compiler=$2
2780 for ac_option in --version -v -V -qversion; do
2781 { { ac_try="$ac_compiler $ac_option >&5"
2782 case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2785 esac
2786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2787 $as_echo "$ac_try_echo"; } >&5
2788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2789 ac_status=$?
2790 if test -s conftest.err; then
2791 sed '10a\
2792 ... rest of stderr output deleted ...
2793 10q' conftest.err >conftest.er1
2794 cat conftest.er1 >&5
2795 fi
2796 rm -f conftest.er1 conftest.err
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; }
2799 done
2800
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2803
2804 int
2805 main ()
2806 {
2807
2808 ;
2809 return 0;
2810 }
2811 _ACEOF
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2816 # of exeext.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2818 $as_echo_n "checking whether the C compiler works... " >&6; }
2819 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2820
2821 # The possible output files:
2822 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2823
2824 ac_rmfiles=
2825 for ac_file in $ac_files
2826 do
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2829 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2830 esac
2831 done
2832 rm -f $ac_rmfiles
2833
2834 if { { ac_try="$ac_link_default"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_link_default") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; then :
2845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2846 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2847 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2848 # so that the user can short-circuit this test for compilers unknown to
2849 # Autoconf.
2850 for ac_file in $ac_files ''
2851 do
2852 test -f "$ac_file" || continue
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2855 ;;
2856 [ab].out )
2857 # We found the default executable, but exeext='' is most
2858 # certainly right.
2859 break;;
2860 *.* )
2861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2862 then :; else
2863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 fi
2865 # We set ac_cv_exeext here because the later test for it is not
2866 # safe: cross compilers may not add the suffix if given an `-o'
2867 # argument, so we may need to know it at that point already.
2868 # Even if this section looks crufty: it has the advantage of
2869 # actually working.
2870 break;;
2871 * )
2872 break;;
2873 esac
2874 done
2875 test "$ac_cv_exeext" = no && ac_cv_exeext=
2876
2877 else
2878 ac_file=''
2879 fi
2880 if test -z "$ac_file"; then :
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2883 $as_echo "$as_me: failed program was:" >&5
2884 sed 's/^/| /' conftest.$ac_ext >&5
2885
2886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888 as_fn_error 77 "C compiler cannot create executables
2889 See \`config.log' for more details" "$LINENO" 5; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892 $as_echo "yes" >&6; }
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2895 $as_echo_n "checking for C compiler default output file name... " >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2897 $as_echo "$ac_file" >&6; }
2898 ac_exeext=$ac_cv_exeext
2899
2900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2901 ac_clean_files=$ac_clean_files_save
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2903 $as_echo_n "checking for suffix of executables... " >&6; }
2904 if { { ac_try="$ac_link"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; then :
2915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2916 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2917 # work properly (i.e., refer to `conftest.exe'), while it won't with
2918 # `rm'.
2919 for ac_file in conftest.exe conftest conftest.*; do
2920 test -f "$ac_file" || continue
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 break;;
2925 * ) break;;
2926 esac
2927 done
2928 else
2929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2931 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2932 See \`config.log' for more details" "$LINENO" 5; }
2933 fi
2934 rm -f conftest conftest$ac_cv_exeext
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2936 $as_echo "$ac_cv_exeext" >&6; }
2937
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2940 ac_exeext=$EXEEXT
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2943 #include <stdio.h>
2944 int
2945 main ()
2946 {
2947 FILE *f = fopen ("conftest.out", "w");
2948 return ferror (f) || fclose (f) != 0;
2949
2950 ;
2951 return 0;
2952 }
2953 _ACEOF
2954 ac_clean_files="$ac_clean_files conftest.out"
2955 # Check that the compiler produces executables we can run. If not, either
2956 # the compiler is broken, or we cross compile.
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2958 $as_echo_n "checking whether we are cross compiling... " >&6; }
2959 if test "$cross_compiling" != yes; then
2960 { { ac_try="$ac_link"
2961 case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964 esac
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_link") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }
2971 if { ac_try='./conftest$ac_cv_exeext'
2972 { { case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_try") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2981 test $ac_status = 0; }; }; then
2982 cross_compiling=no
2983 else
2984 if test "$cross_compiling" = maybe; then
2985 cross_compiling=yes
2986 else
2987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989 as_fn_error $? "cannot run C compiled programs.
2990 If you meant to cross compile, use \`--host'.
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 fi
2993 fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2996 $as_echo "$cross_compiling" >&6; }
2997
2998 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2999 ac_clean_files=$ac_clean_files_save
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3001 $as_echo_n "checking for suffix of object files... " >&6; }
3002 if ${ac_cv_objext+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 rm -f conftest.o conftest.obj
3017 if { { ac_try="$ac_compile"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compile") 2>&5
3025 ac_status=$?
3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3027 test $ac_status = 0; }; then :
3028 for ac_file in conftest.o conftest.obj conftest.*; do
3029 test -f "$ac_file" || continue;
3030 case $ac_file in
3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 break;;
3034 esac
3035 done
3036 else
3037 $as_echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "cannot compute suffix of object files: cannot compile
3043 See \`config.log' for more details" "$LINENO" 5; }
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3046 fi
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3048 $as_echo "$ac_cv_objext" >&6; }
3049 OBJEXT=$ac_cv_objext
3050 ac_objext=$OBJEXT
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3052 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3053 if ${ac_cv_c_compiler_gnu+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063 choke me
3064 #endif
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 if ac_fn_c_try_compile "$LINENO"; then :
3071 ac_compiler_gnu=yes
3072 else
3073 ac_compiler_gnu=no
3074 fi
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3080 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3081 if test $ac_compiler_gnu = yes; then
3082 GCC=yes
3083 else
3084 GCC=
3085 fi
3086 ac_test_CFLAGS=${CFLAGS+set}
3087 ac_save_CFLAGS=$CFLAGS
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3089 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3090 if ${ac_cv_prog_cc_g+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 ac_save_c_werror_flag=$ac_c_werror_flag
3094 ac_c_werror_flag=yes
3095 ac_cv_prog_cc_g=no
3096 CFLAGS="-g"
3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_cv_prog_cc_g=yes
3110 else
3111 CFLAGS=""
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3114
3115 int
3116 main ()
3117 {
3118
3119 ;
3120 return 0;
3121 }
3122 _ACEOF
3123 if ac_fn_c_try_compile "$LINENO"; then :
3124
3125 else
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 CFLAGS="-g"
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130
3131 int
3132 main ()
3133 {
3134
3135 ;
3136 return 0;
3137 }
3138 _ACEOF
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_g=yes
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 fi
3144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3145 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 fi
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3150 $as_echo "$ac_cv_prog_cc_g" >&6; }
3151 if test "$ac_test_CFLAGS" = set; then
3152 CFLAGS=$ac_save_CFLAGS
3153 elif test $ac_cv_prog_cc_g = yes; then
3154 if test "$GCC" = yes; then
3155 CFLAGS="-g -O2"
3156 else
3157 CFLAGS="-g"
3158 fi
3159 else
3160 if test "$GCC" = yes; then
3161 CFLAGS="-O2"
3162 else
3163 CFLAGS=
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3167 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3168 if ${ac_cv_prog_cc_c89+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 ac_cv_prog_cc_c89=no
3172 ac_save_CC=$CC
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3175 #include <stdarg.h>
3176 #include <stdio.h>
3177 struct stat;
3178 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3179 struct buf { int x; };
3180 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3181 static char *e (p, i)
3182 char **p;
3183 int i;
3184 {
3185 return p[i];
3186 }
3187 static char *f (char * (*g) (char **, int), char **p, ...)
3188 {
3189 char *s;
3190 va_list v;
3191 va_start (v,p);
3192 s = g (p, va_arg (v,int));
3193 va_end (v);
3194 return s;
3195 }
3196
3197 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3198 function prototypes and stuff, but not '\xHH' hex character constants.
3199 These don't provoke an error unfortunately, instead are silently treated
3200 as 'x'. The following induces an error, until -std is added to get
3201 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3202 array size at least. It's necessary to write '\x00'==0 to get something
3203 that's true only with -std. */
3204 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3205
3206 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3207 inside strings and character constants. */
3208 #define FOO(x) 'x'
3209 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3210
3211 int test (int i, double x);
3212 struct s1 {int (*f) (int a);};
3213 struct s2 {int (*f) (double a);};
3214 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3215 int argc;
3216 char **argv;
3217 int
3218 main ()
3219 {
3220 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3227 do
3228 CC="$ac_save_CC $ac_arg"
3229 if ac_fn_c_try_compile "$LINENO"; then :
3230 ac_cv_prog_cc_c89=$ac_arg
3231 fi
3232 rm -f core conftest.err conftest.$ac_objext
3233 test "x$ac_cv_prog_cc_c89" != "xno" && break
3234 done
3235 rm -f conftest.$ac_ext
3236 CC=$ac_save_CC
3237
3238 fi
3239 # AC_CACHE_VAL
3240 case "x$ac_cv_prog_cc_c89" in
3241 x)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3243 $as_echo "none needed" >&6; } ;;
3244 xno)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3246 $as_echo "unsupported" >&6; } ;;
3247 *)
3248 CC="$CC $ac_cv_prog_cc_c89"
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3250 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3251 esac
3252 if test "x$ac_cv_prog_cc_c89" != xno; then :
3253
3254 fi
3255
3256 ac_ext=c
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3264 $as_echo_n "checking for library containing strerror... " >&6; }
3265 if ${ac_cv_search_strerror+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 ac_func_search_save_LIBS=$LIBS
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271
3272 /* Override any GCC internal prototype to avoid an error.
3273 Use char because int might match the return type of a GCC
3274 builtin and then its argument prototype would still apply. */
3275 #ifdef __cplusplus
3276 extern "C"
3277 #endif
3278 char strerror ();
3279 int
3280 main ()
3281 {
3282 return strerror ();
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 for ac_lib in '' cposix; do
3288 if test -z "$ac_lib"; then
3289 ac_res="none required"
3290 else
3291 ac_res=-l$ac_lib
3292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3293 fi
3294 if ac_fn_c_try_link "$LINENO"; then :
3295 ac_cv_search_strerror=$ac_res
3296 fi
3297 rm -f core conftest.err conftest.$ac_objext \
3298 conftest$ac_exeext
3299 if ${ac_cv_search_strerror+:} false; then :
3300 break
3301 fi
3302 done
3303 if ${ac_cv_search_strerror+:} false; then :
3304
3305 else
3306 ac_cv_search_strerror=no
3307 fi
3308 rm conftest.$ac_ext
3309 LIBS=$ac_func_search_save_LIBS
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3312 $as_echo "$ac_cv_search_strerror" >&6; }
3313 ac_res=$ac_cv_search_strerror
3314 if test "$ac_res" != no; then :
3315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3316
3317 fi
3318
3319
3320 ac_aux_dir=
3321 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3322 if test -f "$ac_dir/install-sh"; then
3323 ac_aux_dir=$ac_dir
3324 ac_install_sh="$ac_aux_dir/install-sh -c"
3325 break
3326 elif test -f "$ac_dir/install.sh"; then
3327 ac_aux_dir=$ac_dir
3328 ac_install_sh="$ac_aux_dir/install.sh -c"
3329 break
3330 elif test -f "$ac_dir/shtool"; then
3331 ac_aux_dir=$ac_dir
3332 ac_install_sh="$ac_aux_dir/shtool install -c"
3333 break
3334 fi
3335 done
3336 if test -z "$ac_aux_dir"; then
3337 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3338 fi
3339
3340 # These three variables are undocumented and unsupported,
3341 # and are intended to be withdrawn in a future Autoconf release.
3342 # They can cause serious problems if a builder's source tree is in a directory
3343 # whose full name contains unusual characters.
3344 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3345 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3346 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3347
3348
3349 # Make sure we can run config.sub.
3350 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3351 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3352
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3354 $as_echo_n "checking build system type... " >&6; }
3355 if ${ac_cv_build+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_build_alias=$build_alias
3359 test "x$ac_build_alias" = x &&
3360 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3361 test "x$ac_build_alias" = x &&
3362 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3363 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3364 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3365
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3368 $as_echo "$ac_cv_build" >&6; }
3369 case $ac_cv_build in
3370 *-*-*) ;;
3371 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3372 esac
3373 build=$ac_cv_build
3374 ac_save_IFS=$IFS; IFS='-'
3375 set x $ac_cv_build
3376 shift
3377 build_cpu=$1
3378 build_vendor=$2
3379 shift; shift
3380 # Remember, the first character of IFS is used to create $*,
3381 # except with old shells:
3382 build_os=$*
3383 IFS=$ac_save_IFS
3384 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3388 $as_echo_n "checking host system type... " >&6; }
3389 if ${ac_cv_host+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test "x$host_alias" = x; then
3393 ac_cv_host=$ac_cv_build
3394 else
3395 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3397 fi
3398
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3401 $as_echo "$ac_cv_host" >&6; }
3402 case $ac_cv_host in
3403 *-*-*) ;;
3404 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3405 esac
3406 host=$ac_cv_host
3407 ac_save_IFS=$IFS; IFS='-'
3408 set x $ac_cv_host
3409 shift
3410 host_cpu=$1
3411 host_vendor=$2
3412 shift; shift
3413 # Remember, the first character of IFS is used to create $*,
3414 # except with old shells:
3415 host_os=$*
3416 IFS=$ac_save_IFS
3417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3418
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3421 $as_echo_n "checking target system type... " >&6; }
3422 if ${ac_cv_target+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test "x$target_alias" = x; then
3426 ac_cv_target=$ac_cv_host
3427 else
3428 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3429 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3430 fi
3431
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3434 $as_echo "$ac_cv_target" >&6; }
3435 case $ac_cv_target in
3436 *-*-*) ;;
3437 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3438 esac
3439 target=$ac_cv_target
3440 ac_save_IFS=$IFS; IFS='-'
3441 set x $ac_cv_target
3442 shift
3443 target_cpu=$1
3444 target_vendor=$2
3445 shift; shift
3446 # Remember, the first character of IFS is used to create $*,
3447 # except with old shells:
3448 target_os=$*
3449 IFS=$ac_save_IFS
3450 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3451
3452
3453 # The aliases save the names the user supplied, while $host etc.
3454 # will get canonicalized.
3455 test -n "$target_alias" &&
3456 test "$program_prefix$program_suffix$program_transform_name" = \
3457 NONENONEs,x,x, &&
3458 program_prefix=${target_alias}-
3459
3460
3461
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports ANSI prototypes" >&5
3463 $as_echo_n "checking if compiler supports ANSI prototypes... " >&6; }
3464 ac_compile='$ac_cv_prog_CC conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5'
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #include <stdio.h>
3468 int
3469 main ()
3470 {
3471 extern int xxx(int, char *);
3472 ;
3473 return 0;
3474 }
3475 _ACEOF
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 mh_have_proto=yes; $as_echo "#define HAVE_PROTO 1" >>confdefs.h
3478
3479 else
3480 mh_have_proto=no
3481 fi
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_have_proto" >&5
3484 $as_echo "$mh_have_proto" >&6; }
3485
3486 if test "$mh_have_proto" = "no"; then
3487 as_fn_error $? "Regina requires an ANSI compiler; cannot continue" "$LINENO" 5
3488 fi
3489
3490
3491
3492 # Check whether --enable-32bit was given.
3493 if test "${enable_32bit+set}" = set; then :
3494 enableval=$enable_32bit; bitflag32=yes
3495 else
3496 bitflag32=no
3497 fi
3498
3499 # Check whether --enable-64bit was given.
3500 if test "${enable_64bit+set}" = set; then :
3501 enableval=$enable_64bit; bitflag64=yes
3502 else
3503 bitflag64=no
3504 fi
3505
3506
3507 #
3508 # Now do platform specific tests
3509 #
3510 gcc_64bit="-m64"
3511 gcc_32bit="-m32"
3512 on_osx="no"
3513 osis64bit=no
3514 bitflag="32"
3515 MACH_ARCH=`$ac_config_guess | cut -f1 -d-`
3516 case "$target" in
3517 *hp-hpux*)
3518 ;;
3519 *ibm-aix*)
3520 rc=`lsconf -k | grep -c 64-bit`
3521 if test $rc -eq 1; then
3522 bitflag="64"
3523 osis64bit=yes
3524 fi
3525 #
3526 # AIX gcc has its own special bit switches :-(
3527 #
3528 gcc_64bit="-maix64"
3529 gcc_32bit="-maix32"
3530 ;;
3531 powerpc-ibm-os400)
3532 bitflag="64"
3533 osis64bit=yes
3534 gcc_64bit=""
3535 ;;
3536 *dec-osf4*)
3537 ;;
3538 *dec-osf*)
3539 ;;
3540 *sequent-dynix*)
3541 ;;
3542 i*86*solaris*)
3543 ;;
3544 *solaris*)
3545 rc=`isainfo -v | grep -c 64-bit`
3546 if test $rc -eq 1; then
3547 bitflag="64"
3548 osis64bit=yes
3549 fi
3550 ;;
3551 sparc*sunos*)
3552 ;;
3553 *linux* | *kfreebsd*-gnu*)
3554 mach="`uname -m`"
3555 if test "$mach" = "x86_64" -o "$mach" = "ia86" -o "$mach" = "ppc64" -o "$mach" = "s390x"; then
3556 bitflag="64"
3557 osis64bit=yes
3558 fi
3559 # if test -f "/etc/os-release"; then
3560 # get Linux ID...
3561 # fi
3562 if test -f "/etc/apk/arch"; then
3563 # get Alpine Linux architecture for APK
3564 MACH_ARCH="`cat /etc/apk/arch`"
3565 fi
3566 ;;
3567 *-freebsd* | *-openbsd*)
3568 mach="`uname -m`"
3569 if test "$mach" = "amd64"; then
3570 bitflag="64"
3571 osis64bit=yes
3572 fi
3573 ;;
3574 *nto-qnx*)
3575 ;;
3576 *qnx*)
3577 ;;
3578 *beos*)
3579 ;;
3580 *haiku*)
3581 mach="`uname -m`"
3582 if test "$mach" = "x86_64"; then
3583 bitflag="64"
3584 osis64bit=yes
3585 fi
3586 ;;
3587 *cygwin*)
3588 mach="`uname -m`"
3589 if test "$mach" = "x86_64"; then
3590 bitflag="64"
3591 osis64bit=yes
3592 fi
3593 ;;
3594 *apple-darwin*)
3595 on_osx="yes"
3596 osx_64bit=`sysctl hw.cpu64bit_capable | cut -f2 -d' '`
3597 if test $osx_64bit -eq 1; then
3598 bitflag="64"
3599 osis64bit=yes
3600 fi
3601 ;;
3602 esac
3603
3604 if test "x$bitflag32" = "xyes" -a "x$bitflag64" = "xyes"; then
3605 as_fn_error $? "--enable-32bit and --enable-64bit flags cannot both be specified." "$LINENO" 5
3606 fi
3607
3608 if test "x$bitflag64" = "xyes" -a "$osis64bit" = "no"; then
3609 as_fn_error $? "--enable-64bit cannot be specified on non-64bit OS." "$LINENO" 5
3610 fi
3611
3612 binarybitprefix=""
3613 if test "x$bitflag32" = "xyes"; then
3614 bitflag="32"
3615 if test "$osis64bit" = "yes"; then
3616 binarybitprefix="32"
3617 fi
3618 elif test "x$bitflag64" = "xyes"; then
3619 bitflag="64"
3620 fi
3621
3622
3623
3624 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
3625 save_CPPFLAGS="$CPPFLAGS"
3626 CPPFLAGS="$CPPFLAGS $gcc_32bit"
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3629 #include <stdlib.h>
3630 int
3631 main ()
3632 {
3633 int a=2
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639
3640 else
3641 gcc_32bit=""
3642
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 CPPFLAGS="$save_CPPFLAGS"
3646 save_CPPFLAGS="$CPPFLAGS"
3647 CPPFLAGS="$CPPFLAGS $gcc_64bit"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3650 #include <stdlib.h>
3651 int
3652 main ()
3653 {
3654 int a=2
3655 ;
3656 return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660
3661 else
3662 gcc_64bit=""
3663
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 CPPFLAGS="$save_CPPFLAGS"
3667 fi
3668
3669 if test "$on_osx" = "yes"; then
3670
3671 valid_arch_flags=""
3672 found_arch_flags=""
3673
3674 # Check whether --with-arch was given.
3675 if test "${with_arch+set}" = set; then :
3676 withval=$with_arch; with_arch=$withval
3677 else
3678 with_arch=none
3679 fi
3680
3681 case "$with_arch" in
3682 none)
3683 arch_flags=""
3684 ;;
3685 all)
3686 arch_flags="-arch ppc -arch ppc64 -arch x86_64 -arch i386 -arch arm64"
3687 ;;
3688 32bit)
3689 arch_flags="-arch ppc -arch i386"
3690 ;;
3691 64bit)
3692 arch_flags="-arch ppc64 -arch x86_64 -arch arm64"
3693 ;;
3694 apple-silicon)
3695 arch_flags="-arch x86_64 -arch arm64"
3696 ;;
3697 intel)
3698 arch_flags="-arch i386 -arch x86_64"
3699 ;;
3700 apple-silicon)
3701 arch_flags="-arch x86_64 -arch arm64"
3702 ;;
3703 *)
3704 arch_flags="-arch $with_arch"
3705 ;;
3706 esac
3707
3708 valid_arch_flags=""
3709 found_arch_flags=""
3710 if test $on_osx = "yes"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which MacOS -arch flags are supported for universal binaries" >&5
3712 $as_echo_n "checking for which MacOS -arch flags are supported for universal binaries... " >&6; }
3713 for a in $arch_flags; do
3714 if test $a != "-arch"; then
3715 save_ldflags="$LDFLAGS"
3716 LDFLAGS="$LDFLAGS -arch $a"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #include <stdio.h>
3720 #include <stdlib.h>
3721 int
3722 main ()
3723 {
3724 exit(0)
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_link "$LINENO"; then :
3730 valid_arch_flags="$valid_arch_flags -arch $a";found_arch_flags="$found_arch_flags $a"
3731 else
3732 a="$a"
3733
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext \
3736 conftest$ac_exeext conftest.$ac_ext
3737 LDFLAGS="$save_ldflags"
3738 fi
3739 done
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_arch_flags" >&5
3741 $as_echo "$found_arch_flags" >&6; }
3742
3743 fi
3744
3745 else
3746 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
3747 if test "$bitflag" = "32"; then
3748 CFLAGS="${CFLAGS} $gcc_32bit"
3749 LDFLAGS="${LDFLAGS} $gcc_32bit"
3750 elif test "$bitflag" = "64"; then
3751 CFLAGS="${CFLAGS} $gcc_64bit"
3752 LDFLAGS="${LDFLAGS} $gcc_64bit"
3753 else
3754 bitflag="32"
3755 fi
3756 elif test "$ac_cv_prog_CC" = "xlc" -o "$ac_cv_prog_CC" = "xlC"; then
3757 if test "$bitflag" = "32"; then
3758 CFLAGS="${CFLAGS} -q32"
3759 LDFLAGS="${LDFLAGS} -q32"
3760 elif test "$bitflag" = "64"; then
3761 CFLAGS="${CFLAGS} -q64"
3762 LDFLAGS="${LDFLAGS} -q64"
3763 else
3764 bitflag="32"
3765 fi
3766 fi
3767 fi
3768
3769 #libdir_change=yes
3770 # Check whether --enable-libdir-change was given.
3771 if test "${enable_libdir_change+set}" = set; then :
3772 enableval=$enable_libdir_change; libdir_change=$enableval
3773 else
3774 libdir_change=yes
3775 fi
3776
3777 if test "$libdir_change" = yes; then
3778 if test "${libdir}" = '${exec_prefix}/lib'; then
3779 myprefix=$prefix
3780
3781 prefix_NONE=
3782 exec_prefix_NONE=
3783 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
3784 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
3785 eval ac_define_dir="\""$myprefix"\""
3786 eval ac_define_dir="\"$ac_define_dir\""
3787 MY_PREFIX="$ac_define_dir"
3788
3789 cat >>confdefs.h <<_ACEOF
3790 #define MY_PREFIX "$ac_define_dir"
3791 _ACEOF
3792
3793 test "$prefix_NONE" && prefix=NONE
3794 test "$exec_prefix_NONE" && exec_prefix=NONE
3795
3796 if test "${myprefix}" = "NONE"; then
3797 myprefix="$ac_default_prefix"
3798 fi
3799 if test -d "${myprefix}/lib/x86_64-linux-gnu"; then
3800 libdir64="${myprefix}/lib/x86_64-linux-gnu"
3801 elif test -d "${myprefix}/lib64"; then
3802 libdir64="${myprefix}/lib64"
3803 else
3804 libdir64="${myprefix}/lib"
3805 fi
3806 if test -d "${myprefix}/lib/i386-linux-gnu"; then
3807 libdir32="${myprefix}/lib/i386-linux-gnu"
3808 elif test -d "${myprefix}/lib32"; then
3809 libdir32="${myprefix}/lib32"
3810 else
3811 libdir32="${myprefix}/lib"
3812 fi
3813 if test "$bitflag" = "64"; then
3814 libdir="$libdir64"
3815 else
3816 libdir="$libdir32"
3817 fi
3818 else
3819 libdir64="$libdir"
3820 libdir32="$libdir"
3821 fi
3822 else
3823 libdir64="$libdir"
3824 libdir32="$libdir"
3825 fi
3826
3827
3828
3829
3830
3831 mymakefile="Makefile"
3832 on_qnx4=no
3833 on_beos=no
3834 on_haiku=no
3835 gci_available=no
3836 GCI_CONVERT_HEADER="gci_convert.unsupported"
3837 case "$target" in
3838 *hp-hpux*)
3839 SYS_DEFS="-D_HPUX_SOURCE"
3840 ;;
3841 *ibm-aix*)
3842 SYS_DEFS="-D_ALL_SOURCE"
3843 # mymakefile="Makefile.aix"
3844 ;;
3845 *apple-darwin*)
3846 SYS_DEFS="$valid_arch_flags"
3847 EEXTRA="$valid_arch_flags"
3848 ;;
3849 *dec-osf*)
3850 ;;
3851 *sequent-dynix*)
3852 ;;
3853 i*86*solaris*)
3854 GCI_CONVERT_HEADER="gci_convert.solaris.i86"
3855 gci_available=yes
3856 ;;
3857 *solaris*)
3858 GCI_CONVERT_HEADER="gci_convert.solaris.sparc"
3859 gci_available=yes
3860 ;;
3861 sparc*sunos*)
3862 ;;
3863 *86_64-*linux*)
3864 GCI_CONVERT_HEADER="gci_convert.linux.86_64"
3865 gci_available=yes
3866 ;;
3867 i*86-*linux*|*-k*bsd-gnu*|*-gnu*)
3868 GCI_CONVERT_HEADER="gci_convert.linux.i86"
3869 gci_available=yes
3870 ;;
3871 alpha*-*linux*)
3872 GCI_CONVERT_HEADER="gci_convert.linux.alpha"
3873 gci_available=yes
3874 ;;
3875 powerpc64-*linux*)
3876 GCI_CONVERT_HEADER="gci_convert.linux.powerpc64"
3877 gci_available=yes
3878 ;;
3879 *cygwin*)
3880 GCI_CONVERT_HEADER="gci_convert.cygwin.i86"
3881 gci_available=yes
3882 ;;
3883 *apple-darwin*)
3884 GCI_CONVERT_HEADER="gci_convert.macX.all"
3885 gci_available=yes
3886 ;;
3887 *nto-qnx*)
3888 ;;
3889 *qnx*)
3890 on_qnx4=yes
3891 SYS_DEFS="-Q"
3892 ;;
3893 *beos*)
3894 on_beos=yes
3895 ;;
3896 *haiku*)
3897 on_haiku=yes
3898 ;;
3899 *minix*)
3900 SYS_DEFS="-D__MINIX__"
3901 ;;
3902 esac
3903
3904
3905
3906
3907 #MH_EXTRA_LIBS=""
3908 #MH_CHECK_LIB(dld dl)
3909 #SHLIBS="${MH_EXTRA_LIBS}"
3910
3911 #MH_EXTRA_LIBS=""
3912 #MH_CHECK_LIB(m nsl nsl_s socket net network)
3913
3914 mh_save_libs="$LIBS"
3915
3916 if test "$on_qnx4" = no; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5
3918 $as_echo_n "checking for main in -lcrypt... " >&6; }
3919 if ${ac_cv_lib_crypt_main+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 ac_check_lib_save_LIBS=$LIBS
3923 LIBS="-lcrypt $LIBS"
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926
3927
3928 int
3929 main ()
3930 {
3931 return main ();
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_link "$LINENO"; then :
3937 ac_cv_lib_crypt_main=yes
3938 else
3939 ac_cv_lib_crypt_main=no
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext \
3942 conftest$ac_exeext conftest.$ac_ext
3943 LIBS=$ac_check_lib_save_LIBS
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5
3946 $as_echo "$ac_cv_lib_crypt_main" >&6; }
3947 if test "x$ac_cv_lib_crypt_main" = xyes; then :
3948 mh_crypt_found=yes
3949 else
3950 mh_crypt_found=no
3951 fi
3952
3953 if test "$mh_crypt_found" = yes; then
3954 LIBS="${LIBS} -lcrypt"
3955 fi
3956 fi
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt function" >&5
3959 $as_echo_n "checking for crypt function... " >&6; }
3960
3961 if ${mh_cv_func_crypt+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <unistd.h>
3968 int
3969 main ()
3970 {
3971 crypt("fred","aa")
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_link "$LINENO"; then :
3977 mh_cv_func_crypt=yes
3978 else
3979 mh_cv_func_crypt=no
3980
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext \
3983 conftest$ac_exeext conftest.$ac_ext
3984
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_func_crypt" >&5
3987 $as_echo "$mh_cv_func_crypt" >&6; }
3988 STATIC_BINARY_LIBS=""
3989 if test "$mh_cv_func_crypt" = yes ; then
3990 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
3991
3992 if test "$mh_crypt_found" = yes; then
3993 MH_EXTRA_LIBS="${MH_EXTRA_LIBS} -lcrypt"
3994 STATIC_BINARY_LIBS="-lcrypt"
3995 fi
3996 fi
3997
3998 LIBS="$mh_save_libs"
3999
4000
4001 if test "$on_qnx4" = "no"; then
4002 for ac_prog in flex lex
4003 do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005 set dummy $ac_prog; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_LEX+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$LEX"; then
4012 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_LEX="$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 LEX=$ac_cv_prog_LEX
4032 if test -n "$LEX"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4034 $as_echo "$LEX" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 test -n "$LEX" && break
4042 done
4043 test -n "$LEX" || LEX=":"
4044
4045 if test "x$LEX" != "x:"; then
4046 cat >conftest.l <<_ACEOF
4047 %%
4048 a { ECHO; }
4049 b { REJECT; }
4050 c { yymore (); }
4051 d { yyless (1); }
4052 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4053 yyless ((input () != 0)); }
4054 f { unput (yytext[0]); }
4055 . { BEGIN INITIAL; }
4056 %%
4057 #ifdef YYTEXT_POINTER
4058 extern char *yytext;
4059 #endif
4060 int
4061 main (void)
4062 {
4063 return ! yylex () + ! yywrap ();
4064 }
4065 _ACEOF
4066 { { ac_try="$LEX conftest.l"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$LEX conftest.l") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4078 $as_echo_n "checking lex output file root... " >&6; }
4079 if ${ac_cv_prog_lex_root+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082
4083 if test -f lex.yy.c; then
4084 ac_cv_prog_lex_root=lex.yy
4085 elif test -f lexyy.c; then
4086 ac_cv_prog_lex_root=lexyy
4087 else
4088 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4089 fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4092 $as_echo "$ac_cv_prog_lex_root" >&6; }
4093 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4094
4095 if test -z "${LEXLIB+set}"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4097 $as_echo_n "checking lex library... " >&6; }
4098 if ${ac_cv_lib_lex+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101
4102 ac_save_LIBS=$LIBS
4103 ac_cv_lib_lex='none needed'
4104 for ac_lib in '' -lfl -ll; do
4105 LIBS="$ac_lib $ac_save_LIBS"
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 `cat $LEX_OUTPUT_ROOT.c`
4109 _ACEOF
4110 if ac_fn_c_try_link "$LINENO"; then :
4111 ac_cv_lib_lex=$ac_lib
4112 fi
4113 rm -f core conftest.err conftest.$ac_objext \
4114 conftest$ac_exeext conftest.$ac_ext
4115 test "$ac_cv_lib_lex" != 'none needed' && break
4116 done
4117 LIBS=$ac_save_LIBS
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4121 $as_echo "$ac_cv_lib_lex" >&6; }
4122 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4123 fi
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4127 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4128 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 # POSIX says lex can declare yytext either as a pointer or an array; the
4132 # default is implementation-dependent. Figure out which it is, since
4133 # not all implementations provide the %pointer and %array declarations.
4134 ac_cv_prog_lex_yytext_pointer=no
4135 ac_save_LIBS=$LIBS
4136 LIBS="$LEXLIB $ac_save_LIBS"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 #define YYTEXT_POINTER 1
4141 `cat $LEX_OUTPUT_ROOT.c`
4142 _ACEOF
4143 if ac_fn_c_try_link "$LINENO"; then :
4144 ac_cv_prog_lex_yytext_pointer=yes
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext \
4147 conftest$ac_exeext conftest.$ac_ext
4148 LIBS=$ac_save_LIBS
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4152 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4153 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4154
4155 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4156
4157 fi
4158 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4159
4160 fi
4161 fi
4162 #BOTHLIBS="${LEXLIB} ${MH_EXTRA_LIBS}"
4163
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_RANLIB+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -n "$RANLIB"; then
4173 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4195 $as_echo "$RANLIB" >&6; }
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202 fi
4203 if test -z "$ac_cv_prog_RANLIB"; then
4204 ac_ct_RANLIB=$RANLIB
4205 # Extract the first word of "ranlib", so it can be a program name with args.
4206 set dummy ranlib; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 if test -n "$ac_ct_RANLIB"; then
4213 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_RANLIB="ranlib"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4233 if test -n "$ac_ct_RANLIB"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4235 $as_echo "$ac_ct_RANLIB" >&6; }
4236 else
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4239 fi
4240
4241 if test "x$ac_ct_RANLIB" = x; then
4242 RANLIB=":"
4243 else
4244 case $cross_compiling:$ac_tool_warned in
4245 yes:)
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4249 esac
4250 RANLIB=$ac_ct_RANLIB
4251 fi
4252 else
4253 RANLIB="$ac_cv_prog_RANLIB"
4254 fi
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4258 $as_echo_n "checking whether ln -s works... " >&6; }
4259 LN_S=$as_ln_s
4260 if test "$LN_S" = "ln -s"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4262 $as_echo "yes" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4265 $as_echo "no, using $LN_S" >&6; }
4266 fi
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4270 set x ${MAKE-make}
4271 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4272 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 cat >conftest.make <<\_ACEOF
4276 SHELL = /bin/sh
4277 all:
4278 @echo '@@@%%%=$(MAKE)=@@@%%%'
4279 _ACEOF
4280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4282 *@@@%%%=?*=@@@%%%*)
4283 eval ac_cv_prog_make_${ac_make}_set=yes;;
4284 *)
4285 eval ac_cv_prog_make_${ac_make}_set=no;;
4286 esac
4287 rm -f conftest.make
4288 fi
4289 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4292 SET_MAKE=
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 SET_MAKE="MAKE=${MAKE-make}"
4297 fi
4298
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4307 # On Suns, sometimes $CPP names a directory.
4308 if test -n "$CPP" && test -d "$CPP"; then
4309 CPP=
4310 fi
4311 if test -z "$CPP"; then
4312 if ${ac_cv_prog_CPP+:} false; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 # Double quotes because CPP needs to be expanded
4316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 do
4318 ac_preproc_ok=false
4319 for ac_c_preproc_warn_flag in '' yes
4320 do
4321 # Use a header file that comes with gcc, so configuring glibc
4322 # with a fresh cross-compiler works.
4323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324 # <limits.h> exists even on freestanding compilers.
4325 # On the NeXT, cc -E runs the code through the compiler's parser,
4326 # not just through cpp. "Syntax error" is here to catch this case.
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334 Syntax error
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337
4338 else
4339 # Broken: fails on valid input.
4340 continue
4341 fi
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4343
4344 # OK, works on sane cases. Now check whether nonexistent headers
4345 # can be detected and how.
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4348 #include <ac_nonexistent.h>
4349 _ACEOF
4350 if ac_fn_c_try_cpp "$LINENO"; then :
4351 # Broken: success on invalid input.
4352 continue
4353 else
4354 # Passes both tests.
4355 ac_preproc_ok=:
4356 break
4357 fi
4358 rm -f conftest.err conftest.i conftest.$ac_ext
4359
4360 done
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.i conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then :
4364 break
4365 fi
4366
4367 done
4368 ac_cv_prog_CPP=$CPP
4369
4370 fi
4371 CPP=$ac_cv_prog_CPP
4372 else
4373 ac_cv_prog_CPP=$CPP
4374 fi
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4376 $as_echo "$CPP" >&6; }
4377 ac_preproc_ok=false
4378 for ac_c_preproc_warn_flag in '' yes
4379 do
4380 # Use a header file that comes with gcc, so configuring glibc
4381 # with a fresh cross-compiler works.
4382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4383 # <limits.h> exists even on freestanding compilers.
4384 # On the NeXT, cc -E runs the code through the compiler's parser,
4385 # not just through cpp. "Syntax error" is here to catch this case.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #ifdef __STDC__
4389 # include <limits.h>
4390 #else
4391 # include <assert.h>
4392 #endif
4393 Syntax error
4394 _ACEOF
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396
4397 else
4398 # Broken: fails on valid input.
4399 continue
4400 fi
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4402
4403 # OK, works on sane cases. Now check whether nonexistent headers
4404 # can be detected and how.
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <ac_nonexistent.h>
4408 _ACEOF
4409 if ac_fn_c_try_cpp "$LINENO"; then :
4410 # Broken: success on invalid input.
4411 continue
4412 else
4413 # Passes both tests.
4414 ac_preproc_ok=:
4415 break
4416 fi
4417 rm -f conftest.err conftest.i conftest.$ac_ext
4418
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.i conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then :
4423
4424 else
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4429 fi
4430
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440 if ${ac_cv_path_GREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 as_fn_executable_p "$ac_path_GREP" || continue
4455 # Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457 case `"$ac_path_GREP" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460 *)
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4464 do
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4476 fi
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4482
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 fi
4491 else
4492 ac_cv_path_GREP=$GREP
4493 fi
4494
4495 fi
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497 $as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502 $as_echo_n "checking for egrep... " >&6; }
4503 if ${ac_cv_path_EGREP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 as_fn_executable_p "$ac_path_EGREP" || continue
4521 # Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523 case `"$ac_path_EGREP" --version 2>&1` in
4524 *GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526 *)
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4530 do
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4542 fi
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 esac
4548
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553 IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 fi
4557 else
4558 ac_cv_path_EGREP=$EGREP
4559 fi
4560
4561 fi
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564 $as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4569 $as_echo_n "checking for ANSI C header files... " >&6; }
4570 if ${ac_cv_header_stdc+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdlib.h>
4576 #include <stdarg.h>
4577 #include <string.h>
4578 #include <float.h>
4579
4580 int
4581 main ()
4582 {
4583
4584 ;
4585 return 0;
4586 }
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_header_stdc=yes
4590 else
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594
4595 if test $ac_cv_header_stdc = yes; then
4596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <string.h>
4600
4601 _ACEOF
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "memchr" >/dev/null 2>&1; then :
4604
4605 else
4606 ac_cv_header_stdc=no
4607 fi
4608 rm -f conftest*
4609
4610 fi
4611
4612 if test $ac_cv_header_stdc = yes; then
4613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <stdlib.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "free" >/dev/null 2>&1; then :
4621
4622 else
4623 ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4631 if test "$cross_compiling" = yes; then :
4632 :
4633 else
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #include <ctype.h>
4637 #include <stdlib.h>
4638 #if ((' ' & 0x0FF) == 0x020)
4639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641 #else
4642 # define ISLOWER(c) \
4643 (('a' <= (c) && (c) <= 'i') \
4644 || ('j' <= (c) && (c) <= 'r') \
4645 || ('s' <= (c) && (c) <= 'z'))
4646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647 #endif
4648
4649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650 int
4651 main ()
4652 {
4653 int i;
4654 for (i = 0; i < 256; i++)
4655 if (XOR (islower (i), ISLOWER (i))
4656 || toupper (i) != TOUPPER (i))
4657 return 2;
4658 return 0;
4659 }
4660 _ACEOF
4661 if ac_fn_c_try_run "$LINENO"; then :
4662
4663 else
4664 ac_cv_header_stdc=no
4665 fi
4666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4667 conftest.$ac_objext conftest.beam conftest.$ac_ext
4668 fi
4669
4670 fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4673 $as_echo "$ac_cv_header_stdc" >&6; }
4674 if test $ac_cv_header_stdc = yes; then
4675
4676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677
4678 fi
4679
4680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682 inttypes.h stdint.h unistd.h
4683 do :
4684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4686 "
4687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4688 cat >>confdefs.h <<_ACEOF
4689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4690 _ACEOF
4691
4692 fi
4693
4694 done
4695
4696
4697 for ac_header in \
4698 arpa/inet.h \
4699 assert.h \
4700 ctype.h \
4701 crypt.h \
4702 dl.h \
4703 dlfcn.h \
4704 errno.h \
4705 fcntl.h \
4706 fnmatch.h \
4707 grp.h \
4708 readline/history.h \
4709 iconv.h \
4710 inttypes.h \
4711 limits.h \
4712 malloc.h \
4713 math.h \
4714 memory.h \
4715 ncurses.h \
4716 netdb.h \
4717 netinet/in.h \
4718 paths.h \
4719 poll.h \
4720 process.h \
4721 pwd.h \
4722 readline/readline.h \
4723 setjmp.h \
4724 share.h \
4725 signal.h \
4726 socket.h \
4727 stdarg.h \
4728 stdio.h \
4729 statvfs.h \
4730 stdlib.h \
4731 stdint.h \
4732 string.h \
4733 sys/ioctl.h \
4734 sys/mount.h \
4735 sys/poll.h \
4736 sys/resource.h \
4737 sys/select.h \
4738 sys/socket.h \
4739 sys/stat.h \
4740 sys/statfs.h \
4741 sys/statvfs.h \
4742 sys/mman.h \
4743 sys/time.h \
4744 sys/utsname.h \
4745 sys/wait.h \
4746 term.h \
4747 termcap.h \
4748 time.h \
4749 unistd.h \
4750 vfs.h
4751
4752 do :
4753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4754 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4756 cat >>confdefs.h <<_ACEOF
4757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 _ACEOF
4759
4760 fi
4761
4762 done
4763
4764
4765 for ac_func in sysconf div raise putenv usleep random ftruncate \
4766 memcpy memmove strerror strerror_r gettimeofday ftime poll \
4767 _fullpath vsprintf _splitpath2 _splitpath sigaction strtof \
4768 lstat mkstemp inet_ntop gmtime_r localtime_r \
4769 getgrgid_r getpwuid_r gethostbyname_r \
4770 atoll fseeko ftello getopt_long \
4771 readlink realpath getbootfile tgetstr statfs mbstowcs mmap iconv
4772 do :
4773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4774 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4775 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4776 cat >>confdefs.h <<_ACEOF
4777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4778 _ACEOF
4779
4780 fi
4781 done
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4785 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4786 if ${ac_cv_c_const+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791
4792 int
4793 main ()
4794 {
4795
4796 #ifndef __cplusplus
4797 /* Ultrix mips cc rejects this sort of thing. */
4798 typedef int charset[2];
4799 const charset cs = { 0, 0 };
4800 /* SunOS 4.1.1 cc rejects this. */
4801 char const *const *pcpcc;
4802 char **ppc;
4803 /* NEC SVR4.0.2 mips cc rejects this. */
4804 struct point {int x, y;};
4805 static struct point const zero = {0,0};
4806 /* AIX XL C 1.02.0.0 rejects this.
4807 It does not let you subtract one const X* pointer from another in
4808 an arm of an if-expression whose if-part is not a constant
4809 expression */
4810 const char *g = "string";
4811 pcpcc = &g + (g ? g-g : 0);
4812 /* HPUX 7.0 cc rejects these. */
4813 ++pcpcc;
4814 ppc = (char**) pcpcc;
4815 pcpcc = (char const *const *) ppc;
4816 { /* SCO 3.2v4 cc rejects this sort of thing. */
4817 char tx;
4818 char *t = &tx;
4819 char const *s = 0 ? (char *) 0 : (char const *) 0;
4820
4821 *t++ = 0;
4822 if (s) return 0;
4823 }
4824 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4825 int x[] = {25, 17};
4826 const int *foo = &x[0];
4827 ++foo;
4828 }
4829 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4830 typedef const int *iptr;
4831 iptr p = 0;
4832 ++p;
4833 }
4834 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4835 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4836 struct s { int j; const int *ap[3]; } bx;
4837 struct s *b = &bx; b->j = 5;
4838 }
4839 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4840 const int foo = 10;
4841 if (!foo) return 0;
4842 }
4843 return !cs[0] && !zero.x;
4844 #endif
4845
4846 ;
4847 return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_c_const=yes
4852 else
4853 ac_cv_c_const=no
4854 fi
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4858 $as_echo "$ac_cv_c_const" >&6; }
4859 if test $ac_cv_c_const = no; then
4860
4861 $as_echo "#define const /**/" >>confdefs.h
4862
4863 fi
4864
4865 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4866 if test "x$ac_cv_type_size_t" = xyes; then :
4867
4868 else
4869
4870 cat >>confdefs.h <<_ACEOF
4871 #define size_t unsigned int
4872 _ACEOF
4873
4874 fi
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4877 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4878 if ${ac_cv_header_time+:} false; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <sys/types.h>
4884 #include <sys/time.h>
4885 #include <time.h>
4886
4887 int
4888 main ()
4889 {
4890 if ((struct tm *) 0)
4891 return 0;
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_header_time=yes
4898 else
4899 ac_cv_header_time=no
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4904 $as_echo "$ac_cv_header_time" >&6; }
4905 if test $ac_cv_header_time = yes; then
4906
4907 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4908
4909 fi
4910
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4912 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4913 if ${ac_cv_struct_tm+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 #include <time.h>
4920
4921 int
4922 main ()
4923 {
4924 struct tm tm;
4925 int *p = &tm.tm_sec;
4926 return !p;
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 ac_cv_struct_tm=time.h
4933 else
4934 ac_cv_struct_tm=sys/time.h
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4939 $as_echo "$ac_cv_struct_tm" >&6; }
4940 if test $ac_cv_struct_tm = sys/time.h; then
4941
4942 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4943
4944 fi
4945
4946
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4948 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4949 set dummy $CC; ac_cc="`echo $2 |
4950 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
4951 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 echo 'int foo(){}' > conftest.c
4955 # We do the test twice because some compilers refuse to overwrite an
4956 # existing .o file with -o, though they will create one.
4957 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4958 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; };
4968 then
4969 ac_try='${CC-cc} -c conftest.c -o conftest.ooo 1>&5'
4970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974 test $ac_status = 0; } && test -f conftest.ooo && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; };
4979 then
4980 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4981 fi
4982 fi
4983 rm -f conftest*
4984
4985 fi
4986 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4987 O2SHO=""
4988 O2SAVE=""
4989 SAVE2O=""
4990 O2TSO=""
4991 O2TSAVE=""
4992 TSAVE2O=""
4993 CC2O="-o $"'@'
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4995 $as_echo "yes" >&6; }
4996 else
4997 O2SHO="-mv \`basename "$'@'" .so.o\`.o "$'@'
4998 O2SAVE="-mv \`basename "$'@'" .so.o\`.o \`basename "$'@'" .so.o\`.o.save"
4999 SAVE2O="-mv \`basename "$'@'" .so.o\`.o.save \`basename "$'@'" .so.o\`.o"
5000 O2TSO="-mv \`basename "$'@'" .tso\`.o "$'@'
5001 O2TSAVE="-mv \`basename "$'@'" .tso\`.o \`basename "$'@'" .tso\`.tso.save"
5002 TSAVE2O="-mv \`basename "$'@'" .tso\`.tso.save \`basename "$'@'" .tso\`.o"
5003 CC2O=""
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __sighandler_t is defined" >&5
5010 $as_echo_n "checking whether __sighandler_t is defined... " >&6; }
5011
5012 if ${mh_cv__sighandler_t+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018 #include <sys/types.h>
5019 #include <signal.h>
5020 int
5021 main ()
5022 {
5023 __sighandler_t fred
5024 ;
5025 return 0;
5026 }
5027 _ACEOF
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 mh_cv__sighandler_t=yes
5030 else
5031 mh_cv__sighandler_t=no
5032
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035
5036 fi
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv__sighandler_t" >&5
5039 $as_echo "$mh_cv__sighandler_t" >&6; }
5040 if test "$mh_cv__sighandler_t" = yes ; then
5041 $as_echo "#define HAVE__SIGHANDLER_T 1" >>confdefs.h
5042
5043 fi
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct random_data" >&5
5046 $as_echo_n "checking for struct random_data... " >&6; }
5047 if ${mh_cv_struct_random_data+:} false; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <stdlib.h>
5053 #include <stdio.h>
5054 int
5055 main ()
5056 {
5057 struct random_data s;
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 mh_cv_struct_random_data=yes
5064 else
5065 mh_cv_struct_random_data=no
5066 fi
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_struct_random_data" >&5
5070 $as_echo "$mh_cv_struct_random_data" >&6; }
5071 if test $mh_cv_struct_random_data = yes; then
5072 $as_echo "#define HAVE_RANDOM_DATA 1" >>confdefs.h
5073
5074 fi
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports __builtin_return_address inline function" >&5
5078 $as_echo_n "checking whether compiler supports __builtin_return_address inline function... " >&6; }
5079 if ${mh_cv_builtin_return_address+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <stdio.h>
5086 int
5087 main ()
5088 {
5089 __builtin_return_address(0)
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_link "$LINENO"; then :
5095 mh_cv_builtin_return_address=yes
5096 else
5097 mh_cv_builtin_return_address=no
5098
5099 fi
5100 rm -f core conftest.err conftest.$ac_objext \
5101 conftest$ac_exeext conftest.$ac_ext
5102
5103 fi
5104
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_builtin_return_address" >&5
5106 $as_echo "$mh_cv_builtin_return_address" >&6; }
5107 if test "$mh_cv_builtin_return_address" = yes; then
5108 $as_echo "#define HAVE_BUILTIN_RETURN_ADDRESS 1" >>confdefs.h
5109
5110 fi
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5113 $as_echo_n "checking for long long int... " >&6; }
5114 if ${mh_cv_c_long_long+:} false; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
5118 mh_cv_c_long_long=yes
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122
5123 int
5124 main ()
5125 {
5126 long long int i;
5127 ;
5128 return 0;
5129 }
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 mh_cv_c_long_long=yes
5133 else
5134 mh_cv_c_long_long=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_c_long_long" >&5
5140 $as_echo "$mh_cv_c_long_long" >&6; }
5141 if test $mh_cv_c_long_long = yes; then
5142
5143 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
5144
5145 fi
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
5148 $as_echo_n "checking for socklen_t... " >&6; }
5149 if ${ac_cv_type_socklen_t+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <sys/types.h>
5156 #include <sys/socket.h>
5157 int
5158 main ()
5159 {
5160 socklen_t len = 42; return 0;
5161 ;
5162 return 0;
5163 }
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_type_socklen_t=yes
5167 else
5168 ac_cv_type_socklen_t=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
5174 $as_echo "$ac_cv_type_socklen_t" >&6; }
5175 if test $ac_cv_type_socklen_t = yes; then
5176
5177 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
5178
5179 fi
5180
5181 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
5182 #include <sys/ipc.h>
5183 #include <sys/sem.h>
5184 "
5185 if test "x$ac_cv_type_union_semun" = xyes; then :
5186
5187 cat >>confdefs.h <<_ACEOF
5188 #define HAVE_UNION_SEMUN 1
5189 _ACEOF
5190
5191
5192 fi
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if statvfs.f_mntfromname exists..." >&5
5196 $as_echo "$as_me: checking if statvfs.f_mntfromname exists..." >&6;}
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 #include <sys/types.h>
5201 #include <sys/statvfs.h>
5202
5203 int
5204 main ()
5205 {
5206
5207 struct statvfs buf;
5208 char *p = buf.f_mntfromname;
5209
5210 statvfs(".", &buf);
5211
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217
5218
5219 $as_echo "#define HAVE_STATVFS_F_MNTFROMNAME /**/" >>confdefs.h
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5223
5224 else
5225
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5234 $as_echo_n "checking for working memcmp... " >&6; }
5235 if ${ac_cv_func_memcmp_working+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test "$cross_compiling" = yes; then :
5239 ac_cv_func_memcmp_working=no
5240 else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 $ac_includes_default
5244 int
5245 main ()
5246 {
5247
5248 /* Some versions of memcmp are not 8-bit clean. */
5249 char c0 = '\100', c1 = '\200', c2 = '\201';
5250 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5251 return 1;
5252
5253 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5254 or more and with at least one buffer not starting on a 4-byte boundary.
5255 William Lewis provided this test program. */
5256 {
5257 char foo[21];
5258 char bar[21];
5259 int i;
5260 for (i = 0; i < 4; i++)
5261 {
5262 char *a = foo + i;
5263 char *b = bar + i;
5264 strcpy (a, "--------01111111");
5265 strcpy (b, "--------10000000");
5266 if (memcmp (a, b, 16) >= 0)
5267 return 1;
5268 }
5269 return 0;
5270 }
5271
5272 ;
5273 return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_run "$LINENO"; then :
5277 ac_cv_func_memcmp_working=yes
5278 else
5279 ac_cv_func_memcmp_working=no
5280 fi
5281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5282 conftest.$ac_objext conftest.beam conftest.$ac_ext
5283 fi
5284
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5287 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5288 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5289 *" memcmp.$ac_objext "* ) ;;
5290 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5291 ;;
5292 esac
5293
5294
5295 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5296 # for constant arguments. Useless!
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5298 $as_echo_n "checking for working alloca.h... " >&6; }
5299 if ${ac_cv_working_alloca_h+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5304 #include <alloca.h>
5305 int
5306 main ()
5307 {
5308 char *p = (char *) alloca (2 * sizeof (int));
5309 if (p) return 0;
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_link "$LINENO"; then :
5315 ac_cv_working_alloca_h=yes
5316 else
5317 ac_cv_working_alloca_h=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5323 $as_echo "$ac_cv_working_alloca_h" >&6; }
5324 if test $ac_cv_working_alloca_h = yes; then
5325
5326 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5327
5328 fi
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5331 $as_echo_n "checking for alloca... " >&6; }
5332 if ${ac_cv_func_alloca_works+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #ifdef __GNUC__
5338 # define alloca __builtin_alloca
5339 #else
5340 # ifdef _MSC_VER
5341 # include <malloc.h>
5342 # define alloca _alloca
5343 # else
5344 # ifdef HAVE_ALLOCA_H
5345 # include <alloca.h>
5346 # else
5347 # ifdef _AIX
5348 #pragma alloca
5349 # else
5350 # ifndef alloca /* predefined by HP cc +Olibcalls */
5351 void *alloca (size_t);
5352 # endif
5353 # endif
5354 # endif
5355 # endif
5356 #endif
5357
5358 int
5359 main ()
5360 {
5361 char *p = (char *) alloca (1);
5362 if (p) return 0;
5363 ;
5364 return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_link "$LINENO"; then :
5368 ac_cv_func_alloca_works=yes
5369 else
5370 ac_cv_func_alloca_works=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext \
5373 conftest$ac_exeext conftest.$ac_ext
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5376 $as_echo "$ac_cv_func_alloca_works" >&6; }
5377
5378 if test $ac_cv_func_alloca_works = yes; then
5379
5380 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5381
5382 else
5383 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5384 # that cause trouble. Some versions do not even contain alloca or
5385 # contain a buggy version. If you still want to use their alloca,
5386 # use ar to extract alloca.o from them instead of compiling alloca.c.
5387
5388 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5389
5390 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5394 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5395 if ${ac_cv_os_cray+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5400 #if defined CRAY && ! defined CRAY2
5401 webecray
5402 #else
5403 wenotbecray
5404 #endif
5405
5406 _ACEOF
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "webecray" >/dev/null 2>&1; then :
5409 ac_cv_os_cray=yes
5410 else
5411 ac_cv_os_cray=no
5412 fi
5413 rm -f conftest*
5414
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5417 $as_echo "$ac_cv_os_cray" >&6; }
5418 if test $ac_cv_os_cray = yes; then
5419 for ac_func in _getb67 GETB67 getb67; do
5420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5421 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5422 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5423
5424 cat >>confdefs.h <<_ACEOF
5425 #define CRAY_STACKSEG_END $ac_func
5426 _ACEOF
5427
5428 break
5429 fi
5430
5431 done
5432 fi
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5435 $as_echo_n "checking stack direction for C alloca... " >&6; }
5436 if ${ac_cv_c_stack_direction+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test "$cross_compiling" = yes; then :
5440 ac_cv_c_stack_direction=0
5441 else
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 $ac_includes_default
5445 int
5446 find_stack_direction (int *addr, int depth)
5447 {
5448 int dir, dummy = 0;
5449 if (! addr)
5450 addr = &dummy;
5451 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5452 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5453 return dir + dummy;
5454 }
5455
5456 int
5457 main (int argc, char **argv)
5458 {
5459 return find_stack_direction (0, argc + !argv + 20) < 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_run "$LINENO"; then :
5463 ac_cv_c_stack_direction=1
5464 else
5465 ac_cv_c_stack_direction=-1
5466 fi
5467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5468 conftest.$ac_objext conftest.beam conftest.$ac_ext
5469 fi
5470
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5473 $as_echo "$ac_cv_c_stack_direction" >&6; }
5474 cat >>confdefs.h <<_ACEOF
5475 #define STACK_DIRECTION $ac_cv_c_stack_direction
5476 _ACEOF
5477
5478
5479 fi
5480
5481 if test $ac_cv_func_alloca_works = yes; then
5482 ALLOCA=""
5483 ALLOCA_SHO=""
5484 ALLOCA_TSO=""
5485 else
5486 ALLOCA="alloca.o"
5487 ALLOCA_SHO="alloca.so.o"
5488 ALLOCA_TSO="alloca.tso.o"
5489 fi
5490
5491
5492
5493 if test $ac_cv_header_fnmatch_h = yes; then
5494 FNMATCH=""
5495 FNMATCH_SHO=""
5496 FNMATCH_TSO=""
5497 else
5498 FNMATCH="fnmatch.o"
5499 FNMATCH_SHO="fnmatch.so.o"
5500 FNMATCH_TSO="fnmatch.tso.o"
5501 fi
5502
5503
5504
5505
5506 # Check whether --enable-screen was given.
5507 if test "${enable_screen+set}" = set; then :
5508 enableval=$enable_screen; with_screen=$enableval
5509 else
5510 with_screen=yes
5511 fi
5512
5513 if test "$with_screen" = no; then
5514 SCREEN_FUNCS="-DNOSCREEN_FUNCS"
5515 REGSCREENUX=""
5516 else
5517 SCREEN_FUNCS=""
5518 REGSCREENUX="regscreenux.\$(OBJ)"
5519 fi
5520
5521
5522
5523 REGUTIL_TERM_LIB=""
5524 #if test "$on_qnx4" = "no"; then
5525 save_LIBS="$LIBS"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
5527 $as_echo_n "checking for library containing tgetent... " >&6; }
5528 if ${ac_cv_search_tgetent+:} false; then :
5529 $as_echo_n "(cached) " >&6
5530 else
5531 ac_func_search_save_LIBS=$LIBS
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 /* Override any GCC internal prototype to avoid an error.
5536 Use char because int might match the return type of a GCC
5537 builtin and then its argument prototype would still apply. */
5538 #ifdef __cplusplus
5539 extern "C"
5540 #endif
5541 char tgetent ();
5542 int
5543 main ()
5544 {
5545 return tgetent ();
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 for ac_lib in '' ncurses termcap curses termlib; do
5551 if test -z "$ac_lib"; then
5552 ac_res="none required"
5553 else
5554 ac_res=-l$ac_lib
5555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5556 fi
5557 if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_search_tgetent=$ac_res
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext
5562 if ${ac_cv_search_tgetent+:} false; then :
5563 break
5564 fi
5565 done
5566 if ${ac_cv_search_tgetent+:} false; then :
5567
5568 else
5569 ac_cv_search_tgetent=no
5570 fi
5571 rm conftest.$ac_ext
5572 LIBS=$ac_func_search_save_LIBS
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
5575 $as_echo "$ac_cv_search_tgetent" >&6; }
5576 ac_res=$ac_cv_search_tgetent
5577 if test "$ac_res" != no; then :
5578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5579 REGUTIL_TERM_LIB="$ac_cv_search_tgetent"
5580 else
5581 REGUTIL_TERM_LIB=""
5582 fi
5583
5584 if test "$REGUTIL_TERM_LIB" = "none required" -o "$REGUTIL_TERM_LIB" = "no" -o "$with_screen" = "no"; then
5585 REGUTIL_TERM_LIB=""
5586 fi
5587 LIBS="$save_LIBS"
5588 #fi
5589 REGUTIL_MATH_LIB=""
5590 #if test "$on_qnx4" = "no"; then
5591 save_LIBS="$LIBS"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10" >&5
5593 $as_echo_n "checking for library containing log10... " >&6; }
5594 if ${ac_cv_search_log10+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 ac_func_search_save_LIBS=$LIBS
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5600
5601 /* Override any GCC internal prototype to avoid an error.
5602 Use char because int might match the return type of a GCC
5603 builtin and then its argument prototype would still apply. */
5604 #ifdef __cplusplus
5605 extern "C"
5606 #endif
5607 char log10 ();
5608 int
5609 main ()
5610 {
5611 return log10 ();
5612 ;
5613 return 0;
5614 }
5615 _ACEOF
5616 for ac_lib in '' m c; do
5617 if test -z "$ac_lib"; then
5618 ac_res="none required"
5619 else
5620 ac_res=-l$ac_lib
5621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5622 fi
5623 if ac_fn_c_try_link "$LINENO"; then :
5624 ac_cv_search_log10=$ac_res
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext \
5627 conftest$ac_exeext
5628 if ${ac_cv_search_log10+:} false; then :
5629 break
5630 fi
5631 done
5632 if ${ac_cv_search_log10+:} false; then :
5633
5634 else
5635 ac_cv_search_log10=no
5636 fi
5637 rm conftest.$ac_ext
5638 LIBS=$ac_func_search_save_LIBS
5639 fi
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10" >&5
5641 $as_echo "$ac_cv_search_log10" >&6; }
5642 ac_res=$ac_cv_search_log10
5643 if test "$ac_res" != no; then :
5644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5645 REGUTIL_MATH_LIB="$ac_cv_search_log10"
5646 else
5647 REGUTIL_MATH_LIB=""
5648 fi
5649
5650 if test "$REGUTIL_MATH_LIB" = "none required" -o "$REGUTIL_MATH_LIB" = "no"; then
5651 REGUTIL_MATH_LIB=""
5652 fi
5653 LIBS="$save_LIBS"
5654 #fi
5655
5656 REGUTIL_READLINE_LIB=""
5657 #if test "$on_qnx4" = "no"; then
5658 save_LIBS="$LIBS"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing add_history" >&5
5660 $as_echo_n "checking for library containing add_history... " >&6; }
5661 if ${ac_cv_search_add_history+:} false; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5664 ac_func_search_save_LIBS=$LIBS
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667
5668 /* Override any GCC internal prototype to avoid an error.
5669 Use char because int might match the return type of a GCC
5670 builtin and then its argument prototype would still apply. */
5671 #ifdef __cplusplus
5672 extern "C"
5673 #endif
5674 char add_history ();
5675 int
5676 main ()
5677 {
5678 return add_history ();
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 for ac_lib in '' readline; do
5684 if test -z "$ac_lib"; then
5685 ac_res="none required"
5686 else
5687 ac_res=-l$ac_lib
5688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5689 fi
5690 if ac_fn_c_try_link "$LINENO"; then :
5691 ac_cv_search_add_history=$ac_res
5692 fi
5693 rm -f core conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext
5695 if ${ac_cv_search_add_history+:} false; then :
5696 break
5697 fi
5698 done
5699 if ${ac_cv_search_add_history+:} false; then :
5700
5701 else
5702 ac_cv_search_add_history=no
5703 fi
5704 rm conftest.$ac_ext
5705 LIBS=$ac_func_search_save_LIBS
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_add_history" >&5
5708 $as_echo "$ac_cv_search_add_history" >&6; }
5709 ac_res=$ac_cv_search_add_history
5710 if test "$ac_res" != no; then :
5711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5712 REGUTIL_READLINE_LIB="$ac_cv_search_add_history"
5713 else
5714 REGUTIL_READLINE_LIB=""
5715 fi
5716
5717 if test "$REGUTIL_READLINE_LIB" = "none required" -o "$REGUTIL_READLINE_LIB" = "no"; then
5718 REGUTIL_READLINE_LIB=""
5719 fi
5720 LIBS="$save_LIBS"
5721 #fi
5722
5723 save_LIBS="$LIBS"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5725 $as_echo_n "checking for library containing crypt... " >&6; }
5726 if ${ac_cv_search_crypt+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 ac_func_search_save_LIBS=$LIBS
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732
5733 /* Override any GCC internal prototype to avoid an error.
5734 Use char because int might match the return type of a GCC
5735 builtin and then its argument prototype would still apply. */
5736 #ifdef __cplusplus
5737 extern "C"
5738 #endif
5739 char crypt ();
5740 int
5741 main ()
5742 {
5743 return crypt ();
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 for ac_lib in '' crypt; do
5749 if test -z "$ac_lib"; then
5750 ac_res="none required"
5751 else
5752 ac_res=-l$ac_lib
5753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5754 fi
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 ac_cv_search_crypt=$ac_res
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext \
5759 conftest$ac_exeext
5760 if ${ac_cv_search_crypt+:} false; then :
5761 break
5762 fi
5763 done
5764 if ${ac_cv_search_crypt+:} false; then :
5765
5766 else
5767 ac_cv_search_crypt=no
5768 fi
5769 rm conftest.$ac_ext
5770 LIBS=$ac_func_search_save_LIBS
5771 fi
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5773 $as_echo "$ac_cv_search_crypt" >&6; }
5774 ac_res=$ac_cv_search_crypt
5775 if test "$ac_res" != no; then :
5776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5777 REGINA_CRYPT_LIB="$ac_cv_search_crypt"
5778 else
5779 REGINA_CRYPT_LIB=""
5780 fi
5781
5782 if test "$REGINA_CRYPT_LIB" = "none required" -o "$REGINA_CRYPT_LIB" = "no"; then
5783 REGINA_CRYPT_LIB=""
5784 fi
5785 LIBS="$save_LIBS"
5786
5787 save_LIBS="$LIBS"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5789 $as_echo_n "checking for library containing dlopen... " >&6; }
5790 if ${ac_cv_search_dlopen+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 ac_func_search_save_LIBS=$LIBS
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796
5797 /* Override any GCC internal prototype to avoid an error.
5798 Use char because int might match the return type of a GCC
5799 builtin and then its argument prototype would still apply. */
5800 #ifdef __cplusplus
5801 extern "C"
5802 #endif
5803 char dlopen ();
5804 int
5805 main ()
5806 {
5807 return dlopen ();
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 for ac_lib in '' dl; do
5813 if test -z "$ac_lib"; then
5814 ac_res="none required"
5815 else
5816 ac_res=-l$ac_lib
5817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5818 fi
5819 if ac_fn_c_try_link "$LINENO"; then :
5820 ac_cv_search_dlopen=$ac_res
5821 fi
5822 rm -f core conftest.err conftest.$ac_objext \
5823 conftest$ac_exeext
5824 if ${ac_cv_search_dlopen+:} false; then :
5825 break
5826 fi
5827 done
5828 if ${ac_cv_search_dlopen+:} false; then :
5829
5830 else
5831 ac_cv_search_dlopen=no
5832 fi
5833 rm conftest.$ac_ext
5834 LIBS=$ac_func_search_save_LIBS
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5837 $as_echo "$ac_cv_search_dlopen" >&6; }
5838 ac_res=$ac_cv_search_dlopen
5839 if test "$ac_res" != no; then :
5840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5841 REGINA_DLOPEN_LIB="$ac_cv_search_dlopen"
5842 else
5843 REGINA_DLOPEN_LIB=""
5844 fi
5845
5846 if test "$REGINA_DLOPEN_LIB" = "none required" -o "$REGINA_DLOPEN_LIB" = "no"; then
5847 REGINA_DLOPEN_LIB=""
5848 fi
5849 LIBS="$save_LIBS"
5850
5851 save_LIBS="$LIBS"
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
5853 $as_echo_n "checking for library containing shl_load... " >&6; }
5854 if ${ac_cv_search_shl_load+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 ac_func_search_save_LIBS=$LIBS
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861 /* Override any GCC internal prototype to avoid an error.
5862 Use char because int might match the return type of a GCC
5863 builtin and then its argument prototype would still apply. */
5864 #ifdef __cplusplus
5865 extern "C"
5866 #endif
5867 char shl_load ();
5868 int
5869 main ()
5870 {
5871 return shl_load ();
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 for ac_lib in '' dld; do
5877 if test -z "$ac_lib"; then
5878 ac_res="none required"
5879 else
5880 ac_res=-l$ac_lib
5881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5882 fi
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 ac_cv_search_shl_load=$ac_res
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext
5888 if ${ac_cv_search_shl_load+:} false; then :
5889 break
5890 fi
5891 done
5892 if ${ac_cv_search_shl_load+:} false; then :
5893
5894 else
5895 ac_cv_search_shl_load=no
5896 fi
5897 rm conftest.$ac_ext
5898 LIBS=$ac_func_search_save_LIBS
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
5901 $as_echo "$ac_cv_search_shl_load" >&6; }
5902 ac_res=$ac_cv_search_shl_load
5903 if test "$ac_res" != no; then :
5904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5905 REGINA_SHL_LOAD_LIB="$ac_cv_search_shl_load"
5906 else
5907 REGINA_SHL_LOAD_LIB=""
5908 fi
5909
5910 if test "$REGINA_SHL_LOAD_LIB" = "none required" -o "$REGINA_SHL_LOAD_LIB" = "no"; then
5911 REGINA_SHL_LOAD_LIB=""
5912 fi
5913 LIBS="$save_LIBS"
5914
5915 save_LIBS="$LIBS"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5917 $as_echo_n "checking for library containing socket... " >&6; }
5918 if ${ac_cv_search_socket+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 ac_func_search_save_LIBS=$LIBS
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924
5925 /* Override any GCC internal prototype to avoid an error.
5926 Use char because int might match the return type of a GCC
5927 builtin and then its argument prototype would still apply. */
5928 #ifdef __cplusplus
5929 extern "C"
5930 #endif
5931 char socket ();
5932 int
5933 main ()
5934 {
5935 return socket ();
5936 ;
5937 return 0;
5938 }
5939 _ACEOF
5940 for ac_lib in '' socket network; do
5941 if test -z "$ac_lib"; then
5942 ac_res="none required"
5943 else
5944 ac_res=-l$ac_lib
5945 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5946 fi
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 ac_cv_search_socket=$ac_res
5949 fi
5950 rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext
5952 if ${ac_cv_search_socket+:} false; then :
5953 break
5954 fi
5955 done
5956 if ${ac_cv_search_socket+:} false; then :
5957
5958 else
5959 ac_cv_search_socket=no
5960 fi
5961 rm conftest.$ac_ext
5962 LIBS=$ac_func_search_save_LIBS
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5965 $as_echo "$ac_cv_search_socket" >&6; }
5966 ac_res=$ac_cv_search_socket
5967 if test "$ac_res" != no; then :
5968 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5969 REGINA_SOCKET_LIB="$ac_cv_search_socket"
5970 else
5971 REGINA_SOCKET_LIB=""
5972 fi
5973
5974 if test "$REGINA_SOCKET_LIB" = "none required" -o "$REGINA_SOCKET_LIB" = "no"; then
5975 REGINA_SOCKET_LIB=""
5976 fi
5977 LIBS="$save_LIBS"
5978
5979 save_LIBS="$LIBS"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
5981 $as_echo_n "checking for library containing gethostbyname... " >&6; }
5982 if ${ac_cv_search_gethostbyname+:} false; then :
5983 $as_echo_n "(cached) " >&6
5984 else
5985 ac_func_search_save_LIBS=$LIBS
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5992 #ifdef __cplusplus
5993 extern "C"
5994 #endif
5995 char gethostbyname ();
5996 int
5997 main ()
5998 {
5999 return gethostbyname ();
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 for ac_lib in '' nsl socket network; do
6005 if test -z "$ac_lib"; then
6006 ac_res="none required"
6007 else
6008 ac_res=-l$ac_lib
6009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6010 fi
6011 if ac_fn_c_try_link "$LINENO"; then :
6012 ac_cv_search_gethostbyname=$ac_res
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015 conftest$ac_exeext
6016 if ${ac_cv_search_gethostbyname+:} false; then :
6017 break
6018 fi
6019 done
6020 if ${ac_cv_search_gethostbyname+:} false; then :
6021
6022 else
6023 ac_cv_search_gethostbyname=no
6024 fi
6025 rm conftest.$ac_ext
6026 LIBS=$ac_func_search_save_LIBS
6027 fi
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6029 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6030 ac_res=$ac_cv_search_gethostbyname
6031 if test "$ac_res" != no; then :
6032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6033 REGINA_GETHOSTBYNAME_LIB="$ac_cv_search_gethostbyname"
6034 else
6035 REGINA_GETHOSTBYNAME_LIB=""
6036 fi
6037
6038 if test "$REGINA_GETHOSTBYNAME_LIB" = "none required" -o "$REGINA_GETHOSTBYNAME_LIB" = "no"; then
6039 REGINA_GETHOSTBYNAME_LIB=""
6040 fi
6041 LIBS="$save_LIBS"
6042
6043
6044
6045 #MH_CHECK_LIB(m nsl nsl_s socket net network)
6046
6047 # Check whether --enable-debug was given.
6048 if test "${enable_debug+set}" = set; then :
6049 enableval=$enable_debug; with_debug=$enableval
6050 else
6051 with_debug=no
6052 fi
6053
6054 DEBUG=""
6055 DEBUGGING=""
6056 cflags_g="`echo $CFLAGS | grep -c '\-g'`"
6057 cflags_O="`echo $CFLAGS | grep -c '\-O'`"
6058
6059 if test "$with_debug" = yes; then
6060 DEBUG="-DDEBUG"
6061 DEBUGGING="-g"
6062 if test "$cflags_g" = "0"; then
6063 CFLAGS="${CFLAGS} -g"
6064 fi
6065 if test "$cflags_O" != "0"; then
6066 CFLAGS="`echo ${CFLAGS} | sed -e s/-O.//`"
6067 fi
6068 else
6069 DEBUG="-DNDEBUG"
6070 if test "$cflags_O" = "0"; then
6071 CFLAGS="${CFLAGS} -O"
6072 fi
6073 if test "$cflags_g" = "0"; then
6074 CFLAGS="${CFLAGS} -g"
6075 fi
6076 fi
6077 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6078 if test "$with_debug" = yes; then
6079 CFLAGS="${CFLAGS} -Wall"
6080 else
6081 CFLAGS="${CFLAGS} -O3 -Wall -fomit-frame-pointer -fno-strict-aliasing -Wno-char-subscripts"
6082 fi
6083 fi
6084 if test "$on_qnx4" = yes; then
6085 if test "$ac_cv_prog_CC" = "gcc"; then
6086 QNX4_CFLAGS=""
6087 else
6088 if test "$SIMPLE_CFLAGS" = "yes"; then
6089 QNX4_CFLAGS="-O"
6090 else
6091 QNX4_CFLAGS="-Wc,-r -b -j -Wc,-ei -N4096000 -mf -DNO_REGEX -DQNX -DQNX4 -D__QNX__ -DSTRINGS_ALIGNED -Q"
6092 fi
6093 fi
6094 if test "$with_debug" = yes; then
6095 CFLAGS="-g $QNX4_CFLAGS"
6096 else
6097 CFLAGS="-Otax $QNX4_CFLAGS"
6098 fi
6099 fi
6100 if test "$on_beos" = yes; then
6101 if test "$with_debug" = yes; then
6102 CFLAGS="${CFLAGS} -Wall"
6103 else
6104 CFLAGS="${CFLAGS} -O2 -Wall"
6105 fi
6106 if test "$datadir" = "\${prefix}/share"; then
6107 datadir="/boot/home/config/add-ons"
6108 fi
6109 fi
6110 if test "$on_haiku" = yes; then
6111 if test "$with_debug" = yes; then
6112 CFLAGS="${CFLAGS} -Wall"
6113 else
6114 CFLAGS="${CFLAGS} -O2 -Wall"
6115 fi
6116 if test "$datadir" = "\${prefix}/share"; then
6117 datadir="/boot/home/config/non-packaged/add-ons"
6118 fi
6119 fi
6120
6121
6122
6123 # Check whether --enable-purify was given.
6124 if test "${enable_purify+set}" = set; then :
6125 enableval=$enable_purify; with_purify=$enableval
6126 else
6127 with_purify=no
6128 fi
6129
6130 if test "$with_purify" = yes; then
6131 PURIFY="purify"
6132 else
6133 PURIFY=""
6134 fi
6135
6136
6137 # Check whether --enable-efence was given.
6138 if test "${enable_efence+set}" = set; then :
6139 enableval=$enable_efence; with_efence=$enableval
6140 else
6141 with_efence=no
6142 fi
6143
6144 if test "$with_efence" = yes; then
6145 EFENCE="-lefence"
6146 else
6147 EFENCE=""
6148 fi
6149
6150
6151 # Check whether --enable-hpux_portable was given.
6152 if test "${enable_hpux_portable+set}" = set; then :
6153 enableval=$enable_hpux_portable; enable_hpux_portable=$enableval
6154 else
6155 enable_hpux_portable=no
6156 fi
6157
6158
6159
6160 # Check whether --with-dlfcnincdir was given.
6161 if test "${with_dlfcnincdir+set}" = set; then :
6162 withval=$with_dlfcnincdir; with_dlfcnincdir=$withval
6163 else
6164 with_dlfcnincdir=no
6165 fi
6166
6167 if test "$with_dlfcnincdir" = no; then
6168 DLFCNINCDIR=""
6169 for ac_header in dlfcn.h
6170 do :
6171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6172 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6176 _ACEOF
6177
6178 fi
6179
6180 done
6181
6182 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
6183 HAVE_DLFCN_H="1"
6184 else
6185 #
6186 # Ignore the warning messages for specified platforms
6187 #
6188 case "$target" in
6189 *beos*)
6190 ;;
6191 *qnx*)
6192 ;;
6193 *)
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find dlfcn.h in the standard header locations." >&5
6195 $as_echo "$as_me: WARNING: Could not find dlfcn.h in the standard header locations." >&2;}
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&5
6197 $as_echo "$as_me: WARNING: If your platform does support dynamic loading ie you have dlfcn.h " >&2;}
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&5
6199 $as_echo "$as_me: WARNING: then you may need to specify the location of dlfcn.h with the --with-dlfcnincdir switch" >&2;}
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&5
6201 $as_echo "$as_me: WARNING: and the location of libdl.so with the --with-dlfcnlibdir switch." >&2;}
6202 ;;
6203 esac
6204 fi
6205 else
6206 if test -f "$with_dlfcnincdir/dlfcn.h"; then
6207 DLFCNINCDIR="-I$with_dlfcnincdir"
6208 HAVE_DLFCN_H="1"
6209 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
6210
6211 else
6212 as_fn_error $? "dlfcn.h not found in \"$with_dlfcnincdir\" as specified in --with-dlfcnincdir switch; cannot continue" "$LINENO" 5
6213 fi
6214 fi
6215
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared library/external function extensions" >&5
6219 $as_echo_n "checking shared library/external function extensions... " >&6; }
6220 SHLPST=".so"
6221 MODPST=".so"
6222
6223 case "$target" in
6224 *hp-hpux*)
6225 SHLPST=".sl"
6226 MODPST=".sl"
6227 ;;
6228 *ibm-aix5*)
6229 SHLPST=".a"
6230 MODPST=".a"
6231 ;;
6232 *ibm-aix*)
6233 SHLPST=".a"
6234 MODPST=".a"
6235 ;;
6236 *nto-qnx*)
6237 ;;
6238 *qnx*)
6239 SHLPST=".junk"
6240 MODPST=""
6241 ;;
6242 *cygwin*)
6243 SHLPST=".dll"
6244 MODPST=".dll"
6245 ;;
6246 *skyos*)
6247 SHLPST=".dll"
6248 MODPST=".dll"
6249 ;;
6250 *darwin*)
6251 SHLPST=".dylib"
6252 MODPST=".dylib"
6253 ;;
6254 esac
6255
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLPST/$MODPST" >&5
6258 $as_echo "$SHLPST/$MODPST" >&6; }
6259
6260
6261 # Check whether --with-dlfcnlibdir was given.
6262 if test "${with_dlfcnlibdir+set}" = set; then :
6263 withval=$with_dlfcnlibdir; with_dlfcnlibdir=$withval
6264 else
6265 with_dlfcnlibdir=no
6266 fi
6267
6268 if test "$with_dlfcnlibdir" = no; then
6269 DLFCNLIBDIR=""
6270 else
6271 if test -f "$with_dlfcnlibdir/libdl$SHLPST"; then
6272 DLFCNLIBDIR="-L$with_dlfcnlibdir -ldl"
6273 else
6274 as_fn_error $? "libdl$SHLPST not found in \"$with_dlfcnlibdir\" as specified in --with-dlfcnlibdir switch; cannot continue" "$LINENO" 5
6275 fi
6276 fi
6277
6278
6279
6280
6281 # Check whether --with-staticfunctions was given.
6282 if test "${with_staticfunctions+set}" = set; then :
6283 withval=$with_staticfunctions; with_staticfunctions=$withval
6284 else
6285 with_staticfunctions=no
6286 fi
6287
6288 if test "$with_staticfunctions" = "yes" -o "$on_qnx4" = "yes"; then
6289 build_static="yes"
6290 else
6291 build_static="no"
6292 fi
6293
6294 # Check whether --enable-orexx-binary-compatible was given.
6295 if test "${enable_orexx_binary_compatible+set}" = set; then :
6296 enableval=$enable_orexx_binary_compatible; with_orexx_bc=$enableval
6297 else
6298 with_orexx_bc=no
6299 fi
6300
6301 if test "$with_orexx_bc" = yes; then
6302 OREXX_BINARY_COMPATIBLE="1"
6303 $as_echo "#define OREXX_BINARY_COMPATIBLE 1" >>confdefs.h
6304
6305 fi
6306
6307 # Check whether --enable-posix-threads was given.
6308 if test "${enable_posix_threads+set}" = set; then :
6309 enableval=$enable_posix_threads; enable_posix_threads=no
6310 else
6311 enable_posix_threads=yes
6312 fi
6313
6314 if test "$build_static" = "yes"; then
6315 enable_posix_threads="no"
6316 fi
6317
6318 # Check whether --enable-gci was given.
6319 if test "${enable_gci+set}" = set; then :
6320 enableval=$enable_gci; with_gci=no
6321 else
6322 with_gci=$gci_available
6323 fi
6324
6325 if test "$with_gci" = yes; then
6326 GCI_SHO="gci_call.so.o gci_convert.so.o gci_execute.so.o gci_helper.so.o gci_prepare.so.o gci_reginabridge.so.o gci_rxfuncdefine.so.o gci_tree.so.o"
6327 HAVE_GCI="-DHAVE_GCI -I\$(gcidir)"
6328 else
6329 GCI_SHO=""
6330 HAVE_GCI=""
6331 fi
6332
6333
6334
6335 if test "$ac_cv_func_getopt_long" = yes; then
6336 MY_GETOPT_O=
6337 MY_GETOPT_SO_O=
6338 else
6339 MY_GETOPT_O="mygetopt.\$(OBJ)"
6340 MY_GETOPT_SO_O="mygetopt.so.\$(OBJ)"
6341 fi
6342
6343
6344
6345 case "$ac_cv_prog_CC" in
6346 *gcc*|*g++*)
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5
6349 $as_echo_n "checking whether gcc understands --version-script... " >&6; }
6350 if ${mh_cv_version_script+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353
6354 echo "TEST {" > conftest.def
6355 echo "global:" >> conftest.def
6356 echo "Test;" >> conftest.def
6357 echo "};" >> conftest.def
6358 mh_save_libs="$LDFLAGS"
6359 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.def"
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <stdio.h>
6363 #include <stdlib.h>
6364 int
6365 main ()
6366 {
6367 exit(0);
6368 ;
6369 return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_link "$LINENO"; then :
6373 mh_cv_version_script=yes
6374 else
6375 mh_cv_version_script=no
6376
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379 conftest$ac_exeext conftest.$ac_ext
6380 LDFLAGS="$mh_save_libs"
6381 rm -f conftest.def
6382
6383 fi
6384
6385 if test "$mh_cv_version_script" = yes; then
6386 SHL_SCRIPT="-Wl,--version-script=${srcdir}/regina_elf.def"
6387 else
6388 SHL_SCRIPT=""
6389 fi
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5
6392 $as_echo "$mh_cv_version_script" >&6; }
6393
6394 ;;
6395 esac
6396
6397
6398 MH_MT_LIBS=""
6399 THREADING_COMPILE=""
6400 THREADING_LINK=""
6401 THREADSAFE_TARGET=""
6402 MT_FILE="mt_notmt"
6403 if test "$enable_posix_threads" = yes; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
6405 $as_echo_n "checking for main in -lrt... " >&6; }
6406 if ${ac_cv_lib_rt_main+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 ac_check_lib_save_LIBS=$LIBS
6410 LIBS="-lrt $LIBS"
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413
6414
6415 int
6416 main ()
6417 {
6418 return main ();
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_link "$LINENO"; then :
6424 ac_cv_lib_rt_main=yes
6425 else
6426 ac_cv_lib_rt_main=no
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext \
6429 conftest$ac_exeext conftest.$ac_ext
6430 LIBS=$ac_check_lib_save_LIBS
6431 fi
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
6433 $as_echo "$ac_cv_lib_rt_main" >&6; }
6434 if test "x$ac_cv_lib_rt_main" = xyes; then :
6435 mh_rt_lib_found=yes
6436 else
6437 mh_rt_lib_found=no
6438 fi
6439
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Posix Threads are supported" >&5
6441 $as_echo_n "checking whether Posix Threads are supported... " >&6; }
6442 tmpLIBS=$LIBS
6443 save_cflags="$CFLAGS"
6444 pthread_libs="pthreads pthread c_r c"
6445 case "$target" in
6446 *freebsd*)
6447 CFLAGS="$CFLAGS -pthread"
6448 ;;
6449 esac
6450 for mh_lib in $pthread_libs; do
6451 LIBS="$tmpLIBS -l${mh_lib}"
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <pthread.h>
6455 int
6456 main ()
6457 {
6458 pthread_create(NULL,NULL,NULL,NULL)
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_c_try_link "$LINENO"; then :
6464 mh_has_pthreads=yes
6465 else
6466 mh_has_pthreads=no
6467
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6471 if test "$mh_has_pthreads" = yes; then
6472 MH_MT_LIBS="-l${mh_lib}"
6473
6474 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6475 THREADING_LINK=""
6476 THREADSAFE_TARGET="threader${binarybitprefix}${EXEEXT}"
6477 MT_FILE="mt_posix"
6478 case "$target" in
6479 *solaris*)
6480 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6481 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6482 if test "$mh_rt_lib_found" = "yes"; then
6483 THREADING_LINK="-lrt"
6484 fi
6485 else
6486 THREADING_COMPILE="-mt -D_REENTRANT -DREENTRANT -D_PTHREAD_SEMANTICS -DREGINA_REENTRANT"
6487 THREADING_LINK="-mt"
6488 fi
6489 ;;
6490 *hp-hpux1*)
6491 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6492 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6493 fi
6494 if test "$mh_rt_lib_found" = "yes"; then
6495 THREADING_LINK="-lrt"
6496 fi
6497 ;;
6498 *linux*)
6499 ;;
6500 *freebsd*)
6501 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6502 THREADING_LINK="-pthread"
6503 ;;
6504 *cygwin*)
6505 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6506 THREADING_LINK=""
6507 ;;
6508 *)
6509 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6510 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6511 fi
6512 ;;
6513 esac
6514 break
6515 fi
6516 done
6517 LIBS="$tmpLIBS"
6518 CFLAGS="$save_cflags"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_has_pthreads" >&5
6520 $as_echo "$mh_has_pthreads" >&6; }
6521 fi
6522
6523
6524
6525
6526
6527
6528 if test "$mh_has_pthreads" = yes; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_exit" >&5
6530 $as_echo_n "checking for library containing pthread_exit... " >&6; }
6531 if ${ac_cv_search_pthread_exit+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 ac_func_search_save_LIBS=$LIBS
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537
6538 /* Override any GCC internal prototype to avoid an error.
6539 Use char because int might match the return type of a GCC
6540 builtin and then its argument prototype would still apply. */
6541 #ifdef __cplusplus
6542 extern "C"
6543 #endif
6544 char pthread_exit ();
6545 int
6546 main ()
6547 {
6548 return pthread_exit ();
6549 ;
6550 return 0;
6551 }
6552 _ACEOF
6553 for ac_lib in '' pthread pthreads c_r; do
6554 if test -z "$ac_lib"; then
6555 ac_res="none required"
6556 else
6557 ac_res=-l$ac_lib
6558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6559 fi
6560 if ac_fn_c_try_link "$LINENO"; then :
6561 ac_cv_search_pthread_exit=$ac_res
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext
6565 if ${ac_cv_search_pthread_exit+:} false; then :
6566 break
6567 fi
6568 done
6569 if ${ac_cv_search_pthread_exit+:} false; then :
6570
6571 else
6572 ac_cv_search_pthread_exit=no
6573 fi
6574 rm conftest.$ac_ext
6575 LIBS=$ac_func_search_save_LIBS
6576 fi
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_exit" >&5
6578 $as_echo "$ac_cv_search_pthread_exit" >&6; }
6579 ac_res=$ac_cv_search_pthread_exit
6580 if test "$ac_res" != no; then :
6581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6582 REGINA_PTHREAD_LIB="$ac_cv_search_pthread_exit"
6583 else
6584 REGINA_PTHREAD_LIB=""
6585 fi
6586
6587 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6589 $as_echo_n "checking for library containing sem_init... " >&6; }
6590 if ${ac_cv_search_sem_init+:} false; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 ac_func_search_save_LIBS=$LIBS
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6600 #ifdef __cplusplus
6601 extern "C"
6602 #endif
6603 char sem_init ();
6604 int
6605 main ()
6606 {
6607 return sem_init ();
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 for ac_lib in '' pthread pthreads c_r; do
6613 if test -z "$ac_lib"; then
6614 ac_res="none required"
6615 else
6616 ac_res=-l$ac_lib
6617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6618 fi
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_search_sem_init=$ac_res
6621 fi
6622 rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext
6624 if ${ac_cv_search_sem_init+:} false; then :
6625 break
6626 fi
6627 done
6628 if ${ac_cv_search_sem_init+:} false; then :
6629
6630 else
6631 ac_cv_search_sem_init=no
6632 fi
6633 rm conftest.$ac_ext
6634 LIBS=$ac_func_search_save_LIBS
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6637 $as_echo "$ac_cv_search_sem_init" >&6; }
6638 ac_res=$ac_cv_search_sem_init
6639 if test "$ac_res" != no; then :
6640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6641 REGINA_PTHREAD_LIB="$ac_cv_search_sem_init"
6642 else
6643 REGINA_PTHREAD_LIB=""
6644 fi
6645
6646 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6647 REGINA_PTHREAD_LIB=""
6648 fi
6649 fi
6650 save_cflags="$CFLAGS"
6651 CFLAGS="$CFLAGS $THREADING_COMPILE"
6652 #
6653 # Where we know the format of getgrgid_r() function
6654 # only test for that case
6655 #
6656 if test "$ac_cv_func_getgrgid_r" = yes; then
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 5 args and returns an int" >&5
6658 $as_echo_n "checking if getgrgid_r has 5 args and returns an int... " >&6; }
6659 if ${mh_cv_getgrgid_r_int5+:} false; then :
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 #include <sys/types.h>
6665 #include <grp.h>
6666 #include <pwd.h>
6667 int
6668 main ()
6669 {
6670
6671 struct group *ptr,result;
6672 int rc;
6673 gid_t gid;
6674 char buf[100];
6675 rc = getgrgid_r(gid,&result,buf,sizeof(buf),&ptr);
6676
6677 ;
6678 return 0;
6679 }
6680 _ACEOF
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 mh_cv_getgrgid_r_int5=yes
6683 else
6684 mh_cv_getgrgid_r_int5=no
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int5" >&5
6689 $as_echo "$mh_cv_getgrgid_r_int5" >&6; }
6690 if test $mh_cv_getgrgid_r_int5 = yes; then
6691 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_5_PARAMS 1" >>confdefs.h
6692
6693 fi
6694
6695 if test "$mh_cv_getgrgid_r_int5" = "no"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 4 args and returns an int" >&5
6697 $as_echo_n "checking if getgrgid_r has 4 args and returns an int... " >&6; }
6698 if ${mh_cv_getgrgid_r_int4+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #include <sys/types.h>
6704 #include <grp.h>
6705 #include <pwd.h>
6706 int
6707 main ()
6708 {
6709
6710 struct group *ptr,result;
6711 int rc;
6712 gid_t gid;
6713 char buf[100];
6714 rc = getgrgid_r(gid,&result,buf,sizeof(buf));
6715
6716 ;
6717 return 0;
6718 }
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"; then :
6721 mh_cv_getgrgid_r_int4=yes
6722 else
6723 mh_cv_getgrgid_r_int4=no
6724 fi
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int4" >&5
6728 $as_echo "$mh_cv_getgrgid_r_int4" >&6; }
6729 if test $mh_cv_getgrgid_r_int4 = yes; then
6730 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_4_PARAMS 1" >>confdefs.h
6731
6732 fi
6733
6734 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6736 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6737 if ${mh_cv_getgrgid_r_struct+:} false; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742 #include <sys/types.h>
6743 #include <grp.h>
6744 #include <pwd.h>
6745 int
6746 main ()
6747 {
6748
6749 struct group *ptr,result;
6750 int rc;
6751 gid_t gid;
6752 char buf[100];
6753 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6754
6755 ;
6756 return 0;
6757 }
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 mh_cv_getgrgid_r_struct=yes
6761 else
6762 mh_cv_getgrgid_r_struct=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6767 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6768 if test $mh_cv_getgrgid_r_struct = yes; then
6769 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6770
6771 fi
6772
6773 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6775 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6776 if ${mh_cv_getgrgid_r_struct+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6781 #include <sys/types.h>
6782 #include <grp.h>
6783 #include <pwd.h>
6784 int
6785 main ()
6786 {
6787
6788 struct group *ptr,result;
6789 int rc;
6790 gid_t gid;
6791 char buf[100];
6792 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6793
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799 mh_cv_getgrgid_r_struct=yes
6800 else
6801 mh_cv_getgrgid_r_struct=no
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 fi
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6806 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6807 if test $mh_cv_getgrgid_r_struct = yes; then
6808 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6809
6810 fi
6811
6812 fi
6813 fi
6814 fi
6815 fi
6816 if test "$ac_cv_func_getpwuid_r" = yes; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns an int" >&5
6818 $as_echo_n "checking if getpwuid_r returns an int... " >&6; }
6819 if ${mh_cv_getpwuid_r_int+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 #include <sys/types.h>
6825 #include <grp.h>
6826 #include <pwd.h>
6827 int
6828 main ()
6829 {
6830
6831 struct passwd *ptr,*result;
6832 int rc;
6833 uid_t uid;
6834 char buf[100];
6835 rc = getpwuid_r(uid,&result,buf,sizeof(buf),&ptr);
6836
6837 ;
6838 return 0;
6839 }
6840 _ACEOF
6841 if ac_fn_c_try_compile "$LINENO"; then :
6842 mh_cv_getpwuid_r_int=yes
6843 else
6844 mh_cv_getpwuid_r_int=no
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_int" >&5
6849 $as_echo "$mh_cv_getpwuid_r_int" >&6; }
6850 if test $mh_cv_getpwuid_r_int = yes; then
6851 $as_echo "#define HAVE_GETPWUID_R_RETURNS_INT 1" >>confdefs.h
6852
6853 fi
6854
6855 if test "$mh_cv_getpwuid_r_int" = "no"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns a struct passwd *" >&5
6857 $as_echo_n "checking if getpwuid_r returns a struct passwd *... " >&6; }
6858 if ${mh_cv_getpwuid_r_struct+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <sys/types.h>
6864 #include <grp.h>
6865 #include <pwd.h>
6866 int
6867 main ()
6868 {
6869
6870 struct group *ptr,*result;
6871 int rc;
6872 uid_t uid;
6873 char buf[100];
6874 ptr = getpwuid_r(uid,&result,buf,sizeof(buf));
6875
6876 ;
6877 return 0;
6878 }
6879 _ACEOF
6880 if ac_fn_c_try_compile "$LINENO"; then :
6881 mh_cv_getpwuid_r_struct=yes
6882 else
6883 mh_cv_getpwuid_r_struct=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 fi
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_struct" >&5
6888 $as_echo "$mh_cv_getpwuid_r_struct" >&6; }
6889 if test $mh_cv_getpwuid_r_struct = yes; then
6890 $as_echo "#define HAVE_GETPWUID_R_RETURNS_STRUCT 1" >>confdefs.h
6891
6892 fi
6893
6894 fi
6895 fi
6896 if test "$ac_cv_func_gethostbyname_r" = yes; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 6 args and returns an int" >&5
6898 $as_echo_n "checking if gethostbyname_r has 6 args and returns an int... " >&6; }
6899 if ${mh_cv_gethostbyname_r_int6+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <sys/types.h>
6905 #include <netdb.h>
6906 int
6907 main ()
6908 {
6909
6910 int herr;
6911 struct hostent *he,*rc;
6912 char buf[8192];
6913 struct hostent retval;
6914 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&he,&herr);
6915
6916 ;
6917 return 0;
6918 }
6919 _ACEOF
6920 if ac_fn_c_try_compile "$LINENO"; then :
6921 mh_cv_gethostbyname_r_int6=yes
6922 else
6923 mh_cv_gethostbyname_r_int6=no
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 fi
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_int6" >&5
6928 $as_echo "$mh_cv_gethostbyname_r_int6" >&6; }
6929 if test $mh_cv_gethostbyname_r_int6 = yes; then
6930 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_INT_6_PARAMS 1" >>confdefs.h
6931
6932 fi
6933
6934 if test "$mh_cv_gethostbyname_r_int6" = "no"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 5 args and returns a struct" >&5
6936 $as_echo_n "checking if gethostbyname_r has 5 args and returns a struct... " >&6; }
6937 if ${mh_cv_gethostbyname_r_struct5+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 #include <sys/types.h>
6943 #include <netdb.h>
6944 int
6945 main ()
6946 {
6947
6948 int herr;
6949 struct hostent *he,*rc;
6950 char buf[8192];
6951 struct hostent retval;
6952 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&herr);
6953
6954 ;
6955 return 0;
6956 }
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 mh_cv_gethostbyname_r_struct5=yes
6960 else
6961 mh_cv_gethostbyname_r_struct5=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 fi
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_struct5" >&5
6966 $as_echo "$mh_cv_gethostbyname_r_struct5" >&6; }
6967 if test $mh_cv_gethostbyname_r_struct5 = yes; then
6968 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_STRUCT_5_PARAMS 1" >>confdefs.h
6969
6970 fi
6971
6972 fi
6973 fi
6974
6975 CFLAGS="$save_cflags"
6976 REGINAMULTITHREAD="yes"
6977 else
6978 REGINAMULTITHREAD="no"
6979 fi
6980
6981 if test "$build_static" = "yes"; then
6982 STATICLD_SHO="staticld.so.o rxpack.so.o"
6983 if test "$on_qnx4" = "yes"; then
6984 with_regutil="yes"
6985
6986 SHLPRE="lib"
6987 SHLPST=".a"
6988 MODPST=".a"
6989 LIBFILE="rexx"
6990 SHLFILE="regina"
6991 OSAVE=".o.save"
6992 OBJ="o"
6993 LIBPST=".a"
6994 LIBPRE="lib"
6995 LIBEXE="ar"
6996 GETOPT=""
6997 OBJECTS='$('OFILES')'
6998 STATIC_LDFLAGS=""
6999 AIX_DYN="no"
7000 BEOS_DYN="no"
7001 DYN_COMP="-DDYNAMIC"
7002
7003 SHL_LD=""
7004 TEST1EXPORTS=""
7005 TEST2EXPORTS=""
7006 TEST1EXP=""
7007 TEST2EXP=""
7008 REGINAEXP=""
7009 REGUTILEXPORTS=""
7010 REGUTILEXP=""
7011
7012
7013 # OTHER_INSTALLS is set to install a non-version numbered shared library
7014 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7015 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7016 # are building a version numbered shared library.
7017 OTHER_INSTALLS="installlib"
7018 BASE_INSTALL="installbase"
7019 BASE_BINARY="binarybase"
7020 USE_ABI="no"
7021 BUNDLE=""
7022 EXTRATARGET=""
7023
7024 case "$target" in
7025 *hp-hpux9*)
7026 SYS_DEFS="-D_HPUX_SOURCE"
7027 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7028
7029 ;;
7030 *hp-hpux*)
7031 SYS_DEFS="-D_HPUX_SOURCE"
7032 ;;
7033 *ibm-aix*)
7034 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7035 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7036 ;;
7037 *dec-osf*)
7038 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7039 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7040 else
7041 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7042 fi
7043 ;;
7044 sparc*sunos*)
7045 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7046 ;;
7047 *atheos* | *syllable*)
7048 BASE_BINARY="atheosbinary"
7049 ;;
7050 *beos*)
7051 BASE_INSTALL="beosinstall"
7052 BASE_BINARY="beosbinary"
7053 OTHER_INSTALLS=""
7054 ;;
7055 *haiku*)
7056 BASE_INSTALL="haikuinstall"
7057 BASE_BINARY="beosbinary"
7058 OTHER_INSTALLS=""
7059 ;;
7060 *nto-qnx*)
7061 ;;
7062 *qnx*)
7063 SHLPRE=""
7064 SHLPST=".lib"
7065 MODPST=".lib"
7066 # getting duplicate targets
7067 BUNDLE=".junk2"
7068 EEXTRA="-mf -N0x20000 -Q"
7069 LIBPRE=""
7070 LIBPST=".lib"
7071 ;;
7072 *cygwin*)
7073 LIBPRE="lib"
7074 SHLPRE="lib"
7075 LIBPST=".a"
7076 BASE_INSTALL="cygwininstall"
7077 BASE_BINARY="cygwinbinary"
7078 OTHER_INSTALLS=""
7079 ;;
7080 *apple-darwin*)
7081 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7082 #
7083 # Link switches for building "bundles"
7084 #
7085 OTHER_INSTALLS="installlib installmacosx"
7086 ;;
7087 *)
7088 ;;
7089 esac
7090 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7091 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7092 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7093 LD_RXLIB_B1=""
7094 LD_RXLIB_B2=""
7095 LD_RXLIB_UTILB=""
7096 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7097
7098 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7099
7100 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7101 LIBLINK="-L. -l${LIBFILE}"
7102 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7103 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7104
7105 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7106 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7107 EXECISER_DEP="${STATICLIB}"
7108 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7109 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7110
7111 # Check whether --with-testpackage was given.
7112 if test "${with_testpackage+set}" = set; then :
7113 withval=$with_testpackage; with_test=$withval
7114 else
7115 with_testpackage=no
7116 fi
7117
7118 MH_FUNC_LIBS=""
7119 if test "$with_testpackage" = "yes"; then
7120 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7121 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
7122
7123 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7124 fi
7125
7126 # Check whether --with-regutil was given.
7127 if test "${with_regutil+set}" = set; then :
7128 withval=$with_regutil; with_regutil=$withval
7129 else
7130 with_regutil=no
7131 fi
7132
7133 if test "$with_regutil" = "yes" -o "xregutil" = "xregutil"; then
7134 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
7135 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
7136
7137 fi
7138
7139 # Check whether --with-rexxcurses was given.
7140 if test "${with_rexxcurses+set}" = set; then :
7141 withval=$with_rexxcurses; with_rexxcurses=$withval
7142 else
7143 with_rexxcurses=no
7144 fi
7145
7146 if test "$with_rexxcurses" = "yes"; then
7147 # Extract the first word of "rxcurses-config", so it can be a program name with args.
7148 set dummy rxcurses-config; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if ${ac_cv_prog_rxcurses_config+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 if test -n "$rxcurses_config"; then
7155 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_rxcurses_config="yes"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
7173 fi
7174 fi
7175 rxcurses_config=$ac_cv_prog_rxcurses_config
7176 if test -n "$rxcurses_config"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
7178 $as_echo "$rxcurses_config" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184
7185 if test "$ac_cv_prog_rxcurses_config" = yes; then
7186 EXTRA_LIB=`rxcurses-config --libs-static`
7187 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7188 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
7189
7190 else
7191 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
7192 fi
7193 fi
7194
7195 # Check whether --with-rexxtk was given.
7196 if test "${with_rexxtk+set}" = set; then :
7197 withval=$with_rexxtk; with_rexxtk=$withval
7198 else
7199 with_rexxtk=no
7200 fi
7201
7202 if test "$with_rexxtk" = "yes"; then
7203 # Extract the first word of "rexxtk-config", so it can be a program name with args.
7204 set dummy rexxtk-config; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_rexxtk_config+:} false; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$rexxtk_config"; then
7211 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220 ac_cv_prog_rexxtk_config="yes"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7223 fi
7224 done
7225 done
7226 IFS=$as_save_IFS
7227
7228 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
7229 fi
7230 fi
7231 rexxtk_config=$ac_cv_prog_rexxtk_config
7232 if test -n "$rexxtk_config"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
7234 $as_echo "$rexxtk_config" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 if test "$ac_cv_prog_rexxtk_config" = yes; then
7242 EXTRA_LIB=`rexxtk-config --libs-static`
7243 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7244 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
7245
7246 else
7247 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
7248 fi
7249 fi
7250
7251 # Check whether --with-rexxgd was given.
7252 if test "${with_rexxgd+set}" = set; then :
7253 withval=$with_rexxgd; with_rexxgd=$withval
7254 else
7255 with_rexxgd=no
7256 fi
7257
7258 if test "$with_rexxgd" = "yes"; then
7259 # Extract the first word of "rexxgd-config", so it can be a program name with args.
7260 set dummy rexxgd-config; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_rexxgd_config+:} false; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$rexxgd_config"; then
7267 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_rexxgd_config="yes"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7279 fi
7280 done
7281 done
7282 IFS=$as_save_IFS
7283
7284 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
7285 fi
7286 fi
7287 rexxgd_config=$ac_cv_prog_rexxgd_config
7288 if test -n "$rexxgd_config"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
7290 $as_echo "$rexxgd_config" >&6; }
7291 else
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7294 fi
7295
7296
7297 if test "$ac_cv_prog_rexxgd_config" = yes; then
7298 EXTRA_LIB=`rexxgd-config --libs-static`
7299 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7300 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
7301
7302 else
7303 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
7304 fi
7305 fi
7306
7307 # Check whether --with-rexxcurl was given.
7308 if test "${with_rexxcurl+set}" = set; then :
7309 withval=$with_rexxcurl; with_rexxcurl=$withval
7310 else
7311 with_rexxcurl=no
7312 fi
7313
7314 if test "$with_rexxcurl" = "yes"; then
7315 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
7316 set dummy rexxcurl-config; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_rexxcurl_config+:} false; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$rexxcurl_config"; then
7323 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_rexxcurl_config="yes"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
7341 fi
7342 fi
7343 rexxcurl_config=$ac_cv_prog_rexxcurl_config
7344 if test -n "$rexxcurl_config"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
7346 $as_echo "$rexxcurl_config" >&6; }
7347 else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353 if test "$ac_cv_prog_rexxcurl_config" = yes; then
7354 EXTRA_LIB=`rexxcurl-config --libs-static`
7355 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7356 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
7357
7358 else
7359 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
7360 fi
7361 fi
7362
7363 # Check whether --with-rexxsql was given.
7364 if test "${with_rexxsql+set}" = set; then :
7365 withval=$with_rexxsql; with_rexxsql=$withval
7366 else
7367 with_rexxsql=no
7368 fi
7369
7370 if test "$with_rexxsql" = "yes"; then
7371 # Extract the first word of "rexxsql-config", so it can be a program name with args.
7372 set dummy rexxsql-config; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_prog_rexxsql_config+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$rexxsql_config"; then
7379 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_rexxsql_config="yes"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 break 2
7391 fi
7392 done
7393 done
7394 IFS=$as_save_IFS
7395
7396 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
7397 fi
7398 fi
7399 rexxsql_config=$ac_cv_prog_rexxsql_config
7400 if test -n "$rexxsql_config"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
7402 $as_echo "$rexxsql_config" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 if test "$ac_cv_prog_rexxsql_config" = yes; then
7410 EXTRA_LIB=`rexxsql-config --libs-static`
7411 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7412 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
7413
7414 else
7415 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
7416 fi
7417 fi
7418
7419 # Check whether --with-rexxeec was given.
7420 if test "${with_rexxeec+set}" = set; then :
7421 withval=$with_rexxeec; with_rexxeec=$withval
7422 else
7423 with_rexxeec=no
7424 fi
7425
7426 if test "$with_rexxeec" = "yes"; then
7427 # Extract the first word of "rexxeec-config", so it can be a program name with args.
7428 set dummy rexxeec-config; ac_word=$2
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 $as_echo_n "checking for $ac_word... " >&6; }
7431 if ${ac_cv_prog_rexxeec_config+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433 else
7434 if test -n "$rexxeec_config"; then
7435 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444 ac_cv_prog_rexxeec_config="yes"
7445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
7453 fi
7454 fi
7455 rexxeec_config=$ac_cv_prog_rexxeec_config
7456 if test -n "$rexxeec_config"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
7458 $as_echo "$rexxeec_config" >&6; }
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7462 fi
7463
7464
7465 if test "$ac_cv_prog_rexxeec_config" = yes; then
7466 EXTRA_LIB=`rexxeec-config --libs-static`
7467 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7468 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
7469
7470 else
7471 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
7472 fi
7473 fi
7474
7475 # Check whether --with-rexxisam was given.
7476 if test "${with_rexxisam+set}" = set; then :
7477 withval=$with_rexxisam; with_rexxisam=$withval
7478 else
7479 with_rexxisam=no
7480 fi
7481
7482 if test "$with_rexxisam" = "yes"; then
7483 # Extract the first word of "rexxisam-config", so it can be a program name with args.
7484 set dummy rexxisam-config; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_rexxisam_config+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$rexxisam_config"; then
7491 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_rexxisam_config="yes"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 break 2
7503 fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507
7508 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
7509 fi
7510 fi
7511 rexxisam_config=$ac_cv_prog_rexxisam_config
7512 if test -n "$rexxisam_config"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
7514 $as_echo "$rexxisam_config" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 fi
7519
7520
7521 if test "$ac_cv_prog_rexxisam_config" = yes; then
7522 EXTRA_LIB=`rexxisam-config --libs-static`
7523 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7524 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
7525
7526 else
7527 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
7528 fi
7529 fi
7530
7531 # Check whether --with-rxsock was given.
7532 if test "${with_rxsock+set}" = set; then :
7533 withval=$with_rxsock; with_rxsock=$withval
7534 else
7535 with_rxsock=no
7536 fi
7537
7538 if test "$with_rxsock" = "yes"; then
7539 # Extract the first word of "rxsock-config", so it can be a program name with args.
7540 set dummy rxsock-config; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_rxsock_config+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test -n "$rxsock_config"; then
7547 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556 ac_cv_prog_rxsock_config="yes"
7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 break 2
7559 fi
7560 done
7561 done
7562 IFS=$as_save_IFS
7563
7564 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
7565 fi
7566 fi
7567 rxsock_config=$ac_cv_prog_rxsock_config
7568 if test -n "$rxsock_config"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
7570 $as_echo "$rxsock_config" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576
7577 if test "$ac_cv_prog_rxsock_config" = yes; then
7578 EXTRA_LIB=`rxsock-config --libs-static`
7579 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7580 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
7581
7582 else
7583 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
7584 fi
7585 fi
7586
7587 # Check whether --with-rexxdw was given.
7588 if test "${with_rexxdw+set}" = set; then :
7589 withval=$with_rexxdw; with_rexxdw=$withval
7590 else
7591 with_rexxdw=no
7592 fi
7593
7594 if test "$with_rexxdw" = "yes"; then
7595 # Extract the first word of "rexxdw-config", so it can be a program name with args.
7596 set dummy rexxdw-config; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_rexxdw_config+:} false; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$rexxdw_config"; then
7603 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_rexxdw_config="yes"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7615 fi
7616 done
7617 done
7618 IFS=$as_save_IFS
7619
7620 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
7621 fi
7622 fi
7623 rexxdw_config=$ac_cv_prog_rexxdw_config
7624 if test -n "$rexxdw_config"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
7626 $as_echo "$rexxdw_config" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633 if test "$ac_cv_prog_rexxdw_config" = yes; then
7634 EXTRA_LIB=`rexxdw-config --libs-static`
7635 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7636 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
7637
7638 else
7639 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
7640 fi
7641 fi
7642
7643 # Check whether --with-rexxcsv was given.
7644 if test "${with_rexxcsv+set}" = set; then :
7645 withval=$with_rexxcsv; with_rexxcsv=$withval
7646 else
7647 with_rexxcsv=no
7648 fi
7649
7650 if test "$with_rexxcsv" = "yes"; then
7651 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
7652 set dummy rexxcsv-config; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_prog_rexxcsv_config+:} false; then :
7656 $as_echo_n "(cached) " >&6
7657 else
7658 if test -n "$rexxcsv_config"; then
7659 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
7660 else
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $PATH
7663 do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_rexxcsv_config="yes"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
7677 fi
7678 fi
7679 rexxcsv_config=$ac_cv_prog_rexxcsv_config
7680 if test -n "$rexxcsv_config"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
7682 $as_echo "$rexxcsv_config" >&6; }
7683 else
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689 if test "$ac_cv_prog_rexxcsv_config" = yes; then
7690 EXTRA_LIB=`rexxcsv-config --libs-static`
7691 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7692 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
7693
7694 else
7695 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
7696 fi
7697 fi
7698
7699 # Check whether --with-rexxpdf was given.
7700 if test "${with_rexxpdf+set}" = set; then :
7701 withval=$with_rexxpdf; with_rexxpdf=$withval
7702 else
7703 with_rexxpdf=no
7704 fi
7705
7706 if test "$with_rexxpdf" = "yes"; then
7707 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
7708 set dummy rexxpdf-config; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_rexxpdf_config+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$rexxpdf_config"; then
7715 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7719 do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_rexxpdf_config="yes"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728 done
7729 done
7730 IFS=$as_save_IFS
7731
7732 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
7733 fi
7734 fi
7735 rexxpdf_config=$ac_cv_prog_rexxpdf_config
7736 if test -n "$rexxpdf_config"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
7738 $as_echo "$rexxpdf_config" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745 if test "$ac_cv_prog_rexxpdf_config" = yes; then
7746 EXTRA_LIB=`rexxpdf-config --libs-static`
7747 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7748 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7749
7750 else
7751 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
7752 fi
7753 fi
7754
7755 # Check whether --with-rexxws was given.
7756 if test "${with_rexxws+set}" = set; then :
7757 withval=$with_rexxws; with_rexxws=$withval
7758 else
7759 with_rexxws=no
7760 fi
7761
7762 if test "$with_rexxws" = "yes"; then
7763 # Extract the first word of "rexxws-config", so it can be a program name with args.
7764 set dummy rexxws-config; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_rexxws_config+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$rexxws_config"; then
7771 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_rexxws_config="yes"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
7789 fi
7790 fi
7791 rexxws_config=$ac_cv_prog_rexxws_config
7792 if test -n "$rexxws_config"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
7794 $as_echo "$rexxws_config" >&6; }
7795 else
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7798 fi
7799
7800
7801 if test "$ac_cv_prog_rexxws_config" = yes; then
7802 EXTRA_LIB=`rexxws-config --libs-static`
7803 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7804 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7805
7806 else
7807 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
7808 fi
7809 fi
7810
7811 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 else
7865
7866 SHLPRE="lib"
7867 SHLPST=".a"
7868 MODPST=".a"
7869 LIBFILE="rexx"
7870 SHLFILE="regina"
7871 OSAVE=".o.save"
7872 OBJ="o"
7873 LIBPST=".a"
7874 LIBPRE="lib"
7875 LIBEXE="ar"
7876 GETOPT=""
7877 OBJECTS='$('OFILES')'
7878 STATIC_LDFLAGS=""
7879 AIX_DYN="no"
7880 BEOS_DYN="no"
7881 DYN_COMP="-DDYNAMIC"
7882
7883 SHL_LD=""
7884 TEST1EXPORTS=""
7885 TEST2EXPORTS=""
7886 TEST1EXP=""
7887 TEST2EXP=""
7888 REGINAEXP=""
7889 REGUTILEXPORTS=""
7890 REGUTILEXP=""
7891
7892
7893 # OTHER_INSTALLS is set to install a non-version numbered shared library
7894 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7895 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7896 # are building a version numbered shared library.
7897 OTHER_INSTALLS="installlib"
7898 BASE_INSTALL="installbase"
7899 BASE_BINARY="binarybase"
7900 USE_ABI="no"
7901 BUNDLE=""
7902 EXTRATARGET=""
7903
7904 case "$target" in
7905 *hp-hpux9*)
7906 SYS_DEFS="-D_HPUX_SOURCE"
7907 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7908
7909 ;;
7910 *hp-hpux*)
7911 SYS_DEFS="-D_HPUX_SOURCE"
7912 ;;
7913 *ibm-aix*)
7914 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7915 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7916 ;;
7917 *dec-osf*)
7918 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7919 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7920 else
7921 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7922 fi
7923 ;;
7924 sparc*sunos*)
7925 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7926 ;;
7927 *atheos* | *syllable*)
7928 BASE_BINARY="atheosbinary"
7929 ;;
7930 *beos*)
7931 BASE_INSTALL="beosinstall"
7932 BASE_BINARY="beosbinary"
7933 OTHER_INSTALLS=""
7934 ;;
7935 *haiku*)
7936 BASE_INSTALL="haikuinstall"
7937 BASE_BINARY="beosbinary"
7938 OTHER_INSTALLS=""
7939 ;;
7940 *nto-qnx*)
7941 ;;
7942 *qnx*)
7943 SHLPRE=""
7944 SHLPST=".lib"
7945 MODPST=".lib"
7946 # getting duplicate targets
7947 BUNDLE=".junk2"
7948 EEXTRA="-mf -N0x20000 -Q"
7949 LIBPRE=""
7950 LIBPST=".lib"
7951 ;;
7952 *cygwin*)
7953 LIBPRE="lib"
7954 SHLPRE="lib"
7955 LIBPST=".a"
7956 BASE_INSTALL="cygwininstall"
7957 BASE_BINARY="cygwinbinary"
7958 OTHER_INSTALLS=""
7959 ;;
7960 *apple-darwin*)
7961 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7962 #
7963 # Link switches for building "bundles"
7964 #
7965 OTHER_INSTALLS="installlib installmacosx"
7966 ;;
7967 *)
7968 ;;
7969 esac
7970 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7971 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7972 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7973 LD_RXLIB_B1=""
7974 LD_RXLIB_B2=""
7975 LD_RXLIB_UTILB=""
7976 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7977
7978 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7979
7980 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7981 LIBLINK="-L. -l${LIBFILE}"
7982 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7983 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7984
7985 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7986 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7987 EXECISER_DEP="${STATICLIB}"
7988 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7989 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7990
7991 # Check whether --with-testpackage was given.
7992 if test "${with_testpackage+set}" = set; then :
7993 withval=$with_testpackage; with_test=$withval
7994 else
7995 with_testpackage=no
7996 fi
7997
7998 MH_FUNC_LIBS=""
7999 if test "$with_testpackage" = "yes"; then
8000 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8001 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
8002
8003 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8004 fi
8005
8006 # Check whether --with-regutil was given.
8007 if test "${with_regutil+set}" = set; then :
8008 withval=$with_regutil; with_regutil=$withval
8009 else
8010 with_regutil=no
8011 fi
8012
8013 if test "$with_regutil" = "yes" -o "x" = "xregutil"; then
8014 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
8015 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
8016
8017 fi
8018
8019 # Check whether --with-rexxcurses was given.
8020 if test "${with_rexxcurses+set}" = set; then :
8021 withval=$with_rexxcurses; with_rexxcurses=$withval
8022 else
8023 with_rexxcurses=no
8024 fi
8025
8026 if test "$with_rexxcurses" = "yes"; then
8027 # Extract the first word of "rxcurses-config", so it can be a program name with args.
8028 set dummy rxcurses-config; ac_word=$2
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030 $as_echo_n "checking for $ac_word... " >&6; }
8031 if ${ac_cv_prog_rxcurses_config+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 if test -n "$rxcurses_config"; then
8035 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044 ac_cv_prog_rxcurses_config="yes"
8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 break 2
8047 fi
8048 done
8049 done
8050 IFS=$as_save_IFS
8051
8052 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
8053 fi
8054 fi
8055 rxcurses_config=$ac_cv_prog_rxcurses_config
8056 if test -n "$rxcurses_config"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
8058 $as_echo "$rxcurses_config" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065 if test "$ac_cv_prog_rxcurses_config" = yes; then
8066 EXTRA_LIB=`rxcurses-config --libs-static`
8067 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8068 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
8069
8070 else
8071 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
8072 fi
8073 fi
8074
8075 # Check whether --with-rexxtk was given.
8076 if test "${with_rexxtk+set}" = set; then :
8077 withval=$with_rexxtk; with_rexxtk=$withval
8078 else
8079 with_rexxtk=no
8080 fi
8081
8082 if test "$with_rexxtk" = "yes"; then
8083 # Extract the first word of "rexxtk-config", so it can be a program name with args.
8084 set dummy rexxtk-config; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_rexxtk_config+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 if test -n "$rexxtk_config"; then
8091 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_rexxtk_config="yes"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
8109 fi
8110 fi
8111 rexxtk_config=$ac_cv_prog_rexxtk_config
8112 if test -n "$rexxtk_config"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
8114 $as_echo "$rexxtk_config" >&6; }
8115 else
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8118 fi
8119
8120
8121 if test "$ac_cv_prog_rexxtk_config" = yes; then
8122 EXTRA_LIB=`rexxtk-config --libs-static`
8123 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8124 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
8125
8126 else
8127 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
8128 fi
8129 fi
8130
8131 # Check whether --with-rexxgd was given.
8132 if test "${with_rexxgd+set}" = set; then :
8133 withval=$with_rexxgd; with_rexxgd=$withval
8134 else
8135 with_rexxgd=no
8136 fi
8137
8138 if test "$with_rexxgd" = "yes"; then
8139 # Extract the first word of "rexxgd-config", so it can be a program name with args.
8140 set dummy rexxgd-config; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_rexxgd_config+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$rexxgd_config"; then
8147 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_rexxgd_config="yes"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
8165 fi
8166 fi
8167 rexxgd_config=$ac_cv_prog_rexxgd_config
8168 if test -n "$rexxgd_config"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
8170 $as_echo "$rexxgd_config" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177 if test "$ac_cv_prog_rexxgd_config" = yes; then
8178 EXTRA_LIB=`rexxgd-config --libs-static`
8179 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8180 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
8181
8182 else
8183 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
8184 fi
8185 fi
8186
8187 # Check whether --with-rexxcurl was given.
8188 if test "${with_rexxcurl+set}" = set; then :
8189 withval=$with_rexxcurl; with_rexxcurl=$withval
8190 else
8191 with_rexxcurl=no
8192 fi
8193
8194 if test "$with_rexxcurl" = "yes"; then
8195 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
8196 set dummy rexxcurl-config; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_rexxcurl_config+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$rexxcurl_config"; then
8203 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_rexxcurl_config="yes"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
8221 fi
8222 fi
8223 rexxcurl_config=$ac_cv_prog_rexxcurl_config
8224 if test -n "$rexxcurl_config"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
8226 $as_echo "$rexxcurl_config" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8230 fi
8231
8232
8233 if test "$ac_cv_prog_rexxcurl_config" = yes; then
8234 EXTRA_LIB=`rexxcurl-config --libs-static`
8235 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8236 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
8237
8238 else
8239 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
8240 fi
8241 fi
8242
8243 # Check whether --with-rexxsql was given.
8244 if test "${with_rexxsql+set}" = set; then :
8245 withval=$with_rexxsql; with_rexxsql=$withval
8246 else
8247 with_rexxsql=no
8248 fi
8249
8250 if test "$with_rexxsql" = "yes"; then
8251 # Extract the first word of "rexxsql-config", so it can be a program name with args.
8252 set dummy rexxsql-config; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_rexxsql_config+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 if test -n "$rexxsql_config"; then
8259 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
8260 else
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 for as_dir in $PATH
8263 do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_rexxsql_config="yes"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8270 break 2
8271 fi
8272 done
8273 done
8274 IFS=$as_save_IFS
8275
8276 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
8277 fi
8278 fi
8279 rexxsql_config=$ac_cv_prog_rexxsql_config
8280 if test -n "$rexxsql_config"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
8282 $as_echo "$rexxsql_config" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 if test "$ac_cv_prog_rexxsql_config" = yes; then
8290 EXTRA_LIB=`rexxsql-config --libs-static`
8291 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8292 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
8293
8294 else
8295 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
8296 fi
8297 fi
8298
8299 # Check whether --with-rexxeec was given.
8300 if test "${with_rexxeec+set}" = set; then :
8301 withval=$with_rexxeec; with_rexxeec=$withval
8302 else
8303 with_rexxeec=no
8304 fi
8305
8306 if test "$with_rexxeec" = "yes"; then
8307 # Extract the first word of "rexxeec-config", so it can be a program name with args.
8308 set dummy rexxeec-config; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_rexxeec_config+:} false; then :
8312 $as_echo_n "(cached) " >&6
8313 else
8314 if test -n "$rexxeec_config"; then
8315 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
8316 else
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8319 do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_rexxeec_config="yes"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
8333 fi
8334 fi
8335 rexxeec_config=$ac_cv_prog_rexxeec_config
8336 if test -n "$rexxeec_config"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
8338 $as_echo "$rexxeec_config" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 if test "$ac_cv_prog_rexxeec_config" = yes; then
8346 EXTRA_LIB=`rexxeec-config --libs-static`
8347 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8348 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
8349
8350 else
8351 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
8352 fi
8353 fi
8354
8355 # Check whether --with-rexxisam was given.
8356 if test "${with_rexxisam+set}" = set; then :
8357 withval=$with_rexxisam; with_rexxisam=$withval
8358 else
8359 with_rexxisam=no
8360 fi
8361
8362 if test "$with_rexxisam" = "yes"; then
8363 # Extract the first word of "rexxisam-config", so it can be a program name with args.
8364 set dummy rexxisam-config; ac_word=$2
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366 $as_echo_n "checking for $ac_word... " >&6; }
8367 if ${ac_cv_prog_rexxisam_config+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 if test -n "$rexxisam_config"; then
8371 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
8372 else
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374 for as_dir in $PATH
8375 do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_prog_rexxisam_config="yes"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 break 2
8383 fi
8384 done
8385 done
8386 IFS=$as_save_IFS
8387
8388 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
8389 fi
8390 fi
8391 rexxisam_config=$ac_cv_prog_rexxisam_config
8392 if test -n "$rexxisam_config"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
8394 $as_echo "$rexxisam_config" >&6; }
8395 else
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8398 fi
8399
8400
8401 if test "$ac_cv_prog_rexxisam_config" = yes; then
8402 EXTRA_LIB=`rexxisam-config --libs-static`
8403 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8404 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
8405
8406 else
8407 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
8408 fi
8409 fi
8410
8411 # Check whether --with-rxsock was given.
8412 if test "${with_rxsock+set}" = set; then :
8413 withval=$with_rxsock; with_rxsock=$withval
8414 else
8415 with_rxsock=no
8416 fi
8417
8418 if test "$with_rxsock" = "yes"; then
8419 # Extract the first word of "rxsock-config", so it can be a program name with args.
8420 set dummy rxsock-config; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_rxsock_config+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 if test -n "$rxsock_config"; then
8427 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_rxsock_config="yes"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
8445 fi
8446 fi
8447 rxsock_config=$ac_cv_prog_rxsock_config
8448 if test -n "$rxsock_config"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
8450 $as_echo "$rxsock_config" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456
8457 if test "$ac_cv_prog_rxsock_config" = yes; then
8458 EXTRA_LIB=`rxsock-config --libs-static`
8459 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8460 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
8461
8462 else
8463 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
8464 fi
8465 fi
8466
8467 # Check whether --with-rexxdw was given.
8468 if test "${with_rexxdw+set}" = set; then :
8469 withval=$with_rexxdw; with_rexxdw=$withval
8470 else
8471 with_rexxdw=no
8472 fi
8473
8474 if test "$with_rexxdw" = "yes"; then
8475 # Extract the first word of "rexxdw-config", so it can be a program name with args.
8476 set dummy rexxdw-config; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if ${ac_cv_prog_rexxdw_config+:} false; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8482 if test -n "$rexxdw_config"; then
8483 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
8484 else
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486 for as_dir in $PATH
8487 do
8488 IFS=$as_save_IFS
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_prog_rexxdw_config="yes"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 break 2
8495 fi
8496 done
8497 done
8498 IFS=$as_save_IFS
8499
8500 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
8501 fi
8502 fi
8503 rexxdw_config=$ac_cv_prog_rexxdw_config
8504 if test -n "$rexxdw_config"; then
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
8506 $as_echo "$rexxdw_config" >&6; }
8507 else
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8510 fi
8511
8512
8513 if test "$ac_cv_prog_rexxdw_config" = yes; then
8514 EXTRA_LIB=`rexxdw-config --libs-static`
8515 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8516 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
8517
8518 else
8519 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
8520 fi
8521 fi
8522
8523 # Check whether --with-rexxcsv was given.
8524 if test "${with_rexxcsv+set}" = set; then :
8525 withval=$with_rexxcsv; with_rexxcsv=$withval
8526 else
8527 with_rexxcsv=no
8528 fi
8529
8530 if test "$with_rexxcsv" = "yes"; then
8531 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
8532 set dummy rexxcsv-config; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_rexxcsv_config+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 if test -n "$rexxcsv_config"; then
8539 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
8540 else
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 for as_dir in $PATH
8543 do
8544 IFS=$as_save_IFS
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_rexxcsv_config="yes"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8550 break 2
8551 fi
8552 done
8553 done
8554 IFS=$as_save_IFS
8555
8556 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
8557 fi
8558 fi
8559 rexxcsv_config=$ac_cv_prog_rexxcsv_config
8560 if test -n "$rexxcsv_config"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
8562 $as_echo "$rexxcsv_config" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8566 fi
8567
8568
8569 if test "$ac_cv_prog_rexxcsv_config" = yes; then
8570 EXTRA_LIB=`rexxcsv-config --libs-static`
8571 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8572 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
8573
8574 else
8575 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
8576 fi
8577 fi
8578
8579 # Check whether --with-rexxpdf was given.
8580 if test "${with_rexxpdf+set}" = set; then :
8581 withval=$with_rexxpdf; with_rexxpdf=$withval
8582 else
8583 with_rexxpdf=no
8584 fi
8585
8586 if test "$with_rexxpdf" = "yes"; then
8587 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
8588 set dummy rexxpdf-config; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if ${ac_cv_prog_rexxpdf_config+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 if test -n "$rexxpdf_config"; then
8595 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
8596 else
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8599 do
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_rexxpdf_config="yes"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608 done
8609 done
8610 IFS=$as_save_IFS
8611
8612 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
8613 fi
8614 fi
8615 rexxpdf_config=$ac_cv_prog_rexxpdf_config
8616 if test -n "$rexxpdf_config"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
8618 $as_echo "$rexxpdf_config" >&6; }
8619 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 fi
8623
8624
8625 if test "$ac_cv_prog_rexxpdf_config" = yes; then
8626 EXTRA_LIB=`rexxpdf-config --libs-static`
8627 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8628 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8629
8630 else
8631 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
8632 fi
8633 fi
8634
8635 # Check whether --with-rexxws was given.
8636 if test "${with_rexxws+set}" = set; then :
8637 withval=$with_rexxws; with_rexxws=$withval
8638 else
8639 with_rexxws=no
8640 fi
8641
8642 if test "$with_rexxws" = "yes"; then
8643 # Extract the first word of "rexxws-config", so it can be a program name with args.
8644 set dummy rexxws-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_prog_rexxws_config+:} false; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 if test -n "$rexxws_config"; then
8651 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
8652 else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $PATH
8655 do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660 ac_cv_prog_rexxws_config="yes"
8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 break 2
8663 fi
8664 done
8665 done
8666 IFS=$as_save_IFS
8667
8668 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
8669 fi
8670 fi
8671 rexxws_config=$ac_cv_prog_rexxws_config
8672 if test -n "$rexxws_config"; then
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
8674 $as_echo "$rexxws_config" >&6; }
8675 else
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681 if test "$ac_cv_prog_rexxws_config" = yes; then
8682 EXTRA_LIB=`rexxws-config --libs-static`
8683 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8684 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8685
8686 else
8687 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
8688 fi
8689 fi
8690
8691 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 fi
8745 else
8746 STATICLD_SHO=""
8747
8748
8749
8750
8751
8752
8753 SHLPRE="lib"
8754 LIBFILE="regina"
8755 SHLFILE="regina"
8756 OSAVE=".o.save"
8757 OBJ="o"
8758 LIBPST=".a"
8759 LIBPRE="lib"
8760 LIBEXE="ar"
8761 GETOPT=""
8762 OBJECTS='$('OFILES')'
8763 STATIC_LDFLAGS=""
8764 AIX_DYN="no"
8765 BEOS_DYN="no"
8766
8767
8768 case "$target" in
8769 *hp-hpux9*)
8770 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8771 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
8772
8773 ;;
8774 *hp-hpux*)
8775 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8776 SYS_DEFS="-D_HPUX_SOURCE"
8777 else
8778 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8779 fi
8780 ;;
8781 *ibm-aix3*|*ibm-aix4.1*)
8782 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8783 ;;
8784 *ibm-aix*)
8785 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8786 DYN_COMP="-DDYNAMIC"
8787 ;;
8788 *dec-osf*)
8789 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8790 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
8791 else
8792 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
8793 fi
8794 ;;
8795 sparc*sunos*)
8796 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
8797 ;;
8798 *nto-qnx*)
8799 ;;
8800 *skyos*)
8801 DYN_COMP="-DDYNAMIC"
8802 ;;
8803 *qnx*)
8804 LIBPRE=""
8805 LIBPST=".lib"
8806 SHLPRE=""
8807 SHLPST=".lib"
8808 SHLFILE="rexx"
8809 ;;
8810 *cygwin*)
8811 LIBPRE="lib"
8812 SHLPRE="cyg"
8813 DYN_COMP="-DDYNAMIC"
8814 LIBPST=".a"
8815 ;;
8816 *darwin*)
8817 DYN_COMP="-fno-common"
8818 ;;
8819 esac
8820
8821 if test "$DYN_COMP" = ""; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for a dynamic object" >&5
8823 $as_echo_n "checking compiler flags for a dynamic object... " >&6; }
8824
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8824 "configure"
8827 int a=0
8828 EOF
8829
8830 DYN_COMP=""
8831 mh_cv_stop=no
8832 save_cflags="$CFLAGS"
8833 mh_cv_flags="-fPIC -KPIC +Z"
8834 for a in $mh_cv_flags; do
8835 CFLAGS="-c $a"
8836
8837 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
8838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
8839 (eval $mh_compile) 2>&5
8840 ac_status=$?
8841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8842 test $ac_status = 0; }; then
8843 DYN_COMP=""
8844 else
8845 slash="\\"
8846 mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
8847 if test "$mh_dyncomp" = "0"; then
8848 DYN_COMP="$a -DDYNAMIC"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a" >&5
8850 $as_echo "$a" >&6; }
8851 break
8852 else
8853 DYN_COMP=""
8854 fi
8855 fi
8856 done
8857 if test "$DYN_COMP" = ""; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none of $mh_cv_flags supported" >&5
8859 $as_echo "none of $mh_cv_flags supported" >&6; }
8860 fi
8861 CFLAGS="$save_cflags"
8862 rm -f conftest.*
8863 fi
8864
8865 SHL_LD=""
8866 TEST1EXPORTS=""
8867 TEST2EXPORTS=""
8868 TEST1EXP=""
8869 TEST2EXP=""
8870 REGINAEXP=""
8871 REGUTILEXP=""
8872
8873 # If the build OS can handle version numbers in the shared library name,
8874 # then set SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
8875 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
8876
8877 # OTHER_INSTALLS is set to install a non-version numbered shared library
8878 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
8879 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
8880 # are building a version numbered shared library.
8881 #RXSTACK_INSTALL="installrxstack"
8882 RXSTACK_INSTALL=""
8883 OTHER_INSTALLS="installlib"
8884 BASE_INSTALL="installbase"
8885 BASE_BINARY="binarybase"
8886 USE_ABI="no"
8887 BUNDLE=""
8888 EXTRATARGET=""
8889 case "$target" in
8890 *hp-hpux*)
8891 SHLPRE="lib"
8892 if test "$ac_cv_prog_CC" = "gcc"; then
8893 LD_RXLIB_A1="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8894 LD_RXLIB_A2="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8895 LD_RXLIB_UTILA="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8896 LD_RXLIB_B1="-L. -l${SHLFILE}"
8897 LD_RXLIB_B2="-L. -l${SHLFILE}"
8898 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8899 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -fPIC -shared ${LDFLAGS} \$(SHOFILES)"
8900 else
8901 EEXTRA="-Wl,-E"
8902 LD_RXLIB_A1="ld -b -q -n -o \$(@)"
8903 LD_RXLIB_A2="ld -b -q -n -o \$(@)"
8904 LD_RXLIB_UTILA="ld -b -q -n -o \$(@)"
8905 LD_RXLIB_B1=""
8906 LD_RXLIB_B2=""
8907 LD_RXLIB_UTILB=""
8908 DYNAMIC_LDFLAGS="-Wl,+s"
8909 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8910 fi
8911 ;;
8912 *ibm-aix3*)
8913 STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8914 LD_RXLIB_A1="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8915 LD_RXLIB_A2="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8916 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8917 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8918 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8919 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8920 SHLPRE="lib"
8921 TEST1EXPORTS="-bE:test1.exp"
8922 TEST2EXPORTS="-bE:test2.exp"
8923 TEST1EXP="test1.exp"
8924 TEST2EXP="test2.exp"
8925 REGINAEXP="regina.exp"
8926 REGUTILEXP="regutil.exp"
8927 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8928 AIX_DYN="yes"
8929 DYN_COMP="-DDYNAMIC"
8930 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE -bT:512 -bH:512 "'$('SHOFILES')'" -lc"
8931 else
8932 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8933 DYN_COMP=""
8934 fi
8935 ;;
8936 *ibm-aix*)
8937 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8938 SHLPRE="lib"
8939 if test "$ac_cv_prog_CC" = "gcc"; then
8940 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
8941 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
8942 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
8943 LD_RXLIB_B1="-L. -l${SHLFILE}"
8944 LD_RXLIB_B2="-L. -l${SHLFILE}"
8945 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8946 else
8947 LD_RXLIB_A1="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8948 LD_RXLIB_A2="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8949 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8950 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8951 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8952 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8953 TEST1EXPORTS="-bE:test1.exp"
8954 TEST2EXPORTS="-bE:test2.exp"
8955 TEST1EXP="test1.exp"
8956 TEST2EXP="test2.exp"
8957 REGUTILEXPORTS="-bE:regutil.exp"
8958 REGUTILEXP="regutil.exp"
8959 fi
8960 REGINAEXP="regina.exp"
8961 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8962 AIX_DYN="yes"
8963 DYN_COMP="-DDYNAMIC"
8964 if test "$ac_cv_prog_CC" = "gcc"; then
8965 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-bnoentry -Wl,-bE:regina.exp -Wl,-bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8966 else
8967 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8968 fi
8969 else
8970 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8971 DYN_COMP=""
8972 fi
8973 ;;
8974 *dec-osf*)
8975 LD_RXLIB_A1="ld -shared -o \$(@)"
8976 LD_RXLIB_A2="ld -shared -o \$(@)"
8977 LD_RXLIB_UTILA="ld -shared -o \$(@)"
8978 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
8979 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
8980 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
8981 SHLPRE="lib"
8982 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
8983 ;;
8984 *esix*)
8985 LD_RXLIB_A1="ld -G -o \$(@)"
8986 LD_RXLIB_A2="ld -G -o \$(@)"
8987 LD_RXLIB_UTILA="ld -G -o \$(@)"
8988 LD_RXLIB_B1=""
8989 LD_RXLIB_B2=""
8990 LD_RXLIB_UTILB=""
8991 DYNAMIC_LDFLAGS=""
8992 SHLPRE="lib"
8993 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8994 ;;
8995 *dgux*)
8996 LD_RXLIB_A1="ld -G -o \$(@)"
8997 LD_RXLIB_A2="ld -G -o \$(@)"
8998 LD_RXLIB_UTILA="ld -G -o \$(@)"
8999 LD_RXLIB_B1=""
9000 LD_RXLIB_B2=""
9001 LD_RXLIB_UTILB=""
9002 DYNAMIC_LDFLAGS=""
9003 SHLPRE="lib"
9004 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9005 ;;
9006 *pc-sco*)
9007 LD_RXLIB_A1="ld -dy -G -o \$(@)"
9008 LD_RXLIB_A2="ld -dy -G -o \$(@)"
9009 LD_RXLIB_UTILA="ld -dy -G -o \$(@)"
9010 LD_RXLIB_B1=""
9011 LD_RXLIB_B2=""
9012 LD_RXLIB_UTILB=""
9013 DYNAMIC_LDFLAGS=""
9014 SHLPRE="lib"
9015 SHL_LD="ld -dy -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9016 ;;
9017 *solaris*)
9018 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9019 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9020 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9021 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9022 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9023 else
9024 LD_RXLIB_A1="ld -G ${LDFLAGS} -o \$(@)"
9025 LD_RXLIB_A2="ld -G ${LDFLAGS} -o \$(@)"
9026 LD_RXLIB_UTILA="ld -G ${LDFLAGS} -o \$(@)"
9027 SHL_LD="ld -G ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9028 fi
9029 LD_RXLIB_B1=""
9030 LD_RXLIB_B2=""
9031 LD_RXLIB_UTILB=""
9032 DYNAMIC_LDFLAGS=""
9033 SHLPRE="lib"
9034 ;;
9035 sparc*sunos*)
9036 LD_RXLIB_A1="ld -o \$(@)"
9037 LD_RXLIB_A2="ld -o \$(@)"
9038 LD_RXLIB_UTILA="ld -o \$(@)"
9039 LD_RXLIB_B1=""
9040 LD_RXLIB_B2=""
9041 LD_RXLIB_UTILB=""
9042 SHLPRE="lib"
9043 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9044 ;;
9045 *-freebsd* | *openbsd*)
9046 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9047 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9048 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9049 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9050 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9051 else
9052 LD_RXLIB_A1="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9053 LD_RXLIB_A2="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9054 LD_RXLIB_UTILA="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9055 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
9056 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
9057 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
9058 SHL_LD="ld -Bdynamic -Bshareable ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9059 fi
9060 STATIC_LDFLAGS="-static"
9061 SHLPRE="lib"
9062 ;;
9063 *linux*|*kfreebsd*-gnu*)
9064 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9065 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9066 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9067 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9068 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9069 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9070 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9071 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9072 SHLPRE="lib"
9073 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9074 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9075 OTHER_INSTALLS="installabilib"
9076 USE_ABI="yes"
9077 ;;
9078 powerpc-ibm-os400)
9079 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9080 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9081 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9082 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9083 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9084 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9085 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9086 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9087 SHLPRE="lib"
9088 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} \$(SHOFILES)"
9089 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9090 OTHER_INSTALLS="installabilib"
9091 USE_ABI="yes"
9092 ;;
9093 *gnu*)
9094 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9095 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9096 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9097 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9098 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9099 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9100 SHLPRE="lib"
9101 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES) -lc"
9102 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9103 OTHER_INSTALLS="installabilib"
9104 USE_ABI="yes"
9105 ;;
9106 *atheos* | *syllable*)
9107 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9108 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9109 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9110 LD_RXLIB_B1="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9111 LD_RXLIB_B2="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9112 LD_RXLIB_UTILB="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9113 SHLPRE="lib"
9114 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared ${LDFLAGS} \$(SHOFILES) "'$('BOTHLIBS')'
9115 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9116 BASE_BINARY="atheosbinary"
9117 ;;
9118 *beos*)
9119 LD_RXLIB_A1="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9120 LD_RXLIB_A2="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9121 LD_RXLIB_UTILA="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9122 LD_RXLIB_B1="-L. -l${SHLFILE}"
9123 LD_RXLIB_B2="-L. -l${SHLFILE}"
9124 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9125 SHLPRE="lib"
9126 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared -nostart -Xlinker \$(SHOFILES)"
9127 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9128 BEOS_DYN="yes"
9129 BASE_INSTALL="beosinstall"
9130 BASE_BINARY="beosbinary"
9131 OTHER_INSTALLS=""
9132 ;;
9133 *haiku*)
9134 BEOS_DYN="no"
9135 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9136 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9137 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9138 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9139 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9140 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9141 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9142 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9143 SHLPRE="lib"
9144 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9145 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9146 BASE_INSTALL="haikuinstall"
9147 BASE_BINARY="beosbinary"
9148 OTHER_INSTALLS="installabilib"
9149 USE_ABI="yes"
9150 ;;
9151 *nto-qnx*)
9152 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9153 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9154 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9155 LD_RXLIB_B1="-L. -l${SHLFILE}"
9156 LD_RXLIB_B2="-L. -l${SHLFILE}"
9157 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9158 SHLPRE="lib"
9159 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9160 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9161 ;;
9162 *skyos*)
9163 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9164 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9165 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9166 LD_RXLIB_B1="-L. -l${SHLFILE}"
9167 LD_RXLIB_B2="-L. -l${SHLFILE}"
9168 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9169 SHLPRE="lib"
9170 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9171 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9172 ;;
9173 *qnx*)
9174 LD_RXLIB_A1=""
9175 LD_RXLIB_A2=""
9176 LD_RXLIB_UTILA=""
9177 LD_RXLIB_B1=""
9178 LD_RXLIB_B2=""
9179 LD_RXLIB_UTILB=""
9180 SHLPRE=""
9181 # set BUNDLE to unique junk names to stop the Makefile
9182 # getting duplicate targets
9183 BUNDLE=".junk2"
9184 SHLPST=".junk"
9185 SHL_LD=""
9186 EEXTRA="-mf -N0x20000 -Q"
9187 LIBPRE=""
9188 LIBPST=".lib"
9189 LIBFILE="rexx"
9190 ;;
9191 *cygwin*)
9192 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9193 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9194 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9195 LD_RXLIB_B1="-L. -lregina"
9196 LD_RXLIB_B2="-L. -lregina"
9197 LD_RXLIB_UTILB="-L. -lregina"
9198 SHLPRE="lib"
9199 SHL_LD="${CC} -shared -o \$(@) \$(SHOFILES)"
9200 EEXTRA=""
9201 LIBPRE="lib"
9202 LIBPST=".a"
9203 LIBFILE="rexx"
9204 SHL_BASE="cyg${SHLFILE}${SHLPST}"
9205 TEST1EXPORTS=""
9206 TEST2EXPORTS=""
9207 REGUTILEXPORTS=""
9208 TEST1EXP="${srcdir}/test1_w32_dll.def"
9209 TEST2EXP="${srcdir}/test2_w32_dll.def"
9210 REGINAEXP="${srcdir}/regina_w32_dll.def"
9211 REGUTILEXP="${srcdir}/regutil/regutil.def"
9212 BASE_INSTALL="cygwininstall"
9213 OTHER_INSTALLS=""
9214 RXSTACK_INSTALL=""
9215 ;;
9216 *apple-darwin*)
9217 # to test on platform other than real Mac OSX use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
9218 #
9219 # Link switches for building "bundles"
9220 #
9221 # MH LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9222 # MH LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9223 LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9224 LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9225 LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9226 LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9227 LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9228 LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS) $REGUTIL_TERM_LIB"
9229 DYN_COMP="-DDYNAMIC -fno-common"
9230 SHLPRE="lib"
9231 BUNDLE=".junk"
9232 SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9233 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9234 if test "$brewaddonsdir" = ""; then
9235 OTHER_INSTALLS="installmaclib"
9236 else
9237 OTHER_INSTALLS="installbrewlib"
9238 fi
9239 ;;
9240 *)
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a shared library" >&5
9243 $as_echo_n "checking how to create a shared library... " >&6; }
9244 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9245 cat > conftest.$ac_ext <<EOF
9246 #line 9244 "configure"
9247 int foo()
9248 {
9249 return(0);
9250 }
9251 EOF
9252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9253 (eval $mh_compile) 2>&5
9254 ac_status=$?
9255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9256 test $ac_status = 0; } && test -s conftest.o; then
9257 mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9259 (eval $mh_dyn_link) 2>&5
9260 ac_status=$?
9261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9262 test $ac_status = 0; } && test -s conftest.so.1.0; then
9263 SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9264 else
9265 mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5'
9266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9267 (eval $mh_dyn_link) 2>&5
9268 ac_status=$?
9269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9270 test $ac_status = 0; } && test -s conftest.so.1.0; then
9271 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9272 else
9273 mh_dyn_link='ld -o conftest.so.1.0 -shared -no_archive conftest.o -lc 1>&5'
9274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9275 (eval $mh_dyn_link) 2>&5
9276 ac_status=$?
9277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9278 test $ac_status = 0; } && test -s conftest.so.1.0; then
9279 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
9280 else
9281 mh_dyn_link='ld -b -o conftest.so.1.0 conftest.o 1>&5'
9282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9283 (eval $mh_dyn_link) 2>&5
9284 ac_status=$?
9285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9286 test $ac_status = 0; } && test -s conftest.so.1.0; then
9287 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9288 else
9289 mh_dyn_link='ld -Bshareable -o conftest.so.1.0 conftest.o 1>&5'
9290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9291 (eval $mh_dyn_link) 2>&5
9292 ac_status=$?
9293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294 test $ac_status = 0; } && test -s conftest.so.1.0; then
9295 SHL_LD="ld -Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9296 else
9297 mh_dyn_link='ld -assert pure-text -o conftest.so.1.0 conftest.o 1>&5'
9298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9299 (eval $mh_dyn_link) 2>&5
9300 ac_status=$?
9301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9302 test $ac_status = 0; } && test -s conftest.so.1.0; then
9303 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9304 else
9305 mh_dyn_link='${CC} -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9307 (eval $mh_dyn_link) 2>&5
9308 ac_status=$?
9309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9310 test $ac_status = 0; } && test -s conftest.so.1.0; then
9311 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9312 else
9313 SHL_LD=""
9314 fi
9315 fi
9316 fi
9317 fi
9318 fi
9319 fi
9320 fi
9321 fi
9322 if test "$SHL_LD" = ""; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
9324 $as_echo "unknown" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
9327 $as_echo "found" >&6; }
9328 fi
9329 rm -f conftest*
9330
9331
9332 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9332 "configure"
9335 int foo()
9336 {
9337 return(0);
9338 }
9339 EOF
9340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9341 (eval $mh_compile) 2>&5
9342 ac_status=$?
9343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9344 test $ac_status = 0; } && test -s conftest.o; then
9345 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
9346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9347 (eval $mh_dyn_link) 2>&5
9348 ac_status=$?
9349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9350 test $ac_status = 0; } && test -s conftest.rxlib; then
9351 LD_RXLIB_A1="ld -shared -o \$(@)"
9352 LD_RXLIB_A2="ld -shared -o \$(@)"
9353 LD_RXLIB_UTILA="ld -shared -o \$(@)"
9354 LD_RXLIB_B1="-L. -l${SHLFILE}"
9355 LD_RXLIB_B2="-L. -l${SHLFILE}"
9356 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9357 SHLPRE="lib"
9358 SHLPST=".so"
9359 else
9360 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
9361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9362 (eval $mh_dyn_link) 2>&5
9363 ac_status=$?
9364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9365 test $ac_status = 0; } && test -s conftest.rxlib; then
9366 LD_RXLIB_A1="ld -G -o \$(@)"
9367 LD_RXLIB_A2="ld -G -o \$(@)"
9368 LD_RXLIB_UTILA="ld -G -o \$(@)"
9369 LD_RXLIB_B1="-L. -l${SHLFILE}"
9370 LD_RXLIB_B2="-L. -l${SHLFILE}"
9371 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9372 SHLPRE="lib"
9373 SHLPST=".so"
9374 else
9375 mh_dyn_link='${CC} -shared -o conftest.rxlib conftest.o 1>&5'
9376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9377 (eval $mh_dyn_link) 2>&5
9378 ac_status=$?
9379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380 test $ac_status = 0; } && test -s conftest.rxlib; then
9381 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9382 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9383 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9384 LD_RXLIB_B1="-L. -l${SHLFILE}"
9385 LD_RXLIB_B2="-L. -l${SHLFILE}"
9386 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9387 SHLPRE="lib"
9388 SHLPST=".so"
9389 else
9390 LD_RXLIB_A1=""
9391 LD_RXLIB_A2=""
9392 LD_RXLIB_UTILA=""
9393 LD_RXLIB_B1=""
9394 LD_RXLIB_B2=""
9395 LD_RXLIB_UTILB=""
9396 SHLPRE=""
9397 SHLPST=""
9398 fi
9399 fi
9400 fi
9401 fi
9402 rm -f conftest*
9403
9404 ;;
9405 esac
9406
9407 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
9408 LIBLINK="-L. -l${LIBFILE}"
9409 LINKSHL="-L. -l${SHLFILE}"
9410
9411 SHL_NAME_REGINA="${SHLPRE}${SHLFILE}${SHLPST}"
9412 SHL_NAME_REGUTIL="${SHLPRE}regutil${SHLPST}"
9413 SHL_NAME_RXTEST1="${SHLPRE}rxtest1${SHLPST}"
9414 SHL_NAME_RXTEST2="${SHLPRE}rxtest2${SHLPST}"
9415 RANLIB_DYNAMIC=""
9416
9417 case "$target" in
9418 *hp-hpux*)
9419 #
9420 # For HPUX, we must link the "regina" executable with -lregina
9421 # otherwise you can't move the shared library anywhere other
9422 # than where it was built. Fix by PJM
9423 #
9424 LINKREG="${LINKSHL}"
9425 ;;
9426 *cygwin*)
9427 #
9428 # For CygWin, we must link with the import library
9429 # not the actual DLL
9430 #
9431 LINKREG="${LINKSHL}"
9432 SHL_NAME_REGINA="cygregina.dll"
9433 SHL_NAME_REGUTIL="regutil.dll"
9434 SHL_NAME_RXTEST1="rxtest1.dll"
9435 SHL_NAME_RXTEST2="rxtest2.dll"
9436 ;;
9437 *skyos*)
9438 #
9439 # SkyOS requires linking with -L. -lregina format
9440 #
9441 LINKREG="${LINKSHL}"
9442 ;;
9443 *linux*|*kfreebsd*-gnu*)
9444 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9445 LINKREG="${LINKSHL}"
9446 ;;
9447 *)
9448 LINKREG="${SHLPRE}${SHLFILE}${SHLPST}"
9449 ;;
9450 esac
9451
9452 if test "$SHL_LD" != ""; then
9453 SHL_LD="$SHL_LD \$(BOTHLIBS) \$(MH_MT_LIBS)"
9454 fi
9455
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic loading of external functions is supported" >&5
9457 $as_echo_n "checking if dynamic loading of external functions is supported... " >&6; }
9458 if test "$HAVE_DLFCN_H" = "1" -o "$ac_cv_header_dl_h" = "yes" -o "$ac_cv_header_dlfcn_h" = "yes" -o "$AIX_DYN" = "yes" -o "$BEOS_DYN" = "yes"; then
9459 SHL_TARGETS="${SHL_NAME_REGINA} regina${binarybitprefix}${EXEEXT} ${SHL_NAME_REGUTIL} ${SHL_NAME_RXTEST1} ${SHL_NAME_RXTEST2} $EXTRATARGET"
9460 EXECISER_DEP="${SHL_BASE}"
9461 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
9463 $as_echo "\"yes\"" >&6; }
9464 else
9465 SHL_TARGETS=""
9466 EXECISER_DEP="${STATICLIB}"
9467 OTHER_INSTALLS=""
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
9469 $as_echo "\"no\"" >&6; }
9470 fi
9471 #
9472 # Add $RXSTACK_INSTALL
9473 #
9474 OTHER_INSTALLS="$OTHER_INSTALLS $RXSTACK_INSTALL"
9475
9476 if test "$AIX_DYN" = "yes"; then
9477 STATICLIB=""
9478 LIBPST=".junk"
9479 else
9480 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
9481 fi
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if symbols need underscore prepended in loadable modules" >&5
9542 $as_echo_n "checking if symbols need underscore prepended in loadable modules... " >&6; }
9543 tmpLIBS="$LIBS"
9544 save_cflags="$CFLAGS"
9545 LIBS="$LIBS $DLFCNLIBDIR"
9546 CFLAGS="$CFLAGS $DLFCNINCDIR"
9547 if ${mh_cv_uscore+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550
9551 if test "$cross_compiling" = yes; then :
9552 mh_cv_uscore=no
9553 else
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556
9557 #include <dlfcn.h>
9558 int mh_underscore_test (void) { return 42; }
9559 int main() {
9560 void *f1 = (void*)0, *f2 = (void*)0, *handle;
9561 handle = dlopen ((void*)0, 0);
9562 if (handle) {
9563 f1 = dlsym (handle, "mh_underscore_test");
9564 f2 = dlsym (handle, "_mh_underscore_test");
9565 } return (!f2 || f1);
9566 }
9567
9568 _ACEOF
9569 if ac_fn_c_try_run "$LINENO"; then :
9570 mh_cv_uscore=yes
9571 else
9572 mh_cv_uscore=no
9573 fi
9574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9575 conftest.$ac_objext conftest.beam conftest.$ac_ext
9576 fi
9577
9578
9579 fi
9580
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_uscore" >&5
9582 $as_echo "$mh_cv_uscore" >&6; }
9583 if test "x$mh_cv_uscore" = "xyes"; then
9584 $as_echo "#define MODULES_NEED_USCORE 1" >>confdefs.h
9585
9586 fi
9587 LIBS="$tmpLIBS"
9588 CFLAGS="$save_cflags"
9589 fi
9590
9591 fi
9592
9593
9594
9595
9596
9597
9598
9599 LARGE_FILE_SUPPORT=""
9600 # Extract the first word of "getconf", so it can be a program name with args.
9601 set dummy getconf; ac_word=$2
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603 $as_echo_n "checking for $ac_word... " >&6; }
9604 if ${ac_cv_prog_getconf+:} false; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test -n "$getconf"; then
9608 ac_cv_prog_getconf="$getconf" # Let the user override the test.
9609 else
9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611 for as_dir in $PATH
9612 do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9617 ac_cv_prog_getconf="yes"
9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9619 break 2
9620 fi
9621 done
9622 done
9623 IFS=$as_save_IFS
9624
9625 test -z "$ac_cv_prog_getconf" && ac_cv_prog_getconf="no"
9626 fi
9627 fi
9628 getconf=$ac_cv_prog_getconf
9629 if test -n "$getconf"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $getconf" >&5
9631 $as_echo "$getconf" >&6; }
9632 else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634 $as_echo "no" >&6; }
9635 fi
9636
9637
9638 if test "$ac_cv_prog_getconf" = yes; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking large file support flags" >&5
9640 $as_echo_n "checking large file support flags... " >&6; }
9641 LARGE_FILE_SUPPORT=`getconf LFS_CFLAGS`
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGE_FILE_SUPPORT" >&5
9643 $as_echo "$LARGE_FILE_SUPPORT" >&6; }
9644 fi
9645 if test "$LARGE_FILE_SUPPORT" = "undefined"; then
9646 LARGE_FILE_SUPPORT=""
9647 fi
9648
9649
9650 #if test "$with_staticfunctions" = "yes"; then
9651 # DYNAMIC_LIBRARY_LIBS=""
9652 #else
9653 # DYNAMIC_LIBRARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9654 # DYNAMIC_REGUTIL_TERM_LIB="$REGUTIL_TERM_LIB"
9655 # AC_SUBST(DYNAMIC_REGUTIL_TERM_LIB)
9656 #fi
9657 #AC_SUBST(DYNAMIC_LIBRARY_LIBS)
9658 #DYNAMIC_BINARY_LIBS="-L. -lregina"
9659 #AC_SUBST(DYNAMIC_BINARY_LIBS)
9660
9661
9662 STACK_BINARY_LIBS="$REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9663
9664 REXX_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB $REGUTIL_READLINE_LIB $REGINA_PTHREAD_LIB"
9665
9666 #STATIC_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGINA_PTHREAD_LIB"
9667 #AC_SUBST(STATIC_BINARY_LIBS)
9668 if test "$build_static" = "yes"; then
9669 REGINA_CONFIG_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9670 LIBREGINA_BINARY_LIBS=""
9671 LIBREGUTIL_BINARY_LIBS=""
9672 REGINA_BINARY_LIBS="${MH_FUNC_LIBS} -L. -lregina $REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9673 THREADER_BINARY_LIBS="-L. -lrexx $REGINA_PTHREAD_LIB"
9674 EXECISER_BINARY_LIBS="-L. -lrexx $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9675 else
9676 REGINA_CONFIG_LIBS=""
9677 LIBREGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9678 LIBREGUTIL_BINARY_LIBS="$REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9679 REGINA_BINARY_LIBS="-L. -lregina"
9680 THREADER_BINARY_LIBS="-L. -lregina $REGINA_PTHREAD_LIB"
9681 EXECISER_BINARY_LIBS="-L. -lregina"
9682 fi
9683
9684
9685
9686
9687
9688
9689
9690 # Check whether --enable-tracemem was given.
9691 if test "${enable_tracemem+set}" = set; then :
9692 enableval=$enable_tracemem; with_tracemem=$enableval
9693 else
9694 with_tracemem=no
9695 fi
9696
9697 if test "$with_tracemem" = yes; then
9698 TRACEMEM="-DTRACEMEM"
9699 else
9700 TRACEMEM=""
9701 fi
9702
9703
9704 # Check whether --enable-flists was given.
9705 if test "${enable_flists+set}" = set; then :
9706 enableval=$enable_flists; with_flists=$enableval
9707 else
9708 with_flists=yes
9709 fi
9710
9711 if test "$with_flists" = no; then
9712 FLISTS="-DNOFLISTS"
9713 else
9714 FLISTS=""
9715 fi
9716
9717
9718
9719 # Check whether --with-socket was given.
9720 if test "${with_socket+set}" = set; then :
9721 withval=$with_socket; with_socket=$withval
9722 else
9723 with_socket=no
9724 fi
9725
9726 if test "$with_socket" = no; then
9727 REXXSOCKET=""
9728 else
9729 REXXSOCKET="-DRXSOCKET=$with_socket"
9730 fi
9731
9732
9733
9734 # Check whether --with-addon-dir was given.
9735 if test "${with_addon_dir+set}" = set; then :
9736 withval=$with_addon_dir; addonsdir=$withval
9737 else
9738 addonsdir=$libdir/regina-rexx/addons
9739 fi
9740
9741
9742 prefix_NONE=
9743 exec_prefix_NONE=
9744 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
9745 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
9746 eval ac_define_dir="\""$addonsdir"\""
9747 eval ac_define_dir="\"$ac_define_dir\""
9748 HAVE_REGINA_ADDON_DIR="$ac_define_dir"
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define HAVE_REGINA_ADDON_DIR "$ac_define_dir"
9752 _ACEOF
9753
9754 test "$prefix_NONE" && prefix=NONE
9755 test "$exec_prefix_NONE" && exec_prefix=NONE
9756
9757
9758
9759
9760 # Check whether --with-brew-addon-dir was given.
9761 if test "${with_brew_addon_dir+set}" = set; then :
9762 withval=$with_brew_addon_dir; brewaddonsdir=$withval
9763 else
9764 brewaddonsdir=""
9765 fi
9766
9767
9768
9769 #MH_CHECK_RPM
9770
9771 #
9772 # get our own abs_srcdir as autoconf sucks
9773 #
9774 here=`pwd`
9775 cd $srcdir
9776 absolute_srcdir=`pwd`
9777 cd $here
9778 #
9779 packagesdir="$absolute_srcdir/packages"
9780
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rpms are built" >&5
9782 $as_echo_n "checking where rpms are built... " >&6; }
9783 # Extract the first word of "rpmbuild", so it can be a program name with args.
9784 set dummy rpmbuild; ac_word=$2
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786 $as_echo_n "checking for $ac_word... " >&6; }
9787 if ${ac_cv_prog_mh_rpm_exists+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 if test -n "$mh_rpm_exists"; then
9791 ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test.
9792 else
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9795 do
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9800 ac_cv_prog_mh_rpm_exists="yes"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 break 2
9803 fi
9804 done
9805 done
9806 IFS=$as_save_IFS
9807
9808 test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no "
9809 fi
9810 fi
9811 mh_rpm_exists=$ac_cv_prog_mh_rpm_exists
9812 if test -n "$mh_rpm_exists"; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_rpm_exists" >&5
9814 $as_echo "$mh_rpm_exists" >&6; }
9815 else
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9818 fi
9819
9820
9821 if test "$mh_rpm_exists" = yes; then
9822 # rpmtopdir=`rpm --eval "%{_topdir}"`
9823 rpmtopdir="${packagesdir}/RPM"
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rpmtopdir" >&5
9825 $as_echo "$rpmtopdir" >&6; }
9826 else
9827 rpmtopdir=""
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9829 $as_echo "\"not avaliable\"" >&6; }
9830 fi
9831
9832 #
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where deb packages are built" >&5
9834 $as_echo_n "checking where deb packages are built... " >&6; }
9835 # Extract the first word of "dpkg-buildpackage", so it can be a program name with args.
9836 set dummy dpkg-buildpackage; ac_word=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_mh_dpkg_exists+:} false; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842 if test -n "$mh_dpkg_exists"; then
9843 ac_cv_prog_mh_dpkg_exists="$mh_dpkg_exists" # Let the user override the test.
9844 else
9845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846 for as_dir in $PATH
9847 do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_mh_dpkg_exists="yes"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 break 2
9855 fi
9856 done
9857 done
9858 IFS=$as_save_IFS
9859
9860 test -z "$ac_cv_prog_mh_dpkg_exists" && ac_cv_prog_mh_dpkg_exists="no "
9861 fi
9862 fi
9863 mh_dpkg_exists=$ac_cv_prog_mh_dpkg_exists
9864 if test -n "$mh_dpkg_exists"; then
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_dpkg_exists" >&5
9866 $as_echo "$mh_dpkg_exists" >&6; }
9867 else
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9869 $as_echo "no" >&6; }
9870 fi
9871
9872
9873 if test "$mh_dpkg_exists" = yes; then
9874 debtopdir="${packagesdir}/DEB"
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debtopdir" >&5
9876 $as_echo "$debtopdir" >&6; }
9877 else
9878 debtopdir=""
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9880 $as_echo "\"not avaliable\"" >&6; }
9881 fi
9882
9883 #
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where apk packages are built" >&5
9885 $as_echo_n "checking where apk packages are built... " >&6; }
9886 # Extract the first word of "abuild", so it can be a program name with args.
9887 set dummy abuild; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if ${ac_cv_prog_mh_apk_exists+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 if test -n "$mh_apk_exists"; then
9894 ac_cv_prog_mh_apk_exists="$mh_apk_exists" # Let the user override the test.
9895 else
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903 ac_cv_prog_mh_apk_exists="yes"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907 done
9908 done
9909 IFS=$as_save_IFS
9910
9911 test -z "$ac_cv_prog_mh_apk_exists" && ac_cv_prog_mh_apk_exists="no "
9912 fi
9913 fi
9914 mh_apk_exists=$ac_cv_prog_mh_apk_exists
9915 if test -n "$mh_apk_exists"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_apk_exists" >&5
9917 $as_echo "$mh_apk_exists" >&6; }
9918 else
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 $as_echo "no" >&6; }
9921 fi
9922
9923
9924 if test "$mh_apk_exists" = yes; then
9925 apktopdir="${packagesdir}/APK"
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apktopdir" >&5
9927 $as_echo "$apktopdir" >&6; }
9928 else
9929 apktopdir=""
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9931 $as_echo "\"not avaliable\"" >&6; }
9932 fi
9933
9934 # if we haven't set an environment variable; PACKAGE_RELEASE to a value,
9935 # get a timestamp for use in eg RPM Spec file Release
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getting PACKAGE_RELEASE value" >&5
9937 $as_echo_n "checking getting PACKAGE_RELEASE value... " >&6; }
9938 PACKAGE_RELEASE=`echo $PACKAGE_RELEASE`
9939 if test x"$PACKAGE_RELEASE" == "x"; then
9940 PACKAGE_RELEASE=`date +%y%m%d.%H%M`
9941 fi
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_RELEASE" >&5
9943 $as_echo "$PACKAGE_RELEASE" >&6; }
9944
9945
9946
9947 # Extract the first word of "lsb_release", so it can be a program name with args.
9948 set dummy lsb_release; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_prog_lsb_release+:} false; then :
9952 $as_echo_n "(cached) " >&6
9953 else
9954 if test -n "$lsb_release"; then
9955 ac_cv_prog_lsb_release="$lsb_release" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9964 ac_cv_prog_lsb_release="yes"
9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 break 2
9967 fi
9968 done
9969 done
9970 IFS=$as_save_IFS
9971
9972 test -z "$ac_cv_prog_lsb_release" && ac_cv_prog_lsb_release="no"
9973 fi
9974 fi
9975 lsb_release=$ac_cv_prog_lsb_release
9976 if test -n "$lsb_release"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsb_release" >&5
9978 $as_echo "$lsb_release" >&6; }
9979 else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9982 fi
9983
9984
9985 if test "$ac_cv_prog_lsb_release" = yes; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS distribution name" >&5
9987 $as_echo_n "checking OS distribution name... " >&6; }
9988 MYDISTRO="`lsb_release -i | cut -f 2`-`lsb_release -r | cut -f 2`"
9989 MYDISTRO="`echo $MYDISTRO | sed \"s/ /_/g\"`"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDISTRO" >&5
9991 $as_echo "$MYDISTRO" >&6; }
9992 else
9993 case "$target" in
9994 *linux*)
9995 if test -f "/etc/os-release"; then
9996 myid="`grep ^ID= /etc/os-release | cut -f2 -d\=`"
9997 myver="`grep ^VERSION_ID= /etc/os-release | cut -f2 -d\= | sed 's/\"//g'`"
9998 MYDISTRO="$myid-$myver"
9999 else
10000 MYDISTRO="`echo $target | cut -f3 -d-`"
10001 fi
10002 ;;
10003 *freebsd* | *openbsd*)
10004 MYDISTRO="`echo $target | cut -f3 -d-`"
10005 ;;
10006 *darwin*)
10007 MYDISTRO="`echo $target | cut -f2-3 -d-`"
10008 ;;
10009 *pc-solaris2*)
10010 MYDISTRO="`echo $target | cut -f2- -d-`"
10011 ;;
10012 *cygwin*)
10013 MYDISTRO="`echo $target | cut -f2- -d-`"
10014 ;;
10015 *nto-qnx*)
10016 MYDISTRO="`uname -s`-`uname -r`"
10017 ;;
10018 *qnx*)
10019 MYDISTRO="`uname -s`-`uname -v`"
10020 ;;
10021 *)
10022 MYDISTRO="$target"
10023 ;;
10024 esac
10025 fi
10026
10027
10028
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for service manager" >&5
10030 $as_echo_n "checking for service manager... " >&6; }
10031 if test -f /usr/bin/systemctl -o -f /bin/systemctl ; then
10032 initinstaller="installsystemd"
10033 systemdinstallpath=`pkg-config systemd --variable=systemdsystemunitdir`
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: systemd" >&5
10035 $as_echo "systemd" >&6; }
10036 elif test -f /sbin/initctl ; then
10037 initinstaller="installupstart"
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: upstart" >&5
10039 $as_echo "upstart" >&6; }
10040 elif test -f /sbin/insserv ; then
10041 # SuSE sysvinit
10042 initinstaller="installinsserv"
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: insserv" >&5
10044 $as_echo "insserv" >&6; }
10045 else
10046 initinstaller="installsysvinit"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysvinit" >&5
10048 $as_echo "sysvinit" >&6; }
10049 fi
10050
10051
10052
10053
10054 $as_echo "#define UNIX 1" >>confdefs.h
10055
10056
10057
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10059 $as_echo_n "checking whether char is unsigned... " >&6; }
10060 if ${ac_cv_c_char_unsigned+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 int
10067 main ()
10068 {
10069 static int test_array [1 - 2 * !(((char) -1) < 0)];
10070 test_array [0] = 0;
10071 return test_array [0];
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_compile "$LINENO"; then :
10078 ac_cv_c_char_unsigned=no
10079 else
10080 ac_cv_c_char_unsigned=yes
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 fi
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10085 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10086 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10087 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10088
10089 fi
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler switch for unsigned char" >&5
10092 $as_echo_n "checking compiler switch for unsigned char... " >&6; }
10093 #
10094 # QNX4 Watcom compiler is unsigned char by default
10095 #
10096 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" = "cc" ; then
10097 qnx4_char_unsigned="yes"
10098 fi
10099
10100 if test "$ac_cv_c_char_unsigned" = yes -o "$qnx4_char_unsigned" = yes; then
10101 MH_UNSIGNED_CHAR_SWITCH=""
10102 msg="not needed - char is unsigned by default"
10103 else
10104 case "$ac_cv_prog_CC" in
10105 gcc)
10106 MH_UNSIGNED_CHAR_SWITCH="-funsigned-char"
10107 msg="$MH_UNSIGNED_CHAR_SWITCH"
10108 ;;
10109 xlC)
10110 MH_UNSIGNED_CHAR_SWITCH="-qchars=unsigned"
10111 msg="$MH_UNSIGNED_CHAR_SWITCH"
10112 ;;
10113 *)
10114 save_cflags="$CFLAGS"
10115 mh_have_unsigned_char_switch=no
10116 mh_unsigned_flags="-funsigned-char -xchar=unsigned"
10117 for mh_flag in $mh_unsigned_flags; do
10118 CFLAGS="$CFLAGS $mh_flag"
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 #include <stdio.h>
10122 int
10123 main ()
10124 {
10125 char x;
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131 MH_UNSIGNED_CHAR_SWITCH="$mh_flag"; msg="$MH_UNSIGNED_CHAR_SWITCH"; mh_have_unsigned_char_switch=yes
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134 CFLAGS="$save_cflags"
10135 if test "$mh_have_unsigned_char_switch" = yes; then
10136 break
10137 fi
10138 done
10139 if test "$mh_have_unsigned_char_switch" = no; then
10140 msg="unknown - assuming unsigned by default but running execiser will confirm"
10141 fi
10142 ;;
10143 esac
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$msg\"" >&5
10146 $as_echo "\"$msg\"" >&6; }
10147
10148
10149
10150
10151 ac_config_files="$ac_config_files $mymakefile regina-config rxstack.init.d libregina.pc APKBUILD PackageInfo PackageInfo-devel PackageInfo-lib Regina.spec"
10152
10153 cat >confcache <<\_ACEOF
10154 # This file is a shell script that caches the results of configure
10155 # tests run on this system so they can be shared between configure
10156 # scripts and configure runs, see configure's option --config-cache.
10157 # It is not useful on other systems. If it contains results you don't
10158 # want to keep, you may remove or edit it.
10159 #
10160 # config.status only pays attention to the cache file if you give it
10161 # the --recheck option to rerun configure.
10162 #
10163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10165 # following values.
10166
10167 _ACEOF
10168
10169 # The following way of writing the cache mishandles newlines in values,
10170 # but we know of no workaround that is simple, portable, and efficient.
10171 # So, we kill variables containing newlines.
10172 # Ultrix sh set writes to stderr and can't be redirected directly,
10173 # and sets the high bit in the cache file unless we assign to the vars.
10174 (
10175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10176 eval ac_val=\$$ac_var
10177 case $ac_val in #(
10178 *${as_nl}*)
10179 case $ac_var in #(
10180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10182 esac
10183 case $ac_var in #(
10184 _ | IFS | as_nl) ;; #(
10185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10186 *) { eval $ac_var=; unset $ac_var;} ;;
10187 esac ;;
10188 esac
10189 done
10190
10191 (set) 2>&1 |
10192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10193 *${as_nl}ac_space=\ *)
10194 # `set' does not quote correctly, so add quotes: double-quote
10195 # substitution turns \\\\ into \\, and sed turns \\ into \.
10196 sed -n \
10197 "s/'/'\\\\''/g;
10198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10199 ;; #(
10200 *)
10201 # `set' quotes correctly as required by POSIX, so do not add quotes.
10202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10203 ;;
10204 esac |
10205 sort
10206 ) |
10207 sed '
10208 /^ac_cv_env_/b end
10209 t clear
10210 :clear
10211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10212 t end
10213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10214 :end' >>confcache
10215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10216 if test -w "$cache_file"; then
10217 if test "x$cache_file" != "x/dev/null"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10219 $as_echo "$as_me: updating cache $cache_file" >&6;}
10220 if test ! -f "$cache_file" || test -h "$cache_file"; then
10221 cat confcache >"$cache_file"
10222 else
10223 case $cache_file in #(
10224 */* | ?:*)
10225 mv -f confcache "$cache_file"$$ &&
10226 mv -f "$cache_file"$$ "$cache_file" ;; #(
10227 *)
10228 mv -f confcache "$cache_file" ;;
10229 esac
10230 fi
10231 fi
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10234 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10235 fi
10236 fi
10237 rm -f confcache
10238
10239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10240 # Let make expand exec_prefix.
10241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10242
10243 DEFS=-DHAVE_CONFIG_H
10244
10245 ac_libobjs=
10246 ac_ltlibobjs=
10247 U=
10248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10249 # 1. Remove the extension, and $U if already installed.
10250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10253 # will be set to the directory where LIBOBJS objects are built.
10254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10256 done
10257 LIBOBJS=$ac_libobjs
10258
10259 LTLIBOBJS=$ac_ltlibobjs
10260
10261
10262
10263 : "${CONFIG_STATUS=./config.status}"
10264 ac_write_fail=0
10265 ac_clean_files_save=$ac_clean_files
10266 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10268 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10269 as_write_fail=0
10270 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10271 #! $SHELL
10272 # Generated by $as_me.
10273 # Run this file to recreate the current configuration.
10274 # Compiler output produced by configure, useful for debugging
10275 # configure, is in config.log if it exists.
10276
10277 debug=false
10278 ac_cs_recheck=false
10279 ac_cs_silent=false
10280
10281 SHELL=\${CONFIG_SHELL-$SHELL}
10282 export SHELL
10283 _ASEOF
10284 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10285 ## -------------------- ##
10286 ## M4sh Initialization. ##
10287 ## -------------------- ##
10288
10289 # Be more Bourne compatible
10290 DUALCASE=1; export DUALCASE # for MKS sh
10291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10292 emulate sh
10293 NULLCMD=:
10294 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10295 # is contrary to our usage. Disable this feature.
10296 alias -g '${1+"$@"}'='"$@"'
10297 setopt NO_GLOB_SUBST
10298 else
10299 case `(set -o) 2>/dev/null` in #(
10300 *posix*) :
10301 set -o posix ;; #(
10302 *) :
10303 ;;
10304 esac
10305 fi
10306
10307
10308 as_nl='
10309 '
10310 export as_nl
10311 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10312 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10313 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10315 # Prefer a ksh shell builtin over an external printf program on Solaris,
10316 # but without wasting forks for bash or zsh.
10317 if test -z "$BASH_VERSION$ZSH_VERSION" \
10318 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10319 as_echo='print -r --'
10320 as_echo_n='print -rn --'
10321 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10322 as_echo='printf %s\n'
10323 as_echo_n='printf %s'
10324 else
10325 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10326 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10327 as_echo_n='/usr/ucb/echo -n'
10328 else
10329 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10330 as_echo_n_body='eval
10331 arg=$1;
10332 case $arg in #(
10333 *"$as_nl"*)
10334 expr "X$arg" : "X\\(.*\\)$as_nl";
10335 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10336 esac;
10337 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10338 '
10339 export as_echo_n_body
10340 as_echo_n='sh -c $as_echo_n_body as_echo'
10341 fi
10342 export as_echo_body
10343 as_echo='sh -c $as_echo_body as_echo'
10344 fi
10345
10346 # The user is always right.
10347 if test "${PATH_SEPARATOR+set}" != set; then
10348 PATH_SEPARATOR=:
10349 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10350 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10351 PATH_SEPARATOR=';'
10352 }
10353 fi
10354
10355
10356 # IFS
10357 # We need space, tab and new line, in precisely that order. Quoting is
10358 # there to prevent editors from complaining about space-tab.
10359 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10360 # splitting by setting IFS to empty value.)
10361 IFS=" "" $as_nl"
10362
10363 # Find who we are. Look in the path if we contain no directory separator.
10364 as_myself=
10365 case $0 in #((
10366 *[\\/]* ) as_myself=$0 ;;
10367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
10372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10373 done
10374 IFS=$as_save_IFS
10375
10376 ;;
10377 esac
10378 # We did not find ourselves, most probably we were run as `sh COMMAND'
10379 # in which case we are not to be found in the path.
10380 if test "x$as_myself" = x; then
10381 as_myself=$0
10382 fi
10383 if test ! -f "$as_myself"; then
10384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10385 exit 1
10386 fi
10387
10388 # Unset variables that we do not need and which cause bugs (e.g. in
10389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10390 # suppresses any "Segmentation fault" message there. '((' could
10391 # trigger a bug in pdksh 5.2.14.
10392 for as_var in BASH_ENV ENV MAIL MAILPATH
10393 do eval test x\${$as_var+set} = xset \
10394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10395 done
10396 PS1='$ '
10397 PS2='> '
10398 PS4='+ '
10399
10400 # NLS nuisances.
10401 LC_ALL=C
10402 export LC_ALL
10403 LANGUAGE=C
10404 export LANGUAGE
10405
10406 # CDPATH.
10407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10408
10409
10410 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10411 # ----------------------------------------
10412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10414 # script with STATUS, using 1 if that was 0.
10415 as_fn_error ()
10416 {
10417 as_status=$1; test $as_status -eq 0 && as_status=1
10418 if test "$4"; then
10419 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10421 fi
10422 $as_echo "$as_me: error: $2" >&2
10423 as_fn_exit $as_status
10424 } # as_fn_error
10425
10426
10427 # as_fn_set_status STATUS
10428 # -----------------------
10429 # Set $? to STATUS, without forking.
10430 as_fn_set_status ()
10431 {
10432 return $1
10433 } # as_fn_set_status
10434
10435 # as_fn_exit STATUS
10436 # -----------------
10437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10438 as_fn_exit ()
10439 {
10440 set +e
10441 as_fn_set_status $1
10442 exit $1
10443 } # as_fn_exit
10444
10445 # as_fn_unset VAR
10446 # ---------------
10447 # Portably unset VAR.
10448 as_fn_unset ()
10449 {
10450 { eval $1=; unset $1;}
10451 }
10452 as_unset=as_fn_unset
10453 # as_fn_append VAR VALUE
10454 # ----------------------
10455 # Append the text in VALUE to the end of the definition contained in VAR. Take
10456 # advantage of any shell optimizations that allow amortized linear growth over
10457 # repeated appends, instead of the typical quadratic growth present in naive
10458 # implementations.
10459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10460 eval 'as_fn_append ()
10461 {
10462 eval $1+=\$2
10463 }'
10464 else
10465 as_fn_append ()
10466 {
10467 eval $1=\$$1\$2
10468 }
10469 fi # as_fn_append
10470
10471 # as_fn_arith ARG...
10472 # ------------------
10473 # Perform arithmetic evaluation on the ARGs, and store the result in the
10474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10475 # must be portable across $(()) and expr.
10476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10477 eval 'as_fn_arith ()
10478 {
10479 as_val=$(( $* ))
10480 }'
10481 else
10482 as_fn_arith ()
10483 {
10484 as_val=`expr "$@" || test $? -eq 1`
10485 }
10486 fi # as_fn_arith
10487
10488
10489 if expr a : '\(a\)' >/dev/null 2>&1 &&
10490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10491 as_expr=expr
10492 else
10493 as_expr=false
10494 fi
10495
10496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10497 as_basename=basename
10498 else
10499 as_basename=false
10500 fi
10501
10502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10503 as_dirname=dirname
10504 else
10505 as_dirname=false
10506 fi
10507
10508 as_me=`$as_basename -- "$0" ||
10509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10510 X"$0" : 'X\(//\)$' \| \
10511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10512 $as_echo X/"$0" |
10513 sed '/^.*\/\([^/][^/]*\)\/*$/{
10514 s//\1/
10515 q
10516 }
10517 /^X\/\(\/\/\)$/{
10518 s//\1/
10519 q
10520 }
10521 /^X\/\(\/\).*/{
10522 s//\1/
10523 q
10524 }
10525 s/.*/./; q'`
10526
10527 # Avoid depending upon Character Ranges.
10528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10531 as_cr_digits='0123456789'
10532 as_cr_alnum=$as_cr_Letters$as_cr_digits
10533
10534 ECHO_C= ECHO_N= ECHO_T=
10535 case `echo -n x` in #(((((
10536 -n*)
10537 case `echo 'xy\c'` in
10538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10539 xy) ECHO_C='\c';;
10540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10541 ECHO_T=' ';;
10542 esac;;
10543 *)
10544 ECHO_N='-n';;
10545 esac
10546
10547 rm -f conf$$ conf$$.exe conf$$.file
10548 if test -d conf$$.dir; then
10549 rm -f conf$$.dir/conf$$.file
10550 else
10551 rm -f conf$$.dir
10552 mkdir conf$$.dir 2>/dev/null
10553 fi
10554 if (echo >conf$$.file) 2>/dev/null; then
10555 if ln -s conf$$.file conf$$ 2>/dev/null; then
10556 as_ln_s='ln -s'
10557 # ... but there are two gotchas:
10558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10560 # In both cases, we have to default to `cp -pR'.
10561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10562 as_ln_s='cp -pR'
10563 elif ln conf$$.file conf$$ 2>/dev/null; then
10564 as_ln_s=ln
10565 else
10566 as_ln_s='cp -pR'
10567 fi
10568 else
10569 as_ln_s='cp -pR'
10570 fi
10571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10572 rmdir conf$$.dir 2>/dev/null
10573
10574
10575 # as_fn_mkdir_p
10576 # -------------
10577 # Create "$as_dir" as a directory, including parents if necessary.
10578 as_fn_mkdir_p ()
10579 {
10580
10581 case $as_dir in #(
10582 -*) as_dir=./$as_dir;;
10583 esac
10584 test -d "$as_dir" || eval $as_mkdir_p || {
10585 as_dirs=
10586 while :; do
10587 case $as_dir in #(
10588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10589 *) as_qdir=$as_dir;;
10590 esac
10591 as_dirs="'$as_qdir' $as_dirs"
10592 as_dir=`$as_dirname -- "$as_dir" ||
10593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10594 X"$as_dir" : 'X\(//\)[^/]' \| \
10595 X"$as_dir" : 'X\(//\)$' \| \
10596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10597 $as_echo X"$as_dir" |
10598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10599 s//\1/
10600 q
10601 }
10602 /^X\(\/\/\)[^/].*/{
10603 s//\1/
10604 q
10605 }
10606 /^X\(\/\/\)$/{
10607 s//\1/
10608 q
10609 }
10610 /^X\(\/\).*/{
10611 s//\1/
10612 q
10613 }
10614 s/.*/./; q'`
10615 test -d "$as_dir" && break
10616 done
10617 test -z "$as_dirs" || eval "mkdir $as_dirs"
10618 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10619
10620
10621 } # as_fn_mkdir_p
10622 if mkdir -p . 2>/dev/null; then
10623 as_mkdir_p='mkdir -p "$as_dir"'
10624 else
10625 test -d ./-p && rmdir ./-p
10626 as_mkdir_p=false
10627 fi
10628
10629
10630 # as_fn_executable_p FILE
10631 # -----------------------
10632 # Test if FILE is an executable regular file.
10633 as_fn_executable_p ()
10634 {
10635 test -f "$1" && test -x "$1"
10636 } # as_fn_executable_p
10637 as_test_x='test -x'
10638 as_executable_p=as_fn_executable_p
10639
10640 # Sed expression to map a string onto a valid CPP name.
10641 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10642
10643 # Sed expression to map a string onto a valid variable name.
10644 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10645
10646
10647 exec 6>&1
10648 ## ----------------------------------- ##
10649 ## Main body of $CONFIG_STATUS script. ##
10650 ## ----------------------------------- ##
10651 _ASEOF
10652 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10653
10654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10655 # Save the log message, to keep $0 and so on meaningful, and to
10656 # report actual input values of CONFIG_FILES etc. instead of their
10657 # values after options handling.
10658 ac_log="
10659 This file was extended by Regina Rexx Interpreter $as_me 3.9.5, which was
10660 generated by GNU Autoconf 2.69. Invocation command line was
10661
10662 CONFIG_FILES = $CONFIG_FILES
10663 CONFIG_HEADERS = $CONFIG_HEADERS
10664 CONFIG_LINKS = $CONFIG_LINKS
10665 CONFIG_COMMANDS = $CONFIG_COMMANDS
10666 $ $0 $@
10667
10668 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10669 "
10670
10671 _ACEOF
10672
10673 case $ac_config_files in *"
10674 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10675 esac
10676
10677 case $ac_config_headers in *"
10678 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10679 esac
10680
10681
10682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10683 # Files that config.status was made for.
10684 config_files="$ac_config_files"
10685 config_headers="$ac_config_headers"
10686
10687 _ACEOF
10688
10689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10690 ac_cs_usage="\
10691 \`$as_me' instantiates files and other configuration actions
10692 from templates according to the current configuration. Unless the files
10693 and actions are specified as TAGs, all are instantiated by default.
10694
10695 Usage: $0 [OPTION]... [TAG]...
10696
10697 -h, --help print this help, then exit
10698 -V, --version print version number and configuration settings, then exit
10699 --config print configuration, then exit
10700 -q, --quiet, --silent
10701 do not print progress messages
10702 -d, --debug don't remove temporary files
10703 --recheck update $as_me by reconfiguring in the same conditions
10704 --file=FILE[:TEMPLATE]
10705 instantiate the configuration file FILE
10706 --header=FILE[:TEMPLATE]
10707 instantiate the configuration header FILE
10708
10709 Configuration files:
10710 $config_files
10711
10712 Configuration headers:
10713 $config_headers
10714
10715 Report bugs to <[email protected]>."
10716
10717 _ACEOF
10718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10719 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10720 ac_cs_version="\\
10721 Regina Rexx Interpreter config.status 3.9.5
10722 configured by $0, generated by GNU Autoconf 2.69,
10723 with options \\"\$ac_cs_config\\"
10724
10725 Copyright (C) 2012 Free Software Foundation, Inc.
10726 This config.status script is free software; the Free Software Foundation
10727 gives unlimited permission to copy, distribute and modify it."
10728
10729 ac_pwd='$ac_pwd'
10730 srcdir='$srcdir'
10731 test -n "\$AWK" || AWK=awk
10732 _ACEOF
10733
10734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10735 # The default lists apply if the user does not specify any file.
10736 ac_need_defaults=:
10737 while test $# != 0
10738 do
10739 case $1 in
10740 --*=?*)
10741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10743 ac_shift=:
10744 ;;
10745 --*=)
10746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10747 ac_optarg=
10748 ac_shift=:
10749 ;;
10750 *)
10751 ac_option=$1
10752 ac_optarg=$2
10753 ac_shift=shift
10754 ;;
10755 esac
10756
10757 case $ac_option in
10758 # Handling of the options.
10759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10760 ac_cs_recheck=: ;;
10761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10762 $as_echo "$ac_cs_version"; exit ;;
10763 --config | --confi | --conf | --con | --co | --c )
10764 $as_echo "$ac_cs_config"; exit ;;
10765 --debug | --debu | --deb | --de | --d | -d )
10766 debug=: ;;
10767 --file | --fil | --fi | --f )
10768 $ac_shift
10769 case $ac_optarg in
10770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10771 '') as_fn_error $? "missing file argument" ;;
10772 esac
10773 as_fn_append CONFIG_FILES " '$ac_optarg'"
10774 ac_need_defaults=false;;
10775 --header | --heade | --head | --hea )
10776 $ac_shift
10777 case $ac_optarg in
10778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10779 esac
10780 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10781 ac_need_defaults=false;;
10782 --he | --h)
10783 # Conflict between --help and --header
10784 as_fn_error $? "ambiguous option: \`$1'
10785 Try \`$0 --help' for more information.";;
10786 --help | --hel | -h )
10787 $as_echo "$ac_cs_usage"; exit ;;
10788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10790 ac_cs_silent=: ;;
10791
10792 # This is an error.
10793 -*) as_fn_error $? "unrecognized option: \`$1'
10794 Try \`$0 --help' for more information." ;;
10795
10796 *) as_fn_append ac_config_targets " $1"
10797 ac_need_defaults=false ;;
10798
10799 esac
10800 shift
10801 done
10802
10803 ac_configure_extra_args=
10804
10805 if $ac_cs_silent; then
10806 exec 6>/dev/null
10807 ac_configure_extra_args="$ac_configure_extra_args --silent"
10808 fi
10809
10810 _ACEOF
10811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10812 if \$ac_cs_recheck; then
10813 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10814 shift
10815 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10816 CONFIG_SHELL='$SHELL'
10817 export CONFIG_SHELL
10818 exec "\$@"
10819 fi
10820
10821 _ACEOF
10822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10823 exec 5>>config.log
10824 {
10825 echo
10826 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10827 ## Running $as_me. ##
10828 _ASBOX
10829 $as_echo "$ac_log"
10830 } >&5
10831
10832 _ACEOF
10833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10834 _ACEOF
10835
10836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10837
10838 # Handling of arguments.
10839 for ac_config_target in $ac_config_targets
10840 do
10841 case $ac_config_target in
10842 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10843 "$mymakefile") CONFIG_FILES="$CONFIG_FILES $mymakefile" ;;
10844 "regina-config") CONFIG_FILES="$CONFIG_FILES regina-config" ;;
10845 "rxstack.init.d") CONFIG_FILES="$CONFIG_FILES rxstack.init.d" ;;
10846 "libregina.pc") CONFIG_FILES="$CONFIG_FILES libregina.pc" ;;
10847 "APKBUILD") CONFIG_FILES="$CONFIG_FILES APKBUILD" ;;
10848 "PackageInfo") CONFIG_FILES="$CONFIG_FILES PackageInfo" ;;
10849 "PackageInfo-devel") CONFIG_FILES="$CONFIG_FILES PackageInfo-devel" ;;
10850 "PackageInfo-lib") CONFIG_FILES="$CONFIG_FILES PackageInfo-lib" ;;
10851 "Regina.spec") CONFIG_FILES="$CONFIG_FILES Regina.spec" ;;
10852 "debian/rules") CONFIG_FILES="$CONFIG_FILES debian/rules" ;;
10853
10854 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10855 esac
10856 done
10857
10858
10859 # If the user did not use the arguments to specify the items to instantiate,
10860 # then the envvar interface is used. Set only those that are not.
10861 # We use the long form for the default assignment because of an extremely
10862 # bizarre bug on SunOS 4.1.3.
10863 if $ac_need_defaults; then
10864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10866 fi
10867
10868 # Have a temporary directory for convenience. Make it in the build tree
10869 # simply because there is no reason against having it here, and in addition,
10870 # creating and moving files from /tmp can sometimes cause problems.
10871 # Hook for its removal unless debugging.
10872 # Note that there is a small window in which the directory will not be cleaned:
10873 # after its creation but before its name has been assigned to `$tmp'.
10874 $debug ||
10875 {
10876 tmp= ac_tmp=
10877 trap 'exit_status=$?
10878 : "${ac_tmp:=$tmp}"
10879 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10880 ' 0
10881 trap 'as_fn_exit 1' 1 2 13 15
10882 }
10883 # Create a (secure) tmp directory for tmp files.
10884
10885 {
10886 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10887 test -d "$tmp"
10888 } ||
10889 {
10890 tmp=./conf$$-$RANDOM
10891 (umask 077 && mkdir "$tmp")
10892 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10893 ac_tmp=$tmp
10894
10895 # Set up the scripts for CONFIG_FILES section.
10896 # No need to generate them if there are no CONFIG_FILES.
10897 # This happens for instance with `./config.status config.h'.
10898 if test -n "$CONFIG_FILES"; then
10899
10900
10901 ac_cr=`echo X | tr X '\015'`
10902 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10903 # But we know of no other shell where ac_cr would be empty at this
10904 # point, so we can use a bashism as a fallback.
10905 if test "x$ac_cr" = x; then
10906 eval ac_cr=\$\'\\r\'
10907 fi
10908 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10909 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10910 ac_cs_awk_cr='\\r'
10911 else
10912 ac_cs_awk_cr=$ac_cr
10913 fi
10914
10915 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10916 _ACEOF
10917
10918
10919 {
10920 echo "cat >conf$$subs.awk <<_ACEOF" &&
10921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10922 echo "_ACEOF"
10923 } >conf$$subs.sh ||
10924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10925 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10926 ac_delim='%!_!# '
10927 for ac_last_try in false false false false false :; do
10928 . ./conf$$subs.sh ||
10929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10930
10931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10932 if test $ac_delim_n = $ac_delim_num; then
10933 break
10934 elif $ac_last_try; then
10935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10936 else
10937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10938 fi
10939 done
10940 rm -f conf$$subs.sh
10941
10942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10943 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10944 _ACEOF
10945 sed -n '
10946 h
10947 s/^/S["/; s/!.*/"]=/
10948 p
10949 g
10950 s/^[^!]*!//
10951 :repl
10952 t repl
10953 s/'"$ac_delim"'$//
10954 t delim
10955 :nl
10956 h
10957 s/\(.\{148\}\)..*/\1/
10958 t more1
10959 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10960 p
10961 n
10962 b repl
10963 :more1
10964 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10965 p
10966 g
10967 s/.\{148\}//
10968 t nl
10969 :delim
10970 h
10971 s/\(.\{148\}\)..*/\1/
10972 t more2
10973 s/["\\]/\\&/g; s/^/"/; s/$/"/
10974 p
10975 b
10976 :more2
10977 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10978 p
10979 g
10980 s/.\{148\}//
10981 t delim
10982 ' <conf$$subs.awk | sed '
10983 /^[^""]/{
10984 N
10985 s/\n//
10986 }
10987 ' >>$CONFIG_STATUS || ac_write_fail=1
10988 rm -f conf$$subs.awk
10989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10990 _ACAWK
10991 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10992 for (key in S) S_is_set[key] = 1
10993 FS = ""
10994
10995 }
10996 {
10997 line = $ 0
10998 nfields = split(line, field, "@")
10999 substed = 0
11000 len = length(field[1])
11001 for (i = 2; i < nfields; i++) {
11002 key = field[i]
11003 keylen = length(key)
11004 if (S_is_set[key]) {
11005 value = S[key]
11006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11007 len += length(value) + length(field[++i])
11008 substed = 1
11009 } else
11010 len += 1 + keylen
11011 }
11012
11013 print line
11014 }
11015
11016 _ACAWK
11017 _ACEOF
11018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11019 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11020 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11021 else
11022 cat
11023 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11024 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11025 _ACEOF
11026
11027 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11028 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11029 # trailing colons and then remove the whole line if VPATH becomes empty
11030 # (actually we leave an empty line to preserve line numbers).
11031 if test "x$srcdir" = x.; then
11032 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11033 h
11034 s///
11035 s/^/:/
11036 s/[ ]*$/:/
11037 s/:\$(srcdir):/:/g
11038 s/:\${srcdir}:/:/g
11039 s/:@srcdir@:/:/g
11040 s/^:*//
11041 s/:*$//
11042 x
11043 s/\(=[ ]*\).*/\1/
11044 G
11045 s/\n//
11046 s/^[^=]*=[ ]*$//
11047 }'
11048 fi
11049
11050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11051 fi # test -n "$CONFIG_FILES"
11052
11053 # Set up the scripts for CONFIG_HEADERS section.
11054 # No need to generate them if there are no CONFIG_HEADERS.
11055 # This happens for instance with `./config.status Makefile'.
11056 if test -n "$CONFIG_HEADERS"; then
11057 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11058 BEGIN {
11059 _ACEOF
11060
11061 # Transform confdefs.h into an awk script `defines.awk', embedded as
11062 # here-document in config.status, that substitutes the proper values into
11063 # config.h.in to produce config.h.
11064
11065 # Create a delimiter string that does not exist in confdefs.h, to ease
11066 # handling of long lines.
11067 ac_delim='%!_!# '
11068 for ac_last_try in false false :; do
11069 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11070 if test -z "$ac_tt"; then
11071 break
11072 elif $ac_last_try; then
11073 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11074 else
11075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11076 fi
11077 done
11078
11079 # For the awk script, D is an array of macro values keyed by name,
11080 # likewise P contains macro parameters if any. Preserve backslash
11081 # newline sequences.
11082
11083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11084 sed -n '
11085 s/.\{148\}/&'"$ac_delim"'/g
11086 t rset
11087 :rset
11088 s/^[ ]*#[ ]*define[ ][ ]*/ /
11089 t def
11090 d
11091 :def
11092 s/\\$//
11093 t bsnl
11094 s/["\\]/\\&/g
11095 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11096 D["\1"]=" \3"/p
11097 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11098 d
11099 :bsnl
11100 s/["\\]/\\&/g
11101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11102 D["\1"]=" \3\\\\\\n"\\/p
11103 t cont
11104 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11105 t cont
11106 d
11107 :cont
11108 n
11109 s/.\{148\}/&'"$ac_delim"'/g
11110 t clear
11111 :clear
11112 s/\\$//
11113 t bsnlc
11114 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11115 d
11116 :bsnlc
11117 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11118 b cont
11119 ' <confdefs.h | sed '
11120 s/'"$ac_delim"'/"\\\
11121 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11122
11123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11124 for (key in D) D_is_set[key] = 1
11125 FS = ""
11126 }
11127 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11128 line = \$ 0
11129 split(line, arg, " ")
11130 if (arg[1] == "#") {
11131 defundef = arg[2]
11132 mac1 = arg[3]
11133 } else {
11134 defundef = substr(arg[1], 2)
11135 mac1 = arg[2]
11136 }
11137 split(mac1, mac2, "(") #)
11138 macro = mac2[1]
11139 prefix = substr(line, 1, index(line, defundef) - 1)
11140 if (D_is_set[macro]) {
11141 # Preserve the white space surrounding the "#".
11142 print prefix "define", macro P[macro] D[macro]
11143 next
11144 } else {
11145 # Replace #undef with comments. This is necessary, for example,
11146 # in the case of _POSIX_SOURCE, which is predefined and required
11147 # on some systems where configure will not decide to define it.
11148 if (defundef == "undef") {
11149 print "/*", prefix defundef, macro, "*/"
11150 next
11151 }
11152 }
11153 }
11154 { print }
11155 _ACAWK
11156 _ACEOF
11157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11158 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11159 fi # test -n "$CONFIG_HEADERS"
11160
11161
11162 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11163 shift
11164 for ac_tag
11165 do
11166 case $ac_tag in
11167 :[FHLC]) ac_mode=$ac_tag; continue;;
11168 esac
11169 case $ac_mode$ac_tag in
11170 :[FHL]*:*);;
11171 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11172 :[FH]-) ac_tag=-:-;;
11173 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11174 esac
11175 ac_save_IFS=$IFS
11176 IFS=:
11177 set x $ac_tag
11178 IFS=$ac_save_IFS
11179 shift
11180 ac_file=$1
11181 shift
11182
11183 case $ac_mode in
11184 :L) ac_source=$1;;
11185 :[FH])
11186 ac_file_inputs=
11187 for ac_f
11188 do
11189 case $ac_f in
11190 -) ac_f="$ac_tmp/stdin";;
11191 *) # Look for the file first in the build tree, then in the source tree
11192 # (if the path is not absolute). The absolute path cannot be DOS-style,
11193 # because $ac_f cannot contain `:'.
11194 test -f "$ac_f" ||
11195 case $ac_f in
11196 [\\/$]*) false;;
11197 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11198 esac ||
11199 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11200 esac
11201 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11202 as_fn_append ac_file_inputs " '$ac_f'"
11203 done
11204
11205 # Let's still pretend it is `configure' which instantiates (i.e., don't
11206 # use $as_me), people would be surprised to read:
11207 # /* config.h. Generated by config.status. */
11208 configure_input='Generated from '`
11209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11210 `' by configure.'
11211 if test x"$ac_file" != x-; then
11212 configure_input="$ac_file. $configure_input"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11214 $as_echo "$as_me: creating $ac_file" >&6;}
11215 fi
11216 # Neutralize special characters interpreted by sed in replacement strings.
11217 case $configure_input in #(
11218 *\&* | *\|* | *\\* )
11219 ac_sed_conf_input=`$as_echo "$configure_input" |
11220 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11221 *) ac_sed_conf_input=$configure_input;;
11222 esac
11223
11224 case $ac_tag in
11225 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11227 esac
11228 ;;
11229 esac
11230
11231 ac_dir=`$as_dirname -- "$ac_file" ||
11232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11233 X"$ac_file" : 'X\(//\)[^/]' \| \
11234 X"$ac_file" : 'X\(//\)$' \| \
11235 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11236 $as_echo X"$ac_file" |
11237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11238 s//\1/
11239 q
11240 }
11241 /^X\(\/\/\)[^/].*/{
11242 s//\1/
11243 q
11244 }
11245 /^X\(\/\/\)$/{
11246 s//\1/
11247 q
11248 }
11249 /^X\(\/\).*/{
11250 s//\1/
11251 q
11252 }
11253 s/.*/./; q'`
11254 as_dir="$ac_dir"; as_fn_mkdir_p
11255 ac_builddir=.
11256
11257 case "$ac_dir" in
11258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11259 *)
11260 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11261 # A ".." for each directory in $ac_dir_suffix.
11262 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11263 case $ac_top_builddir_sub in
11264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11266 esac ;;
11267 esac
11268 ac_abs_top_builddir=$ac_pwd
11269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11270 # for backward compatibility:
11271 ac_top_builddir=$ac_top_build_prefix
11272
11273 case $srcdir in
11274 .) # We are building in place.
11275 ac_srcdir=.
11276 ac_top_srcdir=$ac_top_builddir_sub
11277 ac_abs_top_srcdir=$ac_pwd ;;
11278 [\\/]* | ?:[\\/]* ) # Absolute name.
11279 ac_srcdir=$srcdir$ac_dir_suffix;
11280 ac_top_srcdir=$srcdir
11281 ac_abs_top_srcdir=$srcdir ;;
11282 *) # Relative name.
11283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11284 ac_top_srcdir=$ac_top_build_prefix$srcdir
11285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11286 esac
11287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11288
11289
11290 case $ac_mode in
11291 :F)
11292 #
11293 # CONFIG_FILE
11294 #
11295
11296 _ACEOF
11297
11298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11299 # If the template does not know about datarootdir, expand it.
11300 # FIXME: This hack should be removed a few years after 2.60.
11301 ac_datarootdir_hack=; ac_datarootdir_seen=
11302 ac_sed_dataroot='
11303 /datarootdir/ {
11304 p
11305 q
11306 }
11307 /@datadir@/p
11308 /@docdir@/p
11309 /@infodir@/p
11310 /@localedir@/p
11311 /@mandir@/p'
11312 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11313 *datarootdir*) ac_datarootdir_seen=yes;;
11314 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11316 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11317 _ACEOF
11318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11319 ac_datarootdir_hack='
11320 s&@datadir@&$datadir&g
11321 s&@docdir@&$docdir&g
11322 s&@infodir@&$infodir&g
11323 s&@localedir@&$localedir&g
11324 s&@mandir@&$mandir&g
11325 s&\\\${datarootdir}&$datarootdir&g' ;;
11326 esac
11327 _ACEOF
11328
11329 # Neutralize VPATH when `$srcdir' = `.'.
11330 # Shell code in configure.ac might set extrasub.
11331 # FIXME: do we really want to maintain this feature?
11332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11333 ac_sed_extra="$ac_vpsub
11334 $extrasub
11335 _ACEOF
11336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337 :t
11338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11339 s|@configure_input@|$ac_sed_conf_input|;t t
11340 s&@top_builddir@&$ac_top_builddir_sub&;t t
11341 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11342 s&@srcdir@&$ac_srcdir&;t t
11343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11344 s&@top_srcdir@&$ac_top_srcdir&;t t
11345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11346 s&@builddir@&$ac_builddir&;t t
11347 s&@abs_builddir@&$ac_abs_builddir&;t t
11348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11349 $ac_datarootdir_hack
11350 "
11351 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11352 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11353
11354 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11355 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11356 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11357 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11359 which seems to be undefined. Please make sure it is defined" >&5
11360 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11361 which seems to be undefined. Please make sure it is defined" >&2;}
11362
11363 rm -f "$ac_tmp/stdin"
11364 case $ac_file in
11365 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11366 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11367 esac \
11368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11369 ;;
11370 :H)
11371 #
11372 # CONFIG_HEADER
11373 #
11374 if test x"$ac_file" != x-; then
11375 {
11376 $as_echo "/* $configure_input */" \
11377 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11378 } >"$ac_tmp/config.h" \
11379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11380 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11382 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11383 else
11384 rm -f "$ac_file"
11385 mv "$ac_tmp/config.h" "$ac_file" \
11386 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11387 fi
11388 else
11389 $as_echo "/* $configure_input */" \
11390 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11391 || as_fn_error $? "could not create -" "$LINENO" 5
11392 fi
11393 ;;
11394
11395
11396 esac
11397
11398 done # for ac_tag
11399
11400
11401 as_fn_exit 0
11402 _ACEOF
11403 ac_clean_files=$ac_clean_files_save
11404
11405 test $ac_write_fail = 0 ||
11406 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11407
11408
11409 # configure is writing to config.log, and then calls config.status.
11410 # config.status does its own redirection, appending to config.log.
11411 # Unfortunately, on DOS this fails, as config.log is still kept open
11412 # by configure, so config.status won't be able to write to it; its
11413 # output is simply discarded. So we exec the FD to /dev/null,
11414 # effectively closing config.log, so it can be properly (re)opened and
11415 # appended to by config.status. When coming back to configure, we
11416 # need to make the FD available again.
11417 if test "$no_create" != yes; then
11418 ac_cs_success=:
11419 ac_config_status_args=
11420 test "$silent" = yes &&
11421 ac_config_status_args="$ac_config_status_args --quiet"
11422 exec 5>/dev/null
11423 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11424 exec 5>>config.log
11425 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11426 # would make configure fail if this is the last instruction.
11427 $ac_cs_success || as_fn_exit 1
11428 fi
11429 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11431 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11432 fi
11433
11434 chmod 755 regina-config
11435 echo
11436 echo "Regina ($FULL_PACKAGE_NAME) has now been configured with the following options:"
11437 echo
11438 if test "x$SHL_TARGETS" = "x"; then
11439 echo " Dynamic Loading Support: none"
11440 else
11441 echo " Dynamic Loading Support: supported. Extra components: $SHL_TARGETS"
11442 fi
11443 if test "$with_dlfcnincdir" != no ; then
11444 echo " dlfcn headers in: $with_dlfcnincdir"
11445 fi
11446 if test "$with_dlfcnlibdir" != no ; then
11447 echo " dlfcn libraries in: $with_dlfcnlibdir"
11448 fi
11449
11450 myopts="${bitflag}BIT"
11451 if test "$with_debug" = yes ; then
11452 myopts="$myopts DEBUG"
11453 fi
11454 if test "$with_purify" = yes ; then
11455 myopts="$myopts PURIFY"
11456 fi
11457 if test "$with_efence" = yes; then
11458 myopts="$myopts EFENCE"
11459 fi
11460 if test "$with_orexx_bc" = yes; then
11461 myopts="$myopts OREXX_BINARY"
11462 fi
11463 if test "$with_gci" = yes; then
11464 myopts="$myopts GCI"
11465 fi
11466 if test "$with_flists" = no; then
11467 myopts="$myopts NO_FLISTS"
11468 fi
11469 if test "$with_socket" = no; then
11470 myopts="$myopts"
11471 else
11472 myopts="$myopts SOCKET=$with_socket"
11473 fi
11474
11475 if test "$build_static" = "yes"; then
11476 myfuncs=""
11477 if test "$with_testpackage" = "yes"; then
11478 myfuncs="$myfuncs test"
11479 fi
11480 if test "$with_regutil" = "yes"; then
11481 myfuncs="$myfuncs regutil"
11482 fi
11483 if test "$with_rexxcurses" = "yes"; then
11484 myfuncs="$myfuncs rexxcurses"
11485 fi
11486 if test "$with_rexxtk" = "yes"; then
11487 myfuncs="$myfuncs rexxtk"
11488 fi
11489 if test "$with_rexxgd" = "yes"; then
11490 myfuncs="$myfuncs rexxgd"
11491 fi
11492 if test "$with_rexxcurl" = "yes"; then
11493 myfuncs="$myfuncs rexxcurl"
11494 fi
11495 if test "$with_rexxsql" = "yes"; then
11496 myfuncs="$myfuncs rexxsql"
11497 fi
11498 if test "$with_rexxeec" = "yes"; then
11499 myfuncs="$myfuncs rexxeec"
11500 fi
11501 if test "$with_rexxisam" = "yes"; then
11502 myfuncs="$myfuncs rexxisam"
11503 fi
11504 if test "$with_rxsock" = "yes"; then
11505 myfuncs="$myfuncs rxsock"
11506 fi
11507 if test "$with_rexxdw" = "yes"; then
11508 myfuncs="$myfuncs rexxdw"
11509 fi
11510 if test "$with_rexxcsv" = "yes"; then
11511 myfuncs="$myfuncs rexxcsv"
11512 fi
11513 if test "$with_rexxpdf" = "yes"; then
11514 myfuncs="$myfuncs rexxpdf"
11515 fi
11516 if test "$with_rexxws" = "yes"; then
11517 myfuncs="$myfuncs rexxws"
11518 fi
11519 echo " Static Loaded Packages: $myfuncs"
11520 fi
11521
11522 if test "$on_beos" = yes; then
11523 bindir="/boot/home/config/bin"
11524 libdir="/boot/home/config/lib"
11525 fi
11526
11527 if test "$on_haiku" = yes; then
11528 bindir="/boot/home/config/non-packaged/bin"
11529 libdir="/boot/home/config/non-packaged/lib"
11530 addonsdir="/boot/home/config/non-packaged/lib/regina-rexx/addons"
11531 fi
11532
11533 echo " Build options: $myopts"
11534 echo " binaries will be installed in: $bindir"
11535 if test "x$binarybitprefix" = "x32"; then
11536 echo " binaries will have '32' appended to them. eg rexx32, regina32"
11537 fi
11538 echo " libraries will be installed in: $libdir"
11539 echo " addons will be installed in: $addonsdir"
11540 echo " {prefix}: $prefix"
11541 echo " {exec_prefix}: $exec_prefix"
11542 if test "x$rpmtopdir" != "x" ; then
11543 echo " RPM topdir: $rpmtopdir"
11544 fi
11545 if test "x$debtopdir" != "x" ; then
11546 echo " DEB topdir: $debtopdir"
11547 fi
11548 if test "x$apktopdir" != "x" ; then
11549 echo " APK topdir: $apktopdir"
11550 fi
11551 echo
11552 echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'"
11553 echo "To install Regina in the above directories, type 'make install'"
11554 echo