… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
244 | # Find the correct PATH separator. Usually this is `:', but |
|
|
245 | # DJGPP uses `;' like DOS. |
|
|
246 | if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
247 | UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
248 | case X$UNAME in |
|
|
249 | *-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
250 | *) lt_cv_sys_path_separator=':' ;; |
|
|
251 | esac |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | # Check that we are running under the correct shell. |
|
|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
257 | |
|
|
258 | case "X$ECHO" in |
|
|
259 | X*--fallback-echo) |
|
|
260 | # Remove one level of quotation (which was required for Make). |
|
|
261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
262 | ;; |
|
|
263 | esac |
|
|
264 | |
|
|
265 | echo=${ECHO-echo} |
|
|
266 | if test "X$1" = X--no-reexec; then |
|
|
267 | # Discard the --no-reexec flag, and continue. |
|
|
268 | shift |
|
|
269 | elif test "X$1" = X--fallback-echo; then |
|
|
270 | # Avoid inline document here, it may be left over |
|
|
271 | : |
|
|
272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
|
|
273 | # Yippee, $echo works! |
|
|
274 | : |
|
|
275 | else |
|
|
276 | # Restart under the correct shell. |
|
|
277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
278 | fi |
|
|
279 | |
|
|
280 | if test "X$1" = X--fallback-echo; then |
|
|
281 | # used as fallback echo |
|
|
282 | shift |
|
|
283 | cat <<EOF |
|
|
284 | |
|
|
285 | EOF |
|
|
286 | exit 0 |
|
|
287 | fi |
|
|
288 | |
|
|
289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
290 | # if CDPATH is set. |
|
|
291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
292 | |
|
|
293 | if test -z "$ECHO"; then |
|
|
294 | if test "X${echo_test_string+set}" != Xset; then |
|
|
295 | # find a string as large as possible, as long as the shell can cope with it |
|
|
296 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
297 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
298 | if (echo_test_string="`eval $cmd`") 2>/dev/null && |
|
|
299 | echo_test_string="`eval $cmd`" && |
|
|
300 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
301 | then |
|
|
302 | break |
|
|
303 | fi |
|
|
304 | done |
|
|
305 | fi |
|
|
306 | |
|
|
307 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
308 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
309 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
310 | : |
|
|
311 | else |
|
|
312 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
313 | # backslashes. This makes it impossible to quote backslashes using |
|
|
314 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
315 | # |
|
|
316 | # So, first we look for a working echo in the user's PATH. |
|
|
317 | |
|
|
318 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
|
|
319 | for dir in $PATH /usr/ucb; do |
|
|
320 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
321 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
322 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
323 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
324 | echo="$dir/echo" |
|
|
325 | break |
|
|
326 | fi |
|
|
327 | done |
|
|
328 | IFS="$save_ifs" |
|
|
329 | |
|
|
330 | if test "X$echo" = Xecho; then |
|
|
331 | # We didn't find a better echo, so look for alternatives. |
|
|
332 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
333 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
334 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
335 | # This shell has a builtin print -r that does the trick. |
|
|
336 | echo='print -r' |
|
|
337 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
338 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
339 | # If we have ksh, try running ltconfig again with it. |
|
|
340 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
341 | export ORIGINAL_CONFIG_SHELL |
|
|
342 | CONFIG_SHELL=/bin/ksh |
|
|
343 | export CONFIG_SHELL |
|
|
344 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
345 | else |
|
|
346 | # Try using printf. |
|
|
347 | echo='printf %s\n' |
|
|
348 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
349 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
350 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
351 | # Cool, printf works |
|
|
352 | : |
|
|
353 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
358 | export CONFIG_SHELL |
|
|
359 | SHELL="$CONFIG_SHELL" |
|
|
360 | export SHELL |
|
|
361 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
362 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
363 | test "X$echo_testing_string" = 'X\t' && |
|
|
364 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
365 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
366 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
367 | else |
|
|
368 | # maybe with a smaller string... |
|
|
369 | prev=: |
|
|
370 | |
|
|
371 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
372 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
373 | then |
|
|
374 | break |
|
|
375 | fi |
|
|
376 | prev="$cmd" |
|
|
377 | done |
|
|
378 | |
|
|
379 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
380 | echo_test_string=`eval $prev` |
|
|
381 | export echo_test_string |
|
|
382 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
383 | else |
|
|
384 | # Oops. We lost completely, so just stick with echo. |
|
|
385 | echo=echo |
|
|
386 | fi |
|
|
387 | fi |
|
|
388 | fi |
|
|
389 | fi |
|
|
390 | fi |
|
|
391 | fi |
|
|
392 | |
|
|
393 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
394 | # the Makefile, instead of quoting the original, which is used later. |
|
|
395 | ECHO=$echo |
|
|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
398 | fi |
|
|
399 | |
|
|
400 | |
|
|
401 | |
|
|
402 | # Name of the host. |
244 | # Name of the host. |
403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
404 | # so uname gets run too. |
246 | # so uname gets run too. |
405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
406 | |
248 | |
… | |
… | |
465 | #endif |
307 | #endif |
466 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
467 | # include <unistd.h> |
309 | # include <unistd.h> |
468 | #endif" |
310 | #endif" |
469 | |
311 | |
470 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
471 | ac_subst_files='MCOMMON' |
313 | ac_subst_files='' |
472 | |
314 | |
473 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
474 | ac_init_help= |
316 | ac_init_help= |
475 | ac_init_version=false |
317 | ac_init_version=false |
476 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
1021 | cat <<\_ACEOF |
863 | cat <<\_ACEOF |
1022 | |
864 | |
1023 | Optional Features: |
865 | Optional Features: |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 | --enable-shared=PKGS build shared libraries default=no |
|
|
1027 | --enable-static=PKGS build static libraries default=yes |
|
|
1028 | --enable-fast-install=PKGS optimize for fast installation default=yes |
|
|
1029 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1030 | --enable-everything enable standard non-multichoice features |
868 | --enable-everything enable standard non-multichoice features |
1031 | NOTE: this option is order dependent |
869 | NOTE: this option is order dependent |
1032 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
1033 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1034 | --enable-combining enable composition of base and combining characters |
872 | --enable-combining enable composition of base and combining characters |
1035 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
|
|
874 | --enable-font-styles enable bold and italic support |
1036 | --enable-utmp enable utmp (utmpx) support |
875 | --enable-utmp enable utmp (utmpx) support |
1037 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
876 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1038 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1039 | --enable-xpm-background enable XPM background pixmaps |
878 | --enable-xpm-background enable XPM background pixmaps |
1040 | --enable-transparency enable transparent backgrounds |
879 | --enable-transparency enable transparent backgrounds |
1041 | --enable-tinting enable tinting of transparent bg |
880 | --enable-tinting enable tinting of transparent bg |
1042 | --enable-fading enable colors fading when off focus |
881 | --enable-fading enable colors fading when off focus |
1043 | --enable-menubar enable menubar |
|
|
1044 | --enable-rxvt-scroll enable rxvt style scrollbar |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
1045 | --enable-next-scroll enable NeXT style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
1046 | --enable-xterm-scroll enable Xterm style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
885 | --enable-perl enable embedded perl interpreter |
1047 | --enable-plain-scroll enable plain style scrollbar |
886 | --enable-plain-scroll enable plain style scrollbar |
1048 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1049 | --enable-xim XIM (X Input Method) protocol support |
887 | --enable-xim XIM (X Input Method) protocol support |
1050 | --enable-ttygid enable tty setting to group named "tty" |
888 | --enable-ttygid enable tty setting to group named "tty" |
1051 | --disable-backspace-key disable handling of the backspace key |
889 | --disable-backspace-key disable handling of the backspace key |
1052 | --disable-delete-key disable handling of the delete key |
890 | --disable-delete-key disable handling of the delete key |
1053 | --disable-resources disable all resource checking |
891 | --disable-resources disable all resource checking |
1054 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
1055 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1056 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1057 | --enable-strings enable some replacement system functions |
|
|
1058 | --disable-swapscreen disable swap screen support |
894 | --disable-swapscreen disable swap screen support |
|
|
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
1059 | --enable-frills enable support for rarely used features |
896 | --enable-frills enable support for rarely used features |
1060 | --enable-linespace enable support for linespace |
|
|
1061 | --enable-24bit enable support for using 24bit visuals if available |
897 | --enable-24bit enable support for using 24bit visuals if available |
1062 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1063 | --enable-selectionscrolling enable scrolling during selections |
899 | --enable-selectionscrolling enable scrolling during selections |
1064 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
900 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1065 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
901 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1066 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
902 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
1067 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
903 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
1068 | NOTE: enable only one malloc package |
904 | NOTE: enable only one malloc package |
1069 | --enable-smart-resize enable smart growth/shrink behaviour |
905 | --enable-smart-resize enable smart growth/shrink behaviour |
1070 | --enable-256-color enable 256-color support |
|
|
1071 | --enable-cursor-blink enable blinking cursor |
|
|
1072 | --enable-text-blink enable blinking text |
906 | --enable-text-blink enable blinking text |
1073 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
907 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1074 | |
908 | |
1075 | Optional Packages: |
909 | Optional Packages: |
1076 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1077 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1078 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
|
|
1079 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1080 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) |
912 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1081 | --with-res-name=NAME use this as default resource name (default: urxvt) |
913 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1082 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
914 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1083 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
915 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1084 | --with-term=NAME set the terminal to NAME (default: rxvt) |
916 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1085 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
917 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1536 | |
1368 | |
1537 | |
1369 | |
1538 | |
1370 | |
1539 | |
1371 | |
1540 | |
1372 | |
|
|
1373 | |
|
|
1374 | |
|
|
1375 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1376 | |
|
|
1377 | |
1541 | ac_aux_dir= |
1378 | ac_aux_dir= |
1542 | for ac_dir in autoconf $srcdir/autoconf; do |
1379 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1543 | if test -f $ac_dir/install-sh; then |
1380 | if test -f $ac_dir/install-sh; then |
1544 | ac_aux_dir=$ac_dir |
1381 | ac_aux_dir=$ac_dir |
1545 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1382 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1546 | break |
1383 | break |
1547 | elif test -f $ac_dir/install.sh; then |
1384 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1553 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1390 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1554 | break |
1391 | break |
1555 | fi |
1392 | fi |
1556 | done |
1393 | done |
1557 | if test -z "$ac_aux_dir"; then |
1394 | if test -z "$ac_aux_dir"; then |
1558 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1559 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1396 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1560 | { (exit 1); exit 1; }; } |
1397 | { (exit 1); exit 1; }; } |
1561 | fi |
1398 | fi |
1562 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1563 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1564 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1401 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1565 | |
1402 | |
1566 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1403 | # Make sure we can run config.sub. |
|
|
1404 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1405 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1406 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1407 | { (exit 1); exit 1; }; } |
|
|
1408 | |
|
|
1409 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1410 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1411 | if test "${ac_cv_build+set}" = set; then |
|
|
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1413 | else |
|
|
1414 | ac_cv_build_alias=$build_alias |
|
|
1415 | test -z "$ac_cv_build_alias" && |
|
|
1416 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1417 | test -z "$ac_cv_build_alias" && |
|
|
1418 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1419 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1420 | { (exit 1); exit 1; }; } |
|
|
1421 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1422 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1423 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1424 | { (exit 1); exit 1; }; } |
|
|
1425 | |
|
|
1426 | fi |
|
|
1427 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1428 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1429 | build=$ac_cv_build |
|
|
1430 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1431 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1432 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1433 | |
|
|
1434 | |
|
|
1435 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1436 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1437 | if test "${ac_cv_host+set}" = set; then |
|
|
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1439 | else |
|
|
1440 | ac_cv_host_alias=$host_alias |
|
|
1441 | test -z "$ac_cv_host_alias" && |
|
|
1442 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1443 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1444 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1445 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1446 | { (exit 1); exit 1; }; } |
|
|
1447 | |
|
|
1448 | fi |
|
|
1449 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1450 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1451 | host=$ac_cv_host |
|
|
1452 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1453 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1454 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1455 | |
1567 | |
1456 | |
1568 | |
1457 | |
1569 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1458 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1570 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1459 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1571 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1572 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1573 | echo "" |
1460 | echo "" |
1574 | echo "configuring for rxvt $VERSION" |
1461 | echo "configuring for rxvt $VERSION" |
1575 | echo "" |
1462 | echo "" |
|
|
1463 | |
|
|
1464 | orig_CXXFLAGS="$CXXFLAGS" |
1576 | |
1465 | |
1577 | |
1466 | |
1578 | ac_ext=c |
1467 | ac_ext=c |
1579 | ac_cpp='$CPP $CPPFLAGS' |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3161 | |
3050 | |
3162 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3163 | |
3052 | |
3164 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3165 | |
3054 | |
3166 | for ac_prog in gawk mawk nawk awk |
|
|
3167 | do |
|
|
3168 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3169 | set dummy $ac_prog; ac_word=$2 |
|
|
3170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3172 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3174 | else |
|
|
3175 | if test -n "$AWK"; then |
|
|
3176 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3177 | else |
|
|
3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3179 | for as_dir in $PATH |
|
|
3180 | do |
|
|
3181 | IFS=$as_save_IFS |
|
|
3182 | test -z "$as_dir" && as_dir=. |
|
|
3183 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3185 | ac_cv_prog_AWK="$ac_prog" |
|
|
3186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3187 | break 2 |
|
|
3188 | fi |
|
|
3189 | done |
|
|
3190 | done |
|
|
3191 | |
3055 | |
3192 | fi |
|
|
3193 | fi |
|
|
3194 | AWK=$ac_cv_prog_AWK |
|
|
3195 | if test -n "$AWK"; then |
|
|
3196 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3197 | echo "${ECHO_T}$AWK" >&6 |
|
|
3198 | else |
|
|
3199 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3200 | echo "${ECHO_T}no" >&6 |
|
|
3201 | fi |
|
|
3202 | |
|
|
3203 | test -n "$AWK" && break |
|
|
3204 | done |
|
|
3205 | |
|
|
3206 | |
|
|
3207 | ac_ext=c |
|
|
3208 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3212 | |
|
|
3213 | |
|
|
3214 | LINKER="$CXX" |
|
|
3215 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3216 | |
|
|
3217 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3218 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3219 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3221 | else |
|
|
3222 | ac_check_lib_save_LIBS=$LIBS |
|
|
3223 | LIBS="-lsupc++ $LIBS" |
|
|
3224 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3225 | /* confdefs.h. */ |
|
|
3226 | _ACEOF |
|
|
3227 | cat confdefs.h >>conftest.$ac_ext |
|
|
3228 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3229 | /* end confdefs.h. */ |
|
|
3230 | |
|
|
3231 | |
|
|
3232 | int |
|
|
3233 | main () |
|
|
3234 | { |
|
|
3235 | main (); |
|
|
3236 | ; |
|
|
3237 | return 0; |
|
|
3238 | } |
|
|
3239 | _ACEOF |
|
|
3240 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3242 | (eval $ac_link) 2>conftest.er1 |
|
|
3243 | ac_status=$? |
|
|
3244 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3245 | rm -f conftest.er1 |
|
|
3246 | cat conftest.err >&5 |
|
|
3247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3248 | (exit $ac_status); } && |
|
|
3249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3251 | (eval $ac_try) 2>&5 |
|
|
3252 | ac_status=$? |
|
|
3253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3254 | (exit $ac_status); }; } && |
|
|
3255 | { ac_try='test -s conftest$ac_exeext' |
|
|
3256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3257 | (eval $ac_try) 2>&5 |
|
|
3258 | ac_status=$? |
|
|
3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3260 | (exit $ac_status); }; }; then |
|
|
3261 | ac_cv_lib_supcpp_main=yes |
|
|
3262 | else |
|
|
3263 | echo "$as_me: failed program was:" >&5 |
|
|
3264 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3265 | |
|
|
3266 | ac_cv_lib_supcpp_main=no |
|
|
3267 | fi |
|
|
3268 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3269 | conftest$ac_exeext conftest.$ac_ext |
|
|
3270 | LIBS=$ac_check_lib_save_LIBS |
|
|
3271 | fi |
|
|
3272 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3273 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3274 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3275 | |
|
|
3276 | LINKER="$CC" |
|
|
3277 | LIBS="$LIBS -lsupc++" |
|
|
3278 | |
|
|
3279 | fi |
|
|
3280 | |
|
|
3281 | fi |
|
|
3282 | LINKER=$LINKER |
|
|
3283 | |
|
|
3284 | |
|
|
3285 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
3286 | |
|
|
3287 | |
|
|
3288 | ac_ext=cc |
|
|
3289 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3290 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3291 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3292 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3293 | |
|
|
3294 | |
|
|
3295 | |
|
|
3296 | ac_ext=cc |
|
|
3297 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3301 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3302 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3303 | if test -z "$CXXCPP"; then |
|
|
3304 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3306 | else |
|
|
3307 | # Double quotes because CXXCPP needs to be expanded |
|
|
3308 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3309 | do |
|
|
3310 | ac_preproc_ok=false |
|
|
3311 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3312 | do |
|
|
3313 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3314 | # with a fresh cross-compiler works. |
|
|
3315 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3316 | # <limits.h> exists even on freestanding compilers. |
|
|
3317 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3318 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3319 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3320 | /* confdefs.h. */ |
|
|
3321 | _ACEOF |
|
|
3322 | cat confdefs.h >>conftest.$ac_ext |
|
|
3323 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3324 | /* end confdefs.h. */ |
|
|
3325 | #ifdef __STDC__ |
|
|
3326 | # include <limits.h> |
|
|
3327 | #else |
|
|
3328 | # include <assert.h> |
|
|
3329 | #endif |
|
|
3330 | Syntax error |
|
|
3331 | _ACEOF |
|
|
3332 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3333 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3334 | ac_status=$? |
|
|
3335 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3336 | rm -f conftest.er1 |
|
|
3337 | cat conftest.err >&5 |
|
|
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3339 | (exit $ac_status); } >/dev/null; then |
|
|
3340 | if test -s conftest.err; then |
|
|
3341 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3342 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3343 | else |
|
|
3344 | ac_cpp_err= |
|
|
3345 | fi |
|
|
3346 | else |
|
|
3347 | ac_cpp_err=yes |
|
|
3348 | fi |
|
|
3349 | if test -z "$ac_cpp_err"; then |
|
|
3350 | : |
|
|
3351 | else |
|
|
3352 | echo "$as_me: failed program was:" >&5 |
|
|
3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3354 | |
|
|
3355 | # Broken: fails on valid input. |
|
|
3356 | continue |
|
|
3357 | fi |
|
|
3358 | rm -f conftest.err conftest.$ac_ext |
|
|
3359 | |
|
|
3360 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3361 | # can be detected and how. |
|
|
3362 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3363 | /* confdefs.h. */ |
|
|
3364 | _ACEOF |
|
|
3365 | cat confdefs.h >>conftest.$ac_ext |
|
|
3366 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3367 | /* end confdefs.h. */ |
|
|
3368 | #include <ac_nonexistent.h> |
|
|
3369 | _ACEOF |
|
|
3370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3372 | ac_status=$? |
|
|
3373 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3374 | rm -f conftest.er1 |
|
|
3375 | cat conftest.err >&5 |
|
|
3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3377 | (exit $ac_status); } >/dev/null; then |
|
|
3378 | if test -s conftest.err; then |
|
|
3379 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3380 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3381 | else |
|
|
3382 | ac_cpp_err= |
|
|
3383 | fi |
|
|
3384 | else |
|
|
3385 | ac_cpp_err=yes |
|
|
3386 | fi |
|
|
3387 | if test -z "$ac_cpp_err"; then |
|
|
3388 | # Broken: success on invalid input. |
|
|
3389 | continue |
|
|
3390 | else |
|
|
3391 | echo "$as_me: failed program was:" >&5 |
|
|
3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3393 | |
|
|
3394 | # Passes both tests. |
|
|
3395 | ac_preproc_ok=: |
|
|
3396 | break |
|
|
3397 | fi |
|
|
3398 | rm -f conftest.err conftest.$ac_ext |
|
|
3399 | |
|
|
3400 | done |
|
|
3401 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3402 | rm -f conftest.err conftest.$ac_ext |
|
|
3403 | if $ac_preproc_ok; then |
|
|
3404 | break |
|
|
3405 | fi |
|
|
3406 | |
|
|
3407 | done |
|
|
3408 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3409 | |
|
|
3410 | fi |
|
|
3411 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3412 | else |
|
|
3413 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3414 | fi |
|
|
3415 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3416 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3417 | ac_preproc_ok=false |
|
|
3418 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3419 | do |
|
|
3420 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3421 | # with a fresh cross-compiler works. |
|
|
3422 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3423 | # <limits.h> exists even on freestanding compilers. |
|
|
3424 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3425 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3426 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3427 | /* confdefs.h. */ |
|
|
3428 | _ACEOF |
|
|
3429 | cat confdefs.h >>conftest.$ac_ext |
|
|
3430 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3431 | /* end confdefs.h. */ |
|
|
3432 | #ifdef __STDC__ |
|
|
3433 | # include <limits.h> |
|
|
3434 | #else |
|
|
3435 | # include <assert.h> |
|
|
3436 | #endif |
|
|
3437 | Syntax error |
|
|
3438 | _ACEOF |
|
|
3439 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3440 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3441 | ac_status=$? |
|
|
3442 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3443 | rm -f conftest.er1 |
|
|
3444 | cat conftest.err >&5 |
|
|
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3446 | (exit $ac_status); } >/dev/null; then |
|
|
3447 | if test -s conftest.err; then |
|
|
3448 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3449 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3450 | else |
|
|
3451 | ac_cpp_err= |
|
|
3452 | fi |
|
|
3453 | else |
|
|
3454 | ac_cpp_err=yes |
|
|
3455 | fi |
|
|
3456 | if test -z "$ac_cpp_err"; then |
|
|
3457 | : |
|
|
3458 | else |
|
|
3459 | echo "$as_me: failed program was:" >&5 |
|
|
3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3461 | |
|
|
3462 | # Broken: fails on valid input. |
|
|
3463 | continue |
|
|
3464 | fi |
|
|
3465 | rm -f conftest.err conftest.$ac_ext |
|
|
3466 | |
|
|
3467 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3468 | # can be detected and how. |
|
|
3469 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3470 | /* confdefs.h. */ |
|
|
3471 | _ACEOF |
|
|
3472 | cat confdefs.h >>conftest.$ac_ext |
|
|
3473 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3474 | /* end confdefs.h. */ |
|
|
3475 | #include <ac_nonexistent.h> |
|
|
3476 | _ACEOF |
|
|
3477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3479 | ac_status=$? |
|
|
3480 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3481 | rm -f conftest.er1 |
|
|
3482 | cat conftest.err >&5 |
|
|
3483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3484 | (exit $ac_status); } >/dev/null; then |
|
|
3485 | if test -s conftest.err; then |
|
|
3486 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3487 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3488 | else |
|
|
3489 | ac_cpp_err= |
|
|
3490 | fi |
|
|
3491 | else |
|
|
3492 | ac_cpp_err=yes |
|
|
3493 | fi |
|
|
3494 | if test -z "$ac_cpp_err"; then |
|
|
3495 | # Broken: success on invalid input. |
|
|
3496 | continue |
|
|
3497 | else |
|
|
3498 | echo "$as_me: failed program was:" >&5 |
|
|
3499 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3500 | |
|
|
3501 | # Passes both tests. |
|
|
3502 | ac_preproc_ok=: |
|
|
3503 | break |
|
|
3504 | fi |
|
|
3505 | rm -f conftest.err conftest.$ac_ext |
|
|
3506 | |
|
|
3507 | done |
|
|
3508 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3509 | rm -f conftest.err conftest.$ac_ext |
|
|
3510 | if $ac_preproc_ok; then |
|
|
3511 | : |
|
|
3512 | else |
|
|
3513 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3514 | See \`config.log' for more details." >&5 |
|
|
3515 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3516 | See \`config.log' for more details." >&2;} |
|
|
3517 | { (exit 1); exit 1; }; } |
|
|
3518 | fi |
|
|
3519 | |
|
|
3520 | ac_ext=cc |
|
|
3521 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3522 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3523 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3524 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3525 | |
3056 | |
3526 | |
3057 | |
3527 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3528 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3529 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3604 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3605 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3606 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3608 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3609 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3611 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3612 | ac_status=$? |
3143 | ac_status=$? |
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3614 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3658 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3659 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3660 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3662 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3663 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3665 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3666 | ac_status=$? |
3197 | ac_status=$? |
3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3668 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3691 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3692 | |
3223 | |
3693 | fi |
3224 | fi |
3694 | |
3225 | |
3695 | |
3226 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
|
|
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3309 | |
|
|
3310 | if test -z "$orig_CXXFLAGS"; then |
|
|
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3312 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3313 | |
|
|
3314 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3315 | /* confdefs.h. */ |
|
|
3316 | _ACEOF |
|
|
3317 | cat confdefs.h >>conftest.$ac_ext |
|
|
3318 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3319 | /* end confdefs.h. */ |
|
|
3320 | |
|
|
3321 | int |
|
|
3322 | main () |
|
|
3323 | { |
|
|
3324 | |
|
|
3325 | ; |
|
|
3326 | return 0; |
|
|
3327 | } |
|
|
3328 | _ACEOF |
|
|
3329 | rm -f conftest.$ac_objext |
|
|
3330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3331 | (eval $ac_compile) 2>conftest.er1 |
|
|
3332 | ac_status=$? |
|
|
3333 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3334 | rm -f conftest.er1 |
|
|
3335 | cat conftest.err >&5 |
|
|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3337 | (exit $ac_status); } && |
|
|
3338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3340 | (eval $ac_try) 2>&5 |
|
|
3341 | ac_status=$? |
|
|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3343 | (exit $ac_status); }; } && |
|
|
3344 | { ac_try='test -s conftest.$ac_objext' |
|
|
3345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3346 | (eval $ac_try) 2>&5 |
|
|
3347 | ac_status=$? |
|
|
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3349 | (exit $ac_status); }; }; then |
|
|
3350 | : |
|
|
3351 | else |
|
|
3352 | echo "$as_me: failed program was:" >&5 |
|
|
3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3354 | |
|
|
3355 | CXXFLAGS="-g -O3" |
|
|
3356 | fi |
|
|
3357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3358 | else |
|
|
3359 | CXXFLAGS="-O" |
|
|
3360 | fi |
|
|
3361 | CFLAGS="$CXXFLAGS" |
|
|
3362 | fi |
|
|
3363 | |
|
|
3364 | |
|
|
3365 | cat >>confdefs.h <<\_ACEOF |
|
|
3366 | #define _GNU_SOURCE 1 |
|
|
3367 | _ACEOF |
|
|
3368 | |
|
|
3369 | |
|
|
3370 | case $host in |
|
|
3371 | *-*-solaris* ) |
|
|
3372 | |
|
|
3373 | cat >>confdefs.h <<\_ACEOF |
|
|
3374 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3375 | _ACEOF |
|
|
3376 | |
|
|
3377 | |
|
|
3378 | cat >>confdefs.h <<\_ACEOF |
|
|
3379 | #define _XOPEN_SOURCE 2 |
|
|
3380 | _ACEOF |
|
|
3381 | |
|
|
3382 | |
|
|
3383 | cat >>confdefs.h <<\_ACEOF |
|
|
3384 | #define __EXTENSIONS__ 1 |
|
|
3385 | _ACEOF |
|
|
3386 | |
|
|
3387 | ;; |
|
|
3388 | esac |
|
|
3389 | |
|
|
3390 | |
|
|
3391 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3392 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3393 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3395 | else |
|
|
3396 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3397 | /* confdefs.h. */ |
|
|
3398 | _ACEOF |
|
|
3399 | cat confdefs.h >>conftest.$ac_ext |
|
|
3400 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3401 | /* end confdefs.h. */ |
|
|
3402 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3404 | #define setlocale innocuous_setlocale |
|
|
3405 | |
|
|
3406 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3407 | which can conflict with char setlocale (); below. |
|
|
3408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3409 | <limits.h> exists even on freestanding compilers. */ |
|
|
3410 | |
|
|
3411 | #ifdef __STDC__ |
|
|
3412 | # include <limits.h> |
|
|
3413 | #else |
|
|
3414 | # include <assert.h> |
|
|
3415 | #endif |
|
|
3416 | |
|
|
3417 | #undef setlocale |
|
|
3418 | |
|
|
3419 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3420 | #ifdef __cplusplus |
|
|
3421 | extern "C" |
|
|
3422 | { |
|
|
3423 | #endif |
|
|
3424 | /* We use char because int might match the return type of a gcc2 |
|
|
3425 | builtin and then its argument prototype would still apply. */ |
|
|
3426 | char setlocale (); |
|
|
3427 | /* The GNU C library defines this for functions which it implements |
|
|
3428 | to always fail with ENOSYS. Some functions are actually named |
|
|
3429 | something starting with __ and the normal name is an alias. */ |
|
|
3430 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3431 | choke me |
|
|
3432 | #else |
|
|
3433 | char (*f) () = setlocale; |
|
|
3434 | #endif |
|
|
3435 | #ifdef __cplusplus |
|
|
3436 | } |
|
|
3437 | #endif |
|
|
3438 | |
|
|
3439 | int |
|
|
3440 | main () |
|
|
3441 | { |
|
|
3442 | return f != setlocale; |
|
|
3443 | ; |
|
|
3444 | return 0; |
|
|
3445 | } |
|
|
3446 | _ACEOF |
|
|
3447 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3449 | (eval $ac_link) 2>conftest.er1 |
|
|
3450 | ac_status=$? |
|
|
3451 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3452 | rm -f conftest.er1 |
|
|
3453 | cat conftest.err >&5 |
|
|
3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3455 | (exit $ac_status); } && |
|
|
3456 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3458 | (eval $ac_try) 2>&5 |
|
|
3459 | ac_status=$? |
|
|
3460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3461 | (exit $ac_status); }; } && |
|
|
3462 | { ac_try='test -s conftest$ac_exeext' |
|
|
3463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3464 | (eval $ac_try) 2>&5 |
|
|
3465 | ac_status=$? |
|
|
3466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3467 | (exit $ac_status); }; }; then |
|
|
3468 | ac_cv_func_setlocale=yes |
|
|
3469 | else |
|
|
3470 | echo "$as_me: failed program was:" >&5 |
|
|
3471 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3472 | |
|
|
3473 | ac_cv_func_setlocale=no |
|
|
3474 | fi |
|
|
3475 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3476 | conftest$ac_exeext conftest.$ac_ext |
|
|
3477 | fi |
|
|
3478 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3479 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3480 | if test $ac_cv_func_setlocale = yes; then |
|
|
3481 | : |
|
|
3482 | else |
3696 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3483 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3697 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3484 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3698 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3485 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3700 | else |
3487 | else |
3701 | ac_check_lib_save_LIBS=$LIBS |
3488 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3758 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3545 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3759 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3546 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3760 | LIBS="$LIBS -lxpg4" |
3547 | LIBS="$LIBS -lxpg4" |
3761 | fi |
3548 | fi |
3762 | |
3549 | |
|
|
3550 | fi |
3763 | |
3551 | |
|
|
3552 | |
|
|
3553 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3554 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3555 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3557 | else |
|
|
3558 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3559 | /* confdefs.h. */ |
|
|
3560 | _ACEOF |
|
|
3561 | cat confdefs.h >>conftest.$ac_ext |
|
|
3562 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3563 | /* end confdefs.h. */ |
|
|
3564 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3566 | #define gethostbyname innocuous_gethostbyname |
|
|
3567 | |
|
|
3568 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3569 | which can conflict with char gethostbyname (); below. |
|
|
3570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3571 | <limits.h> exists even on freestanding compilers. */ |
|
|
3572 | |
|
|
3573 | #ifdef __STDC__ |
|
|
3574 | # include <limits.h> |
|
|
3575 | #else |
|
|
3576 | # include <assert.h> |
|
|
3577 | #endif |
|
|
3578 | |
|
|
3579 | #undef gethostbyname |
|
|
3580 | |
|
|
3581 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3582 | #ifdef __cplusplus |
|
|
3583 | extern "C" |
|
|
3584 | { |
|
|
3585 | #endif |
|
|
3586 | /* We use char because int might match the return type of a gcc2 |
|
|
3587 | builtin and then its argument prototype would still apply. */ |
|
|
3588 | char gethostbyname (); |
|
|
3589 | /* The GNU C library defines this for functions which it implements |
|
|
3590 | to always fail with ENOSYS. Some functions are actually named |
|
|
3591 | something starting with __ and the normal name is an alias. */ |
|
|
3592 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3593 | choke me |
|
|
3594 | #else |
|
|
3595 | char (*f) () = gethostbyname; |
|
|
3596 | #endif |
|
|
3597 | #ifdef __cplusplus |
|
|
3598 | } |
|
|
3599 | #endif |
|
|
3600 | |
|
|
3601 | int |
|
|
3602 | main () |
|
|
3603 | { |
|
|
3604 | return f != gethostbyname; |
|
|
3605 | ; |
|
|
3606 | return 0; |
|
|
3607 | } |
|
|
3608 | _ACEOF |
|
|
3609 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3611 | (eval $ac_link) 2>conftest.er1 |
|
|
3612 | ac_status=$? |
|
|
3613 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3614 | rm -f conftest.er1 |
|
|
3615 | cat conftest.err >&5 |
|
|
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3617 | (exit $ac_status); } && |
|
|
3618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3620 | (eval $ac_try) 2>&5 |
|
|
3621 | ac_status=$? |
|
|
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3623 | (exit $ac_status); }; } && |
|
|
3624 | { ac_try='test -s conftest$ac_exeext' |
|
|
3625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3626 | (eval $ac_try) 2>&5 |
|
|
3627 | ac_status=$? |
|
|
3628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3629 | (exit $ac_status); }; }; then |
|
|
3630 | ac_cv_func_gethostbyname=yes |
|
|
3631 | else |
|
|
3632 | echo "$as_me: failed program was:" >&5 |
|
|
3633 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3634 | |
|
|
3635 | ac_cv_func_gethostbyname=no |
|
|
3636 | fi |
|
|
3637 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3638 | conftest$ac_exeext conftest.$ac_ext |
|
|
3639 | fi |
|
|
3640 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3641 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3642 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3643 | : |
|
|
3644 | else |
3764 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3645 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3765 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3646 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3766 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3647 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3768 | else |
3649 | else |
3769 | ac_check_lib_save_LIBS=$LIBS |
3650 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3826 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3707 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3827 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3708 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3828 | LIBS="$LIBS -lnsl" |
3709 | LIBS="$LIBS -lnsl" |
3829 | fi |
3710 | fi |
3830 | |
3711 | |
|
|
3712 | fi |
|
|
3713 | |
|
|
3714 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3715 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3716 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3718 | else |
|
|
3719 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3720 | /* confdefs.h. */ |
|
|
3721 | _ACEOF |
|
|
3722 | cat confdefs.h >>conftest.$ac_ext |
|
|
3723 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3724 | /* end confdefs.h. */ |
|
|
3725 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3727 | #define socket innocuous_socket |
|
|
3728 | |
|
|
3729 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3730 | which can conflict with char socket (); below. |
|
|
3731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3732 | <limits.h> exists even on freestanding compilers. */ |
|
|
3733 | |
|
|
3734 | #ifdef __STDC__ |
|
|
3735 | # include <limits.h> |
|
|
3736 | #else |
|
|
3737 | # include <assert.h> |
|
|
3738 | #endif |
|
|
3739 | |
|
|
3740 | #undef socket |
|
|
3741 | |
|
|
3742 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3743 | #ifdef __cplusplus |
|
|
3744 | extern "C" |
|
|
3745 | { |
|
|
3746 | #endif |
|
|
3747 | /* We use char because int might match the return type of a gcc2 |
|
|
3748 | builtin and then its argument prototype would still apply. */ |
|
|
3749 | char socket (); |
|
|
3750 | /* The GNU C library defines this for functions which it implements |
|
|
3751 | to always fail with ENOSYS. Some functions are actually named |
|
|
3752 | something starting with __ and the normal name is an alias. */ |
|
|
3753 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3754 | choke me |
|
|
3755 | #else |
|
|
3756 | char (*f) () = socket; |
|
|
3757 | #endif |
|
|
3758 | #ifdef __cplusplus |
|
|
3759 | } |
|
|
3760 | #endif |
|
|
3761 | |
|
|
3762 | int |
|
|
3763 | main () |
|
|
3764 | { |
|
|
3765 | return f != socket; |
|
|
3766 | ; |
|
|
3767 | return 0; |
|
|
3768 | } |
|
|
3769 | _ACEOF |
|
|
3770 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3772 | (eval $ac_link) 2>conftest.er1 |
|
|
3773 | ac_status=$? |
|
|
3774 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3775 | rm -f conftest.er1 |
|
|
3776 | cat conftest.err >&5 |
|
|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3778 | (exit $ac_status); } && |
|
|
3779 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3781 | (eval $ac_try) 2>&5 |
|
|
3782 | ac_status=$? |
|
|
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3784 | (exit $ac_status); }; } && |
|
|
3785 | { ac_try='test -s conftest$ac_exeext' |
|
|
3786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3787 | (eval $ac_try) 2>&5 |
|
|
3788 | ac_status=$? |
|
|
3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3790 | (exit $ac_status); }; }; then |
|
|
3791 | ac_cv_func_socket=yes |
|
|
3792 | else |
|
|
3793 | echo "$as_me: failed program was:" >&5 |
|
|
3794 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3795 | |
|
|
3796 | ac_cv_func_socket=no |
|
|
3797 | fi |
|
|
3798 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3799 | conftest$ac_exeext conftest.$ac_ext |
|
|
3800 | fi |
|
|
3801 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3802 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3803 | if test $ac_cv_func_socket = yes; then |
|
|
3804 | : |
|
|
3805 | else |
3831 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3806 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3832 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3807 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3833 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3808 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3835 | else |
3810 | else |
3836 | ac_check_lib_save_LIBS=$LIBS |
3811 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3893 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3868 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3894 | if test $ac_cv_lib_socket_socket = yes; then |
3869 | if test $ac_cv_lib_socket_socket = yes; then |
3895 | LIBS="$LIBS -lsocket" |
3870 | LIBS="$LIBS -lsocket" |
3896 | fi |
3871 | fi |
3897 | |
3872 | |
3898 | |
|
|
3899 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3900 | if test "${enable_shared+set}" = set; then |
|
|
3901 | enableval="$enable_shared" |
|
|
3902 | p=${PACKAGE-default} |
|
|
3903 | case "$enableval" in |
|
|
3904 | yes) enable_shared=yes ;; |
|
|
3905 | no) enable_shared=no ;; |
|
|
3906 | *) |
|
|
3907 | enable_shared=no |
|
|
3908 | # Look at the argument we got. We use all the common list separators. |
|
|
3909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3910 | for pkg in $enableval; do |
|
|
3911 | if test "X$pkg" = "X$p"; then |
|
|
3912 | enable_shared=yes |
|
|
3913 | fi |
|
|
3914 | done |
|
|
3915 | IFS="$ac_save_ifs" |
|
|
3916 | ;; |
|
|
3917 | esac |
|
|
3918 | else |
|
|
3919 | enable_shared=no |
|
|
3920 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3921 | if test "${enable_static+set}" = set; then |
|
|
3922 | enableval="$enable_static" |
|
|
3923 | p=${PACKAGE-default} |
|
|
3924 | case "$enableval" in |
|
|
3925 | yes) enable_static=yes ;; |
|
|
3926 | no) enable_static=no ;; |
|
|
3927 | *) |
|
|
3928 | enable_static=no |
|
|
3929 | # Look at the argument we got. We use all the common list separators. |
|
|
3930 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3931 | for pkg in $enableval; do |
|
|
3932 | if test "X$pkg" = "X$p"; then |
|
|
3933 | enable_static=yes |
|
|
3934 | fi |
|
|
3935 | done |
|
|
3936 | IFS="$ac_save_ifs" |
|
|
3937 | ;; |
|
|
3938 | esac |
|
|
3939 | else |
|
|
3940 | enable_static=yes |
|
|
3941 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3942 | if test "${enable_fast_install+set}" = set; then |
|
|
3943 | enableval="$enable_fast_install" |
|
|
3944 | p=${PACKAGE-default} |
|
|
3945 | case "$enableval" in |
|
|
3946 | yes) enable_fast_install=yes ;; |
|
|
3947 | no) enable_fast_install=no ;; |
|
|
3948 | *) |
|
|
3949 | enable_fast_install=no |
|
|
3950 | # Look at the argument we got. We use all the common list separators. |
|
|
3951 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3952 | for pkg in $enableval; do |
|
|
3953 | if test "X$pkg" = "X$p"; then |
|
|
3954 | enable_fast_install=yes |
|
|
3955 | fi |
|
|
3956 | done |
|
|
3957 | IFS="$ac_save_ifs" |
|
|
3958 | ;; |
|
|
3959 | esac |
|
|
3960 | else |
|
|
3961 | enable_fast_install=yes |
|
|
3962 | fi; |
3873 | fi |
3963 | # Make sure we can run config.sub. |
|
|
3964 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3965 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3966 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3967 | { (exit 1); exit 1; }; } |
|
|
3968 | |
3874 | |
3969 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
3970 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3971 | if test "${ac_cv_build+set}" = set; then |
|
|
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3973 | else |
|
|
3974 | ac_cv_build_alias=$build_alias |
|
|
3975 | test -z "$ac_cv_build_alias" && |
|
|
3976 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3977 | test -z "$ac_cv_build_alias" && |
|
|
3978 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3979 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3980 | { (exit 1); exit 1; }; } |
|
|
3981 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3982 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3983 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3984 | { (exit 1); exit 1; }; } |
|
|
3985 | |
3875 | |
3986 | fi |
|
|
3987 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3988 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3989 | build=$ac_cv_build |
|
|
3990 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3991 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3992 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3993 | |
|
|
3994 | |
|
|
3995 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3996 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3997 | if test "${ac_cv_host+set}" = set; then |
|
|
3998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3999 | else |
|
|
4000 | ac_cv_host_alias=$host_alias |
|
|
4001 | test -z "$ac_cv_host_alias" && |
|
|
4002 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
4003 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
4004 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
4005 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
4006 | { (exit 1); exit 1; }; } |
|
|
4007 | |
|
|
4008 | fi |
|
|
4009 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
4010 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
4011 | host=$ac_cv_host |
|
|
4012 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
4013 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
4014 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
4015 | |
|
|
4016 | |
|
|
4017 | |
|
|
4018 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
4019 | if test "${with_gnu_ld+set}" = set; then |
|
|
4020 | withval="$with_gnu_ld" |
|
|
4021 | test "$withval" = no || with_gnu_ld=yes |
|
|
4022 | else |
|
|
4023 | with_gnu_ld=no |
|
|
4024 | fi; |
|
|
4025 | ac_prog=ld |
|
|
4026 | if test "$GCC" = yes; then |
|
|
4027 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
4028 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
4029 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
4030 | case $host in |
|
|
4031 | *-*-mingw*) |
|
|
4032 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
4033 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
4034 | *) |
|
|
4035 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
4036 | esac |
|
|
4037 | case "$ac_prog" in |
|
|
4038 | # Accept absolute paths. |
|
|
4039 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
4040 | re_direlt='/[^/][^/]*/\.\./' |
|
|
4041 | # Canonicalize the path of ld |
|
|
4042 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
4043 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
4044 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
4045 | done |
|
|
4046 | test -z "$LD" && LD="$ac_prog" |
|
|
4047 | ;; |
|
|
4048 | "") |
|
|
4049 | # If it fails, then pretend we aren't using GCC. |
|
|
4050 | ac_prog=ld |
|
|
4051 | ;; |
|
|
4052 | *) |
|
|
4053 | # If it is relative, then search for the first ld in PATH. |
|
|
4054 | with_gnu_ld=unknown |
|
|
4055 | ;; |
|
|
4056 | esac |
|
|
4057 | elif test "$with_gnu_ld" = yes; then |
|
|
4058 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3876 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
4059 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3877 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
4060 | else |
|
|
4061 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
4062 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
4063 | fi |
|
|
4064 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4066 | else |
|
|
4067 | if test -z "$LD"; then |
|
|
4068 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4069 | for ac_dir in $PATH; do |
|
|
4070 | test -z "$ac_dir" && ac_dir=. |
|
|
4071 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
4072 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
4073 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
4074 | # but apparently some GNU ld's only accept -v. |
|
|
4075 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
4076 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4077 | test "$with_gnu_ld" != no && break |
|
|
4078 | else |
|
|
4079 | test "$with_gnu_ld" != yes && break |
|
|
4080 | fi |
|
|
4081 | fi |
|
|
4082 | done |
|
|
4083 | IFS="$ac_save_ifs" |
|
|
4084 | else |
|
|
4085 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
4086 | fi |
|
|
4087 | fi |
|
|
4088 | |
|
|
4089 | LD="$lt_cv_path_LD" |
|
|
4090 | if test -n "$LD"; then |
|
|
4091 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
4092 | echo "${ECHO_T}$LD" >&6 |
|
|
4093 | else |
|
|
4094 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4095 | echo "${ECHO_T}no" >&6 |
|
|
4096 | fi |
|
|
4097 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
4098 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
4099 | { (exit 1); exit 1; }; } |
|
|
4100 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
4101 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
4102 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
4103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4104 | else |
|
|
4105 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
4106 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
4107 | lt_cv_prog_gnu_ld=yes |
|
|
4108 | else |
|
|
4109 | lt_cv_prog_gnu_ld=no |
|
|
4110 | fi |
|
|
4111 | fi |
|
|
4112 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
4113 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
4114 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
4115 | |
|
|
4116 | |
|
|
4117 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
4118 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
4119 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
4120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4121 | else |
|
|
4122 | lt_cv_ld_reload_flag='-r' |
|
|
4123 | fi |
|
|
4124 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
4125 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
4126 | reload_flag=$lt_cv_ld_reload_flag |
|
|
4127 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
4128 | |
|
|
4129 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
4130 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
4131 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
4132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4133 | else |
|
|
4134 | if test -n "$NM"; then |
|
|
4135 | # Let the user override the test. |
|
|
4136 | lt_cv_path_NM="$NM" |
|
|
4137 | else |
|
|
4138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4139 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
4140 | test -z "$ac_dir" && ac_dir=. |
|
|
4141 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
4142 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
4143 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
4144 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
4145 | # nm: unknown option "B" ignored |
|
|
4146 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
4147 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
4148 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4149 | break |
|
|
4150 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
4151 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4152 | break |
|
|
4153 | else |
|
|
4154 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
4155 | continue # so that we can try to find one that supports BSD flags |
|
|
4156 | fi |
|
|
4157 | fi |
|
|
4158 | done |
|
|
4159 | IFS="$ac_save_ifs" |
|
|
4160 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
4161 | fi |
|
|
4162 | fi |
|
|
4163 | |
|
|
4164 | NM="$lt_cv_path_NM" |
|
|
4165 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
4166 | echo "${ECHO_T}$NM" >&6 |
|
|
4167 | |
|
|
4168 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
4169 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
4170 | LN_S=$as_ln_s |
|
|
4171 | if test "$LN_S" = "ln -s"; then |
|
|
4172 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4173 | echo "${ECHO_T}yes" >&6 |
|
|
4174 | else |
|
|
4175 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
4176 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
4177 | fi |
|
|
4178 | |
|
|
4179 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
4180 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
4181 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
4182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4183 | else |
|
|
4184 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
4185 | lt_cv_file_magic_test_file= |
|
|
4186 | lt_cv_deplibs_check_method='unknown' |
|
|
4187 | # Need to set the preceding variable on all platforms that support |
|
|
4188 | # interlibrary dependencies. |
|
|
4189 | # 'none' -- dependencies not supported. |
|
|
4190 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
4191 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
4192 | # 'test_compile' -- check by making test program. |
|
|
4193 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
4194 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
4195 | # If you have `file' or equivalent on your system and you're not sure |
|
|
4196 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
4197 | |
|
|
4198 | case "$host_os" in |
|
|
4199 | aix4*) |
|
|
4200 | lt_cv_deplibs_check_method=pass_all |
|
|
4201 | ;; |
|
|
4202 | |
|
|
4203 | beos*) |
|
|
4204 | lt_cv_deplibs_check_method=pass_all |
|
|
4205 | ;; |
|
|
4206 | |
|
|
4207 | bsdi4*) |
|
|
4208 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
4209 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4210 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4211 | ;; |
|
|
4212 | |
|
|
4213 | cygwin* | mingw* | pw32*) |
|
|
4214 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
4215 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
4216 | ;; |
|
|
4217 | |
|
|
4218 | darwin*|rhapsody*) |
|
|
4219 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
4220 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
4221 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
4222 | ;; |
|
|
4223 | |
|
|
4224 | freebsd*) |
|
|
4225 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4226 | case "$host_cpu" in |
|
|
4227 | i*86 ) |
|
|
4228 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
4229 | # Let's accept both of them until this is cleared up. |
|
|
4230 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
4231 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4232 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4233 | ;; |
|
|
4234 | esac |
|
|
4235 | else |
|
|
4236 | lt_cv_deplibs_check_method=pass_all |
|
|
4237 | fi |
|
|
4238 | ;; |
|
|
4239 | |
|
|
4240 | gnu*) |
|
|
4241 | lt_cv_deplibs_check_method=pass_all |
|
|
4242 | ;; |
|
|
4243 | |
|
|
4244 | hpux10.20*|hpux11*) |
|
|
4245 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
4246 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4247 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
4248 | ;; |
|
|
4249 | |
|
|
4250 | irix5* | irix6*) |
|
|
4251 | case "$host_os" in |
|
|
4252 | irix5*) |
|
|
4253 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4254 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
4255 | ;; |
|
|
4256 | *) |
|
|
4257 | case "$LD" in |
|
|
4258 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
4259 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
4260 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
4261 | *) libmagic=never-match;; |
|
|
4262 | esac |
|
|
4263 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4264 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
4265 | ;; |
|
|
4266 | esac |
|
|
4267 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
4268 | lt_cv_deplibs_check_method=pass_all |
|
|
4269 | ;; |
|
|
4270 | |
|
|
4271 | # This must be Linux ELF. |
|
|
4272 | linux-gnu*) |
|
|
4273 | case "$host_cpu" in |
|
|
4274 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
4275 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4276 | *) |
|
|
4277 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4278 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4279 | esac |
|
|
4280 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4281 | ;; |
|
|
4282 | |
|
|
4283 | netbsd*) |
|
|
4284 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4285 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
4286 | else |
|
|
4287 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
4288 | fi |
|
|
4289 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4290 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4291 | ;; |
|
|
4292 | |
|
|
4293 | newos6*) |
|
|
4294 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
4295 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4296 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
4297 | ;; |
|
|
4298 | |
|
|
4299 | osf3* | osf4* | osf5*) |
|
|
4300 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4301 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
4302 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4303 | lt_cv_deplibs_check_method=pass_all |
|
|
4304 | ;; |
|
|
4305 | |
|
|
4306 | sco3.2v5*) |
|
|
4307 | lt_cv_deplibs_check_method=pass_all |
|
|
4308 | ;; |
|
|
4309 | |
|
|
4310 | solaris*) |
|
|
4311 | lt_cv_deplibs_check_method=pass_all |
|
|
4312 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4313 | ;; |
|
|
4314 | |
|
|
4315 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
4316 | case "$host_vendor" in |
|
|
4317 | motorola) |
|
|
4318 | 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]' |
|
|
4319 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4320 | ;; |
|
|
4321 | ncr) |
|
|
4322 | lt_cv_deplibs_check_method=pass_all |
|
|
4323 | ;; |
|
|
4324 | sequent) |
|
|
4325 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4326 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
4327 | ;; |
|
|
4328 | sni) |
|
|
4329 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4330 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
4331 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4332 | ;; |
|
|
4333 | esac |
|
|
4334 | ;; |
|
|
4335 | esac |
|
|
4336 | |
|
|
4337 | fi |
|
|
4338 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
4339 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
4340 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
4341 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
4342 | |
|
|
4343 | |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | |
|
|
4347 | |
|
|
4348 | |
|
|
4349 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4350 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
4351 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
4352 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4354 | else |
|
|
4355 | |
|
|
4356 | # These are sane defaults that work on at least a few old systems. |
|
|
4357 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4358 | |
|
|
4359 | # Character class describing NM global symbol codes. |
|
|
4360 | symcode='[BCDEGRST]' |
|
|
4361 | |
|
|
4362 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4363 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4364 | |
|
|
4365 | # Transform the above into a raw symbol and a C symbol. |
|
|
4366 | symxfrm='\1 \2\3 \3' |
|
|
4367 | |
|
|
4368 | # Transform an extracted symbol line into a proper C declaration |
|
|
4369 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4370 | |
|
|
4371 | # Define system-specific variables. |
|
|
4372 | case "$host_os" in |
|
|
4373 | aix*) |
|
|
4374 | symcode='[BCDT]' |
|
|
4375 | ;; |
|
|
4376 | cygwin* | mingw* | pw32*) |
|
|
4377 | symcode='[ABCDGISTW]' |
|
|
4378 | ;; |
|
|
4379 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4380 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4381 | ;; |
|
|
4382 | irix*) |
|
|
4383 | symcode='[BCDEGRST]' |
|
|
4384 | ;; |
|
|
4385 | solaris* | sysv5*) |
|
|
4386 | symcode='[BDT]' |
|
|
4387 | ;; |
|
|
4388 | sysv4) |
|
|
4389 | symcode='[DFNSTU]' |
|
|
4390 | ;; |
|
|
4391 | esac |
|
|
4392 | |
|
|
4393 | # Handle CRLF in mingw tool chain |
|
|
4394 | opt_cr= |
|
|
4395 | case "$host_os" in |
|
|
4396 | mingw*) |
|
|
4397 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4398 | ;; |
|
|
4399 | esac |
|
|
4400 | |
|
|
4401 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4402 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4403 | symcode='[ABCDGISTW]' |
|
|
4404 | fi |
|
|
4405 | |
|
|
4406 | # Try without a prefix undercore, then with it. |
|
|
4407 | for ac_symprfx in "" "_"; do |
|
|
4408 | |
|
|
4409 | # Write the raw and C identifiers. |
|
|
4410 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4411 | |
|
|
4412 | # Check to see that the pipe works correctly. |
|
|
4413 | pipe_works=no |
|
|
4414 | rm -f conftest* |
|
|
4415 | cat > conftest.$ac_ext <<EOF |
|
|
4416 | #ifdef __cplusplus |
|
|
4417 | extern "C" { |
|
|
4418 | #endif |
|
|
4419 | char nm_test_var; |
|
|
4420 | void nm_test_func(){} |
|
|
4421 | #ifdef __cplusplus |
|
|
4422 | } |
|
|
4423 | #endif |
|
|
4424 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4425 | EOF |
|
|
4426 | |
|
|
4427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4428 | (eval $ac_compile) 2>&5 |
|
|
4429 | ac_status=$? |
|
|
4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4431 | (exit $ac_status); }; then |
|
|
4432 | # Now try to grab the symbols. |
|
|
4433 | nlist=conftest.nm |
|
|
4434 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4435 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4436 | ac_status=$? |
|
|
4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4438 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4439 | # Try sorting and uniquifying the output. |
|
|
4440 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4441 | mv -f "$nlist"T "$nlist" |
|
|
4442 | else |
|
|
4443 | rm -f "$nlist"T |
|
|
4444 | fi |
|
|
4445 | |
|
|
4446 | # Make sure that we snagged all the symbols we need. |
|
|
4447 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4448 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4449 | cat <<EOF > conftest.$ac_ext |
|
|
4450 | #ifdef __cplusplus |
|
|
4451 | extern "C" { |
|
|
4452 | #endif |
|
|
4453 | |
|
|
4454 | EOF |
|
|
4455 | # Now generate the symbol file. |
|
|
4456 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
4457 | |
|
|
4458 | cat <<EOF >> conftest.$ac_ext |
|
|
4459 | #if defined (__STDC__) && __STDC__ |
|
|
4460 | # define lt_ptr_t void * |
|
|
4461 | #else |
|
|
4462 | # define lt_ptr_t char * |
|
|
4463 | # define const |
|
|
4464 | #endif |
|
|
4465 | |
|
|
4466 | /* The mapping between symbol names and symbols. */ |
|
|
4467 | const struct { |
|
|
4468 | const char *name; |
|
|
4469 | lt_ptr_t address; |
|
|
4470 | } |
|
|
4471 | lt_preloaded_symbols[] = |
|
|
4472 | { |
|
|
4473 | EOF |
|
|
4474 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
4475 | cat <<\EOF >> conftest.$ac_ext |
|
|
4476 | {0, (lt_ptr_t) 0} |
|
|
4477 | }; |
|
|
4478 | |
|
|
4479 | #ifdef __cplusplus |
|
|
4480 | } |
|
|
4481 | #endif |
|
|
4482 | EOF |
|
|
4483 | # Now try linking the two files. |
|
|
4484 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4485 | save_LIBS="$LIBS" |
|
|
4486 | save_CFLAGS="$CFLAGS" |
|
|
4487 | LIBS="conftstm.$ac_objext" |
|
|
4488 | CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
4489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4490 | (eval $ac_link) 2>&5 |
|
|
4491 | ac_status=$? |
|
|
4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4493 | (exit $ac_status); } && test -s conftest; then |
|
|
4494 | pipe_works=yes |
|
|
4495 | fi |
|
|
4496 | LIBS="$save_LIBS" |
|
|
4497 | CFLAGS="$save_CFLAGS" |
|
|
4498 | else |
|
|
4499 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4500 | fi |
|
|
4501 | else |
|
|
4502 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4503 | fi |
|
|
4504 | else |
|
|
4505 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4506 | fi |
|
|
4507 | else |
|
|
4508 | echo "$progname: failed program was:" >&5 |
|
|
4509 | cat conftest.$ac_ext >&5 |
|
|
4510 | fi |
|
|
4511 | rm -f conftest* conftst* |
|
|
4512 | |
|
|
4513 | # Do not use the global_symbol_pipe unless it works. |
|
|
4514 | if test "$pipe_works" = yes; then |
|
|
4515 | break |
|
|
4516 | else |
|
|
4517 | lt_cv_sys_global_symbol_pipe= |
|
|
4518 | fi |
|
|
4519 | done |
|
|
4520 | |
|
|
4521 | fi |
|
|
4522 | |
|
|
4523 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
4524 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4525 | global_symbol_to_cdecl= |
|
|
4526 | else |
|
|
4527 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
4528 | fi |
|
|
4529 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4530 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4531 | echo "${ECHO_T}failed" >&6 |
|
|
4532 | else |
|
|
4533 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4534 | echo "${ECHO_T}ok" >&6 |
|
|
4535 | fi |
|
|
4536 | |
|
|
4537 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4538 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4539 | if test "${ac_cv_header_stdc+set}" = set; then |
3878 | if test "${ac_cv_func_sched_yield+set}" = set; then |
4540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4541 | else |
3880 | else |
4542 | cat >conftest.$ac_ext <<_ACEOF |
3881 | cat >conftest.$ac_ext <<_ACEOF |
4543 | /* confdefs.h. */ |
3882 | /* confdefs.h. */ |
4544 | _ACEOF |
3883 | _ACEOF |
4545 | cat confdefs.h >>conftest.$ac_ext |
3884 | cat confdefs.h >>conftest.$ac_ext |
4546 | cat >>conftest.$ac_ext <<_ACEOF |
3885 | cat >>conftest.$ac_ext <<_ACEOF |
4547 | /* end confdefs.h. */ |
3886 | /* end confdefs.h. */ |
4548 | #include <stdlib.h> |
|
|
4549 | #include <stdarg.h> |
|
|
4550 | #include <string.h> |
|
|
4551 | #include <float.h> |
|
|
4552 | |
|
|
4553 | int |
|
|
4554 | main () |
|
|
4555 | { |
|
|
4556 | |
|
|
4557 | ; |
|
|
4558 | return 0; |
|
|
4559 | } |
|
|
4560 | _ACEOF |
|
|
4561 | rm -f conftest.$ac_objext |
|
|
4562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4563 | (eval $ac_compile) 2>conftest.er1 |
|
|
4564 | ac_status=$? |
|
|
4565 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4566 | rm -f conftest.er1 |
|
|
4567 | cat conftest.err >&5 |
|
|
4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4569 | (exit $ac_status); } && |
|
|
4570 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4572 | (eval $ac_try) 2>&5 |
|
|
4573 | ac_status=$? |
|
|
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4575 | (exit $ac_status); }; } && |
|
|
4576 | { ac_try='test -s conftest.$ac_objext' |
|
|
4577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4578 | (eval $ac_try) 2>&5 |
|
|
4579 | ac_status=$? |
|
|
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4581 | (exit $ac_status); }; }; then |
|
|
4582 | ac_cv_header_stdc=yes |
|
|
4583 | else |
|
|
4584 | echo "$as_me: failed program was:" >&5 |
|
|
4585 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4586 | |
|
|
4587 | ac_cv_header_stdc=no |
|
|
4588 | fi |
|
|
4589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4590 | |
|
|
4591 | if test $ac_cv_header_stdc = yes; then |
|
|
4592 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
4593 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4594 | /* confdefs.h. */ |
|
|
4595 | _ACEOF |
|
|
4596 | cat confdefs.h >>conftest.$ac_ext |
|
|
4597 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4598 | /* end confdefs.h. */ |
|
|
4599 | #include <string.h> |
|
|
4600 | |
|
|
4601 | _ACEOF |
|
|
4602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4603 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4604 | : |
|
|
4605 | else |
|
|
4606 | ac_cv_header_stdc=no |
|
|
4607 | fi |
|
|
4608 | rm -f conftest* |
|
|
4609 | |
|
|
4610 | fi |
|
|
4611 | |
|
|
4612 | if test $ac_cv_header_stdc = yes; then |
|
|
4613 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4615 | /* confdefs.h. */ |
|
|
4616 | _ACEOF |
|
|
4617 | cat confdefs.h >>conftest.$ac_ext |
|
|
4618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4619 | /* end confdefs.h. */ |
|
|
4620 | #include <stdlib.h> |
|
|
4621 | |
|
|
4622 | _ACEOF |
|
|
4623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4624 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4625 | : |
|
|
4626 | else |
|
|
4627 | ac_cv_header_stdc=no |
|
|
4628 | fi |
|
|
4629 | rm -f conftest* |
|
|
4630 | |
|
|
4631 | fi |
|
|
4632 | |
|
|
4633 | if test $ac_cv_header_stdc = yes; then |
|
|
4634 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4635 | if test "$cross_compiling" = yes; then |
|
|
4636 | : |
|
|
4637 | else |
|
|
4638 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4639 | /* confdefs.h. */ |
|
|
4640 | _ACEOF |
|
|
4641 | cat confdefs.h >>conftest.$ac_ext |
|
|
4642 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4643 | /* end confdefs.h. */ |
|
|
4644 | #include <ctype.h> |
|
|
4645 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4646 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4647 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4648 | #else |
|
|
4649 | # define ISLOWER(c) \ |
|
|
4650 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4651 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4652 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4653 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4654 | #endif |
|
|
4655 | |
|
|
4656 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4657 | int |
|
|
4658 | main () |
|
|
4659 | { |
|
|
4660 | int i; |
|
|
4661 | for (i = 0; i < 256; i++) |
|
|
4662 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4663 | || toupper (i) != TOUPPER (i)) |
|
|
4664 | exit(2); |
|
|
4665 | exit (0); |
|
|
4666 | } |
|
|
4667 | _ACEOF |
|
|
4668 | rm -f conftest$ac_exeext |
|
|
4669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4670 | (eval $ac_link) 2>&5 |
|
|
4671 | ac_status=$? |
|
|
4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4675 | (eval $ac_try) 2>&5 |
|
|
4676 | ac_status=$? |
|
|
4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4678 | (exit $ac_status); }; }; then |
|
|
4679 | : |
|
|
4680 | else |
|
|
4681 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4682 | echo "$as_me: failed program was:" >&5 |
|
|
4683 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4684 | |
|
|
4685 | ( exit $ac_status ) |
|
|
4686 | ac_cv_header_stdc=no |
|
|
4687 | fi |
|
|
4688 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4689 | fi |
|
|
4690 | fi |
|
|
4691 | fi |
|
|
4692 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4693 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4694 | if test $ac_cv_header_stdc = yes; then |
|
|
4695 | |
|
|
4696 | cat >>confdefs.h <<\_ACEOF |
|
|
4697 | #define STDC_HEADERS 1 |
|
|
4698 | _ACEOF |
|
|
4699 | |
|
|
4700 | fi |
|
|
4701 | |
|
|
4702 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4703 | |
|
|
4704 | |
|
|
4705 | |
|
|
4706 | |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | |
|
|
4710 | |
|
|
4711 | |
|
|
4712 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4713 | inttypes.h stdint.h unistd.h |
|
|
4714 | do |
|
|
4715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4720 | else |
|
|
4721 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4722 | /* confdefs.h. */ |
|
|
4723 | _ACEOF |
|
|
4724 | cat confdefs.h >>conftest.$ac_ext |
|
|
4725 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4726 | /* end confdefs.h. */ |
|
|
4727 | $ac_includes_default |
|
|
4728 | |
|
|
4729 | #include <$ac_header> |
|
|
4730 | _ACEOF |
|
|
4731 | rm -f conftest.$ac_objext |
|
|
4732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4733 | (eval $ac_compile) 2>conftest.er1 |
|
|
4734 | ac_status=$? |
|
|
4735 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4736 | rm -f conftest.er1 |
|
|
4737 | cat conftest.err >&5 |
|
|
4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4739 | (exit $ac_status); } && |
|
|
4740 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4742 | (eval $ac_try) 2>&5 |
|
|
4743 | ac_status=$? |
|
|
4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4745 | (exit $ac_status); }; } && |
|
|
4746 | { ac_try='test -s conftest.$ac_objext' |
|
|
4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4748 | (eval $ac_try) 2>&5 |
|
|
4749 | ac_status=$? |
|
|
4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4751 | (exit $ac_status); }; }; then |
|
|
4752 | eval "$as_ac_Header=yes" |
|
|
4753 | else |
|
|
4754 | echo "$as_me: failed program was:" >&5 |
|
|
4755 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4756 | |
|
|
4757 | eval "$as_ac_Header=no" |
|
|
4758 | fi |
|
|
4759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4760 | fi |
|
|
4761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4763 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4764 | cat >>confdefs.h <<_ACEOF |
|
|
4765 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4766 | _ACEOF |
|
|
4767 | |
|
|
4768 | fi |
|
|
4769 | |
|
|
4770 | done |
|
|
4771 | |
|
|
4772 | |
|
|
4773 | |
|
|
4774 | for ac_header in dlfcn.h |
|
|
4775 | do |
|
|
4776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4782 | fi |
|
|
4783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4785 | else |
|
|
4786 | # Is the header compilable? |
|
|
4787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4789 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4790 | /* confdefs.h. */ |
|
|
4791 | _ACEOF |
|
|
4792 | cat confdefs.h >>conftest.$ac_ext |
|
|
4793 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4794 | /* end confdefs.h. */ |
|
|
4795 | $ac_includes_default |
|
|
4796 | #include <$ac_header> |
|
|
4797 | _ACEOF |
|
|
4798 | rm -f conftest.$ac_objext |
|
|
4799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4800 | (eval $ac_compile) 2>conftest.er1 |
|
|
4801 | ac_status=$? |
|
|
4802 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4803 | rm -f conftest.er1 |
|
|
4804 | cat conftest.err >&5 |
|
|
4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4806 | (exit $ac_status); } && |
|
|
4807 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4809 | (eval $ac_try) 2>&5 |
|
|
4810 | ac_status=$? |
|
|
4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4812 | (exit $ac_status); }; } && |
|
|
4813 | { ac_try='test -s conftest.$ac_objext' |
|
|
4814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4815 | (eval $ac_try) 2>&5 |
|
|
4816 | ac_status=$? |
|
|
4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4818 | (exit $ac_status); }; }; then |
|
|
4819 | ac_header_compiler=yes |
|
|
4820 | else |
|
|
4821 | echo "$as_me: failed program was:" >&5 |
|
|
4822 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4823 | |
|
|
4824 | ac_header_compiler=no |
|
|
4825 | fi |
|
|
4826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4828 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4829 | |
|
|
4830 | # Is the header present? |
|
|
4831 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4833 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4834 | /* confdefs.h. */ |
|
|
4835 | _ACEOF |
|
|
4836 | cat confdefs.h >>conftest.$ac_ext |
|
|
4837 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4838 | /* end confdefs.h. */ |
|
|
4839 | #include <$ac_header> |
|
|
4840 | _ACEOF |
|
|
4841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4843 | ac_status=$? |
|
|
4844 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4845 | rm -f conftest.er1 |
|
|
4846 | cat conftest.err >&5 |
|
|
4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4848 | (exit $ac_status); } >/dev/null; then |
|
|
4849 | if test -s conftest.err; then |
|
|
4850 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4851 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4852 | else |
|
|
4853 | ac_cpp_err= |
|
|
4854 | fi |
|
|
4855 | else |
|
|
4856 | ac_cpp_err=yes |
|
|
4857 | fi |
|
|
4858 | if test -z "$ac_cpp_err"; then |
|
|
4859 | ac_header_preproc=yes |
|
|
4860 | else |
|
|
4861 | echo "$as_me: failed program was:" >&5 |
|
|
4862 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4863 | |
|
|
4864 | ac_header_preproc=no |
|
|
4865 | fi |
|
|
4866 | rm -f conftest.err conftest.$ac_ext |
|
|
4867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4868 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4869 | |
|
|
4870 | # So? What about this header? |
|
|
4871 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
4872 | yes:no: ) |
|
|
4873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4877 | ac_header_preproc=yes |
|
|
4878 | ;; |
|
|
4879 | no:yes:* ) |
|
|
4880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4892 | ( |
|
|
4893 | cat <<\_ASBOX |
|
|
4894 | ## ------------------------------------------ ## |
|
|
4895 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4896 | ## ------------------------------------------ ## |
|
|
4897 | _ASBOX |
|
|
4898 | ) | |
|
|
4899 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4900 | ;; |
|
|
4901 | esac |
|
|
4902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4906 | else |
|
|
4907 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4908 | fi |
|
|
4909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4911 | |
|
|
4912 | fi |
|
|
4913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4914 | cat >>confdefs.h <<_ACEOF |
|
|
4915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4916 | _ACEOF |
|
|
4917 | |
|
|
4918 | fi |
|
|
4919 | |
|
|
4920 | done |
|
|
4921 | |
|
|
4922 | |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | # Only perform the check for file, if the check method requires it |
|
|
4927 | case "$deplibs_check_method" in |
|
|
4928 | file_magic*) |
|
|
4929 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4930 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4931 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4932 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4934 | else |
|
|
4935 | case "$MAGIC_CMD" in |
|
|
4936 | /*) |
|
|
4937 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4938 | ;; |
|
|
4939 | ?:/*) |
|
|
4940 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4941 | ;; |
|
|
4942 | *) |
|
|
4943 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4944 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4945 | ac_dummy="/usr/bin:$PATH" |
|
|
4946 | for ac_dir in $ac_dummy; do |
|
|
4947 | test -z "$ac_dir" && ac_dir=. |
|
|
4948 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4949 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4950 | if test -n "$file_magic_test_file"; then |
|
|
4951 | case "$deplibs_check_method" in |
|
|
4952 | "file_magic "*) |
|
|
4953 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4954 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4955 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4956 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4957 | : |
|
|
4958 | else |
|
|
4959 | cat <<EOF 1>&2 |
|
|
4960 | |
|
|
4961 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4962 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4963 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4964 | *** as such. This will affect the creation of libtool libraries that |
|
|
4965 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4966 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4967 | *** may want to report the problem to your system manager and/or to |
|
|
4968 | *** bug-libtool@gnu.org |
|
|
4969 | |
|
|
4970 | EOF |
|
|
4971 | fi ;; |
|
|
4972 | esac |
|
|
4973 | fi |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | done |
|
|
4977 | IFS="$ac_save_ifs" |
|
|
4978 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4979 | ;; |
|
|
4980 | esac |
|
|
4981 | fi |
|
|
4982 | |
|
|
4983 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4984 | if test -n "$MAGIC_CMD"; then |
|
|
4985 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4986 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4987 | else |
|
|
4988 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4989 | echo "${ECHO_T}no" >&6 |
|
|
4990 | fi |
|
|
4991 | |
|
|
4992 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4993 | if test -n "$ac_tool_prefix"; then |
|
|
4994 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4995 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4996 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4998 | else |
|
|
4999 | case "$MAGIC_CMD" in |
|
|
5000 | /*) |
|
|
5001 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5002 | ;; |
|
|
5003 | ?:/*) |
|
|
5004 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
5005 | ;; |
|
|
5006 | *) |
|
|
5007 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
5009 | ac_dummy="/usr/bin:$PATH" |
|
|
5010 | for ac_dir in $ac_dummy; do |
|
|
5011 | test -z "$ac_dir" && ac_dir=. |
|
|
5012 | if test -f $ac_dir/file; then |
|
|
5013 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5014 | if test -n "$file_magic_test_file"; then |
|
|
5015 | case "$deplibs_check_method" in |
|
|
5016 | "file_magic "*) |
|
|
5017 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
5018 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5019 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5020 | egrep "$file_magic_regex" > /dev/null; then |
|
|
5021 | : |
|
|
5022 | else |
|
|
5023 | cat <<EOF 1>&2 |
|
|
5024 | |
|
|
5025 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5026 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5027 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5028 | *** as such. This will affect the creation of libtool libraries that |
|
|
5029 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5030 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5031 | *** may want to report the problem to your system manager and/or to |
|
|
5032 | *** bug-libtool@gnu.org |
|
|
5033 | |
|
|
5034 | EOF |
|
|
5035 | fi ;; |
|
|
5036 | esac |
|
|
5037 | fi |
|
|
5038 | break |
|
|
5039 | fi |
|
|
5040 | done |
|
|
5041 | IFS="$ac_save_ifs" |
|
|
5042 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
5043 | ;; |
|
|
5044 | esac |
|
|
5045 | fi |
|
|
5046 | |
|
|
5047 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5048 | if test -n "$MAGIC_CMD"; then |
|
|
5049 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5050 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5051 | else |
|
|
5052 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5053 | echo "${ECHO_T}no" >&6 |
|
|
5054 | fi |
|
|
5055 | |
|
|
5056 | else |
|
|
5057 | MAGIC_CMD=: |
|
|
5058 | fi |
|
|
5059 | fi |
|
|
5060 | |
|
|
5061 | fi |
|
|
5062 | ;; |
|
|
5063 | esac |
|
|
5064 | |
|
|
5065 | if test -n "$ac_tool_prefix"; then |
|
|
5066 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5067 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5068 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5069 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5070 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5072 | else |
|
|
5073 | if test -n "$RANLIB"; then |
|
|
5074 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5075 | else |
|
|
5076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5077 | for as_dir in $PATH |
|
|
5078 | do |
|
|
5079 | IFS=$as_save_IFS |
|
|
5080 | test -z "$as_dir" && as_dir=. |
|
|
5081 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5082 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5083 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5084 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5085 | break 2 |
|
|
5086 | fi |
|
|
5087 | done |
|
|
5088 | done |
|
|
5089 | |
|
|
5090 | fi |
|
|
5091 | fi |
|
|
5092 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5093 | if test -n "$RANLIB"; then |
|
|
5094 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5095 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5096 | else |
|
|
5097 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5098 | echo "${ECHO_T}no" >&6 |
|
|
5099 | fi |
|
|
5100 | |
|
|
5101 | fi |
|
|
5102 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5103 | ac_ct_RANLIB=$RANLIB |
|
|
5104 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5105 | set dummy ranlib; ac_word=$2 |
|
|
5106 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5107 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5108 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5110 | else |
|
|
5111 | if test -n "$ac_ct_RANLIB"; then |
|
|
5112 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5113 | else |
|
|
5114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5115 | for as_dir in $PATH |
|
|
5116 | do |
|
|
5117 | IFS=$as_save_IFS |
|
|
5118 | test -z "$as_dir" && as_dir=. |
|
|
5119 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5120 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5121 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5122 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5123 | break 2 |
|
|
5124 | fi |
|
|
5125 | done |
|
|
5126 | done |
|
|
5127 | |
|
|
5128 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5129 | fi |
|
|
5130 | fi |
|
|
5131 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5132 | if test -n "$ac_ct_RANLIB"; then |
|
|
5133 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5134 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5135 | else |
|
|
5136 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5137 | echo "${ECHO_T}no" >&6 |
|
|
5138 | fi |
|
|
5139 | |
|
|
5140 | RANLIB=$ac_ct_RANLIB |
|
|
5141 | else |
|
|
5142 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5143 | fi |
|
|
5144 | |
|
|
5145 | if test -n "$ac_tool_prefix"; then |
|
|
5146 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5147 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5148 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5149 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5150 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5152 | else |
|
|
5153 | if test -n "$STRIP"; then |
|
|
5154 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5155 | else |
|
|
5156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5157 | for as_dir in $PATH |
|
|
5158 | do |
|
|
5159 | IFS=$as_save_IFS |
|
|
5160 | test -z "$as_dir" && as_dir=. |
|
|
5161 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5162 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5163 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5164 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5165 | break 2 |
|
|
5166 | fi |
|
|
5167 | done |
|
|
5168 | done |
|
|
5169 | |
|
|
5170 | fi |
|
|
5171 | fi |
|
|
5172 | STRIP=$ac_cv_prog_STRIP |
|
|
5173 | if test -n "$STRIP"; then |
|
|
5174 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5175 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5176 | else |
|
|
5177 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5178 | echo "${ECHO_T}no" >&6 |
|
|
5179 | fi |
|
|
5180 | |
|
|
5181 | fi |
|
|
5182 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5183 | ac_ct_STRIP=$STRIP |
|
|
5184 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5185 | set dummy strip; ac_word=$2 |
|
|
5186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5188 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5190 | else |
|
|
5191 | if test -n "$ac_ct_STRIP"; then |
|
|
5192 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5193 | else |
|
|
5194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5195 | for as_dir in $PATH |
|
|
5196 | do |
|
|
5197 | IFS=$as_save_IFS |
|
|
5198 | test -z "$as_dir" && as_dir=. |
|
|
5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5201 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5203 | break 2 |
|
|
5204 | fi |
|
|
5205 | done |
|
|
5206 | done |
|
|
5207 | |
|
|
5208 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5209 | fi |
|
|
5210 | fi |
|
|
5211 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5212 | if test -n "$ac_ct_STRIP"; then |
|
|
5213 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5214 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5215 | else |
|
|
5216 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5217 | echo "${ECHO_T}no" >&6 |
|
|
5218 | fi |
|
|
5219 | |
|
|
5220 | STRIP=$ac_ct_STRIP |
|
|
5221 | else |
|
|
5222 | STRIP="$ac_cv_prog_STRIP" |
|
|
5223 | fi |
|
|
5224 | |
|
|
5225 | |
|
|
5226 | enable_dlopen=no |
|
|
5227 | enable_win32_dll=no |
|
|
5228 | |
|
|
5229 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5230 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5231 | enableval="$enable_libtool_lock" |
|
|
5232 | |
|
|
5233 | fi; |
|
|
5234 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5235 | |
|
|
5236 | # Some flags need to be propagated to the compiler or linker for good |
|
|
5237 | # libtool support. |
|
|
5238 | case "$host" in |
|
|
5239 | *-*-irix6*) |
|
|
5240 | # Find out which ABI we are using. |
|
|
5241 | echo '#line 5241 "configure"' > conftest.$ac_ext |
|
|
5242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5243 | (eval $ac_compile) 2>&5 |
|
|
5244 | ac_status=$? |
|
|
5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5246 | (exit $ac_status); }; then |
|
|
5247 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
5248 | *32-bit*) |
|
|
5249 | LD="${LD-ld} -32" |
|
|
5250 | ;; |
|
|
5251 | *N32*) |
|
|
5252 | LD="${LD-ld} -n32" |
|
|
5253 | ;; |
|
|
5254 | *64-bit*) |
|
|
5255 | LD="${LD-ld} -64" |
|
|
5256 | ;; |
|
|
5257 | esac |
|
|
5258 | fi |
|
|
5259 | rm -rf conftest* |
|
|
5260 | ;; |
|
|
5261 | |
|
|
5262 | *-*-sco3.2v5*) |
|
|
5263 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
5264 | SAVE_CFLAGS="$CFLAGS" |
|
|
5265 | CFLAGS="$CFLAGS -belf" |
|
|
5266 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
5267 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
5268 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5270 | else |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | ac_ext=c |
|
|
5274 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5278 | |
|
|
5279 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5280 | /* confdefs.h. */ |
|
|
5281 | _ACEOF |
|
|
5282 | cat confdefs.h >>conftest.$ac_ext |
|
|
5283 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5284 | /* end confdefs.h. */ |
|
|
5285 | |
|
|
5286 | int |
|
|
5287 | main () |
|
|
5288 | { |
|
|
5289 | |
|
|
5290 | ; |
|
|
5291 | return 0; |
|
|
5292 | } |
|
|
5293 | _ACEOF |
|
|
5294 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5296 | (eval $ac_link) 2>conftest.er1 |
|
|
5297 | ac_status=$? |
|
|
5298 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5299 | rm -f conftest.er1 |
|
|
5300 | cat conftest.err >&5 |
|
|
5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5302 | (exit $ac_status); } && |
|
|
5303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5305 | (eval $ac_try) 2>&5 |
|
|
5306 | ac_status=$? |
|
|
5307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5308 | (exit $ac_status); }; } && |
|
|
5309 | { ac_try='test -s conftest$ac_exeext' |
|
|
5310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5311 | (eval $ac_try) 2>&5 |
|
|
5312 | ac_status=$? |
|
|
5313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5314 | (exit $ac_status); }; }; then |
|
|
5315 | lt_cv_cc_needs_belf=yes |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | lt_cv_cc_needs_belf=no |
|
|
5321 | fi |
|
|
5322 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5323 | conftest$ac_exeext conftest.$ac_ext |
|
|
5324 | ac_ext=cc |
|
|
5325 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5326 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5327 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5328 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5329 | |
|
|
5330 | fi |
|
|
5331 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
5332 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
5333 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
5334 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
5335 | CFLAGS="$SAVE_CFLAGS" |
|
|
5336 | fi |
|
|
5337 | ;; |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | esac |
|
|
5341 | |
|
|
5342 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5343 | # metacharacters that are still active within double-quoted strings. |
|
|
5344 | Xsed='sed -e s/^X//' |
|
|
5345 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5346 | |
|
|
5347 | # Same as above, but do not quote variable references. |
|
|
5348 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5349 | |
|
|
5350 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5351 | # double_quote_subst'ed string. |
|
|
5352 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5353 | |
|
|
5354 | # Constants: |
|
|
5355 | rm="rm -f" |
|
|
5356 | |
|
|
5357 | # Global variables: |
|
|
5358 | default_ofile=libtool |
|
|
5359 | can_build_shared=yes |
|
|
5360 | |
|
|
5361 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
5362 | # which needs '.lib'). |
|
|
5363 | libext=a |
|
|
5364 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5365 | ofile="$default_ofile" |
|
|
5366 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5367 | need_locks="$enable_libtool_lock" |
|
|
5368 | |
|
|
5369 | old_CC="$CC" |
|
|
5370 | old_CFLAGS="$CFLAGS" |
|
|
5371 | |
|
|
5372 | # Set sane defaults for various variables |
|
|
5373 | test -z "$AR" && AR=ar |
|
|
5374 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5375 | test -z "$AS" && AS=as |
|
|
5376 | test -z "$CC" && CC=cc |
|
|
5377 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5378 | test -z "$LD" && LD=ld |
|
|
5379 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5380 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5381 | test -z "$NM" && NM=nm |
|
|
5382 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5383 | test -z "$RANLIB" && RANLIB=: |
|
|
5384 | test -z "$STRIP" && STRIP=: |
|
|
5385 | test -z "$ac_objext" && ac_objext=o |
|
|
5386 | |
|
|
5387 | if test x"$host" != x"$build"; then |
|
|
5388 | ac_tool_prefix=${host_alias}- |
|
|
5389 | else |
|
|
5390 | ac_tool_prefix= |
|
|
5391 | fi |
|
|
5392 | |
|
|
5393 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
5394 | case "$host_os" in |
|
|
5395 | linux-gnu*) ;; |
|
|
5396 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
5397 | esac |
|
|
5398 | |
|
|
5399 | case "$host_os" in |
|
|
5400 | aix3*) |
|
|
5401 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5402 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5403 | # vanish in a puff of smoke. |
|
|
5404 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5405 | COLLECT_NAMES= |
|
|
5406 | export COLLECT_NAMES |
|
|
5407 | fi |
|
|
5408 | ;; |
|
|
5409 | esac |
|
|
5410 | |
|
|
5411 | # Determine commands to create old-style static archives. |
|
|
5412 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5413 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5414 | old_postuninstall_cmds= |
|
|
5415 | |
|
|
5416 | if test -n "$RANLIB"; then |
|
|
5417 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5418 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5419 | fi |
|
|
5420 | |
|
|
5421 | # Allow CC to be a program name with arguments. |
|
|
5422 | set dummy $CC |
|
|
5423 | compiler="$2" |
|
|
5424 | |
|
|
5425 | ## FIXME: this should be a separate macro |
|
|
5426 | ## |
|
|
5427 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5428 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5429 | rm -f .libs 2>/dev/null |
|
|
5430 | mkdir .libs 2>/dev/null |
|
|
5431 | if test -d .libs; then |
|
|
5432 | objdir=.libs |
|
|
5433 | else |
|
|
5434 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5435 | objdir=_libs |
|
|
5436 | fi |
|
|
5437 | rmdir .libs 2>/dev/null |
|
|
5438 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
5439 | echo "${ECHO_T}$objdir" >&6 |
|
|
5440 | ## |
|
|
5441 | ## END FIXME |
|
|
5442 | |
|
|
5443 | |
|
|
5444 | ## FIXME: this should be a separate macro |
|
|
5445 | ## |
|
|
5446 | |
|
|
5447 | # Check whether --with-pic or --without-pic was given. |
|
|
5448 | if test "${with_pic+set}" = set; then |
|
|
5449 | withval="$with_pic" |
|
|
5450 | pic_mode="$withval" |
|
|
5451 | else |
|
|
5452 | pic_mode=default |
|
|
5453 | fi; |
|
|
5454 | test -z "$pic_mode" && pic_mode=default |
|
|
5455 | |
|
|
5456 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
5457 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
5458 | # the associated values are set (in the cache) correctly too. |
|
|
5459 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5460 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5461 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
5462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5463 | else |
|
|
5464 | lt_cv_prog_cc_pic= |
|
|
5465 | lt_cv_prog_cc_shlib= |
|
|
5466 | lt_cv_prog_cc_wl= |
|
|
5467 | lt_cv_prog_cc_static= |
|
|
5468 | lt_cv_prog_cc_no_builtin= |
|
|
5469 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
5470 | |
|
|
5471 | if test "$GCC" = yes; then |
|
|
5472 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5473 | lt_cv_prog_cc_static='-static' |
|
|
5474 | |
|
|
5475 | case "$host_os" in |
|
|
5476 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
5477 | # PIC is the default for these OSes. |
|
|
5478 | ;; |
|
|
5479 | aix*) |
|
|
5480 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
5481 | # The problem is because libdl dynamically linked with both libc and |
|
|
5482 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
5483 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
5484 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
5485 | # we not sure about C++ programs. |
|
|
5486 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
5487 | ;; |
|
|
5488 | cygwin* | mingw* | pw32* | os2*) |
|
|
5489 | # This hack is so that the source file can tell whether it is being |
|
|
5490 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5491 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5492 | ;; |
|
|
5493 | amigaos*) |
|
|
5494 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5495 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5496 | # like `-m68040'. |
|
|
5497 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5498 | ;; |
|
|
5499 | sysv4*MP*) |
|
|
5500 | if test -d /usr/nec; then |
|
|
5501 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
5502 | fi |
|
|
5503 | ;; |
|
|
5504 | *) |
|
|
5505 | lt_cv_prog_cc_pic='-fPIC' |
|
|
5506 | ;; |
|
|
5507 | esac |
|
|
5508 | else |
|
|
5509 | # PORTME Check for PIC flags for the system compiler. |
|
|
5510 | case "$host_os" in |
|
|
5511 | aix3* | aix4*) |
|
|
5512 | # All AIX code is PIC. |
|
|
5513 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5514 | ;; |
|
|
5515 | |
|
|
5516 | hpux9* | hpux10* | hpux11*) |
|
|
5517 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
5518 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5519 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
5520 | lt_cv_prog_cc_pic='+Z' |
|
|
5521 | ;; |
|
|
5522 | |
|
|
5523 | irix5* | irix6*) |
|
|
5524 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5525 | lt_cv_prog_cc_static='-non_shared' |
|
|
5526 | # PIC (with -KPIC) is the default. |
|
|
5527 | ;; |
|
|
5528 | |
|
|
5529 | cygwin* | mingw* | pw32* | os2*) |
|
|
5530 | # This hack is so that the source file can tell whether it is being |
|
|
5531 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5532 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5533 | ;; |
|
|
5534 | |
|
|
5535 | newsos6) |
|
|
5536 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5537 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5538 | ;; |
|
|
5539 | |
|
|
5540 | osf3* | osf4* | osf5*) |
|
|
5541 | # All OSF/1 code is PIC. |
|
|
5542 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5543 | lt_cv_prog_cc_static='-non_shared' |
|
|
5544 | ;; |
|
|
5545 | |
|
|
5546 | sco3.2v5*) |
|
|
5547 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5548 | lt_cv_prog_cc_static='-dn' |
|
|
5549 | lt_cv_prog_cc_shlib='-belf' |
|
|
5550 | ;; |
|
|
5551 | |
|
|
5552 | solaris*) |
|
|
5553 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5554 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5555 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5556 | ;; |
|
|
5557 | |
|
|
5558 | sunos4*) |
|
|
5559 | lt_cv_prog_cc_pic='-PIC' |
|
|
5560 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5561 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5562 | ;; |
|
|
5563 | |
|
|
5564 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5565 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5566 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5567 | if test "x$host_vendor" = xsni; then |
|
|
5568 | lt_cv_prog_cc_wl='-LD' |
|
|
5569 | else |
|
|
5570 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5571 | fi |
|
|
5572 | ;; |
|
|
5573 | |
|
|
5574 | uts4*) |
|
|
5575 | lt_cv_prog_cc_pic='-pic' |
|
|
5576 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5577 | ;; |
|
|
5578 | |
|
|
5579 | sysv4*MP*) |
|
|
5580 | if test -d /usr/nec ;then |
|
|
5581 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5582 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5583 | fi |
|
|
5584 | ;; |
|
|
5585 | |
|
|
5586 | *) |
|
|
5587 | lt_cv_prog_cc_can_build_shared=no |
|
|
5588 | ;; |
|
|
5589 | esac |
|
|
5590 | fi |
|
|
5591 | |
|
|
5592 | fi |
|
|
5593 | |
|
|
5594 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5595 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5596 | echo "${ECHO_T}none" >&6 |
|
|
5597 | else |
|
|
5598 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5599 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5600 | |
|
|
5601 | # Check to make sure the pic_flag actually works. |
|
|
5602 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5603 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5604 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5606 | else |
|
|
5607 | save_CFLAGS="$CFLAGS" |
|
|
5608 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5609 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5610 | /* confdefs.h. */ |
|
|
5611 | _ACEOF |
|
|
5612 | cat confdefs.h >>conftest.$ac_ext |
|
|
5613 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5614 | /* end confdefs.h. */ |
|
|
5615 | |
|
|
5616 | int |
|
|
5617 | main () |
|
|
5618 | { |
|
|
5619 | |
|
|
5620 | ; |
|
|
5621 | return 0; |
|
|
5622 | } |
|
|
5623 | _ACEOF |
|
|
5624 | rm -f conftest.$ac_objext |
|
|
5625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5626 | (eval $ac_compile) 2>conftest.er1 |
|
|
5627 | ac_status=$? |
|
|
5628 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5629 | rm -f conftest.er1 |
|
|
5630 | cat conftest.err >&5 |
|
|
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5632 | (exit $ac_status); } && |
|
|
5633 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5635 | (eval $ac_try) 2>&5 |
|
|
5636 | ac_status=$? |
|
|
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5638 | (exit $ac_status); }; } && |
|
|
5639 | { ac_try='test -s conftest.$ac_objext' |
|
|
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5641 | (eval $ac_try) 2>&5 |
|
|
5642 | ac_status=$? |
|
|
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5644 | (exit $ac_status); }; }; then |
|
|
5645 | case "$host_os" in |
|
|
5646 | hpux9* | hpux10* | hpux11*) |
|
|
5647 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5648 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5649 | # assume that PIC is not supported. |
|
|
5650 | if test -s conftest.err; then |
|
|
5651 | lt_cv_prog_cc_pic_works=no |
|
|
5652 | else |
|
|
5653 | lt_cv_prog_cc_pic_works=yes |
|
|
5654 | fi |
|
|
5655 | ;; |
|
|
5656 | *) |
|
|
5657 | lt_cv_prog_cc_pic_works=yes |
|
|
5658 | ;; |
|
|
5659 | esac |
|
|
5660 | |
|
|
5661 | else |
|
|
5662 | echo "$as_me: failed program was:" >&5 |
|
|
5663 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5664 | |
|
|
5665 | lt_cv_prog_cc_pic_works=no |
|
|
5666 | |
|
|
5667 | fi |
|
|
5668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5669 | CFLAGS="$save_CFLAGS" |
|
|
5670 | |
|
|
5671 | fi |
|
|
5672 | |
|
|
5673 | |
|
|
5674 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5675 | lt_cv_prog_cc_pic= |
|
|
5676 | lt_cv_prog_cc_can_build_shared=no |
|
|
5677 | else |
|
|
5678 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5679 | fi |
|
|
5680 | |
|
|
5681 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5682 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5683 | fi |
|
|
5684 | ## |
|
|
5685 | ## END FIXME |
|
|
5686 | |
|
|
5687 | # Check for any special shared library compilation flags. |
|
|
5688 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5689 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5690 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5691 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5692 | else |
|
|
5693 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5694 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5695 | lt_cv_prog_cc_can_build_shared=no |
|
|
5696 | fi |
|
|
5697 | fi |
|
|
5698 | |
|
|
5699 | ## FIXME: this should be a separate macro |
|
|
5700 | ## |
|
|
5701 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5702 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5703 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5705 | else |
|
|
5706 | lt_cv_prog_cc_static_works=no |
|
|
5707 | save_LDFLAGS="$LDFLAGS" |
|
|
5708 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5709 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5710 | /* confdefs.h. */ |
|
|
5711 | _ACEOF |
|
|
5712 | cat confdefs.h >>conftest.$ac_ext |
|
|
5713 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5714 | /* end confdefs.h. */ |
|
|
5715 | |
|
|
5716 | int |
|
|
5717 | main () |
|
|
5718 | { |
|
|
5719 | |
|
|
5720 | ; |
|
|
5721 | return 0; |
|
|
5722 | } |
|
|
5723 | _ACEOF |
|
|
5724 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5726 | (eval $ac_link) 2>conftest.er1 |
|
|
5727 | ac_status=$? |
|
|
5728 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5729 | rm -f conftest.er1 |
|
|
5730 | cat conftest.err >&5 |
|
|
5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5732 | (exit $ac_status); } && |
|
|
5733 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5735 | (eval $ac_try) 2>&5 |
|
|
5736 | ac_status=$? |
|
|
5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5738 | (exit $ac_status); }; } && |
|
|
5739 | { ac_try='test -s conftest$ac_exeext' |
|
|
5740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5741 | (eval $ac_try) 2>&5 |
|
|
5742 | ac_status=$? |
|
|
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5744 | (exit $ac_status); }; }; then |
|
|
5745 | lt_cv_prog_cc_static_works=yes |
|
|
5746 | else |
|
|
5747 | echo "$as_me: failed program was:" >&5 |
|
|
5748 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5749 | |
|
|
5750 | fi |
|
|
5751 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5752 | conftest$ac_exeext conftest.$ac_ext |
|
|
5753 | LDFLAGS="$save_LDFLAGS" |
|
|
5754 | |
|
|
5755 | fi |
|
|
5756 | |
|
|
5757 | |
|
|
5758 | # Belt *and* braces to stop my trousers falling down: |
|
|
5759 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5760 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5761 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5762 | |
|
|
5763 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5764 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5765 | wl="$lt_cv_prog_cc_wl" |
|
|
5766 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5767 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5768 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5769 | ## |
|
|
5770 | ## END FIXME |
|
|
5771 | |
|
|
5772 | |
|
|
5773 | ## FIXME: this should be a separate macro |
|
|
5774 | ## |
|
|
5775 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5776 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5777 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5778 | $rm -r conftest 2>/dev/null |
|
|
5779 | mkdir conftest |
|
|
5780 | cd conftest |
|
|
5781 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5782 | mkdir out |
|
|
5783 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5784 | # that will create temporary files in the current directory regardless of |
|
|
5785 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5786 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5787 | # builds. |
|
|
5788 | chmod -w . |
|
|
5789 | save_CFLAGS="$CFLAGS" |
|
|
5790 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5791 | compiler_c_o=no |
|
|
5792 | if { (eval echo configure:5792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5793 | # The compiler can only warn and ignore the option if not recognized |
|
|
5794 | # So say no if there are warnings |
|
|
5795 | if test -s out/conftest.err; then |
|
|
5796 | compiler_c_o=no |
|
|
5797 | else |
|
|
5798 | compiler_c_o=yes |
|
|
5799 | fi |
|
|
5800 | else |
|
|
5801 | # Append any errors to the config.log. |
|
|
5802 | cat out/conftest.err 1>&5 |
|
|
5803 | compiler_c_o=no |
|
|
5804 | fi |
|
|
5805 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5806 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5807 | CFLAGS="$save_CFLAGS" |
|
|
5808 | chmod u+w . |
|
|
5809 | $rm conftest* out/* |
|
|
5810 | rmdir out |
|
|
5811 | cd .. |
|
|
5812 | rmdir conftest |
|
|
5813 | $rm -r conftest 2>/dev/null |
|
|
5814 | |
|
|
5815 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5816 | # Check to see if we can write to a .lo |
|
|
5817 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5818 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5819 | compiler_o_lo=no |
|
|
5820 | save_CFLAGS="$CFLAGS" |
|
|
5821 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5823 | /* confdefs.h. */ |
|
|
5824 | _ACEOF |
|
|
5825 | cat confdefs.h >>conftest.$ac_ext |
|
|
5826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5827 | /* end confdefs.h. */ |
|
|
5828 | |
|
|
5829 | int |
|
|
5830 | main () |
|
|
5831 | { |
|
|
5832 | int some_variable = 0; |
|
|
5833 | ; |
|
|
5834 | return 0; |
|
|
5835 | } |
|
|
5836 | _ACEOF |
|
|
5837 | rm -f conftest.$ac_objext |
|
|
5838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5839 | (eval $ac_compile) 2>conftest.er1 |
|
|
5840 | ac_status=$? |
|
|
5841 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5842 | rm -f conftest.er1 |
|
|
5843 | cat conftest.err >&5 |
|
|
5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5845 | (exit $ac_status); } && |
|
|
5846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5848 | (eval $ac_try) 2>&5 |
|
|
5849 | ac_status=$? |
|
|
5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5851 | (exit $ac_status); }; } && |
|
|
5852 | { ac_try='test -s conftest.$ac_objext' |
|
|
5853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5854 | (eval $ac_try) 2>&5 |
|
|
5855 | ac_status=$? |
|
|
5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5857 | (exit $ac_status); }; }; then |
|
|
5858 | # The compiler can only warn and ignore the option if not recognized |
|
|
5859 | # So say no if there are warnings |
|
|
5860 | if test -s conftest.err; then |
|
|
5861 | compiler_o_lo=no |
|
|
5862 | else |
|
|
5863 | compiler_o_lo=yes |
|
|
5864 | fi |
|
|
5865 | |
|
|
5866 | else |
|
|
5867 | echo "$as_me: failed program was:" >&5 |
|
|
5868 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5869 | |
|
|
5870 | fi |
|
|
5871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5872 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5873 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5874 | CFLAGS="$save_CFLAGS" |
|
|
5875 | else |
|
|
5876 | compiler_o_lo=no |
|
|
5877 | fi |
|
|
5878 | ## |
|
|
5879 | ## END FIXME |
|
|
5880 | |
|
|
5881 | ## FIXME: this should be a separate macro |
|
|
5882 | ## |
|
|
5883 | # Check to see if we can do hard links to lock some files if needed |
|
|
5884 | hard_links="nottested" |
|
|
5885 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5886 | # do not overwrite the value of need_locks provided by the user |
|
|
5887 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5888 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5889 | hard_links=yes |
|
|
5890 | $rm conftest* |
|
|
5891 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5892 | touch conftest.a |
|
|
5893 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5894 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5895 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5896 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5897 | if test "$hard_links" = no; then |
|
|
5898 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5899 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5900 | need_locks=warn |
|
|
5901 | fi |
|
|
5902 | else |
|
|
5903 | need_locks=no |
|
|
5904 | fi |
|
|
5905 | ## |
|
|
5906 | ## END FIXME |
|
|
5907 | |
|
|
5908 | ## FIXME: this should be a separate macro |
|
|
5909 | ## |
|
|
5910 | if test "$GCC" = yes; then |
|
|
5911 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5912 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5913 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5914 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5915 | save_CFLAGS="$CFLAGS" |
|
|
5916 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5917 | compiler_rtti_exceptions=no |
|
|
5918 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5919 | /* confdefs.h. */ |
|
|
5920 | _ACEOF |
|
|
5921 | cat confdefs.h >>conftest.$ac_ext |
|
|
5922 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5923 | /* end confdefs.h. */ |
|
|
5924 | |
|
|
5925 | int |
|
|
5926 | main () |
|
|
5927 | { |
|
|
5928 | int some_variable = 0; |
|
|
5929 | ; |
|
|
5930 | return 0; |
|
|
5931 | } |
|
|
5932 | _ACEOF |
|
|
5933 | rm -f conftest.$ac_objext |
|
|
5934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5935 | (eval $ac_compile) 2>conftest.er1 |
|
|
5936 | ac_status=$? |
|
|
5937 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5938 | rm -f conftest.er1 |
|
|
5939 | cat conftest.err >&5 |
|
|
5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5941 | (exit $ac_status); } && |
|
|
5942 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5944 | (eval $ac_try) 2>&5 |
|
|
5945 | ac_status=$? |
|
|
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5947 | (exit $ac_status); }; } && |
|
|
5948 | { ac_try='test -s conftest.$ac_objext' |
|
|
5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5950 | (eval $ac_try) 2>&5 |
|
|
5951 | ac_status=$? |
|
|
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5953 | (exit $ac_status); }; }; then |
|
|
5954 | # The compiler can only warn and ignore the option if not recognized |
|
|
5955 | # So say no if there are warnings |
|
|
5956 | if test -s conftest.err; then |
|
|
5957 | compiler_rtti_exceptions=no |
|
|
5958 | else |
|
|
5959 | compiler_rtti_exceptions=yes |
|
|
5960 | fi |
|
|
5961 | |
|
|
5962 | else |
|
|
5963 | echo "$as_me: failed program was:" >&5 |
|
|
5964 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5965 | |
|
|
5966 | fi |
|
|
5967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5968 | CFLAGS="$save_CFLAGS" |
|
|
5969 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5970 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5971 | |
|
|
5972 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5973 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5974 | else |
|
|
5975 | no_builtin_flag=' -fno-builtin' |
|
|
5976 | fi |
|
|
5977 | fi |
|
|
5978 | ## |
|
|
5979 | ## END FIXME |
|
|
5980 | |
|
|
5981 | ## FIXME: this should be a separate macro |
|
|
5982 | ## |
|
|
5983 | # See if the linker supports building shared libraries. |
|
|
5984 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5985 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5986 | |
|
|
5987 | allow_undefined_flag= |
|
|
5988 | no_undefined_flag= |
|
|
5989 | need_lib_prefix=unknown |
|
|
5990 | need_version=unknown |
|
|
5991 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5992 | # flags to be left without arguments |
|
|
5993 | archive_cmds= |
|
|
5994 | archive_expsym_cmds= |
|
|
5995 | old_archive_from_new_cmds= |
|
|
5996 | old_archive_from_expsyms_cmds= |
|
|
5997 | export_dynamic_flag_spec= |
|
|
5998 | whole_archive_flag_spec= |
|
|
5999 | thread_safe_flag_spec= |
|
|
6000 | hardcode_into_libs=no |
|
|
6001 | hardcode_libdir_flag_spec= |
|
|
6002 | hardcode_libdir_separator= |
|
|
6003 | hardcode_direct=no |
|
|
6004 | hardcode_minus_L=no |
|
|
6005 | hardcode_shlibpath_var=unsupported |
|
|
6006 | runpath_var= |
|
|
6007 | link_all_deplibs=unknown |
|
|
6008 | always_export_symbols=no |
|
|
6009 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6010 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6011 | # included in the symbol list |
|
|
6012 | include_expsyms= |
|
|
6013 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
6014 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6015 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6016 | # as well as any symbol that contains `d'. |
|
|
6017 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6018 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6019 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6020 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6021 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6022 | # preloaded symbol tables. |
|
|
6023 | extract_expsyms_cmds= |
|
|
6024 | |
|
|
6025 | case "$host_os" in |
|
|
6026 | cygwin* | mingw* | pw32* ) |
|
|
6027 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6028 | # When not using gcc, we currently assume that we are using |
|
|
6029 | # Microsoft Visual C++. |
|
|
6030 | if test "$GCC" != yes; then |
|
|
6031 | with_gnu_ld=no |
|
|
6032 | fi |
|
|
6033 | ;; |
|
|
6034 | |
|
|
6035 | esac |
|
|
6036 | |
|
|
6037 | ld_shlibs=yes |
|
|
6038 | if test "$with_gnu_ld" = yes; then |
|
|
6039 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6040 | wlarc='${wl}' |
|
|
6041 | |
|
|
6042 | # See if GNU ld supports shared libraries. |
|
|
6043 | case "$host_os" in |
|
|
6044 | aix3* | aix4*) |
|
|
6045 | # On AIX, the GNU linker is very broken |
|
|
6046 | ld_shlibs=no |
|
|
6047 | cat <<EOF 1>&2 |
|
|
6048 | |
|
|
6049 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6050 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6051 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6052 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6053 | *** so that a non-GNU linker is found, and then restart. |
|
|
6054 | |
|
|
6055 | EOF |
|
|
6056 | ;; |
|
|
6057 | |
|
|
6058 | amigaos*) |
|
|
6059 | 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)' |
|
|
6060 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6061 | hardcode_minus_L=yes |
|
|
6062 | |
|
|
6063 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6064 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6065 | # to version 4, is to share data among multiple programs linked |
|
|
6066 | # with the same dynamic library. Since this doesn't match the |
|
|
6067 | # behavior of shared libraries on other platforms, we can use |
|
|
6068 | # them. |
|
|
6069 | ld_shlibs=no |
|
|
6070 | ;; |
|
|
6071 | |
|
|
6072 | beos*) |
|
|
6073 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6074 | allow_undefined_flag=unsupported |
|
|
6075 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6076 | # support --undefined. This deserves some investigation. FIXME |
|
|
6077 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6078 | else |
|
|
6079 | ld_shlibs=no |
|
|
6080 | fi |
|
|
6081 | ;; |
|
|
6082 | |
|
|
6083 | cygwin* | mingw* | pw32*) |
|
|
6084 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6085 | # no search path for DLLs. |
|
|
6086 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6087 | allow_undefined_flag=unsupported |
|
|
6088 | always_export_symbols=yes |
|
|
6089 | |
|
|
6090 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
6091 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
6092 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
6093 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
6094 | else $CC -o impgen impgen.c ; fi)~ |
|
|
6095 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
6096 | |
|
|
6097 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
6098 | |
|
|
6099 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
6100 | # to exclude. |
|
|
6101 | # FIXME: what about values for MSVC? |
|
|
6102 | dll_entry=__cygwin_dll_entry@12 |
|
|
6103 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
6104 | case "$host_os" in |
|
|
6105 | mingw*) |
|
|
6106 | # mingw values |
|
|
6107 | dll_entry=_DllMainCRTStartup@12 |
|
|
6108 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
6109 | ;; |
|
|
6110 | esac |
|
|
6111 | |
|
|
6112 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
6113 | # of the two symbol sets. |
|
|
6114 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
6115 | |
|
|
6116 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
6117 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
6118 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
6119 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
6120 | 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~ |
|
|
6121 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
6122 | else |
|
|
6123 | ltdll_obj= |
|
|
6124 | ltdll_cmds= |
|
|
6125 | fi |
|
|
6126 | |
|
|
6127 | # Extract the symbol export list from an `--export-all' def file, |
|
|
6128 | # then regenerate the def file from the symbol export list, so that |
|
|
6129 | # the compiled dll only exports the symbol export list. |
|
|
6130 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
6131 | export_symbols_cmds="$ltdll_cmds"' |
|
|
6132 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
6133 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
6134 | |
|
|
6135 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
6136 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
6137 | _lt_hint=1; |
|
|
6138 | cat $export_symbols | while read symbol; do |
|
|
6139 | set dummy \$symbol; |
|
|
6140 | case \$# in |
|
|
6141 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
6142 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
6143 | esac; |
|
|
6144 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
6145 | done~ |
|
|
6146 | '"$ltdll_cmds"' |
|
|
6147 | $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~ |
|
|
6148 | $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~ |
|
|
6149 | $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~ |
|
|
6150 | $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~ |
|
|
6151 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
6152 | ;; |
|
|
6153 | |
|
|
6154 | netbsd*) |
|
|
6155 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6156 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6157 | wlarc= |
|
|
6158 | else |
|
|
6159 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6160 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6161 | fi |
|
|
6162 | ;; |
|
|
6163 | |
|
|
6164 | solaris* | sysv5*) |
|
|
6165 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
6166 | ld_shlibs=no |
|
|
6167 | cat <<EOF 1>&2 |
|
|
6168 | |
|
|
6169 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6170 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6171 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6172 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6173 | *** your PATH or compiler configuration so that the native linker is |
|
|
6174 | *** used, and then restart. |
|
|
6175 | |
|
|
6176 | EOF |
|
|
6177 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6178 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6179 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6180 | else |
|
|
6181 | ld_shlibs=no |
|
|
6182 | fi |
|
|
6183 | ;; |
|
|
6184 | |
|
|
6185 | sunos4*) |
|
|
6186 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6187 | wlarc= |
|
|
6188 | hardcode_direct=yes |
|
|
6189 | hardcode_shlibpath_var=no |
|
|
6190 | ;; |
|
|
6191 | |
|
|
6192 | *) |
|
|
6193 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6194 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6195 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6196 | else |
|
|
6197 | ld_shlibs=no |
|
|
6198 | fi |
|
|
6199 | ;; |
|
|
6200 | esac |
|
|
6201 | |
|
|
6202 | if test "$ld_shlibs" = yes; then |
|
|
6203 | runpath_var=LD_RUN_PATH |
|
|
6204 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6205 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6206 | case $host_os in |
|
|
6207 | cygwin* | mingw* | pw32*) |
|
|
6208 | # dlltool doesn't understand --whole-archive et. al. |
|
|
6209 | whole_archive_flag_spec= |
|
|
6210 | ;; |
|
|
6211 | *) |
|
|
6212 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6213 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
6214 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6215 | else |
|
|
6216 | whole_archive_flag_spec= |
|
|
6217 | fi |
|
|
6218 | ;; |
|
|
6219 | esac |
|
|
6220 | fi |
|
|
6221 | else |
|
|
6222 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6223 | case "$host_os" in |
|
|
6224 | aix3*) |
|
|
6225 | allow_undefined_flag=unsupported |
|
|
6226 | always_export_symbols=yes |
|
|
6227 | 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' |
|
|
6228 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6229 | # are no directories specified by -L. |
|
|
6230 | hardcode_minus_L=yes |
|
|
6231 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
6232 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6233 | # broken collect2. |
|
|
6234 | hardcode_direct=unsupported |
|
|
6235 | fi |
|
|
6236 | ;; |
|
|
6237 | |
|
|
6238 | aix4*) |
|
|
6239 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
6240 | hardcode_libdir_separator=':' |
|
|
6241 | if test "$GCC" = yes; then |
|
|
6242 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6243 | if test -f "$collect2name" && \ |
|
|
6244 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6245 | then |
|
|
6246 | # We have reworked collect2 |
|
|
6247 | hardcode_direct=yes |
|
|
6248 | else |
|
|
6249 | # We have old collect2 |
|
|
6250 | hardcode_direct=unsupported |
|
|
6251 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6252 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6253 | # to unsupported forces relinking |
|
|
6254 | hardcode_minus_L=yes |
|
|
6255 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6256 | hardcode_libdir_separator= |
|
|
6257 | fi |
|
|
6258 | shared_flag='-shared' |
|
|
6259 | else |
|
|
6260 | shared_flag='${wl}-bM:SRE' |
|
|
6261 | hardcode_direct=yes |
|
|
6262 | fi |
|
|
6263 | allow_undefined_flag=' ${wl}-berok' |
|
|
6264 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6265 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6266 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
6267 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
6268 | always_export_symbols=yes ;; |
|
|
6269 | esac |
|
|
6270 | |
|
|
6271 | # We don't want to build shared libraries on unknown CPU types. |
|
|
6272 | case $host_cpu in |
|
|
6273 | powerpc | rs6000) ;; |
|
|
6274 | *) ld_shlibs=no ;; |
|
|
6275 | esac |
|
|
6276 | ;; |
|
|
6277 | |
|
|
6278 | amigaos*) |
|
|
6279 | 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)' |
|
|
6280 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6281 | hardcode_minus_L=yes |
|
|
6282 | # see comment about different semantics on the GNU ld section |
|
|
6283 | ld_shlibs=no |
|
|
6284 | ;; |
|
|
6285 | |
|
|
6286 | cygwin* | mingw* | pw32*) |
|
|
6287 | # When not using gcc, we currently assume that we are using |
|
|
6288 | # Microsoft Visual C++. |
|
|
6289 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6290 | # no search path for DLLs. |
|
|
6291 | hardcode_libdir_flag_spec=' ' |
|
|
6292 | allow_undefined_flag=unsupported |
|
|
6293 | # Tell ltmain to make .lib files, not .a files. |
|
|
6294 | libext=lib |
|
|
6295 | # FIXME: Setting linknames here is a bad hack. |
|
|
6296 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6297 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6298 | old_archive_from_new_cmds='true' |
|
|
6299 | # FIXME: Should let the user specify the lib program. |
|
|
6300 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6301 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6302 | ;; |
|
|
6303 | |
|
|
6304 | darwin* | rhapsody*) |
|
|
6305 | allow_undefined_flag='-undefined warning' |
|
|
6306 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
6307 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
6308 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
6309 | ## What we need is to hardcode the path to the library, not the search path |
|
|
6310 | #hardcode_direct=yes |
|
|
6311 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
6312 | hardcode_shlibpath_var=no |
|
|
6313 | whole_archive_flag_spec='-all_load' |
|
|
6314 | ;; |
|
|
6315 | |
|
|
6316 | freebsd1*) |
|
|
6317 | ld_shlibs=no |
|
|
6318 | ;; |
|
|
6319 | |
|
|
6320 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6321 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6322 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6323 | # extra space). |
|
|
6324 | freebsd2.2*) |
|
|
6325 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6326 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6327 | hardcode_direct=yes |
|
|
6328 | hardcode_shlibpath_var=no |
|
|
6329 | ;; |
|
|
6330 | |
|
|
6331 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6332 | freebsd2*) |
|
|
6333 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6334 | hardcode_direct=yes |
|
|
6335 | hardcode_minus_L=yes |
|
|
6336 | hardcode_shlibpath_var=no |
|
|
6337 | ;; |
|
|
6338 | |
|
|
6339 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6340 | freebsd*) |
|
|
6341 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6342 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6343 | hardcode_direct=yes |
|
|
6344 | hardcode_shlibpath_var=no |
|
|
6345 | ;; |
|
|
6346 | |
|
|
6347 | hpux9* | hpux10* | hpux11*) |
|
|
6348 | case "$host_os" in |
|
|
6349 | 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' ;; |
|
|
6350 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
6351 | esac |
|
|
6352 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6353 | hardcode_libdir_separator=: |
|
|
6354 | hardcode_direct=yes |
|
|
6355 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
6356 | # location of the library. |
|
|
6357 | export_dynamic_flag_spec='${wl}-E' |
|
|
6358 | ;; |
|
|
6359 | |
|
|
6360 | irix5* | irix6*) |
|
|
6361 | if test "$GCC" = yes; then |
|
|
6362 | 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' |
|
|
6363 | else |
|
|
6364 | 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' |
|
|
6365 | fi |
|
|
6366 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6367 | hardcode_libdir_separator=: |
|
|
6368 | link_all_deplibs=yes |
|
|
6369 | ;; |
|
|
6370 | |
|
|
6371 | netbsd*) |
|
|
6372 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6373 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6374 | else |
|
|
6375 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6376 | fi |
|
|
6377 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6378 | hardcode_direct=yes |
|
|
6379 | hardcode_shlibpath_var=no |
|
|
6380 | ;; |
|
|
6381 | |
|
|
6382 | newsos6) |
|
|
6383 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6384 | hardcode_direct=yes |
|
|
6385 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6386 | hardcode_libdir_separator=: |
|
|
6387 | hardcode_shlibpath_var=no |
|
|
6388 | ;; |
|
|
6389 | |
|
|
6390 | openbsd*) |
|
|
6391 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6392 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6393 | hardcode_direct=yes |
|
|
6394 | hardcode_shlibpath_var=no |
|
|
6395 | ;; |
|
|
6396 | |
|
|
6397 | os2*) |
|
|
6398 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6399 | hardcode_minus_L=yes |
|
|
6400 | allow_undefined_flag=unsupported |
|
|
6401 | 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' |
|
|
6402 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6403 | ;; |
|
|
6404 | |
|
|
6405 | osf3*) |
|
|
6406 | if test "$GCC" = yes; then |
|
|
6407 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6408 | 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' |
|
|
6409 | else |
|
|
6410 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6411 | 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' |
|
|
6412 | fi |
|
|
6413 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6414 | hardcode_libdir_separator=: |
|
|
6415 | ;; |
|
|
6416 | |
|
|
6417 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6418 | if test "$GCC" = yes; then |
|
|
6419 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6420 | 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' |
|
|
6421 | else |
|
|
6422 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6423 | 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' |
|
|
6424 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6425 | $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' |
|
|
6426 | fi |
|
|
6427 | #Both c and cxx compiler support -rpath directly |
|
|
6428 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6429 | hardcode_libdir_separator=: |
|
|
6430 | ;; |
|
|
6431 | |
|
|
6432 | sco3.2v5*) |
|
|
6433 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6434 | hardcode_shlibpath_var=no |
|
|
6435 | runpath_var=LD_RUN_PATH |
|
|
6436 | hardcode_runpath_var=yes |
|
|
6437 | ;; |
|
|
6438 | |
|
|
6439 | solaris*) |
|
|
6440 | no_undefined_flag=' -z text' |
|
|
6441 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6442 | # object files and a static libstdc++, better avoid it by now |
|
|
6443 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6444 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6445 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6446 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6447 | hardcode_shlibpath_var=no |
|
|
6448 | case "$host_os" in |
|
|
6449 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6450 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6451 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6452 | esac |
|
|
6453 | link_all_deplibs=yes |
|
|
6454 | ;; |
|
|
6455 | |
|
|
6456 | sunos4*) |
|
|
6457 | if test "x$host_vendor" = xsequent; then |
|
|
6458 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6459 | # files that make .init and .fini sections work. |
|
|
6460 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6461 | else |
|
|
6462 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6463 | fi |
|
|
6464 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6465 | hardcode_direct=yes |
|
|
6466 | hardcode_minus_L=yes |
|
|
6467 | hardcode_shlibpath_var=no |
|
|
6468 | ;; |
|
|
6469 | |
|
|
6470 | sysv4) |
|
|
6471 | if test "x$host_vendor" = xsno; then |
|
|
6472 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6473 | hardcode_direct=yes # is this really true??? |
|
|
6474 | else |
|
|
6475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6476 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6477 | fi |
|
|
6478 | runpath_var='LD_RUN_PATH' |
|
|
6479 | hardcode_shlibpath_var=no |
|
|
6480 | ;; |
|
|
6481 | |
|
|
6482 | sysv4.3*) |
|
|
6483 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6484 | hardcode_shlibpath_var=no |
|
|
6485 | export_dynamic_flag_spec='-Bexport' |
|
|
6486 | ;; |
|
|
6487 | |
|
|
6488 | sysv5*) |
|
|
6489 | no_undefined_flag=' -z text' |
|
|
6490 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6491 | # object files and a static libstdc++, better avoid it by now |
|
|
6492 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6493 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6494 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6495 | hardcode_libdir_flag_spec= |
|
|
6496 | hardcode_shlibpath_var=no |
|
|
6497 | runpath_var='LD_RUN_PATH' |
|
|
6498 | ;; |
|
|
6499 | |
|
|
6500 | uts4*) |
|
|
6501 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6502 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6503 | hardcode_shlibpath_var=no |
|
|
6504 | ;; |
|
|
6505 | |
|
|
6506 | dgux*) |
|
|
6507 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6508 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6509 | hardcode_shlibpath_var=no |
|
|
6510 | ;; |
|
|
6511 | |
|
|
6512 | sysv4*MP*) |
|
|
6513 | if test -d /usr/nec; then |
|
|
6514 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6515 | hardcode_shlibpath_var=no |
|
|
6516 | runpath_var=LD_RUN_PATH |
|
|
6517 | hardcode_runpath_var=yes |
|
|
6518 | ld_shlibs=yes |
|
|
6519 | fi |
|
|
6520 | ;; |
|
|
6521 | |
|
|
6522 | sysv4.2uw2*) |
|
|
6523 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6524 | hardcode_direct=yes |
|
|
6525 | hardcode_minus_L=no |
|
|
6526 | hardcode_shlibpath_var=no |
|
|
6527 | hardcode_runpath_var=yes |
|
|
6528 | runpath_var=LD_RUN_PATH |
|
|
6529 | ;; |
|
|
6530 | |
|
|
6531 | unixware7*) |
|
|
6532 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6533 | runpath_var='LD_RUN_PATH' |
|
|
6534 | hardcode_shlibpath_var=no |
|
|
6535 | ;; |
|
|
6536 | |
|
|
6537 | *) |
|
|
6538 | ld_shlibs=no |
|
|
6539 | ;; |
|
|
6540 | esac |
|
|
6541 | fi |
|
|
6542 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6543 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6544 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6545 | ## |
|
|
6546 | ## END FIXME |
|
|
6547 | |
|
|
6548 | ## FIXME: this should be a separate macro |
|
|
6549 | ## |
|
|
6550 | # Check hardcoding attributes. |
|
|
6551 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6552 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6553 | hardcode_action= |
|
|
6554 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6555 | test -n "$runpath_var"; then |
|
|
6556 | |
|
|
6557 | # We can hardcode non-existant directories. |
|
|
6558 | if test "$hardcode_direct" != no && |
|
|
6559 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6560 | # have to relink, otherwise we might link with an installed library |
|
|
6561 | # when we should be linking with a yet-to-be-installed one |
|
|
6562 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6563 | test "$hardcode_minus_L" != no; then |
|
|
6564 | # Linking always hardcodes the temporary library directory. |
|
|
6565 | hardcode_action=relink |
|
|
6566 | else |
|
|
6567 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6568 | hardcode_action=immediate |
|
|
6569 | fi |
|
|
6570 | else |
|
|
6571 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6572 | # directories. |
|
|
6573 | hardcode_action=unsupported |
|
|
6574 | fi |
|
|
6575 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6576 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6577 | ## |
|
|
6578 | ## END FIXME |
|
|
6579 | |
|
|
6580 | ## FIXME: this should be a separate macro |
|
|
6581 | ## |
|
|
6582 | striplib= |
|
|
6583 | old_striplib= |
|
|
6584 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6585 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6586 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6587 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6588 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6589 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6590 | echo "${ECHO_T}yes" >&6 |
|
|
6591 | else |
|
|
6592 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6593 | echo "${ECHO_T}no" >&6 |
|
|
6594 | fi |
|
|
6595 | ## |
|
|
6596 | ## END FIXME |
|
|
6597 | |
|
|
6598 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6599 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6600 | |
|
|
6601 | ## FIXME: this should be a separate macro |
|
|
6602 | ## |
|
|
6603 | # PORTME Fill in your ld.so characteristics |
|
|
6604 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6605 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6606 | library_names_spec= |
|
|
6607 | libname_spec='lib$name' |
|
|
6608 | soname_spec= |
|
|
6609 | postinstall_cmds= |
|
|
6610 | postuninstall_cmds= |
|
|
6611 | finish_cmds= |
|
|
6612 | finish_eval= |
|
|
6613 | shlibpath_var= |
|
|
6614 | shlibpath_overrides_runpath=unknown |
|
|
6615 | version_type=none |
|
|
6616 | dynamic_linker="$host_os ld.so" |
|
|
6617 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6618 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6619 | |
|
|
6620 | case "$host_os" in |
|
|
6621 | aix3*) |
|
|
6622 | version_type=linux |
|
|
6623 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6624 | shlibpath_var=LIBPATH |
|
|
6625 | |
|
|
6626 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6627 | soname_spec='${libname}${release}.so$major' |
|
|
6628 | ;; |
|
|
6629 | |
|
|
6630 | aix4*) |
|
|
6631 | version_type=linux |
|
|
6632 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6633 | # soname into executable. Probably we can add versioning support to |
|
|
6634 | # collect2, so additional links can be useful in future. |
|
|
6635 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6636 | # and later linker supports .so |
|
|
6637 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6638 | shlibpath_var=LIBPATH |
|
|
6639 | ;; |
|
|
6640 | |
|
|
6641 | amigaos*) |
|
|
6642 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6643 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6644 | 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' |
|
|
6645 | ;; |
|
|
6646 | |
|
|
6647 | beos*) |
|
|
6648 | library_names_spec='${libname}.so' |
|
|
6649 | dynamic_linker="$host_os ld.so" |
|
|
6650 | shlibpath_var=LIBRARY_PATH |
|
|
6651 | ;; |
|
|
6652 | |
|
|
6653 | bsdi4*) |
|
|
6654 | version_type=linux |
|
|
6655 | need_version=no |
|
|
6656 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6657 | soname_spec='${libname}${release}.so$major' |
|
|
6658 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6659 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6660 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6661 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6662 | export_dynamic_flag_spec=-rdynamic |
|
|
6663 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6664 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6665 | # libtool to hard-code these into programs |
|
|
6666 | ;; |
|
|
6667 | |
|
|
6668 | cygwin* | mingw* | pw32*) |
|
|
6669 | version_type=windows |
|
|
6670 | need_version=no |
|
|
6671 | need_lib_prefix=no |
|
|
6672 | if test "$GCC" = yes; then |
|
|
6673 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6674 | else |
|
|
6675 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6676 | fi |
|
|
6677 | dynamic_linker='Win32 ld.exe' |
|
|
6678 | # FIXME: first we should search . and the directory the executable is in |
|
|
6679 | shlibpath_var=PATH |
|
|
6680 | ;; |
|
|
6681 | |
|
|
6682 | darwin* | rhapsody*) |
|
|
6683 | need_lib_prefix=no |
|
|
6684 | need_version=no |
|
|
6685 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6686 | shlibpath_overrides_runpath=yes |
|
|
6687 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6688 | postinstall_cmds='chmod +x $lib' |
|
|
6689 | ;; |
|
|
6690 | |
|
|
6691 | freebsd1*) |
|
|
6692 | dynamic_linker=no |
|
|
6693 | ;; |
|
|
6694 | |
|
|
6695 | freebsd*) |
|
|
6696 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6697 | version_type=freebsd-$objformat |
|
|
6698 | case "$version_type" in |
|
|
6699 | freebsd-elf*) |
|
|
6700 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6701 | need_version=no |
|
|
6702 | need_lib_prefix=no |
|
|
6703 | ;; |
|
|
6704 | freebsd-*) |
|
|
6705 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6706 | need_version=yes |
|
|
6707 | ;; |
|
|
6708 | esac |
|
|
6709 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6710 | case "$host_os" in |
|
|
6711 | freebsd2*) |
|
|
6712 | shlibpath_overrides_runpath=yes |
|
|
6713 | ;; |
|
|
6714 | *) |
|
|
6715 | shlibpath_overrides_runpath=no |
|
|
6716 | hardcode_into_libs=yes |
|
|
6717 | ;; |
|
|
6718 | esac |
|
|
6719 | ;; |
|
|
6720 | |
|
|
6721 | gnu*) |
|
|
6722 | version_type=linux |
|
|
6723 | need_lib_prefix=no |
|
|
6724 | need_version=no |
|
|
6725 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6726 | soname_spec='${libname}${release}.so$major' |
|
|
6727 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6728 | hardcode_into_libs=yes |
|
|
6729 | ;; |
|
|
6730 | |
|
|
6731 | hpux9* | hpux10* | hpux11*) |
|
|
6732 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6733 | # link against other versions. |
|
|
6734 | dynamic_linker="$host_os dld.sl" |
|
|
6735 | version_type=sunos |
|
|
6736 | need_lib_prefix=no |
|
|
6737 | need_version=no |
|
|
6738 | shlibpath_var=SHLIB_PATH |
|
|
6739 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6740 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6741 | soname_spec='${libname}${release}.sl$major' |
|
|
6742 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6743 | postinstall_cmds='chmod 555 $lib' |
|
|
6744 | ;; |
|
|
6745 | |
|
|
6746 | irix5* | irix6*) |
|
|
6747 | version_type=irix |
|
|
6748 | need_lib_prefix=no |
|
|
6749 | need_version=no |
|
|
6750 | soname_spec='${libname}${release}.so$major' |
|
|
6751 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6752 | case "$host_os" in |
|
|
6753 | irix5*) |
|
|
6754 | libsuff= shlibsuff= |
|
|
6755 | ;; |
|
|
6756 | *) |
|
|
6757 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6758 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6759 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6760 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6761 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6762 | esac |
|
|
6763 | ;; |
|
|
6764 | esac |
|
|
6765 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6766 | shlibpath_overrides_runpath=no |
|
|
6767 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6768 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6769 | ;; |
|
|
6770 | |
|
|
6771 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6772 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6773 | dynamic_linker=no |
|
|
6774 | ;; |
|
|
6775 | |
|
|
6776 | # This must be Linux ELF. |
|
|
6777 | linux-gnu*) |
|
|
6778 | version_type=linux |
|
|
6779 | need_lib_prefix=no |
|
|
6780 | need_version=no |
|
|
6781 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6782 | soname_spec='${libname}${release}.so$major' |
|
|
6783 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6784 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6785 | shlibpath_overrides_runpath=no |
|
|
6786 | # This implies no fast_install, which is unacceptable. |
|
|
6787 | # Some rework will be needed to allow for fast_install |
|
|
6788 | # before this can be enabled. |
|
|
6789 | hardcode_into_libs=yes |
|
|
6790 | |
|
|
6791 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6792 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6793 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6794 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6795 | # people can always --disable-shared, the test was removed, and we |
|
|
6796 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6797 | dynamic_linker='GNU/Linux ld.so' |
|
|
6798 | ;; |
|
|
6799 | |
|
|
6800 | netbsd*) |
|
|
6801 | version_type=sunos |
|
|
6802 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6803 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6804 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6805 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6806 | else |
|
|
6807 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6808 | soname_spec='${libname}${release}.so$major' |
|
|
6809 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6810 | fi |
|
|
6811 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6812 | shlibpath_overrides_runpath=yes |
|
|
6813 | hardcode_into_libs=yes |
|
|
6814 | ;; |
|
|
6815 | |
|
|
6816 | newsos6) |
|
|
6817 | version_type=linux |
|
|
6818 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6819 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6820 | shlibpath_overrides_runpath=yes |
|
|
6821 | ;; |
|
|
6822 | |
|
|
6823 | openbsd*) |
|
|
6824 | version_type=sunos |
|
|
6825 | if test "$with_gnu_ld" = yes; then |
|
|
6826 | need_lib_prefix=no |
|
|
6827 | need_version=no |
|
|
6828 | fi |
|
|
6829 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6830 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6831 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6832 | ;; |
|
|
6833 | |
|
|
6834 | os2*) |
|
|
6835 | libname_spec='$name' |
|
|
6836 | need_lib_prefix=no |
|
|
6837 | library_names_spec='$libname.dll $libname.a' |
|
|
6838 | dynamic_linker='OS/2 ld.exe' |
|
|
6839 | shlibpath_var=LIBPATH |
|
|
6840 | ;; |
|
|
6841 | |
|
|
6842 | osf3* | osf4* | osf5*) |
|
|
6843 | version_type=osf |
|
|
6844 | need_version=no |
|
|
6845 | soname_spec='${libname}${release}.so' |
|
|
6846 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6847 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6848 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6849 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6850 | ;; |
|
|
6851 | |
|
|
6852 | sco3.2v5*) |
|
|
6853 | version_type=osf |
|
|
6854 | soname_spec='${libname}${release}.so$major' |
|
|
6855 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6856 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6857 | ;; |
|
|
6858 | |
|
|
6859 | solaris*) |
|
|
6860 | version_type=linux |
|
|
6861 | need_lib_prefix=no |
|
|
6862 | need_version=no |
|
|
6863 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6864 | soname_spec='${libname}${release}.so$major' |
|
|
6865 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6866 | shlibpath_overrides_runpath=yes |
|
|
6867 | hardcode_into_libs=yes |
|
|
6868 | # ldd complains unless libraries are executable |
|
|
6869 | postinstall_cmds='chmod +x $lib' |
|
|
6870 | ;; |
|
|
6871 | |
|
|
6872 | sunos4*) |
|
|
6873 | version_type=sunos |
|
|
6874 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6875 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6876 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6877 | shlibpath_overrides_runpath=yes |
|
|
6878 | if test "$with_gnu_ld" = yes; then |
|
|
6879 | need_lib_prefix=no |
|
|
6880 | fi |
|
|
6881 | need_version=yes |
|
|
6882 | ;; |
|
|
6883 | |
|
|
6884 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6885 | version_type=linux |
|
|
6886 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6887 | soname_spec='${libname}${release}.so$major' |
|
|
6888 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6889 | case "$host_vendor" in |
|
|
6890 | sni) |
|
|
6891 | shlibpath_overrides_runpath=no |
|
|
6892 | ;; |
|
|
6893 | motorola) |
|
|
6894 | need_lib_prefix=no |
|
|
6895 | need_version=no |
|
|
6896 | shlibpath_overrides_runpath=no |
|
|
6897 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6898 | ;; |
|
|
6899 | esac |
|
|
6900 | ;; |
|
|
6901 | |
|
|
6902 | uts4*) |
|
|
6903 | version_type=linux |
|
|
6904 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6905 | soname_spec='${libname}${release}.so$major' |
|
|
6906 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6907 | ;; |
|
|
6908 | |
|
|
6909 | dgux*) |
|
|
6910 | version_type=linux |
|
|
6911 | need_lib_prefix=no |
|
|
6912 | need_version=no |
|
|
6913 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6914 | soname_spec='${libname}${release}.so$major' |
|
|
6915 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6916 | ;; |
|
|
6917 | |
|
|
6918 | sysv4*MP*) |
|
|
6919 | if test -d /usr/nec ;then |
|
|
6920 | version_type=linux |
|
|
6921 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6922 | soname_spec='$libname.so.$major' |
|
|
6923 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6924 | fi |
|
|
6925 | ;; |
|
|
6926 | |
|
|
6927 | *) |
|
|
6928 | dynamic_linker=no |
|
|
6929 | ;; |
|
|
6930 | esac |
|
|
6931 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6932 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6933 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6934 | ## |
|
|
6935 | ## END FIXME |
|
|
6936 | |
|
|
6937 | ## FIXME: this should be a separate macro |
|
|
6938 | ## |
|
|
6939 | # Report the final consequences. |
|
|
6940 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6941 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6942 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6943 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6944 | ## |
|
|
6945 | ## END FIXME |
|
|
6946 | |
|
|
6947 | if test "$hardcode_action" = relink; then |
|
|
6948 | # Fast installation is not supported |
|
|
6949 | enable_fast_install=no |
|
|
6950 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6951 | test "$enable_shared" = no; then |
|
|
6952 | # Fast installation is not necessary |
|
|
6953 | enable_fast_install=needless |
|
|
6954 | fi |
|
|
6955 | |
|
|
6956 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6957 | if test "$GCC" = yes; then |
|
|
6958 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6959 | fi |
|
|
6960 | |
|
|
6961 | if test "x$enable_dlopen" != xyes; then |
|
|
6962 | enable_dlopen=unknown |
|
|
6963 | enable_dlopen_self=unknown |
|
|
6964 | enable_dlopen_self_static=unknown |
|
|
6965 | else |
|
|
6966 | lt_cv_dlopen=no |
|
|
6967 | lt_cv_dlopen_libs= |
|
|
6968 | |
|
|
6969 | case "$host_os" in |
|
|
6970 | beos*) |
|
|
6971 | lt_cv_dlopen="load_add_on" |
|
|
6972 | lt_cv_dlopen_libs= |
|
|
6973 | lt_cv_dlopen_self=yes |
|
|
6974 | ;; |
|
|
6975 | |
|
|
6976 | cygwin* | mingw* | pw32*) |
|
|
6977 | lt_cv_dlopen="LoadLibrary" |
|
|
6978 | lt_cv_dlopen_libs= |
|
|
6979 | ;; |
|
|
6980 | |
|
|
6981 | *) |
|
|
6982 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6983 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6984 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6986 | else |
|
|
6987 | ac_check_lib_save_LIBS=$LIBS |
|
|
6988 | LIBS="-ldl $LIBS" |
|
|
6989 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6990 | /* confdefs.h. */ |
|
|
6991 | _ACEOF |
|
|
6992 | cat confdefs.h >>conftest.$ac_ext |
|
|
6993 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6994 | /* end confdefs.h. */ |
|
|
6995 | |
|
|
6996 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6997 | #ifdef __cplusplus |
|
|
6998 | extern "C" |
|
|
6999 | #endif |
|
|
7000 | /* We use char because int might match the return type of a gcc2 |
|
|
7001 | builtin and then its argument prototype would still apply. */ |
|
|
7002 | char dlopen (); |
|
|
7003 | int |
|
|
7004 | main () |
|
|
7005 | { |
|
|
7006 | dlopen (); |
|
|
7007 | ; |
|
|
7008 | return 0; |
|
|
7009 | } |
|
|
7010 | _ACEOF |
|
|
7011 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7013 | (eval $ac_link) 2>conftest.er1 |
|
|
7014 | ac_status=$? |
|
|
7015 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7016 | rm -f conftest.er1 |
|
|
7017 | cat conftest.err >&5 |
|
|
7018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7019 | (exit $ac_status); } && |
|
|
7020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7022 | (eval $ac_try) 2>&5 |
|
|
7023 | ac_status=$? |
|
|
7024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7025 | (exit $ac_status); }; } && |
|
|
7026 | { ac_try='test -s conftest$ac_exeext' |
|
|
7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7028 | (eval $ac_try) 2>&5 |
|
|
7029 | ac_status=$? |
|
|
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7031 | (exit $ac_status); }; }; then |
|
|
7032 | ac_cv_lib_dl_dlopen=yes |
|
|
7033 | else |
|
|
7034 | echo "$as_me: failed program was:" >&5 |
|
|
7035 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7036 | |
|
|
7037 | ac_cv_lib_dl_dlopen=no |
|
|
7038 | fi |
|
|
7039 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7040 | conftest$ac_exeext conftest.$ac_ext |
|
|
7041 | LIBS=$ac_check_lib_save_LIBS |
|
|
7042 | fi |
|
|
7043 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7044 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7045 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7046 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7047 | else |
|
|
7048 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
7049 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
7050 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
7051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7052 | else |
|
|
7053 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7054 | /* confdefs.h. */ |
|
|
7055 | _ACEOF |
|
|
7056 | cat confdefs.h >>conftest.$ac_ext |
|
|
7057 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7058 | /* end confdefs.h. */ |
|
|
7059 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
3887 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
7060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7061 | #define dlopen innocuous_dlopen |
3889 | #define sched_yield innocuous_sched_yield |
7062 | |
3890 | |
7063 | /* System header to define __stub macros and hopefully few prototypes, |
3891 | /* System header to define __stub macros and hopefully few prototypes, |
7064 | which can conflict with char dlopen (); below. |
3892 | which can conflict with char sched_yield (); below. |
7065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7066 | <limits.h> exists even on freestanding compilers. */ |
3894 | <limits.h> exists even on freestanding compilers. */ |
7067 | |
3895 | |
7068 | #ifdef __STDC__ |
3896 | #ifdef __STDC__ |
7069 | # include <limits.h> |
3897 | # include <limits.h> |
7070 | #else |
3898 | #else |
7071 | # include <assert.h> |
3899 | # include <assert.h> |
7072 | #endif |
3900 | #endif |
7073 | |
3901 | |
7074 | #undef dlopen |
3902 | #undef sched_yield |
7075 | |
3903 | |
7076 | /* Override any gcc2 internal prototype to avoid an error. */ |
3904 | /* Override any gcc2 internal prototype to avoid an error. */ |
7077 | #ifdef __cplusplus |
3905 | #ifdef __cplusplus |
7078 | extern "C" |
3906 | extern "C" |
7079 | { |
3907 | { |
7080 | #endif |
3908 | #endif |
7081 | /* We use char because int might match the return type of a gcc2 |
3909 | /* We use char because int might match the return type of a gcc2 |
7082 | builtin and then its argument prototype would still apply. */ |
3910 | builtin and then its argument prototype would still apply. */ |
7083 | char dlopen (); |
3911 | char sched_yield (); |
7084 | /* The GNU C library defines this for functions which it implements |
3912 | /* The GNU C library defines this for functions which it implements |
7085 | to always fail with ENOSYS. Some functions are actually named |
3913 | to always fail with ENOSYS. Some functions are actually named |
7086 | something starting with __ and the normal name is an alias. */ |
3914 | something starting with __ and the normal name is an alias. */ |
7087 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
3915 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
7088 | choke me |
3916 | choke me |
7089 | #else |
3917 | #else |
7090 | char (*f) () = dlopen; |
3918 | char (*f) () = sched_yield; |
7091 | #endif |
3919 | #endif |
7092 | #ifdef __cplusplus |
3920 | #ifdef __cplusplus |
7093 | } |
3921 | } |
7094 | #endif |
3922 | #endif |
7095 | |
3923 | |
7096 | int |
3924 | int |
7097 | main () |
3925 | main () |
7098 | { |
3926 | { |
7099 | return f != dlopen; |
3927 | return f != sched_yield; |
7100 | ; |
3928 | ; |
7101 | return 0; |
3929 | return 0; |
7102 | } |
3930 | } |
7103 | _ACEOF |
3931 | _ACEOF |
7104 | rm -f conftest.$ac_objext conftest$ac_exeext |
3932 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7121 | (eval $ac_try) 2>&5 |
3949 | (eval $ac_try) 2>&5 |
7122 | ac_status=$? |
3950 | ac_status=$? |
7123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7124 | (exit $ac_status); }; }; then |
3952 | (exit $ac_status); }; }; then |
7125 | ac_cv_func_dlopen=yes |
3953 | ac_cv_func_sched_yield=yes |
7126 | else |
3954 | else |
7127 | echo "$as_me: failed program was:" >&5 |
3955 | echo "$as_me: failed program was:" >&5 |
7128 | sed 's/^/| /' conftest.$ac_ext >&5 |
3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
7129 | |
3957 | |
7130 | ac_cv_func_dlopen=no |
3958 | ac_cv_func_sched_yield=no |
7131 | fi |
3959 | fi |
7132 | rm -f conftest.err conftest.$ac_objext \ |
3960 | rm -f conftest.err conftest.$ac_objext \ |
7133 | conftest$ac_exeext conftest.$ac_ext |
3961 | conftest$ac_exeext conftest.$ac_ext |
7134 | fi |
3962 | fi |
7135 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
3963 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
7136 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
3964 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
7137 | if test $ac_cv_func_dlopen = yes; then |
3965 | if test $ac_cv_func_sched_yield = yes; then |
7138 | lt_cv_dlopen="dlopen" |
3966 | : |
7139 | else |
3967 | else |
7140 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
3968 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
7141 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
3969 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
7142 | if test "${ac_cv_func_shl_load+set}" = set; then |
3970 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
7143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7144 | else |
3972 | else |
7145 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7146 | /* confdefs.h. */ |
|
|
7147 | _ACEOF |
|
|
7148 | cat confdefs.h >>conftest.$ac_ext |
|
|
7149 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7150 | /* end confdefs.h. */ |
|
|
7151 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
7152 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7153 | #define shl_load innocuous_shl_load |
|
|
7154 | |
|
|
7155 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7156 | which can conflict with char shl_load (); below. |
|
|
7157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7158 | <limits.h> exists even on freestanding compilers. */ |
|
|
7159 | |
|
|
7160 | #ifdef __STDC__ |
|
|
7161 | # include <limits.h> |
|
|
7162 | #else |
|
|
7163 | # include <assert.h> |
|
|
7164 | #endif |
|
|
7165 | |
|
|
7166 | #undef shl_load |
|
|
7167 | |
|
|
7168 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7169 | #ifdef __cplusplus |
|
|
7170 | extern "C" |
|
|
7171 | { |
|
|
7172 | #endif |
|
|
7173 | /* We use char because int might match the return type of a gcc2 |
|
|
7174 | builtin and then its argument prototype would still apply. */ |
|
|
7175 | char shl_load (); |
|
|
7176 | /* The GNU C library defines this for functions which it implements |
|
|
7177 | to always fail with ENOSYS. Some functions are actually named |
|
|
7178 | something starting with __ and the normal name is an alias. */ |
|
|
7179 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7180 | choke me |
|
|
7181 | #else |
|
|
7182 | char (*f) () = shl_load; |
|
|
7183 | #endif |
|
|
7184 | #ifdef __cplusplus |
|
|
7185 | } |
|
|
7186 | #endif |
|
|
7187 | |
|
|
7188 | int |
|
|
7189 | main () |
|
|
7190 | { |
|
|
7191 | return f != shl_load; |
|
|
7192 | ; |
|
|
7193 | return 0; |
|
|
7194 | } |
|
|
7195 | _ACEOF |
|
|
7196 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7198 | (eval $ac_link) 2>conftest.er1 |
|
|
7199 | ac_status=$? |
|
|
7200 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7201 | rm -f conftest.er1 |
|
|
7202 | cat conftest.err >&5 |
|
|
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7204 | (exit $ac_status); } && |
|
|
7205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7207 | (eval $ac_try) 2>&5 |
|
|
7208 | ac_status=$? |
|
|
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7210 | (exit $ac_status); }; } && |
|
|
7211 | { ac_try='test -s conftest$ac_exeext' |
|
|
7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7213 | (eval $ac_try) 2>&5 |
|
|
7214 | ac_status=$? |
|
|
7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7216 | (exit $ac_status); }; }; then |
|
|
7217 | ac_cv_func_shl_load=yes |
|
|
7218 | else |
|
|
7219 | echo "$as_me: failed program was:" >&5 |
|
|
7220 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7221 | |
|
|
7222 | ac_cv_func_shl_load=no |
|
|
7223 | fi |
|
|
7224 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7225 | conftest$ac_exeext conftest.$ac_ext |
|
|
7226 | fi |
|
|
7227 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
7228 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
7229 | if test $ac_cv_func_shl_load = yes; then |
|
|
7230 | lt_cv_dlopen="shl_load" |
|
|
7231 | else |
|
|
7232 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
7233 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
7234 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7236 | else |
|
|
7237 | ac_check_lib_save_LIBS=$LIBS |
3973 | ac_check_lib_save_LIBS=$LIBS |
7238 | LIBS="-lsvld $LIBS" |
3974 | LIBS="-lrt $LIBS" |
7239 | cat >conftest.$ac_ext <<_ACEOF |
3975 | cat >conftest.$ac_ext <<_ACEOF |
7240 | /* confdefs.h. */ |
3976 | /* confdefs.h. */ |
7241 | _ACEOF |
3977 | _ACEOF |
7242 | cat confdefs.h >>conftest.$ac_ext |
3978 | cat confdefs.h >>conftest.$ac_ext |
7243 | cat >>conftest.$ac_ext <<_ACEOF |
3979 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
7247 | #ifdef __cplusplus |
3983 | #ifdef __cplusplus |
7248 | extern "C" |
3984 | extern "C" |
7249 | #endif |
3985 | #endif |
7250 | /* We use char because int might match the return type of a gcc2 |
3986 | /* We use char because int might match the return type of a gcc2 |
7251 | builtin and then its argument prototype would still apply. */ |
3987 | builtin and then its argument prototype would still apply. */ |
7252 | char dlopen (); |
3988 | char sched_yield (); |
7253 | int |
3989 | int |
7254 | main () |
3990 | main () |
7255 | { |
3991 | { |
7256 | dlopen (); |
3992 | sched_yield (); |
7257 | ; |
3993 | ; |
7258 | return 0; |
3994 | return 0; |
7259 | } |
3995 | } |
7260 | _ACEOF |
3996 | _ACEOF |
7261 | rm -f conftest.$ac_objext conftest$ac_exeext |
3997 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7278 | (eval $ac_try) 2>&5 |
4014 | (eval $ac_try) 2>&5 |
7279 | ac_status=$? |
4015 | ac_status=$? |
7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7281 | (exit $ac_status); }; }; then |
4017 | (exit $ac_status); }; }; then |
7282 | ac_cv_lib_svld_dlopen=yes |
4018 | ac_cv_lib_rt_sched_yield=yes |
7283 | else |
4019 | else |
7284 | echo "$as_me: failed program was:" >&5 |
4020 | echo "$as_me: failed program was:" >&5 |
7285 | sed 's/^/| /' conftest.$ac_ext >&5 |
4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
7286 | |
4022 | |
7287 | ac_cv_lib_svld_dlopen=no |
4023 | ac_cv_lib_rt_sched_yield=no |
7288 | fi |
4024 | fi |
7289 | rm -f conftest.err conftest.$ac_objext \ |
4025 | rm -f conftest.err conftest.$ac_objext \ |
7290 | conftest$ac_exeext conftest.$ac_ext |
4026 | conftest$ac_exeext conftest.$ac_ext |
7291 | LIBS=$ac_check_lib_save_LIBS |
4027 | LIBS=$ac_check_lib_save_LIBS |
7292 | fi |
4028 | fi |
7293 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
4029 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
7294 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
4030 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
7295 | if test $ac_cv_lib_svld_dlopen = yes; then |
4031 | if test $ac_cv_lib_rt_sched_yield = yes; then |
7296 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
4032 | LIBS="$LIBS -lrt" |
7297 | else |
4033 | fi |
|
|
4034 | |
|
|
4035 | fi |
|
|
4036 | |
|
|
4037 | |
7298 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
4038 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
7299 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
4039 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
7300 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7302 | else |
|
|
7303 | ac_check_lib_save_LIBS=$LIBS |
|
|
7304 | LIBS="-ldld $LIBS" |
|
|
7305 | cat >conftest.$ac_ext <<_ACEOF |
4040 | cat >conftest.$ac_ext <<_ACEOF |
7306 | /* confdefs.h. */ |
4041 | /* confdefs.h. */ |
7307 | _ACEOF |
4042 | _ACEOF |
7308 | cat confdefs.h >>conftest.$ac_ext |
4043 | cat confdefs.h >>conftest.$ac_ext |
7309 | cat >>conftest.$ac_ext <<_ACEOF |
4044 | cat >>conftest.$ac_ext <<_ACEOF |
7310 | /* end confdefs.h. */ |
4045 | /* end confdefs.h. */ |
7311 | |
4046 | #include <sched.h> |
7312 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7313 | #ifdef __cplusplus |
|
|
7314 | extern "C" |
|
|
7315 | #endif |
|
|
7316 | /* We use char because int might match the return type of a gcc2 |
|
|
7317 | builtin and then its argument prototype would still apply. */ |
|
|
7318 | char shl_load (); |
|
|
7319 | int |
4047 | int |
7320 | main () |
4048 | main () |
7321 | { |
4049 | { |
7322 | shl_load (); |
4050 | sched_yield () |
7323 | ; |
4051 | ; |
7324 | return 0; |
4052 | return 0; |
7325 | } |
4053 | } |
7326 | _ACEOF |
4054 | _ACEOF |
7327 | rm -f conftest.$ac_objext conftest$ac_exeext |
4055 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7344 | (eval $ac_try) 2>&5 |
4072 | (eval $ac_try) 2>&5 |
7345 | ac_status=$? |
4073 | ac_status=$? |
7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7347 | (exit $ac_status); }; }; then |
4075 | (exit $ac_status); }; }; then |
7348 | ac_cv_lib_dld_shl_load=yes |
4076 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4077 | echo "${ECHO_T}yes" >&6 |
|
|
4078 | |
|
|
4079 | cat >>confdefs.h <<\_ACEOF |
|
|
4080 | #define HAVE_SCHED_YIELD 1 |
|
|
4081 | _ACEOF |
|
|
4082 | |
7349 | else |
4083 | else |
7350 | echo "$as_me: failed program was:" >&5 |
4084 | echo "$as_me: failed program was:" >&5 |
7351 | sed 's/^/| /' conftest.$ac_ext >&5 |
4085 | sed 's/^/| /' conftest.$ac_ext >&5 |
7352 | |
4086 | |
7353 | ac_cv_lib_dld_shl_load=no |
4087 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4088 | echo "${ECHO_T}no" >&6 |
7354 | fi |
4089 | fi |
7355 | rm -f conftest.err conftest.$ac_objext \ |
4090 | rm -f conftest.err conftest.$ac_objext \ |
7356 | conftest$ac_exeext conftest.$ac_ext |
4091 | conftest$ac_exeext conftest.$ac_ext |
7357 | LIBS=$ac_check_lib_save_LIBS |
|
|
7358 | fi |
|
|
7359 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
7360 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
7361 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
7362 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
7363 | fi |
|
|
7364 | |
|
|
7365 | |
|
|
7366 | fi |
|
|
7367 | |
|
|
7368 | |
|
|
7369 | fi |
|
|
7370 | |
|
|
7371 | |
|
|
7372 | fi |
|
|
7373 | |
|
|
7374 | |
|
|
7375 | fi |
|
|
7376 | |
|
|
7377 | ;; |
|
|
7378 | esac |
|
|
7379 | |
|
|
7380 | if test "x$lt_cv_dlopen" != xno; then |
|
|
7381 | enable_dlopen=yes |
|
|
7382 | else |
|
|
7383 | enable_dlopen=no |
|
|
7384 | fi |
|
|
7385 | |
|
|
7386 | case "$lt_cv_dlopen" in |
|
|
7387 | dlopen) |
|
|
7388 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
7389 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
7390 | |
|
|
7391 | save_LDFLAGS="$LDFLAGS" |
|
|
7392 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
7393 | |
|
|
7394 | save_LIBS="$LIBS" |
|
|
7395 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
7396 | |
|
|
7397 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
7398 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
7399 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
7400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7401 | else |
|
|
7402 | if test "$cross_compiling" = yes; then : |
|
|
7403 | lt_cv_dlopen_self=cross |
|
|
7404 | else |
|
|
7405 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7406 | lt_status=$lt_dlunknown |
|
|
7407 | cat > conftest.$ac_ext <<EOF |
|
|
7408 | #line 7408 "configure" |
|
|
7409 | #include "confdefs.h" |
|
|
7410 | |
|
|
7411 | #if HAVE_DLFCN_H |
|
|
7412 | #include <dlfcn.h> |
|
|
7413 | #endif |
|
|
7414 | |
|
|
7415 | #include <stdio.h> |
|
|
7416 | |
|
|
7417 | #ifdef RTLD_GLOBAL |
|
|
7418 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7419 | #else |
|
|
7420 | # ifdef DL_GLOBAL |
|
|
7421 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7422 | # else |
|
|
7423 | # define LT_DLGLOBAL 0 |
|
|
7424 | # endif |
|
|
7425 | #endif |
|
|
7426 | |
|
|
7427 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7428 | find out it does not work in some platform. */ |
|
|
7429 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7430 | # ifdef RTLD_LAZY |
|
|
7431 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7432 | # else |
|
|
7433 | # ifdef DL_LAZY |
|
|
7434 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7435 | # else |
|
|
7436 | # ifdef RTLD_NOW |
|
|
7437 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7438 | # else |
|
|
7439 | # ifdef DL_NOW |
|
|
7440 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7441 | # else |
|
|
7442 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7443 | # endif |
|
|
7444 | # endif |
|
|
7445 | # endif |
|
|
7446 | # endif |
|
|
7447 | #endif |
|
|
7448 | |
|
|
7449 | #ifdef __cplusplus |
|
|
7450 | extern "C" void exit (int); |
|
|
7451 | #endif |
|
|
7452 | |
|
|
7453 | fnord() { int i=42;} |
|
|
7454 | main () |
|
|
7455 | { |
|
|
7456 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7457 | int status = $lt_dlunknown; |
|
|
7458 | |
|
|
7459 | if (self) |
|
|
7460 | { |
|
|
7461 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7462 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7463 | /* dlclose (self); */ |
|
|
7464 | } |
|
|
7465 | |
|
|
7466 | exit (status); |
|
|
7467 | } |
|
|
7468 | EOF |
|
|
7469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7470 | (eval $ac_link) 2>&5 |
|
|
7471 | ac_status=$? |
|
|
7472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7473 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7474 | (./conftest; exit; ) 2>/dev/null |
|
|
7475 | lt_status=$? |
|
|
7476 | case x$lt_status in |
|
|
7477 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7478 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7479 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
7480 | esac |
|
|
7481 | else : |
|
|
7482 | # compilation failed |
|
|
7483 | lt_cv_dlopen_self=no |
|
|
7484 | fi |
|
|
7485 | fi |
|
|
7486 | rm -fr conftest* |
|
|
7487 | |
|
|
7488 | |
|
|
7489 | fi |
|
|
7490 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
7491 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
7492 | |
|
|
7493 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
7494 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
7495 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
7496 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
7497 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7499 | else |
|
|
7500 | if test "$cross_compiling" = yes; then : |
|
|
7501 | lt_cv_dlopen_self_static=cross |
|
|
7502 | else |
|
|
7503 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7504 | lt_status=$lt_dlunknown |
|
|
7505 | cat > conftest.$ac_ext <<EOF |
|
|
7506 | #line 7506 "configure" |
|
|
7507 | #include "confdefs.h" |
|
|
7508 | |
|
|
7509 | #if HAVE_DLFCN_H |
|
|
7510 | #include <dlfcn.h> |
|
|
7511 | #endif |
|
|
7512 | |
|
|
7513 | #include <stdio.h> |
|
|
7514 | |
|
|
7515 | #ifdef RTLD_GLOBAL |
|
|
7516 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7517 | #else |
|
|
7518 | # ifdef DL_GLOBAL |
|
|
7519 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7520 | # else |
|
|
7521 | # define LT_DLGLOBAL 0 |
|
|
7522 | # endif |
|
|
7523 | #endif |
|
|
7524 | |
|
|
7525 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7526 | find out it does not work in some platform. */ |
|
|
7527 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7528 | # ifdef RTLD_LAZY |
|
|
7529 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7530 | # else |
|
|
7531 | # ifdef DL_LAZY |
|
|
7532 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7533 | # else |
|
|
7534 | # ifdef RTLD_NOW |
|
|
7535 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7536 | # else |
|
|
7537 | # ifdef DL_NOW |
|
|
7538 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7539 | # else |
|
|
7540 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7541 | # endif |
|
|
7542 | # endif |
|
|
7543 | # endif |
|
|
7544 | # endif |
|
|
7545 | #endif |
|
|
7546 | |
|
|
7547 | #ifdef __cplusplus |
|
|
7548 | extern "C" void exit (int); |
|
|
7549 | #endif |
|
|
7550 | |
|
|
7551 | fnord() { int i=42;} |
|
|
7552 | main () |
|
|
7553 | { |
|
|
7554 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7555 | int status = $lt_dlunknown; |
|
|
7556 | |
|
|
7557 | if (self) |
|
|
7558 | { |
|
|
7559 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7560 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7561 | /* dlclose (self); */ |
|
|
7562 | } |
|
|
7563 | |
|
|
7564 | exit (status); |
|
|
7565 | } |
|
|
7566 | EOF |
|
|
7567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7568 | (eval $ac_link) 2>&5 |
|
|
7569 | ac_status=$? |
|
|
7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7571 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7572 | (./conftest; exit; ) 2>/dev/null |
|
|
7573 | lt_status=$? |
|
|
7574 | case x$lt_status in |
|
|
7575 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7576 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7577 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7578 | esac |
|
|
7579 | else : |
|
|
7580 | # compilation failed |
|
|
7581 | lt_cv_dlopen_self_static=no |
|
|
7582 | fi |
|
|
7583 | fi |
|
|
7584 | rm -fr conftest* |
|
|
7585 | |
|
|
7586 | |
|
|
7587 | fi |
|
|
7588 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7589 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7590 | fi |
|
|
7591 | |
|
|
7592 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7593 | LDFLAGS="$save_LDFLAGS" |
|
|
7594 | LIBS="$save_LIBS" |
|
|
7595 | ;; |
|
|
7596 | esac |
|
|
7597 | |
|
|
7598 | case "$lt_cv_dlopen_self" in |
|
|
7599 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7600 | *) enable_dlopen_self=unknown ;; |
|
|
7601 | esac |
|
|
7602 | |
|
|
7603 | case "$lt_cv_dlopen_self_static" in |
|
|
7604 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7605 | *) enable_dlopen_self_static=unknown ;; |
|
|
7606 | esac |
|
|
7607 | fi |
|
|
7608 | |
|
|
7609 | |
|
|
7610 | ## FIXME: this should be a separate macro |
|
|
7611 | ## |
|
|
7612 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7613 | case "$archive_cmds" in |
|
|
7614 | *'~'*) |
|
|
7615 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7616 | ;; |
|
|
7617 | '$CC '*) |
|
|
7618 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7619 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7620 | # to ld, don't add -lc before -lgcc. |
|
|
7621 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7622 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7623 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7625 | else |
|
|
7626 | $rm conftest* |
|
|
7627 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7628 | |
|
|
7629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7630 | (eval $ac_compile) 2>&5 |
|
|
7631 | ac_status=$? |
|
|
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7633 | (exit $ac_status); }; then |
|
|
7634 | soname=conftest |
|
|
7635 | lib=conftest |
|
|
7636 | libobjs=conftest.$ac_objext |
|
|
7637 | deplibs= |
|
|
7638 | wl=$lt_cv_prog_cc_wl |
|
|
7639 | compiler_flags=-v |
|
|
7640 | linker_flags=-v |
|
|
7641 | verstring= |
|
|
7642 | output_objdir=. |
|
|
7643 | libname=conftest |
|
|
7644 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7645 | allow_undefined_flag= |
|
|
7646 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7647 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7648 | ac_status=$? |
|
|
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7650 | (exit $ac_status); } |
|
|
7651 | then |
|
|
7652 | lt_cv_archive_cmds_need_lc=no |
|
|
7653 | else |
|
|
7654 | lt_cv_archive_cmds_need_lc=yes |
|
|
7655 | fi |
|
|
7656 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7657 | else |
|
|
7658 | cat conftest.err 1>&5 |
|
|
7659 | fi |
|
|
7660 | fi |
|
|
7661 | |
|
|
7662 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7663 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7664 | ;; |
|
|
7665 | esac |
|
|
7666 | fi |
|
|
7667 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7668 | ## |
|
|
7669 | ## END FIXME |
|
|
7670 | |
|
|
7671 | ## FIXME: this should be a separate macro |
|
|
7672 | ## |
|
|
7673 | # The second clause should only fire when bootstrapping the |
|
|
7674 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7675 | # with your package, and you will get complaints that there are |
|
|
7676 | # no rules to generate ltmain.sh. |
|
|
7677 | if test -f "$ltmain"; then |
|
|
7678 | : |
|
|
7679 | else |
|
|
7680 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7681 | # `config.status --recheck' to rerun these tests and create the |
|
|
7682 | # libtool script then. |
|
|
7683 | test -f Makefile && make "$ltmain" |
|
|
7684 | fi |
|
|
7685 | |
|
|
7686 | if test -f "$ltmain"; then |
|
|
7687 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7688 | $rm -f "${ofile}T" |
|
|
7689 | |
|
|
7690 | echo creating $ofile |
|
|
7691 | |
|
|
7692 | # Now quote all the things that may contain metacharacters while being |
|
|
7693 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7694 | # variables and quote the copies for generation of the libtool script. |
|
|
7695 | for var in echo old_CC old_CFLAGS \ |
|
|
7696 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7697 | reload_flag reload_cmds wl \ |
|
|
7698 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7699 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7700 | library_names_spec soname_spec \ |
|
|
7701 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7702 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7703 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7704 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7705 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7706 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7707 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7708 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7709 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7710 | |
|
|
7711 | case "$var" in |
|
|
7712 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7713 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7714 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7715 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7716 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7717 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7718 | # Double-quote double-evaled strings. |
|
|
7719 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7720 | ;; |
|
|
7721 | *) |
|
|
7722 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7723 | ;; |
|
|
7724 | esac |
|
|
7725 | done |
|
|
7726 | |
|
|
7727 | cat <<__EOF__ > "${ofile}T" |
|
|
7728 | #! $SHELL |
|
|
7729 | |
|
|
7730 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7731 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7732 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7733 | # |
|
|
7734 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7735 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7736 | # |
|
|
7737 | # This program is free software; you can redistribute it and/or modify |
|
|
7738 | # it under the terms of the GNU General Public License as published by |
|
|
7739 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7740 | # (at your option) any later version. |
|
|
7741 | # |
|
|
7742 | # This program is distributed in the hope that it will be useful, but |
|
|
7743 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7744 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7745 | # General Public License for more details. |
|
|
7746 | # |
|
|
7747 | # You should have received a copy of the GNU General Public License |
|
|
7748 | # along with this program; if not, write to the Free Software |
|
|
7749 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7750 | # |
|
|
7751 | # As a special exception to the GNU General Public License, if you |
|
|
7752 | # distribute this file as part of a program that contains a |
|
|
7753 | # configuration script generated by Autoconf, you may include it under |
|
|
7754 | # the same distribution terms that you use for the rest of that program. |
|
|
7755 | |
|
|
7756 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7757 | Xsed="sed -e s/^X//" |
|
|
7758 | |
|
|
7759 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7760 | # if CDPATH is set. |
|
|
7761 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7762 | |
|
|
7763 | # ### BEGIN LIBTOOL CONFIG |
|
|
7764 | |
|
|
7765 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7766 | |
|
|
7767 | # Shell to use when invoking shell scripts. |
|
|
7768 | SHELL=$lt_SHELL |
|
|
7769 | |
|
|
7770 | # Whether or not to build shared libraries. |
|
|
7771 | build_libtool_libs=$enable_shared |
|
|
7772 | |
|
|
7773 | # Whether or not to add -lc for building shared libraries. |
|
|
7774 | build_libtool_need_lc=$need_lc |
|
|
7775 | |
|
|
7776 | # Whether or not to build static libraries. |
|
|
7777 | build_old_libs=$enable_static |
|
|
7778 | |
|
|
7779 | # Whether or not to optimize for fast installation. |
|
|
7780 | fast_install=$enable_fast_install |
|
|
7781 | |
|
|
7782 | # The host system. |
|
|
7783 | host_alias=$host_alias |
|
|
7784 | host=$host |
|
|
7785 | |
|
|
7786 | # An echo program that does not interpret backslashes. |
|
|
7787 | echo=$lt_echo |
|
|
7788 | |
|
|
7789 | # The archiver. |
|
|
7790 | AR=$lt_AR |
|
|
7791 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7792 | |
|
|
7793 | # The default C compiler. |
|
|
7794 | CC=$lt_CC |
|
|
7795 | |
|
|
7796 | # Is the compiler the GNU C compiler? |
|
|
7797 | with_gcc=$GCC |
|
|
7798 | |
|
|
7799 | # The linker used to build libraries. |
|
|
7800 | LD=$lt_LD |
|
|
7801 | |
|
|
7802 | # Whether we need hard or soft links. |
|
|
7803 | LN_S=$lt_LN_S |
|
|
7804 | |
|
|
7805 | # A BSD-compatible nm program. |
|
|
7806 | NM=$lt_NM |
|
|
7807 | |
|
|
7808 | # A symbol stripping program |
|
|
7809 | STRIP=$STRIP |
|
|
7810 | |
|
|
7811 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7812 | MAGIC_CMD=$MAGIC_CMD |
|
|
7813 | |
|
|
7814 | # Used on cygwin: DLL creation program. |
|
|
7815 | DLLTOOL="$DLLTOOL" |
|
|
7816 | |
|
|
7817 | # Used on cygwin: object dumper. |
|
|
7818 | OBJDUMP="$OBJDUMP" |
|
|
7819 | |
|
|
7820 | # Used on cygwin: assembler. |
|
|
7821 | AS="$AS" |
|
|
7822 | |
|
|
7823 | # The name of the directory that contains temporary libtool files. |
|
|
7824 | objdir=$objdir |
|
|
7825 | |
|
|
7826 | # How to create reloadable object files. |
|
|
7827 | reload_flag=$lt_reload_flag |
|
|
7828 | reload_cmds=$lt_reload_cmds |
|
|
7829 | |
|
|
7830 | # How to pass a linker flag through the compiler. |
|
|
7831 | wl=$lt_wl |
|
|
7832 | |
|
|
7833 | # Object file suffix (normally "o"). |
|
|
7834 | objext="$ac_objext" |
|
|
7835 | |
|
|
7836 | # Old archive suffix (normally "a"). |
|
|
7837 | libext="$libext" |
|
|
7838 | |
|
|
7839 | # Executable file suffix (normally ""). |
|
|
7840 | exeext="$exeext" |
|
|
7841 | |
|
|
7842 | # Additional compiler flags for building library objects. |
|
|
7843 | pic_flag=$lt_pic_flag |
|
|
7844 | pic_mode=$pic_mode |
|
|
7845 | |
|
|
7846 | # Does compiler simultaneously support -c and -o options? |
|
|
7847 | compiler_c_o=$lt_compiler_c_o |
|
|
7848 | |
|
|
7849 | # Can we write directly to a .lo ? |
|
|
7850 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7851 | |
|
|
7852 | # Must we lock files when doing compilation ? |
|
|
7853 | need_locks=$lt_need_locks |
|
|
7854 | |
|
|
7855 | # Do we need the lib prefix for modules? |
|
|
7856 | need_lib_prefix=$need_lib_prefix |
|
|
7857 | |
|
|
7858 | # Do we need a version for libraries? |
|
|
7859 | need_version=$need_version |
|
|
7860 | |
|
|
7861 | # Whether dlopen is supported. |
|
|
7862 | dlopen_support=$enable_dlopen |
|
|
7863 | |
|
|
7864 | # Whether dlopen of programs is supported. |
|
|
7865 | dlopen_self=$enable_dlopen_self |
|
|
7866 | |
|
|
7867 | # Whether dlopen of statically linked programs is supported. |
|
|
7868 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7869 | |
|
|
7870 | # Compiler flag to prevent dynamic linking. |
|
|
7871 | link_static_flag=$lt_link_static_flag |
|
|
7872 | |
|
|
7873 | # Compiler flag to turn off builtin functions. |
|
|
7874 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7875 | |
|
|
7876 | # Compiler flag to allow reflexive dlopens. |
|
|
7877 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7878 | |
|
|
7879 | # Compiler flag to generate shared objects directly from archives. |
|
|
7880 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7881 | |
|
|
7882 | # Compiler flag to generate thread-safe objects. |
|
|
7883 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7884 | |
|
|
7885 | # Library versioning type. |
|
|
7886 | version_type=$version_type |
|
|
7887 | |
|
|
7888 | # Format of library name prefix. |
|
|
7889 | libname_spec=$lt_libname_spec |
|
|
7890 | |
|
|
7891 | # List of archive names. First name is the real one, the rest are links. |
|
|
7892 | # The last name is the one that the linker finds with -lNAME. |
|
|
7893 | library_names_spec=$lt_library_names_spec |
|
|
7894 | |
|
|
7895 | # The coded name of the library, if different from the real name. |
|
|
7896 | soname_spec=$lt_soname_spec |
|
|
7897 | |
|
|
7898 | # Commands used to build and install an old-style archive. |
|
|
7899 | RANLIB=$lt_RANLIB |
|
|
7900 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7901 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7902 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7903 | |
|
|
7904 | # Create an old-style archive from a shared archive. |
|
|
7905 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7906 | |
|
|
7907 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7908 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7909 | |
|
|
7910 | # Commands used to build and install a shared archive. |
|
|
7911 | archive_cmds=$lt_archive_cmds |
|
|
7912 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7913 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7914 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7915 | |
|
|
7916 | # Commands to strip libraries. |
|
|
7917 | old_striplib=$lt_old_striplib |
|
|
7918 | striplib=$lt_striplib |
|
|
7919 | |
|
|
7920 | # Method to check whether dependent libraries are shared objects. |
|
|
7921 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7922 | |
|
|
7923 | # Command to use when deplibs_check_method == file_magic. |
|
|
7924 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7925 | |
|
|
7926 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7927 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7928 | |
|
|
7929 | # Flag that forces no undefined symbols. |
|
|
7930 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7931 | |
|
|
7932 | # Commands used to finish a libtool library installation in a directory. |
|
|
7933 | finish_cmds=$lt_finish_cmds |
|
|
7934 | |
|
|
7935 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7936 | finish_eval=$lt_finish_eval |
|
|
7937 | |
|
|
7938 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7939 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7940 | |
|
|
7941 | # Transform the output of nm in a proper C declaration |
|
|
7942 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7943 | |
|
|
7944 | # This is the shared library runtime path variable. |
|
|
7945 | runpath_var=$runpath_var |
|
|
7946 | |
|
|
7947 | # This is the shared library path variable. |
|
|
7948 | shlibpath_var=$shlibpath_var |
|
|
7949 | |
|
|
7950 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7951 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7952 | |
|
|
7953 | # How to hardcode a shared library path into an executable. |
|
|
7954 | hardcode_action=$hardcode_action |
|
|
7955 | |
|
|
7956 | # Whether we should hardcode library paths into libraries. |
|
|
7957 | hardcode_into_libs=$hardcode_into_libs |
|
|
7958 | |
|
|
7959 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7960 | # This must work even if \$libdir does not exist. |
|
|
7961 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7962 | |
|
|
7963 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7964 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7965 | |
|
|
7966 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7967 | # resulting binary. |
|
|
7968 | hardcode_direct=$hardcode_direct |
|
|
7969 | |
|
|
7970 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7971 | # resulting binary. |
|
|
7972 | hardcode_minus_L=$hardcode_minus_L |
|
|
7973 | |
|
|
7974 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7975 | # the resulting binary. |
|
|
7976 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7977 | |
|
|
7978 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7979 | # restored at relink time. |
|
|
7980 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7981 | |
|
|
7982 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7983 | link_all_deplibs=$link_all_deplibs |
|
|
7984 | |
|
|
7985 | # Compile-time system search path for libraries |
|
|
7986 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7987 | |
|
|
7988 | # Run-time system search path for libraries |
|
|
7989 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7990 | |
|
|
7991 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7992 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7993 | |
|
|
7994 | # Set to yes if exported symbols are required. |
|
|
7995 | always_export_symbols=$always_export_symbols |
|
|
7996 | |
|
|
7997 | # The commands to list exported symbols. |
|
|
7998 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
7999 | |
|
|
8000 | # The commands to extract the exported symbol list from a shared archive. |
|
|
8001 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
8002 | |
|
|
8003 | # Symbols that should not be listed in the preloaded symbols. |
|
|
8004 | exclude_expsyms=$lt_exclude_expsyms |
|
|
8005 | |
|
|
8006 | # Symbols that must always be exported. |
|
|
8007 | include_expsyms=$lt_include_expsyms |
|
|
8008 | |
|
|
8009 | # ### END LIBTOOL CONFIG |
|
|
8010 | |
|
|
8011 | __EOF__ |
|
|
8012 | |
|
|
8013 | case "$host_os" in |
|
|
8014 | aix3*) |
|
|
8015 | cat <<\EOF >> "${ofile}T" |
|
|
8016 | |
|
|
8017 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
8018 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
8019 | # vanish in a puff of smoke. |
|
|
8020 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
8021 | COLLECT_NAMES= |
|
|
8022 | export COLLECT_NAMES |
|
|
8023 | fi |
|
|
8024 | EOF |
|
|
8025 | ;; |
|
|
8026 | esac |
|
|
8027 | |
|
|
8028 | case "$host_os" in |
|
|
8029 | cygwin* | mingw* | pw32* | os2*) |
|
|
8030 | cat <<'EOF' >> "${ofile}T" |
|
|
8031 | # This is a source program that is used to create dlls on Windows |
|
|
8032 | # Don't remove nor modify the starting and closing comments |
|
|
8033 | # /* ltdll.c starts here */ |
|
|
8034 | # #define WIN32_LEAN_AND_MEAN |
|
|
8035 | # #include <windows.h> |
|
|
8036 | # #undef WIN32_LEAN_AND_MEAN |
|
|
8037 | # #include <stdio.h> |
|
|
8038 | # |
|
|
8039 | # #ifndef __CYGWIN__ |
|
|
8040 | # # ifdef __CYGWIN32__ |
|
|
8041 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
8042 | # # endif |
|
|
8043 | # #endif |
|
|
8044 | # |
|
|
8045 | # #ifdef __cplusplus |
|
|
8046 | # extern "C" { |
|
|
8047 | # #endif |
|
|
8048 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
8049 | # #ifdef __cplusplus |
|
|
8050 | # } |
|
|
8051 | # #endif |
|
|
8052 | # |
|
|
8053 | # #ifdef __CYGWIN__ |
|
|
8054 | # #include <cygwin/cygwin_dll.h> |
|
|
8055 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
8056 | # #endif |
|
|
8057 | # HINSTANCE __hDllInstance_base; |
|
|
8058 | # |
|
|
8059 | # BOOL APIENTRY |
|
|
8060 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
8061 | # { |
|
|
8062 | # __hDllInstance_base = hInst; |
|
|
8063 | # return TRUE; |
|
|
8064 | # } |
|
|
8065 | # /* ltdll.c ends here */ |
|
|
8066 | # This is a source program that is used to create import libraries |
|
|
8067 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
8068 | # starting and closing comments |
|
|
8069 | # /* impgen.c starts here */ |
|
|
8070 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
8071 | # |
|
|
8072 | # This file is part of GNU libtool. |
|
|
8073 | # |
|
|
8074 | # This program is free software; you can redistribute it and/or modify |
|
|
8075 | # it under the terms of the GNU General Public License as published by |
|
|
8076 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8077 | # (at your option) any later version. |
|
|
8078 | # |
|
|
8079 | # This program is distributed in the hope that it will be useful, |
|
|
8080 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8081 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
8082 | # GNU General Public License for more details. |
|
|
8083 | # |
|
|
8084 | # You should have received a copy of the GNU General Public License |
|
|
8085 | # along with this program; if not, write to the Free Software |
|
|
8086 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8087 | # */ |
|
|
8088 | # |
|
|
8089 | # #include <stdio.h> /* for printf() */ |
|
|
8090 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
8091 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
8092 | # #include <string.h> /* for strdup() */ |
|
|
8093 | # |
|
|
8094 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
8095 | # #ifndef O_BINARY |
|
|
8096 | # #define O_BINARY 0 |
|
|
8097 | # #endif |
|
|
8098 | # |
|
|
8099 | # static unsigned int |
|
|
8100 | # pe_get16 (fd, offset) |
|
|
8101 | # int fd; |
|
|
8102 | # int offset; |
|
|
8103 | # { |
|
|
8104 | # unsigned char b[2]; |
|
|
8105 | # lseek (fd, offset, SEEK_SET); |
|
|
8106 | # read (fd, b, 2); |
|
|
8107 | # return b[0] + (b[1]<<8); |
|
|
8108 | # } |
|
|
8109 | # |
|
|
8110 | # static unsigned int |
|
|
8111 | # pe_get32 (fd, offset) |
|
|
8112 | # int fd; |
|
|
8113 | # int offset; |
|
|
8114 | # { |
|
|
8115 | # unsigned char b[4]; |
|
|
8116 | # lseek (fd, offset, SEEK_SET); |
|
|
8117 | # read (fd, b, 4); |
|
|
8118 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8119 | # } |
|
|
8120 | # |
|
|
8121 | # static unsigned int |
|
|
8122 | # pe_as32 (ptr) |
|
|
8123 | # void *ptr; |
|
|
8124 | # { |
|
|
8125 | # unsigned char *b = ptr; |
|
|
8126 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8127 | # } |
|
|
8128 | # |
|
|
8129 | # int |
|
|
8130 | # main (argc, argv) |
|
|
8131 | # int argc; |
|
|
8132 | # char *argv[]; |
|
|
8133 | # { |
|
|
8134 | # int dll; |
|
|
8135 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
8136 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
8137 | # unsigned long name_rvas, nexp; |
|
|
8138 | # unsigned char *expdata, *erva; |
|
|
8139 | # char *filename, *dll_name; |
|
|
8140 | # |
|
|
8141 | # filename = argv[1]; |
|
|
8142 | # |
|
|
8143 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
8144 | # if (!dll) |
|
|
8145 | # return 1; |
|
|
8146 | # |
|
|
8147 | # dll_name = filename; |
|
|
8148 | # |
|
|
8149 | # for (i=0; filename[i]; i++) |
|
|
8150 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
8151 | # dll_name = filename + i +1; |
|
|
8152 | # |
|
|
8153 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
8154 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
8155 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
8156 | # |
|
|
8157 | # if (num_entries < 1) /* no exports */ |
|
|
8158 | # return 1; |
|
|
8159 | # |
|
|
8160 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
8161 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
8162 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
8163 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
8164 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
8165 | # |
|
|
8166 | # expptr = 0; |
|
|
8167 | # for (i = 0; i < nsections; i++) |
|
|
8168 | # { |
|
|
8169 | # char sname[8]; |
|
|
8170 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
8171 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
8172 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
8173 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
8174 | # lseek(dll, secptr1, SEEK_SET); |
|
|
8175 | # read(dll, sname, 8); |
|
|
8176 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
8177 | # { |
|
|
8178 | # expptr = fptr + (export_rva - vaddr); |
|
|
8179 | # if (export_rva + export_size > vaddr + vsize) |
|
|
8180 | # export_size = vsize - (export_rva - vaddr); |
|
|
8181 | # break; |
|
|
8182 | # } |
|
|
8183 | # } |
|
|
8184 | # |
|
|
8185 | # expdata = (unsigned char*)malloc(export_size); |
|
|
8186 | # lseek (dll, expptr, SEEK_SET); |
|
|
8187 | # read (dll, expdata, export_size); |
|
|
8188 | # erva = expdata - export_rva; |
|
|
8189 | # |
|
|
8190 | # nexp = pe_as32 (expdata+24); |
|
|
8191 | # name_rvas = pe_as32 (expdata+32); |
|
|
8192 | # |
|
|
8193 | # printf ("EXPORTS\n"); |
|
|
8194 | # for (i = 0; i<nexp; i++) |
|
|
8195 | # { |
|
|
8196 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
8197 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
8198 | # } |
|
|
8199 | # |
|
|
8200 | # return 0; |
|
|
8201 | # } |
|
|
8202 | # /* impgen.c ends here */ |
|
|
8203 | |
|
|
8204 | EOF |
|
|
8205 | ;; |
|
|
8206 | esac |
|
|
8207 | |
|
|
8208 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
8209 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
8210 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
8211 | # is reportedly fixed, but why not run on old versions too? |
|
|
8212 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
8213 | |
|
|
8214 | mv -f "${ofile}T" "$ofile" || \ |
|
|
8215 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
8216 | chmod +x "$ofile" |
|
|
8217 | fi |
|
|
8218 | ## |
|
|
8219 | ## END FIXME |
|
|
8220 | |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | |
|
|
8225 | # This can be used to rebuild libtool when needed |
|
|
8226 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
8227 | |
|
|
8228 | # Always use our own libtool. |
|
|
8229 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
8230 | |
|
|
8231 | # Prevent multiple expansion |
|
|
8232 | |
4092 | |
8233 | |
4093 | |
8234 | MALLOC_TYPE=S |
4094 | MALLOC_TYPE=S |
8235 | support_addstrings=no |
4095 | |
8236 | support_frills=no |
4096 | support_frills=yes |
8237 | support_linespace=no |
|
|
8238 | support_inheritpixmap=no |
4097 | support_inheritpixmap=yes |
8239 | support_tinting=no |
4098 | support_tinting=yes |
8240 | support_fading=no |
4099 | support_fading=yes |
8241 | support_keepscrolling=no |
4100 | support_keepscrolling=yes |
8242 | support_selectionscrolling=no |
4101 | support_selectionscrolling=yes |
8243 | support_menubar=no |
|
|
8244 | support_mousewheel=no |
4102 | support_mousewheel=yes |
8245 | support_mouseslipwheel=no |
4103 | support_mouseslipwheel=yes |
8246 | support_utmp=no |
4104 | support_utmp=yes |
8247 | support_wtmp=no |
4105 | support_wtmp=yes |
8248 | support_lastlog=no |
4106 | support_lastlog=yes |
8249 | support_cursor_blink=no |
|
|
8250 | support_text_blink=no |
4107 | support_text_blink=yes |
8251 | support_pointer_blank=no |
4108 | support_pointer_blank=yes |
8252 | support_scroll_rxvt=no |
4109 | support_scroll_rxvt=yes |
8253 | support_scroll_next=no |
4110 | support_scroll_next=yes |
8254 | support_scroll_xterm=no |
4111 | support_scroll_xterm=yes |
8255 | support_scroll_plain=no |
4112 | support_scroll_plain=yes |
8256 | support_xim=no |
4113 | support_xim=yes |
8257 | support_xpm=no |
4114 | support_xpm=yes |
8258 | support_xft=no |
4115 | support_xft=yes |
8259 | support_unicode3=no |
4116 | support_unicode3=no |
8260 | support_combining=no |
4117 | support_combining=yes |
8261 | support_8bitctrls=no |
4118 | support_8bitctrls=no |
|
|
4119 | support_iso14755=yes |
|
|
4120 | support_styles=yes |
|
|
4121 | support_perl=yes |
8262 | codesets= |
4122 | codesets=all |
8263 | |
4123 | |
8264 | |
4124 | |
8265 | if test "x$enable_shared" = xyes; then |
4125 | if test "x$enable_shared" = xyes; then |
8266 | |
4126 | |
8267 | cat >>confdefs.h <<\_ACEOF |
4127 | cat >>confdefs.h <<\_ACEOF |
… | |
… | |
8273 | |
4133 | |
8274 | |
4134 | |
8275 | # Check whether --enable-everything or --disable-everything was given. |
4135 | # Check whether --enable-everything or --disable-everything was given. |
8276 | if test "${enable_everything+set}" = set; then |
4136 | if test "${enable_everything+set}" = set; then |
8277 | enableval="$enable_everything" |
4137 | enableval="$enable_everything" |
|
|
4138 | |
|
|
4139 | if test x$enableval = xno; then |
|
|
4140 | support_24bit=no |
|
|
4141 | support_frills=no |
|
|
4142 | support_inheritpixmap=no |
|
|
4143 | support_tinting=no |
|
|
4144 | support_fading=no |
|
|
4145 | support_keepscrolling=no |
|
|
4146 | support_selectionscrolling=no |
|
|
4147 | support_lastlog=no |
|
|
4148 | support_mousewheel=no |
|
|
4149 | support_mouseslipwheel=no |
|
|
4150 | support_text_blink=no |
|
|
4151 | support_pointer_blank=no |
|
|
4152 | support_scroll_rxvt=no |
|
|
4153 | support_scroll_next=no |
|
|
4154 | support_scroll_xterm=no |
|
|
4155 | support_scroll_plain=no |
|
|
4156 | support_utmp=no |
|
|
4157 | support_wtmp=no |
|
|
4158 | support_xim=no |
|
|
4159 | support_xpm=no |
|
|
4160 | support_xft=no |
|
|
4161 | support_unicode3=no |
|
|
4162 | support_combining=no |
|
|
4163 | support_8bitctrls=no |
|
|
4164 | support_iso14755=no |
|
|
4165 | support_styles=no |
|
|
4166 | support_perl=no |
|
|
4167 | codesets= |
|
|
4168 | fi |
8278 | if test x$enableval = xyes; then |
4169 | if test x$enableval = xyes; then |
8279 | support_24bit=yes |
4170 | support_24bit=yes |
8280 | support_frills=yes |
4171 | support_frills=yes |
8281 | support_linespace=yes |
|
|
8282 | support_inheritpixmap=yes |
4172 | support_inheritpixmap=yes |
8283 | support_tinting=yes |
4173 | support_tinting=yes |
8284 | support_fading=yes |
4174 | support_fading=yes |
8285 | support_keepscrolling=yes |
4175 | support_keepscrolling=yes |
8286 | support_selectionscrolling=yes |
4176 | support_selectionscrolling=yes |
8287 | support_lastlog=yes |
4177 | support_lastlog=yes |
8288 | support_menubar=yes |
|
|
8289 | support_mousewheel=yes |
4178 | support_mousewheel=yes |
8290 | support_mouseslipwheel=yes |
4179 | support_mouseslipwheel=yes |
8291 | support_cursor_blink=yes |
|
|
8292 | support_text_blink=yes |
4180 | support_text_blink=yes |
8293 | support_pointer_blank=yes |
4181 | support_pointer_blank=yes |
8294 | support_scroll_rxvt=yes |
4182 | support_scroll_rxvt=yes |
8295 | support_scroll_next=yes |
4183 | support_scroll_next=yes |
8296 | support_scroll_xterm=yes |
4184 | support_scroll_xterm=yes |
8297 | support_scroll_plain=yes |
4185 | support_scroll_plain=yes |
8298 | support_utmp=yes |
4186 | support_utmp=yes |
8299 | support_wtmp=yes |
4187 | support_wtmp=yes |
8300 | support_xim=yes |
4188 | support_xim=yes |
8301 | support_xpm=yes |
4189 | support_xpm=yes |
8302 | support_xft=yes |
4190 | support_xft=yes |
8303 | support_unicode3=yes |
4191 | support_unicode3=yes |
8304 | support_combining=yes |
4192 | support_combining=yes |
8305 | #support_8bitctrls=yes |
4193 | #support_8bitctrls=yes |
|
|
4194 | support_iso14755=yes |
|
|
4195 | support_styles=yes |
|
|
4196 | support_perl=yes |
8306 | codesets=all |
4197 | codesets=all |
8307 | fi |
4198 | fi |
|
|
4199 | |
8308 | fi; |
4200 | fi; |
8309 | |
4201 | |
8310 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
4202 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
8311 | if test "${enable_unicode3+set}" = set; then |
4203 | if test "${enable_unicode3+set}" = set; then |
8312 | enableval="$enable_unicode3" |
4204 | enableval="$enable_unicode3" |
8313 | if test x$enableval = xyes -o x$enableval = xno; then |
4205 | if test x$enableval = xyes -o x$enableval = xno; then |
8314 | support_unicode3=yes |
4206 | support_unicode3=$enableval |
8315 | fi |
4207 | fi |
8316 | fi; |
4208 | fi; |
8317 | |
4209 | |
8318 | # Check whether --enable-combining or --disable-combining was given. |
4210 | # Check whether --enable-combining or --disable-combining was given. |
8319 | if test "${enable_combining+set}" = set; then |
4211 | if test "${enable_combining+set}" = set; then |
8320 | enableval="$enable_combining" |
4212 | enableval="$enable_combining" |
8321 | if test x$enableval = xyes -o x$enableval = xno; then |
4213 | if test x$enableval = xyes -o x$enableval = xno; then |
8322 | support_combining=yes |
4214 | support_combining=$enableval |
8323 | fi |
4215 | fi |
8324 | fi; |
4216 | fi; |
8325 | |
4217 | |
8326 | # Check whether --enable-xft or --disable-xft was given. |
4218 | # Check whether --enable-xft or --disable-xft was given. |
8327 | if test "${enable_xft+set}" = set; then |
4219 | if test "${enable_xft+set}" = set; then |
8328 | enableval="$enable_xft" |
4220 | enableval="$enable_xft" |
8329 | if test x$enableval = xyes -o x$enableval = xno; then |
4221 | if test x$enableval = xyes -o x$enableval = xno; then |
8330 | support_xft=yes |
4222 | support_xft=$enableval |
|
|
4223 | fi |
|
|
4224 | fi; |
|
|
4225 | |
|
|
4226 | # Check whether --enable-font-styles or --disable-font-styles was given. |
|
|
4227 | if test "${enable_font_styles+set}" = set; then |
|
|
4228 | enableval="$enable_font_styles" |
|
|
4229 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4230 | support_styles=$enableval |
8331 | fi |
4231 | fi |
8332 | fi; |
4232 | fi; |
8333 | |
4233 | |
8334 | # Check whether --enable-utmp or --disable-utmp was given. |
4234 | # Check whether --enable-utmp or --disable-utmp was given. |
8335 | if test "${enable_utmp+set}" = set; then |
4235 | if test "${enable_utmp+set}" = set; then |
… | |
… | |
8385 | if test x$enableval = xyes -o x$enableval = xno; then |
4285 | if test x$enableval = xyes -o x$enableval = xno; then |
8386 | support_fading=$enableval |
4286 | support_fading=$enableval |
8387 | fi |
4287 | fi |
8388 | fi; |
4288 | fi; |
8389 | |
4289 | |
8390 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
8391 | if test "${enable_menubar+set}" = set; then |
|
|
8392 | enableval="$enable_menubar" |
|
|
8393 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8394 | support_menubar=$enableval |
|
|
8395 | fi |
|
|
8396 | fi; |
|
|
8397 | |
|
|
8398 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4290 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
8399 | if test "${enable_rxvt_scroll+set}" = set; then |
4291 | if test "${enable_rxvt_scroll+set}" = set; then |
8400 | enableval="$enable_rxvt_scroll" |
4292 | enableval="$enable_rxvt_scroll" |
8401 | if test x$enableval = xyes -o x$enableval = xno; then |
4293 | if test x$enableval = xyes -o x$enableval = xno; then |
8402 | support_scroll_rxvt=$enableval |
4294 | support_scroll_rxvt=$enableval |
… | |
… | |
8417 | if test x$enableval = xyes -o x$enableval = xno; then |
4309 | if test x$enableval = xyes -o x$enableval = xno; then |
8418 | support_scroll_xterm=$enableval |
4310 | support_scroll_xterm=$enableval |
8419 | fi |
4311 | fi |
8420 | fi; |
4312 | fi; |
8421 | |
4313 | |
|
|
4314 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4315 | if test "${enable_perl+set}" = set; then |
|
|
4316 | enableval="$enable_perl" |
|
|
4317 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4318 | support_perl=$enableval |
|
|
4319 | fi |
|
|
4320 | fi; |
|
|
4321 | |
8422 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4322 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
8423 | if test "${enable_plain_scroll+set}" = set; then |
4323 | if test "${enable_plain_scroll+set}" = set; then |
8424 | enableval="$enable_plain_scroll" |
4324 | enableval="$enable_plain_scroll" |
8425 | if test x$enableval = xyes -o x$enableval = xno; then |
4325 | if test x$enableval = xyes -o x$enableval = xno; then |
8426 | support_scroll_plain=$enableval |
4326 | support_scroll_plain=$enableval |
8427 | fi |
4327 | fi |
8428 | fi; |
4328 | fi; |
8429 | |
4329 | |
8430 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
8431 | if test "${enable_half_shadow+set}" = set; then |
|
|
8432 | enableval="$enable_half_shadow" |
|
|
8433 | if test x$enableval = xyes; then |
|
|
8434 | |
|
|
8435 | cat >>confdefs.h <<\_ACEOF |
|
|
8436 | #define HALFSHADOW 1 |
|
|
8437 | _ACEOF |
|
|
8438 | |
|
|
8439 | fi |
|
|
8440 | fi; |
|
|
8441 | |
4330 | |
8442 | |
4331 | |
8443 | # Check whether --with-codesets or --without-codesets was given. |
4332 | # Check whether --with-codesets or --without-codesets was given. |
8444 | if test "${with_codesets+set}" = set; then |
4333 | if test "${with_codesets+set}" = set; then |
8445 | withval="$with_codesets" |
4334 | withval="$with_codesets" |
… | |
… | |
8500 | _ACEOF |
4389 | _ACEOF |
8501 | |
4390 | |
8502 | fi |
4391 | fi |
8503 | fi; |
4392 | fi; |
8504 | |
4393 | |
8505 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
8506 | if test "${enable_xgetdefault+set}" = set; then |
|
|
8507 | enableval="$enable_xgetdefault" |
|
|
8508 | if test x$enableval = xyes; then |
|
|
8509 | |
|
|
8510 | cat >>confdefs.h <<\_ACEOF |
|
|
8511 | #define USE_XGETDEFAULT 1 |
|
|
8512 | _ACEOF |
|
|
8513 | |
|
|
8514 | fi |
|
|
8515 | fi; |
|
|
8516 | |
|
|
8517 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4394 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
8518 | if test "${enable_8bitctrls+set}" = set; then |
4395 | if test "${enable_8bitctrls+set}" = set; then |
8519 | enableval="$enable_8bitctrls" |
4396 | enableval="$enable_8bitctrls" |
8520 | if test x$enableval = xyes -o x$enableval = xno; then |
4397 | if test x$enableval = xyes -o x$enableval = xno; then |
8521 | support_8bitctrls=yes |
4398 | support_8bitctrls=$enableval |
8522 | fi |
4399 | fi |
8523 | fi; |
4400 | fi; |
8524 | |
4401 | |
8525 | RESFALLBACK=Rxvt |
4402 | RESFALLBACK=Rxvt |
8526 | # Check whether --enable-fallback or --disable-fallback was given. |
4403 | # Check whether --enable-fallback or --disable-fallback was given. |
… | |
… | |
8573 | if test "${with_name+set}" = set; then |
4450 | if test "${with_name+set}" = set; then |
8574 | withval="$with_name" |
4451 | withval="$with_name" |
8575 | RXVTNAME="$withval" |
4452 | RXVTNAME="$withval" |
8576 | fi; |
4453 | fi; |
8577 | |
4454 | |
|
|
4455 | cat >>confdefs.h <<_ACEOF |
|
|
4456 | #define RXVTNAME "$RXVTNAME" |
|
|
4457 | _ACEOF |
|
|
4458 | |
|
|
4459 | |
8578 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4460 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
8579 | |
4461 | |
8580 | |
|
|
8581 | # Check whether --enable-strings or --disable-strings was given. |
|
|
8582 | if test "${enable_strings+set}" = set; then |
|
|
8583 | enableval="$enable_strings" |
|
|
8584 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8585 | support_addstrings=$enableval |
|
|
8586 | fi |
|
|
8587 | fi; |
|
|
8588 | |
4462 | |
8589 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4463 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
8590 | if test "${enable_swapscreen+set}" = set; then |
4464 | if test "${enable_swapscreen+set}" = set; then |
8591 | enableval="$enable_swapscreen" |
4465 | enableval="$enable_swapscreen" |
8592 | if test x$enableval = xno; then |
4466 | if test x$enableval = xno; then |
8593 | |
4467 | |
8594 | cat >>confdefs.h <<\_ACEOF |
4468 | cat >>confdefs.h <<\_ACEOF |
8595 | #define NO_SECONDARY_SCREEN 1 |
4469 | #define NO_SECONDARY_SCREEN 1 |
8596 | _ACEOF |
4470 | _ACEOF |
8597 | |
4471 | |
|
|
4472 | fi |
|
|
4473 | fi; |
|
|
4474 | |
|
|
4475 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4476 | if test "${enable_iso14755+set}" = set; then |
|
|
4477 | enableval="$enable_iso14755" |
|
|
4478 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4479 | support_iso14755=$enableval |
8598 | fi |
4480 | fi |
8599 | fi; |
4481 | fi; |
8600 | |
4482 | |
8601 | # Check whether --enable-frills or --disable-frills was given. |
4483 | # Check whether --enable-frills or --disable-frills was given. |
8602 | if test "${enable_frills+set}" = set; then |
4484 | if test "${enable_frills+set}" = set; then |
8603 | enableval="$enable_frills" |
4485 | enableval="$enable_frills" |
8604 | if test x$enableval = xyes -o x$enableval = xno; then |
4486 | if test x$enableval = xyes -o x$enableval = xno; then |
8605 | support_frills=$enableval |
4487 | support_frills=$enableval |
8606 | fi |
|
|
8607 | fi; |
|
|
8608 | |
|
|
8609 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8610 | if test "${enable_linespace+set}" = set; then |
|
|
8611 | enableval="$enable_linespace" |
|
|
8612 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8613 | support_linespace=$enableval |
|
|
8614 | fi |
4488 | fi |
8615 | fi; |
4489 | fi; |
8616 | |
4490 | |
8617 | # Check whether --enable-24bit or --disable-24bit was given. |
4491 | # Check whether --enable-24bit or --disable-24bit was given. |
8618 | if test "${enable_24bit+set}" = set; then |
4492 | if test "${enable_24bit+set}" = set; then |
… | |
… | |
8686 | _ACEOF |
4560 | _ACEOF |
8687 | |
4561 | |
8688 | fi |
4562 | fi |
8689 | fi; |
4563 | fi; |
8690 | |
4564 | |
8691 | # Check whether --enable-256-color or --disable-256-color was given. |
|
|
8692 | if test "${enable_256_color+set}" = set; then |
|
|
8693 | enableval="$enable_256_color" |
|
|
8694 | if test x$enableval = xyes; then |
|
|
8695 | |
|
|
8696 | cat >>confdefs.h <<\_ACEOF |
|
|
8697 | #define TTY_256COLOR 1 |
|
|
8698 | _ACEOF |
|
|
8699 | |
|
|
8700 | fi |
|
|
8701 | fi; |
|
|
8702 | |
|
|
8703 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8704 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8705 | enableval="$enable_cursor_blink" |
|
|
8706 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8707 | support_cursor_blink=$enableval |
|
|
8708 | fi |
|
|
8709 | fi; |
|
|
8710 | |
|
|
8711 | # Check whether --enable-text-blink or --disable-text-blink was given. |
4565 | # Check whether --enable-text-blink or --disable-text-blink was given. |
8712 | if test "${enable_text_blink+set}" = set; then |
4566 | if test "${enable_text_blink+set}" = set; then |
8713 | enableval="$enable_text_blink" |
4567 | enableval="$enable_text_blink" |
8714 | if test x$enableval = xyes -o x$enableval = xno; then |
4568 | if test x$enableval = xyes -o x$enableval = xno; then |
8715 | support_text_blink=$enableval |
4569 | support_text_blink=$enableval |
… | |
… | |
8748 | _ACEOF |
4602 | _ACEOF |
8749 | terminfo="$withval" |
4603 | terminfo="$withval" |
8750 | fi |
4604 | fi |
8751 | fi; |
4605 | fi; |
8752 | |
4606 | |
8753 | |
|
|
8754 | |
|
|
8755 | cat >>confdefs.h <<\_ACEOF |
|
|
8756 | #define PROTOTYPES 1 |
|
|
8757 | _ACEOF |
|
|
8758 | |
|
|
8759 | |
|
|
8760 | if test -z "$CFLAGS"; then |
|
|
8761 | if test -z "$CCOPTS"; then |
|
|
8762 | CCOPTS='-O' |
|
|
8763 | fi |
|
|
8764 | CFLAGS="$CCOPTS" |
|
|
8765 | fi |
|
|
8766 | |
4607 | |
8767 | # Extract the first word of "mv", so it can be a program name with args. |
4608 | # Extract the first word of "mv", so it can be a program name with args. |
8768 | set dummy mv; ac_word=$2 |
4609 | set dummy mv; ac_word=$2 |
8769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
… | |
… | |
9042 | else |
4883 | else |
9043 | echo "$as_me:$LINENO: result: no" >&5 |
4884 | echo "$as_me:$LINENO: result: no" >&5 |
9044 | echo "${ECHO_T}no" >&6 |
4885 | echo "${ECHO_T}no" >&6 |
9045 | fi |
4886 | fi |
9046 | |
4887 | |
9047 | # Extract the first word of "tbl", so it can be a program name with args. |
4888 | # Extract the first word of "tic", so it can be a program name with args. |
9048 | set dummy tbl; ac_word=$2 |
4889 | set dummy tic; ac_word=$2 |
9049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9051 | if test "${ac_cv_path_TBL+set}" = set; then |
4892 | if test "${ac_cv_path_TIC+set}" = set; then |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9053 | else |
4894 | else |
9054 | case $TBL in |
4895 | case $TIC in |
9055 | [\\/]* | ?:[\\/]*) |
4896 | [\\/]* | ?:[\\/]*) |
9056 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
4897 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
9057 | ;; |
4898 | ;; |
9058 | *) |
4899 | *) |
9059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9060 | for as_dir in $PATH |
4901 | for as_dir in $PATH |
9061 | do |
4902 | do |
9062 | IFS=$as_save_IFS |
4903 | IFS=$as_save_IFS |
9063 | test -z "$as_dir" && as_dir=. |
4904 | test -z "$as_dir" && as_dir=. |
9064 | for ac_exec_ext in '' $ac_executable_extensions; do |
4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
9065 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9066 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
4907 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
9067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9068 | break 2 |
4909 | break 2 |
9069 | fi |
4910 | fi |
9070 | done |
4911 | done |
9071 | done |
4912 | done |
9072 | |
4913 | |
9073 | ;; |
4914 | ;; |
9074 | esac |
4915 | esac |
9075 | fi |
4916 | fi |
9076 | TBL=$ac_cv_path_TBL |
4917 | TIC=$ac_cv_path_TIC |
9077 | |
4918 | |
9078 | if test -n "$TBL"; then |
4919 | if test -n "$TIC"; then |
9079 | echo "$as_me:$LINENO: result: $TBL" >&5 |
4920 | echo "$as_me:$LINENO: result: $TIC" >&5 |
9080 | echo "${ECHO_T}$TBL" >&6 |
4921 | echo "${ECHO_T}$TIC" >&6 |
9081 | else |
4922 | else |
9082 | echo "$as_me:$LINENO: result: no" >&5 |
4923 | echo "$as_me:$LINENO: result: no" >&5 |
9083 | echo "${ECHO_T}no" >&6 |
4924 | echo "${ECHO_T}no" >&6 |
9084 | fi |
4925 | fi |
9085 | |
4926 | |
9086 | |
4927 | |
|
|
4928 | |
|
|
4929 | |
|
|
4930 | ac_ext=cc |
|
|
4931 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4935 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4936 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4937 | if test -z "$CXXCPP"; then |
|
|
4938 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4940 | else |
|
|
4941 | # Double quotes because CXXCPP needs to be expanded |
|
|
4942 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4943 | do |
|
|
4944 | ac_preproc_ok=false |
|
|
4945 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4946 | do |
|
|
4947 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4948 | # with a fresh cross-compiler works. |
|
|
4949 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4950 | # <limits.h> exists even on freestanding compilers. |
|
|
4951 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4952 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4953 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4954 | /* confdefs.h. */ |
|
|
4955 | _ACEOF |
|
|
4956 | cat confdefs.h >>conftest.$ac_ext |
|
|
4957 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4958 | /* end confdefs.h. */ |
|
|
4959 | #ifdef __STDC__ |
|
|
4960 | # include <limits.h> |
|
|
4961 | #else |
|
|
4962 | # include <assert.h> |
|
|
4963 | #endif |
|
|
4964 | Syntax error |
|
|
4965 | _ACEOF |
|
|
4966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4968 | ac_status=$? |
|
|
4969 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4970 | rm -f conftest.er1 |
|
|
4971 | cat conftest.err >&5 |
|
|
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4973 | (exit $ac_status); } >/dev/null; then |
|
|
4974 | if test -s conftest.err; then |
|
|
4975 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4976 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4977 | else |
|
|
4978 | ac_cpp_err= |
|
|
4979 | fi |
|
|
4980 | else |
|
|
4981 | ac_cpp_err=yes |
|
|
4982 | fi |
|
|
4983 | if test -z "$ac_cpp_err"; then |
|
|
4984 | : |
|
|
4985 | else |
|
|
4986 | echo "$as_me: failed program was:" >&5 |
|
|
4987 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4988 | |
|
|
4989 | # Broken: fails on valid input. |
|
|
4990 | continue |
|
|
4991 | fi |
|
|
4992 | rm -f conftest.err conftest.$ac_ext |
|
|
4993 | |
|
|
4994 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4995 | # can be detected and how. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #include <ac_nonexistent.h> |
|
|
5003 | _ACEOF |
|
|
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5006 | ac_status=$? |
|
|
5007 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5008 | rm -f conftest.er1 |
|
|
5009 | cat conftest.err >&5 |
|
|
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5011 | (exit $ac_status); } >/dev/null; then |
|
|
5012 | if test -s conftest.err; then |
|
|
5013 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5014 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5015 | else |
|
|
5016 | ac_cpp_err= |
|
|
5017 | fi |
|
|
5018 | else |
|
|
5019 | ac_cpp_err=yes |
|
|
5020 | fi |
|
|
5021 | if test -z "$ac_cpp_err"; then |
|
|
5022 | # Broken: success on invalid input. |
|
|
5023 | continue |
|
|
5024 | else |
|
|
5025 | echo "$as_me: failed program was:" >&5 |
|
|
5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5027 | |
|
|
5028 | # Passes both tests. |
|
|
5029 | ac_preproc_ok=: |
|
|
5030 | break |
|
|
5031 | fi |
|
|
5032 | rm -f conftest.err conftest.$ac_ext |
|
|
5033 | |
|
|
5034 | done |
|
|
5035 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5036 | rm -f conftest.err conftest.$ac_ext |
|
|
5037 | if $ac_preproc_ok; then |
|
|
5038 | break |
|
|
5039 | fi |
|
|
5040 | |
|
|
5041 | done |
|
|
5042 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5043 | |
|
|
5044 | fi |
|
|
5045 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5046 | else |
|
|
5047 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5048 | fi |
|
|
5049 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5050 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5051 | ac_preproc_ok=false |
|
|
5052 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5053 | do |
|
|
5054 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5055 | # with a fresh cross-compiler works. |
|
|
5056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5057 | # <limits.h> exists even on freestanding compilers. |
|
|
5058 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5059 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5060 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5061 | /* confdefs.h. */ |
|
|
5062 | _ACEOF |
|
|
5063 | cat confdefs.h >>conftest.$ac_ext |
|
|
5064 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5065 | /* end confdefs.h. */ |
|
|
5066 | #ifdef __STDC__ |
|
|
5067 | # include <limits.h> |
|
|
5068 | #else |
|
|
5069 | # include <assert.h> |
|
|
5070 | #endif |
|
|
5071 | Syntax error |
|
|
5072 | _ACEOF |
|
|
5073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5075 | ac_status=$? |
|
|
5076 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5077 | rm -f conftest.er1 |
|
|
5078 | cat conftest.err >&5 |
|
|
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5080 | (exit $ac_status); } >/dev/null; then |
|
|
5081 | if test -s conftest.err; then |
|
|
5082 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5083 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5084 | else |
|
|
5085 | ac_cpp_err= |
|
|
5086 | fi |
|
|
5087 | else |
|
|
5088 | ac_cpp_err=yes |
|
|
5089 | fi |
|
|
5090 | if test -z "$ac_cpp_err"; then |
|
|
5091 | : |
|
|
5092 | else |
|
|
5093 | echo "$as_me: failed program was:" >&5 |
|
|
5094 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5095 | |
|
|
5096 | # Broken: fails on valid input. |
|
|
5097 | continue |
|
|
5098 | fi |
|
|
5099 | rm -f conftest.err conftest.$ac_ext |
|
|
5100 | |
|
|
5101 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5102 | # can be detected and how. |
|
|
5103 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5104 | /* confdefs.h. */ |
|
|
5105 | _ACEOF |
|
|
5106 | cat confdefs.h >>conftest.$ac_ext |
|
|
5107 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5108 | /* end confdefs.h. */ |
|
|
5109 | #include <ac_nonexistent.h> |
|
|
5110 | _ACEOF |
|
|
5111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5113 | ac_status=$? |
|
|
5114 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5115 | rm -f conftest.er1 |
|
|
5116 | cat conftest.err >&5 |
|
|
5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5118 | (exit $ac_status); } >/dev/null; then |
|
|
5119 | if test -s conftest.err; then |
|
|
5120 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5121 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5122 | else |
|
|
5123 | ac_cpp_err= |
|
|
5124 | fi |
|
|
5125 | else |
|
|
5126 | ac_cpp_err=yes |
|
|
5127 | fi |
|
|
5128 | if test -z "$ac_cpp_err"; then |
|
|
5129 | # Broken: success on invalid input. |
|
|
5130 | continue |
|
|
5131 | else |
|
|
5132 | echo "$as_me: failed program was:" >&5 |
|
|
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5134 | |
|
|
5135 | # Passes both tests. |
|
|
5136 | ac_preproc_ok=: |
|
|
5137 | break |
|
|
5138 | fi |
|
|
5139 | rm -f conftest.err conftest.$ac_ext |
|
|
5140 | |
|
|
5141 | done |
|
|
5142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5143 | rm -f conftest.err conftest.$ac_ext |
|
|
5144 | if $ac_preproc_ok; then |
|
|
5145 | : |
|
|
5146 | else |
|
|
5147 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5148 | See \`config.log' for more details." >&5 |
|
|
5149 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5150 | See \`config.log' for more details." >&2;} |
|
|
5151 | { (exit 1); exit 1; }; } |
|
|
5152 | fi |
|
|
5153 | |
|
|
5154 | ac_ext=cc |
|
|
5155 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9087 | |
5159 | |
9088 | |
5160 | |
9089 | |
5161 | |
9090 | if test "x$ac_path_x_has_been_run" != xyes; then |
5162 | if test "x$ac_path_x_has_been_run" != xyes; then |
9091 | echo "$as_me:$LINENO: checking for X" >&5 |
5163 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
9190 | /* confdefs.h. */ |
5262 | /* confdefs.h. */ |
9191 | _ACEOF |
5263 | _ACEOF |
9192 | cat confdefs.h >>conftest.$ac_ext |
5264 | cat confdefs.h >>conftest.$ac_ext |
9193 | cat >>conftest.$ac_ext <<_ACEOF |
5265 | cat >>conftest.$ac_ext <<_ACEOF |
9194 | /* end confdefs.h. */ |
5266 | /* end confdefs.h. */ |
9195 | #include <X11/Intrinsic.h> |
5267 | #include <X11/Xlib.h> |
9196 | _ACEOF |
5268 | _ACEOF |
9197 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9198 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9199 | ac_status=$? |
5271 | ac_status=$? |
9200 | grep -v '^ *+' conftest.er1 >conftest.err |
5272 | grep -v '^ *+' conftest.er1 >conftest.err |
… | |
… | |
9217 | else |
5289 | else |
9218 | echo "$as_me: failed program was:" >&5 |
5290 | echo "$as_me: failed program was:" >&5 |
9219 | sed 's/^/| /' conftest.$ac_ext >&5 |
5291 | sed 's/^/| /' conftest.$ac_ext >&5 |
9220 | |
5292 | |
9221 | for ac_dir in $ac_x_header_dirs; do |
5293 | for ac_dir in $ac_x_header_dirs; do |
9222 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
5294 | if test -r "$ac_dir/X11/Xlib.h"; then |
9223 | ac_x_includes=$ac_dir |
5295 | ac_x_includes=$ac_dir |
9224 | break |
5296 | break |
9225 | fi |
5297 | fi |
9226 | done |
5298 | done |
9227 | fi |
5299 | fi |
… | |
… | |
9231 | if test "$ac_x_libraries" = no; then |
5303 | if test "$ac_x_libraries" = no; then |
9232 | # Check for the libraries. |
5304 | # Check for the libraries. |
9233 | # See if we find them without any special options. |
5305 | # See if we find them without any special options. |
9234 | # Don't add to $LIBS permanently. |
5306 | # Don't add to $LIBS permanently. |
9235 | ac_save_LIBS=$LIBS |
5307 | ac_save_LIBS=$LIBS |
9236 | LIBS="-lXt $LIBS" |
5308 | LIBS="-lX11 $LIBS" |
9237 | cat >conftest.$ac_ext <<_ACEOF |
5309 | cat >conftest.$ac_ext <<_ACEOF |
9238 | /* confdefs.h. */ |
5310 | /* confdefs.h. */ |
9239 | _ACEOF |
5311 | _ACEOF |
9240 | cat confdefs.h >>conftest.$ac_ext |
5312 | cat confdefs.h >>conftest.$ac_ext |
9241 | cat >>conftest.$ac_ext <<_ACEOF |
5313 | cat >>conftest.$ac_ext <<_ACEOF |
9242 | /* end confdefs.h. */ |
5314 | /* end confdefs.h. */ |
9243 | #include <X11/Intrinsic.h> |
5315 | #include <X11/Xlib.h> |
9244 | int |
5316 | int |
9245 | main () |
5317 | main () |
9246 | { |
5318 | { |
9247 | XtMalloc (0) |
5319 | XrmInitialize () |
9248 | ; |
5320 | ; |
9249 | return 0; |
5321 | return 0; |
9250 | } |
5322 | } |
9251 | _ACEOF |
5323 | _ACEOF |
9252 | rm -f conftest.$ac_objext conftest$ac_exeext |
5324 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
9280 | LIBS=$ac_save_LIBS |
5352 | LIBS=$ac_save_LIBS |
9281 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5353 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9282 | do |
5354 | do |
9283 | # Don't even attempt the hair of trying to link an X program! |
5355 | # Don't even attempt the hair of trying to link an X program! |
9284 | for ac_extension in a so sl; do |
5356 | for ac_extension in a so sl; do |
9285 | if test -r $ac_dir/libXt.$ac_extension; then |
5357 | if test -r $ac_dir/libX11.$ac_extension; then |
9286 | ac_x_libraries=$ac_dir |
5358 | ac_x_libraries=$ac_dir |
9287 | break 2 |
5359 | break 2 |
9288 | fi |
5360 | fi |
9289 | done |
5361 | done |
9290 | done |
5362 | done |
… | |
… | |
10892 | #define HAVE_SYS_WAIT_H 1 |
6964 | #define HAVE_SYS_WAIT_H 1 |
10893 | _ACEOF |
6965 | _ACEOF |
10894 | |
6966 | |
10895 | fi |
6967 | fi |
10896 | |
6968 | |
|
|
6969 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6970 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6971 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6973 | else |
|
|
6974 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6975 | /* confdefs.h. */ |
|
|
6976 | _ACEOF |
|
|
6977 | cat confdefs.h >>conftest.$ac_ext |
|
|
6978 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6979 | /* end confdefs.h. */ |
|
|
6980 | #include <stdlib.h> |
|
|
6981 | #include <stdarg.h> |
|
|
6982 | #include <string.h> |
|
|
6983 | #include <float.h> |
|
|
6984 | |
|
|
6985 | int |
|
|
6986 | main () |
|
|
6987 | { |
|
|
6988 | |
|
|
6989 | ; |
|
|
6990 | return 0; |
|
|
6991 | } |
|
|
6992 | _ACEOF |
|
|
6993 | rm -f conftest.$ac_objext |
|
|
6994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6995 | (eval $ac_compile) 2>conftest.er1 |
|
|
6996 | ac_status=$? |
|
|
6997 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6998 | rm -f conftest.er1 |
|
|
6999 | cat conftest.err >&5 |
|
|
7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7001 | (exit $ac_status); } && |
|
|
7002 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7004 | (eval $ac_try) 2>&5 |
|
|
7005 | ac_status=$? |
|
|
7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7007 | (exit $ac_status); }; } && |
|
|
7008 | { ac_try='test -s conftest.$ac_objext' |
|
|
7009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7010 | (eval $ac_try) 2>&5 |
|
|
7011 | ac_status=$? |
|
|
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7013 | (exit $ac_status); }; }; then |
|
|
7014 | ac_cv_header_stdc=yes |
|
|
7015 | else |
|
|
7016 | echo "$as_me: failed program was:" >&5 |
|
|
7017 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7018 | |
|
|
7019 | ac_cv_header_stdc=no |
|
|
7020 | fi |
|
|
7021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7022 | |
|
|
7023 | if test $ac_cv_header_stdc = yes; then |
|
|
7024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7025 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7026 | /* confdefs.h. */ |
|
|
7027 | _ACEOF |
|
|
7028 | cat confdefs.h >>conftest.$ac_ext |
|
|
7029 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7030 | /* end confdefs.h. */ |
|
|
7031 | #include <string.h> |
|
|
7032 | |
|
|
7033 | _ACEOF |
|
|
7034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7035 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7036 | : |
|
|
7037 | else |
|
|
7038 | ac_cv_header_stdc=no |
|
|
7039 | fi |
|
|
7040 | rm -f conftest* |
|
|
7041 | |
|
|
7042 | fi |
|
|
7043 | |
|
|
7044 | if test $ac_cv_header_stdc = yes; then |
|
|
7045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7046 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7047 | /* confdefs.h. */ |
|
|
7048 | _ACEOF |
|
|
7049 | cat confdefs.h >>conftest.$ac_ext |
|
|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7051 | /* end confdefs.h. */ |
|
|
7052 | #include <stdlib.h> |
|
|
7053 | |
|
|
7054 | _ACEOF |
|
|
7055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7056 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7057 | : |
|
|
7058 | else |
|
|
7059 | ac_cv_header_stdc=no |
|
|
7060 | fi |
|
|
7061 | rm -f conftest* |
|
|
7062 | |
|
|
7063 | fi |
|
|
7064 | |
|
|
7065 | if test $ac_cv_header_stdc = yes; then |
|
|
7066 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7067 | if test "$cross_compiling" = yes; then |
|
|
7068 | : |
|
|
7069 | else |
|
|
7070 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7071 | /* confdefs.h. */ |
|
|
7072 | _ACEOF |
|
|
7073 | cat confdefs.h >>conftest.$ac_ext |
|
|
7074 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7075 | /* end confdefs.h. */ |
|
|
7076 | #include <ctype.h> |
|
|
7077 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7080 | #else |
|
|
7081 | # define ISLOWER(c) \ |
|
|
7082 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7083 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7084 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7086 | #endif |
|
|
7087 | |
|
|
7088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7089 | int |
|
|
7090 | main () |
|
|
7091 | { |
|
|
7092 | int i; |
|
|
7093 | for (i = 0; i < 256; i++) |
|
|
7094 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7095 | || toupper (i) != TOUPPER (i)) |
|
|
7096 | exit(2); |
|
|
7097 | exit (0); |
|
|
7098 | } |
|
|
7099 | _ACEOF |
|
|
7100 | rm -f conftest$ac_exeext |
|
|
7101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7102 | (eval $ac_link) 2>&5 |
|
|
7103 | ac_status=$? |
|
|
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7107 | (eval $ac_try) 2>&5 |
|
|
7108 | ac_status=$? |
|
|
7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7110 | (exit $ac_status); }; }; then |
|
|
7111 | : |
|
|
7112 | else |
|
|
7113 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7114 | echo "$as_me: failed program was:" >&5 |
|
|
7115 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7116 | |
|
|
7117 | ( exit $ac_status ) |
|
|
7118 | ac_cv_header_stdc=no |
|
|
7119 | fi |
|
|
7120 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7121 | fi |
|
|
7122 | fi |
|
|
7123 | fi |
|
|
7124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
7126 | if test $ac_cv_header_stdc = yes; then |
|
|
7127 | |
|
|
7128 | cat >>confdefs.h <<\_ACEOF |
|
|
7129 | #define STDC_HEADERS 1 |
|
|
7130 | _ACEOF |
|
|
7131 | |
|
|
7132 | fi |
|
|
7133 | |
|
|
7134 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7135 | |
|
|
7136 | |
|
|
7137 | |
|
|
7138 | |
|
|
7139 | |
|
|
7140 | |
|
|
7141 | |
|
|
7142 | |
|
|
7143 | |
|
|
7144 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7145 | inttypes.h stdint.h unistd.h |
|
|
7146 | do |
|
|
7147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
7150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7152 | else |
|
|
7153 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7154 | /* confdefs.h. */ |
|
|
7155 | _ACEOF |
|
|
7156 | cat confdefs.h >>conftest.$ac_ext |
|
|
7157 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7158 | /* end confdefs.h. */ |
|
|
7159 | $ac_includes_default |
|
|
7160 | |
|
|
7161 | #include <$ac_header> |
|
|
7162 | _ACEOF |
|
|
7163 | rm -f conftest.$ac_objext |
|
|
7164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7165 | (eval $ac_compile) 2>conftest.er1 |
|
|
7166 | ac_status=$? |
|
|
7167 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7168 | rm -f conftest.er1 |
|
|
7169 | cat conftest.err >&5 |
|
|
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7171 | (exit $ac_status); } && |
|
|
7172 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7174 | (eval $ac_try) 2>&5 |
|
|
7175 | ac_status=$? |
|
|
7176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7177 | (exit $ac_status); }; } && |
|
|
7178 | { ac_try='test -s conftest.$ac_objext' |
|
|
7179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7180 | (eval $ac_try) 2>&5 |
|
|
7181 | ac_status=$? |
|
|
7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7183 | (exit $ac_status); }; }; then |
|
|
7184 | eval "$as_ac_Header=yes" |
|
|
7185 | else |
|
|
7186 | echo "$as_me: failed program was:" >&5 |
|
|
7187 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7188 | |
|
|
7189 | eval "$as_ac_Header=no" |
|
|
7190 | fi |
|
|
7191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7192 | fi |
|
|
7193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
7194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
7195 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7196 | cat >>confdefs.h <<_ACEOF |
|
|
7197 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7198 | _ACEOF |
|
|
7199 | |
|
|
7200 | fi |
|
|
7201 | |
|
|
7202 | done |
10897 | |
7203 | |
10898 | |
7204 | |
10899 | |
7205 | |
10900 | |
7206 | |
10901 | |
7207 | |
… | |
… | |
10914 | |
7220 | |
10915 | |
7221 | |
10916 | for ac_header in \ |
7222 | for ac_header in \ |
10917 | assert.h \ |
7223 | assert.h \ |
10918 | fcntl.h \ |
7224 | fcntl.h \ |
10919 | grp.h \ |
|
|
10920 | libc.h \ |
|
|
10921 | lastlog.h \ |
|
|
10922 | stdarg.h \ |
7225 | stdarg.h \ |
10923 | stdlib.h \ |
7226 | stdlib.h \ |
10924 | string.h \ |
7227 | string.h \ |
10925 | termios.h \ |
7228 | termios.h \ |
10926 | unistd.h \ |
7229 | unistd.h \ |
… | |
… | |
10928 | sys/ioctl.h \ |
7231 | sys/ioctl.h \ |
10929 | sys/select.h \ |
7232 | sys/select.h \ |
10930 | sys/sockio.h \ |
7233 | sys/sockio.h \ |
10931 | sys/strredir.h \ |
7234 | sys/strredir.h \ |
10932 | sys/time.h \ |
7235 | sys/time.h \ |
10933 | utmp.h \ |
7236 | stdint.h \ |
10934 | utmpx.h \ |
7237 | wchar.h \ |
10935 | stdint.h \ |
7238 | cwchar \ |
|
|
7239 | clocale \ |
10936 | |
7240 | |
10937 | do |
7241 | do |
10938 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
11724 | _ACEOF |
8028 | _ACEOF |
11725 | |
8029 | |
11726 | fi |
8030 | fi |
11727 | |
8031 | |
11728 | |
8032 | |
11729 | |
|
|
11730 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11731 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11732 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11734 | else |
|
|
11735 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11736 | /* confdefs.h. */ |
|
|
11737 | _ACEOF |
|
|
11738 | cat confdefs.h >>conftest.$ac_ext |
|
|
11739 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11740 | /* end confdefs.h. */ |
|
|
11741 | $ac_includes_default |
|
|
11742 | int |
|
|
11743 | main () |
|
|
11744 | { |
|
|
11745 | if ((char *) 0) |
|
|
11746 | return 0; |
|
|
11747 | if (sizeof (char)) |
|
|
11748 | return 0; |
|
|
11749 | ; |
|
|
11750 | return 0; |
|
|
11751 | } |
|
|
11752 | _ACEOF |
|
|
11753 | rm -f conftest.$ac_objext |
|
|
11754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11755 | (eval $ac_compile) 2>conftest.er1 |
|
|
11756 | ac_status=$? |
|
|
11757 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11758 | rm -f conftest.er1 |
|
|
11759 | cat conftest.err >&5 |
|
|
11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11761 | (exit $ac_status); } && |
|
|
11762 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11764 | (eval $ac_try) 2>&5 |
|
|
11765 | ac_status=$? |
|
|
11766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11767 | (exit $ac_status); }; } && |
|
|
11768 | { ac_try='test -s conftest.$ac_objext' |
|
|
11769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11770 | (eval $ac_try) 2>&5 |
|
|
11771 | ac_status=$? |
|
|
11772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11773 | (exit $ac_status); }; }; then |
|
|
11774 | ac_cv_type_char=yes |
|
|
11775 | else |
|
|
11776 | echo "$as_me: failed program was:" >&5 |
|
|
11777 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11778 | |
|
|
11779 | ac_cv_type_char=no |
|
|
11780 | fi |
|
|
11781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11782 | fi |
|
|
11783 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11784 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11785 | |
|
|
11786 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11787 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11788 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11790 | else |
|
|
11791 | if test "$ac_cv_type_char" = yes; then |
|
|
11792 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11793 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11794 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11795 | # This bug is HP SR number 8606223364. |
|
|
11796 | if test "$cross_compiling" = yes; then |
|
|
11797 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11798 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11799 | /* confdefs.h. */ |
|
|
11800 | _ACEOF |
|
|
11801 | cat confdefs.h >>conftest.$ac_ext |
|
|
11802 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11803 | /* end confdefs.h. */ |
|
|
11804 | $ac_includes_default |
|
|
11805 | int |
|
|
11806 | main () |
|
|
11807 | { |
|
|
11808 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11809 | test_array [0] = 0 |
|
|
11810 | |
|
|
11811 | ; |
|
|
11812 | return 0; |
|
|
11813 | } |
|
|
11814 | _ACEOF |
|
|
11815 | rm -f conftest.$ac_objext |
|
|
11816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11817 | (eval $ac_compile) 2>conftest.er1 |
|
|
11818 | ac_status=$? |
|
|
11819 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11820 | rm -f conftest.er1 |
|
|
11821 | cat conftest.err >&5 |
|
|
11822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11823 | (exit $ac_status); } && |
|
|
11824 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11826 | (eval $ac_try) 2>&5 |
|
|
11827 | ac_status=$? |
|
|
11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11829 | (exit $ac_status); }; } && |
|
|
11830 | { ac_try='test -s conftest.$ac_objext' |
|
|
11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11832 | (eval $ac_try) 2>&5 |
|
|
11833 | ac_status=$? |
|
|
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11835 | (exit $ac_status); }; }; then |
|
|
11836 | ac_lo=0 ac_mid=0 |
|
|
11837 | while :; do |
|
|
11838 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11839 | /* confdefs.h. */ |
|
|
11840 | _ACEOF |
|
|
11841 | cat confdefs.h >>conftest.$ac_ext |
|
|
11842 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11843 | /* end confdefs.h. */ |
|
|
11844 | $ac_includes_default |
|
|
11845 | int |
|
|
11846 | main () |
|
|
11847 | { |
|
|
11848 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11849 | test_array [0] = 0 |
|
|
11850 | |
|
|
11851 | ; |
|
|
11852 | return 0; |
|
|
11853 | } |
|
|
11854 | _ACEOF |
|
|
11855 | rm -f conftest.$ac_objext |
|
|
11856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11857 | (eval $ac_compile) 2>conftest.er1 |
|
|
11858 | ac_status=$? |
|
|
11859 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11860 | rm -f conftest.er1 |
|
|
11861 | cat conftest.err >&5 |
|
|
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11863 | (exit $ac_status); } && |
|
|
11864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11866 | (eval $ac_try) 2>&5 |
|
|
11867 | ac_status=$? |
|
|
11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11869 | (exit $ac_status); }; } && |
|
|
11870 | { ac_try='test -s conftest.$ac_objext' |
|
|
11871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11872 | (eval $ac_try) 2>&5 |
|
|
11873 | ac_status=$? |
|
|
11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11875 | (exit $ac_status); }; }; then |
|
|
11876 | ac_hi=$ac_mid; break |
|
|
11877 | else |
|
|
11878 | echo "$as_me: failed program was:" >&5 |
|
|
11879 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11880 | |
|
|
11881 | ac_lo=`expr $ac_mid + 1` |
|
|
11882 | if test $ac_lo -le $ac_mid; then |
|
|
11883 | ac_lo= ac_hi= |
|
|
11884 | break |
|
|
11885 | fi |
|
|
11886 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11887 | fi |
|
|
11888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11889 | done |
|
|
11890 | else |
|
|
11891 | echo "$as_me: failed program was:" >&5 |
|
|
11892 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11893 | |
|
|
11894 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11895 | /* confdefs.h. */ |
|
|
11896 | _ACEOF |
|
|
11897 | cat confdefs.h >>conftest.$ac_ext |
|
|
11898 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11899 | /* end confdefs.h. */ |
|
|
11900 | $ac_includes_default |
|
|
11901 | int |
|
|
11902 | main () |
|
|
11903 | { |
|
|
11904 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11905 | test_array [0] = 0 |
|
|
11906 | |
|
|
11907 | ; |
|
|
11908 | return 0; |
|
|
11909 | } |
|
|
11910 | _ACEOF |
|
|
11911 | rm -f conftest.$ac_objext |
|
|
11912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11913 | (eval $ac_compile) 2>conftest.er1 |
|
|
11914 | ac_status=$? |
|
|
11915 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11916 | rm -f conftest.er1 |
|
|
11917 | cat conftest.err >&5 |
|
|
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11919 | (exit $ac_status); } && |
|
|
11920 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11922 | (eval $ac_try) 2>&5 |
|
|
11923 | ac_status=$? |
|
|
11924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11925 | (exit $ac_status); }; } && |
|
|
11926 | { ac_try='test -s conftest.$ac_objext' |
|
|
11927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11928 | (eval $ac_try) 2>&5 |
|
|
11929 | ac_status=$? |
|
|
11930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11931 | (exit $ac_status); }; }; then |
|
|
11932 | ac_hi=-1 ac_mid=-1 |
|
|
11933 | while :; do |
|
|
11934 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11935 | /* confdefs.h. */ |
|
|
11936 | _ACEOF |
|
|
11937 | cat confdefs.h >>conftest.$ac_ext |
|
|
11938 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11939 | /* end confdefs.h. */ |
|
|
11940 | $ac_includes_default |
|
|
11941 | int |
|
|
11942 | main () |
|
|
11943 | { |
|
|
11944 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
11945 | test_array [0] = 0 |
|
|
11946 | |
|
|
11947 | ; |
|
|
11948 | return 0; |
|
|
11949 | } |
|
|
11950 | _ACEOF |
|
|
11951 | rm -f conftest.$ac_objext |
|
|
11952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11953 | (eval $ac_compile) 2>conftest.er1 |
|
|
11954 | ac_status=$? |
|
|
11955 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11956 | rm -f conftest.er1 |
|
|
11957 | cat conftest.err >&5 |
|
|
11958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11959 | (exit $ac_status); } && |
|
|
11960 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11962 | (eval $ac_try) 2>&5 |
|
|
11963 | ac_status=$? |
|
|
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11965 | (exit $ac_status); }; } && |
|
|
11966 | { ac_try='test -s conftest.$ac_objext' |
|
|
11967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11968 | (eval $ac_try) 2>&5 |
|
|
11969 | ac_status=$? |
|
|
11970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11971 | (exit $ac_status); }; }; then |
|
|
11972 | ac_lo=$ac_mid; break |
|
|
11973 | else |
|
|
11974 | echo "$as_me: failed program was:" >&5 |
|
|
11975 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11976 | |
|
|
11977 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
11978 | if test $ac_mid -le $ac_hi; then |
|
|
11979 | ac_lo= ac_hi= |
|
|
11980 | break |
|
|
11981 | fi |
|
|
11982 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
11983 | fi |
|
|
11984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11985 | done |
|
|
11986 | else |
|
|
11987 | echo "$as_me: failed program was:" >&5 |
|
|
11988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11989 | |
|
|
11990 | ac_lo= ac_hi= |
|
|
11991 | fi |
|
|
11992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11993 | fi |
|
|
11994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11995 | # Binary search between lo and hi bounds. |
|
|
11996 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
11997 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
11998 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11999 | /* confdefs.h. */ |
|
|
12000 | _ACEOF |
|
|
12001 | cat confdefs.h >>conftest.$ac_ext |
|
|
12002 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12003 | /* end confdefs.h. */ |
|
|
12004 | $ac_includes_default |
|
|
12005 | int |
|
|
12006 | main () |
|
|
12007 | { |
|
|
12008 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
12009 | test_array [0] = 0 |
|
|
12010 | |
|
|
12011 | ; |
|
|
12012 | return 0; |
|
|
12013 | } |
|
|
12014 | _ACEOF |
|
|
12015 | rm -f conftest.$ac_objext |
|
|
12016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12017 | (eval $ac_compile) 2>conftest.er1 |
|
|
12018 | ac_status=$? |
|
|
12019 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12020 | rm -f conftest.er1 |
|
|
12021 | cat conftest.err >&5 |
|
|
12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12023 | (exit $ac_status); } && |
|
|
12024 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12026 | (eval $ac_try) 2>&5 |
|
|
12027 | ac_status=$? |
|
|
12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12029 | (exit $ac_status); }; } && |
|
|
12030 | { ac_try='test -s conftest.$ac_objext' |
|
|
12031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12032 | (eval $ac_try) 2>&5 |
|
|
12033 | ac_status=$? |
|
|
12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12035 | (exit $ac_status); }; }; then |
|
|
12036 | ac_hi=$ac_mid |
|
|
12037 | else |
|
|
12038 | echo "$as_me: failed program was:" >&5 |
|
|
12039 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12040 | |
|
|
12041 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12042 | fi |
|
|
12043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12044 | done |
|
|
12045 | case $ac_lo in |
|
|
12046 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
12047 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12048 | See \`config.log' for more details." >&5 |
|
|
12049 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12050 | See \`config.log' for more details." >&2;} |
|
|
12051 | { (exit 1); exit 1; }; } ;; |
|
|
12052 | esac |
|
|
12053 | else |
|
|
12054 | if test "$cross_compiling" = yes; then |
|
|
12055 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
12056 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
12057 | { (exit 1); exit 1; }; } |
|
|
12058 | else |
|
|
12059 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12060 | /* confdefs.h. */ |
|
|
12061 | _ACEOF |
|
|
12062 | cat confdefs.h >>conftest.$ac_ext |
|
|
12063 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12064 | /* end confdefs.h. */ |
|
|
12065 | $ac_includes_default |
|
|
12066 | long longval () { return (long) (sizeof (char)); } |
|
|
12067 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
12068 | #include <stdio.h> |
|
|
12069 | #include <stdlib.h> |
|
|
12070 | int |
|
|
12071 | main () |
|
|
12072 | { |
|
|
12073 | |
|
|
12074 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12075 | if (! f) |
|
|
12076 | exit (1); |
|
|
12077 | if (((long) (sizeof (char))) < 0) |
|
|
12078 | { |
|
|
12079 | long i = longval (); |
|
|
12080 | if (i != ((long) (sizeof (char)))) |
|
|
12081 | exit (1); |
|
|
12082 | fprintf (f, "%ld\n", i); |
|
|
12083 | } |
|
|
12084 | else |
|
|
12085 | { |
|
|
12086 | unsigned long i = ulongval (); |
|
|
12087 | if (i != ((long) (sizeof (char)))) |
|
|
12088 | exit (1); |
|
|
12089 | fprintf (f, "%lu\n", i); |
|
|
12090 | } |
|
|
12091 | exit (ferror (f) || fclose (f) != 0); |
|
|
12092 | |
|
|
12093 | ; |
|
|
12094 | return 0; |
|
|
12095 | } |
|
|
12096 | _ACEOF |
|
|
12097 | rm -f conftest$ac_exeext |
|
|
12098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12099 | (eval $ac_link) 2>&5 |
|
|
12100 | ac_status=$? |
|
|
12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12104 | (eval $ac_try) 2>&5 |
|
|
12105 | ac_status=$? |
|
|
12106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12107 | (exit $ac_status); }; }; then |
|
|
12108 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
12109 | else |
|
|
12110 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12111 | echo "$as_me: failed program was:" >&5 |
|
|
12112 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12113 | |
|
|
12114 | ( exit $ac_status ) |
|
|
12115 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12116 | See \`config.log' for more details." >&5 |
|
|
12117 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12118 | See \`config.log' for more details." >&2;} |
|
|
12119 | { (exit 1); exit 1; }; } |
|
|
12120 | fi |
|
|
12121 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12122 | fi |
|
|
12123 | fi |
|
|
12124 | rm -f conftest.val |
|
|
12125 | else |
|
|
12126 | ac_cv_sizeof_char=0 |
|
|
12127 | fi |
|
|
12128 | fi |
|
|
12129 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
12130 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
12131 | cat >>confdefs.h <<_ACEOF |
|
|
12132 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
12133 | _ACEOF |
|
|
12134 | |
|
|
12135 | |
|
|
12136 | echo "$as_me:$LINENO: checking for short" >&5 |
8033 | echo "$as_me:$LINENO: checking for short" >&5 |
12137 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
8034 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
12138 | if test "${ac_cv_type_short+set}" = set; then |
8035 | if test "${ac_cv_type_short+set}" = set; then |
12139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12140 | else |
8037 | else |
… | |
… | |
12943 | cat >>confdefs.h <<_ACEOF |
8840 | cat >>confdefs.h <<_ACEOF |
12944 | #define SIZEOF_INT $ac_cv_sizeof_int |
8841 | #define SIZEOF_INT $ac_cv_sizeof_int |
12945 | _ACEOF |
8842 | _ACEOF |
12946 | |
8843 | |
12947 | |
8844 | |
12948 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
12949 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
12950 | if test "${ac_cv_type_long+set}" = set; then |
|
|
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12952 | else |
|
|
12953 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12954 | /* confdefs.h. */ |
|
|
12955 | _ACEOF |
|
|
12956 | cat confdefs.h >>conftest.$ac_ext |
|
|
12957 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12958 | /* end confdefs.h. */ |
|
|
12959 | $ac_includes_default |
|
|
12960 | int |
|
|
12961 | main () |
|
|
12962 | { |
|
|
12963 | if ((long *) 0) |
|
|
12964 | return 0; |
|
|
12965 | if (sizeof (long)) |
|
|
12966 | return 0; |
|
|
12967 | ; |
|
|
12968 | return 0; |
|
|
12969 | } |
|
|
12970 | _ACEOF |
|
|
12971 | rm -f conftest.$ac_objext |
|
|
12972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12973 | (eval $ac_compile) 2>conftest.er1 |
|
|
12974 | ac_status=$? |
|
|
12975 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12976 | rm -f conftest.er1 |
|
|
12977 | cat conftest.err >&5 |
|
|
12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12979 | (exit $ac_status); } && |
|
|
12980 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12982 | (eval $ac_try) 2>&5 |
|
|
12983 | ac_status=$? |
|
|
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12985 | (exit $ac_status); }; } && |
|
|
12986 | { ac_try='test -s conftest.$ac_objext' |
|
|
12987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12988 | (eval $ac_try) 2>&5 |
|
|
12989 | ac_status=$? |
|
|
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12991 | (exit $ac_status); }; }; then |
|
|
12992 | ac_cv_type_long=yes |
|
|
12993 | else |
|
|
12994 | echo "$as_me: failed program was:" >&5 |
|
|
12995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12996 | |
|
|
12997 | ac_cv_type_long=no |
|
|
12998 | fi |
|
|
12999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13000 | fi |
|
|
13001 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
13002 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
13003 | |
|
|
13004 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
13005 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
13006 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
13007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13008 | else |
|
|
13009 | if test "$ac_cv_type_long" = yes; then |
|
|
13010 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
13011 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
13012 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
13013 | # This bug is HP SR number 8606223364. |
|
|
13014 | if test "$cross_compiling" = yes; then |
|
|
13015 | # Depending upon the size, compute the lo and hi bounds. |
|
|
13016 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13017 | /* confdefs.h. */ |
|
|
13018 | _ACEOF |
|
|
13019 | cat confdefs.h >>conftest.$ac_ext |
|
|
13020 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13021 | /* end confdefs.h. */ |
|
|
13022 | $ac_includes_default |
|
|
13023 | int |
|
|
13024 | main () |
|
|
13025 | { |
|
|
13026 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
13027 | test_array [0] = 0 |
|
|
13028 | |
|
|
13029 | ; |
|
|
13030 | return 0; |
|
|
13031 | } |
|
|
13032 | _ACEOF |
|
|
13033 | rm -f conftest.$ac_objext |
|
|
13034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13035 | (eval $ac_compile) 2>conftest.er1 |
|
|
13036 | ac_status=$? |
|
|
13037 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13038 | rm -f conftest.er1 |
|
|
13039 | cat conftest.err >&5 |
|
|
13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13041 | (exit $ac_status); } && |
|
|
13042 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13044 | (eval $ac_try) 2>&5 |
|
|
13045 | ac_status=$? |
|
|
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13047 | (exit $ac_status); }; } && |
|
|
13048 | { ac_try='test -s conftest.$ac_objext' |
|
|
13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13050 | (eval $ac_try) 2>&5 |
|
|
13051 | ac_status=$? |
|
|
13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13053 | (exit $ac_status); }; }; then |
|
|
13054 | ac_lo=0 ac_mid=0 |
|
|
13055 | while :; do |
|
|
13056 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13057 | /* confdefs.h. */ |
|
|
13058 | _ACEOF |
|
|
13059 | cat confdefs.h >>conftest.$ac_ext |
|
|
13060 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13061 | /* end confdefs.h. */ |
|
|
13062 | $ac_includes_default |
|
|
13063 | int |
|
|
13064 | main () |
|
|
13065 | { |
|
|
13066 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13067 | test_array [0] = 0 |
|
|
13068 | |
|
|
13069 | ; |
|
|
13070 | return 0; |
|
|
13071 | } |
|
|
13072 | _ACEOF |
|
|
13073 | rm -f conftest.$ac_objext |
|
|
13074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13075 | (eval $ac_compile) 2>conftest.er1 |
|
|
13076 | ac_status=$? |
|
|
13077 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13078 | rm -f conftest.er1 |
|
|
13079 | cat conftest.err >&5 |
|
|
13080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13081 | (exit $ac_status); } && |
|
|
13082 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13084 | (eval $ac_try) 2>&5 |
|
|
13085 | ac_status=$? |
|
|
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13087 | (exit $ac_status); }; } && |
|
|
13088 | { ac_try='test -s conftest.$ac_objext' |
|
|
13089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13090 | (eval $ac_try) 2>&5 |
|
|
13091 | ac_status=$? |
|
|
13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13093 | (exit $ac_status); }; }; then |
|
|
13094 | ac_hi=$ac_mid; break |
|
|
13095 | else |
|
|
13096 | echo "$as_me: failed program was:" >&5 |
|
|
13097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13098 | |
|
|
13099 | ac_lo=`expr $ac_mid + 1` |
|
|
13100 | if test $ac_lo -le $ac_mid; then |
|
|
13101 | ac_lo= ac_hi= |
|
|
13102 | break |
|
|
13103 | fi |
|
|
13104 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
13105 | fi |
|
|
13106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13107 | done |
|
|
13108 | else |
|
|
13109 | echo "$as_me: failed program was:" >&5 |
|
|
13110 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13111 | |
|
|
13112 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13113 | /* confdefs.h. */ |
|
|
13114 | _ACEOF |
|
|
13115 | cat confdefs.h >>conftest.$ac_ext |
|
|
13116 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13117 | /* end confdefs.h. */ |
|
|
13118 | $ac_includes_default |
|
|
13119 | int |
|
|
13120 | main () |
|
|
13121 | { |
|
|
13122 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
13123 | test_array [0] = 0 |
|
|
13124 | |
|
|
13125 | ; |
|
|
13126 | return 0; |
|
|
13127 | } |
|
|
13128 | _ACEOF |
|
|
13129 | rm -f conftest.$ac_objext |
|
|
13130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13131 | (eval $ac_compile) 2>conftest.er1 |
|
|
13132 | ac_status=$? |
|
|
13133 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13134 | rm -f conftest.er1 |
|
|
13135 | cat conftest.err >&5 |
|
|
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13137 | (exit $ac_status); } && |
|
|
13138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13140 | (eval $ac_try) 2>&5 |
|
|
13141 | ac_status=$? |
|
|
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13143 | (exit $ac_status); }; } && |
|
|
13144 | { ac_try='test -s conftest.$ac_objext' |
|
|
13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13146 | (eval $ac_try) 2>&5 |
|
|
13147 | ac_status=$? |
|
|
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13149 | (exit $ac_status); }; }; then |
|
|
13150 | ac_hi=-1 ac_mid=-1 |
|
|
13151 | while :; do |
|
|
13152 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13153 | /* confdefs.h. */ |
|
|
13154 | _ACEOF |
|
|
13155 | cat confdefs.h >>conftest.$ac_ext |
|
|
13156 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13157 | /* end confdefs.h. */ |
|
|
13158 | $ac_includes_default |
|
|
13159 | int |
|
|
13160 | main () |
|
|
13161 | { |
|
|
13162 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
13163 | test_array [0] = 0 |
|
|
13164 | |
|
|
13165 | ; |
|
|
13166 | return 0; |
|
|
13167 | } |
|
|
13168 | _ACEOF |
|
|
13169 | rm -f conftest.$ac_objext |
|
|
13170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13171 | (eval $ac_compile) 2>conftest.er1 |
|
|
13172 | ac_status=$? |
|
|
13173 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13174 | rm -f conftest.er1 |
|
|
13175 | cat conftest.err >&5 |
|
|
13176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13177 | (exit $ac_status); } && |
|
|
13178 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13180 | (eval $ac_try) 2>&5 |
|
|
13181 | ac_status=$? |
|
|
13182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13183 | (exit $ac_status); }; } && |
|
|
13184 | { ac_try='test -s conftest.$ac_objext' |
|
|
13185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13186 | (eval $ac_try) 2>&5 |
|
|
13187 | ac_status=$? |
|
|
13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13189 | (exit $ac_status); }; }; then |
|
|
13190 | ac_lo=$ac_mid; break |
|
|
13191 | else |
|
|
13192 | echo "$as_me: failed program was:" >&5 |
|
|
13193 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13194 | |
|
|
13195 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
13196 | if test $ac_mid -le $ac_hi; then |
|
|
13197 | ac_lo= ac_hi= |
|
|
13198 | break |
|
|
13199 | fi |
|
|
13200 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
13201 | fi |
|
|
13202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13203 | done |
|
|
13204 | else |
|
|
13205 | echo "$as_me: failed program was:" >&5 |
|
|
13206 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13207 | |
|
|
13208 | ac_lo= ac_hi= |
|
|
13209 | fi |
|
|
13210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13211 | fi |
|
|
13212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13213 | # Binary search between lo and hi bounds. |
|
|
13214 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
13215 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
13216 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13217 | /* confdefs.h. */ |
|
|
13218 | _ACEOF |
|
|
13219 | cat confdefs.h >>conftest.$ac_ext |
|
|
13220 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13221 | /* end confdefs.h. */ |
|
|
13222 | $ac_includes_default |
|
|
13223 | int |
|
|
13224 | main () |
|
|
13225 | { |
|
|
13226 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13227 | test_array [0] = 0 |
|
|
13228 | |
|
|
13229 | ; |
|
|
13230 | return 0; |
|
|
13231 | } |
|
|
13232 | _ACEOF |
|
|
13233 | rm -f conftest.$ac_objext |
|
|
13234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13235 | (eval $ac_compile) 2>conftest.er1 |
|
|
13236 | ac_status=$? |
|
|
13237 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13238 | rm -f conftest.er1 |
|
|
13239 | cat conftest.err >&5 |
|
|
13240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13241 | (exit $ac_status); } && |
|
|
13242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13244 | (eval $ac_try) 2>&5 |
|
|
13245 | ac_status=$? |
|
|
13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13247 | (exit $ac_status); }; } && |
|
|
13248 | { ac_try='test -s conftest.$ac_objext' |
|
|
13249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13250 | (eval $ac_try) 2>&5 |
|
|
13251 | ac_status=$? |
|
|
13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13253 | (exit $ac_status); }; }; then |
|
|
13254 | ac_hi=$ac_mid |
|
|
13255 | else |
|
|
13256 | echo "$as_me: failed program was:" >&5 |
|
|
13257 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13258 | |
|
|
13259 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
13260 | fi |
|
|
13261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13262 | done |
|
|
13263 | case $ac_lo in |
|
|
13264 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
13265 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13266 | See \`config.log' for more details." >&5 |
|
|
13267 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13268 | See \`config.log' for more details." >&2;} |
|
|
13269 | { (exit 1); exit 1; }; } ;; |
|
|
13270 | esac |
|
|
13271 | else |
|
|
13272 | if test "$cross_compiling" = yes; then |
|
|
13273 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
13274 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
13275 | { (exit 1); exit 1; }; } |
|
|
13276 | else |
|
|
13277 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13278 | /* confdefs.h. */ |
|
|
13279 | _ACEOF |
|
|
13280 | cat confdefs.h >>conftest.$ac_ext |
|
|
13281 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13282 | /* end confdefs.h. */ |
|
|
13283 | $ac_includes_default |
|
|
13284 | long longval () { return (long) (sizeof (long)); } |
|
|
13285 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
13286 | #include <stdio.h> |
|
|
13287 | #include <stdlib.h> |
|
|
13288 | int |
|
|
13289 | main () |
|
|
13290 | { |
|
|
13291 | |
|
|
13292 | FILE *f = fopen ("conftest.val", "w"); |
|
|
13293 | if (! f) |
|
|
13294 | exit (1); |
|
|
13295 | if (((long) (sizeof (long))) < 0) |
|
|
13296 | { |
|
|
13297 | long i = longval (); |
|
|
13298 | if (i != ((long) (sizeof (long)))) |
|
|
13299 | exit (1); |
|
|
13300 | fprintf (f, "%ld\n", i); |
|
|
13301 | } |
|
|
13302 | else |
|
|
13303 | { |
|
|
13304 | unsigned long i = ulongval (); |
|
|
13305 | if (i != ((long) (sizeof (long)))) |
|
|
13306 | exit (1); |
|
|
13307 | fprintf (f, "%lu\n", i); |
|
|
13308 | } |
|
|
13309 | exit (ferror (f) || fclose (f) != 0); |
|
|
13310 | |
|
|
13311 | ; |
|
|
13312 | return 0; |
|
|
13313 | } |
|
|
13314 | _ACEOF |
|
|
13315 | rm -f conftest$ac_exeext |
|
|
13316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13317 | (eval $ac_link) 2>&5 |
|
|
13318 | ac_status=$? |
|
|
13319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13320 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
13321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13322 | (eval $ac_try) 2>&5 |
|
|
13323 | ac_status=$? |
|
|
13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13325 | (exit $ac_status); }; }; then |
|
|
13326 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
13327 | else |
|
|
13328 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13329 | echo "$as_me: failed program was:" >&5 |
|
|
13330 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13331 | |
|
|
13332 | ( exit $ac_status ) |
|
|
13333 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13334 | See \`config.log' for more details." >&5 |
|
|
13335 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13336 | See \`config.log' for more details." >&2;} |
|
|
13337 | { (exit 1); exit 1; }; } |
|
|
13338 | fi |
|
|
13339 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13340 | fi |
|
|
13341 | fi |
|
|
13342 | rm -f conftest.val |
|
|
13343 | else |
|
|
13344 | ac_cv_sizeof_long=0 |
|
|
13345 | fi |
|
|
13346 | fi |
|
|
13347 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
13348 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
13349 | cat >>confdefs.h <<_ACEOF |
|
|
13350 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
13351 | _ACEOF |
|
|
13352 | |
|
|
13353 | |
|
|
13354 | echo "$as_me:$LINENO: checking for long long" >&5 |
8845 | echo "$as_me:$LINENO: checking for long long" >&5 |
13355 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8846 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
13356 | if test "${ac_cv_type_long_long+set}" = set; then |
8847 | if test "${ac_cv_type_long_long+set}" = set; then |
13357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13358 | else |
8849 | else |
… | |
… | |
14209 | rxvt_cv_int16_t=yes |
9700 | rxvt_cv_int16_t=yes |
14210 | else |
9701 | else |
14211 | echo "$as_me: failed program was:" >&5 |
9702 | echo "$as_me: failed program was:" >&5 |
14212 | sed 's/^/| /' conftest.$ac_ext >&5 |
9703 | sed 's/^/| /' conftest.$ac_ext >&5 |
14213 | |
9704 | |
14214 | if test $ac_cv_sizeof_char -ge 2; then |
9705 | if test "$ac_cv_sizeof_char" -ge 2; then |
14215 | rxvt_cv_int16_t=" char" |
9706 | rxvt_cv_int16_t=" char" |
14216 | else |
9707 | else |
14217 | if test $ac_cv_sizeof_short -ge 2; then |
9708 | if test "$ac_cv_sizeof_short" -ge 2; then |
14218 | rxvt_cv_int16_t=" short" |
9709 | rxvt_cv_int16_t=" short" |
14219 | else |
9710 | else |
14220 | if test $ac_cv_sizeof_int -ge 2; then |
9711 | if test "$ac_cv_sizeof_int" -ge 2; then |
14221 | rxvt_cv_int16_t=" int" |
9712 | rxvt_cv_int16_t=" int" |
14222 | else |
9713 | else |
14223 | if test $ac_cv_sizeof_long -ge 2; then |
9714 | if test "$ac_cv_sizeof_long" -ge 2; then |
14224 | rxvt_cv_int16_t=" long" |
9715 | rxvt_cv_int16_t=" long" |
14225 | else |
9716 | else |
14226 | if test $ac_cv_sizeof_long_long -ge 2; then |
9717 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14227 | rxvt_cv_int16_t=" long long" |
9718 | rxvt_cv_int16_t=" long long" |
14228 | else |
9719 | else |
14229 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9720 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
14230 | fi |
9721 | fi |
14231 | fi |
9722 | fi |
… | |
… | |
14291 | rxvt_cv_uint16_t=yes |
9782 | rxvt_cv_uint16_t=yes |
14292 | else |
9783 | else |
14293 | echo "$as_me: failed program was:" >&5 |
9784 | echo "$as_me: failed program was:" >&5 |
14294 | sed 's/^/| /' conftest.$ac_ext >&5 |
9785 | sed 's/^/| /' conftest.$ac_ext >&5 |
14295 | |
9786 | |
14296 | if test $ac_cv_sizeof_char -ge 2; then |
9787 | if test "$ac_cv_sizeof_char" -ge 2; then |
14297 | rxvt_cv_uint16_t="unsigned char" |
9788 | rxvt_cv_uint16_t="unsigned char" |
14298 | else |
9789 | else |
14299 | if test $ac_cv_sizeof_short -ge 2; then |
9790 | if test "$ac_cv_sizeof_short" -ge 2; then |
14300 | rxvt_cv_uint16_t="unsigned short" |
9791 | rxvt_cv_uint16_t="unsigned short" |
14301 | else |
9792 | else |
14302 | if test $ac_cv_sizeof_int -ge 2; then |
9793 | if test "$ac_cv_sizeof_int" -ge 2; then |
14303 | rxvt_cv_uint16_t="unsigned int" |
9794 | rxvt_cv_uint16_t="unsigned int" |
14304 | else |
9795 | else |
14305 | if test $ac_cv_sizeof_long -ge 2; then |
9796 | if test "$ac_cv_sizeof_long" -ge 2; then |
14306 | rxvt_cv_uint16_t="unsigned long" |
9797 | rxvt_cv_uint16_t="unsigned long" |
14307 | else |
9798 | else |
14308 | if test $ac_cv_sizeof_long_long -ge 2; then |
9799 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14309 | rxvt_cv_uint16_t="unsigned long long" |
9800 | rxvt_cv_uint16_t="unsigned long long" |
14310 | else |
9801 | else |
14311 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9802 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
14312 | fi |
9803 | fi |
14313 | fi |
9804 | fi |
… | |
… | |
14373 | rxvt_cv_int32_t=yes |
9864 | rxvt_cv_int32_t=yes |
14374 | else |
9865 | else |
14375 | echo "$as_me: failed program was:" >&5 |
9866 | echo "$as_me: failed program was:" >&5 |
14376 | sed 's/^/| /' conftest.$ac_ext >&5 |
9867 | sed 's/^/| /' conftest.$ac_ext >&5 |
14377 | |
9868 | |
14378 | if test $ac_cv_sizeof_char -ge 4; then |
9869 | if test "$ac_cv_sizeof_char" -ge 4; then |
14379 | rxvt_cv_int32_t=" char" |
9870 | rxvt_cv_int32_t=" char" |
14380 | else |
9871 | else |
14381 | if test $ac_cv_sizeof_short -ge 4; then |
9872 | if test "$ac_cv_sizeof_short" -ge 4; then |
14382 | rxvt_cv_int32_t=" short" |
9873 | rxvt_cv_int32_t=" short" |
14383 | else |
9874 | else |
14384 | if test $ac_cv_sizeof_int -ge 4; then |
9875 | if test "$ac_cv_sizeof_int" -ge 4; then |
14385 | rxvt_cv_int32_t=" int" |
9876 | rxvt_cv_int32_t=" int" |
14386 | else |
9877 | else |
14387 | if test $ac_cv_sizeof_long -ge 4; then |
9878 | if test "$ac_cv_sizeof_long" -ge 4; then |
14388 | rxvt_cv_int32_t=" long" |
9879 | rxvt_cv_int32_t=" long" |
14389 | else |
9880 | else |
14390 | if test $ac_cv_sizeof_long_long -ge 4; then |
9881 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14391 | rxvt_cv_int32_t=" long long" |
9882 | rxvt_cv_int32_t=" long long" |
14392 | else |
9883 | else |
14393 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9884 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
14394 | fi |
9885 | fi |
14395 | fi |
9886 | fi |
… | |
… | |
14455 | rxvt_cv_uint32_t=yes |
9946 | rxvt_cv_uint32_t=yes |
14456 | else |
9947 | else |
14457 | echo "$as_me: failed program was:" >&5 |
9948 | echo "$as_me: failed program was:" >&5 |
14458 | sed 's/^/| /' conftest.$ac_ext >&5 |
9949 | sed 's/^/| /' conftest.$ac_ext >&5 |
14459 | |
9950 | |
14460 | if test $ac_cv_sizeof_char -ge 4; then |
9951 | if test "$ac_cv_sizeof_char" -ge 4; then |
14461 | rxvt_cv_uint32_t="unsigned char" |
9952 | rxvt_cv_uint32_t="unsigned char" |
14462 | else |
9953 | else |
14463 | if test $ac_cv_sizeof_short -ge 4; then |
9954 | if test "$ac_cv_sizeof_short" -ge 4; then |
14464 | rxvt_cv_uint32_t="unsigned short" |
9955 | rxvt_cv_uint32_t="unsigned short" |
14465 | else |
9956 | else |
14466 | if test $ac_cv_sizeof_int -ge 4; then |
9957 | if test "$ac_cv_sizeof_int" -ge 4; then |
14467 | rxvt_cv_uint32_t="unsigned int" |
9958 | rxvt_cv_uint32_t="unsigned int" |
14468 | else |
9959 | else |
14469 | if test $ac_cv_sizeof_long -ge 4; then |
9960 | if test "$ac_cv_sizeof_long" -ge 4; then |
14470 | rxvt_cv_uint32_t="unsigned long" |
9961 | rxvt_cv_uint32_t="unsigned long" |
14471 | else |
9962 | else |
14472 | if test $ac_cv_sizeof_long_long -ge 4; then |
9963 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14473 | rxvt_cv_uint32_t="unsigned long long" |
9964 | rxvt_cv_uint32_t="unsigned long long" |
14474 | else |
9965 | else |
14475 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9966 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
14476 | fi |
9967 | fi |
14477 | fi |
9968 | fi |
… | |
… | |
14491 | else |
9982 | else |
14492 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9983 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
14493 | fi |
9984 | fi |
14494 | fi |
9985 | fi |
14495 | |
9986 | |
14496 | if test $ac_cv_sizeof_int_p -eq 8; then |
9987 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
14497 | rxvt_intp_define="#define intp_t int64_t" |
9988 | rxvt_intp_define="#define intp_t int64_t" |
14498 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9989 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
14499 | else |
9990 | else |
14500 | if test $ac_cv_sizeof_int_p -eq 4; then |
9991 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
14501 | rxvt_intp_define="#define intp_t int32_t" |
9992 | rxvt_intp_define="#define intp_t int32_t" |
14502 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9993 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
14503 | else |
9994 | else |
14504 | if test $ac_cv_sizeof_int_p -eq 2; then |
9995 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
14505 | rxvt_intp_define="#define intp_t int16_t" |
9996 | rxvt_intp_define="#define intp_t int16_t" |
14506 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
9997 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
14507 | else |
9998 | else |
14508 | rxvt_intp_define="#error set intp_t" |
9999 | rxvt_intp_define="#error set intp_t" |
14509 | rxvt_u_intp_define="#error set u_intp_t" |
10000 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
14580 | #define RETSIGTYPE $ac_cv_type_signal |
10071 | #define RETSIGTYPE $ac_cv_type_signal |
14581 | _ACEOF |
10072 | _ACEOF |
14582 | |
10073 | |
14583 | |
10074 | |
14584 | |
10075 | |
14585 | case "$host_alias" in |
|
|
14586 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14587 | *) break;; |
|
|
14588 | esac |
|
|
14589 | |
|
|
14590 | |
|
|
14591 | |
|
|
14592 | |
|
|
14593 | |
|
|
14594 | |
|
|
14595 | |
|
|
14596 | |
|
|
14597 | |
|
|
14598 | |
|
|
14599 | |
|
|
14600 | |
|
|
14601 | |
10076 | |
14602 | |
10077 | |
14603 | |
10078 | |
14604 | |
10079 | |
14605 | |
10080 | |
14606 | |
10081 | |
14607 | |
10082 | |
14608 | for ac_func in \ |
10083 | for ac_func in \ |
14609 | atexit \ |
|
|
14610 | revoke \ |
|
|
14611 | unsetenv \ |
10084 | unsetenv \ |
14612 | setutent \ |
10085 | setutent \ |
14613 | seteuid \ |
10086 | seteuid \ |
|
|
10087 | setresuid \ |
14614 | setreuid \ |
10088 | setreuid \ |
14615 | setsid \ |
|
|
14616 | setpgrp \ |
|
|
14617 | setpgid \ |
|
|
14618 | openpty \ |
|
|
14619 | _getpty \ |
|
|
14620 | grantpt \ |
|
|
14621 | unlockpt \ |
|
|
14622 | isastream \ |
|
|
14623 | on_exit \ |
10089 | on_exit \ |
14624 | nanosleep \ |
10090 | nanosleep \ |
14625 | updwtmp \ |
|
|
14626 | ttyslot \ |
|
|
14627 | |
10091 | |
14628 | do |
10092 | do |
14629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14630 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
14720 | cat >>confdefs.h <<_ACEOF |
10184 | cat >>confdefs.h <<_ACEOF |
14721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
14722 | _ACEOF |
10186 | _ACEOF |
14723 | |
10187 | |
14724 | fi |
10188 | fi |
|
|
10189 | done |
|
|
10190 | |
|
|
10191 | |
|
|
10192 | |
|
|
10193 | |
|
|
10194 | |
|
|
10195 | |
|
|
10196 | for ac_func in \ |
|
|
10197 | ttyslot \ |
|
|
10198 | updwtmp \ |
|
|
10199 | updwtmpx \ |
|
|
10200 | |
|
|
10201 | do |
|
|
10202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10205 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10207 | else |
|
|
10208 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10209 | /* confdefs.h. */ |
|
|
10210 | _ACEOF |
|
|
10211 | cat confdefs.h >>conftest.$ac_ext |
|
|
10212 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10213 | /* end confdefs.h. */ |
|
|
10214 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10215 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10216 | #define $ac_func innocuous_$ac_func |
|
|
10217 | |
|
|
10218 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10219 | which can conflict with char $ac_func (); below. |
|
|
10220 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10221 | <limits.h> exists even on freestanding compilers. */ |
|
|
10222 | |
|
|
10223 | #ifdef __STDC__ |
|
|
10224 | # include <limits.h> |
|
|
10225 | #else |
|
|
10226 | # include <assert.h> |
|
|
10227 | #endif |
|
|
10228 | |
|
|
10229 | #undef $ac_func |
|
|
10230 | |
|
|
10231 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10232 | #ifdef __cplusplus |
|
|
10233 | extern "C" |
|
|
10234 | { |
|
|
10235 | #endif |
|
|
10236 | /* We use char because int might match the return type of a gcc2 |
|
|
10237 | builtin and then its argument prototype would still apply. */ |
|
|
10238 | char $ac_func (); |
|
|
10239 | /* The GNU C library defines this for functions which it implements |
|
|
10240 | to always fail with ENOSYS. Some functions are actually named |
|
|
10241 | something starting with __ and the normal name is an alias. */ |
|
|
10242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10243 | choke me |
|
|
10244 | #else |
|
|
10245 | char (*f) () = $ac_func; |
|
|
10246 | #endif |
|
|
10247 | #ifdef __cplusplus |
|
|
10248 | } |
|
|
10249 | #endif |
|
|
10250 | |
|
|
10251 | int |
|
|
10252 | main () |
|
|
10253 | { |
|
|
10254 | return f != $ac_func; |
|
|
10255 | ; |
|
|
10256 | return 0; |
|
|
10257 | } |
|
|
10258 | _ACEOF |
|
|
10259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10261 | (eval $ac_link) 2>conftest.er1 |
|
|
10262 | ac_status=$? |
|
|
10263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10264 | rm -f conftest.er1 |
|
|
10265 | cat conftest.err >&5 |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); } && |
|
|
10268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10270 | (eval $ac_try) 2>&5 |
|
|
10271 | ac_status=$? |
|
|
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10273 | (exit $ac_status); }; } && |
|
|
10274 | { ac_try='test -s conftest$ac_exeext' |
|
|
10275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10276 | (eval $ac_try) 2>&5 |
|
|
10277 | ac_status=$? |
|
|
10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10279 | (exit $ac_status); }; }; then |
|
|
10280 | eval "$as_ac_var=yes" |
|
|
10281 | else |
|
|
10282 | echo "$as_me: failed program was:" >&5 |
|
|
10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10284 | |
|
|
10285 | eval "$as_ac_var=no" |
|
|
10286 | fi |
|
|
10287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10288 | conftest$ac_exeext conftest.$ac_ext |
|
|
10289 | fi |
|
|
10290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10292 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10293 | cat >>confdefs.h <<_ACEOF |
|
|
10294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10295 | _ACEOF |
|
|
10296 | |
|
|
10297 | fi |
|
|
10298 | done |
|
|
10299 | |
|
|
10300 | |
|
|
10301 | |
|
|
10302 | |
|
|
10303 | |
|
|
10304 | for ac_header in \ |
|
|
10305 | utmp.h \ |
|
|
10306 | utmpx.h \ |
|
|
10307 | lastlog.h \ |
|
|
10308 | |
|
|
10309 | do |
|
|
10310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10316 | fi |
|
|
10317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10319 | else |
|
|
10320 | # Is the header compilable? |
|
|
10321 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10322 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10324 | /* confdefs.h. */ |
|
|
10325 | _ACEOF |
|
|
10326 | cat confdefs.h >>conftest.$ac_ext |
|
|
10327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10328 | /* end confdefs.h. */ |
|
|
10329 | $ac_includes_default |
|
|
10330 | #include <$ac_header> |
|
|
10331 | _ACEOF |
|
|
10332 | rm -f conftest.$ac_objext |
|
|
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10334 | (eval $ac_compile) 2>conftest.er1 |
|
|
10335 | ac_status=$? |
|
|
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10337 | rm -f conftest.er1 |
|
|
10338 | cat conftest.err >&5 |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); } && |
|
|
10341 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10343 | (eval $ac_try) 2>&5 |
|
|
10344 | ac_status=$? |
|
|
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10346 | (exit $ac_status); }; } && |
|
|
10347 | { ac_try='test -s conftest.$ac_objext' |
|
|
10348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10349 | (eval $ac_try) 2>&5 |
|
|
10350 | ac_status=$? |
|
|
10351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10352 | (exit $ac_status); }; }; then |
|
|
10353 | ac_header_compiler=yes |
|
|
10354 | else |
|
|
10355 | echo "$as_me: failed program was:" >&5 |
|
|
10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10357 | |
|
|
10358 | ac_header_compiler=no |
|
|
10359 | fi |
|
|
10360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10361 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10362 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10363 | |
|
|
10364 | # Is the header present? |
|
|
10365 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10367 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10368 | /* confdefs.h. */ |
|
|
10369 | _ACEOF |
|
|
10370 | cat confdefs.h >>conftest.$ac_ext |
|
|
10371 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10372 | /* end confdefs.h. */ |
|
|
10373 | #include <$ac_header> |
|
|
10374 | _ACEOF |
|
|
10375 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10377 | ac_status=$? |
|
|
10378 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10379 | rm -f conftest.er1 |
|
|
10380 | cat conftest.err >&5 |
|
|
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10382 | (exit $ac_status); } >/dev/null; then |
|
|
10383 | if test -s conftest.err; then |
|
|
10384 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10385 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10386 | else |
|
|
10387 | ac_cpp_err= |
|
|
10388 | fi |
|
|
10389 | else |
|
|
10390 | ac_cpp_err=yes |
|
|
10391 | fi |
|
|
10392 | if test -z "$ac_cpp_err"; then |
|
|
10393 | ac_header_preproc=yes |
|
|
10394 | else |
|
|
10395 | echo "$as_me: failed program was:" >&5 |
|
|
10396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10397 | |
|
|
10398 | ac_header_preproc=no |
|
|
10399 | fi |
|
|
10400 | rm -f conftest.err conftest.$ac_ext |
|
|
10401 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10402 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10403 | |
|
|
10404 | # So? What about this header? |
|
|
10405 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10406 | yes:no: ) |
|
|
10407 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10408 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10410 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10411 | ac_header_preproc=yes |
|
|
10412 | ;; |
|
|
10413 | no:yes:* ) |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10420 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10421 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10424 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10425 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10426 | ( |
|
|
10427 | cat <<\_ASBOX |
|
|
10428 | ## ------------------------------------------ ## |
|
|
10429 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10430 | ## ------------------------------------------ ## |
|
|
10431 | _ASBOX |
|
|
10432 | ) | |
|
|
10433 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10434 | ;; |
|
|
10435 | esac |
|
|
10436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10440 | else |
|
|
10441 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10442 | fi |
|
|
10443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10448 | cat >>confdefs.h <<_ACEOF |
|
|
10449 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10450 | _ACEOF |
|
|
10451 | |
|
|
10452 | fi |
|
|
10453 | |
14725 | done |
10454 | done |
14726 | |
10455 | |
14727 | |
10456 | |
14728 | |
10457 | |
14729 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10458 | if test "${ac_cv_header_utmp_h+set}" = set; then |
… | |
… | |
14873 | _ACEOF |
10602 | _ACEOF |
14874 | cat confdefs.h >>conftest.$ac_ext |
10603 | cat confdefs.h >>conftest.$ac_ext |
14875 | cat >>conftest.$ac_ext <<_ACEOF |
10604 | cat >>conftest.$ac_ext <<_ACEOF |
14876 | /* end confdefs.h. */ |
10605 | /* end confdefs.h. */ |
14877 | #include <sys/types.h> |
10606 | #include <sys/types.h> |
14878 | #include <stdint.h> |
|
|
14879 | #include <utmp.h> |
10607 | #include <utmp.h> |
14880 | int |
10608 | int |
14881 | main () |
10609 | main () |
14882 | { |
10610 | { |
14883 | struct utmp ut; |
10611 | struct utmp ut; |
… | |
… | |
15310 | #define HAVE_UTMPX_HOST 1 |
11038 | #define HAVE_UTMPX_HOST 1 |
15311 | _ACEOF |
11039 | _ACEOF |
15312 | |
11040 | |
15313 | fi |
11041 | fi |
15314 | |
11042 | |
15315 | fi |
11043 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11044 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
11045 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11047 | else |
|
|
11048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11049 | /* confdefs.h. */ |
|
|
11050 | _ACEOF |
|
|
11051 | cat confdefs.h >>conftest.$ac_ext |
|
|
11052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11053 | /* end confdefs.h. */ |
|
|
11054 | #include <sys/types.h> |
|
|
11055 | #include <utmpx.h> |
|
|
11056 | int |
|
|
11057 | main () |
|
|
11058 | { |
|
|
11059 | struct utmpx utx; utx.ut_session; |
|
|
11060 | ; |
|
|
11061 | return 0; |
|
|
11062 | } |
|
|
11063 | _ACEOF |
|
|
11064 | rm -f conftest.$ac_objext |
|
|
11065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11066 | (eval $ac_compile) 2>conftest.er1 |
|
|
11067 | ac_status=$? |
|
|
11068 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11069 | rm -f conftest.er1 |
|
|
11070 | cat conftest.err >&5 |
|
|
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11072 | (exit $ac_status); } && |
|
|
11073 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11075 | (eval $ac_try) 2>&5 |
|
|
11076 | ac_status=$? |
|
|
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11078 | (exit $ac_status); }; } && |
|
|
11079 | { ac_try='test -s conftest.$ac_objext' |
|
|
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11081 | (eval $ac_try) 2>&5 |
|
|
11082 | ac_status=$? |
|
|
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11084 | (exit $ac_status); }; }; then |
|
|
11085 | rxvt_cv_struct_utmpx_session=yes |
|
|
11086 | else |
|
|
11087 | echo "$as_me: failed program was:" >&5 |
|
|
11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
15316 | |
11089 | |
|
|
11090 | rxvt_cv_struct_utmpx_session=no |
|
|
11091 | fi |
|
|
11092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11093 | fi |
|
|
11094 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
11095 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
11096 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
11097 | |
|
|
11098 | cat >>confdefs.h <<\_ACEOF |
|
|
11099 | #define HAVE_UTMPX_SESSION 1 |
|
|
11100 | _ACEOF |
|
|
11101 | |
|
|
11102 | fi |
|
|
11103 | |
|
|
11104 | fi |
15317 | |
11105 | |
15318 | |
11106 | |
15319 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11107 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
15320 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
11108 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
15321 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
11109 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
… | |
… | |
15924 | _ACEOF |
11712 | _ACEOF |
15925 | |
11713 | |
15926 | fi |
11714 | fi |
15927 | |
11715 | |
15928 | |
11716 | |
|
|
11717 | |
15929 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11718 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
15930 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11719 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
15931 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11720 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
15932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15933 | else |
11722 | else |
… | |
… | |
16198 | #define HAVE_NL_LANGINFO 1 |
11987 | #define HAVE_NL_LANGINFO 1 |
16199 | _ACEOF |
11988 | _ACEOF |
16200 | |
11989 | |
16201 | fi |
11990 | fi |
16202 | |
11991 | |
|
|
11992 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11993 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11994 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11996 | else |
|
|
11997 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11998 | /* confdefs.h. */ |
|
|
11999 | _ACEOF |
|
|
12000 | cat confdefs.h >>conftest.$ac_ext |
|
|
12001 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12002 | /* end confdefs.h. */ |
|
|
12003 | |
|
|
12004 | #include <sys/types.h> |
|
|
12005 | #include <sys/socket.h> |
|
|
12006 | |
|
|
12007 | int |
|
|
12008 | main () |
|
|
12009 | { |
|
|
12010 | |
|
|
12011 | { |
|
|
12012 | msghdr msg; |
|
|
12013 | iovec iov; |
|
|
12014 | char buf [100]; |
|
|
12015 | char data = 0; |
|
|
12016 | |
|
|
12017 | iov.iov_base = &data; |
|
|
12018 | iov.iov_len = 1; |
|
|
12019 | |
|
|
12020 | msg.msg_iov = &iov; |
|
|
12021 | msg.msg_iovlen = 1; |
|
|
12022 | msg.msg_control = buf; |
|
|
12023 | msg.msg_controllen = sizeof buf; |
|
|
12024 | |
|
|
12025 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12026 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12027 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12028 | cmsg->cmsg_len = 100; |
|
|
12029 | |
|
|
12030 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12031 | |
|
|
12032 | return sendmsg (3, &msg, 0); |
|
|
12033 | } |
|
|
12034 | |
|
|
12035 | ; |
|
|
12036 | return 0; |
|
|
12037 | } |
|
|
12038 | _ACEOF |
|
|
12039 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12041 | (eval $ac_link) 2>conftest.er1 |
|
|
12042 | ac_status=$? |
|
|
12043 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12044 | rm -f conftest.er1 |
|
|
12045 | cat conftest.err >&5 |
|
|
12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12047 | (exit $ac_status); } && |
|
|
12048 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12050 | (eval $ac_try) 2>&5 |
|
|
12051 | ac_status=$? |
|
|
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12053 | (exit $ac_status); }; } && |
|
|
12054 | { ac_try='test -s conftest$ac_exeext' |
|
|
12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12056 | (eval $ac_try) 2>&5 |
|
|
12057 | ac_status=$? |
|
|
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12059 | (exit $ac_status); }; }; then |
|
|
12060 | rxvt_can_pass_fds=yes |
|
|
12061 | else |
|
|
12062 | echo "$as_me: failed program was:" >&5 |
|
|
12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12064 | |
|
|
12065 | rxvt_can_pass_fds=no |
|
|
12066 | fi |
|
|
12067 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12068 | conftest$ac_exeext conftest.$ac_ext |
|
|
12069 | fi |
|
|
12070 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
12071 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
12072 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
12073 | |
|
|
12074 | cat >>confdefs.h <<\_ACEOF |
|
|
12075 | #define HAVE_UNIX_FDPASS 1 |
|
|
12076 | _ACEOF |
|
|
12077 | |
|
|
12078 | else |
|
|
12079 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
|
|
12080 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
|
|
12081 | { (exit 1); exit 1; }; } |
|
|
12082 | fi |
|
|
12083 | |
16203 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
12084 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
16204 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
12085 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
16205 | if test "${rxvt_broken_ximcb+set}" = set; then |
12086 | if test "${rxvt_broken_ximcb+set}" = set; then |
16206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16207 | else |
12088 | else |
… | |
… | |
16256 | #define XIMCB_PROTO_BROKEN 1 |
12137 | #define XIMCB_PROTO_BROKEN 1 |
16257 | _ACEOF |
12138 | _ACEOF |
16258 | |
12139 | |
16259 | fi |
12140 | fi |
16260 | |
12141 | |
16261 | echo "$as_me:$LINENO: checking for getpt" >&5 |
|
|
16262 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
|
|
16263 | if test "${rxvt_cv_func_getpt+set}" = set; then |
|
|
16264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16265 | else |
|
|
16266 | cat >conftest.$ac_ext <<_ACEOF |
|
|
16267 | /* confdefs.h. */ |
|
|
16268 | _ACEOF |
|
|
16269 | cat confdefs.h >>conftest.$ac_ext |
|
|
16270 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
16271 | /* end confdefs.h. */ |
|
|
16272 | #define _GNU_SOURCE |
|
|
16273 | #ifdef HAVE_STDLIB_H |
|
|
16274 | # include <cstdlib> |
|
|
16275 | #endif |
|
|
16276 | int |
|
|
16277 | main () |
|
|
16278 | { |
|
|
16279 | (void)getpt(); |
|
|
16280 | ; |
|
|
16281 | return 0; |
|
|
16282 | } |
|
|
16283 | _ACEOF |
|
|
16284 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
16285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
16286 | (eval $ac_link) 2>conftest.er1 |
|
|
16287 | ac_status=$? |
|
|
16288 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
16289 | rm -f conftest.er1 |
|
|
16290 | cat conftest.err >&5 |
|
|
16291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16292 | (exit $ac_status); } && |
|
|
16293 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
16294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16295 | (eval $ac_try) 2>&5 |
|
|
16296 | ac_status=$? |
|
|
16297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16298 | (exit $ac_status); }; } && |
|
|
16299 | { ac_try='test -s conftest$ac_exeext' |
|
|
16300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
16301 | (eval $ac_try) 2>&5 |
|
|
16302 | ac_status=$? |
|
|
16303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16304 | (exit $ac_status); }; }; then |
|
|
16305 | rxvt_cv_func_getpt=yes |
|
|
16306 | else |
|
|
16307 | echo "$as_me: failed program was:" >&5 |
|
|
16308 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
16309 | |
12142 | |
16310 | rxvt_cv_func_getpt=no |
|
|
16311 | fi |
|
|
16312 | rm -f conftest.err conftest.$ac_objext \ |
|
|
16313 | conftest$ac_exeext conftest.$ac_ext |
|
|
16314 | fi |
|
|
16315 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
|
|
16316 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
|
|
16317 | if test x$rxvt_cv_func_getpt = xyes; then |
|
|
16318 | |
12143 | |
16319 | cat >>confdefs.h <<\_ACEOF |
|
|
16320 | #define HAVE_GETPT 1 |
|
|
16321 | _ACEOF |
|
|
16322 | |
12144 | |
16323 | fi |
|
|
16324 | |
12145 | |
16325 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
|
|
16326 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
|
|
16327 | if test "${rxvt_cv_ptys+set}" = set; then |
|
|
16328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
16329 | else |
|
|
16330 | if test x$ac_cv_func_openpty = xyes; then |
|
|
16331 | rxvt_cv_ptys=OPENPTY |
|
|
16332 | else if test x$ac_cv_func__getpty = xyes; then |
|
|
16333 | rxvt_cv_ptys=SGI4 |
|
|
16334 | else if test -c /dev/ttyp20; then |
|
|
16335 | rxvt_cv_ptys=SCO |
|
|
16336 | else if test -c /dev/ptym/clone; then |
|
|
16337 | rxvt_cv_ptys=HPUX |
|
|
16338 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
16339 | rxvt_cv_ptys=GLIBC |
|
|
16340 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
16341 | rxvt_cv_ptys=PTC |
|
|
16342 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
16343 | rxvt_cv_ptys=PTC |
|
|
16344 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
16345 | rxvt_cv_ptys=STREAMS |
|
|
16346 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
16347 | rxvt_cv_ptys=STREAMS |
|
|
16348 | else |
|
|
16349 | rxvt_cv_ptys=BSD |
|
|
16350 | fi |
|
|
16351 | fi |
|
|
16352 | fi |
|
|
16353 | fi |
|
|
16354 | fi |
|
|
16355 | fi |
|
|
16356 | fi |
|
|
16357 | fi |
|
|
16358 | fi |
|
|
16359 | |
12146 | |
16360 | fi |
|
|
16361 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
16362 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
16363 | |
12147 | |
16364 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12148 | for ac_header in \ |
|
|
12149 | pty.h \ |
|
|
12150 | util.h \ |
|
|
12151 | libutil.h \ |
|
|
12152 | sys/ioctl.h \ |
|
|
12153 | sys/stropts.h \ |
16365 | |
12154 | |
16366 | cat >>confdefs.h <<\_ACEOF |
|
|
16367 | #define PTYS_ARE_OPENPTY 1 |
|
|
16368 | _ACEOF |
|
|
16369 | |
|
|
16370 | fi |
|
|
16371 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
16372 | |
|
|
16373 | cat >>confdefs.h <<\_ACEOF |
|
|
16374 | #define PTYS_ARE_NUMERIC 1 |
|
|
16375 | _ACEOF |
|
|
16376 | |
|
|
16377 | fi |
|
|
16378 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
16379 | |
|
|
16380 | cat >>confdefs.h <<\_ACEOF |
|
|
16381 | #define PTYS_ARE_PTMX 1 |
|
|
16382 | _ACEOF |
|
|
16383 | |
|
|
16384 | fi |
|
|
16385 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
16386 | |
|
|
16387 | cat >>confdefs.h <<\_ACEOF |
|
|
16388 | #define PTYS_ARE_PTC 1 |
|
|
16389 | _ACEOF |
|
|
16390 | |
|
|
16391 | fi |
|
|
16392 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
16393 | |
|
|
16394 | cat >>confdefs.h <<\_ACEOF |
|
|
16395 | #define PTYS_ARE__GETPTY 1 |
|
|
16396 | _ACEOF |
|
|
16397 | |
|
|
16398 | fi |
|
|
16399 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
16400 | |
|
|
16401 | cat >>confdefs.h <<\_ACEOF |
|
|
16402 | #define PTYS_ARE_GETPTY 1 |
|
|
16403 | _ACEOF |
|
|
16404 | |
|
|
16405 | fi |
|
|
16406 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
16407 | |
|
|
16408 | cat >>confdefs.h <<\_ACEOF |
|
|
16409 | #define PTYS_ARE_GETPT 1 |
|
|
16410 | _ACEOF |
|
|
16411 | |
|
|
16412 | fi |
|
|
16413 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
16414 | |
|
|
16415 | cat >>confdefs.h <<\_ACEOF |
|
|
16416 | #define PTYS_ARE_CLONE 1 |
|
|
16417 | _ACEOF |
|
|
16418 | |
|
|
16419 | fi |
|
|
16420 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
16421 | |
|
|
16422 | cat >>confdefs.h <<\_ACEOF |
|
|
16423 | #define PTYS_ARE_SEARCHED 1 |
|
|
16424 | _ACEOF |
|
|
16425 | |
|
|
16426 | fi |
|
|
16427 | |
|
|
16428 | |
|
|
16429 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
16430 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
16431 | ptys=`echo /dev/pty??` |
|
|
16432 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
16433 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
16434 | if test x$pch1 != x; then |
|
|
16435 | |
|
|
16436 | cat >>confdefs.h <<_ACEOF |
|
|
16437 | #define PTYCHAR1 "$pch1" |
|
|
16438 | _ACEOF |
|
|
16439 | |
|
|
16440 | fi |
|
|
16441 | if test x$pch2 != x; then |
|
|
16442 | |
|
|
16443 | cat >>confdefs.h <<_ACEOF |
|
|
16444 | #define PTYCHAR2 "$pch2" |
|
|
16445 | _ACEOF |
|
|
16446 | |
|
|
16447 | fi |
|
|
16448 | |
|
|
16449 | if test x$support_8bitctrls = xyes; then |
|
|
16450 | |
|
|
16451 | cat >>confdefs.h <<\_ACEOF |
|
|
16452 | #define EIGHT_BIT_CONTROLS 1 |
|
|
16453 | _ACEOF |
|
|
16454 | |
|
|
16455 | fi |
|
|
16456 | if test x$support_fading = xyes; then |
|
|
16457 | |
|
|
16458 | cat >>confdefs.h <<\_ACEOF |
|
|
16459 | #define OFF_FOCUS_FADING 1 |
|
|
16460 | _ACEOF |
|
|
16461 | |
|
|
16462 | fi |
|
|
16463 | if test x$support_tinting = xyes; then |
|
|
16464 | |
|
|
16465 | cat >>confdefs.h <<\_ACEOF |
|
|
16466 | #define TINTING 1 |
|
|
16467 | _ACEOF |
|
|
16468 | |
|
|
16469 | fi |
|
|
16470 | if test x$support_inheritpixmap = xyes; then |
|
|
16471 | |
|
|
16472 | cat >>confdefs.h <<\_ACEOF |
|
|
16473 | #define TRANSPARENT 1 |
|
|
16474 | _ACEOF |
|
|
16475 | |
|
|
16476 | fi |
|
|
16477 | if test x$support_keepscrolling = xno; then |
|
|
16478 | |
|
|
16479 | cat >>confdefs.h <<\_ACEOF |
|
|
16480 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
16481 | _ACEOF |
|
|
16482 | |
|
|
16483 | fi |
|
|
16484 | if test x$support_selectionscrolling = xyes; then |
|
|
16485 | |
|
|
16486 | cat >>confdefs.h <<\_ACEOF |
|
|
16487 | #define SELECTION_SCROLLING 1 |
|
|
16488 | _ACEOF |
|
|
16489 | |
|
|
16490 | fi |
|
|
16491 | if test x$support_menubar = xyes; then |
|
|
16492 | |
|
|
16493 | cat >>confdefs.h <<\_ACEOF |
|
|
16494 | #define MENUBAR 1 |
|
|
16495 | _ACEOF |
|
|
16496 | |
|
|
16497 | fi |
|
|
16498 | if test x$support_frills = xno; then |
|
|
16499 | |
|
|
16500 | cat >>confdefs.h <<\_ACEOF |
|
|
16501 | #define NO_FRILLS 1 |
|
|
16502 | _ACEOF |
|
|
16503 | |
|
|
16504 | fi |
|
|
16505 | if test x$support_linespace = xno; then |
|
|
16506 | |
|
|
16507 | cat >>confdefs.h <<\_ACEOF |
|
|
16508 | #define NO_LINESPACE 1 |
|
|
16509 | _ACEOF |
|
|
16510 | |
|
|
16511 | fi |
|
|
16512 | if test x$support_24bit = xyes; then |
|
|
16513 | |
|
|
16514 | cat >>confdefs.h <<\_ACEOF |
|
|
16515 | #define PREFER_24BIT 1 |
|
|
16516 | _ACEOF |
|
|
16517 | |
|
|
16518 | fi |
|
|
16519 | if test x$support_mousewheel = xyes; then |
|
|
16520 | |
|
|
16521 | cat >>confdefs.h <<\_ACEOF |
|
|
16522 | #define MOUSE_WHEEL 1 |
|
|
16523 | _ACEOF |
|
|
16524 | |
|
|
16525 | fi |
|
|
16526 | if test x$support_mouseslipwheel = xyes; then |
|
|
16527 | |
|
|
16528 | cat >>confdefs.h <<\_ACEOF |
|
|
16529 | #define MOUSE_SLIP_WHEELING 1 |
|
|
16530 | _ACEOF |
|
|
16531 | |
|
|
16532 | fi |
|
|
16533 | if test x$support_utmp = xyes; then |
|
|
16534 | |
|
|
16535 | cat >>confdefs.h <<\_ACEOF |
|
|
16536 | #define UTMP_SUPPORT 1 |
|
|
16537 | _ACEOF |
|
|
16538 | |
|
|
16539 | fi |
|
|
16540 | if test x$support_wtmp = xyes; then |
|
|
16541 | |
|
|
16542 | cat >>confdefs.h <<\_ACEOF |
|
|
16543 | #define WTMP_SUPPORT 1 |
|
|
16544 | _ACEOF |
|
|
16545 | |
|
|
16546 | fi |
|
|
16547 | if test x$support_lastlog = xyes; then |
|
|
16548 | |
|
|
16549 | cat >>confdefs.h <<\_ACEOF |
|
|
16550 | #define LASTLOG_SUPPORT 1 |
|
|
16551 | _ACEOF |
|
|
16552 | |
|
|
16553 | fi |
|
|
16554 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
16555 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
16556 | |
|
|
16557 | cat >>confdefs.h <<\_ACEOF |
|
|
16558 | #define USE_XIM 1 |
|
|
16559 | _ACEOF |
|
|
16560 | |
|
|
16561 | fi |
|
|
16562 | fi |
|
|
16563 | if test x$support_xpm = xyes; then |
|
|
16564 | |
|
|
16565 | cat >>confdefs.h <<\_ACEOF |
|
|
16566 | #define XPM_BACKGROUND 1 |
|
|
16567 | _ACEOF |
|
|
16568 | |
|
|
16569 | fi |
|
|
16570 | if test x$support_scroll_rxvt = xyes; then |
|
|
16571 | |
|
|
16572 | cat >>confdefs.h <<\_ACEOF |
|
|
16573 | #define RXVT_SCROLLBAR 1 |
|
|
16574 | _ACEOF |
|
|
16575 | |
|
|
16576 | scrolltypes="rxvt" |
|
|
16577 | fi |
|
|
16578 | if test x$support_scroll_next = xyes; then |
|
|
16579 | |
|
|
16580 | cat >>confdefs.h <<\_ACEOF |
|
|
16581 | #define NEXT_SCROLLBAR 1 |
|
|
16582 | _ACEOF |
|
|
16583 | |
|
|
16584 | scrolltypes="$scrolltypes next" |
|
|
16585 | fi |
|
|
16586 | if test x$support_scroll_xterm = xyes; then |
|
|
16587 | |
|
|
16588 | cat >>confdefs.h <<\_ACEOF |
|
|
16589 | #define XTERM_SCROLLBAR 1 |
|
|
16590 | _ACEOF |
|
|
16591 | |
|
|
16592 | scrolltypes="$scrolltypes xterm" |
|
|
16593 | fi |
|
|
16594 | if test x$support_scroll_plain = xyes; then |
|
|
16595 | |
|
|
16596 | cat >>confdefs.h <<\_ACEOF |
|
|
16597 | #define PLAIN_SCROLLBAR 1 |
|
|
16598 | _ACEOF |
|
|
16599 | |
|
|
16600 | scrolltypes="$scrolltypes plain" |
|
|
16601 | fi |
|
|
16602 | if test x$support_pointer_blank = xyes; then |
|
|
16603 | |
|
|
16604 | cat >>confdefs.h <<\_ACEOF |
|
|
16605 | #define POINTER_BLANK 1 |
|
|
16606 | _ACEOF |
|
|
16607 | |
|
|
16608 | fi |
|
|
16609 | if test x$support_cursor_blink = xyes; then |
|
|
16610 | |
|
|
16611 | cat >>confdefs.h <<\_ACEOF |
|
|
16612 | #define CURSOR_BLINK 1 |
|
|
16613 | _ACEOF |
|
|
16614 | |
|
|
16615 | fi |
|
|
16616 | if test x$support_text_blink = xyes; then |
|
|
16617 | |
|
|
16618 | cat >>confdefs.h <<\_ACEOF |
|
|
16619 | #define TEXT_BLINK 1 |
|
|
16620 | _ACEOF |
|
|
16621 | |
|
|
16622 | fi |
|
|
16623 | if test x$support_unicode3 = xyes; then |
|
|
16624 | |
|
|
16625 | cat >>confdefs.h <<\_ACEOF |
|
|
16626 | #define UNICODE_3 1 |
|
|
16627 | _ACEOF |
|
|
16628 | |
|
|
16629 | fi |
|
|
16630 | if test x$support_combining = xyes; then |
|
|
16631 | |
|
|
16632 | cat >>confdefs.h <<\_ACEOF |
|
|
16633 | #define ENABLE_COMBINING 1 |
|
|
16634 | _ACEOF |
|
|
16635 | |
|
|
16636 | fi |
|
|
16637 | if test x$codesets = xall; then |
|
|
16638 | codesets=jp,jp-ext,kr,cn,cn-ext |
|
|
16639 | fi |
|
|
16640 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
16641 | |
|
|
16642 | cat >>confdefs.h <<\_ACEOF |
|
|
16643 | #define ENCODING_EU 1 |
|
|
16644 | _ACEOF |
|
|
16645 | |
|
|
16646 | |
|
|
16647 | cat >>confdefs.h <<\_ACEOF |
|
|
16648 | #define ENCODING_VN 1 |
|
|
16649 | _ACEOF |
|
|
16650 | |
|
|
16651 | case "$codeset" in |
|
|
16652 | JP ) |
|
|
16653 | cat >>confdefs.h <<\_ACEOF |
|
|
16654 | #define ENCODING_JP 1 |
|
|
16655 | _ACEOF |
|
|
16656 | ;; |
|
|
16657 | JP_EXT ) |
|
|
16658 | cat >>confdefs.h <<\_ACEOF |
|
|
16659 | #define ENCODING_JP_EXT 1 |
|
|
16660 | _ACEOF |
|
|
16661 | ;; |
|
|
16662 | KR ) |
|
|
16663 | cat >>confdefs.h <<\_ACEOF |
|
|
16664 | #define ENCODING_KR 1 |
|
|
16665 | _ACEOF |
|
|
16666 | ;; |
|
|
16667 | CN ) |
|
|
16668 | cat >>confdefs.h <<\_ACEOF |
|
|
16669 | #define ENCODING_CN 1 |
|
|
16670 | _ACEOF |
|
|
16671 | ;; |
|
|
16672 | CN_EXT ) |
|
|
16673 | cat >>confdefs.h <<\_ACEOF |
|
|
16674 | #define ENCODING_CN_EXT 1 |
|
|
16675 | _ACEOF |
|
|
16676 | ;; |
|
|
16677 | esac |
|
|
16678 | done |
|
|
16679 | |
|
|
16680 | |
|
|
16681 | CFLAGS=${CFLAGS--O} |
|
|
16682 | LDFLAGS=${LDFLAGS--O} |
|
|
16683 | |
|
|
16684 | CPPFLAGS="$CPPFLAGS" |
|
|
16685 | |
|
|
16686 | |
|
|
16687 | |
|
|
16688 | |
|
|
16689 | |
|
|
16690 | |
|
|
16691 | |
|
|
16692 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
16693 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
16694 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
16695 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
16696 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
16697 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
16698 | fi |
|
|
16699 | |
|
|
16700 | |
|
|
16701 | |
|
|
16702 | |
|
|
16703 | |
|
|
16704 | if test x$support_addstrings = xno; then |
|
|
16705 | |
|
|
16706 | cat >>confdefs.h <<\_ACEOF |
|
|
16707 | #define NO_STRINGS 1 |
|
|
16708 | _ACEOF |
|
|
16709 | |
|
|
16710 | fi |
|
|
16711 | |
|
|
16712 | MCOMMON=./autoconf/Make.common |
|
|
16713 | |
|
|
16714 | |
|
|
16715 | test "$program_prefix" != NONE && |
|
|
16716 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
16717 | # Use a double $ so make ignores it. |
|
|
16718 | test "$program_suffix" != NONE && |
|
|
16719 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
16720 | # Double any \ or $. echo might interpret backslashes. |
|
|
16721 | # By default was `s,x,x', remove it if useless. |
|
|
16722 | cat <<\_ACEOF >conftest.sed |
|
|
16723 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
16724 | _ACEOF |
|
|
16725 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
16726 | rm conftest.sed |
|
|
16727 | |
|
|
16728 | |
|
|
16729 | |
|
|
16730 | |
|
|
16731 | |
|
|
16732 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16733 | include_stdint_h="#include <stdint.h>" |
|
|
16734 | else |
|
|
16735 | include_stdint_h="/* #include <stdint.h> */" |
|
|
16736 | fi |
|
|
16737 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16738 | include_stdarg_h="#include <cstdarg>" |
|
|
16739 | else |
|
|
16740 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
16741 | fi |
|
|
16742 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16743 | include_stdlib_h="#include <cstdlib>" |
|
|
16744 | else |
|
|
16745 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
16746 | fi |
|
|
16747 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16748 | include_unistd_h="#include <unistd.h>" |
|
|
16749 | else |
|
|
16750 | include_unistd_h="/* #include <unistd.h> */" |
|
|
16751 | fi |
|
|
16752 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16753 | include_string_h="#include <cstring>" |
|
|
16754 | else |
|
|
16755 | include_string_h="/* #include <cstring> */" |
|
|
16756 | fi |
|
|
16757 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16758 | include_fcntl_h="#include <fcntl.h>" |
|
|
16759 | else |
|
|
16760 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
16761 | fi |
|
|
16762 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16763 | include_util_h="#include <util.h>" |
|
|
16764 | else |
|
|
16765 | include_util_h="/* #include <util.h> */" |
|
|
16766 | fi |
|
|
16767 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16768 | include_assert_h="#include <assert.h>" |
|
|
16769 | else |
|
|
16770 | include_assert_h="/* #include <assert.h> */" |
|
|
16771 | fi |
|
|
16772 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16773 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
16774 | else |
|
|
16775 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
16776 | fi |
|
|
16777 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16778 | include_sys_select_h="#include <sys/select.h>" |
|
|
16779 | else |
|
|
16780 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
16781 | fi |
|
|
16782 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16783 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
16784 | else |
|
|
16785 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
16786 | fi |
|
|
16787 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16788 | include_sys_time_h="#include <sys/time.h>" |
|
|
16789 | else |
|
|
16790 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
16791 | fi |
|
|
16792 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
16793 | include_time_h="#include <time.h>" |
|
|
16794 | else |
|
|
16795 | include_time_h="/* #include <time.h> */" |
|
|
16796 | fi |
|
|
16797 | |
|
|
16798 | if test x$support_xft = xyes; then |
|
|
16799 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
16800 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16801 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
16802 | |
|
|
16803 | |
|
|
16804 | for ac_header in X11/Xft/Xft.h |
|
|
16805 | do |
12155 | do |
16806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12156 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
16807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
12157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
12159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
16943 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16944 | cat >>confdefs.h <<_ACEOF |
12294 | cat >>confdefs.h <<_ACEOF |
16945 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
16946 | _ACEOF |
12296 | _ACEOF |
16947 | |
12297 | |
|
|
12298 | fi |
|
|
12299 | |
|
|
12300 | done |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | |
|
|
12305 | |
|
|
12306 | |
|
|
12307 | |
|
|
12308 | for ac_func in \ |
|
|
12309 | revoke \ |
|
|
12310 | _getpty \ |
|
|
12311 | getpt \ |
|
|
12312 | posix_openpt \ |
|
|
12313 | isastream \ |
|
|
12314 | |
|
|
12315 | do |
|
|
12316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12319 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12321 | else |
|
|
12322 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12323 | /* confdefs.h. */ |
|
|
12324 | _ACEOF |
|
|
12325 | cat confdefs.h >>conftest.$ac_ext |
|
|
12326 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12327 | /* end confdefs.h. */ |
|
|
12328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12330 | #define $ac_func innocuous_$ac_func |
|
|
12331 | |
|
|
12332 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12333 | which can conflict with char $ac_func (); below. |
|
|
12334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12335 | <limits.h> exists even on freestanding compilers. */ |
|
|
12336 | |
|
|
12337 | #ifdef __STDC__ |
|
|
12338 | # include <limits.h> |
|
|
12339 | #else |
|
|
12340 | # include <assert.h> |
|
|
12341 | #endif |
|
|
12342 | |
|
|
12343 | #undef $ac_func |
|
|
12344 | |
|
|
12345 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12346 | #ifdef __cplusplus |
|
|
12347 | extern "C" |
|
|
12348 | { |
|
|
12349 | #endif |
|
|
12350 | /* We use char because int might match the return type of a gcc2 |
|
|
12351 | builtin and then its argument prototype would still apply. */ |
|
|
12352 | char $ac_func (); |
|
|
12353 | /* The GNU C library defines this for functions which it implements |
|
|
12354 | to always fail with ENOSYS. Some functions are actually named |
|
|
12355 | something starting with __ and the normal name is an alias. */ |
|
|
12356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12357 | choke me |
|
|
12358 | #else |
|
|
12359 | char (*f) () = $ac_func; |
|
|
12360 | #endif |
|
|
12361 | #ifdef __cplusplus |
|
|
12362 | } |
|
|
12363 | #endif |
|
|
12364 | |
|
|
12365 | int |
|
|
12366 | main () |
|
|
12367 | { |
|
|
12368 | return f != $ac_func; |
|
|
12369 | ; |
|
|
12370 | return 0; |
|
|
12371 | } |
|
|
12372 | _ACEOF |
|
|
12373 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12375 | (eval $ac_link) 2>conftest.er1 |
|
|
12376 | ac_status=$? |
|
|
12377 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12378 | rm -f conftest.er1 |
|
|
12379 | cat conftest.err >&5 |
|
|
12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12381 | (exit $ac_status); } && |
|
|
12382 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12384 | (eval $ac_try) 2>&5 |
|
|
12385 | ac_status=$? |
|
|
12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12387 | (exit $ac_status); }; } && |
|
|
12388 | { ac_try='test -s conftest$ac_exeext' |
|
|
12389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12390 | (eval $ac_try) 2>&5 |
|
|
12391 | ac_status=$? |
|
|
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12393 | (exit $ac_status); }; }; then |
|
|
12394 | eval "$as_ac_var=yes" |
|
|
12395 | else |
|
|
12396 | echo "$as_me: failed program was:" >&5 |
|
|
12397 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12398 | |
|
|
12399 | eval "$as_ac_var=no" |
|
|
12400 | fi |
|
|
12401 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12402 | conftest$ac_exeext conftest.$ac_ext |
|
|
12403 | fi |
|
|
12404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12407 | cat >>confdefs.h <<_ACEOF |
|
|
12408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12409 | _ACEOF |
|
|
12410 | |
|
|
12411 | fi |
|
|
12412 | done |
|
|
12413 | |
|
|
12414 | |
|
|
12415 | have_clone=no |
|
|
12416 | |
|
|
12417 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12418 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12419 | if test -e /dev/ptym/clone; then |
|
|
12420 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12421 | echo "${ECHO_T}yes" >&6 |
|
|
12422 | |
|
|
12423 | cat >>confdefs.h <<\_ACEOF |
|
|
12424 | #define HAVE_DEV_CLONE 1 |
|
|
12425 | _ACEOF |
|
|
12426 | |
|
|
12427 | |
|
|
12428 | cat >>confdefs.h <<\_ACEOF |
|
|
12429 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12430 | _ACEOF |
|
|
12431 | |
|
|
12432 | have_clone=yes |
|
|
12433 | else |
|
|
12434 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12435 | echo "${ECHO_T}no" >&6 |
|
|
12436 | fi |
|
|
12437 | |
|
|
12438 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12439 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12440 | if test -e /dev/ptc; then |
|
|
12441 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12442 | echo "${ECHO_T}yes" >&6 |
|
|
12443 | |
|
|
12444 | cat >>confdefs.h <<\_ACEOF |
|
|
12445 | #define HAVE_DEV_PTC 1 |
|
|
12446 | _ACEOF |
|
|
12447 | |
|
|
12448 | |
|
|
12449 | cat >>confdefs.h <<\_ACEOF |
|
|
12450 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12451 | _ACEOF |
|
|
12452 | |
|
|
12453 | have_clone=yes |
|
|
12454 | else |
|
|
12455 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12456 | echo "${ECHO_T}no" >&6 |
|
|
12457 | fi |
|
|
12458 | |
|
|
12459 | case $host in |
|
|
12460 | *-*-cygwin*) |
|
|
12461 | have_clone=yes |
|
|
12462 | |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12465 | _ACEOF |
|
|
12466 | |
|
|
12467 | ;; |
|
|
12468 | *) |
|
|
12469 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12470 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12471 | if test -e /dev/ptmx; then |
|
|
12472 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12473 | echo "${ECHO_T}yes" >&6 |
|
|
12474 | |
|
|
12475 | cat >>confdefs.h <<\_ACEOF |
|
|
12476 | #define HAVE_DEV_PTMX 1 |
|
|
12477 | _ACEOF |
|
|
12478 | |
|
|
12479 | |
|
|
12480 | cat >>confdefs.h <<\_ACEOF |
|
|
12481 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12482 | _ACEOF |
|
|
12483 | |
|
|
12484 | have_clone=yes |
|
|
12485 | else |
|
|
12486 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12487 | echo "${ECHO_T}no" >&6 |
|
|
12488 | fi |
|
|
12489 | ;; |
|
|
12490 | esac |
|
|
12491 | |
|
|
12492 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12493 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12494 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12496 | /* confdefs.h. */ |
|
|
12497 | _ACEOF |
|
|
12498 | cat confdefs.h >>conftest.$ac_ext |
|
|
12499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12500 | /* end confdefs.h. */ |
|
|
12501 | #include <stdlib.h> |
|
|
12502 | int |
|
|
12503 | main () |
|
|
12504 | { |
|
|
12505 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12506 | ; |
|
|
12507 | return 0; |
|
|
12508 | } |
|
|
12509 | _ACEOF |
|
|
12510 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12512 | (eval $ac_link) 2>conftest.er1 |
|
|
12513 | ac_status=$? |
|
|
12514 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12515 | rm -f conftest.er1 |
|
|
12516 | cat conftest.err >&5 |
|
|
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12518 | (exit $ac_status); } && |
|
|
12519 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12521 | (eval $ac_try) 2>&5 |
|
|
12522 | ac_status=$? |
|
|
12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12524 | (exit $ac_status); }; } && |
|
|
12525 | { ac_try='test -s conftest$ac_exeext' |
|
|
12526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12527 | (eval $ac_try) 2>&5 |
|
|
12528 | ac_status=$? |
|
|
12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12530 | (exit $ac_status); }; }; then |
|
|
12531 | unix98_pty=yes |
|
|
12532 | |
|
|
12533 | cat >>confdefs.h <<\_ACEOF |
|
|
12534 | #define UNIX98_PTY 1 |
|
|
12535 | _ACEOF |
|
|
12536 | |
|
|
12537 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12538 | echo "${ECHO_T}yes" >&6 |
|
|
12539 | else |
|
|
12540 | echo "$as_me: failed program was:" >&5 |
|
|
12541 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12542 | |
|
|
12543 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12544 | echo "${ECHO_T}no" >&6 |
|
|
12545 | fi |
|
|
12546 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12547 | conftest$ac_exeext conftest.$ac_ext |
|
|
12548 | fi |
|
|
12549 | |
|
|
12550 | if test -z "$unix98_pty"; then |
|
|
12551 | |
|
|
12552 | for ac_func in openpty |
|
|
12553 | do |
|
|
12554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12557 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12559 | else |
|
|
12560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12561 | /* confdefs.h. */ |
|
|
12562 | _ACEOF |
|
|
12563 | cat confdefs.h >>conftest.$ac_ext |
|
|
12564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12565 | /* end confdefs.h. */ |
|
|
12566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12568 | #define $ac_func innocuous_$ac_func |
|
|
12569 | |
|
|
12570 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12571 | which can conflict with char $ac_func (); below. |
|
|
12572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12573 | <limits.h> exists even on freestanding compilers. */ |
|
|
12574 | |
|
|
12575 | #ifdef __STDC__ |
|
|
12576 | # include <limits.h> |
|
|
12577 | #else |
|
|
12578 | # include <assert.h> |
|
|
12579 | #endif |
|
|
12580 | |
|
|
12581 | #undef $ac_func |
|
|
12582 | |
|
|
12583 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12584 | #ifdef __cplusplus |
|
|
12585 | extern "C" |
|
|
12586 | { |
|
|
12587 | #endif |
|
|
12588 | /* We use char because int might match the return type of a gcc2 |
|
|
12589 | builtin and then its argument prototype would still apply. */ |
|
|
12590 | char $ac_func (); |
|
|
12591 | /* The GNU C library defines this for functions which it implements |
|
|
12592 | to always fail with ENOSYS. Some functions are actually named |
|
|
12593 | something starting with __ and the normal name is an alias. */ |
|
|
12594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12595 | choke me |
|
|
12596 | #else |
|
|
12597 | char (*f) () = $ac_func; |
|
|
12598 | #endif |
|
|
12599 | #ifdef __cplusplus |
|
|
12600 | } |
|
|
12601 | #endif |
|
|
12602 | |
|
|
12603 | int |
|
|
12604 | main () |
|
|
12605 | { |
|
|
12606 | return f != $ac_func; |
|
|
12607 | ; |
|
|
12608 | return 0; |
|
|
12609 | } |
|
|
12610 | _ACEOF |
|
|
12611 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12613 | (eval $ac_link) 2>conftest.er1 |
|
|
12614 | ac_status=$? |
|
|
12615 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12616 | rm -f conftest.er1 |
|
|
12617 | cat conftest.err >&5 |
|
|
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12619 | (exit $ac_status); } && |
|
|
12620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12622 | (eval $ac_try) 2>&5 |
|
|
12623 | ac_status=$? |
|
|
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12625 | (exit $ac_status); }; } && |
|
|
12626 | { ac_try='test -s conftest$ac_exeext' |
|
|
12627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12628 | (eval $ac_try) 2>&5 |
|
|
12629 | ac_status=$? |
|
|
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12631 | (exit $ac_status); }; }; then |
|
|
12632 | eval "$as_ac_var=yes" |
|
|
12633 | else |
|
|
12634 | echo "$as_me: failed program was:" >&5 |
|
|
12635 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12636 | |
|
|
12637 | eval "$as_ac_var=no" |
|
|
12638 | fi |
|
|
12639 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12640 | conftest$ac_exeext conftest.$ac_ext |
|
|
12641 | fi |
|
|
12642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12644 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12645 | cat >>confdefs.h <<_ACEOF |
|
|
12646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12647 | _ACEOF |
|
|
12648 | |
|
|
12649 | else |
|
|
12650 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12651 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12652 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12654 | else |
|
|
12655 | ac_check_lib_save_LIBS=$LIBS |
|
|
12656 | LIBS="-lutil $LIBS" |
|
|
12657 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12658 | /* confdefs.h. */ |
|
|
12659 | _ACEOF |
|
|
12660 | cat confdefs.h >>conftest.$ac_ext |
|
|
12661 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12662 | /* end confdefs.h. */ |
|
|
12663 | |
|
|
12664 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12665 | #ifdef __cplusplus |
|
|
12666 | extern "C" |
|
|
12667 | #endif |
|
|
12668 | /* We use char because int might match the return type of a gcc2 |
|
|
12669 | builtin and then its argument prototype would still apply. */ |
|
|
12670 | char openpty (); |
|
|
12671 | int |
|
|
12672 | main () |
|
|
12673 | { |
|
|
12674 | openpty (); |
|
|
12675 | ; |
|
|
12676 | return 0; |
|
|
12677 | } |
|
|
12678 | _ACEOF |
|
|
12679 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12681 | (eval $ac_link) 2>conftest.er1 |
|
|
12682 | ac_status=$? |
|
|
12683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12684 | rm -f conftest.er1 |
|
|
12685 | cat conftest.err >&5 |
|
|
12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12687 | (exit $ac_status); } && |
|
|
12688 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12690 | (eval $ac_try) 2>&5 |
|
|
12691 | ac_status=$? |
|
|
12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12693 | (exit $ac_status); }; } && |
|
|
12694 | { ac_try='test -s conftest$ac_exeext' |
|
|
12695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12696 | (eval $ac_try) 2>&5 |
|
|
12697 | ac_status=$? |
|
|
12698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12699 | (exit $ac_status); }; }; then |
|
|
12700 | ac_cv_lib_util_openpty=yes |
|
|
12701 | else |
|
|
12702 | echo "$as_me: failed program was:" >&5 |
|
|
12703 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12704 | |
|
|
12705 | ac_cv_lib_util_openpty=no |
|
|
12706 | fi |
|
|
12707 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12708 | conftest$ac_exeext conftest.$ac_ext |
|
|
12709 | LIBS=$ac_check_lib_save_LIBS |
|
|
12710 | fi |
|
|
12711 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12712 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12713 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12714 | cat >>confdefs.h <<\_ACEOF |
|
|
12715 | #define HAVE_OPENPTY 1 |
|
|
12716 | _ACEOF |
|
|
12717 | LIBS="$LIBS -lutil" |
|
|
12718 | fi |
|
|
12719 | |
|
|
12720 | fi |
|
|
12721 | done |
|
|
12722 | |
|
|
12723 | fi |
|
|
12724 | |
|
|
12725 | |
|
|
12726 | if test x$support_xft = xyes; then |
|
|
12727 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12728 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12729 | |
|
|
12730 | |
|
|
12731 | for ac_header in X11/Xft/Xft.h |
|
|
12732 | do |
|
|
12733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12739 | fi |
|
|
12740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12742 | else |
|
|
12743 | # Is the header compilable? |
|
|
12744 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12746 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12747 | /* confdefs.h. */ |
|
|
12748 | _ACEOF |
|
|
12749 | cat confdefs.h >>conftest.$ac_ext |
|
|
12750 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12751 | /* end confdefs.h. */ |
|
|
12752 | $ac_includes_default |
|
|
12753 | #include <$ac_header> |
|
|
12754 | _ACEOF |
|
|
12755 | rm -f conftest.$ac_objext |
|
|
12756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12757 | (eval $ac_compile) 2>conftest.er1 |
|
|
12758 | ac_status=$? |
|
|
12759 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12760 | rm -f conftest.er1 |
|
|
12761 | cat conftest.err >&5 |
|
|
12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12763 | (exit $ac_status); } && |
|
|
12764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12766 | (eval $ac_try) 2>&5 |
|
|
12767 | ac_status=$? |
|
|
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12769 | (exit $ac_status); }; } && |
|
|
12770 | { ac_try='test -s conftest.$ac_objext' |
|
|
12771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12772 | (eval $ac_try) 2>&5 |
|
|
12773 | ac_status=$? |
|
|
12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12775 | (exit $ac_status); }; }; then |
|
|
12776 | ac_header_compiler=yes |
|
|
12777 | else |
|
|
12778 | echo "$as_me: failed program was:" >&5 |
|
|
12779 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12780 | |
|
|
12781 | ac_header_compiler=no |
|
|
12782 | fi |
|
|
12783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12785 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12786 | |
|
|
12787 | # Is the header present? |
|
|
12788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12790 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12791 | /* confdefs.h. */ |
|
|
12792 | _ACEOF |
|
|
12793 | cat confdefs.h >>conftest.$ac_ext |
|
|
12794 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12795 | /* end confdefs.h. */ |
|
|
12796 | #include <$ac_header> |
|
|
12797 | _ACEOF |
|
|
12798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12800 | ac_status=$? |
|
|
12801 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12802 | rm -f conftest.er1 |
|
|
12803 | cat conftest.err >&5 |
|
|
12804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12805 | (exit $ac_status); } >/dev/null; then |
|
|
12806 | if test -s conftest.err; then |
|
|
12807 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12808 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12809 | else |
|
|
12810 | ac_cpp_err= |
|
|
12811 | fi |
|
|
12812 | else |
|
|
12813 | ac_cpp_err=yes |
|
|
12814 | fi |
|
|
12815 | if test -z "$ac_cpp_err"; then |
|
|
12816 | ac_header_preproc=yes |
|
|
12817 | else |
|
|
12818 | echo "$as_me: failed program was:" >&5 |
|
|
12819 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12820 | |
|
|
12821 | ac_header_preproc=no |
|
|
12822 | fi |
|
|
12823 | rm -f conftest.err conftest.$ac_ext |
|
|
12824 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12825 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12826 | |
|
|
12827 | # So? What about this header? |
|
|
12828 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12829 | yes:no: ) |
|
|
12830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12833 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12834 | ac_header_preproc=yes |
|
|
12835 | ;; |
|
|
12836 | no:yes:* ) |
|
|
12837 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12838 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12839 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12840 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12841 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12842 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12843 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12844 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12846 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12847 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12848 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12849 | ( |
|
|
12850 | cat <<\_ASBOX |
|
|
12851 | ## ------------------------------------------ ## |
|
|
12852 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12853 | ## ------------------------------------------ ## |
|
|
12854 | _ASBOX |
|
|
12855 | ) | |
|
|
12856 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12857 | ;; |
|
|
12858 | esac |
|
|
12859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12863 | else |
|
|
12864 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12865 | fi |
|
|
12866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12868 | |
|
|
12869 | fi |
|
|
12870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12871 | cat >>confdefs.h <<_ACEOF |
|
|
12872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12873 | _ACEOF |
|
|
12874 | |
16948 | else |
12875 | else |
16949 | support_xft=no |
12876 | support_xft=no |
16950 | fi |
12877 | fi |
16951 | |
12878 | |
16952 | done |
12879 | done |
… | |
… | |
17033 | #define XFT 1 |
12960 | #define XFT 1 |
17034 | _ACEOF |
12961 | _ACEOF |
17035 | |
12962 | |
17036 | fi |
12963 | fi |
17037 | fi |
12964 | fi |
|
|
12965 | if test x$support_styles = xyes; then |
17038 | |
12966 | |
|
|
12967 | cat >>confdefs.h <<\_ACEOF |
|
|
12968 | #define ENABLE_STYLES 1 |
|
|
12969 | _ACEOF |
|
|
12970 | |
|
|
12971 | fi |
|
|
12972 | if test x$support_iso14755 = xyes; then |
|
|
12973 | |
|
|
12974 | cat >>confdefs.h <<\_ACEOF |
|
|
12975 | #define ISO_14755 1 |
|
|
12976 | _ACEOF |
|
|
12977 | |
|
|
12978 | fi |
|
|
12979 | if test x$support_8bitctrls = xyes; then |
|
|
12980 | |
|
|
12981 | cat >>confdefs.h <<\_ACEOF |
|
|
12982 | #define EIGHT_BIT_CONTROLS 1 |
|
|
12983 | _ACEOF |
|
|
12984 | |
|
|
12985 | fi |
|
|
12986 | if test x$support_fading = xyes; then |
|
|
12987 | |
|
|
12988 | cat >>confdefs.h <<\_ACEOF |
|
|
12989 | #define OFF_FOCUS_FADING 1 |
|
|
12990 | _ACEOF |
|
|
12991 | |
|
|
12992 | fi |
|
|
12993 | if test x$support_tinting = xyes; then |
|
|
12994 | |
|
|
12995 | cat >>confdefs.h <<\_ACEOF |
|
|
12996 | #define TINTING 1 |
|
|
12997 | _ACEOF |
|
|
12998 | |
|
|
12999 | fi |
|
|
13000 | if test x$support_inheritpixmap = xyes; then |
|
|
13001 | |
|
|
13002 | cat >>confdefs.h <<\_ACEOF |
|
|
13003 | #define TRANSPARENT 1 |
|
|
13004 | _ACEOF |
|
|
13005 | |
|
|
13006 | fi |
|
|
13007 | if test x$support_keepscrolling = xno; then |
|
|
13008 | |
|
|
13009 | cat >>confdefs.h <<\_ACEOF |
|
|
13010 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
13011 | _ACEOF |
|
|
13012 | |
|
|
13013 | fi |
|
|
13014 | if test x$support_selectionscrolling = xyes; then |
|
|
13015 | |
|
|
13016 | cat >>confdefs.h <<\_ACEOF |
|
|
13017 | #define SELECTION_SCROLLING 1 |
|
|
13018 | _ACEOF |
|
|
13019 | |
|
|
13020 | fi |
|
|
13021 | if test x$support_frills = xyes; then |
|
|
13022 | |
|
|
13023 | cat >>confdefs.h <<\_ACEOF |
|
|
13024 | #define ENABLE_FRILLS 1 |
|
|
13025 | _ACEOF |
|
|
13026 | |
|
|
13027 | fi |
|
|
13028 | if test x$support_24bit = xyes; then |
|
|
13029 | |
|
|
13030 | cat >>confdefs.h <<\_ACEOF |
|
|
13031 | #define PREFER_24BIT 1 |
|
|
13032 | _ACEOF |
|
|
13033 | |
|
|
13034 | fi |
|
|
13035 | if test x$support_mousewheel = xyes; then |
|
|
13036 | |
|
|
13037 | cat >>confdefs.h <<\_ACEOF |
|
|
13038 | #define MOUSE_WHEEL 1 |
|
|
13039 | _ACEOF |
|
|
13040 | |
|
|
13041 | fi |
|
|
13042 | if test x$support_mouseslipwheel = xyes; then |
|
|
13043 | |
|
|
13044 | cat >>confdefs.h <<\_ACEOF |
|
|
13045 | #define MOUSE_SLIP_WHEELING 1 |
|
|
13046 | _ACEOF |
|
|
13047 | |
|
|
13048 | fi |
|
|
13049 | if test x$support_utmp = xyes; then |
|
|
13050 | |
|
|
13051 | cat >>confdefs.h <<\_ACEOF |
|
|
13052 | #define UTMP_SUPPORT 1 |
|
|
13053 | _ACEOF |
|
|
13054 | |
|
|
13055 | fi |
|
|
13056 | if test x$support_wtmp = xyes; then |
|
|
13057 | |
|
|
13058 | cat >>confdefs.h <<\_ACEOF |
|
|
13059 | #define WTMP_SUPPORT 1 |
|
|
13060 | _ACEOF |
|
|
13061 | |
|
|
13062 | fi |
|
|
13063 | if test x$support_lastlog = xyes; then |
|
|
13064 | |
|
|
13065 | cat >>confdefs.h <<\_ACEOF |
|
|
13066 | #define LASTLOG_SUPPORT 1 |
|
|
13067 | _ACEOF |
|
|
13068 | |
|
|
13069 | fi |
|
|
13070 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
13071 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
13072 | |
|
|
13073 | cat >>confdefs.h <<\_ACEOF |
|
|
13074 | #define USE_XIM 1 |
|
|
13075 | _ACEOF |
|
|
13076 | |
|
|
13077 | fi |
|
|
13078 | fi |
|
|
13079 | if test x$support_xpm = xyes; then |
|
|
13080 | |
|
|
13081 | cat >>confdefs.h <<\_ACEOF |
|
|
13082 | #define XPM_BACKGROUND 1 |
|
|
13083 | _ACEOF |
|
|
13084 | |
|
|
13085 | fi |
|
|
13086 | if test x$support_scroll_rxvt = xyes; then |
|
|
13087 | |
|
|
13088 | cat >>confdefs.h <<\_ACEOF |
|
|
13089 | #define RXVT_SCROLLBAR 1 |
|
|
13090 | _ACEOF |
|
|
13091 | |
|
|
13092 | scrolltypes="rxvt" |
|
|
13093 | fi |
|
|
13094 | if test x$support_scroll_next = xyes; then |
|
|
13095 | |
|
|
13096 | cat >>confdefs.h <<\_ACEOF |
|
|
13097 | #define NEXT_SCROLLBAR 1 |
|
|
13098 | _ACEOF |
|
|
13099 | |
|
|
13100 | scrolltypes="$scrolltypes next" |
|
|
13101 | fi |
|
|
13102 | if test x$support_scroll_xterm = xyes; then |
|
|
13103 | |
|
|
13104 | cat >>confdefs.h <<\_ACEOF |
|
|
13105 | #define XTERM_SCROLLBAR 1 |
|
|
13106 | _ACEOF |
|
|
13107 | |
|
|
13108 | scrolltypes="$scrolltypes xterm" |
|
|
13109 | fi |
|
|
13110 | if test x$support_scroll_plain = xyes; then |
|
|
13111 | |
|
|
13112 | cat >>confdefs.h <<\_ACEOF |
|
|
13113 | #define PLAIN_SCROLLBAR 1 |
|
|
13114 | _ACEOF |
|
|
13115 | |
|
|
13116 | scrolltypes="$scrolltypes plain" |
|
|
13117 | fi |
|
|
13118 | if test x$support_pointer_blank = xyes; then |
|
|
13119 | |
|
|
13120 | cat >>confdefs.h <<\_ACEOF |
|
|
13121 | #define POINTER_BLANK 1 |
|
|
13122 | _ACEOF |
|
|
13123 | |
|
|
13124 | fi |
|
|
13125 | if test x$support_text_blink = xyes; then |
|
|
13126 | |
|
|
13127 | cat >>confdefs.h <<\_ACEOF |
|
|
13128 | #define TEXT_BLINK 1 |
|
|
13129 | _ACEOF |
|
|
13130 | |
|
|
13131 | fi |
|
|
13132 | if test x$support_unicode3 = xyes; then |
|
|
13133 | |
|
|
13134 | cat >>confdefs.h <<\_ACEOF |
|
|
13135 | #define UNICODE_3 1 |
|
|
13136 | _ACEOF |
|
|
13137 | |
|
|
13138 | fi |
|
|
13139 | if test x$support_combining = xyes; then |
|
|
13140 | |
|
|
13141 | cat >>confdefs.h <<\_ACEOF |
|
|
13142 | #define ENABLE_COMBINING 1 |
|
|
13143 | _ACEOF |
|
|
13144 | |
|
|
13145 | fi |
|
|
13146 | if test x$codesets = xall; then |
|
|
13147 | codesets=jp,jp-ext,kr,zh,zh-ext |
|
|
13148 | fi |
|
|
13149 | |
|
|
13150 | cat >>confdefs.h <<\_ACEOF |
|
|
13151 | #define ENCODING_EU 1 |
|
|
13152 | _ACEOF |
|
|
13153 | |
|
|
13154 | |
|
|
13155 | cat >>confdefs.h <<\_ACEOF |
|
|
13156 | #define ENCODING_VN 1 |
|
|
13157 | _ACEOF |
|
|
13158 | |
|
|
13159 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
13160 | case "$codeset" in |
|
|
13161 | JP ) |
|
|
13162 | cat >>confdefs.h <<\_ACEOF |
|
|
13163 | #define ENCODING_JP 1 |
|
|
13164 | _ACEOF |
|
|
13165 | ;; |
|
|
13166 | JP_EXT ) |
|
|
13167 | cat >>confdefs.h <<\_ACEOF |
|
|
13168 | #define ENCODING_JP_EXT 1 |
|
|
13169 | _ACEOF |
|
|
13170 | ;; |
|
|
13171 | KR ) |
|
|
13172 | cat >>confdefs.h <<\_ACEOF |
|
|
13173 | #define ENCODING_KR 1 |
|
|
13174 | _ACEOF |
|
|
13175 | ;; |
|
|
13176 | ZH ) |
|
|
13177 | cat >>confdefs.h <<\_ACEOF |
|
|
13178 | #define ENCODING_ZH 1 |
|
|
13179 | _ACEOF |
|
|
13180 | ;; |
|
|
13181 | ZH_EXT ) |
|
|
13182 | cat >>confdefs.h <<\_ACEOF |
|
|
13183 | #define ENCODING_ZH_EXT 1 |
|
|
13184 | _ACEOF |
|
|
13185 | ;; |
|
|
13186 | esac |
|
|
13187 | done |
|
|
13188 | |
|
|
13189 | IF_PERL=\# |
|
|
13190 | if test x$support_perl = xyes; then |
|
|
13191 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
13192 | set dummy perl5; ac_word=$2 |
|
|
13193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13195 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13197 | else |
|
|
13198 | case $PERL in |
|
|
13199 | [\\/]* | ?:[\\/]*) |
|
|
13200 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13201 | ;; |
|
|
13202 | *) |
|
|
13203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13204 | for as_dir in $PATH |
|
|
13205 | do |
|
|
13206 | IFS=$as_save_IFS |
|
|
13207 | test -z "$as_dir" && as_dir=. |
|
|
13208 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13209 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13210 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13212 | break 2 |
|
|
13213 | fi |
|
|
13214 | done |
|
|
13215 | done |
|
|
13216 | |
|
|
13217 | ;; |
|
|
13218 | esac |
|
|
13219 | fi |
|
|
13220 | PERL=$ac_cv_path_PERL |
|
|
13221 | |
|
|
13222 | if test -n "$PERL"; then |
|
|
13223 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13224 | echo "${ECHO_T}$PERL" >&6 |
|
|
13225 | else |
|
|
13226 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13227 | echo "${ECHO_T}no" >&6 |
|
|
13228 | fi |
|
|
13229 | |
|
|
13230 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
13231 | set dummy perl; ac_word=$2 |
|
|
13232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
13233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
13234 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13236 | else |
|
|
13237 | case $PERL in |
|
|
13238 | [\\/]* | ?:[\\/]*) |
|
|
13239 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
13240 | ;; |
|
|
13241 | *) |
|
|
13242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
13243 | for as_dir in $PATH |
|
|
13244 | do |
|
|
13245 | IFS=$as_save_IFS |
|
|
13246 | test -z "$as_dir" && as_dir=. |
|
|
13247 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
13248 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
13249 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
13250 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
13251 | break 2 |
|
|
13252 | fi |
|
|
13253 | done |
|
|
13254 | done |
|
|
13255 | |
|
|
13256 | ;; |
|
|
13257 | esac |
|
|
13258 | fi |
|
|
13259 | PERL=$ac_cv_path_PERL |
|
|
13260 | |
|
|
13261 | if test -n "$PERL"; then |
|
|
13262 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
13263 | echo "${ECHO_T}$PERL" >&6 |
|
|
13264 | else |
|
|
13265 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
13266 | echo "${ECHO_T}no" >&6 |
|
|
13267 | fi |
|
|
13268 | |
|
|
13269 | |
|
|
13270 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
13271 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
13272 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
13273 | |
|
|
13274 | save_CXXFLAGS="$CXXFLAGS" |
|
|
13275 | save_LIBS="$LIBS" |
|
|
13276 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13277 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13278 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13279 | /* confdefs.h. */ |
|
|
13280 | _ACEOF |
|
|
13281 | cat confdefs.h >>conftest.$ac_ext |
|
|
13282 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13283 | /* end confdefs.h. */ |
|
|
13284 | |
|
|
13285 | #include <EXTERN.h> |
|
|
13286 | #include <perl.h> |
|
|
13287 | #include <XSUB.h> |
|
|
13288 | |
|
|
13289 | int |
|
|
13290 | main () |
|
|
13291 | { |
|
|
13292 | |
|
|
13293 | PerlInterpreter *perl = perl_alloc (); |
|
|
13294 | |
|
|
13295 | ; |
|
|
13296 | return 0; |
|
|
13297 | } |
|
|
13298 | _ACEOF |
|
|
13299 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13301 | (eval $ac_link) 2>conftest.er1 |
|
|
13302 | ac_status=$? |
|
|
13303 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13304 | rm -f conftest.er1 |
|
|
13305 | cat conftest.err >&5 |
|
|
13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13307 | (exit $ac_status); } && |
|
|
13308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13310 | (eval $ac_try) 2>&5 |
|
|
13311 | ac_status=$? |
|
|
13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13313 | (exit $ac_status); }; } && |
|
|
13314 | { ac_try='test -s conftest$ac_exeext' |
|
|
13315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13316 | (eval $ac_try) 2>&5 |
|
|
13317 | ac_status=$? |
|
|
13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13319 | (exit $ac_status); }; }; then |
|
|
13320 | rxvt_perl_link=yes |
|
|
13321 | else |
|
|
13322 | echo "$as_me: failed program was:" >&5 |
|
|
13323 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13324 | |
|
|
13325 | rxvt_perl_link=no |
|
|
13326 | fi |
|
|
13327 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13328 | conftest$ac_exeext conftest.$ac_ext |
|
|
13329 | CXXFLAGS="$save_CXXFLAGS" |
|
|
13330 | LIBS="$save_LIBS" |
|
|
13331 | |
|
|
13332 | if test x$rxvt_perl_link = xyes; then |
|
|
13333 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
13334 | echo "${ECHO_T}ok" >&6 |
|
|
13335 | |
|
|
13336 | cat >>confdefs.h <<\_ACEOF |
|
|
13337 | #define ENABLE_PERL 1 |
|
|
13338 | _ACEOF |
|
|
13339 | |
|
|
13340 | IF_PERL= |
|
|
13341 | PERL_O=rxvtperl.o |
|
|
13342 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
13343 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
13344 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
13345 | else |
|
|
13346 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
13347 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
13348 | { (exit 1); exit 1; }; } |
|
|
13349 | fi |
|
|
13350 | else |
|
|
13351 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
13352 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
13353 | { (exit 1); exit 1; }; } |
|
|
13354 | fi |
|
|
13355 | fi |
|
|
13356 | |
|
|
13357 | |
|
|
13358 | |
|
|
13359 | |
|
|
13360 | |
|
|
13361 | |
|
|
13362 | |
|
|
13363 | if test x$support_perl = xyes; then |
|
|
13364 | support_frills=yes |
|
|
13365 | fi |
|
|
13366 | |
|
|
13367 | |
|
|
13368 | CFLAGS=${CFLAGS--O} |
|
|
13369 | LDFLAGS=${LDFLAGS--O} |
|
|
13370 | |
|
|
13371 | CPPFLAGS="$CPPFLAGS" |
|
|
13372 | |
|
|
13373 | |
|
|
13374 | |
|
|
13375 | |
|
|
13376 | |
|
|
13377 | |
|
|
13378 | |
|
|
13379 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13380 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
13381 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13382 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13383 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13384 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13385 | fi |
|
|
13386 | |
|
|
13387 | |
|
|
13388 | |
|
|
13389 | |
|
|
13390 | |
|
|
13391 | test "$program_prefix" != NONE && |
|
|
13392 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
13393 | # Use a double $ so make ignores it. |
|
|
13394 | test "$program_suffix" != NONE && |
|
|
13395 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
13396 | # Double any \ or $. echo might interpret backslashes. |
|
|
13397 | # By default was `s,x,x', remove it if useless. |
|
|
13398 | cat <<\_ACEOF >conftest.sed |
|
|
13399 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
13400 | _ACEOF |
|
|
13401 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
13402 | rm conftest.sed |
|
|
13403 | |
|
|
13404 | |
|
|
13405 | |
|
|
13406 | |
|
|
13407 | |
|
|
13408 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13409 | include_stdint_h="#include <stdint.h>" |
|
|
13410 | else |
|
|
13411 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13412 | fi |
|
|
13413 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13414 | include_stdarg_h="#include <cstdarg>" |
|
|
13415 | else |
|
|
13416 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13417 | fi |
|
|
13418 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13419 | include_stdlib_h="#include <cstdlib>" |
|
|
13420 | else |
|
|
13421 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13422 | fi |
|
|
13423 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13424 | include_unistd_h="#include <unistd.h>" |
|
|
13425 | else |
|
|
13426 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13427 | fi |
|
|
13428 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13429 | include_string_h="#include <cstring>" |
|
|
13430 | else |
|
|
13431 | include_string_h="/* #include <cstring> */" |
|
|
13432 | fi |
|
|
13433 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13434 | include_fcntl_h="#include <fcntl.h>" |
|
|
13435 | else |
|
|
13436 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13437 | fi |
|
|
13438 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13439 | include_util_h="#include <util.h>" |
|
|
13440 | else |
|
|
13441 | include_util_h="/* #include <util.h> */" |
|
|
13442 | fi |
|
|
13443 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13444 | include_assert_h="#include <assert.h>" |
|
|
13445 | else |
|
|
13446 | include_assert_h="/* #include <assert.h> */" |
|
|
13447 | fi |
|
|
13448 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13449 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13450 | else |
|
|
13451 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13452 | fi |
|
|
13453 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13454 | include_sys_select_h="#include <sys/select.h>" |
|
|
13455 | else |
|
|
13456 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13457 | fi |
|
|
13458 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13459 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13460 | else |
|
|
13461 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13462 | fi |
|
|
13463 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13464 | include_sys_time_h="#include <sys/time.h>" |
|
|
13465 | else |
|
|
13466 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13467 | fi |
|
|
13468 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13469 | include_time_h="#include <time.h>" |
|
|
13470 | else |
|
|
13471 | include_time_h="/* #include <time.h> */" |
|
|
13472 | fi |
|
|
13473 | |
17039 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
13474 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
|
|
13475 | |
17040 | cat >confcache <<\_ACEOF |
13476 | cat >confcache <<\_ACEOF |
17041 | # This file is a shell script that caches the results of configure |
13477 | # This file is a shell script that caches the results of configure |
17042 | # tests run on this system so they can be shared between configure |
13478 | # tests run on this system so they can be shared between configure |
17043 | # scripts and configure runs, see configure's option --config-cache. |
13479 | # scripts and configure runs, see configure's option --config-cache. |
17044 | # It is not useful on other systems. If it contains results you don't |
13480 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
17560 | cat >>$CONFIG_STATUS <<\_ACEOF |
13996 | cat >>$CONFIG_STATUS <<\_ACEOF |
17561 | for ac_config_target in $ac_config_targets |
13997 | for ac_config_target in $ac_config_targets |
17562 | do |
13998 | do |
17563 | case "$ac_config_target" in |
13999 | case "$ac_config_target" in |
17564 | # Handling of arguments. |
14000 | # Handling of arguments. |
17565 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
17566 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14001 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17567 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14002 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17568 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14003 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17569 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
17570 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
14004 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
17571 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
17572 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
14005 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
17573 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14006 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17574 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14007 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17575 | { (exit 1); exit 1; }; };; |
14008 | { (exit 1); exit 1; }; };; |
17576 | esac |
14009 | esac |
17577 | done |
14010 | done |
… | |
… | |
17652 | s,@DEFS@,$DEFS,;t t |
14085 | s,@DEFS@,$DEFS,;t t |
17653 | s,@ECHO_C@,$ECHO_C,;t t |
14086 | s,@ECHO_C@,$ECHO_C,;t t |
17654 | s,@ECHO_N@,$ECHO_N,;t t |
14087 | s,@ECHO_N@,$ECHO_N,;t t |
17655 | s,@ECHO_T@,$ECHO_T,;t t |
14088 | s,@ECHO_T@,$ECHO_T,;t t |
17656 | s,@LIBS@,$LIBS,;t t |
14089 | s,@LIBS@,$LIBS,;t t |
|
|
14090 | s,@build@,$build,;t t |
|
|
14091 | s,@build_cpu@,$build_cpu,;t t |
|
|
14092 | s,@build_vendor@,$build_vendor,;t t |
|
|
14093 | s,@build_os@,$build_os,;t t |
|
|
14094 | s,@host@,$host,;t t |
|
|
14095 | s,@host_cpu@,$host_cpu,;t t |
|
|
14096 | s,@host_vendor@,$host_vendor,;t t |
|
|
14097 | s,@host_os@,$host_os,;t t |
17657 | s,@VERSION@,$VERSION,;t t |
14098 | s,@VERSION@,$VERSION,;t t |
17658 | s,@DATE@,$DATE,;t t |
14099 | s,@DATE@,$DATE,;t t |
17659 | s,@LSMDATE@,$LSMDATE,;t t |
14100 | s,@LSMDATE@,$LSMDATE,;t t |
17660 | s,@LIBVERSION@,$LIBVERSION,;t t |
14101 | s,@LIBVERSION@,$LIBVERSION,;t t |
17661 | s,@CC@,$CC,;t t |
14102 | s,@CC@,$CC,;t t |
… | |
… | |
17670 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14111 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17671 | s,@CPP@,$CPP,;t t |
14112 | s,@CPP@,$CPP,;t t |
17672 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14113 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17673 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14114 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17674 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14115 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17675 | s,@AWK@,$AWK,;t t |
14116 | s,@EGREP@,$EGREP,;t t |
17676 | s,@LINKER@,$LINKER,;t t |
14117 | s,@LINKER@,$LINKER,;t t |
17677 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
17678 | s,@EGREP@,$EGREP,;t t |
|
|
17679 | s,@build@,$build,;t t |
|
|
17680 | s,@build_cpu@,$build_cpu,;t t |
|
|
17681 | s,@build_vendor@,$build_vendor,;t t |
|
|
17682 | s,@build_os@,$build_os,;t t |
|
|
17683 | s,@host@,$host,;t t |
|
|
17684 | s,@host_cpu@,$host_cpu,;t t |
|
|
17685 | s,@host_vendor@,$host_vendor,;t t |
|
|
17686 | s,@host_os@,$host_os,;t t |
|
|
17687 | s,@LN_S@,$LN_S,;t t |
|
|
17688 | s,@ECHO@,$ECHO,;t t |
|
|
17689 | s,@RANLIB@,$RANLIB,;t t |
|
|
17690 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17691 | s,@STRIP@,$STRIP,;t t |
|
|
17692 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17693 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17694 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14118 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17695 | s,@RXVTNAME@,$RXVTNAME,;t t |
14119 | s,@RXVTNAME@,$RXVTNAME,;t t |
17696 | s,@MV@,$MV,;t t |
14120 | s,@MV@,$MV,;t t |
17697 | s,@RM@,$RM,;t t |
14121 | s,@RM@,$RM,;t t |
17698 | s,@CP@,$CP,;t t |
14122 | s,@CP@,$CP,;t t |
17699 | s,@LN@,$LN,;t t |
14123 | s,@LN@,$LN,;t t |
17700 | s,@SED@,$SED,;t t |
14124 | s,@SED@,$SED,;t t |
|
|
14125 | s,@ECHO@,$ECHO,;t t |
17701 | s,@CMP@,$CMP,;t t |
14126 | s,@CMP@,$CMP,;t t |
17702 | s,@TBL@,$TBL,;t t |
14127 | s,@TIC@,$TIC,;t t |
|
|
14128 | s,@CXXCPP@,$CXXCPP,;t t |
17703 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14129 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17704 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14130 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17705 | s,@X_LIBS@,$X_LIBS,;t t |
14131 | s,@X_LIBS@,$X_LIBS,;t t |
17706 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14132 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
17707 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14133 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
17711 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14137 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17712 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14138 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17713 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14139 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17714 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14140 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17715 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14141 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
14142 | s,@PERL@,$PERL,;t t |
|
|
14143 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
14144 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
14145 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
14146 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
14147 | s,@PERL_O@,$PERL_O,;t t |
17716 | s,@DEBUG@,$DEBUG,;t t |
14148 | s,@DEBUG@,$DEBUG,;t t |
17717 | s,@DINCLUDE@,$DINCLUDE,;t t |
14149 | s,@DINCLUDE@,$DINCLUDE,;t t |
17718 | s,@DLIB@,$DLIB,;t t |
14150 | s,@DLIB@,$DLIB,;t t |
17719 | s,@include_stdint_h@,$include_stdint_h,;t t |
14151 | s,@include_stdint_h@,$include_stdint_h,;t t |
17720 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
14152 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
17729 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
14161 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17730 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
14162 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17731 | s,@include_time_h@,$include_time_h,;t t |
14163 | s,@include_time_h@,$include_time_h,;t t |
17732 | s,@LIBOBJS@,$LIBOBJS,;t t |
14164 | s,@LIBOBJS@,$LIBOBJS,;t t |
17733 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
14165 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17734 | /@MCOMMON@/r $MCOMMON |
|
|
17735 | s,@MCOMMON@,,;t t |
|
|
17736 | CEOF |
14166 | CEOF |
17737 | |
14167 | |
17738 | _ACEOF |
14168 | _ACEOF |
17739 | |
14169 | |
17740 | cat >>$CONFIG_STATUS <<\_ACEOF |
14170 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
18250 | fi |
14680 | fi |
18251 | |
14681 | |
18252 | echo " |
14682 | echo " |
18253 | The following are set in config.h |
14683 | The following are set in config.h |
18254 | " |
14684 | " |
18255 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
18256 | if test x$support_utmp != xyes; then |
14685 | if test x$support_utmp != xyes; then |
18257 | echo " utmp support: disabled" |
14686 | echo " utmp support: disabled" |
18258 | echo |
14687 | echo |
18259 | else |
14688 | else |
18260 | echo " utmp support: enabled |
14689 | echo " utmp support: enabled |
18261 | utmp file: $rxvt_cv_path_utmp |
14690 | utmp file: $rxvt_cv_path_utmp |
18262 | utmpx file: $rxvt_cv_path_utmpx |
14691 | utmpx file: $rxvt_cv_path_utmpx |
18263 | wtmp file: $rxvt_cv_path_wtmp |
14692 | wtmp file: $rxvt_cv_path_wtmp |
18264 | wtmpx file: $rxvt_cv_path_wtmpx |
14693 | wtmpx file: $rxvt_cv_path_wtmpx |
18265 | lastlog file: $rxvt_cv_path_lastlog |
14694 | lastlog file: $rxvt_cv_path_lastlog |
18266 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
14695 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
14696 | embedded perl: $support_perl" |
18267 | echo |
14697 | echo |
18268 | fi |
14698 | fi |
18269 | if test x$term != x; then |
14699 | if test x$term != x; then |
18270 | echo " set TERM to: $term" |
14700 | echo " set TERM to: $term" |
18271 | fi |
14701 | fi |
… | |
… | |
18276 | echo " resource class: $RESCLASS" |
14706 | echo " resource class: $RESCLASS" |
18277 | if test x$RESFALLBACK != x; then |
14707 | if test x$RESFALLBACK != x; then |
18278 | echo " resource class fallback: $RESFALLBACK" |
14708 | echo " resource class fallback: $RESFALLBACK" |
18279 | fi |
14709 | fi |
18280 | echo |
14710 | echo |
18281 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
18282 | echo ".----------------------------------------------------------------." |
|
|
18283 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
18284 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
18285 | echo ".----------------------------------------------------------------." |
|
|
18286 | fi |
|
|
18287 | if test x$support_xpm = xneedsmanualspecification; then |
14711 | if test x$support_xpm = xneedsmanualspecification; then |
18288 | echo ".----------------------------------------------------------------." |
14712 | echo ".----------------------------------------------------------------." |
18289 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14713 | echo ". WARNING: --enable-xpm-background was specified however the ." |
18290 | echo ". XPM includes files and libraries could not be found. ." |
14714 | echo ". XPM includes files and libraries could not be found. ." |
18291 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14715 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
… | |
… | |
18300 | echo ". functions could not be found. ." |
14724 | echo ". functions could not be found. ." |
18301 | echo ". XIM is now being DISABLED! ." |
14725 | echo ". XIM is now being DISABLED! ." |
18302 | echo ".----------------------------------------------------------------." |
14726 | echo ".----------------------------------------------------------------." |
18303 | fi |
14727 | fi |
18304 | |
14728 | |
18305 | echo " *** Please check src/feature.h for further options ***" |
14729 | echo " *** Optionally check src/feature.h for further options ***" |
18306 | echo |
14730 | echo |
18307 | |
14731 | |
18308 | echo ".----------------------------------------------------------------." |
14732 | echo ".----------------------------------------------------------------." |
18309 | echo ". NOTE: most features are disabled by default, try ." |
14733 | echo ". NOTE: some features are disabled by default, try ." |
18310 | echo ". configure --help to get an idea of the optional features ." |
14734 | echo ". configure --help to get an idea of the optional features, ." |
|
|
14735 | echo ". or read ./README.configure ." |
|
|
14736 | echo ". ." |
|
|
14737 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
14738 | echo ". you do not want to read documentation and still want some ." |
|
|
14739 | echo ". useful features. ." |
18311 | echo ".----------------------------------------------------------------." |
14740 | echo ".----------------------------------------------------------------." |
18312 | echo |
14741 | echo |
18313 | |
14742 | |