home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / lib / autoconf / autoheader.m4f < prev   
Text File  |  1994-12-22  |  110KB  |  3,560 lines

  1. # This is a frozen state file generated by GNU m4 1.4
  2. V1
  3. Q1,1
  4. []
  5. T11,147
  6. AC_UNISTD_HAC_PRO([AC_UNISTD_H])AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(unistd.h)])dnl
  7. AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))[]AC_EPI()
  8. T10,54
  9. AC_STRCOLLAC_PRO([AC_STRCOLL])indir([AC_FUNC_STRCOLL])[]AC_EPI()
  10. F8,8
  11. translittranslit
  12. T7,24
  13. AC_WARNindir([AC_MSG_WARN], $@)
  14. T14,652
  15. AC_HEADER_STATAC_PRO([AC_HEADER_STAT])AC_MSG_CHECKING(whether stat file-mode macros are broken)
  16. AC_CACHE_VAL(ac_cv_header_stat_broken,
  17. [AC_EGREP_CPP([You lose], [#include <sys/types.h>
  18. #include <sys/stat.h>
  19. #ifdef S_ISBLK
  20. # if S_ISBLK (S_IFDIR)
  21. You lose.
  22. # endif
  23. # ifdef S_IFCHR
  24. #  if S_ISBLK (S_IFCHR)
  25. You lose.
  26. #  endif
  27. # endif
  28. #endif
  29.  
  30. #ifdef S_ISLNK
  31. # if S_ISLNK (S_IFREG)
  32. You lose.
  33. # endif
  34. #endif
  35.  
  36. #ifdef S_ISSOCK
  37. # if S_ISSOCK (S_IFREG)
  38. You lose.
  39. # endif
  40. #endif
  41. ], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])dnl
  42. AC_MSG_RESULT($ac_cv_header_stat_broken)
  43. if test $ac_cv_header_stat_broken = yes; then
  44.   AC_DEFINE(STAT_MACROS_BROKEN)
  45. fi
  46. []AC_EPI()
  47. F6,6
  48. substrsubstr
  49. T14,1186
  50. AC_HEADER_STDCAC_PRO([AC_HEADER_STDC])AC_REQUIRE_CPP()dnl
  51. AC_MSG_CHECKING(for ANSI C header files)
  52. AC_CACHE_VAL(ac_cv_header_stdc,
  53. [AC_TRY_CPP([#include <stdlib.h>
  54. #include <stdarg.h>
  55. #include <string.h>
  56. #include <float.h>], ac_cv_header_stdc=yes, ac_cv_header_stdc=no)
  57.  
  58. if test $ac_cv_header_stdc = yes; then
  59.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  60. AC_EGREP_HEADER(memchr, string.h, , ac_cv_header_stdc=no)
  61. fi
  62.  
  63. if test $ac_cv_header_stdc = yes; then
  64.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  65. AC_EGREP_HEADER(free, stdlib.h, , ac_cv_header_stdc=no)
  66. fi
  67.  
  68. if test $ac_cv_header_stdc = yes; then
  69.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  70. AC_TRY_RUN([#include <ctype.h>
  71. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  72. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  73. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  74. int main () { int i; for (i = 0; i < 256; i++)
  75. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  76. exit (0); }
  77. ], , ac_cv_header_stdc=no, ac_cv_header_stdc=no)
  78. fi])dnl
  79. AC_MSG_RESULT($ac_cv_header_stdc)
  80. if test $ac_cv_header_stdc = yes; then
  81.   AC_DEFINE(STDC_HEADERS)
  82. fi
  83. []AC_EPI()
  84. T8,50
  85. AC_VFORKAC_PRO([AC_VFORK])indir([AC_FUNC_VFORK])[]AC_EPI()
  86. F5,5
  87. ifdefifdef
  88. T7,125
  89. AC_WITHAC_PRO([AC_WITH])AC_OBSOLETE([$0], [; instead use AC_ARG_WITH])dnl
  90. AC_ARG_WITH([$1], [  --with-$1], [$2], [$3])dnl
  91. []AC_EPI()
  92. T19,656
  93. AC_CANONICAL_TARGETAC_PRO([AC_CANONICAL_TARGET])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  94. AC_MSG_CHECKING(target system type)
  95.  
  96. target_alias=$target
  97. case "$target_alias" in
  98. NONE)
  99.   case $nonopt in
  100.   NONE) target_alias=$host_alias ;;
  101.   *) target_alias=$nonopt ;;
  102.   esac ;;
  103. esac
  104.  
  105. target=`$ac_config_sub $target_alias`
  106. target_cpu=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  107. target_vendor=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  108. target_os=`/bin/echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  109. AC_MSG_RESULT($target)
  110. AC_SUBST(target)dnl
  111. AC_SUBST(target_alias)dnl
  112. AC_SUBST(target_cpu)dnl
  113. AC_SUBST(target_vendor)dnl
  114. AC_SUBST(target_os)dnl
  115. []AC_EPI()
  116. T16,62
  117. AC_PROGRAMS_PATHAC_PRO([AC_PROGRAMS_PATH])indir([AC_PATH_PROGS], $@)[]AC_EPI()
  118. F6,6
  119. m4exitm4exit
  120. T11,1102
  121. AC_PROG_CXXAC_PRO([AC_PROG_CXX])AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
  122. AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx, gcc)
  123.  
  124. AC_MSG_CHECKING(whether we are using GNU C++)
  125. AC_CACHE_VAL(ac_cv_prog_gxx,
  126. [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
  127. cat > conftest.C <<EOF
  128. #ifdef __GNUC__
  129.   yes;
  130. #endif
  131. EOF
  132. if ${CXX-g++} -E conftest.C 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
  133.   ac_cv_prog_gxx=yes
  134. else
  135.   ac_cv_prog_gxx=no
  136. fi])dnl
  137. AC_MSG_RESULT($ac_cv_prog_gxx)
  138. if test $ac_cv_prog_gxx = yes; then
  139.   GXX=yes
  140.   if test "${CXXFLAGS+set}" != set; then
  141.     AC_MSG_CHECKING(whether ${CXX-g++} accepts -g)
  142. AC_CACHE_VAL(ac_cv_prog_gxx_g,
  143. [echo 'void f(){}' > conftest.cc
  144. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  145.   ac_cv_prog_gxx_g=yes
  146. else
  147.   ac_cv_prog_gxx_g=no
  148. fi
  149. rm -f conftest*
  150. ])dnl
  151.     AC_MSG_RESULT($ac_cv_prog_gxx_g)
  152.     if test $ac_cv_prog_gxx_g = yes; then
  153.       # Amiga hack - suppress automatically using -g for now
  154.       # Also default to using -O2
  155.       CXXFLAGS="-O2"
  156.     else
  157.       CXXFLAGS="-O2"
  158.     fi
  159.   fi
  160. else
  161.   GXX=
  162.   test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
  163. fi
  164. []AC_EPI()
  165. T12,33
  166. AC_LANG_SAVEpushdef([AC_LANG_STACK], AC_LANG)
  167. F8,8
  168. sincludesinclude
  169. T17,1369
  170. AC_TYPE_GETGROUPSAC_PRO([AC_TYPE_GETGROUPS])AC_REQUIRE([AC_TYPE_UID_T])dnl
  171. AC_MSG_CHECKING(type of array argument to getgroups)
  172. AC_CACHE_VAL(ac_cv_type_getgroups,
  173. [AC_TRY_RUN(
  174. changequote(<<, >>)dnl
  175. <<
  176. /* Thanks to Mike Rendell for this test.  */
  177. #include <sys/types.h>
  178. #define NGID 256
  179. #undef MAX
  180. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  181. main()
  182. {
  183.   gid_t gidset[NGID];
  184.   int i, n;
  185.   union { gid_t gval; long lval; }  val;
  186.  
  187.   val.lval = -1;
  188.   for (i = 0; i < NGID; i++)
  189.     gidset[i] = val.gval;
  190.   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  191.                  gidset);
  192.   /* Exit non-zero if getgroups seems to require an array of ints.  This
  193.      happens when gid_t is short but getgroups modifies an array of ints.  */
  194.   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  195. }
  196. >>,
  197. changequote([, ])dnl
  198.   ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int,
  199.   ac_cv_type_getgroups=cross)
  200. if test $ac_cv_type_getgroups = cross; then
  201.   dnl When we can't run the test program (we are cross compiling), presume
  202.   dnl that <unistd.h> has either an accurate prototype for getgroups or none.
  203.   dnl Old systems without prototypes probably use int.
  204.   AC_EGREP_HEADER([getgroups.*int.*gid_t], unistd.h,
  205.           ac_cv_type_getgroups=gid_t, ac_cv_type_getgroups=int)
  206. fi])dnl
  207. AC_MSG_RESULT($ac_cv_type_getgroups)
  208. AC_DEFINE_UNQUOTED(GETGROUPS_T, $ac_cv_type_getgroups)
  209. []AC_EPI()
  210. F4,4
  211. decrdecr
  212. T15,53
  213. AC_MSG_CHECKING/bin/echo $ac_n "checking $1""... $ac_c" 1>&AC_FD_MSG
  214. T15,1890
  215. AC_PROG_INSTALLAC_PRO([AC_PROG_INSTALL])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  216. # Find a good install program.  We prefer a C program (faster),
  217. # so one script is as good as another.  But avoid the broken or
  218. # incompatible versions:
  219. # SysV /etc/install, /usr/sbin/install
  220. # SunOS /usr/etc/install
  221. # IRIX /sbin/install
  222. # AIX /bin/install
  223. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  224. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  225. # ./install, which can be erroneously created by make from ./install.sh.
  226. AC_MSG_CHECKING(for a BSD compatible install)
  227. if test -z "$INSTALL"; then
  228. AC_CACHE_VAL(ac_cv_path_install,
  229. [  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  230.   for ac_dir in $PATH; do
  231.     case "$ac_dir" in
  232.     ''|.|/gnu/etc) ;;
  233.     *)
  234.       # OSF1 and SCO ODT 3.0 have their own names for install.
  235.       for ac_prog in ginstall installbsd scoinst install; do
  236.         if test -f $ac_dir/$ac_prog; then
  237.       if test $ac_prog = install &&
  238.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  239.         # AIX install.  It has an incompatible calling convention.
  240.         # OSF/1 installbsd also uses dspmsg, but is usable.
  241.         :
  242.       else
  243.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  244.         break 2
  245.       fi
  246.     fi
  247.       done
  248.       ;;
  249.     esac
  250.   done
  251.   IFS="$ac_save_ifs"
  252.   # As a last resort, use the slow shell script.
  253.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"])dnl
  254.   INSTALL="$ac_cv_path_install"
  255. fi
  256. dnl We do special magic for INSTALL instead of AC_SUBST, to get
  257. dnl relative paths right. 
  258. AC_MSG_RESULT($INSTALL)
  259.  
  260. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  261. # It thinks the first close brace ends the variable substitution.
  262. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  263. AC_SUBST(INSTALL_PROGRAM)dnl
  264.  
  265. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  266. AC_SUBST(INSTALL_DATA)dnl
  267. []AC_EPI()
  268. F8,8
  269. errprinterrprint
  270. T17,172
  271. AC_PREREQ_COMPAREifelse(builtin([eval],
  272. [$3 + $2 * 1000 + $1 * 1000000 < $6 + $5 * 1000 + $4 * 1000000]), 1,
  273. [errprint(Autoconf version $7 or higher is required for this script
  274. )m4exit(3)])
  275. T15,64
  276. AC_HAVE_HEADERSAC_PRO([AC_HAVE_HEADERS])indir([AC_CHECK_HEADERS], $@)[]AC_EPI()
  277. T22,1217
  278. AC_SYS_LONG_FILE_NAMESAC_PRO([AC_SYS_LONG_FILE_NAMES])AC_MSG_CHECKING(for long file names)
  279. AC_CACHE_VAL(ac_cv_sys_long_file_names,
  280. [ac_cv_sys_long_file_names=yes
  281. # Test for long file names in all the places we know might matter:
  282. #      .        the current directory, where building will happen
  283. #      /tmp        where it might want to write temporary files
  284. #      /var/tmp        likewise
  285. #      /usr/tmp        likewise
  286. #      $prefix/lib    where we will be installing things
  287. #      $exec_prefix/lib    likewise
  288. # eval it to expand exec_prefix.
  289. for ac_dir in `eval echo . /tmp $prefix/lib $exec_prefix/lib` ; do
  290.   test -d $ac_dir || continue
  291.   test -w $ac_dir || continue # It is less confusing to not echo anything here.
  292.   (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
  293.   (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
  294.   val=`cat $ac_dir/conftest9012345 2>/dev/null`
  295.   if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
  296.     ac_cv_sys_long_file_names=no
  297.     rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  298.     break
  299.   fi
  300.   rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
  301. done])dnl
  302. AC_MSG_RESULT($ac_cv_sys_long_file_names)
  303. if test $ac_cv_sys_long_file_names = yes; then
  304.   AC_DEFINE(HAVE_LONG_FILE_NAMES)
  305. fi
  306. []AC_EPI()
  307. T12,834
  308. AC_PATH_PROGAC_PRO([AC_PATH_PROG])# Extract the first word of "$2", so it can be a program name with args.
  309. set dummy $2; ac_word=[$]2
  310. AC_MSG_CHECKING([for $ac_word])
  311. AC_CACHE_VAL(ac_cv_path_$1,
  312. [case "[$]$1" in
  313.   /*)
  314.   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  315.   ;;
  316.   *)
  317.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  318.   for ac_dir in $PATH; do
  319.     test -z "$ac_dir" && ac_dir=.
  320.     if test -f $ac_dir/$ac_word; then
  321.       ac_cv_path_$1="$ac_dir/$ac_word"
  322.       break
  323.     fi
  324.   done
  325.   IFS="$ac_save_ifs"
  326. dnl If no 3rd arg is given, leave the cache variable unset,
  327. dnl so AC_PATH_PROGS will keep looking.
  328. ifelse([$3], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$3"
  329. ])dnl
  330.   ;;
  331. esac])dnl
  332. $1="$ac_cv_path_$1"
  333. if test -n "[$]$1"; then
  334.   AC_MSG_RESULT([$]$1)
  335. else
  336.   AC_MSG_RESULT(no)
  337. fi
  338. AC_SUBST($1)dnl
  339. []AC_EPI()
  340. T8,47
  341. AC_CONSTAC_PRO([AC_CONST])indir([AC_C_CONST])[]AC_EPI()
  342. T8,38
  343. AC_DEFUNdefine($1, [AC_PRO([$1])$2[]AC_EPI()])
  344. T15,58
  345. AC_STDC_HEADERSAC_PRO([AC_STDC_HEADERS])indir([AC_HEADER_STDC])[]AC_EPI()
  346. T25,97
  347. AC_CONFIG_AUX_DIR_DEFAULTAC_PRO([AC_CONFIG_AUX_DIR_DEFAULT])AC_CONFIG_AUX_DIRS($srcdir $srcdir/.. $srcdir/../..)[]AC_EPI()
  348. T16,563
  349. AC_C_LONG_DOUBLEAC_PRO([AC_C_LONG_DOUBLE])AC_MSG_CHECKING(for long double)
  350. AC_CACHE_VAL(ac_cv_c_long_double,
  351. [if test "$GCC" = yes; then
  352.   ac_cv_c_long_double=yes
  353. else
  354. AC_TRY_RUN([int main() {
  355. /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
  356. long double foo = 0.0;
  357. /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
  358. exit(sizeof(long double) < sizeof(double)); }],
  359. ac_cv_c_long_double=yes, ac_cv_c_long_double=no)
  360. fi])dnl
  361. AC_MSG_RESULT($ac_cv_c_long_double)
  362. if test $ac_cv_c_long_double = yes; then
  363.   AC_DEFINE(HAVE_LONG_DOUBLE)
  364. fi
  365. []AC_EPI()
  366. T14,394
  367. AC_PROG_CXXCPPAC_PRO([AC_PROG_CXXCPP])AC_MSG_CHECKING(how to run the C++ preprocessor)
  368. if test -z "$CXXCPP"; then
  369. AC_CACHE_VAL(ac_cv_prog_CXXCPP,
  370. [AC_LANG_SAVE[]dnl
  371. AC_LANG_CPLUSPLUS[]dnl
  372.   CXXCPP="${CXX-g++} -E"
  373.   AC_TRY_CPP([#include <stdlib.h>], , CXXCPP=/lib/cpp)
  374.   ac_cv_prog_CXXCPP="$CXXCPP"
  375. AC_LANG_RESTORE[]dnl
  376. fi])dnl
  377. CXXCPP="$ac_cv_prog_CXXCPP"
  378. AC_MSG_RESULT($CXXCPP)
  379. AC_SUBST(CXXCPP)dnl
  380. []AC_EPI()
  381. T16,144
  382. AC_REPLACE_FUNCSAC_PRO([AC_REPLACE_FUNCS])for ac_func in $1
  383. do
  384. AC_CHECK_FUNC($ac_func, , [LIBOBJS="$LIBOBJS ${ac_func}.o"])
  385. done
  386. AC_SUBST(LIBOBJS)dnl
  387. []AC_EPI()
  388. T19,453
  389. AC_STRUCT_ST_BLOCKSAC_PRO([AC_STRUCT_ST_BLOCKS])AC_MSG_CHECKING([for st_blocks in struct stat])
  390. AC_CACHE_VAL(ac_cv_struct_st_blocks,
  391. [AC_TRY_COMPILE([#include <sys/types.h>
  392. #include <sys/stat.h>], [struct stat s; s.st_blocks;],
  393. ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)])dnl
  394. AC_MSG_RESULT($ac_cv_struct_st_blocks)
  395. if test $ac_cv_struct_st_blocks = yes; then
  396.   AC_DEFINE(HAVE_ST_BLOCKS)
  397. else
  398.   LIBOBJS="$LIBOBJS fileblocks.o"
  399. fi
  400. AC_SUBST(LIBOBJS)dnl
  401. []AC_EPI()
  402. F4,4
  403. defndefn
  404. T18,844
  405. AC_STRUCT_TIMEZONEAC_PRO([AC_STRUCT_TIMEZONE])AC_REQUIRE([AC_STRUCT_TM])dnl
  406. AC_MSG_CHECKING([for tm_zone in struct tm])
  407. AC_CACHE_VAL(ac_cv_struct_tm_zone,
  408. [AC_TRY_COMPILE([#include <sys/types.h>
  409. #include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;],
  410.   ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)])dnl
  411. AC_MSG_RESULT($ac_cv_struct_tm_zone)
  412. if test "$ac_cv_struct_tm_zone" = yes; then
  413.   AC_DEFINE(HAVE_TM_ZONE)
  414. else
  415.   AC_MSG_CHECKING([for tzname])
  416. AC_CACHE_VAL(ac_cv_var_tzname,
  417. [AC_TRY_LINK(
  418. changequote(<<, >>)dnl
  419. <<#include <time.h>
  420. #ifndef tzname /* For SGI.  */
  421. extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
  422. #endif>>,
  423. changequote([, ])dnl
  424. [atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])dnl
  425.   AC_MSG_RESULT($ac_cv_var_tzname)
  426.   if test $ac_cv_var_tzname = yes; then
  427.     AC_DEFINE(HAVE_TZNAME)
  428.   fi
  429. fi
  430. []AC_EPI()
  431. F5,5
  432. indexindex
  433. F6,6
  434. divertdivert
  435. T13,91
  436. AC_LINK_FILESAC_PRO([AC_LINK_FILES])define([AC_LIST_FILES], [$1])define([AC_LIST_LINKS], [$2])[]AC_EPI()
  437. T11,406
  438. AC_TRY_LINKAC_PRO([AC_TRY_LINK])cat > conftest.$ac_ext <<EOF
  439. dnl This sometimes fails to find confdefs.h, for some reason.
  440. dnl [#]line __oline__ "[$]0"
  441. [#]line __oline__ "configure"
  442. #include "confdefs.h"
  443. [$1]
  444. int main() { return 0; }
  445. int t() {
  446. [$2]
  447. ; return 0; }
  448. EOF
  449. if eval $ac_link; then
  450.   ifelse([$3], , :, [rm -rf conftest*
  451.   $3])
  452. ifelse([$4], , , [else
  453.   rm -rf conftest*
  454.   $4
  455. ])dnl
  456. fi
  457. rm -f conftest*
  458. []AC_EPI()
  459. T16,757
  460. AC_PROG_MAKE_SETAC_PRO([AC_PROG_MAKE_SET])AC_MSG_CHECKING(whether ${MAKE-make} sets \$MAKE)
  461. set dummy ${MAKE-make}; ac_make=[$]2
  462. AC_CACHE_VAL(ac_cv_prog_make_${ac_make}_set,
  463. [cat > conftestmake <<\EOF
  464. all:
  465.     @/bin/echo 'ac_maketemp="${MAKE}"'
  466. EOF
  467. changequote(, )dnl
  468. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  469. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  470. changequote([, ])dnl
  471. if test -n "$ac_maketemp"; then
  472.   eval ac_cv_prog_make_${ac_make}_set=yes
  473. else
  474.   eval ac_cv_prog_make_${ac_make}_set=no
  475. fi
  476. rm -f conftestmake])dnl
  477. if eval "test \"`/bin/echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  478.   AC_MSG_RESULT(yes)
  479.   SET_MAKE=
  480. else
  481.   AC_MSG_RESULT(no)
  482.   SET_MAKE="MAKE=${MAKE-make}"
  483. fi
  484. AC_SUBST([SET_MAKE])dnl
  485. []AC_EPI()
  486. T14,662
  487. AC_ARG_PROGRAMAC_PRO([AC_ARG_PROGRAM])if test "$program_transform_name" = s,x,x,; then
  488.   program_transform_name=
  489. else
  490.   # Double any \ or $.
  491.   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  492.   program_transform_name="`/bin/echo $program_transform_name|sed -f conftestsed`"
  493.   rm -f conftestsed
  494. fi
  495. test "$program_prefix" != NONE &&
  496.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  497. # Use a double $ so make ignores it.
  498. test "$program_suffix" != NONE &&
  499.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  500.  
  501. # sed with no file args requires a program.
  502. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  503. []AC_EPI()
  504. T9,1257
  505. AC_PATH_XAC_PRO([AC_PATH_X])AC_REQUIRE_CPP()dnl Set CPP; we run AC_PATH_X_DIRECT conditionally.
  506. # If we find X, set shell vars x_includes and x_libraries to the
  507. # paths, otherwise set no_x=yes.
  508. # Uses ac_ vars as temps to allow command line to override cache and checks.
  509. # --without-x overrides everything else, but does not touch the cache.
  510. AC_MSG_CHECKING(for X)
  511.  
  512. AC_ARG_WITH(x, [  --with-x                use the X Window System])
  513. if test "x$with_x" = xno; then
  514.   no_x=yes
  515. else
  516.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  517.     no_x=
  518.   else
  519. AC_CACHE_VAL(ac_cv_path_x,
  520. [# One or both of the vars are not set, and there is no cached value.
  521. no_x=yes
  522. AC_PATH_X_XMKMF
  523. if test "$no_x" = yes; then
  524. AC_PATH_X_DIRECT
  525. fi
  526. if test "$no_x" = yes; then
  527.   ac_cv_path_x="no_x=yes"
  528. else
  529.   ac_cv_path_x="no_x= ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  530. fi])dnl
  531.   fi
  532.   eval "$ac_cv_path_x"
  533. fi # $with_x != no
  534.  
  535. if test "$no_x" = yes; then
  536.   AC_MSG_RESULT(no)
  537. else
  538.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  539.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  540.   ac_cv_path_x="no_x= ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  541.   AC_MSG_RESULT([libraries $x_libraries, headers $x_includes])
  542. fi
  543. []AC_EPI()
  544. F6,6
  545. syscmdsyscmd
  546. T11,326
  547. AC_C_INLINEAC_PRO([AC_C_INLINE])AC_MSG_CHECKING([for inline])
  548. AC_CACHE_VAL(ac_cv_c_inline,
  549. [if test "$GCC" = yes; then
  550. AC_TRY_COMPILE(, [} inline foo() {], ac_cv_c_inline=yes, ac_cv_c_inline=no)
  551. else
  552.   ac_cv_c_inline=no
  553. fi])dnl
  554. AC_MSG_RESULT($ac_cv_c_inline)
  555. if test $ac_cv_c_inline = no; then
  556.   AC_DEFINE(inline, __inline)
  557. fi
  558. []AC_EPI()
  559. T13,56
  560. AC_RETSIGTYPEAC_PRO([AC_RETSIGTYPE])indir([AC_TYPE_SIGNAL])[]AC_EPI()
  561. T17,375
  562. AC_STRUCT_ST_RDEVAC_PRO([AC_STRUCT_ST_RDEV])AC_MSG_CHECKING([for st_rdev in struct stat])
  563. AC_CACHE_VAL(ac_cv_struct_st_rdev,
  564. [AC_TRY_COMPILE([#include <sys/types.h>
  565. #include <sys/stat.h>], [struct stat s; s.st_rdev;],
  566. ac_cv_struct_st_rdev=yes, ac_cv_struct_st_rdev=no)])dnl
  567. AC_MSG_RESULT($ac_cv_struct_st_rdev)
  568. if test $ac_cv_struct_st_rdev = yes; then
  569.   AC_DEFINE(HAVE_ST_RDEV)
  570. fi
  571. []AC_EPI()
  572. T13,59
  573. AC_FUNC_CHECKAC_PRO([AC_FUNC_CHECK])indir([AC_CHECK_FUNC], $@)[]AC_EPI()
  574. T21,64
  575. AC_TIME_WITH_SYS_TIMEAC_PRO([AC_TIME_WITH_SYS_TIME])indir([AC_HEADER_TIME])[]AC_EPI()
  576. F5,5
  577. indirindir
  578. T13,60
  579. AC_HAVE_FUNCSAC_PRO([AC_HAVE_FUNCS])indir([AC_CHECK_FUNCS], $@)[]AC_EPI()
  580. T14,71
  581. AC_DIVERT_PUSHpushdef([AC_DIVERSION_CURRENT], $1)dnl
  582. divert(AC_DIVERSION_CURRENT)dnl
  583.  
  584. T15,63
  585. AC_HEADER_EGREPAC_PRO([AC_HEADER_EGREP])indir([AC_EGREP_HEADER], $@)[]AC_EPI()
  586. T15,425
  587. AC_FUNC_STRCOLLAC_PRO([AC_FUNC_STRCOLL])AC_MSG_CHECKING(for strcoll)
  588. AC_CACHE_VAL(ac_cv_func_strcoll,
  589. [AC_TRY_RUN([#include <string.h>
  590. main ()
  591. {
  592.   exit (strcoll ("abc", "def") >= 0 ||
  593.     strcoll ("ABC", "DEF") >= 0 ||
  594.     strcoll ("123", "456") >= 0);
  595. }], ac_cv_func_strcoll=yes, ac_cv_func_strcoll=no, ac_cv_func_strcoll=no)])dnl
  596. AC_MSG_RESULT($ac_cv_func_strcoll)
  597. if test $ac_cv_func_strcoll = yes; then
  598.   AC_DEFINE(HAVE_STRCOLL)
  599. fi
  600. []AC_EPI()
  601. T15,942
  602. AC_PATH_X_XMKMFAC_PRO([AC_PATH_X_XMKMF])rm -fr conftestdir
  603. if mkdir conftestdir; then
  604.   cd conftestdir
  605.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  606.   cat > Imakefile <<'EOF'
  607. acfindx:
  608.     @/bin/echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  609. EOF
  610.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  611.     no_x=
  612.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  613.     eval `make acfindx 2>/dev/null | grep -v make`
  614.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  615.     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  616.     then
  617.       ac_im_usrlibdir=$ac_im_libdir
  618.     fi
  619.     case "$ac_im_incroot" in
  620.     /gnu/include) ;;
  621.     *) ac_x_includes="$ac_im_incroot" ;;
  622.     esac
  623.     case "$ac_im_usrlibdir" in
  624.     /gnu/lib) ;;
  625.     *) ac_x_libraries="$ac_im_usrlibdir" ;;
  626.     esac
  627.   fi
  628.   cd ..
  629.   rm -fr conftestdir
  630. fi
  631. []AC_EPI()
  632. F7,7
  633. traceontraceon
  634. T7,48
  635. AC_MMAPAC_PRO([AC_MMAP])indir([AC_FUNC_MMAP])[]AC_EPI()
  636. T9,52
  637. AC_MODE_TAC_PRO([AC_MODE_T])indir([AC_TYPE_MODE_T])[]AC_EPI()
  638. T11,833
  639. AC_PROG_CPPAC_PRO([AC_PROG_CPP])AC_MSG_CHECKING(how to run the C preprocessor)
  640. # On Suns, sometimes $CPP names a directory.
  641. if test -n "$CPP" && test -d "$CPP"; then
  642.   CPP=
  643. fi
  644. if test -z "$CPP"; then
  645. AC_CACHE_VAL(ac_cv_prog_CPP,
  646. [  # This must be in double quotes, not single quotes, because CPP may get
  647.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  648.   CPP="${CC-cc} -E"
  649.   # On the NeXT, cc -E runs the code through the compiler's parser,
  650.   # not just through cpp.
  651. dnl Use a header file that comes with gcc, so configuring glibc
  652. dnl with a fresh cross-compiler works.
  653.   AC_TRY_CPP([#include <assert.h>
  654. Syntax Error], ,
  655.   CPP="${CC-cc} -E -traditional-cpp"
  656.   AC_TRY_CPP([#include <assert.h>
  657. Syntax Error], , CPP=/lib/cpp))
  658.   ac_cv_prog_CPP="$CPP"])dnl
  659. fi
  660. CPP="$ac_cv_prog_CPP"
  661. AC_MSG_RESULT($CPP)
  662. AC_SUBST(CPP)dnl
  663. []AC_EPI()
  664. T15,21
  665. AC_PREREQ_SPLITtranslit($1, ., [, ])
  666. T16,61
  667. AC_PROGRAM_EGREPAC_PRO([AC_PROGRAM_EGREP])indir([AC_EGREP_CPP], $@)[]AC_EPI()
  668. F6,6
  669. regexpregexp
  670. F9,9
  671. changecomchangecom
  672. T9,47
  673. AC_FIND_XAC_PRO([AC_FIND_X])indir([AC_PATH_X])[]AC_EPI()
  674. T10,56
  675. AC_ST_RDEVAC_PRO([AC_ST_RDEV])indir([AC_STRUCT_ST_RDEV])[]AC_EPI()
  676. T11,58
  677. AC_TIMEZONEAC_PRO([AC_TIMEZONE])indir([AC_STRUCT_TIMEZONE])[]AC_EPI()
  678. T23,689
  679. AC_PROG_GCC_TRADITIONALAC_PRO([AC_PROG_GCC_TRADITIONAL])AC_REQUIRE([AC_PROG_CC])dnl
  680. AC_REQUIRE([AC_PROG_CPP])dnl
  681. if test $ac_cv_prog_gcc = yes; then
  682.   AC_MSG_CHECKING(whether ${CC-cc} needs -traditional)
  683. AC_CACHE_VAL(ac_cv_prog_gcc_traditional,
  684. [  ac_pattern="Autoconf.*'x'"
  685.   AC_EGREP_CPP($ac_pattern, [#include <sgtty.h>
  686. Autoconf TIOCGETP],
  687.   ac_cv_prog_gcc_traditional=yes, ac_cv_prog_gcc_traditional=no)
  688.  
  689.   if test $ac_cv_prog_gcc_traditional = no; then
  690.     AC_EGREP_CPP($ac_pattern, [#include <termio.h>
  691. Autoconf TCGETA],
  692.     ac_cv_prog_gcc_traditional=yes)
  693.   fi])dnl
  694.   AC_MSG_RESULT($ac_cv_prog_gcc_traditional)
  695.   if test $ac_cv_prog_gcc_traditional = yes; then
  696.     CC="$CC -traditional"
  697.   fi
  698. fi
  699. []AC_EPI()
  700. T10,1593
  701. AC_C_CONSTAC_PRO([AC_C_CONST])dnl This message is consistent in form with the other checking messages,
  702. dnl and with the result message.
  703. AC_MSG_CHECKING([for working const])
  704. AC_CACHE_VAL(ac_cv_c_const,
  705. [AC_TRY_COMPILE(,
  706. changequote(<<, >>)dnl
  707. <<
  708. /* Ultrix mips cc rejects this.  */
  709. typedef int charset[2]; const charset x;
  710. /* SunOS 4.1.1 cc rejects this.  */
  711. char const *const *ccp;
  712. char **p;
  713. /* NEC SVR4.0.2 mips cc rejects this.  */
  714. struct point {int x, y;};
  715. static struct point const zero;
  716. /* AIX XL C 1.02.0.0 rejects this.
  717.    It does not let you subtract one const X* pointer from another in an arm
  718.    of an if-expression whose if-part is not a constant expression */
  719. const char *g = "string";
  720. ccp = &g + (g ? g-g : 0);
  721. /* HPUX 7.0 cc rejects these. */
  722. ++ccp;
  723. p = (char**) ccp;
  724. ccp = (char const *const *) p;
  725. { /* SCO 3.2v4 cc rejects this.  */
  726.   char *t;
  727.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  728.  
  729.   *t++ = 0;
  730. }
  731. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  732.   int x[] = {25, 17};
  733.   const int *foo = &x[0];
  734.   ++foo;
  735. }
  736. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  737.   typedef const int *iptr;
  738.   iptr p = 0;
  739.   ++p;
  740. }
  741. { /* AIX XL C 1.02.0.0 rejects this saying
  742.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  743.   struct s { int j; const int *ap[3]; };
  744.   struct s *b; b->j = 5;
  745. }
  746. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  747.   const int foo = 10;
  748. }
  749. >>,
  750. changequote([, ])dnl
  751. ac_cv_c_const=yes, ac_cv_c_const=no)])dnl
  752. AC_MSG_RESULT($ac_cv_c_const)
  753. if test $ac_cv_c_const = no; then
  754.   AC_DEFINE(const, )
  755. fi
  756. []AC_EPI()
  757. T23,79
  758. AC_RESTARTABLE_SYSCALLSAC_PRO([AC_RESTARTABLE_SYSCALLS])indir([AC_SYS_RESTARTABLE_SYSCALLS])[]AC_EPI()
  759. T17,162
  760. AC_CONFIG_SUBDIRSAC_PRO([AC_CONFIG_SUBDIRS])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  761. define([AC_LIST_SUBDIRS], [$1])dnl
  762. subdirs="AC_LIST_SUBDIRS"
  763. AC_SUBST(subdirs)dnl
  764. []AC_EPI()
  765. T11,225
  766. AC_PROG_LEXAC_PRO([AC_PROG_LEX])AC_CHECK_PROG(LEX, flex, flex, lex)
  767. if test -z "$LEXLIB"
  768. then
  769.   case "$LEX" in
  770.   flex*) ac_lib=fl ;;
  771.   *) ac_lib=l ;;
  772.   esac
  773.   AC_CHECK_LIB($ac_lib, main, LEXLIB="-l$ac_lib")
  774. fi
  775. AC_SUBST(LEXLIB)[]AC_EPI()
  776. F7,7
  777. esyscmdesyscmd
  778. F7,7
  779. builtinbuiltin
  780. T12,258
  781. AC_CACHE_VALdnl We used to use the below line, but it fails if the 1st arg is a
  782. dnl shell variable, so we need the eval.
  783. dnl if test "${$1+set}" = set; then
  784. if eval "test \"`echo '${'$1'+set}'`\" = set"; then
  785.   /bin/echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG
  786. else
  787.   $2
  788. fi
  789.  
  790. T17,1
  791. AC_DIVERSION_INIT2
  792. F4,4
  793. incrincr
  794. T7,0
  795. __gnu__
  796. F8,8
  797. maketempmaketemp
  798. T14,26
  799. AC_CHECK_FUNCS#
  800. @@@funcs="$funcs $1"@@@
  801.  
  802. F6,6
  803. definedefine
  804. F8,8
  805. undivertundivert
  806. T14,412
  807. AC_TRY_COMPILEAC_PRO([AC_TRY_COMPILE])cat > conftest.$ac_ext <<EOF
  808. dnl This sometimes fails to find confdefs.h, for some reason.
  809. dnl [#]line __oline__ "[$]0"
  810. [#]line __oline__ "configure"
  811. #include "confdefs.h"
  812. [$1]
  813. int main() { return 0; }
  814. int t() {
  815. [$2]
  816. ; return 0; }
  817. EOF
  818. if eval $ac_compile; then
  819.   ifelse([$3], , :, [rm -rf conftest*
  820.   $3])
  821. ifelse([$4], , , [else
  822.   rm -rf conftest*
  823.   $4
  824. ])dnl
  825. fi
  826. rm -f conftest*
  827. []AC_EPI()
  828. T18,635
  829. AC_CANONICAL_BUILDAC_PRO([AC_CANONICAL_BUILD])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  830. AC_MSG_CHECKING(build system type)
  831.  
  832. build_alias=$build
  833. case "$build_alias" in
  834. NONE)
  835.   case $nonopt in
  836.   NONE) build_alias=$host_alias ;;
  837.   *) build_alias=$nonopt ;;
  838.   esac ;;
  839. esac
  840.  
  841. build=`$ac_config_sub $build_alias`
  842. build_cpu=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  843. build_vendor=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  844. build_os=`/bin/echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  845. AC_MSG_RESULT($build)
  846. AC_SUBST(build)dnl
  847. AC_SUBST(build_alias)dnl
  848. AC_SUBST(build_cpu)dnl
  849. AC_SUBST(build_vendor)dnl
  850. AC_SUBST(build_os)dnl
  851. []AC_EPI()
  852. T17,2883
  853. AC_OUTPUT_SUBDIRS
  854. if test "$no_recursion" != yes; then
  855.  
  856.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  857.   ac_sub_configure_args=
  858.   ac_prev=
  859.   for ac_arg in $ac_configure_args; do
  860.     if test -n "$ac_prev"; then
  861.       ac_prev=
  862.       continue
  863.     fi
  864.     case "$ac_arg" in
  865.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  866.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  867.       ac_prev=cache_file ;;
  868.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  869.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  870.       ;;
  871.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  872.       ac_prev=srcdir ;;
  873.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  874.       ;;
  875.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  876.     esac
  877.   done
  878.  
  879.   for ac_config_dir in $1; do
  880.  
  881.     # Do not complain, so a configure script can configure whichever
  882.     # parts of a large source tree are present.
  883.     if test ! -d $srcdir/$ac_config_dir; then
  884.       continue
  885.     fi
  886.  
  887.     echo configuring in $ac_config_dir
  888.  
  889.     case "$srcdir" in
  890.     .) ;;
  891.     *)
  892.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  893.       else
  894.         AC_MSG_ERROR(can not create `pwd`/$ac_config_dir)
  895.       fi
  896.       ;;
  897.     esac
  898.  
  899.     ac_popdir=`pwd`
  900.     cd $ac_config_dir
  901.  
  902.     case "$srcdir" in
  903.     .) # No --srcdir option.  We are building in place.
  904.       ac_sub_srcdir=$srcdir ;;
  905.     /*) # Absolute path.
  906.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  907.     *) # Relative path.
  908.       ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
  909.     esac
  910.  
  911.     # Check for guested configure; otherwise get Cygnus style configure.
  912.     if test -f $ac_sub_srcdir/configure; then
  913.       ac_sub_configure=$ac_sub_srcdir/configure
  914.     elif test -f $ac_sub_srcdir/configure.in; then
  915.       ac_sub_configure=$ac_configure
  916.     else
  917.       AC_MSG_WARN(no configuration information is in $ac_config_dir)
  918.       ac_sub_configure=
  919.     fi
  920.  
  921.     # The recursion is here.
  922.     if test -n "$ac_sub_configure"; then
  923.  
  924.       # Make the cache file name correct relative to the subdirectory.
  925. changequote(, )dnl
  926.       # A "../" for each directory in /$ac_config_dir.
  927.       ac_dots=`echo /$ac_config_dir|sed 's%/[^/]*%../%g'`
  928. changequote([, ])dnl
  929.       case "$cache_file" in
  930.       /*) ac_sub_cache_file=$cache_file ;;
  931.       *) # Relative path.
  932.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  933.       esac
  934.  
  935.       echo "[running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file] --srcdir=$ac_sub_srcdir"
  936.       # The eval makes quoting arguments work.
  937.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  938.       then :
  939.       else
  940.         AC_MSG_ERROR($ac_sub_configure failed for $ac_config_dir)
  941.       fi
  942.     fi
  943.  
  944.     cd $ac_popdir
  945.   done
  946. fi
  947.  
  948. T10,25
  949. AC_PROVIDEdefine([AC_PROVIDE_$1], )
  950. T13,66
  951. AC_DIVERT_POPpopdef([AC_DIVERSION_CURRENT])dnl
  952. divert(AC_DIVERSION_CURRENT)dnl
  953.  
  954. T9,59
  955. AC_PREFIXAC_PRO([AC_PREFIX])indir([AC_PREFIX_PROGRAM], $@)[]AC_EPI()
  956. F6,6
  957. m4wrapm4wrap
  958. T13,1193
  959. AC_CACHE_SAVEif test -w $cache_file; then
  960. echo "updating cache $cache_file"
  961. cat > $cache_file <<\EOF
  962. # This file is a shell script that caches the results of configure
  963. # tests run on this system so they can be shared between configure
  964. # scripts and configure runs.  It is not useful on other systems.
  965. # If it contains results you don't want to keep, you may remove or edit it.
  966. #
  967. # By default, configure uses ./config.cache as the cache file,
  968. # creating it if it does not exist already.  You can give configure
  969. # the --cache-file=FILE option to use a different cache file; that is
  970. # what configure does when it calls configure scripts in
  971. # subdirectories, so they share the cache.
  972. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  973. # config.status only pays attention to the cache file if you give it the
  974. # --recheck option to rerun configure.
  975. #
  976. EOF
  977. changequote(, )dnl
  978. dnl Allow a site initialization script to override cache values.
  979. # Ultrix sh set writes to stderr and can't be redirected directly.
  980. (set) 2>&1 |
  981.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  982.   >> $cache_file
  983. changequote([, ])dnl
  984. else
  985. echo "not updating unwritable cache $cache_file"
  986. fi
  987.  
  988. T10,633
  989. AC_TRY_RUNAC_PRO([AC_TRY_RUN])AC_REQUIRE([AC_C_CROSS])dnl
  990. if test "$cross_compiling" = yes; then
  991.   ifelse([$4], ,
  992.     [errprint(__file__:__line__: warning: [AC_TRY_RUN] called without default to allow cross compiling
  993. )dnl
  994.   AC_MSG_ERROR(can not run test program while cross compiling)],
  995.   [$4])
  996. else
  997. cat > conftest.$ac_ext <<EOF
  998. [#]line __oline__ "configure"
  999. #include "confdefs.h"
  1000. ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
  1001. extern "C" void exit(int);
  1002. #endif
  1003. ])dnl
  1004. [$1]
  1005. EOF
  1006. eval $ac_link
  1007. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1008.   ifelse([$2], , :, [$2])
  1009. ifelse([$3], , , [else
  1010.   $3
  1011. ])dnl
  1012. fi
  1013. fi
  1014. rm -fr conftest*[]AC_EPI()
  1015. F9,9
  1016. debugfiledebugfile
  1017. T12,60
  1018. AC_ST_BLOCKSAC_PRO([AC_ST_BLOCKS])indir([AC_STRUCT_ST_BLOCKS])[]AC_EPI()
  1019. T8,50
  1020. AC_WAIT3AC_PRO([AC_WAIT3])indir([AC_FUNC_WAIT3])[]AC_EPI()
  1021. T19,1
  1022. AC_DIVERSION_NOTICE1
  1023. T16,3103
  1024. AC_PATH_X_DIRECTAC_PRO([AC_PATH_X_DIRECT])test -z "$x_direct_test_library" && x_direct_test_library=Xt
  1025. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  1026. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  1027. AC_TRY_CPP([#include <$x_direct_test_include>],
  1028. [no_x= ac_x_includes=],
  1029. [  for ac_dir in               \
  1030.     /usr/X11R6/include        \
  1031.     /usr/X11R5/include        \
  1032.     /usr/X11R4/include        \
  1033.                               \
  1034.     /gnu/include/X11R6        \
  1035.     /gnu/include/X11R5        \
  1036.     /gnu/include/X11R4        \
  1037.                               \
  1038.     /usr/local/X11R6/include  \
  1039.     /usr/local/X11R5/include  \
  1040.     /usr/local/X11R4/include  \
  1041.                               \
  1042.     /usr/local/include/X11R6  \
  1043.     /usr/local/include/X11R5  \
  1044.     /usr/local/include/X11R4  \
  1045.                               \
  1046.     /usr/X11/include          \
  1047.     /gnu/include/X11          \
  1048.     /usr/local/X11/include    \
  1049.     /usr/local/include/X11    \
  1050.                               \
  1051.     /usr/X386/include         \
  1052.     /usr/x386/include         \
  1053.     /usr/XFree86/include/X11  \
  1054.                               \
  1055.     /gnu/include              \
  1056.     /usr/local/include        \
  1057.     /usr/unsupported/include  \
  1058.     /usr/athena/include       \
  1059.     /usr/local/x11r5/include  \
  1060.     /usr/lpp/Xamples/include  \
  1061.                               \
  1062.     /usr/openwin/include      \
  1063.     /usr/openwin/share/include \
  1064.     ; \
  1065.   do
  1066.     if test -r "$ac_dir/$x_direct_test_include"; then
  1067.       no_x= ac_x_includes=$ac_dir
  1068.       break
  1069.     fi
  1070.   done])
  1071.  
  1072. # Check for the libraries.
  1073. # See if we find them without any special options.
  1074. # Don't add to $LIBS permanently.
  1075. ac_save_LIBS="$LIBS"
  1076. LIBS="$LIBS -l$x_direct_test_library"
  1077. AC_TRY_LINK(, [${x_direct_test_function}()],
  1078. [LIBS="$ac_save_LIBS" no_x= ac_x_libraries=],
  1079. [LIBS="$ac_save_LIBS"
  1080. # First see if replacing the include by lib works.
  1081. for ac_dir in `/bin/echo "$ac_x_includes" | sed s/include/lib/` \
  1082.     /usr/X11R6/lib        \
  1083.     /usr/X11R5/lib        \
  1084.     /usr/X11R4/lib        \
  1085.                           \
  1086.     /usr/lib/X11R6        \
  1087.     /usr/lib/X11R5        \
  1088.     /usr/lib/X11R4        \
  1089.                           \
  1090.     /usr/local/X11R6/lib  \
  1091.     /usr/local/X11R5/lib  \
  1092.     /usr/local/X11R4/lib  \
  1093.                           \
  1094.     /usr/local/lib/X11R6  \
  1095.     /usr/local/lib/X11R5  \
  1096.     /usr/local/lib/X11R4  \
  1097.                           \
  1098.     /usr/X11/lib          \
  1099.     /usr/lib/X11          \
  1100.     /usr/local/X11/lib    \
  1101.     /usr/local/lib/X11    \
  1102.                           \
  1103.     /usr/X386/lib         \
  1104.     /usr/x386/lib         \
  1105.     /usr/XFree86/lib/X11  \
  1106.                           \
  1107.     /usr/lib              \
  1108.     /usr/local/lib        \
  1109.     /usr/unsupported/lib  \
  1110.     /usr/athena/lib       \
  1111.     /usr/local/x11r5/lib  \
  1112.     /usr/lpp/Xamples/lib  \
  1113.                           \
  1114.     /usr/openwin/lib      \
  1115.     /usr/openwin/share/lib \
  1116.     ; \
  1117. do
  1118.   for ac_extension in a so sl; do
  1119.     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  1120.       no_x= ac_x_libraries=$ac_dir
  1121.       break 2
  1122.     fi
  1123.   done
  1124. done])[]AC_EPI()
  1125. F6,6
  1126. divnumdivnum
  1127. F11,11
  1128. changequotechangequote
  1129. T6,216
  1130. AC_EPIAC_DIVERT_POP()dnl
  1131. ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,
  1132. [undivert(AC_DIVERSION_NORMAL_4)dnl
  1133. undivert(AC_DIVERSION_NORMAL_3)dnl
  1134. undivert(AC_DIVERSION_NORMAL_2)dnl
  1135. undivert(AC_DIVERSION_NORMAL_1)dnl
  1136. ])dnl
  1137.  
  1138. F8,8
  1139. __file____file__
  1140. T15,265
  1141. AC_HAVE_LIBRARY#
  1142. changequote(<<, >>)dnl
  1143. define(<<AC_LIB_NAME>>, dnl
  1144. patsubst(patsubst($1, <<lib\([^\.]*\)\.a>>, <<\1>>), <<-l>>, <<>>))dnl
  1145. changequote([, ])dnl
  1146.   ifelse([$2], , [
  1147. @@@libs="$libs AC_LIB_NAME"@@@
  1148. ], [
  1149. # If it was found, we do:
  1150. $2
  1151. # If it was not found, we do:
  1152. $3
  1153. ])
  1154.  
  1155. T15,139
  1156. AC_LANG_RESTOREifelse(AC_LANG_STACK, C, [ifelse(AC_LANG, C, , [AC_LANG_C])], [ifelse(AC_LANG, CPLUSPLUS, , [AC_LANG_CPLUSPLUS])])[]popdef([AC_LANG_STACK])
  1157. T9,52
  1158. AC_SIZE_TAC_PRO([AC_SIZE_T])indir([AC_TYPE_SIZE_T])[]AC_EPI()
  1159. T10,665
  1160. AC_TRY_CPPAC_PRO([AC_TRY_CPP])AC_REQUIRE_CPP()dnl
  1161. cat > conftest.$ac_ext <<EOF
  1162. [#]line __oline__ "configure"
  1163. #include "confdefs.h"
  1164. [$1]
  1165. EOF
  1166. dnl Capture the stderr of cpp.  eval is necessary to expand ac_cpp.
  1167. dnl We used to copy stderr to stdout and capture it in a variable, but
  1168. dnl that breaks under sh -x, which writes compile commands starting
  1169. dnl with ` +' to stderr in eval and subshells.
  1170. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1171. ac_err=`grep -v '^ *+' conftest.out`
  1172. if test -z "$ac_err"; then
  1173.   ifelse([$2], , :, [rm -rf conftest*
  1174.   $2])
  1175. else
  1176.   /bin/echo "$ac_err" >&AC_FD_CC
  1177. ifelse([$3], , , [  rm -rf conftest*
  1178.   $3
  1179. ])dnl
  1180. fi
  1181. rm -f conftest*[]AC_EPI()
  1182. T11,345
  1183. AC_MEMORY_HAC_PRO([AC_MEMORY_H])AC_OBSOLETE([$0], [; instead use AC_CHECK_HEADERS(memory.h) and HAVE_MEMORY_H])dnl
  1184. AC_MSG_CHECKING(whether string.h declares mem functions)
  1185. AC_EGREP_HEADER(memchr, string.h, ac_found=yes, ac_found=no)
  1186. AC_MSG_RESULT($ac_found)
  1187. if test $ac_found = no; then
  1188.   AC_CHECK_HEADER(memory.h, [AC_DEFINE(NEED_MEMORY_H)])
  1189. fi
  1190. []AC_EPI()
  1191. T17,70
  1192. AC_CONFIG_AUX_DIRAC_PRO([AC_CONFIG_AUX_DIR])AC_CONFIG_AUX_DIRS($1 $srcdir/$1)[]AC_EPI()
  1193. T13,43
  1194. AC_INIT_BINSHAC_PRO([AC_INIT_BINSH])#!/bin/sh
  1195. []AC_EPI()
  1196. T17,112
  1197. AC_PREFIX_DEFAULTAC_PRO([AC_PREFIX_DEFAULT])AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
  1198. ac_default_prefix=$1
  1199. AC_DIVERT_POP()[]AC_EPI()
  1200. T6,292
  1201. AC_USGAC_PRO([AC_USG])AC_OBSOLETE([$0],
  1202.   [; instead use AC_CHECK_HEADERS(string.h) and HAVE_STRING_H])dnl
  1203. AC_MSG_CHECKING([for BSD string and memory functions])
  1204. AC_TRY_LINK([#include <strings.h>], [rindex(0, 0); bzero(0, 0);],
  1205.   [AC_MSG_RESULT(yes); AC_DEFINE(USG)], [AC_MSG_RESULT(no)])[]AC_EPI()
  1206. T17,410
  1207. AC_PREFIX_PROGRAMAC_PRO([AC_PREFIX_PROGRAM])if test "x$prefix" = xNONE; then
  1208. changequote(<<, >>)dnl
  1209. define(<<AC_VAR_NAME>>, translit($1, [a-z], [A-Z]))dnl
  1210. changequote([, ])dnl
  1211. AC_PATH_PROG(AC_VAR_NAME, $1)
  1212. changequote(<<, >>)dnl
  1213.   if test -n "$ac_cv_path_<<>>AC_VAR_NAME"; then
  1214.     prefix=`/bin/echo $ac_cv_path_<<>>AC_VAR_NAME|sed 's%/[^/][^/]*/[^/][^/]*$%%'`
  1215. changequote([, ])dnl
  1216.   fi
  1217. fi
  1218. undefine([AC_VAR_NAME])dnl
  1219. []AC_EPI()
  1220. T11,72
  1221. AC_PROG_AWKAC_PRO([AC_PROG_AWK])AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )[]AC_EPI()
  1222. T14,438
  1223. AC_INIT_NOTICEAC_PRO([AC_INIT_NOTICE])# Guess values for system-dependent variables and create Makefiles.
  1224. # Generated automatically using autoconf version 2.1 
  1225. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  1226. #
  1227. # This configure script is free software; the Free Software Foundation
  1228. # gives unlimited permission to copy, distribute and modify it.
  1229.  
  1230. # Defaults:
  1231. ac_help=
  1232. ac_default_prefix=/gnu
  1233. [#] Any additions from configure.in:[]AC_EPI()
  1234. T9,52
  1235. AC_ALLOCAAC_PRO([AC_ALLOCA])indir([AC_FUNC_ALLOCA])[]AC_EPI()
  1236. T10,321
  1237. AC_C_CROSSAC_PRO([AC_C_CROSS])# If we cannot run a trivial program, we must be cross compiling.
  1238. AC_MSG_CHECKING(whether cross-compiling)
  1239. AC_CACHE_VAL(ac_cv_c_cross,
  1240. [AC_TRY_RUN([main(){return(0);}],
  1241.   ac_cv_c_cross=no, ac_cv_c_cross=yes, ac_cv_cross=yes)])dnl
  1242. cross_compiling=$ac_cv_c_cross
  1243. AC_MSG_RESULT($ac_cv_c_cross)
  1244. []AC_EPI()
  1245. T17,60
  1246. AC_YYTEXT_POINTERAC_PRO([AC_YYTEXT_POINTER])indir([AC_DECL_YYTEXT])[]AC_EPI()
  1247. F6,6
  1248. sysvalsysval
  1249. F8,8
  1250. undefineundefine
  1251. T8,123
  1252. AC_SUBSTifdef([AC_SUBST_$1], ,
  1253. [define([AC_SUBST_$1], )dnl
  1254. AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl
  1255. s%@$1@%[$]$1%g
  1256. AC_DIVERT_POP()dnl
  1257. ])
  1258. T12,103
  1259. AC_ARG_ARRAYerrprint(__file__:__line__: [$0] has been removed; don't do unportable things with arguments
  1260. )m4exit(4)
  1261. T18,9659
  1262. AC_INIT_PARSE_ARGSAC_PRO([AC_INIT_PARSE_ARGS])
  1263. # Initialize some variables set by options.
  1264. # The variables have the same names as the options, with
  1265. # dashes changed to underlines.
  1266. build=NONE
  1267. cache_file=./config.cache
  1268. exec_prefix=NONE
  1269. host=NONE
  1270. no_create=
  1271. nonopt=NONE
  1272. no_recursion=
  1273. prefix=NONE
  1274. program_prefix=NONE
  1275. program_suffix=NONE
  1276. program_transform_name=s,x,x,
  1277. silent=
  1278. site=
  1279. srcdir=
  1280. target=NONE
  1281. verbose=
  1282. x_includes=NONE
  1283. x_libraries=NONE
  1284.  
  1285. # Initialize some other variables.
  1286. subdirs=
  1287.  
  1288. ac_prev=
  1289. for ac_option
  1290. do
  1291.  
  1292.   # If the previous option needs an argument, assign it.
  1293.   if test -n "$ac_prev"; then
  1294.     eval "$ac_prev=\$ac_option"
  1295.     ac_prev=
  1296.     continue
  1297.   fi
  1298.  
  1299.   case "$ac_option" in
  1300. changequote(, )dnl
  1301.   -*=*) ac_optarg=`/bin/echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  1302. changequote([, ])dnl
  1303.   *) ac_optarg= ;;
  1304.   esac
  1305.  
  1306.   # Accept the important Cygnus configure options, so we can diagnose typos.
  1307.  
  1308.   case "$ac_option" in
  1309.  
  1310.   -build | --build | --buil | --bui | --bu | --b)
  1311.     ac_prev=build ;;
  1312.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  1313.     build="$ac_optarg" ;;
  1314.  
  1315.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  1316.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1317.     ac_prev=cache_file ;;
  1318.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1319.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1320.     cache_file="$ac_optarg" ;;
  1321.  
  1322.   -disable-* | --disable-*)
  1323.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*disable-//'`
  1324.     # Reject names that are not valid shell variable names.
  1325. changequote(, )dnl
  1326.     if test -n "`/bin/echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1327. changequote([, ])dnl
  1328.       AC_MSG_ERROR($ac_feature: invalid feature name)
  1329.     fi
  1330.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  1331.     eval "enable_${ac_feature}=no" ;;
  1332.  
  1333.   -enable-* | --enable-*)
  1334.     ac_feature=`/bin/echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  1335.     # Reject names that are not valid shell variable names.
  1336. changequote(, )dnl
  1337.     if test -n "`/bin/echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1338. changequote([, ])dnl
  1339.       AC_MSG_ERROR($ac_feature: invalid feature name)
  1340.     fi
  1341.     ac_feature=`/bin/echo $ac_feature| sed 's/-/_/g'`
  1342.     case "$ac_option" in
  1343.       *=*) ;;
  1344.       *) ac_optarg=yes ;;
  1345.     esac
  1346.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  1347.  
  1348.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1349.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1350.   | --exec | --exe | --ex)
  1351.     ac_prev=exec_prefix ;;
  1352.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1353.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1354.   | --exec=* | --exe=* | --ex=*)
  1355.     exec_prefix="$ac_optarg" ;;
  1356.  
  1357.   -gas | --gas | --ga | --g)
  1358.     # Obsolete; use --with-gas.
  1359.     with_gas=yes ;;
  1360.  
  1361.   -help | --help | --hel | --he)
  1362.     # Omit some internal or obsolete options to make the list less imposing.
  1363.     # This message is too long to be a string in the A/UX 3.1 sh.
  1364.     cat << EOF
  1365. changequote(, )dnl
  1366. Usage: configure [options] [host]
  1367. Options: [defaults in brackets after descriptions]
  1368. Configuration:
  1369.   --cache-file=FILE       cache test results in FILE
  1370.   --help                  print this message
  1371.   --no-create             do not create output files
  1372.   --quiet, --silent       do not print \`checking...' messages
  1373.   --version               print the version of autoconf that created configure
  1374. Directory and file names:
  1375.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1376.                           [$ac_default_prefix]
  1377.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  1378.                           [same as prefix]
  1379.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  1380.   --program-prefix=PREFIX prepend PREFIX to installed program names
  1381.   --program-suffix=SUFFIX append SUFFIX to installed program names
  1382.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1383. Host type:
  1384.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  1385.   --host=HOST             configure for HOST [guessed]
  1386.   --target=TARGET         configure for TARGET [TARGET=HOST]
  1387. Features and packages:
  1388.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1389.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1390.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1391.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1392.   --x-includes=DIR        X include files are in DIR
  1393.   --x-libraries=DIR       X library files are in DIR
  1394. --enable and --with options recognized:$ac_help
  1395. changequote([, ])dnl
  1396. EOF
  1397.     exit 0 ;;
  1398.  
  1399.   -host | --host | --hos | --ho)
  1400.     ac_prev=host ;;
  1401.   -host=* | --host=* | --hos=* | --ho=*)
  1402.     host="$ac_optarg" ;;
  1403.  
  1404.   -nfp | --nfp | --nf)
  1405.     # Obsolete; use --without-fp.
  1406.     with_fp=no ;;
  1407.  
  1408.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1409.   | --no-cr | --no-c)
  1410.     no_create=yes ;;
  1411.  
  1412.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1413.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1414.     no_recursion=yes ;;
  1415.  
  1416.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1417.     ac_prev=prefix ;;
  1418.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1419.     prefix="$ac_optarg" ;;
  1420.  
  1421.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1422.   | --program-pre | --program-pr | --program-p)
  1423.     ac_prev=program_prefix ;;
  1424.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1425.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1426.     program_prefix="$ac_optarg" ;;
  1427.  
  1428.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1429.   | --program-suf | --program-su | --program-s)
  1430.     ac_prev=program_suffix ;;
  1431.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1432.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1433.     program_suffix="$ac_optarg" ;;
  1434.  
  1435.   -program-transform-name | --program-transform-name \
  1436.   | --program-transform-nam | --program-transform-na \
  1437.   | --program-transform-n | --program-transform- \
  1438.   | --program-transform | --program-transfor \
  1439.   | --program-transfo | --program-transf \
  1440.   | --program-trans | --program-tran \
  1441.   | --progr-tra | --program-tr | --program-t)
  1442.     ac_prev=program_transform_name ;;
  1443.   -program-transform-name=* | --program-transform-name=* \
  1444.   | --program-transform-nam=* | --program-transform-na=* \
  1445.   | --program-transform-n=* | --program-transform-=* \
  1446.   | --program-transform=* | --program-transfor=* \
  1447.   | --program-transfo=* | --program-transf=* \
  1448.   | --program-trans=* | --program-tran=* \
  1449.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1450.     program_transform_name="$ac_optarg" ;;
  1451.  
  1452.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1453.   | -silent | --silent | --silen | --sile | --sil)
  1454.     silent=yes ;;
  1455.  
  1456.   -site | --site | --sit)
  1457.     ac_prev=site ;;
  1458.   -site=* | --site=* | --sit=*)
  1459.     site="$ac_optarg" ;;
  1460.  
  1461.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1462.     ac_prev=srcdir ;;
  1463.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1464.     srcdir="$ac_optarg" ;;
  1465.  
  1466.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1467.     ac_prev=target ;;
  1468.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1469.     target="$ac_optarg" ;;
  1470.  
  1471.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1472.     verbose=yes ;;
  1473.  
  1474.   -version | --version | --versio | --versi | --vers)
  1475.     echo "configure generated by autoconf version AC_ACVERSION"
  1476.     exit 0 ;;
  1477.  
  1478.   -with-* | --with-*)
  1479.     ac_package=`/bin/echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  1480.     # Reject names that are not valid shell variable names.
  1481. changequote(, )dnl
  1482.     if test -n "`/bin/echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  1483. changequote([, ])dnl
  1484.       AC_MSG_ERROR($ac_package: invalid package name)
  1485.     fi
  1486.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  1487.     case "$ac_option" in
  1488.       *=*) ;;
  1489.       *) ac_optarg=yes ;;
  1490.     esac
  1491.     eval "with_${ac_package}='$ac_optarg'" ;;
  1492.  
  1493.   -without-* | --without-*)
  1494.     ac_package=`/bin/echo $ac_option|sed -e 's/-*without-//'`
  1495.     # Reject names that are not valid shell variable names.
  1496. changequote(, )dnl
  1497.     if test -n "`/bin/echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  1498. changequote([, ])dnl
  1499.       AC_MSG_ERROR($ac_package: invalid package name)
  1500.     fi
  1501.     ac_package=`/bin/echo $ac_package| sed 's/-/_/g'`
  1502.     eval "with_${ac_package}=no" ;;
  1503.  
  1504.   --x)
  1505.     # Obsolete; use --with-x.
  1506.     with_x=yes ;;
  1507.  
  1508.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1509.   | --x-incl | --x-inc | --x-in | --x-i)
  1510.     ac_prev=x_includes ;;
  1511.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1512.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1513.     x_includes="$ac_optarg" ;;
  1514.  
  1515.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1516.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1517.     ac_prev=x_libraries ;;
  1518.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1519.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1520.     x_libraries="$ac_optarg" ;;
  1521.  
  1522.   -*) AC_MSG_ERROR([$ac_option: invalid option; use --help to show usage])
  1523.     ;;
  1524.  
  1525.   *) 
  1526. changequote(, )dnl
  1527.     if test -n "`/bin/echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  1528. changequote([, ])dnl
  1529.       AC_MSG_WARN($ac_option: invalid host type)
  1530.     fi
  1531.     if test "x$nonopt" != xNONE; then
  1532.       AC_MSG_ERROR(can only configure for one host and one target at a time)
  1533.     fi
  1534.     nonopt="$ac_option"
  1535.     ;;
  1536.  
  1537.   esac
  1538. done
  1539.  
  1540. if test -n "$ac_prev"; then
  1541.   AC_MSG_ERROR(missing argument to --`/bin/echo $ac_prev | sed 's/_/-/g'`)
  1542. fi
  1543. []AC_EPI()
  1544. T8,294
  1545. AC_MINIXAC_PRO([AC_MINIX])AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
  1546. AC_BEFORE([$0], [AC_TRY_LINK])dnl
  1547. AC_BEFORE([$0], [AC_TRY_RUN])dnl
  1548. AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=)
  1549. if test "$MINIX" = yes; then
  1550.   AC_DEFINE(_POSIX_SOURCE)
  1551.   AC_DEFINE(_POSIX_1_SOURCE, 2)
  1552.   AC_DEFINE(_MINIX)
  1553. fi
  1554. []AC_EPI()
  1555. T15,60
  1556. AC_PROGRAM_PATHAC_PRO([AC_PROGRAM_PATH])indir([AC_PATH_PROG], $@)[]AC_EPI()
  1557. F7,7
  1558. dumpdefdumpdef
  1559. T16,20
  1560. AC_CONFIG_HEADER#
  1561. @@@config_h=$1@@@
  1562.  
  1563. T18,61
  1564. AC_MINUS_C_MINUS_OAC_PRO([AC_MINUS_C_MINUS_O])indir([AC_PROG_CC_C_O])[]AC_EPI()
  1565. T9,133
  1566. AC_ENABLEAC_PRO([AC_ENABLE])AC_OBSOLETE([$0], [; instead use AC_ARG_ENABLE])dnl
  1567. AC_ARG_ENABLE([$1], [  --enable-$1], [$2], [$3])dnl
  1568. []AC_EPI()
  1569. T13,62
  1570. AC_ST_BLKSIZEAC_PRO([AC_ST_BLKSIZE])indir([AC_STRUCT_ST_BLKSIZE])[]AC_EPI()
  1571. T23,71
  1572. AC_SYS_SIGLIST_DECLAREDAC_PRO([AC_SYS_SIGLIST_DECLARED])indir([AC_DECL_SYS_SIGLIST])[]AC_EPI()
  1573. T19,522
  1574. AC_DECL_SYS_SIGLISTAC_PRO([AC_DECL_SYS_SIGLIST])AC_MSG_CHECKING([for sys_siglist declaration in signal.h or unistd.h])
  1575. AC_CACHE_VAL(ac_cv_decl_sys_siglist,
  1576. [AC_TRY_COMPILE([#include <sys/types.h>
  1577. #include <signal.h>
  1578. /* NetBSD declares sys_siglist in unistd.h.  */
  1579. #ifdef HAVE_UNISTD_H
  1580. #include <unistd.h>
  1581. #endif], [char *msg = *(sys_siglist + 1);],
  1582.   ac_cv_decl_sys_siglist=yes, ac_cv_decl_sys_siglist=no)])dnl
  1583. AC_MSG_RESULT($ac_cv_decl_sys_siglist)
  1584. if test $ac_cv_decl_sys_siglist = yes; then
  1585.   AC_DEFINE(SYS_SIGLIST_DECLARED)
  1586. fi
  1587. []AC_EPI()
  1588. T12,2636
  1589. AC_PATH_XTRAAC_PRO([AC_PATH_XTRA])AC_REQUIRE([AC_ISC_POSIX])dnl
  1590. AC_REQUIRE([AC_PATH_X])dnl
  1591. if test "$no_x" = yes; then 
  1592.   # Not all programs may use this symbol, but it does not hurt to define it.
  1593.   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  1594. else
  1595.   if test -n "$x_includes"; then
  1596.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  1597.   fi
  1598.  
  1599.   # It would be nice to have a more robust check for the -R ld option than
  1600.   # just checking for Solaris.
  1601.   # It would also be nice to do this for all -L options, not just this one.
  1602.   if test -n "$x_libraries"; then
  1603.     X_LIBS="$X_LIBS -L$x_libraries"
  1604.     if test "`(uname) 2>/dev/null`" = SunOS &&
  1605.       uname -r | grep '^5' >/dev/null; then
  1606.       X_LIBS="$X_LIBS -R$x_libraries"
  1607.     fi
  1608.   fi
  1609.  
  1610.   # Check for libraries that X11R6 Xt/Xaw programs need.
  1611.  
  1612.   ac_save_LDFLAGS="$LDFLAGS"
  1613.   LDFLAGS="$LDFLAGS -L$x_libraries"
  1614.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  1615.   # check for ICE first), but we must link in the order -lSM -lICE or
  1616.   # we get undefined symbols.  So assume we have SM if we have ICE.
  1617.   # These have to be linked with before -lX11, unlike the other
  1618.   # libraries we check for below, so use a different variable.
  1619.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  1620.   AC_CHECK_LIB(ICE, IceConnectionNumbers,
  1621.     [X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"])
  1622.   LDFLAGS="$ac_save_LDFLAGS"
  1623.  
  1624.   # Check for system-dependent libraries X programs must link with.
  1625.  
  1626.   if test "$ISC" = yes; then
  1627.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  1628.   else
  1629.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  1630.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  1631.     # the Alpha needs dnet_stub (dnet does not exist).
  1632.     AC_CHECK_LIB(dnet, dnet_ntoa, [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"])
  1633.     if test $ac_cv_lib_dnet = no; then
  1634.       AC_CHECK_LIB(dnet_stub, dnet_ntoa,
  1635.         [X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"])
  1636.     fi
  1637.  
  1638.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  1639.     # to get the SysV transport functions.
  1640.     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
  1641.     # check for it.
  1642.     AC_CHECK_LIB(nsl, t_accept, [X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"])
  1643.  
  1644.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  1645.     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  1646.     # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  1647.     if test "`(uname) 2>/dev/null`" != IRIX; then
  1648.       AC_CHECK_LIB(socket, socket, [X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"])
  1649.     fi
  1650.   fi
  1651. fi
  1652. AC_SUBST(X_CFLAGS)dnl
  1653. AC_SUBST(X_PRE_LIBS)dnl
  1654. AC_SUBST(X_LIBS)dnl
  1655. AC_SUBST(X_EXTRA_LIBS)dnl
  1656. []AC_EPI()
  1657. T13,132
  1658. AC_SUBST_FILEifdef([AC_SUBST_$1], ,
  1659. [define([AC_SUBST_$1], )dnl
  1660. AC_DIVERT_PUSH(AC_DIVERSION_SED)dnl
  1661. /@$1@/r [$]$1
  1662. s%@$1@%%g
  1663. AC_DIVERT_POP()dnl
  1664. ])
  1665. T17,380
  1666. AC_LANG_CPLUSPLUSAC_PRO([AC_LANG_CPLUSPLUS])define([AC_LANG], [CPLUSPLUS])dnl
  1667. ac_ext=C
  1668. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1669. ac_cpp='$CXXCPP $CPPFLAGS'
  1670. ac_compile='${CXX-g++} $CXXFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&AC_FD_CC 2>&AC_FD_CC'
  1671. ac_link='${CXX-g++} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
  1672. []AC_EPI()
  1673. T7,259
  1674. AC_INITAC_PRO([AC_INIT])sinclude(acsite.m4)dnl
  1675. sinclude(./aclocal.m4)dnl
  1676. AC_REQUIRE([AC_INIT_BINSH])dnl
  1677. AC_INIT_NOTICE
  1678. AC_DIVERT_POP()dnl to NORMAL
  1679. AC_DIVERT_PUSH(AC_DIVERSION_INIT)dnl
  1680. AC_INIT_PARSE_ARGS
  1681. AC_INIT_PREPARE($1)dnl
  1682. AC_DIVERT_POP()dnl to NORMAL
  1683. []AC_EPI()
  1684. T13,306
  1685. AC_ARG_ENABLEAC_PRO([AC_ARG_ENABLE])AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
  1686. ac_help="$ac_help
  1687. [$2]"
  1688. AC_DIVERT_POP()dnl
  1689. [#] Check whether --enable-$1 or --disable-$1 was given.
  1690. enableval="[$enable_]patsubst($1, -, _)"
  1691. if test -n "$enableval"; then
  1692.   ifelse([$3], , :, [$3])
  1693. ifelse([$4], , , [else
  1694.   $4
  1695. ])dnl
  1696. fi
  1697. []AC_EPI()
  1698. T9,351
  1699. AC_LANG_CAC_PRO([AC_LANG_C])define([AC_LANG], [C])dnl
  1700. ac_ext=c
  1701. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1702. ac_cpp='$CPP $CPPFLAGS'
  1703. ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&AC_FD_CC 2>&AC_FD_CC'
  1704. ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&AC_FD_CC 2>&AC_FD_CC'
  1705. []AC_EPI()
  1706. T14,248
  1707. AC_INT_16_BITSAC_PRO([AC_INT_16_BITS])AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(int)])dnl
  1708. AC_MSG_CHECKING(whether int is 16 bits)
  1709. AC_TRY_RUN([main() { exit(sizeof(int) != 2); }],
  1710.  [AC_MSG_RESULT(yes)
  1711.  AC_DEFINE(INT_16_BITS)], AC_MSG_RESULT(no))
  1712. []AC_EPI()
  1713. T12,488
  1714. AC_ISC_POSIXAC_PRO([AC_ISC_POSIX])AC_BEFORE([$0], [AC_TRY_LINK])dnl
  1715. AC_BEFORE([$0], [AC_TRY_LINK])dnl
  1716. AC_BEFORE([$0], [AC_TRY_RUN])dnl
  1717. AC_MSG_CHECKING(for POSIXized ISC)
  1718. if test -d /gnu/etc/conf/kconfig.d &&
  1719.   grep _POSIX_VERSION [/gnu/include/sys/unistd.h] >/dev/null 2>&1
  1720. then
  1721.   AC_MSG_RESULT(yes)
  1722.   ISC=yes # If later tests want to check for ISC.
  1723.   AC_DEFINE(_POSIX_SOURCE)
  1724.   if test "$GCC" = yes; then
  1725.     CC="$CC -posix"
  1726.   else
  1727.     CC="$CC -Xp"
  1728.   fi
  1729. else
  1730.   AC_MSG_RESULT(no)
  1731.   ISC=
  1732. fi
  1733. []AC_EPI()
  1734. T16,62
  1735. AC_PROGRAM_CHECKAC_PRO([AC_PROGRAM_CHECK])indir([AC_CHECK_PROG], $@)[]AC_EPI()
  1736. T18,719
  1737. AC_C_CHAR_UNSIGNEDAC_PRO([AC_C_CHAR_UNSIGNED])AC_MSG_CHECKING(whether char is unsigned)
  1738. AC_CACHE_VAL(ac_cv_c_char_unsigned,
  1739. [if test "$GCC" = yes; then
  1740.   # GCC predefines this symbol on systems where it applies.
  1741. AC_EGREP_CPP(yes,
  1742. [#ifdef __CHAR_UNSIGNED__
  1743.   yes
  1744. #endif
  1745. ], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
  1746. else
  1747. AC_TRY_RUN(
  1748. [/* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1749. #if !defined(__STDC__) || __STDC__ != 1
  1750. #define volatile
  1751. #endif
  1752. main() {
  1753.   volatile char c = 255; exit(c < 0);
  1754. }], ac_cv_c_char_unsigned=yes, ac_cv_c_char_unsigned=no)
  1755. fi])dnl
  1756. AC_MSG_RESULT($ac_cv_c_char_unsigned)
  1757. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  1758.   AC_DEFINE(__CHAR_UNSIGNED__)
  1759. fi
  1760. []AC_EPI()
  1761. T14,389
  1762. AC_TYPE_SIGNALAC_PRO([AC_TYPE_SIGNAL])AC_MSG_CHECKING([return type of signal handlers])
  1763. AC_CACHE_VAL(ac_cv_type_signal,
  1764. [AC_TRY_COMPILE([#include <sys/types.h>
  1765. #include <signal.h>
  1766. #ifdef signal
  1767. #undef signal
  1768. #endif
  1769. extern void (*signal ()) ();],
  1770. [int i;], ac_cv_type_signal=void, ac_cv_type_signal=int)])dnl
  1771. AC_MSG_RESULT($ac_cv_type_signal)
  1772. AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal)
  1773. []AC_EPI()
  1774. T11,56
  1775. AC_SET_MAKEAC_PRO([AC_SET_MAKE])indir([AC_PROG_MAKE_SET])[]AC_EPI()
  1776. T16,228
  1777. AC_COMPILE_CHECKAC_PRO([AC_COMPILE_CHECK])AC_OBSOLETE([$0], [; instead use AC_TRY_COMPILE or AC_TRY_LINK, and AC_MSG_CHECKING and AC_MSG_RESULT])dnl
  1778. ifelse([$1], , , [AC_CHECKING([for $1])
  1779. ])dnl
  1780. AC_TRY_LINK([$2], [$3], [$4], [$5])dnl
  1781. []AC_EPI()
  1782. T15,26
  1783. AC_CHECK_SIZEOF#
  1784. @@@types="$types,$1"@@@
  1785.  
  1786. F8,8
  1787. patsubstpatsubst
  1788. T13,34
  1789. AC_MSG_RESULT/bin/echo "$ac_t""$1" 1>&AC_FD_MSG
  1790. T11,296
  1791. AC_ARG_WITHAC_PRO([AC_ARG_WITH])AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
  1792. ac_help="$ac_help
  1793. [$2]"
  1794. AC_DIVERT_POP()dnl
  1795. [#] Check whether --with-$1 or --without-$1 was given.
  1796. withval="[$with_]patsubst($1, -, _)"
  1797. if test -n "$withval"; then
  1798.   ifelse([$3], , :, [$3])
  1799. ifelse([$4], , , [else
  1800.   $4
  1801. ])dnl
  1802. fi
  1803. []AC_EPI()
  1804. T12,382
  1805. AC_STRUCT_TMAC_PRO([AC_STRUCT_TM])AC_MSG_CHECKING([whether struct tm is in sys/time.h or time.h])
  1806. AC_CACHE_VAL(ac_cv_struct_tm,
  1807. [AC_TRY_COMPILE([#include <sys/types.h>
  1808. #include <time.h>],
  1809. [struct tm *tp; tp->tm_sec;],
  1810.   ac_cv_struct_tm=time.h, ac_cv_struct_tm=sys/time.h)])dnl
  1811. AC_MSG_RESULT($ac_cv_struct_tm)
  1812. if test $ac_cv_struct_tm = sys/time.h; then
  1813.   AC_DEFINE(TM_IN_SYS_TIME)
  1814. fi
  1815. []AC_EPI()
  1816. T14,60
  1817. AC_GETGROUPS_TAC_PRO([AC_GETGROUPS_T])indir([AC_TYPE_GETGROUPS])[]AC_EPI()
  1818. T10,75
  1819. AC_VERBOSEAC_OBSOLETE([$0], [; instead use AC_MSG_RESULT])dnl
  1820. echo "    $1" 1>&AC_FD_MSG
  1821. T12,45
  1822. AC_MSG_ERROR{ echo "configure: error: $1" 1>&2; exit 1; }
  1823. T12,113
  1824. AC_CHECK_LIB#
  1825.   ifelse([$3], , [
  1826. @@@libs="$libs $1"@@@
  1827. ], [
  1828. # If it was found, we do:
  1829. $3
  1830. # If it was not found, we do:
  1831. $4
  1832. ])
  1833.  
  1834. T18,3389
  1835. AC_FUNC_GETLOADAVGAC_PRO([AC_FUNC_GETLOADAVG])# Some definitions of getloadavg require that the program be installed setgid.
  1836. NEED_SETGID=false
  1837. AC_SUBST(NEED_SETGID)dnl
  1838. ac_have_func=no
  1839.  
  1840. # Check for the 4.4BSD definition of getloadavg.
  1841. AC_CHECK_LIB(util, getloadavg, [LIBS="$LIBS -lutil" ac_have_func=yes
  1842. # Some systems with -lutil have (and need) -lkvm as well, some do not.
  1843. AC_CHECK_LIB(kvm, kvm_open,  LIBS="$LIBS -lkvm")])
  1844.  
  1845. if test $ac_have_func = no; then
  1846. # There is a commonly available library for RS/6000 AIX.
  1847. # Since it is not a standard part of AIX, it might be installed locally.
  1848. ac_save_LIBS="$LIBS" LIBS="-L/local/lib $LIBS"
  1849. AC_CHECK_LIB(getloadavg, getloadavg, LIBS="$LIBS -lgetloadavg", LIBS="$ac_save_LIBS")
  1850. fi
  1851.  
  1852. # Make sure it is really in the library, if we think we found it.
  1853. AC_REPLACE_FUNCS(getloadavg)
  1854.  
  1855. if test $ac_cv_func_getloadavg = yes; then
  1856.   AC_DEFINE(HAVE_GETLOADAVG)
  1857. else
  1858. ac_have_func=no
  1859. AC_CHECK_HEADER(sys/dg_sys_info.h,
  1860. [ac_have_func=yes AC_DEFINE(DGUX)
  1861. AC_CHECK_LIB(dgc, dg_sys_info)])
  1862. if test $ac_have_func = no; then
  1863. # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  1864. # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
  1865. # Irix 4.0.5F has the header but not the library.
  1866. AC_CHECK_LIB(elf, elf_read,
  1867.   [LIBS="$LIBS -lelf" ac_have_func=yes AC_DEFINE(SVR4)
  1868.   AC_CHECK_LIB(kvm, kvm_open, LIBS="$LIBS -lkvm")])
  1869. fi
  1870. if test $ac_have_func = no; then
  1871. AC_CHECK_HEADER(inq_stats/cpustats.h,
  1872.   [ac_have_func=yes AC_DEFINE(UMAX)
  1873.    AC_DEFINE(UMAX4_3)])
  1874. fi
  1875. if test $ac_have_func = no; then
  1876. AC_CHECK_HEADER(sys/cpustats.h,
  1877.   [ac_have_func=yes AC_DEFINE(UMAX)])
  1878. fi
  1879. if test $ac_have_func = no; then
  1880. AC_CHECK_HEADERS(mach/mach.h)
  1881. fi
  1882.  
  1883. AC_CHECK_HEADER(nlist.h,
  1884. [AC_DEFINE(NLIST_STRUCT)
  1885. AC_MSG_CHECKING([for n_un in struct nlist])
  1886. AC_CACHE_VAL(ac_cv_struct_nlist_n_un,
  1887. [AC_TRY_COMPILE([#include <nlist.h>],
  1888. [struct nlist n; n.n_un.n_name = 0;],
  1889. ac_cv_struct_nlist_n_un=yes, ac_cv_struct_nlist_n_un=no)])dnl
  1890. AC_MSG_RESULT($ac_cv_struct_nlist_n_un)
  1891. if test $ac_cv_struct_nlist_n_un = yes; then
  1892.   AC_DEFINE(NLIST_NAME_UNION)
  1893. fi
  1894. ])dnl
  1895.  
  1896. dnl FIXME two bugs here:
  1897. dnl Hardwiring the path of getloadavg.c in the top-level directory,
  1898. dnl and not checking whether a getloadavg from a library needs privileges.
  1899. AC_MSG_CHECKING(whether getloadavg requires setgid)
  1900. AC_CACHE_VAL(ac_cv_func_getloadavg_setgid,
  1901. [AC_EGREP_CPP([Yowza Am I SETGID yet],
  1902. [#include "$srcdir/getloadavg.c"
  1903. #ifdef LDAV_PRIVILEGED
  1904. Yowza Am I SETGID yet
  1905. #endif],
  1906.   ac_cv_func_getloadavg_setgid=yes, ac_cv_func_getloadavg_setgid=no)])dnl
  1907. AC_MSG_RESULT($ac_cv_func_getloadavg_setgid)
  1908. if test $ac_cv_func_getloadavg_setgid = yes; then
  1909.   NEED_SETGID=true AC_DEFINE(GETLOADAVG_PRIVILEGED)
  1910. fi
  1911.  
  1912. fi # Do not have getloadavg in system libraries.
  1913.  
  1914. if test "$NEED_SETGID" = true; then
  1915.   AC_MSG_CHECKING(group of /dev/kmem)
  1916. AC_CACHE_VAL(ac_cv_group_kmem,
  1917. [changequote(, )dnl
  1918.   # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
  1919.   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
  1920.   # If we got an error (system does not support symlinks), try without -L.
  1921.   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
  1922.   ac_cv_group_kmem=`/bin/echo $ac_ls_output \
  1923.     | sed -ne 's/[     ][     ]*/ /g;
  1924.            s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
  1925.            / /s/.* //;p;'`
  1926. changequote([, ])dnl
  1927. ])dnl
  1928.   KMEM_GROUP=$ac_cv_group_kmem
  1929.   AC_MSG_RESULT($KMEM_GROUP)
  1930. fi
  1931. AC_SUBST(KMEM_GROUP)dnl
  1932. []AC_EPI()
  1933. T21,1
  1934. AC_DIVERSION_NORMAL_44
  1935. T21,1
  1936. AC_DIVERSION_NORMAL_35
  1937. T21,1
  1938. AC_DIVERSION_NORMAL_26
  1939. T21,1
  1940. AC_DIVERSION_NORMAL_17
  1941. T14,53
  1942. AC_CROSS_CHECKAC_PRO([AC_CROSS_CHECK])indir([AC_C_CROSS])[]AC_EPI()
  1943. T15,1567
  1944. AC_OUTPUT_LINKSEOF
  1945.  
  1946. cat >> $CONFIG_STATUS <<EOF
  1947. ac_sources="$1"
  1948. ac_dests="$2"
  1949. EOF
  1950.  
  1951. cat >> $CONFIG_STATUS <<\EOF
  1952. srcdir=$ac_given_srcdir
  1953. while test -n "$ac_sources"; do
  1954.   set $ac_dests; ac_dest=[$]1; shift; ac_dests=[$]*
  1955.   set $ac_sources; ac_source=[$]1; shift; ac_sources=[$]*
  1956.  
  1957.   echo "linking $srcdir/$ac_source to $ac_dest"
  1958.  
  1959.   if test ! -r $srcdir/$ac_source; then
  1960.     AC_MSG_ERROR($srcdir/$ac_source: File not found)
  1961.   fi
  1962.   rm -f $ac_dest
  1963.  
  1964.   # Make relative symlinks.
  1965.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1966. changequote(, )dnl
  1967.   ac_dest_dir=`/bin/echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  1968. changequote([, ])dnl
  1969.   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
  1970.     # The dest file is in a subdirectory.
  1971.     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
  1972.     ac_dest_dir_suffix="/$ac_dest_dir"
  1973.     # A "../" for each directory in $ac_dest_dir_suffix.
  1974. changequote(, )dnl
  1975.     ac_dots=`/bin/echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  1976. changequote([, ])dnl
  1977.   else
  1978.     ac_dest_dir_suffix= ac_dots=
  1979.   fi
  1980.  
  1981.   case "$srcdir" in
  1982. changequote(, )dnl
  1983.   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  1984. changequote([, ])dnl
  1985.   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  1986.   esac
  1987.  
  1988.   # Make a symlink if possible; otherwise try a hard link.
  1989.   # On the Amiga, we instead try a hard link first and then
  1990.   # just do a cp, since symbolic links still have rough edges.
  1991.   if ln $ac_rel_source $ac_dest 2>/dev/null ||
  1992.     cp -p $srcdir/$ac_source $ac_dest; then :
  1993.   else
  1994.     AC_MSG_ERROR(can not link $ac_dest to $srcdir/$ac_source)
  1995.   fi
  1996. done
  1997.  
  1998. F6,6
  1999. popdefpopdef
  2000. T13,3732
  2001. AC_FUNC_VFORKAC_PRO([AC_FUNC_VFORK])AC_REQUIRE([AC_TYPE_PID_T])dnl
  2002. AC_CHECK_HEADER(vfork.h, AC_DEFINE(HAVE_VFORK_H))
  2003. AC_MSG_CHECKING(for working vfork)
  2004. AC_CACHE_VAL(ac_cv_func_vfork,
  2005. [AC_REQUIRE([AC_TYPE_SIGNAL])
  2006. AC_TRY_RUN([/* Thanks to Paul Eggert for this test.  */
  2007. #include <stdio.h>
  2008. #include <sys/types.h>
  2009. #include <sys/stat.h>
  2010. #include <signal.h>
  2011. #ifdef HAVE_UNISTD_H
  2012. #include <unistd.h>
  2013. #endif
  2014. #ifdef HAVE_VFORK_H
  2015. #include <vfork.h>
  2016. #endif
  2017. /* On sparc systems, changes by the child to local and incoming
  2018.    argument registers are propagated back to the parent.
  2019.    The compiler is told about this with #include <vfork.h>,
  2020.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  2021.    Test for this by using a static variable whose address
  2022.    is put into a register that is clobbered by the vfork.  */
  2023. static
  2024. #ifdef __cplusplus
  2025. sparc_address_test (int arg)
  2026. #else
  2027. sparc_address_test (arg) int arg;
  2028. #endif
  2029. {
  2030.   static pid_t child;
  2031.   if (!child) {
  2032.     child = vfork ();
  2033.     if (child < 0)
  2034.       perror ("vfork");
  2035.     if (!child) {
  2036.       arg = getpid();
  2037.       write(-1, "", 0);
  2038.       _exit (arg);
  2039.     }
  2040.   }
  2041. }
  2042. static int signalled;
  2043. static RETSIGTYPE catch (s) int s; { signalled = 1; }
  2044. main() {
  2045.   pid_t parent = getpid ();
  2046.   pid_t child;
  2047.  
  2048.   sparc_address_test ();
  2049.  
  2050. #ifdef __amigados__
  2051.   /* Force this test to succeed for AmigaDOS, which has a fairly good
  2052.      vfork() emulation, but doesn't support fork() at all.  -fnf */
  2053.   exit (0);
  2054. #endif
  2055.   signal (SIGINT, catch);
  2056.  
  2057.   child = vfork ();
  2058.  
  2059.   if (child == 0) {
  2060.     /* Here is another test for sparc vfork register problems.
  2061.        This test uses lots of local variables, at least
  2062.        as many local variables as main has allocated so far
  2063.        including compiler temporaries.  4 locals are enough for
  2064.        gcc 1.40.3 on a sparc, but we use 8 to be safe.
  2065.        A buggy compiler should reuse the register of parent
  2066.        for one of the local variables, since it will think that
  2067.        parent can't possibly be used any more in this routine.
  2068.        Assigning to the local variable will thus munge parent
  2069.        in the parent process.  */
  2070.     pid_t
  2071.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  2072.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  2073.     /* Convince the compiler that p..p7 are live; otherwise, it might
  2074.        use the same hardware register for all 8 local variables.  */
  2075.     if (p != p1 || p != p2 || p != p3 || p != p4
  2076.     || p != p5 || p != p6 || p != p7)
  2077.       _exit(1);
  2078.  
  2079.     /* On some systems (e.g. SunOS 5.2), if the parent is catching
  2080.        a signal, the child ignores the signal before execing,
  2081.        and the parent later receives that signal, the parent dumps core.
  2082.        Test for this by ignoring SIGINT in the child.  */
  2083.     signal (SIGINT, SIG_IGN);
  2084.  
  2085.     /* On some systems (e.g. IRIX 3.3),
  2086.        vfork doesn't separate parent from child file descriptors.
  2087.        If the child closes a descriptor before it execs or exits,
  2088.        this munges the parent's descriptor as well.
  2089.        Test for this by closing stdout in the child.  */
  2090.     _exit(close(fileno(stdout)) != 0);
  2091.   } else {
  2092.     int status;
  2093.     struct stat st;
  2094.  
  2095.     while (wait(&status) != child)
  2096.       ;
  2097.     exit(
  2098.      /* Was there some problem with vforking?  */
  2099.      child < 0
  2100.  
  2101.      /* Did the child fail?  (This shouldn't happen.)  */
  2102.      || status
  2103.  
  2104.      /* Did the vfork/compiler bug occur?  */
  2105.      || parent != getpid()
  2106.  
  2107.      /* Did the signal handling bug occur?  */
  2108.      || kill(parent, SIGINT) != 0
  2109.      || signalled != 1
  2110.  
  2111.      /* Did the file descriptor bug occur?  */
  2112.      || fstat(fileno(stdout), &st) != 0
  2113.      );
  2114.   }
  2115. }], ac_cv_func_vfork=yes, ac_cv_func_vfork=no, ac_cv_func_vfork=no)])dnl
  2116. AC_MSG_RESULT($ac_cv_func_vfork)
  2117. if test $ac_cv_func_vfork = no; then
  2118.   AC_DEFINE(vfork, fork)
  2119. fi
  2120. []AC_EPI()
  2121. T16,174
  2122. AC_FUNC_STRFTIMEAC_PRO([AC_FUNC_STRFTIME])# strftime is in -lintl on SCO UNIX.
  2123. AC_CHECK_LIB(intl, strftime, LIBS="$LIBS -lintl")
  2124. AC_CHECK_FUNC(strftime, [AC_DEFINE(HAVE_STRFTIME)])[]AC_EPI()
  2125. T17,248
  2126. AC_FUNC_GETMNTENTAC_PRO([AC_FUNC_GETMNTENT])# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX.
  2127. AC_CHECK_LIB(sun, getmntent, LIBS="$LIBS -lsun",
  2128.   [AC_CHECK_LIB(seq, getmntent, LIBS="$LIBS -lseq")])
  2129. AC_CHECK_FUNC(getmntent, [AC_DEFINE(HAVE_GETMNTENT)])[]AC_EPI()
  2130. T9,24
  2131. AC_DEFINE#
  2132. @@@syms="$syms $1"@@@
  2133.  
  2134. T17,104
  2135. AC_HAVE_POUNDBANGerrprint(__file__:__line__: [$0 has been replaced by AC_SYS_INTERPRETER, taking no arguments
  2136. ])m4exit(4)
  2137. T9,2903
  2138. AC_OUTPUTtrap '' 1 2 15
  2139. AC_CACHE_SAVE
  2140. trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2141.  
  2142. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2143. # Let make expand exec_prefix.
  2144. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2145.  
  2146. # Any assignment to VPATH causes Sun make to only execute
  2147. # the first set of double-colon rules, so remove it if not needed.
  2148. # If there is a colon in the path, we need to keep it.
  2149. if test "x$srcdir" = x.; then
  2150. changequote(, )dnl
  2151.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2152. changequote([, ])dnl
  2153. fi
  2154.  
  2155. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2156.  
  2157. ifdef([AC_LIST_HEADER], [DEFS=-DHAVE_CONFIG_H], [AC_OUTPUT_MAKE_DEFS()])
  2158.  
  2159. # Without the "./", some shells look in PATH for config.status.
  2160. : ${CONFIG_STATUS=./config.status}
  2161.  
  2162. echo creating $CONFIG_STATUS
  2163. # Some systems, like AmigaDOS, won't allow you to remove a script that is
  2164. # being executed, so just move it out of the way instead.
  2165. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2166. cat > $CONFIG_STATUS <<EOF
  2167. #!/bin/sh
  2168. # Generated automatically by configure.
  2169. # Run this file to recreate the current configuration.
  2170. # This directory was configured as follows,
  2171. dnl hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  2172. dnl so uname gets run too.
  2173. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2174. #
  2175. [#] [$]0 [$]ac_configure_args
  2176. #
  2177. # Compiler output produced by configure, useful for debugging
  2178. # configure, is in ./config.log if it exists.
  2179.  
  2180. changequote(, )dnl
  2181. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2182. changequote([, ])dnl
  2183. for ac_option
  2184. do
  2185.   case "[\$]ac_option" in
  2186.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2187.     echo "running [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion"
  2188.     exec [\$]{CONFIG_SHELL-/bin/sh} [$]0 [$]ac_configure_args --no-create --no-recursion ;;
  2189.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2190.     /bin/echo "$CONFIG_STATUS generated by autoconf version AC_ACVERSION"
  2191.     exit 0 ;;
  2192.   -help | --help | --hel | --he | --h)
  2193.     echo "[\$]ac_cs_usage"; exit 0 ;;
  2194.   *) echo "[\$]ac_cs_usage"; exit 1 ;;
  2195.   esac
  2196. done
  2197.  
  2198. ac_given_srcdir=$srcdir
  2199. ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ac_given_INSTALL="$INSTALL"
  2200. ])dnl
  2201.  
  2202. ifdef([AC_LIST_HEADER],
  2203. [trap 'rm -fr $1 AC_LIST_HEADER conftest*; exit 1' 1 2 15],
  2204. [trap 'rm -f $1; exit 1' 1 2 15])
  2205.  
  2206. AC_OUTPUT_FILES($1)
  2207. ifdef([AC_LIST_HEADER], [AC_OUTPUT_HEADER(AC_LIST_HEADER)])dnl
  2208. ifdef([AC_LIST_LINKS], [AC_OUTPUT_LINKS(AC_LIST_FILES, AC_LIST_LINKS)])dnl
  2209. ifelse([$3], , , 
  2210. [EOF
  2211. cat >> $CONFIG_STATUS <<EOF
  2212. $3
  2213. EOF
  2214. cat >> $CONFIG_STATUS <<\EOF])
  2215. $2
  2216. exit 0
  2217. EOF
  2218. chmod +x $CONFIG_STATUS
  2219. rm -fr confdefs* $ac_clean_files
  2220. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
  2221. dnl config.status should not do recursion.
  2222. ifdef([AC_LIST_SUBDIRS], [AC_OUTPUT_SUBDIRS(AC_LIST_SUBDIRS)])dnl
  2223.  
  2224. T10,54
  2225. AC_VPRINTFAC_PRO([AC_VPRINTF])indir([AC_FUNC_VPRINTF])[]AC_EPI()
  2226. T11,59
  2227. AC_OBSOLETEerrprint(__file__:__line__: warning: [$1] is obsolete[$2]
  2228. )
  2229. T8,0
  2230. __unix__
  2231. T11,167
  2232. AC_IRIX_SUNAC_PRO([AC_IRIX_SUN])AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT or AC_CHECK_LIB(sun, getpwnam)])dnl
  2233. AC_CHECK_LIB(sun, getmntent, LIBS="$LIBS -lsun")
  2234. []AC_EPI()
  2235. F8,8
  2236. __line____line__
  2237. T13,334
  2238. AC_CHECK_TYPEAC_PRO([AC_CHECK_TYPE])AC_REQUIRE([AC_HEADER_STDC])dnl
  2239. AC_MSG_CHECKING(for $1)
  2240. AC_CACHE_VAL(ac_cv_type_$1,
  2241. [AC_EGREP_CPP($1, [#include <sys/types.h>
  2242. #if STDC_HEADERS
  2243. #include <stdlib.h>
  2244. #endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
  2245. AC_MSG_RESULT($ac_cv_type_$1)
  2246. if test $ac_cv_type_$1 = no; then
  2247.   AC_DEFINE($1, $2)
  2248. fi
  2249. []AC_EPI()
  2250. T15,3318
  2251. AC_INIT_PREPAREAC_PRO([AC_INIT_PREPARE])trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  2252.  
  2253. # File descriptor usage:
  2254. # 0 unused; standard input
  2255. # 1 file creation
  2256. # 2 errors and warnings
  2257. # 3 unused; some systems may open it to /dev/tty
  2258. define(AC_FD_MSG, 4)dnl
  2259. [#] AC_FD_MSG checking for... messages and results
  2260. define(AC_FD_CC, 5)dnl
  2261. [#] AC_FD_CC compiler messages saved in config.log
  2262. if test "$silent" = yes; then
  2263.   exec AC_FD_MSG>/dev/null
  2264. else
  2265.   exec AC_FD_MSG>&1
  2266. fi
  2267. exec AC_FD_CC>./config.log
  2268.  
  2269. echo "\
  2270. This file contains any messages produced by compilers while
  2271. running configure, to aid debugging if configure makes a mistake.
  2272. " 1>&AC_FD_CC
  2273.  
  2274. # Strip out --no-create and --no-recursion so they do not pile up.
  2275. # Also quote any args containing shell metacharacters.
  2276. ac_configure_args=
  2277. for ac_arg
  2278. do
  2279.   case "$ac_arg" in
  2280.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  2281.   | --no-cr | --no-c) ;;
  2282.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  2283.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  2284. changequote(<<, >>)dnl
  2285. dnl If you change this globbing pattern, test it on an old shell --
  2286. dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
  2287.   *" "*|*"    "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  2288.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2289. changequote([, ])dnl
  2290.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  2291.   esac
  2292. done
  2293.  
  2294. # NLS nuisances.
  2295. # Only set LANG and LC_ALL to C if already set.
  2296. # These must not be set unconditionally because not all systems understand
  2297. # e.g. LANG=C (notably SCO).
  2298. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  2299. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  2300.  
  2301. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2302. rm -rf conftest* confdefs.h
  2303. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  2304. /bin/echo > confdefs.h
  2305.  
  2306. # A filename unique to this package, relative to the directory that
  2307. # configure is in, which we can look for to find out if srcdir is correct.
  2308. ac_unique_file=$1
  2309.  
  2310. # Find the source files, if location was not specified.
  2311. if test -z "$srcdir"; then
  2312.   ac_srcdir_defaulted=yes
  2313.   # Try the directory containing this script, then its parent.
  2314.   ac_prog=[$]0
  2315. changequote(, )dnl
  2316.   ac_confdir=`/bin/echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  2317. changequote([, ])dnl
  2318.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  2319.   srcdir=$ac_confdir
  2320.   if test ! -r $srcdir/$ac_unique_file; then
  2321.     srcdir=..
  2322.   fi
  2323. else
  2324.   ac_srcdir_defaulted=no
  2325. fi
  2326. if test ! -r $srcdir/$ac_unique_file; then
  2327.   if test "$ac_srcdir_defaulted" = yes; then
  2328.     AC_MSG_ERROR(can not find sources in $ac_confdir or ..)
  2329.   else
  2330.     AC_MSG_ERROR(can not find sources in $srcdir)
  2331.   fi
  2332. fi
  2333. dnl Double slashes in pathnames in object file debugging info
  2334. dnl mess up M-x gdb in Emacs.
  2335. changequote(, )dnl
  2336. srcdir=`/bin/echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  2337. changequote([, ])dnl
  2338.  
  2339. dnl Let the site file select an alternate cache file if it wants to.
  2340. AC_SITE_LOAD
  2341. AC_CACHE_LOAD
  2342. AC_LANG_C
  2343. AC_PROG_ECHO_N
  2344. dnl Substitute for predefined variables.
  2345. AC_SUBST(CFLAGS)dnl
  2346. AC_SUBST(CPPFLAGS)dnl
  2347. AC_SUBST(CXXFLAGS)dnl
  2348. AC_SUBST(DEFS)dnl
  2349. AC_SUBST(LDFLAGS)dnl
  2350. AC_SUBST(LIBS)dnl
  2351. AC_SUBST(exec_prefix)dnl
  2352. AC_SUBST(prefix)dnl
  2353. AC_SUBST(program_transform_name)dnl
  2354. []AC_EPI()
  2355. T22,466
  2356. AC_CHECK_HEADER_DIRENTAC_PRO([AC_CHECK_HEADER_DIRENT])ac_safe=`/bin/echo "$1" | tr './\055' '___'`
  2357. AC_MSG_CHECKING([for $1 that defines DIR])
  2358. AC_CACHE_VAL(ac_cv_header_dirent_$ac_safe,
  2359. [AC_TRY_COMPILE([#include <sys/types.h>
  2360. #include <$1>], [DIR *dirp = 0;],
  2361.   eval "ac_cv_header_dirent_$ac_safe=yes",
  2362.   eval "ac_cv_header_dirent_$ac_safe=no")])dnl
  2363. if eval "test \"`/bin/echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  2364.   AC_MSG_RESULT(yes)
  2365.   $2
  2366. else
  2367.   AC_MSG_RESULT(no)
  2368. fi
  2369. []AC_EPI()
  2370. T12,3
  2371. AC_ACVERSION2.1
  2372. T11,31
  2373. AC_CHECKINGecho "checking $1" 1>&AC_FD_MSG
  2374. T14,74
  2375. AC_PROG_RANLIBAC_PRO([AC_PROG_RANLIB])AC_CHECK_PROG(RANLIB, ranlib, ranlib, :)[]AC_EPI()
  2376. T14,2437
  2377. AC_FUNC_ALLOCAAC_PRO([AC_FUNC_ALLOCA])AC_REQUIRE_CPP()dnl Set CPP; we run AC_EGREP_CPP conditionally.
  2378. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2379. # for constant arguments.  Useless!
  2380. AC_MSG_CHECKING([for working alloca.h])
  2381. AC_CACHE_VAL(ac_cv_header_alloca_h,
  2382. [AC_TRY_LINK([#include <alloca.h>], [char *p = alloca(2 * sizeof(int));],
  2383.   ac_cv_header_alloca_h=yes, ac_cv_header_alloca_h=no)])dnl
  2384. AC_MSG_RESULT($ac_cv_header_alloca_h)
  2385. if test $ac_cv_header_alloca_h = yes; then
  2386.   AC_DEFINE(HAVE_ALLOCA_H)
  2387. fi
  2388.  
  2389. AC_MSG_CHECKING([for alloca])
  2390. AC_CACHE_VAL(ac_cv_func_alloca,
  2391. [AC_TRY_LINK([
  2392. #ifdef __GNUC__
  2393. # define alloca __builtin_alloca
  2394. #else
  2395. # if HAVE_ALLOCA_H
  2396. #  include <alloca.h>
  2397. # else
  2398. #  ifdef _AIX
  2399.  #pragma alloca
  2400. #  else
  2401. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2402. char *alloca ();
  2403. #   endif
  2404. #  endif
  2405. # endif
  2406. #endif
  2407. ], [char *p = (char *) alloca(1);],
  2408.   ac_cv_func_alloca=yes, ac_cv_func_alloca=no)])dnl
  2409. AC_MSG_RESULT($ac_cv_func_alloca)
  2410. if test $ac_cv_func_alloca = yes; then
  2411.   AC_DEFINE(HAVE_ALLOCA)
  2412. fi
  2413.  
  2414. if test $ac_cv_func_alloca = no; then
  2415.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2416.   # that cause trouble.  Some versions do not even contain alloca or
  2417.   # contain a buggy version.  If you still want to use their alloca,
  2418.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2419.   ALLOCA=alloca.o
  2420.   AC_DEFINE(C_ALLOCA)
  2421.  
  2422. AC_MSG_CHECKING(whether alloca needs Cray hooks)
  2423. AC_CACHE_VAL(ac_cv_os_cray,
  2424. [AC_EGREP_CPP(webecray,
  2425. [#if defined(CRAY) && ! defined(CRAY2)
  2426. webecray
  2427. #else
  2428. wenotbecray
  2429. #endif
  2430. ], ac_cv_os_cray=yes, ac_cv_os_cray=no)])dnl
  2431. AC_MSG_RESULT($ac_cv_os_cray)
  2432. if test $ac_cv_os_cray = yes; then
  2433. AC_CHECK_FUNC(_getb67, AC_DEFINE(CRAY_STACKSEG_END, _getb67),
  2434. AC_CHECK_FUNC(GETB67, AC_DEFINE(CRAY_STACKSEG_END, GETB67),
  2435. AC_CHECK_FUNC(getb67, AC_DEFINE(CRAY_STACKSEG_END, getb67))))
  2436. fi
  2437.  
  2438. AC_MSG_CHECKING(stack direction for C alloca)
  2439. AC_CACHE_VAL(ac_cv_c_stack_direction,
  2440. [AC_TRY_RUN([find_stack_direction ()
  2441. {
  2442.   static char *addr = 0;
  2443.   auto char dummy;
  2444.   if (addr == 0)
  2445.     {
  2446.       addr = &dummy;
  2447.       return find_stack_direction ();
  2448.     }
  2449.   else
  2450.     return (&dummy > addr) ? 1 : -1;
  2451. }
  2452. main ()
  2453. {
  2454.   exit (find_stack_direction() < 0);
  2455. }], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
  2456.   ac_cv_c_stack_direction=0)])dnl
  2457. AC_MSG_RESULT($ac_cv_c_stack_direction)
  2458. AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
  2459. fi
  2460. AC_SUBST(ALLOCA)dnl
  2461. []AC_EPI()
  2462. T11,136
  2463. AC_SCO_INTLAC_PRO([AC_SCO_INTL])AC_OBSOLETE([$0], [; instead use AC_FUNC_STRFTIME])dnl
  2464. AC_CHECK_LIB(intl, strftime, LIBS="$LIBS -lintl")
  2465. []AC_EPI()
  2466. T8,50
  2467. AC_PID_TAC_PRO([AC_PID_T])indir([AC_TYPE_PID_T])[]AC_EPI()
  2468. T24,1073
  2469. AC_FUNC_SETVBUF_REVERSEDAC_PRO([AC_FUNC_SETVBUF_REVERSED])AC_MSG_CHECKING(whether setvbuf arguments are reversed)
  2470. AC_CACHE_VAL(ac_cv_func_setvbuf_reversed,
  2471. [AC_TRY_RUN([#include <stdio.h>
  2472. /* If setvbuf has the reversed format, exit 0. */
  2473. main () {
  2474. #ifdef __amigados__
  2475.   /* AmigaDOS is a non-reversed system.  Instead of the test program
  2476.      getting a segfault (no memory protection), it causes enforcer hits
  2477.      or other nastiness, so don't run the test program, just exit with
  2478.      status 1 to indicate that it is non-reversed.  -fnf */
  2479.   exit(1);
  2480. #endif
  2481.   /* This call has the arguments reversed.
  2482.      A reversed system may check and see that the address of main
  2483.      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  2484.   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
  2485.     exit(1);
  2486.   putc('\r', stdout);
  2487.   exit(0);            /* Non-reversed systems segv here.  */
  2488. }], ac_cv_func_setvbuf_reversed=yes, ac_cv_func_setvbuf_reversed=no)
  2489. rm -f core])dnl
  2490. AC_MSG_RESULT($ac_cv_func_setvbuf_reversed)
  2491. if test $ac_cv_func_setvbuf_reversed = yes; then
  2492.   AC_DEFINE(SETVBUF_REVERSED)
  2493. fi
  2494. []AC_EPI()
  2495. T9,81
  2496. AC_BEFOREifdef([AC_PROVIDE_$2], [errprint(__file__:__line__: [$2 was called before $1
  2497. ])])
  2498. T12,53
  2499. AC_FIND_XTRAAC_PRO([AC_FIND_XTRA])indir([AC_PATH_XTRA])[]AC_EPI()
  2500. F3,3
  2501. lenlen
  2502. F6,6
  2503. ifelseifelse
  2504. T21,64
  2505. AC_STAT_MACROS_BROKENAC_PRO([AC_STAT_MACROS_BROKEN])indir([AC_HEADER_STAT])[]AC_EPI()
  2506. T15,59
  2507. AC_MAJOR_HEADERAC_PRO([AC_MAJOR_HEADER])indir([AC_HEADER_MAJOR])[]AC_EPI()
  2508. T8,25
  2509. AC_ERRORindir([AC_MSG_ERROR], $@)
  2510. T13,160
  2511. AC_PATH_PROGSAC_PRO([AC_PATH_PROGS])for ac_prog in $2
  2512. do
  2513. AC_PATH_PROG($1, [$]ac_prog)
  2514. test -n "[$]$1" && break
  2515. done
  2516. ifelse([$3], , , [test -n "[$]$1" || $1="$3"
  2517. ])[]AC_EPI()
  2518. T16,3547
  2519. AC_OUTPUT_HEADERchangequote(<<, >>)dnl
  2520. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  2521. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  2522. #
  2523. # ac_d sets the value in "#define NAME VALUE" lines.
  2524. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  2525. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  2526. ac_dC='\3'
  2527. ac_dD='%g'
  2528. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  2529. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2530. ac_uB='\([     ]\)%\1#\2define\3'
  2531. ac_uC=' '
  2532. ac_uD='\4%g'
  2533. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  2534. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  2535. ac_eB='<<$>>%\1#\2define\3'
  2536. ac_eC=' '
  2537. ac_eD='%g'
  2538. changequote([, ])dnl
  2539.  
  2540. CONFIG_HEADERS=${CONFIG_HEADERS-"$1"}
  2541. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  2542.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  2543.   case "$ac_file" in
  2544.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  2545.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  2546.   *) ac_file_in="${ac_file}.in" ;;
  2547.   esac
  2548.  
  2549.   echo creating $ac_file
  2550.  
  2551.   rm -f conftest.frag conftest.in conftest.out
  2552.   cp $ac_given_srcdir/$ac_file_in conftest.in
  2553.  
  2554. EOF
  2555.  
  2556. # Transform confdefs.h into a sed script conftest.vals that substitutes
  2557. # the proper values into config.h.in to produce config.h.  And first:
  2558. # Protect against being on the right side of a sed subst in config.status. 
  2559. # Protect against being in an unquoted here document in config.status.
  2560. rm -f conftest.vals
  2561. dnl Using a here document instead of a string reduces the quoting nightmare.
  2562. dnl Putting comments in sed scripts is not portable.
  2563. cat > conftest.hdr <<\EOF
  2564. changequote(<<, >>)dnl
  2565. s/[\\&%]/\\&/g
  2566. s%[\\$`]%\\&%g
  2567. s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  2568. s%ac_d%ac_u%gp
  2569. s%ac_u%ac_e%gp
  2570. changequote([, ])dnl
  2571. EOF
  2572. sed -n -f conftest.hdr confdefs.h > conftest.vals
  2573. rm -f conftest.hdr
  2574.  
  2575. # This sed command replaces #undef with comments.  This is necessary, for
  2576. # example, in the case of _POSIX_SOURCE, which is predefined and required
  2577. # on some systems where configure will not decide to define it.
  2578. cat >> conftest.vals <<\EOF
  2579. changequote(, )dnl
  2580. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  2581. changequote([, ])dnl
  2582. EOF
  2583.  
  2584. # Break up conftest.vals because some shells have a limit on
  2585. # the size of here documents, and old seds have small limits too.
  2586. # Maximum number of lines to put in a single here document.
  2587. ac_max_here_lines=12
  2588.  
  2589. rm -f conftest.tail
  2590. while :
  2591. do
  2592.   ac_lines=`grep -c . conftest.vals`
  2593.   # grep -c gives empty output for an empty file on some AIX systems.
  2594.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  2595.   # Write a limited-size here document to conftest.frag.
  2596.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  2597.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  2598.   echo 'CEOF
  2599.   sed -f conftest.frag conftest.in > conftest.out
  2600.   rm -f conftest.in
  2601.   mv conftest.out conftest.in
  2602. ' >> $CONFIG_STATUS
  2603.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  2604.   rm -f conftest.vals
  2605.   mv conftest.tail conftest.vals
  2606. done
  2607. rm -f conftest.vals
  2608.  
  2609. dnl Now back to your regularly scheduled config.status.
  2610. cat >> $CONFIG_STATUS <<\EOF
  2611.   rm -f conftest.frag conftest.h
  2612.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  2613.   cat conftest.in >> conftest.h
  2614.   rm -f conftest.in
  2615.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  2616.     /bin/echo "$ac_file is unchanged"
  2617.     rm -f conftest.h
  2618.   else
  2619.     rm -f $ac_file
  2620.     mv conftest.h $ac_file
  2621.   fi
  2622. fi; done
  2623.  
  2624.  
  2625. T15,261
  2626. AC_LONG_64_BITSAC_PRO([AC_LONG_64_BITS])AC_OBSOLETE([$0], [; instead use AC_CHECK_SIZEOF(long)])dnl
  2627. AC_MSG_CHECKING(whether long int is 64 bits)
  2628. AC_TRY_RUN([main() { exit(sizeof(long int) != 8); }],
  2629.  [AC_MSG_RESULT(yes)
  2630.  AC_DEFINE(LONG_64_BITS)], AC_MSG_RESULT(no))
  2631. []AC_EPI()
  2632. T13,60
  2633. AC_UTIME_NULLAC_PRO([AC_UTIME_NULL])indir([AC_FUNC_UTIME_NULL])[]AC_EPI()
  2634. T13,142
  2635. AC_CACHE_LOADif test -r "$cache_file"; then
  2636.   echo "loading cache $cache_file"
  2637.   . $cache_file
  2638. else
  2639.   echo "creating cache $cache_file"
  2640.   > $cache_file
  2641. fi
  2642.  
  2643. T19,72
  2644. AC_SETVBUF_REVERSEDAC_PRO([AC_SETVBUF_REVERSED])indir([AC_FUNC_SETVBUF_REVERSED])[]AC_EPI()
  2645. T14,59
  2646. AC_LONG_DOUBLEAC_PRO([AC_LONG_DOUBLE])indir([AC_C_LONG_DOUBLE])[]AC_EPI()
  2647. T19,1103
  2648. AC_CANONICAL_SYSTEMAC_PRO([AC_CANONICAL_SYSTEM])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  2649. AC_BEFORE([$0], [AC_ARG_PROGRAM])
  2650. # Do some error checking and defaulting for the host and target type.
  2651. # The inputs are:
  2652. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  2653. #
  2654. # The rules are:
  2655. # 1. You are not allowed to specify --host, --target, and nonopt at the
  2656. #    same time. 
  2657. # 2. Host defaults to nonopt.
  2658. # 3. If nonopt is not specified, then host defaults to the current host,
  2659. #    as determined by config.guess.
  2660. # 4. Target and build default to nonopt.
  2661. # 5. If nonopt is not specified, then target and build default to host.
  2662.  
  2663. # The aliases save the names the user supplied, while $host etc.
  2664. # will get canonicalized.
  2665. case $host---$target---$nonopt in
  2666. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  2667. *) AC_MSG_ERROR(can only configure for one host and one target at a time) ;;
  2668. esac
  2669.  
  2670. AC_CANONICAL_HOST
  2671. AC_CANONICAL_TARGET
  2672. AC_CANONICAL_BUILD
  2673. test "$host_alias" != "$target_alias" &&
  2674.   test "$program_prefix$program_suffix$program_transform_name" = \
  2675.     NONENONEs,x,x, && program_prefix=${target_alias}-
  2676. []AC_EPI()
  2677. T13,801
  2678. AC_CHECK_PROGAC_PRO([AC_CHECK_PROG])# Extract the first word of "$2", so it can be a program name with args.
  2679. set dummy $2; ac_word=[$]2
  2680. AC_MSG_CHECKING([for $ac_word])
  2681. AC_CACHE_VAL(ac_cv_prog_$1,
  2682. [if test -n "[$]$1"; then
  2683.   ac_cv_prog_$1="[$]$1" # Let the user override the test.
  2684. else
  2685.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  2686.   for ac_dir in $PATH; do
  2687.     test -z "$ac_dir" && ac_dir=.
  2688.     if test -f $ac_dir/$ac_word; then
  2689.       ac_cv_prog_$1="$3"
  2690.       break
  2691.     fi
  2692.   done
  2693.   IFS="$ac_save_ifs"
  2694. dnl If no 4th arg is given, leave the cache variable unset,
  2695. dnl so AC_CHECK_PROGS will keep looking.
  2696. ifelse([$4], , , [  test -z "[$]ac_cv_prog_$1" && ac_cv_prog_$1="$4"
  2697. ])dnl
  2698. fi])dnl
  2699. $1="$ac_cv_prog_$1"
  2700. if test -n "[$]$1"; then
  2701.   AC_MSG_RESULT([$]$1)
  2702. else
  2703.   AC_MSG_RESULT(no)
  2704. fi
  2705. AC_SUBST($1)dnl
  2706. []AC_EPI()
  2707. T16,364
  2708. AC_HEADER_DIRENTAC_PRO([AC_HEADER_DIRENT])ac_header_dirent=no
  2709. AC_CHECK_HEADERS_DIRENT(dirent.h sys/ndir.h sys/dir.h ndir.h,
  2710.   [ac_header_dirent=$ac_hdr; break])
  2711. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  2712. if test $ac_header_dirent = dirent.h; then
  2713. AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir")
  2714. else
  2715. AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx")
  2716. fi
  2717. []AC_EPI()
  2718. T14,113
  2719. AC_REQUIRE_CPPAC_PRO([AC_REQUIRE_CPP])ifelse(AC_LANG, C, [AC_REQUIRE([AC_PROG_CPP])], [AC_REQUIRE([AC_PROG_CXXCPP])])[]AC_EPI()
  2720. T18,606
  2721. AC_HEADER_SYS_WAITAC_PRO([AC_HEADER_SYS_WAIT])AC_MSG_CHECKING([for sys/wait.h that is POSIX.1 compatible])
  2722. AC_CACHE_VAL(ac_cv_header_sys_wait_h,
  2723. [AC_TRY_COMPILE([#include <sys/types.h>
  2724. #include <sys/wait.h>
  2725. #ifndef WEXITSTATUS
  2726. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2727. #endif
  2728. #ifndef WIFEXITED
  2729. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2730. #endif], [int s;
  2731. wait (&s);
  2732. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;],
  2733. ac_cv_header_sys_wait_h=yes, ac_cv_header_sys_wait_h=no)])dnl
  2734. AC_MSG_RESULT($ac_cv_header_sys_wait_h)
  2735. if test $ac_cv_header_sys_wait_h = yes; then
  2736.   AC_DEFINE(HAVE_SYS_WAIT_H)
  2737. fi
  2738. []AC_EPI()
  2739. T15,565
  2740. AC_HEADER_MAJORAC_PRO([AC_HEADER_MAJOR])AC_MSG_CHECKING(whether sys/types.h defines makedev)
  2741. AC_CACHE_VAL(ac_cv_header_sys_types_h_makedev,
  2742. [AC_TRY_LINK([#include <sys/types.h>], [return makedev(0, 0);],
  2743.   ac_cv_header_sys_types_h_makedev=yes, ac_cv_header_sys_types_h_makedev=no)
  2744. ])dnl
  2745. AC_MSG_RESULT($ac_cv_header_sys_types_h_makedev)
  2746.  
  2747. if test $ac_cv_header_sys_types_h_makedev = no; then
  2748. AC_CHECK_HEADER(sys/mkdev.h, [AC_DEFINE(MAJOR_IN_MKDEV)])
  2749.  
  2750.   if test $ac_cv_header_sys_mkdev_h = no; then
  2751. AC_CHECK_HEADER(sys/sysmacros.h, [AC_DEFINE(MAJOR_IN_SYSMACROS)])
  2752.   fi
  2753. fi
  2754. []AC_EPI()
  2755. T14,336
  2756. AC_PROG_ECHO_NAC_PRO([AC_PROG_ECHO_N])if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  2757.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  2758.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  2759.     ac_n= ac_c='
  2760. ' ac_t='    '
  2761.   else
  2762.     ac_n=-n ac_c= ac_t=
  2763.   fi
  2764. else
  2765.   ac_n= ac_c='\c' ac_t=
  2766. fi
  2767. []AC_EPI()
  2768. T15,31
  2769. AC_PREREQ_CANON$1, $2, ifelse([$3], , 0, [$3])
  2770. T9,111
  2771. AC_PREREQAC_PREREQ_COMPARE(AC_PREREQ_CANON(AC_PREREQ_SPLIT(AC_ACVERSION)),
  2772. AC_PREREQ_CANON(AC_PREREQ_SPLIT([$1])), [$1])
  2773. T19,498
  2774. AC_OUTPUT_MAKE_DEFS# Transform confdefs.h into DEFS.
  2775. dnl Using a here document instead of a string reduces the quoting nightmare.
  2776. # Protect against shell expansion while executing Makefile rules.
  2777. # Protect against Makefile macro expansion.
  2778. cat > conftest.defs <<\EOF
  2779. changequote(<<, >>)dnl
  2780. s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  2781. s%[     `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g
  2782. s%\[%\\&%g
  2783. s%\]%\\&%g
  2784. s%\$%$$%g
  2785. changequote([, ])dnl
  2786. EOF
  2787. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2788. rm -f conftest.defs
  2789.  
  2790. T10,118
  2791. AC_REQUIREifdef([AC_PROVIDE_$1], ,
  2792. [AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))dnl
  2793. indir([$1])
  2794. AC_DIVERT_POP()dnl
  2795. ])
  2796. T14,1147
  2797. AC_DECL_YYTEXTAC_PRO([AC_DECL_YYTEXT])AC_REQUIRE_CPP()dnl
  2798. AC_REQUIRE([AC_PROG_LEX])dnl
  2799. AC_MSG_CHECKING(for yytext declaration)
  2800. AC_CACHE_VAL(ac_cv_prog_lex_yytext_pointer,
  2801. [# POSIX says lex can declare yytext either as a pointer or an array; the
  2802. # default is implementation-dependent. Figure out which it is, since
  2803. # not all implementations provide the %pointer and %array declarations.
  2804. #
  2805. # The minimal lex program is just a single line: %%.  But some broken lexes
  2806. # (Solaris, I think it was) want two %% lines, so accommodate them.
  2807. ac_cv_prog_lex_yytext_pointer=no
  2808.   echo '%%
  2809. %%' | $LEX
  2810. if test -f lex.yy.c; then
  2811.   LEX_OUTPUT_ROOT=lex.yy
  2812. elif test -f lexyy.c; then
  2813.   LEX_OUTPUT_ROOT=lexyy
  2814. else
  2815.   AC_MSG_ERROR(cannot find output from $LEX, giving up)
  2816. fi
  2817. echo 'extern char *yytext; main () { exit (0); }' >>$LEX_OUTPUT_ROOT.c
  2818. ac_save_LIBS="$LIBS"
  2819. LIBS="$LIBS $LEXLIB"
  2820. AC_TRY_LINK(`cat $LEX_OUTPUT_ROOT.c`, ac_cv_prog_lex_yytext_pointer=yes)
  2821. LIBS="$ac_save_LIBS"
  2822. rm -f "${LEX_OUTPUT_ROOT}.c"])dnl
  2823. AC_MSG_RESULT($ac_cv_prog_lex_yytext_pointer)
  2824. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  2825.   AC_DEFINE(YYTEXT_POINTER)
  2826. fi
  2827. AC_SUBST(LEX_OUTPUT_ROOT)dnl
  2828. []AC_EPI()
  2829. F8,8
  2830. traceofftraceoff
  2831. T15,482
  2832. AC_CHECK_HEADERAC_PRO([AC_CHECK_HEADER])dnl Do the transliteration at runtime so arg 1 can be a shell variable.
  2833. ac_safe=`/bin/echo "$1" | tr './\055' '___'`
  2834. AC_MSG_CHECKING([for $1])
  2835. AC_CACHE_VAL(ac_cv_header_$ac_safe,
  2836. [AC_TRY_CPP([#include <$1>], eval "ac_cv_header_$ac_safe=yes",
  2837.   eval "ac_cv_header_$ac_safe=no")])dnl
  2838. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2839.   AC_MSG_RESULT(yes)
  2840.   ifelse([$2], , :, [$2])
  2841. else
  2842.   AC_MSG_RESULT(no)
  2843. ifelse([$3], , , [$3
  2844. ])dnl
  2845. fi
  2846. []AC_EPI()
  2847. T6,267
  2848. AC_AIXAC_PRO([AC_AIX])AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
  2849. AC_BEFORE([$0], [AC_TRY_LINK])dnl
  2850. AC_BEFORE([$0], [AC_TRY_RUN])dnl
  2851. AC_MSG_CHECKING(for AIX)
  2852. AC_EGREP_CPP(yes,
  2853. [#ifdef _AIX
  2854.   yes
  2855. #endif
  2856. ], [AC_MSG_RESULT(yes); AC_DEFINE(_ALL_SOURCE)], AC_MSG_RESULT(no))
  2857. []AC_EPI()
  2858. T15,82
  2859. AC_EGREP_HEADERAC_PRO([AC_EGREP_HEADER])AC_EGREP_CPP([$1], [#include <$2>], [$3], [$4])[]AC_EPI()
  2860. T18,604
  2861. AC_CONFIG_AUX_DIRSAC_PRO([AC_CONFIG_AUX_DIRS])ac_aux_dir=
  2862. for ac_dir in $1; do
  2863.   if test -f $ac_dir/install-sh; then
  2864.     ac_aux_dir=$ac_dir
  2865.     ac_install_sh="$ac_aux_dir/install-sh -c"
  2866.     break
  2867.   elif test -f $ac_dir/install.sh; then
  2868.     ac_aux_dir=$ac_dir
  2869.     ac_install_sh="$ac_aux_dir/install.sh -c"
  2870.     break
  2871.   fi
  2872. done
  2873. if test -z "$ac_aux_dir"; then
  2874.   AC_MSG_ERROR([can not find install-sh or install.sh in $1])
  2875. fi
  2876. ac_config_guess=$ac_aux_dir/config.guess
  2877. ac_config_sub=$ac_aux_dir/config.sub
  2878. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  2879. AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  2880. []AC_EPI()
  2881. T13,314
  2882. AC_TYPE_UID_TAC_PRO([AC_TYPE_UID_T])AC_MSG_CHECKING(for uid_t in sys/types.h)
  2883. AC_CACHE_VAL(ac_cv_type_uid_t,
  2884. [AC_EGREP_HEADER(uid_t, sys/types.h,
  2885.   ac_cv_type_uid_t=yes, ac_cv_type_uid_t=no)])dnl
  2886. AC_MSG_RESULT($ac_cv_type_uid_t)
  2887. if test $ac_cv_type_uid_t = no; then
  2888.   AC_DEFINE(uid_t, int)
  2889.   AC_DEFINE(gid_t, int)
  2890. fi
  2891. []AC_EPI()
  2892. T14,62
  2893. AC_SIZEOF_TYPEAC_PRO([AC_SIZEOF_TYPE])indir([AC_CHECK_SIZEOF], $@)[]AC_EPI()
  2894. T14,429
  2895. AC_FUNC_MEMCMPAC_PRO([AC_FUNC_MEMCMP])AC_MSG_CHECKING(for 8-bit clean memcmp)
  2896. AC_CACHE_VAL(ac_cv_func_memcmp,
  2897. [AC_TRY_RUN([
  2898. main()
  2899. {
  2900.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2901.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2902. }
  2903. ], ac_cv_func_memcmp=yes, ac_cv_func_memcmp=no, ac_cv_func_memcmp=no)])dnl
  2904. AC_MSG_RESULT($ac_cv_func_memcmp)
  2905. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  2906. AC_SUBST(LIBOBJS)dnl
  2907. []AC_EPI()
  2908. T6,198
  2909. AC_PROdefine([AC_PROVIDE_$1], )dnl
  2910. ifelse(AC_DIVERSION_CURRENT, AC_DIVERSION_NORMAL,
  2911. [AC_DIVERT_PUSH(builtin(eval, AC_DIVERSION_CURRENT - 1))],
  2912. [pushdef([AC_DIVERSION_CURRENT], AC_DIVERSION_CURRENT)])dnl
  2913.  
  2914. T17,845
  2915. AC_CANONICAL_HOSTAC_PRO([AC_CANONICAL_HOST])AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  2916.  
  2917. # Make sure we can run config.sub.
  2918. if $ac_config_sub sun4 >/dev/null 2>&1; then :
  2919. else AC_MSG_ERROR(can not run $ac_config_sub)
  2920. fi
  2921.  
  2922. AC_MSG_CHECKING(host system type)
  2923.  
  2924. host_alias=$host
  2925. case "$host_alias" in
  2926. NONE)
  2927.   case $nonopt in
  2928.   NONE)
  2929.     if host_alias=`$ac_config_guess`; then :
  2930.     else AC_MSG_ERROR(can not guess host type; you must specify one)
  2931.     fi ;;
  2932.   *) host_alias=$nonopt ;;
  2933.   esac ;;
  2934. esac
  2935.  
  2936. host=`$ac_config_sub $host_alias`
  2937. host_cpu=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  2938. host_vendor=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  2939. host_os=`/bin/echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  2940. AC_MSG_RESULT($host)
  2941. AC_SUBST(host)dnl
  2942. AC_SUBST(host_alias)dnl
  2943. AC_SUBST(host_cpu)dnl
  2944. AC_SUBST(host_vendor)dnl
  2945. AC_SUBST(host_os)dnl
  2946. []AC_EPI()
  2947. T11,54
  2948. AC_TEST_CPPAC_PRO([AC_TEST_CPP])indir([AC_TRY_CPP], $@)[]AC_EPI()
  2949. T12,76
  2950. AC_PROG_YACCAC_PRO([AC_PROG_YACC])AC_CHECK_PROGS(YACC, 'bison -y' byacc, yacc)[]AC_EPI()
  2951. T15,176
  2952. AC_FUNC_VPRINTFAC_PRO([AC_FUNC_VPRINTF])AC_CHECK_FUNC(vprintf, AC_DEFINE(HAVE_VPRINTF))
  2953. if test "$ac_cv_func_vprintf" != yes; then
  2954. AC_CHECK_FUNC(_doprnt, AC_DEFINE(HAVE_DOPRNT))
  2955. fi
  2956. []AC_EPI()
  2957. T11,102
  2958. AC_REVISIONAC_PRO([AC_REVISION])AC_REQUIRE([AC_INIT_BINSH])dnl
  2959. [# From configure.in] translit([$1], $")[]AC_EPI()
  2960. T13,60
  2961. AC_GETLOADAVGAC_PRO([AC_GETLOADAVG])indir([AC_FUNC_GETLOADAVG])[]AC_EPI()
  2962. F3,3
  2963. dnldnl
  2964. T12,1768
  2965. AC_FUNC_MMAPAC_PRO([AC_FUNC_MMAP])AC_MSG_CHECKING(for working mmap)
  2966. AC_CACHE_VAL(ac_cv_func_mmap,
  2967. [AC_TRY_RUN([
  2968. /* Thanks to Mike Haertel and Jim Avera for this test. */
  2969. #include <sys/types.h>
  2970. #include <fcntl.h>
  2971. #include <sys/mman.h>
  2972.  
  2973. #ifdef BSD
  2974. # ifndef BSD4_1
  2975. #  define HAVE_GETPAGESIZE
  2976. # endif
  2977. #endif
  2978.  
  2979. #ifndef HAVE_GETPAGESIZE
  2980. # include <sys/param.h>
  2981. # ifdef EXEC_PAGESIZE
  2982. #  define getpagesize() EXEC_PAGESIZE
  2983. # else
  2984. #  ifdef NBPG
  2985. #   define getpagesize() NBPG * CLSIZE
  2986. #   ifndef CLSIZE
  2987. #    define CLSIZE 1
  2988. #   endif
  2989. #  else
  2990. #   ifdef NBPC
  2991. #    define getpagesize() NBPC
  2992. #   else
  2993. #    define getpagesize() PAGESIZE /* SVR4 */
  2994. #   endif
  2995. #  endif
  2996. # endif
  2997. #endif
  2998.  
  2999. #ifdef __osf__
  3000. # define valloc malloc
  3001. #endif
  3002.  
  3003. #ifdef __cplusplus
  3004. extern "C" { void *valloc(unsigned), *malloc(unsigned); }
  3005. #else
  3006. char *valloc(), *malloc();
  3007. #endif
  3008.  
  3009. int
  3010. main()
  3011. {
  3012.   char *buf1, *buf2, *buf3;
  3013.   int i = getpagesize(), j;
  3014.   int i2 = getpagesize()*2;
  3015.   int fd;
  3016.  
  3017.   buf1 = (char *)valloc(i2);
  3018.   buf2 = (char *)valloc(i);
  3019.   buf3 = (char *)malloc(i2);
  3020.   for (j = 0; j < i2; ++j)
  3021.     *(buf1 + j) = rand();
  3022.   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
  3023.   write(fd, buf1, i2);
  3024.   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
  3025.   for (j = 0; j < i; ++j)
  3026.     if (*(buf1 + j) != *(buf2 + j))
  3027.       exit(1);
  3028.   lseek(fd, (long)i, 0);
  3029.   read(fd, buf2, i); /* read into mapped memory -- file should not change */
  3030.   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
  3031.   lseek(fd, (long)0, 0);
  3032.   read(fd, buf3, i2);
  3033.   for (j = 0; j < i2; ++j)
  3034.     if (*(buf1 + j) != *(buf3 + j))
  3035.       exit(1);
  3036.   exit(0);
  3037. }
  3038. ], ac_cv_func_mmap=yes, ac_cv_func_mmap=no, ac_cv_func_mmap=no)])dnl
  3039. AC_MSG_RESULT($ac_cv_func_mmap)
  3040. if test $ac_cv_func_mmap = yes; then
  3041.   AC_DEFINE(HAVE_MMAP)
  3042. fi
  3043. []AC_EPI()
  3044. T13,59
  3045. AC_TYPE_OFF_TAC_PRO([AC_TYPE_OFF_T])AC_CHECK_TYPE(off_t, long)[]AC_EPI()
  3046. T11,34
  3047. AC_MSG_WARNecho "configure: warning: $1" 1>&2
  3048. T12,414
  3049. AC_PROG_LN_SAC_PRO([AC_PROG_LN_S])AC_MSG_CHECKING(whether ln -s works)
  3050. AC_CACHE_VAL(ac_cv_prog_LN_S,
  3051. [rm -f conftestdata
  3052. if ln -s X conftestdata 2>/dev/null
  3053. then
  3054.   rm -f conftestdata
  3055.   ac_cv_prog_LN_S="ln"        # hack; was "ln -s"; see note above; fnf
  3056. else
  3057.   ac_cv_prog_LN_S=ln
  3058. fi])dnl
  3059. LN_S="$ac_cv_prog_LN_S"
  3060. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  3061.   AC_MSG_RESULT(yes)
  3062. else
  3063.   AC_MSG_RESULT(no)
  3064. fi
  3065. AC_SUBST(LN_S)dnl
  3066. []AC_EPI()
  3067. T18,69
  3068. AC_LONG_FILE_NAMESAC_PRO([AC_LONG_FILE_NAMES])indir([AC_SYS_LONG_FILE_NAMES])[]AC_EPI()
  3069. T18,465
  3070. AC_SYS_INTERPRETERAC_PRO([AC_SYS_INTERPRETER])# Pull the hash mark out of the macro call to avoid m4 problems.
  3071. ac_msg="whether #! works in shell scripts"
  3072. AC_MSG_CHECKING($ac_msg)
  3073. AC_CACHE_VAL(ac_cv_sys_interpreter,
  3074. [echo '#!/bin/cat
  3075. exit 69
  3076. ' > conftest
  3077. chmod u+x conftest
  3078. (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
  3079. if test $? -ne 69; then
  3080.    ac_cv_sys_interpreter=yes
  3081. else
  3082.    ac_cv_sys_interpreter=no
  3083. fi
  3084. rm -f conftest])dnl
  3085. AC_MSG_RESULT($ac_cv_sys_interpreter)
  3086. []AC_EPI()
  3087. T13,1075
  3088. AC_FUNC_WAIT3AC_PRO([AC_FUNC_WAIT3])AC_MSG_CHECKING(for wait3 that fills in rusage)
  3089. AC_CACHE_VAL(ac_cv_func_wait3,
  3090. [AC_TRY_RUN([#include <sys/types.h>
  3091. #include <sys/time.h>
  3092. #include <sys/resource.h>
  3093. #include <stdio.h>
  3094. /* HP-UX has wait3 but does not fill in rusage at all.  */
  3095. main() {
  3096.   struct rusage r;
  3097.   int i;
  3098.   /* Use a field that we can force nonzero --
  3099.      voluntary context switches.
  3100.      For systems like NeXT and OSF/1 that don't set it,
  3101.      also use the system CPU time.  */
  3102.   r.ru_nvcsw = 0;
  3103.   r.ru_stime.tv_sec = 0;
  3104.   r.ru_stime.tv_usec = 0;
  3105.   switch (fork()) {
  3106.   case 0: /* Child.  */
  3107.     sleep(1); /* Give up the CPU.  */
  3108.     _exit(0);
  3109.   case -1: _exit(0); /* What can we do?  */
  3110.   default: /* Parent.  */
  3111.     wait3(&i, 0, &r);
  3112.     sleep(1); /* Avoid "text file busy" from rm on fast HP-UX machines.  */
  3113.     exit(r.ru_nvcsw == 0
  3114.      && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
  3115.   }
  3116. }], ac_cv_func_wait3=yes, ac_cv_func_wait3=no, ac_cv_func_wait3=no)])dnl
  3117. AC_MSG_RESULT($ac_cv_func_wait3)
  3118. if test $ac_cv_func_wait3 = yes; then
  3119.   AC_DEFINE(HAVE_WAIT3)
  3120. fi
  3121. []AC_EPI()
  3122. T8,50
  3123. AC_OFF_TAC_PRO([AC_OFF_T])indir([AC_TYPE_OFF_T])[]AC_EPI()
  3124. T7,48
  3125. AC_LN_SAC_PRO([AC_LN_S])indir([AC_PROG_LN_S])[]AC_EPI()
  3126. T14,394
  3127. AC_HEADER_TIMEAC_PRO([AC_HEADER_TIME])AC_MSG_CHECKING([whether time.h and sys/time.h may both be included])
  3128. AC_CACHE_VAL(ac_cv_header_time,
  3129. [AC_TRY_COMPILE([#include <sys/types.h>
  3130. #include <sys/time.h>
  3131. #include <time.h>],
  3132. [struct tm *tp;], ac_cv_header_time=yes, ac_cv_header_time=no)])dnl
  3133. AC_MSG_RESULT($ac_cv_header_time)
  3134. if test $ac_cv_header_time = yes; then
  3135.   AC_DEFINE(TIME_WITH_SYS_TIME)
  3136. fi
  3137. []AC_EPI()
  3138. T16,30
  3139. AC_CHECK_HEADERS#
  3140. @@@headers="$headers $1"@@@
  3141.  
  3142. T14,60
  3143. AC_TYPE_MODE_TAC_PRO([AC_TYPE_MODE_T])AC_CHECK_TYPE(mode_t, int)[]AC_EPI()
  3144. T19,1
  3145. AC_DIVERSION_NORMAL8
  3146. T18,70
  3147. AC_GCC_TRADITIONALAC_PRO([AC_GCC_TRADITIONAL])indir([AC_PROG_GCC_TRADITIONAL])[]AC_EPI()
  3148. T14,1205
  3149. AC_PROG_CC_C_OAC_PRO([AC_PROG_CC_C_O])if test "x$CC" != xcc; then
  3150.   AC_MSG_CHECKING(whether $CC and cc understand -c and -o together)
  3151. else
  3152.   AC_MSG_CHECKING(whether cc understands -c and -o together)
  3153. fi
  3154. set dummy $CC; ac_cc=[$]2
  3155. AC_CACHE_VAL(ac_cv_prog_cc_${ac_cc}_c_o,
  3156. [eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3157. echo 'foo(){}' > conftest.c
  3158. # Make sure it works both with $CC and with simple cc.
  3159. # We do the test twice because some compilers refuse to overwrite an
  3160. # existing .o file with -o, though they will create one.
  3161. if ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC &&
  3162.   test -f conftest.o && ${CC-cc} -c conftest.c -o conftest.o 1>&AC_FD_CC 2>&AC_FD_CC
  3163. then
  3164.   if test "x$CC" != xcc; then
  3165.     # Test first that cc exists at all.
  3166.     if cc -c conftest.c 1>&AC_FD_CC 2>&AC_FD_CC
  3167.     then
  3168.       if cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC &&
  3169.         test -f conftest2.o && cc -c conftest.c -o conftest2.o 1>&AC_FD_CC 2>&AC_FD_CC
  3170.       then
  3171.         eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3172.       fi
  3173.     fi
  3174.   fi
  3175. fi
  3176. rm -f conftest*
  3177. ])dnl
  3178. if eval "test \"`/bin/echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
  3179.   AC_MSG_RESULT(yes)
  3180. else
  3181.   AC_MSG_RESULT(no)
  3182.   AC_DEFINE(NO_MINUS_C_MINUS_O)
  3183. fi
  3184. []AC_EPI()
  3185. T18,61
  3186. AC_WORDS_BIGENDIANAC_PRO([AC_WORDS_BIGENDIAN])indir([AC_C_BIGENDIAN])[]AC_EPI()
  3187. T20,402
  3188. AC_STRUCT_ST_BLKSIZEAC_PRO([AC_STRUCT_ST_BLKSIZE])AC_MSG_CHECKING([for st_blksize in struct stat])
  3189. AC_CACHE_VAL(ac_cv_struct_st_blksize,
  3190. [AC_TRY_COMPILE([#include <sys/types.h>
  3191. #include <sys/stat.h>], [struct stat s; s.st_blksize;],
  3192. ac_cv_struct_st_blksize=yes, ac_cv_struct_st_blksize=no)])dnl
  3193. AC_MSG_RESULT($ac_cv_struct_st_blksize)
  3194. if test $ac_cv_struct_st_blksize = yes; then
  3195.   AC_DEFINE(HAVE_ST_BLKSIZE)
  3196. fi
  3197. []AC_EPI()
  3198. F7,7
  3199. pushdefpushdef
  3200. T13,794
  3201. AC_DIR_HEADERAC_PRO([AC_DIR_HEADER])AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl
  3202. ac_header_dirent=no
  3203. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3204.   AC_CHECK_HEADER_DIRENT($ac_hdr, [ac_header_dirent=$ac_hdr; break])
  3205. done
  3206.  
  3207. case "$ac_header_dirent" in
  3208. dirent.h) AC_DEFINE(DIRENT) ;;
  3209. sys/ndir.h) AC_DEFINE(SYSNDIR) ;;
  3210. sys/dir.h) AC_DEFINE(SYSDIR) ;;
  3211. ndir.h) AC_DEFINE(NDIR) ;;
  3212. esac
  3213.  
  3214. AC_MSG_CHECKING(whether closedir returns void)
  3215. AC_CACHE_VAL(ac_cv_func_closedir_void,
  3216. [AC_TRY_RUN([#include <sys/types.h>
  3217. #include <$ac_header_dirent>
  3218. int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
  3219.   ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
  3220. AC_MSG_RESULT($ac_cv_func_closedir_void)
  3221. if test $ac_cv_func_closedir_void = yes; then
  3222.   AC_DEFINE(VOID_CLOSEDIR)
  3223. fi
  3224. []AC_EPI()
  3225. T8,50
  3226. AC_UID_TAC_PRO([AC_UID_T])indir([AC_TYPE_UID_T])[]AC_EPI()
  3227. T12,463
  3228. AC_EGREP_CPPAC_PRO([AC_EGREP_CPP])AC_REQUIRE_CPP()dnl
  3229. cat > conftest.$ac_ext <<EOF
  3230. [#]line __oline__ "configure"
  3231. #include "confdefs.h"
  3232. [$2]
  3233. EOF
  3234. dnl eval is necessary to expand ac_cpp.
  3235. dnl Ultrix and Pyramid sh refuse to redirect output of eval, so use subshell.
  3236. if (eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC |
  3237.   egrep "$1" >/dev/null 2>&1; then
  3238.   ifelse([$3], , :, [rm -rf conftest*
  3239.   $3])
  3240. ifelse([$4], , , [else
  3241.   rm -rf conftest*
  3242.   $4
  3243. ])dnl
  3244. fi
  3245. rm -f conftest*
  3246. []AC_EPI()
  3247. T12,456
  3248. AC_SITE_LOAD# Prefer explicitly selected file to automatically selected ones.
  3249. if test -z "$CONFIG_SITE"; then
  3250.   if test "x$prefix" != xNONE; then
  3251.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  3252.   else
  3253.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  3254.   fi
  3255. fi
  3256. for ac_site_file in $CONFIG_SITE; do
  3257.   if test -r "$ac_site_file"; then
  3258.     echo "loading site script $ac_site_file"
  3259.     . "$ac_site_file"
  3260.   fi
  3261. done
  3262.  
  3263. T16,63
  3264. AC_CHAR_UNSIGNEDAC_PRO([AC_CHAR_UNSIGNED])indir([AC_C_CHAR_UNSIGNED])[]AC_EPI()
  3265. T14,176
  3266. AC_CHECK_PROGSAC_PRO([AC_CHECK_PROGS])for ac_prog in $2
  3267. do
  3268. AC_CHECK_PROG($1, [$]ac_prog, [$]ac_prog, )
  3269. test -n "[$]$1" && break
  3270. done
  3271. ifelse([$3], , , [test -n "[$]$1" || $1="$3"
  3272. ])[]AC_EPI()
  3273. T18,711
  3274. AC_FUNC_UTIME_NULLAC_PRO([AC_FUNC_UTIME_NULL])AC_MSG_CHECKING(whether utime accepts a null argument)
  3275. AC_CACHE_VAL(ac_cv_func_utime_null,
  3276. [rm -f conftestdata; > conftestdata
  3277. # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
  3278. AC_TRY_RUN([#include <sys/types.h>
  3279. #include <sys/stat.h>
  3280. main() {
  3281. struct stat s, t;
  3282. exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
  3283. && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
  3284. && t.st_mtime - s.st_mtime < 120));
  3285. }], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no,
  3286.   ac_cv_func_utime_null=no)
  3287. rm -f core])dnl
  3288. AC_MSG_RESULT($ac_cv_func_utime_null)
  3289. if test $ac_cv_func_utime_null = yes; then
  3290.   AC_DEFINE(HAVE_UTIME_NULL)
  3291. fi
  3292. []AC_EPI()
  3293. T9,49
  3294. AC_INLINEAC_PRO([AC_INLINE])indir([AC_C_INLINE])[]AC_EPI()
  3295. T12,426
  3296. AC_XENIX_DIRAC_PRO([AC_XENIX_DIR])AC_OBSOLETE([$0], [; instead use AC_HEADER_DIRENT])dnl
  3297. AC_REQUIRE([AC_DIR_HEADER])dnl
  3298. AC_MSG_CHECKING(for Xenix)
  3299. AC_EGREP_CPP(yes,
  3300. [#if defined(M_XENIX) && !defined(M_UNIX)
  3301.   yes
  3302. #endif
  3303. ], [AC_MSG_RESULT(yes); XENIX=yes], [AC_MSG_RESULT(no); XENIX=])
  3304. if test "$XENIX" = yes; then
  3305.   # Make sure -ldir precedes -lx.
  3306.   test $ac_header_dirent = dirent.h && LIBS="$LIBS -ldir"
  3307.   LIBS="$LIBS -lx"
  3308. fi
  3309. []AC_EPI()
  3310. T15,2702
  3311. AC_OUTPUT_FILES# Protect against being on the right side of a sed subst in config.status. 
  3312. changequote(, )dnl
  3313. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  3314.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  3315. changequote([, ])dnl
  3316. dnl These here document variables are unquoted when configure runs
  3317. dnl but quoted when config.status runs, so variables are expanded once.
  3318. $ac_vpsub
  3319. dnl Shell code in configure.in might set extrasub.
  3320. $extrasub
  3321. dnl Insert the sed substitutions of variables.
  3322. undivert(AC_DIVERSION_SED)
  3323. CEOF
  3324. EOF
  3325. cat >> $CONFIG_STATUS <<EOF
  3326.  
  3327. CONFIG_FILES=\${CONFIG_FILES-"$1"}
  3328. EOF
  3329. cat >> $CONFIG_STATUS <<\EOF
  3330. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3331. dnl Specifying an input file breaks the trap to clean up on interrupt,
  3332. dnl but that's not a huge problem.
  3333.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3334.   case "$ac_file" in
  3335.   *:*) ac_file_in=`/bin/echo "$ac_file"|sed 's%.*:%%'`
  3336.        ac_file=`/bin/echo "$ac_file"|sed 's%:.*%%'` ;;
  3337.   *) ac_file_in="${ac_file}.in" ;;
  3338.   esac
  3339.  
  3340.   # Adjust relative srcdir, etc. for subdirectories.
  3341.  
  3342.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3343. changequote(, )dnl
  3344.   ac_dir=`/bin/echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3345. changequote([, ])dnl
  3346.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3347.     # The file is in a subdirectory.
  3348.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3349.     ac_dir_suffix="/$ac_dir"
  3350.     # A "../" for each directory in $ac_dir_suffix.
  3351. changequote(, )dnl
  3352.     ac_dots=`/bin/echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3353. changequote([, ])dnl
  3354.   else
  3355.     ac_dir_suffix= ac_dots=
  3356.   fi
  3357.  
  3358.   case "$ac_given_srcdir" in
  3359.   .)  srcdir=.
  3360.       if test -z "$ac_dots"; then top_srcdir=.
  3361.       else top_srcdir=`/bin/echo $ac_dots|sed 's%/$%%'`; fi ;;
  3362.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3363.   *) # Relative path.
  3364.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3365.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3366.   esac
  3367.  
  3368. ifdef([AC_PROVIDE_AC_PROG_INSTALL],
  3369. [  case "$ac_given_INSTALL" in
  3370. changequote(, )dnl
  3371.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3372. changequote([, ])dnl
  3373.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3374.   esac
  3375. ])dnl
  3376.   echo creating "$ac_file"
  3377.   rm -f "$ac_file"
  3378.   configure_input="Generated automatically from `/bin/echo $ac_file_in|sed 's%.*/%%'` by configure."
  3379.   case "$ac_file" in
  3380.   *Makefile*) ac_comsub="1i\\
  3381. # $configure_input" ;;
  3382.   *) ac_comsub= ;;
  3383.   esac
  3384.   sed -e "$ac_comsub
  3385. s%@configure_input@%$configure_input%g
  3386. s%@srcdir@%$srcdir%g
  3387. s%@top_srcdir@%$top_srcdir%g
  3388. ifdef([AC_PROVIDE_AC_PROG_INSTALL], [s%@INSTALL@%$INSTALL%g
  3389. ])dnl
  3390. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3391. fi; done
  3392. rm -f conftest.subs
  3393.  
  3394. T14,65
  3395. AC_TYPE_SIZE_TAC_PRO([AC_TYPE_SIZE_T])AC_CHECK_TYPE(size_t, unsigned)[]AC_EPI()
  3396. T10,1060
  3397. AC_PROG_CCAC_PRO([AC_PROG_CC])AC_BEFORE([$0], [AC_PROG_CPP])dnl
  3398. AC_CHECK_PROG(CC, gcc, gcc, cc)
  3399.  
  3400. AC_MSG_CHECKING(whether we are using GNU C)
  3401. AC_CACHE_VAL(ac_cv_prog_gcc,
  3402. [dnl The semicolon is to pacify NeXT's syntax-checking cpp.
  3403. cat > conftest.c <<EOF
  3404. #ifdef __GNUC__
  3405.   yes;
  3406. #endif
  3407. EOF
  3408. if ${CC-cc} -E conftest.c 2>&AC_FD_CC | egrep yes >/dev/null 2>&1; then
  3409.   ac_cv_prog_gcc=yes
  3410. else
  3411.   ac_cv_prog_gcc=no
  3412. fi])dnl
  3413. AC_MSG_RESULT($ac_cv_prog_gcc)
  3414. if test $ac_cv_prog_gcc = yes; then
  3415.   GCC=yes
  3416.   if test "${CFLAGS+set}" != set; then
  3417.     AC_MSG_CHECKING(whether ${CC-cc} accepts -g)
  3418. AC_CACHE_VAL(ac_cv_prog_gcc_g,
  3419. [echo 'void f(){}' > conftest.c
  3420. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  3421.   ac_cv_prog_gcc_g=yes
  3422. else
  3423.   ac_cv_prog_gcc_g=no
  3424. fi
  3425. rm -f conftest*
  3426. ])dnl
  3427.     AC_MSG_RESULT($ac_cv_prog_gcc_g)
  3428.     if test $ac_cv_prog_gcc_g = yes; then
  3429.       # Amiga hack - suppress automatically using -g for now
  3430.       # Also default to using -O2
  3431.       CFLAGS="-O2"
  3432.     else
  3433.       CFLAGS="-O2"
  3434.     fi
  3435.   fi
  3436. else
  3437.   GCC=
  3438.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  3439. fi
  3440. []AC_EPI()
  3441. T12,137
  3442. AC_DYNIX_SEQAC_PRO([AC_DYNIX_SEQ])AC_OBSOLETE([$0], [; instead use AC_FUNC_GETMNTENT])dnl
  3443. AC_CHECK_LIB(seq, getmntent, LIBS="$LIBS -lseq")
  3444. []AC_EPI()
  3445. T27,807
  3446. AC_SYS_RESTARTABLE_SYSCALLSAC_PRO([AC_SYS_RESTARTABLE_SYSCALLS])AC_MSG_CHECKING(for restartable system calls)
  3447. AC_CACHE_VAL(ac_cv_sys_restartable_syscalls,
  3448. [AC_TRY_RUN(
  3449. [/* Exit 0 (true) if wait returns something other than -1,
  3450.    i.e. the pid of the child, which means that wait was restarted
  3451.    after getting the signal.  */
  3452. #include <sys/types.h>
  3453. #include <signal.h>
  3454. ucatch (isig) { }
  3455. main () {
  3456.   int i = fork (), status;
  3457.   if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
  3458.   signal (SIGINT, ucatch);
  3459.   status = wait(&i);
  3460.   if (status == -1) wait(&i);
  3461.   exit (status == -1);
  3462. }
  3463. ], ac_cv_sys_restartable_syscalls=yes, ac_cv_sys_restartable_syscalls=no)])dnl
  3464. AC_MSG_RESULT($ac_cv_sys_restartable_syscalls)
  3465. if test $ac_cv_sys_restartable_syscalls = yes; then
  3466.   AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS)
  3467. fi
  3468. []AC_EPI()
  3469. T21,473
  3470. AC_FUNC_CLOSEDIR_VOIDAC_PRO([AC_FUNC_CLOSEDIR_VOID])AC_REQUIRE([AC_HEADER_DIRENT])dnl
  3471. AC_MSG_CHECKING(whether closedir returns void)
  3472. AC_CACHE_VAL(ac_cv_func_closedir_void,
  3473. [AC_TRY_RUN([#include <sys/types.h>
  3474. #include <$ac_header_dirent>
  3475. int closedir(); main() { exit(closedir(opendir(".")) != 0); }],
  3476.   ac_cv_func_closedir_void=no, ac_cv_func_closedir_void=yes)])dnl
  3477. AC_MSG_RESULT($ac_cv_func_closedir_void)
  3478. if test $ac_cv_func_closedir_void = yes; then
  3479.   AC_DEFINE(CLOSEDIR_VOID)
  3480. fi
  3481. []AC_EPI()
  3482. T15,58
  3483. AC_TEST_PROGRAMAC_PRO([AC_TEST_PROGRAM])indir([AC_TRY_RUN], $@)[]AC_EPI()
  3484. T20,1
  3485. AC_DIVERSION_CURRENT8
  3486. T20,1
  3487. AC_DIVERSION_CURRENT1
  3488. T18,24
  3489. AC_DEFINE_UNQUOTED#
  3490. @@@syms="$syms $1"@@@
  3491.  
  3492. F9,9
  3493. debugmodedebugmode
  3494. T15,63
  3495. AC_HEADER_CHECKAC_PRO([AC_HEADER_CHECK])indir([AC_CHECK_HEADER], $@)[]AC_EPI()
  3496. T13,58
  3497. AC_TYPE_PID_TAC_PRO([AC_TYPE_PID_T])AC_CHECK_TYPE(pid_t, int)[]AC_EPI()
  3498. T14,468
  3499. AC_C_BIGENDIANAC_PRO([AC_C_BIGENDIAN])AC_MSG_CHECKING(whether byte ordering is bigendian)
  3500. AC_CACHE_VAL(ac_cv_c_bigendian,
  3501. [AC_TRY_RUN([main () {
  3502.   /* Are we little or big endian?  From Harbison&Steele.  */
  3503.   union
  3504.   {
  3505.     long l;
  3506.     char c[sizeof (long)];
  3507.   } u;
  3508.   u.l = 1;
  3509.   exit (u.c[sizeof (long) - 1] == 1);
  3510. }], ac_cv_c_bigendian=no, ac_cv_c_bigendian=yes)])dnl
  3511. AC_MSG_RESULT($ac_cv_c_bigendian)
  3512. if test $ac_cv_c_bigendian = yes; then
  3513.   AC_DEFINE(WORDS_BIGENDIAN)
  3514. fi
  3515. []AC_EPI()
  3516. T13,825
  3517. AC_CHECK_FUNCAC_PRO([AC_CHECK_FUNC])AC_MSG_CHECKING([for $1])
  3518. AC_CACHE_VAL(ac_cv_func_$1,
  3519. [AC_TRY_LINK(
  3520. [#include <ctype.h> /* Arbitrary system header to define __stub macros. */
  3521. /* Override any gcc2 internal prototype to avoid an error.  */
  3522. ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
  3523. extern "C"
  3524. #endif
  3525. ])dnl
  3526. [char $1(); 
  3527. ], [
  3528. /* The GNU C library defines this for functions which it implements
  3529.     to always fail with ENOSYS.  Some functions are actually named
  3530.     something starting with __ and the normal name is an alias.  */
  3531. #if defined (__stub_$1) || defined (__stub___$1)
  3532. choke me
  3533. #else
  3534. $1();
  3535. #endif
  3536. ], eval "ac_cv_func_$1=yes", eval "ac_cv_func_$1=no")])dnl
  3537. if eval "test \"`echo '$ac_cv_func_'$1`\" = yes"; then
  3538.   AC_MSG_RESULT(yes)
  3539.   ifelse([$2], , :, [$2])
  3540. else
  3541.   AC_MSG_RESULT(no)
  3542. ifelse([$3], , , [$3
  3543. ])dnl
  3544. fi
  3545. []AC_EPI()
  3546. T17,64
  3547. AC_PROGRAMS_CHECKAC_PRO([AC_PROGRAMS_CHECK])indir([AC_CHECK_PROGS], $@)[]AC_EPI()
  3548. T23,30
  3549. AC_CHECK_HEADERS_DIRENT#
  3550. @@@headers="$headers $1"@@@
  3551.  
  3552. T16,1
  3553. AC_DIVERSION_SED3
  3554. T6,93
  3555. AC_RSHerrprint(__file__:__line__: [$0] has been removed; replace it with equivalent code
  3556. )m4exit(4)
  3557. D-1,0
  3558.  
  3559. # End of frozen state file
  3560.