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