3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 # Find the correct PATH separator. Usually this is `:', but
24 # DJGPP uses `;' like DOS.
25 if test "X${PATH_SEPARATOR+set}" != Xset; then
26 UNAME=${UNAME-`uname 2>/dev/null`}
28 *-DOS) lt_cv_sys_path_separator=';' ;;
29 *) lt_cv_sys_path_separator=':' ;;
34 # Check that we are running under the correct shell.
35 SHELL=${CONFIG_SHELL-/bin/sh}
39 # Remove one level of quotation (which was required for Make).
40 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
45 if test "X$1" = X--no-reexec; then
46 # Discard the --no-reexec flag, and continue.
48 elif test "X$1" = X--fallback-echo; then
49 # Avoid inline document here, it may be left over
51 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
52 # Yippee, $echo works!
55 # Restart under the correct shell.
56 exec $SHELL "$0" --no-reexec ${1+"$@"}
59 if test "X$1" = X--fallback-echo; then
60 # used as fallback echo
68 # The HP-UX ksh and POSIX shell print the target directory to stdout
70 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
72 if test -z "$ECHO"; then
73 if test "X${echo_test_string+set}" != Xset; then
74 # find a string as large as possible, as long as the shell can cope with it
75 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
76 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
77 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
78 echo_test_string="`eval $cmd`" &&
79 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
86 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
91 # The Solaris, AIX, and Digital Unix default echo programs unquote
92 # backslashes. This makes it impossible to quote backslashes using
93 # echo "$something" | sed 's/\\/\\\\/g'
95 # So, first we look for a working echo in the user's PATH.
97 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
98 for dir in $PATH /usr/ucb; do
99 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
100 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
101 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
102 test "X$echo_testing_string" = "X$echo_test_string"; then
109 if test "X$echo" = Xecho; then
110 # We didn't find a better echo, so look for alternatives.
111 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
112 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
113 test "X$echo_testing_string" = "X$echo_test_string"; then
114 # This shell has a builtin print -r that does the trick.
116 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
117 test "X$CONFIG_SHELL" != X/bin/ksh; then
118 # If we have ksh, try running ltconfig again with it.
119 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
120 export ORIGINAL_CONFIG_SHELL
121 CONFIG_SHELL=/bin/ksh
123 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
127 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
128 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
129 test "X$echo_testing_string" = "X$echo_test_string"; then
132 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133 test "X$echo_testing_string" = 'X\t' &&
134 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135 test "X$echo_testing_string" = "X$echo_test_string"; then
136 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
138 SHELL="$CONFIG_SHELL"
140 echo="$CONFIG_SHELL $0 --fallback-echo"
141 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142 test "X$echo_testing_string" = 'X\t' &&
143 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144 test "X$echo_testing_string" = "X$echo_test_string"; then
145 echo="$CONFIG_SHELL $0 --fallback-echo"
147 # maybe with a smaller string...
150 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
151 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
158 if test "$prev" != 'sed 50q "$0"'; then
159 echo_test_string=`eval $prev`
160 export echo_test_string
161 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
163 # Oops. We lost completely, so just stick with echo.
172 # Copy echo and quote the copy suitably for passing to libtool from
173 # the Makefile, instead of quoting the original, which is used later.
175 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
181 --disable-libtool-lock avoid locking (might break parallel builds)"
184 --with-pic try to use only PIC/non-PIC objects [default=use both]"
186 --enable-everything enable standard non-multichoice features: marked *
187 NOTE: this option is order dependent
188 NOTE: automatically enabled with --enable-shared"
190 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters"
192 --enable-xft enable xft support on systems that have it"
194 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)"
196 --with-encoding=NAME set language default encoding to NAME (default: sjis)
197 (eucj|sjis|big5|gb|kr|noenc)"
199 --enable-utmp enable utmp (utmpx) support *"
201 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*"
203 --enable-lastlog enable lastlog support (requires --enable-utmp) *"
205 --enable-xpm-background enable XPM background pixmaps *"
207 --enable-transparency enable transparent backgrounds *"
209 --enable-menubar enable menubar *"
211 --enable-graphics enable rxvt own graphics mode (see src/graphics) *"
213 --enable-rxvt-scroll enable rxvt style scrollbar *"
215 --enable-next-scroll enable NeXT style scrollbar *"
217 --enable-xterm-scroll enable Xterm style scrollbar *"
219 --enable-half-shadow use half width/height shadow on rxvt scrollbar"
221 --enable-xim XIM (X Input Method) protocol support *"
223 --enable-greek enable greek keyboard support"
225 --enable-ttygid enable tty setting to group named "tty""
227 --disable-backspace-key disable handling of the backspace key"
229 --disable-delete-key disable handling of the delete key"
231 --disable-resources disable all resource checking"
233 --enable-xgetdefault enable resources via X instead of our small version"
235 --enable-strings enable some replacement system functions"
237 --disable-swapscreen disable swap screen support"
239 --enable-frills enable support for rarely used features *"
241 --enable-linespace enable support for linespace *"
243 --enable-24bit enable support for using 24bit visuals if available *"
245 --enable-keepscrolling enable continual scrolling on scrollbar arrow press *"
247 --enable-selectionscrolling enable scrolling during selections *"
249 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *"
251 --enable-slipwheeling enable slip wheel scrolling (requires previous) *"
253 --enable-old-selection enable v2.20 (& prior) mouse selection style support*"
255 --disable-new-selection disable new mouse (xterm) selection style support"
257 --enable-dmalloc enable Gray Watson's malloc - for debugging use"
259 --enable-dlmalloc enable Doug Lea's malloc - for production use
260 NOTE: enable only one malloc package"
262 --enable-smart-resize enable smart growth/shrink behaviour"
264 --enable-256-color enable 256-color support"
266 --enable-cursor-blink enable blinking cursor *"
268 --enable-pointer-blank enable pointer blank when typing or inactive pointer*"
270 --with-term=NAME set the terminal to NAME (default \"xterm\")"
272 --with-terminfo=PATH set the path to the terminfo tree to PATH"
274 --with-x use the X Window System"
276 --with-xpm-includes=DIR use XPM includes in DIR"
278 --with-xpm-library=DIR use XPM library in DIR"
282 # Initialize some variables set by options.
283 # The variables have the same names as the options, with
284 # dashes changed to underlines.
286 cache_file=./config.cache
295 program_transform_name=s,x,x,
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 # Initialize some other variables.
319 SHELL=${CONFIG_SHELL-/bin/sh}
320 # Maximum number of lines to put in a shell here document.
327 # If the previous option needs an argument, assign it.
328 if test -n "$ac_prev"; then
329 eval "$ac_prev=\$ac_option"
335 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
339 # Accept the important Cygnus configure options, so we can diagnose typos.
343 -bindir | --bindir | --bindi | --bind | --bin | --bi)
345 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
346 bindir="$ac_optarg" ;;
348 -build | --build | --buil | --bui | --bu)
350 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
351 build="$ac_optarg" ;;
353 -cache-file | --cache-file | --cache-fil | --cache-fi \
354 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
355 ac_prev=cache_file ;;
356 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
357 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
358 cache_file="$ac_optarg" ;;
360 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
362 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
364 datadir="$ac_optarg" ;;
366 -disable-* | --disable-*)
367 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
372 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
373 eval "enable_${ac_feature}=no" ;;
375 -enable-* | --enable-*)
376 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
381 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
386 eval "enable_${ac_feature}='$ac_optarg'" ;;
388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
390 | --exec | --exe | --ex)
391 ac_prev=exec_prefix ;;
392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
394 | --exec=* | --exe=* | --ex=*)
395 exec_prefix="$ac_optarg" ;;
397 -gas | --gas | --ga | --g)
398 # Obsolete; use --with-gas.
401 -help | --help | --hel | --he)
402 # Omit some internal or obsolete options to make the list less imposing.
403 # This message is too long to be a string in the A/UX 3.1 sh.
405 Usage: configure [options] [host]
406 Options: [defaults in brackets after descriptions]
408 --cache-file=FILE cache test results in FILE
409 --help print this message
410 --no-create do not create output files
411 --quiet, --silent do not print \`checking...' messages
412 --version print the version of autoconf that created configure
413 Directory and file names:
414 --prefix=PREFIX install architecture-independent files in PREFIX
416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
418 --bindir=DIR user executables in DIR [EPREFIX/bin]
419 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
420 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
421 --datadir=DIR read-only architecture-independent data in DIR
423 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
424 --sharedstatedir=DIR modifiable architecture-independent data in DIR
426 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
427 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
428 --includedir=DIR C header files in DIR [PREFIX/include]
429 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
430 --infodir=DIR info documentation in DIR [PREFIX/info]
431 --mandir=DIR man documentation in DIR [PREFIX/man]
432 --srcdir=DIR find the sources in DIR [configure dir or ..]
433 --program-prefix=PREFIX prepend PREFIX to installed program names
434 --program-suffix=SUFFIX append SUFFIX to installed program names
435 --program-transform-name=PROGRAM
436 run sed PROGRAM on installed program names
440 --build=BUILD configure for building on BUILD [BUILD=HOST]
441 --host=HOST configure for HOST [guessed]
442 --target=TARGET configure for TARGET [TARGET=HOST]
443 Features and packages:
444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
448 --x-includes=DIR X include files are in DIR
449 --x-libraries=DIR X library files are in DIR
451 if test -n "$ac_help"; then
452 echo "--enable and --with options recognized:$ac_help"
456 -host | --host | --hos | --ho)
458 -host=* | --host=* | --hos=* | --ho=*)
461 -includedir | --includedir | --includedi | --included | --include \
462 | --includ | --inclu | --incl | --inc)
463 ac_prev=includedir ;;
464 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
465 | --includ=* | --inclu=* | --incl=* | --inc=*)
466 includedir="$ac_optarg" ;;
468 -infodir | --infodir | --infodi | --infod | --info | --inf)
470 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
471 infodir="$ac_optarg" ;;
473 -libdir | --libdir | --libdi | --libd)
475 -libdir=* | --libdir=* | --libdi=* | --libd=*)
476 libdir="$ac_optarg" ;;
478 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
479 | --libexe | --libex | --libe)
480 ac_prev=libexecdir ;;
481 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
482 | --libexe=* | --libex=* | --libe=*)
483 libexecdir="$ac_optarg" ;;
485 -localstatedir | --localstatedir | --localstatedi | --localstated \
486 | --localstate | --localstat | --localsta | --localst \
487 | --locals | --local | --loca | --loc | --lo)
488 ac_prev=localstatedir ;;
489 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
490 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
491 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
492 localstatedir="$ac_optarg" ;;
494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
497 mandir="$ac_optarg" ;;
500 # Obsolete; use --without-fp.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
513 | --oldin | --oldi | --old | --ol | --o)
514 ac_prev=oldincludedir ;;
515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
518 oldincludedir="$ac_optarg" ;;
520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
523 prefix="$ac_optarg" ;;
525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
526 | --program-pre | --program-pr | --program-p)
527 ac_prev=program_prefix ;;
528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
530 program_prefix="$ac_optarg" ;;
532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
533 | --program-suf | --program-su | --program-s)
534 ac_prev=program_suffix ;;
535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
537 program_suffix="$ac_optarg" ;;
539 -program-transform-name | --program-transform-name \
540 | --program-transform-nam | --program-transform-na \
541 | --program-transform-n | --program-transform- \
542 | --program-transform | --program-transfor \
543 | --program-transfo | --program-transf \
544 | --program-trans | --program-tran \
545 | --progr-tra | --program-tr | --program-t)
546 ac_prev=program_transform_name ;;
547 -program-transform-name=* | --program-transform-name=* \
548 | --program-transform-nam=* | --program-transform-na=* \
549 | --program-transform-n=* | --program-transform-=* \
550 | --program-transform=* | --program-transfor=* \
551 | --program-transfo=* | --program-transf=* \
552 | --program-trans=* | --program-tran=* \
553 | --progr-tra=* | --program-tr=* | --program-t=*)
554 program_transform_name="$ac_optarg" ;;
556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
557 | -silent | --silent | --silen | --sile | --sil)
560 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
562 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
564 sbindir="$ac_optarg" ;;
566 -sharedstatedir | --sharedstatedir | --sharedstatedi \
567 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
568 | --sharedst | --shareds | --shared | --share | --shar \
570 ac_prev=sharedstatedir ;;
571 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
572 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
573 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
575 sharedstatedir="$ac_optarg" ;;
577 -site | --site | --sit)
579 -site=* | --site=* | --sit=*)
582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
585 srcdir="$ac_optarg" ;;
587 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
588 | --syscon | --sysco | --sysc | --sys | --sy)
589 ac_prev=sysconfdir ;;
590 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
591 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
592 sysconfdir="$ac_optarg" ;;
594 -target | --target | --targe | --targ | --tar | --ta | --t)
596 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
597 target="$ac_optarg" ;;
599 -v | -verbose | --verbose | --verbos | --verbo | --verb)
602 -version | --version | --versio | --versi | --vers)
603 echo "configure generated by autoconf version 2.13"
607 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
608 # Reject names that are not valid shell variable names.
609 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
610 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
612 ac_package=`echo $ac_package| sed 's/-/_/g'`
617 eval "with_${ac_package}='$ac_optarg'" ;;
619 -without-* | --without-*)
620 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
621 # Reject names that are not valid shell variable names.
622 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
623 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
625 ac_package=`echo $ac_package| sed 's/-/_/g'`
626 eval "with_${ac_package}=no" ;;
629 # Obsolete; use --with-x.
632 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
633 | --x-incl | --x-inc | --x-in | --x-i)
634 ac_prev=x_includes ;;
635 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
636 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
637 x_includes="$ac_optarg" ;;
639 -x-libraries | --x-libraries | --x-librarie | --x-librari \
640 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
641 ac_prev=x_libraries ;;
642 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
643 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
644 x_libraries="$ac_optarg" ;;
646 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
650 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
651 echo "configure: warning: $ac_option: invalid host type" 1>&2
653 if test "x$nonopt" != xNONE; then
654 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
662 if test -n "$ac_prev"; then
663 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
666 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
668 # File descriptor usage:
671 # 2 errors and warnings
672 # 3 some systems may open it to /dev/tty
673 # 4 used on the Kubota Titan
674 # 6 checking for... messages and results
675 # 5 compiler messages saved in config.log
676 if test "$silent" = yes; then
684 This file contains any messages produced by compilers while
685 running configure, to aid debugging if configure makes a mistake.
688 # Strip out --no-create and --no-recursion so they do not pile up.
689 # Also quote any args containing shell metacharacters.
694 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
695 | --no-cr | --no-c) ;;
696 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
697 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
698 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
699 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
700 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
705 # Only set these to C if already set. These must not be set unconditionally
706 # because not all systems understand e.g. LANG=C (notably SCO).
707 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
708 # Non-C LC_CTYPE values break the ctype check.
709 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
710 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
711 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
712 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
715 rm -rf conftest* confdefs.h
716 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
719 # A filename unique to this package, relative to the directory that
720 # configure is in, which we can look for to find out if srcdir is correct.
721 ac_unique_file=src/feature.h
723 # Find the source files, if location was not specified.
724 if test -z "$srcdir"; then
725 ac_srcdir_defaulted=yes
726 # Try the directory containing this script, then its parent.
728 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
729 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
731 if test ! -r $srcdir/$ac_unique_file; then
735 ac_srcdir_defaulted=no
737 if test ! -r $srcdir/$ac_unique_file; then
738 if test "$ac_srcdir_defaulted" = yes; then
739 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
741 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
744 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
746 # Prefer explicitly selected file to automatically selected ones.
747 if test -z "$CONFIG_SITE"; then
748 if test "x$prefix" != xNONE; then
749 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
751 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
754 for ac_site_file in $CONFIG_SITE; do
755 if test -r "$ac_site_file"; then
756 echo "loading site script $ac_site_file"
761 if test -r "$cache_file"; then
762 echo "loading cache $cache_file"
765 echo "creating cache $cache_file"
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp='$CPP $CPPFLAGS'
772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling=$ac_cv_prog_cc_cross
778 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
779 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
780 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
787 ac_n= ac_c='\c' ac_t=
792 for ac_dir in autoconf $srcdir/autoconf; do
793 if test -f $ac_dir/install-sh; then
795 ac_install_sh="$ac_aux_dir/install-sh -c"
797 elif test -f $ac_dir/install.sh; then
799 ac_install_sh="$ac_aux_dir/install.sh -c"
803 if test -z "$ac_aux_dir"; then
804 { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; }
806 ac_config_guess=$ac_aux_dir/config.guess
807 ac_config_sub=$ac_aux_dir/config.sub
808 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
812 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
813 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
814 LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
815 LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
817 echo "configuring for rxvt $VERSION"
821 # Extract the first word of "gcc", so it can be a program name with args.
822 set dummy gcc; ac_word=$2
823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
824 echo "configure:825: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 if test -n "$CC"; then
829 ac_cv_prog_CC="$CC" # Let the user override the test.
831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
844 if test -n "$CC"; then
845 echo "$ac_t""$CC" 1>&6
847 echo "$ac_t""no" 1>&6
850 if test -z "$CC"; then
851 # Extract the first word of "cc", so it can be a program name with args.
852 set dummy cc; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
864 for ac_dir in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir=.
866 if test -f $ac_dir/$ac_word; then
867 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
876 if test $ac_prog_rejected = yes; then
877 # We found a bogon in the path, so make sure we never use it.
878 set dummy $ac_cv_prog_CC
880 if test $# -gt 0; then
881 # We chose a different compiler from the bogus one.
882 # However, it has the same basename, so the bogon will be chosen
883 # first if we set CC to just the basename; use the full file name.
885 set dummy "$ac_dir/$ac_word" "$@"
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
899 if test -z "$CC"; then
902 # Extract the first word of "cl", so it can be a program name with args.
903 set dummy cl; ac_word=$2
904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
905 echo "configure:906: checking for $ac_word" >&5
906 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 if test -n "$CC"; then
910 ac_cv_prog_CC="$CC" # Let the user override the test.
912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
914 for ac_dir in $ac_dummy; do
915 test -z "$ac_dir" && ac_dir=.
916 if test -f $ac_dir/$ac_word; then
925 if test -n "$CC"; then
926 echo "$ac_t""$CC" 1>&6
928 echo "$ac_t""no" 1>&6
933 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
936 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
937 echo "configure:938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
941 ac_cpp='$CPP $CPPFLAGS'
942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
944 cross_compiling=$ac_cv_prog_cc_cross
946 cat > conftest.$ac_ext << EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 if { (eval echo configure:954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
954 ac_cv_prog_cc_works=yes
955 # If we can't run a trivial program, we are probably using a cross compiler.
956 if (./conftest; exit) 2>/dev/null; then
957 ac_cv_prog_cc_cross=no
959 ac_cv_prog_cc_cross=yes
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 ac_cv_prog_cc_works=no
968 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
969 ac_cpp='$CPP $CPPFLAGS'
970 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
971 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
972 cross_compiling=$ac_cv_prog_cc_cross
974 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
975 if test $ac_cv_prog_cc_works = no; then
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979 echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981 cross_compiling=$ac_cv_prog_cc_cross
983 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
984 echo "configure:985: checking whether we are using GNU C" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.c <<EOF
993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1002 if test $ac_cv_prog_gcc = yes; then
1008 ac_test_CFLAGS="${CFLAGS+set}"
1009 ac_save_CFLAGS="$CFLAGS"
1011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1012 echo "configure:1013: checking whether ${CC-cc} accepts -g" >&5
1013 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 echo 'void f(){}' > conftest.c
1017 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1026 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1027 if test "$ac_test_CFLAGS" = set; then
1028 CFLAGS="$ac_save_CFLAGS"
1029 elif test $ac_cv_prog_cc_g = yes; then
1030 if test "$GCC" = yes; then
1036 if test "$GCC" = yes; then
1043 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1045 # Extract the first word of "$ac_prog", so it can be a program name with args.
1046 set dummy $ac_prog; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$CXX"; then
1053 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1057 for ac_dir in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir=.
1059 if test -f $ac_dir/$ac_word; then
1060 ac_cv_prog_CXX="$ac_prog"
1067 CXX="$ac_cv_prog_CXX"
1068 if test -n "$CXX"; then
1069 echo "$ac_t""$CXX" 1>&6
1071 echo "$ac_t""no" 1>&6
1074 test -n "$CXX" && break
1076 test -n "$CXX" || CXX="gcc"
1079 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1083 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084 ac_cpp='$CXXCPP $CPPFLAGS'
1085 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087 cross_compiling=$ac_cv_prog_cxx_cross
1089 cat > conftest.$ac_ext << EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1094 int main(){return(0);}
1096 if { (eval echo configure:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1097 ac_cv_prog_cxx_works=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (./conftest; exit) 2>/dev/null; then
1100 ac_cv_prog_cxx_cross=no
1102 ac_cv_prog_cxx_cross=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1107 ac_cv_prog_cxx_works=no
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp='$CPP $CPPFLAGS'
1113 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling=$ac_cv_prog_cc_cross
1117 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1118 if test $ac_cv_prog_cxx_works = no; then
1119 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1123 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1124 cross_compiling=$ac_cv_prog_cxx_cross
1126 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C++" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.C <<EOF
1136 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1143 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1145 if test $ac_cv_prog_gxx = yes; then
1151 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1152 ac_save_CXXFLAGS="$CXXFLAGS"
1154 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CXX-g++} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.cc
1160 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1161 ac_cv_prog_cxx_g=yes
1169 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1170 if test "$ac_test_CXXFLAGS" = set; then
1171 CXXFLAGS="$ac_save_CXXFLAGS"
1172 elif test $ac_cv_prog_cxx_g = yes; then
1173 if test "$GXX" = yes; then
1179 if test "$GXX" = yes; then
1186 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1187 echo "configure:1188: checking how to run the C preprocessor" >&5
1188 # On Suns, sometimes $CPP names a directory.
1189 if test -n "$CPP" && test -d "$CPP"; then
1192 if test -z "$CPP"; then
1193 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 # This must be in double quotes, not single quotes, because CPP may get
1197 # substituted into the Makefile and "${CC-cc}" will confuse make.
1199 # On the NeXT, cc -E runs the code through the compiler's parser,
1200 # not just through cpp.
1201 cat > conftest.$ac_ext <<EOF
1202 #line 1203 "configure"
1203 #include "confdefs.h"
1207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 if test -z "$ac_err"; then
1214 echo "configure: failed program was:" >&5
1215 cat conftest.$ac_ext >&5
1217 CPP="${CC-cc} -E -traditional-cpp"
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1225 { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1227 if test -z "$ac_err"; then
1231 echo "configure: failed program was:" >&5
1232 cat conftest.$ac_ext >&5
1234 CPP="${CC-cc} -nologo -E"
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1242 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1244 if test -z "$ac_err"; then
1248 echo "configure: failed program was:" >&5
1249 cat conftest.$ac_ext >&5
1258 ac_cv_prog_CPP="$CPP"
1260 CPP="$ac_cv_prog_CPP"
1262 ac_cv_prog_CPP="$CPP"
1264 echo "$ac_t""$CPP" 1>&6
1266 # Find a good install program. We prefer a C program (faster),
1267 # so one script is as good as another. But avoid the broken or
1268 # incompatible versions:
1269 # SysV /etc/install, /usr/sbin/install
1270 # SunOS /usr/etc/install
1271 # IRIX /sbin/install
1273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1276 # ./install, which can be erroneously created by make from ./install.sh.
1277 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1278 echo "configure:1279: checking for a BSD compatible install" >&5
1279 if test -z "$INSTALL"; then
1280 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1284 for ac_dir in $PATH; do
1285 # Account for people who put trailing slashes in PATH elements.
1287 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1289 # OSF1 and SCO ODT 3.0 have their own names for install.
1290 # Don't use installbsd from OSF since it installs stuff as root
1292 for ac_prog in ginstall scoinst install; do
1293 if test -f $ac_dir/$ac_prog; then
1294 if test $ac_prog = install &&
1295 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1296 # AIX install. It has an incompatible calling convention.
1299 ac_cv_path_install="$ac_dir/$ac_prog -c"
1310 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install"
1313 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh"
1320 echo "$ac_t""$INSTALL" 1>&6
1322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323 # It thinks the first close brace ends the variable substitution.
1324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1330 for ac_prog in mawk gawk nawk awk
1332 # Extract the first word of "$ac_prog", so it can be a program name with args.
1333 set dummy $ac_prog; ac_word=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 if test -n "$AWK"; then
1340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 for ac_dir in $ac_dummy; do
1345 test -z "$ac_dir" && ac_dir=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_prog_AWK="$ac_prog"
1354 AWK="$ac_cv_prog_AWK"
1355 if test -n "$AWK"; then
1356 echo "$ac_t""$AWK" 1>&6
1358 echo "$ac_t""no" 1>&6
1361 test -n "$AWK" && break
1365 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1366 echo "configure:1367: checking for AIX" >&5
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1376 egrep "yes" >/dev/null 2>&1; then
1378 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1379 #define _ALL_SOURCE 1
1384 echo "$ac_t""no" 1>&6
1389 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1390 echo "configure:1391: checking for POSIXized ISC" >&5
1391 if test -d /etc/conf/kconfig.d &&
1392 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1394 echo "$ac_t""yes" 1>&6
1395 ISC=yes # If later tests want to check for ISC.
1396 cat >> confdefs.h <<\EOF
1397 #define _POSIX_SOURCE 1
1400 if test "$GCC" = yes; then
1406 echo "$ac_t""no" 1>&6
1411 # Check whether --enable-shared or --disable-shared was given.
1412 if test "${enable_shared+set}" = set; then
1413 enableval="$enable_shared"
1414 p=${PACKAGE-default}
1415 case "$enableval" in
1416 yes) enable_shared=yes ;;
1417 no) enable_shared=no ;;
1420 # Look at the argument we got. We use all the common list separators.
1421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1422 for pkg in $enableval; do
1423 if test "X$pkg" = "X$p"; then
1433 # Check whether --enable-static or --disable-static was given.
1434 if test "${enable_static+set}" = set; then
1435 enableval="$enable_static"
1436 p=${PACKAGE-default}
1437 case "$enableval" in
1438 yes) enable_static=yes ;;
1439 no) enable_static=no ;;
1442 # Look at the argument we got. We use all the common list separators.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1444 for pkg in $enableval; do
1445 if test "X$pkg" = "X$p"; then
1455 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1456 echo "configure:1457: checking for Cygwin environment" >&5
1457 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1467 #define __CYGWIN__ __CYGWIN32__
1472 if { (eval echo configure:1473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1485 echo "$ac_t""$ac_cv_cygwin" 1>&6
1487 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1488 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1489 echo "configure:1490: checking for mingw32 environment" >&5
1490 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 cat > conftest.$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1501 if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1514 echo "$ac_t""$ac_cv_mingw32" 1>&6
1516 test "$ac_cv_mingw32" = yes && MINGW32=yes
1517 # Check whether --enable-fast-install or --disable-fast-install was given.
1518 if test "${enable_fast_install+set}" = set; then
1519 enableval="$enable_fast_install"
1520 p=${PACKAGE-default}
1521 case "$enableval" in
1522 yes) enable_fast_install=yes ;;
1523 no) enable_fast_install=no ;;
1525 enable_fast_install=no
1526 # Look at the argument we got. We use all the common list separators.
1527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1528 for pkg in $enableval; do
1529 if test "X$pkg" = "X$p"; then
1530 enable_fast_install=yes
1537 enable_fast_install=yes
1541 # Make sure we can run config.sub.
1542 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1543 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1546 echo $ac_n "checking host system type""... $ac_c" 1>&6
1547 echo "configure:1548: checking host system type" >&5
1550 case "$host_alias" in
1554 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1557 *) host_alias=$nonopt ;;
1561 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$ac_t""$host" 1>&6
1567 echo $ac_n "checking build system type""... $ac_c" 1>&6
1568 echo "configure:1569: checking build system type" >&5
1571 case "$build_alias" in
1574 NONE) build_alias=$host_alias ;;
1575 *) build_alias=$nonopt ;;
1579 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1580 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583 echo "$ac_t""$build" 1>&6
1585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1586 if test "${with_gnu_ld+set}" = set; then
1587 withval="$with_gnu_ld"
1588 test "$withval" = no || with_gnu_ld=yes
1594 if test "$GCC" = yes; then
1595 # Check if gcc -print-prog-name=ld gives a path.
1596 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1597 echo "configure:1598: checking for ld used by GCC" >&5
1600 # gcc leaves a trailing carriage return which upsets mingw
1601 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1603 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1606 # Accept absolute paths.
1607 [\\/]* | [A-Za-z]:[\\/]*)
1608 re_direlt='/[^/][^/]*/\.\./'
1609 # Canonicalize the path of ld
1610 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1611 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1612 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1614 test -z "$LD" && LD="$ac_prog"
1617 # If it fails, then pretend we aren't using GCC.
1621 # If it is relative, then search for the first ld in PATH.
1625 elif test "$with_gnu_ld" = yes; then
1626 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1627 echo "configure:1628: checking for GNU ld" >&5
1629 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1630 echo "configure:1631: checking for non-GNU ld" >&5
1632 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 if test -z "$LD"; then
1636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1637 for ac_dir in $PATH; do
1638 test -z "$ac_dir" && ac_dir=.
1639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1640 lt_cv_path_LD="$ac_dir/$ac_prog"
1641 # Check to see if the program is GNU ld. I'd rather use --version,
1642 # but apparently some GNU ld's only accept -v.
1643 # Break only if it was the GNU/non-GNU ld that we prefer.
1644 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1645 test "$with_gnu_ld" != no && break
1647 test "$with_gnu_ld" != yes && break
1653 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1658 if test -n "$LD"; then
1659 echo "$ac_t""$LD" 1>&6
1661 echo "$ac_t""no" 1>&6
1663 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1664 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1665 echo "configure:1666: checking if the linker ($LD) is GNU ld" >&5
1666 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1670 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1671 lt_cv_prog_gnu_ld=yes
1673 lt_cv_prog_gnu_ld=no
1677 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1678 with_gnu_ld=$lt_cv_prog_gnu_ld
1681 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $LD option to reload object files" >&5
1683 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1686 lt_cv_ld_reload_flag='-r'
1689 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1690 reload_flag=$lt_cv_ld_reload_flag
1691 test -n "$reload_flag" && reload_flag=" $reload_flag"
1693 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1694 echo "configure:1695: checking for BSD-compatible nm" >&5
1695 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 if test -n "$NM"; then
1699 # Let the user override the test.
1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1703 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1704 test -z "$ac_dir" && ac_dir=.
1705 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1706 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1707 # Check to see if the nm accepts a BSD-compat flag.
1708 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1709 # nm: unknown option "B" ignored
1710 # Tru64's nm complains that /dev/null is an invalid object file
1711 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1712 lt_cv_path_NM="$tmp_nm -B"
1714 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1715 lt_cv_path_NM="$tmp_nm -p"
1718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1719 continue # so that we can try to find one that supports BSD flags
1724 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1729 echo "$ac_t""$NM" 1>&6
1731 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether ln -s works" >&5
1733 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1734 echo $ac_n "(cached) $ac_c" 1>&6
1737 if ln -s X conftestdata 2>/dev/null
1740 ac_cv_prog_LN_S="ln -s"
1745 LN_S="$ac_cv_prog_LN_S"
1746 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1747 echo "$ac_t""yes" 1>&6
1749 echo "$ac_t""no" 1>&6
1752 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1753 echo "configure:1754: checking how to recognise dependant libraries" >&5
1754 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 lt_cv_file_magic_cmd='$MAGIC_CMD'
1758 lt_cv_file_magic_test_file=
1759 lt_cv_deplibs_check_method='unknown'
1760 # Need to set the preceding variable on all platforms that support
1761 # interlibrary dependencies.
1762 # 'none' -- dependencies not supported.
1763 # `unknown' -- same as none, but documents that we really don't know.
1764 # 'pass_all' -- all dependencies passed with no checks.
1765 # 'test_compile' -- check by making test program.
1766 # ['file_magic [regex]'] -- check by looking for files in library path
1767 # which responds to the $file_magic_cmd with a given egrep regex.
1768 # If you have `file' or equivalent on your system and you're not sure
1769 # whether `pass_all' will *always* work, you probably want this one.
1773 lt_cv_deplibs_check_method=pass_all
1777 lt_cv_deplibs_check_method=pass_all
1781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1782 lt_cv_file_magic_cmd='/usr/bin/file -L'
1783 lt_cv_file_magic_test_file=/shlib/libc.so
1786 cygwin* | mingw* | pw32*)
1787 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1788 lt_cv_file_magic_cmd='$OBJDUMP -f'
1792 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1793 lt_cv_file_magiic_cmd=/usr/bin/file
1794 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1801 # Not sure whether the presence of OpenBSD here was a mistake.
1802 # Let's accept both of them until this is cleared up.
1803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1804 lt_cv_file_magic_cmd=/usr/bin/file
1805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1809 lt_cv_deplibs_check_method=pass_all
1814 lt_cv_deplibs_check_method=pass_all
1818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1819 lt_cv_file_magic_cmd=/usr/bin/file
1820 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1826 # this will be overridden with pass_all, but let us keep it just in case
1827 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1831 *-32|*"-32 ") libmagic=32-bit;;
1832 *-n32|*"-n32 ") libmagic=N32;;
1833 *-64|*"-64 ") libmagic=64-bit;;
1834 *) libmagic=never-match;;
1836 # this will be overridden with pass_all, but let us keep it just in case
1837 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1840 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1841 lt_cv_deplibs_check_method=pass_all
1844 # This must be Linux ELF.
1847 alpha* | i*86 | powerpc* | sparc* | ia64* )
1848 lt_cv_deplibs_check_method=pass_all ;;
1850 # glibc up to 2.1.1 does not perform some relocations on ARM
1851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1853 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1857 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1858 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1862 lt_cv_file_magic_cmd='/usr/bin/file -L'
1863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1868 lt_cv_file_magic_cmd=/usr/bin/file
1869 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1872 osf3* | osf4* | osf5*)
1873 # this will be overridden with pass_all, but let us keep it just in case
1874 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1875 lt_cv_file_magic_test_file=/shlib/libc.so
1876 lt_cv_deplibs_check_method=pass_all
1880 lt_cv_deplibs_check_method=pass_all
1884 lt_cv_deplibs_check_method=pass_all
1885 lt_cv_file_magic_test_file=/lib/libc.so
1888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1889 case "$host_vendor" in
1891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1892 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1895 lt_cv_deplibs_check_method=pass_all
1898 lt_cv_file_magic_cmd='/bin/file'
1899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1902 lt_cv_file_magic_cmd='/bin/file'
1903 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1904 lt_cv_file_magic_test_file=/lib/libc.so
1912 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1913 file_magic_cmd=$lt_cv_file_magic_cmd
1914 deplibs_check_method=$lt_cv_deplibs_check_method
1916 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1917 echo "configure:1918: checking for object suffix" >&5
1918 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1922 echo 'int i = 1;' > conftest.$ac_ext
1923 if { (eval echo configure:1924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 for ac_file in conftest.*; do
1927 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1931 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1936 echo "$ac_t""$ac_cv_objext" 1>&6
1937 OBJEXT=$ac_cv_objext
1938 ac_objext=$ac_cv_objext
1942 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1943 echo "configure:1944: checking for executable suffix" >&5
1944 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1945 echo $ac_n "(cached) $ac_c" 1>&6
1947 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1951 echo 'int main () { return 0; }' > conftest.$ac_ext
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1954 for file in conftest.*; do
1956 *.$ac_ext | *.c | *.o | *.obj) ;;
1957 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1961 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1964 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1969 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1970 echo "$ac_t""${ac_cv_exeext}" 1>&6
1973 if test $host != $build; then
1974 ac_tool_prefix=${host_alias}-
1982 # Check for command to grab the raw symbol name followed by C symbol from nm.
1983 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1984 echo "configure:1985: checking command to parse $NM output" >&5
1985 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1989 # These are sane defaults that work on at least a few old systems.
1990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1992 # Character class describing NM global symbol codes.
1993 symcode='[BCDEGRST]'
1995 # Regexp to match symbols that can be accessed directly from C.
1996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1998 # Transform the above into a raw symbol and a C symbol.
1999 symxfrm='\1 \2\3 \3'
2001 # Transform an extracted symbol line into a proper C declaration
2002 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2004 # Define system-specific variables.
2009 cygwin* | mingw* | pw32*)
2010 symcode='[ABCDGISTW]'
2012 hpux*) # Its linker distinguishes data from code symbols
2013 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2016 symcode='[BCDEGRST]'
2026 # Handle CRLF in mingw tool chain
2030 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2034 # If we're using GNU nm, then use its standard symbol codes.
2035 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2036 symcode='[ABCDGISTW]'
2039 # Try without a prefix undercore, then with it.
2040 for ac_symprfx in "" "_"; do
2042 # Write the raw and C identifiers.
2043 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2045 # Check to see that the pipe works correctly.
2048 cat > conftest.$ac_ext <<EOF
2053 void nm_test_func(){}
2057 main(){nm_test_var='a';nm_test_func();return(0);}
2060 if { (eval echo configure:2061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2061 # Now try to grab the symbols.
2063 if { (eval echo configure:2064: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2064 # Try sorting and uniquifying the output.
2065 if sort "$nlist" | uniq > "$nlist"T; then
2066 mv -f "$nlist"T "$nlist"
2071 # Make sure that we snagged all the symbols we need.
2072 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2073 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2074 cat <<EOF > conftest.$ac_ext
2080 # Now generate the symbol file.
2081 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2083 cat <<EOF >> conftest.$ac_ext
2084 #if defined (__STDC__) && __STDC__
2085 # define lt_ptr_t void *
2087 # define lt_ptr_t char *
2091 /* The mapping between symbol names and symbols. */
2096 lt_preloaded_symbols[] =
2099 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
2100 cat <<\EOF >> conftest.$ac_ext
2108 # Now try linking the two files.
2109 mv conftest.$ac_objext conftstm.$ac_objext
2111 save_CFLAGS="$CFLAGS"
2112 LIBS="conftstm.$ac_objext"
2113 CFLAGS="$CFLAGS$no_builtin_flag"
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2118 CFLAGS="$save_CFLAGS"
2120 echo "cannot find nm_test_func in $nlist" >&5
2123 echo "cannot find nm_test_var in $nlist" >&5
2126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2129 echo "$progname: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 rm -f conftest* conftst*
2134 # Do not use the global_symbol_pipe unless it works.
2135 if test "$pipe_works" = yes; then
2138 lt_cv_sys_global_symbol_pipe=
2144 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2145 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2146 global_symbol_to_cdecl=
2148 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2150 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2151 echo "$ac_t""failed" 1>&6
2153 echo "$ac_t""ok" 1>&6
2156 for ac_hdr in dlfcn.h
2158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_hdr" >&5
2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2172 if test -z "$ac_err"; then
2174 eval "ac_cv_header_$ac_safe=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 eval "ac_cv_header_$ac_safe=no"
2184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2187 cat >> confdefs.h <<EOF
2188 #define $ac_tr_hdr 1
2192 echo "$ac_t""no" 1>&6
2200 # Only perform the check for file, if the check method requires it
2201 case "$deplibs_check_method" in
2203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2204 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2205 echo "configure:2206: checking for ${ac_tool_prefix}file" >&5
2206 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 case "$MAGIC_CMD" in
2211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2217 ac_save_MAGIC_CMD="$MAGIC_CMD"
2218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2219 ac_dummy="/usr/bin:$PATH"
2220 for ac_dir in $ac_dummy; do
2221 test -z "$ac_dir" && ac_dir=.
2222 if test -f $ac_dir/${ac_tool_prefix}file; then
2223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2224 if test -n "$file_magic_test_file"; then
2225 case "$deplibs_check_method" in
2227 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2230 egrep "$file_magic_regex" > /dev/null; then
2235 *** Warning: the command libtool uses to detect shared libraries,
2236 *** $file_magic_cmd, produces output that libtool cannot recognize.
2237 *** The result is that libtool may fail to recognize shared libraries
2238 *** as such. This will affect the creation of libtool libraries that
2239 *** depend on shared libraries, but programs linked with such libtool
2240 *** libraries will work regardless of this problem. Nevertheless, you
2241 *** may want to report the problem to your system manager and/or to
2242 *** bug-libtool@gnu.org
2252 MAGIC_CMD="$ac_save_MAGIC_CMD"
2257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2258 if test -n "$MAGIC_CMD"; then
2259 echo "$ac_t""$MAGIC_CMD" 1>&6
2261 echo "$ac_t""no" 1>&6
2264 if test -z "$lt_cv_path_MAGIC_CMD"; then
2265 if test -n "$ac_tool_prefix"; then
2266 echo $ac_n "checking for file""... $ac_c" 1>&6
2267 echo "configure:2268: checking for file" >&5
2268 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 case "$MAGIC_CMD" in
2273 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2279 ac_save_MAGIC_CMD="$MAGIC_CMD"
2280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 ac_dummy="/usr/bin:$PATH"
2282 for ac_dir in $ac_dummy; do
2283 test -z "$ac_dir" && ac_dir=.
2284 if test -f $ac_dir/file; then
2285 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2286 if test -n "$file_magic_test_file"; then
2287 case "$deplibs_check_method" in
2289 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2292 egrep "$file_magic_regex" > /dev/null; then
2297 *** Warning: the command libtool uses to detect shared libraries,
2298 *** $file_magic_cmd, produces output that libtool cannot recognize.
2299 *** The result is that libtool may fail to recognize shared libraries
2300 *** as such. This will affect the creation of libtool libraries that
2301 *** depend on shared libraries, but programs linked with such libtool
2302 *** libraries will work regardless of this problem. Nevertheless, you
2303 *** may want to report the problem to your system manager and/or to
2304 *** bug-libtool@gnu.org
2314 MAGIC_CMD="$ac_save_MAGIC_CMD"
2319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2320 if test -n "$MAGIC_CMD"; then
2321 echo "$ac_t""$MAGIC_CMD" 1>&6
2323 echo "$ac_t""no" 1>&6
2335 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2338 echo "configure:2339: checking for $ac_word" >&5
2339 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 if test -n "$RANLIB"; then
2343 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2347 for ac_dir in $ac_dummy; do
2348 test -z "$ac_dir" && ac_dir=.
2349 if test -f $ac_dir/$ac_word; then
2350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2357 RANLIB="$ac_cv_prog_RANLIB"
2358 if test -n "$RANLIB"; then
2359 echo "$ac_t""$RANLIB" 1>&6
2361 echo "$ac_t""no" 1>&6
2365 if test -z "$ac_cv_prog_RANLIB"; then
2366 if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "ranlib", so it can be a program name with args.
2368 set dummy ranlib; ac_word=$2
2369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_word" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 if test -n "$RANLIB"; then
2375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word; then
2382 ac_cv_prog_RANLIB="ranlib"
2387 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2390 RANLIB="$ac_cv_prog_RANLIB"
2391 if test -n "$RANLIB"; then
2392 echo "$ac_t""$RANLIB" 1>&6
2394 echo "$ac_t""no" 1>&6
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_word" >&5
2406 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2414 for ac_dir in $ac_dummy; do
2415 test -z "$ac_dir" && ac_dir=.
2416 if test -f $ac_dir/$ac_word; then
2417 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2424 STRIP="$ac_cv_prog_STRIP"
2425 if test -n "$STRIP"; then
2426 echo "$ac_t""$STRIP" 1>&6
2428 echo "$ac_t""no" 1>&6
2432 if test -z "$ac_cv_prog_STRIP"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2437 echo "configure:2438: checking for $ac_word" >&5
2438 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 if test -n "$STRIP"; then
2442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2446 for ac_dir in $ac_dummy; do
2447 test -z "$ac_dir" && ac_dir=.
2448 if test -f $ac_dir/$ac_word; then
2449 ac_cv_prog_STRIP="strip"
2454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2457 STRIP="$ac_cv_prog_STRIP"
2458 if test -n "$STRIP"; then
2459 echo "$ac_t""$STRIP" 1>&6
2461 echo "$ac_t""no" 1>&6
2473 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2474 if test "${enable_libtool_lock+set}" = set; then
2475 enableval="$enable_libtool_lock"
2479 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2481 # Some flags need to be propagated to the compiler or linker for good
2485 # Find out which ABI we are using.
2486 echo '#line 2487 "configure"' > conftest.$ac_ext
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2488 case "`/usr/bin/file conftest.$ac_objext`" in
2504 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2505 SAVE_CFLAGS="$CFLAGS"
2506 CFLAGS="$CFLAGS -belf"
2507 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the C compiler needs -belf" >&5
2509 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2518 cross_compiling=$ac_cv_prog_cc_cross
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2528 if { (eval echo configure:2529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2530 lt_cv_cc_needs_belf=yes
2532 echo "configure: failed program was:" >&5
2533 cat conftest.$ac_ext >&5
2535 lt_cv_cc_needs_belf=no
2539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2543 cross_compiling=$ac_cv_prog_cc_cross
2547 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2548 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2550 CFLAGS="$SAVE_CFLAGS"
2557 # Sed substitution that helps us do robust quoting. It backslashifies
2558 # metacharacters that are still active within double-quoted strings.
2559 Xsed='sed -e s/^X//'
2560 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2562 # Same as above, but do not quote variable references.
2563 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2565 # Sed substitution to delay expansion of an escaped shell variable in a
2566 # double_quote_subst'ed string.
2567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2573 default_ofile=libtool
2574 can_build_shared=yes
2576 # All known linkers require a `.a' archive for static linking (except M$VC,
2577 # which needs '.lib').
2579 ltmain="$ac_aux_dir/ltmain.sh"
2580 ofile="$default_ofile"
2581 with_gnu_ld="$lt_cv_prog_gnu_ld"
2582 need_locks="$enable_libtool_lock"
2585 old_CFLAGS="$CFLAGS"
2587 # Set sane defaults for various variables
2588 test -z "$AR" && AR=ar
2589 test -z "$AR_FLAGS" && AR_FLAGS=cru
2590 test -z "$AS" && AS=as
2591 test -z "$CC" && CC=cc
2592 test -z "$DLLTOOL" && DLLTOOL=dlltool
2593 test -z "$LD" && LD=ld
2594 test -z "$LN_S" && LN_S="ln -s"
2595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2596 test -z "$NM" && NM=nm
2597 test -z "$OBJDUMP" && OBJDUMP=objdump
2598 test -z "$RANLIB" && RANLIB=:
2599 test -z "$STRIP" && STRIP=:
2600 test -z "$ac_objext" && ac_objext=o
2602 if test x"$host" != x"$build"; then
2603 ac_tool_prefix=${host_alias}-
2608 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2611 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2616 # AIX sometimes has problems with the GCC collect2 program. For some
2617 # reason, if we set the COLLECT_NAMES environment variable, the problems
2618 # vanish in a puff of smoke.
2619 if test "X${COLLECT_NAMES+set}" != Xset; then
2621 export COLLECT_NAMES
2626 # Determine commands to create old-style static archives.
2627 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2628 old_postinstall_cmds='chmod 644 $oldlib'
2629 old_postuninstall_cmds=
2631 if test -n "$RANLIB"; then
2632 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2633 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2636 # Allow CC to be a program name with arguments.
2640 ## FIXME: this should be a separate macro
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2649 # MS-DOS does not allow filenames that begin with a dot.
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2658 ## FIXME: this should be a separate macro
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2668 test -z "$pic_mode" && pic_mode=default
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2679 lt_cv_prog_cc_shlib=
2681 lt_cv_prog_cc_static=
2682 lt_cv_prog_cc_no_builtin=
2683 lt_cv_prog_cc_can_build_shared=$can_build_shared
2685 if test "$GCC" = yes; then
2686 lt_cv_prog_cc_wl='-Wl,'
2687 lt_cv_prog_cc_static='-static'
2690 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2691 # PIC is the default for these OSes.
2694 # Below there is a dirty hack to force normal static linking with -ldl
2695 # The problem is because libdl dynamically linked with both libc and
2696 # libC (AIX C++ library), which obviously doesn't included in libraries
2697 # list by gcc. This cause undefined symbols with -static flags.
2698 # This hack allows C programs to be linked with "-static -ldl", but
2699 # we not sure about C++ programs.
2700 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2702 cygwin* | mingw* | pw32* | os2*)
2703 # This hack is so that the source file can tell whether it is being
2704 # built for inclusion in a dll (and should export symbols for example).
2705 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2708 # FIXME: we need at least 68020 code to build shared libraries, but
2709 # adding the `-m68020' flag to GCC prevents building anything better,
2711 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2714 if test -d /usr/nec; then
2715 lt_cv_prog_cc_pic=-Kconform_pic
2719 lt_cv_prog_cc_pic='-fPIC'
2723 # PORTME Check for PIC flags for the system compiler.
2726 # All AIX code is PIC.
2727 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2730 hpux9* | hpux10* | hpux11*)
2731 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2732 lt_cv_prog_cc_wl='-Wl,'
2733 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2734 lt_cv_prog_cc_pic='+Z'
2738 lt_cv_prog_cc_wl='-Wl,'
2739 lt_cv_prog_cc_static='-non_shared'
2740 # PIC (with -KPIC) is the default.
2743 cygwin* | mingw* | pw32* | os2*)
2744 # This hack is so that the source file can tell whether it is being
2745 # built for inclusion in a dll (and should export symbols for example).
2746 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2750 lt_cv_prog_cc_pic='-KPIC'
2751 lt_cv_prog_cc_static='-Bstatic'
2754 osf3* | osf4* | osf5*)
2755 # All OSF/1 code is PIC.
2756 lt_cv_prog_cc_wl='-Wl,'
2757 lt_cv_prog_cc_static='-non_shared'
2761 lt_cv_prog_cc_pic='-Kpic'
2762 lt_cv_prog_cc_static='-dn'
2763 lt_cv_prog_cc_shlib='-belf'
2767 lt_cv_prog_cc_pic='-KPIC'
2768 lt_cv_prog_cc_static='-Bstatic'
2769 lt_cv_prog_cc_wl='-Wl,'
2773 lt_cv_prog_cc_pic='-PIC'
2774 lt_cv_prog_cc_static='-Bstatic'
2775 lt_cv_prog_cc_wl='-Qoption ld '
2778 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2779 lt_cv_prog_cc_pic='-KPIC'
2780 lt_cv_prog_cc_static='-Bstatic'
2781 if test "x$host_vendor" = xsni; then
2782 lt_cv_prog_cc_wl='-LD'
2784 lt_cv_prog_cc_wl='-Wl,'
2789 lt_cv_prog_cc_pic='-pic'
2790 lt_cv_prog_cc_static='-Bstatic'
2794 if test -d /usr/nec ;then
2795 lt_cv_prog_cc_pic='-Kconform_pic'
2796 lt_cv_prog_cc_static='-Bstatic'
2801 lt_cv_prog_cc_can_build_shared=no
2808 if test -z "$lt_cv_prog_cc_pic"; then
2809 echo "$ac_t""none" 1>&6
2811 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2813 # Check to make sure the pic_flag actually works.
2814 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2815 echo "configure:2816: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2816 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 save_CFLAGS="$CFLAGS"
2820 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2829 if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 hpux9* | hpux10* | hpux11*)
2833 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2834 # they create non-PIC objects. So, if there were any warnings, we
2835 # assume that PIC is not supported.
2836 if test -s conftest.err; then
2837 lt_cv_prog_cc_pic_works=no
2839 lt_cv_prog_cc_pic_works=yes
2843 lt_cv_prog_cc_pic_works=yes
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 lt_cv_prog_cc_pic_works=no
2855 CFLAGS="$save_CFLAGS"
2860 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2862 lt_cv_prog_cc_can_build_shared=no
2864 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2867 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2872 # Check for any special shared library compilation flags.
2873 if test -n "$lt_cv_prog_cc_shlib"; then
2874 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2875 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2877 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2878 lt_cv_prog_cc_can_build_shared=no
2882 ## FIXME: this should be a separate macro
2884 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2885 echo "configure:2886: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2886 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 lt_cv_prog_cc_static_works=no
2890 save_LDFLAGS="$LDFLAGS"
2891 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902 lt_cv_prog_cc_static_works=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2908 LDFLAGS="$save_LDFLAGS"
2913 # Belt *and* braces to stop my trousers falling down:
2914 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2915 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2917 pic_flag="$lt_cv_prog_cc_pic"
2918 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2919 wl="$lt_cv_prog_cc_wl"
2920 link_static_flag="$lt_cv_prog_cc_static"
2921 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2922 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2927 ## FIXME: this should be a separate macro
2929 # Check to see if options -o and -c are simultaneously supported by compiler
2930 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2931 echo "configure:2932: checking if $compiler supports -c -o file.$ac_objext" >&5
2932 $rm -r conftest 2>/dev/null
2935 echo "int some_variable = 0;" > conftest.$ac_ext
2937 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2938 # that will create temporary files in the current directory regardless of
2939 # the output directory. Thus, making CWD read-only will cause this test
2940 # to fail, enabling locking or at least warning the user not to do parallel
2943 save_CFLAGS="$CFLAGS"
2944 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2947 # The compiler can only warn and ignore the option if not recognized
2948 # So say no if there are warnings
2949 if test -s out/conftest.err; then
2955 # Append any errors to the config.log.
2956 cat out/conftest.err 1>&5
2959 echo "$ac_t""$compiler_c_o" 1>&6
2960 CFLAGS="$save_CFLAGS"
2966 $rm -r conftest 2>/dev/null
2968 if test x"$compiler_c_o" = x"yes"; then
2969 # Check to see if we can write to a .lo
2970 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2971 echo "configure:2972: checking if $compiler supports -c -o file.lo" >&5
2973 save_CFLAGS="$CFLAGS"
2974 CFLAGS="$CFLAGS -c -o conftest.lo"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 int some_variable = 0;
2983 if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 # The compiler can only warn and ignore the option if not recognized
2986 # So say no if there are warnings
2987 if test -s conftest.err; then
2994 echo "configure: failed program was:" >&5
2995 cat conftest.$ac_ext >&5
2998 echo "$ac_t""$compiler_c_o" 1>&6
2999 CFLAGS="$save_CFLAGS"
3006 ## FIXME: this should be a separate macro
3008 # Check to see if we can do hard links to lock some files if needed
3009 hard_links="nottested"
3010 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3011 # do not overwrite the value of need_locks provided by the user
3012 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3013 echo "configure:3014: checking if we can lock with hard links" >&5
3016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3018 ln conftest.a conftest.b 2>&5 || hard_links=no
3019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3020 echo "$ac_t""$hard_links" 1>&6
3021 if test "$hard_links" = no; then
3022 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3031 ## FIXME: this should be a separate macro
3033 if test "$GCC" = yes; then
3034 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3035 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3036 echo "configure:3037: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3037 echo "int some_variable = 0;" > conftest.$ac_ext
3038 save_CFLAGS="$CFLAGS"
3039 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3040 compiler_rtti_exceptions=no
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 int some_variable = 0;
3049 if { (eval echo configure:3050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3051 # The compiler can only warn and ignore the option if not recognized
3052 # So say no if there are warnings
3053 if test -s conftest.err; then
3054 compiler_rtti_exceptions=no
3056 compiler_rtti_exceptions=yes
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3064 CFLAGS="$save_CFLAGS"
3065 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3067 if test "$compiler_rtti_exceptions" = "yes"; then
3068 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3070 no_builtin_flag=' -fno-builtin'
3076 ## FIXME: this should be a separate macro
3078 # See if the linker supports building shared libraries.
3079 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether the linker ($LD) supports shared libraries" >&5
3082 allow_undefined_flag=
3084 need_lib_prefix=unknown
3085 need_version=unknown
3086 # when you set need_version to no, make sure it does not cause -set_version
3087 # flags to be left without arguments
3089 archive_expsym_cmds=
3090 old_archive_from_new_cmds=
3091 old_archive_from_expsyms_cmds=
3092 export_dynamic_flag_spec=
3093 whole_archive_flag_spec=
3094 thread_safe_flag_spec=
3095 hardcode_into_libs=no
3096 hardcode_libdir_flag_spec=
3097 hardcode_libdir_separator=
3100 hardcode_shlibpath_var=unsupported
3102 link_all_deplibs=unknown
3103 always_export_symbols=no
3104 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3105 # include_expsyms should be a list of space-separated symbols to be *always*
3106 # included in the symbol list
3108 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3111 # as well as any symbol that contains `d'.
3112 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3114 # platforms (ab)use it in PIC code, but their linkers get confused if
3115 # the symbol is explicitly referenced. Since portable code cannot
3116 # rely on this symbol name, it's probably fine to never include it in
3117 # preloaded symbol tables.
3118 extract_expsyms_cmds=
3121 cygwin* | mingw* | pw32* )
3122 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3123 # When not using gcc, we currently assume that we are using
3124 # Microsoft Visual C++.
3125 if test "$GCC" != yes; then
3133 if test "$with_gnu_ld" = yes; then
3134 # If archive_cmds runs LD, not CC, wlarc should be empty
3137 # See if GNU ld supports shared libraries.
3140 # On AIX, the GNU linker is very broken
3144 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3145 *** to be unable to reliably create shared libraries on AIX.
3146 *** Therefore, libtool is disabling shared libraries support. If you
3147 *** really care for shared libraries, you may want to modify your PATH
3148 *** so that a non-GNU linker is found, and then restart.
3154 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3155 hardcode_libdir_flag_spec='-L$libdir'
3156 hardcode_minus_L=yes
3158 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3159 # that the semantics of dynamic libraries on AmigaOS, at least up
3160 # to version 4, is to share data among multiple programs linked
3161 # with the same dynamic library. Since this doesn't match the
3162 # behavior of shared libraries on other platforms, we can use
3168 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3169 allow_undefined_flag=unsupported
3170 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3171 # support --undefined. This deserves some investigation. FIXME
3172 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3178 cygwin* | mingw* | pw32*)
3179 # hardcode_libdir_flag_spec is actually meaningless, as there is
3180 # no search path for DLLs.
3181 hardcode_libdir_flag_spec='-L$libdir'
3182 allow_undefined_flag=unsupported
3183 always_export_symbols=yes
3185 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3186 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3187 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3188 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3189 else $CC -o impgen impgen.c ; fi)~
3190 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
3192 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3194 # cygwin and mingw dlls have different entry points and sets of symbols
3196 # FIXME: what about values for MSVC?
3197 dll_entry=__cygwin_dll_entry@12
3198 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3202 dll_entry=_DllMainCRTStartup@12
3203 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3207 # mingw and cygwin differ, and it's simplest to just exclude the union
3208 # of the two symbol sets.
3209 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3211 # recent cygwin and mingw systems supply a stub DllMain which the user
3212 # can override, but on older systems we have to supply one (in ltdll.c)
3213 if test "x$lt_cv_need_dllmain" = "xyes"; then
3214 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3215 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
3216 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3222 # Extract the symbol export list from an `--export-all' def file,
3223 # then regenerate the def file from the symbol export list, so that
3224 # the compiled dll only exports the symbol export list.
3225 # Be careful not to strip the DATA tag left be newer dlltools.
3226 export_symbols_cmds="$ltdll_cmds"'
3227 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3228 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3230 # If DATA tags from a recent dlltool are present, honour them!
3231 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
3233 cat $export_symbols | while read symbol; do
3236 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3237 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3239 _lt_hint=`expr 1 + \$_lt_hint`;
3242 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3243 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3244 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3245 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3246 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3260 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3265 *** create shared libraries on Solaris systems. Therefore, libtool
3266 *** is disabling shared libraries support. We urge you to upgrade GNU
3267 *** binutils to release 2.9.1 or newer. Another option is to modify
3268 *** your PATH or compiler configuration so that the native linker is
3269 *** used, and then restart.
3272 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3281 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3284 hardcode_shlibpath_var=no
3288 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3297 if test "$ld_shlibs" = yes; then
3298 runpath_var=LD_RUN_PATH
3299 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3300 export_dynamic_flag_spec='${wl}--export-dynamic'
3302 cygwin* | mingw* | pw32*)
3303 # dlltool doesn't understand --whole-archive et. al.
3304 whole_archive_flag_spec=
3307 # ancient GNU ld didn't support --whole-archive et. al.
3308 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3311 whole_archive_flag_spec=
3317 # PORTME fill in a description of your system's linker (not GNU ld)
3320 allow_undefined_flag=unsupported
3321 always_export_symbols=yes
3322 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3323 # Note: this linker hardcodes the directories in LIBPATH if there
3324 # are no directories specified by -L.
3325 hardcode_minus_L=yes
3326 if test "$GCC" = yes && test -z "$link_static_flag"; then
3327 # Neither direct hardcoding nor static linking is supported with a
3329 hardcode_direct=unsupported
3334 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
3335 hardcode_libdir_separator=':'
3336 if test "$GCC" = yes; then
3337 collect2name=`${CC} -print-prog-name=collect2`
3338 if test -f "$collect2name" && \
3339 strings "$collect2name" | grep resolve_lib_name >/dev/null
3341 # We have reworked collect2
3344 # We have old collect2
3345 hardcode_direct=unsupported
3346 # It fails to find uninstalled libraries when the uninstalled
3347 # path is not listed in the libpath. Setting hardcode_minus_L
3348 # to unsupported forces relinking
3349 hardcode_minus_L=yes
3350 hardcode_libdir_flag_spec='-L$libdir'
3351 hardcode_libdir_separator=
3353 shared_flag='-shared'
3355 shared_flag='${wl}-bM:SRE'
3358 allow_undefined_flag=' ${wl}-berok'
3359 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
3360 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
3361 case "$host_os" in aix4.[01]|aix4.[01].*)
3362 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
3363 always_export_symbols=yes ;;
3366 # We don't want to build shared libraries on unknown CPU types.
3368 powerpc | rs6000) ;;
3374 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3375 hardcode_libdir_flag_spec='-L$libdir'
3376 hardcode_minus_L=yes
3377 # see comment about different semantics on the GNU ld section
3381 cygwin* | mingw* | pw32*)
3382 # When not using gcc, we currently assume that we are using
3383 # Microsoft Visual C++.
3384 # hardcode_libdir_flag_spec is actually meaningless, as there is
3385 # no search path for DLLs.
3386 hardcode_libdir_flag_spec=' '
3387 allow_undefined_flag=unsupported
3388 # Tell ltmain to make .lib files, not .a files.
3390 # FIXME: Setting linknames here is a bad hack.
3391 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3392 # The linker will automatically build a .lib file if we build a DLL.
3393 old_archive_from_new_cmds='true'
3394 # FIXME: Should let the user specify the lib program.
3395 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3396 fix_srcfile_path='`cygpath -w "$srcfile"`'
3399 darwin* | rhapsody*)
3400 allow_undefined_flag='-undefined warning'
3401 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
3402 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
3403 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3404 ## What we need is to hardcode the path to the library, not the search path
3405 #hardcode_direct=yes
3406 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
3407 hardcode_shlibpath_var=no
3408 whole_archive_flag_spec='-all_load'
3415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3416 # support. Future versions do this automatically, but an explicit c++rt0.o
3417 # does not break anything, and helps significantly (at the cost of a little
3420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3421 hardcode_libdir_flag_spec='-R$libdir'
3423 hardcode_shlibpath_var=no
3426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3430 hardcode_minus_L=yes
3431 hardcode_shlibpath_var=no
3434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3436 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3437 hardcode_libdir_flag_spec='-R$libdir'
3439 hardcode_shlibpath_var=no
3442 hpux9* | hpux10* | hpux11*)
3444 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
3445 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3448 hardcode_libdir_separator=:
3450 hardcode_minus_L=yes # Not in the search PATH, but as the default
3451 # location of the library.
3452 export_dynamic_flag_spec='${wl}-E'
3456 if test "$GCC" = yes; then
3457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3459 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3462 hardcode_libdir_separator=:
3463 link_all_deplibs=yes
3467 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3472 hardcode_libdir_flag_spec='-R$libdir'
3474 hardcode_shlibpath_var=no
3478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3481 hardcode_libdir_separator=:
3482 hardcode_shlibpath_var=no
3486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3487 hardcode_libdir_flag_spec='-R$libdir'
3489 hardcode_shlibpath_var=no
3493 hardcode_libdir_flag_spec='-L$libdir'
3494 hardcode_minus_L=yes
3495 allow_undefined_flag=unsupported
3496 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3497 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3501 if test "$GCC" = yes; then
3502 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3503 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3505 allow_undefined_flag=' -expect_unresolved \*'
3506 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3509 hardcode_libdir_separator=:
3512 osf4* | osf5*) # as osf3* with the addition of -msym flag
3513 if test "$GCC" = yes; then
3514 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3515 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3517 allow_undefined_flag=' -expect_unresolved \*'
3518 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3519 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3520 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3522 #Both c and cxx compiler support -rpath directly
3523 hardcode_libdir_flag_spec='-rpath $libdir'
3524 hardcode_libdir_separator=:
3528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3529 hardcode_shlibpath_var=no
3530 runpath_var=LD_RUN_PATH
3531 hardcode_runpath_var=yes
3535 no_undefined_flag=' -z text'
3536 # $CC -shared without GNU ld will not create a library from C++
3537 # object files and a static libstdc++, better avoid it by now
3538 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3539 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3541 hardcode_libdir_flag_spec='-R$libdir'
3542 hardcode_shlibpath_var=no
3544 solaris2.[0-5] | solaris2.[0-5].*) ;;
3545 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3546 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3548 link_all_deplibs=yes
3552 if test "x$host_vendor" = xsequent; then
3553 # Use $CC to link under sequent, because it throws in some extra .o
3554 # files that make .init and .fini sections work.
3555 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3557 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3559 hardcode_libdir_flag_spec='-L$libdir'
3561 hardcode_minus_L=yes
3562 hardcode_shlibpath_var=no
3566 if test "x$host_vendor" = xsno; then
3567 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3568 hardcode_direct=yes # is this really true???
3570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3571 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3573 runpath_var='LD_RUN_PATH'
3574 hardcode_shlibpath_var=no
3578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3579 hardcode_shlibpath_var=no
3580 export_dynamic_flag_spec='-Bexport'
3584 no_undefined_flag=' -z text'
3585 # $CC -shared without GNU ld will not create a library from C++
3586 # object files and a static libstdc++, better avoid it by now
3587 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3588 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3589 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3590 hardcode_libdir_flag_spec=
3591 hardcode_shlibpath_var=no
3592 runpath_var='LD_RUN_PATH'
3596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3597 hardcode_libdir_flag_spec='-L$libdir'
3598 hardcode_shlibpath_var=no
3602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3603 hardcode_libdir_flag_spec='-L$libdir'
3604 hardcode_shlibpath_var=no
3608 if test -d /usr/nec; then
3609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3610 hardcode_shlibpath_var=no
3611 runpath_var=LD_RUN_PATH
3612 hardcode_runpath_var=yes
3618 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3621 hardcode_shlibpath_var=no
3622 hardcode_runpath_var=yes
3623 runpath_var=LD_RUN_PATH
3627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3628 runpath_var='LD_RUN_PATH'
3629 hardcode_shlibpath_var=no
3637 echo "$ac_t""$ld_shlibs" 1>&6
3638 test "$ld_shlibs" = no && can_build_shared=no
3642 ## FIXME: this should be a separate macro
3644 # Check hardcoding attributes.
3645 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3646 echo "configure:3647: checking how to hardcode library paths into programs" >&5
3648 if test -n "$hardcode_libdir_flag_spec" || \
3649 test -n "$runpath_var"; then
3651 # We can hardcode non-existant directories.
3652 if test "$hardcode_direct" != no &&
3653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3654 # have to relink, otherwise we might link with an installed library
3655 # when we should be linking with a yet-to-be-installed one
3656 ## test "$hardcode_shlibpath_var" != no &&
3657 test "$hardcode_minus_L" != no; then
3658 # Linking always hardcodes the temporary library directory.
3659 hardcode_action=relink
3661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3662 hardcode_action=immediate
3665 # We cannot hardcode anything, or else we can only hardcode existing
3667 hardcode_action=unsupported
3669 echo "$ac_t""$hardcode_action" 1>&6
3673 ## FIXME: this should be a separate macro
3677 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3678 echo "configure:3679: checking whether stripping libraries is possible" >&5
3679 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3680 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3681 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3682 echo "$ac_t""yes" 1>&6
3684 echo "$ac_t""no" 1>&6
3689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3690 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3692 ## FIXME: this should be a separate macro
3694 # PORTME Fill in your ld.so characteristics
3695 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3696 echo "configure:3697: checking dynamic linker characteristics" >&5
3698 libname_spec='lib$name'
3705 shlibpath_overrides_runpath=unknown
3707 dynamic_linker="$host_os ld.so"
3708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3714 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3715 shlibpath_var=LIBPATH
3717 # AIX has no versioning support, so we append a major version to the name.
3718 soname_spec='${libname}${release}.so$major'
3723 # AIX has no versioning support, so currently we can not hardcode correct
3724 # soname into executable. Probably we can add versioning support to
3725 # collect2, so additional links can be useful in future.
3726 # We preserve .a as extension for shared libraries though AIX4.2
3727 # and later linker supports .so
3728 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
3729 shlibpath_var=LIBPATH
3733 library_names_spec='$libname.ixlibrary $libname.a'
3734 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3735 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
3739 library_names_spec='${libname}.so'
3740 dynamic_linker="$host_os ld.so"
3741 shlibpath_var=LIBRARY_PATH
3747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3748 soname_spec='${libname}${release}.so$major'
3749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3750 shlibpath_var=LD_LIBRARY_PATH
3751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3753 export_dynamic_flag_spec=-rdynamic
3754 # the default ld.so.conf also contains /usr/contrib/lib and
3755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3756 # libtool to hard-code these into programs
3759 cygwin* | mingw* | pw32*)
3760 version_type=windows
3763 if test "$GCC" = yes; then
3764 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3766 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3768 dynamic_linker='Win32 ld.exe'
3769 # FIXME: first we should search . and the directory the executable is in
3773 darwin* | rhapsody*)
3776 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
3777 shlibpath_overrides_runpath=yes
3778 shlibpath_var=DYLD_LIBRARY_PATH
3779 postinstall_cmds='chmod +x $lib'
3787 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3788 version_type=freebsd-$objformat
3789 case "$version_type" in
3791 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3796 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3800 shlibpath_var=LD_LIBRARY_PATH
3803 shlibpath_overrides_runpath=yes
3806 shlibpath_overrides_runpath=no
3807 hardcode_into_libs=yes
3816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3817 soname_spec='${libname}${release}.so$major'
3818 shlibpath_var=LD_LIBRARY_PATH
3819 hardcode_into_libs=yes
3822 hpux9* | hpux10* | hpux11*)
3823 # Give a soname corresponding to the major version so that dld.sl refuses to
3824 # link against other versions.
3825 dynamic_linker="$host_os dld.sl"
3829 shlibpath_var=SHLIB_PATH
3830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3831 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3832 soname_spec='${libname}${release}.sl$major'
3833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3834 postinstall_cmds='chmod 555 $lib'
3841 soname_spec='${libname}${release}.so$major'
3842 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3848 case "$LD" in # libtool.m4 will add one of these switches to LD
3849 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3850 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3851 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3852 *) libsuff= shlibsuff= libmagic=never-match;;
3856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3857 shlibpath_overrides_runpath=no
3858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3862 # No shared lib support for Linux oldld, aout, or coff.
3863 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3867 # This must be Linux ELF.
3872 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3873 soname_spec='${libname}${release}.so$major'
3874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3875 shlibpath_var=LD_LIBRARY_PATH
3876 shlibpath_overrides_runpath=no
3877 # This implies no fast_install, which is unacceptable.
3878 # Some rework will be needed to allow for fast_install
3879 # before this can be enabled.
3880 hardcode_into_libs=yes
3882 # We used to test for /lib/ld.so.1 and disable shared libraries on
3883 # powerpc, because MkLinux only supported shared libraries with the
3884 # GNU dynamic linker. Since this was broken with cross compilers,
3885 # most powerpc-linux boxes support dynamic linking these days and
3886 # people can always --disable-shared, the test was removed, and we
3887 # assume the GNU/Linux dynamic linker is in use.
3888 dynamic_linker='GNU/Linux ld.so'
3893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3894 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3896 dynamic_linker='NetBSD (a.out) ld.so'
3898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3899 soname_spec='${libname}${release}.so$major'
3900 dynamic_linker='NetBSD ld.elf_so'
3902 shlibpath_var=LD_LIBRARY_PATH
3903 shlibpath_overrides_runpath=yes
3904 hardcode_into_libs=yes
3909 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3910 shlibpath_var=LD_LIBRARY_PATH
3911 shlibpath_overrides_runpath=yes
3916 if test "$with_gnu_ld" = yes; then
3920 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3922 shlibpath_var=LD_LIBRARY_PATH
3926 libname_spec='$name'
3928 library_names_spec='$libname.dll $libname.a'
3929 dynamic_linker='OS/2 ld.exe'
3930 shlibpath_var=LIBPATH
3933 osf3* | osf4* | osf5*)
3936 soname_spec='${libname}${release}.so'
3937 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3938 shlibpath_var=LD_LIBRARY_PATH
3939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3945 soname_spec='${libname}${release}.so$major'
3946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3947 shlibpath_var=LD_LIBRARY_PATH
3954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3955 soname_spec='${libname}${release}.so$major'
3956 shlibpath_var=LD_LIBRARY_PATH
3957 shlibpath_overrides_runpath=yes
3958 hardcode_into_libs=yes
3959 # ldd complains unless libraries are executable
3960 postinstall_cmds='chmod +x $lib'
3965 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3967 shlibpath_var=LD_LIBRARY_PATH
3968 shlibpath_overrides_runpath=yes
3969 if test "$with_gnu_ld" = yes; then
3975 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3977 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3978 soname_spec='${libname}${release}.so$major'
3979 shlibpath_var=LD_LIBRARY_PATH
3980 case "$host_vendor" in
3982 shlibpath_overrides_runpath=no
3987 shlibpath_overrides_runpath=no
3988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3995 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3996 soname_spec='${libname}${release}.so$major'
3997 shlibpath_var=LD_LIBRARY_PATH
4004 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4005 soname_spec='${libname}${release}.so$major'
4006 shlibpath_var=LD_LIBRARY_PATH
4010 if test -d /usr/nec ;then
4012 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4013 soname_spec='$libname.so.$major'
4014 shlibpath_var=LD_LIBRARY_PATH
4022 echo "$ac_t""$dynamic_linker" 1>&6
4023 test "$dynamic_linker" = no && can_build_shared=no
4027 ## FIXME: this should be a separate macro
4029 # Report the final consequences.
4030 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4031 echo "configure:4032: checking if libtool supports shared libraries" >&5
4032 echo "$ac_t""$can_build_shared" 1>&6
4036 if test "$hardcode_action" = relink; then
4037 # Fast installation is not supported
4038 enable_fast_install=no
4039 elif test "$shlibpath_overrides_runpath" = yes ||
4040 test "$enable_shared" = no; then
4041 # Fast installation is not necessary
4042 enable_fast_install=needless
4045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4046 if test "$GCC" = yes; then
4047 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4050 if test "x$enable_dlopen" != xyes; then
4051 enable_dlopen=unknown
4052 enable_dlopen_self=unknown
4053 enable_dlopen_self_static=unknown
4060 lt_cv_dlopen="load_add_on"
4062 lt_cv_dlopen_self=yes
4065 cygwin* | mingw* | pw32*)
4066 lt_cv_dlopen="LoadLibrary"
4071 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4072 echo "configure:4073: checking for dlopen in -ldl" >&5
4073 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 ac_save_LIBS="$LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_lib_$ac_lib_var=yes"
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_lib_$ac_lib_var=no"
4101 LIBS="$ac_save_LIBS"
4104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4108 echo "$ac_t""no" 1>&6
4109 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4110 echo "configure:4111: checking for dlopen" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char dlopen(); below. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4138 if { (eval echo configure:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4140 eval "ac_cv_func_dlopen=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.$ac_ext >&5
4145 eval "ac_cv_func_dlopen=no"
4150 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 lt_cv_dlopen="dlopen"
4154 echo "$ac_t""no" 1>&6
4155 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4156 echo "configure:4157: checking for shl_load" >&5
4157 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4163 /* System header to define __stub macros and hopefully few prototypes,
4164 which can conflict with char shl_load(); below. */
4166 /* Override any gcc2 internal prototype to avoid an error. */
4167 /* We use char because int might match the return type of a gcc2
4168 builtin and then its argument prototype would still apply. */
4173 /* The GNU C library defines this for functions which it implements
4174 to always fail with ENOSYS. Some functions are actually named
4175 something starting with __ and the normal name is an alias. */
4176 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4186 eval "ac_cv_func_shl_load=yes"
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 eval "ac_cv_func_shl_load=no"
4196 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4197 echo "$ac_t""yes" 1>&6
4198 lt_cv_dlopen="shl_load"
4200 echo "$ac_t""no" 1>&6
4201 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4202 echo "configure:4203: checking for dlopen in -lsvld" >&5
4203 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_save_LIBS="$LIBS"
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4231 LIBS="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4238 echo "$ac_t""no" 1>&6
4239 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4240 echo "configure:4241: checking for shl_load in -ldld" >&5
4241 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4245 ac_save_LIBS="$LIBS"
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure"
4249 #include "confdefs.h"
4250 /* Override any gcc2 internal prototype to avoid an error. */
4251 /* We use char because int might match the return type of a gcc2
4252 builtin and then its argument prototype would still apply. */
4259 if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4261 eval "ac_cv_lib_$ac_lib_var=yes"
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4266 eval "ac_cv_lib_$ac_lib_var=no"
4269 LIBS="$ac_save_LIBS"
4272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4276 echo "$ac_t""no" 1>&6
4294 if test "x$lt_cv_dlopen" != xno; then
4300 case "$lt_cv_dlopen" in
4302 save_CPPFLAGS="$CPP_FLAGS"
4303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4305 save_LDFLAGS="$LDFLAGS"
4306 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4309 LIBS="$lt_cv_dlopen_libs $LIBS"
4311 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4312 echo "configure:4313: checking whether a program can dlopen itself" >&5
4313 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test "$cross_compiling" = yes; then :
4317 lt_cv_dlopen_self=cross
4319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4320 lt_status=$lt_dlunknown
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4332 # define LT_DLGLOBAL RTLD_GLOBAL
4335 # define LT_DLGLOBAL DL_GLOBAL
4337 # define LT_DLGLOBAL 0
4341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4342 find out it does not work in some platform. */
4343 #ifndef LT_DLLAZY_OR_NOW
4345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4348 # define LT_DLLAZY_OR_NOW DL_LAZY
4351 # define LT_DLLAZY_OR_NOW RTLD_NOW
4354 # define LT_DLLAZY_OR_NOW DL_NOW
4356 # define LT_DLLAZY_OR_NOW 0
4364 extern "C" void exit (int);
4367 fnord() { int i=42;}
4370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4371 int status = $lt_dlunknown;
4375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4377 /* dlclose (self); */
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4384 (./conftest; exit; ) 2>/dev/null
4387 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4388 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4389 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4392 # compilation failed
4393 lt_cv_dlopen_self=no
4401 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4403 if test "x$lt_cv_dlopen_self" = xyes; then
4404 LDFLAGS="$LDFLAGS $link_static_flag"
4405 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4406 echo "configure:4407: checking whether a statically linked program can dlopen itself" >&5
4407 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 if test "$cross_compiling" = yes; then :
4411 lt_cv_dlopen_self_static=cross
4413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4414 lt_status=$lt_dlunknown
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4426 # define LT_DLGLOBAL RTLD_GLOBAL
4429 # define LT_DLGLOBAL DL_GLOBAL
4431 # define LT_DLGLOBAL 0
4435 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4436 find out it does not work in some platform. */
4437 #ifndef LT_DLLAZY_OR_NOW
4439 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4442 # define LT_DLLAZY_OR_NOW DL_LAZY
4445 # define LT_DLLAZY_OR_NOW RTLD_NOW
4448 # define LT_DLLAZY_OR_NOW DL_NOW
4450 # define LT_DLLAZY_OR_NOW 0
4458 extern "C" void exit (int);
4461 fnord() { int i=42;}
4464 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4465 int status = $lt_dlunknown;
4469 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4470 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4471 /* dlclose (self); */
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4478 (./conftest; exit; ) 2>/dev/null
4481 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4482 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4483 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4486 # compilation failed
4487 lt_cv_dlopen_self_static=no
4495 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4498 CPPFLAGS="$save_CPPFLAGS"
4499 LDFLAGS="$save_LDFLAGS"
4504 case "$lt_cv_dlopen_self" in
4505 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4506 *) enable_dlopen_self=unknown ;;
4509 case "$lt_cv_dlopen_self_static" in
4510 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4511 *) enable_dlopen_self_static=unknown ;;
4516 ## FIXME: this should be a separate macro
4518 if test "$enable_shared" = yes && test "$GCC" = yes; then
4519 case "$archive_cmds" in
4521 # FIXME: we may have to deal with multi-command sequences.
4524 # Test whether the compiler implicitly links with -lc since on some
4525 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4526 # to ld, don't add -lc before -lgcc.
4527 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4528 echo "configure:4529: checking whether -lc should be explicitly linked in" >&5
4529 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4533 echo 'static int dummy;' > conftest.$ac_ext
4535 if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4538 libobjs=conftest.$ac_objext
4540 wl=$lt_cv_prog_cc_wl
4546 save_allow_undefined_flag=$allow_undefined_flag
4547 allow_undefined_flag=
4548 if { (eval echo configure:4549: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4550 lt_cv_archive_cmds_need_lc=no
4552 lt_cv_archive_cmds_need_lc=yes
4554 allow_undefined_flag=$save_allow_undefined_flag
4556 cat conftest.err 1>&5
4560 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4564 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4568 ## FIXME: this should be a separate macro
4570 # The second clause should only fire when bootstrapping the
4571 # libtool distribution, otherwise you forgot to ship ltmain.sh
4572 # with your package, and you will get complaints that there are
4573 # no rules to generate ltmain.sh.
4574 if test -f "$ltmain"; then
4577 # If there is no Makefile yet, we rely on a make rule to execute
4578 # `config.status --recheck' to rerun these tests and create the
4579 # libtool script then.
4580 test -f Makefile && make "$ltmain"
4583 if test -f "$ltmain"; then
4584 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4587 echo creating $ofile
4589 # Now quote all the things that may contain metacharacters while being
4590 # careful not to overquote the AC_SUBSTed values. We take copies of the
4591 # variables and quote the copies for generation of the libtool script.
4592 for var in echo old_CC old_CFLAGS \
4593 AR AR_FLAGS CC LD LN_S NM SHELL \
4594 reload_flag reload_cmds wl \
4595 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4596 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4597 library_names_spec soname_spec \
4598 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4599 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4600 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4601 old_striplib striplib file_magic_cmd export_symbols_cmds \
4602 deplibs_check_method allow_undefined_flag no_undefined_flag \
4603 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4604 hardcode_libdir_flag_spec hardcode_libdir_separator \
4605 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4606 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4609 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4610 old_postinstall_cmds | old_postuninstall_cmds | \
4611 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4612 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4613 postinstall_cmds | postuninstall_cmds | \
4614 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4615 # Double-quote double-evaled strings.
4616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4624 cat <<__EOF__ > "${ofile}T"
4627 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4628 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4629 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4631 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4632 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4634 # This program is free software; you can redistribute it and/or modify
4635 # it under the terms of the GNU General Public License as published by
4636 # the Free Software Foundation; either version 2 of the License, or
4637 # (at your option) any later version.
4639 # This program is distributed in the hope that it will be useful, but
4640 # WITHOUT ANY WARRANTY; without even the implied warranty of
4641 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4642 # General Public License for more details.
4644 # You should have received a copy of the GNU General Public License
4645 # along with this program; if not, write to the Free Software
4646 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4648 # As a special exception to the GNU General Public License, if you
4649 # distribute this file as part of a program that contains a
4650 # configuration script generated by Autoconf, you may include it under
4651 # the same distribution terms that you use for the rest of that program.
4653 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4654 Xsed="sed -e s/^X//"
4656 # The HP-UX ksh and POSIX shell print the target directory to stdout
4658 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4660 # ### BEGIN LIBTOOL CONFIG
4662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4664 # Shell to use when invoking shell scripts.
4667 # Whether or not to build shared libraries.
4668 build_libtool_libs=$enable_shared
4670 # Whether or not to add -lc for building shared libraries.
4671 build_libtool_need_lc=$need_lc
4673 # Whether or not to build static libraries.
4674 build_old_libs=$enable_static
4676 # Whether or not to optimize for fast installation.
4677 fast_install=$enable_fast_install
4680 host_alias=$host_alias
4683 # An echo program that does not interpret backslashes.
4688 AR_FLAGS=$lt_AR_FLAGS
4690 # The default C compiler.
4693 # Is the compiler the GNU C compiler?
4696 # The linker used to build libraries.
4699 # Whether we need hard or soft links.
4702 # A BSD-compatible nm program.
4705 # A symbol stripping program
4708 # Used to examine libraries when file_magic_cmd begins "file"
4709 MAGIC_CMD=$MAGIC_CMD
4711 # Used on cygwin: DLL creation program.
4714 # Used on cygwin: object dumper.
4717 # Used on cygwin: assembler.
4720 # The name of the directory that contains temporary libtool files.
4723 # How to create reloadable object files.
4724 reload_flag=$lt_reload_flag
4725 reload_cmds=$lt_reload_cmds
4727 # How to pass a linker flag through the compiler.
4730 # Object file suffix (normally "o").
4733 # Old archive suffix (normally "a").
4736 # Executable file suffix (normally "").
4739 # Additional compiler flags for building library objects.
4740 pic_flag=$lt_pic_flag
4743 # Does compiler simultaneously support -c and -o options?
4744 compiler_c_o=$lt_compiler_c_o
4746 # Can we write directly to a .lo ?
4747 compiler_o_lo=$lt_compiler_o_lo
4749 # Must we lock files when doing compilation ?
4750 need_locks=$lt_need_locks
4752 # Do we need the lib prefix for modules?
4753 need_lib_prefix=$need_lib_prefix
4755 # Do we need a version for libraries?
4756 need_version=$need_version
4758 # Whether dlopen is supported.
4759 dlopen_support=$enable_dlopen
4761 # Whether dlopen of programs is supported.
4762 dlopen_self=$enable_dlopen_self
4764 # Whether dlopen of statically linked programs is supported.
4765 dlopen_self_static=$enable_dlopen_self_static
4767 # Compiler flag to prevent dynamic linking.
4768 link_static_flag=$lt_link_static_flag
4770 # Compiler flag to turn off builtin functions.
4771 no_builtin_flag=$lt_no_builtin_flag
4773 # Compiler flag to allow reflexive dlopens.
4774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4776 # Compiler flag to generate shared objects directly from archives.
4777 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4779 # Compiler flag to generate thread-safe objects.
4780 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4782 # Library versioning type.
4783 version_type=$version_type
4785 # Format of library name prefix.
4786 libname_spec=$lt_libname_spec
4788 # List of archive names. First name is the real one, the rest are links.
4789 # The last name is the one that the linker finds with -lNAME.
4790 library_names_spec=$lt_library_names_spec
4792 # The coded name of the library, if different from the real name.
4793 soname_spec=$lt_soname_spec
4795 # Commands used to build and install an old-style archive.
4797 old_archive_cmds=$lt_old_archive_cmds
4798 old_postinstall_cmds=$lt_old_postinstall_cmds
4799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4801 # Create an old-style archive from a shared archive.
4802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4804 # Create a temporary old-style archive to link instead of a shared archive.
4805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4807 # Commands used to build and install a shared archive.
4808 archive_cmds=$lt_archive_cmds
4809 archive_expsym_cmds=$lt_archive_expsym_cmds
4810 postinstall_cmds=$lt_postinstall_cmds
4811 postuninstall_cmds=$lt_postuninstall_cmds
4813 # Commands to strip libraries.
4814 old_striplib=$lt_old_striplib
4815 striplib=$lt_striplib
4817 # Method to check whether dependent libraries are shared objects.
4818 deplibs_check_method=$lt_deplibs_check_method
4820 # Command to use when deplibs_check_method == file_magic.
4821 file_magic_cmd=$lt_file_magic_cmd
4823 # Flag that allows shared libraries with undefined symbols to be built.
4824 allow_undefined_flag=$lt_allow_undefined_flag
4826 # Flag that forces no undefined symbols.
4827 no_undefined_flag=$lt_no_undefined_flag
4829 # Commands used to finish a libtool library installation in a directory.
4830 finish_cmds=$lt_finish_cmds
4832 # Same as above, but a single script fragment to be evaled but not shown.
4833 finish_eval=$lt_finish_eval
4835 # Take the output of nm and produce a listing of raw symbols and C names.
4836 global_symbol_pipe=$lt_global_symbol_pipe
4838 # Transform the output of nm in a proper C declaration
4839 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4841 # This is the shared library runtime path variable.
4842 runpath_var=$runpath_var
4844 # This is the shared library path variable.
4845 shlibpath_var=$shlibpath_var
4847 # Is shlibpath searched before the hard-coded library search path?
4848 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4850 # How to hardcode a shared library path into an executable.
4851 hardcode_action=$hardcode_action
4853 # Whether we should hardcode library paths into libraries.
4854 hardcode_into_libs=$hardcode_into_libs
4856 # Flag to hardcode \$libdir into a binary during linking.
4857 # This must work even if \$libdir does not exist.
4858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4860 # Whether we need a single -rpath flag with a separated argument.
4861 hardcode_libdir_separator=$lt_hardcode_libdir_separator
4863 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4865 hardcode_direct=$hardcode_direct
4867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4869 hardcode_minus_L=$hardcode_minus_L
4871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4872 # the resulting binary.
4873 hardcode_shlibpath_var=$hardcode_shlibpath_var
4875 # Variables whose values should be saved in libtool wrapper scripts and
4876 # restored at relink time.
4877 variables_saved_for_relink="$variables_saved_for_relink"
4879 # Whether libtool must link a program against all its dependency libraries.
4880 link_all_deplibs=$link_all_deplibs
4882 # Compile-time system search path for libraries
4883 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4885 # Run-time system search path for libraries
4886 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4888 # Fix the shell variable \$srcfile for the compiler.
4889 fix_srcfile_path="$fix_srcfile_path"
4891 # Set to yes if exported symbols are required.
4892 always_export_symbols=$always_export_symbols
4894 # The commands to list exported symbols.
4895 export_symbols_cmds=$lt_export_symbols_cmds
4897 # The commands to extract the exported symbol list from a shared archive.
4898 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4900 # Symbols that should not be listed in the preloaded symbols.
4901 exclude_expsyms=$lt_exclude_expsyms
4903 # Symbols that must always be exported.
4904 include_expsyms=$lt_include_expsyms
4906 # ### END LIBTOOL CONFIG
4912 cat <<\EOF >> "${ofile}T"
4914 # AIX sometimes has problems with the GCC collect2 program. For some
4915 # reason, if we set the COLLECT_NAMES environment variable, the problems
4916 # vanish in a puff of smoke.
4917 if test "X${COLLECT_NAMES+set}" != Xset; then
4919 export COLLECT_NAMES
4926 cygwin* | mingw* | pw32* | os2*)
4927 cat <<'EOF' >> "${ofile}T"
4928 # This is a source program that is used to create dlls on Windows
4929 # Don't remove nor modify the starting and closing comments
4930 # /* ltdll.c starts here */
4931 # #define WIN32_LEAN_AND_MEAN
4932 # #include <windows.h>
4933 # #undef WIN32_LEAN_AND_MEAN
4934 # #include <stdio.h>
4936 # #ifndef __CYGWIN__
4937 # # ifdef __CYGWIN32__
4938 # # define __CYGWIN__ __CYGWIN32__
4942 # #ifdef __cplusplus
4945 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4946 # #ifdef __cplusplus
4951 # #include <cygwin/cygwin_dll.h>
4952 # DECLARE_CYGWIN_DLL( DllMain );
4954 # HINSTANCE __hDllInstance_base;
4957 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4959 # __hDllInstance_base = hInst;
4962 # /* ltdll.c ends here */
4963 # This is a source program that is used to create import libraries
4964 # on Windows for dlls which lack them. Don't remove nor modify the
4965 # starting and closing comments
4966 # /* impgen.c starts here */
4967 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4969 # This file is part of GNU libtool.
4971 # This program is free software; you can redistribute it and/or modify
4972 # it under the terms of the GNU General Public License as published by
4973 # the Free Software Foundation; either version 2 of the License, or
4974 # (at your option) any later version.
4976 # This program is distributed in the hope that it will be useful,
4977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4979 # GNU General Public License for more details.
4981 # You should have received a copy of the GNU General Public License
4982 # along with this program; if not, write to the Free Software
4983 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4986 # #include <stdio.h> /* for printf() */
4987 # #include <unistd.h> /* for open(), lseek(), read() */
4988 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4989 # #include <string.h> /* for strdup() */
4991 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
4993 # #define O_BINARY 0
4996 # static unsigned int
4997 # pe_get16 (fd, offset)
5001 # unsigned char b[2];
5002 # lseek (fd, offset, SEEK_SET);
5004 # return b[0] + (b[1]<<8);
5007 # static unsigned int
5008 # pe_get32 (fd, offset)
5012 # unsigned char b[4];
5013 # lseek (fd, offset, SEEK_SET);
5015 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5018 # static unsigned int
5022 # unsigned char *b = ptr;
5023 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5032 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5033 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5034 # unsigned long name_rvas, nexp;
5035 # unsigned char *expdata, *erva;
5036 # char *filename, *dll_name;
5038 # filename = argv[1];
5040 # dll = open(filename, O_RDONLY|O_BINARY);
5044 # dll_name = filename;
5046 # for (i=0; filename[i]; i++)
5047 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5048 # dll_name = filename + i +1;
5050 # pe_header_offset = pe_get32 (dll, 0x3c);
5051 # opthdr_ofs = pe_header_offset + 4 + 20;
5052 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5054 # if (num_entries < 1) /* no exports */
5057 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5058 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5059 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5060 # secptr = (pe_header_offset + 4 + 20 +
5061 # pe_get16 (dll, pe_header_offset + 4 + 16));
5064 # for (i = 0; i < nsections; i++)
5067 # unsigned long secptr1 = secptr + 40 * i;
5068 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5069 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5070 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5071 # lseek(dll, secptr1, SEEK_SET);
5072 # read(dll, sname, 8);
5073 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5075 # expptr = fptr + (export_rva - vaddr);
5076 # if (export_rva + export_size > vaddr + vsize)
5077 # export_size = vsize - (export_rva - vaddr);
5082 # expdata = (unsigned char*)malloc(export_size);
5083 # lseek (dll, expptr, SEEK_SET);
5084 # read (dll, expdata, export_size);
5085 # erva = expdata - export_rva;
5087 # nexp = pe_as32 (expdata+24);
5088 # name_rvas = pe_as32 (expdata+32);
5090 # printf ("EXPORTS\n");
5091 # for (i = 0; i<nexp; i++)
5093 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5094 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5099 # /* impgen.c ends here */
5105 # We use sed instead of cat because bash on DJGPP gets confused if
5106 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5107 # text mode, it properly converts lines to CR/LF. This bash problem
5108 # is reportedly fixed, but why not run on old versions too?
5109 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5111 mv -f "${ofile}T" "$ofile" || \
5112 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5122 # This can be used to rebuild libtool when needed
5123 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5125 # Always use our own libtool.
5126 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5128 # Prevent multiple expansion
5132 support_addstrings=no
5134 support_linespace=no
5136 support_inheritpixmap=no
5137 support_keepscrolling=no
5138 support_selectionscrolling=no
5140 support_mousewheel=no
5141 support_mouseslipwheel=no
5142 support_oldselection=no
5146 support_cursor_blink=no
5147 support_pointer_blank=no
5148 support_scroll_rxvt=no
5149 support_scroll_next=no
5150 support_scroll_xterm=no
5158 if test "x$enable_shared" = xyes; then
5159 cat >> confdefs.h <<\EOF
5167 # Check whether --enable-everything or --disable-everything was given.
5168 if test "${enable_everything+set}" = set; then
5169 enableval="$enable_everything"
5170 if test x$enableval = xyes; then
5173 support_linespace=yes
5174 support_graphics=yes
5175 support_inheritpixmap=yes
5176 support_keepscrolling=yes
5177 support_selectionscrolling=yes
5180 support_mousewheel=yes
5181 support_mouseslipwheel=yes
5182 support_oldselection=yes
5183 support_cursor_blink=yes
5184 support_pointer_blank=yes
5185 support_scroll_rxvt=yes
5186 support_scroll_next=yes
5187 support_scroll_xterm=yes
5193 support_unicode3=yes
5200 if test x$support_inheritpixmap = xyes; then
5201 support_inheritpixmap=no
5202 echo "******* transparency support disabled, does not work"
5204 if test x$support_xpm = xyes; then
5206 echo "******* pixmap support disabled, does not work"
5208 if test x$support_graphics = xyes; then
5210 echo "******* graphics support disabled, does not work"
5212 if test x$support_menubar = xyes; then
5214 echo "******* menubar support disabled, does not work"
5218 # Check whether --enable-unicode3 or --disable-unicode3 was given.
5219 if test "${enable_unicode3+set}" = set; then
5220 enableval="$enable_unicode3"
5221 if test x$enableval = xyes; then
5222 support_unicode3=yes
5227 # Check whether --enable-xft or --disable-xft was given.
5228 if test "${enable_xft+set}" = set; then
5229 enableval="$enable_xft"
5230 if test x$enableval = xyes; then
5236 # Check whether --with-codesets or --without-codesets was given.
5237 if test "${with_codesets+set}" = set; then
5238 withval="$with_codesets"
5239 if test x$enableval = xyes; then
5245 # Check whether --with-encoding or --without-encoding was given.
5246 if test "${with_encoding+set}" = set; then
5247 withval="$with_encoding"
5248 if test x$enableval = xyes; then
5249 withval=`echo $withval | tr 'a-z' 'A-Z'`
5250 cat >> confdefs.h <<EOF
5251 #define MULTICHAR_ENCODING $withval
5258 # Check whether --enable-utmp or --disable-utmp was given.
5259 if test "${enable_utmp+set}" = set; then
5260 enableval="$enable_utmp"
5261 if test x$enableval = xyes -o x$enableval = xno; then
5262 support_utmp=$enableval
5267 # Check whether --enable-wtmp or --disable-wtmp was given.
5268 if test "${enable_wtmp+set}" = set; then
5269 enableval="$enable_wtmp"
5270 if test x$enableval = xyes -o x$enableval = xno; then
5271 support_wtmp=$enableval
5276 # Check whether --enable-lastlog or --disable-lastlog was given.
5277 if test "${enable_lastlog+set}" = set; then
5278 enableval="$enable_lastlog"
5279 if test x$enableval = xyes -o x$enableval = xno; then
5280 support_lastlog=$enableval
5285 # Check whether --enable-xpm-background or --disable-xpm-background was given.
5286 if test "${enable_xpm_background+set}" = set; then
5287 enableval="$enable_xpm_background"
5288 if test x$enableval = xyes -o x$enableval = xno; then
5289 support_xpm=$enableval
5294 # Check whether --enable-transparency or --disable-transparency was given.
5295 if test "${enable_transparency+set}" = set; then
5296 enableval="$enable_transparency"
5297 if test x$enableval = xyes -o x$enableval = xno; then
5298 support_inheritpixmap=$enableval
5303 # Check whether --enable-menubar or --disable-menubar was given.
5304 if test "${enable_menubar+set}" = set; then
5305 enableval="$enable_menubar"
5306 if test x$enableval = xyes -o x$enableval = xno; then
5307 support_menubar=$enableval
5312 # Check whether --enable-graphics or --disable-graphics was given.
5313 if test "${enable_graphics+set}" = set; then
5314 enableval="$enable_graphics"
5315 if test x$enableval = xyes -o x$enableval = xno; then
5316 support_graphics=$enableval
5321 # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
5322 if test "${enable_rxvt_scroll+set}" = set; then
5323 enableval="$enable_rxvt_scroll"
5324 if test x$enableval = xyes -o x$enableval = xno; then
5325 support_scroll_rxvt=$enableval
5330 # Check whether --enable-next-scroll or --disable-next-scroll was given.
5331 if test "${enable_next_scroll+set}" = set; then
5332 enableval="$enable_next_scroll"
5333 if test x$enableval = xyes -o x$enableval = xno; then
5334 support_scroll_next=$enableval
5339 # Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
5340 if test "${enable_xterm_scroll+set}" = set; then
5341 enableval="$enable_xterm_scroll"
5342 if test x$enableval = xyes -o x$enableval = xno; then
5343 support_scroll_xterm=$enableval
5348 # Check whether --enable-half-shadow or --disable-half-shadow was given.
5349 if test "${enable_half_shadow+set}" = set; then
5350 enableval="$enable_half_shadow"
5351 if test x$enableval = xyes; then
5352 cat >> confdefs.h <<\EOF
5353 #define HALFSHADOW 1
5360 # Check whether --enable-xim or --disable-xim was given.
5361 if test "${enable_xim+set}" = set; then
5362 enableval="$enable_xim"
5363 if test x$enableval = xyes -o x$enableval = xno; then
5364 support_xim=$enableval
5369 # Check whether --enable-greek or --disable-greek was given.
5370 if test "${enable_greek+set}" = set; then
5371 enableval="$enable_greek"
5372 if test x$enableval = xyes; then
5373 cat >> confdefs.h <<\EOF
5374 #define GREEK_SUPPORT 1
5381 # Check whether --enable-ttygid or --disable-ttygid was given.
5382 if test "${enable_ttygid+set}" = set; then
5383 enableval="$enable_ttygid"
5384 if test x$enableval = xyes; then
5385 cat >> confdefs.h <<\EOF
5386 #define TTY_GID_SUPPORT 1
5393 # Check whether --enable-backspace-key or --disable-backspace-key was given.
5394 if test "${enable_backspace_key+set}" = set; then
5395 enableval="$enable_backspace_key"
5396 if test x$enableval = xno; then
5397 cat >> confdefs.h <<\EOF
5398 #define NO_BACKSPACE_KEY 1
5405 # Check whether --enable-delete-key or --disable-delete-key was given.
5406 if test "${enable_delete_key+set}" = set; then
5407 enableval="$enable_delete_key"
5408 if test x$enableval = xno; then
5409 cat >> confdefs.h <<\EOF
5410 #define NO_DELETE_KEY 1
5417 # Check whether --enable-resources or --disable-resources was given.
5418 if test "${enable_resources+set}" = set; then
5419 enableval="$enable_resources"
5420 if test x$enableval = xno; then
5421 cat >> confdefs.h <<\EOF
5422 #define NO_RESOURCES 1
5429 # Check whether --enable-xgetdefault or --disable-xgetdefault was given.
5430 if test "${enable_xgetdefault+set}" = set; then
5431 enableval="$enable_xgetdefault"
5432 if test x$enableval = xyes; then
5433 cat >> confdefs.h <<\EOF
5434 #define USE_XGETDEFAULT 1
5441 # Check whether --enable-strings or --disable-strings was given.
5442 if test "${enable_strings+set}" = set; then
5443 enableval="$enable_strings"
5444 if test x$enableval = xyes -o x$enableval = xno; then
5445 support_addstrings=$enableval
5450 # Check whether --enable-swapscreen or --disable-swapscreen was given.
5451 if test "${enable_swapscreen+set}" = set; then
5452 enableval="$enable_swapscreen"
5453 if test x$enableval = xno; then
5454 cat >> confdefs.h <<\EOF
5455 #define NO_SECONDARY_SCREEN 1
5462 # Check whether --enable-frills or --disable-frills was given.
5463 if test "${enable_frills+set}" = set; then
5464 enableval="$enable_frills"
5465 if test x$enableval = xyes -o x$enableval = xno; then
5466 support_frills=$enableval
5471 # Check whether --enable-linespace or --disable-linespace was given.
5472 if test "${enable_linespace+set}" = set; then
5473 enableval="$enable_linespace"
5474 if test x$enableval = xyes -o x$enableval = xno; then
5475 support_linespace=$enableval
5480 # Check whether --enable-24bit or --disable-24bit was given.
5481 if test "${enable_24bit+set}" = set; then
5482 enableval="$enable_24bit"
5483 if test x$enableval = xyes -o x$enableval = xno; then
5484 support_24bit=$enableval
5489 # Check whether --enable-keepscrolling or --disable-keepscrolling was given.
5490 if test "${enable_keepscrolling+set}" = set; then
5491 enableval="$enable_keepscrolling"
5492 if test x$enableval = xyes -o x$enableval = xno; then
5493 support_keepscrolling=$enableval
5498 # Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
5499 if test "${enable_selectionscrolling+set}" = set; then
5500 enableval="$enable_selectionscrolling"
5501 if test x$enableval = xyes -o x$enableval = xno; then
5502 support_selectionscrolling=$enableval
5507 # Check whether --enable-mousewheel or --disable-mousewheel was given.
5508 if test "${enable_mousewheel+set}" = set; then
5509 enableval="$enable_mousewheel"
5510 if test x$enableval = xyes -o x$enableval = xno; then
5511 support_mousewheel=$enableval
5516 # Check whether --enable-slipwheeling or --disable-slipwheeling was given.
5517 if test "${enable_slipwheeling+set}" = set; then
5518 enableval="$enable_slipwheeling"
5519 if test x$enableval = xyes -o x$enableval = xno; then
5520 support_mouseslipwheel=$enableval
5525 # Check whether --enable-old-selection or --disable-old-selection was given.
5526 if test "${enable_old_selection+set}" = set; then
5527 enableval="$enable_old_selection"
5528 if test x$enableval = xyes -o x$enableval = xno; then
5529 support_oldselection=$enableval
5534 # Check whether --enable-new-selection or --disable-new-selection was given.
5535 if test "${enable_new_selection+set}" = set; then
5536 enableval="$enable_new_selection"
5537 if test x$enableval = xno; then
5538 cat >> confdefs.h <<\EOF
5539 #define NO_NEW_SELECTION 1
5546 # Check whether --enable-dmalloc or --disable-dmalloc was given.
5547 if test "${enable_dmalloc+set}" = set; then
5548 enableval="$enable_dmalloc"
5549 if test x$enableval = xyes; then
5551 DEBUG=-DDEBUG_MALLOC
5552 DLIB="-L/usr/local/lib -ldmalloc"
5553 DINCLUDE=-I/usr/local/include
5558 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
5559 if test "${enable_dlmalloc+set}" = set; then
5560 enableval="$enable_dlmalloc"
5561 if test x$enableval = xyes; then
5564 DLIB="-L/usr/local/lib -ldlmalloc"
5570 # Check whether --enable-smart-resize or --disable-smart-resize was given.
5571 if test "${enable_smart_resize+set}" = set; then
5572 enableval="$enable_smart_resize"
5573 if test x$enableval = xyes; then
5574 cat >> confdefs.h <<\EOF
5575 #define SMART_RESIZE 1
5582 # Check whether --enable-256-color or --disable-256-color was given.
5583 if test "${enable_256_color+set}" = set; then
5584 enableval="$enable_256_color"
5585 if test x$enableval = xyes; then
5586 cat >> confdefs.h <<\EOF
5587 #define TTY_256COLOR 1
5594 # Check whether --enable-cursor-blink or --disable-cursor-blink was given.
5595 if test "${enable_cursor_blink+set}" = set; then
5596 enableval="$enable_cursor_blink"
5597 if test x$enableval = xyes -o x$enableval = xno; then
5598 support_cursor_blink=$enableval
5603 # Check whether --enable-pointer-blank or --disable-pointer-blank was given.
5604 if test "${enable_pointer_blank+set}" = set; then
5605 enableval="$enable_pointer_blank"
5606 if test x$enableval = xyes -o x$enableval = xno; then
5607 support_pointer_blank=$enableval
5612 # Check whether --with-term or --without-term was given.
5613 if test "${with_term+set}" = set; then
5614 withval="$with_term"
5615 if test x$withval != x; then
5616 cat >> confdefs.h <<EOF
5617 #define TERMENV "$withval"
5624 # Check whether --with-terminfo or --without-terminfo was given.
5625 if test "${with_terminfo+set}" = set; then
5626 withval="$with_terminfo"
5627 if test x$withval != x; then
5628 cat >> confdefs.h <<EOF
5629 #define RXVT_TERMINFO "$withval"
5637 cat >> confdefs.h <<\EOF
5638 #define PROTOTYPES 1
5642 if test -z "$CFLAGS"; then
5643 if test -z "$CCOPTS"; then
5649 # Extract the first word of "mv", so it can be a program name with args.
5650 set dummy mv; ac_word=$2
5651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5652 echo "configure:5653: checking for $ac_word" >&5
5653 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5658 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5661 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
5664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5666 for ac_dir in $ac_dummy; do
5667 test -z "$ac_dir" && ac_dir=.
5668 if test -f $ac_dir/$ac_word; then
5669 ac_cv_path_MV="$ac_dir/$ac_word"
5674 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5679 if test -n "$MV"; then
5680 echo "$ac_t""$MV" 1>&6
5682 echo "$ac_t""no" 1>&6
5685 # Extract the first word of "rm", so it can be a program name with args.
5686 set dummy rm; ac_word=$2
5687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5688 echo "configure:5689: checking for $ac_word" >&5
5689 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5694 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5697 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5702 for ac_dir in $ac_dummy; do
5703 test -z "$ac_dir" && ac_dir=.
5704 if test -f $ac_dir/$ac_word; then
5705 ac_cv_path_RM="$ac_dir/$ac_word"
5710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5715 if test -n "$RM"; then
5716 echo "$ac_t""$RM" 1>&6
5718 echo "$ac_t""no" 1>&6
5721 # Extract the first word of "cp", so it can be a program name with args.
5722 set dummy cp; ac_word=$2
5723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5724 echo "configure:5725: checking for $ac_word" >&5
5725 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5730 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5733 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
5736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5738 for ac_dir in $ac_dummy; do
5739 test -z "$ac_dir" && ac_dir=.
5740 if test -f $ac_dir/$ac_word; then
5741 ac_cv_path_CP="$ac_dir/$ac_word"
5746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5751 if test -n "$CP"; then
5752 echo "$ac_t""$CP" 1>&6
5754 echo "$ac_t""no" 1>&6
5757 # Extract the first word of "ln", so it can be a program name with args.
5758 set dummy ln; ac_word=$2
5759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5760 echo "configure:5761: checking for $ac_word" >&5
5761 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5766 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5769 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
5772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5774 for ac_dir in $ac_dummy; do
5775 test -z "$ac_dir" && ac_dir=.
5776 if test -f $ac_dir/$ac_word; then
5777 ac_cv_path_LN="$ac_dir/$ac_word"
5782 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
5787 if test -n "$LN"; then
5788 echo "$ac_t""$LN" 1>&6
5790 echo "$ac_t""no" 1>&6
5793 # Extract the first word of "sed", so it can be a program name with args.
5794 set dummy sed; ac_word=$2
5795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5796 echo "configure:5797: checking for $ac_word" >&5
5797 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5802 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5805 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5810 for ac_dir in $ac_dummy; do
5811 test -z "$ac_dir" && ac_dir=.
5812 if test -f $ac_dir/$ac_word; then
5813 ac_cv_path_SED="$ac_dir/$ac_word"
5818 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5822 SED="$ac_cv_path_SED"
5823 if test -n "$SED"; then
5824 echo "$ac_t""$SED" 1>&6
5826 echo "$ac_t""no" 1>&6
5829 # Extract the first word of "echo", so it can be a program name with args.
5830 set dummy echo; ac_word=$2
5831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5832 echo "configure:5833: checking for $ac_word" >&5
5833 if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5838 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5841 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a dos path.
5844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5846 for ac_dir in $ac_dummy; do
5847 test -z "$ac_dir" && ac_dir=.
5848 if test -f $ac_dir/$ac_word; then
5849 ac_cv_path_ECHO="$ac_dir/$ac_word"
5854 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5858 ECHO="$ac_cv_path_ECHO"
5859 if test -n "$ECHO"; then
5860 echo "$ac_t""$ECHO" 1>&6
5862 echo "$ac_t""no" 1>&6
5865 # Extract the first word of "cmp", so it can be a program name with args.
5866 set dummy cmp; ac_word=$2
5867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5868 echo "configure:5869: checking for $ac_word" >&5
5869 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5874 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5877 ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
5880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5882 for ac_dir in $ac_dummy; do
5883 test -z "$ac_dir" && ac_dir=.
5884 if test -f $ac_dir/$ac_word; then
5885 ac_cv_path_CMP="$ac_dir/$ac_word"
5890 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5894 CMP="$ac_cv_path_CMP"
5895 if test -n "$CMP"; then
5896 echo "$ac_t""$CMP" 1>&6
5898 echo "$ac_t""no" 1>&6
5901 # Extract the first word of "tbl", so it can be a program name with args.
5902 set dummy tbl; ac_word=$2
5903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5904 echo "configure:5905: checking for $ac_word" >&5
5905 if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
5906 echo $ac_n "(cached) $ac_c" 1>&6
5910 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5913 ac_cv_path_TBL="$TBL" # Let the user override the test with a dos path.
5916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5918 for ac_dir in $ac_dummy; do
5919 test -z "$ac_dir" && ac_dir=.
5920 if test -f $ac_dir/$ac_word; then
5921 ac_cv_path_TBL="$ac_dir/$ac_word"
5929 TBL="$ac_cv_path_TBL"
5930 if test -n "$TBL"; then
5931 echo "$ac_t""$TBL" 1>&6
5933 echo "$ac_t""no" 1>&6
5939 # If we find X, set shell vars x_includes and x_libraries to the
5940 # paths, otherwise set no_x=yes.
5941 # Uses ac_ vars as temps to allow command line to override cache and checks.
5942 # --without-x overrides everything else, but does not touch the cache.
5943 echo $ac_n "checking for X""... $ac_c" 1>&6
5944 echo "configure:5945: checking for X" >&5
5946 # Check whether --with-x or --without-x was given.
5947 if test "${with_x+set}" = set; then
5952 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5953 if test "x$with_x" = xno; then
5954 # The user explicitly disabled X.
5957 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5958 # Both variables are already set.
5961 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5962 echo $ac_n "(cached) $ac_c" 1>&6
5964 # One or both of the vars are not set, and there is no cached value.
5965 ac_x_includes=NO ac_x_libraries=NO
5967 if mkdir conftestdir; then
5969 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5970 cat > Imakefile <<'EOF'
5972 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5974 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5976 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5978 for ac_extension in a so sl; do
5979 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5980 test -f $ac_im_libdir/libX11.$ac_extension; then
5981 ac_im_usrlibdir=$ac_im_libdir; break
5984 # Screen out bogus values from the imake configuration. They are
5985 # bogus both because they are the default anyway, and because
5986 # using them would break gcc on systems where it needs fixed includes.
5987 case "$ac_im_incroot" in
5989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5991 case "$ac_im_usrlibdir" in
5993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6000 if test "$ac_x_includes" = NO; then
6001 # Guess where to find include files, by looking for this one X11 .h file.
6002 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6004 # First, try using that file with no special directory specified.
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008 #include <$x_direct_test_include>
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6013 if test -z "$ac_err"; then
6015 # We can compile using X headers with no special include directory.
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 # Look for the header file in a standard set of common directories.
6023 # Check X11 before X11Rn because it is often a symlink to the current release.
6026 /usr/X11R6/include \
6027 /usr/X11R5/include \
6028 /usr/X11R4/include \
6031 /usr/include/X11R6 \
6032 /usr/include/X11R5 \
6033 /usr/include/X11R4 \
6035 /usr/local/X11/include \
6036 /usr/local/X11R6/include \
6037 /usr/local/X11R5/include \
6038 /usr/local/X11R4/include \
6040 /usr/local/include/X11 \
6041 /usr/local/include/X11R6 \
6042 /usr/local/include/X11R5 \
6043 /usr/local/include/X11R4 \
6047 /usr/XFree86/include/X11 \
6050 /usr/local/include \
6051 /usr/unsupported/include \
6052 /usr/athena/include \
6053 /usr/local/x11r5/include \
6054 /usr/lpp/Xamples/include \
6056 /usr/openwin/include \
6057 /usr/openwin/share/include \
6060 if test -r "$ac_dir/$x_direct_test_include"; then
6061 ac_x_includes=$ac_dir
6067 fi # $ac_x_includes = NO
6069 if test "$ac_x_libraries" = NO; then
6070 # Check for the libraries.
6072 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6073 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6075 # See if we find them without any special options.
6076 # Don't add to $LIBS permanently.
6077 ac_save_LIBS="$LIBS"
6078 LIBS="-l$x_direct_test_library $LIBS"
6079 cat > conftest.$ac_ext <<EOF
6080 #line 6081 "configure"
6081 #include "confdefs.h"
6084 ${x_direct_test_function}()
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6089 LIBS="$ac_save_LIBS"
6090 # We can link X programs with no special library path.
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 LIBS="$ac_save_LIBS"
6097 # First see if replacing the include by lib works.
6098 # Check X11 before X11Rn because it is often a symlink to the current release.
6099 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6110 /usr/local/X11/lib \
6111 /usr/local/X11R6/lib \
6112 /usr/local/X11R5/lib \
6113 /usr/local/X11R4/lib \
6115 /usr/local/lib/X11 \
6116 /usr/local/lib/X11R6 \
6117 /usr/local/lib/X11R5 \
6118 /usr/local/lib/X11R4 \
6122 /usr/XFree86/lib/X11 \
6126 /usr/unsupported/lib \
6128 /usr/local/x11r5/lib \
6129 /usr/lpp/Xamples/lib \
6133 /usr/openwin/share/lib \
6136 for ac_extension in a so sl; do
6137 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6138 ac_x_libraries=$ac_dir
6145 fi # $ac_x_libraries = NO
6147 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6148 # Didn't find X anywhere. Cache the known absence of X.
6149 ac_cv_have_x="have_x=no"
6151 # Record where we found X for the cache.
6152 ac_cv_have_x="have_x=yes \
6153 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6157 eval "$ac_cv_have_x"
6160 if test "$have_x" != yes; then
6161 echo "$ac_t""$have_x" 1>&6
6164 # If each of the values was on the command line, it overrides each guess.
6165 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes \
6169 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6170 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6173 if test "$no_x" = yes; then
6174 # Not all programs may use this symbol, but it does not hurt to define it.
6175 cat >> confdefs.h <<\EOF
6176 #define X_DISPLAY_MISSING 1
6179 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6181 if test -n "$x_includes"; then
6182 X_CFLAGS="$X_CFLAGS -I$x_includes"
6185 # It would also be nice to do this for all -L options, not just this one.
6186 if test -n "$x_libraries"; then
6187 X_LIBS="$X_LIBS -L$x_libraries"
6188 # For Solaris; some versions of Sun CC require a space after -R and
6189 # others require no space. Words are not sufficient . . . .
6190 case "`(uname -sr) 2>/dev/null`" in
6192 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6193 echo "configure:6194: checking whether -R must be followed by a space" >&5
6194 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6203 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6213 if test $ac_R_nospace = yes; then
6214 echo "$ac_t""no" 1>&6
6215 X_LIBS="$X_LIBS -R$x_libraries"
6217 LIBS="$ac_xsave_LIBS -R $x_libraries"
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 echo "configure: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6236 if test $ac_R_space = yes; then
6237 echo "$ac_t""yes" 1>&6
6238 X_LIBS="$X_LIBS -R $x_libraries"
6240 echo "$ac_t""neither works" 1>&6
6243 LIBS="$ac_xsave_LIBS"
6247 # Check for system-dependent libraries X programs must link with.
6248 # Do this before checking for the system-independent R6 libraries
6249 # (-lICE), since we may need -lsocket or whatever for X linking.
6251 if test "$ISC" = yes; then
6252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6255 # libraries were built with DECnet support. And karl@cs.umb.edu says
6256 # the Alpha needs dnet_stub (dnet does not exist).
6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6258 echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5
6259 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6263 ac_save_LIBS="$LIBS"
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6279 eval "ac_cv_lib_$ac_lib_var=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 eval "ac_cv_lib_$ac_lib_var=no"
6287 LIBS="$ac_save_LIBS"
6290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6294 echo "$ac_t""no" 1>&6
6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6298 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6299 echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5
6300 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 ac_save_LIBS="$LIBS"
6305 LIBS="-ldnet_stub $LIBS"
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6318 if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 eval "ac_cv_lib_$ac_lib_var=yes"
6322 echo "configure: failed program was:" >&5
6323 cat conftest.$ac_ext >&5
6325 eval "ac_cv_lib_$ac_lib_var=no"
6328 LIBS="$ac_save_LIBS"
6331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6332 echo "$ac_t""yes" 1>&6
6333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6335 echo "$ac_t""no" 1>&6
6340 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341 # to get the SysV transport functions.
6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6344 # The nsl library prevents programs from opening the X display
6345 # on Irix 5.2, according to dickey@clark.net.
6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6347 echo "configure:6348: checking for gethostbyname" >&5
6348 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6349 echo $ac_n "(cached) $ac_c" 1>&6
6351 cat > conftest.$ac_ext <<EOF
6352 #line 6353 "configure"
6353 #include "confdefs.h"
6354 /* System header to define __stub macros and hopefully few prototypes,
6355 which can conflict with char gethostbyname(); below. */
6357 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6360 char gethostbyname();
6364 /* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */
6367 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377 eval "ac_cv_func_gethostbyname=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_func_gethostbyname=no"
6387 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6391 echo "$ac_t""no" 1>&6
6394 if test $ac_cv_func_gethostbyname = no; then
6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6396 echo "configure:6397: checking for gethostbyname in -lnsl" >&5
6397 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 ac_save_LIBS="$LIBS"
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6409 char gethostbyname();
6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6432 echo "$ac_t""no" 1>&6
6437 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6438 # socket/setsockopt and other routines are undefined under SCO ODT
6439 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6440 # on later versions), says simon@lia.di.epfl.ch: it contains
6441 # gethostby* variants that don't use the nameserver (or something).
6442 # -lsocket must be given before -lnsl if both are needed.
6443 # We assume that if connect needs -lnsl, so does gethostbyname.
6444 echo $ac_n "checking for connect""... $ac_c" 1>&6
6445 echo "configure:6446: checking for connect" >&5
6446 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6449 cat > conftest.$ac_ext <<EOF
6450 #line 6451 "configure"
6451 #include "confdefs.h"
6452 /* System header to define __stub macros and hopefully few prototypes,
6453 which can conflict with char connect(); below. */
6455 /* Override any gcc2 internal prototype to avoid an error. */
6456 /* We use char because int might match the return type of a gcc2
6457 builtin and then its argument prototype would still apply. */
6462 /* The GNU C library defines this for functions which it implements
6463 to always fail with ENOSYS. Some functions are actually named
6464 something starting with __ and the normal name is an alias. */
6465 #if defined (__stub_connect) || defined (__stub___connect)
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475 eval "ac_cv_func_connect=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6480 eval "ac_cv_func_connect=no"
6485 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6486 echo "$ac_t""yes" 1>&6
6489 echo "$ac_t""no" 1>&6
6492 if test $ac_cv_func_connect = no; then
6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6494 echo "configure:6495: checking for connect in -lsocket" >&5
6495 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 ac_save_LIBS="$LIBS"
6500 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6501 cat > conftest.$ac_ext <<EOF
6502 #line 6503 "configure"
6503 #include "confdefs.h"
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515 eval "ac_cv_lib_$ac_lib_var=yes"
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 eval "ac_cv_lib_$ac_lib_var=no"
6523 LIBS="$ac_save_LIBS"
6526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6527 echo "$ac_t""yes" 1>&6
6528 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6530 echo "$ac_t""no" 1>&6
6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6536 echo $ac_n "checking for remove""... $ac_c" 1>&6
6537 echo "configure:6538: checking for remove" >&5
6538 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6539 echo $ac_n "(cached) $ac_c" 1>&6
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 /* System header to define __stub macros and hopefully few prototypes,
6545 which can conflict with char remove(); below. */
6547 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6554 /* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */
6557 #if defined (__stub_remove) || defined (__stub___remove)
6565 if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6567 eval "ac_cv_func_remove=yes"
6569 echo "configure: failed program was:" >&5
6570 cat conftest.$ac_ext >&5
6572 eval "ac_cv_func_remove=no"
6577 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6578 echo "$ac_t""yes" 1>&6
6581 echo "$ac_t""no" 1>&6
6584 if test $ac_cv_func_remove = no; then
6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6586 echo "configure:6587: checking for remove in -lposix" >&5
6587 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6591 ac_save_LIBS="$LIBS"
6592 LIBS="-lposix $LIBS"
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6607 eval "ac_cv_lib_$ac_lib_var=yes"
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 eval "ac_cv_lib_$ac_lib_var=no"
6615 LIBS="$ac_save_LIBS"
6618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6622 echo "$ac_t""no" 1>&6
6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6629 echo "configure:6630: checking for shmat" >&5
6630 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6631 echo $ac_n "(cached) $ac_c" 1>&6
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 /* System header to define __stub macros and hopefully few prototypes,
6637 which can conflict with char shmat(); below. */
6639 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6646 /* The GNU C library defines this for functions which it implements
6647 to always fail with ENOSYS. Some functions are actually named
6648 something starting with __ and the normal name is an alias. */
6649 #if defined (__stub_shmat) || defined (__stub___shmat)
6657 if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659 eval "ac_cv_func_shmat=yes"
6661 echo "configure: failed program was:" >&5
6662 cat conftest.$ac_ext >&5
6664 eval "ac_cv_func_shmat=no"
6669 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6670 echo "$ac_t""yes" 1>&6
6673 echo "$ac_t""no" 1>&6
6676 if test $ac_cv_func_shmat = no; then
6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6678 echo "configure:6679: checking for shmat in -lipc" >&5
6679 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6681 echo $ac_n "(cached) $ac_c" 1>&6
6683 ac_save_LIBS="$LIBS"
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6699 eval "ac_cv_lib_$ac_lib_var=yes"
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 eval "ac_cv_lib_$ac_lib_var=no"
6707 LIBS="$ac_save_LIBS"
6710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6711 echo "$ac_t""yes" 1>&6
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6714 echo "$ac_t""no" 1>&6
6720 # Check for libraries that X11R6 Xt/Xaw programs need.
6721 ac_save_LDFLAGS="$LDFLAGS"
6722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6724 # check for ICE first), but we must link in the order -lSM -lICE or
6725 # we get undefined symbols. So assume we have SM if we have ICE.
6726 # These have to be linked with before -lX11, unlike the other
6727 # libraries we check for below, so use a different variable.
6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6730 echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5
6731 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 ac_save_LIBS="$LIBS"
6736 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6737 cat > conftest.$ac_ext <<EOF
6738 #line 6739 "configure"
6739 #include "confdefs.h"
6740 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char IceConnectionNumber();
6746 IceConnectionNumber()
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 eval "ac_cv_lib_$ac_lib_var=yes"
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 eval "ac_cv_lib_$ac_lib_var=no"
6759 LIBS="$ac_save_LIBS"
6762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6763 echo "$ac_t""yes" 1>&6
6764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6766 echo "$ac_t""no" 1>&6
6769 LDFLAGS="$ac_save_LDFLAGS"
6775 if test x$support_xpm = xyes; then
6779 # Initialize some more variables set by options.
6780 # The variables have the same names as the options, with
6781 # dashes changed to underlines.
6783 # If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6784 # paths, otherwise set no_xpm=yes.
6785 # Uses ac_ vars as temps to allow command line to override cache and checks.
6786 echo $ac_n "checking for libXpm""... $ac_c" 1>&6
6787 echo "configure:6788: checking for libXpm" >&5
6789 # Check whether --with-xpm_includes or --without-xpm_includes was given.
6790 if test "${with_xpm_includes+set}" = set; then
6791 withval="$with_xpm_includes"
6792 xpm_includes="$withval"
6797 # Check whether --with-xpm_library or --without-xpm_library was given.
6798 if test "${with_xpm_library+set}" = set; then
6799 withval="$with_xpm_library"
6800 xpm_libraries="$withval"
6806 # --without-xpm overrides everything else, but does not touch the cache.
6807 # Check whether --with-xpm or --without-xpm was given.
6808 if test "${with_xpm+set}" = set; then
6813 if test "$with_xpm" = no; then
6816 if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6820 vt_xpm_include_X11=no
6821 if test -n "$xpm_includes"; then
6822 vt_xpm_includes=$xpm_includes
6826 if test -n "$xpm_libraries"; then
6827 vt_xpm_libraries=$xpm_libraries
6832 if test "$vt_xpm_includes" = NO; then
6833 # Guess where to find xpm.h
6835 ac_save_CPPFLAGS="$CPPFLAGS"
6836 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6838 # First, try using that file with no special directory specified.
6839 cat > conftest.$ac_ext <<EOF
6840 #line 6841 "configure"
6841 #include "confdefs.h"
6842 #include <X11/xpm.h>
6844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6845 { (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6847 if test -z "$ac_err"; then
6849 # We can compile using X headers with no special include directory.
6851 vt_xpm_include_X11=yes
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 CPPFLAGS="$ac_save_CPPFLAGS"
6858 # Look for the header file in a standard set of common directories.
6861 /usr/X11R6/include \
6862 /usr/X11R5/include \
6863 /usr/X11R4/include \
6866 /usr/include/X11R6 \
6867 /usr/include/X11R5 \
6868 /usr/include/X11R4 \
6870 /usr/local/X11/include \
6871 /usr/local/X11R6/include \
6872 /usr/local/X11R5/include \
6873 /usr/local/X11R4/include \
6875 /usr/local/include/X11 \
6876 /usr/local/include/X11R6 \
6877 /usr/local/include/X11R5 \
6878 /usr/local/include/X11R4 \
6882 /usr/XFree86/include/X11 \
6885 /usr/local/include \
6886 /usr/unsupported/include \
6887 /usr/athena/include \
6888 /usr/local/x11r5/include \
6889 /usr/lpp/Xamples/include \
6891 /usr/openwin/include \
6892 /usr/openwin/share/include \
6895 if test -r "$ac_dir/X11/xpm.h"; then
6896 vt_xpm_includes="$ac_dir"
6897 vt_xpm_include_X11=yes
6900 if test -r "$ac_dir/xpm.h"; then
6901 vt_xpm_includes=$ac_dir
6910 if test "$vt_xpm_libraries" = NO; then
6911 # Check for the libraries.
6913 # See if we find them without any special options.
6914 # Don't add to $LIBS permanently.
6915 ac_save_LIBS="$LIBS"
6916 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6922 XpmReadFileToPixmap()
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6927 LIBS="$ac_save_LIBS"
6928 # We can link libXpm with no special library path.
6931 echo "configure: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6934 LIBS="$ac_save_LIBS"
6935 # First see if replacing the include by lib works.
6937 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6948 /usr/local/X11/lib \
6949 /usr/local/X11R6/lib \
6950 /usr/local/X11R5/lib \
6951 /usr/local/X11R4/lib \
6953 /usr/local/lib/X11 \
6954 /usr/local/lib/X11R6 \
6955 /usr/local/lib/X11R5 \
6956 /usr/local/lib/X11R4 \
6960 /usr/XFree86/lib/X11 \
6964 /usr/unsupported/lib \
6966 /usr/local/x11r5/lib \
6967 /usr/lpp/Xamples/lib \
6970 /usr/openwin/share/lib \
6973 for ac_extension in a so sl; do
6974 if test -r $ac_dir/libXpm.$ac_extension; then
6975 vt_xpm_libraries=$ac_dir
6985 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6986 ac_cv_have_xpm="have_xpm=no"
6988 ac_cv_have_xpm="have_xpm=yes \
6989 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6990 vt_xpm_include_X11=$vt_xpm_include_X11"
6993 eval "$ac_cv_have_xpm"
6996 if test "$have_xpm" != yes; then
6997 echo "$ac_t""$have_xpm" 1>&6
7000 if test "$xpm_includes" != NO; then
7001 if test "$xpm_includes" = "$vt_xpm_includes"; then
7002 if test -r "$xpm_includes/X11/xpm.h"; then
7003 vt_xpm_include_X11=yes
7006 vt_xpm_include_X11=no
7007 if test -z "$xpm_includes"; then
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 #include <X11/xpm.h>
7013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7014 { (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7016 if test -z "$ac_err"; then
7018 vt_xpm_include_X11=yes
7021 echo "configure: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7026 if test -r "$xpm_includes/X11/xpm.h"; then
7027 vt_xpm_include_X11=yes
7031 vt_xpm_includes=$xpm_includes
7033 if test "x$xpm_libraries" != xNO; then
7034 vt_xpm_libraries=$xpm_libraries
7036 # Update the cache value to reflect the command line values.
7037 ac_cv_have_xpm="have_xpm=yes \
7038 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7039 vt_xpm_include_X11=$vt_xpm_include_X11"
7040 eval "$ac_cv_have_xpm"
7041 echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6
7042 if test -n "$vt_xpm_includes"; then
7043 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7045 if test -n "$vt_xpm_includes"; then
7046 XPM_CFLAGS="-I$vt_xpm_includes"
7049 if test -n "$vt_xpm_libraries"; then
7050 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7052 if test "x$vt_xpm_include_X11" = xyes; then
7053 cat >> confdefs.h <<\EOF
7054 #define XPM_INC_X11 1
7064 if test x$no_xpm = xyes; then
7065 support_xpm=needsmanualspecification
7069 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7070 echo "configure:7071: checking for sys/wait.h that is POSIX.1 compatible" >&5
7071 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7077 #include <sys/types.h>
7078 #include <sys/wait.h>
7080 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7083 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7088 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7091 if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7093 ac_cv_header_sys_wait_h=yes
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 ac_cv_header_sys_wait_h=no
7103 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7104 if test $ac_cv_header_sys_wait_h = yes; then
7105 cat >> confdefs.h <<\EOF
7106 #define HAVE_SYS_WAIT_H 1
7133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7135 echo "configure:7136: checking for $ac_hdr" >&5
7136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7137 echo $ac_n "(cached) $ac_c" 1>&6
7139 cat > conftest.$ac_ext <<EOF
7140 #line 7141 "configure"
7141 #include "confdefs.h"
7144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7145 { (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7147 if test -z "$ac_err"; then
7149 eval "ac_cv_header_$ac_safe=yes"
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_header_$ac_safe=no"
7159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7162 cat >> confdefs.h <<EOF
7163 #define $ac_tr_hdr 1
7167 echo "$ac_t""no" 1>&6
7172 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7173 echo "configure:7174: checking whether time.h and sys/time.h may both be included" >&5
7174 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 #include <sys/types.h>
7181 #include <sys/time.h>
7187 if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7189 ac_cv_header_time=yes
7191 echo "configure: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7194 ac_cv_header_time=no
7199 echo "$ac_t""$ac_cv_header_time" 1>&6
7200 if test $ac_cv_header_time = yes; then
7201 cat >> confdefs.h <<\EOF
7202 #define TIME_WITH_SYS_TIME 1
7208 echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6
7209 echo "configure:7210: checking whether termios.h and sys/ioctl.h may both be included" >&5
7210 if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then
7211 echo $ac_n "(cached) $ac_c" 1>&6
7213 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7217 #include <sys/ioctl.h>
7218 #ifdef HAVE_TERMIOS_H
7219 #include <termios.h>
7225 if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7227 rxvt_cv_header_sysioctl=yes
7229 echo "configure: failed program was:" >&5
7230 cat conftest.$ac_ext >&5
7232 rxvt_cv_header_sysioctl=no
7237 echo "$ac_t""$rxvt_cv_header_sysioctl" 1>&6
7239 if test -n "$GCC"; then
7244 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7246 ac_save_CFLAGS=$CFLAGS
7248 CFLAGS="$CFLAGS $X_CFLAGS"
7249 LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7250 echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6
7251 echo "configure:7252: checking for -rpath dynamic library path recording" >&5
7252 if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7255 if test "$cross_compiling" = yes; then
7256 echo "configure: warning: You may need to check the LIBS line" 1>&2
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7265 (void) XOpenDisplay("foobar");
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7282 echo "$ac_t""$rxvt_cv_rpath" 1>&6
7283 if test x$rxvt_cv_rpath != xyes; then
7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7285 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7286 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6
7287 echo "configure:7288: checking for -R dynamic library path recording" >&5
7288 if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 if test "$cross_compiling" = yes; then
7294 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure"
7296 #include "confdefs.h"
7301 (void) XOpenDisplay("foobar");
7304 if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7308 echo "configure: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7318 echo "$ac_t""$rxvt_cv_R" 1>&6
7319 if test x$rxvt_cv_R != xyes; then
7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7324 echo $ac_n "checking for XPointer""... $ac_c" 1>&6
7325 echo "configure:7326: checking for XPointer" >&5
7326 if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then
7327 echo $ac_n "(cached) $ac_c" 1>&6
7329 cat > conftest.$ac_ext <<EOF
7330 #line 7331 "configure"
7331 #include "confdefs.h"
7332 #include <X11/Xlib.h>
7337 if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7339 rxvt_cv_xpointer=yes
7341 echo "configure: failed program was:" >&5
7342 cat conftest.$ac_ext >&5
7349 echo "$ac_t""$rxvt_cv_xpointer" 1>&6
7350 if test x$rxvt_cv_xpointer = xyes; then
7351 cat >> confdefs.h <<\EOF
7352 #define HAVE_XPOINTER 1
7357 CFLAGS=$ac_save_CFLAGS
7360 echo $ac_n "checking for working const""... $ac_c" 1>&6
7361 echo "configure:7362: checking for working const" >&5
7362 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 cat > conftest.$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7371 /* Ultrix mips cc rejects this. */
7372 typedef int charset[2]; const charset x;
7373 /* SunOS 4.1.1 cc rejects this. */
7374 char const *const *ccp;
7376 /* NEC SVR4.0.2 mips cc rejects this. */
7377 struct point {int x, y;};
7378 static struct point const zero = {0,0};
7379 /* AIX XL C 1.02.0.0 rejects this.
7380 It does not let you subtract one const X* pointer from another in an arm
7381 of an if-expression whose if-part is not a constant expression */
7382 const char *g = "string";
7383 ccp = &g + (g ? g-g : 0);
7384 /* HPUX 7.0 cc rejects these. */
7387 ccp = (char const *const *) p;
7388 { /* SCO 3.2v4 cc rejects this. */
7390 char const *s = 0 ? (char *) 0 : (char const *) 0;
7394 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7396 const int *foo = &x[0];
7399 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7400 typedef const int *iptr;
7404 { /* AIX XL C 1.02.0.0 rejects this saying
7405 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7406 struct s { int j; const int *ap[3]; };
7407 struct s *b; b->j = 5;
7409 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7415 if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7427 echo "$ac_t""$ac_cv_c_const" 1>&6
7428 if test $ac_cv_c_const = no; then
7429 cat >> confdefs.h <<\EOF
7435 echo $ac_n "checking for inline""... $ac_c" 1>&6
7436 echo "configure:7437: checking for inline" >&5
7437 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7438 echo $ac_n "(cached) $ac_c" 1>&6
7441 for ac_kw in inline __inline__ __inline; do
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7450 if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7452 ac_cv_c_inline=$ac_kw; break
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7462 echo "$ac_t""$ac_cv_c_inline" 1>&6
7463 case "$ac_cv_c_inline" in
7465 no) cat >> confdefs.h <<\EOF
7469 *) cat >> confdefs.h <<EOF
7470 #define inline $ac_cv_c_inline
7477 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7478 echo "configure:7479: checking for ANSI C header files" >&5
7479 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7491 { (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7493 if test -z "$ac_err"; then
7495 ac_cv_header_stdc=yes
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 ac_cv_header_stdc=no
7505 if test $ac_cv_header_stdc = yes; then
7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7507 cat > conftest.$ac_ext <<EOF
7508 #line 7509 "configure"
7509 #include "confdefs.h"
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 egrep "memchr" >/dev/null 2>&1; then
7517 ac_cv_header_stdc=no
7523 if test $ac_cv_header_stdc = yes; then
7524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7531 egrep "free" >/dev/null 2>&1; then
7535 ac_cv_header_stdc=no
7541 if test $ac_cv_header_stdc = yes; then
7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7543 if test "$cross_compiling" = yes; then
7546 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure"
7548 #include "confdefs.h"
7550 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7551 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7553 int main () { int i; for (i = 0; i < 256; i++)
7554 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7558 if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7562 echo "configure: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 ac_cv_header_stdc=no
7573 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7574 if test $ac_cv_header_stdc = yes; then
7575 cat >> confdefs.h <<\EOF
7576 #define STDC_HEADERS 1
7581 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7582 echo "configure:7583: checking for mode_t" >&5
7583 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 #include <sys/types.h>
7595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7598 ac_cv_type_mode_t=yes
7601 ac_cv_type_mode_t=no
7606 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7607 if test $ac_cv_type_mode_t = no; then
7608 cat >> confdefs.h <<\EOF
7614 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7615 echo "configure:7616: checking for pid_t" >&5
7616 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 #include <sys/types.h>
7628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7629 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7631 ac_cv_type_pid_t=yes
7639 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7640 if test $ac_cv_type_pid_t = no; then
7641 cat >> confdefs.h <<\EOF
7647 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7648 echo "configure:7649: checking for uid_t in sys/types.h" >&5
7649 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 cat > conftest.$ac_ext <<EOF
7653 #line 7654 "configure"
7654 #include "confdefs.h"
7655 #include <sys/types.h>
7657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7658 egrep "uid_t" >/dev/null 2>&1; then
7660 ac_cv_type_uid_t=yes
7669 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7670 if test $ac_cv_type_uid_t = no; then
7671 cat >> confdefs.h <<\EOF
7675 cat >> confdefs.h <<\EOF
7683 echo $ac_n "checking size of char""... $ac_c" 1>&6
7684 echo "configure:7685: checking size of char" >&5
7685 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7688 if test "$cross_compiling" = yes; then
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7695 #include <sys/types.h>
7698 FILE *f=fopen("conftestval", "w");
7700 fprintf(f, "%d\n", sizeof(char));
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7706 ac_cv_sizeof_char=`cat conftestval`
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7717 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7718 cat >> confdefs.h <<EOF
7719 #define SIZEOF_CHAR $ac_cv_sizeof_char
7723 echo $ac_n "checking size of short""... $ac_c" 1>&6
7724 echo "configure:7725: checking size of short" >&5
7725 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7726 echo $ac_n "(cached) $ac_c" 1>&6
7728 if test "$cross_compiling" = yes; then
7729 ac_cv_sizeof_short=2
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7735 #include <sys/types.h>
7738 FILE *f=fopen("conftestval", "w");
7740 fprintf(f, "%d\n", sizeof(short));
7744 if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7746 ac_cv_sizeof_short=`cat conftestval`
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7751 ac_cv_sizeof_short=0
7757 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
7758 cat >> confdefs.h <<EOF
7759 #define SIZEOF_SHORT $ac_cv_sizeof_short
7763 echo $ac_n "checking size of int""... $ac_c" 1>&6
7764 echo "configure:7765: checking size of int" >&5
7765 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 if test "$cross_compiling" = yes; then
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7775 #include <sys/types.h>
7778 FILE *f=fopen("conftestval", "w");
7780 fprintf(f, "%d\n", sizeof(int));
7784 if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7786 ac_cv_sizeof_int=`cat conftestval`
7788 echo "configure: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7797 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
7798 cat >> confdefs.h <<EOF
7799 #define SIZEOF_INT $ac_cv_sizeof_int
7803 echo $ac_n "checking size of long""... $ac_c" 1>&6
7804 echo "configure:7805: checking size of long" >&5
7805 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7806 echo $ac_n "(cached) $ac_c" 1>&6
7808 if test "$cross_compiling" = yes; then
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7815 #include <sys/types.h>
7818 FILE *f=fopen("conftestval", "w");
7820 fprintf(f, "%d\n", sizeof(long));
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7826 ac_cv_sizeof_long=`cat conftestval`
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7837 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
7838 cat >> confdefs.h <<EOF
7839 #define SIZEOF_LONG $ac_cv_sizeof_long
7843 echo $ac_n "checking size of long long""... $ac_c" 1>&6
7844 echo "configure:7845: checking size of long long" >&5
7845 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7848 if test "$cross_compiling" = yes; then
7849 ac_cv_sizeof_long_long=8
7851 cat > conftest.$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7855 #include <sys/types.h>
7858 FILE *f=fopen("conftestval", "w");
7860 fprintf(f, "%d\n", sizeof(long long));
7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7866 ac_cv_sizeof_long_long=`cat conftestval`
7868 echo "configure: failed program was:" >&5
7869 cat conftest.$ac_ext >&5
7871 ac_cv_sizeof_long_long=0
7877 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
7878 cat >> confdefs.h <<EOF
7879 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7883 echo $ac_n "checking size of int *""... $ac_c" 1>&6
7884 echo "configure:7885: checking size of int *" >&5
7885 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7888 if test "$cross_compiling" = yes; then
7889 ac_cv_sizeof_int_p=4
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7895 #include <sys/types.h>
7898 FILE *f=fopen("conftestval", "w");
7900 fprintf(f, "%d\n", sizeof(int *));
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7906 ac_cv_sizeof_int_p=`cat conftestval`
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 ac_cv_sizeof_int_p=0
7917 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
7918 cat >> confdefs.h <<EOF
7919 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
7925 echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7926 echo "configure:7927: checking for int16_t" >&5
7927 if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 cat > conftest.$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7938 if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7942 echo "configure: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7945 if test $ac_cv_sizeof_char -ge 2; then
7946 rxvt_cv_int16_t=" char"
7948 if test $ac_cv_sizeof_short -ge 2; then
7949 rxvt_cv_int16_t=" short"
7951 if test $ac_cv_sizeof_int -ge 2; then
7952 rxvt_cv_int16_t=" int"
7954 if test $ac_cv_sizeof_long -ge 2; then
7955 rxvt_cv_int16_t=" long"
7957 if test $ac_cv_sizeof_long_long -ge 2; then
7958 rxvt_cv_int16_t=" long long"
7960 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
7970 echo "$ac_t""$rxvt_cv_int16_t" 1>&6
7971 if test x"$rxvt_cv_int16_t" != xyes; then
7972 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
7974 if test x"" = x; then
7975 rxvt_int16_typedef="/* typedef short int16_t; */"
7977 rxvt_int16_typedef="/* typedef short int16_t; */"
7981 echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7982 echo "configure:7983: checking for uint16_t" >&5
7983 if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then
7984 echo $ac_n "(cached) $ac_c" 1>&6
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7994 if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7996 rxvt_cv_uint16_t=yes
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8001 if test $ac_cv_sizeof_char -ge 2; then
8002 rxvt_cv_uint16_t="unsigned char"
8004 if test $ac_cv_sizeof_short -ge 2; then
8005 rxvt_cv_uint16_t="unsigned short"
8007 if test $ac_cv_sizeof_int -ge 2; then
8008 rxvt_cv_uint16_t="unsigned int"
8010 if test $ac_cv_sizeof_long -ge 2; then
8011 rxvt_cv_uint16_t="unsigned long"
8013 if test $ac_cv_sizeof_long_long -ge 2; then
8014 rxvt_cv_uint16_t="unsigned long long"
8016 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
8026 echo "$ac_t""$rxvt_cv_uint16_t" 1>&6
8027 if test x"$rxvt_cv_uint16_t" != xyes; then
8028 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
8030 if test x"unsigned" = x; then
8031 rxvt_uint16_typedef="/* typedef short uint16_t; */"
8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8037 echo $ac_n "checking for int32_t""... $ac_c" 1>&6
8038 echo "configure:8039: checking for int32_t" >&5
8039 if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8050 if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8054 echo "configure: failed program was:" >&5
8055 cat conftest.$ac_ext >&5
8057 if test $ac_cv_sizeof_char -ge 4; then
8058 rxvt_cv_int32_t=" char"
8060 if test $ac_cv_sizeof_short -ge 4; then
8061 rxvt_cv_int32_t=" short"
8063 if test $ac_cv_sizeof_int -ge 4; then
8064 rxvt_cv_int32_t=" int"
8066 if test $ac_cv_sizeof_long -ge 4; then
8067 rxvt_cv_int32_t=" long"
8069 if test $ac_cv_sizeof_long_long -ge 4; then
8070 rxvt_cv_int32_t=" long long"
8072 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
8082 echo "$ac_t""$rxvt_cv_int32_t" 1>&6
8083 if test x"$rxvt_cv_int32_t" != xyes; then
8084 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
8086 if test x"" = x; then
8087 rxvt_int32_typedef="/* typedef int int32_t; */"
8089 rxvt_int32_typedef="/* typedef int int32_t; */"
8093 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
8094 echo "configure:8095: checking for uint32_t" >&5
8095 if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8106 if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8108 rxvt_cv_uint32_t=yes
8110 echo "configure: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8113 if test $ac_cv_sizeof_char -ge 4; then
8114 rxvt_cv_uint32_t="unsigned char"
8116 if test $ac_cv_sizeof_short -ge 4; then
8117 rxvt_cv_uint32_t="unsigned short"
8119 if test $ac_cv_sizeof_int -ge 4; then
8120 rxvt_cv_uint32_t="unsigned int"
8122 if test $ac_cv_sizeof_long -ge 4; then
8123 rxvt_cv_uint32_t="unsigned long"
8125 if test $ac_cv_sizeof_long_long -ge 4; then
8126 rxvt_cv_uint32_t="unsigned long long"
8128 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
8138 echo "$ac_t""$rxvt_cv_uint32_t" 1>&6
8139 if test x"$rxvt_cv_uint32_t" != xyes; then
8140 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
8142 if test x"unsigned" = x; then
8143 rxvt_uint32_typedef="/* typedef int uint32_t; */"
8145 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
8149 if test $ac_cv_sizeof_int_p -eq 8; then
8150 rxvt_intp_define="#define intp_t int64_t"
8151 rxvt_u_intp_define="#define u_intp_t u_int64_t"
8153 if test $ac_cv_sizeof_int_p -eq 4; then
8154 rxvt_intp_define="#define intp_t int32_t"
8155 rxvt_u_intp_define="#define u_intp_t u_int32_t"
8157 if test $ac_cv_sizeof_int_p -eq 2; then
8158 rxvt_intp_define="#define intp_t int16_t"
8159 rxvt_u_intp_define="#define u_intp_t u_int16_t"
8161 rxvt_intp_define="#error set intp_t"
8162 rxvt_u_intp_define="#error set u_intp_t"
8169 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8170 echo "configure:8171: checking return type of signal handlers" >&5
8171 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 #include <sys/types.h>
8183 extern "C" void (*signal (int, void (*)(int)))(int);
8185 void (*signal ()) ();
8192 if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8194 ac_cv_type_signal=void
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8199 ac_cv_type_signal=int
8204 echo "$ac_t""$ac_cv_type_signal" 1>&6
8205 cat >> confdefs.h <<EOF
8206 #define RETSIGTYPE $ac_cv_type_signal
8211 case "$host_alias" in
8212 *ultrix) ac_cv_func_setsid='no' ;;
8237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_func" >&5
8239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_func_$ac_func=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_func_$ac_func=no"
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 cat >> confdefs.h <<EOF
8282 #define $ac_tr_func 1
8286 echo "$ac_t""no" 1>&6
8292 ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
8293 echo $ac_n "checking for utmp.h""... $ac_c" 1>&6
8294 echo "configure:8295: checking for utmp.h" >&5
8295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8298 cat > conftest.$ac_ext <<EOF
8299 #line 8300 "configure"
8300 #include "confdefs.h"
8303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8304 { (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8306 if test -z "$ac_err"; then
8308 eval "ac_cv_header_$ac_safe=yes"
8311 echo "configure: failed program was:" >&5
8312 cat conftest.$ac_ext >&5
8314 eval "ac_cv_header_$ac_safe=no"
8318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8319 echo "$ac_t""yes" 1>&6
8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6
8321 echo "configure:8322: checking for struct utmp" >&5
8322 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8328 #include <sys/types.h>
8335 if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8337 rxvt_cv_struct_utmp=yes
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 rxvt_cv_struct_utmp=no
8347 echo "$ac_t""$rxvt_cv_struct_utmp" 1>&6
8348 if test x$rxvt_cv_struct_utmp = xyes; then
8349 cat >> confdefs.h <<\EOF
8350 #define HAVE_STRUCT_UTMP 1
8356 echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6
8357 echo "configure:8358: checking for ut_host in utmp struct" >&5
8358 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 #include <sys/types.h>
8367 struct utmp ut; ut.ut_host;
8370 if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8372 rxvt_cv_struct_utmp_host=yes
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8377 rxvt_cv_struct_utmp_host=no
8382 echo "$ac_t""$rxvt_cv_struct_utmp_host" 1>&6
8383 if test x$rxvt_cv_struct_utmp_host = xyes; then
8384 cat >> confdefs.h <<\EOF
8385 #define HAVE_UTMP_HOST 1
8390 echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6
8391 echo "configure:8392: checking for ut_pid in utmp struct" >&5
8392 if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then
8393 echo $ac_n "(cached) $ac_c" 1>&6
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 #include <sys/types.h>
8401 struct utmp ut; ut.ut_pid;
8404 if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8406 rxvt_cv_struct_utmp_pid=yes
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8411 rxvt_cv_struct_utmp_pid=no
8416 echo "$ac_t""$rxvt_cv_struct_utmp_pid" 1>&6
8417 if test x$rxvt_cv_struct_utmp_pid = xyes; then
8418 cat >> confdefs.h <<\EOF
8419 #define HAVE_UTMP_PID 1
8425 echo "$ac_t""no" 1>&6
8429 ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
8430 echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6
8431 echo "configure:8432: checking for utmpx.h" >&5
8432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8433 echo $ac_n "(cached) $ac_c" 1>&6
8435 cat > conftest.$ac_ext <<EOF
8436 #line 8437 "configure"
8437 #include "confdefs.h"
8440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8441 { (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8443 if test -z "$ac_err"; then
8445 eval "ac_cv_header_$ac_safe=yes"
8448 echo "configure: failed program was:" >&5
8449 cat conftest.$ac_ext >&5
8451 eval "ac_cv_header_$ac_safe=no"
8455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6
8458 echo "configure:8459: checking for struct utmpx" >&5
8459 if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then
8460 echo $ac_n "(cached) $ac_c" 1>&6
8462 cat > conftest.$ac_ext <<EOF
8463 #line 8464 "configure"
8464 #include "confdefs.h"
8465 #include <sys/types.h>
8471 if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8473 rxvt_cv_struct_utmpx=yes
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8478 rxvt_cv_struct_utmpx=no
8483 echo "$ac_t""$rxvt_cv_struct_utmpx" 1>&6
8484 if test x$rxvt_cv_struct_utmpx = xyes; then
8485 cat >> confdefs.h <<\EOF
8486 #define HAVE_STRUCT_UTMPX 1
8492 echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6
8493 echo "configure:8494: checking for host in utmpx struct" >&5
8494 if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8497 cat > conftest.$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 #include <sys/types.h>
8503 struct utmpx utx; utx.ut_host;
8506 if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8508 rxvt_cv_struct_utmpx_host=yes
8510 echo "configure: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 rxvt_cv_struct_utmpx_host=no
8518 echo "$ac_t""$rxvt_cv_struct_utmpx_host" 1>&6
8519 if test x$rxvt_cv_struct_utmpx_host = xyes; then
8520 cat >> confdefs.h <<\EOF
8521 #define HAVE_UTMPX_HOST 1
8527 echo "$ac_t""no" 1>&6
8531 echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6
8532 echo "configure:8533: checking for struct lastlog" >&5
8533 if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then
8534 echo $ac_n "(cached) $ac_c" 1>&6
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 #include <sys/types.h>
8541 #ifdef HAVE_LASTLOG_H
8542 #include <lastlog.h>
8549 if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8551 rxvt_cv_struct_lastlog=yes
8553 echo "configure: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8556 rxvt_cv_struct_lastlog=no
8561 echo "$ac_t""$rxvt_cv_struct_lastlog" 1>&6
8562 if test x$rxvt_cv_struct_lastlog = xyes; then
8563 cat >> confdefs.h <<\EOF
8564 #define HAVE_STRUCT_LASTLOG 1
8569 echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6
8570 echo "configure:8571: checking for struct lastlogx" >&5
8571 if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 #include <sys/types.h>
8579 #ifdef HAVE_LASTLOG_H
8580 #include <lastlog.h>
8587 if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8589 rxvt_cv_struct_lastlogx=yes
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8594 rxvt_cv_struct_lastlogx=no
8599 echo "$ac_t""$rxvt_cv_struct_lastlogx" 1>&6
8600 if test x$rxvt_cv_struct_lastlogx = xyes; then
8601 cat >> confdefs.h <<\EOF
8602 #define HAVE_STRUCT_LASTLOGX 1
8608 echo $ac_n "checking where utmp is located""... $ac_c" 1>&6
8609 echo "configure:8610: checking where utmp is located" >&5
8610 if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 if test "$cross_compiling" = yes; then
8614 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2
8616 cat > conftest.$ac_ext <<EOF
8617 #line 8618 "configure"
8618 #include "confdefs.h"
8620 #include <sys/types.h>
8625 char **u, *utmplist[] = {
8626 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
8627 FILE *a, *f=fopen("conftestval", "w");
8630 fprintf(f, "%s\n", UTMP_FILE);
8634 fprintf(f, "%s\n", _PATH_UTMP);
8637 for (u = utmplist; *u; u++) {
8638 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
8639 fprintf(f, "%s\n", *u);
8646 if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8648 rxvt_cv_path_utmp=`cat conftestval`
8650 echo "configure: failed program was:" >&5
8651 cat conftest.$ac_ext >&5
8660 echo "$ac_t""$rxvt_cv_path_utmp" 1>&6
8661 if test x$rxvt_cv_path_utmp != x; then
8662 cat >> confdefs.h <<EOF
8663 #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
8669 echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6
8670 echo "configure:8671: checking where utmpx is located" >&5
8671 if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8674 if test "$cross_compiling" = yes; then
8675 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2
8677 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure"
8679 #include "confdefs.h"
8681 #include <sys/types.h>
8684 #include <sys/stat.h>
8685 #ifdef HAVE_STRING_H
8690 char **u, *p, *utmplist[] = {
8697 "/var/adm/utmpx", "/etc/utmpx", NULL };
8698 FILE *a, *f=fopen("conftestval", "w");
8699 struct stat statu, statux;
8701 for (u = utmplist; *u; u++) {
8702 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
8703 if (stat(*u, &statux) < 0)
8706 p[strlen(p) - 1] = '\0';
8707 if (stat(p, &statu) >= 0
8708 && (statu.st_mtime - statux.st_mtime > 86400))
8710 fprintf(f, "%s\n", *u);
8717 if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8719 rxvt_cv_path_utmpx=`cat conftestval`
8721 echo "configure: failed program was:" >&5
8722 cat conftest.$ac_ext >&5
8731 echo "$ac_t""$rxvt_cv_path_utmpx" 1>&6
8732 if test x$rxvt_cv_path_utmpx != x; then
8733 cat >> confdefs.h <<EOF
8734 #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
8740 echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6
8741 echo "configure:8742: checking where wtmp is located" >&5
8742 if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then
8743 echo $ac_n "(cached) $ac_c" 1>&6
8745 if test "$cross_compiling" = yes; then
8746 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2
8748 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure"
8750 #include "confdefs.h"
8752 #include <sys/types.h>
8759 char **w, *wtmplist[] = {
8760 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
8761 FILE *a, *f=fopen("conftestval", "w");
8764 fprintf(f, "%s\n", WTMP_FILE);
8768 fprintf(f, "%s\n", _PATH_WTMP);
8771 for (w = wtmplist; *w; w++) {
8772 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8773 fprintf(f, "%s\n", *w);
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8782 rxvt_cv_path_wtmp=`cat conftestval`
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8794 echo "$ac_t""$rxvt_cv_path_wtmp" 1>&6
8795 if test x$rxvt_cv_path_wtmp != x; then
8796 cat >> confdefs.h <<EOF
8797 #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
8802 echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6
8803 echo "configure:8804: checking where wtmpx is located" >&5
8804 if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8807 if test "$cross_compiling" = yes; then
8808 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8820 char **w, *wtmplist[] = {
8821 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
8822 FILE *a, *f=fopen("conftestval", "w");
8825 fprintf(f, "%s\n", WTMPX_FILE);
8829 fprintf(f, "%s\n", _PATH_WTMPX);
8832 for (w = wtmplist; *w; w++) {
8833 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8834 fprintf(f, "%s\n", *w);
8841 if { (eval echo configure:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8843 rxvt_cv_path_wtmpx=`cat conftestval`
8845 echo "configure: failed program was:" >&5
8846 cat conftest.$ac_ext >&5
8855 echo "$ac_t""$rxvt_cv_path_wtmpx" 1>&6
8856 if test x$rxvt_cv_path_wtmpx != x; then
8857 cat >> confdefs.h <<EOF
8858 #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
8863 echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6
8864 echo "configure:8865: checking where lastlog is located" >&5
8865 if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then
8866 echo $ac_n "(cached) $ac_c" 1>&6
8868 if test "$cross_compiling" = yes; then
8869 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8875 #include <sys/types.h>
8878 #elif defined(HAVE_UTMP_H)
8881 #ifdef HAVE_LASTLOG_H
8882 #include <lastlog.h>
8887 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
8888 FILE *a, *f=fopen("conftestval", "w");
8891 fprintf(f, "%s\n", LASTLOG_FILE);
8894 #ifdef _PATH_LASTLOG
8895 fprintf(f, "%s\n", _PATH_LASTLOG);
8898 for (w = lastloglist; *w; w++) {
8899 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8900 fprintf(f, "%s\n", *w);
8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8909 rxvt_cv_path_lastlog=`cat conftestval`
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 rxvt_cv_path_lastlog=
8921 echo "$ac_t""$rxvt_cv_path_lastlog" 1>&6
8922 if test x$rxvt_cv_path_lastlog != x; then
8923 cat >> confdefs.h <<EOF
8924 #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
8927 if test -d "$rxvt_cv_path_lastlog"; then
8928 cat >> confdefs.h <<\EOF
8929 #define LASTLOG_IS_DIR 1
8935 echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6
8936 echo "configure:8937: checking where lastlogx is located" >&5
8937 if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8940 if test "$cross_compiling" = yes; then
8941 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2
8943 cat > conftest.$ac_ext <<EOF
8944 #line 8945 "configure"
8945 #include "confdefs.h"
8953 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
8954 FILE *a, *f=fopen("conftestval", "w");
8956 #ifdef LASTLOGX_FILE
8957 fprintf(f, "%s\n", LASTLOGX_FILE);
8960 #ifdef _PATH_LASTLOGX
8961 fprintf(f, "%s\n", _PATH_LASTLOGX);
8964 for (w = wtmplist; *w; w++) {
8965 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
8966 fprintf(f, "%s\n", *w);
8973 if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8975 rxvt_cv_path_lastlogx=`cat conftestval`
8977 echo "configure: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8980 rxvt_cv_path_lastlogx=
8987 echo "$ac_t""$rxvt_cv_path_lastlogx" 1>&6
8988 if test x$rxvt_cv_path_lastlogx != x; then
8989 cat >> confdefs.h <<EOF
8990 #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
8996 echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6
8997 echo "configure:8998: checking where ttys/ttytab is located" >&5
8998 if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9001 for ttys_file in /etc/ttys /etc/ttytab;
9003 if test -f "$ttys_file" ; then
9004 rxvt_cv_path_ttytab=$ttys_file
9011 echo "$ac_t""$rxvt_cv_path_ttytab" 1>&6
9012 if test x$rxvt_cv_path_ttytab != x; then
9013 cat >> confdefs.h <<EOF
9014 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
9021 ac_save_CFLAGS=$CFLAGS
9022 CFLAGS="$CFLAGS $X_CFLAGS"
9023 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9024 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9027 echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6
9028 echo "configure:9029: checking for working Xlocale" >&5
9029 if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9032 if test "$cross_compiling" = yes; then
9033 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure"
9037 #include "confdefs.h"
9038 #include <X11/Xlib.h>
9041 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9042 exit (XSupportsLocale() ? 0 : 1);
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9048 rxvt_cv_func_xlocale=yes
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9053 rxvt_cv_func_xlocale=no
9060 echo "$ac_t""$rxvt_cv_func_xlocale" 1>&6
9061 if test x$rxvt_cv_func_xlocale = xyes; then
9062 cat >> confdefs.h <<\EOF
9063 #define HAVE_XLOCALE 1
9068 echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6
9069 echo "configure:9070: checking for working X setlocale" >&5
9070 if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then
9071 echo $ac_n "(cached) $ac_c" 1>&6
9073 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure"
9075 #include "confdefs.h"
9077 #include <X11/Xlocale.h>
9079 setlocale(LC_CTYPE, "");
9082 if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9084 rxvt_cv_func_xsetlocale=yes
9086 echo "configure: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9089 rxvt_cv_func_xsetlocale=no
9094 echo "$ac_t""$rxvt_cv_func_xsetlocale" 1>&6
9095 if test x$rxvt_cv_func_xsetlocale = xyes; then
9096 cat >> confdefs.h <<\EOF
9097 #define HAVE_XSETLOCALE 1
9102 CFLAGS=$ac_save_CFLAGS
9104 echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6
9105 echo "configure:9106: checking for working plain setlocale" >&5
9106 if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9114 setlocale(LC_CTYPE, "");
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 rxvt_cv_func_setlocale=yes
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 rxvt_cv_func_setlocale=no
9129 echo "$ac_t""$rxvt_cv_func_setlocale" 1>&6
9130 if test x$rxvt_cv_func_setlocale = xyes; then
9131 cat >> confdefs.h <<\EOF
9132 #define HAVE_SETLOCALE 1
9137 echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6
9138 echo "configure:9139: checking for working nl_langinfo" >&5
9139 if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9145 #include <langinfo.h>
9147 nl_langinfo(CODESET);
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9152 rxvt_cv_func_nl_langinfo=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 rxvt_cv_func_nl_langinfo=no
9162 echo "$ac_t""$rxvt_cv_func_nl_langinfo" 1>&6
9163 if test x$rxvt_cv_func_nl_langinfo = xyes; then
9164 cat >> confdefs.h <<\EOF
9165 #define HAVE_NL_LANGINFO 1
9170 echo $ac_n "checking for getpt""... $ac_c" 1>&6
9171 echo "configure:9172: checking for getpt" >&5
9172 if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9179 #ifdef HAVE_STDLIB_H
9180 # include <stdlib.h>
9186 if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9188 rxvt_cv_func_getpt=yes
9190 echo "configure: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 rxvt_cv_func_getpt=no
9198 echo "$ac_t""$rxvt_cv_func_getpt" 1>&6
9199 if test x$rxvt_cv_func_getpt = xyes; then
9200 cat >> confdefs.h <<\EOF
9201 #define HAVE_GETPT 1
9206 echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6
9207 echo "configure:9208: checking for pty/tty type" >&5
9208 if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9211 if test x$ac_cv_func_openpty = xyes; then
9212 rxvt_cv_ptys=OPENPTY
9213 else if test x$ac_cv_func__getpty = xyes; then
9215 else if test -c /dev/ttyp20; then
9217 else if test -c /dev/ptym/clone; then
9219 else if test x$rxvt_cv_func_getpt = xyes; then
9221 else if test -c /dev/ptc -a -c /dev/pts; then
9223 else if test -c /dev/ptc -a -d /dev/pts; then
9225 else if test -c /dev/ptmx -a -c /dev/pts/0; then
9226 rxvt_cv_ptys=STREAMS
9227 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
9228 rxvt_cv_ptys=STREAMS
9243 echo "$ac_t""$rxvt_cv_ptys" 1>&6
9245 if test x$rxvt_cv_ptys = xOPENPTY; then
9246 cat >> confdefs.h <<\EOF
9247 #define PTYS_ARE_OPENPTY 1
9251 if test x$rxvt_cv_ptys = xSCO; then
9252 cat >> confdefs.h <<\EOF
9253 #define PTYS_ARE_NUMERIC 1
9257 if test x$rxvt_cv_ptys = xSTREAMS; then
9258 cat >> confdefs.h <<\EOF
9259 #define PTYS_ARE_PTMX 1
9263 if test x$rxvt_cv_ptys = xPTC; then
9264 cat >> confdefs.h <<\EOF
9265 #define PTYS_ARE_PTC 1
9269 if test x$rxvt_cv_ptys = xSGI4; then
9270 cat >> confdefs.h <<\EOF
9271 #define PTYS_ARE__GETPTY 1
9275 if test x$rxvt_cv_ptys = xCONVEX; then
9276 cat >> confdefs.h <<\EOF
9277 #define PTYS_ARE_GETPTY 1
9281 if test x$rxvt_cv_ptys = xGLIBC; then
9282 cat >> confdefs.h <<\EOF
9283 #define PTYS_ARE_GETPT 1
9287 if test x$rxvt_cv_ptys = xHPUX; then
9288 cat >> confdefs.h <<\EOF
9289 #define PTYS_ARE_CLONE 1
9293 if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
9294 cat >> confdefs.h <<\EOF
9295 #define PTYS_ARE_SEARCHED 1
9301 echo "checking for pty ranges" 1>&6
9302 echo "configure:9303: checking for pty ranges" >&5
9303 ptys=`echo /dev/pty??`
9304 pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9305 pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9306 if test x$pch1 != x; then
9307 cat >> confdefs.h <<EOF
9308 #define PTYCHAR1 "$pch1"
9312 if test x$pch2 != x; then
9313 cat >> confdefs.h <<EOF
9314 #define PTYCHAR2 "$pch2"
9319 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9320 echo "configure:9321: checking for setlocale in -lxpg4" >&5
9321 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9323 echo $ac_n "(cached) $ac_c" 1>&6
9325 ac_save_LIBS="$LIBS"
9327 cat > conftest.$ac_ext <<EOF
9328 #line 9329 "configure"
9329 #include "confdefs.h"
9330 /* Override any gcc2 internal prototype to avoid an error. */
9331 /* We use char because int might match the return type of a gcc2
9332 builtin and then its argument prototype would still apply. */
9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9341 eval "ac_cv_lib_$ac_lib_var=yes"
9343 echo "configure: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9346 eval "ac_cv_lib_$ac_lib_var=no"
9349 LIBS="$ac_save_LIBS"
9352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9356 echo "$ac_t""no" 1>&6
9360 if test x$support_graphics = xyes; then
9361 cat >> confdefs.h <<\EOF
9362 #define RXVT_GRAPHICS 1
9366 if test x$support_inheritpixmap = xyes; then
9367 cat >> confdefs.h <<\EOF
9368 #define TRANSPARENT 1
9372 if test x$support_keepscrolling = xno; then
9373 cat >> confdefs.h <<\EOF
9374 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
9378 if test x$support_selectionscrolling = xyes; then
9379 cat >> confdefs.h <<\EOF
9380 #define SELECTION_SCROLLING 1
9384 if test x$support_menubar = xyes; then
9385 cat >> confdefs.h <<\EOF
9390 if test x$support_frills = xno; then
9391 cat >> confdefs.h <<\EOF
9396 if test x$support_linespace = xno; then
9397 cat >> confdefs.h <<\EOF
9398 #define NO_LINESPACE 1
9402 if test x$support_24bit = xyes; then
9403 cat >> confdefs.h <<\EOF
9404 #define PREFER_24BIT 1
9408 if test x$support_mousewheel = xyes; then
9409 cat >> confdefs.h <<\EOF
9410 #define MOUSE_WHEEL 1
9414 if test x$support_mouseslipwheel = xyes; then
9415 cat >> confdefs.h <<\EOF
9416 #define MOUSE_SLIP_WHEELING 1
9420 if test x$support_oldselection = xno; then
9421 cat >> confdefs.h <<\EOF
9422 #define NO_OLD_SELECTION 1
9426 if test x$support_utmp = xyes; then
9427 cat >> confdefs.h <<\EOF
9428 #define UTMP_SUPPORT 1
9432 if test x$support_wtmp = xyes; then
9433 cat >> confdefs.h <<\EOF
9434 #define WTMP_SUPPORT 1
9438 if test x$support_lastlog = xyes; then
9439 cat >> confdefs.h <<\EOF
9440 #define LASTLOG_SUPPORT 1
9444 if test x$support_xim = xyes -o x$multichar_set = xyes; then
9445 if test x$rxvt_cv_func_xlocale = xyes; then
9446 cat >> confdefs.h <<\EOF
9452 if test x$support_xpm = xyes; then
9453 cat >> confdefs.h <<\EOF
9454 #define XPM_BACKGROUND 1
9458 if test x$support_scroll_rxvt = xyes; then
9459 cat >> confdefs.h <<\EOF
9460 #define RXVT_SCROLLBAR 1
9465 if test x$support_scroll_next = xyes; then
9466 cat >> confdefs.h <<\EOF
9467 #define NEXT_SCROLLBAR 1
9470 scrolltypes="$scrolltypes next"
9472 if test x$support_scroll_xterm = xyes; then
9473 cat >> confdefs.h <<\EOF
9474 #define XTERM_SCROLLBAR 1
9477 scrolltypes="$scrolltypes xterm"
9479 if test x$support_pointer_blank = xyes; then
9480 cat >> confdefs.h <<\EOF
9481 #define POINTER_BLANK 1
9485 if test x$support_cursor_blink = xyes; then
9486 cat >> confdefs.h <<\EOF
9487 #define CURSOR_BLINK 1
9491 if test x$support_unicode3 = xyes; then
9492 cat >> confdefs.h <<\EOF
9497 if test x$codesets = xall; then
9498 codesets=jp,jp-ext,kr,cn,cn-ext,vn
9500 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
9501 cat >> confdefs.h <<\EOF
9502 #define ENCODING_EU 1
9506 VN ) cat >> confdefs.h <<\EOF
9507 #define ENCODING_VN 1
9510 JP ) cat >> confdefs.h <<\EOF
9511 #define ENCODING_JP 1
9514 JP_EXT ) cat >> confdefs.h <<\EOF
9515 #define ENCODING_JP_EXT 1
9518 KR ) cat >> confdefs.h <<\EOF
9519 #define ENCODING_KR 1
9522 CN ) cat >> confdefs.h <<\EOF
9523 #define ENCODING_CN 1
9526 CN_EXT ) cat >> confdefs.h <<\EOF
9527 #define ENCODING_CN_EXT 1
9535 LDFLAGS=${LDFLAGS--O}
9537 CPPFLAGS="$CPPFLAGS"
9545 if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9546 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
9547 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9548 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
9549 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
9550 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
9557 if test x$support_addstrings = xno; then
9558 cat >> confdefs.h <<\EOF
9559 #define NO_STRINGS 1
9564 MCOMMON=./autoconf/Make.common
9567 if test "$program_transform_name" = s,x,x,; then
9568 program_transform_name=
9570 # Double any \ or $. echo might interpret backslashes.
9571 cat <<\EOF_SED > conftestsed
9572 s,\\,\\\\,g; s,\$,$$,g
9574 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
9577 test "$program_prefix" != NONE &&
9578 program_transform_name="s,^,${program_prefix},; $program_transform_name"
9579 # Use a double $ so make ignores it.
9580 test "$program_suffix" != NONE &&
9581 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
9583 # sed with no file args requires a program.
9584 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
9587 RXVTNAME=`echo rxvt|sed "$program_transform_name"`
9593 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
9594 include_stdint_h="#include <stdint.h>"
9596 include_stdint_h="/* #include <stdint.h> */"
9598 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
9599 include_stdarg_h="#include <stdarg.h>"
9601 include_stdarg_h="/* #include <stdarg.h> */"
9603 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
9604 include_stdlib_h="#include <stdlib.h>"
9606 include_stdlib_h="/* #include <stdlib.h> */"
9608 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
9609 include_unistd_h="#include <unistd.h>"
9611 include_unistd_h="/* #include <unistd.h> */"
9613 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
9614 include_string_h="#include <string.h>"
9616 include_string_h="/* #include <string.h> */"
9618 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
9619 include_fcntl_h="#include <fcntl.h>"
9621 include_fcntl_h="/* #include <fcntl.h> */"
9623 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
9624 include_util_h="#include <util.h>"
9626 include_util_h="/* #include <util.h> */"
9628 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
9629 include_assert_h="#include <assert.h>"
9631 include_assert_h="/* #include <assert.h> */"
9633 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
9634 include_sys_ioctl_h="#include <sys/ioctl.h>"
9636 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
9638 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
9639 include_sys_select_h="#include <sys/select.h>"
9641 include_sys_select_h="/* #include <sys/select.h> */"
9643 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
9644 include_sys_strredir_h="#include <sys/strredir.h>"
9646 include_sys_strredir_h="/* #include <sys/strredir.h> */"
9648 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
9649 include_sys_time_h="#include <sys/time.h>"
9651 include_sys_time_h="/* #include <sys/time.h> */"
9653 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
9654 include_time_h="#include <time.h>"
9656 include_time_h="/* #include <time.h> */"
9659 if test x$support_xft = xyes; then
9660 LIBS="$LIBS `pkg-config xft --libs`"
9661 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
9662 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
9664 for ac_hdr in X11/Xft/Xft.h
9666 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9667 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9668 echo "configure:9669: checking for $ac_hdr" >&5
9669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9672 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9678 { (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9680 if test -z "$ac_err"; then
9682 eval "ac_cv_header_$ac_safe=yes"
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 eval "ac_cv_header_$ac_safe=no"
9692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9693 echo "$ac_t""yes" 1>&6
9694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9695 cat >> confdefs.h <<EOF
9696 #define $ac_tr_hdr 1
9700 echo "$ac_t""no" 1>&6
9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6
9706 echo "configure:9707: checking for XftDrawString32 in -lXft" >&5
9707 ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9711 ac_save_LIBS="$LIBS"
9713 cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9716 /* Override any gcc2 internal prototype to avoid an error. */
9717 /* We use char because int might match the return type of a gcc2
9718 builtin and then its argument prototype would still apply. */
9719 char XftDrawString32();
9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9727 eval "ac_cv_lib_$ac_lib_var=yes"
9729 echo "configure: failed program was:" >&5
9730 cat conftest.$ac_ext >&5
9732 eval "ac_cv_lib_$ac_lib_var=no"
9735 LIBS="$ac_save_LIBS"
9738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9739 echo "$ac_t""yes" 1>&6
9740 ac_tr_lib=HAVE_LIB`echo Xft | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9742 cat >> confdefs.h <<EOF
9743 #define $ac_tr_lib 1
9749 echo "$ac_t""no" 1>&6
9754 if test x$support_xft = xyes; then
9755 cat >> confdefs.h <<\EOF
9763 cat > confcache <<\EOF
9764 # This file is a shell script that caches the results of configure
9765 # tests run on this system so they can be shared between configure
9766 # scripts and configure runs. It is not useful on other systems.
9767 # If it contains results you don't want to keep, you may remove or edit it.
9769 # By default, configure uses ./config.cache as the cache file,
9770 # creating it if it does not exist already. You can give configure
9771 # the --cache-file=FILE option to use a different cache file; that is
9772 # what configure does when it calls configure scripts in
9773 # subdirectories, so they share the cache.
9774 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9775 # config.status only pays attention to the cache file if you give it the
9776 # --recheck option to rerun configure.
9779 # The following way of writing the cache mishandles newlines in values,
9780 # but we know of no workaround that is simple, portable, and efficient.
9781 # So, don't put newlines in cache variables' values.
9782 # Ultrix sh set writes to stderr and can't be redirected directly,
9783 # and sets the high bit in the cache file unless we assign to the vars.
9785 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9787 # `set' does not quote correctly, so add quotes (double-quote substitution
9788 # turns \\\\ into \\, and sed turns \\ into \).
9790 -e "s/'/'\\\\''/g" \
9791 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9794 # `set' quotes correctly as required by POSIX, so do not add quotes.
9795 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9798 if cmp -s $cache_file confcache; then
9801 if test -w $cache_file; then
9802 echo "updating cache $cache_file"
9803 cat confcache > $cache_file
9805 echo "not updating unwritable cache $cache_file"
9810 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9813 # Let make expand exec_prefix.
9814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9816 # Any assignment to VPATH causes Sun make to only execute
9817 # the first set of double-colon rules, so remove it if not needed.
9818 # If there is a colon in the path, we need to keep it.
9819 if test "x$srcdir" = x.; then
9820 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9823 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9825 DEFS=-DHAVE_CONFIG_H
9827 # Without the "./", some shells look in PATH for config.status.
9828 : ${CONFIG_STATUS=./config.status}
9830 echo creating $CONFIG_STATUS
9831 rm -f $CONFIG_STATUS
9832 cat > $CONFIG_STATUS <<EOF
9834 # Generated automatically by configure.
9835 # Run this file to recreate the current configuration.
9836 # This directory was configured as follows,
9837 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9839 # $0 $ac_configure_args
9841 # Compiler output produced by configure, useful for debugging
9842 # configure, is in ./config.log if it exists.
9844 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9847 case "\$ac_option" in
9848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9849 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9850 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9851 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9852 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9854 -help | --help | --hel | --he | --h)
9855 echo "\$ac_cs_usage"; exit 0 ;;
9856 *) echo "\$ac_cs_usage"; exit 1 ;;
9860 ac_given_srcdir=$srcdir
9861 ac_given_INSTALL="$INSTALL"
9863 trap 'rm -fr `echo "autoconf/Make.common \
9867 src/graphics/Makefile \
9871 config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9873 cat >> $CONFIG_STATUS <<EOF
9875 # Protect against being on the right side of a sed subst in config.status.
9876 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9877 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9881 s%@CFLAGS@%$CFLAGS%g
9882 s%@CPPFLAGS@%$CPPFLAGS%g
9883 s%@CXXFLAGS@%$CXXFLAGS%g
9884 s%@FFLAGS@%$FFLAGS%g
9886 s%@LDFLAGS@%$LDFLAGS%g
9888 s%@exec_prefix@%$exec_prefix%g
9889 s%@prefix@%$prefix%g
9890 s%@program_transform_name@%$program_transform_name%g
9891 s%@bindir@%$bindir%g
9892 s%@sbindir@%$sbindir%g
9893 s%@libexecdir@%$libexecdir%g
9894 s%@datadir@%$datadir%g
9895 s%@sysconfdir@%$sysconfdir%g
9896 s%@sharedstatedir@%$sharedstatedir%g
9897 s%@localstatedir@%$localstatedir%g
9898 s%@libdir@%$libdir%g
9899 s%@includedir@%$includedir%g
9900 s%@oldincludedir@%$oldincludedir%g
9901 s%@infodir@%$infodir%g
9902 s%@mandir@%$mandir%g
9903 s%@VERSION@%$VERSION%g
9905 s%@LSMDATE@%$LSMDATE%g
9906 s%@LIBVERSION@%$LIBVERSION%g
9910 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9911 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9912 s%@INSTALL_DATA@%$INSTALL_DATA%g
9915 s%@host_alias@%$host_alias%g
9916 s%@host_cpu@%$host_cpu%g
9917 s%@host_vendor@%$host_vendor%g
9918 s%@host_os@%$host_os%g
9920 s%@build_alias@%$build_alias%g
9921 s%@build_cpu@%$build_cpu%g
9922 s%@build_vendor@%$build_vendor%g
9923 s%@build_os@%$build_os%g
9925 s%@OBJEXT@%$OBJEXT%g
9926 s%@EXEEXT@%$EXEEXT%g
9928 s%@RANLIB@%$RANLIB%g
9930 s%@LIBTOOL@%$LIBTOOL%g
9931 s%@INSTALL_LIBRXVT@%$INSTALL_LIBRXVT%g
9939 s%@X_CFLAGS@%$X_CFLAGS%g
9940 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9941 s%@X_LIBS@%$X_LIBS%g
9942 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9943 s%@XPM_CPPFLAGS@%$XPM_CPPFLAGS%g
9944 s%@XPM_CFLAGS@%$XPM_CFLAGS%g
9945 s%@XPM_LIBS@%$XPM_LIBS%g
9946 s%@rxvt_int16_typedef@%$rxvt_int16_typedef%g
9947 s%@rxvt_uint16_typedef@%$rxvt_uint16_typedef%g
9948 s%@rxvt_int32_typedef@%$rxvt_int32_typedef%g
9949 s%@rxvt_uint32_typedef@%$rxvt_uint32_typedef%g
9950 s%@rxvt_intp_define@%$rxvt_intp_define%g
9951 s%@rxvt_u_intp_define@%$rxvt_u_intp_define%g
9953 s%@DINCLUDE@%$DINCLUDE%g
9955 /@MCOMMON@/r $MCOMMON
9957 s%@RXVTNAME@%$RXVTNAME%g
9958 s%@include_stdint_h@%$include_stdint_h%g
9959 s%@include_stdarg_h@%$include_stdarg_h%g
9960 s%@include_stdlib_h@%$include_stdlib_h%g
9961 s%@include_unistd_h@%$include_unistd_h%g
9962 s%@include_string_h@%$include_string_h%g
9963 s%@include_fcntl_h@%$include_fcntl_h%g
9964 s%@include_util_h@%$include_util_h%g
9965 s%@include_assert_h@%$include_assert_h%g
9966 s%@include_sys_ioctl_h@%$include_sys_ioctl_h%g
9967 s%@include_sys_select_h@%$include_sys_select_h%g
9968 s%@include_sys_strredir_h@%$include_sys_strredir_h%g
9969 s%@include_sys_time_h@%$include_sys_time_h%g
9970 s%@include_time_h@%$include_time_h%g
9975 cat >> $CONFIG_STATUS <<\EOF
9977 # Split the substitutions into bite-sized pieces for seds with
9978 # small command number limits, like on Digital OSF/1 and HP-UX.
9979 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9980 ac_file=1 # Number of current file.
9981 ac_beg=1 # First line for current file.
9982 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9985 while $ac_more_lines; do
9986 if test $ac_beg -gt 1; then
9987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9989 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9991 if test ! -s conftest.s$ac_file; then
9993 rm -f conftest.s$ac_file
9995 if test -z "$ac_sed_cmds"; then
9996 ac_sed_cmds="sed -f conftest.s$ac_file"
9998 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10000 ac_file=`expr $ac_file + 1`
10002 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10005 if test -z "$ac_sed_cmds"; then
10010 cat >> $CONFIG_STATUS <<EOF
10012 CONFIG_FILES=\${CONFIG_FILES-"autoconf/Make.common \
10016 src/graphics/Makefile \
10017 src/test/Makefile \
10022 cat >> $CONFIG_STATUS <<\EOF
10023 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10026 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10027 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10028 *) ac_file_in="${ac_file}.in" ;;
10031 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10033 # Remove last slash and all that follows it. Not all systems have dirname.
10034 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10035 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10036 # The file is in a subdirectory.
10037 test ! -d "$ac_dir" && mkdir "$ac_dir"
10038 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10039 # A "../" for each directory in $ac_dir_suffix.
10040 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10042 ac_dir_suffix= ac_dots=
10045 case "$ac_given_srcdir" in
10047 if test -z "$ac_dots"; then top_srcdir=.
10048 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10049 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10050 *) # Relative path.
10051 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10052 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10055 case "$ac_given_INSTALL" in
10056 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10057 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10060 echo creating "$ac_file"
10062 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10064 *Makefile*) ac_comsub="1i\\
10065 # $configure_input" ;;
10069 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10071 s%@configure_input@%$configure_input%g
10072 s%@srcdir@%$srcdir%g
10073 s%@top_srcdir@%$top_srcdir%g
10074 s%@INSTALL@%$INSTALL%g
10075 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10079 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10080 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10082 # ac_d sets the value in "#define NAME VALUE" lines.
10083 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10084 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10087 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10088 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10089 ac_uB='\([ ]\)%\1#\2define\3'
10092 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10093 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10094 ac_eB='$%\1#\2define\3'
10098 if test "${CONFIG_HEADERS+set}" != set; then
10100 cat >> $CONFIG_STATUS <<EOF
10101 CONFIG_HEADERS="config.h:autoconf/config.h.in"
10103 cat >> $CONFIG_STATUS <<\EOF
10105 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10106 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10108 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10109 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10110 *) ac_file_in="${ac_file}.in" ;;
10113 echo creating $ac_file
10115 rm -f conftest.frag conftest.in conftest.out
10116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10117 cat $ac_file_inputs > conftest.in
10121 # Transform confdefs.h into a sed script conftest.vals that substitutes
10122 # the proper values into config.h.in to produce config.h. And first:
10123 # Protect against being on the right side of a sed subst in config.status.
10124 # Protect against being in an unquoted here document in config.status.
10125 rm -f conftest.vals
10126 cat > conftest.hdr <<\EOF
10129 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10133 sed -n -f conftest.hdr confdefs.h > conftest.vals
10136 # This sed command replaces #undef with comments. This is necessary, for
10137 # example, in the case of _POSIX_SOURCE, which is predefined and required
10138 # on some systems where configure will not decide to define it.
10139 cat >> conftest.vals <<\EOF
10140 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10143 # Break up conftest.vals because some shells have a limit on
10144 # the size of here documents, and old seds have small limits too.
10146 rm -f conftest.tail
10149 ac_lines=`grep -c . conftest.vals`
10150 # grep -c gives empty output for an empty file on some AIX systems.
10151 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10152 # Write a limited-size here document to conftest.frag.
10153 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10154 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10156 sed -f conftest.frag conftest.in > conftest.out
10158 mv conftest.out conftest.in
10159 ' >> $CONFIG_STATUS
10160 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10161 rm -f conftest.vals
10162 mv conftest.tail conftest.vals
10164 rm -f conftest.vals
10166 cat >> $CONFIG_STATUS <<\EOF
10167 rm -f conftest.frag conftest.h
10168 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10169 cat conftest.in >> conftest.h
10171 if cmp -s $ac_file conftest.h 2>/dev/null; then
10172 echo "$ac_file is unchanged"
10175 # Remove last slash and all that follows it. Not all systems have dirname.
10176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10178 # The file is in a subdirectory.
10179 test ! -d "$ac_dir" && mkdir "$ac_dir"
10182 mv conftest.h $ac_file
10187 cat >> $CONFIG_STATUS <<EOF
10190 cat >> $CONFIG_STATUS <<\EOF
10194 chmod +x $CONFIG_STATUS
10195 rm -fr confdefs* $ac_clean_files
10196 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10199 echo "Configuration:
10201 Rxvt version: $VERSION : $DATE
10202 Source code location: $srcdir
10203 Install path: ${prefix}/bin
10205 Compiler flags: $CFLAGS"
10207 if test "$MALLOC_TYPE" = S; then
10208 echo " malloc support: system default"
10210 if test "$MALLOC_TYPE" = G; then
10211 echo " malloc support: Gray Watson's dmalloc"
10213 if test "$MALLOC_TYPE" = D; then
10214 echo " malloc support: Doug Lea's malloc"
10217 if test x$support_xpm = xyes; then
10218 echo " Xpm library: $XPM_LIBS"
10222 The following are set in config.h
10224 echo " pty/tty type: "$rxvt_cv_ptys
10225 if test x$support_utmp != xyes; then
10226 echo " utmp support: disabled
10229 echo " utmp support: enabled
10230 utmp file: $rxvt_cv_path_utmp
10231 utmpx file: $rxvt_cv_path_utmpx
10232 wtmp file: $rxvt_cv_path_wtmp
10233 wtmpx file: $rxvt_cv_path_wtmpx
10234 lastlog file: $rxvt_cv_path_lastlog
10235 ttys/ttytab file: $rxvt_cv_path_ttytab
10238 if test x$term != x; then
10239 echo " set TERM to: $term
10242 if test x$terminfo != x; then
10243 echo " set TERMINFO to: $terminfo
10246 if test x$rxvt_cv_ptys = xUNKNOWN; then
10247 echo ".----------------------------------------------------------------."
10248 echo ". WARNING: could not determine pty/tty type. Do not build until ."
10249 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
10250 echo ".----------------------------------------------------------------."
10252 if test x$support_xpm = xneedsmanualspecification; then
10253 echo ".----------------------------------------------------------------."
10254 echo ". WARNING: --enable-xpm-background was specified however the ."
10255 echo ". XPM includes files and libraries could not be found. ."
10256 echo ". XPM backgrounds are now being DISABLED! If you want ."
10257 echo ". to use them you should rerun configure with the ."
10258 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
10259 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
10260 echo ".----------------------------------------------------------------."
10262 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
10263 echo ".----------------------------------------------------------------."
10264 echo ". WARNING: --enable-xim was specified however the locale support ."
10265 echo ". functions could not be found. ."
10266 echo ". XIM is now being DISABLED! ."
10267 echo ".----------------------------------------------------------------."
10269 echo " *** Please check src/feature.h for further options ***