Debian Codegraph @

configure

raw ◀ ▶
Source reconstructed at patch state 0 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" = "alpha" -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 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5
6348 $as_echo_n "checking whether gcc understands --version-script... " >&6; }
6349 if ${mh_cv_version_script+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352
6353 echo "TEST {" > conftest.def
6354 echo "global:" >> conftest.def
6355 echo "Test;" >> conftest.def
6356 echo "};" >> conftest.def
6357 mh_save_libs="$LDFLAGS"
6358 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.def"
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <stdio.h>
6362 #include <stdlib.h>
6363 int
6364 main ()
6365 {
6366 exit(0);
6367 ;
6368 return 0;
6369 }
6370 _ACEOF
6371 if ac_fn_c_try_link "$LINENO"; then :
6372 mh_cv_version_script=yes
6373 else
6374 mh_cv_version_script=no
6375
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext \
6378 conftest$ac_exeext conftest.$ac_ext
6379 LDFLAGS="$mh_save_libs"
6380 rm -f conftest.def
6381
6382 fi
6383
6384 if test "$mh_cv_version_script" = yes; then
6385 SHL_SCRIPT="-Wl,--version-script=${srcdir}/regina_elf.def"
6386 else
6387 SHL_SCRIPT=""
6388 fi
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5
6391 $as_echo "$mh_cv_version_script" >&6; }
6392
6393 fi
6394
6395
6396 MH_MT_LIBS=""
6397 THREADING_COMPILE=""
6398 THREADING_LINK=""
6399 THREADSAFE_TARGET=""
6400 MT_FILE="mt_notmt"
6401 if test "$enable_posix_threads" = yes; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrt" >&5
6403 $as_echo_n "checking for main in -lrt... " >&6; }
6404 if ${ac_cv_lib_rt_main+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-lrt $LIBS"
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411
6412
6413 int
6414 main ()
6415 {
6416 return main ();
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_link "$LINENO"; then :
6422 ac_cv_lib_rt_main=yes
6423 else
6424 ac_cv_lib_rt_main=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext \
6427 conftest$ac_exeext conftest.$ac_ext
6428 LIBS=$ac_check_lib_save_LIBS
6429 fi
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_main" >&5
6431 $as_echo "$ac_cv_lib_rt_main" >&6; }
6432 if test "x$ac_cv_lib_rt_main" = xyes; then :
6433 mh_rt_lib_found=yes
6434 else
6435 mh_rt_lib_found=no
6436 fi
6437
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Posix Threads are supported" >&5
6439 $as_echo_n "checking whether Posix Threads are supported... " >&6; }
6440 tmpLIBS=$LIBS
6441 save_cflags="$CFLAGS"
6442 pthread_libs="pthreads pthread c_r c"
6443 case "$target" in
6444 *freebsd*)
6445 CFLAGS="$CFLAGS -pthread"
6446 ;;
6447 esac
6448 for mh_lib in $pthread_libs; do
6449 LIBS="$tmpLIBS -l${mh_lib}"
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <pthread.h>
6453 int
6454 main ()
6455 {
6456 pthread_create(NULL,NULL,NULL,NULL)
6457 ;
6458 return 0;
6459 }
6460 _ACEOF
6461 if ac_fn_c_try_link "$LINENO"; then :
6462 mh_has_pthreads=yes
6463 else
6464 mh_has_pthreads=no
6465
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469 if test "$mh_has_pthreads" = yes; then
6470 MH_MT_LIBS="-l${mh_lib}"
6471
6472 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6473 THREADING_LINK=""
6474 THREADSAFE_TARGET="threader${binarybitprefix}${EXEEXT}"
6475 MT_FILE="mt_posix"
6476 case "$target" in
6477 *solaris*)
6478 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6479 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6480 if test "$mh_rt_lib_found" = "yes"; then
6481 THREADING_LINK="-lrt"
6482 fi
6483 else
6484 THREADING_COMPILE="-mt -D_REENTRANT -DREENTRANT -D_PTHREAD_SEMANTICS -DREGINA_REENTRANT"
6485 THREADING_LINK="-mt"
6486 fi
6487 ;;
6488 *hp-hpux1*)
6489 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6490 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6491 fi
6492 if test "$mh_rt_lib_found" = "yes"; then
6493 THREADING_LINK="-lrt"
6494 fi
6495 ;;
6496 *linux*)
6497 ;;
6498 *freebsd*)
6499 THREADING_COMPILE="-pthread -D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6500 THREADING_LINK="-pthread"
6501 ;;
6502 *cygwin*)
6503 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6504 THREADING_LINK=""
6505 ;;
6506 *)
6507 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
6508 THREADING_COMPILE="-D_REENTRANT -DPOSIX -DREGINA_REENTRANT"
6509 fi
6510 ;;
6511 esac
6512 break
6513 fi
6514 done
6515 LIBS="$tmpLIBS"
6516 CFLAGS="$save_cflags"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_has_pthreads" >&5
6518 $as_echo "$mh_has_pthreads" >&6; }
6519 fi
6520
6521
6522
6523
6524
6525
6526 if test "$mh_has_pthreads" = yes; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_exit" >&5
6528 $as_echo_n "checking for library containing pthread_exit... " >&6; }
6529 if ${ac_cv_search_pthread_exit+:} false; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 ac_func_search_save_LIBS=$LIBS
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535
6536 /* Override any GCC internal prototype to avoid an error.
6537 Use char because int might match the return type of a GCC
6538 builtin and then its argument prototype would still apply. */
6539 #ifdef __cplusplus
6540 extern "C"
6541 #endif
6542 char pthread_exit ();
6543 int
6544 main ()
6545 {
6546 return pthread_exit ();
6547 ;
6548 return 0;
6549 }
6550 _ACEOF
6551 for ac_lib in '' pthread pthreads c_r; do
6552 if test -z "$ac_lib"; then
6553 ac_res="none required"
6554 else
6555 ac_res=-l$ac_lib
6556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6557 fi
6558 if ac_fn_c_try_link "$LINENO"; then :
6559 ac_cv_search_pthread_exit=$ac_res
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext \
6562 conftest$ac_exeext
6563 if ${ac_cv_search_pthread_exit+:} false; then :
6564 break
6565 fi
6566 done
6567 if ${ac_cv_search_pthread_exit+:} false; then :
6568
6569 else
6570 ac_cv_search_pthread_exit=no
6571 fi
6572 rm conftest.$ac_ext
6573 LIBS=$ac_func_search_save_LIBS
6574 fi
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_exit" >&5
6576 $as_echo "$ac_cv_search_pthread_exit" >&6; }
6577 ac_res=$ac_cv_search_pthread_exit
6578 if test "$ac_res" != no; then :
6579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6580 REGINA_PTHREAD_LIB="$ac_cv_search_pthread_exit"
6581 else
6582 REGINA_PTHREAD_LIB=""
6583 fi
6584
6585 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
6587 $as_echo_n "checking for library containing sem_init... " >&6; }
6588 if ${ac_cv_search_sem_init+:} false; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 ac_func_search_save_LIBS=$LIBS
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594
6595 /* Override any GCC internal prototype to avoid an error.
6596 Use char because int might match the return type of a GCC
6597 builtin and then its argument prototype would still apply. */
6598 #ifdef __cplusplus
6599 extern "C"
6600 #endif
6601 char sem_init ();
6602 int
6603 main ()
6604 {
6605 return sem_init ();
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 for ac_lib in '' pthread pthreads c_r; do
6611 if test -z "$ac_lib"; then
6612 ac_res="none required"
6613 else
6614 ac_res=-l$ac_lib
6615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6616 fi
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 ac_cv_search_sem_init=$ac_res
6619 fi
6620 rm -f core conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext
6622 if ${ac_cv_search_sem_init+:} false; then :
6623 break
6624 fi
6625 done
6626 if ${ac_cv_search_sem_init+:} false; then :
6627
6628 else
6629 ac_cv_search_sem_init=no
6630 fi
6631 rm conftest.$ac_ext
6632 LIBS=$ac_func_search_save_LIBS
6633 fi
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
6635 $as_echo "$ac_cv_search_sem_init" >&6; }
6636 ac_res=$ac_cv_search_sem_init
6637 if test "$ac_res" != no; then :
6638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6639 REGINA_PTHREAD_LIB="$ac_cv_search_sem_init"
6640 else
6641 REGINA_PTHREAD_LIB=""
6642 fi
6643
6644 if test "$REGINA_PTHREAD_LIB" = "none required" -o "$REGINA_PTHREAD_LIB" = "no"; then
6645 REGINA_PTHREAD_LIB=""
6646 fi
6647 fi
6648 save_cflags="$CFLAGS"
6649 CFLAGS="$CFLAGS $THREADING_COMPILE"
6650 #
6651 # Where we know the format of getgrgid_r() function
6652 # only test for that case
6653 #
6654 if test "$ac_cv_func_getgrgid_r" = yes; then
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 5 args and returns an int" >&5
6656 $as_echo_n "checking if getgrgid_r has 5 args and returns an int... " >&6; }
6657 if ${mh_cv_getgrgid_r_int5+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #include <sys/types.h>
6663 #include <grp.h>
6664 #include <pwd.h>
6665 int
6666 main ()
6667 {
6668
6669 struct group *ptr,result;
6670 int rc;
6671 gid_t gid;
6672 char buf[100];
6673 rc = getgrgid_r(gid,&result,buf,sizeof(buf),&ptr);
6674
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 mh_cv_getgrgid_r_int5=yes
6681 else
6682 mh_cv_getgrgid_r_int5=no
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int5" >&5
6687 $as_echo "$mh_cv_getgrgid_r_int5" >&6; }
6688 if test $mh_cv_getgrgid_r_int5 = yes; then
6689 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_5_PARAMS 1" >>confdefs.h
6690
6691 fi
6692
6693 if test "$mh_cv_getgrgid_r_int5" = "no"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r has 4 args and returns an int" >&5
6695 $as_echo_n "checking if getgrgid_r has 4 args and returns an int... " >&6; }
6696 if ${mh_cv_getgrgid_r_int4+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 #include <grp.h>
6703 #include <pwd.h>
6704 int
6705 main ()
6706 {
6707
6708 struct group *ptr,result;
6709 int rc;
6710 gid_t gid;
6711 char buf[100];
6712 rc = getgrgid_r(gid,&result,buf,sizeof(buf));
6713
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 if ac_fn_c_try_compile "$LINENO"; then :
6719 mh_cv_getgrgid_r_int4=yes
6720 else
6721 mh_cv_getgrgid_r_int4=no
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 fi
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_int4" >&5
6726 $as_echo "$mh_cv_getgrgid_r_int4" >&6; }
6727 if test $mh_cv_getgrgid_r_int4 = yes; then
6728 $as_echo "#define HAVE_GETGRGID_R_RETURNS_INT_4_PARAMS 1" >>confdefs.h
6729
6730 fi
6731
6732 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6734 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6735 if ${mh_cv_getgrgid_r_struct+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <grp.h>
6742 #include <pwd.h>
6743 int
6744 main ()
6745 {
6746
6747 struct group *ptr,result;
6748 int rc;
6749 gid_t gid;
6750 char buf[100];
6751 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6752
6753 ;
6754 return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 mh_cv_getgrgid_r_struct=yes
6759 else
6760 mh_cv_getgrgid_r_struct=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 fi
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6765 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6766 if test $mh_cv_getgrgid_r_struct = yes; then
6767 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6768
6769 fi
6770
6771 if test "$mh_cv_getgrgid_r_int4" = "no"; then
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getgrgid_r returns a struct group *" >&5
6773 $as_echo_n "checking if getgrgid_r returns a struct group *... " >&6; }
6774 if ${mh_cv_getgrgid_r_struct+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <sys/types.h>
6780 #include <grp.h>
6781 #include <pwd.h>
6782 int
6783 main ()
6784 {
6785
6786 struct group *ptr,result;
6787 int rc;
6788 gid_t gid;
6789 char buf[100];
6790 ptr = getgrgid_r(gid,&result,buf,sizeof(buf));
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 mh_cv_getgrgid_r_struct=yes
6798 else
6799 mh_cv_getgrgid_r_struct=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getgrgid_r_struct" >&5
6804 $as_echo "$mh_cv_getgrgid_r_struct" >&6; }
6805 if test $mh_cv_getgrgid_r_struct = yes; then
6806 $as_echo "#define HAVE_GETGRGID_R_RETURNS_STRUCT 1" >>confdefs.h
6807
6808 fi
6809
6810 fi
6811 fi
6812 fi
6813 fi
6814 if test "$ac_cv_func_getpwuid_r" = yes; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns an int" >&5
6816 $as_echo_n "checking if getpwuid_r returns an int... " >&6; }
6817 if ${mh_cv_getpwuid_r_int+:} false; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #include <sys/types.h>
6823 #include <grp.h>
6824 #include <pwd.h>
6825 int
6826 main ()
6827 {
6828
6829 struct passwd *ptr,*result;
6830 int rc;
6831 uid_t uid;
6832 char buf[100];
6833 rc = getpwuid_r(uid,&result,buf,sizeof(buf),&ptr);
6834
6835 ;
6836 return 0;
6837 }
6838 _ACEOF
6839 if ac_fn_c_try_compile "$LINENO"; then :
6840 mh_cv_getpwuid_r_int=yes
6841 else
6842 mh_cv_getpwuid_r_int=no
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 fi
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_int" >&5
6847 $as_echo "$mh_cv_getpwuid_r_int" >&6; }
6848 if test $mh_cv_getpwuid_r_int = yes; then
6849 $as_echo "#define HAVE_GETPWUID_R_RETURNS_INT 1" >>confdefs.h
6850
6851 fi
6852
6853 if test "$mh_cv_getpwuid_r_int" = "no"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpwuid_r returns a struct passwd *" >&5
6855 $as_echo_n "checking if getpwuid_r returns a struct passwd *... " >&6; }
6856 if ${mh_cv_getpwuid_r_struct+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <sys/types.h>
6862 #include <grp.h>
6863 #include <pwd.h>
6864 int
6865 main ()
6866 {
6867
6868 struct group *ptr,*result;
6869 int rc;
6870 uid_t uid;
6871 char buf[100];
6872 ptr = getpwuid_r(uid,&result,buf,sizeof(buf));
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 mh_cv_getpwuid_r_struct=yes
6880 else
6881 mh_cv_getpwuid_r_struct=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 fi
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_getpwuid_r_struct" >&5
6886 $as_echo "$mh_cv_getpwuid_r_struct" >&6; }
6887 if test $mh_cv_getpwuid_r_struct = yes; then
6888 $as_echo "#define HAVE_GETPWUID_R_RETURNS_STRUCT 1" >>confdefs.h
6889
6890 fi
6891
6892 fi
6893 fi
6894 if test "$ac_cv_func_gethostbyname_r" = yes; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 6 args and returns an int" >&5
6896 $as_echo_n "checking if gethostbyname_r has 6 args and returns an int... " >&6; }
6897 if ${mh_cv_gethostbyname_r_int6+:} false; then :
6898 $as_echo_n "(cached) " >&6
6899 else
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <netdb.h>
6904 int
6905 main ()
6906 {
6907
6908 int herr;
6909 struct hostent *he,*rc;
6910 char buf[8192];
6911 struct hostent retval;
6912 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&he,&herr);
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 mh_cv_gethostbyname_r_int6=yes
6920 else
6921 mh_cv_gethostbyname_r_int6=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_int6" >&5
6926 $as_echo "$mh_cv_gethostbyname_r_int6" >&6; }
6927 if test $mh_cv_gethostbyname_r_int6 = yes; then
6928 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_INT_6_PARAMS 1" >>confdefs.h
6929
6930 fi
6931
6932 if test "$mh_cv_gethostbyname_r_int6" = "no"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r has 5 args and returns a struct" >&5
6934 $as_echo_n "checking if gethostbyname_r has 5 args and returns a struct... " >&6; }
6935 if ${mh_cv_gethostbyname_r_struct5+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 #include <sys/types.h>
6941 #include <netdb.h>
6942 int
6943 main ()
6944 {
6945
6946 int herr;
6947 struct hostent *he,*rc;
6948 char buf[8192];
6949 struct hostent retval;
6950 rc = gethostbyname_r("fred",&retval,buf,sizeof(buf),&herr);
6951
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"; then :
6957 mh_cv_gethostbyname_r_struct5=yes
6958 else
6959 mh_cv_gethostbyname_r_struct5=no
6960 fi
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 fi
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_gethostbyname_r_struct5" >&5
6964 $as_echo "$mh_cv_gethostbyname_r_struct5" >&6; }
6965 if test $mh_cv_gethostbyname_r_struct5 = yes; then
6966 $as_echo "#define HAVE_GETHOSTBYNAME_R_RETURNS_STRUCT_5_PARAMS 1" >>confdefs.h
6967
6968 fi
6969
6970 fi
6971 fi
6972
6973 CFLAGS="$save_cflags"
6974 REGINAMULTITHREAD="yes"
6975 else
6976 REGINAMULTITHREAD="no"
6977 fi
6978
6979 if test "$build_static" = "yes"; then
6980 STATICLD_SHO="staticld.so.o rxpack.so.o"
6981 if test "$on_qnx4" = "yes"; then
6982 with_regutil="yes"
6983
6984 SHLPRE="lib"
6985 SHLPST=".a"
6986 MODPST=".a"
6987 LIBFILE="rexx"
6988 SHLFILE="regina"
6989 OSAVE=".o.save"
6990 OBJ="o"
6991 LIBPST=".a"
6992 LIBPRE="lib"
6993 LIBEXE="ar"
6994 GETOPT=""
6995 OBJECTS='$('OFILES')'
6996 STATIC_LDFLAGS=""
6997 AIX_DYN="no"
6998 BEOS_DYN="no"
6999 DYN_COMP="-DDYNAMIC"
7000
7001 SHL_LD=""
7002 TEST1EXPORTS=""
7003 TEST2EXPORTS=""
7004 TEST1EXP=""
7005 TEST2EXP=""
7006 REGINAEXP=""
7007 REGUTILEXPORTS=""
7008 REGUTILEXP=""
7009
7010
7011 # OTHER_INSTALLS is set to install a non-version numbered shared library
7012 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7013 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7014 # are building a version numbered shared library.
7015 OTHER_INSTALLS="installlib"
7016 BASE_INSTALL="installbase"
7017 BASE_BINARY="binarybase"
7018 USE_ABI="no"
7019 BUNDLE=""
7020 EXTRATARGET=""
7021
7022 case "$target" in
7023 *hp-hpux9*)
7024 SYS_DEFS="-D_HPUX_SOURCE"
7025 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7026
7027 ;;
7028 *hp-hpux*)
7029 SYS_DEFS="-D_HPUX_SOURCE"
7030 ;;
7031 *ibm-aix*)
7032 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7033 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7034 ;;
7035 *dec-osf*)
7036 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7037 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7038 else
7039 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7040 fi
7041 ;;
7042 sparc*sunos*)
7043 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7044 ;;
7045 *atheos* | *syllable*)
7046 BASE_BINARY="atheosbinary"
7047 ;;
7048 *beos*)
7049 BASE_INSTALL="beosinstall"
7050 BASE_BINARY="beosbinary"
7051 OTHER_INSTALLS=""
7052 ;;
7053 *haiku*)
7054 BASE_INSTALL="haikuinstall"
7055 BASE_BINARY="beosbinary"
7056 OTHER_INSTALLS=""
7057 ;;
7058 *nto-qnx*)
7059 ;;
7060 *qnx*)
7061 SHLPRE=""
7062 SHLPST=".lib"
7063 MODPST=".lib"
7064 # getting duplicate targets
7065 BUNDLE=".junk2"
7066 EEXTRA="-mf -N0x20000 -Q"
7067 LIBPRE=""
7068 LIBPST=".lib"
7069 ;;
7070 *cygwin*)
7071 LIBPRE="lib"
7072 SHLPRE="lib"
7073 LIBPST=".a"
7074 BASE_INSTALL="cygwininstall"
7075 BASE_BINARY="cygwinbinary"
7076 OTHER_INSTALLS=""
7077 ;;
7078 *apple-darwin*)
7079 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7080 #
7081 # Link switches for building "bundles"
7082 #
7083 OTHER_INSTALLS="installlib installmacosx"
7084 ;;
7085 *)
7086 ;;
7087 esac
7088 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7089 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7090 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7091 LD_RXLIB_B1=""
7092 LD_RXLIB_B2=""
7093 LD_RXLIB_UTILB=""
7094 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7095
7096 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7097
7098 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7099 LIBLINK="-L. -l${LIBFILE}"
7100 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7101 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7102
7103 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7104 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7105 EXECISER_DEP="${STATICLIB}"
7106 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7107 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7108
7109 # Check whether --with-testpackage was given.
7110 if test "${with_testpackage+set}" = set; then :
7111 withval=$with_testpackage; with_test=$withval
7112 else
7113 with_testpackage=no
7114 fi
7115
7116 MH_FUNC_LIBS=""
7117 if test "$with_testpackage" = "yes"; then
7118 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7119 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
7120
7121 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7122 fi
7123
7124 # Check whether --with-regutil was given.
7125 if test "${with_regutil+set}" = set; then :
7126 withval=$with_regutil; with_regutil=$withval
7127 else
7128 with_regutil=no
7129 fi
7130
7131 if test "$with_regutil" = "yes" -o "xregutil" = "xregutil"; then
7132 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
7133 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
7134
7135 fi
7136
7137 # Check whether --with-rexxcurses was given.
7138 if test "${with_rexxcurses+set}" = set; then :
7139 withval=$with_rexxcurses; with_rexxcurses=$withval
7140 else
7141 with_rexxcurses=no
7142 fi
7143
7144 if test "$with_rexxcurses" = "yes"; then
7145 # Extract the first word of "rxcurses-config", so it can be a program name with args.
7146 set dummy rxcurses-config; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_rxcurses_config+:} false; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 if test -n "$rxcurses_config"; then
7153 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162 ac_cv_prog_rxcurses_config="yes"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
7171 fi
7172 fi
7173 rxcurses_config=$ac_cv_prog_rxcurses_config
7174 if test -n "$rxcurses_config"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
7176 $as_echo "$rxcurses_config" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 if test "$ac_cv_prog_rxcurses_config" = yes; then
7184 EXTRA_LIB=`rxcurses-config --libs-static`
7185 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7186 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
7187
7188 else
7189 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
7190 fi
7191 fi
7192
7193 # Check whether --with-rexxtk was given.
7194 if test "${with_rexxtk+set}" = set; then :
7195 withval=$with_rexxtk; with_rexxtk=$withval
7196 else
7197 with_rexxtk=no
7198 fi
7199
7200 if test "$with_rexxtk" = "yes"; then
7201 # Extract the first word of "rexxtk-config", so it can be a program name with args.
7202 set dummy rexxtk-config; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_rexxtk_config+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if test -n "$rexxtk_config"; then
7209 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_rexxtk_config="yes"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
7227 fi
7228 fi
7229 rexxtk_config=$ac_cv_prog_rexxtk_config
7230 if test -n "$rexxtk_config"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
7232 $as_echo "$rexxtk_config" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238
7239 if test "$ac_cv_prog_rexxtk_config" = yes; then
7240 EXTRA_LIB=`rexxtk-config --libs-static`
7241 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7242 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
7243
7244 else
7245 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
7246 fi
7247 fi
7248
7249 # Check whether --with-rexxgd was given.
7250 if test "${with_rexxgd+set}" = set; then :
7251 withval=$with_rexxgd; with_rexxgd=$withval
7252 else
7253 with_rexxgd=no
7254 fi
7255
7256 if test "$with_rexxgd" = "yes"; then
7257 # Extract the first word of "rexxgd-config", so it can be a program name with args.
7258 set dummy rexxgd-config; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_rexxgd_config+:} false; then :
7262 $as_echo_n "(cached) " >&6
7263 else
7264 if test -n "$rexxgd_config"; then
7265 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274 ac_cv_prog_rexxgd_config="yes"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278 done
7279 done
7280 IFS=$as_save_IFS
7281
7282 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
7283 fi
7284 fi
7285 rexxgd_config=$ac_cv_prog_rexxgd_config
7286 if test -n "$rexxgd_config"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
7288 $as_echo "$rexxgd_config" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 if test "$ac_cv_prog_rexxgd_config" = yes; then
7296 EXTRA_LIB=`rexxgd-config --libs-static`
7297 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7298 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
7299
7300 else
7301 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
7302 fi
7303 fi
7304
7305 # Check whether --with-rexxcurl was given.
7306 if test "${with_rexxcurl+set}" = set; then :
7307 withval=$with_rexxcurl; with_rexxcurl=$withval
7308 else
7309 with_rexxcurl=no
7310 fi
7311
7312 if test "$with_rexxcurl" = "yes"; then
7313 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
7314 set dummy rexxcurl-config; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_rexxcurl_config+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$rexxcurl_config"; then
7321 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_rexxcurl_config="yes"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7337
7338 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
7339 fi
7340 fi
7341 rexxcurl_config=$ac_cv_prog_rexxcurl_config
7342 if test -n "$rexxcurl_config"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
7344 $as_echo "$rexxcurl_config" >&6; }
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7348 fi
7349
7350
7351 if test "$ac_cv_prog_rexxcurl_config" = yes; then
7352 EXTRA_LIB=`rexxcurl-config --libs-static`
7353 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7354 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
7355
7356 else
7357 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
7358 fi
7359 fi
7360
7361 # Check whether --with-rexxsql was given.
7362 if test "${with_rexxsql+set}" = set; then :
7363 withval=$with_rexxsql; with_rexxsql=$withval
7364 else
7365 with_rexxsql=no
7366 fi
7367
7368 if test "$with_rexxsql" = "yes"; then
7369 # Extract the first word of "rexxsql-config", so it can be a program name with args.
7370 set dummy rexxsql-config; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_rexxsql_config+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$rexxsql_config"; then
7377 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_rexxsql_config="yes"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
7395 fi
7396 fi
7397 rexxsql_config=$ac_cv_prog_rexxsql_config
7398 if test -n "$rexxsql_config"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
7400 $as_echo "$rexxsql_config" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 if test "$ac_cv_prog_rexxsql_config" = yes; then
7408 EXTRA_LIB=`rexxsql-config --libs-static`
7409 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7410 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
7411
7412 else
7413 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
7414 fi
7415 fi
7416
7417 # Check whether --with-rexxeec was given.
7418 if test "${with_rexxeec+set}" = set; then :
7419 withval=$with_rexxeec; with_rexxeec=$withval
7420 else
7421 with_rexxeec=no
7422 fi
7423
7424 if test "$with_rexxeec" = "yes"; then
7425 # Extract the first word of "rexxeec-config", so it can be a program name with args.
7426 set dummy rexxeec-config; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_rexxeec_config+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 if test -n "$rexxeec_config"; then
7433 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
7434 else
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 for as_dir in $PATH
7437 do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_rexxeec_config="yes"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446 done
7447 done
7448 IFS=$as_save_IFS
7449
7450 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
7451 fi
7452 fi
7453 rexxeec_config=$ac_cv_prog_rexxeec_config
7454 if test -n "$rexxeec_config"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
7456 $as_echo "$rexxeec_config" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463 if test "$ac_cv_prog_rexxeec_config" = yes; then
7464 EXTRA_LIB=`rexxeec-config --libs-static`
7465 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7466 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
7467
7468 else
7469 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
7470 fi
7471 fi
7472
7473 # Check whether --with-rexxisam was given.
7474 if test "${with_rexxisam+set}" = set; then :
7475 withval=$with_rexxisam; with_rexxisam=$withval
7476 else
7477 with_rexxisam=no
7478 fi
7479
7480 if test "$with_rexxisam" = "yes"; then
7481 # Extract the first word of "rexxisam-config", so it can be a program name with args.
7482 set dummy rexxisam-config; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_rexxisam_config+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$rexxisam_config"; then
7489 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_rexxisam_config="yes"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
7507 fi
7508 fi
7509 rexxisam_config=$ac_cv_prog_rexxisam_config
7510 if test -n "$rexxisam_config"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
7512 $as_echo "$rexxisam_config" >&6; }
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518
7519 if test "$ac_cv_prog_rexxisam_config" = yes; then
7520 EXTRA_LIB=`rexxisam-config --libs-static`
7521 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7522 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
7523
7524 else
7525 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
7526 fi
7527 fi
7528
7529 # Check whether --with-rxsock was given.
7530 if test "${with_rxsock+set}" = set; then :
7531 withval=$with_rxsock; with_rxsock=$withval
7532 else
7533 with_rxsock=no
7534 fi
7535
7536 if test "$with_rxsock" = "yes"; then
7537 # Extract the first word of "rxsock-config", so it can be a program name with args.
7538 set dummy rxsock-config; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_rxsock_config+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$rxsock_config"; then
7545 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_rxsock_config="yes"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
7563 fi
7564 fi
7565 rxsock_config=$ac_cv_prog_rxsock_config
7566 if test -n "$rxsock_config"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
7568 $as_echo "$rxsock_config" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 if test "$ac_cv_prog_rxsock_config" = yes; then
7576 EXTRA_LIB=`rxsock-config --libs-static`
7577 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7578 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
7579
7580 else
7581 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
7582 fi
7583 fi
7584
7585 # Check whether --with-rexxdw was given.
7586 if test "${with_rexxdw+set}" = set; then :
7587 withval=$with_rexxdw; with_rexxdw=$withval
7588 else
7589 with_rexxdw=no
7590 fi
7591
7592 if test "$with_rexxdw" = "yes"; then
7593 # Extract the first word of "rexxdw-config", so it can be a program name with args.
7594 set dummy rexxdw-config; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_rexxdw_config+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$rexxdw_config"; then
7601 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_rexxdw_config="yes"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614 done
7615 done
7616 IFS=$as_save_IFS
7617
7618 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
7619 fi
7620 fi
7621 rexxdw_config=$ac_cv_prog_rexxdw_config
7622 if test -n "$rexxdw_config"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
7624 $as_echo "$rexxdw_config" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630
7631 if test "$ac_cv_prog_rexxdw_config" = yes; then
7632 EXTRA_LIB=`rexxdw-config --libs-static`
7633 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7634 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
7635
7636 else
7637 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
7638 fi
7639 fi
7640
7641 # Check whether --with-rexxcsv was given.
7642 if test "${with_rexxcsv+set}" = set; then :
7643 withval=$with_rexxcsv; with_rexxcsv=$withval
7644 else
7645 with_rexxcsv=no
7646 fi
7647
7648 if test "$with_rexxcsv" = "yes"; then
7649 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
7650 set dummy rexxcsv-config; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_prog_rexxcsv_config+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 if test -n "$rexxcsv_config"; then
7657 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
7658 else
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660 for as_dir in $PATH
7661 do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7666 ac_cv_prog_rexxcsv_config="yes"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670 done
7671 done
7672 IFS=$as_save_IFS
7673
7674 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
7675 fi
7676 fi
7677 rexxcsv_config=$ac_cv_prog_rexxcsv_config
7678 if test -n "$rexxcsv_config"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
7680 $as_echo "$rexxcsv_config" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686
7687 if test "$ac_cv_prog_rexxcsv_config" = yes; then
7688 EXTRA_LIB=`rexxcsv-config --libs-static`
7689 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7690 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
7691
7692 else
7693 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
7694 fi
7695 fi
7696
7697 # Check whether --with-rexxpdf was given.
7698 if test "${with_rexxpdf+set}" = set; then :
7699 withval=$with_rexxpdf; with_rexxpdf=$withval
7700 else
7701 with_rexxpdf=no
7702 fi
7703
7704 if test "$with_rexxpdf" = "yes"; then
7705 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
7706 set dummy rexxpdf-config; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_rexxpdf_config+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$rexxpdf_config"; then
7713 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_rexxpdf_config="yes"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
7731 fi
7732 fi
7733 rexxpdf_config=$ac_cv_prog_rexxpdf_config
7734 if test -n "$rexxpdf_config"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
7736 $as_echo "$rexxpdf_config" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742
7743 if test "$ac_cv_prog_rexxpdf_config" = yes; then
7744 EXTRA_LIB=`rexxpdf-config --libs-static`
7745 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7746 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7747
7748 else
7749 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
7750 fi
7751 fi
7752
7753 # Check whether --with-rexxws was given.
7754 if test "${with_rexxws+set}" = set; then :
7755 withval=$with_rexxws; with_rexxws=$withval
7756 else
7757 with_rexxws=no
7758 fi
7759
7760 if test "$with_rexxws" = "yes"; then
7761 # Extract the first word of "rexxws-config", so it can be a program name with args.
7762 set dummy rexxws-config; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_rexxws_config+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$rexxws_config"; then
7769 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_rexxws_config="yes"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
7787 fi
7788 fi
7789 rexxws_config=$ac_cv_prog_rexxws_config
7790 if test -n "$rexxws_config"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
7792 $as_echo "$rexxws_config" >&6; }
7793 else
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 if test "$ac_cv_prog_rexxws_config" = yes; then
7800 EXTRA_LIB=`rexxws-config --libs-static`
7801 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
7802 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
7803
7804 else
7805 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
7806 fi
7807 fi
7808
7809 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
7810
7811
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 else
7863
7864 SHLPRE="lib"
7865 SHLPST=".a"
7866 MODPST=".a"
7867 LIBFILE="rexx"
7868 SHLFILE="regina"
7869 OSAVE=".o.save"
7870 OBJ="o"
7871 LIBPST=".a"
7872 LIBPRE="lib"
7873 LIBEXE="ar"
7874 GETOPT=""
7875 OBJECTS='$('OFILES')'
7876 STATIC_LDFLAGS=""
7877 AIX_DYN="no"
7878 BEOS_DYN="no"
7879 DYN_COMP="-DDYNAMIC"
7880
7881 SHL_LD=""
7882 TEST1EXPORTS=""
7883 TEST2EXPORTS=""
7884 TEST1EXP=""
7885 TEST2EXP=""
7886 REGINAEXP=""
7887 REGUTILEXPORTS=""
7888 REGUTILEXP=""
7889
7890
7891 # OTHER_INSTALLS is set to install a non-version numbered shared library
7892 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
7893 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
7894 # are building a version numbered shared library.
7895 OTHER_INSTALLS="installlib"
7896 BASE_INSTALL="installbase"
7897 BASE_BINARY="binarybase"
7898 USE_ABI="no"
7899 BUNDLE=""
7900 EXTRATARGET=""
7901
7902 case "$target" in
7903 *hp-hpux9*)
7904 SYS_DEFS="-D_HPUX_SOURCE"
7905 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
7906
7907 ;;
7908 *hp-hpux*)
7909 SYS_DEFS="-D_HPUX_SOURCE"
7910 ;;
7911 *ibm-aix*)
7912 SYS_DEFS="-D_ALL_SOURCE -DAIX"
7913 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
7914 ;;
7915 *dec-osf*)
7916 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
7917 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
7918 else
7919 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
7920 fi
7921 ;;
7922 sparc*sunos*)
7923 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
7924 ;;
7925 *atheos* | *syllable*)
7926 BASE_BINARY="atheosbinary"
7927 ;;
7928 *beos*)
7929 BASE_INSTALL="beosinstall"
7930 BASE_BINARY="beosbinary"
7931 OTHER_INSTALLS=""
7932 ;;
7933 *haiku*)
7934 BASE_INSTALL="haikuinstall"
7935 BASE_BINARY="beosbinary"
7936 OTHER_INSTALLS=""
7937 ;;
7938 *nto-qnx*)
7939 ;;
7940 *qnx*)
7941 SHLPRE=""
7942 SHLPST=".lib"
7943 MODPST=".lib"
7944 # getting duplicate targets
7945 BUNDLE=".junk2"
7946 EEXTRA="-mf -N0x20000 -Q"
7947 LIBPRE=""
7948 LIBPST=".lib"
7949 ;;
7950 *cygwin*)
7951 LIBPRE="lib"
7952 SHLPRE="lib"
7953 LIBPST=".a"
7954 BASE_INSTALL="cygwininstall"
7955 BASE_BINARY="cygwinbinary"
7956 OTHER_INSTALLS=""
7957 ;;
7958 *apple-darwin*)
7959 # to test use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
7960 #
7961 # Link switches for building "bundles"
7962 #
7963 OTHER_INSTALLS="installlib installmacosx"
7964 ;;
7965 *)
7966 ;;
7967 esac
7968 LD_RXLIB_A1="${LIBEXE} cr \$(@)"
7969 LD_RXLIB_A2="${LIBEXE} cr \$(@)"
7970 LD_RXLIB_UTILA="${LIBEXE} cr \$(@)"
7971 LD_RXLIB_B1=""
7972 LD_RXLIB_B2=""
7973 LD_RXLIB_UTILB=""
7974 SHL_LD="${LIBEXE} cr ${SHLPRE}${SHLFILE}${SHLPST} \$(SHOFILES)"
7975
7976 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
7977
7978 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
7979 LIBLINK="-L. -l${LIBFILE}"
7980 LINKSHL="-L. -l${LIBFILE}" # ensure we link to static library for execiser
7981 DYN_COMP="$DYN_COMP -DDYNAMIC_STATIC"
7982
7983 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
7984 SHL_TARGETS="${SHL_BASE} ${SHLPRE}regutil${MODPST} regina${binarybitprefix}${EXEEXT} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST} $EXTRATARGET"
7985 EXECISER_DEP="${STATICLIB}"
7986 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
7987 RANLIB_DYNAMIC="-\$(RANLIB) \$(@)"
7988
7989 # Check whether --with-testpackage was given.
7990 if test "${with_testpackage+set}" = set; then :
7991 withval=$with_testpackage; with_test=$withval
7992 else
7993 with_testpackage=no
7994 fi
7995
7996 MH_FUNC_LIBS=""
7997 if test "$with_testpackage" = "yes"; then
7998 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
7999 $as_echo "#define HAVE_TEST_PACKAGE 1" >>confdefs.h
8000
8001 EXECISER_DEP="${EXECISER_DEP} ${SHLPRE}rxtest1${MODPST} ${SHLPRE}rxtest2${MODPST}"
8002 fi
8003
8004 # Check whether --with-regutil was given.
8005 if test "${with_regutil+set}" = set; then :
8006 withval=$with_regutil; with_regutil=$withval
8007 else
8008 with_regutil=no
8009 fi
8010
8011 if test "$with_regutil" = "yes" -o "x" = "xregutil"; then
8012 MH_FUNC_LIBS="$MH_FUNC_LIBS ${SHLPRE}regutil${MODPST}"
8013 $as_echo "#define HAVE_REXXUTIL_PACKAGE 1" >>confdefs.h
8014
8015 fi
8016
8017 # Check whether --with-rexxcurses was given.
8018 if test "${with_rexxcurses+set}" = set; then :
8019 withval=$with_rexxcurses; with_rexxcurses=$withval
8020 else
8021 with_rexxcurses=no
8022 fi
8023
8024 if test "$with_rexxcurses" = "yes"; then
8025 # Extract the first word of "rxcurses-config", so it can be a program name with args.
8026 set dummy rxcurses-config; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_rxcurses_config+:} false; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8032 if test -n "$rxcurses_config"; then
8033 ac_cv_prog_rxcurses_config="$rxcurses_config" # Let the user override the test.
8034 else
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8037 do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_rxcurses_config="yes"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 test -z "$ac_cv_prog_rxcurses_config" && ac_cv_prog_rxcurses_config="no"
8051 fi
8052 fi
8053 rxcurses_config=$ac_cv_prog_rxcurses_config
8054 if test -n "$rxcurses_config"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxcurses_config" >&5
8056 $as_echo "$rxcurses_config" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8061
8062
8063 if test "$ac_cv_prog_rxcurses_config" = yes; then
8064 EXTRA_LIB=`rxcurses-config --libs-static`
8065 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8066 $as_echo "#define HAVE_REXXCURSES_PACKAGE 1" >>confdefs.h
8067
8068 else
8069 as_fn_error $? "rxcurses-config not found. Cannot use --with-rexxcurses switch" "$LINENO" 5
8070 fi
8071 fi
8072
8073 # Check whether --with-rexxtk was given.
8074 if test "${with_rexxtk+set}" = set; then :
8075 withval=$with_rexxtk; with_rexxtk=$withval
8076 else
8077 with_rexxtk=no
8078 fi
8079
8080 if test "$with_rexxtk" = "yes"; then
8081 # Extract the first word of "rexxtk-config", so it can be a program name with args.
8082 set dummy rexxtk-config; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_rexxtk_config+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$rexxtk_config"; then
8089 ac_cv_prog_rexxtk_config="$rexxtk_config" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_rexxtk_config="yes"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8101 fi
8102 done
8103 done
8104 IFS=$as_save_IFS
8105
8106 test -z "$ac_cv_prog_rexxtk_config" && ac_cv_prog_rexxtk_config="no"
8107 fi
8108 fi
8109 rexxtk_config=$ac_cv_prog_rexxtk_config
8110 if test -n "$rexxtk_config"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxtk_config" >&5
8112 $as_echo "$rexxtk_config" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8116 fi
8117
8118
8119 if test "$ac_cv_prog_rexxtk_config" = yes; then
8120 EXTRA_LIB=`rexxtk-config --libs-static`
8121 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8122 $as_echo "#define HAVE_REXXTK_PACKAGE 1" >>confdefs.h
8123
8124 else
8125 as_fn_error $? "rexxtk-config not found. Cannot use --with-rexxtk switch" "$LINENO" 5
8126 fi
8127 fi
8128
8129 # Check whether --with-rexxgd was given.
8130 if test "${with_rexxgd+set}" = set; then :
8131 withval=$with_rexxgd; with_rexxgd=$withval
8132 else
8133 with_rexxgd=no
8134 fi
8135
8136 if test "$with_rexxgd" = "yes"; then
8137 # Extract the first word of "rexxgd-config", so it can be a program name with args.
8138 set dummy rexxgd-config; ac_word=$2
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 $as_echo_n "checking for $ac_word... " >&6; }
8141 if ${ac_cv_prog_rexxgd_config+:} false; then :
8142 $as_echo_n "(cached) " >&6
8143 else
8144 if test -n "$rexxgd_config"; then
8145 ac_cv_prog_rexxgd_config="$rexxgd_config" # Let the user override the test.
8146 else
8147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8148 for as_dir in $PATH
8149 do
8150 IFS=$as_save_IFS
8151 test -z "$as_dir" && as_dir=.
8152 for ac_exec_ext in '' $ac_executable_extensions; do
8153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_prog_rexxgd_config="yes"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8156 break 2
8157 fi
8158 done
8159 done
8160 IFS=$as_save_IFS
8161
8162 test -z "$ac_cv_prog_rexxgd_config" && ac_cv_prog_rexxgd_config="no"
8163 fi
8164 fi
8165 rexxgd_config=$ac_cv_prog_rexxgd_config
8166 if test -n "$rexxgd_config"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxgd_config" >&5
8168 $as_echo "$rexxgd_config" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174
8175 if test "$ac_cv_prog_rexxgd_config" = yes; then
8176 EXTRA_LIB=`rexxgd-config --libs-static`
8177 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8178 $as_echo "#define HAVE_REXXGD_PACKAGE 1" >>confdefs.h
8179
8180 else
8181 as_fn_error $? "rexxgd-config not found. Cannot use --with-rexxgd switch" "$LINENO" 5
8182 fi
8183 fi
8184
8185 # Check whether --with-rexxcurl was given.
8186 if test "${with_rexxcurl+set}" = set; then :
8187 withval=$with_rexxcurl; with_rexxcurl=$withval
8188 else
8189 with_rexxcurl=no
8190 fi
8191
8192 if test "$with_rexxcurl" = "yes"; then
8193 # Extract the first word of "rexxcurl-config", so it can be a program name with args.
8194 set dummy rexxcurl-config; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_rexxcurl_config+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 if test -n "$rexxcurl_config"; then
8201 ac_cv_prog_rexxcurl_config="$rexxcurl_config" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206 IFS=$as_save_IFS
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_rexxcurl_config="yes"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212 break 2
8213 fi
8214 done
8215 done
8216 IFS=$as_save_IFS
8217
8218 test -z "$ac_cv_prog_rexxcurl_config" && ac_cv_prog_rexxcurl_config="no"
8219 fi
8220 fi
8221 rexxcurl_config=$ac_cv_prog_rexxcurl_config
8222 if test -n "$rexxcurl_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcurl_config" >&5
8224 $as_echo "$rexxcurl_config" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231 if test "$ac_cv_prog_rexxcurl_config" = yes; then
8232 EXTRA_LIB=`rexxcurl-config --libs-static`
8233 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8234 $as_echo "#define HAVE_REXXCURL_PACKAGE 1" >>confdefs.h
8235
8236 else
8237 as_fn_error $? "rexxcurl-config not found. Cannot use --with-rexxcurl switch" "$LINENO" 5
8238 fi
8239 fi
8240
8241 # Check whether --with-rexxsql was given.
8242 if test "${with_rexxsql+set}" = set; then :
8243 withval=$with_rexxsql; with_rexxsql=$withval
8244 else
8245 with_rexxsql=no
8246 fi
8247
8248 if test "$with_rexxsql" = "yes"; then
8249 # Extract the first word of "rexxsql-config", so it can be a program name with args.
8250 set dummy rexxsql-config; ac_word=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if ${ac_cv_prog_rexxsql_config+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 if test -n "$rexxsql_config"; then
8257 ac_cv_prog_rexxsql_config="$rexxsql_config" # Let the user override the test.
8258 else
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8261 do
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8266 ac_cv_prog_rexxsql_config="yes"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274 test -z "$ac_cv_prog_rexxsql_config" && ac_cv_prog_rexxsql_config="no"
8275 fi
8276 fi
8277 rexxsql_config=$ac_cv_prog_rexxsql_config
8278 if test -n "$rexxsql_config"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxsql_config" >&5
8280 $as_echo "$rexxsql_config" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 fi
8285
8286
8287 if test "$ac_cv_prog_rexxsql_config" = yes; then
8288 EXTRA_LIB=`rexxsql-config --libs-static`
8289 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8290 $as_echo "#define HAVE_REXXSQL_PACKAGE 1" >>confdefs.h
8291
8292 else
8293 as_fn_error $? "rexxsql-config not found. Cannot use --with-rexxsql switch" "$LINENO" 5
8294 fi
8295 fi
8296
8297 # Check whether --with-rexxeec was given.
8298 if test "${with_rexxeec+set}" = set; then :
8299 withval=$with_rexxeec; with_rexxeec=$withval
8300 else
8301 with_rexxeec=no
8302 fi
8303
8304 if test "$with_rexxeec" = "yes"; then
8305 # Extract the first word of "rexxeec-config", so it can be a program name with args.
8306 set dummy rexxeec-config; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_prog_rexxeec_config+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 if test -n "$rexxeec_config"; then
8313 ac_cv_prog_rexxeec_config="$rexxeec_config" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_rexxeec_config="yes"
8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330 test -z "$ac_cv_prog_rexxeec_config" && ac_cv_prog_rexxeec_config="no"
8331 fi
8332 fi
8333 rexxeec_config=$ac_cv_prog_rexxeec_config
8334 if test -n "$rexxeec_config"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxeec_config" >&5
8336 $as_echo "$rexxeec_config" >&6; }
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 fi
8341
8342
8343 if test "$ac_cv_prog_rexxeec_config" = yes; then
8344 EXTRA_LIB=`rexxeec-config --libs-static`
8345 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8346 $as_echo "#define HAVE_REXXEEC_PACKAGE 1" >>confdefs.h
8347
8348 else
8349 as_fn_error $? "rexxeec-config not found. Cannot use --with-rexxeec switch" "$LINENO" 5
8350 fi
8351 fi
8352
8353 # Check whether --with-rexxisam was given.
8354 if test "${with_rexxisam+set}" = set; then :
8355 withval=$with_rexxisam; with_rexxisam=$withval
8356 else
8357 with_rexxisam=no
8358 fi
8359
8360 if test "$with_rexxisam" = "yes"; then
8361 # Extract the first word of "rexxisam-config", so it can be a program name with args.
8362 set dummy rexxisam-config; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_prog_rexxisam_config+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 if test -n "$rexxisam_config"; then
8369 ac_cv_prog_rexxisam_config="$rexxisam_config" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_rexxisam_config="yes"
8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 test -z "$ac_cv_prog_rexxisam_config" && ac_cv_prog_rexxisam_config="no"
8387 fi
8388 fi
8389 rexxisam_config=$ac_cv_prog_rexxisam_config
8390 if test -n "$rexxisam_config"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxisam_config" >&5
8392 $as_echo "$rexxisam_config" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399 if test "$ac_cv_prog_rexxisam_config" = yes; then
8400 EXTRA_LIB=`rexxisam-config --libs-static`
8401 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8402 $as_echo "#define HAVE_REXXISAM_PACKAGE 1" >>confdefs.h
8403
8404 else
8405 as_fn_error $? "rexxisam-config not found. Cannot use --with-rexxisam switch" "$LINENO" 5
8406 fi
8407 fi
8408
8409 # Check whether --with-rxsock was given.
8410 if test "${with_rxsock+set}" = set; then :
8411 withval=$with_rxsock; with_rxsock=$withval
8412 else
8413 with_rxsock=no
8414 fi
8415
8416 if test "$with_rxsock" = "yes"; then
8417 # Extract the first word of "rxsock-config", so it can be a program name with args.
8418 set dummy rxsock-config; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_rxsock_config+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 if test -n "$rxsock_config"; then
8425 ac_cv_prog_rxsock_config="$rxsock_config" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434 ac_cv_prog_rxsock_config="yes"
8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436 break 2
8437 fi
8438 done
8439 done
8440 IFS=$as_save_IFS
8441
8442 test -z "$ac_cv_prog_rxsock_config" && ac_cv_prog_rxsock_config="no"
8443 fi
8444 fi
8445 rxsock_config=$ac_cv_prog_rxsock_config
8446 if test -n "$rxsock_config"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxsock_config" >&5
8448 $as_echo "$rxsock_config" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8452 fi
8453
8454
8455 if test "$ac_cv_prog_rxsock_config" = yes; then
8456 EXTRA_LIB=`rxsock-config --libs-static`
8457 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8458 $as_echo "#define HAVE_RXSOCK_PACKAGE 1" >>confdefs.h
8459
8460 else
8461 as_fn_error $? "rxsock-config not found. Cannot use --with-rxsock switch" "$LINENO" 5
8462 fi
8463 fi
8464
8465 # Check whether --with-rexxdw was given.
8466 if test "${with_rexxdw+set}" = set; then :
8467 withval=$with_rexxdw; with_rexxdw=$withval
8468 else
8469 with_rexxdw=no
8470 fi
8471
8472 if test "$with_rexxdw" = "yes"; then
8473 # Extract the first word of "rexxdw-config", so it can be a program name with args.
8474 set dummy rexxdw-config; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_prog_rexxdw_config+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if test -n "$rexxdw_config"; then
8481 ac_cv_prog_rexxdw_config="$rexxdw_config" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_rexxdw_config="yes"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 test -z "$ac_cv_prog_rexxdw_config" && ac_cv_prog_rexxdw_config="no"
8499 fi
8500 fi
8501 rexxdw_config=$ac_cv_prog_rexxdw_config
8502 if test -n "$rexxdw_config"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxdw_config" >&5
8504 $as_echo "$rexxdw_config" >&6; }
8505 else
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 $as_echo "no" >&6; }
8508 fi
8509
8510
8511 if test "$ac_cv_prog_rexxdw_config" = yes; then
8512 EXTRA_LIB=`rexxdw-config --libs-static`
8513 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8514 $as_echo "#define HAVE_REXXDW_PACKAGE 1" >>confdefs.h
8515
8516 else
8517 as_fn_error $? "rexxdw-config not found. Cannot use --with-rexxdw switch" "$LINENO" 5
8518 fi
8519 fi
8520
8521 # Check whether --with-rexxcsv was given.
8522 if test "${with_rexxcsv+set}" = set; then :
8523 withval=$with_rexxcsv; with_rexxcsv=$withval
8524 else
8525 with_rexxcsv=no
8526 fi
8527
8528 if test "$with_rexxcsv" = "yes"; then
8529 # Extract the first word of "rexxcsv-config", so it can be a program name with args.
8530 set dummy rexxcsv-config; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if ${ac_cv_prog_rexxcsv_config+:} false; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 if test -n "$rexxcsv_config"; then
8537 ac_cv_prog_rexxcsv_config="$rexxcsv_config" # Let the user override the test.
8538 else
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8541 do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_prog_rexxcsv_config="yes"
8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550 done
8551 done
8552 IFS=$as_save_IFS
8553
8554 test -z "$ac_cv_prog_rexxcsv_config" && ac_cv_prog_rexxcsv_config="no"
8555 fi
8556 fi
8557 rexxcsv_config=$ac_cv_prog_rexxcsv_config
8558 if test -n "$rexxcsv_config"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxcsv_config" >&5
8560 $as_echo "$rexxcsv_config" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8564 fi
8565
8566
8567 if test "$ac_cv_prog_rexxcsv_config" = yes; then
8568 EXTRA_LIB=`rexxcsv-config --libs-static`
8569 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8570 $as_echo "#define HAVE_REXXCSV_PACKAGE 1" >>confdefs.h
8571
8572 else
8573 as_fn_error $? "rexxcsv-config not found. Cannot use --with-rexxcsv switch" "$LINENO" 5
8574 fi
8575 fi
8576
8577 # Check whether --with-rexxpdf was given.
8578 if test "${with_rexxpdf+set}" = set; then :
8579 withval=$with_rexxpdf; with_rexxpdf=$withval
8580 else
8581 with_rexxpdf=no
8582 fi
8583
8584 if test "$with_rexxpdf" = "yes"; then
8585 # Extract the first word of "rexxpdf-config", so it can be a program name with args.
8586 set dummy rexxpdf-config; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_rexxpdf_config+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 if test -n "$rexxpdf_config"; then
8593 ac_cv_prog_rexxpdf_config="$rexxpdf_config" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_prog_rexxpdf_config="yes"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8605 fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610 test -z "$ac_cv_prog_rexxpdf_config" && ac_cv_prog_rexxpdf_config="no"
8611 fi
8612 fi
8613 rexxpdf_config=$ac_cv_prog_rexxpdf_config
8614 if test -n "$rexxpdf_config"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxpdf_config" >&5
8616 $as_echo "$rexxpdf_config" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 fi
8621
8622
8623 if test "$ac_cv_prog_rexxpdf_config" = yes; then
8624 EXTRA_LIB=`rexxpdf-config --libs-static`
8625 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8626 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8627
8628 else
8629 as_fn_error $? "rexxpdf-config not found. Cannot use --with-rexxpdf switch" "$LINENO" 5
8630 fi
8631 fi
8632
8633 # Check whether --with-rexxws was given.
8634 if test "${with_rexxws+set}" = set; then :
8635 withval=$with_rexxws; with_rexxws=$withval
8636 else
8637 with_rexxws=no
8638 fi
8639
8640 if test "$with_rexxws" = "yes"; then
8641 # Extract the first word of "rexxws-config", so it can be a program name with args.
8642 set dummy rexxws-config; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if ${ac_cv_prog_rexxws_config+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 if test -n "$rexxws_config"; then
8649 ac_cv_prog_rexxws_config="$rexxws_config" # Let the user override the test.
8650 else
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8652 for as_dir in $PATH
8653 do
8654 IFS=$as_save_IFS
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8658 ac_cv_prog_rexxws_config="yes"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 break 2
8661 fi
8662 done
8663 done
8664 IFS=$as_save_IFS
8665
8666 test -z "$ac_cv_prog_rexxws_config" && ac_cv_prog_rexxws_config="no"
8667 fi
8668 fi
8669 rexxws_config=$ac_cv_prog_rexxws_config
8670 if test -n "$rexxws_config"; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rexxws_config" >&5
8672 $as_echo "$rexxws_config" >&6; }
8673 else
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8676 fi
8677
8678
8679 if test "$ac_cv_prog_rexxws_config" = yes; then
8680 EXTRA_LIB=`rexxws-config --libs-static`
8681 MH_FUNC_LIBS="$MH_FUNC_LIBS $EXTRA_LIB"
8682 $as_echo "#define HAVE_REXXPDF_PACKAGE 1" >>confdefs.h
8683
8684 else
8685 as_fn_error $? "rexxws-config not found. Cannot use --with-rexxws switch" "$LINENO" 5
8686 fi
8687 fi
8688
8689 LINKREG="${SHLPRE}${SHLFILE}${SHLPST} ${MH_FUNC_LIBS} ${SHLPRE}${SHLFILE}${SHLPST}"
8690
8691
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 fi
8743 else
8744 STATICLD_SHO=""
8745
8746
8747
8748
8749
8750
8751 SHLPRE="lib"
8752 LIBFILE="regina"
8753 SHLFILE="regina"
8754 OSAVE=".o.save"
8755 OBJ="o"
8756 LIBPST=".a"
8757 LIBPRE="lib"
8758 LIBEXE="ar"
8759 GETOPT=""
8760 OBJECTS='$('OFILES')'
8761 STATIC_LDFLAGS=""
8762 AIX_DYN="no"
8763 BEOS_DYN="no"
8764
8765
8766 case "$target" in
8767 *hp-hpux9*)
8768 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8769 $as_echo "#define SELECT_IN_TIME_H 1" >>confdefs.h
8770
8771 ;;
8772 *hp-hpux*)
8773 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8774 SYS_DEFS="-D_HPUX_SOURCE"
8775 else
8776 SYS_DEFS="-D_HPUX_SOURCE +e" # Extended ANSI mode for c89
8777 fi
8778 ;;
8779 *ibm-aix3*|*ibm-aix4.1*)
8780 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8781 ;;
8782 *ibm-aix*)
8783 SYS_DEFS="-D_ALL_SOURCE -DAIX"
8784 DYN_COMP="-DDYNAMIC"
8785 ;;
8786 *dec-osf*)
8787 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
8788 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE"
8789 else
8790 SYS_DEFS="-D_POSIX_SOURCE -D_XOPEN_SOURCE -Olimit 800"
8791 fi
8792 ;;
8793 sparc*sunos*)
8794 SYS_DEFS="-DSUNOS -DSUNOS_STRTOD_BUG"
8795 ;;
8796 *nto-qnx*)
8797 ;;
8798 *skyos*)
8799 DYN_COMP="-DDYNAMIC"
8800 ;;
8801 *qnx*)
8802 LIBPRE=""
8803 LIBPST=".lib"
8804 SHLPRE=""
8805 SHLPST=".lib"
8806 SHLFILE="rexx"
8807 ;;
8808 *cygwin*)
8809 LIBPRE="lib"
8810 SHLPRE="cyg"
8811 DYN_COMP="-DDYNAMIC"
8812 LIBPST=".a"
8813 ;;
8814 *darwin*)
8815 DYN_COMP="-fno-common"
8816 ;;
8817 esac
8818
8819 if test "$DYN_COMP" = ""; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for a dynamic object" >&5
8821 $as_echo_n "checking compiler flags for a dynamic object... " >&6; }
8822
8823 cat > conftest.$ac_ext <<EOF
8824 #line 8824 "configure"
8825 int a=0
8826 EOF
8827
8828 DYN_COMP=""
8829 mh_cv_stop=no
8830 save_cflags="$CFLAGS"
8831 mh_cv_flags="-fPIC -KPIC +Z"
8832 for a in $mh_cv_flags; do
8833 CFLAGS="-c $a"
8834
8835 mh_compile='${CC-cc} -c $CFLAGS conftest.$ac_ext > conftest.tmp 2>&1'
8836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
8837 (eval $mh_compile) 2>&5
8838 ac_status=$?
8839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8840 test $ac_status = 0; }; then
8841 DYN_COMP=""
8842 else
8843 slash="\\"
8844 mh_dyncomp="`egrep -c $slash$a conftest.tmp`"
8845 if test "$mh_dyncomp" = "0"; then
8846 DYN_COMP="$a -DDYNAMIC"
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $a" >&5
8848 $as_echo "$a" >&6; }
8849 break
8850 else
8851 DYN_COMP=""
8852 fi
8853 fi
8854 done
8855 if test "$DYN_COMP" = ""; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none of $mh_cv_flags supported" >&5
8857 $as_echo "none of $mh_cv_flags supported" >&6; }
8858 fi
8859 CFLAGS="$save_cflags"
8860 rm -f conftest.*
8861 fi
8862
8863 SHL_LD=""
8864 TEST1EXPORTS=""
8865 TEST2EXPORTS=""
8866 TEST1EXP=""
8867 TEST2EXP=""
8868 REGINAEXP=""
8869 REGUTILEXP=""
8870
8871 # If the build OS can handle version numbers in the shared library name,
8872 # then set SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
8873 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
8874
8875 # OTHER_INSTALLS is set to install a non-version numbered shared library
8876 # by default; ie. no .\$(ABI) suffix. If the regina executable is not built,
8877 # then there is no shared library. Set OTHER_INSTALLS="installabilib" if you
8878 # are building a version numbered shared library.
8879 #RXSTACK_INSTALL="installrxstack"
8880 RXSTACK_INSTALL=""
8881 OTHER_INSTALLS="installlib"
8882 BASE_INSTALL="installbase"
8883 BASE_BINARY="binarybase"
8884 USE_ABI="no"
8885 BUNDLE=""
8886 EXTRATARGET=""
8887 case "$target" in
8888 *hp-hpux*)
8889 SHLPRE="lib"
8890 if test "$ac_cv_prog_CC" = "gcc"; then
8891 LD_RXLIB_A1="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8892 LD_RXLIB_A2="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8893 LD_RXLIB_UTILA="${CC} -fPIC -shared ${LDFLAGS} -o \$(@)"
8894 LD_RXLIB_B1="-L. -l${SHLFILE}"
8895 LD_RXLIB_B2="-L. -l${SHLFILE}"
8896 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8897 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -fPIC -shared ${LDFLAGS} \$(SHOFILES)"
8898 else
8899 EEXTRA="-Wl,-E"
8900 LD_RXLIB_A1="ld -b -q -n -o \$(@)"
8901 LD_RXLIB_A2="ld -b -q -n -o \$(@)"
8902 LD_RXLIB_UTILA="ld -b -q -n -o \$(@)"
8903 LD_RXLIB_B1=""
8904 LD_RXLIB_B2=""
8905 LD_RXLIB_UTILB=""
8906 DYNAMIC_LDFLAGS="-Wl,+s"
8907 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8908 fi
8909 ;;
8910 *ibm-aix3*)
8911 STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8912 LD_RXLIB_A1="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8913 LD_RXLIB_A2="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8914 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE -bT:512 -bH:512 -bI:regina.exp -o \$(@)"
8915 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8916 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8917 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8918 SHLPRE="lib"
8919 TEST1EXPORTS="-bE:test1.exp"
8920 TEST2EXPORTS="-bE:test2.exp"
8921 TEST1EXP="test1.exp"
8922 TEST2EXP="test2.exp"
8923 REGINAEXP="regina.exp"
8924 REGUTILEXP="regutil.exp"
8925 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8926 AIX_DYN="yes"
8927 DYN_COMP="-DDYNAMIC"
8928 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE -bT:512 -bH:512 "'$('SHOFILES')'" -lc"
8929 else
8930 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8931 DYN_COMP=""
8932 fi
8933 ;;
8934 *ibm-aix*)
8935 # STATIC_LDFLAGS="-bnso -bI:/lib/syscalls.exp"
8936 SHLPRE="lib"
8937 if test "$ac_cv_prog_CC" = "gcc"; then
8938 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
8939 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
8940 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
8941 LD_RXLIB_B1="-L. -l${SHLFILE}"
8942 LD_RXLIB_B2="-L. -l${SHLFILE}"
8943 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
8944 else
8945 LD_RXLIB_A1="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8946 LD_RXLIB_A2="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8947 LD_RXLIB_UTILA="ld -bnoentry -bM:SRE ${LDFLAGS} -o \$(@)"
8948 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8949 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8950 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST} -lc"
8951 TEST1EXPORTS="-bE:test1.exp"
8952 TEST2EXPORTS="-bE:test2.exp"
8953 TEST1EXP="test1.exp"
8954 TEST2EXP="test2.exp"
8955 REGUTILEXPORTS="-bE:regutil.exp"
8956 REGUTILEXP="regutil.exp"
8957 fi
8958 REGINAEXP="regina.exp"
8959 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
8960 AIX_DYN="yes"
8961 DYN_COMP="-DDYNAMIC"
8962 if test "$ac_cv_prog_CC" = "gcc"; then
8963 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-bnoentry -Wl,-bE:regina.exp -Wl,-bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8964 else
8965 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -bnoentry -bE:regina.exp -bM:SRE ${LDFLAGS} \$(SHOFILES) -lc \$(SHLIBS) \$(MH_MT_LIBS)"
8966 fi
8967 else
8968 SHL_LD=" "'$('LIBEXE')'" "'$('LIBFLAGS')'" "'$('SHOFILES')'
8969 DYN_COMP=""
8970 fi
8971 ;;
8972 *dec-osf*)
8973 LD_RXLIB_A1="ld -shared -o \$(@)"
8974 LD_RXLIB_A2="ld -shared -o \$(@)"
8975 LD_RXLIB_UTILA="ld -shared -o \$(@)"
8976 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
8977 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
8978 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
8979 SHLPRE="lib"
8980 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
8981 ;;
8982 *esix*)
8983 LD_RXLIB_A1="ld -G -o \$(@)"
8984 LD_RXLIB_A2="ld -G -o \$(@)"
8985 LD_RXLIB_UTILA="ld -G -o \$(@)"
8986 LD_RXLIB_B1=""
8987 LD_RXLIB_B2=""
8988 LD_RXLIB_UTILB=""
8989 DYNAMIC_LDFLAGS=""
8990 SHLPRE="lib"
8991 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
8992 ;;
8993 *dgux*)
8994 LD_RXLIB_A1="ld -G -o \$(@)"
8995 LD_RXLIB_A2="ld -G -o \$(@)"
8996 LD_RXLIB_UTILA="ld -G -o \$(@)"
8997 LD_RXLIB_B1=""
8998 LD_RXLIB_B2=""
8999 LD_RXLIB_UTILB=""
9000 DYNAMIC_LDFLAGS=""
9001 SHLPRE="lib"
9002 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9003 ;;
9004 *pc-sco*)
9005 LD_RXLIB_A1="ld -dy -G -o \$(@)"
9006 LD_RXLIB_A2="ld -dy -G -o \$(@)"
9007 LD_RXLIB_UTILA="ld -dy -G -o \$(@)"
9008 LD_RXLIB_B1=""
9009 LD_RXLIB_B2=""
9010 LD_RXLIB_UTILB=""
9011 DYNAMIC_LDFLAGS=""
9012 SHLPRE="lib"
9013 SHL_LD="ld -dy -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9014 ;;
9015 *solaris*)
9016 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9017 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9018 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9019 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9020 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9021 else
9022 LD_RXLIB_A1="ld -G ${LDFLAGS} -o \$(@)"
9023 LD_RXLIB_A2="ld -G ${LDFLAGS} -o \$(@)"
9024 LD_RXLIB_UTILA="ld -G ${LDFLAGS} -o \$(@)"
9025 SHL_LD="ld -G ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9026 fi
9027 LD_RXLIB_B1=""
9028 LD_RXLIB_B2=""
9029 LD_RXLIB_UTILB=""
9030 DYNAMIC_LDFLAGS=""
9031 SHLPRE="lib"
9032 ;;
9033 sparc*sunos*)
9034 LD_RXLIB_A1="ld -o \$(@)"
9035 LD_RXLIB_A2="ld -o \$(@)"
9036 LD_RXLIB_UTILA="ld -o \$(@)"
9037 LD_RXLIB_B1=""
9038 LD_RXLIB_B2=""
9039 LD_RXLIB_UTILB=""
9040 SHLPRE="lib"
9041 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9042 ;;
9043 *-freebsd* | *openbsd*)
9044 if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++" -o "$ac_cv_prog_CC" = "clang"; then
9045 LD_RXLIB_A1="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9046 LD_RXLIB_A2="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9047 LD_RXLIB_UTILA="$ac_cv_prog_CC -shared ${LDFLAGS} -o \$(@)"
9048 SHL_LD="$ac_cv_prog_CC -shared ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9049 else
9050 LD_RXLIB_A1="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9051 LD_RXLIB_A2="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9052 LD_RXLIB_UTILA="ld -Bdynamic -Bshareable ${LDFLAGS} -o \$(@)"
9053 LD_RXLIB_B1="-lc -L. -l${SHLFILE}"
9054 LD_RXLIB_B2="-lc -L. -l${SHLFILE}"
9055 LD_RXLIB_UTILB="-lc -L. -l${SHLFILE}"
9056 SHL_LD="ld -Bdynamic -Bshareable ${LDFLAGS} -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9057 fi
9058 STATIC_LDFLAGS="-static"
9059 SHLPRE="lib"
9060 ;;
9061 *linux*|*kfreebsd*-gnu*)
9062 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9063 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9064 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9065 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9066 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9067 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9068 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9069 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9070 SHLPRE="lib"
9071 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9072 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9073 OTHER_INSTALLS="installabilib"
9074 USE_ABI="yes"
9075 ;;
9076 powerpc-ibm-os400)
9077 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9078 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9079 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9080 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9081 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9082 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9083 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9084 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9085 SHLPRE="lib"
9086 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} ${SHL_SCRIPT} \$(SHOFILES)"
9087 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9088 OTHER_INSTALLS="installabilib"
9089 USE_ABI="yes"
9090 ;;
9091 *gnu*)
9092 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9093 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9094 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9095 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9096 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9097 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9098 SHLPRE="lib"
9099 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${SHL_SCRIPT} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES) -lc"
9100 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9101 OTHER_INSTALLS="installabilib"
9102 USE_ABI="yes"
9103 ;;
9104 *atheos* | *syllable*)
9105 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9106 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9107 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9108 LD_RXLIB_B1="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9109 LD_RXLIB_B2="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9110 LD_RXLIB_UTILB="-L. -l${SHLFILE} "'$('BOTHLIBS')'
9111 SHLPRE="lib"
9112 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared ${LDFLAGS} \$(SHOFILES) "'$('BOTHLIBS')'
9113 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9114 BASE_BINARY="atheosbinary"
9115 ;;
9116 *beos*)
9117 LD_RXLIB_A1="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9118 LD_RXLIB_A2="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9119 LD_RXLIB_UTILA="${CC} -Wl,-shared -nostart -Xlinker -o\$(@)"
9120 LD_RXLIB_B1="-L. -l${SHLFILE}"
9121 LD_RXLIB_B2="-L. -l${SHLFILE}"
9122 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9123 SHLPRE="lib"
9124 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -Wl,-shared -nostart -Xlinker \$(SHOFILES)"
9125 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9126 BEOS_DYN="yes"
9127 BASE_INSTALL="beosinstall"
9128 BASE_BINARY="beosbinary"
9129 OTHER_INSTALLS=""
9130 ;;
9131 *haiku*)
9132 BEOS_DYN="no"
9133 LD_RXLIB_A1="${CC} -shared ${LDFLAGS} -o \$(@)"
9134 LD_RXLIB_A2="${CC} -shared ${LDFLAGS} -o \$(@)"
9135 LD_RXLIB_UTILA="${CC} -shared ${LDFLAGS} -o \$(@)"
9136 # LD_RXLIB_B1="-L. -l${SHLFILE}"
9137 # LD_RXLIB_B2="-L. -l${SHLFILE}"
9138 LD_RXLIB_B1="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9139 LD_RXLIB_B2="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9140 LD_RXLIB_UTILB="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9141 SHLPRE="lib"
9142 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI) -shared ${LDFLAGS} -Wl,-soname=${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI_MAJOR) \$(SHOFILES)"
9143 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9144 BASE_INSTALL="haikuinstall"
9145 BASE_BINARY="beosbinary"
9146 OTHER_INSTALLS="installabilib"
9147 USE_ABI="yes"
9148 ;;
9149 *nto-qnx*)
9150 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9151 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9152 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9153 LD_RXLIB_B1="-L. -l${SHLFILE}"
9154 LD_RXLIB_B2="-L. -l${SHLFILE}"
9155 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9156 SHLPRE="lib"
9157 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9158 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9159 ;;
9160 *skyos*)
9161 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9162 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9163 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9164 LD_RXLIB_B1="-L. -l${SHLFILE}"
9165 LD_RXLIB_B2="-L. -l${SHLFILE}"
9166 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9167 SHLPRE="lib"
9168 SHL_LD="${CC} -o ${SHLPRE}${SHLFILE}${SHLPST} -shared \$(SHOFILES)"
9169 SHL_BASE="${SHLPRE}${SHLFILE}${SHLPST}"
9170 ;;
9171 *qnx*)
9172 LD_RXLIB_A1=""
9173 LD_RXLIB_A2=""
9174 LD_RXLIB_UTILA=""
9175 LD_RXLIB_B1=""
9176 LD_RXLIB_B2=""
9177 LD_RXLIB_UTILB=""
9178 SHLPRE=""
9179 # set BUNDLE to unique junk names to stop the Makefile
9180 # getting duplicate targets
9181 BUNDLE=".junk2"
9182 SHLPST=".junk"
9183 SHL_LD=""
9184 EEXTRA="-mf -N0x20000 -Q"
9185 LIBPRE=""
9186 LIBPST=".lib"
9187 LIBFILE="rexx"
9188 ;;
9189 *cygwin*)
9190 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9191 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9192 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9193 LD_RXLIB_B1="-L. -lregina"
9194 LD_RXLIB_B2="-L. -lregina"
9195 LD_RXLIB_UTILB="-L. -lregina"
9196 SHLPRE="lib"
9197 SHL_LD="${CC} -shared -o \$(@) \$(SHOFILES)"
9198 EEXTRA=""
9199 LIBPRE="lib"
9200 LIBPST=".a"
9201 LIBFILE="rexx"
9202 SHL_BASE="cyg${SHLFILE}${SHLPST}"
9203 TEST1EXPORTS=""
9204 TEST2EXPORTS=""
9205 REGUTILEXPORTS=""
9206 TEST1EXP="${srcdir}/test1_w32_dll.def"
9207 TEST2EXP="${srcdir}/test2_w32_dll.def"
9208 REGINAEXP="${srcdir}/regina_w32_dll.def"
9209 REGUTILEXP="${srcdir}/regutil/regutil.def"
9210 BASE_INSTALL="cygwininstall"
9211 OTHER_INSTALLS=""
9212 RXSTACK_INSTALL=""
9213 ;;
9214 *apple-darwin*)
9215 # to test on platform other than real Mac OSX use: --build=ppc-apple-darwin10.1 --target=ppc-apple-darwin10.1
9216 #
9217 # Link switches for building "bundles"
9218 #
9219 # MH LD_RXLIB_A1="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9220 # MH LD_RXLIB_A2="${CC} -bundle -flat_namespace -undefined suppress -o \$(@)"
9221 LD_RXLIB_A1="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9222 LD_RXLIB_A2="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9223 LD_RXLIB_UTILA="${CC} ${EEXTRA} -dynamiclib -headerpad_max_install_names ${LDFLAGS} -o \$(@)"
9224 LD_RXLIB_B1="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9225 LD_RXLIB_B2="-L. -l${SHLFILE} -lc \$(SHLIBS)"
9226 LD_RXLIB_UTILB="-L. -l${SHLFILE} -lc \$(SHLIBS) $REGUTIL_TERM_LIB"
9227 DYN_COMP="-DDYNAMIC -fno-common"
9228 SHLPRE="lib"
9229 BUNDLE=".junk"
9230 SHL_LD="${CC} ${EEXTRA} -dynamiclib ${LDFLAGS} -headerpad_max_install_names -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9231 SHL_BASE="${LIBPRE}${SHLFILE}${SHLPST}"
9232 if test "$brewaddonsdir" = ""; then
9233 OTHER_INSTALLS="installmaclib"
9234 else
9235 OTHER_INSTALLS="installbrewlib"
9236 fi
9237 ;;
9238 *)
9239
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a shared library" >&5
9241 $as_echo_n "checking how to create a shared library... " >&6; }
9242 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9244 "configure"
9245 int foo()
9246 {
9247 return(0);
9248 }
9249 EOF
9250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9251 (eval $mh_compile) 2>&5
9252 ac_status=$?
9253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9254 test $ac_status = 0; } && test -s conftest.o; then
9255 mh_dyn_link='ld -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9257 (eval $mh_dyn_link) 2>&5
9258 ac_status=$?
9259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9260 test $ac_status = 0; } && test -s conftest.so.1.0; then
9261 SHL_LD="ld -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9262 else
9263 mh_dyn_link='ld -G -o conftest.so.1.0 conftest.o 1>&5'
9264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9265 (eval $mh_dyn_link) 2>&5
9266 ac_status=$?
9267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9268 test $ac_status = 0; } && test -s conftest.so.1.0; then
9269 SHL_LD="ld -G -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9270 else
9271 mh_dyn_link='ld -o conftest.so.1.0 -shared -no_archive conftest.o -lc 1>&5'
9272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9273 (eval $mh_dyn_link) 2>&5
9274 ac_status=$?
9275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9276 test $ac_status = 0; } && test -s conftest.so.1.0; then
9277 SHL_LD="ld -o ${SHLPRE}${SHLFILE}${SHLPST} -shared -no_archive "'$('SHOFILES')'" -lc"
9278 else
9279 mh_dyn_link='ld -b -o conftest.so.1.0 conftest.o 1>&5'
9280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9281 (eval $mh_dyn_link) 2>&5
9282 ac_status=$?
9283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9284 test $ac_status = 0; } && test -s conftest.so.1.0; then
9285 SHL_LD="ld -b -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9286 else
9287 mh_dyn_link='ld -Bshareable -o conftest.so.1.0 conftest.o 1>&5'
9288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9289 (eval $mh_dyn_link) 2>&5
9290 ac_status=$?
9291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9292 test $ac_status = 0; } && test -s conftest.so.1.0; then
9293 SHL_LD="ld -Bshareable -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9294 else
9295 mh_dyn_link='ld -assert pure-text -o conftest.so.1.0 conftest.o 1>&5'
9296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9297 (eval $mh_dyn_link) 2>&5
9298 ac_status=$?
9299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9300 test $ac_status = 0; } && test -s conftest.so.1.0; then
9301 SHL_LD="ld -assert pure-text -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'
9302 else
9303 mh_dyn_link='${CC} -shared -o conftest.so.1.0 conftest.o -lc 1>&5'
9304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9305 (eval $mh_dyn_link) 2>&5
9306 ac_status=$?
9307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9308 test $ac_status = 0; } && test -s conftest.so.1.0; then
9309 SHL_LD="${CC} -shared -o ${SHLPRE}${SHLFILE}${SHLPST} "'$('SHOFILES')'" -lc"
9310 else
9311 SHL_LD=""
9312 fi
9313 fi
9314 fi
9315 fi
9316 fi
9317 fi
9318 fi
9319 fi
9320 if test "$SHL_LD" = ""; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
9322 $as_echo "unknown" >&6; }
9323 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
9325 $as_echo "found" >&6; }
9326 fi
9327 rm -f conftest*
9328
9329
9330 mh_compile='${CC-cc} -c $DYN_COMP conftest.$ac_ext 1>&5'
9331 cat > conftest.$ac_ext <<EOF
9332 #line 9332 "configure"
9333 int foo()
9334 {
9335 return(0);
9336 }
9337 EOF
9338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_compile\""; } >&5
9339 (eval $mh_compile) 2>&5
9340 ac_status=$?
9341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342 test $ac_status = 0; } && test -s conftest.o; then
9343 mh_dyn_link='ld -shared -o conftest.rxlib conftest.o -lc 1>&5'
9344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9345 (eval $mh_dyn_link) 2>&5
9346 ac_status=$?
9347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9348 test $ac_status = 0; } && test -s conftest.rxlib; then
9349 LD_RXLIB_A1="ld -shared -o \$(@)"
9350 LD_RXLIB_A2="ld -shared -o \$(@)"
9351 LD_RXLIB_UTILA="ld -shared -o \$(@)"
9352 LD_RXLIB_B1="-L. -l${SHLFILE}"
9353 LD_RXLIB_B2="-L. -l${SHLFILE}"
9354 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9355 SHLPRE="lib"
9356 SHLPST=".so"
9357 else
9358 mh_dyn_link='ld -G -o conftest.rxlib conftest.o 1>&5'
9359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9360 (eval $mh_dyn_link) 2>&5
9361 ac_status=$?
9362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9363 test $ac_status = 0; } && test -s conftest.rxlib; then
9364 LD_RXLIB_A1="ld -G -o \$(@)"
9365 LD_RXLIB_A2="ld -G -o \$(@)"
9366 LD_RXLIB_UTILA="ld -G -o \$(@)"
9367 LD_RXLIB_B1="-L. -l${SHLFILE}"
9368 LD_RXLIB_B2="-L. -l${SHLFILE}"
9369 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9370 SHLPRE="lib"
9371 SHLPST=".so"
9372 else
9373 mh_dyn_link='${CC} -shared -o conftest.rxlib conftest.o 1>&5'
9374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mh_dyn_link\""; } >&5
9375 (eval $mh_dyn_link) 2>&5
9376 ac_status=$?
9377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9378 test $ac_status = 0; } && test -s conftest.rxlib; then
9379 LD_RXLIB_A1="${CC} -shared -o \$(@)"
9380 LD_RXLIB_A2="${CC} -shared -o \$(@)"
9381 LD_RXLIB_UTILA="${CC} -shared -o \$(@)"
9382 LD_RXLIB_B1="-L. -l${SHLFILE}"
9383 LD_RXLIB_B2="-L. -l${SHLFILE}"
9384 LD_RXLIB_UTILB="-L. -l${SHLFILE}"
9385 SHLPRE="lib"
9386 SHLPST=".so"
9387 else
9388 LD_RXLIB_A1=""
9389 LD_RXLIB_A2=""
9390 LD_RXLIB_UTILA=""
9391 LD_RXLIB_B1=""
9392 LD_RXLIB_B2=""
9393 LD_RXLIB_UTILB=""
9394 SHLPRE=""
9395 SHLPST=""
9396 fi
9397 fi
9398 fi
9399 fi
9400 rm -f conftest*
9401
9402 ;;
9403 esac
9404
9405 LIBFLAGS="cr ${LIBPRE}${LIBFILE}${LIBPST}"
9406 LIBLINK="-L. -l${LIBFILE}"
9407 LINKSHL="-L. -l${SHLFILE}"
9408
9409 SHL_NAME_REGINA="${SHLPRE}${SHLFILE}${SHLPST}"
9410 SHL_NAME_REGUTIL="${SHLPRE}regutil${SHLPST}"
9411 SHL_NAME_RXTEST1="${SHLPRE}rxtest1${SHLPST}"
9412 SHL_NAME_RXTEST2="${SHLPRE}rxtest2${SHLPST}"
9413 RANLIB_DYNAMIC=""
9414
9415 case "$target" in
9416 *hp-hpux*)
9417 #
9418 # For HPUX, we must link the "regina" executable with -lregina
9419 # otherwise you can't move the shared library anywhere other
9420 # than where it was built. Fix by PJM
9421 #
9422 LINKREG="${LINKSHL}"
9423 ;;
9424 *cygwin*)
9425 #
9426 # For CygWin, we must link with the import library
9427 # not the actual DLL
9428 #
9429 LINKREG="${LINKSHL}"
9430 SHL_NAME_REGINA="cygregina.dll"
9431 SHL_NAME_REGUTIL="regutil.dll"
9432 SHL_NAME_RXTEST1="rxtest1.dll"
9433 SHL_NAME_RXTEST2="rxtest2.dll"
9434 ;;
9435 *skyos*)
9436 #
9437 # SkyOS requires linking with -L. -lregina format
9438 #
9439 LINKREG="${LINKSHL}"
9440 ;;
9441 *linux*|*kfreebsd*-gnu*)
9442 LINKSHL="${SHLPRE}${SHLFILE}${SHLPST}.\$(ABI)"
9443 LINKREG="${LINKSHL}"
9444 ;;
9445 *)
9446 LINKREG="${SHLPRE}${SHLFILE}${SHLPST}"
9447 ;;
9448 esac
9449
9450 if test "$SHL_LD" != ""; then
9451 SHL_LD="$SHL_LD \$(BOTHLIBS) \$(MH_MT_LIBS)"
9452 fi
9453
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic loading of external functions is supported" >&5
9455 $as_echo_n "checking if dynamic loading of external functions is supported... " >&6; }
9456 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
9457 SHL_TARGETS="${SHL_NAME_REGINA} regina${binarybitprefix}${EXEEXT} ${SHL_NAME_REGUTIL} ${SHL_NAME_RXTEST1} ${SHL_NAME_RXTEST2} $EXTRATARGET"
9458 EXECISER_DEP="${SHL_BASE}"
9459 OTHER_INSTALLS="regina${binarybitprefix}${EXEEXT} $OTHER_INSTALLS"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5
9461 $as_echo "\"yes\"" >&6; }
9462 else
9463 SHL_TARGETS=""
9464 EXECISER_DEP="${STATICLIB}"
9465 OTHER_INSTALLS=""
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
9467 $as_echo "\"no\"" >&6; }
9468 fi
9469 #
9470 # Add $RXSTACK_INSTALL
9471 #
9472 OTHER_INSTALLS="$OTHER_INSTALLS $RXSTACK_INSTALL"
9473
9474 if test "$AIX_DYN" = "yes"; then
9475 STATICLIB=""
9476 LIBPST=".junk"
9477 else
9478 STATICLIB="${LIBPRE}${LIBFILE}${LIBPST}"
9479 fi
9480
9481
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 if test "$ac_cv_header_dlfcn_h" = "yes" -o "$HAVE_DLFCN_H" = "1"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if symbols need underscore prepended in loadable modules" >&5
9540 $as_echo_n "checking if symbols need underscore prepended in loadable modules... " >&6; }
9541 tmpLIBS="$LIBS"
9542 save_cflags="$CFLAGS"
9543 LIBS="$LIBS $DLFCNLIBDIR"
9544 CFLAGS="$CFLAGS $DLFCNINCDIR"
9545 if ${mh_cv_uscore+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548
9549 if test "$cross_compiling" = yes; then :
9550 mh_cv_uscore=no
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554
9555 #include <dlfcn.h>
9556 int mh_underscore_test (void) { return 42; }
9557 int main() {
9558 void *f1 = (void*)0, *f2 = (void*)0, *handle;
9559 handle = dlopen ((void*)0, 0);
9560 if (handle) {
9561 f1 = dlsym (handle, "mh_underscore_test");
9562 f2 = dlsym (handle, "_mh_underscore_test");
9563 } return (!f2 || f1);
9564 }
9565
9566 _ACEOF
9567 if ac_fn_c_try_run "$LINENO"; then :
9568 mh_cv_uscore=yes
9569 else
9570 mh_cv_uscore=no
9571 fi
9572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9573 conftest.$ac_objext conftest.beam conftest.$ac_ext
9574 fi
9575
9576
9577 fi
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_uscore" >&5
9580 $as_echo "$mh_cv_uscore" >&6; }
9581 if test "x$mh_cv_uscore" = "xyes"; then
9582 $as_echo "#define MODULES_NEED_USCORE 1" >>confdefs.h
9583
9584 fi
9585 LIBS="$tmpLIBS"
9586 CFLAGS="$save_cflags"
9587 fi
9588
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597 LARGE_FILE_SUPPORT=""
9598 # Extract the first word of "getconf", so it can be a program name with args.
9599 set dummy getconf; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if ${ac_cv_prog_getconf+:} false; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 if test -n "$getconf"; then
9606 ac_cv_prog_getconf="$getconf" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_getconf="yes"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619 done
9620 done
9621 IFS=$as_save_IFS
9622
9623 test -z "$ac_cv_prog_getconf" && ac_cv_prog_getconf="no"
9624 fi
9625 fi
9626 getconf=$ac_cv_prog_getconf
9627 if test -n "$getconf"; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $getconf" >&5
9629 $as_echo "$getconf" >&6; }
9630 else
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9632 $as_echo "no" >&6; }
9633 fi
9634
9635
9636 if test "$ac_cv_prog_getconf" = yes; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking large file support flags" >&5
9638 $as_echo_n "checking large file support flags... " >&6; }
9639 LARGE_FILE_SUPPORT=`getconf LFS_CFLAGS`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LARGE_FILE_SUPPORT" >&5
9641 $as_echo "$LARGE_FILE_SUPPORT" >&6; }
9642 fi
9643 if test "$LARGE_FILE_SUPPORT" = "undefined"; then
9644 LARGE_FILE_SUPPORT=""
9645 fi
9646
9647
9648 #if test "$with_staticfunctions" = "yes"; then
9649 # DYNAMIC_LIBRARY_LIBS=""
9650 #else
9651 # DYNAMIC_LIBRARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9652 # DYNAMIC_REGUTIL_TERM_LIB="$REGUTIL_TERM_LIB"
9653 # AC_SUBST(DYNAMIC_REGUTIL_TERM_LIB)
9654 #fi
9655 #AC_SUBST(DYNAMIC_LIBRARY_LIBS)
9656 #DYNAMIC_BINARY_LIBS="-L. -lregina"
9657 #AC_SUBST(DYNAMIC_BINARY_LIBS)
9658
9659
9660 STACK_BINARY_LIBS="$REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9661
9662 REXX_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_MATH_LIB $REGUTIL_READLINE_LIB $REGINA_PTHREAD_LIB"
9663
9664 #STATIC_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGINA_PTHREAD_LIB"
9665 #AC_SUBST(STATIC_BINARY_LIBS)
9666 if test "$build_static" = "yes"; then
9667 REGINA_CONFIG_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB $REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9668 LIBREGINA_BINARY_LIBS=""
9669 LIBREGUTIL_BINARY_LIBS=""
9670 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"
9671 THREADER_BINARY_LIBS="-L. -lrexx $REGINA_PTHREAD_LIB"
9672 EXECISER_BINARY_LIBS="-L. -lrexx $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9673 else
9674 REGINA_CONFIG_LIBS=""
9675 LIBREGINA_BINARY_LIBS="$REGINA_CRYPT_LIB $REGINA_PTHREAD_LIB $REGINA_DLOPEN_LIB $REGINA_SHL_LOAD_LIB $REGINA_SOCKET_LIB $REGINA_GETHOSTBYNAME_LIB"
9676 LIBREGUTIL_BINARY_LIBS="$REGUTIL_TERM_LIB $REGUTIL_READLINE_LIB $REGUTIL_MATH_LIB"
9677 REGINA_BINARY_LIBS="-L. -lregina"
9678 THREADER_BINARY_LIBS="-L. -lregina $REGINA_PTHREAD_LIB"
9679 EXECISER_BINARY_LIBS="-L. -lregina"
9680 fi
9681
9682
9683
9684
9685
9686
9687
9688 # Check whether --enable-tracemem was given.
9689 if test "${enable_tracemem+set}" = set; then :
9690 enableval=$enable_tracemem; with_tracemem=$enableval
9691 else
9692 with_tracemem=no
9693 fi
9694
9695 if test "$with_tracemem" = yes; then
9696 TRACEMEM="-DTRACEMEM"
9697 else
9698 TRACEMEM=""
9699 fi
9700
9701
9702 # Check whether --enable-flists was given.
9703 if test "${enable_flists+set}" = set; then :
9704 enableval=$enable_flists; with_flists=$enableval
9705 else
9706 with_flists=yes
9707 fi
9708
9709 if test "$with_flists" = no; then
9710 FLISTS="-DNOFLISTS"
9711 else
9712 FLISTS=""
9713 fi
9714
9715
9716
9717 # Check whether --with-socket was given.
9718 if test "${with_socket+set}" = set; then :
9719 withval=$with_socket; with_socket=$withval
9720 else
9721 with_socket=no
9722 fi
9723
9724 if test "$with_socket" = no; then
9725 REXXSOCKET=""
9726 else
9727 REXXSOCKET="-DRXSOCKET=$with_socket"
9728 fi
9729
9730
9731
9732 # Check whether --with-addon-dir was given.
9733 if test "${with_addon_dir+set}" = set; then :
9734 withval=$with_addon_dir; addonsdir=$withval
9735 else
9736 addonsdir=$libdir/regina-rexx/addons
9737 fi
9738
9739
9740 prefix_NONE=
9741 exec_prefix_NONE=
9742 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
9743 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
9744 eval ac_define_dir="\""$addonsdir"\""
9745 eval ac_define_dir="\"$ac_define_dir\""
9746 HAVE_REGINA_ADDON_DIR="$ac_define_dir"
9747
9748 cat >>confdefs.h <<_ACEOF
9749 #define HAVE_REGINA_ADDON_DIR "$ac_define_dir"
9750 _ACEOF
9751
9752 test "$prefix_NONE" && prefix=NONE
9753 test "$exec_prefix_NONE" && exec_prefix=NONE
9754
9755
9756
9757
9758 # Check whether --with-brew-addon-dir was given.
9759 if test "${with_brew_addon_dir+set}" = set; then :
9760 withval=$with_brew_addon_dir; brewaddonsdir=$withval
9761 else
9762 brewaddonsdir=""
9763 fi
9764
9765
9766
9767 #MH_CHECK_RPM
9768
9769 #
9770 # get our own abs_srcdir as autoconf sucks
9771 #
9772 here=`pwd`
9773 cd $srcdir
9774 absolute_srcdir=`pwd`
9775 cd $here
9776 #
9777 packagesdir="$absolute_srcdir/packages"
9778
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where rpms are built" >&5
9780 $as_echo_n "checking where rpms are built... " >&6; }
9781 # Extract the first word of "rpmbuild", so it can be a program name with args.
9782 set dummy rpmbuild; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if ${ac_cv_prog_mh_rpm_exists+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 if test -n "$mh_rpm_exists"; then
9789 ac_cv_prog_mh_rpm_exists="$mh_rpm_exists" # Let the user override the test.
9790 else
9791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792 for as_dir in $PATH
9793 do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_mh_rpm_exists="yes"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9801 fi
9802 done
9803 done
9804 IFS=$as_save_IFS
9805
9806 test -z "$ac_cv_prog_mh_rpm_exists" && ac_cv_prog_mh_rpm_exists="no "
9807 fi
9808 fi
9809 mh_rpm_exists=$ac_cv_prog_mh_rpm_exists
9810 if test -n "$mh_rpm_exists"; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_rpm_exists" >&5
9812 $as_echo "$mh_rpm_exists" >&6; }
9813 else
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9816 fi
9817
9818
9819 if test "$mh_rpm_exists" = yes; then
9820 # rpmtopdir=`rpm --eval "%{_topdir}"`
9821 rpmtopdir="${packagesdir}/RPM"
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rpmtopdir" >&5
9823 $as_echo "$rpmtopdir" >&6; }
9824 else
9825 rpmtopdir=""
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9827 $as_echo "\"not avaliable\"" >&6; }
9828 fi
9829
9830 #
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where deb packages are built" >&5
9832 $as_echo_n "checking where deb packages are built... " >&6; }
9833 # Extract the first word of "dpkg-buildpackage", so it can be a program name with args.
9834 set dummy dpkg-buildpackage; ac_word=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_prog_mh_dpkg_exists+:} false; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 if test -n "$mh_dpkg_exists"; then
9841 ac_cv_prog_mh_dpkg_exists="$mh_dpkg_exists" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9845 do
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_mh_dpkg_exists="yes"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9853 fi
9854 done
9855 done
9856 IFS=$as_save_IFS
9857
9858 test -z "$ac_cv_prog_mh_dpkg_exists" && ac_cv_prog_mh_dpkg_exists="no "
9859 fi
9860 fi
9861 mh_dpkg_exists=$ac_cv_prog_mh_dpkg_exists
9862 if test -n "$mh_dpkg_exists"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_dpkg_exists" >&5
9864 $as_echo "$mh_dpkg_exists" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9868 fi
9869
9870
9871 if test "$mh_dpkg_exists" = yes; then
9872 debtopdir="${packagesdir}/DEB"
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debtopdir" >&5
9874 $as_echo "$debtopdir" >&6; }
9875 else
9876 debtopdir=""
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9878 $as_echo "\"not avaliable\"" >&6; }
9879 fi
9880
9881 #
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where apk packages are built" >&5
9883 $as_echo_n "checking where apk packages are built... " >&6; }
9884 # Extract the first word of "abuild", so it can be a program name with args.
9885 set dummy abuild; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_prog_mh_apk_exists+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 if test -n "$mh_apk_exists"; then
9892 ac_cv_prog_mh_apk_exists="$mh_apk_exists" # Let the user override the test.
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_prog_mh_apk_exists="yes"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 test -z "$ac_cv_prog_mh_apk_exists" && ac_cv_prog_mh_apk_exists="no "
9910 fi
9911 fi
9912 mh_apk_exists=$ac_cv_prog_mh_apk_exists
9913 if test -n "$mh_apk_exists"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_apk_exists" >&5
9915 $as_echo "$mh_apk_exists" >&6; }
9916 else
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920
9921
9922 if test "$mh_apk_exists" = yes; then
9923 apktopdir="${packagesdir}/APK"
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apktopdir" >&5
9925 $as_echo "$apktopdir" >&6; }
9926 else
9927 apktopdir=""
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not avaliable\"" >&5
9929 $as_echo "\"not avaliable\"" >&6; }
9930 fi
9931
9932 # if we haven't set an environment variable; PACKAGE_RELEASE to a value,
9933 # get a timestamp for use in eg RPM Spec file Release
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getting PACKAGE_RELEASE value" >&5
9935 $as_echo_n "checking getting PACKAGE_RELEASE value... " >&6; }
9936 PACKAGE_RELEASE=`echo $PACKAGE_RELEASE`
9937 if test x"$PACKAGE_RELEASE" == "x"; then
9938 PACKAGE_RELEASE=`date +%y%m%d.%H%M`
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PACKAGE_RELEASE" >&5
9941 $as_echo "$PACKAGE_RELEASE" >&6; }
9942
9943
9944
9945 # Extract the first word of "lsb_release", so it can be a program name with args.
9946 set dummy lsb_release; ac_word=$2
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9948 $as_echo_n "checking for $ac_word... " >&6; }
9949 if ${ac_cv_prog_lsb_release+:} false; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 if test -n "$lsb_release"; then
9953 ac_cv_prog_lsb_release="$lsb_release" # Let the user override the test.
9954 else
9955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $PATH
9957 do
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_prog_lsb_release="yes"
9963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9965 fi
9966 done
9967 done
9968 IFS=$as_save_IFS
9969
9970 test -z "$ac_cv_prog_lsb_release" && ac_cv_prog_lsb_release="no"
9971 fi
9972 fi
9973 lsb_release=$ac_cv_prog_lsb_release
9974 if test -n "$lsb_release"; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lsb_release" >&5
9976 $as_echo "$lsb_release" >&6; }
9977 else
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9979 $as_echo "no" >&6; }
9980 fi
9981
9982
9983 if test "$ac_cv_prog_lsb_release" = yes; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OS distribution name" >&5
9985 $as_echo_n "checking OS distribution name... " >&6; }
9986 MYDISTRO="`lsb_release -i | cut -f 2`-`lsb_release -r | cut -f 2`"
9987 MYDISTRO="`echo $MYDISTRO | sed \"s/ /_/g\"`"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYDISTRO" >&5
9989 $as_echo "$MYDISTRO" >&6; }
9990 else
9991 case "$target" in
9992 *linux*)
9993 if test -f "/etc/os-release"; then
9994 myid="`grep ^ID= /etc/os-release | cut -f2 -d\=`"
9995 myver="`grep ^VERSION_ID= /etc/os-release | cut -f2 -d\= | sed 's/\"//g'`"
9996 MYDISTRO="$myid-$myver"
9997 else
9998 MYDISTRO="`echo $target | cut -f3 -d-`"
9999 fi
10000 ;;
10001 *freebsd* | *openbsd*)
10002 MYDISTRO="`echo $target | cut -f3 -d-`"
10003 ;;
10004 *darwin*)
10005 MYDISTRO="`echo $target | cut -f2-3 -d-`"
10006 ;;
10007 *pc-solaris2*)
10008 MYDISTRO="`echo $target | cut -f2- -d-`"
10009 ;;
10010 *cygwin*)
10011 MYDISTRO="`echo $target | cut -f2- -d-`"
10012 ;;
10013 *nto-qnx*)
10014 MYDISTRO="`uname -s`-`uname -r`"
10015 ;;
10016 *qnx*)
10017 MYDISTRO="`uname -s`-`uname -v`"
10018 ;;
10019 *)
10020 MYDISTRO="$target"
10021 ;;
10022 esac
10023 fi
10024
10025
10026
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for service manager" >&5
10028 $as_echo_n "checking for service manager... " >&6; }
10029 if test -f /usr/bin/systemctl -o -f /bin/systemctl ; then
10030 initinstaller="installsystemd"
10031 systemdinstallpath=`pkg-config systemd --variable=systemdsystemunitdir`
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: systemd" >&5
10033 $as_echo "systemd" >&6; }
10034 elif test -f /sbin/initctl ; then
10035 initinstaller="installupstart"
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: upstart" >&5
10037 $as_echo "upstart" >&6; }
10038 elif test -f /sbin/insserv ; then
10039 # SuSE sysvinit
10040 initinstaller="installinsserv"
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: insserv" >&5
10042 $as_echo "insserv" >&6; }
10043 else
10044 initinstaller="installsysvinit"
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sysvinit" >&5
10046 $as_echo "sysvinit" >&6; }
10047 fi
10048
10049
10050
10051
10052 $as_echo "#define UNIX 1" >>confdefs.h
10053
10054
10055
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10057 $as_echo_n "checking whether char is unsigned... " >&6; }
10058 if ${ac_cv_c_char_unsigned+:} false; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 $ac_includes_default
10064 int
10065 main ()
10066 {
10067 static int test_array [1 - 2 * !(((char) -1) < 0)];
10068 test_array [0] = 0;
10069 return test_array [0];
10070
10071 ;
10072 return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_c_try_compile "$LINENO"; then :
10076 ac_cv_c_char_unsigned=no
10077 else
10078 ac_cv_c_char_unsigned=yes
10079 fi
10080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 fi
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10083 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10084 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10085 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10086
10087 fi
10088
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler switch for unsigned char" >&5
10090 $as_echo_n "checking compiler switch for unsigned char... " >&6; }
10091 #
10092 # QNX4 Watcom compiler is unsigned char by default
10093 #
10094 if test "$on_qnx4" = yes -a "$ac_cv_prog_CC" = "cc" ; then
10095 qnx4_char_unsigned="yes"
10096 fi
10097
10098 if test "$ac_cv_c_char_unsigned" = yes -o "$qnx4_char_unsigned" = yes; then
10099 MH_UNSIGNED_CHAR_SWITCH=""
10100 msg="not needed - char is unsigned by default"
10101 else
10102 case "$ac_cv_prog_CC" in
10103 gcc)
10104 MH_UNSIGNED_CHAR_SWITCH="-funsigned-char"
10105 msg="$MH_UNSIGNED_CHAR_SWITCH"
10106 ;;
10107 xlC)
10108 MH_UNSIGNED_CHAR_SWITCH="-qchars=unsigned"
10109 msg="$MH_UNSIGNED_CHAR_SWITCH"
10110 ;;
10111 *)
10112 save_cflags="$CFLAGS"
10113 mh_have_unsigned_char_switch=no
10114 mh_unsigned_flags="-funsigned-char -xchar=unsigned"
10115 for mh_flag in $mh_unsigned_flags; do
10116 CFLAGS="$CFLAGS $mh_flag"
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 #include <stdio.h>
10120 int
10121 main ()
10122 {
10123 char x;
10124 ;
10125 return 0;
10126 }
10127 _ACEOF
10128 if ac_fn_c_try_compile "$LINENO"; then :
10129 MH_UNSIGNED_CHAR_SWITCH="$mh_flag"; msg="$MH_UNSIGNED_CHAR_SWITCH"; mh_have_unsigned_char_switch=yes
10130 fi
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 CFLAGS="$save_cflags"
10133 if test "$mh_have_unsigned_char_switch" = yes; then
10134 break
10135 fi
10136 done
10137 if test "$mh_have_unsigned_char_switch" = no; then
10138 msg="unknown - assuming unsigned by default but running execiser will confirm"
10139 fi
10140 ;;
10141 esac
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$msg\"" >&5
10144 $as_echo "\"$msg\"" >&6; }
10145
10146
10147
10148
10149 ac_config_files="$ac_config_files $mymakefile regina-config rxstack.init.d libregina.pc APKBUILD PackageInfo PackageInfo-devel PackageInfo-lib Regina.spec debian/rules"
10150
10151 cat >confcache <<\_ACEOF
10152 # This file is a shell script that caches the results of configure
10153 # tests run on this system so they can be shared between configure
10154 # scripts and configure runs, see configure's option --config-cache.
10155 # It is not useful on other systems. If it contains results you don't
10156 # want to keep, you may remove or edit it.
10157 #
10158 # config.status only pays attention to the cache file if you give it
10159 # the --recheck option to rerun configure.
10160 #
10161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10163 # following values.
10164
10165 _ACEOF
10166
10167 # The following way of writing the cache mishandles newlines in values,
10168 # but we know of no workaround that is simple, portable, and efficient.
10169 # So, we kill variables containing newlines.
10170 # Ultrix sh set writes to stderr and can't be redirected directly,
10171 # and sets the high bit in the cache file unless we assign to the vars.
10172 (
10173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10174 eval ac_val=\$$ac_var
10175 case $ac_val in #(
10176 *${as_nl}*)
10177 case $ac_var in #(
10178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10180 esac
10181 case $ac_var in #(
10182 _ | IFS | as_nl) ;; #(
10183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10184 *) { eval $ac_var=; unset $ac_var;} ;;
10185 esac ;;
10186 esac
10187 done
10188
10189 (set) 2>&1 |
10190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10191 *${as_nl}ac_space=\ *)
10192 # `set' does not quote correctly, so add quotes: double-quote
10193 # substitution turns \\\\ into \\, and sed turns \\ into \.
10194 sed -n \
10195 "s/'/'\\\\''/g;
10196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10197 ;; #(
10198 *)
10199 # `set' quotes correctly as required by POSIX, so do not add quotes.
10200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10201 ;;
10202 esac |
10203 sort
10204 ) |
10205 sed '
10206 /^ac_cv_env_/b end
10207 t clear
10208 :clear
10209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10210 t end
10211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10212 :end' >>confcache
10213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10214 if test -w "$cache_file"; then
10215 if test "x$cache_file" != "x/dev/null"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10217 $as_echo "$as_me: updating cache $cache_file" >&6;}
10218 if test ! -f "$cache_file" || test -h "$cache_file"; then
10219 cat confcache >"$cache_file"
10220 else
10221 case $cache_file in #(
10222 */* | ?:*)
10223 mv -f confcache "$cache_file"$$ &&
10224 mv -f "$cache_file"$$ "$cache_file" ;; #(
10225 *)
10226 mv -f confcache "$cache_file" ;;
10227 esac
10228 fi
10229 fi
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10233 fi
10234 fi
10235 rm -f confcache
10236
10237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10238 # Let make expand exec_prefix.
10239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10240
10241 DEFS=-DHAVE_CONFIG_H
10242
10243 ac_libobjs=
10244 ac_ltlibobjs=
10245 U=
10246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10247 # 1. Remove the extension, and $U if already installed.
10248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10249 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10251 # will be set to the directory where LIBOBJS objects are built.
10252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10254 done
10255 LIBOBJS=$ac_libobjs
10256
10257 LTLIBOBJS=$ac_ltlibobjs
10258
10259
10260
10261 : "${CONFIG_STATUS=./config.status}"
10262 ac_write_fail=0
10263 ac_clean_files_save=$ac_clean_files
10264 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10266 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10267 as_write_fail=0
10268 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10269 #! $SHELL
10270 # Generated by $as_me.
10271 # Run this file to recreate the current configuration.
10272 # Compiler output produced by configure, useful for debugging
10273 # configure, is in config.log if it exists.
10274
10275 debug=false
10276 ac_cs_recheck=false
10277 ac_cs_silent=false
10278
10279 SHELL=\${CONFIG_SHELL-$SHELL}
10280 export SHELL
10281 _ASEOF
10282 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10283 ## -------------------- ##
10284 ## M4sh Initialization. ##
10285 ## -------------------- ##
10286
10287 # Be more Bourne compatible
10288 DUALCASE=1; export DUALCASE # for MKS sh
10289 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10290 emulate sh
10291 NULLCMD=:
10292 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10293 # is contrary to our usage. Disable this feature.
10294 alias -g '${1+"$@"}'='"$@"'
10295 setopt NO_GLOB_SUBST
10296 else
10297 case `(set -o) 2>/dev/null` in #(
10298 *posix*) :
10299 set -o posix ;; #(
10300 *) :
10301 ;;
10302 esac
10303 fi
10304
10305
10306 as_nl='
10307 '
10308 export as_nl
10309 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10310 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10311 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10312 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10313 # Prefer a ksh shell builtin over an external printf program on Solaris,
10314 # but without wasting forks for bash or zsh.
10315 if test -z "$BASH_VERSION$ZSH_VERSION" \
10316 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10317 as_echo='print -r --'
10318 as_echo_n='print -rn --'
10319 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10320 as_echo='printf %s\n'
10321 as_echo_n='printf %s'
10322 else
10323 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10324 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10325 as_echo_n='/usr/ucb/echo -n'
10326 else
10327 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10328 as_echo_n_body='eval
10329 arg=$1;
10330 case $arg in #(
10331 *"$as_nl"*)
10332 expr "X$arg" : "X\\(.*\\)$as_nl";
10333 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10334 esac;
10335 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10336 '
10337 export as_echo_n_body
10338 as_echo_n='sh -c $as_echo_n_body as_echo'
10339 fi
10340 export as_echo_body
10341 as_echo='sh -c $as_echo_body as_echo'
10342 fi
10343
10344 # The user is always right.
10345 if test "${PATH_SEPARATOR+set}" != set; then
10346 PATH_SEPARATOR=:
10347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10348 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10349 PATH_SEPARATOR=';'
10350 }
10351 fi
10352
10353
10354 # IFS
10355 # We need space, tab and new line, in precisely that order. Quoting is
10356 # there to prevent editors from complaining about space-tab.
10357 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10358 # splitting by setting IFS to empty value.)
10359 IFS=" "" $as_nl"
10360
10361 # Find who we are. Look in the path if we contain no directory separator.
10362 as_myself=
10363 case $0 in #((
10364 *[\\/]* ) as_myself=$0 ;;
10365 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10371 done
10372 IFS=$as_save_IFS
10373
10374 ;;
10375 esac
10376 # We did not find ourselves, most probably we were run as `sh COMMAND'
10377 # in which case we are not to be found in the path.
10378 if test "x$as_myself" = x; then
10379 as_myself=$0
10380 fi
10381 if test ! -f "$as_myself"; then
10382 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10383 exit 1
10384 fi
10385
10386 # Unset variables that we do not need and which cause bugs (e.g. in
10387 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10388 # suppresses any "Segmentation fault" message there. '((' could
10389 # trigger a bug in pdksh 5.2.14.
10390 for as_var in BASH_ENV ENV MAIL MAILPATH
10391 do eval test x\${$as_var+set} = xset \
10392 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10393 done
10394 PS1='$ '
10395 PS2='> '
10396 PS4='+ '
10397
10398 # NLS nuisances.
10399 LC_ALL=C
10400 export LC_ALL
10401 LANGUAGE=C
10402 export LANGUAGE
10403
10404 # CDPATH.
10405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10406
10407
10408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10409 # ----------------------------------------
10410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10412 # script with STATUS, using 1 if that was 0.
10413 as_fn_error ()
10414 {
10415 as_status=$1; test $as_status -eq 0 && as_status=1
10416 if test "$4"; then
10417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10419 fi
10420 $as_echo "$as_me: error: $2" >&2
10421 as_fn_exit $as_status
10422 } # as_fn_error
10423
10424
10425 # as_fn_set_status STATUS
10426 # -----------------------
10427 # Set $? to STATUS, without forking.
10428 as_fn_set_status ()
10429 {
10430 return $1
10431 } # as_fn_set_status
10432
10433 # as_fn_exit STATUS
10434 # -----------------
10435 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10436 as_fn_exit ()
10437 {
10438 set +e
10439 as_fn_set_status $1
10440 exit $1
10441 } # as_fn_exit
10442
10443 # as_fn_unset VAR
10444 # ---------------
10445 # Portably unset VAR.
10446 as_fn_unset ()
10447 {
10448 { eval $1=; unset $1;}
10449 }
10450 as_unset=as_fn_unset
10451 # as_fn_append VAR VALUE
10452 # ----------------------
10453 # Append the text in VALUE to the end of the definition contained in VAR. Take
10454 # advantage of any shell optimizations that allow amortized linear growth over
10455 # repeated appends, instead of the typical quadratic growth present in naive
10456 # implementations.
10457 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10458 eval 'as_fn_append ()
10459 {
10460 eval $1+=\$2
10461 }'
10462 else
10463 as_fn_append ()
10464 {
10465 eval $1=\$$1\$2
10466 }
10467 fi # as_fn_append
10468
10469 # as_fn_arith ARG...
10470 # ------------------
10471 # Perform arithmetic evaluation on the ARGs, and store the result in the
10472 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10473 # must be portable across $(()) and expr.
10474 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10475 eval 'as_fn_arith ()
10476 {
10477 as_val=$(( $* ))
10478 }'
10479 else
10480 as_fn_arith ()
10481 {
10482 as_val=`expr "$@" || test $? -eq 1`
10483 }
10484 fi # as_fn_arith
10485
10486
10487 if expr a : '\(a\)' >/dev/null 2>&1 &&
10488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10489 as_expr=expr
10490 else
10491 as_expr=false
10492 fi
10493
10494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10495 as_basename=basename
10496 else
10497 as_basename=false
10498 fi
10499
10500 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10501 as_dirname=dirname
10502 else
10503 as_dirname=false
10504 fi
10505
10506 as_me=`$as_basename -- "$0" ||
10507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10508 X"$0" : 'X\(//\)$' \| \
10509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10510 $as_echo X/"$0" |
10511 sed '/^.*\/\([^/][^/]*\)\/*$/{
10512 s//\1/
10513 q
10514 }
10515 /^X\/\(\/\/\)$/{
10516 s//\1/
10517 q
10518 }
10519 /^X\/\(\/\).*/{
10520 s//\1/
10521 q
10522 }
10523 s/.*/./; q'`
10524
10525 # Avoid depending upon Character Ranges.
10526 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10527 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10528 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10529 as_cr_digits='0123456789'
10530 as_cr_alnum=$as_cr_Letters$as_cr_digits
10531
10532 ECHO_C= ECHO_N= ECHO_T=
10533 case `echo -n x` in #(((((
10534 -n*)
10535 case `echo 'xy\c'` in
10536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10537 xy) ECHO_C='\c';;
10538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10539 ECHO_T=' ';;
10540 esac;;
10541 *)
10542 ECHO_N='-n';;
10543 esac
10544
10545 rm -f conf$$ conf$$.exe conf$$.file
10546 if test -d conf$$.dir; then
10547 rm -f conf$$.dir/conf$$.file
10548 else
10549 rm -f conf$$.dir
10550 mkdir conf$$.dir 2>/dev/null
10551 fi
10552 if (echo >conf$$.file) 2>/dev/null; then
10553 if ln -s conf$$.file conf$$ 2>/dev/null; then
10554 as_ln_s='ln -s'
10555 # ... but there are two gotchas:
10556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10558 # In both cases, we have to default to `cp -pR'.
10559 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10560 as_ln_s='cp -pR'
10561 elif ln conf$$.file conf$$ 2>/dev/null; then
10562 as_ln_s=ln
10563 else
10564 as_ln_s='cp -pR'
10565 fi
10566 else
10567 as_ln_s='cp -pR'
10568 fi
10569 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10570 rmdir conf$$.dir 2>/dev/null
10571
10572
10573 # as_fn_mkdir_p
10574 # -------------
10575 # Create "$as_dir" as a directory, including parents if necessary.
10576 as_fn_mkdir_p ()
10577 {
10578
10579 case $as_dir in #(
10580 -*) as_dir=./$as_dir;;
10581 esac
10582 test -d "$as_dir" || eval $as_mkdir_p || {
10583 as_dirs=
10584 while :; do
10585 case $as_dir in #(
10586 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10587 *) as_qdir=$as_dir;;
10588 esac
10589 as_dirs="'$as_qdir' $as_dirs"
10590 as_dir=`$as_dirname -- "$as_dir" ||
10591 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10592 X"$as_dir" : 'X\(//\)[^/]' \| \
10593 X"$as_dir" : 'X\(//\)$' \| \
10594 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10595 $as_echo X"$as_dir" |
10596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10597 s//\1/
10598 q
10599 }
10600 /^X\(\/\/\)[^/].*/{
10601 s//\1/
10602 q
10603 }
10604 /^X\(\/\/\)$/{
10605 s//\1/
10606 q
10607 }
10608 /^X\(\/\).*/{
10609 s//\1/
10610 q
10611 }
10612 s/.*/./; q'`
10613 test -d "$as_dir" && break
10614 done
10615 test -z "$as_dirs" || eval "mkdir $as_dirs"
10616 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10617
10618
10619 } # as_fn_mkdir_p
10620 if mkdir -p . 2>/dev/null; then
10621 as_mkdir_p='mkdir -p "$as_dir"'
10622 else
10623 test -d ./-p && rmdir ./-p
10624 as_mkdir_p=false
10625 fi
10626
10627
10628 # as_fn_executable_p FILE
10629 # -----------------------
10630 # Test if FILE is an executable regular file.
10631 as_fn_executable_p ()
10632 {
10633 test -f "$1" && test -x "$1"
10634 } # as_fn_executable_p
10635 as_test_x='test -x'
10636 as_executable_p=as_fn_executable_p
10637
10638 # Sed expression to map a string onto a valid CPP name.
10639 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10640
10641 # Sed expression to map a string onto a valid variable name.
10642 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10643
10644
10645 exec 6>&1
10646 ## ----------------------------------- ##
10647 ## Main body of $CONFIG_STATUS script. ##
10648 ## ----------------------------------- ##
10649 _ASEOF
10650 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10651
10652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10653 # Save the log message, to keep $0 and so on meaningful, and to
10654 # report actual input values of CONFIG_FILES etc. instead of their
10655 # values after options handling.
10656 ac_log="
10657 This file was extended by Regina Rexx Interpreter $as_me 3.9.5, which was
10658 generated by GNU Autoconf 2.69. Invocation command line was
10659
10660 CONFIG_FILES = $CONFIG_FILES
10661 CONFIG_HEADERS = $CONFIG_HEADERS
10662 CONFIG_LINKS = $CONFIG_LINKS
10663 CONFIG_COMMANDS = $CONFIG_COMMANDS
10664 $ $0 $@
10665
10666 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10667 "
10668
10669 _ACEOF
10670
10671 case $ac_config_files in *"
10672 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10673 esac
10674
10675 case $ac_config_headers in *"
10676 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10677 esac
10678
10679
10680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10681 # Files that config.status was made for.
10682 config_files="$ac_config_files"
10683 config_headers="$ac_config_headers"
10684
10685 _ACEOF
10686
10687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10688 ac_cs_usage="\
10689 \`$as_me' instantiates files and other configuration actions
10690 from templates according to the current configuration. Unless the files
10691 and actions are specified as TAGs, all are instantiated by default.
10692
10693 Usage: $0 [OPTION]... [TAG]...
10694
10695 -h, --help print this help, then exit
10696 -V, --version print version number and configuration settings, then exit
10697 --config print configuration, then exit
10698 -q, --quiet, --silent
10699 do not print progress messages
10700 -d, --debug don't remove temporary files
10701 --recheck update $as_me by reconfiguring in the same conditions
10702 --file=FILE[:TEMPLATE]
10703 instantiate the configuration file FILE
10704 --header=FILE[:TEMPLATE]
10705 instantiate the configuration header FILE
10706
10707 Configuration files:
10708 $config_files
10709
10710 Configuration headers:
10711 $config_headers
10712
10713 Report bugs to <[email protected]>."
10714
10715 _ACEOF
10716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10717 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10718 ac_cs_version="\\
10719 Regina Rexx Interpreter config.status 3.9.5
10720 configured by $0, generated by GNU Autoconf 2.69,
10721 with options \\"\$ac_cs_config\\"
10722
10723 Copyright (C) 2012 Free Software Foundation, Inc.
10724 This config.status script is free software; the Free Software Foundation
10725 gives unlimited permission to copy, distribute and modify it."
10726
10727 ac_pwd='$ac_pwd'
10728 srcdir='$srcdir'
10729 test -n "\$AWK" || AWK=awk
10730 _ACEOF
10731
10732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10733 # The default lists apply if the user does not specify any file.
10734 ac_need_defaults=:
10735 while test $# != 0
10736 do
10737 case $1 in
10738 --*=?*)
10739 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10740 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10741 ac_shift=:
10742 ;;
10743 --*=)
10744 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10745 ac_optarg=
10746 ac_shift=:
10747 ;;
10748 *)
10749 ac_option=$1
10750 ac_optarg=$2
10751 ac_shift=shift
10752 ;;
10753 esac
10754
10755 case $ac_option in
10756 # Handling of the options.
10757 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10758 ac_cs_recheck=: ;;
10759 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10760 $as_echo "$ac_cs_version"; exit ;;
10761 --config | --confi | --conf | --con | --co | --c )
10762 $as_echo "$ac_cs_config"; exit ;;
10763 --debug | --debu | --deb | --de | --d | -d )
10764 debug=: ;;
10765 --file | --fil | --fi | --f )
10766 $ac_shift
10767 case $ac_optarg in
10768 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10769 '') as_fn_error $? "missing file argument" ;;
10770 esac
10771 as_fn_append CONFIG_FILES " '$ac_optarg'"
10772 ac_need_defaults=false;;
10773 --header | --heade | --head | --hea )
10774 $ac_shift
10775 case $ac_optarg in
10776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10777 esac
10778 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10779 ac_need_defaults=false;;
10780 --he | --h)
10781 # Conflict between --help and --header
10782 as_fn_error $? "ambiguous option: \`$1'
10783 Try \`$0 --help' for more information.";;
10784 --help | --hel | -h )
10785 $as_echo "$ac_cs_usage"; exit ;;
10786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10788 ac_cs_silent=: ;;
10789
10790 # This is an error.
10791 -*) as_fn_error $? "unrecognized option: \`$1'
10792 Try \`$0 --help' for more information." ;;
10793
10794 *) as_fn_append ac_config_targets " $1"
10795 ac_need_defaults=false ;;
10796
10797 esac
10798 shift
10799 done
10800
10801 ac_configure_extra_args=
10802
10803 if $ac_cs_silent; then
10804 exec 6>/dev/null
10805 ac_configure_extra_args="$ac_configure_extra_args --silent"
10806 fi
10807
10808 _ACEOF
10809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10810 if \$ac_cs_recheck; then
10811 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10812 shift
10813 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10814 CONFIG_SHELL='$SHELL'
10815 export CONFIG_SHELL
10816 exec "\$@"
10817 fi
10818
10819 _ACEOF
10820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10821 exec 5>>config.log
10822 {
10823 echo
10824 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10825 ## Running $as_me. ##
10826 _ASBOX
10827 $as_echo "$ac_log"
10828 } >&5
10829
10830 _ACEOF
10831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10832 _ACEOF
10833
10834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10835
10836 # Handling of arguments.
10837 for ac_config_target in $ac_config_targets
10838 do
10839 case $ac_config_target in
10840 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10841 "$mymakefile") CONFIG_FILES="$CONFIG_FILES $mymakefile" ;;
10842 "regina-config") CONFIG_FILES="$CONFIG_FILES regina-config" ;;
10843 "rxstack.init.d") CONFIG_FILES="$CONFIG_FILES rxstack.init.d" ;;
10844 "libregina.pc") CONFIG_FILES="$CONFIG_FILES libregina.pc" ;;
10845 "APKBUILD") CONFIG_FILES="$CONFIG_FILES APKBUILD" ;;
10846 "PackageInfo") CONFIG_FILES="$CONFIG_FILES PackageInfo" ;;
10847 "PackageInfo-devel") CONFIG_FILES="$CONFIG_FILES PackageInfo-devel" ;;
10848 "PackageInfo-lib") CONFIG_FILES="$CONFIG_FILES PackageInfo-lib" ;;
10849 "Regina.spec") CONFIG_FILES="$CONFIG_FILES Regina.spec" ;;
10850 "debian/rules") CONFIG_FILES="$CONFIG_FILES debian/rules" ;;
10851
10852 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10853 esac
10854 done
10855
10856
10857 # If the user did not use the arguments to specify the items to instantiate,
10858 # then the envvar interface is used. Set only those that are not.
10859 # We use the long form for the default assignment because of an extremely
10860 # bizarre bug on SunOS 4.1.3.
10861 if $ac_need_defaults; then
10862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10864 fi
10865
10866 # Have a temporary directory for convenience. Make it in the build tree
10867 # simply because there is no reason against having it here, and in addition,
10868 # creating and moving files from /tmp can sometimes cause problems.
10869 # Hook for its removal unless debugging.
10870 # Note that there is a small window in which the directory will not be cleaned:
10871 # after its creation but before its name has been assigned to `$tmp'.
10872 $debug ||
10873 {
10874 tmp= ac_tmp=
10875 trap 'exit_status=$?
10876 : "${ac_tmp:=$tmp}"
10877 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10878 ' 0
10879 trap 'as_fn_exit 1' 1 2 13 15
10880 }
10881 # Create a (secure) tmp directory for tmp files.
10882
10883 {
10884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10885 test -d "$tmp"
10886 } ||
10887 {
10888 tmp=./conf$$-$RANDOM
10889 (umask 077 && mkdir "$tmp")
10890 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10891 ac_tmp=$tmp
10892
10893 # Set up the scripts for CONFIG_FILES section.
10894 # No need to generate them if there are no CONFIG_FILES.
10895 # This happens for instance with `./config.status config.h'.
10896 if test -n "$CONFIG_FILES"; then
10897
10898
10899 ac_cr=`echo X | tr X '\015'`
10900 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10901 # But we know of no other shell where ac_cr would be empty at this
10902 # point, so we can use a bashism as a fallback.
10903 if test "x$ac_cr" = x; then
10904 eval ac_cr=\$\'\\r\'
10905 fi
10906 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10907 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10908 ac_cs_awk_cr='\\r'
10909 else
10910 ac_cs_awk_cr=$ac_cr
10911 fi
10912
10913 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10914 _ACEOF
10915
10916
10917 {
10918 echo "cat >conf$$subs.awk <<_ACEOF" &&
10919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10920 echo "_ACEOF"
10921 } >conf$$subs.sh ||
10922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10924 ac_delim='%!_!# '
10925 for ac_last_try in false false false false false :; do
10926 . ./conf$$subs.sh ||
10927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10928
10929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10930 if test $ac_delim_n = $ac_delim_num; then
10931 break
10932 elif $ac_last_try; then
10933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10934 else
10935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10936 fi
10937 done
10938 rm -f conf$$subs.sh
10939
10940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10941 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10942 _ACEOF
10943 sed -n '
10944 h
10945 s/^/S["/; s/!.*/"]=/
10946 p
10947 g
10948 s/^[^!]*!//
10949 :repl
10950 t repl
10951 s/'"$ac_delim"'$//
10952 t delim
10953 :nl
10954 h
10955 s/\(.\{148\}\)..*/\1/
10956 t more1
10957 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10958 p
10959 n
10960 b repl
10961 :more1
10962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10963 p
10964 g
10965 s/.\{148\}//
10966 t nl
10967 :delim
10968 h
10969 s/\(.\{148\}\)..*/\1/
10970 t more2
10971 s/["\\]/\\&/g; s/^/"/; s/$/"/
10972 p
10973 b
10974 :more2
10975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10976 p
10977 g
10978 s/.\{148\}//
10979 t delim
10980 ' <conf$$subs.awk | sed '
10981 /^[^""]/{
10982 N
10983 s/\n//
10984 }
10985 ' >>$CONFIG_STATUS || ac_write_fail=1
10986 rm -f conf$$subs.awk
10987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10988 _ACAWK
10989 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10990 for (key in S) S_is_set[key] = 1
10991 FS = ""
10992
10993 }
10994 {
10995 line = $ 0
10996 nfields = split(line, field, "@")
10997 substed = 0
10998 len = length(field[1])
10999 for (i = 2; i < nfields; i++) {
11000 key = field[i]
11001 keylen = length(key)
11002 if (S_is_set[key]) {
11003 value = S[key]
11004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11005 len += length(value) + length(field[++i])
11006 substed = 1
11007 } else
11008 len += 1 + keylen
11009 }
11010
11011 print line
11012 }
11013
11014 _ACAWK
11015 _ACEOF
11016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11017 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11019 else
11020 cat
11021 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11022 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11023 _ACEOF
11024
11025 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11026 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11027 # trailing colons and then remove the whole line if VPATH becomes empty
11028 # (actually we leave an empty line to preserve line numbers).
11029 if test "x$srcdir" = x.; then
11030 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11031 h
11032 s///
11033 s/^/:/
11034 s/[ ]*$/:/
11035 s/:\$(srcdir):/:/g
11036 s/:\${srcdir}:/:/g
11037 s/:@srcdir@:/:/g
11038 s/^:*//
11039 s/:*$//
11040 x
11041 s/\(=[ ]*\).*/\1/
11042 G
11043 s/\n//
11044 s/^[^=]*=[ ]*$//
11045 }'
11046 fi
11047
11048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11049 fi # test -n "$CONFIG_FILES"
11050
11051 # Set up the scripts for CONFIG_HEADERS section.
11052 # No need to generate them if there are no CONFIG_HEADERS.
11053 # This happens for instance with `./config.status Makefile'.
11054 if test -n "$CONFIG_HEADERS"; then
11055 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11056 BEGIN {
11057 _ACEOF
11058
11059 # Transform confdefs.h into an awk script `defines.awk', embedded as
11060 # here-document in config.status, that substitutes the proper values into
11061 # config.h.in to produce config.h.
11062
11063 # Create a delimiter string that does not exist in confdefs.h, to ease
11064 # handling of long lines.
11065 ac_delim='%!_!# '
11066 for ac_last_try in false false :; do
11067 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11068 if test -z "$ac_tt"; then
11069 break
11070 elif $ac_last_try; then
11071 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11072 else
11073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11074 fi
11075 done
11076
11077 # For the awk script, D is an array of macro values keyed by name,
11078 # likewise P contains macro parameters if any. Preserve backslash
11079 # newline sequences.
11080
11081 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11082 sed -n '
11083 s/.\{148\}/&'"$ac_delim"'/g
11084 t rset
11085 :rset
11086 s/^[ ]*#[ ]*define[ ][ ]*/ /
11087 t def
11088 d
11089 :def
11090 s/\\$//
11091 t bsnl
11092 s/["\\]/\\&/g
11093 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11094 D["\1"]=" \3"/p
11095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11096 d
11097 :bsnl
11098 s/["\\]/\\&/g
11099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11100 D["\1"]=" \3\\\\\\n"\\/p
11101 t cont
11102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11103 t cont
11104 d
11105 :cont
11106 n
11107 s/.\{148\}/&'"$ac_delim"'/g
11108 t clear
11109 :clear
11110 s/\\$//
11111 t bsnlc
11112 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11113 d
11114 :bsnlc
11115 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11116 b cont
11117 ' <confdefs.h | sed '
11118 s/'"$ac_delim"'/"\\\
11119 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11120
11121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11122 for (key in D) D_is_set[key] = 1
11123 FS = ""
11124 }
11125 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11126 line = \$ 0
11127 split(line, arg, " ")
11128 if (arg[1] == "#") {
11129 defundef = arg[2]
11130 mac1 = arg[3]
11131 } else {
11132 defundef = substr(arg[1], 2)
11133 mac1 = arg[2]
11134 }
11135 split(mac1, mac2, "(") #)
11136 macro = mac2[1]
11137 prefix = substr(line, 1, index(line, defundef) - 1)
11138 if (D_is_set[macro]) {
11139 # Preserve the white space surrounding the "#".
11140 print prefix "define", macro P[macro] D[macro]
11141 next
11142 } else {
11143 # Replace #undef with comments. This is necessary, for example,
11144 # in the case of _POSIX_SOURCE, which is predefined and required
11145 # on some systems where configure will not decide to define it.
11146 if (defundef == "undef") {
11147 print "/*", prefix defundef, macro, "*/"
11148 next
11149 }
11150 }
11151 }
11152 { print }
11153 _ACAWK
11154 _ACEOF
11155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11156 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11157 fi # test -n "$CONFIG_HEADERS"
11158
11159
11160 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11161 shift
11162 for ac_tag
11163 do
11164 case $ac_tag in
11165 :[FHLC]) ac_mode=$ac_tag; continue;;
11166 esac
11167 case $ac_mode$ac_tag in
11168 :[FHL]*:*);;
11169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11170 :[FH]-) ac_tag=-:-;;
11171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11172 esac
11173 ac_save_IFS=$IFS
11174 IFS=:
11175 set x $ac_tag
11176 IFS=$ac_save_IFS
11177 shift
11178 ac_file=$1
11179 shift
11180
11181 case $ac_mode in
11182 :L) ac_source=$1;;
11183 :[FH])
11184 ac_file_inputs=
11185 for ac_f
11186 do
11187 case $ac_f in
11188 -) ac_f="$ac_tmp/stdin";;
11189 *) # Look for the file first in the build tree, then in the source tree
11190 # (if the path is not absolute). The absolute path cannot be DOS-style,
11191 # because $ac_f cannot contain `:'.
11192 test -f "$ac_f" ||
11193 case $ac_f in
11194 [\\/$]*) false;;
11195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11196 esac ||
11197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11198 esac
11199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11200 as_fn_append ac_file_inputs " '$ac_f'"
11201 done
11202
11203 # Let's still pretend it is `configure' which instantiates (i.e., don't
11204 # use $as_me), people would be surprised to read:
11205 # /* config.h. Generated by config.status. */
11206 configure_input='Generated from '`
11207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11208 `' by configure.'
11209 if test x"$ac_file" != x-; then
11210 configure_input="$ac_file. $configure_input"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11212 $as_echo "$as_me: creating $ac_file" >&6;}
11213 fi
11214 # Neutralize special characters interpreted by sed in replacement strings.
11215 case $configure_input in #(
11216 *\&* | *\|* | *\\* )
11217 ac_sed_conf_input=`$as_echo "$configure_input" |
11218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11219 *) ac_sed_conf_input=$configure_input;;
11220 esac
11221
11222 case $ac_tag in
11223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11225 esac
11226 ;;
11227 esac
11228
11229 ac_dir=`$as_dirname -- "$ac_file" ||
11230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11231 X"$ac_file" : 'X\(//\)[^/]' \| \
11232 X"$ac_file" : 'X\(//\)$' \| \
11233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11234 $as_echo X"$ac_file" |
11235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11236 s//\1/
11237 q
11238 }
11239 /^X\(\/\/\)[^/].*/{
11240 s//\1/
11241 q
11242 }
11243 /^X\(\/\/\)$/{
11244 s//\1/
11245 q
11246 }
11247 /^X\(\/\).*/{
11248 s//\1/
11249 q
11250 }
11251 s/.*/./; q'`
11252 as_dir="$ac_dir"; as_fn_mkdir_p
11253 ac_builddir=.
11254
11255 case "$ac_dir" in
11256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11257 *)
11258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11259 # A ".." for each directory in $ac_dir_suffix.
11260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11261 case $ac_top_builddir_sub in
11262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11264 esac ;;
11265 esac
11266 ac_abs_top_builddir=$ac_pwd
11267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11268 # for backward compatibility:
11269 ac_top_builddir=$ac_top_build_prefix
11270
11271 case $srcdir in
11272 .) # We are building in place.
11273 ac_srcdir=.
11274 ac_top_srcdir=$ac_top_builddir_sub
11275 ac_abs_top_srcdir=$ac_pwd ;;
11276 [\\/]* | ?:[\\/]* ) # Absolute name.
11277 ac_srcdir=$srcdir$ac_dir_suffix;
11278 ac_top_srcdir=$srcdir
11279 ac_abs_top_srcdir=$srcdir ;;
11280 *) # Relative name.
11281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11282 ac_top_srcdir=$ac_top_build_prefix$srcdir
11283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11284 esac
11285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11286
11287
11288 case $ac_mode in
11289 :F)
11290 #
11291 # CONFIG_FILE
11292 #
11293
11294 _ACEOF
11295
11296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11297 # If the template does not know about datarootdir, expand it.
11298 # FIXME: This hack should be removed a few years after 2.60.
11299 ac_datarootdir_hack=; ac_datarootdir_seen=
11300 ac_sed_dataroot='
11301 /datarootdir/ {
11302 p
11303 q
11304 }
11305 /@datadir@/p
11306 /@docdir@/p
11307 /@infodir@/p
11308 /@localedir@/p
11309 /@mandir@/p'
11310 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11311 *datarootdir*) ac_datarootdir_seen=yes;;
11312 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11314 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11315 _ACEOF
11316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11317 ac_datarootdir_hack='
11318 s&@datadir@&$datadir&g
11319 s&@docdir@&$docdir&g
11320 s&@infodir@&$infodir&g
11321 s&@localedir@&$localedir&g
11322 s&@mandir@&$mandir&g
11323 s&\\\${datarootdir}&$datarootdir&g' ;;
11324 esac
11325 _ACEOF
11326
11327 # Neutralize VPATH when `$srcdir' = `.'.
11328 # Shell code in configure.ac might set extrasub.
11329 # FIXME: do we really want to maintain this feature?
11330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11331 ac_sed_extra="$ac_vpsub
11332 $extrasub
11333 _ACEOF
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11335 :t
11336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11337 s|@configure_input@|$ac_sed_conf_input|;t t
11338 s&@top_builddir@&$ac_top_builddir_sub&;t t
11339 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11340 s&@srcdir@&$ac_srcdir&;t t
11341 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11342 s&@top_srcdir@&$ac_top_srcdir&;t t
11343 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11344 s&@builddir@&$ac_builddir&;t t
11345 s&@abs_builddir@&$ac_abs_builddir&;t t
11346 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11347 $ac_datarootdir_hack
11348 "
11349 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11350 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11351
11352 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11353 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11355 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11357 which seems to be undefined. Please make sure it is defined" >&5
11358 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11359 which seems to be undefined. Please make sure it is defined" >&2;}
11360
11361 rm -f "$ac_tmp/stdin"
11362 case $ac_file in
11363 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11364 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11365 esac \
11366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11367 ;;
11368 :H)
11369 #
11370 # CONFIG_HEADER
11371 #
11372 if test x"$ac_file" != x-; then
11373 {
11374 $as_echo "/* $configure_input */" \
11375 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11376 } >"$ac_tmp/config.h" \
11377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11378 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11380 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11381 else
11382 rm -f "$ac_file"
11383 mv "$ac_tmp/config.h" "$ac_file" \
11384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11385 fi
11386 else
11387 $as_echo "/* $configure_input */" \
11388 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11389 || as_fn_error $? "could not create -" "$LINENO" 5
11390 fi
11391 ;;
11392
11393
11394 esac
11395
11396 done # for ac_tag
11397
11398
11399 as_fn_exit 0
11400 _ACEOF
11401 ac_clean_files=$ac_clean_files_save
11402
11403 test $ac_write_fail = 0 ||
11404 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11405
11406
11407 # configure is writing to config.log, and then calls config.status.
11408 # config.status does its own redirection, appending to config.log.
11409 # Unfortunately, on DOS this fails, as config.log is still kept open
11410 # by configure, so config.status won't be able to write to it; its
11411 # output is simply discarded. So we exec the FD to /dev/null,
11412 # effectively closing config.log, so it can be properly (re)opened and
11413 # appended to by config.status. When coming back to configure, we
11414 # need to make the FD available again.
11415 if test "$no_create" != yes; then
11416 ac_cs_success=:
11417 ac_config_status_args=
11418 test "$silent" = yes &&
11419 ac_config_status_args="$ac_config_status_args --quiet"
11420 exec 5>/dev/null
11421 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11422 exec 5>>config.log
11423 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11424 # would make configure fail if this is the last instruction.
11425 $ac_cs_success || as_fn_exit 1
11426 fi
11427 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11429 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11430 fi
11431
11432 chmod 755 regina-config
11433 echo
11434 echo "Regina ($FULL_PACKAGE_NAME) has now been configured with the following options:"
11435 echo
11436 if test "x$SHL_TARGETS" = "x"; then
11437 echo " Dynamic Loading Support: none"
11438 else
11439 echo " Dynamic Loading Support: supported. Extra components: $SHL_TARGETS"
11440 fi
11441 if test "$with_dlfcnincdir" != no ; then
11442 echo " dlfcn headers in: $with_dlfcnincdir"
11443 fi
11444 if test "$with_dlfcnlibdir" != no ; then
11445 echo " dlfcn libraries in: $with_dlfcnlibdir"
11446 fi
11447
11448 myopts="${bitflag}BIT"
11449 if test "$with_debug" = yes ; then
11450 myopts="$myopts DEBUG"
11451 fi
11452 if test "$with_purify" = yes ; then
11453 myopts="$myopts PURIFY"
11454 fi
11455 if test "$with_efence" = yes; then
11456 myopts="$myopts EFENCE"
11457 fi
11458 if test "$with_orexx_bc" = yes; then
11459 myopts="$myopts OREXX_BINARY"
11460 fi
11461 if test "$with_gci" = yes; then
11462 myopts="$myopts GCI"
11463 fi
11464 if test "$with_flists" = no; then
11465 myopts="$myopts NO_FLISTS"
11466 fi
11467 if test "$with_socket" = no; then
11468 myopts="$myopts"
11469 else
11470 myopts="$myopts SOCKET=$with_socket"
11471 fi
11472
11473 if test "$build_static" = "yes"; then
11474 myfuncs=""
11475 if test "$with_testpackage" = "yes"; then
11476 myfuncs="$myfuncs test"
11477 fi
11478 if test "$with_regutil" = "yes"; then
11479 myfuncs="$myfuncs regutil"
11480 fi
11481 if test "$with_rexxcurses" = "yes"; then
11482 myfuncs="$myfuncs rexxcurses"
11483 fi
11484 if test "$with_rexxtk" = "yes"; then
11485 myfuncs="$myfuncs rexxtk"
11486 fi
11487 if test "$with_rexxgd" = "yes"; then
11488 myfuncs="$myfuncs rexxgd"
11489 fi
11490 if test "$with_rexxcurl" = "yes"; then
11491 myfuncs="$myfuncs rexxcurl"
11492 fi
11493 if test "$with_rexxsql" = "yes"; then
11494 myfuncs="$myfuncs rexxsql"
11495 fi
11496 if test "$with_rexxeec" = "yes"; then
11497 myfuncs="$myfuncs rexxeec"
11498 fi
11499 if test "$with_rexxisam" = "yes"; then
11500 myfuncs="$myfuncs rexxisam"
11501 fi
11502 if test "$with_rxsock" = "yes"; then
11503 myfuncs="$myfuncs rxsock"
11504 fi
11505 if test "$with_rexxdw" = "yes"; then
11506 myfuncs="$myfuncs rexxdw"
11507 fi
11508 if test "$with_rexxcsv" = "yes"; then
11509 myfuncs="$myfuncs rexxcsv"
11510 fi
11511 if test "$with_rexxpdf" = "yes"; then
11512 myfuncs="$myfuncs rexxpdf"
11513 fi
11514 if test "$with_rexxws" = "yes"; then
11515 myfuncs="$myfuncs rexxws"
11516 fi
11517 echo " Static Loaded Packages: $myfuncs"
11518 fi
11519
11520 if test "$on_beos" = yes; then
11521 bindir="/boot/home/config/bin"
11522 libdir="/boot/home/config/lib"
11523 fi
11524
11525 if test "$on_haiku" = yes; then
11526 bindir="/boot/home/config/non-packaged/bin"
11527 libdir="/boot/home/config/non-packaged/lib"
11528 addonsdir="/boot/home/config/non-packaged/lib/regina-rexx/addons"
11529 fi
11530
11531 echo " Build options: $myopts"
11532 echo " binaries will be installed in: $bindir"
11533 if test "x$binarybitprefix" = "x32"; then
11534 echo " binaries will have '32' appended to them. eg rexx32, regina32"
11535 fi
11536 echo " libraries will be installed in: $libdir"
11537 echo " addons will be installed in: $addonsdir"
11538 echo " {prefix}: $prefix"
11539 echo " {exec_prefix}: $exec_prefix"
11540 if test "x$rpmtopdir" != "x" ; then
11541 echo " RPM topdir: $rpmtopdir"
11542 fi
11543 if test "x$debtopdir" != "x" ; then
11544 echo " DEB topdir: $debtopdir"
11545 fi
11546 if test "x$apktopdir" != "x" ; then
11547 echo " APK topdir: $apktopdir"
11548 fi
11549 echo
11550 echo "To build the Regina binaries, and dynamically loadable libraries, type 'make'"
11551 echo "To install Regina in the above directories, type 'make install'"
11552 echo